/* Self-hosted Latin WOFF2 Fonts */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 500 700;
  font-display: swap;
  src: url(/_a/bodoni-moda-italic-500-700-latin.b737328c13.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(/_a/bodoni-moda-normal-500-800-latin.c032219ef6.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_a/dm-mono-normal-400-latin.e1896b13b2.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_a/dm-mono-normal-500-latin.9964608a84.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_a/manrope-normal-400-latin.8c2def024c.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_a/manrope-normal-500-latin.8c2def024c.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_a/manrope-normal-600-latin.8c2def024c.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_a/manrope-normal-700-latin.8c2def024c.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/_a/manrope-normal-800-latin.8c2def024c.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Midnight With Friends: Gilded Deco Horology
   Black lacquer, brushed brass, ivory invitation stock. */
:root {
  --c-ink: #07070c;
  --c-lacquer: #11121b;
  --c-panel: #1a1b28;
  --c-brass: #e6c27a;
  --c-brass-deep: #a07a3a;
  --c-ivory: #f7f0e1;
  --c-muted: #aaa6b8;
  --c-teal: #62e0c4;
  --c-crimson: #e4566e;
  --c-violet: #a090ff;
  --c-rose: #f4a3c9;
  --c-champagne: #ebd7ae;

  --bg: var(--c-ink);
  --surface: var(--c-lacquer);
  --surface-2: var(--c-panel);
  --fg: var(--c-ivory);
  --fg-muted: var(--c-muted);
  --line: rgba(230, 194, 122, 0.2);
  --line-strong: rgba(230, 194, 122, 0.55);
  --gold: var(--c-brass);
  --gold-ink: var(--c-ink);

  --t-accent: var(--c-brass);
  --t-accent-2: var(--c-champagne);
  --t-glow: rgba(230, 194, 122, 0.22);
  --t-sky-a: rgba(160, 122, 58, 0.2);
  --t-sky-b: rgba(160, 144, 255, 0.08);

  --btn-bg: var(--t-accent);
  --btn-fg: var(--c-ink);

  --shadow-1: 0 2px 6px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 24px 60px rgba(0, 0, 0, 0.55);
  --radius: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Bodoni Moda", "Didot", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

[hidden] {
  display: none !important;
}

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

html {
  scroll-behavior: smooth;
}

body.mwf-body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--t-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1, h2, h3, h4 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--fg);
}

h1 { font-size: clamp(36px, 4.4vw, 56px); }
h2 { font-size: clamp(28px, 2.8vw, 36px); margin-top: 48px; }
h3 { font-size: 22px; margin-top: 32px; }

p {
  margin: 0 0 16px;
  color: var(--fg-muted);
}

strong { color: var(--fg); }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 8px 16px;
  background: var(--c-brass);
  color: var(--c-ink);
  border-radius: var(--radius);
  font-weight: 700;
  z-index: 200;
}

.skip-link:focus { left: 12px; }

:focus-visible {
  outline: 2px solid var(--t-accent);
  outline-offset: 3px;
}

.mwf-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Theme skins (data-theme) ---------- */
[data-theme="champagne-velvet"] {
  --t-accent: var(--c-champagne);
  --t-accent-2: var(--c-rose);
  --t-glow: rgba(235, 215, 174, 0.26);
  --t-sky-a: rgba(244, 163, 201, 0.16);
  --t-sky-b: rgba(235, 215, 174, 0.12);
}

[data-theme="aurora-midnight"] {
  --t-accent: var(--c-teal);
  --t-accent-2: var(--c-violet);
  --t-glow: rgba(98, 224, 196, 0.24);
  --t-sky-a: rgba(98, 224, 196, 0.18);
  --t-sky-b: rgba(160, 144, 255, 0.16);
}

[data-theme="crimson-velvet"] {
  --t-accent: var(--c-crimson);
  --t-accent-2: var(--c-brass);
  --t-glow: rgba(228, 86, 110, 0.26);
  --t-sky-a: rgba(228, 86, 110, 0.22);
  --t-sky-b: rgba(230, 194, 122, 0.08);
}

[data-theme="royal-gala"] {
  --t-accent: var(--c-violet);
  --t-accent-2: var(--c-brass);
  --t-glow: rgba(160, 144, 255, 0.26);
  --t-sky-a: rgba(160, 144, 255, 0.22);
  --t-sky-b: rgba(230, 194, 122, 0.1);
}

[data-theme="prism-spark"] {
  --t-accent: var(--c-rose);
  --t-accent-2: var(--c-teal);
  --t-glow: rgba(244, 163, 201, 0.26);
  --t-sky-a: rgba(244, 163, 201, 0.2);
  --t-sky-b: rgba(98, 224, 196, 0.16);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 7, 12, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
}

.brand:hover { text-decoration: none; }

.brand-mark {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line-strong);
}

.brand-mark svg,
.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.01em;
}

.brand-sub {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-brass);
}

.main-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.main-nav a {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-muted);
  border-radius: var(--radius);
  transition: color 160ms var(--ease), background-color 160ms var(--ease);
}

.main-nav a:hover {
  color: var(--fg);
  background: rgba(230, 194, 122, 0.08);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sparks-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font: 600 14px var(--font-body);
  cursor: pointer;
}

.sparks-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-brass);
  box-shadow: 0 0 10px var(--c-brass);
}

.pay-status-wrap:empty { display: none; }

.pay-banner {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--fg);
  font-size: 14px;
}

.pay-banner.is-success { border-color: var(--c-teal); }
.pay-banner.is-pending { border-color: var(--c-brass); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 700 14px/1.2 var(--font-body);
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), background-color 160ms var(--ease), border-color 160ms var(--ease);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: progress;
  transform: none;
}

.btn-sm {
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: 0 8px 24px var(--t-glow);
}

.btn-gold {
  background: linear-gradient(120deg, var(--c-brass-deep), var(--c-brass) 38%, var(--c-champagne) 52%, var(--c-brass) 66%, var(--c-brass-deep));
  background-size: 220% 100%;
  color: var(--c-ink);
  border-color: rgba(7, 7, 12, 0.2);
}

.btn-gold:hover {
  background-position: 100% 0;
}

.btn-outline {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-strong);
}

.btn-outline:hover {
  border-color: var(--t-accent);
}

.btn-danger {
  background: var(--c-crimson);
  color: var(--c-ink);
}

.link-btn {
  background: none;
  border: 0;
  padding: 8px 0;
  min-height: 44px;
  color: inherit;
  font: 600 14px var(--font-body);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- Home hero: open midnight ballroom ---------- */
.hero-band {
  position: relative;
  padding: 36px 0 80px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(58% 58% at 70% 40%, var(--t-sky-a), transparent 72%),
    radial-gradient(42% 42% at 6% 96%, var(--t-sky-b), transparent 70%),
    linear-gradient(180deg, rgba(7, 7, 12, 1), rgba(14, 15, 24, 1) 72%, rgba(7, 7, 12, 1));
  transition: background 600ms var(--ease);
}

.hero-band .mwf-container,
.capsule-shell .mwf-container {
  max-width: 1400px;
}

.bokeh,
.hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 54% 14%, rgba(230, 194, 122, 0.3) 0 9px, rgba(230, 194, 122, 0.07) 10px 24px, transparent 25px),
    radial-gradient(circle at 63% 30%, rgba(247, 240, 225, 0.22) 0 6px, rgba(247, 240, 225, 0.05) 7px 16px, transparent 17px),
    radial-gradient(circle at 86% 18%, rgba(230, 194, 122, 0.26) 0 12px, rgba(230, 194, 122, 0.06) 13px 30px, transparent 31px),
    radial-gradient(circle at 92% 52%, rgba(247, 240, 225, 0.18) 0 7px, rgba(247, 240, 225, 0.04) 8px 20px, transparent 21px),
    radial-gradient(circle at 78% 78%, rgba(230, 194, 122, 0.22) 0 10px, rgba(230, 194, 122, 0.05) 11px 26px, transparent 27px),
    radial-gradient(circle at 46% 70%, rgba(247, 240, 225, 0.16) 0 5px, rgba(247, 240, 225, 0.04) 6px 14px, transparent 15px),
    radial-gradient(circle at 58% 90%, rgba(230, 194, 122, 0.2) 0 8px, rgba(230, 194, 122, 0.05) 9px 20px, transparent 21px),
    radial-gradient(circle at 72% 8%, rgba(247, 240, 225, 0.2) 0 5px, transparent 6px);
  animation: bokeh-drift 18s ease-in-out infinite alternate;
  z-index: -1;
}

@keyframes bokeh-drift {
  from { transform: translateY(0); }
  to { transform: translateY(-14px); }
}

.hero-sunburst {
  position: absolute;
  left: 70%;
  top: 42%;
  width: 1700px;
  height: 1700px;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg, rgba(230, 194, 122, 0.075) 0deg 1.6deg, transparent 1.6deg 9deg);
  -webkit-mask: radial-gradient(circle, rgba(0, 0, 0, 1) 0 16%, rgba(0, 0, 0, 0) 54%);
  mask: radial-gradient(circle, rgba(0, 0, 0, 1) 0 16%, rgba(0, 0, 0, 0) 54%);
  pointer-events: none;
  z-index: -1;
  animation: sunburst-turn 260s linear infinite;
}

@keyframes sunburst-turn {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-plate {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 70%;
  margin: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse 56% 66% at 50% 50%, rgba(0, 0, 0, 0) 0 88%, rgba(0, 0, 0, 1) 100%);
  mask-image: radial-gradient(ellipse 56% 66% at 50% 50%, rgba(0, 0, 0, 0) 0 88%, rgba(0, 0, 0, 1) 100%);
}

.hero-plate::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(46% 62% at 50% 50%, rgba(7, 7, 12, 0.62), transparent 100%),
    linear-gradient(90deg, rgba(7, 7, 12, 1), rgba(7, 7, 12, 0) 42%),
    linear-gradient(0deg, rgba(7, 7, 12, 1), rgba(7, 7, 12, 0) 24%),
    linear-gradient(180deg, rgba(7, 7, 12, 0.8), rgba(7, 7, 12, 0) 20%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  grid-template-areas:
    "copy stage"
    "form stage";
  grid-template-rows: auto 1fr;
  gap: 28px 64px;
  align-items: start;
}

.hero-copy { grid-area: copy; }
.hero-stage { grid-area: stage; }
.creator-card { grid-area: form; }

.creator-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.creator-specs span {
  padding: 5px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(230, 194, 122, 0.08);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-champagne);
}

.hero-copy h1 {
  max-width: none;
  margin-bottom: 18px;
  font-size: clamp(34px, 3.3vw, 52px);
  line-height: 1.06;
  text-wrap: balance;
  background: linear-gradient(180deg, var(--c-ivory) 30%, var(--c-champagne) 70%, var(--c-brass));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--c-ivory);
}

.creator-lead {
  max-width: 46ch;
  font-size: 18px;
  color: var(--fg-muted);
  margin: 0;
}

/* Stage: the open ballroom floor */
.hero-stage {
  position: relative;
  container-type: inline-size;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 0;
  padding: 8px 0 0;
  isolation: isolate;
}

.hero-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -64px;
  width: 86%;
  height: 100%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 0, rgba(247, 240, 225, 0.2), transparent 64%);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  pointer-events: none;
  z-index: -1;
}

.stage-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  width: 100%;
  padding: 0 4px;
}

.stage-pill {
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(7, 7, 12, 0.55);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-champagne);
}

.preview-theme-label {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 20px;
  color: var(--t-accent);
  transition: color 400ms var(--ease);
}

/* The 21-glass tower preview */
.preview-grid {
  --cw: min(124px, calc(100cqw / 6.5));
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: calc(var(--cw) * 0.5);
}

.preview-slot {
  position: relative;
  isolation: isolate;
  width: var(--cw);
  flex: none;
}

.preview-grid .tower-tier {
  gap: calc(var(--cw) * 0.07);
  position: relative;
  z-index: calc(8 - var(--tier));
}

.preview-grid .tower-tier + .tower-tier {
  margin-top: calc(var(--cw) * -0.2);
}

.preview-slot .slot-num {
  left: 18%;
  width: 64%;
  top: 25%;
  height: 22%;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--num-fg, var(--c-ivory));
  text-shadow: 0 1px 2px rgba(7, 7, 12, 0.55);
  z-index: 3;
}

.preview-slot[data-state="sealed"] .slot-num { --num-fg: var(--c-ink); text-shadow: none; }

.preview-slot.is-finale .slot-tag {
  position: absolute;
  left: 50%;
  top: calc(var(--cw) * -0.34);
  transform: translateX(-50%);
  padding: 3px 12px;
  border: 1px solid var(--c-brass);
  border-radius: 999px;
  background: rgba(7, 7, 12, 0.85);
  font: 500 12px/1.2 var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--c-champagne);
  white-space: nowrap;
  z-index: 4;
}

.preview-grid.is-swapping .preview-slot[data-state="sealed"] .coupe {
  animation: slot-flare 800ms var(--ease) both;
  animation-delay: calc(var(--i, 1) * 24ms);
}

.preview-slot:nth-child(1) { --i: 1; }
.preview-slot:nth-child(2) { --i: 2; }
.preview-slot:nth-child(3) { --i: 3; }
.preview-slot:nth-child(4) { --i: 4; }
.preview-slot:nth-child(5) { --i: 5; }
.preview-slot:nth-child(6) { --i: 6; }

@keyframes slot-flare {
  0% { filter: brightness(1); }
  40% { filter: brightness(1.7) drop-shadow(0 0 14px var(--t-glow)); }
  100% { filter: brightness(1); }
}

/* Mirrored obsidian-marble and brushed-brass pedestal */
.tower-pedestal {
  --ped-in: 24px;
  position: relative;
  width: min(100%, 880px);
  margin: 6px auto 0;
}

.tower-pedestal::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 100%;
  height: 56px;
  background: linear-gradient(180deg, rgba(230, 194, 122, 0.18), transparent);
  filter: blur(8px);
  pointer-events: none;
}

.ped-cap {
  height: 14px;
  border-radius: 14px 14px 2px 2px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, var(--c-champagne), var(--c-brass) 46%, var(--c-brass-deep));
  box-shadow: 0 -8px 28px var(--t-glow);
}

.ped-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 28px 18px;
  background:
    linear-gradient(to top right, transparent calc(50% + 0.2px), var(--line-strong) calc(50% + 0.8px), transparent calc(50% + 1.8px)) left top / var(--ped-in) 100% no-repeat,
    linear-gradient(to top left, transparent calc(50% + 0.2px), var(--line-strong) calc(50% + 0.8px), transparent calc(50% + 1.8px)) right top / var(--ped-in) 100% no-repeat,
    linear-gradient(112deg, transparent 28%, rgba(247, 240, 225, 0.09) 34%, transparent 41%),
    linear-gradient(64deg, transparent 56%, rgba(230, 194, 122, 0.12) 59%, transparent 63%),
    linear-gradient(180deg, rgba(26, 27, 40, 0.98), rgba(7, 7, 12, 0.98));
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--ped-in)) 100%, var(--ped-in) 100%);
}

.ped-base {
  width: calc(100% - 2 * var(--ped-in));
  height: 8px;
  margin: 0 auto;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, var(--c-brass), var(--c-brass-deep));
}

.plaque-label,
.countdown-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-champagne);
}

.stage-countdown,
.countdown-clock {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--t-accent);
  white-space: nowrap;
  text-shadow: 0 0 22px var(--t-glow);
  transition: color 400ms var(--ease);
}
/* Invitation card (create form) */
.creator-card {
  position: relative;
  padding: 32px;
  border: 1px solid rgba(230, 194, 122, 0.55);
  border-radius: 16px;
  background: rgba(14, 15, 24, 0.82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  color: var(--fg);
  box-shadow:
    inset 0 0 0 5px rgba(7, 7, 12, 0.55),
    inset 0 0 0 6px rgba(230, 194, 122, 0.3),
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 70px var(--t-glow);
}

.creator-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(247, 240, 225, 0.1), transparent 32%);
  pointer-events: none;
}

.creator-card p { color: var(--fg-muted); }

.creator-card .btn-primary {
  background: linear-gradient(115deg, var(--c-brass-deep), var(--c-brass) 28%, var(--c-champagne) 50%, var(--c-brass) 72%, var(--c-brass-deep));
  background-size: 220% 100%;
  color: var(--c-ink);
  min-height: 52px;
  font-size: 16px;
  box-shadow: 0 10px 34px rgba(230, 194, 122, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.creator-card .btn-primary:hover { background-position: 100% 0; }

.creator-card p { color: var(--fg-muted); }

.create-form,
.fill-form,
.recover-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field-group label,
.field-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  font: 500 16px/1.5 var(--font-body);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}

.creator-card input[type="text"] {
  background: rgba(7, 7, 12, 0.6);
  border-color: rgba(230, 194, 122, 0.4);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.modal-card input[type="text"],
.modal-card textarea,
.code-portal-card input[type="text"] {
  background: rgba(255, 255, 255, 0.55);
}

input::placeholder,
textarea::placeholder {
  color: var(--fg-muted);
  opacity: 0.8;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--c-brass-deep);
  box-shadow: 0 0 0 3px rgba(230, 194, 122, 0.35);
}

.theme-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.theme-chip {
  --sw-a: var(--c-ink);
  --sw-b: var(--c-brass);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--fg);
  font: 700 12px/1.2 var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}

.theme-chip::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sw-a) 0 50%, var(--sw-b) 50% 100%);
  box-shadow: 0 0 0 1px var(--line-strong);
}

.theme-chip[data-mwf-theme="champagne-velvet"], .theme-chip[data-mwf-live-theme="champagne-velvet"] { --sw-a: var(--c-champagne); --sw-b: var(--c-rose); }
.theme-chip[data-mwf-theme="aurora-midnight"], .theme-chip[data-mwf-live-theme="aurora-midnight"] { --sw-a: var(--c-teal); --sw-b: var(--c-violet); }
.theme-chip[data-mwf-theme="crimson-velvet"], .theme-chip[data-mwf-live-theme="crimson-velvet"] { --sw-a: var(--c-crimson); --sw-b: var(--c-brass); }
.theme-chip[data-mwf-theme="royal-gala"], .theme-chip[data-mwf-live-theme="royal-gala"] { --sw-a: var(--c-violet); --sw-b: var(--c-brass); }
.theme-chip[data-mwf-theme="prism-spark"], .theme-chip[data-mwf-live-theme="prism-spark"] { --sw-a: var(--c-rose); --sw-b: var(--c-teal); }

.theme-chip:hover { border-color: var(--fg); }

.theme-chip.is-selected {
  background: rgba(230, 194, 122, 0.16);
  color: var(--c-ivory);
  border-color: var(--c-brass);
  box-shadow: 0 0 0 1px var(--c-brass), 0 0 22px rgba(230, 194, 122, 0.3);
}

.creator-card .theme-chip { background: rgba(7, 7, 12, 0.5); }
.creator-card .theme-chip.is-selected { background: rgba(230, 194, 122, 0.16); }

