/* ============================================ */
/* EggWish · wish.css (v3.1 BOTW)                */
/* Layered on top of ../styles.css               */
/* Tokens: --accent, --canvas, --ink, --serif,   */
/* --sc, --sans defined in parent stylesheet     */
/* ============================================ */

.wish-body { background: var(--canvas); }

/* ---------- NAV overrides ---------- */
.wish-nav .cta.wish-nav-back {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
}
.wish-nav .cta.wish-nav-back:hover {
  background: var(--ink);
  color: var(--canvas);
  border-color: var(--ink);
}


/* ============================================ */
/* 区块 1 · HERO (full-bleed BOTW background)    */
/* ============================================ */
.wish-hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 80px;
  overflow: hidden;
  isolation: isolate;
  color: var(--canvas);
}

/* Layer 1: CSS fallback gradient — desert/dusk vibe (visible while image loads OR if 404) */
.wish-hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse at 65% 30%, rgba(240,181,140,0.45), transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(63,90,71,0.20), transparent 60%),
    linear-gradient(180deg, #d8c5a6 0%, #c4a47e 35%, #8a715a 70%, #4a3d34 100%);
  /* Layer 2: actual hero image (gracefully fails if not present) */
  background-image:
    linear-gradient(180deg, rgba(20,15,10,0.15) 0%, rgba(20,15,10,0.55) 100%),
    url("../assets/images/hero/eggwish-hero.webp"),
    radial-gradient(ellipse at 65% 30%, rgba(240,181,140,0.45), transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(63,90,71,0.20), transparent 60%),
    linear-gradient(180deg, #d8c5a6 0%, #c4a47e 35%, #8a715a 70%, #4a3d34 100%);
  background-size: cover, cover, 100% 100%, 100% 100%, 100% 100%;
  background-position: center, center 35%, center, center, center;
  background-repeat: no-repeat;
}

/* Layer 3: dark overlay for legibility (30-40% per spec) */
.wish-hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,15,10,0.15) 0%, rgba(20,15,10,0.4) 60%, rgba(20,15,10,0.65) 100%);
}

.wish-hero-wrap {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 60vh;
  align-items: center;
}
.wish-hero-text {
  max-width: 640px;
}
.wish-hero-eyebrow {
  color: rgba(240, 181, 140, 0.9);
  margin-bottom: 32px;
  letter-spacing: 0.22em;
}
.wish-hero-headline {
  font-family: var(--sc);
  font-weight: 300;
  font-size: clamp(40px, 6.4vw, 88px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--canvas);
  margin-bottom: 32px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
}
.wish-hero-headline em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: #F0B58C;
}
.wish-hero-sub {
  font-family: var(--sc);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.8;
  color: rgba(244,241,234,0.88);
  margin-bottom: 44px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.wish-hero-sub-en {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: rgba(240,181,140,0.75);
  letter-spacing: 0.02em;
}
.wish-hero-cta-row {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.wish-hero-meta {
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(244,241,234,0.75);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  background: rgba(20,15,10,0.4);
  border: 1px solid rgba(244,241,234,0.18);
  border-radius: 999px;
}
.wish-hero-meta [data-quota-remaining] {
  color: #F0B58C;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.wish-hero-caption {
  position: absolute;
  bottom: 24px; left: 40px; right: 40px;
  display: flex; justify-content: space-between;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(244,241,234,0.45);
  text-transform: uppercase;
  z-index: 1;
}

@media (max-width: 900px) {
  .wish-hero { padding: 100px 0 60px; min-height: 90vh; }
  .wish-hero-wrap { grid-template-columns: 1fr; min-height: 50vh; }
  .wish-hero-cta-row { gap: 20px; }
  .wish-hero-caption { position: static; margin-top: 32px; padding: 0 24px; flex-direction: column; gap: 6px; }
}

/* ---------- CTA shared ---------- */
.wish-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .3s cubic-bezier(.2,.6,.2,1);
}
.wish-cta-primary {
  background: #F0B58C;
  color: #1A1814;
}
.wish-cta-primary:hover {
  background: var(--accent);
  color: var(--canvas);
}
.wish-cta-primary:disabled {
  background: rgba(240,181,140,0.35);
  color: rgba(26,24,20,0.5);
  cursor: not-allowed;
}
.wish-cta-primary:disabled:hover { background: rgba(240,181,140,0.35); color: rgba(26,24,20,0.5); }
.wish-cta-arr { font-size: 18px; transition: transform .3s; }
.wish-cta:hover .wish-cta-arr { transform: translateX(4px); }

.wish-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #F0B58C;
  box-shadow: 0 0 10px #F0B58C;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.25); }
}

