/* Virtual Red Envelope — Warm Xuan Paper & Vermilion Printshop Design System
 * Palette Lock:
 *   Background: Warm Xuan Paper (#FDF7EC)
 *   Ink: Deep Charcoal Ink (#241917)
 *   Primary Accent: Vermilion Red (#C82626)
 *   Gilded Accent: Hot-Stamped Gold (#C6922E) — strictly for Golden Fortune Tree & Foil Envelopes
 *   Secondary Festive Accent: Celadon Jade (#286652) for subtle lucky badges
 * Zero cheap purple/neon gradients. Single-line 68px desktop nav. 390px mobile zero overflow.
 */

:root {
  --bg: #FDF7EC;
  --surface: #FFFBF4;
  --surface-tint: #F6ECDC;
  --border: #E8D9C3;
  --border-strong: #D6C2A3;
  --ink: #241917;
  --ink-muted: #5C4742;
  --ink-soft: #856F69;
  --accent: #C82626;
  --accent-hover: #A51C1C;
  --accent-soft: #FCECEC;
  --jade: #286652;
  --jade-soft: #EAF3EE;
  --gold: #C6922E;
  --gold-deep: #9B6D19;
  --gold-soft: #FCF3DE;
  --gold-border: #E5C47C;
  --shadow-sm: 0 2px 10px rgba(36, 25, 23, 0.05);
  --shadow-md: 0 12px 32px rgba(36, 25, 23, 0.09);
  --radius-card: 18px;
  --radius-input: 12px;
  --radius-pill: 999px;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Songti SC", "Noto Serif TC", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "PingFang TC", "Hiragino Sans GB", "Apple SD Gothic Neo", "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, canvas { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
button, input, textarea, select { font: inherit; color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 8px 16px; border-radius: var(--radius-pill);
}
.skip-link:focus { left: 12px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container-narrow { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 20px; }

/* Top Seasonal Cross-Promo Strip (LNY Feb 6 -> Valentine Feb 14 Strategic Funnel) */
.promo-bar {
  background: var(--ink);
  color: #FAF1E2;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  padding: 8px 16px;
}
.promo-bar a { color: #F5CF7B; font-weight: 600; text-decoration: underline; }
.promo-bar a:hover { color: #FFE3A3; }

/* Single-line 68px Sticky Navigation */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(253, 247, 236, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: 68px;
}
.nav-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink); font-weight: 700; white-space: nowrap;
  min-width: 0;
}
.brand img { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; }
.brand-stack { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name { font-family: var(--font-serif); font-size: 18px; letter-spacing: -0.02em; color: var(--ink); }
.brand-sub { font-size: 11px; font-weight: 600; color: var(--accent); letter-spacing: 0.02em; }

.nav-links {
  display: flex; align-items: center; gap: 18px; flex-shrink: 0;
}
.nav-links a {
  color: var(--ink-muted); text-decoration: none; font-size: 14px; font-weight: 500;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }

.lang-select {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}

/* Buttons — High contrast WCAG AA+, tactile :active */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  padding: 12px 22px;
  font-size: 15px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: transform 0.14s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.16s ease, border-color 0.16s ease;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--accent); color: #FFFBF4; }
.btn-primary:hover { background: var(--accent-hover); color: #FFFBF4; }

.btn-dark { background: var(--ink); color: #FDF7EC; }
.btn-dark:hover { background: #170F0D; color: #FDF7EC; }

.btn-outline {
  background: var(--surface); color: var(--ink); border-color: var(--border-strong);
}
.btn-outline:hover { background: var(--surface-tint); border-color: var(--ink); color: var(--ink); }

.btn-gold {
  background: linear-gradient(135deg, #D09D3A 0%, #9E6E19 100%);
  color: #FFFBF4;
  border-color: #9E6E19;
}
.btn-gold:hover { filter: brightness(1.06); color: #FFFBF4; }

.btn-sm { padding: 8px 15px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* Asymmetric Split Hero (fits 1280x820 desktop viewport cleanly above the fold) */
.hero {
  padding: 20px 0 34px;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 34px;
  align-items: center;
}
.hero-kicker {
  display: inline-block;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(200, 38, 38, 0.16);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.8vw, 45px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
  color: var(--ink);
}
.hero-sub {
  font-size: 16px;
  color: var(--ink-muted);
  margin: 0 0 16px;
  max-width: 54ch;
}

/* 10-Second Creator Card */
.creator-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  box-shadow: var(--shadow-md);
}
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 11px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field input[type="text"],
.field input[type="email"],
.field input[type="date"],
.field textarea,
.field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-input);
  padding: 11px 14px;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 38, 38, 0.12);
}
.field-hint { font-size: 12.5px; color: var(--ink-soft); }
.field-error { font-size: 13px; color: var(--accent); font-weight: 500; min-height: 18px; }

.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-choice {
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: 7px 13px;
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.pill-choice .swatch {
  width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(36, 25, 23, 0.22);
  flex-shrink: 0;
}
.pill-choice[aria-pressed="true"], .pill-choice.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-weight: 600;
}

.hero-stage {
  background: linear-gradient(180deg, #FCF4E6 0%, #F3E5CE 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px 18px 18px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.stage-caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-muted);
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.stage-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-weight: 600;
  color: var(--ink);
}

/* Saved Fortune Trees Strip ("Welcome Back") */
.welcome-strip {
  margin-top: 18px;
  background: var(--jade-soft);
  border: 1px solid #C8DFD4;
  border-radius: var(--radius-card);
  padding: 14px 18px;
}
.welcome-strip h2 {
  font-size: 14px; margin: 0 0 8px; color: var(--ink); font-weight: 700;
}
.saved-list { display: flex; flex-wrap: wrap; gap: 8px; }
.saved-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid #BCD6C9;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none;
}
.saved-chip:hover { border-color: var(--ink); color: var(--ink); }

/* Editorial Sections */
.section { padding: 54px 0; border-bottom: 1px solid var(--border); }
.section-tint { background: var(--surface-tint); }
.section h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--ink);
}
.section-lead { color: var(--ink-muted); max-width: 64ch; margin: 0 0 28px; font-size: 16.5px; }

/* 4-step editorial timeline */
.steps-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 700; font-size: 14px; margin-bottom: 10px;
}
.step-card h3 { margin: 0 0 6px; font-size: 18px; font-family: var(--font-serif); }
.step-card p { margin: 0; color: var(--ink-muted); font-size: 15px; }

/* Two-column editorial prose + sidebar highlight */
.editorial-split {
  display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 36px; align-items: start;
}
.prose h2 { margin-top: 30px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--font-serif); font-size: 20px; margin: 22px 0 8px; color: var(--ink); }
.prose p { margin: 0 0 14px; color: var(--ink-muted); max-width: 66ch; }
.prose ul, .prose ol { padding-left: 20px; color: var(--ink-muted); margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }

.aside-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px;
  position: sticky; top: 88px;
}
.aside-box h3 { font-family: var(--font-serif); margin: 0 0 10px; font-size: 20px; }
.note-sample {
  background: var(--bg);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--ink);
}
.note-sample small { display: block; color: var(--ink-soft); margin-top: 4px; font-size: 12px; }

