
:root {
  --bg: #0B192C;
  --bg-deep: #071221;
  --bg-halo-1: rgba(34, 78, 134, 0.42);
  --bg-halo-2: rgba(244, 201, 93, 0.11);
  --glass: rgba(15, 34, 60, 0.74);
  --glass-soft: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(12, 27, 48, 0.88);
  --ink: #FDF8EE;
  --muted: #B9C8DC;
  --muted-soft: #8FA5C2;
  --gold: #F4C95D;
  --gold-soft: rgba(244, 201, 93, 0.24);
  --gold-line: rgba(244, 201, 93, 0.18);
  --crimson: #C83E37;
  --amber: #E3A73B;
  --pine: #195E4A;
  --danger: #FF8780;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glass: 0 22px 54px rgba(3, 9, 20, 0.55);
  --shadow-gold: 0 0 28px rgba(244, 201, 93, 0.22);
}

body[data-theme="nordic"] {
  --bg: #081A1C;
  --bg-deep: #051113;
  --bg-halo-1: rgba(24, 92, 82, 0.42);
  --bg-halo-2: rgba(232, 202, 122, 0.11);
  --glass: rgba(11, 37, 38, 0.76);
  --glass-strong: rgba(8, 28, 30, 0.9);
  --gold: #ECCD7D;
}

body[data-theme="starlight"] {
  --bg: #091024;
  --bg-deep: #050917;
  --bg-halo-1: rgba(56, 62, 138, 0.42);
  --bg-halo-2: rgba(244, 201, 93, 0.14);
  --glass: rgba(15, 22, 52, 0.76);
  --glass-strong: rgba(11, 16, 40, 0.9);
}

body[data-theme="pine_tree"] {
  --bg: #08192C;
  --bg-deep: #05111F;
  --bg-halo-1: rgba(20, 82, 68, 0.36);
  --bg-halo-2: rgba(244, 201, 93, 0.14);
  --glass: rgba(12, 33, 52, 0.76);
}

body[data-theme="snow_birch"] {
  --bg: #0D1E2E;
  --bg-deep: #08131E;
  --bg-halo-1: rgba(68, 114, 146, 0.34);
  --bg-halo-2: rgba(240, 207, 130, 0.12);
  --glass: rgba(18, 39, 58, 0.76);
}

body[data-theme="golden_hearth"] {
  --bg: #131822;
  --bg-deep: #0B0F16;
  --bg-halo-1: rgba(152, 74, 42, 0.3);
  --bg-halo-2: rgba(244, 201, 93, 0.18);
  --glass: rgba(26, 29, 41, 0.78);
}

body[data-theme="strawberry"],
body[data-theme="matcha"],
body[data-theme="berry"] {
  --bg: #161329;
  --bg-deep: #0E0B1D;
  --bg-halo-1: rgba(132, 48, 96, 0.36);
  --bg-halo-2: rgba(244, 201, 93, 0.14);
  --glass: rgba(30, 24, 54, 0.78);
  --glass-strong: rgba(22, 17, 42, 0.92);
}

body[data-theme="matcha"] {
  --bg-halo-1: rgba(38, 102, 76, 0.34);
}

body[data-theme="berry"] {
  --bg-halo-1: rgba(94, 52, 138, 0.4);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 84% 580px at 50% 0%, var(--bg-halo-1), transparent 72%),
    radial-gradient(circle 520px at 82% 240px, var(--bg-halo-2), transparent 68%),
    radial-gradient(circle 480px at 18% 720px, rgba(244, 201, 93, 0.06), transparent 68%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

a.btn-primary,
a.btn-primary:hover {
  color: #FDF8EE;
  text-decoration: none;
}

a.btn-secondary,
a.btn-secondary:hover {
  color: var(--ink);
  text-decoration: none;
}

/* Subtle GPU-composited drifting winter stars & snow */
.snow-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.48;
}

.snow-layer::before,
.snow-layer::after {
  content: "";
  position: absolute;
  top: -120px;
  left: -10%;
  right: -10%;
  bottom: -120px;
  background-repeat: repeat;
  will-change: transform;
}

.snow-layer::before {
  background-image:
    radial-gradient(1.5px 1.5px at 24px 36px, rgba(253, 248, 238, 0.85), transparent),
    radial-gradient(2px 2px at 112px 92px, rgba(244, 201, 93, 0.72), transparent),
    radial-gradient(1.5px 1.5px at 186px 48px, rgba(253, 248, 238, 0.65), transparent),
    radial-gradient(2px 2px at 264px 142px, rgba(253, 248, 238, 0.75), transparent),
    radial-gradient(1.5px 1.5px at 74px 188px, rgba(244, 201, 93, 0.6), transparent);
  background-size: 320px 240px;
  animation: snowDriftSlow 28s linear infinite;
}

.snow-layer::after {
  background-image:
    radial-gradient(2.2px 2.2px at 42px 64px, rgba(253, 248, 238, 0.55), transparent),
    radial-gradient(1.6px 1.6px at 148px 16px, rgba(244, 201, 93, 0.5), transparent),
    radial-gradient(2px 2px at 218px 128px, rgba(253, 248, 238, 0.5), transparent);
  background-size: 280px 260px;
  animation: snowDriftFast 19s linear infinite;
}

