/* Self-hosted OFL luxury holiday typography (zero external font requests, strict CSP safe) */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('/fonts/fraunces-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/fraunces-italic-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/jakarta-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/fonts/caveat-latin.woff2') format('woff2');
}

:root {
  --parchment: #f7efe2;
  --parchment-2: #efe3cf;
  --ivory: #fcf8f0;
  --ink: #241318;
  --ink-soft: #432b32;
  --muted: #6e585f;
  --cranberry: #ae1f33;
  --cranberry-2: #881425;
  --pine: #163b2f;
  --pine-2: #0f2b22;
  --gold: #ecc470;
  --gold-deep: #c99235;
  --gold-bg: #fdf3dc;
  --line: rgba(112, 78, 58, 0.18);
  --card: #fcf8f0;
  --radius: 22px;
  --shadow: 0 18px 44px rgba(32, 12, 18, 0.12), 0 2px 8px rgba(32, 12, 18, 0.06);
  --shadow-sm: 0 6px 18px rgba(32, 12, 18, 0.08);
  --display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --hand: 'Caveat', cursive, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: #16050c; }
body {
  margin: 0;
  background-color: var(--parchment);
  color: var(--ink);
  font: 16px/1.62 var(--sans);
}
img { max-width: 100%; display: block; }
a { color: var(--cranberry); text-underline-offset: 3px; }
a:hover { color: var(--cranberry-2); }
h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.09;
  color: var(--ink);
  margin: 0 0 0.46em;
  letter-spacing: -0.018em;
}
h1 { font-size: clamp(2.15rem, 4.5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(740px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus {
  left: 12px; top: 12px; background: var(--ivory); border: 1.5px solid var(--gold-deep);
  padding: 8px 14px; border-radius: 10px; z-index: 120;
}

/* ---------------- Velvet Parlor Header & Footer ---------------- */
.top {
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(22, 5, 12, 0.94), rgba(28, 7, 15, 0.86));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(236, 196, 112, 0.18);
}
.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #faefd9;
  text-decoration: none;
  font: 700 1.2rem var(--display);
}
.brand:hover { color: #fff; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-tag {
  font: 700 0.64rem var(--sans);
  letter-spacing: 0.12em;
  background: linear-gradient(180deg, #f6da92, #d49d3f);
  color: #261206;
  border-radius: 999px;
  padding: 2px 8px;
  font-style: normal;
}
.top nav { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; }
.top nav a {
  color: rgba(250, 239, 217, 0.84);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.91rem;
}
.top nav a:hover { color: var(--gold); }
.top nav a.nav-pill {
  background: rgba(236, 196, 112, 0.15);
  border: 1px solid rgba(236, 196, 112, 0.42);
  color: #fce6ad;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}
.top nav a.nav-pill:hover {
  background: linear-gradient(180deg, #f6da92, #d8a243);
  color: #261206;
}
.bgm-pill {
  background: rgba(255, 248, 232, 0.09);
  border: 1px solid rgba(236, 196, 112, 0.34);
  color: #fae8bf;
  padding: 5px 11px;
  border-radius: 999px;
  font: 700 0.8rem var(--sans);
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
.bgm-pill:hover { background: rgba(236, 196, 112, 0.22); }
.bgm-pill.muted { opacity: 0.65; }
.fmg-snow-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 35;
}
@media (max-width: 640px) {
  .brand-tag { display: none; }
  .top nav { gap: 6px 10px; }
  .top nav a { font-size: 0.83rem; }
}

.bottom {
  margin-top: 68px;
  padding: 44px 0 56px;
  background: radial-gradient(900px 380px at 50% 0%, #2c0b16 0%, #140409 100%);
  color: rgba(248, 236, 216, 0.78);
  font-size: 0.92rem;
  border-top: 1px solid rgba(236, 196, 112, 0.22);
}
.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: #faefd9; }
.foot-brand svg { width: 36px; height: 36px; flex: none; }
.foot-brand span { color: rgba(248, 236, 216, 0.68); font-size: 0.9rem; }
.bottom nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  margin: 14px 0 16px; padding-top: 14px;
  border-top: 1px solid rgba(236, 196, 112, 0.14);
}
.bottom a, .bottom .link { color: #f6ead4; text-decoration: none; font-size: 0.9rem; }
.bottom a:hover, .bottom .link:hover { color: var(--gold); text-decoration: underline; }
.bottom small { color: rgba(248, 236, 216, 0.54); display: block; line-height: 1.55; }

/* ---------------- Satin & Gold Luxury Buttons, Inputs & Stationery Cards ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid rgba(110, 76, 52, 0.28);
  border-radius: 14px; padding: 11px 19px;
  font: 700 0.95rem var(--sans); cursor: pointer; text-decoration: none;
  background: #fffdf9; color: var(--ink);
  box-shadow: 0 3px 10px rgba(32, 12, 18, 0.08);
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease, background 0.15s;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(32, 12, 18, 0.14);
  background: var(--gold-bg);
  color: var(--ink);
}
.btn:active { transform: translateY(1px); }
.btn.go {
  background: linear-gradient(180deg, #c2263b, #8d1425);
  border-color: rgba(255, 214, 150, 0.32);
  color: #fffaf2;
  box-shadow: 0 10px 24px rgba(141, 20, 37, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn.go:hover { filter: brightness(1.07); color: #fff; }
.btn.pine {
  background: linear-gradient(180deg, #1d4c3d, #113026);
  border-color: rgba(236, 196, 112, 0.3);
  color: #f8efd9;
}
.btn.pine:hover { filter: brightness(1.08); color: #fff; }
.btn.gold {
  background: linear-gradient(180deg, #f8df9b, #d8a140);
  border-color: rgba(255, 245, 210, 0.6);
  color: #291406;
  box-shadow: 0 8px 22px rgba(216, 161, 64, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.btn.gold:hover { filter: brightness(1.05); color: #1e0e04; }
.btn.wide { width: 100%; }
.btn.big { padding: 15px 24px; font-size: 1.03rem; border-radius: 16px; }
.btn[disabled] { opacity: 0.58; cursor: not-allowed; transform: none; filter: none; }

.link {
  background: none; border: 0; color: var(--cranberry);
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer; font: 600 0.91rem var(--sans); padding: 4px;
}
.link:hover { color: var(--cranberry-2); }

.field { display: block; margin: 0 0 14px; }
.field > span { display: block; font-weight: 700; font-size: 0.89rem; margin-bottom: 6px; color: var(--ink); }
.field small { font-weight: 500; color: var(--muted); }
input[type='text'], input[type='email'], input[type='password'], input[type='date'], input[type='search'], textarea, select {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid rgba(112, 78, 58, 0.26);
  border-radius: 12px;
  background: #fffdf9;
  font: 16px var(--sans); color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
textarea { min-height: 92px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: none; background: #fff;
  border-color: var(--cranberry);
  box-shadow: 0 0 0 3px rgba(174, 31, 51, 0.15);
}
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; margin: 10px 0; color: var(--ink-soft); }
.chk input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--cranberry); }
.hint { color: var(--muted); font-size: 0.87rem; line-height: 1.48; }
.err { color: var(--cranberry); font-weight: 700; font-size: 0.91rem; min-height: 1.2em; }

.card {
  background: linear-gradient(180deg, #fffdf9 0%, #f8efe0 100%);
  border: 1px solid rgba(196, 150, 74, 0.34);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  color: var(--ink);
  position: relative;
}
.card h1, .card h2, .card h3 { color: var(--ink); }
.card-tag {
  display: inline-block;
  font: 800 0.69rem var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #b82337, #8b1424);
  color: #fff7ea;
  border-radius: 999px;
  padding: 4px 11px;
  margin-bottom: 10px;
}

/* ---------------- Dark Velvet Parlor Hero & Gift Box Stage ---------------- */
.hero, .box-stage {
  background:
    radial-gradient(1100px 640px at 24% 16%, rgba(128, 30, 52, 0.55) 0%, transparent 65%),
    radial-gradient(820px 520px at 82% 18%, rgba(194, 132, 46, 0.18) 0%, transparent 62%),
    linear-gradient(180deg, #1b060e 0%, #260913 56%, #19060d 100%);
  color: #f8eedc;
  position: relative;
  border-bottom: 2px solid rgba(236, 196, 112, 0.25);
}
.hero { padding: 34px 0 46px; }
.box-stage { padding: 18px 0 56px; min-height: calc(100vh - 70px); }

.hero h1, .box-stage > .wrap > .box-head h1 {
  color: #fcf3e3;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.36);
}
.hero .kicker, .box-stage .kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font: 700 0.72rem var(--sans);
  color: #f5d386;
  background: rgba(236, 196, 112, 0.12);
  border: 1px solid rgba(236, 196, 112, 0.36);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}
.hero .lede { font-size: 1.08rem; color: rgba(248, 238, 220, 0.84); max-width: 56ch; }
.hero-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  margin: 18px 0 6px;
}
.hero-free-note {
  font-size: 0.86rem; font-weight: 600; color: rgba(248, 238, 220, 0.78);
}
.hero .badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.hero .badges li {
  background: rgba(255, 248, 232, 0.09);
  border: 1px solid rgba(236, 196, 112, 0.28);
  color: #fae9c6;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.83rem;
  font-weight: 600;
}
.hero .card, .box-stage .card {
  box-shadow: 0 26px 64px rgba(5, 1, 3, 0.55), 0 0 0 1px rgba(246, 214, 138, 0.22);
}
.box-stage .panel > p .link,
.box-stage #box-status {
  color: #f5d386;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.92fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 26px; } }

.hero-cabinet-wrap { margin-top: 20px; }
.hero-cabinet-cta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.hero-cabinet-note {
  font-size: 0.83rem;
  color: rgba(248, 238, 220, 0.72);
}

/* ---------------- 3D Mahogany & Brass Velvet Holiday Cabinet ---------------- */
.fmg-cabinet-shell {
  background: linear-gradient(180deg, #3b1c14 0%, #24100b 100%);
  border-radius: 26px;
  padding: 14px;
  border: 1.5px solid rgba(236, 196, 112, 0.42);
  box-shadow:
    0 28px 68px rgba(4, 1, 3, 0.62),
    inset 0 1px 0 rgba(255, 232, 178, 0.28),
    inset 0 0 28px rgba(0, 0, 0, 0.55);
}
.fmg-cabinet-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.fmg-cabinet-plaque {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f5da93 0%, #cfa04c 100%);
  color: #2b1608;
  font: 800 0.74rem var(--sans);
  letter-spacing: 0.08em;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.fmg-cabinet-plaque em {
  font-style: normal;
  font-weight: 700;
  opacity: 0.86;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .fmg-cabinet-plaque em { display: none; }
}
.fmg-sound-pill {
  flex: none;
  border: 1px solid rgba(236, 196, 112, 0.38);
  background: rgba(20, 8, 12, 0.65);
  color: #fae8bf;
  border-radius: 999px;
  padding: 7px 12px;
  font: 700 0.76rem var(--sans);
  cursor: pointer;
}
.fmg-sound-pill:hover { background: rgba(236, 196, 112, 0.2); }

.fmg-cabinet-box {
  position: relative;
  border-radius: 18px;
  padding: 6px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 215, 150, 0.018) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #2a120c 0%, #1b0b08 100%);
}
.fmg-cabinet-gl,
.fmg-cabinet-snap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}
.fmg-cabinet-snap { display: none; z-index: 3; }

.fmg-cubby-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
}
.fmg-cubby-grid.doors-24 {
  grid-template-columns: repeat(6, 1fr);
  gap: 9px;
}
.fmg-cubby-grid.single {
  grid-template-columns: 1fr;
  place-items: center;
  padding: 18px 8px;
}
@media (max-width: 820px) {
  .fmg-cubby-grid.doors-24 { grid-template-columns: repeat(4, 1fr); gap: 9px; }
}
@media (max-width: 620px) {
  .fmg-cubby-grid,
  .fmg-cubby-grid.doors-24 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}
@media (max-width: 390px) {
  .fmg-cubby-grid { grid-template-columns: repeat(2, 1fr); }
  .fmg-cubby-grid.doors-24 { grid-template-columns: repeat(3, 1fr); gap: 6px; }
}

.fmg-cubby {
  position: relative;
  aspect-ratio: 1 / 1.18;
  border-radius: 56px 56px 14px 14px;
  background: radial-gradient(120% 90% at 50% 22%, #173c30 0%, #0b211a 64%, #06130f 100%);
  border: 1.5px solid rgba(226, 186, 106, 0.34);
  box-shadow: inset 0 10px 24px rgba(0, 0, 0, 0.72), 0 3px 8px rgba(0, 0, 0, 0.36);
  cursor: pointer;
  padding: 0;
  color: #f8eedc;
  overflow: visible;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.fmg-cubby.big {
  width: min(310px, 82vw);
  aspect-ratio: 1 / 1.12;
  border-radius: 120px 120px 22px 22px;
}
.fmg-cubby:hover {
  border-color: rgba(248, 216, 138, 0.78);
}
.fmg-cubby.selected {
  border-color: #f8df95;
  box-shadow: 0 0 0 3px rgba(248, 223, 149, 0.42), inset 0 10px 24px rgba(0, 0, 0, 0.72);
}

.fmg-cubby-lamp {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 5px;
  border-radius: 99px;
  background: rgba(220, 185, 120, 0.25);
  z-index: 2;
}
.fmg-cubby[data-state='ready'] .fmg-cubby-lamp,
.fmg-cubby[data-state='opened'] .fmg-cubby-lamp {
  background: #ffe9a6;
  box-shadow: 0 0 12px #ffd369, 0 0 24px rgba(255, 196, 78, 0.7);
}
.fmg-cubby-cone {
  position: absolute;
  inset: 11px 10% 18% 10%;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 214, 120, 0.24) 0%, transparent 72%);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}
.fmg-cubby[data-state='ready'] .fmg-cubby-cone { opacity: 1; }

.fmg-cubby-num {
  position: absolute;
  top: 20px;
  left: 13px;
  font: 600 0.68rem var(--display);
  color: rgba(244, 222, 176, 0.65);
  z-index: 2;
  pointer-events: none;
}
.fmg-cubby.big .fmg-cubby-num {
  left: 50%;
  transform: translateX(-50%);
  top: 24px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.fmg-cubby-ghost {
  position: absolute;
  inset: 32% 14% 24% 14%;
  border: 1.2px dashed rgba(236, 196, 112, 0.32);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font: 600 0.96rem var(--hand);
  color: rgba(244, 222, 176, 0.62);
  pointer-events: none;
}
.fmg-cubby-past {
  position: absolute;
  inset: 36% 14% 26% 14%;
  display: grid;
  place-items: center;
  font: italic 600 0.72rem var(--display);
  color: rgba(220, 205, 180, 0.36);
  pointer-events: none;
}
.fmg-cubby[data-state='past'] {
  opacity: 0.56;
  background: radial-gradient(120% 90% at 50% 22%, #13211d 0%, #09120f 70%, #050a08 100%);
  border-color: rgba(200, 175, 125, 0.16);
}
.fmg-cubby-crown {
  position: absolute;
  top: 17px;
  right: 10px;
  font-size: 0.76rem;
  z-index: 5;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.65));
  pointer-events: none;
}
.fmg-cubby-grid.doors-24 .fmg-cubby-num {
  top: 17px;
  left: 9px;
  font-size: 0.61rem;
}
.fmg-cubby-grid.doors-24 .fmg-cubby-badge {
  font-size: 0.58rem;
  padding: 3px 5px;
}

.fmg-cubby-badge {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: -7px;
  z-index: 6;
  padding: 4px 7px;
  border-radius: 999px;
  font: 800 0.64rem var(--sans);
  letter-spacing: 0.03em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}
.fmg-cubby-badge.ready {
  background: linear-gradient(180deg, #c9293e, #931526);
  color: #fff8eb;
  border: 1px solid rgba(255, 224, 156, 0.55);
}
.fmg-cubby-badge.preview,
.fmg-cubby-badge.sealed,
.fmg-cubby-badge.opened {
  background: linear-gradient(180deg, #f3d78e, #c9963e);
  color: #281406;
}
.fmg-cubby-badge.empty {
  background: rgba(16, 38, 30, 0.92);
  color: rgba(240, 222, 184, 0.65);
  border: 1px solid rgba(236, 196, 112, 0.24);
}
.fmg-cubby-badge.past {
  background: rgba(22, 24, 24, 0.92);
  color: rgba(215, 204, 184, 0.48);
  border: 1px solid rgba(200, 180, 140, 0.16);
}
.fmg-unwrap-stage.legendary .fmg-stage-hint {
  border-color: #fde396;
  box-shadow: 0 0 24px rgba(248, 206, 102, 0.35);
  color: #fff3cf;
}

/* ---------------- Fullscreen WebGL2 Hearthstone Unwrapping Stage ---------------- */
.fmg-unwrap-stage {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  touch-action: manipulation;
}
.fmg-unwrap-stage.active { display: block; }
.fmg-cabinet-gl.in-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 91;
}
.fmg-stage-hud {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 93;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(680px, calc(100vw - 24px));
  pointer-events: auto;
}
.fmg-stage-hint {
  margin: 0;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(20, 6, 11, 0.76);
  border: 1px solid rgba(245, 211, 134, 0.34);
  color: #fcebc4;
  font: 600 0.9rem var(--sans);
  text-align: center;
  backdrop-filter: blur(8px);
}
.fmg-stage-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.fmg-sbtn {
  border: 1px solid rgba(245, 211, 134, 0.36);
  background: rgba(28, 8, 15, 0.84);
  color: #faecd0;
  border-radius: 999px;
  padding: 9px 16px;
  font: 700 0.86rem var(--sans);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 0.12s ease, background 0.15s;
}
.fmg-sbtn:hover { transform: translateY(-1px); background: rgba(60, 18, 30, 0.92); }
.fmg-sbtn.gold {
  background: linear-gradient(180deg, #f8df9b, #d59d3c);
  color: #291305;
  border-color: #fdeab4;
}
.fmg-sbtn.primary {
  background: linear-gradient(180deg, #c8293e, #8f1425);
  color: #fff9ef;
  border-color: rgba(255, 224, 156, 0.55);
}

/* ---------------- Creator Mode Picker & Composer Wrap Swatches ---------------- */
.modes { display: grid; gap: 9px; margin-bottom: 14px; }
.mode {
  position: relative; display: flex; gap: 12px; align-items: center;
  padding: 11px 13px; border: 1.5px solid rgba(112, 78, 58, 0.22); border-radius: 14px;
  background: #fffdf9; cursor: pointer; transition: border-color 0.14s, background 0.14s, box-shadow 0.14s;
}
.mode:hover { border-color: rgba(174, 31, 51, 0.45); background: #fffaf0; }
.mode input { position: absolute; opacity: 0; }
.mode .ico {
  font-size: 1.32rem; width: 38px; height: 38px; border-radius: 10px;
  background: var(--parchment); border: 1px solid rgba(112, 78, 58, 0.18);
  display: grid; place-items: center; flex: none;
}
.mode-txt { flex: 1; min-width: 0; }
.mode b { display: block; color: var(--ink); font-size: 0.95rem; }
.mode small { color: var(--muted); font-size: 0.82rem; display: block; line-height: 1.32; }
.mode-dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(112, 78, 58, 0.35); background: #fff; flex: none; }
.mode:has(input:checked) {
  background: var(--gold-bg);
  border-color: var(--cranberry);
  box-shadow: 0 6px 16px rgba(174, 31, 51, 0.12);
}
.mode:has(input:checked) .mode-dot { background: var(--cranberry); border-color: var(--cranberry); box-shadow: inset 0 0 0 3px #fff; }
.mode:has(input:focus-visible) { outline: 2px solid var(--cranberry); outline-offset: 2px; }

.variants { display: flex; flex-wrap: wrap; gap: 8px; margin: -2px 0 12px; }
.variants label {
  border: 1px solid rgba(112, 78, 58, 0.28); border-radius: 999px; padding: 5px 13px;
  font-size: 0.83rem; font-weight: 700; cursor: pointer; background: #fffdf9; color: var(--ink);
}
.variants label:has(input:checked) { background: var(--cranberry); border-color: var(--cranberry); color: #fff; }
.variants input { position: absolute; opacity: 0; }

.wrap-swatches {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.wrap-sw {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 11px;
  border: 1.5px solid rgba(112, 78, 58, 0.22);
  background: #fffdf9;
  color: var(--ink);
  font: 700 0.82rem var(--sans);
  cursor: pointer;
  text-align: left;
}
.wrap-sw.on {
  border-color: var(--cranberry);
  background: var(--gold-bg);
  box-shadow: 0 4px 12px rgba(174, 31, 51, 0.12);
}
.sw-dot {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  flex: none;
  border: 1px solid rgba(0, 0, 0, 0.18);
}
.sw-dot.classic { background: linear-gradient(135deg, #9f182c 60%, #ecc470 60%); }
.sw-dot.frost { background: linear-gradient(135deg, #163063 60%, #dce7f5 60%); }
.sw-dot.royal_gold { background: linear-gradient(135deg, #f9e196 0%, #c8912a 58%, #9e1528 58%); }
.sw-dot.aurora { background: linear-gradient(135deg, #0c594b 0%, #31bfa0 58%, #f3d78e 58%); }
.sw-dot.cocoa { background: linear-gradient(135deg, #6e3d24 60%, #a81c30 60%); }
.sw-dot.candy { background: repeating-linear-gradient(45deg, #f8efe0 0 4px, #b82236 4px 8px); }

.wrap-glyph {
  --ribbon: #edc471;
  --wrapping: linear-gradient(145deg, #bd283c, #681121);
  display: block; position: relative; width: 59px; aspect-ratio: 1.15; border-radius: 4px 4px 8px 8px;
  background: linear-gradient(90deg, transparent 42%, var(--ribbon) 42% 58%, transparent 58%), var(--wrapping);
  border: 1px solid rgba(230, 188, 116, 0.5);
  box-shadow: inset -8px -8px 10px rgba(15, 3, 8, 0.26), 4px 7px 12px rgba(16, 6, 10, 0.38);
}
.wrap-glyph::before {
  content: ''; position: absolute; inset: 0 -4px auto; height: 29%; border-radius: 5px;
  background: linear-gradient(90deg, transparent 43%, var(--ribbon) 43% 57%, transparent 57%), var(--wrapping);
  box-shadow: 0 2px 3px rgba(25, 7, 15, 0.5);
}
.wrap-glyph::after {
  content: ''; position: absolute; bottom: 100%; left: 50%; width: 26%; height: 22%;
  border: 4px double var(--ribbon); border-radius: 70% 70% 0 0; transform: translateX(-50%);
}
[data-wrap-sample='frost'] { --ribbon: #e2edf9; --wrapping: linear-gradient(145deg, #3a639d, #152345); }
[data-wrap-sample='royal_gold'] { --ribbon: #a51e2c; --wrapping: linear-gradient(145deg, #fff1be, #d59836 65%, #9c5e21); }
[data-wrap-sample='aurora'] { --wrapping: linear-gradient(145deg, #13664d, #35b99d 52%, #054437); }
[data-wrap-sample='cocoa'] { --ribbon: #c3454c; --wrapping: linear-gradient(145deg, #985f42, #4d2020); }
[data-wrap-sample='candy'] { --ribbon: #225d47; --wrapping: repeating-linear-gradient(135deg, #fff3d8 0 7px, #a81f35 7px 14px); }
.cubby-fallback { display: none; }
.no-webgl2 .cubby-fallback { display: block; position: absolute; top: 52%; left: 50%; transform: translate(-50%, -39%); width: 52%; max-width: 110px; }
.mobile-wrap-preview { display: none; }
@media (max-width: 900px) {
  .mobile-wrap-preview { display: flex; align-items: center; gap: 18px; padding: 17px; margin-top: 10px; color: #fae7bd; background: radial-gradient(ellipse at 20% 0%, #355647, #112b22 80%); border-radius: 12px; }
  .mobile-wrap-preview small, .mobile-wrap-preview b { display: block; }
}
.art-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.art-picker button {
  display: grid; gap: 5px; align-content: start; cursor: pointer; padding: 5px 5px 7px;
  border: 1.5px solid rgba(112, 78, 58, 0.28); border-radius: 12px;
  background: #fffdf9; color: var(--ink); font: 700 clamp(.68rem, 1.8vw, .85rem) var(--sans);
}
.art-picker button[aria-pressed='true'] { border-color: var(--cranberry); background: var(--gold-bg); }
.art-picker img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.polaroid.art-card img { aspect-ratio: 4 / 3; animation: none; }

.wrap-group-lbl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.81rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.wrap-group-lbl small { font-weight: 600; color: var(--muted); font-size: 0.75rem; }
.wrap-sw.deluxe.on {
  border-color: var(--gold-deep);
  background: linear-gradient(180deg, #fffdf4, #faecc8);
  box-shadow: 0 5px 14px rgba(201, 146, 53, 0.22);
}
.tier-pill {
  font: 800 0.62rem var(--sans);
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(22, 59, 47, 0.1);
  color: var(--pine);
  font-style: normal;
}
.tier-pill.gold {
  background: linear-gradient(180deg, #f9df97, #d69e3d);
  color: #291305;
}
.credit-banner {
  background: linear-gradient(135deg, #fffaf0 0%, #fbe7b5 100%);
  border: 1.5px solid rgba(201, 146, 53, 0.65);
  border-radius: 14px;
  padding: 11px 14px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: #2c1707;
}
.gift.deluxe-gift {
  border-color: rgba(201, 146, 53, 0.55);
  background: linear-gradient(180deg, #fffdf8 0%, #fcf3de 100%);
}

/* ---------------- Dodo Deluxe Checkout ---------------- */
.pay-grid { display: grid; gap: 10px; margin-top: 6px; }
.sku-card {
  position: relative;
  display: block;
  border: 1.5px solid rgba(112, 78, 58, 0.24);
  border-radius: 15px;
  padding: 13px 15px;
  background: #fffdf9;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.sku-card input { position: absolute; opacity: 0; }
.sku-card.best { padding-top: 20px; }
.sku-badge {
  position: absolute;
  top: -9px;
  right: 14px;
  background: linear-gradient(180deg, #c6283c, #8e1424);
  color: #fff8ec;
  font: 800 0.64rem var(--sans);
  letter-spacing: 0.08em;
  padding: 2px 9px;
  border-radius: 999px;
}
.sku-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sku-body b { display: block; font-size: 0.98rem; color: var(--ink); }
.sku-body small { display: block; font-size: 0.81rem; color: var(--muted); line-height: 1.35; }
.sku-price { font: 700 1.4rem var(--display); color: var(--ink); white-space: nowrap; }
.sku-card:has(input:checked) {
  border-color: var(--gold-deep);
  background: linear-gradient(180deg, #fffef8, #fbecc7);
  box-shadow: 0 8px 20px rgba(201, 146, 53, 0.2);
}

#payment-status { margin-bottom: 16px; scroll-margin-top: 84px; }
#payment-message { min-height: 2.5em; }
.gift-sheet-modal a[download] { margin: 8px 0; }

/* ---------------- Box Page Header, Share & Keepsake Pass ---------------- */
.box-head { text-align: center; padding: 12px 0 18px; }
.box-head h1 { margin-bottom: 6px; }
.box-sub { color: rgba(248, 238, 220, 0.78); margin-bottom: 10px; }
.parcel-strip {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  background: rgba(255, 248, 232, 0.09);
  border: 1px solid rgba(236, 196, 112, 0.34);
  color: #f8e7bf;
  border-radius: 999px;
  padding: 5px 15px;
  font: 700 0.74rem var(--sans);
  letter-spacing: 0.06em;
}
.parcel-strip b { color: #ffd97d; }

.box-grid {
  display: grid;
  grid-template-columns: 1.16fr 0.92fr;
  gap: 28px;
  align-items: start;
  margin-top: 8px;
}
@media (max-width: 900px) { .box-grid { grid-template-columns: 1fr; } }

.share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 10px 0; }
.codebox {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--gold-bg); border: 1px dashed rgba(174, 31, 51, 0.38); border-radius: 14px;
  padding: 11px 14px; margin: 12px 0 4px;
}
.codebox code {
  font: 800 1.12rem var(--mono); letter-spacing: 0.08em; color: var(--ink);
  background: #fff; padding: 5px 11px; border-radius: 8px;
  border: 1px solid rgba(112, 78, 58, 0.25); white-space: nowrap; flex: none;
}
.notice {
  background: var(--gold-bg); border: 1px solid rgba(201, 146, 53, 0.45);
  color: var(--ink); border-radius: 14px;
  padding: 12px 15px; margin: 10px 0; font-size: 0.93rem;
}
.notice.warn { background: #fff1f0; border-color: var(--cranberry); }

.keepsake-card {
  background: linear-gradient(155deg, #fffdf7 0%, #faeccb 100%);
  border: 1.5px solid rgba(201, 146, 53, 0.55);
  border-radius: var(--radius);
  padding: 22px; margin-top: 14px;
  box-shadow: 0 22px 52px rgba(5, 1, 3, 0.42);
  color: var(--ink);
}
.keepsake-card.paid {
  background: linear-gradient(155deg, #f1fbf6 0%, #fffdf8 100%);
  border-color: rgba(22, 59, 47, 0.35);
}
.keepsake-price {
  display: inline-flex; align-items: baseline; gap: 6px;
  font: 700 1.55rem var(--display); color: var(--ink); margin: 4px 0 8px;
}
.keepsake-price small { font: 600 0.8rem var(--sans); color: var(--muted); }
.keepsake-perks { margin: 8px 0 14px; padding-left: 1.2em; font-size: 0.9rem; color: var(--ink-soft); }
.keepsake-perks li { margin-bottom: 4px; }

/* ---------------- Composer Tools, Recorder & Song Search ---------------- */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 8px 0 12px; }
.tool {
  border: 1.5px solid rgba(112, 78, 58, 0.24); background: #fffdf9; border-radius: 14px;
  padding: 10px 6px; cursor: pointer; font: 700 0.86rem var(--sans); color: var(--ink);
  display: grid; gap: 2px; justify-items: center;
}
.tool .e { font-size: 1.35rem; }
.tool.on { background: var(--gold-bg); border-color: var(--cranberry); }
.ideas { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 12px; }
.ideas button {
  border: 1px dashed rgba(112, 78, 58, 0.35); background: #fffdf9; border-radius: 999px;
  padding: 5px 11px; font-size: 0.81rem; font-weight: 600; cursor: pointer; color: var(--ink-soft);
}
.ideas button:hover { background: var(--gold-bg); color: var(--ink); }
.attach { background: var(--parchment); border: 1px solid rgba(112, 78, 58, 0.22); border-radius: 14px; padding: 13px; margin-bottom: 12px; }
.rec { display: flex; align-items: center; gap: 12px; }
.rec-btn {
  width: 58px; height: 58px; border-radius: 50%; border: 0;
  background: linear-gradient(180deg, #c2263b, #8d1425); color: #fff; font-size: 1.35rem; cursor: pointer; flex: none;
  box-shadow: 0 6px 16px rgba(141, 20, 37, 0.32);
}
.rec-btn.live { animation: pulse 1s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(194, 38, 59, 0.25); } }
.wave { display: flex; align-items: center; gap: 2px; height: 40px; flex: 1; }
.wave i { flex: 1; background: var(--cranberry); border-radius: 2px; min-height: 3px; }
.songs { display: grid; gap: 7px; margin-top: 8px; max-height: 260px; overflow: auto; }
.song-result {
  display: grid; grid-template-columns: 40px minmax(0,1fr) auto auto; gap: 6px; align-items: center; background: #fffdf9;
  border: 1px solid rgba(112, 78, 58, 0.22); border-radius: 12px; padding: 6px; color: var(--ink);
}
.song-result img { width: 40px; height: 40px; border-radius: 8px; }
.song-result b, .song-result small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-result b { font-size: .86rem; }
.song-result small { color: var(--muted); }
.song-result .am { color: var(--pine); border-color: rgba(22, 59, 47, .25); padding-inline: 5px; font-size: .66rem; }
.song-result button { min-height: 40px; border-radius: 8px; border: 1px solid rgba(112, 78, 58, .24); font-weight: 700; cursor: pointer; }
.song-play { min-width: 40px; background: var(--pine); color: #fff8eb; }
.song-add { background: #fffdf7; color: var(--ink); padding-inline: 7px; }
.song-result.sel, .song-result.playing { background: var(--gold-bg); border-color: var(--gold-deep); }
.song-result.sel .song-add { border-color: var(--cranberry); }
.am {
  display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: 600;
  color: #fcebc4; text-decoration: none; border: 1px solid rgba(236, 196, 112, 0.4);
  border-radius: 999px; padding: 2px 9px; background: rgba(255, 255, 255, 0.08); margin-top: 3px;
}

/* ---------------- Marketing, Prose, FAQ & CTA Sections ---------------- */
.sec { padding: 52px 0 12px; }
.sec .kicker {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.12em;
  font: 700 0.72rem var(--sans); color: var(--cranberry);
  background: rgba(174, 31, 51, 0.08); border: 1px solid rgba(174, 31, 51, 0.22);
  border-radius: 999px; padding: 3px 11px; margin-bottom: 12px;
}
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; padding: 0; list-style: none; }
.steps li {
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; counter-increment: s; box-shadow: var(--shadow-sm);
}
.steps li::before {
  content: '0' counter(s); display: inline-block; font: 800 0.74rem var(--sans);
  padding: 3px 10px; border-radius: 999px; background: var(--gold-bg); color: var(--cranberry);
  border: 1px solid rgba(201, 146, 53, 0.4); margin-bottom: 10px;
}
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0; list-style: none; }
.feats li {
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.feats .e {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; background: var(--gold-bg); border: 1px solid rgba(201, 146, 53, 0.35);
  font-size: 1.35rem; margin-bottom: 10px;
}
@media (max-width: 860px) { .steps, .feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .steps, .feats { grid-template-columns: 1fr; } }

.prose { max-width: 740px; }
.prose h2 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.faq details {
  background: var(--ivory); border: 1px solid var(--line); border-radius: 15px;
  padding: 15px 18px; margin: 10px 0; box-shadow: var(--shadow-sm);
}
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); }

.cta {
  margin-top: 44px;
  background: radial-gradient(700px 300px at 50% 0%, #4d1527 0%, #1d070f 100%);
  color: #faefd9;
  border: 1.5px solid rgba(236, 196, 112, 0.38);
  border-radius: 26px; padding: 42px 28px; text-align: center;
  box-shadow: 0 22px 54px rgba(24, 6, 12, 0.25);
}
.cta h2 { color: #fcf3e3; }
.cta p { color: rgba(248, 236, 216, 0.8); }

/* ---------------- Keepsake Playback Sheet Modal (Above 3D Stage!) ---------------- */
.overlay {
  position: fixed; inset: 0; z-index: 98;
  background: rgba(16, 4, 9, 0.76);
  backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: 16px; overflow: auto;
}
.sheet {
  background: linear-gradient(180deg, #fffdf9 0%, #f5ead6 100%);
  border: 1.5px solid rgba(201, 146, 53, 0.5);
  border-radius: 26px;
  width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 24px;
  position: relative;
  color: var(--ink);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.6);
}
.sheet .x {
  position: absolute; right: 14px; top: 12px; width: 34px; height: 34px;
  border-radius: 50%; background: var(--parchment); border: 1px solid rgba(112, 78, 58, 0.25);
  font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--ink);
}
.gift {
  background: #fffdf9; border: 1px solid rgba(112, 78, 58, 0.2); border-radius: 18px;
  padding: 16px; margin: 12px 0; box-shadow: var(--shadow-sm);
}
.gift .from { font-weight: 800; color: var(--cranberry); font-size: 0.95rem; }
.gift .note {
  white-space: pre-wrap;
  font: 600 1.35rem/1.35 var(--hand);
  color: var(--ink);
  margin: 8px 0 10px;
}
.polaroid {
  background: #fff; border: 1px solid rgba(112, 78, 58, 0.2); padding: 10px 10px 38px;
  box-shadow: 0 10px 26px rgba(32, 12, 18, 0.16); transform: rotate(-1.5deg);
  width: min(300px, 90%); margin: 12px auto; position: relative;
}
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; animation: develop 2.2s ease-out; }
.polaroid figcaption {
  position: absolute; left: 0; right: 0; bottom: 7px; text-align: center;
  font: 700 1.15rem var(--hand); color: var(--ink);
}
@keyframes develop { from { filter: brightness(0.15) sepia(1) blur(2px); } to { filter: none; } }

.player {
  display: flex; align-items: center; gap: 10px; background: var(--parchment);
  border: 1px solid rgba(112, 78, 58, 0.22); border-radius: 14px; padding: 8px 10px; margin: 8px 0;
}
.player button {
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: linear-gradient(180deg, #c2263b, #8d1425); color: #fff; cursor: pointer; flex: none; font-size: 0.95rem;
}
.songcard {
  display: flex; gap: 12px; align-items: center;
  background: linear-gradient(135deg, #230912, #11241d); color: #faefd9;
  border: 1px solid rgba(236, 196, 112, 0.34); border-radius: 15px; padding: 10px 12px; margin: 8px 0;
}
.songcard img { width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid var(--gold); animation: spin 6s linear infinite; animation-play-state: paused; }
.songcard.playing img { animation-play-state: running; }

/* Offline archive: all content remains usable without WebGL or scripts. */
body:has(.archive-page) { background: radial-gradient(ellipse at 28% 0%, #4b1928, #160b13 74%); min-height: 100vh; }
.archive-page { color: #faedd0; }
.archive-page .kicker { color: #efd18b; }
.archive-intro { text-align: center; max-width: 66ch; margin: 0 auto 20px; }
.archive-grid { display: grid; gap: 20px; }
@media (min-width: 901px) { .archive-grid:has(#archive-cabinet:not([hidden])) { grid-template-columns: 1.15fr minmax(0, 1fr); align-items: start; } }
.archive-door { color: var(--ink); margin-bottom: 12px; scroll-margin-top: 12px; }
.archive-door summary { cursor: pointer; font-weight: 800; }
.archive-door .gift { margin-top: 12px; }
.archive-door audio { width: 100%; max-width: 360px; }
.archive-door .polaroid img { animation: none; }
.songcard .t { flex: 1; min-width: 0; }
.songcard b, .songcard small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.songcard small { color: rgba(248, 236, 216, 0.72); }
.songcard button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--gold); color: #261206; font-weight: 800; cursor: pointer; }
@keyframes spin { to { transform: rotate(360deg); } }

.blur { filter: blur(14px); pointer-events: none; user-select: none; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: rgba(26, 7, 14, 0.95); color: #fcecc9;
  border: 1px solid rgba(236, 196, 112, 0.5);
  padding: 11px 20px; border-radius: 999px; z-index: 115;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  max-width: 92vw; text-align: center; font-weight: 600;
}
.poster-view img { width: min(320px, 80vw); margin: 0 auto 12px; border-radius: 12px; border: 1px solid var(--line); }
.demo-box-banner {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 14px; margin: 4px 0 12px;
  background: var(--parchment); border: 1px solid rgba(112, 78, 58, 0.22); border-radius: 16px;
}
.demo-box-banner .wrap-glyph { flex: none; }
.demo-tier-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.mine-list { display: grid; gap: 10px; }

/* ---------------- Cookie Consent Banner ---------------- */
.consent {
  position: fixed; right: 16px; bottom: 16px; z-index: 80;
  width: min(410px, calc(100vw - 32px));
  background: var(--ivory); color: var(--ink);
  border: 1px solid rgba(201, 146, 53, 0.45);
  border-radius: 18px; padding: 15px 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28); font-size: 0.88rem;
}
.consent p { margin: 0 0 10px; line-height: 1.45; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consent-btn { padding: 9px 14px; font-size: 0.89rem; }

/* ---------------- Floating Time-Travel Debug Pill (Authorized QA Only) ---------------- */
body:has(.fmg-unwrap-stage.active) .dbg-pill {
  opacity: 0;
  pointer-events: none;
}
.dbg-pill {
  transition: opacity 0.2s ease;
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 105;
  width: min(320px, calc(100vw - 28px));
  background: rgba(20, 7, 13, 0.94);
  color: #faeed6;
  border: 1.5px solid rgba(243, 204, 118, 0.55);
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(12px);
  font: 13px/1.4 var(--sans);
}
.dbg-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: none;
  border: 0;
  color: inherit;
  padding: 10px 13px;
  cursor: pointer;
  font: inherit;
}
.dbg-toggle span { font-weight: 800; color: #f6d588; letter-spacing: 0.05em; font-size: 0.72rem; }
.dbg-toggle b { font-size: 0.82rem; }
.dbg-toggle small { color: rgba(250, 238, 214, 0.72); font-size: 0.75rem; }
.dbg-body {
  padding: 4px 13px 13px;
  border-top: 1px solid rgba(243, 204, 118, 0.2);
  display: grid;
  gap: 10px;
}
.dbg-sec > span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(250, 238, 214, 0.68);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.dbg-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.dbg-seg button {
  border: 1px solid rgba(243, 204, 118, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #faeed6;
  border-radius: 8px;
  padding: 6px 4px;
  font: 700 0.75rem var(--sans);
  cursor: pointer;
}
.dbg-seg button.on {
  background: linear-gradient(180deg, #f6d88e, #cf973a);
  color: #261205;
  border-color: #fde9b2;
}
.dbg-range { display: block; margin-top: 7px; font-size: 0.78rem; }
.dbg-range input[type='range'] { width: 100%; accent-color: #ecc470; margin-top: 4px; }
.dbg-chk { display: flex; align-items: center; gap: 8px; font-size: 0.79rem; cursor: pointer; }
.dbg-chk input { accent-color: #ecc470; }
.dbg-actions { display: grid; gap: 6px; }
.dbg-btn {
  border: 1px solid rgba(243, 204, 118, 0.3);
  border-radius: 10px;
  padding: 8px 10px;
  font: 700 0.8rem var(--sans);
  cursor: pointer;
}
.dbg-btn.primary { background: linear-gradient(180deg, #c2263b, #8d1425); color: #fff; border-color: rgba(255, 220, 150, 0.4); }
.dbg-btn.gold { background: linear-gradient(180deg, #f7dd97, #d29a3b); color: #261205; }
.dbg-btn.ghost { background: transparent; color: rgba(250, 238, 214, 0.72); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
