/* =========================================================
   Odio el Chocolate — fan field guide
   Palette: cocoa, cream, caramel, mint. Low-glare dark theme.
   ========================================================= */

:root {
  --bg: #17110e;
  --bg-deep: #120d0a;
  --bg-soft: #1e1712;
  --panel: #241b15;
  --panel-2: #2b2019;
  --surface: rgba(247, 236, 219, 0.045);
  --surface-2: rgba(247, 236, 219, 0.08);
  --line: rgba(243, 231, 212, 0.12);
  --line-strong: rgba(243, 231, 212, 0.24);
  --text: #f2e8d8;
  --text-soft: #dccbb5;
  --muted: #b9a68f;
  --caramel: #e9a75f;
  --caramel-deep: #c27c36;
  --mint: #a6d9b9;
  --rose: #e8a0ad;
  --danger: #f0b4a8;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 26px 60px -32px rgba(0, 0, 0, 0.95);
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --wrap: min(1180px, 92vw);
  --header-h: 74px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 720px at 8% -12%, rgba(233, 167, 95, 0.16), transparent 62%),
    radial-gradient(880px 620px at 102% 2%, rgba(232, 160, 173, 0.09), transparent 58%),
    radial-gradient(900px 900px at 50% 120%, rgba(166, 217, 185, 0.05), transparent 60%),
    linear-gradient(180deg, #1a1310 0%, #150f0c 55%, #17110e 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

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

img {
  display: block;
  height: auto;
  background: linear-gradient(135deg, #2b2018, #3a2a1f);
  color: var(--muted);
  font-size: 0.82rem;
}

a {
  color: var(--caramel);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: #f6c58f;
}

p,
ul,
ol,
dl,
figure,
table,
blockquote {
  margin: 0 0 1.1em;
}

ul,
ol {
  padding-left: 1.25em;
}

li + li {
  margin-top: 0.4em;
}

strong {
  color: #fff6e9;
  font-weight: 700;
}

em {
  color: #f7e7d0;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.55em;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  font-weight: 650;
}

h2 {
  font-size: clamp(1.85rem, 3.3vw, 2.75rem);
}

h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  letter-spacing: -0.012em;
}

h4 {
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0.01em;
}

::selection {
  background: rgba(233, 167, 95, 0.35);
  color: #fff8ee;
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 999;
  padding: 12px 18px;
  border-radius: 0 0 12px 12px;
  background: var(--caramel);
  color: #1a110c;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.wrap--narrow {
  max-width: 800px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  color: var(--caramel);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.eyebrow--plain::before {
  display: none;
}

.text-link {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(233, 167, 95, 0.45);
}

.text-link:hover {
  border-bottom-color: var(--caramel);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--header-h);
  background: rgba(23, 17, 14, 0.78);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(20, 14, 11, 0.94);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  flex: 0 0 auto;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 12px rgba(233, 167, 95, 0.22));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.brand-text span {
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand-text em {
  color: var(--caramel);
  font-style: italic;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list li {
  margin: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-link:hover {
  background: var(--surface);
  color: var(--text);
}

.nav-link[aria-current="page"] {
  background: var(--surface-2);
  color: var(--caramel);
}

.nav-cta {
  margin-left: 8px;
  padding: 10px 18px;
  background: var(--caramel);
  color: #1b110a;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 22px -12px rgba(233, 167, 95, 0.9);
}

.nav-cta:hover {
  background: #f2b876;
  color: #1b110a;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  margin: auto;
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.menu-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, #f0b26d, #dc9450);
  color: #1c120b;
  box-shadow: 0 14px 30px -16px rgba(233, 167, 95, 0.9);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #f7c084, #e6a05c);
  color: #1c120b;
}

.btn-ghost {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--caramel);
  background: rgba(233, 167, 95, 0.1);
  color: var(--text);
}

.btn-sm {
  padding: 0.62rem 1rem;
  font-size: 0.84rem;
}

.btn-icon {
  width: 1.1em;
  height: 1.1em;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(38px, 6vw, 72px) 0 clamp(34px, 5vw, 58px);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -140px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(233, 167, 95, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  right: 40px;
  top: -60px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(232, 160, 173, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(300px, 0.76fr);
  align-items: center;
  gap: clamp(30px, 5vw, 64px);
}

.hero h1 {
  margin-bottom: 0.4em;
  max-width: 15ch;
}

.hero h1 .hero-name {
  display: block;
  color: var(--caramel);
  font-style: italic;
  font-weight: 500;
}

.lede {
  max-width: 58ch;
  color: var(--text-soft);
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 20px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-meta li {
  margin: 0;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(23, 17, 14, 0.5);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.meta-chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--caramel);
}

.meta-chip--mint::before {
  background: var(--mint);
}

.meta-chip--rose::before {
  background: var(--rose);
}

.hero-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Run card */

.run-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(165deg, rgba(247, 236, 219, 0.07), rgba(247, 236, 219, 0.015) 45%),
    #1c1511;
  box-shadow: var(--shadow);
  transform: rotate(0.6deg);
}

.run-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(243, 231, 212, 0.12);
  border-radius: 18px;
  pointer-events: none;
}

.run-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.run-stamp {
  padding: 4px 8px;
  border: 1px solid rgba(166, 217, 185, 0.4);
  border-radius: 6px;
  color: var(--mint);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
}

.run-card h2 {
  margin: 0 0 4px;
  font-size: 1.5rem;
}

.run-sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.84rem;
}

.run-rows {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.run-rows li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}

.run-rows span:first-child {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.run-rows span:last-child {
  color: var(--text);
  font-weight: 700;
  text-align: right;
}

.choco-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  height: 26px;
  margin-bottom: 18px;
  padding: 3px;
  border-radius: 5px;
  background: #0f0a07;
}

.choco-bar i {
  border-radius: 2px;
  background: linear-gradient(160deg, #6b4326, #402617);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.choco-bar i.is-eaten {
  background: #2a1c14;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

.run-card .btn {
  width: 100%;
}

.run-card-foot {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  text-align: center;
}

/* ---------- Player ---------- */

.player-section {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 300px at 50% 0%, rgba(233, 167, 95, 0.08), transparent 70%),
    #0c0806;
}

.player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.player-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.player-title h2 {
  margin: 0;
  font-size: 1.08rem;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mint);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.live-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(166, 217, 185, 0.12);
}

.player-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}

.icon-btn:hover {
  border-color: var(--caramel);
  background: rgba(233, 167, 95, 0.08);
  color: var(--text);
}

.icon-btn svg {
  width: 15px;
  height: 15px;
}

.player-frame {
  position: relative;
  width: 100%;
  max-width: 1800px;
  height: clamp(430px, 74vh, 820px);
  margin: 0 auto;
  overflow: hidden;
  background: #080503;
  border-top: 1px solid rgba(243, 231, 212, 0.08);
  border-bottom: 1px solid rgba(243, 231, 212, 0.08);
}

.player-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #080503;
}