@keyframes snowDriftSlow {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(24px, 240px, 0); }
}

@keyframes snowDriftFast {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-20px, 260px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .snow-layer {
    display: none;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

.wrap {
  position: relative;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Frosted Dark Glass Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 25, 44, 0.74);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(244, 201, 93, 0.14);
}

body[data-theme="strawberry"] .site-header,
body[data-theme="matcha"] .site-header,
body[data-theme="berry"] .site-header {
  background: rgba(22, 19, 41, 0.76);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.55rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-link:hover {
  text-decoration: none;
  color: var(--gold);
}

.brand-on {
  font-style: italic;
  color: var(--gold);
}

.brand-link picture {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-link picture img {
  width: 42px;
  height: 42px;
  max-width: none;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(244, 201, 93, 0.34));
}

.brand-link img.brand-wordmark,
img.brand-wordmark {
  width: auto;
  height: 36px;
  max-width: none;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  filter: none;
}

.footer-wordmark-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.footer-brand img.brand-wordmark {
  height: 30px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  border-radius: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #E7EEF8;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  text-decoration: none;
}

.nav-link.is-active {
  background: rgba(244, 201, 93, 0.16);
  border-color: rgba(244, 201, 93, 0.34);
  color: var(--gold);
}

.lang-select {
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(244, 201, 93, 0.24);
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.lang-select option {
  background: #0F223A;
  color: #FDF8EE;
}

main {
  position: relative;
  padding: 10px 0 60px;
}

/* Centered Theatrical Stage Hero */
.stage-hero {
  position: relative;
  max-width: 960px;
  margin: 0 auto 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stage-hero.is-compact {
  margin-bottom: 18px;
}

/* Balanced Above-the-Fold Portrait Theater (Tree & Cake Landings) */
.portrait-theater-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 28px;
  align-items: center;
  margin: 4px auto 34px;
}

.portrait-theater-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.portrait-theater-copy h1 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(2.45rem, 4.4vw, 3.65rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-shadow: 0 8px 34px rgba(3, 9, 20, 0.55);
}

.portrait-theater-copy .hero-sub {
  margin: 0 0 20px;
  text-align: left;
  max-width: 540px;
}

.portrait-creator-card {
  width: 100%;
  padding: 18px;
  border-radius: 22px;
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(244, 201, 93, 0.28);
  box-shadow: var(--shadow-glass), inset 0 1px 0 rgba(255, 255, 255, 0.11);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portrait-creator-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.portrait-creator-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.portrait-theater-copy .pill-subline {
  justify-content: flex-start;
}

.portrait-theater-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portrait-theater-visual .visual-stage-shell {
  max-width: 470px;
  margin: 0 auto;
}

.portrait-stage-label {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--gold);
  text-align: center;
}

.kicker,
.live-countdown {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(244, 201, 93, 0.92);
}

.live-countdown {
  text-transform: none;
}

.stage-hero h1,
.room-hero h1 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(2.15rem, 4.2vw, 3.25rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-shadow: 0 8px 34px rgba(3, 9, 20, 0.55);
  max-width: 820px;
}

.hero-sub {
  margin: 0 auto 14px;
  max-width: 650px;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Seamless Masked Storybook Gouache Artwork — ZERO rigid card borders */
.hero-art-stage {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 8px;
}

.hero-art-stage::before {
  content: "";
  position: absolute;
  width: 72%;
  height: 78%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 201, 93, 0.24) 0%, rgba(200, 62, 55, 0.08) 45%, transparent 74%);
  filter: blur(36px);
  z-index: 0;
  pointer-events: none;
}

.hero-art-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  outline: 0;
  -webkit-mask-image: radial-gradient(ellipse 46% 45% at 50% 48%, #000 38%, rgba(0, 0, 0, 0.68) 64%, transparent 94%);
  mask-image: radial-gradient(ellipse 46% 45% at 50% 48%, #000 38%, rgba(0, 0, 0, 0.68) 64%, transparent 94%);
}

.hero-art-wide {
  max-width: 680px;
  max-height: 244px;
  object-fit: cover;
  object-position: center 44%;
}

.hero-art-square {
  max-width: 340px;
  max-height: 310px;
  object-fit: contain;
}

.hero-art-square.is-gift-box {
  cursor: pointer;
  transition: transform 0.24s ease;
}

.hero-art-square.is-gift-box:hover {
  transform: translateY(-4px) rotate(-1.5deg);
}

/* Floating Glass Pill Creator Bar */
.creator-pill-wrap {
  width: 100%;
  max-width: 820px;
  margin: 6px auto 0;
}

.creator-pill-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  padding: 10px 12px;
  border-radius: 22px;
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(244, 201, 93, 0.28);
  box-shadow: var(--shadow-glass), inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

.creator-pill-bar.has-date {
  max-width: 880px;
}

.pill-input {
  flex: 1 1 200px;
  min-width: 0;
  height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(6, 15, 28, 0.62);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.98rem;
}

.pill-input::placeholder {
  color: var(--muted-soft);
}

.pill-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(244, 201, 93, 0.18);
}

.pill-date {
  flex: 0 0 156px;
  height: 46px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(6, 15, 28, 0.62);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color-scheme: dark;
}

.pill-date:focus {
  outline: none;
  border-color: var(--gold);
}

.skin-orb-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(6, 15, 28, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.skin-orb {
  position: relative;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  flex-shrink: 0;
}

.skin-orb:hover {
  transform: scale(1.1);
}

.skin-orb[aria-pressed="true"] {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--bg-deep), 0 0 0 4px var(--gold), 0 0 14px rgba(244, 201, 93, 0.6);
  transform: scale(1.08);
}

.skin-orb .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;
}

/* Haute-Couture Crimson Velvet + Antique Gold Trim Primary CTA */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(244, 201, 93, 0.48);
  border-radius: 14px;
  background: linear-gradient(180deg, #C73540 0%, #961E29 100%);
  color: #FDF8EE;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(150, 30, 41, 0.46), inset 0 1px 0 rgba(255, 232, 186, 0.34);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  flex-shrink: 0;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
  box-shadow: 0 14px 32px rgba(199, 53, 64, 0.42), 0 0 18px rgba(244, 201, 93, 0.24);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary.is-full {
  width: 100%;
}

/* Boss-Approved D2 Cream Parchment + 3D Crimson Wax Star Medallion Seal */
.d2-seal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px 0 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FDF4E0 0%, #EFE0BE 100%);
  border: 1.5px solid #D5A347;
  color: #2B1B10;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 22px rgba(4, 10, 22, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  flex-shrink: 0;
}

.d2-seal:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(4, 10, 22, 0.5), 0 0 16px rgba(244, 201, 93, 0.28);
  text-decoration: none;
  color: #2B1B10;
}

