:root {
  /* 521 情缘典 · 酒红丝绒 + 玫瑰香槟 */
  --bg-night: #0c060a;
  --bg-wine: #1a0a12;
  --bg-plum: #2a1020;
  --gold: #f2ddb8;
  --gold-dim: #d4a86a;
  --gold-glow: rgba(242, 221, 184, 0.45);
  --pink: #f0b8c8;
  --blush: #f8d4e0;
  --rose: #e87898;
  --rose-deep: #c44a6a;
  --champagne: #ffe8d0;
  --accent: #e890a8;
  --paper: #fff9f6;
  --ink: #3d1828;
  --seal: #c43858;
  --glass: rgba(42, 16, 32, 0.62);
  --glass-light: rgba(255, 249, 246, 0.08);
  --glass-border: rgba(242, 221, 184, 0.32);
  --text: #fff8f5;
  --text-soft: rgba(255, 248, 252, 0.78);
  --text-muted: rgba(255, 240, 248, 0.52);
  --radius: 16px;
  --font-serif: 'Noto Serif SC', 'Songti SC', serif;
  --font-display: 'Ma Shan Zheng', cursive;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-serif);
  color: var(--text);
  background-color: var(--bg-night);
  background-image:
    linear-gradient(165deg, var(--bg-night) 0%, var(--bg-wine) 28%, var(--bg-plum) 62%, var(--bg-night) 100%);
  line-height: 1.6;
  padding-bottom: env(safe-area-inset-bottom, 24px);
  transition:
    background-color 0.5s ease,
    color 0.35s ease;
}

/* 全屏氛围层（无粒子小点） */
.scene-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.scene-bg__aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.55;
  animation: auroraFloat 14s ease-in-out infinite alternate;
}

.scene-bg__aurora--rose {
  width: min(140vw, 720px);
  height: min(90vw, 480px);
  top: -18%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(232, 120, 160, 0.55) 0%, rgba(196, 56, 88, 0.2) 45%, transparent 70%);
}

.scene-bg__aurora--gold {
  width: min(100vw, 520px);
  height: min(80vw, 400px);
  bottom: 8%;
  right: -12%;
  animation-delay: -5s;
  background: radial-gradient(circle, rgba(242, 221, 184, 0.35) 0%, rgba(212, 168, 106, 0.12) 50%, transparent 72%);
}

.scene-bg__silk {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background:
    repeating-linear-gradient(
      118deg,
      transparent,
      transparent 80px,
      rgba(255, 232, 208, 0.04) 80px,
      rgba(255, 232, 208, 0.04) 81px
    ),
    repeating-linear-gradient(
      -62deg,
      transparent,
      transparent 120px,
      rgba(240, 184, 200, 0.03) 120px,
      rgba(240, 184, 200, 0.03) 121px
    );
}

.scene-bg__heart {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  font-size: 0;
  line-height: 0;
  user-select: none;
  pointer-events: none;
}

.scene-bg__heart::before {
  content: '521';
  display: block;
  font-family: var(--font-display);
  font-size: clamp(8rem, 42vw, 18rem);
  font-weight: 400;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232, 120, 160, 0.06);
  background: linear-gradient(180deg, rgba(240, 184, 200, 0.07) 0%, rgba(196, 56, 88, 0.02) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  letter-spacing: 0.08em;
}

.scene-bg__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 70% at 50% 35%, transparent 25%, rgba(12, 6, 10, 0.55) 100%),
    linear-gradient(180deg, rgba(12, 6, 10, 0.35) 0%, transparent 22%, transparent 78%, rgba(12, 6, 10, 0.65) 100%);
}

@keyframes auroraFloat {
  0% {
    transform: translateX(-50%) scale(1);
    opacity: 0.5;
  }
  100% {
    transform: translateX(-50%) scale(1.08);
    opacity: 0.68;
  }
}

.scene-bg__aurora--gold {
  animation-name: auroraFloatGold;
}

@keyframes auroraFloatGold {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }
  100% {
    transform: scale(1.08) translate(-2%, -3%);
    opacity: 0.55;
  }
}

.site-header,
.hero,
.panel,
.site-footer {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 8px;
}

