/* 24 Temoins - Enluminure Contemporaine Design System */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;0,700;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --night-950: #0c1222;
  --night-900: #111b30;
  --night-800: #152238;
  --night-700: #1e304d;
  --parchment-50: #fdfaf3;
  --parchment-100: #fbf6ec;
  --parchment-200: #f2e5c9;
  --parchment-300: #e5d2ab;
  --gold-300: #f0d48a;
  --gold-400: #e5c170;
  --gold-500: #d4a853;
  --gold-700: #9e7425;
  --terracotta-500: #b84a39;
  --terracotta-700: #8f3325;
  --emerald-500: #2e6f5e;
  --emerald-700: #1f5143;
  --ink-950: #181410;
  --ink-800: #352b20;
  --ink-600: #5c4e3d;
  --font-serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-card: 0 20px 50px rgba(4, 8, 18, 0.46), 0 2px 8px rgba(212, 168, 83, 0.14);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body.night-canvas {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  color: var(--parchment-100);
  background-color: var(--night-950);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(212, 168, 83, 0.14) 0%, transparent 42%),
    radial-gradient(circle at 82% 8%, rgba(46, 111, 94, 0.16) 0%, transparent 38%),
    linear-gradient(180deg, #0c1222 0%, #131f35 55%, #0c1222 100%);
  line-height: 1.55;
}

a {
  color: inherit;
}

.serif-display {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* --- Top Illuminated Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(12, 18, 34, 0.86);
  border-bottom: 1px solid rgba(212, 168, 83, 0.28);
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-medallion {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--parchment-100), var(--parchment-200));
  border: 1.8px solid var(--gold-500);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--night-950);
  box-shadow: 0 4px 14px rgba(212, 168, 83, 0.25);
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--parchment-100);
}

.brand-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--gold-400);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(251, 246, 236, 0.86);
  transition: color 0.18s ease;
}

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

.canon-switcher {
  display: inline-flex;
  background: rgba(251, 246, 236, 0.08);
  border: 1px solid rgba(212, 168, 83, 0.36);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.canon-btn {
  border: 0;
  background: transparent;
  color: rgba(251, 246, 236, 0.82);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.canon-btn.is-active {
  background: var(--gold-500);
  color: var(--night-950);
}

/* --- Buttons & Pills --- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, var(--gold-300) 0%, var(--gold-500) 100%);
  color: var(--night-950);
  border: 1px solid #f7e2a4;
  border-radius: 999px;
  padding: 12px 22px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(212, 168, 83, 0.32);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(212, 168, 83, 0.44);
}

.btn-gold:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 1.02rem;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.82rem;
}

.btn-emerald {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #398672 0%, var(--emerald-500) 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 12px 20px;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-terracotta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #cc5744 0%, var(--terracotta-500) 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(212, 168, 83, 0.1);
  color: var(--parchment-100);
  border: 1.5px solid rgba(212, 168, 83, 0.62);
  border-radius: 999px;
  padding: 11px 20px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--ink-950);
  border: 1.5px solid rgba(24, 20, 16, 0.3);
  border-radius: 999px;
  padding: 11px 20px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.seal-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 168, 83, 0.16);
  color: var(--gold-300);
  border: 1px solid rgba(212, 168, 83, 0.5);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.parchment-card .seal-pill {
  background: var(--parchment-200);
  color: var(--ink-800);
  border-color: var(--gold-500);
}

/* --- Parchment & Illuminated Surfaces --- */
.parchment-card {
  background: linear-gradient(180deg, var(--parchment-50) 0%, var(--parchment-100) 100%);
  color: var(--ink-950);
  border: 2px solid var(--gold-500);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  position: relative;
}

.night-panel {
  background: linear-gradient(180deg, rgba(21, 34, 56, 0.92) 0%, rgba(12, 18, 34, 0.96) 100%);
  border: 1.5px solid rgba(212, 168, 83, 0.36);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

/* --- Hero Section --- */
.hero-section {
  padding: 40px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.25rem, 4.6vw, 3.7rem);
  margin: 14px 0 14px;
  color: var(--parchment-100);
}

.hero-title em {
  color: var(--gold-300);
  font-style: italic;
}

.hero-lead {
  font-size: 1.08rem;
  color: rgba(251, 246, 236, 0.86);
  margin: 0 0 22px;
  max-width: 620px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.join-bar-card {
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: rgba(251, 246, 236, 0.06);
  border: 1.5px solid rgba(212, 168, 83, 0.38);
  max-width: 560px;
}

.join-bar-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-300);
  margin: 0 0 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.join-form-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.code-input {
  flex: 1 1 160px;
  min-width: 0;
  background: var(--parchment-100);
  color: var(--ink-950);
  border: 2px solid var(--gold-500);
  border-radius: 12px;
  padding: 11px 14px;
  font-family: var(--font-sans);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
}

.text-input {
  width: 100%;
  background: var(--parchment-100);
  color: var(--ink-950);
  border: 2px solid var(--gold-500);
  border-radius: 12px;
  padding: 11px 14px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
}

/* --- Device Showcase Card --- */
.showcase-card {
  padding: 22px;
}

.showcase-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.showcase-mini-tile {
  background: var(--parchment-100);
  border: 1.5px solid var(--gold-500);
  border-radius: 10px;
  padding: 4px;
  text-align: center;
}

.showcase-mini-tile img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 7px;
  display: block;
}

.showcase-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.micro-badge {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(46, 111, 94, 0.24);
  border: 1px solid rgba(104, 176, 156, 0.45);
  color: #cbeee4;
}

/* --- Challenge Beat Ribbon --- */
.beat-ribbon {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, rgba(184, 74, 57, 0.26), rgba(212, 168, 83, 0.24));
  border: 1.5px solid var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Interactive Game Sections --- */
.game-section {
  padding: 28px 0;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  margin: 6px 0 4px;
}

.daily-workbench {
  padding: 22px;
}

.daily-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(212, 168, 83, 0.26);
  margin-bottom: 16px;
}