.player-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 12px;
  text-align: center;
  background:
    radial-gradient(500px 220px at 50% 45%, rgba(233, 167, 95, 0.12), transparent 70%),
    #0b0705;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}

.player-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 30px;
  height: 30px;
  margin: 0 auto;
  border: 2px solid rgba(233, 167, 95, 0.2);
  border-top-color: var(--caramel);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.player-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
  padding: 13px 0 18px;
  color: var(--muted);
  font-size: 0.78rem;
}

.player-note p {
  margin: 0;
}

.player-note a {
  font-weight: 700;
}

/* ---------- Quick answer ---------- */

.answer {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  padding: clamp(30px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, rgba(247, 236, 219, 0.07), rgba(247, 236, 219, 0.02)),
    var(--bg-soft);
  box-shadow: var(--shadow);
}

.answer h2 {
  margin-bottom: 12px;
  font-size: clamp(1.4rem, 2.3vw, 1.9rem);
}

.answer p {
  max-width: 72ch;
  margin-bottom: 0;
  color: var(--text-soft);
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.answer-item strong {
  display: block;
  margin-bottom: 2px;
  color: var(--caramel);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 650;
}

.answer-item span {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.5;
}

/* ---------- Table of contents ---------- */

.toc {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(20px, 4vw, 48px);
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.toc h2 {
  margin: 0;
  font-size: 1.55rem;
}

.toc p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.toc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc-list li {
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.toc-list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.toc-list a::before {
  counter-increment: toc;
  content: counter(toc, decimal-leading-zero);
  color: var(--caramel);
  font-family: var(--font-display);
  font-size: 0.78rem;
}

.toc-list a:hover {
  color: var(--caramel);
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(52px, 7vw, 92px) 0;
  border-bottom: 1px solid var(--line);
}

.section--alt {
  background: linear-gradient(180deg, rgba(247, 236, 219, 0.025), rgba(247, 236, 219, 0));
}

.section--deep {
  background:
    radial-gradient(800px 400px at 0% 0%, rgba(233, 167, 95, 0.06), transparent 65%),
    #14100c;
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(26px, 4vw, 42px);
}

.section-head p {
  max-width: 68ch;
  margin-bottom: 0;
  color: var(--text-soft);
}

.section-num {
  display: block;
  margin-bottom: 10px;
  color: var(--caramel);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.prose {
  max-width: 72ch;
}

.prose h3 {
  margin-top: 1.7em;
}

.prose h3:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--text-soft);
}

.prose p {
  font-size: 1.02rem;
  line-height: 1.78;
}

.prose--wide {
  max-width: none;
}

.lead {
  color: var(--text);
  font-size: clamp(1.06rem, 1.6vw, 1.22rem);
  line-height: 1.7;
}

.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(26px, 5vw, 56px);
  align-items: start;
}

.columns > *,
.hero-grid > *,
.grid > *,
.community-grid > *,
.video-grid > *,
.answer-grid > *,
.footer-grid > * {
  min-width: 0;
}

/* ---------- Figures ---------- */

.figure {
  margin: 1.6em 0;
}

.figure img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.figure figcaption {
  margin-top: 10px;
  padding-left: 12px;
  border-left: 2px solid var(--caramel);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.figure--wide img {
  aspect-ratio: 21 / 9;
}

/* ---------- Cards and grids ---------- */

.grid {
  display: grid;
  gap: 18px;
}

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

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

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(247, 236, 219, 0.055), rgba(247, 236, 219, 0.012) 60%),
    var(--bg-soft);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(233, 167, 95, 0.4);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

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

.card .text-link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.86rem;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 4px 9px;
  border: 1px solid rgba(166, 217, 185, 0.28);
  border-radius: 6px;
  background: rgba(166, 217, 185, 0.07);
  color: var(--mint);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-tag--caramel {
  border-color: rgba(233, 167, 95, 0.35);
  background: rgba(233, 167, 95, 0.08);
  color: var(--caramel);
}

.card-tag--rose {
  border-color: rgba(232, 160, 173, 0.3);
  background: rgba(232, 160, 173, 0.07);
  color: var(--rose);
}

/* Mode cards */

.mode-card {
  overflow: hidden;
}

.mode-card .mode-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.mode-num {
  color: var(--caramel);
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 500;
  line-height: 0.9;
  opacity: 0.75;
}

.difficulty {
  display: inline-flex;
  gap: 4px;
  margin-top: 6px;
}

.difficulty i {
  width: 16px;
  height: 4px;
  border-radius: 99px;
  background: rgba(243, 231, 212, 0.14);
}

.difficulty i.on {
  background: var(--caramel);
}

.difficulty[data-level="easy"] i.on {
  background: var(--mint);
}

.difficulty[data-level="hard"] i.on {
  background: var(--rose);
}

.mode-unknown {
  align-self: flex-start;
  padding: 4px 8px;
  border: 1px dashed rgba(243, 231, 212, 0.28);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mode-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.mode-meta li {
  margin: 0;
  padding: 4px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Guide cards */

.guide-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 18px;
}

.guide-card img {
  width: 112px;
  height: 112px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.guide-card h3 {
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.guide-card p {
  margin-bottom: 8px;
}

.guide-card .guide-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--caramel);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Game cards */

.game-card {
  padding: 0;
  overflow: hidden;
}

.game-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.game-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-cover span {
  position: absolute;
  left: 12px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(12, 8, 6, 0.82);
  color: var(--text-soft);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.game-body {
  padding: 18px 20px 20px;
}

.game-body h3 {
  margin-bottom: 6px;
  font-size: 1.14rem;
}

.game-body p {
  font-size: 0.85rem;
}

/* ---------- Callouts ---------- */

.callout {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  margin: 1.5em 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--caramel);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(233, 167, 95, 0.055);
}

.callout-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(233, 167, 95, 0.16);
  color: var(--caramel);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.callout h3,
.callout h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0;
}

.callout p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

.callout p + p {
  margin-top: 8px;
}

.callout--warn {
  border-left-color: var(--rose);
  background: rgba(232, 160, 173, 0.055);
}

.callout--warn .callout-icon {
  background: rgba(232, 160, 173, 0.15);
  color: var(--rose);
}

.callout--tip {
  border-left-color: var(--mint);
  background: rgba(166, 217, 185, 0.05);
}

.callout--tip .callout-icon {
  background: rgba(166, 217, 185, 0.14);
  color: var(--mint);
}

/* ---------- Tables ---------- */

.table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 1.4em 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 14, 11, 0.55);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 560px;
}