/* ============================================ */
/* 区块 2 · 输入区                                */
/* ============================================ */
.wish-input { padding: 140px 0 120px; }

.wish-form {
  max-width: 880px;
  margin: 0 auto;
}

/* 主输入框 */
.wish-form-input-wrap {
  position: relative;
  background: var(--canvas-2);
  border: 1px solid var(--rule-strong);
  transition: border-color .25s;
}
.wish-form-input-wrap:focus-within {
  border-color: var(--accent);
}
.wish-form-input {
  width: 100%;
  padding: 28px 28px 56px;
  background: transparent;
  border: none;
  resize: vertical;
  font-family: var(--sc);
  font-weight: 300;
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink);
  outline: none;
  min-height: 120px;
}
.wish-form-input::placeholder { color: var(--mute-2); }
.wish-form-counter {
  position: absolute;
  bottom: 16px; right: 20px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mute);
}
.wish-form-counter [data-wish-count] {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

/* 🎲 随机抽 + 📎 上传 — 桌面 60/40，移动端单列堆叠（见下方 media query）*/
.wish-form-tools {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: 12px;
  align-items: stretch;
}
.wish-tool {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--canvas);
  border: 1px solid var(--rule);
  cursor: pointer;
  text-align: left;
  font-family: var(--sc);
  transition: all .25s;
  position: relative;
}
.wish-tool:hover {
  border-color: var(--accent);
  background: var(--canvas-2);
  transform: translateY(-2px);
}
.wt-icon { font-size: 28px; line-height: 1; }
.wt-label { font-size: 15px; color: var(--ink); font-weight: 500; display: block; }
.wt-sub {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mute);
  display: block;
  margin-top: 2px;
}
.wish-tool > div, .wish-tool > span:not(.wt-icon) { display: block; }
.wish-tool .wt-icon { margin-right: 4px; }
.wish-tool > * { pointer-events: none; }
.wish-tool input { pointer-events: auto; }

/* dice icon shake on hover */
.wish-tool:hover .wt-icon { animation: diceShake .6s ease-in-out; }
@keyframes diceShake {
  0%, 100% { transform: rotate(0); }
  25%      { transform: rotate(-12deg); }
  50%      { transform: rotate(8deg); }
  75%      { transform: rotate(-6deg); }
}

.wish-tool--upload { cursor: pointer; }

/* ref image preview */
.wish-form-ref:not([hidden]) {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--canvas-2);
  border: 1px solid var(--rule);
}
.wish-form-ref img {
  width: 64px !important;
  height: 64px !important;
  object-fit: cover;
  background: var(--canvas);
  border: 1px solid var(--rule);
  flex-shrink: 0;
  /* hide alt text + broken icon ugliness if src fails — JS handles error state */
  font-size: 0;
  color: transparent;
}
.ref-meta {
  font-family: var(--sc);
  font-size: 13px;
  color: var(--mute);
  flex: 1;
}
.ref-remove {
  margin-left: auto;
  width: 28px; height: 28px;
  background: none;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}
.ref-remove:hover { background: var(--ink); color: var(--canvas); border-color: var(--ink); }

/* 🐰 / 🐟 角色二选一 */
.wish-form-character {
  margin-top: 36px;
}
.wfc-label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wfc-required {
  display: inline-block;
  padding: 3px 8px;
  background: #B8603A;
  color: var(--canvas);
  font-size: 10px;
  letter-spacing: 0.06em;
  font-weight: 600;
  text-transform: uppercase;
}
.wfc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.wfc-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 28px 26px;
  background: var(--canvas);
  border: 2px solid var(--rule);
  cursor: pointer;
  transition: all .25s;
  position: relative;
}
.wfc-card:hover {
  border-color: var(--mute);
  background: var(--canvas-2);
  transform: translateY(-3px);
}
.wfc-card:has(input:checked) {
  border-color: var(--accent);
  background: rgba(63,90,71,0.06);
}
.wfc-card:has(input:checked)::after {
  content: '✓';
  position: absolute;
  top: 12px; right: 14px;
  width: 24px; height: 24px;
  background: var(--accent);
  color: var(--canvas);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}
.wfc-portrait {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
}
.wfc-img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  display: block;
}
.wfc-emoji {
  font-size: 64px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
}
.wfc-name {
  font-family: var(--sc);
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
  display: block;
}
.wfc-name em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--mute);
  margin-left: 8px;
}
.wfc-fit {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.02em;
  padding-top: 6px;
  border-top: 1px solid var(--rule);
  width: 100%;
  margin-top: auto;
}