.d2-seal.is-compact {
  height: 36px;
  padding: 0 14px 0 6px;
  font-size: 0.96rem;
  gap: 8px;
}

.d2-wax {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 32% 28%, #E4545E 0%, #A91E28 58%, #6D0E16 100%);
  border: 1px solid rgba(244, 201, 93, 0.48);
  color: #F7D77B;
  font-size: 0.76rem;
  line-height: 1;
  box-shadow: inset 0 2px 4px rgba(255, 190, 196, 0.35), 0 2px 6px rgba(43, 12, 16, 0.45);
  flex-shrink: 0;
}

.d2-seal.is-compact .d2-wax {
  width: 24px;
  height: 24px;
  font-size: 0.68rem;
}

.d2-code-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #7C1A22;
}

.d2-copy-tag {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  color: #5A422B;
  padding-left: 8px;
  border-left: 1px solid rgba(154, 114, 48, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(244, 201, 93, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.btn-secondary:hover {
  background: rgba(244, 201, 93, 0.14);
  border-color: var(--gold);
  text-decoration: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: rgba(244, 201, 93, 0.32);
}

.pill-subline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted-soft);
}

.pill-subline a {
  color: var(--gold);
  font-weight: 600;
}

/* Collapsed Secondary Occasions Drawer */
.more-formats {
  width: 100%;
  max-width: 680px;
  margin: 12px auto 0;
  text-align: left;
}

.more-formats-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto;
  list-style: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  transition: color 0.15s ease;
}

.more-formats-summary:hover {
  color: var(--gold);
}

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

.more-formats-body {
  margin-top: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--glass);
  border: 1px solid var(--gold-line);
}

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

.mode-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 15, 28, 0.55);
  color: var(--ink);
  font-family: var(--font-sans);
  cursor: pointer;
}

.mode-option strong {
  font-size: 0.86rem;
  margin-bottom: 3px;
}

.mode-option span {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.35;
}

.mode-option[aria-pressed="true"] {
  border-color: var(--gold);
  background: rgba(244, 201, 93, 0.14);
}

.vault-date-row {
  display: none;
  margin-top: 12px;
}