.pw-details {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.pw-details summary {
  min-height: 32px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  color: var(--fg);
}

.pw-inner { margin-top: 12px; }

.form-status {
  min-height: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

.form-status:empty { display: none; }

.form-status.is-error {
  padding-left: 12px;
  border-left: 3px solid var(--c-crimson);
}

.creator-foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.code-shortcut {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-champagne);
  text-decoration: underline;
  text-decoration-color: var(--c-brass);
  text-underline-offset: 4px;
}

.origin-badge {
  margin: 8px 0 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.deco-divider {
  display: flex;
  justify-content: center;
  height: 0;
  position: relative;
  z-index: 3;
}

.deco-divider span {
  width: 18px;
  height: 18px;
  margin-top: -9px;
  transform: rotate(45deg);
  background: var(--bg);
  border: 1px solid var(--c-brass);
  box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px var(--line-strong);
}

/* ---------- Editorial, FAQ ---------- */
.editorial-band {
  padding: 72px 0 48px;
  background:
    linear-gradient(180deg, var(--surface), var(--bg) 70%);
  border-top: 1px solid var(--line);
}

.editorial-wrap {
  max-width: 808px;
}

.prose-article {
  font-size: 17px;
  line-height: 1.75;
}

.prose-article > h2:first-child { margin-top: 0; }

.prose-article h2 {
  position: relative;
  padding-top: 24px;
}

.prose-article h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 64px;
  height: 1px;
  background: var(--c-brass);
  box-shadow: 72px 0 0 var(--line-strong);
}

.prose-article p,
.prose-article li {
  color: var(--fg-muted);
  max-width: 70ch;
}

.prose-article strong { color: var(--fg); }

.prose-article code {
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: rgba(230, 194, 122, 0.08);
  color: var(--c-brass);
  font: 500 0.9em var(--font-mono);
}

.prose-article ol {
  list-style: none;
  counter-reset: deco;
  padding: 0;
  margin: 0 0 24px;
}

.prose-article ol > li {
  counter-increment: deco;
  position: relative;
  padding: 0 0 16px 56px;
  margin: 0 0 16px;
  border-bottom: 1px solid var(--line);
}

.prose-article ol > li::before {
  content: counter(deco, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  color: var(--c-brass);
}

.prose-article ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.prose-article ul > li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}

.prose-article ul > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  border: 1px solid var(--c-brass);
  background: rgba(230, 194, 122, 0.25);
}

.prose-article table {
  width: 100%;
  margin: 24px 0 32px;
  border-collapse: collapse;
  font-size: 14px;
  display: block;
  overflow-x: auto;
}

.prose-article th,
.prose-article td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--fg-muted);
}

.prose-article th {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-brass);
  border-bottom: 1px solid var(--line-strong);
}

.prose-article blockquote {
  margin: 24px 0;
  padding: 16px 24px;
  border-left: 2px solid var(--c-brass);
  background: rgba(230, 194, 122, 0.06);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--fg);
}

.page-faq { margin-top: 56px; }

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  display: block;
  padding: 20px 48px 20px 0;
  min-height: 44px;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  color: var(--fg);
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border: 1px solid var(--c-brass);
  transform: rotate(45deg);
  transition: background-color 200ms var(--ease), transform 200ms var(--ease);
}

.faq-item[open] summary::after {
  background: var(--c-brass);
  transform: rotate(225deg);
}

.faq-body p {
  padding: 0 0 20px;
  margin: 0;
  max-width: 70ch;
}

/* ---------- Comments ---------- */
.comments-band {
  padding: 48px 0 72px;
  border-top: 1px solid var(--line);
}

.section-intro h2 { margin-top: 0; }
.section-sub { margin-bottom: 24px; }

.composer {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
}

.reply-context {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--c-brass);
}

.composer.is-replying .reply-context { display: flex; }

.composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.sign-off { flex: 1; min-width: 0; }

.comment-msg:empty { display: none; }
.comment-msg { font-size: 14px; margin: 12px 0 0; }

.comments .closed { display: none; }
.comments.is-closed .closed { display: block; }
.comments.is-closed .empty { display: none; }

.comment {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.comment header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 8px;
}

.comment time {
  font-size: 12px;
  color: var(--fg-muted);
}

.owner-badge {
  display: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--c-brass);
  color: var(--c-ink);
  font-size: 12px;
  font-weight: 800;
}

.comment.is-owner .owner-badge { display: inline-block; }

.comment-body { margin-bottom: 8px; color: var(--fg); }
.reply-target:empty { display: none; }
.reply-target { font-size: 12px; margin-bottom: 4px; }

.btn-reply {
  background: none;
  border: 0;
  min-height: 32px;
  padding: 0;
  color: var(--c-brass);
  font: 700 14px var(--font-body);
  cursor: pointer;
}

.replies {
  margin-top: 12px;
  padding-left: 16px;
  border-left: 1px solid var(--line-strong);
}

/* ---------- Capsule board ---------- */
.capsule-shell {
  position: relative;
  padding: 40px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(70% 45% at 85% 0%, var(--t-sky-a), transparent 70%),
    radial-gradient(60% 40% at 0% 100%, var(--t-sky-b), transparent 70%),
    var(--bg);
  transition: background 600ms var(--ease);
}

.capsule-shell::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -700px;
  width: 1400px;
  height: 1400px;
  margin-left: -700px;
  background: repeating-conic-gradient(from 0deg, rgba(230, 194, 122, 0.05) 0deg 2deg, transparent 2deg 12deg);
  -webkit-mask: radial-gradient(circle, rgba(0, 0, 0, 1) 0 20%, rgba(0, 0, 0, 0) 50%);
  mask: radial-gradient(circle, rgba(0, 0, 0, 1) 0 20%, rgba(0, 0, 0, 0) 50%);
  pointer-events: none;
}

.capsule-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.capsule-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
}

.capsule-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.role-badge,
.golden-badge,
.progress-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  color: var(--fg);
}

.role-badge { color: var(--t-accent); border-color: var(--t-accent); }

.golden-badge {
  background: linear-gradient(120deg, var(--c-brass-deep), var(--c-brass), var(--c-champagne), var(--c-brass));
  color: var(--c-ink);
  border-color: transparent;
}

.progress-badge { font-family: var(--font-mono); letter-spacing: 0.02em; text-transform: none; }

.capsule-identity h1 {
  max-width: 20ch;
  font-size: clamp(32px, 4vw, 48px);
}

.cap-tagline {
  max-width: 60ch;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--fg-muted);
  margin: 0;
}

.cap-tagline:empty { display: none; }


.capsule-utility-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.action-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: rgba(17, 18, 27, 0.9);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}

.action-row-main,
.owner-controls-strip,
.friend-btn-row,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blocked-link-strip {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 16px 24px;
  background: var(--c-ivory);
  color: var(--c-ink);
  border-radius: var(--radius);
  --fg: var(--c-ink);
  --line-strong: rgba(7, 7, 12, 0.42);
  -webkit-mask: radial-gradient(circle 9px at 0 50%, rgba(0, 0, 0, 0) 98%, rgba(0, 0, 0, 1)) left / 51% 100% no-repeat,
    radial-gradient(circle 9px at 100% 50%, rgba(0, 0, 0, 0) 98%, rgba(0, 0, 0, 1)) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 9px at 0 50%, rgba(0, 0, 0, 0) 98%, rgba(0, 0, 0, 1)) left / 51% 100% no-repeat,
    radial-gradient(circle 9px at 100% 50%, rgba(0, 0, 0, 0) 98%, rgba(0, 0, 0, 1)) right / 51% 100% no-repeat;
}

.code-callout {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.code-callout-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(7, 7, 12, 0.74);
}

.code-callout-val {
  font-size: 28px;
  letter-spacing: 0.14em;
  color: var(--c-ink);
}

.inline-feedback { margin: 0; font-size: 14px; color: var(--fg); }
.inline-feedback:empty { display: none; }

.friend-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.friend-cta-title {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
}

.friend-quota {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--t-accent);
  font-weight: 700;
}

.board-status-banner {
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--t-accent);
  border-radius: var(--radius);
  background: rgba(7, 7, 12, 0.7);
  color: var(--fg);
  font-size: 14px;
}

/* ---------- Capsule board: the 21-glass champagne tower ---------- */
.tower-stage {
  position: relative;
  container-type: inline-size;
  padding: 56px 8px 8px;
  isolation: isolate;
  background:
    radial-gradient(52% 48% at 50% 34%, var(--t-sky-a), transparent 74%),
    radial-gradient(40% 40% at 8% 90%, var(--t-sky-b), transparent 70%);
  transition: background 600ms var(--ease);
}

.tower-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -40px;
  width: 80%;
  height: 100%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 0, rgba(247, 240, 225, 0.2), transparent 64%);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  pointer-events: none;
  z-index: -1;
}

.tower-stage .bokeh {
  z-index: -2;
  animation: none;
  opacity: 0.8;
}

.tower {
  --g: 8px;
  --card-w: min(176px, calc(100cqw / 6.7));
  --cw: calc(var(--card-w) * 0.66);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: opacity 300ms var(--ease);
}

[data-role="loading"] .tower { opacity: 0.45; }

.tower-tier {
  display: flex;
  justify-content: center;
  width: 100%;
}

.tower-tier[data-tier="1"] { padding-top: 36px; }

.tower-stage .tower-pedestal { width: 100%; max-width: 1180px; margin-top: 14px; }

/* Coupe glass (shared by hero preview and capsule board) */
.coupe {
  --u: calc(var(--cw, 96px) / 100);
  --liq-a: var(--t-accent-2);
  --liq-b: var(--t-accent);
  --liq-c: color-mix(in srgb, var(--t-accent) 52%, black);
  --rim: rgba(247, 240, 225, 0.8);
  --glass: rgba(247, 240, 225, 0.5);
  --lvl: 24%;
  position: relative;
  display: block;
  flex: none;
  width: var(--cw, 96px);
  aspect-ratio: 100 / 118;
  margin: 0 auto;
}

.coupe > span {
  position: absolute;
  display: block;
  pointer-events: none;
}

.coupe-halo {
  inset: -18% -28% 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--t-glow), transparent);
  opacity: 0;
  transition: opacity 300ms var(--ease);
}

[data-state]:not([data-state="empty"]) .coupe-halo { opacity: 0.9; }

.coupe-bowl {
  left: 4%;
  width: 92%;
  top: 12%;
  height: 39%;
  overflow: hidden;
  border: 1.5px solid var(--glass);
  border-top: 0;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: linear-gradient(120deg, rgba(247, 240, 225, 0.22), rgba(247, 240, 225, 0.04) 42%, rgba(247, 240, 225, 0.13));
  box-shadow: inset 0 calc(var(--u) * -6) calc(var(--u) * 12) rgba(7, 7, 12, 0.35);
}

.coupe-bowl::after {
  content: "";
  position: absolute;
  left: 11%;
  top: 6%;
  width: 13%;
  height: 52%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), transparent);
  transform: rotate(20deg);
  opacity: 0.55;
  z-index: 3;
}

.coupe-bowl::before {
  content: "";
  position: absolute;
  left: 46%;
  bottom: 8%;
  width: calc(var(--u) * 3);
  height: calc(var(--u) * 3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow:
    calc(var(--u) * -16) calc(var(--u) * -3) 0 rgba(255, 255, 255, 0.6),
    calc(var(--u) * 13) calc(var(--u) * -9) 0 rgba(255, 255, 255, 0.55),
    calc(var(--u) * -5) calc(var(--u) * -14) 0 rgba(255, 255, 255, 0.5),
    calc(var(--u) * 22) calc(var(--u) * -2) 0 rgba(255, 255, 255, 0.5);
  opacity: 0;
  z-index: 3;
}

[data-state]:not([data-state="empty"]) .coupe-bowl::before {
  opacity: 0.9;
  animation: bubble-rise 3.8s ease-in infinite;
}

@keyframes bubble-rise {
  0% { transform: translateY(0); opacity: 0.9; }
  100% { transform: translateY(calc(var(--u) * -22)); opacity: 0; }
}

.coupe-liquid {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: var(--lvl);
  background: linear-gradient(180deg, var(--liq-a), var(--liq-b) 52%, var(--liq-c));
  opacity: 0.97;
}

.coupe-liquid::before {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  top: calc(var(--u) * -4);
  height: calc(var(--u) * 9);
  border-radius: 50%;
  background: color-mix(in srgb, var(--liq-a) 80%, var(--c-ivory));
}

[data-state="empty"] .coupe-liquid {
  background: none;
  border-top: 1px dashed rgba(230, 194, 122, 0.6);
  opacity: 1;
}

[data-state="empty"] .coupe-liquid::before { display: none; }

.coupe-rim {
  left: 4%;
  width: 92%;
  top: 5.9%;
  height: 11.9%;
  border: 1.5px solid var(--rim);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 62%, rgba(7, 7, 12, 0.5), rgba(247, 240, 225, 0.05) 72%);
  box-shadow: 0 0 calc(var(--u) * 6) rgba(247, 240, 225, 0.28);
}

.coupe-stem {
  left: 47.5%;
  width: 5%;
  top: 50%;
  height: 40%;
  border-radius: calc(var(--u) * 2);
  background: linear-gradient(90deg, rgba(247, 240, 225, 0.15), rgba(247, 240, 225, 0.72) 46%, rgba(247, 240, 225, 0.18));
}

.coupe-foot {
  left: 21%;
  width: 58%;
  top: 87%;
  height: 11.5%;
  border: 1.5px solid var(--glass);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 35%, rgba(247, 240, 225, 0.55), rgba(247, 240, 225, 0.1) 72%);
}

/* 24K golden collector tower */
[data-golden="1"] .coupe {
  --glass: rgba(230, 194, 122, 0.95);
  --rim: var(--c-brass);
}

[data-golden="1"] .coupe-stem {
  background: linear-gradient(90deg, var(--c-brass-deep), var(--c-champagne) 46%, var(--c-brass-deep));
}

[data-golden="1"] .coupe-foot {
  background: radial-gradient(ellipse at 50% 35%, var(--c-champagne), var(--c-brass-deep) 78%);
}

[data-golden="1"] .ped-cap,
[data-golden="1"] .ped-base {
  background: linear-gradient(180deg, var(--c-champagne), var(--c-brass) 40%, var(--c-brass-deep));
}

[data-golden="1"] .ped-body {
  border-inline-color: var(--c-brass);
  box-shadow: inset 0 0 40px rgba(230, 194, 122, 0.16);
}

/* Slot cards (capsule board) */
.slot-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 var(--card-w);
  width: var(--card-w);
  min-width: 0;
  padding: 6px 4px 8px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--c-ivory);
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: transform 220ms var(--ease), filter 220ms var(--ease);
}

.slot-card:hover { transform: translateY(-5px); }

.slot-card:hover .coupe {
  --rim: var(--c-champagne);
  filter: drop-shadow(0 0 14px var(--t-glow));
}

.slot-card .slot-card-state {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.slot-charm {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 172px;
  min-height: 46px;
  padding: 6px 9px;
  overflow: hidden;
  border: 1px solid rgba(230, 194, 122, 0.6);
  border-radius: 8px 8px 14px 14px;
  background: linear-gradient(180deg, rgba(230, 194, 122, 0.24), rgba(160, 122, 58, 0.14));
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}

.slot-charm::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -1px;
  width: 22px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 0 0 6px 6px;
  background: var(--c-brass);
}

.slot-card-num {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--c-champagne), var(--c-brass));
  color: var(--c-ink);
  font: 700 12px/1 var(--font-mono);
  white-space: nowrap;
}

.slot-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.slot-card-mid,
.slot-card-foot {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slot-card-mid {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-ivory);
}

.slot-card-foot {
  font-size: 12px;
  line-height: 1.3;
  color: var(--c-champagne);
}

.slot-seal {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--t-accent);
}

.slot-seal svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.slot-seal .seal-edge { fill: var(--t-accent); }
.slot-seal .seal-inner { fill: none; stroke: rgba(7, 7, 12, 0.45); stroke-width: 1.2; }
.slot-seal .seal-glyph { fill: none; stroke: var(--c-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* States */
.slot-card[data-state="empty"] .slot-charm {
  border-style: dashed;
  background: rgba(7, 7, 12, 0.45);
}

.slot-card[data-state="empty"] .slot-card-mid { color: var(--t-accent); }
.slot-card[data-state="empty"] .slot-card-foot { color: var(--fg-muted); }

.slot-card[data-state="empty"]:hover .coupe-rim {
  box-shadow: 0 0 calc(var(--u) * 14) var(--t-glow), 0 0 calc(var(--u) * 4) rgba(230, 194, 122, 0.8);
}

.slot-card[data-state="empty"]:hover .coupe-liquid { border-top-color: var(--c-champagne); }

.slot-card[data-state="mine"] .coupe {
  --rim: var(--c-teal);
  --glass: rgba(98, 224, 196, 0.8);
  filter: drop-shadow(0 0 12px rgba(98, 224, 196, 0.55));
}

.slot-card[data-state="mine"] .slot-charm { border-color: var(--c-teal); }

.slot-card[data-state="mine"]::after {
  content: "Yours";
  position: absolute;
  right: 8px;
  top: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--c-teal);
  color: var(--c-ink);
  font-size: 12px;
  font-weight: 800;
  z-index: 4;
}

.slot-card[data-state="peeked"]::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -48px;
  width: 150%;
  height: calc(var(--cw) * 1.1 + 52px);
  transform: translateX(-50%);
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(247, 240, 225, 0.5), rgba(247, 240, 225, 0.04));
  pointer-events: none;
  z-index: -1;
}

.slot-card[data-state="peeked"] .coupe {
  --rim: var(--c-ivory);
  animation: peek-pulse 1.2s ease-in-out infinite;
}

.slot-card[data-state="peeked"] .slot-charm {
  border-color: var(--t-accent-2);
}

.slot-card[data-state="peeked"] .slot-charm::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--c-brass), var(--c-champagne));
  transform-origin: left;
  animation: peek-drain 15s linear forwards;
}

@keyframes peek-pulse {
  0%, 100% { filter: drop-shadow(0 0 8px var(--t-glow)); }
  50% { filter: drop-shadow(0 0 24px var(--t-glow)); }
}

@keyframes peek-drain {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

.slot-card[data-state="open"] .coupe {
  --lvl: 6%;
  --rim: var(--c-champagne);
  filter: drop-shadow(0 0 16px rgba(230, 194, 122, 0.55));
}

.slot-card[data-state="open"] .coupe-rim::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: -80%;
  height: 120%;
  border-radius: 50% 50% 0 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(247, 240, 225, 0.95), rgba(235, 215, 174, 0.55) 58%, transparent 74%);
  animation: foam-bob 2.4s ease-in-out infinite;
}

.slot-card[data-state="open"] .coupe-bowl::before { animation-duration: 1.8s; }

.slot-card[data-state="open"] .slot-charm {
  border-color: var(--c-champagne);
  background: linear-gradient(180deg, rgba(247, 240, 225, 0.9), rgba(235, 215, 174, 0.8));
}

.slot-card[data-state="open"] .slot-card-mid { color: var(--c-ink); }
.slot-card[data-state="open"] .slot-card-foot { color: rgba(7, 7, 12, 0.8); }

@keyframes foam-bob {
  0%, 100% { transform: translateY(0) scaleY(1); }
  50% { transform: translateY(-3px) scaleY(1.08); }
}

/* Slot 21: the 00:00 finale crown */
.slot-card[data-finale="1"] {
  --card-w: min(240px, calc(100cqw / 4.2));
  padding-top: 30px;
}

.slot-card[data-finale="1"] .coupe {
  --cw: calc(var(--card-w) * 0.62);
}

.slot-card[data-finale="1"] .coupe::before,
.preview-slot.is-finale .coupe::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 14%;
  width: 210%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg, rgba(230, 194, 122, 0.55) 0deg 1.4deg, transparent 1.4deg 12deg);
  -webkit-mask: radial-gradient(circle, rgba(0, 0, 0, 0) 0 24%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 66%);
  mask: radial-gradient(circle, rgba(0, 0, 0, 0) 0 24%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 66%);
  z-index: -1;
  animation: sunburst-turn-center 60s linear infinite;
}