/* 右上角 · 我的（精美图标按钮） */
button.btn-my {
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.btn-my {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  text-decoration: none;
  background: linear-gradient(145deg, rgba(196, 56, 88, 0.35), rgba(42, 16, 32, 0.92));
  border: 1px solid rgba(242, 221, 184, 0.45);
  box-shadow:
    0 4px 20px rgba(196, 56, 88, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  backdrop-filter: blur(10px);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.btn-my__glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 120, 160, 0.35) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.btn-my__ring {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1px dashed rgba(242, 221, 184, 0.35);
  pointer-events: none;
  animation: myRingSpin 24s linear infinite;
}

@keyframes myRingSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.btn-my__icon {
  width: 36px;
  height: 36px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
  transition: transform 0.25s ease;
}

.btn-my:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 221, 184, 0.7);
  box-shadow:
    0 8px 28px rgba(196, 56, 88, 0.4),
    0 0 24px rgba(232, 120, 160, 0.2);
}

.btn-my:hover .btn-my__glow {
  opacity: 1;
}

/* 未登录：「我」即登录入口（轻微呼吸，提示可点） */
.btn-my--guest .btn-my__glow {
  opacity: 0.45;
  animation: myGuestGlow 2.4s ease-in-out infinite;
}

@keyframes myGuestGlow {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.75;
  }
}

.btn-my--logged-in {
  border-color: rgba(232, 120, 152, 0.55);
  box-shadow:
    0 4px 20px rgba(196, 56, 88, 0.35),
    0 0 12px rgba(232, 120, 160, 0.25);
}

.btn-my:hover .btn-my__icon {
  transform: scale(1.06);
}

.btn-my:active {
  transform: scale(0.94);
}

.btn-my:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.brand-sub {
  display: block;
  font-size: 0.7rem;
  color: var(--blush);
  opacity: 0.9;
  letter-spacing: 0.14em;
}

.user-chip {
  border: 1px solid rgba(232, 196, 154, 0.4);
  background: rgba(0, 0, 0, 0.25);
  color: var(--gold);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.75rem;
  cursor: pointer;
}

.couple-hero {
  max-width: 360px;
  margin: 0 auto 20px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow:
    0 0 0 1px rgba(255, 232, 208, 0.06),
    0 20px 56px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(196, 56, 88, 0.15);
  background: linear-gradient(180deg, #1a0a12 0%, #0c060a 100%);
}

.couple-hero__media {
  line-height: 0;
}

.couple-hero__media img {
  width: 100%;
  display: block;
  aspect-ratio: 2772 / 1272;
  object-fit: contain;
  object-position: center center;
  background: #0f0c18;
}

.couple-hero-caption {
  margin: 0;
  padding: 12px 14px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--rose-deep);
  background: linear-gradient(180deg, #fff5f8 0%, #fce8ef 50%, #f5ddd0 100%);
  border-top: 1px solid rgba(242, 221, 184, 0.4);
}

.selected-hint {
  background: linear-gradient(135deg, rgba(196, 56, 88, 0.22), rgba(242, 221, 184, 0.1));
  border: 1px solid rgba(240, 184, 200, 0.45);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  text-align: center;
  box-shadow: 0 8px 28px rgba(196, 56, 88, 0.12);
}

.selected-hint strong {
  color: var(--gold);
  font-size: 1rem;
}

.selected-hint .sub {
  display: block;
  font-size: 0.75rem;
  color: var(--pink);
  margin: 4px 0;
}

.selected-hint .hint-line {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: rgba(250, 246, 240, 0.85);
}

.form-selected-wish {
  font-size: 0.8rem;
  color: #9a6b7a;
  margin-bottom: 12px;
}

.hero {
  text-align: center;
  padding: 16px 16px 32px;
}

.hero-tag {
  color: var(--blush);
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  margin: 0 0 8px;
  text-shadow: 0 0 24px rgba(240, 184, 200, 0.4);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 3rem);
  font-weight: 400;
  color: var(--gold);
  margin: 0 0 12px;
  text-shadow:
    0 0 40px var(--gold-glow),
    0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-couple {
  font-size: 0.9rem;
  color: var(--pink);
  letter-spacing: 0.2em;
  margin: -4px 0 10px;
}

.hero-slogan {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin: 0 0 16px;
  max-width: 28em;
  margin-left: auto;
  margin-right: auto;
}

.couple-seal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.couple-seal .seal-left {
  color: var(--pink);
}

.couple-seal .seal-right {
  color: var(--gold);
}

.couple-seal .seal-mid {
  color: var(--seal);
  font-size: 1rem;
}

.founders {
  background: linear-gradient(145deg, rgba(196, 56, 88, 0.18), rgba(42, 16, 32, 0.75));
  border: 1px solid rgba(240, 184, 200, 0.35);
  border-radius: var(--radius);
  padding: 18px 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.founders h2 {
  margin-bottom: 10px;
}

.founders-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text-soft);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.meta-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 12px 8px;
  backdrop-filter: blur(8px);
}