.vault-date-row.visible {
  display: block;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.chip-btn {
  height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.chip-btn[aria-pressed="true"] {
  border-color: var(--gold);
  background: rgba(244, 201, 93, 0.18);
  color: var(--gold);
}

/* Interactive 3D Hinged Doors Board (Homepage Demo + Real Advent/Vault Rooms) */
.doors-showcase-section {
  margin: 14px 0 38px;
}

.section-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.section-bar h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 400;
  color: var(--ink);
}

.section-bar p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.doors-grid-3d {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.door-3d {
  position: relative;
  min-height: 152px;
  padding: 0;
  border: 0;
  background: transparent;
  perspective: 900px;
  cursor: pointer;
  text-align: center;
  font-family: var(--font-sans);
  color: var(--ink);
}

.door-recess {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 50% 45%, #3C2816 0%, #1C120B 82%);
  border: 1px solid rgba(244, 201, 93, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  color: #F4C95D;
  font-family: var(--font-serif);
  font-size: 1rem;
  box-shadow: inset 0 0 24px rgba(244, 201, 93, 0.25);
}

.door-leaf {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 152px;
  padding: 12px 10px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: 0 12px 28px rgba(4, 10, 22, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.door-3d:hover .door-leaf {
  transform: rotateY(-12deg) translateY(-2px);
  box-shadow: 0 18px 34px rgba(4, 10, 22, 0.6), 0 0 18px rgba(244, 201, 93, 0.22);
}

.door-3d.is-swinging .door-leaf,
.door-3d.is-swung .door-leaf {
  transform: rotateY(-112deg);
}

.door-3d.gift-shaking .door-leaf {
  animation: giftShake 0.34s ease;
}

/* 6 Luxury Alternating Door Textures */
.door-tex-0 .door-leaf {
  background: linear-gradient(155deg, #16335A 0%, #0D203B 100%);
  border: 1px solid rgba(244, 201, 93, 0.34);
}
.door-tex-0 .door-leaf::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 44px 44px 8px 8px;
  border: 1px solid rgba(244, 201, 93, 0.26);
  pointer-events: none;
}

.door-tex-1 .door-leaf {
  background: linear-gradient(155deg, #6A1B23 0%, #3E0F15 100%);
  border: 1px solid rgba(244, 201, 93, 0.36);
}
.door-tex-1 .door-leaf::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 47%, rgba(244, 201, 93, 0.24) 47%, rgba(244, 201, 93, 0.24) 53%, transparent 53%),
    linear-gradient(0deg, transparent 47%, rgba(244, 201, 93, 0.24) 47%, rgba(244, 201, 93, 0.24) 53%, transparent 53%);
  pointer-events: none;
}

.door-tex-2 .door-leaf {
  background: linear-gradient(155deg, #134436 0%, #0B2A21 100%);
  border: 1px solid rgba(244, 201, 93, 0.3);
}
.door-tex-2 .door-leaf::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 10px;
  border: 1px dashed rgba(244, 201, 93, 0.28);
  pointer-events: none;
}

.door-tex-3 .door-leaf {
  background: linear-gradient(155deg, #212650 0%, #121633 100%);
  border: 1px solid rgba(244, 201, 93, 0.32);
}
.door-tex-3 .door-leaf::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 18%, rgba(244, 201, 93, 0.22), transparent 36%),
              radial-gradient(circle at 20% 82%, rgba(244, 201, 93, 0.16), transparent 36%);
  pointer-events: none;
}

.door-tex-4 .door-leaf {
  background: linear-gradient(155deg, #4B1F2E 0%, #2B101A 100%);
  border: 1px solid rgba(244, 201, 93, 0.34);
}
.door-tex-4 .door-leaf::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 11px;
  border: 1px solid rgba(244, 201, 93, 0.22);
  pointer-events: none;
}

.door-tex-5 .door-leaf {
  background: linear-gradient(155deg, #1B3B54 0%, #0F2537 100%);
  border: 1px solid rgba(244, 201, 93, 0.32);
}
.door-tex-5 .door-leaf::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 10px;
  border: 1px solid rgba(253, 248, 238, 0.18);
  pointer-events: none;
}

/* Unlocked Door Breathing Warm Gold Halo */
.door-3d.is-open .door-leaf {
  border-color: rgba(244, 201, 93, 0.82);
  animation: goldPulse 3.2s ease-in-out infinite;
}

.door-3d.is-empty .door-recess {
  visibility: hidden;
}

.door-3d.is-empty .door-leaf {
  opacity: 1;
  filter: saturate(0.84) brightness(0.92);
}

.door-3d.is-empty:hover .door-leaf {
  opacity: 1;
  filter: saturate(1) brightness(1);
  border-color: rgba(244, 201, 93, 0.58);
}

@keyframes goldPulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(4, 10, 22, 0.5), 0 0 12px rgba(244, 201, 93, 0.25); }
  50% { box-shadow: 0 12px 28px rgba(4, 10, 22, 0.55), 0 0 24px rgba(244, 201, 93, 0.55); }
}

@keyframes giftShake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(-4px) rotate(-2deg); }
  55% { transform: translateX(4px) rotate(2deg); }
  80% { transform: translateX(-2px) rotate(-1deg); }
}

.door-top-row {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(244, 201, 93, 0.82);
}

.door-num {
  position: relative;
  z-index: 2;
  font-family: var(--font-serif);
  font-size: 2.15rem;
  line-height: 1;
  color: var(--ink);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.door-seal-wrap {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 5px 10px rgba(4, 10, 22, 0.58));
}

.sticker-icon {
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.ui-lock-svg {
  display: inline-block;
  width: 12px;
  height: 12px;
  vertical-align: middle;
  color: rgba(244, 201, 93, 0.85);
}

.door-author {
  position: relative;
  z-index: 2;
  max-width: 100%;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(6, 15, 28, 0.58);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.door-tag {
  position: relative;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}

.door-3d.is-empty .door-tag {
  color: var(--muted);
}

/* Interactive 24-Spot Christmas Tree & 24-Candle Birthday Cake Stages */
.visual-stage-shell {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 14px auto 28px;
}

.tree-canvas-stage,
.cake-canvas-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 800 / 1071;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tree-canvas-stage::before,
.cake-canvas-stage::before {
  content: "";
  position: absolute;
  inset: 6% 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 201, 93, 0.22) 0%, rgba(200, 62, 55, 0.08) 46%, transparent 74%);
  filter: blur(34px);
  z-index: 0;
  pointer-events: none;
}