@keyframes sunburst-turn-center {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.slot-card[data-finale="1"] .coupe-rim,
.preview-slot.is-finale .coupe-rim {
  border-color: var(--c-champagne);
  box-shadow: 0 0 calc(var(--u) * 12) var(--t-glow), 0 0 0 calc(var(--u) * 2) rgba(7, 7, 12, 0.85), 0 0 0 calc(var(--u) * 3) var(--c-brass);
}

.slot-card[data-finale="1"] .slot-charm { max-width: 224px; }
.slot-card[data-finale="1"] .slot-card-num { font-size: 13px; }

/* Wraps: six premium pours */
[data-wrap="gold-foil"] .coupe {
  --liq-a: var(--c-champagne);
  --liq-b: var(--c-brass);
  --liq-c: var(--c-brass-deep);
  --rim: var(--c-brass);
  --glass: rgba(230, 194, 122, 0.9);
}

[data-wrap="gold-foil"] .coupe-rim {
  box-shadow: 0 0 0 calc(var(--u) * 1.6) rgba(7, 7, 12, 0.9), 0 0 0 calc(var(--u) * 2.8) var(--c-brass), 0 0 calc(var(--u) * 10) var(--t-glow);
}

[data-wrap="gold-foil"] .coupe-liquid::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 38%, rgba(255, 255, 255, 0.95) 0 1.2px, transparent 2px),
    radial-gradient(circle at 64% 24%, rgba(247, 240, 225, 0.9) 0 1.6px, transparent 2.4px),
    radial-gradient(circle at 78% 62%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.8px),
    radial-gradient(circle at 42% 70%, rgba(247, 240, 225, 0.95) 0 1.4px, transparent 2.2px);
  animation: foil-drift 5s ease-in-out infinite alternate;
}

@keyframes foil-drift {
  from { transform: translate(-3%, 4%); }
  to { transform: translate(4%, -5%); }
}

[data-wrap="champagne-frost"] .coupe {
  --liq-a: var(--c-ivory);
  --liq-b: var(--c-rose);
  --liq-c: color-mix(in srgb, var(--c-rose) 58%, black);
  --rim: rgba(255, 255, 255, 0.98);
  --glass: rgba(255, 255, 255, 0.8);
}

[data-wrap="champagne-frost"] .coupe-rim {
  background:
    radial-gradient(circle at 12% 50%, rgba(255, 255, 255, 1) 0 1.4px, transparent 2.4px),
    radial-gradient(circle at 30% 82%, rgba(255, 255, 255, 1) 0 1.6px, transparent 2.6px),
    radial-gradient(circle at 52% 90%, rgba(255, 255, 255, 1) 0 1.2px, transparent 2.2px),
    radial-gradient(circle at 74% 80%, rgba(255, 255, 255, 1) 0 1.6px, transparent 2.6px),
    radial-gradient(circle at 90% 50%, rgba(255, 255, 255, 1) 0 1.4px, transparent 2.4px),
    radial-gradient(ellipse at 50% 62%, rgba(7, 7, 12, 0.4), rgba(255, 255, 255, 0.1) 72%);
  box-shadow: 0 0 calc(var(--u) * 10) rgba(255, 255, 255, 0.55), 0 calc(var(--u) * 2) 0 rgba(244, 163, 201, 0.5);
}

[data-wrap="aurora-prism"] .coupe {
  --glass: rgba(98, 224, 196, 0.85);
  --rim: var(--c-teal);
}

[data-wrap="aurora-prism"] .coupe-liquid {
  background: linear-gradient(110deg, var(--c-teal), var(--c-violet), var(--c-rose), var(--c-teal));
  background-size: 300% 100%;
  animation: aurora-flow 6s linear infinite;
}

[data-wrap="aurora-prism"] .coupe-halo {
  inset: -24% -34% 0;
  background: radial-gradient(closest-side, rgba(98, 224, 196, 0.38), rgba(160, 144, 255, 0.24) 56%, transparent 100%);
}

[data-wrap="aurora-prism"] .coupe-liquid::before { background: var(--c-teal); }

@keyframes aurora-flow {
  to { background-position: 300% 0; }
}

[data-wrap="velvet-wax"] .coupe {
  --liq-a: color-mix(in srgb, var(--c-crimson) 70%, white);
  --liq-b: var(--c-crimson);
  --liq-c: color-mix(in srgb, var(--c-crimson) 38%, black);
  --glass: rgba(228, 86, 110, 0.75);
  --rim: var(--c-rose);
  --num-fg: var(--c-ivory);
}

[data-wrap="velvet-wax"] .coupe-stem::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 26%;
  width: calc(var(--u) * 15);
  height: calc(var(--u) * 15);
  transform: translateX(-50%);
  border-radius: 48% 52% 50% 50%;
  background: radial-gradient(circle at 34% 30%, var(--c-rose), var(--c-crimson) 52%, color-mix(in srgb, var(--c-crimson) 40%, black));
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

[data-wrap="supernova"] .coupe {
  --liq-a: var(--c-ivory);
  --liq-b: var(--c-violet);
  --liq-c: color-mix(in srgb, var(--c-violet) 45%, black);
  --glass: rgba(160, 144, 255, 0.8);
  --rim: var(--c-ivory);
  --num-fg: var(--c-ivory);
}

[data-wrap="supernova"] .coupe::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 16%;
  width: 190%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg, rgba(160, 144, 255, 0.6) 0deg 2deg, transparent 2deg 14deg);
  -webkit-mask: radial-gradient(circle, rgba(0, 0, 0, 1) 0 12%, rgba(0, 0, 0, 0) 56%);
  mask: radial-gradient(circle, rgba(0, 0, 0, 1) 0 12%, rgba(0, 0, 0, 0) 56%);
  z-index: -1;
  animation: sunburst-turn-center 18s linear infinite;
}

[data-wrap="midnight-ball"] .coupe {
  --liq-a: var(--c-muted);
  --liq-b: var(--c-panel);
  --liq-c: var(--c-ink);
  --glass: rgba(247, 240, 225, 0.85);
  --rim: var(--c-ivory);
  --num-fg: var(--c-ivory);
}

[data-wrap="midnight-ball"] .coupe-bowl {
  background: linear-gradient(120deg, rgba(60, 62, 84, 0.95), rgba(7, 7, 12, 0.96));
}

[data-wrap="midnight-ball"] .coupe::after {
  content: "";
  position: absolute;
  right: -4%;
  top: -16%;
  width: calc(var(--u) * 30);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-linear-gradient(0deg, rgba(7, 7, 12, 0.38) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(7, 7, 12, 0.38) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 1), var(--c-champagne) 28%, var(--c-muted) 62%, var(--c-panel));
  box-shadow: 0 0 calc(var(--u) * 14) rgba(247, 240, 225, 0.75);
  animation: ball-glint 3.2s ease-in-out infinite;
  z-index: 4;
}

@keyframes ball-glint {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.45); }
}

.slot-card[data-wrap="gold-foil"] .slot-charm { background: linear-gradient(180deg, rgba(235, 215, 174, 0.55), rgba(230, 194, 122, 0.3)); }
.slot-card[data-wrap="velvet-wax"] .slot-charm { border-color: var(--c-crimson); background: linear-gradient(180deg, rgba(228, 86, 110, 0.38), rgba(7, 7, 12, 0.5)); }
.slot-card[data-wrap="aurora-prism"] .slot-charm { border-color: var(--c-teal); }
.slot-card[data-wrap="supernova"] .slot-charm { border-color: var(--c-violet); }
.slot-card[data-wrap="champagne-frost"] .slot-charm { border-color: var(--c-rose); }
.slot-card[data-wrap="midnight-ball"] .slot-charm { border-color: var(--c-ivory); }

/* Midnight unlock: golden cascade from the apex through all six tiers */
.tower.is-pouring .coupe-liquid {
  animation: pour-in 1.1s var(--ease) both;
  animation-delay: calc((var(--tier, 1) - 1) * 420ms);
}

.tower.is-pouring .coupe-halo {
  animation: halo-pulse 1.6s var(--ease) both;
  animation-delay: calc((var(--tier, 1) - 1) * 420ms);
}

@keyframes pour-in {
  from { clip-path: inset(0 0 100% 0); filter: brightness(2.4); }
  60% { filter: brightness(1.7); }
  to { clip-path: inset(0); filter: brightness(1); }
}

@keyframes halo-pulse {
  0% { opacity: 0; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.25); }
  100% { opacity: 0.9; transform: scale(1); }
}

.capsule-promo-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.promo-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 18, 27, 0.8);
  color: var(--fg);
  transition: border-color 160ms var(--ease), transform 160ms var(--ease);
}

.promo-tile:hover { text-decoration: none; border-color: var(--t-accent); transform: translateY(-2px); }
.promo-tile strong { font-family: var(--font-display); font-size: 20px; }
.promo-tile span { font-size: 14px; color: var(--fg-muted); }

/* ---------- Modals: ivory invitation stock ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(7, 7, 12, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade-in 200ms var(--ease);
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  --fg: var(--c-ink);
  --fg-muted: rgba(7, 7, 12, 0.74);
  --line: rgba(7, 7, 12, 0.14);
  --line-strong: rgba(7, 7, 12, 0.4);
  --surface: rgba(7, 7, 12, 0.04);
  --btn-bg: var(--c-ink);
  --btn-fg: var(--c-ivory);
  --t-glow: rgba(7, 7, 12, 0.16);
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 32px;
  background: var(--c-ivory);
  color: var(--fg);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--c-brass), inset 0 0 0 6px var(--c-ivory), inset 0 0 0 7px var(--c-brass-deep), var(--shadow-2);
  animation: card-rise 260ms var(--ease);
}

@keyframes card-rise {
  from { transform: translateY(16px) scale(0.98); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.modal-card.modal-lg { max-width: 780px; }
.modal-card p { color: var(--fg-muted); }
.modal-card strong { color: var(--fg); }

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 0;
  font-size: 28px;
  color: var(--fg);
}

.modal-close {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover { background: var(--c-ink); color: var(--c-ivory); }

.modal-desc { font-size: 16px; }

.modal-actions { margin-top: 16px; }

.created-code-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 16px 0;
  padding: 20px;
  background: var(--c-ink);
  color: var(--c-ivory);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--c-brass);
}

.created-code-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.created-code-box strong {
  font-size: 36px;
  letter-spacing: 0.14em;
  color: var(--c-brass);
}

.created-pw-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  font-size: 14px;
}

.stack-notice {
  margin: 0;
  padding: 12px 16px;
  border-left: 3px solid var(--c-brass-deep);
  background: rgba(230, 194, 122, 0.22);
  color: var(--fg);
  font-size: 14px;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip,
.wrap-chip {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font: 700 14px var(--font-body);
  cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}

.chip:hover,
.wrap-chip:hover { border-color: var(--fg); }

.chip.is-selected,
.wrap-chip.is-selected {
  background: var(--c-ink);
  color: var(--c-ivory);
  border-color: var(--c-ink);
}

.wrap-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.wrap-chip {
  --wsw: var(--c-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border-radius: var(--radius);
  text-align: left;
  font-size: 14px;
}

.wrap-chip::before {
  content: "";
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--wsw);
  box-shadow: 0 0 0 1px var(--line-strong);
}

.wrap-chip[data-mwf-wrap="free"] { --wsw: radial-gradient(circle at 35% 30%, var(--c-champagne), var(--c-brass-deep)); }
.wrap-chip[data-mwf-wrap="gold-foil"] { --wsw: linear-gradient(135deg, var(--c-brass-deep), var(--c-brass), var(--c-champagne), var(--c-brass)); }
.wrap-chip[data-mwf-wrap="champagne-frost"] { --wsw: radial-gradient(circle at 30% 30%, var(--c-ivory), var(--c-champagne)); }
.wrap-chip[data-mwf-wrap="aurora-prism"] { --wsw: conic-gradient(var(--c-teal), var(--c-violet), var(--c-rose), var(--c-teal)); }
.wrap-chip[data-mwf-wrap="velvet-wax"] { --wsw: radial-gradient(circle at 35% 30%, var(--c-rose), var(--c-crimson) 60%, rgba(74, 14, 28, 1)); }
.wrap-chip[data-mwf-wrap="supernova"] { --wsw: radial-gradient(circle, var(--c-ivory) 0 15%, var(--c-rose) 40%, var(--c-violet)); }
.wrap-chip[data-mwf-wrap="midnight-ball"] { --wsw: repeating-conic-gradient(var(--c-ivory) 0deg 20deg, var(--c-muted) 20deg 40deg); }

.field-row-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: end;
}

.checkbox-label,
.checkbox-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  cursor: pointer;
}

.checkbox-card {
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.checkbox-label input,
.checkbox-card input {
  width: 20px;
  height: 20px;
  accent-color: var(--c-ink);
  flex: none;
}

#mwf-fill-msg {
  background:
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(160, 122, 58, 0.3) 31px 32px),
    rgba(255, 255, 255, 0.55);
  line-height: 32px;
  padding-top: 0;
}

.char-meta {
  align-self: flex-end;
  font: 500 12px var(--font-mono);
  color: var(--fg-muted);
}

.view-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.note-card-view {
  --card-fg: var(--c-ink);
  --card-muted: rgba(7, 7, 12, 0.74);
  --card-accent: var(--c-brass-deep);
  --seal-bg: radial-gradient(circle at 35% 30%, var(--c-champagne), var(--c-brass) 58%, var(--c-brass-deep));
  --seal-stroke: rgba(7, 7, 12, 0.45);
  --seal-glyph: var(--c-ink);
  --ribbon-bg: linear-gradient(90deg, var(--c-brass-deep), var(--c-brass), var(--c-brass-deep));
  position: relative;
  overflow: hidden;
  padding: 26px 22px 20px;
  border: 1px solid rgba(160, 122, 58, 0.42);
  border-radius: 10px;
  color: var(--card-fg);
  background:
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(160, 122, 58, 0.18) 31px 32px),
    rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-1);
}

.note-card-view:not(.is-preview)[data-wrap="free"] {
  transform: rotate(-0.35deg);
}

.note-card-view.is-unsealing {
  animation: stationery-unseal 520ms var(--ease) both;
}

.note-card-view.is-unsealing::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 22%, rgba(255, 255, 255, 0.5) 48%, transparent 74%);
  transform: translateX(-115%);
  animation: foil-sweep 900ms var(--ease) 120ms 1 both;
}

@keyframes stationery-unseal {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes foil-sweep {
  from { transform: translateX(-115%); }
  to { transform: translateX(115%); }
}

.note-card-ribbon {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--ribbon-bg);
}

.note-card-view:not([data-wrap="free"]) .note-card-ribbon {
  top: 6px;
  left: 6px;
  right: 6px;
  height: 7px;
  border-radius: 4px 4px 0 0;
}

.note-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--card-fg) 14%, transparent);
}

.note-card-head-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.note-card-edition {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--card-accent);
}

.note-card-meta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--card-muted);
}

.note-slot-stamp {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 45%, transparent);
  background: color-mix(in srgb, var(--card-accent) 12%, transparent);
  font-size: 12px;
  font-weight: 700;
  color: var(--card-fg);
  white-space: nowrap;
}

.note-card-view .note-card-text,
.modal-card .note-card-view .note-card-text {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.48;
  color: var(--card-fg);
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}

.note-card-view .note-card-text.is-placeholder {
  font-style: italic;
  color: var(--card-muted);
  font-size: 18px;
}

.note-locked-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 16px 8px 18px;
}

.note-locked-title,
.modal-card .note-card-view p.note-locked-title {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--card-fg);
}

.note-locked-sub,
.modal-card .note-card-view p.note-locked-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  max-width: 38ch;
  color: var(--card-muted);
}

.note-card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--card-fg) 12%, transparent);
}

.note-card-signoff {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.note-sign-by {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--card-muted);
}

.note-sign-name,
.modal-card .note-card-view .note-sign-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.2;
  color: var(--card-fg);
  overflow-wrap: anywhere;
}

.note-wax-seal {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--seal-bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.55);
  animation: wax-pop 380ms var(--ease) both;
}

.note-wax-seal.is-locked-seal {
  width: 56px;
  height: 56px;
}

@keyframes wax-pop {
  from { transform: scale(0.75) rotate(-12deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.note-wax-seal svg {
  width: 82%;
  height: 82%;
  overflow: visible;
}

.note-wax-seal .seal-edge { fill: transparent; }
.note-wax-seal .seal-inner { fill: none; stroke: var(--seal-stroke); stroke-width: 1.4; }
.note-wax-seal .seal-glyph { fill: none; stroke: var(--seal-glyph); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 6 Luxury Paid Stationery Skins */
.note-card-view[data-wrap="gold-foil"] {
  --card-accent: var(--c-brass-deep);
  --seal-bg: linear-gradient(140deg, var(--c-champagne), var(--c-brass) 52%, var(--c-brass-deep));
  --seal-stroke: rgba(7, 7, 12, 0.55);
  --seal-glyph: var(--c-ink);
  --ribbon-bg: linear-gradient(90deg, var(--c-brass-deep), var(--c-champagne), var(--c-brass), var(--c-champagne), var(--c-brass-deep));
  border-color: var(--c-brass-deep);
  background: radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.98), rgba(235, 215, 174, 0.55));
  box-shadow: 0 0 0 1px var(--c-brass-deep), inset 0 0 0 4px var(--c-ivory), inset 0 0 0 6px var(--c-brass), var(--shadow-1);
}

.note-card-view[data-wrap="champagne-frost"] {
  --card-accent: var(--c-crimson);
  --seal-bg: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.98), var(--c-rose) 58%, var(--c-crimson));
  --seal-stroke: rgba(255, 255, 255, 0.75);
  --seal-glyph: var(--c-ink);
  --ribbon-bg: linear-gradient(90deg, var(--c-rose), rgba(255, 255, 255, 0.98), var(--c-rose));
  border-color: var(--c-rose);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), color-mix(in srgb, var(--c-ivory) 82%, var(--c-rose)));
  box-shadow: 0 0 0 1px rgba(244, 163, 201, 0.5), inset 0 0 0 4px rgba(255, 255, 255, 0.95), inset 0 0 0 5px var(--c-rose), var(--shadow-1);
}

.note-card-view[data-wrap="velvet-wax"] {
  --card-accent: var(--c-crimson);
  --seal-bg: radial-gradient(circle at 34% 30%, var(--c-rose), var(--c-crimson) 55%, rgba(74, 14, 28, 1));
  --seal-stroke: rgba(247, 240, 225, 0.55);
  --seal-glyph: var(--c-ivory);
  --ribbon-bg: linear-gradient(90deg, var(--c-crimson), var(--c-brass), var(--c-crimson));
  border-color: var(--c-crimson);
  background: radial-gradient(120% 100% at 50% 0%, rgba(255, 255, 255, 0.98), rgba(247, 240, 225, 0.95));
  box-shadow: 0 0 0 1.5px var(--c-crimson), inset 0 0 0 4px var(--c-ivory), inset 0 0 0 6px rgba(228, 86, 110, 0.38), var(--shadow-1);
}

