:root {
  --bg: #0c0f18;
  --surface: #161b29;
  --surface-2: #1e2538;
  --border: rgba(238, 242, 251, 0.1);
  --text: #eef2fb;
  --muted: #97a3ba;
  --accent: #ff3b5c;
  --accent-solid: #cc1b3c;
  --accent-hover: #cc1b3c;
  --pack-green: #22c55e;
  --pack-orange: var(--gold);
  --gold: #f5b942;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(12, 15, 24, 0.25);
  --shadow-md: 0 8px 24px rgba(12, 15, 24, 0.4);
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --r-n: var(--muted);
  --r-r: #38bdf8;
  --r-sr: #a855f7;
  --r-ssr: var(--gold);
  --r-ur: var(--accent);
  --r-lr: var(--gold);
}

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

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 50% -120px, rgba(255, 59, 92, 0.12), transparent 70%),
    radial-gradient(640px 320px at 85% 40px, rgba(245, 185, 66, 0.07), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
}

body.embed-mode {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--bg);
  min-height: 100vh;
  display: block;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 1000;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--bg);
  font-weight: 600;
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 15, 24, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--text);
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.brand-icon svg,
.brand-icon img {
  width: 32px;
  height: 32px;
  display: block;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--text);
}

.site-main {
  flex: 1;
}

/* Hero & Game Stage */
.hero-stage-section {
  padding: 20px 0 32px;
}

.hero-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 16px;
}

.hero-bar h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.975rem;
  max-width: 62ch;
}

.stage-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.game-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 500px;
  max-height: 760px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.game-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: var(--bg);
}

.game-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  background: var(--surface);
  overflow: hidden;
}

.game-cover[hidden] {
  display: none;
}

.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-cta {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 48px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  background: linear-gradient(
    180deg,
    rgba(12, 15, 24, 0) 0%,
    rgba(12, 15, 24, 0.84) 38%,
    rgba(12, 15, 24, 0.96) 100%
  );
}

.btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 32px;
  border: 1px solid rgba(238, 242, 251, 0.16);
  border-radius: var(--radius);
  background: var(--accent-solid);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-play:hover {
  background: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-play:active {
  transform: translateY(0);
}

.btn-play--sm {
  min-height: 44px;
  padding: 10px 24px;
  font-size: 0.95rem;
}

.cover-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Loading State (Engine toggles data-gf-state="loading") */
.game-loader {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: radial-gradient(circle at 50% 42%, rgba(255, 59, 92, 0.18), rgba(12, 15, 24, 0.96) 68%);
  color: var(--text);
  text-align: center;
}

[data-gf-frame][data-gf-state="loading"] [data-gf-loading] {
  display: flex;
}

.game-loader p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.loader-pack {
  position: relative;
  width: 68px;
  height: 96px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  animation: ytg-pack-pulse 1.25s ease-in-out infinite;
}

.loader-pack::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 6px;
  right: 6px;
  border-top: 2px dashed rgba(245, 185, 66, 0.8);
}

.loader-pack::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 59, 92, 0.45) 50%, rgba(245, 185, 66, 0.45) 56%, transparent 70%);
  animation: ytg-pack-sheen 1.25s linear infinite;
}

@keyframes ytg-pack-pulse {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.03);
  }
}

@keyframes ytg-pack-sheen {
  0% {
    transform: translateX(-60%) rotate(12deg);
  }
  100% {
    transform: translateX(60%) rotate(12deg);
  }
}

/* Fullscreen States */
html[data-gf-fs="1"] {
  overflow: hidden;
}

[data-gf-frame][data-gf-fs="1"] {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  min-height: 100dvh;
  aspect-ratio: auto;
  border-radius: 0;
  border: 0;
}

.btn-exit-fs {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 25;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(12, 15, 24, 0.9);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.btn-exit-fs:hover {
  background: var(--surface-2);
  border-color: var(--gold);
}

.btn-exit-fs[hidden] {
  display: none;
}

/* Action Bar */
.action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.action-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.action-btn:hover {
  border-color: rgba(238, 242, 251, 0.25);
  background: var(--surface-2);
}

.action-btn--like[aria-pressed="true"],
.action-btn--like[data-gf-liked] {
  border-color: rgba(255, 59, 92, 0.65);
  background: rgba(255, 59, 92, 0.16);
  color: var(--accent);
}

.action-btn--like[aria-pressed="true"] .ui-ico path,
.action-btn--like[data-gf-liked] .ui-ico path {
  fill: var(--accent);
  stroke: var(--accent);
}

.like-count {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--gold);
}

