/* Soski Games site. Colours are ArrowSwitch's ArcadeTheme tokens; each game page sets --game
   and --ink from its game.json so the page takes on that game's colour. */
@font-face {
  font-family: "Lilita One";
  src: url("/static/fonts/LilitaOne-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #0e1827;
  --surface: #16233a;
  --raised: #1e2e48;
  --line: #2a3c5a;
  --text: #f2f7ff;
  --muted: #8fa6c0;
  --ink: #0a1422;
  --game: #9b7bff;
  --radius: 20px;
  --gutter: 16px;
  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--game); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 10;
  background: var(--text); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 22px/1 var(--display); letter-spacing: .3px; }
.mark { width: 22px; height: 22px; flex: none; }
.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px;
  padding: 10px 12px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface); }

/* Home hero */
.hero { padding: 72px 0 40px; }
.hero h1 { font: clamp(40px, 8vw, 72px)/1.02 var(--display); margin: 0 0 16px; letter-spacing: .5px; max-width: 12ch; }
.hero p { color: var(--muted); font-size: clamp(17px, 2.4vw, 20px); margin: 0; max-width: 34ch; }
.diamonds { display: flex; gap: 14px; margin-bottom: 28px; }
.diamonds span { width: 18px; height: 18px; transform: rotate(45deg); border-radius: 3px; }

/* Section headings */
.section { padding: 32px 0 72px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.section-head h2 { font: 28px/1.1 var(--display); margin: 0; }
.section-head .count { color: var(--muted); font-size: 15px; }

/* Game grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--game); }
.card-art { position: relative; aspect-ratio: 16 / 9; background: var(--game); display: grid; place-items: center; overflow: hidden; }
.card-art::before {
  content: ""; position: absolute; width: 62%; aspect-ratio: 1; transform: rotate(45deg);
  background: rgba(10, 20, 34, .16); border-radius: 18px;
}
.card-art img { position: relative; width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 8px 24px rgba(10, 20, 34, .35); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font: 26px/1.1 var(--display); margin: 0; }
.card-body p { margin: 0; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; }
.chip { font-size: 13px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }

/* Game page hero: flat game colour with dark ink, like the game's own screens */
.game-hero { background: var(--game); color: var(--ink); position: relative; overflow: hidden; }
.game-hero::before {
  content: ""; position: absolute; right: -8%; top: 50%; width: min(70vw, 560px); aspect-ratio: 1;
  transform: translateY(-50%) rotate(45deg); background: rgba(10, 20, 34, .12); border-radius: 48px;
}
.game-hero .wrap { position: relative; display: flex; gap: 28px; align-items: center; padding-top: 56px; padding-bottom: 56px; flex-wrap: wrap; }
.game-hero .wrap > div { flex: 1 1 260px; min-width: 0; }
.game-icon { width: 128px; height: 128px; border-radius: 30px; box-shadow: 0 12px 32px rgba(10, 20, 34, .35); flex: none; }
.game-hero h1 { font: clamp(40px, 7vw, 64px)/1 var(--display); margin: 0 0 8px; }
.game-hero .lede { font-size: clamp(18px, 2.4vw, 22px); font-weight: 600; margin: 0 0 20px; opacity: .85; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.badge img { height: 64px; width: auto; margin: -10px; }
.textlink { font-weight: 700; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; }
.bands { display: flex; height: 8px; }
.bands span { flex: 1; }

/* Screenshots */
.shots { display: flex; align-items: flex-start; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 16px; scrollbar-width: thin; }
.shots img, .shots video { flex: none; width: 216px; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 18px; scroll-snap-align: start; background: var(--surface); }

.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.prose p { margin: 0 0 16px; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.features li { display: flex; gap: 14px; align-items: baseline; }
.features li::before { content: ""; flex: none; width: 9px; height: 9px; background: var(--game); transform: rotate(45deg) translateY(-2px); border-radius: 2px; }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }

/* Policy pages */
.doc-head { padding-top: 40px; padding-bottom: 8px; }
.crumb { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--muted); font-weight: 600; min-height: 44px; }
.crumb img { width: 40px; height: 40px; border-radius: 10px; }
.doc { padding-bottom: 72px; }
.doc h1 { font: clamp(32px, 6vw, 44px)/1.1 var(--display); margin: 16px 0 8px; }
.doc h2 { font-size: 20px; margin: 40px 0 8px; }
.doc p, .doc li { color: #d7e1ee; }
.doc ul { padding-left: 22px; }
.doc a { color: var(--text); text-underline-offset: 3px; overflow-wrap: anywhere; }
.list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.list a { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.list img { width: 44px; height: 44px; border-radius: 12px; }

/* Footer */
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; padding-bottom: 40px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot a { text-underline-offset: 3px; }

.notfound { padding: 96px 0; text-align: center; }
.notfound h1 { font: 56px/1 var(--display); margin: 0 0 12px; }

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 48px 0 28px; }
  .game-hero .wrap { padding-top: 40px; padding-bottom: 40px; gap: 20px; }
  .game-icon { width: 96px; height: 96px; border-radius: 24px; }
  .shots img, .shots video { width: 176px; }
}
@media (max-width: 480px) {
  /* The logo already goes home, so the Games link gives way on narrow phones. */
  .nav a[href="/#games"] { display: none; }
  .nav a { padding: 10px; }
  .brand { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Grid columns may shrink below their content's min width, so long text wraps inside them. */
.split > * { min-width: 0; }
.prose h3 { font-size: 20px; margin: 28px 0 12px; }
.prose .features { margin-bottom: 16px; }