caption {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: left;
}

th,
td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: rgba(247, 236, 219, 0.05);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

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

tbody th {
  color: var(--text);
  font-weight: 700;
}

td strong {
  color: var(--text);
}

table a {
  font-weight: 700;
}

/* ---------- Steps ---------- */

.steps {
  margin: 1.6em 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  margin: 0;
  padding: 0 0 22px 52px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(233, 167, 95, 0.4);
  border-radius: 50%;
  background: rgba(233, 167, 95, 0.1);
  color: var(--caramel);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
}

.steps li::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: 4px;
  width: 1px;
  background: var(--line);
}

.steps li:last-child {
  padding-bottom: 0;
}

.steps li:last-child::after {
  display: none;
}

.steps h3 {
  margin: 0 0 4px;
  font-size: 1.06rem;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0;
}

.steps p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ---------- Stats / facts ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 1.6em 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.stat {
  padding: 18px;
  background: var(--bg-soft);
}

.stat strong {
  display: block;
  margin-bottom: 2px;
  color: var(--caramel);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.fact-list {
  margin: 1.4em 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.fact-list li {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.fact-list dt,
.fact-list .fact-key {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fact-list .fact-val {
  color: var(--text-soft);
}

/* ---------- FAQ ---------- */

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

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

.faq-item summary {
  position: relative;
  padding: 18px 46px 18px 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--caramel);
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 400;
  transition: transform 0.2s var(--ease);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--caramel);
}

.faq-answer {
  padding: 0 40px 18px 0;
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.7;
}

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

/* ---------- Author box ---------- */

.author-box {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(247, 236, 219, 0.06), rgba(247, 236, 219, 0.01));
}

.author-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.author-portrait {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}

.author-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 30%;
}