.meta-label {
  display: block;
  font-size: 0.65rem;
  color: var(--blush);
  letter-spacing: 0.12em;
}

.meta-value {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.meta-unit--tz {
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

.meta-value.countdown {
  font-size: 1rem;
}

.meta-unit {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.panel {
  margin-bottom: 28px;
}

.panel h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold);
  margin: 0 0 8px;
}

.section-head .hint {
  margin: 0 0 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.rules {
  background: var(--glass);
  border: 1px solid rgba(240, 184, 200, 0.22);
  border-radius: var(--radius);
  padding: 16px 18px;
  backdrop-filter: blur(12px);
}

.rules ul {
  margin: 0;
  padding-left: 1.1em;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.rules strong {
  color: var(--pink);
}

.action-card {
  background: linear-gradient(165deg, #fff9f6 0%, #fceef2 45%, #f8ebe0 100%);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(240, 184, 200, 0.45);
  box-shadow:
    0 12px 40px rgba(196, 56, 88, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.action-card h3 {
  margin: 0 0 16px;
  font-size: 1.1rem;
  color: var(--seal);
}

.text-emphasis-red {
  color: #c43838;
  font-weight: 600;
}

.bless-form-intro {
  font-size: 0.82rem;
  color: #6b5d4f;
  margin-bottom: 14px;
}

.player-name-suggest {
  margin-top: 10px;
  font-size: 0.78rem;
  color: #8a7a6a;
}

.player-name-suggest summary {
  cursor: pointer;
  user-select: none;
  padding: 6px 0;
}

.player-name-suggest__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  max-height: 120px;
  overflow-y: auto;
}

.player-name-chip {
  border: 1px solid #e0d5c4;
  background: #fff9f3;
  color: #5c4a38;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: inherit;
}

.player-name-chip:hover {
  border-color: var(--gold, #d4a574);
  background: #f8e8d4;
}

.form-required {
  color: #c43838;
  margin-left: 2px;
}

.form-row {
  margin-bottom: 14px;
}

.form-row label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 6px;
  color: #6b5d4f;
}

.form-row select,
.form-row input[type='text'],
.form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e0d5c4;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
}

.form-row textarea {
  resize: none;
  height: 72px;
}

.char-count {
  text-align: right;
  font-size: 0.75rem;
  color: #9a8b7a;
  margin-top: 4px;
}

.char-count.warn {
  color: var(--seal);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 999px;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--rose-deep) 0%, var(--rose) 40%, var(--gold-dim) 100%);
  color: #fff8f5;
  box-shadow: 0 6px 24px rgba(196, 56, 88, 0.4);
}

.btn-wechat {
  background: #07c160;
  color: #fff;
}

.local-dev-login .btn-wechat {
  width: 100%;
  margin-top: 8px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}

.local-dev-login--fold {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed rgba(212, 165, 116, 0.45);
}

.local-dev-divider {
  font-size: 0.78rem;
  color: #9a8b7a;
  text-align: center;
  margin: 0 0 12px;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  margin-top: 10px;
}

.preview-thumb {
  width: 100%;
  max-height: none;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  background: #f0ebe3;
  border-radius: 8px;
  margin-top: 8px;
  border: 1px solid #e0d5c4;
}

/* 十二愿：固定 6 行 × 2 列 */
.wish-selected-preview-host {
  max-width: min(720px, 98vw);
  margin: 0 auto 12px;
}

.wish-selected-preview-host.hidden {
  display: none;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: min(720px, 98vw);
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 480px) {
  .grid-12 {
    gap: 14px;
    max-width: min(800px, 96vw);
  }
}

.grid-12.has-selection .wish-card:not(.selected) {
  opacity: 0.88;
  transform: scale(0.98);
  filter: none;
}

/* 选中后顶部大图预览（在网格外，不占十二愿格子） */
.wish-selected-preview {
  margin-bottom: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow:
    0 0 0 1px var(--bg-wine),
    0 12px 40px rgba(196, 56, 88, 0.28);
  background: linear-gradient(180deg, #1a0a12, #0c060a);
  animation: wishPreviewIn 0.35s ease;
}

@keyframes wishPreviewIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wish-selected-preview__zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: #0f0c18;
  cursor: zoom-in;
  line-height: 0;
}

.wish-selected-preview__zoom img {
  width: 100%;
  max-height: min(42vh, 320px);
  object-fit: contain;
  display: block;
}

.wish-selected-preview__cap {
  text-align: center;
  padding: 12px 14px 14px;
  background: linear-gradient(180deg, #fff9f3, #f8e8d4);
  border-top: 2px solid var(--gold);
}

.wish-selected-preview__cap strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--seal);
  margin-bottom: 4px;
}

.wish-selected-preview__cap span {
  font-size: 0.82rem;
  color: #9a5a6a;
}

.grid-12.has-selection .wish-card.selected {
  transform: scale(1);
  z-index: 2;
}

/* 十二愿：完整清晰显示（contain），选中双层光晕 */
.wish-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 14px;
  overflow: visible;
  cursor: pointer;
  border: 2px solid rgba(242, 221, 184, 0.2);
  background: linear-gradient(180deg, #1a0a12 0%, #0c060a 100%);
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    opacity 0.3s;
}

.wish-card__media {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, #2a2238 0%, #0f0c18 70%);
  line-height: 0;
  cursor: zoom-in;
}

.wish-card__media::after {
  content: '放大';
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(232, 196, 154, 0.45);
  pointer-events: none;
}

.wish-card__media.wish-card--ultra {
  aspect-ratio: 2720 / 1260;
}

.wish-card__media.wish-card--wide {
  aspect-ratio: 3200 / 2136;
}

.wish-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: auto;
  cursor: zoom-in;
  object-fit: contain;
  object-position: center center;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.wish-card__foot {
  padding: 8px 8px 10px;
  text-align: center;
  background: linear-gradient(180deg, #fff8f5 0%, #fceef2 100%);
  border-top: 1px solid rgba(240, 184, 200, 0.35);
  border-radius: 0 0 12px 12px;
}

.wish-card .wish-name {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.wish-card .wish-sub {
  display: block;
  font-size: 0.65rem;
  color: #9a6b7a;
  margin-top: 2px;
  line-height: 1.25;
}

.wish-card .wish-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--seal);
  background: rgba(196, 56, 88, 0.1);
  border: 1px solid rgba(196, 56, 88, 0.35);
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}

.wish-card .wish-cta.is-on {
  color: #fff;
  background: linear-gradient(135deg, var(--rose-deep), var(--rose));
  border-color: transparent;
  box-shadow: 0 2px 14px rgba(196, 56, 88, 0.5);
  animation: selectPop 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.wish-card__foot:hover .wish-cta:not(.is-on) {
  background: rgba(196, 56, 88, 0.18);
  transform: translateY(-1px);
}

@keyframes selectPop {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.wish-card.selected {
  border-color: var(--gold);
  z-index: 3;
  box-shadow:
    0 0 0 2px var(--bg-wine),
    0 0 0 4px var(--gold),
    0 0 0 8px rgba(232, 120, 160, 0.45),
    0 16px 48px rgba(196, 56, 88, 0.25);
  animation: selectGlow 2.5s ease-in-out infinite;
}

@keyframes selectGlow {
  0%,
  100% {
    box-shadow:
      0 0 0 2px var(--bg-wine),
      0 0 0 4px var(--gold),
      0 0 0 7px rgba(240, 184, 200, 0.4),
      0 14px 40px rgba(196, 56, 88, 0.2);
  }
  50% {
    box-shadow:
      0 0 0 2px var(--bg-wine),
      0 0 0 4px var(--champagne),
      0 0 0 10px rgba(232, 120, 160, 0.55),
      0 18px 52px rgba(242, 221, 184, 0.2);
  }
}

.wish-card.selected .wish-card__media {
  box-shadow: inset 0 0 0 2px rgba(232, 196, 154, 0.55);
}

.wish-card.selected .wish-card__foot {
  background: linear-gradient(180deg, #fff9f3 0%, #f8e8d4 100%);
  border-top: 2px solid var(--gold);
}

.wish-card.selected .wish-name {
  color: var(--seal);
}

.wish-card:focus-visible {
  outline: 2px solid var(--blush);
  outline-offset: 4px;
}

.wish-card.selected:focus-visible {
  outline-color: var(--gold);
}

.wish-card.disabled {
  opacity: 0.45;
}

.wish-card.disabled .wish-card__foot {
  pointer-events: none;
  cursor: default;
}

.wish-card.disabled .wish-card__media {
  pointer-events: auto;
  cursor: zoom-in;
}

.wall-demo-banner {
  text-align: center;
  font-size: 0.78rem;
  color: var(--blush);
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(196, 56, 88, 0.15);
  border: 1px dashed rgba(240, 184, 200, 0.4);
}

.wall-scroll {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 -8px;
}

.wall-scroll__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  z-index: 2;
  pointer-events: none;
}

.wall-scroll__fade--left {
  left: 36px;
  background: linear-gradient(90deg, var(--bg-wine) 0%, transparent 100%);
}

.wall-scroll__fade--right {
  right: 36px;
  background: linear-gradient(270deg, var(--bg-wine) 0%, transparent 100%);
}

.wall-scroll-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(42, 16, 32, 0.85);
  color: var(--gold);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 2px;
  transition: background 0.2s, transform 0.15s;
}

.wall-scroll-btn:hover {
  background: rgba(196, 56, 88, 0.35);
}

.wall-scroll-btn:active {
  transform: scale(0.94);
}

.wall-track {
  display: flex;
  flex: 1;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 6px 4px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(242, 221, 184, 0.35) transparent;
}

.wall-track::-webkit-scrollbar {
  height: 5px;
}

.wall-track::-webkit-scrollbar-thumb {
  background: rgba(242, 221, 184, 0.35);
  border-radius: 4px;
}

.wall-scroll-hint {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 4px 0 0;
  letter-spacing: 0.08em;
}

/* 祝福墙 · 统一「绫笺」样式 */
.wall-card {
  flex: 0 0 min(292px, 78vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wall-card--bless {
  background:
    linear-gradient(165deg, #fffefb 0%, #fff7f9 38%, #fce8f0 100%);
  border: 1px solid rgba(212, 168, 106, 0.55);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.65) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.wall-card--bless::before,
.wall-card--bless::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(212, 168, 106, 0.45);
  pointer-events: none;
  z-index: 1;
}

.wall-card--bless::before {
  top: 8px;
  left: 8px;
  border-right: none;
  border-bottom: none;
  border-radius: 6px 0 0 0;
}

.wall-card--bless::after {
  bottom: 8px;
  right: 8px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 6px 0;
}

.wall-card--bless:hover {
  transform: translateY(-4px);
  box-shadow:
    0 22px 56px rgba(196, 56, 88, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset;
}

.wall-card.mine {
  box-shadow:
    0 0 0 2px var(--gold),
    0 0 0 4px rgba(196, 56, 88, 0.2),
    0 18px 52px rgba(196, 56, 88, 0.3);
}

.wall-card__ribbon {
  margin: 0;
  padding: 10px 14px 8px;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: var(--seal);
  background: linear-gradient(90deg, transparent, rgba(242, 221, 184, 0.35), transparent);
  border-bottom: 1px solid rgba(212, 168, 106, 0.35);
}

.wall-card__badges {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.wall-card .badge-mine,
.wall-card .badge-demo {
  font-size: 0.62rem;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.06em;
}

.wall-card .badge-mine {
  background: linear-gradient(135deg, var(--rose-deep), var(--rose));
  color: #fff;
  box-shadow: 0 2px 8px rgba(196, 56, 88, 0.4);
}

.wall-card .badge-demo {
  background: rgba(26, 10, 18, 0.72);
  color: var(--gold);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(6px);
}

.wall-card .badge-verified {
  background: rgba(61, 24, 40, 0.75);
  color: var(--champagne);
  border: 1px solid rgba(242, 221, 184, 0.4);
}

/* 主图：玩家上传的游戏截图 */
.wall-card__shot {
  position: relative;
  margin: 12px 12px 0;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #1c1218 0%, #0a0608 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 4px 16px rgba(0, 0, 0, 0.25);
  line-height: 0;
}

.wall-card__shot::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.15);
}

.wall-card__shot-label {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--gold);
  background: rgba(12, 6, 10, 0.72);
  border: 1px solid rgba(242, 221, 184, 0.25);
  backdrop-filter: blur(4px);
}

.wall-card__shot .wall-shot-zoom {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  min-height: 148px;
  max-height: 210px;
  object-fit: contain;
  object-position: center center;
  background: #100a0e;
  cursor: zoom-in;
}

.wall-card__shot .wall-shot-zoom.is-broken {
  min-height: 120px;
  object-fit: none;
  background:
    #1a0a12
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='80' viewBox='0 0 120 80'%3E%3Ctext x='60' y='44' text-anchor='middle' fill='%23c45c5c' font-size='11' font-family='serif'%3E截图加载失败%3C/text%3E%3C/svg%3E")
    center / 120px no-repeat;
}

/* 所选贺图：小缩略条，与截图区分 */
.wall-card__wish {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 14px 0;
  padding: 8px 12px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(196, 56, 88, 0.08), rgba(242, 221, 184, 0.12));
  border: 1px solid rgba(240, 184, 200, 0.35);
}

.wall-card__wish-thumb {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(242, 221, 184, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.wall-card__wish-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wall-card__wish-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--rose-deep);
  line-height: 1.3;
}

.wall-card__wish-sub {
  font-size: 0.68rem;
  color: #9a5a6a;
  line-height: 1.25;
}

.wall-card__body {
  padding: 12px 16px 8px;
  flex: 1;
}

.wall-card__name {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 1rem;
  color: #3d1828;
  letter-spacing: 0.04em;
}

.wall-card__wish-kicker {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: #9a5a6a;
  text-transform: none;
}

.wall-card__blessing {
  margin: 0;
  padding: 0;
  border: none;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.7;
  color: #4a2434;
  font-style: normal;
}

.wall-card__foot {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 4px 10px;
  align-items: center;
  padding: 10px 14px 14px;
  margin-top: auto;
  border-top: 1px dashed rgba(212, 168, 106, 0.4);
  background: linear-gradient(180deg, transparent, rgba(252, 238, 244, 0.65));
}

.wall-card__time {
  grid-column: 1 / -1;
  font-size: 0.65rem;
  color: #9a6b7a;
  letter-spacing: 0.04em;
  font-style: normal;
}

.wall-card__seal {
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--seal);
  color: var(--seal);
  font-size: 0.68rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-weight: 600;
}

.wall-card__sig {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #a82848;
  letter-spacing: 0.08em;
}

/* 善缘开奖：愿名轮盘 + 五张中奖贺图揭晓 */
.lottery-stage {
  background: linear-gradient(160deg, rgba(196, 56, 88, 0.15), rgba(42, 16, 32, 0.85));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px 16px 24px;
  text-align: center;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.lottery-pending .seal-ring {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 20px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.lottery-pending .seal-chip {
  font-size: 0.68rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(232, 196, 154, 0.35);
  color: rgba(250, 246, 240, 0.75);
  background: rgba(0, 0, 0, 0.2);
}

.lottery-slot {
  margin: 20px auto;
  max-width: 320px;
  padding: 20px 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(196, 56, 88, 0.2), rgba(12, 6, 10, 0.5));
  border: 1px solid rgba(240, 184, 200, 0.4);
}

.lottery-slot-label {
  font-size: 0.72rem;
  color: var(--blush);
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.lottery-slot-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--gold);
  min-height: 2.2em;
  transition: color 0.15s, transform 0.15s;
}

.lottery-slot-name.spin {
  color: var(--pink);
  transform: scale(1.05);
}

.lottery-slot-sub {
  font-size: 0.8rem;
  color: rgba(250, 246, 240, 0.65);
  margin-top: 4px;
}

.lottery-reveal {
  animation: revealIn 0.6s ease;
}

@keyframes revealIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lottery-reveal-hero {
  margin: 0 auto 16px;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 12px 40px rgba(232, 196, 154, 0.25);
  aspect-ratio: 2720 / 1260;
  background: #0f0c18;
}

.lottery-reveal-hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #0f0c18;
}

