:root {
  --bg: #f6f1e8;
  --bg-alt: #efe5d3;
  --surface: #fffdf8;
  --ink: #1f1d1a;
  --muted: #5b554d;
  --line: #d8c9b3;
  --accent: #c24d2c;
  --accent-dark: #7c2f19;
  --shadow: 0 18px 40px rgba(38, 25, 8, 0.12);
  --radius: 22px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Chivo", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(194, 77, 44, 0.18), transparent 24rem),
    linear-gradient(180deg, #fbf7f0 0%, var(--bg) 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  padding: 0.1rem 0.35rem;
  border-radius: 0.4rem;
  background: rgba(31, 29, 26, 0.08);
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.section {
  padding: 3.5rem 0;
}

.section-tight {
  padding-bottom: 1.25rem;
}

.section-alt {
  background: rgba(255, 255, 255, 0.45);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(246, 241, 232, 0.86);
  border-bottom: 1px solid rgba(216, 201, 179, 0.8);
}

.header-row,
.footer-grid,
.hero-grid,
.two-column,
.game-header,
.stage-actions {
  display: grid;
  gap: 1.5rem;
}

.header-row {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 1rem 0;
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brandmark strong,
.site-footer h2,
.section-header h2,
.page-heading h1,
.game-header h1,
.prose h1,
.prose h2 {
  font-family: "Instrument Serif", Georgia, serif;
}

.brandmark span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-nav a,
.footer-grid a {
  color: var(--muted);
}

.site-nav a:hover,
.footer-grid a:hover,
.game-card h3 a:hover {
  color: var(--accent-dark);
}

.hero {
  padding: 4.75rem 0 3.5rem;
}

.hero-grid {
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
}

.hero h1,
.page-heading h1,
.game-header h1,
.prose h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.95;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 52rem;
}

.hero-card,
.sidebar-card,
.embed-shell,
.category-card,
.game-card,
.faq-item,
.page-prose {
  background: var(--surface);
  border: 1px solid rgba(216, 201, 179, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card,
.sidebar-card,
.page-prose {
  padding: 1.5rem;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #df7a41);
  color: white;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(194, 77, 44, 0.24);
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.check-list,
.footer-grid ul,
.breadcrumbs ol,
.detail-list,
.faq-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.footer-grid li {
  margin-top: 0.75rem;
}

.section-header {
  margin-bottom: 1.5rem;
}

.card-grid,
.category-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.category-card,
.game-card {
  overflow: hidden;
}

.category-card {
  padding: 1.5rem;
}

.category-card span {
  color: var(--accent-dark);
  font-weight: 700;
}

.game-card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #f3e7d6;
}

.game-card-body {
  padding: 1rem 1rem 1.25rem;
}

.game-card h3 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.25rem;
}

.game-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--muted);
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
}

.game-header {
  grid-template-columns: 1.4fr 1fr;
  align-items: start;
}

.game-header-copy {
  min-width: 0;
}

.game-header-side {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.game-cover-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(216, 201, 179, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.game-cover-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #f3e7d6;
}

.detail-pill-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 0.6rem;
}

.tag-pill {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(194, 77, 44, 0.1);
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.embed-shell {
  padding: 1rem;
}

.game-frame,
.embed-placeholder {
  width: 100%;
  border: 0;
  border-radius: calc(var(--radius) - 8px);
}

.game-frame {
  aspect-ratio: 16 / 9;
  background: #111;
}

.embed-placeholder {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 2rem;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(194, 77, 44, 0.12), rgba(124, 47, 25, 0.18)),
    #f4ebe0;
}

.stage-actions {
  grid-template-columns: auto 1fr;
  align-items: center;
  margin-top: 1rem;
}

.stage-note {
  margin: 0;
  color: var(--muted);
}

.two-column {
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  align-items: start;
}

.prose,
.page-prose {
  line-height: 1.8;
}

.prose p,
.prose li,
.page-prose p,
.page-prose li {
  color: var(--muted);
}

.prose ul,
.page-prose ul {
  padding-left: 1.2rem;
}

.detail-list div {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(216, 201, 179, 0.8);
}

.detail-list dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-list dd {
  margin: 0;
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  padding: 1rem 1.2rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(216, 201, 179, 0.8);
}

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

.footer-bottom {
  padding-top: 1rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-grid,
  .two-column,
  .game-header,
  .header-row,
  .footer-grid,
  .stage-actions {
    grid-template-columns: 1fr;
  }

  .detail-pill-group {
    justify-content: start;
  }

  .game-cover-card {
    max-width: 32rem;
  }
}