.stage-artwork-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 48% 49% at 50% 50%, #000 56%, rgba(0, 0, 0, 0.72) 76%, transparent 98%);
  mask-image: radial-gradient(ellipse 48% 49% at 50% 50%, #000 56%, rgba(0, 0, 0, 0.72) 76%, transparent 98%);
}

.spot-overlay-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.canopy-spot,
.cake-spot {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  z-index: 4;
  transition: transform 0.2s ease;
}

.canopy-spot:hover,
.cake-spot:hover {
  transform: translate(-50%, -50%) scale(1.16);
  z-index: 8;
}

.spot-firefly {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(255, 240, 185, 0.95) 0%, rgba(244, 201, 93, 0.35) 55%, rgba(244, 201, 93, 0.08) 100%);
  border: 1.5px solid rgba(244, 201, 93, 0.85);
  color: #1A1308;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(244, 201, 93, 0.65);
  animation: fireflyGlow 2.8s ease-in-out infinite;
}

.cake-spot .spot-firefly {
  background: radial-gradient(circle, rgba(255, 232, 224, 0.95) 0%, rgba(244, 181, 130, 0.42) 56%, rgba(244, 181, 130, 0.1) 100%);
  border-color: rgba(255, 214, 150, 0.9);
  box-shadow: 0 0 14px rgba(255, 180, 110, 0.7);
}

@keyframes fireflyGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(244, 201, 93, 0.5); }
  50% { box-shadow: 0 0 22px rgba(244, 201, 93, 0.92); }
}

/* Cutout Transparent Hand-Painted Gouache Ornaments & Candles — ZERO enclosing dark circle! */
.spot-ornament-wrap {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  filter: drop-shadow(0 6px 12px rgba(4, 10, 22, 0.72)) drop-shadow(0 0 12px rgba(244, 201, 93, 0.42));
  transform-origin: top center;
  animation: ornamentSway 3.6s ease-in-out infinite;
}

.spot-ornament-wrap .sticker-icon {
  width: 50px;
  height: 50px;
}

.cake-spot .spot-ornament-wrap {
  width: 54px;
  height: 54px;
  transform-origin: bottom center;
  filter: drop-shadow(0 5px 10px rgba(10, 6, 22, 0.68)) drop-shadow(0 0 14px rgba(255, 206, 108, 0.56));
  animation: flameFlicker 2.1s ease-in-out infinite;
}

.cake-spot .spot-ornament-wrap .sticker-icon {
  width: 52px;
  height: 52px;
}

.canopy-spot.is-open .spot-ornament-wrap,
.cake-spot.is-open .spot-ornament-wrap {
  filter: drop-shadow(0 6px 12px rgba(4, 10, 22, 0.7)) drop-shadow(0 0 18px rgba(244, 201, 93, 0.85));
}

@keyframes ornamentSway {
  0%, 100% { transform: rotate(-3.5deg); }
  50% { transform: rotate(3.5deg); }
}

@keyframes flameFlicker {
  0%, 100% { transform: scale(1) translateY(0); filter: drop-shadow(0 0 8px rgba(255, 206, 102, 0.7)); }
  50% { transform: scale(1.06) translateY(-1.5px); filter: drop-shadow(0 0 16px rgba(255, 190, 82, 0.95)); }
}

.spot-tag {
  max-width: 72px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(8, 18, 34, 0.86);
  border: 1px solid rgba(244, 201, 93, 0.35);
  color: var(--ink);
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.canopy-spot.gift-shaking,
.cake-spot.gift-shaking {
  animation: giftShakeSpot 0.32s ease;
}

@keyframes giftShakeSpot {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
  30% { transform: translate(-54%, -50%) rotate(-6deg); }
  65% { transform: translate(-46%, -50%) rotate(6deg); }
}

/* 3-Step Story Ribbon */
.how-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 34px;
}

.how-card {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--glass-soft);
  border: 1px solid var(--gold-line);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.how-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(244, 201, 93, 0.16);
  border: 1px solid rgba(244, 201, 93, 0.42);
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.how-card p {
  margin: 0;
  font-size: 0.92rem;
  color: #D9E3F1;
  line-height: 1.5;
}

/* Dark Glass Panels (Secret Santa, Quiz, Code, Room Host Bar) */
.glass-panel,
.panel {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-glass);
}

.split-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 32px;
}

.form-block {
  margin-bottom: 16px;
  text-align: left;
}

.form-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #E7EEF8;
}

.text-input,
.date-input,
.textarea-input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(6, 15, 28, 0.65);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.96rem;
  padding: 10px 14px;
  color-scheme: dark;
}

.text-input,
.date-input {
  height: 44px;
}