/* submit row */
.wish-form-actions {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.wish-form-hint {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--mute);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wish-form-error {
  margin-top: 16px;
  padding: 12px 18px;
  background: rgba(184,96,58,0.1);
  border-left: 3px solid #B8603A;
  color: #8A4F2A;
  font-size: 14px;
  font-family: var(--sc);
}

@media (max-width: 900px) {
  .wish-input { padding: 80px 0; }
  .wfc-grid { grid-template-columns: 1fr; }
  .wish-form-input { font-size: 17px; padding: 22px 20px 48px; }
  /* Mobile: stack the two tools vertically — horizontal 60/40 gets too
     cramped on narrow viewports (label text wrapped vertically). */
  .wish-form-tools { grid-template-columns: 1fr; }
}

/* ============================================ */
/* 📐 画面比例选择 (16:9 / 9:16) — pill toggle    */
/* ============================================ */
.wish-form-ratio {
  margin-top: 24px;
}
.wfr-toggle {
  display: inline-flex;
  background: var(--canvas);
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.wfr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 22px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--mute);
  transition: background .15s, color .15s;
  user-select: none;
  white-space: nowrap;
}
.wfr-btn:hover {
  color: var(--ink);
}
.wfr-btn:has(input:checked) {
  background: var(--accent);
  color: var(--canvas);
}

/* ============================================ */
/* 区块 3 · 输出区                                */
/* ============================================ */
.wish-output { padding: 140px 0; }
.wish-output .sec-title em { color: #F0B58C; }

/* idle */
.wish-output-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 80px 0;
  text-align: center;
  border: 1px dashed rgba(244,241,234,0.18);
}
.wish-output-placeholder-icon { color: rgba(244,241,234,0.3); }
.wish-output-placeholder p {
  font-family: var(--sc);
  font-size: 16px;
  color: rgba(244,241,234,0.55);
}

/* loading */
.wish-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  padding: 60px 0;
}
.wish-loading-stage {
  display: flex;
  align-items: center;
  justify-content: center;
}
.wish-loading-char {
  position: relative;
  width: 140px; height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* When the GIF loads, expand the container so the GIF fills its own
     intended footprint instead of overflowing into the text below.
     Previously the gif was hard-coded 200×200 on a 140×140 container,
     so the visual gif edge pushed past the gap and visually crashed
     into "玉兔和锦鲤一起为你赶来⋯". */
}
.wish-loading-char.has-gif {
  width: 200px;
  height: 200px;
}
.wish-loading-bg {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #F4F1EA, #C8C5BD 75%);
  opacity: 0.45;
  animation: moonPulse 3s ease-in-out infinite;
}
.wish-loading-char[data-char="boon-koi"] .wish-loading-bg {
  background: radial-gradient(circle at 50% 50%, rgba(240,181,140,0.55), transparent 70%);
  animation: waterRipple 3s ease-out infinite;
}
.wish-loading-body {
  font-size: 64px;
  position: relative;
  z-index: 2;
  animation: bobUp 1.6s ease-in-out infinite;
}
.wish-loading-char[data-char="boon-koi"] .wish-loading-body {
  animation: bobSide 1.6s ease-in-out infinite;
}
/* When the GIF loads successfully, it sits on top and the emoji + bg are hidden by JS.
   Width/height = 100% so the GIF scales with its responsive container
   (140×140 desktop, 100×100 mobile). Previously this was hard-coded 200×200
   which overflowed the mobile container and visually crashed into the text. */
.wish-loading-gif {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.wish-loading-char.has-gif .wish-loading-bg,
.wish-loading-char.has-gif .wish-loading-body {
  display: none;
}
@keyframes bobUp {
  0%, 100% { transform: translateY(4px); }
  50%      { transform: translateY(-14px); }
}
@keyframes bobSide {
  0%, 100% { transform: translateX(-8px) rotate(-10deg); }
  50%      { transform: translateX(8px) rotate(10deg); }
}
@keyframes moonPulse {
  0%, 100% { transform: scale(1); opacity: 0.45; }
  50%      { transform: scale(1.12); opacity: 0.65; }
}
@keyframes waterRipple {
  0%   { transform: scale(0.8); opacity: 0.65; }
  100% { transform: scale(1.4); opacity: 0; }
}
.wish-loading-text {
  font-family: var(--sc);
  font-size: 20px;
  color: rgba(244,241,234,0.9);
  text-align: center;
}
.wish-loading-progress {
  width: min(360px, 60vw);
  height: 2px;
  background: rgba(244,241,234,0.15);
  position: relative;
  overflow: hidden;
}
.wish-loading-progress-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: #F0B58C;
  transition: width .5s linear;
}
.wish-loading-sub {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(244,241,234,0.5);
}

