:root {
  --sand: #fff4d7;
  --paper: #fffbef;
  --ink: #1c1a17;
  --muted: #655f55;
  --asphalt: #2b3036;
  --cactus: #2f7d4d;
  --sky: #4aa3c7;
  --clay: #d15f2b;
  --gold: #f3b63f;
  --line: rgba(28, 26, 23, 0.16);
  --shadow: 0 20px 55px rgba(31, 28, 19, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(180deg, #ffefc1 0%, #fff7e5 42%, #f0f7f3 100%);
  font-family: Verdana, Geneva, sans-serif;
  line-height: 1.65;
}

a { color: inherit; }
.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--ink);
  color: white;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 251, 239, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.top-strip {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 6px 16px;
  background: var(--asphalt);
  color: white;
  font-size: 12px;
}
.top-strip a { color: #bce7f5; text-decoration: none; }
.nav-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--clay), var(--asphalt));
  border: 2px solid rgba(28, 26, 23, .18);
  border-radius: 7px;
  font-weight: 900;
  letter-spacing: 0;
}
.brand strong { display: block; line-height: 1.1; }
.brand small { color: var(--muted); font-size: 12px; }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.nav-links a,
.category-rail a {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 11px;
  background: rgba(255,255,255,.58);
  font-size: 13px;
}
.nav-links a:hover,
.category-rail a:hover,
.text-link:hover { color: var(--clay); }

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 18px 60px;
}
.play-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
  min-height: calc(100vh - 120px);
}
.game-shell,
.starter-board,
.side-list,
.section-block,
.answer-box,
.guide-card,
.legal-page {
  background: rgba(255, 251, 239, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.game-shell {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.game-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  background:
    linear-gradient(120deg, rgba(209,95,43,.16), transparent 45%),
    linear-gradient(240deg, rgba(74,163,199,.18), transparent 45%);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  margin: 0 0 6px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
  letter-spacing: 0;
}
h1 { font-size: clamp(34px, 5vw, 70px); max-width: 820px; }
h2 { font-size: clamp(25px, 3vw, 38px); margin-bottom: 14px; }
h3 { font-size: 22px; }
.toolbar-actions,
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.icon-button,
.solid-button,
.outline-button {
  min-height: 42px;
  border-radius: 7px;
  border: 1px solid var(--line);
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-button {
  width: 42px;
  background: var(--paper);
  color: var(--asphalt);
  font-size: 20px;
}
.solid-button {
  padding: 10px 14px;
  background: var(--asphalt);
  color: white;
}
.outline-button {
  padding: 10px 14px;
  background: transparent;
  color: var(--asphalt);
}
.iframe-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #f9973f;
}
.iframe-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.fine-print {
  margin: 0;
  padding: 10px 18px 14px;
  color: var(--muted);
  font-size: 12px;
}
.starter-board {
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(47,125,77,.15), transparent 45%),
    rgba(255,251,239,.92);
}
.starter-board ol {
  margin: 14px 0 18px;
  padding-left: 22px;
}
.starter-board li { margin-bottom: 9px; }
.text-link {
  font-weight: 900;
  text-decoration: none;
  color: var(--cactus);
}
.category-rail {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 18px 0;
}
.category-rail a { white-space: nowrap; background: white; }
.content-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.content-grid > *,
.main-column,
.section-block {
  min-width: 0;
}
.side-list {
  position: sticky;
  top: 106px;
  padding: 16px;
}
.side-list h2 {
  font-size: 24px;
}
.side-list a {
  display: block;
  padding: 11px 0;
  text-decoration: none;
  border-top: 1px solid var(--line);
  font-weight: 800;
}
.side-list span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}
.main-column {
  display: grid;
  gap: 18px;
}
.section-block {
  padding: 22px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.card-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.guide-card {
  min-height: 180px;
  padding: 16px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.guide-card:hover {
  transform: translateY(-3px);
  border-color: rgba(209,95,43,.52);
  background: white;
}
.card-tag {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: white;
  background: var(--cactus);
  font-size: 11px;
  font-weight: 900;
}
.guide-card p { margin: 12px 0 0; color: var(--muted); }
.article-block p {
  margin: 0 0 14px;
  max-width: 75ch;
}
.callout-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.callout-row div {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: rgba(255,255,255,.6);
}
.callout-row strong,
.callout-row span { display: block; }
.callout-row span { color: var(--clay); font-weight: 900; }
.table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
th, td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
th {
  background: var(--asphalt);
  color: white;
}
details {
  border-top: 1px solid var(--line);
  padding: 13px 0;
}
summary {
  cursor: pointer;
  font-weight: 900;
}
details p { color: var(--muted); margin-bottom: 0; }
.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: stretch;
  padding: 34px 0 20px;
}
.guide-hero.simple { grid-template-columns: 1fr; }
.guide-hero > div,
.answer-box {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 251, 239, .88);
  padding: 22px;
  box-shadow: var(--shadow);
}
.lede {
  color: var(--muted);
  max-width: 760px;
  font-size: 18px;
}
.answer-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(243,182,63,.28), rgba(255,251,239,.95));
}
.answer-box span {
  color: var(--clay);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.answer-box p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.25;
  margin: 8px 0 0;
}
.guide-layout { margin-top: 0; }
.tip-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  list-style: none;
}
.tip-list li {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: rgba(74,163,199,.1);
}
.legal-page {
  padding: 22px;
  max-width: 850px;
  margin: 0 auto 40px;
}
.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 18px 42px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer p { max-width: 620px; margin: 8px 0 0; }
.site-footer nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.site-footer a { text-decoration: none; font-weight: 800; color: var(--asphalt); }