.note-card-view[data-wrap="aurora-prism"] {
  --card-fg: var(--c-ivory);
  --card-muted: var(--c-champagne);
  --card-accent: var(--c-teal);
  --seal-bg: conic-gradient(var(--c-teal), var(--c-violet), var(--c-rose), var(--c-teal));
  --seal-stroke: rgba(7, 7, 12, 0.5);
  --seal-glyph: var(--c-ink);
  --ribbon-bg: linear-gradient(90deg, var(--c-teal), var(--c-violet), var(--c-rose), var(--c-teal));
  border-color: var(--c-teal);
  background:
    radial-gradient(85% 80% at 18% 12%, rgba(98, 224, 196, 0.24), transparent 65%),
    radial-gradient(85% 80% at 88% 88%, rgba(160, 144, 255, 0.26), transparent 65%),
    var(--c-ink);
  box-shadow: 0 0 0 1.5px var(--c-teal), inset 0 0 0 4px var(--c-ink), inset 0 0 0 5px rgba(160, 144, 255, 0.6), var(--shadow-2);
}

.note-card-view[data-wrap="supernova"] {
  --card-fg: var(--c-ivory);
  --card-muted: var(--c-champagne);
  --card-accent: var(--c-rose);
  --seal-bg: radial-gradient(circle at 35% 30%, var(--c-ivory) 0 18%, var(--c-rose) 52%, var(--c-violet));
  --seal-stroke: rgba(7, 7, 12, 0.45);
  --seal-glyph: var(--c-ink);
  --ribbon-bg: linear-gradient(90deg, var(--c-violet), var(--c-rose), var(--c-brass));
  border-color: var(--c-violet);
  background:
    radial-gradient(75% 75% at 82% 18%, rgba(244, 163, 201, 0.2), transparent 60%),
    radial-gradient(90% 90% at 50% 0%, rgba(160, 144, 255, 0.26), transparent 70%),
    var(--c-lacquer);
  box-shadow: 0 0 0 1.5px var(--c-violet), inset 0 0 0 4px var(--c-lacquer), inset 0 0 0 5px rgba(230, 194, 122, 0.55), var(--shadow-2);
}

.note-card-view[data-wrap="midnight-ball"] {
  --card-fg: var(--c-ivory);
  --card-muted: var(--c-champagne);
  --card-accent: var(--c-champagne);
  --seal-bg: repeating-conic-gradient(var(--c-ivory) 0deg 22deg, var(--c-muted) 22deg 45deg);
  --seal-stroke: rgba(7, 7, 12, 0.55);
  --seal-glyph: var(--c-ink);
  --ribbon-bg: repeating-linear-gradient(90deg, var(--c-ivory) 0 10px, var(--c-panel) 10px 20px);
  border-color: var(--c-ivory);
  background:
    repeating-linear-gradient(90deg, rgba(247, 240, 225, 0.04) 0 1px, transparent 1px 24px),
    radial-gradient(80% 70% at 50% 0%, rgba(247, 240, 225, 0.15), transparent 70%),
    var(--c-ink);
  box-shadow: 0 0 0 1.5px var(--c-ivory), inset 0 0 0 4px var(--c-ink), inset 0 0 0 5px var(--c-brass), var(--shadow-2);
}

.view-note-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.note-utility-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.note-utility-primary,
.note-utility-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-outline-danger {
  border-color: var(--c-crimson);
  background: rgba(228, 86, 110, 0.22);
  color: var(--c-ink);
}

.btn-outline-danger:hover {
  border-color: var(--c-crimson);
  background: rgba(74, 14, 28, 1);
  color: var(--c-ivory);
}

.wax-locked-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(160, 122, 58, 0.5);
  background: rgba(230, 194, 122, 0.2);
  font-size: 12px;
  font-weight: 700;
  color: var(--c-ink);
}

.reciprocity-btn {
  border-color: var(--c-brass-deep);
  background: rgba(230, 194, 122, 0.16);
}

.hidden-notes-bar {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.owner-empty-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.65);
}

.owner-empty-title,
.modal-card .owner-empty-card p.owner-empty-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-ink);
}

.owner-empty-sub,
.modal-card .owner-empty-card p.owner-empty-sub {
  margin: 0;
  font-size: 14px;
  color: var(--fg-muted);
}

.owner-empty-foot {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.restore-hidden-link {
  min-height: 44px;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-ink);
}

.quick-ideas-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

.quick-ideas-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--fg-muted);
}

.quick-ideas-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.idea-pill {
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid rgba(160, 122, 58, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--c-ink);
  font: 600 12px/1.3 var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease);
}

.idea-pill:hover {
  border-color: var(--c-ink);
  background: var(--c-ivory);
}

.seal-lock-card {
  justify-content: space-between;
  background: rgba(230, 194, 122, 0.14);
}

.seal-lock-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.seal-lock-copy span {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
}

.seal-lock-badge {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--c-ink);
  color: var(--c-ivory);
  font-size: 12px;
  font-weight: 700;
}

.seal-lock-card.is-included .seal-lock-badge {
  background: var(--c-teal);
  color: var(--c-ink);
}

.use-classic-row,
.modal-card p.use-classic-row {
  margin: 6px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--fg-muted);
}

.wrap-edition-line,
.modal-card p.wrap-edition-line {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}

.fill-live-stage {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-top: 6px;
}

.fill-stage-coupe-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 8px;
  border-radius: 10px;
  background: radial-gradient(80% 70% at 50% 25%, rgba(230, 194, 122, 0.14), transparent 72%), var(--c-ink);
  border: 1px solid rgba(230, 194, 122, 0.45);
}

.fill-stage-coupe-box .coupe { --cw: 64px; }

.fill-stage-caption {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-champagne);
}

.fill-stage-card-box { min-width: 0; }
.fill-stage-card-box .note-card-view { padding: 20px 18px 16px; }
.fill-stage-card-box .note-card-text,
.modal-card .fill-stage-card-box .note-card-text { font-size: 18px; margin-bottom: 14px; }

@media (max-width: 600px) {
  .wrap-picker { gap: 6px; }
  .wrap-chip { min-height: 44px; padding: 6px 10px; gap: 7px; font-size: 12px; line-height: 1.2; }
  .wrap-chip::before { width: 18px; height: 18px; }
  .fill-live-stage { grid-template-columns: minmax(0, 1fr); }
  .fill-stage-coupe-box { flex-direction: row; padding: 10px 14px; gap: 14px; }
  .fill-stage-coupe-box .coupe { --cw: 42px; }
}

#mwf-peek-timer {
  position: relative;
  overflow: hidden;
  background: var(--c-ink);
  color: var(--c-brass);
  border: 0;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  padding: 14px 16px 18px;
}

#mwf-peek-timer::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--c-crimson), var(--c-brass), var(--c-champagne));
  transform-origin: left;
  animation: peek-drain 15s linear forwards;
}

#mwf-view-modal[data-peeking="1"] .modal-card {
  box-shadow: 0 0 0 2px var(--c-brass), 0 0 0 10px rgba(230, 194, 122, 0.18), 0 0 140px rgba(230, 194, 122, 0.45), var(--shadow-2);
}

#mwf-view-modal[data-peeking="1"] .note-card-text {
  animation: crack-open 600ms var(--ease) both;
}

@keyframes crack-open {
  from { clip-path: inset(0 50% 0 50%); opacity: 0; }
  to { clip-path: inset(0 0 0 0); opacity: 1; }
}

#mwf-view-modal.is-snapped .modal-card {
  animation: snap-shut 420ms var(--ease);
}

@keyframes snap-shut {
  0% { transform: scale(1); }
  35% { transform: scale(0.97); }
  100% { transform: scale(1); }
}

.story-preview-wrap {
  display: flex;
  justify-content: center;
  padding: 16px;
  background: var(--c-ink);
  border-radius: var(--radius);
}

.story-preview-wrap canvas {
  display: block;
  height: min(60vh, 600px);
  width: auto;
  max-width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 4px;
  box-shadow: 0 0 0 1px var(--c-brass-deep), var(--shadow-1);
}

.owner-key-panel { display: flex; flex-direction: column; gap: 12px; }

.mine-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mine-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.restore-inline {
  margin-top: 16px;
  font-size: 14px;
}

.modal-card a { color: var(--c-ink); text-decoration: underline; text-decoration-color: var(--c-brass-deep); text-underline-offset: 3px; }

/* ---------- Pricing cards (pricing page + pay modal) ---------- */
.pricing-grid,
.pay-products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.price-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-brass), transparent);
}

.price-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.price-card h3 {
  margin: 0;
  font-size: 20px;
  color: var(--fg);
}

.price-card p { margin: 0; font-size: 14px; color: var(--fg-muted); }

.price-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.price-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  color: var(--fg);
  white-space: nowrap;
}

.price-orig {
  display: block;
  font-size: 14px;
  text-decoration: line-through;
  color: var(--fg-muted);
  text-align: right;
}

.price-save:empty { display: none; }

.price-save {
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--c-brass);
  color: var(--c-ink);
  font-size: 12px;
  font-weight: 700;
}

.price-card .btn { margin-top: auto; align-self: flex-start; }

.pay-provider-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.pricing-balance-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 24px;
  padding: 16px 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--fg);
  font-size: 14px;
}

.pricing-balance-bar strong { color: var(--c-brass); font-size: 18px; }
.pricing-note { color: var(--fg-muted); }

.pay-paused-box,
.restore-box {
  margin-top: 40px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.restore-box h2 { margin-top: 0; font-size: 28px; }

.restore-form {
  display: flex;
  gap: 8px;
}

.restore-form input { flex: 1; }

/* ---------- Inner pages ---------- */
.inner-page {
  padding: 40px 0 72px;
  background:
    radial-gradient(60% 300px at 50% 0%, rgba(230, 194, 122, 0.1), transparent 70%),
    var(--bg);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.breadcrumb a { color: var(--c-brass); }

.page-head {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-strong);
}

.page-lead {
  font-size: 18px;
  max-width: 62ch;
}

.legal-meta {
  font: 500 14px var(--font-mono);
  color: var(--fg-muted);
}

.code-portal-card {
  --fg: var(--c-ink);
  --fg-muted: rgba(7, 7, 12, 0.74);
  --line-strong: rgba(7, 7, 12, 0.4);
  --btn-bg: var(--c-ink);
  --btn-fg: var(--c-ivory);
  margin-bottom: 48px;
  padding: 40px;
  background: var(--c-ivory);
  color: var(--fg);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--c-brass), inset 0 0 0 6px var(--c-ivory), inset 0 0 0 7px var(--c-brass-deep), var(--shadow-2);
}

.code-portal-card h1 { color: var(--fg); }
.code-portal-card p { color: var(--fg-muted); }

.code-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}

.code-form > label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.code-input-row {
  display: flex;
  gap: 8px;
}

#mwf-code-input {
  flex: 1;
  min-height: 56px;
  font: 500 22px var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: lowercase;
}

.code-input-row .btn { min-height: 56px; }

.code-hint { font-size: 14px; margin: 0; }

.not-found-card {
  padding: 48px 40px;
  text-align: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    repeating-conic-gradient(from 0deg at 50% 0%, rgba(230, 194, 122, 0.06) 0deg 3deg, transparent 3deg 12deg),
    var(--surface);
}

.not-found-card .modal-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding: 56px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--c-ink);
}

.footer-crest {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-ink);
  padding: 0 12px;
  line-height: 0;
}

.crest-rule { stroke: var(--line-strong); stroke-width: 1; fill: none; }
.crest-gem { fill: none; stroke: var(--c-brass); stroke-width: 1.5; }
.crest-core { fill: var(--c-brass); }
.crest-dot { fill: var(--c-brass); }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-desc { font-size: 14px; margin-top: 16px; max-width: 44ch; }
.footer-official { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-brass); }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-heading {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-brass);
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  color: var(--fg-muted);
}

.footer-nav a:hover { color: var(--fg); }

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.footer-bottom p { margin: 0; font-size: 12px; }

/* ---------- FX canvas ---------- */
.fx-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 150;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .hero-grid { gap: 28px 40px; }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "stage"
      "form";
    grid-template-rows: auto;
  }

  .hero-plate { width: 100%; opacity: 0.55; }
  .hero-copy h1 { max-width: none; font-size: clamp(34px, 7vw, 48px); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capsule-topbar { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .mwf-container { padding: 0 16px; }
  .header-inner { min-height: 60px; gap: 12px; }
  .brand-sub { display: none; }
  .brand-title { font-size: 16px; }

  h1 { font-size: 32px; }
  h2 { font-size: 28px; }

  .hero-band { padding: 32px 0 48px; }
  .creator-lead { font-size: 16px; }
  .hero-stage { padding: 4px 0 0; gap: 14px; }
  .stage-meta-row { padding: 0 4px; }
  .preview-grid { --cw: min(124px, calc(100cqw / 6.4)); }
  .ped-body { padding: 12px 20px 14px; }
  .stage-countdown { font-size: 22px; }
  .creator-card { padding: 24px 20px; }
  .theme-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .editorial-band { padding: 48px 0 32px; }
  .prose-article { font-size: 16px; }
  .prose-article ol > li { padding-left: 44px; }
  .faq-item summary { font-size: 18px; }

  .composer-foot { flex-direction: column; align-items: stretch; }

  .capsule-shell { padding: 24px 0 48px; }
  .countdown-clock { font-size: 22px; }
  .action-panel { padding: 16px; }
  .action-row-main .btn,
  .friend-btn-row .btn { flex: 1 1 calc(50% - 8px); }
  .code-callout-val { font-size: 22px; }
  .blocked-link-strip { padding: 16px 20px; }

  .tower-stage { padding: 44px 0 4px; }
  .tower {
    --card-w: calc((100cqw - 2 * var(--g)) / 3);
    --cw: calc(var(--card-w) * 0.7);
    gap: 10px;
  }
  .tower-tier { flex-wrap: wrap; align-content: flex-start; gap: var(--g); max-width: 100%; margin-inline: auto; }
  .tower-tier[data-tier="4"] { max-width: calc(2 * var(--card-w) + var(--g)); }
  .tower-tier[data-tier="5"], .tower-tier[data-tier="6"] { max-width: calc(3 * var(--card-w) + 2 * var(--g)); }
  .slot-card { padding: 4px 2px 6px; gap: 4px; }
  .slot-charm { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 4px; padding: 6px 6px 7px; min-height: 0; }
  .slot-text { align-items: center; }
  .slot-card-mid, .slot-card-foot { white-space: normal; overflow-wrap: anywhere; text-overflow: clip; line-height: 1.25; }
  .slot-charm .slot-seal { display: none; }
  .slot-card-num { min-width: 26px; height: 26px; padding: 0 4px; }
  .slot-card[data-finale="1"] { --card-w: calc((100cqw - 2 * var(--g)) / 3 * 1.3); padding-top: 26px; }
  .slot-card[data-state="mine"]::after { right: 2px; top: 0; }

  .capsule-promo-row,
  .pricing-grid,
  .pay-products-grid,
  .field-row-2 { grid-template-columns: minmax(0, 1fr); }

  .modal-backdrop { padding: 8px; align-items: flex-end; }
  .modal-card { padding: 24px 16px; max-height: calc(100vh - 16px); }
  .modal-head h2 { font-size: 22px; }
  .modal-actions .btn { flex: 1 1 100%; }

  .code-portal-card { padding: 24px 20px; }
  .code-input-row,
  .restore-form { flex-direction: column; }
  #mwf-code-input { font-size: 18px; letter-spacing: 0.12em; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .not-found-card { padding: 32px 20px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-sunburst,
  .hero-band::before,
  .coupe::before,
  .coupe::after,
  .coupe-bowl::before,
  .coupe-liquid,
  .coupe-liquid::after,
  .coupe-rim::before,
  .slot-card .coupe,
  .tower.is-pouring .coupe-liquid,
  .tower.is-pouring .coupe-halo { animation: none !important; }

  .fx-canvas { display: none; }
  .btn:hover,
  .slot-card:hover,
  .promo-tile:hover { transform: none; }
}

/* ---------- Above-the-fold fit: the whole tower is visible on first screen ---------- */
.preview-grid {
  --cw: clamp(46px, min(124px, calc(100cqw / 6.5), calc((100vh - 392px) / 6.6)), 124px);
}

@media (min-width: 961px) {
  .capsule-stack {
    display: grid;
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    grid-template-areas:
      "top stage"
      "util stage"
      "panel stage"
      "banner stage"
      "rest stage"
      "promo promo";
    grid-template-rows: auto auto auto auto 1fr auto;
    column-gap: 40px;
    row-gap: 16px;
    align-items: start;
  }

  .capsule-shell { padding-top: 20px; }
  .capsule-topbar { grid-area: top; grid-template-columns: minmax(0, 1fr); }
  .capsule-identity h1 { font-size: clamp(28px, 2.6vw, 40px); }
  .capsule-utility-row { grid-area: util; }
  #mwf-owner-bar, #mwf-friend-bar { grid-area: panel; }
  #mwf-board-banner { grid-area: banner; }
  .capsule-promo-row { grid-area: promo; margin-top: 24px; }
  .code-callout-val { font-size: 22px; }

  .tower-stage {
    grid-area: stage;
    align-self: start;
    padding: 0;
    margin-bottom: 8px;
  }

  .tower {
    --cw-base: clamp(40px, calc((100vh - 390px) / 7.08), calc(var(--card-w) * 0.66));
    --cw: var(--cw-base);
    gap: 6px;
  }

  .tower-tier { position: relative; z-index: calc(8 - var(--tier, 1)); }
  .tower-tier[data-tier="1"] { padding-top: 20px; }

  .slot-card { padding: 2px 2px 0; gap: 3px; }
  .slot-card[data-finale="1"] { --cw: calc(var(--cw-base) * 1.12); padding-top: 6px; }
  .slot-card[data-finale="1"] .coupe { --cw: inherit; }

  .slot-charm { display: contents; }
  .slot-charm .slot-seal, .slot-card-foot { display: none; }

  .slot-card-num {
    position: absolute;
    left: 50%;
    top: calc(2px + var(--cw) * 0.27);
    transform: translateX(-50%);
    min-width: 0;
    height: auto;
    padding: 0;
    border-radius: 0;
    background: none;
    color: var(--c-ivory);
    text-shadow: 0 1px 2px rgba(7, 7, 12, 0.55);
    z-index: 3;
  }

  .slot-card[data-finale="1"] .slot-card-num { top: calc(6px + var(--cw) * 0.27); }
  .slot-card:not([data-state="empty"]) .slot-card-num { color: var(--c-ink); text-shadow: none; }
  .slot-card[data-wrap="velvet-wax"]:not([data-state="empty"]) .slot-card-num,
  .slot-card[data-wrap="supernova"]:not([data-state="empty"]) .slot-card-num,
  .slot-card[data-wrap="midnight-ball"]:not([data-state="empty"]) .slot-card-num { color: var(--c-ivory); }

  .slot-text { position: relative; align-items: center; max-width: 100%; }
  .slot-card-mid { font-size: 12px; color: var(--c-champagne); text-align: center; text-shadow: 0 1px 3px rgba(7, 7, 12, 0.8); }
  .slot-card[data-state="open"] .slot-card-mid { color: var(--c-champagne); }
  .slot-card[data-state="empty"] .slot-card-mid { color: var(--t-accent); }

  .slot-card[data-state="peeked"] .slot-text::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--c-brass), var(--c-champagne));
    transform-origin: left;
    animation: peek-drain 15s linear forwards;
  }

  .tower-stage .tower-pedestal { margin-top: 10px; max-width: 1100px; }
  .tower-stage .ped-body { padding: 8px 24px 10px; }
  .hero-band { padding: 28px 0 56px; }
}