/* ─── output: idle state (sits on the dark section) ─── */
.wish-output .sec-head .eyebrow      { color: var(--accent); }
.wish-output .sec-head .sec-title    { color: var(--canvas); }
.wish-output .sec-head .lede         { color: rgba(244,241,234,0.72); }

/* ─── per-character result-card quote tag colors (replaces inline style) ─── */
.wcq-tag[data-char="jade-rabbit"]    { color: var(--accent); }
.wcq-tag[data-char="boon-koi"]       { color: #B8603A; }
.wcq-tag[data-char="duo"]            { color: var(--ink-2); }

/* ─── input counter: red when nearing the 150-char limit ─── */
.wish-form-counter.is-near-limit [data-wish-count] { color: #B8603A; }

/* ─── quota badge: red when daily limit hit ─── */
.wish-hero-meta.is-depleted          { color: #B8603A; }

/* result — wish card */
.wish-card-wrap {
  max-width: 720px;
  margin: 0 auto;
}
/* Portrait (9:16) mode: narrow the card so the art frame height stays
   reasonable. At 420px wide, the 9:16 art is ~747px tall — fits in viewport. */
.wish-card-wrap[data-aspect="9:16"] {
  max-width: 420px;
}
.wish-card {
  background: var(--canvas);
  color: var(--ink);
  position: relative;
  border: 1px solid rgba(244,241,234,0.1);
  box-shadow: 0 40px 80px rgba(0,0,0,0.45);
  overflow: hidden;
}
.wish-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--rule);
}
.wish-card-tag {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.wish-card-id {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.08em;
}
.wish-card-art {
  aspect-ratio: 16 / 9;
  background: #23241F;
  position: relative;
  overflow: hidden;
}
.wish-card-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wish-card-art-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(240,181,140,0.18) 0%, transparent 60%),
    linear-gradient(180deg, #2a3142 0%, #1f2738 100%);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(244,241,234,0.45);
  text-transform: uppercase;
  text-align: center;
  padding: 24px;
}
.wish-card-quote {
  padding: 32px 32px 24px;
  display: flex;
  gap: 16px;
  align-items: baseline;
}
.wcq-tag {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
  min-width: 64px;
}
.wcq-text {
  font-family: var(--sc);
  font-weight: 300;
  font-size: 24px;
  line-height: 1.5;
  color: var(--ink);
}
.wish-card-foot {
  display: flex;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--rule);
  background: var(--canvas-2);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
}