.author-box img,
.avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
}

.author-box h3 {
  margin: 0 0 2px;
  font-size: 1.12rem;
}

.author-role {
  display: block;
  margin-bottom: 8px;
  color: var(--caramel);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.author-box p {
  margin: 0 0 8px;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.65;
}

.author-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
}

.author-links li {
  margin: 0;
}

.author-links a {
  font-weight: 700;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0 0 22px;
  padding-top: 16px;
  color: var(--muted);
  font-size: 0.8rem;
}

.byline strong {
  color: var(--text-soft);
}

.byline .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.78rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: rgba(243, 231, 212, 0.25);
}

.breadcrumbs a {
  color: var(--text-soft);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--caramel);
}

.breadcrumbs [aria-current="page"] {
  color: var(--muted);
}

/* ---------- Page hero ---------- */

.page-hero {
  position: relative;
  padding: clamp(34px, 5vw, 62px) 0 clamp(26px, 4vw, 46px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(760px 320px at 82% -10%, rgba(233, 167, 95, 0.11), transparent 65%),
    transparent;
  overflow: hidden;
}

.page-hero h1 {
  max-width: 20ch;
  margin-bottom: 0.3em;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
}

.page-hero .lede {
  max-width: 66ch;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.78rem;
}

.page-meta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.page-meta svg {
  width: 14px;
  height: 14px;
  color: var(--caramel);
}

/* ---------- Community / UGC ---------- */

.community {
  position: relative;
  padding: clamp(52px, 7vw, 92px) 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(233, 167, 95, 0.08), transparent 65%),
    radial-gradient(700px 300px at 100% 100%, rgba(166, 217, 185, 0.05), transparent 60%),
    #130e0b;
}