@media (max-width: 960px) {
  .capsule-topbar { order: -2; }
  .tower-stage { order: -1; }
}

/* Compact pedestal: label and countdown share one row so the whole tower fits the first screen */
.ped-body { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 16px; padding: 8px 28px 10px; }
.stage-countdown, .countdown-clock { font-size: 24px; }
.hero-stage { gap: 10px; }
.stage-meta-row { padding: 0 4px; }
.tower-pedestal { margin-top: 2px; }

@media (max-width: 960px) {
  .hero-grid { grid-template-areas: none; grid-template-rows: auto; gap: 16px; }
  .hero-copy { display: contents; }
  .hero-copy h1 { order: 1; margin-bottom: 0; }
  .hero-stage { order: 2; grid-area: auto; }
  .creator-specs { order: 3; margin: 0; }
  .creator-lead { order: 4; }
  .creator-card { order: 5; grid-area: auto; }
  .hero-plate img { opacity: 0.25; }
}

/* =====================================================================
   v2.1 refinements: compact header, sculptural capsule tower,
   one-screen mobile creator, modal scroll lock
   ===================================================================== */

/* ---------- Header: compact links + menu (tablet and phone) ---------- */
.hero-kicker,
.header-code,
.m-menu { display: none; }

.header-link {
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  color: var(--c-champagne);
  font: 700 14px/1 var(--font-body);
  white-space: nowrap;
}

.header-link:hover { text-decoration: none; }

.header-link span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(230, 194, 122, 0.08);
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}

.header-link:hover span { border-color: var(--c-brass); background: rgba(230, 194, 122, 0.16); }

.m-menu { position: relative; }

.m-menu summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  list-style: none;
  cursor: pointer;
}

.m-menu summary::-webkit-details-marker { display: none; }

.m-menu-bars,
.m-menu-bars::before,
.m-menu-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-champagne);
  transition: transform 200ms var(--ease), background-color 200ms var(--ease);
}

.m-menu-bars { position: relative; }

.m-menu-bars::before,
.m-menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.m-menu-bars::before { top: -6px; }
.m-menu-bars::after { top: 6px; }
.m-menu[open] .m-menu-bars { background: transparent; }
.m-menu[open] .m-menu-bars::before { transform: translateY(6px) rotate(45deg); }
.m-menu[open] .m-menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

.m-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 80;
  display: flex;
  flex-direction: column;
  min-width: 210px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(17, 18, 27, 0.98);
  box-shadow: var(--shadow-2);
}

.m-menu-panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius);
  color: var(--fg);
  font: 600 15px var(--font-body);
}

.m-menu-panel a:hover { background: rgba(230, 194, 122, 0.1); text-decoration: none; }

@media (max-width: 1080px) {
  .header-code { display: inline-flex; }
  .m-menu { display: block; }
}

/* ---------- Optional-fields disclosure ---------- */
.pw-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  list-style: none;
}

.pw-details summary::-webkit-details-marker { display: none; }

.pw-details summary::after {
  content: "+";
  flex: none;
  font: 600 22px/1 var(--font-body);
  color: var(--c-brass);
}

.pw-details[open] summary::after { content: "\2212"; }
.pw-details .pw-inner + .pw-inner { margin-top: 14px; }

/* ---------- Modals: scroll lock + legible slot hash ---------- */
html.mwf-modal-open,
html.mwf-modal-open body { overflow: hidden; }

.modal-backdrop,
.modal-card { overscroll-behavior: contain; }

.slot-hash {
  margin-right: 2px;
  font-family: var(--font-body);
  font-weight: 800;
  color: var(--c-ink);
}

/* ---------- Coupe garnish and number contrast ---------- */
[data-wrap="midnight-ball"] .coupe {
  --liq-a: color-mix(in srgb, var(--c-muted) 32%, var(--c-panel));
  --num-fg: var(--c-champagne);
}

/* Crystal ball sits centred on the rim, in the clear gap between the feet resting above. */
[data-wrap="midnight-ball"] .coupe::after {
  left: 50%;
  right: auto;
  top: -15%;
  width: calc(var(--u) * 26);
  transform: translateX(-50%);
}

[data-wrap="velvet-wax"] .coupe-stem::after {
  top: 16%;
  width: calc(var(--u) * 13);
  height: calc(var(--u) * 13);
}

.preview-slot[data-wrap="midnight-ball"] .slot-num {
  --num-fg: var(--c-champagne);
  text-shadow: 0 1px 3px rgba(7, 7, 12, 0.95);
}

.preview-grid { padding-top: max(26px, calc(var(--cw) * 0.5)); }

.preview-slot.is-finale .slot-tag {
  top: auto;
  bottom: calc(100% + 2px);
}

/* ---------- Capsule tower: one sculpture at every width ---------- */
.tower-stage {
  --tg: 6px;
  --cw-base: min(88px, calc(100cqw / 9.5));
  --card-w-base: max(calc(var(--cw-base) * 1.34), 96px);
}

.tower-stage .tower {
  --cw-base: inherit;
  --card-w-base: inherit;
  --cw: var(--cw-base);
  --card-w: var(--card-w-base);
  gap: 2px;
}

.tower .tower-tier {
  flex-wrap: nowrap;
  gap: var(--tg);
  position: relative;
  z-index: calc(8 - var(--tier, 1));
}

.tower .tower-tier[data-tier] { max-width: none; padding-top: 0; }

.tower-stage .tower-pedestal {
  width: min(100%, calc(var(--card-w-base) * 6 + var(--tg) * 5 + 96px));
  max-width: none;
}

.tower .slot-card { padding: 2px 2px 0; gap: 3px; }
.tower .slot-charm { display: contents; }

.tower .slot-charm::before,
.tower .slot-card[data-state] .slot-charm::after,
.tower .slot-charm .slot-seal,
.tower .slot-card-foot { display: none; }

.tower .slot-card-num {
  position: absolute;
  left: 50%;
  top: calc(2px + var(--cw) * 0.27);
  transform: translateX(-50%);
  min-width: 0;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--c-ivory);
  font: 700 12px/1 var(--font-mono);
  text-shadow: 0 1px 2px rgba(7, 7, 12, 0.6);
  z-index: 3;
}

.tower .slot-card[data-wrap]:not([data-state="empty"]) .slot-card-num {
  color: var(--c-ink);
  text-shadow: none;
}

.tower .slot-card[data-wrap="midnight-ball"]:not([data-state="empty"]) .slot-card-num {
  color: var(--c-champagne);
  text-shadow: 0 1px 3px rgba(7, 7, 12, 0.95);
}

.tower .slot-text { position: relative; align-items: center; max-width: 100%; }

.tower .slot-card-mid {
  font-size: 12px;
  color: var(--c-champagne);
  text-align: center;
  text-shadow: 0 1px 3px rgba(7, 7, 12, 0.8);
}

.tower .slot-card[data-state="empty"] .slot-card-mid { color: var(--t-accent); }

.tower .slot-card[data-state="peeked"] .slot-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--c-brass), var(--c-champagne));
  transform-origin: left;
  animation: peek-drain 15s linear forwards;
}

/* Slot 21: 00:00 crest floats above the rim, inside the sunburst */
.tower .slot-card[data-finale="1"] {
  --card-w: calc(var(--card-w-base) * 1.15);
  --cw: calc(var(--cw-base) * 1.12);
  padding-top: calc(30px + var(--cw) * 0.2);
}

.tower .slot-card[data-finale="1"] .coupe { --cw: inherit; }

.tower .slot-card[data-finale="1"] .slot-card-num,
.tower .slot-card[data-finale="1"][data-wrap]:not([data-state="empty"]) .slot-card-num {
  top: 2px;
  padding: 4px 12px;
  border: 1px solid var(--c-brass);
  border-radius: 999px;
  background: rgba(7, 7, 12, 0.9);
  color: var(--c-champagne);
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-shadow: none;
  box-shadow: 0 0 18px var(--t-glow);
}

@media (min-width: 961px) {
  .tower-stage {
    --cw-base: clamp(44px, min(calc((100vh - 450px) / 6.4), calc(100cqw / 9.5)), 84px);
  }

  .tower-stage .tower-pedestal { margin-top: 8px; }
}

/* ---------- Phone (<= 640px) ---------- */
@media (max-width: 640px) {
  .pl-long {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  /* Single-row header, 52px */
  .site-header .header-inner { min-height: 50px; gap: 6px; }
  .site-header .brand { gap: 8px; min-width: 0; }
  .site-header .brand-mark { width: 28px; height: 28px; }
  .site-header .brand-title { font-size: 16px; white-space: nowrap; }
  .header-create { display: none; }
  .header-actions { gap: 2px; margin-left: auto; }
  .header-link span { min-height: 32px; padding: 0 11px; font-size: 13px; }
  .sparks-pill { min-height: 44px; padding: 0 10px; }

  /* Touch targets */
  .btn-sm,
  .chip { min-height: 44px; }

  /* Home: name + look + create on the first screen */
  .hero-band { padding: 10px 0 32px; }
  .hero-grid { gap: 8px; }
  .creator-specs,
  .creator-lead { display: none; }

  .hero-copy h1 { font-size: 26px; line-height: 1.1; }

  .hero-kicker {
    display: block;
    order: 1;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--c-champagne);
  }

  .hero-stage { gap: 4px; padding: 0; }

  .stage-meta-row {
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
    padding: 0;
    z-index: 5;
  }

  .stage-pill { display: none; }
  .preview-theme-label { font-size: 15px; }

  .preview-grid {
    --cw: clamp(34px, calc((100vh - 585px) / 6.9), 40px);
    padding-top: 24px;
  }

  .preview-grid .tower-tier + .tower-tier { margin-top: calc(var(--cw) * -0.22); }

  #mwf-preview-stage .tower-pedestal {
    --ped-in: 14px;
    width: min(100%, calc(var(--cw) * 6.4 + 72px));
  }

  .tower-pedestal { --ped-in: 16px; }
  .ped-cap { height: 9px; }
  .ped-body { padding: 6px 22px 7px; gap: 0 10px; }
  .ped-base { height: 6px; }
  .stage-countdown,
  .countdown-clock { font-size: 20px; }

  .creator-card { padding: 16px 16px 14px; border-radius: 14px; }
  .create-form { gap: 12px; }
  .creator-card .field-group { gap: 6px; }
  .field-group label,
  .field-label { letter-spacing: 0.08em; }

  .creator-card .theme-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .creator-card .theme-chip { gap: 6px; padding: 5px 7px; line-height: 1.15; }
  .creator-card .theme-chip::before { width: 14px; height: 14px; }

  #mwf-create-btn { order: 1; }
  #mwf-create-status { order: 2; }
  .create-form .pw-details { order: 3; padding-top: 4px; }
  .pw-details summary { font-size: 14px; }
  .creator-foot-links { margin-top: 10px; padding-top: 10px; }

  /* Capsule: the whole 6-tier tower in half a screen, actions right below */
  .capsule-shell { padding-top: 14px; }
  .capsule-stack { gap: 14px; }
  .capsule-badges { margin-bottom: 10px; }
  .capsule-identity h1 { font-size: 26px; margin-bottom: 6px; }
  .cap-tagline { font-size: 16px; }

  #mwf-owner-bar,
  #mwf-friend-bar { order: 0; }
  #mwf-board-banner { order: 1; }
  .capsule-utility-row { order: 2; }
  .capsule-promo-row { order: 3; }
  .action-row-main .btn:first-child { flex-basis: 100%; }
  .friend-cta-title { font-size: 19px; }

  .tower-stage {
    --tg: 3px;
    --card-w-base: calc((100cqw - 5 * 3px) / 6);
    --cw-base: calc(var(--card-w-base) * 0.94);
    padding: 6px 0 2px;
  }

  .tower-stage .tower { gap: 0; }
  .tower .tower-tier + .tower-tier { margin-top: calc(var(--cw-base) * -0.16); }
  .tower .slot-card { padding: 0; gap: 0; border-radius: 10px; }
  .tower .slot-card[data-finale="1"] { padding-top: calc(26px + var(--cw) * 0.18); }
  .tower .slot-card-num { top: calc(var(--cw) * 0.27); }
  .tower .slot-card[data-finale="1"] .slot-card-num,
  .tower .slot-card[data-finale="1"][data-wrap]:not([data-state="empty"]) .slot-card-num { top: 0; padding: 3px 10px; }

  .tower .slot-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .tower .slot-card[data-state="mine"]::after { display: none; }

  /* Filled marker: a jewel dot under the foot, between the rims below */
  .tower .slot-card:not([data-state="empty"]) .coupe-foot::after {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(100% + 3px);
    width: 6px;
    height: 6px;
    margin-left: -3px;
    border-radius: 50%;
    background: var(--t-accent);
    box-shadow: 0 0 6px var(--t-glow);
  }

  .tower .slot-card[data-state="mine"] .coupe-foot::after { background: var(--c-teal); }
  .tower-stage .tower-pedestal { width: 100%; margin-top: 10px; }
}

@media (max-width: 380px) {
  .site-header .brand-mark { display: none; }
}

/* =====================================================================
   v3 share-first refinements: engraved tower, live Story card,
   sealed-note deck, finale band, capsule share dock, phone docks
   ===================================================================== */

/* ---------- Hero: two-line headline, engraved tower caption ---------- */
.hero-copy h1 .h1-sub {
  display: block;
  margin-top: 6px;
  font-style: italic;
  font-weight: 600;
  font-size: 0.8em;
}

.preview-grid {
  --cw: clamp(46px, min(124px, calc(100cqw / 6.5), calc((100vh - 420px) / 6.6)), 124px);
}

.hero-stage .stage-meta-row {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.stage-engrave {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  color: var(--c-ivory);
  text-shadow: 0 2px 18px rgba(7, 7, 12, 0.8);
}

.engrave-owner {
  color: var(--t-accent);
  transition: color 400ms var(--ease);
}

.engrave-owner.is-named { animation: engrave-in 520ms var(--ease); }

@keyframes engrave-in {
  from { opacity: 0.35; letter-spacing: 0.06em; }
  to { opacity: 1; letter-spacing: 0; }
}

.stage-sub {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-champagne);
}

.stage-sub .preview-theme-label {
  font-family: inherit;
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  color: var(--t-accent);
}

.stage-sub-sep { color: var(--line-strong); }

.btn-hero {
  min-height: 56px;
  padding: 0 32px;
  font-size: 16px;
}

/* ---------- Share band: live Story card in a phone ---------- */
.share-band {
  position: relative;
  padding: 104px 0 88px;
  overflow: hidden;
  background:
    radial-gradient(40% 60% at 24% 50%, var(--t-sky-a), transparent 72%),
    var(--bg);
}

.share-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 72px;
  align-items: center;
  max-width: 1120px;
}

.story-phone {
  position: relative;
  justify-self: center;
  width: min(100%, 300px);
  padding: 10px;
  border-radius: 46px;
  background: linear-gradient(150deg, var(--c-panel), var(--c-ink) 70%);
  box-shadow:
    0 0 0 1px var(--line-strong),
    inset 0 0 0 2px rgba(247, 240, 225, 0.06),
    var(--shadow-2),
    0 0 110px var(--t-glow);
  transform: rotate(-3deg);
  transition: transform 500ms var(--ease);
}

.story-phone:hover { transform: rotate(0deg) translateY(-6px); }

.story-phone::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 3;
  width: 78px;
  height: 22px;
  margin-left: -39px;
  border-radius: 999px;
  background: var(--c-ink);
}

.story-phone-screen {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--c-lacquer), var(--c-ink));
}

.story-phone-screen::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 18px;
  right: 18px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(247, 240, 225, 0.92) 0 58%, rgba(247, 240, 225, 0.3) 58%);
  z-index: 2;
}

.story-live {
  display: block;
  width: 100%;
  height: 100%;
}

.share-copy h2 {
  margin-top: 0;
  max-width: 20ch;
}

.share-lead {
  max-width: 52ch;
  font-size: 18px;
}

.share-routes {
  display: grid;
  gap: 12px;
  margin: 28px 0 32px;
  padding: 0;
  list-style: none;
}

.route {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(230, 194, 122, 0.08), rgba(230, 194, 122, 0) 70%);
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}

.route:hover {
  border-color: var(--line-strong);
  transform: translateX(4px);
}

.route-ico {
  position: relative;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(7, 7, 12, 0.6);
}

.route-ico::before,
.share-tile::before,
.share-hero::before {
  content: "";
  display: block;
  background: var(--t-accent);
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}

.route-ico::before {
  position: absolute;
  inset: 13px;
}

.route[data-route="chat"],
.share-tile[data-mwf-share="whatsapp"] {
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8.5 8.5 0 0 1-12.4 7.5L3.5 20.5l1.1-4.7A8.5 8.5 0 1 1 21 12z'/%3E%3C/svg%3E");
}

.route[data-route="story"],
.share-tile[data-mwf-share="story"] {
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2.5' width='12' height='19' rx='2.5'/%3E%3Ccircle cx='12' cy='11' r='3.2'/%3E%3Cpath d='M9.5 17.5h5'/%3E%3C/svg%3E");
}

.route[data-route="code"] {
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h18v3a2 2 0 0 0 0 4v3H3v-3a2 2 0 0 0 0-4z'/%3E%3Cpath d='M8 10.5h8M8 13.5h5'/%3E%3C/svg%3E");
}

.share-tile[data-mwf-share="copy"] {
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1'/%3E%3Cpath d='M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1'/%3E%3C/svg%3E");
}

.share-tile[data-mwf-share="sms"] {
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4.5h16v11H10l-5 4v-4H4z'/%3E%3Cpath d='M8 9.5h8M8 12.5h5'/%3E%3C/svg%3E");
}

.share-hero {
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.5 2.5 10.5 13.5'/%3E%3Cpath d='M21.5 2.5 14.5 21.5l-4-8-8-4z'/%3E%3C/svg%3E");
}

.route-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.route-copy strong {
  font-size: 16px;
  color: var(--fg);
}

.route-copy > span {
  font-size: 14px;
  color: var(--fg-muted);
}

/* ---------- Sealed-note deck ---------- */
.notes-band {
  padding: 80px 0 88px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg), var(--surface));
}

.notes-head {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.notes-head h2 { margin-top: 0; }
.notes-head p { margin: 0; font-size: 18px; }

.note-deck {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.note-card {
  --seal: var(--c-brass);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 268px;
  padding: 20px 18px 16px;
  border-radius: 10px;
  background:
    repeating-linear-gradient(180deg, rgba(160, 122, 58, 0) 0 27px, rgba(160, 122, 58, 0.18) 27px 28px) 0 54px / 100% calc(100% - 112px) no-repeat,
    linear-gradient(165deg, var(--c-ivory), var(--c-champagne));
  color: var(--c-ink);
  box-shadow:
    inset 0 0 0 1px rgba(160, 122, 58, 0.5),
    inset 0 0 0 5px var(--c-ivory),
    inset 0 0 0 6px rgba(160, 122, 58, 0.3),
    var(--shadow-2);
  transition: transform 280ms var(--ease);
}

.note-card:nth-child(2) { margin-top: 32px; }
.note-card:nth-child(3) { margin-top: 8px; }
.note-card:nth-child(4) { margin-top: 40px; }
.note-card:nth-child(5) { margin-top: 16px; }
.note-card:hover { transform: translateY(-8px); }

.note-card[data-prompt="confession"] { --seal: var(--c-crimson); }
.note-card[data-prompt="prediction"] { --seal: var(--c-violet); }
.note-card[data-prompt="memory"] { --seal: var(--c-brass); }
.note-card[data-prompt="roast"] { --seal: var(--c-teal); }
.note-card[data-prompt="wish"] { --seal: var(--c-rose); }

.note-top,
.note-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.note-tag {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(160, 122, 58, 0.2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--c-ink);
}

.note-slot {
  font-size: 12px;
  white-space: nowrap;
  color: rgba(7, 7, 12, 0.72);
}

.note-text {
  flex: 1;
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  line-height: 28px;
  color: var(--c-ink);
}

.note-from {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-ink);
}

.note-seal {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--seal) 62%, white), var(--seal) 58%, color-mix(in srgb, var(--seal) 64%, black));
  box-shadow: 0 3px 8px rgba(7, 7, 12, 0.35), inset 0 0 0 3px rgba(7, 7, 12, 0.14);
  font-size: 12px;
  font-weight: 500;
  color: var(--c-ink);
}