.daily-stats-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.stat-chip {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(251, 246, 236, 0.09);
  border: 1px solid rgba(212, 168, 83, 0.34);
  color: var(--parchment-100);
}

/* Clues Strip */
.clues-panel {
  background: var(--parchment-100);
  color: var(--ink-950);
  border: 2px solid var(--gold-500);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 18px;
}

.clues-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}

.clue-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  background: var(--parchment-200);
  border: 1.5px solid var(--gold-500);
  color: var(--ink-950);
}

.clue-badge.is-yes {
  background: rgba(46, 111, 94, 0.14);
  border-color: var(--emerald-500);
  color: var(--emerald-700);
}

.clue-badge.is-no {
  background: rgba(184, 74, 57, 0.12);
  border-color: var(--terracotta-500);
  color: var(--terracotta-700);
}

.clue-badge.is-locked {
  opacity: 0.52;
  border-style: dashed;
}

/* --- 24-Witness 3D Illuminated Flip Grid --- */
.board-grid-24 {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 920px) {
  .board-grid-24 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .board-grid-24 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
}

.witness-card {
  perspective: 900px;
  aspect-ratio: 4 / 5.8;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.witness-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.witness-card.is-eliminated .witness-card-inner {
  transform: rotateY(180deg);
}

.witness-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
}

.witness-front {
  background: var(--parchment-100);
  border: 2px solid var(--gold-500);
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32);
}

.witness-card.is-secret .witness-front {
  border-color: #46c9a7;
  box-shadow: 0 0 0 3px rgba(46, 111, 94, 0.65);
}

.witness-front img {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.witness-nameplate {
  flex-shrink: 0;
  width: 100%;
  background: var(--parchment-100);
  color: var(--night-950);
  border-top: 1.5px solid var(--gold-500);
  padding: 3px 6px 4px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(0.74rem, 1.05vw, 0.94rem);
  line-height: 1.18;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 520px) {
  .witness-nameplate {
    font-size: 0.72rem;
    padding: 2px 4px 3px;
  }
}

.witness-card-actions {
  position: absolute;
  top: 5px;
  right: 5px;
  display: flex;
  gap: 4px;
  z-index: 3;
}

.card-mini-btn {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--gold-500);
  background: rgba(12, 18, 34, 0.84);
  color: var(--parchment-100);
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.witness-back {
  transform: rotateY(180deg);
  background: radial-gradient(circle at 50% 38%, #271a16 0%, #141b2c 100%);
  border: 2px solid rgba(212, 168, 83, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px;
  text-align: center;
}

.wax-seal {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, #d45b47, var(--terracotta-700));
  border: 1.5px solid var(--gold-400);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--parchment-100);
  margin-bottom: 5px;
}

.witness-back-name {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(251, 246, 236, 0.72);
  line-height: 1.15;
}

/* --- Smart Question Chips --- */
.smart-drawer {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(251, 246, 236, 0.06);
  border: 1px solid rgba(212, 168, 83, 0.34);
}

.smart-chips-scroll {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

@media (max-width: 760px) {
  .smart-chips-scroll {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .smart-chip {
    padding: 8px 10px;
  }
}

.smart-chip {
  text-align: left;
  background: var(--parchment-100);
  color: var(--ink-950);
  border: 1.5px solid var(--gold-500);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.smart-chip:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--emerald-500);
}

.smart-chip:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.smart-chip-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink-950);
}

.smart-chip-meta {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--emerald-700);
  margin-top: 2px;
}