.textarea-input {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

.text-input::placeholder,
.textarea-input::placeholder {
  color: var(--muted-soft);
}

.text-input:focus,
.date-input:focus,
.textarea-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(244, 201, 93, 0.16);
}

.error-msg {
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 1.2em;
}

.muted-note {
  margin: 10px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

/* Room Header, Pills, Action Strip, Host Panel */
.room-hero {
  text-align: center;
  max-width: 820px;
  margin: 4px auto 18px;
}

.room-meta-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.room-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--gold-line);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
}

.pill-code {
  background: rgba(244, 201, 93, 0.16);
  border-color: rgba(244, 201, 93, 0.45);
  color: var(--gold);
  letter-spacing: 0.06em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.action-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 22px;
}

/* Compact High-Fashion Room Progress & Action Strip */
.room-progress-wrap {
  max-width: 460px;
  margin: 0 auto 16px;
  text-align: center;
}

.room-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #E7EEF8;
}

.room-progress-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.room-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #C73540 0%, #F4C95D 100%);
  transition: width 0.35s ease;
}

.room-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 24px;
}

.host-inline-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.spread-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(244, 201, 93, 0.14);
  border: 1px solid rgba(244, 201, 93, 0.35);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
}

.host-panel {
  max-width: 820px;
  margin: 0 auto 20px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(244, 201, 93, 0.08);
  border: 1px solid rgba(244, 201, 93, 0.3);
}

.host-panel-title {
  margin: 0 0 10px;
  font-weight: 600;
  color: var(--gold);
}

.host-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Secret Santa & Quiz Specific Dark-Glass Components */
.santa-participants-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.santa-person-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gold-line);
  background: var(--glass);
  color: var(--ink);
  font-family: var(--font-sans);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.santa-person-btn:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}

.santa-person-btn.is-claimed {
  background: rgba(244, 201, 93, 0.12);
  border-color: rgba(244, 201, 93, 0.45);
}

.santa-person-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
}

.santa-person-status {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
}

.santa-reveal-box {
  padding: 20px;
  border-radius: var(--radius-md);
  background: #FAF3E3;
  color: #1D1712;
  border: 2px solid #D8B872;
  text-align: center;
}

.santa-target-big {
  margin: 8px 0 0;
  font-family: var(--font-serif);
  font-size: 2.3rem;
  color: #9E2A2B;
}

.santa-links-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.santa-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(6, 15, 28, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Quiz Builder & Live Leaderboard */
.quiz-builder-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.quiz-builder-item {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(6, 15, 28, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.quiz-builder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.quiz-builder-q {
  margin: 0;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink);
}

.quiz-swap-btn {
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--gold-line);
  background: rgba(244, 201, 93, 0.1);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

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

.quiz-opt-btn,
.quiz-choice-btn {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
}

.quiz-opt-btn[aria-pressed="true"],
.quiz-choice-btn[aria-pressed="true"] {
  border-color: var(--gold);
  background: rgba(244, 201, 93, 0.2);
  color: #FDF8EE;
  font-weight: 600;
}

.quiz-play-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 20px;
  align-items: start;
}

.quiz-play-options {
  display: grid;
  gap: 10px;
  margin: 14px 0 18px;
}

.quiz-progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-bottom: 14px;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--crimson), var(--gold));
  border-radius: 999px;
  transition: width 0.25s ease;
}

.quiz-step-q {
  margin: 8px 0 4px;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
}

.quiz-score-banner {
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(244, 201, 93, 0.14);
  border: 1px solid rgba(244, 201, 93, 0.4);
  text-align: center;
  margin-bottom: 16px;
}

.quiz-score-big {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--gold);
}

.leaderboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(6, 15, 28, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lb-left,
.lb-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.lb-rank {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(244, 201, 93, 0.2);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lb-score {
  font-weight: 700;
  color: var(--gold);
}

.code-entry-box {
  max-width: 520px;
  margin: 0 auto 36px;
}

.code-input-big {
  height: 56px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Modals + Warm Parchment Letter Sheet */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 10, 22, 0.56);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-sheet {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--glass-strong);
  border: 1px solid rgba(244, 201, 93, 0.34);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.65);
  color: var(--ink);
}

/* Warm Candlelit Vintage Letter Card for Opened Notes */
.modal-sheet.parchment-sheet {
  background: linear-gradient(180deg, #FCF7EB 0%, #F4E9D2 100%);
  color: #1D1712;
  border: 2px solid #D4B064;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.7), inset 0 0 0 6px #FAF3E3, inset 0 0 0 7px rgba(186, 146, 66, 0.35);
}

.parchment-sheet .modal-title {
  color: #1D1712;
}

.parchment-sheet .btn-ghost {
  color: #5A4B3C;
  border-color: rgba(90, 75, 60, 0.25);
}

.parchment-sheet .muted-note {
  color: #6B5742;
}

.parchment-seal-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}

.note-body-box {
  margin: 14px 0 18px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(186, 146, 66, 0.38);
  color: #1D1712;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 400;
}

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

.sticker-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(6, 15, 28, 0.55);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

.sticker-opt .sticker-icon {
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
}