.community-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.community-head > div {
  max-width: 720px;
}

.community-head h2 {
  margin-bottom: 8px;
}

.community-head p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.community-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(166, 217, 185, 0.3);
  border-radius: 999px;
  background: rgba(166, 217, 185, 0.06);
  color: var(--mint);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.community-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}

.ugc-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(24, 17, 13, 0.72);
  overflow: hidden;
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 236, 219, 0.025);
}

.panel-head h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.comment-count {
  color: var(--muted);
  font-size: 0.74rem;
}

.comment-count strong {
  color: var(--caramel);
}

.ugc-feed {
  display: grid;
  gap: 0;
}

.ugc-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.ugc-card:last-child {
  border-bottom: 0;
}

.ugc-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e9a75f, #a9612e);
  color: #1a110a;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ugc-main {
  min-width: 0;
}

.ugc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.ugc-author {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
}

.ugc-role {
  padding: 3px 7px;
  border: 1px solid rgba(166, 217, 185, 0.25);
  border-radius: 5px;
  background: rgba(166, 217, 185, 0.06);
  color: var(--mint);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.ugc-stars {
  margin-left: auto;
  color: var(--caramel);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.ugc-stars span {
  color: rgba(243, 231, 212, 0.18);
}

.ugc-text {
  margin: 6px 0 6px;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.ugc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.ugc-meta .pin {
  color: var(--caramel);
  font-weight: 700;
}

.ugc-note {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.ugc-empty {
  padding: 32px 20px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

/* Poll */

.poll {
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(233, 167, 95, 0.035);
}

.poll-question {
  margin: 0 0 10px;
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.poll-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.poll-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(20, 14, 11, 0.6);
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}

.poll-btn:hover {
  border-color: var(--caramel);
}

.poll-btn[disabled] {
  cursor: default;
  opacity: 0.85;
}

.poll-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: rgba(233, 167, 95, 0.16);
  transition: width 0.5s var(--ease);
}

.poll-btn span {
  position: relative;
  z-index: 1;
}

.poll-btn .pv {
  color: var(--caramel);
  font-variant-numeric: tabular-nums;
}

.poll-thanks {
  margin: 8px 0 0;
  color: var(--mint);
  font-size: 0.7rem;
}

/* Form */

.ugc-form {
  padding: 20px;
}

.ugc-form h3 {
  margin: 0 0 4px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 800;
}

.form-intro {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.field {
  margin: 0 0 12px;
}

.field label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #120d0a;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.86rem;
  line-height: 1.5;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8a7763;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--caramel);
  outline: none;
  box-shadow: 0 0 0 3px rgba(233, 167, 95, 0.12);
}

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

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.char-count {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.65rem;
  text-align: right;
}

.captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 8px;
  align-items: end;
}

.captcha-label {
  display: block;
  margin-bottom: 5px;
  color: var(--caramel);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ugc-submit {
  width: 100%;
  margin-top: 4px;
}

.form-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.5;
}

.ugc-status {
  display: none;
  margin: 12px 0 0;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 0.75rem;
  line-height: 1.5;
}

.ugc-status.is-visible {
  display: block;
}

.ugc-status.is-error {
  border: 1px solid rgba(232, 160, 173, 0.35);
  background: rgba(232, 160, 173, 0.08);
  color: #f3c0c8;
}

.ugc-status.is-success {
  border: 1px solid rgba(166, 217, 185, 0.35);
  background: rgba(166, 217, 185, 0.07);
  color: var(--mint);
}

.ugc-status.is-info {
  border: 1px solid var(--line);
  background: rgba(247, 236, 219, 0.04);
  color: var(--muted);
}

.load-more {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 18px;
  padding: 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.load-more:hover {
  border-color: var(--caramel);
  color: var(--caramel);
}

.seed-note {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.5;
}

/* ---------- Video ---------- */

.video-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 18px;
  align-items: start;
}

.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(500px 260px at 50% 40%, rgba(233, 167, 95, 0.14), transparent 70%),
    linear-gradient(135deg, #231811, #120c09);
  cursor: pointer;
}

.video-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.video-mark {
  position: absolute;
  left: 22px;
  bottom: 20px;
  z-index: 1;
  max-width: 72%;
  color: rgba(245, 236, 220, 0.62);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.video-mark em {
  display: block;
  margin-top: 3px;
  color: rgba(233, 167, 95, 0.75);
  font-size: 0.72em;
  font-style: italic;
  font-weight: 500;
}

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(247, 236, 219, 0.4);
  border-radius: 50%;
  background: rgba(20, 14, 11, 0.7);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.video-play:hover {
  background: var(--caramel);
  color: #1a110c;
  transform: translate(-50%, -50%) scale(1.05);
}

.video-play svg {
  width: 24px;
  height: 24px;
  margin-left: 3px;
}

.video-badge {
  position: absolute;
  left: 14px;
  top: 12px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 5px;
  background: rgba(12, 8, 6, 0.8);
  color: var(--text-soft);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.video-body {
  padding: 16px 18px 18px;
}

.video-body h3 {
  margin-bottom: 4px;
  font-size: 1.02rem;
}

.video-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.video-body a {
  font-weight: 700;
}

/* ---------- Sources ---------- */

.sources {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 236, 219, 0.025);
}

.sources h3 {
  margin-bottom: 12px;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0;
}

.source-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: src;
}

.source-list li {
  position: relative;
  margin: 0;
  padding: 8px 0 8px 30px;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  line-height: 1.55;
}

.source-list li:last-child {
  border-bottom: 0;
}

.source-list li::before {
  counter-increment: src;
  content: "[" counter(src) "]";
  position: absolute;
  left: 0;
  color: var(--caramel);
  font-family: var(--font-display);
  font-size: 0.72rem;
}

.source-list a {
  color: var(--text-soft);
  font-weight: 650;
}

.source-list a:hover {
  color: var(--caramel);
}

.source-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

/* ---------- Related links ---------- */

.link-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 1.4em 0 0;
  padding: 0;
  list-style: none;
}

.link-cards li {
  margin: 0;
}

.link-cards a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(247, 236, 219, 0.025);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.link-cards a:hover {
  border-color: rgba(233, 167, 95, 0.4);
  background: rgba(233, 167, 95, 0.05);
}

.link-cards strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
}