.notes-more {
  margin: 32px 0 0;
  text-align: center;
}

.notes-more a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Finale band ---------- */
.finale-band {
  position: relative;
  padding: 104px 0;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--line);
  text-align: center;
  background:
    radial-gradient(60% 80% at 50% 100%, var(--t-sky-a), transparent 70%),
    var(--bg);
}

.finale-band::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -700px;
  z-index: -1;
  width: 1400px;
  height: 1400px;
  margin-left: -700px;
  background: repeating-conic-gradient(from 0deg, rgba(230, 194, 122, 0.07) 0deg 1.6deg, transparent 1.6deg 9deg);
  -webkit-mask: radial-gradient(circle, rgba(0, 0, 0, 1) 0 18%, rgba(0, 0, 0, 0) 52%);
  mask: radial-gradient(circle, rgba(0, 0, 0, 1) 0 18%, rgba(0, 0, 0, 0) 52%);
  pointer-events: none;
}

.finale-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.finale-inner h2 {
  margin: 0 0 8px;
  font-size: clamp(32px, 4vw, 48px);
}

.finale-count {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: 0.04em;
  color: var(--t-accent);
  text-shadow: 0 0 30px var(--t-glow);
  white-space: nowrap;
}

.finale-sub { margin: 0 0 24px; }

/* ---------- Capsule: pour meter + share dock ---------- */
.pour-meter {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pour-meter-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
}

.pour-meter-label {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
}

.pour-meter-hint {
  font-size: 14px;
  font-weight: 600;
  color: var(--t-accent);
}

.pour-meter-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(230, 194, 122, 0.14);
  overflow: hidden;
  -webkit-mask: repeating-linear-gradient(90deg, rgba(0, 0, 0, 1) 0 calc(100% / 21 - 3px), rgba(0, 0, 0, 0) calc(100% / 21 - 3px) calc(100% / 21));
  mask: repeating-linear-gradient(90deg, rgba(0, 0, 0, 1) 0 calc(100% / 21 - 3px), rgba(0, 0, 0, 0) calc(100% / 21 - 3px) calc(100% / 21));
}

.pour-meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--filled, 0) / 21 * 100%);
  background: linear-gradient(90deg, var(--c-brass-deep), var(--t-accent) 60%, var(--c-champagne));
  box-shadow: 0 0 14px var(--t-glow);
  transition: width 700ms var(--ease);
}

.share-dock {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.share-hero {
  width: 100%;
  min-height: 56px;
  font-size: 16px;
}

.share-hero::before {
  width: 18px;
  height: 18px;
  background: currentColor;
}

.share-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.share-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 72px;
  padding: 10px 4px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(7, 7, 12, 0.5);
  color: var(--fg);
  font: 700 12px/1.2 var(--font-body);
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms var(--ease), transform 160ms var(--ease), background-color 160ms var(--ease);
}

.share-tile::before {
  width: 22px;
  height: 22px;
}

.share-tile:hover {
  border-color: var(--t-accent);
  background: rgba(230, 194, 122, 0.1);
  transform: translateY(-2px);
}

.share-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  font-size: 14px;
  color: var(--fg-muted);
}

.share-more .link-btn { color: var(--c-champagne); }

.owner-primary .btn { flex: 1 1 auto; }

.owner-tools {
  border-top: 1px solid var(--line);
  padding-top: 4px;
}

.owner-tools summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
}

.owner-tools summary::-webkit-details-marker { display: none; }

.owner-tools summary::after {
  content: "+";
  flex: none;
  font: 600 22px/1 var(--font-body);
  color: var(--c-brass);
}

.owner-tools[open] summary::after { content: "\2212"; }
.owner-tools .owner-controls-strip { padding: 4px 0 8px; }

@media (min-width: 961px) {
  .notes-band .mwf-container { max-width: 1320px; }
}

/* ---------- Pricing: six-wrap rack ---------- */
.wrap-rack {
  margin: 8px 0 48px;
  padding: 32px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(70% 90% at 50% 0%, var(--t-sky-a), transparent 70%),
    var(--surface);
}

.wrap-rack-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.wrap-glass {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 12px 6px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  font-family: var(--font-body);
  text-align: center;
  cursor: pointer;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease), transform 180ms var(--ease);
}

.wrap-glass:hover {
  border-color: var(--line-strong);
  background: rgba(230, 194, 122, 0.07);
}

.wrap-glass.is-selected {
  border-color: var(--c-brass);
  background: rgba(230, 194, 122, 0.14);
}

.pricing-preview-stage {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.pricing-preview-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.pricing-preview-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-brass);
}

.pricing-preview-desc {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--fg-muted);
}

.wrap-rack .note-card-view {
  max-width: 640px;
  margin: 0 auto;
}

.wrap-glass .coupe {
  --cw: 76px;
  margin-bottom: 8px;
}

.wrap-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  word-spacing: 0.08em;
  color: var(--fg);
}

.wrap-cost {
  font-size: 12px;
  color: var(--c-champagne);
}

.wrap-rack figcaption {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--fg-muted);
}

/* ---------- Phone docks ---------- */
.m-dock { display: none; }

@keyframes dock-in {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .share-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .story-phone { width: min(78%, 280px); }
  .share-copy { text-align: left; }

  .note-deck {
    display: flex;
    gap: 14px;
    margin-inline: -24px;
    padding: 8px 24px 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 24px;
    scrollbar-width: none;
  }

  .note-deck::-webkit-scrollbar { display: none; }

  .note-card,
  .note-card:nth-child(n) {
    flex: 0 0 min(78%, 300px);
    margin-top: 0;
    scroll-snap-align: start;
  }

  .wrap-rack-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px; }

  .m-dock:not([hidden]) {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 8px 8px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: rgba(14, 15, 24, 0.94);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-2), 0 0 40px var(--t-glow);
    animation: dock-in 280ms var(--ease) both;
  }

  .m-dock .btn { flex: none; min-height: 48px; }

  .m-dock-count {
    min-width: 0;
    overflow: hidden;
    font-size: 14px;
    color: var(--c-champagne);
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  #mwf-capsule-app[data-role="owner"] .dock-friend,
  #mwf-capsule-app:not([data-role="owner"]) .dock-owner { display: none; }

  body.has-dock { padding-bottom: 88px; }
  html.mwf-modal-open .m-dock { display: none; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  .hero-copy h1 .h1-sub { margin-top: 2px; }

  .hero-stage .stage-meta-row {
    position: static;
    width: 100%;
    gap: 2px;
    margin-bottom: -14px;
  }

  .stage-engrave { font-size: 19px; }
  .stage-sub { display: none; }

  .preview-grid {
    --cw: clamp(34px, calc((100vh - 600px) / 6.9), 40px);
    padding-top: 22px;
  }

  .creator-card .theme-picker {
    display: flex;
    gap: 6px;
    padding: 2px 0;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) calc(100% - 32px), rgba(0, 0, 0, 0));
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) calc(100% - 32px), rgba(0, 0, 0, 0));
  }

  .creator-card .theme-picker::-webkit-scrollbar { display: none; }

  .creator-card .theme-chip {
    flex: none;
    min-height: 44px;
    padding: 0 12px;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .share-band { padding: 64px 0 56px; }
  .share-lead { font-size: 16px; }
  .route { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .route-ico { width: 40px; height: 40px; }
  .route-ico::before { inset: 10px; }
  .share-copy .btn-hero { width: 100%; }

  .notes-band { padding: 56px 0 64px; }
  .notes-head { margin-bottom: 24px; text-align: left; }
  .notes-head p { font-size: 16px; }
  .note-deck { margin-inline: -16px; padding: 8px 16px 20px; scroll-padding-inline: 16px; }

  .finale-band { padding: 72px 0; }
  .finale-band .btn-hero { width: 100%; }

  .pour-meter-label { font-size: 19px; }
  .share-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .share-tile { flex-direction: row; min-height: 52px; gap: 10px; font-size: 14px; }
  .owner-primary .btn { flex: 1 1 100%; }

  .friend-cta-group { flex-direction: column; align-items: stretch; }
  .friend-btn-row { flex-direction: column; }
  .friend-btn-row .btn { flex: 1 1 auto; width: 100%; }

  .wrap-rack { padding: 24px 12px 20px; }
  .wrap-glass .coupe { --cw: 64px; }
  .wrap-name { font-size: 14px; }

  .m-dock .btn { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .story-phone,
  .story-phone:hover,
  .note-card:hover,
  .route:hover,
  .share-tile:hover { transform: none; }
  .m-dock:not([hidden]),
  .engrave-owner.is-named { animation: none; }
}

/* =====================================================================
   v3.1 polish: typography, editorial blocks, idea cards, inner-page
   brand moments, comparison cards, pricing rhythm
   ===================================================================== */

/* ---------- Typography ---------- */
h1, h2, h3 {
  text-wrap: balance;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1;
}

p, li { text-wrap: pretty; }

.hy {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
  padding: 0 0.04em;
}

/* ---------- Desktop fold: the creator card ends inside 900px ---------- */
@media (min-width: 961px) {
  .hero-band { padding-top: 16px; }
  .creator-specs { margin-bottom: 14px; }
  .hero-copy h1 { margin-bottom: 12px; }
  .creator-card { padding: 26px 30px; }
  .creator-card .create-form { gap: 14px; }
}

.creator-card .theme-chip {
  gap: 6px;
  padding: 6px 8px;
  white-space: nowrap;
}

.creator-card .theme-chip::before { width: 16px; height: 16px; }

/* ---------- Comments: styled name field ---------- */
.composer textarea,
.composer .sign-off input {
  background: rgba(7, 7, 12, 0.6);
  border-color: rgba(230, 194, 122, 0.4);
}

.composer .sign-off input {
  width: 100%;
  min-height: 44px;
}

/* ---------- Editorial: lede, steps, stat band, cards ---------- */
.prose-article .section-lede {
  font-size: 18px;
  color: var(--fg);
  opacity: 0.86;
}

.prose-article ol.step-strip,
.prose-article ol.tip-list,
.prose-article ul.stationery-grid,
.prose-article ul.spark-cards {
  display: grid;
  gap: 16px;
  margin: 28px 0 40px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.prose-article ol.step-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.prose-article ol.step-strip > li,
.prose-article ol.tip-list > li {
  counter-increment: step;
  margin: 0;
  border-bottom: 0;
}

.prose-article ol.step-strip > li {
  position: relative;
  padding: 64px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(120% 70% at 0% 0%, rgba(230, 194, 122, 0.1), transparent 60%),
    var(--surface);
  font-size: 15px;
  line-height: 1.65;
  transition: border-color 220ms var(--ease), transform 220ms var(--ease);
}

.prose-article ol.step-strip > li:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.prose-article ol.step-strip > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 18px;
  left: 24px;
  font: italic 700 34px/1 var(--font-display);
  color: var(--c-brass);
}

.prose-article ol.step-strip > li::after {
  content: "";
  position: absolute;
  top: 34px;
  left: 76px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.prose-article ol.step-strip > li strong,
.prose-article ol.tip-list > li strong,
.prose-article ul.stationery-grid > li strong,
.prose-article ul.spark-cards > li strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 56px calc(50% - min(560px, 50vw - 24px));
  border-block: 1px solid var(--line-strong);
  background:
    radial-gradient(50% 120% at 50% 50%, var(--t-sky-a), transparent 70%),
    rgba(7, 7, 12, 0.4);
}

.stat-band span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 28px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-champagne);
}

.stat-band span + span { border-left: 1px solid var(--line); }

.stat-band b {
  font: italic 700 clamp(36px, 4vw, 52px)/1 var(--font-display);
  letter-spacing: 0;
  text-transform: none;
  color: var(--c-ivory);
}

.prose-article ul.stationery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.prose-article ul.stationery-grid > li {
  max-width: none;
  margin: 0;
  padding: 22px 22px 20px;
  border-radius: 10px;
  background: linear-gradient(165deg, var(--c-ivory), var(--c-champagne));
  box-shadow:
    inset 0 0 0 1px rgba(160, 122, 58, 0.5),
    inset 0 0 0 5px var(--c-ivory),
    inset 0 0 0 6px rgba(160, 122, 58, 0.3),
    var(--shadow-1);
  color: rgba(7, 7, 12, 0.82);
  font-size: 15px;
  line-height: 1.6;
}

.prose-article ul.stationery-grid > li::before { display: none; }
.prose-article ul.stationery-grid > li strong { color: var(--c-ink); }
.prose-article ul.stationery-grid a { color: var(--c-ink); text-decoration: underline; text-decoration-color: var(--c-brass-deep); }

.prose-article ul.stationery-grid code {
  border-color: rgba(160, 122, 58, 0.4);
  background: rgba(160, 122, 58, 0.14);
  color: var(--c-ink);
}

.prose-article ol.tip-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
}

.prose-article ol.tip-list > li {
  position: relative;
  padding: 20px 0 20px 64px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.prose-article ol.tip-list > li::before {
  content: counter(step);
  position: absolute;
  top: 20px;
  left: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-brass);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(230, 194, 122, 0.3), rgba(7, 7, 12, 0.6));
  font: 700 18px/1 var(--font-display);
  color: var(--c-champagne);
}

.privacy-panel {
  position: relative;
  margin: 24px 0 40px;
  padding: 28px 28px 24px 92px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(230, 194, 122, 0.1), transparent 45%),
    var(--surface);
  box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 5px var(--line);
}

.privacy-panel::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 28px;
  width: 40px;
  height: 40px;
  background: var(--c-brass);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3Ccircle cx='12' cy='15.5' r='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3Ccircle cx='12' cy='15.5' r='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.privacy-panel p { margin: 0; }

.prose-article ul.spark-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.prose-article ul.spark-cards > li {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 72px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font-size: 14px;
  line-height: 1.6;
}

.prose-article ul.spark-cards > li::before {
  top: 22px;
  left: 20px;
  width: 36px;
  height: 36px;
  transform: none;
  border: 0;
  background: var(--c-brass);
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}

.prose-article ul.spark-cards > li[data-spark="peek"] {
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.prose-article ul.spark-cards > li[data-spark="wrap"] {
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='8' width='17' height='12.5' rx='1.5'/%3E%3Cpath d='M12 8v12.5M3.5 12.5h17'/%3E%3Cpath d='M12 8C10 4 6.5 4.5 7.5 7c.5 1 2.5 1 4.5 1zM12 8c2-4 5.5-3.5 4.5-1-.5 1-2.5 1-4.5 1z'/%3E%3C/svg%3E");
}

.prose-article ul.spark-cards > li[data-spark="gold"] {
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8l4.5 4L12 5l4.5 7L21 8l-2 11H5z'/%3E%3C/svg%3E");
}

.prose-article ul.spark-cards > li[data-spark="gold"] {
  border-color: var(--line-strong);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(230, 194, 122, 0.16), transparent 60%),
    var(--surface);
}

/* ---------- Comparison: highlighted column, cards on phones ---------- */
.prose-article table.compare-table th:nth-child(2),
.prose-article table.compare-table td:nth-child(2) {
  background: rgba(230, 194, 122, 0.09);
  color: var(--fg);
  font-weight: 600;
}

.prose-article table.compare-table th:nth-child(2) {
  border-top: 2px solid var(--c-brass);
  color: var(--c-champagne);
}

.prose-article table.compare-table td:first-child { color: var(--fg); font-weight: 600; }

/* ---------- Note ideas: card grid with copy ---------- */
.prose-article ol.idea-grid {
  --cat: var(--c-brass);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px calc(50% - min(560px, 50vw - 24px)) 48px;
  padding: 0;
  list-style: none;
  counter-reset: idea;
}

.prose-article ol.idea-grid[data-prompt="confessions"] { --cat: var(--c-crimson); }
.prose-article ol.idea-grid[data-prompt="predictions"] { --cat: var(--c-violet); }
.prose-article ol.idea-grid[data-prompt="memories"] { --cat: var(--c-brass); }
.prose-article ol.idea-grid[data-prompt="roasts"] { --cat: var(--c-teal); }
.prose-article ol.idea-grid[data-prompt="wishes"] { --cat: var(--c-rose); }

.prose-article ol.idea-grid > li {
  counter-increment: idea;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: none;
  margin: 0;
  padding: 18px 18px 12px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--cat);
  border-radius: 12px;
  background:
    radial-gradient(120% 60% at 0% 0%, color-mix(in srgb, var(--cat) 12%, transparent), transparent 60%),
    var(--surface);
  color: var(--fg);
  font-size: 15px;
  line-height: 1.55;
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}

.prose-article ol.idea-grid > li:hover {
  border-color: color-mix(in srgb, var(--cat) 60%, transparent);
  transform: translateY(-2px);
}

.prose-article ol.idea-grid > li::before {
  content: counter(idea, decimal-leading-zero);
  position: static;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--cat);
}

.idea-copy {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  margin-top: auto;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--c-champagne);
  font: 700 12px/1 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease);
}

.idea-copy:hover { border-color: var(--cat, var(--c-brass)); background: rgba(230, 194, 122, 0.08); }
.idea-copy.is-done { border-color: var(--c-teal); color: var(--c-teal); }

/* ---------- Inner pages: tower mark + CTA plaque ---------- */
.page-head-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.mini-tier { display: flex; gap: 2px; }
.mini-tier + .mini-tier { margin-top: -7px; }
.page-head-mark .coupe { --cw: 34px; }
.page-head-mark .coupe.is-lit .coupe-halo { opacity: 0.9; }

.page-head-mark .coupe:not(.is-lit) .coupe-liquid {
  background: none;
  border-top: 1px dashed rgba(230, 194, 122, 0.6);
}

.page-head-mark .coupe:not(.is-lit) .coupe-liquid::before { display: none; }

.cta-plaque {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 56px 0 8px;
  padding: 40px 28px 36px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  text-align: center;
  background:
    radial-gradient(70% 90% at 50% 0%, var(--t-sky-a), transparent 70%),
    var(--surface);
  box-shadow: inset 0 0 0 5px var(--bg), inset 0 0 0 6px var(--line);
}

.cta-plaque::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -560px;
  z-index: -1;
  width: 1120px;
  height: 1120px;
  margin-left: -560px;
  background: repeating-conic-gradient(from 0deg, rgba(230, 194, 122, 0.06) 0deg 1.6deg, transparent 1.6deg 9deg);
  -webkit-mask: radial-gradient(circle, rgba(0, 0, 0, 1) 0 18%, rgba(0, 0, 0, 0) 52%);
  mask: radial-gradient(circle, rgba(0, 0, 0, 1) 0 18%, rgba(0, 0, 0, 0) 52%);
  pointer-events: none;
}

