/* Snagglee — hoard.css
   Flat, saturated, illustration-poster palette (coin/gold/token motifs).
   No shadows, no gradients, no card borders: sections separate by colour
   and air, buttons never sit on a bare right angle. */

@font-face {
  font-family: 'Changa One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/changa-one-400.woff2?v=1') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --sgl-gold: #ffe600;
  --sgl-gold-soft: #fff6cc;
  --sgl-token: #007fff;
  --sgl-ember: #ef3b2c;
  --sgl-ink: #262626;
  --sgl-ink-soft: #52514a;
  --sgl-paper: #ffffff;
  --sgl-paper-dim: #faf8ef;
  --sgl-line: #e7e2cd;

  --sgl-display: 'Changa One', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --sgl-body: Arial, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --sgl-gap-s: 10px;
  --sgl-gap-m: 20px;
  --sgl-gap-l: 45px;
  --sgl-radius-pill: 999px;
  --sgl-max: 1180px;
}

/* prevents webfont swap from re-flowing headline blocks: metric-matched
   fallback keeps line count stable until Changa One paints (P19/CLS) */
@font-face {
  font-family: 'Changa One Fallback';
  src: local('Arial Bold');
  size-adjust: 116%;
  ascent-override: 100%;
  descent-override: 32%;
  line-gap-override: 0%;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sgl-paper);
  color: var(--sgl-ink);
  font-family: var(--sgl-body);
  font-size: 16px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--sgl-display), 'Changa One Fallback', var(--sgl-body); font-weight: 400; margin: 0 0 var(--sgl-gap-m); line-height: 1.08; }
h1 { font-size: clamp(32px, 6vw, 54px); }
h2 { font-size: clamp(24px, 4vw, 34px); }
h3 { font-size: clamp(19px, 3vw, 23px); }
p { margin: 0 0 var(--sgl-gap-m); max-width: 68ch; }
a { color: inherit; }
ul, ol { margin: 0 0 var(--sgl-gap-m); padding-left: 1.2em; }
main { display: block; }

.sgl-skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--sgl-ink); color: var(--sgl-paper);
  padding: 12px 18px; border-radius: 0 0 12px 0;
}
.sgl-skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--sgl-token); outline-offset: 3px; }

.sgl-wrap { max-width: var(--sgl-max); margin-inline: auto; padding-inline: var(--sgl-gap-m); }
@media (min-width: 760px) { .sgl-wrap { padding-inline: var(--sgl-gap-l); } }

/* ---------- header / nav ---------- */
.sgl-head { background: var(--sgl-paper); border-bottom: 0; padding-block: var(--sgl-gap-s); position: relative; z-index: 50; }
.sgl-head__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--sgl-gap-m); max-width: var(--sgl-max); margin-inline: auto; padding-inline: var(--sgl-gap-m); }
@media (min-width: 760px) { .sgl-head__bar { padding-inline: var(--sgl-gap-l); } }
.sgl-mark { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--sgl-display), 'Changa One Fallback', var(--sgl-body); font-size: 22px; color: var(--sgl-ink); }
.sgl-mark__coin { width: 34px; height: 34px; border-radius: var(--sgl-radius-pill); background: var(--sgl-gold); border: 2px solid var(--sgl-ink); display: grid; place-items: center; font-family: var(--sgl-body); font-weight: 700; font-size: 15px; flex: none; }
.sgl-burger { display: inline-flex; align-items: center; gap: 8px; background: none; border: 2px solid var(--sgl-ink); border-radius: var(--sgl-radius-pill); padding: 9px 18px; font: inherit; font-size: 14px; color: var(--sgl-ink); cursor: pointer; min-height: 48px; }
.sgl-burger__box { width: 18px; height: 12px; position: relative; }
.sgl-burger__box span { position: absolute; left: 0; right: 0; height: 2px; background: var(--sgl-ink); }
.sgl-burger__box span:nth-child(1) { top: 0; }
.sgl-burger__box span:nth-child(2) { top: 5px; }
.sgl-burger__box span:nth-child(3) { top: 10px; }
@media (min-width: 900px) { .sgl-burger { display: none; } }
.sgl-nav__list {
  list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px;
  position: absolute; top: 100%; left: 0; right: 0; background: var(--sgl-paper);
  border-bottom: 2px solid var(--sgl-ink);
}
.sgl-nav__list[data-open="true"] { display: flex; }
.sgl-nav__list:not([data-open="true"]) { display: none; }
@media (min-width: 900px) {
  .sgl-nav__list { position: static; flex-direction: row; align-items: center; gap: 4px; border-bottom: 0; background: none; }
  .sgl-nav__list:not([data-open="true"]) { display: flex; }
}
.sgl-nav__link { display: block; padding: 13px var(--sgl-gap-m); text-decoration: none; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; color: var(--sgl-ink); border-bottom: 3px solid transparent; min-height: 48px; display: flex; align-items: center; }
.sgl-nav__link:hover { border-bottom-color: var(--sgl-gold); }
.sgl-nav__link[aria-current="page"] { border-bottom-color: var(--sgl-ink); font-weight: 700; }