.link-cards span {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

/* ---------- CTA band ---------- */

.cta-band {
  padding: clamp(38px, 5vw, 56px);
  border: 1px solid rgba(233, 167, 95, 0.25);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 260px at 85% 20%, rgba(232, 160, 173, 0.12), transparent 60%),
    linear-gradient(150deg, rgba(233, 167, 95, 0.12), rgba(233, 167, 95, 0.02));
}

.cta-band h2 {
  margin-bottom: 8px;
}

.cta-band p {
  max-width: 60ch;
  margin-bottom: 20px;
  color: var(--text-soft);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: clamp(42px, 6vw, 66px) 0 26px;
  border-top: 1px solid var(--line);
  background: #100b09;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 34px;
}

.footer-brand .brand {
  margin-bottom: 12px;
}

.footer-brand p {
  max-width: 34ch;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.footer-note {
  color: #8f7d69;
  font-size: 0.7rem;
  line-height: 1.5;
}

.footer-col h2,
.footer-col h3 {
  margin: 0 0 12px;
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li {
  margin: 0 0 7px;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--caramel);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #8f7d69;
  font-size: 0.72rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: var(--muted);
  text-decoration: none;
}

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}

.back-top:hover {
  color: var(--caramel);
}

/* ---------- Misc ---------- */

