:root {
  --bg: #f4f1e8;
  --paper: #fffdf7;
  --ink: #1d2b2a;
  --muted: #5f6f6c;
  --line: #d7d0c2;
  --accent: #1f7a5a;
  --accent-dark: #145a43;
  --accent-soft: #d9efe6;
  --sand: #ece4d4;
  --card-shadow: 0 18px 40px rgba(29, 43, 42, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #fff7e6 0%, var(--bg) 42%, #efe8da 100%);
  color: var(--ink);
  font: 16px/1.6 Georgia, "Times New Roman", serif;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.wrap-inner {
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(255, 253, 247, 0.86);
  border-bottom: 1px solid rgba(215, 208, 194, 0.75);
}

.header-row {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.top-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.top-nav a[aria-current="page"] {
  font-weight: 700;
}

.hero,
.section,
.page-shell {
  padding: 40px 0;
}

.hero-grid,
.two-col,
.content-grid,
.footer-grid {
  display: grid;
  gap: 24px;
}

.hero-grid,
.two-col {
  grid-template-columns: 1.6fr 1fr;
}

.content-grid {
  grid-template-columns: minmax(0, 2fr) minmax(260px, 0.8fr);
}

.hero-copy,
.lede {
  color: var(--muted);
  font-size: 1.05rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  font-size: 0.82rem;
  margin-bottom: 10px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.hero-card,
.game-card,
.side-card,
.play-panel,
.content-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.hero-card,
.side-card,
.content-block {
  padding: 24px;
}

.hero-card ul,
.side-card ul,
.content-block ul,
.content-block ol {
  margin: 0;
  padding-left: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  border: 1px solid var(--accent-dark);
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

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

.button-primary {
  background: var(--accent);
  color: white;
}

.button-secondary {
  background: transparent;
  color: var(--accent-dark);
}

.hero-actions,
.play-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.section-muted {
  background: rgba(255, 253, 247, 0.55);
  border-top: 1px solid rgba(215, 208, 194, 0.7);
  border-bottom: 1px solid rgba(215, 208, 194, 0.7);
}

.section-head {
  margin-bottom: 20px;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

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

.game-card {
  padding: 22px;
}

.tag,
.pill {
  display: inline-flex;
  align-items: center;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.game-hero,
.category-hero {
  margin-bottom: 20px;
}

.game-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.8fr);
  gap: 24px;
}

.play-panel {
  padding: 22px;
  margin-top: 20px;
}

.play-placeholder {
  min-height: 220px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 18px;
  background: linear-gradient(135deg, #fcfaf4, #f0eadc);
}

.content-main,
.content-side,
.content-article {
  min-width: 0;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.link-list li + li {
  margin-top: 12px;
}

.check-list {
  margin: 0;
  padding-left: 20px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.9);
}

.footer-grid {
  grid-template-columns: 1fr auto;
  align-items: start;
  padding: 28px 0;
}

.footer-grid a {
  display: block;
  margin-bottom: 8px;
}

details + details {
  margin-top: 12px;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

@media (max-width: 860px) {
  .hero-grid,
  .two-col,
  .content-grid,
  .game-hero,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