.cta-plaque-title {
  margin: 0;
  font: italic 700 clamp(26px, 3vw, 34px)/1.15 var(--font-display);
  color: var(--c-ivory);
}

.cta-plaque-count {
  margin: 4px 0 0;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: 0.04em;
  color: var(--t-accent);
  text-shadow: 0 0 24px var(--t-glow);
  white-space: nowrap;
}

.cta-plaque-sub { max-width: 46ch; margin: 0 0 16px; }

/* ---------- Pricing rhythm ---------- */
.wrap-name {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5em;
}

.restore-box { margin-bottom: 56px; }

.price-group-label {
  grid-column: 1 / -1;
  margin: 8px 0 -4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-champagne);
}

.price-card { display: flex; flex-direction: column; }
.price-card .pay-provider-list { margin-top: auto; }

.price-badge {
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--c-brass);
  color: var(--c-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Code portal placeholder ---------- */
#mwf-code-input::placeholder { letter-spacing: 0.08em; }

/* ---------- Breadcrumb never strands "Home /" ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.breadcrumb [aria-current] {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .prose-article ol.idea-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prose-article ul.spark-cards { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  .stage-engrave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    font-size: 15px;
    color: var(--c-champagne);
  }

  .stage-engrave::before,
  .stage-engrave::after {
    content: "";
    flex: 1 1 24px;
    max-width: 56px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-strong));
  }

  .stage-engrave::after { background: linear-gradient(270deg, transparent, var(--line-strong)); }

  .preview-slot:not(.is-finale) .slot-num,
  .preview-slot.is-finale .slot-num { display: none; }

  .prose-article .section-lede { font-size: 16px; }
  .prose-article ol.step-strip,
  .prose-article ul.stationery-grid,
  .prose-article ol.tip-list,
  .prose-article ol.idea-grid { grid-template-columns: minmax(0, 1fr); }
  .prose-article ol.step-strip > li { padding: 60px 18px 18px; }

  .stat-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-block: 40px;
  }

  .stat-band span:nth-child(3) { border-left: 0; }
  .stat-band span:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stat-band span { padding: 20px 8px; }

  .privacy-panel { padding: 76px 20px 20px; }
  .privacy-panel::before { top: 22px; left: 20px; }

  .prose-article table.compare-table,
  .prose-article table.compare-table tbody,
  .prose-article table.compare-table tr,
  .prose-article table.compare-table td { display: block; width: 100%; }

  .prose-article table.compare-table { overflow: visible; }

  .prose-article table.compare-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .prose-article table.compare-table tr {
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    overflow: hidden;
  }

  .prose-article table.compare-table td {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
  }

  .prose-article table.compare-table td:last-child { border-bottom: 0; }

  .prose-article table.compare-table td::before {
    content: attr(data-label);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--fg-muted);
  }

  .prose-article table.compare-table td:first-child {
    display: block;
    padding: 14px;
    background: rgba(230, 194, 122, 0.06);
    font-family: var(--font-display);
    font-size: 18px;
  }

  .prose-article table.compare-table td:first-child::before { display: none; }
  .prose-article table.compare-table td:nth-child(2)::before { color: var(--c-champagne); }

  .cta-plaque { padding: 32px 18px 28px; }
  .cta-plaque .btn-hero { width: 100%; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
}

/* Phone: each idea list becomes one swipeable row instead of a 20-card stack */
@media (max-width: 640px) {
  .prose-article ol.idea-grid {
    display: flex;
    gap: 10px;
    margin-inline: -16px;
    padding: 4px 16px 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
  }

  .prose-article ol.idea-grid::-webkit-scrollbar { display: none; }

  .prose-article ol.idea-grid > li {
    flex: 0 0 80%;
    min-height: 168px;
    scroll-snap-align: start;
  }
}

/* ---------- Home: guide cards ---------- */
.guides-band {
  padding: 80px 0 88px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.guides-band h2 {
  margin: 0 0 32px;
  text-align: center;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.guide-card {
  --tone: var(--c-brass);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 176px;
  padding: 24px 24px 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(90% 70% at 100% 0%, color-mix(in srgb, var(--tone) 16%, transparent), transparent 62%),
    var(--surface);
  color: var(--fg);
  transition: border-color 220ms var(--ease), transform 220ms var(--ease);
}

.guide-card::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 18px;
  height: 18px;
  border-top: 1.5px solid var(--tone);
  border-right: 1.5px solid var(--tone);
  transform: rotate(45deg) scale(0.6);
  transition: transform 220ms var(--ease);
}

.guide-card:hover {
  border-color: color-mix(in srgb, var(--tone) 55%, transparent);
  transform: translateY(-4px);
  text-decoration: none;
}

.guide-card:hover::after { transform: translateX(4px) rotate(45deg) scale(0.6); }

.guide-card[data-tone="games"] { --tone: var(--c-champagne); }
.guide-card[data-tone="predictions"] { --tone: var(--c-violet); }
.guide-card[data-tone="wishes"] { --tone: var(--c-rose); }
.guide-card[data-tone="memories"] { --tone: var(--c-brass); }
.guide-card[data-tone="confessions"] { --tone: var(--c-crimson); }
.guide-card[data-tone="roasts"] { --tone: var(--c-teal); }

.guide-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-champagne);
}

.guide-card strong {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
}

.guide-line {
  padding-right: 28px;
  font-size: 14px;
  color: var(--fg-muted);
}

/* ---------- Inner pages: related guides ---------- */
.related-guides {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 8px;
}

.related-title {
  flex: 1 1 100%;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-champagne);
}

.related-guides a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}

.related-guides a:hover {
  border-color: var(--c-brass);
  background: rgba(230, 194, 122, 0.08);
  text-decoration: none;
}

.related-guides a[aria-current="page"] { display: none; }

@media (max-width: 960px) {
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .guides-band { padding: 56px 0 64px; }
  .guides-band h2 { text-align: left; margin-bottom: 20px; }
  .guide-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .guide-card { min-height: 0; padding: 18px 18px 16px; }
  .guide-card strong { font-size: 19px; }
  .related-guides a { min-height: 44px; }
}

/* =====================================================================
   v3.2 final polish: Bodoni W kerning & non-breaking hyphens, ivory
   stationery idea grids, 3-col pricing hierarchy, 2-col FAQ, compact
   mobile comparison matrix, and owner empty-tower shimmer
   ===================================================================== */

/* ---------- Typography kerning & non-breaking hyphens ---------- */
.kw { letter-spacing: -0.068em; }

.hy {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  padding: 0 0.03em;
}

.hy-nowrap { white-space: nowrap; }

.faq-item summary { text-wrap: balance; }
.prose-article ol.step-strip { align-items: stretch; }

/* ---------- Ivory stationery .idea-grid (aligned, zero orphans) ---------- */
.prose-article ol.idea-grid {
  margin: 24px 0 44px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.prose-article ol.idea-grid > li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.prose-article ol.idea-grid > li {
  gap: 12px;
  padding: 18px 20px 14px;
  border: 0;
  border-top: 3px solid var(--cat);
  border-radius: 10px;
  background:
    repeating-linear-gradient(180deg, rgba(160, 122, 58, 0) 0 25px, rgba(160, 122, 58, 0.13) 25px 26px) 0 44px / 100% calc(100% - 92px) no-repeat,
    linear-gradient(165deg, var(--c-ivory), var(--c-champagne));
  color: var(--c-ink);
  box-shadow: inset 0 0 0 1px rgba(160, 122, 58, 0.42), var(--shadow-1);
}

.prose-article ol.idea-grid > li:hover {
  box-shadow: inset 0 0 0 1px rgba(160, 122, 58, 0.72), var(--shadow-2);
}

.prose-article ol.idea-grid > li::before {
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(7, 7, 12, 0.08);
  color: var(--c-ink);
  font: 700 12px/1.1 var(--font-mono);
  letter-spacing: 0.08em;
}

.prose-article ol.idea-grid .idea-body {
  margin: 0;
  color: var(--c-ink);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  line-height: 26px;
}

.idea-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.prose-article ol.idea-grid .idea-copy {
  align-self: auto;
  margin-top: 0;
  min-height: 36px;
  border-color: rgba(7, 7, 12, 0.32);
  background: rgba(7, 7, 12, 0.06);
  color: var(--c-ink);
}

.prose-article ol.idea-grid .idea-copy:hover {
  border-color: var(--c-ink);
  background: rgba(7, 7, 12, 0.12);
}

.prose-article ol.idea-grid .idea-copy.is-done {
  background: var(--c-ink);
  color: var(--c-ivory);
  border-color: var(--c-ink);
}

.prose-article ol.idea-grid .idea-use {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font: 700 12px/1 var(--font-body);
  letter-spacing: 0.04em;
  color: var(--c-ink);
  text-decoration: underline;
  text-decoration-color: var(--c-brass-deep);
  text-underline-offset: 3px;
}

/* ---------- Pricing 3-col hierarchy & prose constraint ---------- */
.pricing-page .prose-article,
.pricing-page .restore-box,
.pricing-page .page-faq {
  max-width: 808px;
}

.price-card-top {
  align-items: flex-start;
  gap: 12px;
}

.price-card p { margin-bottom: 16px; }

.price-card.is-featured {
  border-color: var(--c-brass);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(230, 194, 122, 0.18), transparent 64%),
    var(--surface-2);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5), 0 0 36px var(--t-glow);
}

@media (min-width: 961px) {
  .pricing-page .editorial-wrap { max-width: 1080px; }

  .pricing-grid,
  .pay-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
  }

  .pricing-grid .price-card.is-wide,
  .pay-products-grid .price-card.is-wide {
    grid-column: span 2;
  }

  #faq { margin-inline: calc(50% - min(520px, 50vw - 24px)); }
  #faq .faq-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 40px;
    border-top: 0;
  }
  #faq .faq-item { border-top: 1px solid var(--line); }
}

/* ---------- Guide markdown tables (non-compare) ---------- */
.prose-article table:not(.compare-table) {
  display: table;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.prose-article table:not(.compare-table) th:last-child,
.prose-article table:not(.compare-table) td:last-child {
  background: rgba(230, 194, 122, 0.08);
  color: var(--fg);
}

/* ---------- Owner 0/21 empty tower shimmer & inner-page glow ---------- */
#mwf-capsule-app[data-empty="1"] .slot-card[data-finale="1"] .coupe-halo {
  opacity: 0.85;
}

#mwf-capsule-app[data-empty="1"] .slot-card[data-state="empty"] .coupe {
  --rim: rgba(230, 194, 122, 0.78);
  --glass: rgba(230, 194, 122, 0.42);
}

.tower-empty-hint {
  margin: 10px auto 4px;
  text-align: center;
  font: italic 500 16px/1.4 var(--font-display);
  color: var(--c-champagne);
}

.inner-page {
  position: relative;
  background:
    radial-gradient(60% 32% at 50% 0%, var(--t-sky-a), transparent 70%),
    var(--bg);
}

.page-head-mark.is-emblem {
  color: var(--c-brass);
  filter: drop-shadow(0 0 18px var(--t-glow));
}

/* ---------- Phone refinements (<= 640px) ---------- */
@media (max-width: 640px) {
  .site-header .brand-title { font-size: 15px; }
  .header-link span { padding: 0 10px; font-size: 12px; }
  .engrave-text { white-space: nowrap; }

  .prose-article ol.idea-grid {
    display: flex;
    gap: 12px;
    margin-inline: -16px;
    padding: 4px 16px 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
  }

  .prose-article ol.idea-grid > li {
    flex: 0 0 84%;
    min-height: 176px;
    scroll-snap-align: start;
  }

  .prose-article ol.idea-grid .idea-copy,
  .prose-article ol.idea-grid .idea-use {
    min-height: 44px;
  }

  .prose-article table:not(.compare-table) th,
  .prose-article table:not(.compare-table) td {
    padding: 10px;
    font-size: 13px;
  }

  .prose-article table.compare-table tr {
    display: block;
    margin-bottom: 12px;
  }

  .prose-article table.compare-table td:nth-child(1) {
    display: block;
    padding: 11px 14px;
    font-size: 16px;
  }

  .prose-article table.compare-table td:nth-child(2),
  .prose-article table.compare-table td:nth-child(3),
  .prose-article table.compare-table td:nth-child(4),
  .prose-article table.compare-table td:nth-child(5) {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 14px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    line-height: 1.4;
    text-align: right;
  }

  .prose-article table.compare-table td:last-child {
    border-bottom: 0;
  }

  .prose-article table.compare-table td:nth-child(2) {
    background: rgba(230, 194, 122, 0.14);
  }

  .prose-article table.compare-table td:nth-child(2)::before {
    content: "Midnight With Friends";
    color: var(--c-champagne);
    flex: none;
    text-align: left;
  }

  .prose-article table.compare-table td:nth-child(3)::before { content: "Group chat"; flex: none; text-align: left; }
  .prose-article table.compare-table td:nth-child(4)::before { content: "Paper jar"; flex: none; text-align: left; }
  .prose-article table.compare-table td:nth-child(5)::before { content: "Apps"; flex: none; text-align: left; }
}

/* =====================================================================
   v3.3 final 90+ polish: clean desktop empty tower, centered pricing
   prose, floating price badges, 2-col mobile wrap rack, balanced mobile
   footer, full-fit 3x2 mobile theme grid, FAQ link row
   ===================================================================== */

/* ---------- Clean desktop empty tower (zero label collisions) ---------- */
.tower .slot-card[data-state="empty"] .slot-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 961px) {
  .tower .slot-card-mid {
    display: block;
    max-width: calc(var(--card-w) - 4px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

/* ---------- Interactive hero preview slots ---------- */
.preview-slot {
  cursor: pointer;
  border-radius: 10px;
  transition: filter 180ms var(--ease);
}

.preview-slot:hover .coupe-rim,
.preview-slot.is-inspected .coupe-rim {
  border-color: var(--c-champagne);
  box-shadow: 0 0 12px var(--t-glow);
}

.preview-slot.is-inspected .coupe-halo {
  opacity: 0.95;
}

/* ---------- Single crisp editorial accent line (replaces split dash) ---------- */
.prose-article h2::before {
  width: 36px;
  box-shadow: none;
  opacity: 0.8;
}

/* ---------- FAQ links & even/odd safety ---------- */
.faq-link-row {
  margin-top: -8px !important;
  padding-bottom: 18px !important;
}

.faq-link-row a {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-brass);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 961px) {
  #faq .faq-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* ---------- Pricing: centered lower prose + absolute badges ---------- */
.pricing-page .prose-article,
.pricing-page .restore-box,
.pricing-page .page-faq {
  margin-inline: auto;
}

.pricing-grid,
.pay-products-grid {
  row-gap: 24px;
}

.price-card {
  position: relative;
}

.price-badge {
  position: absolute;
  top: -11px;
  left: 20px;
  z-index: 2;
  margin-bottom: 0;
  box-shadow: var(--shadow-1);
}

/* ---------- Inner-page sibling guide grid (6 balanced pills) ---------- */
@media (min-width: 961px) {
  .related-guides {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .related-title {
    grid-column: 1 / -1;
  }

  .related-guides a {
    justify-content: center;
    text-align: center;
    min-height: 44px;
  }
}

/* ---------- Swipe cue (mobile only) ---------- */
.idea-swipe-hint {
  display: none;
}

/* ---------- Phone adjustments (<= 640px) ---------- */
@media (max-width: 640px) {
  /* Fit H1 + full tower + 3x2 all-6-themes + create CTA + code link cleanly inside 390x844 fold */
  .hero-band { padding: 6px 0 28px; }
  .hero-grid { gap: 6px; }
  .hero-copy h1 { font-size: 24px; }
  .hero-kicker { font-size: 13px; }
  .stage-engrave { font-size: 14px; }

  .preview-grid {
    --cw: clamp(30px, calc((100vh - 645px) / 6.9), 36px);
    padding-top: 20px;
  }

  .ped-body { padding: 5px 18px 6px; }
  .stage-countdown { font-size: 18px; }

  .creator-card { padding: 12px 14px 10px; }
  .create-form { gap: 8px; }
  .creator-card input[type="text"] { min-height: 44px; padding: 8px 10px; }
  .creator-card .btn-primary { min-height: 46px; }
  .pw-details { padding-top: 2px; }
  .pw-details summary { min-height: 44px; font-size: 13px; }
  .creator-foot-links { margin-top: 4px; padding-top: 4px; }
  .code-shortcut { min-height: 44px; font-size: 13px; }
  .origin-badge { display: none; }

  /* 3x2 visible grid: zero clipped theme chips, zero hidden options */
  .creator-card .theme-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .creator-card .theme-chip {
    min-height: 44px;
    padding: 4px 6px;
    gap: 5px;
    font-size: 12px;
    line-height: 1.15;
    white-space: normal;
  }

  .creator-card .theme-chip::before {
    width: 12px;
    height: 12px;
  }

  /* 2-col mobile wrap rack: "Champagne Frost" fits without wrapping */
  .wrap-rack-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }

  .wrap-name {
    min-height: 0;
  }

  /* Idea swipe cue */
  .idea-swipe-hint {
    display: block;
    margin: 16px 0 4px;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-champagne);
  }

  /* Balanced mobile footer: Capsule + Legal top row, Guides 2-col full width below */
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }

  .footer-grid .footer-brand { grid-column: 1 / -1; order: 0; }
  .footer-grid .footer-nav[aria-label="Capsule tools"] { order: 1; }
  .footer-grid .footer-nav[aria-label="Legal"] { order: 2; }
  .footer-grid .footer-nav[aria-label="New Year guides"] {
    order: 3;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 16px;
  }
  .footer-grid .footer-nav[aria-label="New Year guides"] .footer-heading {
    grid-column: 1 / -1;
  }
}

/* =====================================================================
   v4.0 Festive Gala Upgrade: Gala Music equalizer pill, enlarged mobile
   21-glass champagne tower, coupe clink & shockwave, ballroom motes,
   and horizontal stationery galleries on all viewports
   ===================================================================== */

/* ---------- Header & Stage Gala Music Equalizer Pills ---------- */
.music-pill,
.stage-sound-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(230, 194, 122, 0.08);
  color: var(--c-champagne);
  font: 700 12px/1 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease), box-shadow 220ms var(--ease);
}

.stage-sound-btn {
  min-height: 36px;
  padding: 0 12px;
}

.music-pill:hover,
.stage-sound-btn:hover {
  border-color: var(--c-brass);
  background: rgba(230, 194, 122, 0.16);
}

html.mwf-music-on .music-pill,
html.mwf-music-on .stage-sound-btn {
  border-color: var(--c-brass);
  background: rgba(230, 194, 122, 0.2);
  color: var(--c-ivory);
  box-shadow: 0 0 18px var(--t-glow);
}

.music-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.music-bars i {
  display: block;
  width: 2px;
  border-radius: 2px;
  background: var(--c-brass);
  transform-origin: bottom;
}

.music-bars i:nth-child(1) { height: 5px; }
.music-bars i:nth-child(2) { height: 10px; }
.music-bars i:nth-child(3) { height: 7px; }
.music-bars i:nth-child(4) { height: 11px; }

html.mwf-music-on .music-bars i {
  animation: eq-dance 900ms ease-in-out infinite alternate;
}

html.mwf-music-on .music-bars i:nth-child(2) { animation-delay: -220ms; }
html.mwf-music-on .music-bars i:nth-child(3) { animation-delay: -520ms; }
html.mwf-music-on .music-bars i:nth-child(4) { animation-delay: -340ms; }