/* ---------- buttons / cta (pill — non-rectangular, per house rule) ---------- */
.sgl-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--sgl-radius-pill); padding: 13px 26px; min-height: 48px;
  font-family: var(--sgl-body); font-size: 15px; font-weight: 700; text-decoration: none;
  border: 2px solid var(--sgl-ink); cursor: pointer; transition: transform .15s ease, background-color .15s ease;
}
.sgl-cta--primary { background: var(--sgl-ink); color: var(--sgl-paper); }
.sgl-cta--primary:hover { transform: translateY(-2px); background: #000; }
.sgl-cta--ghost { background: transparent; color: var(--sgl-ink); }
.sgl-cta--ghost:hover { transform: translateY(-2px); background: var(--sgl-gold-soft); }
.sgl-cta--soft { background: var(--sgl-gold); color: var(--sgl-ink); border-color: var(--sgl-ink); }
.sgl-cta--soft:hover { transform: translateY(-2px); background: #ffee4d; }
.sgl-cta:active { transform: translateY(0); }

/* ---------- hero / stage ---------- */
.sgl-stage { background: var(--sgl-gold); padding-block: clamp(48px, 8vw, 88px); overflow: hidden; }
.sgl-stage__grid { max-width: var(--sgl-max); margin-inline: auto; padding-inline: var(--sgl-gap-m); display: grid; gap: var(--sgl-gap-l); align-items: center; }
@media (min-width: 760px) { .sgl-stage__grid { padding-inline: var(--sgl-gap-l); } }
@media (min-width: 880px) { .sgl-stage__grid { grid-template-columns: 1.1fr .9fr; } }
.sgl-stage__eyebrow { display: inline-block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; margin-bottom: 14px; }
.sgl-stage h1 { max-width: 13ch; }
.sgl-stage p { font-size: 18px; max-width: 42ch; }
.sgl-stage__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: var(--sgl-gap-m); }
.sgl-stage__medal {
  width: min(340px, 90%); aspect-ratio: 1; margin-inline: auto; border-radius: 50%;
  background: var(--sgl-token); display: flex; align-items: center; justify-content: center;
  padding: 20px; text-align: center; transform: rotate(-4deg);
}
.sgl-stage__medal span { display: block; font-family: var(--sgl-display), 'Changa One Fallback', var(--sgl-body); color: var(--sgl-paper); font-size: clamp(26px, 4vw, 34px); line-height: .95; transform: rotate(4deg); }

/* generic section band (simple pages / inner hero) */
.sgl-band { padding-block: clamp(40px, 6vw, 60px); }
.sgl-band--gold { background: var(--sgl-gold); }
.sgl-band--paper { background: var(--sgl-paper); }
.sgl-band--dim { background: var(--sgl-paper-dim); }
.sgl-band h1 { max-width: 18ch; }
.sgl-band__lead { font-size: 18px; max-width: 60ch; }

/* ---------- breadcrumbs ---------- */
.sgl-crumbs { font-size: 13px; color: var(--sgl-ink-soft); padding-block: var(--sgl-gap-m); max-width: 100%; }
.sgl-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.sgl-crumbs a { text-decoration: underline; text-underline-offset: 3px; color: var(--sgl-ink-soft); }
.sgl-crumbs li:not(:last-child)::after { content: '\2192'; margin-left: 6px; color: var(--sgl-ink-soft); }
.sgl-crumbs [aria-current="page"] { color: var(--sgl-ink); }

/* ---------- genre showcase ---------- */
.sgl-strip { padding-block: var(--sgl-gap-l); }
.sgl-strip__head { max-width: 62ch; margin-bottom: var(--sgl-gap-l); }
.sgl-strip__list { display: grid; gap: var(--sgl-gap-m); grid-template-columns: 1fr; }
@media (min-width: 720px) { .sgl-strip__list { grid-template-columns: repeat(2, 1fr); } }
.sgl-strip__tile { background: var(--sgl-paper-dim); padding: 28px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.sgl-strip__tile:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.sgl-strip__tile:nth-child(2) { background: var(--sgl-gold-soft); }
.sgl-strip__badge { width: 46px; height: 46px; border-radius: 50%; background: var(--sgl-ink); color: var(--sgl-paper); display: grid; place-items: center; }
.sgl-strip__tile p { max-width: 46ch; }
.sgl-strip__count { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--sgl-ink-soft); }

/* ---------- card grid (non-uniform, P18.4) ---------- */
.sgl-grid { display: grid; gap: var(--sgl-gap-m); grid-template-columns: 1fr; padding-block: var(--sgl-gap-l); }
@media (min-width: 620px) { .sgl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .sgl-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; } }
@media (min-width: 980px) { .sgl-grid--home .sgl-vault--feature { grid-column: span 2; grid-row: span 2; } }
.sgl-vault { background: var(--sgl-paper-dim); display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--sgl-ink); }
.sgl-vault__pic { width: 50%; max-width: 160px; aspect-ratio: 1; object-fit: contain; margin: 20px auto 0; }
.sgl-vault--feature .sgl-vault__pic { width: 44%; max-width: 220px; }
.sgl-vault__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sgl-vault__genre { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--sgl-ink-soft); }
.sgl-vault__title { font-family: var(--sgl-display), 'Changa One Fallback', var(--sgl-body); font-size: 21px; line-height: 1.1; margin: 0; }
.sgl-vault__meta { display: flex; align-items: center; gap: 10px; margin-top: auto; font-size: 13px; color: var(--sgl-ink-soft); }
.sgl-vault__score { width: 34px; height: 34px; border-radius: 50%; background: var(--sgl-gold); border: 2px solid var(--sgl-ink); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.sgl-vault:hover .sgl-vault__title { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- comparison table / ledger (P18.3, P14: full width) ---------- */
.sgl-ledger { padding-block: var(--sgl-gap-l); }
.sgl-ledger__scroll { width: 100%; overflow-x: auto; }
.sgl-ledger table { width: 100%; border-collapse: collapse; min-width: 640px; }
.sgl-ledger caption { text-align: left; font-family: var(--sgl-display), 'Changa One Fallback', var(--sgl-body); font-size: 22px; margin-bottom: var(--sgl-gap-m); }
.sgl-ledger th, .sgl-ledger td { text-align: left; padding: 13px 16px; font-size: 14px; vertical-align: top; }
.sgl-ledger thead th { border-bottom: 2px solid var(--sgl-ink); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.sgl-ledger tbody tr:nth-child(even) { background: var(--sgl-paper-dim); }
.sgl-ledger tbody th { font-weight: 700; }
.sgl-ledger__note { margin-top: var(--sgl-gap-m); font-size: 14px; color: var(--sgl-ink-soft); max-width: 72ch; }
.sgl-check { color: var(--sgl-token); }

/* ---------- review page ---------- */
.sgl-article { padding-block: var(--sgl-gap-l); }
.sgl-article__verdict { background: var(--sgl-paper-dim); padding: 24px; display: flex; gap: 18px; align-items: flex-start; margin-bottom: var(--sgl-gap-l); }
.sgl-article__verdict p { margin: 0; max-width: 60ch; }
.sgl-score { flex: none; width: 66px; height: 66px; border-radius: 50%; background: var(--sgl-ink); color: var(--sgl-paper); display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--sgl-display), 'Changa One Fallback', var(--sgl-body); }
.sgl-score b { font-size: 21px; line-height: 1; }
.sgl-score small { font-size: 10px; }
.sgl-facts { width: 100%; border-collapse: collapse; margin-bottom: var(--sgl-gap-l); }
.sgl-facts th, .sgl-facts td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--sgl-line); font-size: 14px; }
.sgl-facts th { width: 40%; font-weight: 700; color: var(--sgl-ink-soft); }
.sgl-shots { display: grid; gap: var(--sgl-gap-m); grid-template-columns: 1fr; margin-bottom: var(--sgl-gap-l); align-items: start; }
@media (min-width: 620px) { .sgl-shots { grid-template-columns: 1fr 1fr; } }
.sgl-shots img { width: 100%; height: auto; max-height: 70vh; object-fit: contain; background: var(--sgl-paper-dim); }
.sgl-article section { margin-bottom: var(--sgl-gap-l); }
.sgl-tally { display: grid; gap: var(--sgl-gap-m); grid-template-columns: 1fr; margin-bottom: var(--sgl-gap-l); }
@media (min-width: 620px) { .sgl-tally { grid-template-columns: 1fr 1fr; } }
.sgl-tally__col { background: var(--sgl-paper-dim); padding: 20px; }
.sgl-tally__col h3 { font-size: 16px; margin-bottom: 10px; }
.sgl-tally__col ul { padding-left: 0; list-style: none; margin: 0; }
.sgl-tally__col li { padding-left: 26px; position: relative; margin-bottom: 8px; font-size: 14px; }
.sgl-tally__col li::before { position: absolute; left: 0; }
.sgl-tally--up li::before { content: '+'; color: var(--sgl-token); font-weight: 700; }
.sgl-tally--down li::before { content: '\2212'; color: var(--sgl-ember); font-weight: 700; }