.small-note {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

kbd {
  display: inline-block;
  padding: 1px 5px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: #1a130f;
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 0.76em;
  line-height: 1.5;
}

.mt-2 {
  margin-top: 2rem;
}

.guide-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.guide-card h3 a:hover {
  color: var(--caramel);
}

.prose a {
  font-weight: 650;
}

.prose a.text-link {
  font-weight: 700;
}

.ugc-form .btn-sm {
  height: 40px;
  white-space: nowrap;
}

.small-note a {
  font-weight: 700;
}

.divider {
  height: 1px;
  margin: 2em 0;
  background: var(--line);
}

.kicker-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.tag {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.two-col-list {
  columns: 2;
  column-gap: 36px;
}

.two-col-list li {
  break-inside: avoid;
}

.return-note {
  margin-top: 30px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 34px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-col:last-child {
    grid-column: 2 / 4;
  }

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

@media (max-width: 900px) {
  :root {
    --header-h: 66px;
  }

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

  .author-portrait {
    max-width: 420px;
  }

  body {
    font-size: 16.5px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 4vw 22px;
    border-bottom: 1px solid var(--line);
    background: rgba(19, 13, 10, 0.98);
    box-shadow: 0 24px 40px -24px #000;
  }

  .nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-link {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.98rem;
  }

  .nav-cta {
    margin: 12px 0 0;
    padding: 13px 18px;
    text-align: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero h1 {
    max-width: 18ch;
  }

  .run-card {
    max-width: 460px;
    transform: none;
  }

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

  .toc-list {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

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

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

  .answer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .answer-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }

  .answer-item strong {
    margin: 0;
    font-size: 1.15rem;
  }

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

  .player-frame {
    height: clamp(340px, 60vh, 560px);
  }

  .player-bar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .player-title h2 {
    font-size: 0.98rem;
  }

  .icon-btn span {
    display: none;
  }

  .icon-btn {
    padding: 9px;
  }

  .icon-btn svg {
    width: 17px;
    height: 17px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .brand-text span {
    font-size: 1rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .toc-list {
    grid-template-columns: 1fr;
  }

  .toc-list a {
    padding: 8px 0;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .link-cards {
    grid-template-columns: 1fr;
  }

  .guide-card {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .guide-card img {
    width: 80px;
    height: 80px;
  }

  .guide-card h3 {
    font-size: 1.06rem;
  }

  .fact-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }

  .footer-col:last-child {
    grid-column: auto;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .author-box {
    grid-template-columns: 1fr;
  }

  .author-box img,
  .avatar {
    width: 64px;
    height: 64px;
  }

  .ugc-card {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    padding: 16px;
  }

  .ugc-avatar {
    width: 38px;
    height: 38px;
    font-size: 0.86rem;
  }

  .ugc-stars {
    margin-left: 0;
    width: 100%;
  }

  .poll-options {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .player-frame {
    height: clamp(300px, 54vh, 440px);
  }

  .player-note {
    font-size: 0.72rem;
  }

  .section {
    padding: 48px 0;
  }

  .answer {
    padding: 24px 20px;
  }

  .stat-row {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    padding: 14px;
  }

  .stat strong {
    font-size: 1.45rem;
  }

  .sources {
    padding: 18px;
  }

  .byline {
    gap: 6px 10px;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }
}

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

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

@media print {
  body {
    background: #fff;
    color: #111;
  }

  .site-header,
  .player-section,
  .community,
  .site-footer,
  .cta-band,
  .video-grid {
    display: none !important;
  }

  a {
    color: #111;
  }
}
