/* Cogsprite: night-sky bands (hero, footer, mascot cards) around a calm content page.
   Colours come from the brand board; every colour is a token so dark mode only swaps tokens. */
:root {
  --night: #0B0E15;
  --night-2: #141A26;
  --night-line: rgba(255, 255, 255, .09);
  --night-fg: #F3EEE4;
  --night-muted: #A3ABB9;
  --amber: #F4A940;
  --amber-hi: #FFD58A;
  --amber-ink: #1B1306;
  --steel: #3E5C7E;

  --bg: #F4EFE6;
  --bg-2: #EBE4D7;
  --surface: #FFFBF4;
  --line: #DDD3C2;
  --fg: #141821;
  --muted: #5B6270;
  --accent-text: #93560A;

  --display: "Fredoka", "Nunito", ui-rounded, system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --wrap: 1140px;
  --shadow: 0 22px 48px -26px rgba(20, 24, 33, .45);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E121B;
    --bg-2: #131927;
    --surface: #171E2C;
    --line: #273248;
    --fg: #F1ECE2;
    --muted: #A5ADBB;
    --accent-text: #F4B85E;
    --shadow: 0 22px 48px -26px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--accent-text); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.eyebrow { font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.night .eyebrow { color: var(--amber); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--amber); color: var(--amber-ink); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { left: 12px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 14, 21, .9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--night-line);
  color: var(--night-fg);
}
.head-row { display: flex; align-items: center; gap: 12px 24px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--night-fg); text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.wordmark { font: 600 25px/1 var(--display); letter-spacing: -0.02em; }
.nav { display: flex; gap: 4px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav a {
  display: block; padding: 9px 15px; border-radius: 999px;
  color: var(--night-muted); text-decoration: none; font-weight: 600; font-size: 15px;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--night-fg); background: rgba(255, 255, 255, .07); }
.nav a[aria-current="page"] { color: var(--night-fg); background: rgba(244, 169, 64, .16); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 16px/1 var(--body); text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-amber { background: var(--amber); color: var(--amber-ink); box-shadow: 0 8px 26px -10px rgba(244, 169, 64, .8); }
.btn-amber:hover { transform: translateY(-1px); box-shadow: 0 12px 32px -10px rgba(244, 169, 64, .95); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { background: rgba(127, 127, 127, .12); }
.btn-play { background: #000; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.btn-play:hover { background: #1a1a1a; }
.btn-play svg { width: 20px; height: 22px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- night bands ---------- */
.night { background: var(--night); color: var(--night-fg); position: relative; overflow: hidden; }
.night .muted { color: var(--night-muted); }
.night a:not(.btn) { color: var(--amber-hi); }

.hero {
  background: var(--night) url("/assets/img/sky-hero.webp") 70% 100% / cover no-repeat;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 24px; padding-block: 72px 96px; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 { font-size: clamp(46px, 7.4vw, 88px); }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lead { font-size: 20px; color: var(--night-muted); max-width: 30em; }
.mascot-float { justify-self: center; width: min(100%, 470px); animation: bob 6s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(2deg); } }

.page-band { background: var(--night) url("/assets/img/sky-stars.webp") 80% 70% / cover no-repeat; }
.page-band .wrap { padding-block: 64px 56px; display: grid; gap: 14px; }
.page-band h1 { font-size: clamp(38px, 5.6vw, 62px); }
.page-band p { max-width: 36em; font-size: 19px; color: var(--night-muted); }

/* ---------- sections ---------- */
.section { padding-block: 88px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 46px); margin-top: 10px; }
.section-alt { background: var(--bg-2); }
.section.flush-bottom { padding-bottom: 0; }
.section.flush-top { padding-top: 0; }

/* game cards (home) */
.games-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.game-card {
  display: grid; grid-template-rows: auto 1fr; overflow: hidden; text-decoration: none; color: var(--fg);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .2s, box-shadow .2s;
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.game-card .cover { aspect-ratio: 1024 / 500; background: var(--night); }
.game-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.game-card .body { padding: 24px 26px 28px; display: grid; gap: 14px; align-content: start; }
.game-id { display: flex; align-items: center; gap: 16px; }
.game-id img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .45); flex: none; }
.game-id h3 { font-size: 25px; }
.game-id .muted { font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13px; font-weight: 700; padding: 6px 11px; border-radius: 999px; background: var(--bg-2); color: var(--muted); border: 1px solid var(--line); }
.chip-status { background: rgba(244, 169, 64, .16); color: var(--accent-text); border-color: rgba(244, 169, 64, .45); }
.chip-status::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--amber); vertical-align: 1px; }
.night .chip-status { color: var(--amber-hi); }

/* promises */
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promise { padding: 28px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.promise svg { width: 34px; height: 34px; color: var(--accent-text); }
.promise h3 { font-size: 21px; }

/* mascot feature card (services, contact) */
.feature-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px 40px; border-radius: var(--r-lg); padding: 44px 48px; }
.feature-card .copy { display: grid; gap: 16px; max-width: 34em; min-width: 0; }
.feature-card h1, .feature-card h2 { font-size: clamp(30px, 3.8vw, 42px); }
.feature-card .art { width: 260px; }
.night-card { background: var(--night) url("/assets/img/sky-stars.webp") 90% 60% / cover no-repeat; color: var(--night-fg); }
.night-card .muted { color: var(--night-muted); }

/* email copy row */
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 10px 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid var(--night-line); max-width: 30rem; }
.email-row a { flex: 1; min-width: 0; font-weight: 700; font-size: 18px; color: var(--night-fg); text-decoration: none; overflow-wrap: anywhere; }
.email-row a:hover { color: var(--amber-hi); }
.copy-btn { min-height: 40px; padding: 8px 16px; font-size: 14px; }