/* ---------- related games ---------- */
.sgl-related { padding-block: var(--sgl-gap-l); background: var(--sgl-paper-dim); }
.sgl-related__list { display: grid; gap: var(--sgl-gap-m); grid-template-columns: repeat(2, 1fr); list-style: none; padding: 0; margin: var(--sgl-gap-m) 0 0; }
@media (min-width: 760px) { .sgl-related__list { grid-template-columns: repeat(4, 1fr); } }
.sgl-related__list a { display: block; text-decoration: none; color: var(--sgl-ink); background: var(--sgl-paper); padding: 14px; }
.sgl-related__list img { aspect-ratio: 1; object-fit: cover; margin-bottom: 10px; }
.sgl-related__list span { font-size: 14px; font-weight: 700; }

/* ---------- FAQ (native details/summary) ---------- */
.sgl-accordion { padding-block: var(--sgl-gap-l); }
.sgl-accordion__item { border-bottom: 1px solid var(--sgl-line); }
.sgl-accordion__item:first-of-type { border-top: 1px solid var(--sgl-line); }
.sgl-accordion summary { cursor: pointer; padding: 18px 4px; font-family: var(--sgl-display), 'Changa One Fallback', var(--sgl-body); font-size: 18px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 48px; }
.sgl-accordion summary::-webkit-details-marker { display: none; }
.sgl-accordion summary::after { content: '+'; font-size: 22px; flex: none; font-family: var(--sgl-body); }
.sgl-accordion details[open] summary::after { content: '\2212'; }
.sgl-accordion__item p { padding: 0 4px 18px; max-width: 70ch; }