.lottery-reveal-hero--wide {
  aspect-ratio: 3200 / 2136;
}

.lottery-reveal h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  margin: 0 0 6px;
}

.lottery-reveal .prize-line {
  font-size: 0.95rem;
  margin: 12px 0;
}

.lottery-reveal .winners {
  font-size: 0.88rem;
  color: var(--pink);
  line-height: 1.6;
}

.lottery-reveal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px auto;
  max-width: 420px;
  text-align: left;
}

@media (min-width: 480px) {
  .lottery-reveal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.lottery-reveal-card {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(232, 196, 154, 0.45);
  background: rgba(12, 6, 10, 0.55);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.lottery-reveal-card img {
  width: 100%;
  aspect-ratio: 2720 / 1260;
  object-fit: cover;
  display: block;
  background: #0f0c18;
}

.lottery-reveal-card--wide img {
  aspect-ratio: 3200 / 2136;
}

.lottery-reveal-card figcaption {
  padding: 6px 8px 8px;
  font-size: 0.72rem;
  color: rgba(250, 246, 240, 0.85);
  line-height: 1.35;
}

.lottery-reveal-card figcaption span {
  display: block;
  font-size: 0.65rem;
  opacity: 0.7;
  margin-top: 2px;
}

.lottery-pending-note,
.lottery-stage > p {
  font-size: 0.85rem;
  color: rgba(250, 246, 240, 0.7);
  margin: 0 0 8px;
}

.site-footer {
  text-align: center;
  padding: 32px 16px 48px;
  opacity: 0.85;
}

.footer-sign {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold);
  margin: 0;
}

.footer-note {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sig-xier {
  margin-top: 12px;
  height: 40px;
  width: auto;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: var(--gold);
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 100;
  font-size: 0.9rem;
  max-width: 90%;
  text-align: center;
}

.hidden {
  display: none !important;
}

.status-done {
  text-align: center;
  padding: 8px 0;
}

.status-done__time {
  font-size: 0.82rem;
  color: #8a7a6a;
  margin: 0 0 8px;
}

.status-done .stamp {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--seal);
  border: 2px solid var(--seal);
  display: inline-block;
  padding: 8px 24px;
  border-radius: 4px;
  transform: rotate(-4deg);
  margin-bottom: 12px;
}

.empty-wall {
  flex: 0 0 100%;
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.wall-track .empty-wall {
  min-width: 100%;
}

/* 大图预览 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  background: rgba(12, 6, 10, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-inner {
  width: 100%;
  max-width: min(960px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: calc(92vh - 48px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: var(--gold);
  text-align: center;
}

.arch-lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1201;
  width: 44px;
  height: 56px;
  border: 1px solid rgba(232, 196, 154, 0.45);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.5);
  color: var(--gold);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.arch-lightbox-nav.hidden {
  display: none;
}

.arch-lightbox-nav--prev {
  left: max(8px, env(safe-area-inset-left));
}

.arch-lightbox-nav--next {
  right: max(8px, env(safe-area-inset-right));
}

.lightbox-close {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 1201;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(232, 196, 154, 0.5);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.couple-hero__media {
  cursor: zoom-in;
}

.wall-shot-zoom {
  cursor: zoom-in;
}

.wish-card__foot {
  cursor: pointer;
}

.wish-card__foot:focus-visible {
  outline: 2px solid var(--blush);
  outline-offset: 2px;
}

/* 首期活动静态回顾页 */
.archive-view-banner {
  position: sticky;
  top: 0;
  z-index: 2000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(60, 28, 44, 0.95), rgba(90, 40, 58, 0.92));
  border-bottom: 1px solid rgba(232, 196, 154, 0.35);
  color: #f8edd4;
  font-size: 0.82rem;
  text-align: center;
}
.archive-view-banner .btn {
  padding: 6px 14px;
  font-size: 0.78rem;
}
body.is-archive-view .panel.action {
  opacity: 0.92;
}
.archive-load-err {
  padding: 12px;
  text-align: center;
  color: #c45c5c;
  background: #fff5f5;
}