@media (max-width: 920px) {
  .play-section,
  .content-grid,
  .guide-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .side-list { position: static; }
  .game-toolbar,
  .section-heading,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  main { padding: 14px 12px 40px; }
  .nav-shell { align-items: flex-start; flex-direction: column; }
  .nav-links { justify-content: flex-start; }
  h1 { font-size: 34px; }
  .card-grid,
  .card-grid.compact,
  .callout-row,
  .tip-list {
    grid-template-columns: 1fr;
  }
  .iframe-frame { aspect-ratio: 4 / 3; }
}

/* Compact arcade layout inspired by Sprunkin-style game portals. */
:root {
  --page: #f3f3f3;
  --panel: #ffffff;
  --ink: #171717;
  --muted: #666666;
  --border: #d9d9d9;
  --accent: #f05a28;
  --accent-dark: #1f8c45;
  --dark: #111111;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

body {
  background: var(--page);
  color: var(--ink);
  font-family: Tahoma, Verdana, sans-serif;
  line-height: 1.55;
}

.site-header {
  position: static;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  backdrop-filter: none;
}

.top-links {
  min-height: 34px;
  display: flex;
  justify-content: center;
  gap: 22px;
  padding: 8px 14px;
  background: var(--dark);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.top-links a {
  color: inherit;
  text-decoration: none;
}

.nav-shell {
  max-width: 1180px;
  padding: 12px 14px;
}

.brand img {
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--border);
}

.brand small {
  color: var(--muted);
}

.nav-links a,
.tag-strip a {
  padding: 7px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover,
.tag-strip a:hover,
.top-links a:hover,
.list-link:hover strong,
.game-card:hover strong {
  color: var(--accent);
}

main {
  max-width: 1180px;
  padding: 16px 14px 42px;
}

.home-stage {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 250px;
  gap: 16px;
  align-items: start;
}

.game-list,
.play-card,
.home-block,
.guide-strip {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.game-list {
  padding: 12px;
}

.game-list h2,
.home-block h2,
.guide-strip h2 {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 20px;
  line-height: 1.2;
}

.list-link {
  min-height: 56px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eeeeee;
  text-decoration: none;
}

.list-link strong,
.game-card strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.list-link small,
.game-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.mini-thumb,
.card-thumb {
  display: grid;
  place-items: center;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(240, 90, 40, 0.95), rgba(31, 140, 69, 0.94)),
    #f05a28;
  color: #ffffff;
  font-weight: 900;
}

.mini-thumb {
  width: 44px;
  height: 44px;
  font-size: 13px;
}

.more-link {
  display: block;
  margin-top: 12px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.more-link.inline {
  display: inline-block;
}

.play-card {
  overflow: hidden;
}

.game-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 22% 12%, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(135deg, #ef7a32, #d94f2b 48%, #23343a);
}

.game-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.play-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px 15px;
}

.play-caption h1 {
  margin: 0;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 28px;
  line-height: 1.1;
}

.play-caption p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.play-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.icon-button,
.play-button {
  min-height: 38px;
  border-radius: 4px;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.icon-button {
  width: 40px;
  background: #eeeeee;
  color: var(--ink);
}

.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
}

.tag-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
  padding: 10px 0;
}

.tag-strip a {
  border: 1px solid var(--border);
  background: var(--panel);
}

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

.home-block,
.guide-strip {
  padding: 14px;
}

.game-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.game-card {
  min-height: 76px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid #eeeeee;
  border-radius: 4px;
  background: #fafafa;
  text-decoration: none;
}

.game-card:hover {
  border-color: rgba(240, 90, 40, 0.45);
  background: #ffffff;
}

.card-thumb {
  width: 58px;
  height: 58px;
}

.guide-strip {
  margin-top: 16px;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.guide-steps p {
  margin: 0;
  padding: 12px;
  border: 1px solid #eeeeee;
  border-radius: 4px;
  background: #fafafa;
  color: var(--muted);
  font-size: 14px;
}

.guide-steps strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

.faq-block {
  margin-top: 16px;
}

@media (max-width: 1000px) {
  .home-stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .play-card {
    order: -1;
  }

  .game-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
  }

  .game-list h2,
  .game-list .more-link {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .top-links {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
  }

  .home-grid,
  .game-card-grid,
  .guide-steps,
  .game-list {
    grid-template-columns: 1fr;
  }

  .play-caption {
    align-items: flex-start;
    flex-direction: column;
  }

  .game-frame {
    aspect-ratio: 4 / 3;
  }
}