.share-msg {
  font-size: 0.8125rem;
  color: var(--gold);
  font-weight: 600;
}

.share-msg:empty {
  display: none;
}

.ui-ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Shared Section Rhythm */
.content-section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.section-head {
  margin-bottom: 24px;
  max-width: 68ch;
}

.content-section h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.975rem;
}

/* Section 1: Asymmetric 2-Col Overview + Quick Facts */
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.95fr);
  gap: 32px;
  align-items: start;
}

.facts-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.facts-card h3 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.01em;
}

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

.fact-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.fact-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.fact-row dt {
  color: var(--muted);
  font-size: 0.875rem;
}

.fact-row dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

.facts-links {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Section 2: Rarity Table + 4-Step How to Play */
.section-odds {
  background: rgba(22, 27, 41, 0.35);
}

.table-card {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.odds-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  text-align: left;
  font-size: 0.9375rem;
}

.odds-table th {
  padding: 14px 16px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
}

.odds-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.odds-table tbody tr:last-child td {
  border-bottom: 0;
}

.cell-name {
  font-weight: 600;
  color: var(--text);
}

.cell-mono {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.cell-rate {
  color: var(--gold);
}

.cell-pt {
  color: var(--text);
}

.cell-finish {
  color: var(--muted);
  font-size: 0.875rem;
}

.tier-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 4px 10px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}

.tier-pill--n {
  background: rgba(151, 163, 186, 0.2);
  border-color: var(--r-n);
  color: var(--text);
}

.tier-pill--r {
  background: rgba(56, 189, 248, 0.16);
  border-color: var(--r-r);
  color: var(--r-r);
}

.tier-pill--sr {
  background: rgba(168, 85, 247, 0.18);
  border-color: var(--r-sr);
  color: var(--r-sr);
}

.tier-pill--ssr {
  background: rgba(245, 185, 66, 0.18);
  border-color: var(--r-ssr);
  color: var(--gold);
}

.tier-pill--ur {
  background: rgba(255, 59, 92, 0.18);
  border-color: var(--r-ur);
  color: var(--accent);
}

.tier-pill--lr {
  background: var(--bg);
  border-color: var(--r-lr);
  color: var(--gold);
}

.tier-pill--xr {
  background: linear-gradient(125deg, rgba(56, 189, 248, 0.28), rgba(168, 85, 247, 0.28), rgba(255, 59, 92, 0.28), rgba(245, 185, 66, 0.28));
  border-color: var(--text);
  color: #ffffff;
}

.steps-block {
  margin-top: 32px;
}

.steps-block h3 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
}

.step-card h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.step-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Section 3: 6 Themed Packs (2x3 Grid) + Spotlight Cards */
.packs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pack-card {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pack-card--all { border-top-color: var(--accent); }
.pack-card--gaming { border-top-color: var(--pack-green); }
.pack-card--vtuber { border-top-color: var(--r-sr); }
.pack-card--comedy { border-top-color: var(--pack-orange); }
.pack-card--edu { border-top-color: var(--r-r); }
.pack-card--life { border-top-color: var(--gold); }

.pack-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pack-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
}

.pack-cost {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}

.pack-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
}

.pack-focus {
  margin: auto 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted);
}

.spotlight-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.spotlight-card {
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.spotlight-card--xr {
  border-color: rgba(245, 185, 66, 0.3);
}

.spotlight-card--social {
  border-color: rgba(255, 59, 92, 0.3);
}

.spotlight-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.spotlight-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.spotlight-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Section 4: FAQ Accordion */
.section-faq {
  background: rgba(22, 27, 41, 0.35);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
}

.faq-item {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-q {
  list-style: none;
  padding: 18px 20px;
  font-family: var(--font-display);
  font-size: 1.025rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-q::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--gold);
  flex-shrink: 0;
}

.faq-item[open] .faq-q::after {
  content: "−";
  color: var(--accent);
}

.faq-a {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 0.9375rem;
  border-top: 1px solid var(--border);
}

.faq-a p {
  margin: 14px 0 0;
}

/* Section 5: Native Comments */
.comments-shell {
  max-width: 820px;
}

.comments-header {
  margin-bottom: 20px;
}

.comments-heading {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--text);
}

.comments-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.comment-form {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reply-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(245, 185, 66, 0.12);
  border: 1px solid rgba(245, 185, 66, 0.35);
  font-size: 0.875rem;
  color: var(--text);
}

[data-gf-comment-form][data-gf-replying] .reply-banner {
  display: flex;
}