/* ---------- game page ---------- */
.game-hero { background: var(--night) url("/assets/img/sky-stars.webp") 80% 70% / cover no-repeat; }
.game-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 32px 48px; padding-block: 52px 64px; }
.game-hero .inner { display: grid; gap: 20px; min-width: 0; }
.key-art { margin: 0; min-width: 0; }
.key-art img { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--night-line); box-shadow: 0 34px 60px -30px rgba(0, 0, 0, .85); }
.game-hero .game-id img { width: 104px; height: 104px; border-radius: 26px; }
.game-hero h1 { font-size: clamp(34px, 4.6vw, 54px); }
.game-hero .tagline { font-size: 20px; color: var(--night-muted); }
.crumbs { font-size: 15px; color: var(--night-muted); }
.crumbs a { color: var(--night-fg); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.note-testing { font-size: 15px; color: var(--night-muted); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.fact { padding: 18px 22px; display: grid; gap: 4px; border-left: 1px solid var(--line); min-width: 0; }
.fact:first-child { border-left: 0; }
.fact span { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fact strong { font-size: 17px; font-weight: 700; }

.shots { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; margin-top: 8px; }
.shots figure { margin: 0; flex: 0 0 auto; width: min(250px, 64vw); scroll-snap-align: start; }
.shots img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 18px 36px -22px rgba(0, 0, 0, .55); }
.shots figcaption { font-size: 15px; color: var(--muted); margin-top: 10px; }

.detail-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 48px; align-items: start; }
.detail-grid > * { min-width: 0; }
.prose { display: grid; gap: 16px; max-width: 66ch; }
.prose h2 { font-size: 32px; }
.prose h3 { font-size: 21px; margin-top: 10px; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.feature-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.feature-list li::before { content: ""; width: 14px; height: 14px; margin-top: 7px; background: var(--amber); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.side { display: grid; gap: 20px; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; display: grid; gap: 12px; }
.side-card h3 { font-size: 20px; }
.side-links { list-style: none; margin: 0; padding: 0; display: grid; }
.side-links a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--fg); text-decoration: none; font-weight: 600; }
.side-links li:first-child a { border-top: 0; }
.side-links a:hover { color: var(--accent-text); }

/* ---------- support ---------- */
.contact-card { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; border-radius: var(--r-lg); padding: 44px 48px 0; }
.contact-card .copy { display: grid; gap: 18px; padding-bottom: 44px; min-width: 0; }
.contact-card h1 { font-size: clamp(38px, 5vw, 56px); }
.contact-card .art { width: 240px; margin-bottom: -6px; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 600 24px/1 var(--display); color: var(--accent-text); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding-bottom: 18px; color: var(--muted); display: grid; gap: 10px; }

/* ---------- policy documents ---------- */
.doc { max-width: 46rem; margin: 0 auto; padding: 48px 20px 88px; }
.doc h1 { font-size: clamp(34px, 5vw, 46px); margin-bottom: 12px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc li { margin: 6px 0; }
.doc .meta { color: var(--muted); font-size: 15px; }
.doc code { background: var(--bg-2); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.doc .callout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 22px; margin: 20px 0; }
.doc .callout ul { margin: 0; }
.doc .callout h2 { margin-top: 0; }
.policy-list { display: grid; gap: 14px; margin: 24px 0 8px; padding: 0; list-style: none; }
.policy-list a { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--fg); text-decoration: none; font-weight: 700; }
.policy-list a:hover { border-color: var(--amber); }
.policy-list img { width: 48px; height: 48px; border-radius: 12px; }
.policy-list span { display: block; font-weight: 400; font-size: 15px; color: var(--muted); }

/* ---------- 404 ---------- */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.lost .wrap { display: grid; justify-items: center; gap: 18px; padding-block: 56px 72px; }
.lost img { width: 240px; }
.lost h1 { font-size: clamp(34px, 5vw, 52px); }
.lost .btn-row { justify-content: center; }

/* ---------- footer ---------- */
.site-foot { padding-block: 60px 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h2 { margin: 0 0 12px; font: 700 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--night-muted); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a:not(.brand) { color: var(--night-fg); text-decoration: none; opacity: .85; }
.site-foot a:not(.brand):hover { opacity: 1; color: var(--amber); }
.foot-about { display: grid; gap: 14px; align-content: start; }
.foot-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--night-line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--night-muted); }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .detail-grid, .game-hero-grid { grid-template-columns: 1fr; }
  .hero-grid { padding-block: 40px 72px; }
  .hero { background-image: linear-gradient(180deg, rgba(11, 14, 21, .1) 30%, rgba(11, 14, 21, .78) 75%), url("/assets/img/sky-hero.webp"); }
  .mascot-float { width: min(70%, 320px); order: -1; }
  .games-grid { grid-template-columns: 1fr; }
  .promises { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .feature-card, .contact-card { grid-template-columns: 1fr; padding: 32px 28px 0; }
  .feature-card .copy, .contact-card .copy { padding-bottom: 0; }
  .feature-card .art, .contact-card .art { width: 200px; justify-self: center; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav { order: 3; width: 100%; margin: 0 0 8px; overflow-x: auto; }
  .nav a { padding: 8px 12px; }
  .section { padding-block: 64px; }
  .hero .lead { font-size: 18px; }
  .game-card .body { padding: 20px; }
  .feature-card, .contact-card { padding: 28px 20px 0; }
  .doc { padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