/* Envelope Designs & Lucky Vouchers Showcase Strip */
.designs-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px;
}
.design-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
}
.design-tile.premium { border-color: var(--gold-border); background: var(--gold-soft); }
.design-tile svg { width: 54px; height: 64px; margin: 0 auto 8px; }
.design-tile strong { display: block; font-size: 14px; color: var(--ink); }
.design-tile span { font-size: 12px; color: var(--ink-soft); }

/* Lucky Voucher / Fortune Slip Preview Pills */
.voucher-strip {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px;
}
.voucher-chip {
  background: var(--surface);
  border: 1px dashed var(--accent);
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
}

/* FAQ Accordion */
.faq-list { display: grid; gap: 10px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px;
  font-weight: 600; font-size: 15.5px; cursor: pointer;
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--accent); font-weight: 400; flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer {
  padding: 0 20px 16px;
  color: var(--ink-muted); font-size: 15px; margin: 0;
}

/* Live Moderated Q&A Wall */
.qa-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: start; }
.comment-list { display: grid; gap: 12px; }
.comment-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}
.comment-meta { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 4px; display: flex; justify-content: space-between; }
.comment-body { margin: 0; font-size: 14.5px; color: var(--ink); }
.comment-reply {
  margin-top: 10px; padding: 10px 12px;
  background: var(--jade-soft); border-radius: 10px; font-size: 13.5px; color: var(--ink);
}

