:root {
  --bg: #f8f6f1;
  --paper: #fffdf8;
  --ink: #1f1b16;
  --muted: #5e5549;
  --brand: #af6a22;
  --brand-2: #dd9f39;
  --line: #e7dbc8;
  --shadow: 0 10px 30px rgba(95, 66, 24, 0.09);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, #fff6dd 0%, transparent 35%),
    radial-gradient(circle at 90% 0%, #f4e1bd 0%, transparent 30%),
    var(--bg);
  line-height: 1.6;
}

.wrap {
  width: min(1000px, 92vw);
  margin: 0 auto;
}

.hero {
  border-bottom: 1px solid var(--line);
  padding: 4.5rem 0 3rem;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.game-icon {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  display: block;
  margin-bottom: 0.6rem;
  border: 1px solid #d5c3a6;
  box-shadow: 0 8px 24px rgba(88, 56, 16, 0.16);
}

h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 1.05;
}

.subtitle {
  max-width: 760px;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: #312a22;
}

.hero-actions {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  text-decoration: none;
  font-weight: 700;
  transition: transform 160ms ease;
}

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

.button.primary {
  color: white;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
}

.button.ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
}

.toc {
  position: sticky;
  top: 0;
  z-index: 10;
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.6rem;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(3px);
}

.toc a {
  text-decoration: none;
  color: #473a2d;
  border: 1px solid #d8c8b0;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.92rem;
}

.card {
  margin: 1rem 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.2rem 1.1rem;
}

h2 {
  margin-top: 0;
  font-size: clamp(1.3rem, 3.6vw, 2rem);
}

h3 {
  margin-bottom: 0.3rem;
}

p,
ul,
ol {
  margin-top: 0.35rem;
}

a {
  color: #7d470f;
}

.small {
  color: var(--muted);
  font-size: 0.9rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.7rem;
}

.stat-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.7rem;
  background: #fffefb;
}

.stat-box span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.stat-box strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.08rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.video-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffcf5;
  overflow: hidden;
}

.video-item a {
  display: block;
  text-decoration: none;
  color: var(--ink);
}

.video-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.video-item h3 {
  margin: 0;
  padding: 0.65rem 0.7rem 0.8rem;
  font-size: 0.95rem;
  line-height: 1.35;
}

.footer {
  border-top: 1px solid var(--line);
  margin: 2rem auto 3rem;
  padding-top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-subtle {
  margin-top: 0.5rem;
  font-size: 0.84rem;
  opacity: 0.86;
}

.quiet-link {
  color: #6f5435;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.quiet-link:hover {
  color: #3f2d17;
}

@media (max-width: 680px) {
  .hero {
    padding-top: 3.2rem;
  }

  .toc {
    position: static;
  }

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

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