.sticker-opt[aria-pressed="true"] {
  border-color: var(--gold);
  background: rgba(244, 201, 93, 0.18);
  box-shadow: 0 0 0 2px rgba(244, 201, 93, 0.55), 0 0 16px rgba(244, 201, 93, 0.32);
}

.prompt-chips {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.prompt-chip {
  text-align: left;
  padding: 7px 11px;
  border-radius: 10px;
  border: 1px solid rgba(244, 201, 93, 0.22);
  background: rgba(244, 201, 93, 0.07);
  color: #E7EEF8;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  line-height: 1.38;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.prompt-chip:hover {
  border-color: var(--gold);
  background: rgba(244, 201, 93, 0.15);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--muted);
  cursor: pointer;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* Dark Glassmorphic SEO Editorial Guide & FAQ */
.seo-guide-section {
  margin: 40px 0 34px;
  padding: 28px 30px;
  border-radius: var(--radius-lg);
  background: var(--glass-soft);
  border: 1px solid var(--gold-line);
}

.seo-guide-section h2 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 400;
  color: var(--ink);
}

.seo-guide-section h3 {
  margin: 22px 0 10px;
  font-family: var(--font-serif);
  font-size: 1.38rem;
  font-weight: 400;
  color: var(--gold);
}

.seo-guide-section p,
.seo-scenarios li {
  color: #CBD7E8;
  font-size: 0.96rem;
  line-height: 1.65;
}

.seo-scenarios {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border-radius: 14px;
  border: 1px solid rgba(244, 201, 93, 0.16);
  background: rgba(6, 15, 28, 0.42);
  padding: 13px 16px;
}

.faq-item summary {
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.faq-item p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

/* Illustrated "More on OpenOnDay" Cross-Link Grid */
.cross-links-section {
  margin: 34px 0 10px;
}

.modal-cross-links {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cross-links-title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--ink);
}

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

.modal-cross-links .cross-links-grid {
  grid-template-columns: 1fr;
}

.cross-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--glass-soft);
  border: 1px solid var(--gold-line);
  color: var(--ink);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.cross-card:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 201, 93, 0.55);
  background: rgba(244, 201, 93, 0.08);
  text-decoration: none;
}

.cross-thumb {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.38);
}

.cross-card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cross-card-body strong {
  font-size: 0.96rem;
  color: var(--ink);
  margin-bottom: 2px;
}

.cross-card-body span {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.38;
}

/* Legal Pages */
.legal-article {
  max-width: 780px;
  margin: 0 auto;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--gold-line);
}

.legal-article h2 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--gold);
}

.legal-article p,
.legal-article li {
  color: #D2DCEB;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(244, 201, 93, 0.14);
  background: rgba(6, 14, 26, 0.6);
  padding: 22px 0 30px;
}

body.has-lang-suggest .site-footer {
  padding-bottom: 86px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-brand img {
  border-radius: 5px;
  display: block;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 0.84rem;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-lang-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px 2px 10px;
  border-radius: 999px;
  background: rgba(15, 34, 58, 0.72);
  border: 1px solid rgba(244, 201, 93, 0.28);
  flex-shrink: 0;
}

.footer-lang-globe {
  font-size: 0.92rem;
  line-height: 1;
}

.footer-lang-select {
  border: 0;
  background: transparent;
  height: 30px;
  padding: 0 6px 0 2px;
  color: var(--ink);
  font-size: 0.84rem;
}

.lang-suggest-bar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: calc(100vw - 24px);
  padding: 8px 12px 8px 14px;
  border-radius: 999px;
  background: rgba(11, 25, 44, 0.92);
  border: 1px solid rgba(244, 201, 93, 0.44);
  box-shadow: 0 14px 36px rgba(2, 6, 16, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  font-size: 0.86rem;
}

.lang-suggest-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.lang-suggest-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(244, 201, 93, 0.52);
  background: linear-gradient(135deg, #B82E2D, #8F1D22);
  color: #FDF8EE;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.lang-suggest-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  flex-shrink: 0;
}

.lang-suggest-close:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.16);
}

/* Item #101: Welcome Back My Rooms Dock + Host Claim Bar + 1-Tap Make Own */
.my-rooms-dock {
  width: 100%;
  max-width: 740px;
  margin: 16px auto 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(15, 34, 58, 0.72);
  border: 1px solid rgba(244, 201, 93, 0.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: left;
}

.my-rooms-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.my-rooms-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}

.my-rooms-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.my-room-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 12px;
  background: rgba(8, 20, 38, 0.62);
  border: 1px solid rgba(244, 201, 93, 0.18);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.16s ease, transform 0.16s ease;
  min-width: 0;
}

.my-room-chip:hover {
  border-color: rgba(244, 201, 93, 0.55);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--ink);
}