/* --- Trivia & Quiz Buzzer Buttons --- */
.choices-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 600px) {
  .choices-grid {
    grid-template-columns: 1fr;
  }
}

.choice-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  width: 100%;
  background: var(--parchment-100);
  color: var(--ink-950);
  border: 2px solid var(--gold-500);
  border-radius: 14px;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.16s ease;
}

.choice-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: var(--parchment-200);
}

.choice-btn.is-picked {
  border-color: var(--night-950);
  box-shadow: 0 0 0 3px var(--gold-400);
}

.choice-btn.is-correct {
  background: #d9f3eb;
  border-color: var(--emerald-500);
  color: #10382d;
}

.choice-btn.is-wrong {
  background: #fae2de;
  border-color: var(--terracotta-500);
  color: #691f14;
}

.choice-letter {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--night-950);
  color: var(--gold-300);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* --- Modal / Inspector Sheet --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 10, 20, 0.78);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal-sheet {
  width: min(520px, 100%);
  max-height: 90dvh;
  overflow-y: auto;
  padding: 22px;
}

.inspector-top {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
}

@media (max-width: 480px) {
  .inspector-top {
    grid-template-columns: 92px 1fr;
  }
}

.inspector-top img {
  width: 100%;
  border-radius: 12px;
  border: 2px solid var(--gold-500);
}

.verse-quote-box {
  margin: 14px 0;
  padding: 12px 14px;
  border-left: 3px solid var(--gold-500);
  background: var(--parchment-200);
  border-radius: 0 10px 10px 0;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-style: italic;
}

.trait-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.trait-tag {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--parchment-200);
  border: 1px solid rgba(158, 116, 37, 0.45);
  color: var(--ink-800);
}

/* --- Feature & SEO Cards --- */
.features-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 860px) {
  .features-grid-3 {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  padding: 22px;
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  margin: 10px 0 8px;
}

/* --- Codex Gallery --- */
.codex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.codex-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.codex-card-header img {
  width: 68px;
  height: 85px;
  object-fit: cover;
  border-radius: 10px;
  border: 1.5px solid var(--gold-500);
  flex-shrink: 0;
}

/* --- Share Landing & QR Room --- */
.share-landing-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  gap: 20px;
}

.share-hero-card {
  width: min(680px, 100%);
  padding: 32px 28px;
  text-align: center;
}

.share-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--terracotta-500);
  margin: 14px 0 6px;
}

.share-title {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  margin: 0 0 12px;
}

.share-pips {
  font-size: 1.55rem;
  margin: 10px 0;
}

.share-subtitle {
  color: var(--ink-800);
  font-size: 1.02rem;
  margin: 0 auto 22px;
  max-width: 520px;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.share-micro {
  font-size: 0.82rem;
  color: var(--ink-600);
  margin: 18px 0 0;
}

.mini-footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.84rem;
  color: rgba(251, 246, 236, 0.72);
}

/* --- Room Client (/j) --- */
.room-shell {
  width: min(1040px, calc(100% - 24px));
  margin: 0 auto;
  padding: 16px 0 48px;
}

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

.leaderboard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--parchment-100);
  color: var(--ink-950);
  border: 1.5px solid var(--gold-500);
  font-weight: 700;
}

.appstore-banner {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1b2c4b 0%, #0f192d 100%);
  border: 2px solid var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.timer-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(251, 246, 236, 0.15);
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0;
}

.timer-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald-500), var(--gold-400), var(--terracotta-500));
  transition: width 0.25s linear;
}

/* --- Site Footer --- */
.site-footer {
  margin-top: 48px;
  padding: 32px 0 44px;
  border-top: 1px solid rgba(212, 168, 83, 0.28);
  color: rgba(251, 246, 236, 0.78);
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(251, 246, 236, 0.85);
  text-decoration: none;
}

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

/* Editorial Content Pages */
.editorial-article {
  max-width: 820px;
  margin: 32px auto;
  padding: 32px;
}

.editorial-article h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: 8px;
}

.editorial-article h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin-top: 28px;
  color: var(--terracotta-700);
}

.editorial-article p,
.editorial-article li {
  color: var(--ink-800);
  font-size: 1.02rem;
}
