/* GeoPlay public site: dark theme with blue accents (page #0e0e10, cards #18181b, text #f4f4f5, muted #a1a1aa, primary #2563eb). */
:root {
  --bg: #0e0e10;
  --panel: #18181b;
  --panel-2: #1f1f23;
  --line: #2a2a2f;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #60a5fa;
  --accent-strong: #2563eb;
  --radius: 18px;
  --display: "Outfit", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  /* Footer sticks to the bottom even when the page is short. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-attachment: fixed;
  background:
    var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ---------- header / footer ---------- */
/* A white frosted header over the page; a light, blue-tinted footer closes it off. */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(24, 24, 27, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid #2a2a2f;
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #f4f4f5; font: 800 20px var(--display); letter-spacing: -0.01em; }
.site-header .brand { color: #f4f4f5; }
.site-footer .brand { color: #f4f4f5; }
.brand:hover { text-decoration: none; }
.brand svg, .brand img { width: 34px; height: 34px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a { color: #a1a1aa; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; transition: background .15s, color .15s; }
.site-nav a:hover { color: #93c5fd; background: none; text-decoration: none; }
.site-nav a.active { color: #60a5fa; background: none; }
.btn-play {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #ffffff !important; font-weight: 700;
  padding: 10px 18px !important; border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.002);
  transition: transform .15s, box-shadow .2s, filter .2s;
}
/* Line icons from the games sprite (partials.gicon); they scale with the text around them. */
.ic { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic.heart { color: #60a5fa; fill: #3b82f6; }
.ic.crown { color: #ca8a04; }
.btn-play:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 5px 10px -5px rgba(59, 130, 246, 0.15), inset 0 0.5px 0 rgba(255, 255, 255, 0.001); text-decoration: none; }
.site-nav a, .btn-play { white-space: nowrap; }
/* Colour icons (public/fx): inline they sit on the text line; inside an icon box (.ico and friends) they fill ~60% of it. */
img.fx { display: inline-block; width: 1.25em; height: 1.25em; object-fit: contain; flex: none; vertical-align: -0.25em; }
:is(.ico, .big-ico, .access-ico, .learn-ico, .p-ico, .game-ico, .fg-ico, .art) > img.fx { width: 60%; height: 60%; vertical-align: 0; }
a:hover :is(.ico, .fg-ico, .game-ico) > img.fx { transform: scale(1.08); }
:is(.ico, .fg-ico, .game-ico) > img.fx { transition: transform .2s; }
.header-play { flex-shrink: 0; }
.header-play .short { display: none; }
/* Narrow screens: logo + Play on the first row, the links as a swipeable strip below. */
@media (max-width: 860px) {
  .site-header .wrap { flex-wrap: wrap; height: auto; padding-block: 10px 0; gap: 6px 12px; }
  .header-play { margin-left: auto; }
  .site-nav {
    order: 3; flex: none; width: calc(100% + 40px); margin: 0 -20px; padding: 2px 20px 8px;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { font-size: 14px; padding: 6px 12px; }
}
/* The link icons only show in the phone menu. */
.site-nav a .fx { display: none; }
.nav-toggle { display: none; }

/* Phones (with JavaScript): logo · Play · ☰ on one row; the links drop down as a card under the header. */
@media (max-width: 860px) {
  .js .site-header .wrap { flex-wrap: nowrap; height: 60px; padding-block: 0; gap: 10px; }
  .js .nav-toggle { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid #2f2f36; background: #1f1f23; color: #f4f4f5; cursor: pointer; transition: background .15s, border-color .15s; }
  .js .nav-toggle:hover, .js .nav-open .nav-toggle { background: #26262b; border-color: #3b82f6; }
  .js .nav-toggle .bars { position: relative; width: 18px; height: 14px; }
  .js .nav-toggle .bars i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .2s, top .25s; }
  .js .nav-toggle .bars i:nth-child(1) { top: 0; }
  .js .nav-toggle .bars i:nth-child(2) { top: 6px; }
  .js .nav-toggle .bars i:nth-child(3) { top: 12px; }
  /* Open: the bars turn into an ×. */
  .js .nav-open .nav-toggle .bars i:nth-child(1) { top: 6px; transform: rotate(45deg); }
  .js .nav-open .nav-toggle .bars i:nth-child(2) { opacity: 0; }
  .js .nav-open .nav-toggle .bars i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

  .js .site-nav {
    position: absolute; top: calc(100% + 8px); left: 12px; right: 12px; order: 0; width: auto; margin: 0; padding: 8px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px; overflow: visible; -webkit-mask-image: none; mask-image: none;
    background: #18181b; border: 1px solid #2f2f36; border-radius: 18px; box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .7);
    opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top right; transition: opacity .18s, transform .18s, visibility 0s .18s;
  }
  .js .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
  .js .site-nav a { display: flex; align-items: center; gap: 10px; padding: 12px; font-size: 15px; color: #e4e4e7; border-radius: 12px; background: #1f1f23; border: 1px solid transparent; }
  .js .site-nav a:hover { background: #26262b; color: #ffffff; }
  .js .site-nav a.active { color: #93c5fd; border-color: #1e3a75; background: #0c1630; }
  .js .site-nav a .fx { display: inline-block; width: 22px; height: 22px; vertical-align: 0; }
  /* Five links: the last one (Leaderboard) takes the full row. */
  .js .site-nav a:last-child { grid-column: 1 / -1; }
}
@media (max-width: 360px) {
  .js .site-nav { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .brand { font-size: 18px; gap: 8px; }
  .brand svg, .brand img { width: 30px; height: 30px; }
  .header-play { font-size: 14px; padding: 8px 14px !important; }
  .header-play .long { display: none; }
  .header-play .short { display: inline; }
}
/* Nothing on the page may push it sideways on phones. */
body { overflow-x: clip; } /* clip, not hidden: hidden would break the sticky header */
.hero h1, .hiw h1, .ans h1 { overflow-wrap: anywhere; }

.site-footer {
  position: relative;
  flex-shrink: 0;
  margin-top: 72px;
  overflow: hidden;
  /* Light and calm: a very faint blue tint over a soft dot grid. */
  background: radial-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1.4px) 0 0 / 22px 22px,
    linear-gradient(180deg, #19191c, #1f1f23);
  border-top: 1px solid #2a2a2f;
  color: #a1a1aa;
  font-size: 14px;
}
/* Thin glowing line along the top edge instead of a hard border. */
.site-footer::before {
  content: '';
  position: absolute; inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, #93c5fd 35%, #2563eb 65%, transparent);
  opacity: 0.6;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 2fr 0.9fr;
  gap: 40px;
  padding: 52px 20px 40px;
}
.footer-brand p { margin: 14px 0 20px; max-width: 300px; line-height: 1.65; color: #a1a1aa; }
.footer-brand .btn-play { font-size: 14px; }
.footer-col h3 {
  margin: 6px 0 16px;
  color: #60a5fa;
  font: 700 12px var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col--games ul { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.footer-col a { color: #a1a1aa; transition: color .15s, transform .15s; display: inline-block; }
.footer-col a:hover { color: #93c5fd; transform: translateX(3px); text-decoration: none; }
.footer-col a.footer-all { color: #60a5fa; font-weight: 600; }
/* Games list: each game with the same icon it uses on its card, in a small tile of its accent colour. */
.footer-col a.fg { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.fg-ico { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; line-height: 1;
  color: color-mix(in srgb, var(--accent-c, #60a5fa) 75%, #fff); background: color-mix(in srgb, var(--accent-c, #60a5fa) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-c, #60a5fa) 38%, transparent); }
.fg-ico .ic { width: 14px; height: 14px; }
.fg-ico img:not(.fx) { width: 16px; height: 11px; border-radius: 2px; object-fit: cover; }
.footer-col--games ul { gap: 9px; }
/* Phones: two even columns whose names wrap onto a second line instead of running off the screen. */
@media (max-width: 480px) {
  .footer-col--games ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; gap: 12px 12px; }
  .footer-col a.fg { display: flex; align-items: flex-start; gap: 8px; white-space: normal; line-height: 1.3; font-size: 14px; }
  .footer-col a.fg .fg-ico { margin-top: -3px; }
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 20px 20px 28px;
  border-top: 1px solid #2a2a2f;
  color: #8e8e96;
  font-size: 13px;
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 24px; padding-top: 40px; }
  .footer-brand, .footer-col--games { grid-column: 1 / -1; }
  .footer-col--games { order: 1; } /* Play and Learn side by side, the long Games list below them */
}

/* ---------- blog index ---------- */
.hero { padding: 56px 0 28px; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.hero h1 { font: 800 clamp(34px, 6vw, 54px)/1.08 var(--display); letter-spacing: -0.02em; margin: 10px 0 12px; }
.hero p { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 8px; }
.chip { padding: 7px 14px; border-radius: 999px; background: rgba(244, 244, 245, 0.06); color: var(--text); font-size: 14px; font-weight: 600; }
.chip:hover { background: rgba(244, 244, 245, 0.11); text-decoration: none; }
.chip.active { background: var(--accent-strong); color: #ffffff; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 22px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); transition: transform 0.18s, border-color 0.18s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(59, 130, 246, 0.225); text-decoration: none; }
.card .thumb { aspect-ratio: 1200 / 630; background: var(--panel-2) center/cover no-repeat; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .thumb.empty { display: grid; place-items: center; font-size: 42px; background: linear-gradient(135deg, #0c1630, #0c1630); }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h2 { font: 700 20px/1.3 var(--display); margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.meta { color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.meta .cat { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; }
.card .meta { margin-top: auto; }

.card.featured { grid-column: 1 / -1; flex-direction: row; }
.card.featured .thumb { flex: 1.3; aspect-ratio: auto; min-height: 320px; }
.card.featured .body { flex: 1; padding: 30px; justify-content: center; }
.card.featured h2 { font-size: clamp(24px, 3vw, 34px); }
.card.featured p { font-size: 17px; }
@media (max-width: 760px) {
  .card.featured { flex-direction: column; }
  .card.featured .thumb { min-height: 0; aspect-ratio: 1200 / 630; }
  .card.featured .body { padding: 20px; }
}

.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius); margin-top: 26px; }

.pager { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 40px; }
.pager a, .pager span { padding: 9px 16px; border-radius: 999px; background: rgba(244, 244, 245, 0.06); color: var(--text); font-weight: 600; font-size: 14px; }
.pager span.current { background: transparent; color: var(--muted); }
.pager .disabled { opacity: 0.4; }

/* ---------- article ---------- */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 28px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.article-head { padding: 18px 0 8px; }
.article-head h1 { font: 800 clamp(30px, 5vw, 48px)/1.12 var(--display); letter-spacing: -0.02em; margin: 10px 0 14px; }
.article-head .lead { font-size: 19px; color: #bcbcc4; margin: 0 0 18px; }
.cover { margin: 22px 0 6px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1200 / 630; background: var(--panel-2); }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.toc { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: 26px 0; }
.toc strong { display: block; font-family: var(--display); margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 4px 0; }
.toc a { color: var(--text); }

.prose { font-size: 18px; line-height: 1.8; color: #d4d4d8; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0 0 1.1em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--display); color: #f4f4f5; line-height: 1.25; scroll-margin-top: 84px; }
.prose h2 { font-size: 1.6em; margin: 1.8em 0 0.5em; }
.prose h3 { font-size: 1.3em; margin: 1.5em 0 0.4em; }
.prose h4 { font-size: 1.1em; margin: 1.3em 0 0.3em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong, .prose b { color: #f4f4f5; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.prose li { margin: 0.35em 0; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); color: #d4d4d8; font-style: italic; }
.prose pre, .prose .ql-code-block-container { background: #19191c; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; overflow-x: auto; font: 14.5px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre; }
.prose code { background: rgba(244, 244, 245, 0.08); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }
.prose pre code { background: none; padding: 0; }
.prose img { border-radius: 12px; display: block; margin: 1.6em auto; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; margin: 1.6em 0; display: block; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-justify { text-align: justify; }
.prose .ql-indent-1 { padding-left: 2em; }
.prose .ql-indent-2 { padding-left: 4em; }
.prose .ql-indent-3 { padding-left: 6em; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 36px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share span { color: var(--muted); font-weight: 600; margin-right: 4px; }
.share a, .share button {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  background: rgba(244, 244, 245, 0.06); color: var(--text); font: 600 14px var(--sans); border: 0; cursor: pointer;
}
.share a:hover, .share button:hover { background: rgba(244, 244, 245, 0.12); text-decoration: none; }

.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  margin: 40px 0; padding: 28px 30px; border-radius: var(--radius);
  /* Light blue card with a thin border, in step with the footer. */
  background: #1a1a1d;
  border: 1px solid #112145;
  color: #f4f4f5;
  box-shadow: none;
}
.cta h2 { font: 800 24px/1.2 var(--display); margin: 0 0 4px; color: #f4f4f5; }
.cta p { margin: 0; color: #a1a1aa; }

.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 30px 0; }
.prev-next a { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; color: var(--text); }
.prev-next a:hover { border-color: rgba(59, 130, 246, 0.225); text-decoration: none; }
.prev-next small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.prev-next .next { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .prev-next { grid-template-columns: 1fr; } .prev-next .next { grid-column: 1; } }

.section-title { font: 800 26px var(--display); margin: 56px 0 4px; }

/* Line icons from /games-assets/icons.svg (partials.gicon), on any page. */
.ic { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* FAQs, the same on every page: a panel per question with + / – on the right. Markup:
   <div class="faq"><details><summary>Question</summary><p>Answer</p></details>…</div> */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 700; color: #f4f4f5; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 14px; color: #a1a1aa; line-height: 1.65; }
.faq .credits { margin: 0 0 14px; font-size: 13px; line-height: 1.6; color: var(--muted); max-height: 360px; overflow-y: auto; }