.my-room-chip-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.my-room-chip-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.my-room-chip-sub {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.my-room-chip-open {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

.claim-host-bar {
  display: flex;
  justify-content: center;
  margin: 18px 0 4px;
}

.make-own-row {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(244, 201, 93, 0.08);
  border: 1px solid rgba(244, 201, 93, 0.22);
}

.make-own-row.is-disabled {
  opacity: 0.48;
}

/* Item #102 Mobile WebView Poster Preview Modal & Host Created Backup Banner */
.poster-modal-sheet {
  max-width: 440px;
}

.poster-longpress-hint {
  margin: 0 0 12px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(244, 201, 93, 0.12);
  border: 1px solid rgba(244, 201, 93, 0.28);
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.poster-preview-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 14px;
}

.poster-preview-img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 54vh;
  border-radius: 14px;
  border: 1px solid rgba(244, 201, 93, 0.36);
  box-shadow: 0 18px 42px rgba(2, 6, 16, 0.72);
  -webkit-touch-callout: default;
  user-select: auto;
}

.poster-modal-actions {
  display: grid;
  gap: 8px;
}

.poster-modal-actions .btn-primary,
.poster-modal-actions .btn-secondary {
  min-height: 46px;
}

.host-created-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto 14px;
  padding: 12px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(244, 201, 93, 0.14), rgba(18, 38, 64, 0.86));
  border: 1px solid rgba(244, 201, 93, 0.42);
  box-shadow: 0 12px 28px rgba(4, 10, 22, 0.35);
}

.host-created-copy {
  min-width: 0;
}

.host-created-title {
  margin: 0 0 2px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
}

.host-created-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink);
  opacity: 0.9;
  line-height: 1.4;
}

.host-created-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Responsive Breakpoints (Tablet & Strict 375px Mobile Zero Overflow) */
@media (max-width: 960px) {
  .doors-grid-3d {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .cross-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split-stage-grid,
  .quiz-play-grid,
  .portrait-theater-grid {
    grid-template-columns: 1fr;
  }
  .portrait-theater-copy {
    align-items: center;
    text-align: center;
  }
  .portrait-theater-copy .hero-sub {
    text-align: center;
  }
  .portrait-theater-copy .pill-subline {
    justify-content: center;
  }
  .how-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .wrap {
    padding: 0 14px;
  }
  input,
  textarea,
  select {
    font-size: 16px !important;
  }
  .code-input-big {
    font-size: 1.35rem !important;
  }
  .header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-height: 0;
    padding-top: 7px;
    padding-bottom: 7px;
  }
  .brand-link {
    justify-content: center;
    gap: 7px;
    min-width: 0;
  }
  .brand-link picture img {
    width: 30px;
    height: 30px;
  }
  .brand-link img.brand-wordmark {
    height: 26px;
  }
  .header-nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
    margin-left: 0;
    padding-bottom: 1px;
  }
  .header-nav::-webkit-scrollbar {
    display: none;
  }
  .nav-link {
    flex-shrink: 0;
    height: 29px;
    padding: 0 7px;
    font-size: 0.74rem;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-lang-select {
    height: 34px;
  }
  .creator-pill-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 10px;
    border-radius: 18px;
  }
  .pill-input,
  .pill-date {
    flex: none;
    width: 100%;
  }
  .portrait-creator-row,
  .portrait-creator-bottom {
    flex-direction: column;
    align-items: stretch;
  }
  .skin-orb-group {
    justify-content: center;
    padding: 6px 10px;
  }
  .btn-primary {
    width: 100%;
    white-space: normal;
    text-align: center;
    height: auto;
    min-height: 46px;
    padding: 10px 16px;
  }
  .host-created-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
  }
  .host-created-actions .btn-primary {
    flex: 1;
  }
  .mode-list,
  .form-two-col,
  .quiz-opts-grid,
  .santa-participants-grid,
  .santa-links-list,
  .cross-links-grid {
    grid-template-columns: 1fr;
  }
  .doors-grid-3d {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .door-3d,
  .door-leaf {
    min-height: 106px;
  }
  .door-leaf {
    padding: 7px 6px;
  }
  .door-num {
    font-size: 1.55rem;
  }
  .door-seal-wrap .sticker-icon {
    width: 34px;
    height: 34px;
  }
  .spot-firefly {
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
  }
  .spot-ornament-wrap {
    width: 38px;
    height: 38px;
  }
  .spot-ornament-wrap .sticker-icon,
  .cake-spot .spot-ornament-wrap .sticker-icon {
    width: 36px;
    height: 36px;
  }
  .spot-tag {
    max-width: 58px;
    font-size: 0.58rem;
  }
  .seo-guide-section {
    padding: 20px 16px;
  }
  .sticker-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .room-action-bar,
  .action-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }
  .room-action-bar > #btn-quick-fill,
  .room-action-bar > .d2-seal,
  .room-action-bar > #btn-download-ics,
  .room-action-bar > .host-inline-bar,
  .action-strip > .btn-primary {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }
  .room-action-bar .btn-primary,
  .room-action-bar .btn-secondary,
  .room-action-bar .d2-seal,
  .action-strip .btn-primary,
  .action-strip .btn-secondary,
  .action-strip .btn-ghost {
    min-height: 46px;
    height: auto;
    width: 100%;
    justify-content: center;
    padding: 10px 12px;
  }
  .host-inline-bar {
    flex-wrap: wrap;
    justify-content: center;
  }
}
