/* Little Games: a dark ink-blue shell so every game's own colours stand out. Mobile first, one column, then a grid. */
:root {
  --bg: #0f1624; --surface: #172134; --surface-2: #1e2a42; --line: rgba(242,239,230,.12);
  --text: #f2efe6; --muted: #a9b4c8; --gold: #f0c867;
  --f: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--f); min-height: 100vh;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 14px 0 6px; padding-top: max(14px, env(safe-area-inset-top, 0px)); }
.logo { white-space: nowrap; font-weight: 800; font-size: 22px; letter-spacing: -.01em; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.logo img { width: 52px; height: 52px; margin: -6px 0; }
.logo img.wm { width: auto; height: 50px; margin: 0; }
nav { display: flex; gap: 4px; flex: 1 1 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 2px 4px 6px; }
nav::-webkit-scrollbar { display: none; }
@media (min-width: 760px) { nav { flex: 0 1 auto; justify-content: flex-end; } }
nav a { white-space: nowrap; text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); }
nav a:hover, nav a:focus-visible { background: var(--surface); color: var(--text); }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1 { font-size: clamp(30px, 8vw, 52px); line-height: 1.04; letter-spacing: -.02em; margin: 8px 0 12px; text-wrap: balance; font-weight: 800; }
h2 { font-size: 22px; letter-spacing: -.01em; margin: 0; font-weight: 700; }
h3 { font-size: 17px; margin: 0 0 6px; }
.lead { color: var(--muted); font-size: 18px; max-width: 56ch; margin: 0 0 22px; }
.banner { display: grid; gap: 6px; padding: 18px; border-radius: 18px; text-decoration: none; margin: 8px 0 28px;
  background: linear-gradient(120deg, #23402f, #1a2c4d); border: 1px solid rgba(240,200,103,.35); }
.banner b { color: var(--gold); font-size: 20px; }
.banner span { color: var(--muted); }
.shelf { margin: 0 0 34px; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.shelf-head a { color: var(--muted); font-size: 14px; font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.tile { display: flex; flex-direction: column; min-width: 0; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .15s, border-color .15s; }
.tile:hover, .tile:focus-visible { transform: translateY(-3px); border-color: rgba(240,200,103,.5); }
.tile img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: var(--surface-2); }
.tile div { padding: 10px 12px 12px; }
.tile b { display: block; font-size: 16px; line-height: 1.2; }
.tile span { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.chip { display: inline-block; padding: 7px 13px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px; background: var(--surface); border: 1px solid var(--line); }
.crumbs { color: var(--muted); font-size: 14px; margin: 4px 0 6px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.stage { width: 100%; max-width: 980px; margin: 8px auto 0; height: min(calc(100dvh - 120px), 880px); min-height: 520px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #000; }
@supports not (height: 100dvh) { .stage { height: min(calc(100vh - 120px), 880px); } }
.stage iframe { display: block; width: 100%; height: 100%; border: 0; }
.bar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.bar a { font-weight: 700; }
.prose { max-width: 66ch; margin: 34px 0; }
.prose p { color: var(--muted); }
.prose ul { padding-left: 20px; color: var(--muted); }
.prose li { margin: 6px 0; }
.faq h3 { margin-top: 18px; } .faq p { margin: 0; }
footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 22px 0 32px; color: var(--muted); font-size: 14px; }
footer a { margin-right: 14px; }
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } }
