/* The search pages (src/seo/pages.ts): /countries, /country/<name>, /games, /games/<name>. Plain pages that work with no
   script, in the app's Toon colours (src/tokens.css), Nunito for text and Lilita One only for the wordmark. */
@font-face { font-family: "Nunito"; font-weight: 200 1000; font-display: swap; src: url("/fonts/nunito-latin-wght-normal.woff2") format("woff2-variations"); 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; }
@font-face { font-family: "Nunito"; font-weight: 200 1000; font-display: swap; src: url("/fonts/nunito-latin-ext-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lilita One"; font-weight: 400; font-display: swap; src: url("/fonts/lilita-one-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF; }

:root {
  color-scheme: light dark;
  --sky: #d2ecea; --bg: #fbeed3; --card: #fffaf0; --card2: #f7e3b8; --ink: #26214a; --ink2: #57507a; --edge: #26214a;
  --hair: rgba(38, 33, 74, .14); --tint: rgba(38, 33, 74, .06); --go: #ffb81f; --brand: #c2452a; --sea: #1fa8a0;
  --soft: 0 1px 2px rgba(38, 33, 74, .06), 0 10px 28px -8px rgba(38, 33, 74, .16);
}
@media (prefers-color-scheme: dark) {
  :root { --sky: #1d2357; --bg: #121638; --card: #232a63; --card2: #2e3678; --ink: #fff4dd; --ink2: #cfc8ee; --edge: #0c0f2b;
    --hair: rgba(255, 244, 221, .14); --tint: rgba(255, 244, 221, .07); --brand: #ff8a6c;
    --soft: 0 1px 2px rgba(0, 0, 0, .2), 0 12px 30px -10px rgba(0, 0, 0, .5); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: linear-gradient(var(--sky), var(--bg) 420px) var(--bg); color: var(--ink);
  font: 600 17px/1.55 "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 10px; }
img { display: block; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 920px; margin: 0 auto; padding: 14px 16px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font: 400 24px/1 "Lilita One", "Nunito", sans-serif; color: var(--brand); }
.open { padding: 8px 16px; border: 2px solid var(--edge); border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 800; font-size: 15px;
  text-decoration: none; white-space: nowrap; }
.open:hover { background: var(--card2); }

.crumbs { max-width: 920px; margin: 0 auto; padding: 0 16px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink2); }
.crumbs li + li::before { content: "›"; margin-right: 4px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

main { display: grid; gap: 22px; max-width: 920px; margin: 0 auto; padding: 12px 16px 40px; }
article { display: grid; gap: 22px; }
h1 { margin: 0; font-size: clamp(30px, 7vw, 44px); font-weight: 900; line-height: 1.1; letter-spacing: -.01em; }
h2 { margin: 0 0 10px; font-size: 20px; font-weight: 900; line-height: 1.25; }
p { margin: 0; }

.card { padding: 18px; border-radius: 22px; background: var(--card); box-shadow: var(--soft); }
.card > p + p, .card > p + .tags, .card > h2 + p { margin-top: 6px; }

.hero { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.hero.plain { grid-template-columns: 1fr; }
.hero-text { display: grid; gap: 6px; min-width: 0; }
.flag { width: 160px; height: 120px; object-fit: cover; border: 2px solid var(--edge); border-radius: 12px; background: #fff; }
.big-art { display: grid; place-items: center; width: 96px; height: 96px; border: 2px solid var(--edge); border-radius: 26px; background: var(--card2); font-size: 52px; line-height: 1; }
.official { color: var(--ink2); font-weight: 700; }
.lede { color: var(--ink2); font-size: 18px; }
@media (max-width: 560px) {
  .hero { grid-template-columns: 1fr; }
  .flag { width: 120px; height: 90px; }
}

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); grid-auto-flow: dense; gap: 8px; margin: 0; }
.facts div { padding: 10px 12px; border-radius: 14px; background: var(--tint); min-width: 0; }
.facts .wide { grid-column: 1 / -1; }
.facts dt { font-size: 13px; font-weight: 800; color: var(--ink2); text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 2px 0 0; font-weight: 800; overflow-wrap: anywhere; }
.note { margin-top: 10px; color: var(--ink2); font-size: 15px; }

.three { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: f; }
.three li { position: relative; padding-left: 44px; counter-increment: f; min-height: 32px; }
.three li::before { content: counter(f); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px;
  border: 2px solid var(--edge); border-radius: 50%; background: var(--go); color: #26214a; font-weight: 900; font-size: 15px; }

.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags li { padding: 6px 12px; border-radius: 999px; background: var(--tint); font-weight: 800; }
.say small { font-weight: 700; color: var(--ink2); margin-right: 4px; }

.cta { display: grid; gap: 6px; justify-items: start; background: var(--card2); }
.cta p { color: var(--ink2); }
.go { display: inline-block; margin-top: 8px; padding: 13px 26px; border: 2px solid #26214a; border-radius: 16px; background: var(--go); color: #26214a;
  font-weight: 900; font-size: 18px; text-decoration: none; box-shadow: 0 3px 0 #26214a; }
.go:active { transform: translateY(3px); box-shadow: none; }

.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: var(--card); box-shadow: var(--soft);
  text-decoration: none; font-weight: 800; min-width: 0; }
.chip span { overflow-wrap: anywhere; }
.chip:hover { background: var(--card2); }
.mini { flex: none; width: 32px; height: 24px; object-fit: cover; border: 1.5px solid var(--edge); border-radius: 5px; background: #fff; }

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.game { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; height: 100%;
  padding: 12px; border-radius: 18px; background: var(--card); box-shadow: var(--soft); text-decoration: none; }
.game:hover { background: var(--card2); }
.game-art { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--tint); font-size: 26px; line-height: 1; }
.game b { font-weight: 900; }
.game span:last-child { color: var(--ink2); font-size: 14px; line-height: 1.35; }
.also { text-align: center; color: var(--ink2); }

.foot { max-width: 920px; margin: 0 auto; padding: 20px 16px 36px; border-top: 1px solid var(--hair); text-align: center; color: var(--ink2); font-size: 15px; }
.foot-line { font-weight: 800; }
.foot-links { margin-top: 4px; }