@keyframes eq-dance {
  0% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(0.55); }
}

/* ---------- Hero Stage Caption & High-Contrast Numbers ---------- */
.stage-title-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
}

.theme-active-inline {
  color: var(--t-accent);
  font-weight: 800;
}

.preview-slot[data-wrap="velvet-wax"] .slot-num,
.preview-slot[data-wrap="supernova"] .slot-num {
  --num-fg: var(--c-ivory);
  text-shadow: 0 1px 3px rgba(7, 7, 12, 0.95);
}

/* ---------- Coupe Toast Clink, Rim Shockwave, & Roving Glint ---------- */
.wrap-rack .wrap-glass,
.note-deck .note-card {
  cursor: pointer;
}

.is-clinking .coupe {
  animation: coupe-clink 560ms var(--ease);
  transform-origin: 50% 90%;
}

.note-card.is-clinking {
  animation: card-toast 500ms var(--ease);
}

.is-clinking .coupe-rim::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1.5px solid var(--c-champagne);
  border-radius: 50%;
  pointer-events: none;
  animation: rim-ring 560ms var(--ease) forwards;
}

@keyframes coupe-clink {
  0% { transform: scale(1) rotate(0deg); filter: brightness(1); }
  25% { transform: translateY(-6px) scale(1.12) rotate(-6deg); filter: brightness(1.45) drop-shadow(0 0 16px var(--t-glow)); }
  58% { transform: translateY(-2px) scale(1.04) rotate(3deg); filter: brightness(1.22); }
  100% { transform: scale(1) rotate(0deg); filter: brightness(1); }
}

@keyframes card-toast {
  0% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-8px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes rim-ring {
  0% { opacity: 0.95; transform: scale(0.95); }
  100% { opacity: 0; transform: scale(1.75); }
}

.is-glinting .coupe-rim {
  animation: coupe-glint 1350ms var(--ease);
}

.preview-slot .coupe,
.slot-card .coupe {
  transition: transform 240ms var(--ease);
}

.is-music-note .coupe {
  transform: translateY(-6px) scale(1.08);
  transform-origin: 50% 90%;
}

.is-music-chord .coupe {
  transform: translateY(-3px) scale(1.03);
  transform-origin: 50% 90%;
}

.is-music-note .coupe-rim {
  border-color: var(--c-ivory);
  box-shadow: 0 0 14px var(--c-champagne), 0 0 24px var(--t-glow);
}

.is-music-chord .coupe-rim {
  border-color: var(--c-champagne);
  box-shadow: 0 0 10px var(--c-brass);
}

.is-music-note .coupe-halo {
  opacity: 0.95;
  transform: scale(1.16);
  transition: opacity 180ms ease, transform 240ms ease;
}

@media (min-width: 961px) {
  .is-music-note .coupe-rim::before {
    content: "";
    position: absolute;
    inset: -3px;
    border: 1px solid var(--c-champagne);
    border-radius: 50%;
    pointer-events: none;
    animation: rim-ring 460ms var(--ease) forwards;
  }
}

@keyframes coupe-glint {
  0%, 100% { box-shadow: 0 0 6px rgba(247, 240, 225, 0.28); }
  45% { box-shadow: 0 0 18px var(--c-champagne), 0 0 28px var(--t-glow); border-color: var(--c-ivory); }
}

/* ---------- Ambient Ballroom Champagne Motes ---------- */
.ballroom-motes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.ballroom-motes .mote {
  position: absolute;
  bottom: -12px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c-ivory), var(--c-brass) 65%, transparent);
  opacity: 0;
  animation: mote-float 11s linear infinite;
}

.ballroom-motes .mote:nth-child(3n) {
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, var(--t-accent-2), var(--t-accent) 60%, transparent);
}

@keyframes mote-float {
  0% { transform: translate3d(0, 0, 0) scale(0.7); opacity: 0; }
  15% { opacity: 0.55; }
  75% { opacity: 0.38; }
  100% { transform: translate3d(18px, -82vh, 0) scale(1.1); opacity: 0; }
}

/* ---------- Category Jump Bar & Horizontal Stationery Galleries (All Viewports) ---------- */
.idea-jump-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 20px 0 32px;
}

.idea-jump-bar a {
  --cat: var(--c-brass);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(17, 18, 27, 0.85);
  color: var(--fg);
  font: 700 13px/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 180ms var(--ease), transform 180ms var(--ease), background-color 180ms var(--ease);
}

.idea-jump-bar a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cat);
}

.idea-jump-bar a[data-cat="confessions"] { --cat: var(--c-crimson); }
.idea-jump-bar a[data-cat="predictions"] { --cat: var(--c-violet); }
.idea-jump-bar a[data-cat="memories"] { --cat: var(--c-brass); }
.idea-jump-bar a[data-cat="roasts"] { --cat: var(--c-teal); }
.idea-jump-bar a[data-cat="wishes"] { --cat: var(--c-rose); }

.idea-jump-bar a:hover {
  border-color: var(--cat);
  background: rgba(230, 194, 122, 0.1);
  transform: translateY(-2px);
  text-decoration: none;
}

.idea-rail {
  --cat: var(--c-brass);
  margin: 18px 0 42px;
}

.idea-rail[data-prompt="confessions"] { --cat: var(--c-crimson); }
.idea-rail[data-prompt="predictions"] { --cat: var(--c-violet); }
.idea-rail[data-prompt="memories"] { --cat: var(--c-brass); }
.idea-rail[data-prompt="roasts"] { --cat: var(--c-teal); }
.idea-rail[data-prompt="wishes"] { --cat: var(--c-rose); }

.idea-rail-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.idea-rail-meta {
  flex: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.idea-rail-count {
  color: var(--c-champagne);
  font-weight: 700;
}

.idea-rail-progress {
  position: relative;
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

.idea-rail-bar {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--cat), var(--c-brass));
  transform-origin: left center;
  transform: scaleX(0.14);
  transition: transform 180ms var(--ease);
}

.idea-rail-nav {
  display: inline-flex;
  gap: 8px;
  flex: none;
}

.rail-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(17, 18, 27, 0.85);
  color: var(--c-champagne);
  font: 600 22px/1 var(--font-body);
  cursor: pointer;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease), opacity 160ms var(--ease);
}

.rail-btn:hover:not(:disabled) {
  border-color: var(--c-brass);
  background: rgba(230, 194, 122, 0.16);
}

.rail-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.prose-article ol.idea-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  margin: 0;
  padding: 6px 4px 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0, rgba(0, 0, 0, 1) calc(100% - 44px), rgba(0, 0, 0, 0.14) 100%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0, rgba(0, 0, 0, 1) calc(100% - 44px), rgba(0, 0, 0, 0.14) 100%);
}

.prose-article ol.idea-grid.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.prose-article ol.idea-grid::-webkit-scrollbar {
  display: none;
}

.prose-article ol.idea-grid > li,
.prose-article ol.idea-grid > li:last-child:nth-child(odd) {
  flex: 0 0 336px;
  min-height: 204px;
  grid-column: auto;
  scroll-snap-align: start;
}

/* ---------- Seamless feathered bokeh hero backdrop (zero x=30% seam & zero ghost tower) ---------- */
.hero-plate {
  inset: 0;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 1) 58%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 1) 58%);
}

.hero-plate img {
  opacity: 0.16;
  filter: blur(34px) saturate(1.2);
  transform: scale(1.12);
  -webkit-mask-image: radial-gradient(ellipse 56% 66% at 58% 48%, rgba(0, 0, 0, 0) 0 68%, rgba(0, 0, 0, 1) 100%);
  mask-image: radial-gradient(ellipse 56% 66% at 58% 48%, rgba(0, 0, 0, 0) 0 68%, rgba(0, 0, 0, 1) 100%);
}

.hero-plate::after {
  background:
    radial-gradient(48% 64% at 64% 50%, rgba(7, 7, 12, 0.56), transparent 100%),
    linear-gradient(0deg, rgba(7, 7, 12, 0.96), rgba(7, 7, 12, 0) 24%),
    linear-gradient(180deg, rgba(7, 7, 12, 0.72), rgba(7, 7, 12, 0) 20%);
}

@media (max-width: 1080px) {
  .hero-plate {
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0) 92%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0) 92%);
  }

  .hero-plate img {
    opacity: 0.14;
    filter: blur(34px) saturate(1.15);
    transform: scale(1.12);
    -webkit-mask-image: radial-gradient(ellipse 68% 58% at 50% 42%, rgba(0, 0, 0, 0) 0 70%, rgba(0, 0, 0, 1) 100%);
    mask-image: radial-gradient(ellipse 68% 58% at 50% 42%, rgba(0, 0, 0, 0) 0 70%, rgba(0, 0, 0, 1) 100%);
  }
}

/* ---------- Mobile Responsive Tower, Header Music, & Gallery (<= 640px) ---------- */
@media (max-width: 640px) {
  .site-header .header-inner {
    min-height: 50px;
    padding-inline: 12px;
    gap: 6px;
  }

  .site-header .brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
  }

  .site-header .brand-mark {
    flex: none;
    width: 25px;
    height: 25px;
  }

  .site-header .brand-copy { min-width: 0; }

  .site-header .brand-title {
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-header .header-actions {
    flex: none;
    gap: 4px;
  }

  .site-header .header-code { display: none; }

  .music-pill {
    flex: none;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
  }

  .music-pill-txt {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .stage-sound-btn { display: none; }

  /* Mobile fold fit: enlarged ~40px 21-glass tower + 1-line kicker + natural form order + full footer link inside 390x844 */
  .hero-band { padding: 12px 0 24px; }
  .hero-grid { gap: 7px; }
  .hero-copy { display: contents; }
  .hero-copy h1 { order: 0; margin: 0; font-size: 22px; line-height: 1.08; }

  .hero-kicker {
    display: block;
    order: 1;
    margin: -1px 0 3px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--fg-muted);
  }

  .hero-stage {
    order: 2;
    margin-inline: 0;
    width: 100%;
    gap: 2px;
  }

  .hero-stage .stage-meta-row {
    gap: 2px;
    margin-bottom: -4px;
  }

  .stage-engrave { font-size: 14px; }

  .hero-stage .stage-sub {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    letter-spacing: 0.06em;
    white-space: nowrap;
    max-width: 100%;
  }

  .hero-stage .stage-sub .preview-theme-label,
  .hero-stage .stage-sub .stage-sub-sep {
    display: none;
  }

  #mwf-stage-toast {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* ~39px coupes (+30% wider vs v3.3's 30px) with kicker + Help pill inside 390x844 */
  .preview-grid {
    --cw: clamp(37px, calc((100cqw - 60px) / 7.5), 39px);
    padding-top: 17px;
  }

  .preview-slot:not(.is-finale) .slot-num,
  .preview-slot.is-finale .slot-num {
    display: flex;
    font-size: 12px;
  }

  .tower-pedestal { margin-top: 3px; }
  .ped-cap { height: 7px; }
  .ped-body { padding: 4px 16px 5px; }
  .ped-base { height: 5px; }
  .stage-countdown { font-size: 17px; }

  .creator-card { padding: 10px 14px 8px; }
  .create-form { gap: 6px; }
  .creator-card .field-group { gap: 4px; }
  .creator-card input[type="text"] { min-height: 44px; padding: 6px 10px; }
  .creator-card .btn-primary { min-height: 45px; }

  #mwf-create-btn,
  #mwf-create-status,
  .create-form .pw-details {
    order: 0;
  }

  .create-form .pw-details { padding-top: 2px; }
  .creator-foot-links { margin-top: 3px; padding-top: 3px; }

  .tower-stage {
    margin-inline: 0;
    width: 100%;
    --tg: 3px;
    --card-w-base: calc((100cqw - 15px) / 6);
    --cw-base: calc(var(--card-w-base) * 0.97);
  }

  /* Sleek 1-row 6-Jewel Swatch Picker (fits comfortably under enlarged tower) */
  .creator-card .theme-picker {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
  }

  .creator-card .theme-chip {
    justify-content: center;
    min-height: 44px;
    padding: 0;
    border-radius: 10px;
  }

  .creator-card .theme-chip::before {
    width: 24px;
    height: 24px;
  }

  .creator-card .theme-chip .theme-chip-txt {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .idea-jump-bar a { min-height: 44px; }
  .rail-btn { width: 44px; height: 44px; }

  .prose-article ol.idea-grid {
    margin-inline: -16px;
    padding: 6px 16px 16px;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .prose-article ol.idea-grid > li,
  .prose-article ol.idea-grid > li:last-child:nth-child(odd) {
    flex: 0 0 84%;
    min-height: 184px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.mwf-music-on .music-bars i,
  .is-clinking .coupe,
  .note-card.is-clinking,
  .is-clinking .coupe-rim::after,
  .is-music-note .coupe-rim::before,
  .is-glinting .coupe-rim,
  .ballroom-motes .mote {
    animation: none !important;
  }
  .is-music-note .coupe,
  .is-music-chord .coupe {
    transition: none !important;
    transform: none !important;
  }
  .ballroom-motes { display: none; }
}

/* =====================================================================
   v5.0 Mobile Fast-Scroll GPU Layer Lock, ? Help Modal, Welcome Back,
   & Midnight Party Mini-Games (/games)
   ===================================================================== */

@media (min-width: 961px) {
  .capsule-promo-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Mobile & Tablet GPU Compositor Lock: prevents Chrome tile eviction during fast flings */
@media (max-width: 960px) {
  .preview-grid,
  .tower {
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
  }

  .preview-slot:not(.is-clinking),
  .slot-card:not(.is-clinking):not([data-state="peeked"]) {
    isolation: auto;
  }

  [data-state]:not([data-state="empty"]) .coupe-bowl::before {
    animation: none;
    opacity: 0.72;
  }

  [data-wrap="aurora-prism"] .coupe-liquid,
  [data-wrap="gold-foil"] .coupe-liquid::after,
  [data-wrap="midnight-ball"] .coupe::after,
  .slot-card[data-finale="1"] .coupe::before,
  .preview-slot.is-finale .coupe::before,
  [data-wrap="supernova"] .coupe::before,
  .bokeh,
  .hero-band::before {
    animation: none;
  }

  .hero-sunburst {
    left: 50%;
    top: 30%;
    width: 540px;
    height: 540px;
    animation: none;
  }

  .hero-stage::before {
    top: 0;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 24%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 24%);
  }

  .hero-plate {
    display: none;
  }

  .creator-card,
  .m-dock {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: linear-gradient(180deg, rgba(14, 15, 24, 0.97), rgba(7, 7, 12, 0.99));
  }
}

/* ---------- Returning-Owner Bar & Help Modal ---------- */
.welcome-back-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 10px;
  border: 1px solid var(--c-brass);
  border-radius: 10px;
  background: rgba(230, 194, 122, 0.12);
  font-size: 13px;
  color: var(--c-ivory);
}

.welcome-back-bar strong { color: var(--c-champagne); }

.mine-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.note-card .note-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "from seal"
    "btn seal";
  align-items: center;
  gap: 5px 8px;
}

.note-card .note-from {
  grid-area: from;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.note-card .note-seal {
  grid-area: seal;
  width: 42px;
  height: 42px;
}

.note-use-btn {
  grid-area: btn;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  white-space: nowrap;
  min-height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--c-ink);
  border-radius: 999px;
  background: rgba(7, 7, 12, 0.06);
  color: var(--c-ink);
  font: 700 12px/1 var(--font-body);
  cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}

.note-card:hover .note-use-btn,
.note-use-btn:hover {
  border-color: var(--c-ink);
  background: var(--c-ink);
  color: var(--c-ivory);
}

@media (max-width: 640px) {
  .note-use-btn { min-height: 44px; padding: 0 14px; }
}

.help-inline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(230, 194, 122, 0.08);
  color: var(--c-champagne);
  font: 700 12px/1 var(--font-body);
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}

.help-inline-btn:hover {
  border-color: var(--c-brass);
  background: rgba(230, 194, 122, 0.16);
}

.help-qa-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.help-qa-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.56);
  overflow: hidden;
}

.help-qa-item[open] {
  border-color: var(--c-brass-deep);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px rgba(7, 7, 12, 0.06);
}

.help-qa-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-ink);
  cursor: pointer;
  list-style: none;
}

.help-qa-item summary::-webkit-details-marker { display: none; }

.help-qa-item summary::after {
  content: "+";
  flex: none;
  font: 600 20px/1 var(--font-body);
  color: var(--c-brass-deep);
}

.help-qa-item[open] summary::after { content: "\2212"; }

.help-qa-body {
  padding: 0 14px 14px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(7, 7, 12, 0.82);
}

.help-qa-body p { margin: 0 0 8px; color: rgba(7, 7, 12, 0.82); }
.help-qa-body p:last-child { margin-bottom: 0; }
.help-qa-body ol,
.help-qa-body ul { margin: 6px 0 10px 18px; padding: 0; }
.help-qa-body li { margin-bottom: 4px; color: rgba(7, 7, 12, 0.82); }
.help-qa-body strong { color: var(--c-ink); }
.help-qa-body code { background: rgba(7, 7, 12, 0.08); color: var(--c-ink); padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.help-qa-body a { color: var(--c-brass-deep); font-weight: 700; text-decoration: underline; }

.help-qa-tip {
  margin-top: 8px;
  padding: 9px 12px;
  border-left: 3px solid var(--c-brass-deep);
  border-radius: 0 8px 8px 0;
  background: rgba(230, 194, 122, 0.28);
  color: var(--c-ink);
  font-size: 13px;
  font-weight: 600;
}

.help-modal-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.help-modal-foot .btn { flex: 1 1 200px; }

/* ---------- Midnight Cork Pop (/games) ---------- */
.cork-game-shell {
  max-width: 780px;
  margin: 28px auto 44px;
}

.cork-game-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-2);
}

.game-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}

.game-card-head h2 {
  margin: 0;
  font-size: 28px;
  color: var(--c-champagne);
}

.cork-mode-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cork-mode-bar .chip {
  color: var(--c-champagne);
  border-color: var(--line-strong);
}

.cork-mode-bar .chip.is-selected {
  background: var(--c-brass);
  border-color: var(--c-brass);
  color: var(--c-ink);
}

.game-hud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.game-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 7, 12, 0.65);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
}

.game-stat b {
  color: var(--c-ivory);
  font-family: var(--font-mono);
}

.game-sub {
  margin: 0;
  font-size: 15px;
  color: var(--fg-muted);
}

.cork-stage-wrap {
  position: relative;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--c-ink);
  overflow: hidden;
}

#mwf-cork-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 400;
  touch-action: manipulation;
  user-select: none;
  cursor: pointer;
}

.cork-dare-card {
  position: relative;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid var(--c-brass);
  background: var(--c-ivory);
  color: var(--c-ink);
  box-shadow: 0 0 0 1px var(--c-brass), var(--shadow-2);
  animation: card-rise 260ms var(--ease);
}

.cork-dare-kicker {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--c-brass-deep);
  margin-bottom: 4px;
}

.cork-dare-text {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-ink);
}

.game-status {
  margin: 0;
  min-height: 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-champagne);
}

.cork-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cork-main-btn {
  width: 100%;
  min-height: 54px;
  font-size: 17px;
  touch-action: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.game-actions .btn {
  flex: 1 1 160px;
}

@media (max-width: 640px) {
  .cork-game-card { padding: 18px 16px; }
  .game-card-head h2 { font-size: 24px; }
  .cork-dare-text { font-size: 17px; }
}