/* ---------- footer ---------- */
.sgl-foot { background: var(--sgl-ink); color: var(--sgl-gold-soft); padding-block: var(--sgl-gap-l); margin-top: var(--sgl-gap-l); }
.sgl-foot a { color: var(--sgl-paper); text-decoration: none; }
.sgl-foot a:hover { text-decoration: underline; }
.sgl-foot__grid { display: grid; gap: var(--sgl-gap-l); grid-template-columns: 1fr; }
@media (min-width: 760px) { .sgl-foot__grid { grid-template-columns: 1.2fr 1fr 1fr 1.2fr; } }
.sgl-foot h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: var(--sgl-paper); margin-bottom: 14px; }
.sgl-foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.sgl-foot__contact { font-size: 14px; }
.sgl-foot__contact a { text-decoration: underline; }
.sgl-foot__base { border-top: 1px solid #4a4a42; margin-top: var(--sgl-gap-l); padding-top: 18px; font-size: 13px; color: #cfcabb; display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; }

/* ---------- cookie banner ---------- */
.sgl-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; background: var(--sgl-paper); border: 2px solid var(--sgl-ink); padding: 20px; max-width: 560px; margin-inline: auto; }
.sgl-banner p { font-size: 14px; margin: 0 0 14px; max-width: none; }
.sgl-banner__row { display: flex; gap: 12px; flex-wrap: wrap; }
.sgl-banner[hidden] { display: none; }