.btn-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-link:hover {
  text-decoration: underline;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.field-opt {
  font-weight: 400;
  color: var(--muted);
}

.field-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
}

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

.field-textarea {
  resize: vertical;
  min-height: 88px;
}

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

.btn-submit {
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 10px;
  border: 0;
  background: var(--accent-solid);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-submit:hover {
  background: var(--accent-hover);
}

.comment-msg {
  font-size: 0.875rem;
  color: var(--gold);
  font-weight: 600;
}

.comment-msg:empty {
  display: none;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-card {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.comment-card[data-gf-owner] {
  border-color: rgba(245, 185, 66, 0.45);
}

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

.comment-author {
  font-weight: 600;
  color: var(--text);
}

.comment-owner-badge {
  display: none;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(245, 185, 66, 0.18);
  border: 1px solid rgba(245, 185, 66, 0.5);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
}

[data-gf-owner] .comment-owner-badge,
.comment-owner-badge[data-gf-owner] {
  display: inline-flex;
}

.comment-owner-badge[hidden] {
  display: none;
}

.comment-reply-to {
  font-size: 0.8125rem;
  color: var(--gold);
}

.comment-reply-to:empty,
.comment-reply-to[hidden] {
  display: none;
}

.comment-time {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.comment-body {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 0.9375rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-footer {
  display: flex;
  align-items: center;
}

.btn-reply {
  background: none;
  border: 0;
  padding: 4px 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-reply:hover {
  color: var(--gold);
}

.comment-replies {
  margin-top: 12px;
  padding-left: 16px;
  border-left: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-replies:empty {
  display: none;
}

.comments-empty {
  display: none;
  margin: 0;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: center;
}

[data-gf-comments][data-gf-empty] + .comments-empty {
  display: block;
}

[data-gf-comments][data-gf-off],
[data-gf-comments][data-gf-off] + .comments-empty {
  display: none;
}

/* Prose & Secondary Pages */
.prose p {
  margin: 0 0 16px;
  color: var(--muted);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose h2 {
  margin: 36px 0 12px;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text);
}

.prose h3 {
  margin: 24px 0 8px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--muted);
}

.prose li {
  margin-bottom: 8px;
}

.prose code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--gold);
}

.prose blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
  color: var(--text);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  overflow-x: auto;
}

.prose th,
.prose td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.prose th {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
}

.prose td {
  color: var(--muted);
}

.page-article {
  padding: 32px 0 64px;
}

.page-wrap {
  max-width: 72ch;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.875rem;
  color: var(--muted);
}

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

.breadcrumb a:hover {
  color: var(--text);
}

.page-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.page-lead {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 1.05rem;
}

.page-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--gold);
}

.page-back {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* 404 Page */
.not-found-section {
  padding: 64px 0;
}

.not-found-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 40px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.not-found-code {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(255, 59, 92, 0.16);
  border: 1px solid rgba(255, 59, 92, 0.5);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}

.not-found-card h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.75rem;
}

.not-found-card p {
  margin: 0 0 24px;
  color: var(--muted);
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 36px 0 40px;
  border-top: 1px solid var(--border);
  background: rgba(12, 15, 24, 0.72);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 0.875rem;
}

.footer-nav a {
  color: var(--muted);
  font-weight: 600;
}

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

.footer-legal {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: 92ch;
}

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Tablet */
@media (max-width: 900px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .steps-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .packs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spotlight-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .header-inner {
    min-height: 54px;
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav a {
    font-size: 0.84rem;
  }

  .hero-stage-section {
    padding: 14px 0 24px;
  }

  .hero-bar {
    margin-bottom: 12px;
  }

  .game-stage {
    aspect-ratio: 4 / 3;
    min-height: 310px;
    max-height: none;
  }

  .game-stage[data-gf-state="loading"],
  .game-stage[data-gf-state="playing"] {
    aspect-ratio: auto;
    min-height: 76vh;
    min-height: 76dvh;
  }

  .cover-cta {
    padding: 36px 16px 20px;
  }

  .btn-play {
    width: 100%;
    max-width: 320px;
  }

  .action-bar {
    padding: 12px;
  }

  .action-group {
    width: 100%;
  }

  .action-btn--fs {
    width: 100%;
  }

  .content-section {
    padding: 36px 0;
  }

  .steps-list,
  .packs-grid {
    grid-template-columns: 1fr;
  }

  .btn-submit {
    width: 100%;
  }

  .comment-time {
    margin-left: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loader-pack,
  .loader-pack::after {
    animation: none;
  }

  .btn-play,
  .action-btn,
  a {
    transition: none;
  }
}