.wish-card-secondary {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.wish-link-btn {
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(244,241,234,0.65);
  cursor: pointer;
  padding: 6px 0;
  transition: color .25s;
}
.wish-link-btn:hover { color: #F0B58C; }
.wish-link-btn--lg {
  color: var(--ink-2);
  font-size: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-strong);
}
.wish-link-btn--lg:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* error */
.wish-error {
  text-align: center;
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.wish-error-title {
  font-family: var(--sc);
  font-size: 32px;
  color: var(--canvas);
}
.wish-error-body {
  font-family: var(--sc);
  font-size: 16px;
  color: rgba(244,241,234,0.7);
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .wish-output { padding: 80px 0; }
  .wish-loading-char { width: 100px; height: 100px; }
  .wish-loading-char.has-gif { width: 160px; height: 160px; }
  .wish-loading-body { font-size: 48px; }
  .wish-card-quote { padding: 24px 20px 18px; flex-direction: column; gap: 8px; }
  .wcq-text { font-size: 19px; }

  /* ── Mobile loading state: light theme ──
     The GIF has a baked-in white background; on the dark section it
     creates a "white blob in dark frame" with the light-colored text
     visually pressed against the GIF's edge. On mobile (where the GIF
     occupies more of the viewport) this is most jarring — flip just
     this state to light theme so the GIF blends seamlessly. */
  .wish-output-state--loading {
    background: var(--canvas);
    padding: 40px 16px;
    margin: 24px -16px 0;  /* extend to viewport edges within .wrap */
  }
  .wish-output-state--loading .wish-loading-text { color: var(--ink); }
  .wish-output-state--loading .wish-loading-sub  { color: var(--mute); }
  .wish-output-state--loading .wish-loading-progress { background: var(--rule); }
}

/* ============================================ */
/* 区块 4 · 许愿池 (global public pool)           */
/* ============================================ */
.wish-pool { padding: 140px 0 160px; background: var(--canvas-2); }
.wish-pool-counter {
  display: block;
  margin-top: 12px;
  font-family: var(--sc);
  font-size: 18px;
  color: var(--accent);
}
.wish-pool-counter [data-pool-count-large] {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  color: #B8603A;
  font-variant-numeric: tabular-nums;
}

.wish-pool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.wish-pool-card {
  background: var(--canvas);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s;
  opacity: 0;
  animation: poolCardIn .5s forwards;
}
@keyframes poolCardIn {
  to { opacity: 1; }
}
.wish-pool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(26,24,20,0.08);
}
.wpc-art {
  aspect-ratio: 16 / 9;
  background: #2a3142;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.wpc-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  /* Hide the <img> until its real bytes arrive — the gradient on
     .wpc-art--rabbit / .wpc-art--koi shows through as a placeholder.
     JS adds .is-loaded on the img's load/error event to fade it in. */
  opacity: 0;
  transition: opacity 320ms ease-out;
}
.wpc-art img.is-loaded { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .wpc-art img { transition: none; }
}
.wpc-art--rabbit { background: linear-gradient(135deg, #2a3142 0%, #1f2738 100%); }
.wpc-art--koi { background: linear-gradient(135deg, #f5e4ce 0%, #F0B58C 100%); }
/* duo: diagonal split — koi's warm peach on the upper-left, rabbit's deep navy on the lower-right, suggesting "two characters meet" */
.wpc-art--duo {
  background: linear-gradient(135deg, #f5e4ce 0%, #F0B58C 45%, #2a3142 55%, #1f2738 100%);
}
.wpc-emoji-pair { font-size: 36px; }

.wpc-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.wpc-quote {
  font-family: var(--sc);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-2);
  padding-top: 8px;
  border-top: 1px solid var(--rule);
}
.wpc-quote-r { color: var(--accent); }
.wpc-quote-k { color: #B8603A; }
.wpc-quote-d { color: var(--ink-2); }
.wpc-foot {
  padding: 10px 16px;
  border-top: 1px solid var(--rule);
  background: var(--canvas-2);
  font-family: var(--sans);
  font-size: 11px;
  color: var(--mute);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.wpc-foot-id {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0.7;
}

/* empty state */
.wish-pool-empty {
  grid-column: 1 / -1;
  padding: 80px 24px;
  text-align: center;
  border: 1px dashed var(--rule-strong);
  background: var(--canvas);
}
.wish-pool-empty-title {
  font-family: var(--sc);
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 12px;
}
.wish-pool-empty-body {
  font-family: var(--sc);
  font-size: 15px;
  color: var(--mute);
  line-height: 1.6;
}

.wish-pool-foot {
  text-align: center;
  margin-top: 48px;
}

@media (max-width: 1100px) { .wish-pool-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .wish-pool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px)  { .wish-pool { padding: 80px 0 100px; } }

/* ============================================ */
/* FOOTER                                        */
/* ============================================ */
.wish-footer {
  background: var(--ink);
  color: var(--canvas);
  padding: 80px 0 40px;
}
.wish-footer-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.wish-footer-brand img {
  height: 32px;
  width: auto;
  filter: invert(1) brightness(2);
  margin-bottom: 20px;
}
.wish-footer-brand p {
  font-family: var(--sc);
  font-size: 14px;
  color: rgba(244,241,234,0.7);
  line-height: 1.6;
}
.wish-footer-links h5 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #F0B58C;
  font-weight: 500;
  margin-bottom: 18px;
}
.wish-footer-links ul { list-style: none; padding: 0; margin: 0; }
.wish-footer-links li { margin-bottom: 10px; }
.wish-footer-links a {
  color: rgba(244,241,234,0.7);
  text-decoration: none;
  font-family: var(--sc);
  font-size: 14px;
  transition: color .2s;
}
.wish-footer-links a:hover { color: #F0B58C; }
.wish-footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(244,241,234,0.12);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(244,241,234,0.4);
}

@media (max-width: 900px) {
  .wish-footer-row { grid-template-columns: 1fr 1fr; gap: 40px; }
  .wish-footer-bottom { flex-direction: column; gap: 12px; }
}

/* reveal helper (inherits parent .reveal) */
.reveal.in { opacity: 1; transform: none; }