/* Live Fortune Tree App (/e/:slug) */
.tree-layout {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: start; padding: 28px 0 56px;
}
.tree-canvas-card {
  background: linear-gradient(180deg, #FCF4E6 0%, #F2E2C9 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  text-align: center;
  position: relative;
}
.tree-canvas-card.is-golden {
  background: linear-gradient(180deg, #FFFBF0 0%, #F4DFAB 100%);
  border-color: var(--gold-border);
  box-shadow: 0 12px 36px rgba(198, 146, 46, 0.24);
}
.tree-header-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin-bottom: 12px; text-align: left;
}
.tree-title { font-family: var(--font-serif); font-size: clamp(22px, 3vw, 30px); margin: 0; }
.gold-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--gold-soft); color: #7A5212; border: 1px solid var(--gold-border);
  border-radius: var(--radius-pill); padding: 4px 12px; font-size: 12.5px; font-weight: 700;
}

/* 12-Slot Red Envelope Wall Grid */
.envelope-slots-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 16px;
}
.slot-btn {
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  padding: 8px 4px;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 11.5px; color: var(--ink-muted);
  transition: transform 0.14s ease, border-color 0.14s ease;
}
.slot-btn:hover { transform: translateY(-2px); border-color: var(--accent); }
.slot-btn.filled { border-style: solid; border-color: rgba(200, 38, 38, 0.3); color: var(--ink); font-weight: 600; }
.slot-btn.foil-gold_foil,
.slot-btn.foil-firework,
.slot-btn.foil-imperial {
  background: var(--gold-soft); border-color: var(--gold-border);
}
.slot-btn .slot-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; }

.panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.panel-card + .panel-card { margin-top: 16px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.code-pill {
  font-family: var(--font-mono); font-size: 17px; font-weight: 700; letter-spacing: 0.12em;
  background: var(--bg); border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 8px 14px; display: inline-block;
}

.foils-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--gold-soft); border: 1px solid var(--gold-border);
  border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-size: 13.5px;
}
.foils-bar .btn { white-space: nowrap; flex-shrink: 0; }

.design-picker {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px;
}
.design-opt {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 8px 6px; cursor: pointer; text-align: center; font-size: 12px; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.design-opt.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-hover); }

.foil-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; }
.foil-opt {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px; cursor: pointer; text-align: left; font-size: 13px;
}
.foil-opt strong { display: block; color: var(--ink); }
.foil-opt span { font-size: 12px; color: var(--ink-soft); }
.foil-opt.active { border-color: var(--accent); background: var(--accent-soft); }
.foil-opt.gold-opt.active { border-color: var(--gold); background: var(--gold-soft); }

/* Virtual Lucky Voucher / Fortune Slip Card inside opened envelope modal */
.voucher-ticket {
  margin: 0 0 14px;
  background: linear-gradient(135deg, #FFFDF7 0%, #FCEFD6 100%);
  border: 1.5px dashed var(--gold);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.voucher-ticket-badge {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); font-weight: 700;
}
.voucher-ticket-title {
  font-family: var(--font-serif); font-size: 18px; font-weight: 700; color: var(--ink);
  margin: 2px 0;
}
.voucher-ticket-sub { font-size: 12.5px; color: var(--ink-muted); margin: 0; }
.voucher-seal {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); color: #FDF7EC;
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 20px; font-weight: 700;
}