/* ---------- static content pages (about/contact/legal/guide) ---------- */
.sgl-doc { padding-block: var(--sgl-gap-l); }
.sgl-doc h2 { margin-top: var(--sgl-gap-l); font-size: 22px; }
.sgl-doc h2:first-child { margin-top: 0; }
.sgl-doc p, .sgl-doc li { max-width: 72ch; }
.sgl-doc__meta { font-size: 13px; color: var(--sgl-ink-soft); margin-bottom: var(--sgl-gap-l); }
.sgl-cookie-table { width: 100%; border-collapse: collapse; margin: var(--sgl-gap-m) 0 var(--sgl-gap-l); }
.sgl-cookie-table th, .sgl-cookie-table td { text-align: left; padding: 10px 14px; font-size: 13px; border-bottom: 1px solid var(--sgl-line); }
.sgl-cookie-table thead th { border-bottom: 2px solid var(--sgl-ink); }

/* ---------- sitemap.html ---------- */
.sgl-sitemap__group { margin-bottom: var(--sgl-gap-l); }
.sgl-sitemap__group h2 { font-size: 19px; }
.sgl-sitemap__group ul { list-style: none; padding: 0; display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .sgl-sitemap__group ul { grid-template-columns: 1fr 1fr; } }

/* ---------- picks (listicle) ---------- */
.sgl-listicle { padding-block: var(--sgl-gap-l); }
.sgl-listicle__row { display: grid; gap: 18px; grid-template-columns: 1fr; padding-block: 26px; border-bottom: 1px solid var(--sgl-line); }
@media (min-width: 680px) { .sgl-listicle__row { grid-template-columns: 90px 200px 1fr; align-items: start; } }
.sgl-listicle__rank { font-family: var(--sgl-display), 'Changa One Fallback', var(--sgl-body); font-size: 40px; color: var(--sgl-token); line-height: 1; }
.sgl-listicle__row img { width: 100%; max-width: 160px; aspect-ratio: 1; object-fit: contain; background: var(--sgl-paper-dim); }
.sgl-listicle__row p { max-width: 62ch; }

/* ---------- back to top ---------- */
.sgl-top { position: fixed; right: 18px; bottom: 18px; width: 52px; height: 52px; border-radius: 50%; background: var(--sgl-ink); color: var(--sgl-paper); border: none; cursor: pointer; z-index: 90; }
.sgl-top[hidden] { display: none; }
.sgl-top { display: grid; place-items: center; }
.sgl-top:hover { transform: translateY(-3px); }

/* ---------- 404 ---------- */
.sgl-404 { padding-block: clamp(60px, 12vw, 120px); text-align: center; }
.sgl-404 h1 { font-size: clamp(48px, 12vw, 96px); margin-bottom: 8px; }

/* ---------- scroll reveal (respects reduced motion) ---------- */
/* Content is visible by default so it never depends on JS running (crawlers,
   AdsBot, no-JS clients). JS adds .reveal-armed right before observing, then
   swaps to .is-in once the element actually scrolls into view. */
[data-sgl-reveal] { transition: opacity .5s ease, transform .5s ease; }
[data-sgl-reveal].reveal-armed { opacity: 0; transform: translateY(18px); }
[data-sgl-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-sgl-reveal].reveal-armed { opacity: 1; transform: none; transition: none; }
}