/* Modal overlay */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(36, 25, 23, 0.58);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal-box {
  width: 100%; max-width: 480px; max-height: 90dvh; overflow-y: auto;
  background: var(--surface); border-radius: var(--radius-card);
  border: 1px solid var(--border); padding: 24px;
  box-shadow: 0 24px 60px rgba(36, 25, 23, 0.28);
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px;
}
.modal-head h3 { font-family: var(--font-serif); margin: 0; font-size: 22px; }
.icon-close {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg); cursor: pointer; font-size: 18px; line-height: 1; flex-shrink: 0;
}

.pack-list { display: grid; gap: 10px; margin: 14px 0; }
.pack-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border-strong);
  background: var(--bg); cursor: pointer; text-align: left;
}
.pack-btn.popular { border-color: var(--gold); background: var(--gold-soft); }
.pack-btn strong { display: block; font-size: 15px; }
.pack-btn small { color: var(--ink-muted); font-size: 12.5px; }
.pack-price { font-size: 17px; font-weight: 700; color: var(--ink); white-space: nowrap; }

.trust-row {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  font-size: 12px; color: var(--ink-soft); margin-top: 12px;
}

/* 2-Game H5 Mini Games Grid (/games) */
.games-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.game-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 22px; display: flex; flex-direction: column; gap: 12px;
}
.game-card h3 { font-family: var(--font-serif); margin: 0; font-size: 22px; }
.game-stage {
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
  min-height: 250px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 14px;
}
.memory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; max-width: 244px; }
.mem-tile {
  aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--surface-tint); cursor: pointer; font-size: 21px;
  display: flex; align-items: center; justify-content: center;
}
.mem-tile.open, .mem-tile.matched { background: var(--surface); border-color: var(--accent); }

/* Legal tables */
.data-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; }
.data-table th, .data-table td {
  border: 1px solid var(--border); padding: 10px 12px; text-align: left;
}
.data-table th { background: var(--surface-tint); font-weight: 600; }

/* Cross-Promo Matrix Banner & Footer (High-Converting Valentine Funnel) */
.sister-strip {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px;
}
.sister-card {
  display: block; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 20px 22px; color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.sister-card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--ink); }
.sister-card small { color: var(--accent); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.sister-card strong { display: block; font-family: var(--font-serif); font-size: 20px; margin: 5px 0; }
.sister-card p { margin: 0; font-size: 14.5px; color: var(--ink-muted); }

.site-footer {
  padding: 36px 0 48px;
  background: var(--surface-tint);
  font-size: 13.5px; color: var(--ink-muted);
}
.footer-grid {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: var(--ink-muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

/* Gentle festive pendulum sway on hung red envelopes */
@keyframes envelopeSway {
  0%, 100% { transform: rotate(-2.2deg); }
  50% { transform: rotate(2.2deg); }
}
.sway-env { transform-box: fill-box; transform-origin: top center; animation: envelopeSway 4.8s ease-in-out infinite; }
.sway-env:nth-child(even) { animation-delay: -2.1s; }

@media (prefers-reduced-motion: reduce) {
  .sway-env { animation: none !important; }
  * { transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Mobile responsive collapse (< 860px) — Guaranteed zero overlap on 390px screens */
@media (max-width: 860px) {
  .hero-grid, .editorial-split, .qa-grid, .tree-layout, .games-grid, .sister-strip {
    grid-template-columns: 1fr;
  }
  .steps-grid { grid-template-columns: 1fr; }
  .aside-box { position: static; }
  .envelope-slots-grid { grid-template-columns: repeat(4, 1fr); }
  .nav-links a.hide-mobile { display: none; }
  .nav-links { gap: 10px; }
  .brand-name { font-size: 16px; }
  .brand-sub { font-size: 10px; }
  .brand img { width: 28px; height: 28px; }
  .lang-select { padding: 4px 8px; font-size: 12px; max-width: 102px; }
  .hero { padding: 20px 0 36px; }
  .hero-kicker { font-size: 12px; line-height: 1.35; border-radius: 12px; }
}
@media (max-width: 520px) {
  .nav-links a { display: none; }
  .brand-name { font-size: 15.5px; }
  .brand-sub { display: none; }
  .envelope-slots-grid { grid-template-columns: repeat(3, 1fr); }
}
