/* Shared look for the inner pages (privacy, about, contact, game pages). The home page keeps its own inline styles;
   the tokens, nav, buttons and footer here match it. */
@font-face { font-family: 'Fredoka'; src: url('fonts/fredoka-600-latin.woff2') format('woff2'); font-weight: 600; font-display: swap; }
:root {
  --bg: #160b30; --bg2: #21103f; --card: #2a1650; --line: #ffffff1a;
  --ink: #fff7ea; --muted: #cbbbe6;
  --pill: #ff3b5c; --cream: #fff1d6; --mint: #35e3a4; --gold: #ffd54a; --sky: #6fc3ff;
  --display: 'Lilita One', 'Trebuchet MS', system-ui, sans-serif;
  --body: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 600 17px/1.6 var(--body); overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--sky); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.display { font-family: var(--display); font-weight: 400; letter-spacing: .5px; line-height: 1.05; }

/* nav */
body > nav { position: sticky; top: 0; z-index: 20; background: #160b30e6; backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
body > nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 20px; white-space: nowrap; }
.brand-tile { width: 42px; height: 42px; flex: none; border-radius: 12px; background: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px #0005; }
.brand-tile img { width: 36px; height: 36px; }
.brand small { display: block; font: 600 11px/1 var(--body); color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }
.navlinks { display: flex; gap: 22px; }
.navlinks a { text-decoration: none; color: var(--muted); font-size: 15px; }
.navlinks a:hover, .navlinks a[aria-current] { color: var(--ink); }
@media (max-width: 640px) { .navlinks { gap: 14px; } .navlinks a { font-size: 14px; } .brand span:last-child { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; text-decoration: none; font: 400 20px/1 var(--display); letter-spacing: .5px; transition: transform .15s ease; border: 0; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-pill { background: var(--pill); color: #fff; box-shadow: 0 6px 0 #a3182f, 0 14px 30px #ff3b5c55; }
.btn-mint { background: var(--mint); color: #08321f; box-shadow: 0 6px 0 #17946a, 0 14px 30px #35e3a440; }
.btn-gold { background: var(--gold); color: #3a2400; box-shadow: 0 6px 0 #b8901a, 0 14px 30px #ffd54a40; }
.btn-lime { background: #8fd14f; color: #173008; box-shadow: 0 6px 0 #4f8a22, 0 14px 30px #8fd14f40; }
.btn-orange { background: #ff9b3d; color: #3a1700; box-shadow: 0 6px 0 #c2611a, 0 14px 30px #ff9b3d40; }
.btn-sky { background: var(--sky); color: #06243a; box-shadow: 0 6px 0 #2f7fb8, 0 14px 30px #6fc3ff40; }
.btn-sand { background: #e8b06a; color: #3a1f06; box-shadow: 0 6px 0 #a8692a, 0 14px 30px #e8b06a40; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px #ffffff40; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 8px; }

/* page header */
.page-head { padding: 56px 0 28px; background: radial-gradient(60% 90% at 85% 0%, var(--glow, #8f5cff33), transparent 70%); }
.kicker { display: inline-block; color: var(--gold); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.page-head h1 { font-size: clamp(38px, 6vw, 64px); margin: 8px 0 12px; }
.page-head .lead { color: var(--muted); font-size: 19px; max-width: 720px; margin: 0; }
.title-row { display: flex; align-items: center; gap: 18px; }
.title-row img { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 8px 22px #0007; flex: none; }

/* text pages */
.prose { padding-bottom: 64px; }
.prose > * { max-width: 760px; }   /* a readable column, lined up with the page heading */
.prose h2 { font: 400 28px/1.15 var(--display); margin: 40px 0 10px; letter-spacing: .5px; }
.prose h3 { font-size: 19px; margin: 24px 0 6px; }
.prose p, .prose li { color: #e9def8; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li b, .prose p b { color: var(--ink); }
.note { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; margin: 18px 0; }
.updated { color: var(--muted); font-size: 14px; }

/* game pages */
.game-page { --glow: #8f5cff33; }
.game-page.tts { --glow: #ffb02e33; } .game-page.gq { --glow: #8f5cff3a; } .game-page.hg { --glow: #4fc3ff33; } .game-page.pe { --glow: #7bd34a33; } .game-page.bc { --glow: #ffb02e2e; } .game-page.pa { --glow: #6fc3ff2e; } .game-page.cc { --glow: #ff9b3d33; } .game-page.tw { --glow: #ff5a5a2e; } .game-page.dd { --glow: #ffcf3a2e; } .game-page.sr { --glow: #e8e2d02e; } .game-page.ph { --glow: #d9a94a33; } .game-page.hh { --glow: #c98a5a2e; } .game-page.hx { --glow: #b8a46a33; }
.shots { display: flex; gap: 16px; overflow-x: auto; padding: 8px 2px 18px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; flex: none; width: 200px; scroll-snap-align: start; }
.shots.wide figure { width: min(520px, 86vw); }
.shots img { border-radius: 18px; border: 3px solid #ffffff1c; width: 100%; }
.shots figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; text-align: center; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 4px 52px; margin: 14px 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 36px; height: 36px; border-radius: 50%; background: var(--pill); color: #fff; display: grid; place-items: center; font: 400 19px/1 var(--display); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 22px 0; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; }
.facts b { display: block; font-family: var(--display); font-weight: 400; font-size: 18px; color: var(--gold); }
.facts span { color: var(--muted); font-size: 15px; }
.more-games { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 14px; }
.more-games a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.more-games img { width: 48px; height: 48px; border-radius: 12px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer .legal { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* guides: questions that open on tap, and a short "for parents" box */
.faq { margin: 14px 0; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; margin: 10px 0; }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-family: var(--display); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 14px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 14px; }
.toc a:hover { color: var(--ink); }

/* devlog and stories: lists of posts, and the line under a post's title */
.post-list { display: grid; gap: 14px; margin: 8px 0 64px; padding: 0; list-style: none; }
.post-list a { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.post-list a:hover { border-color: #ffffff40; }
.post-list img { width: 64px; height: 64px; border-radius: 14px; }
.post-list b { display: block; font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.15; letter-spacing: .3px; }
.post-list span { display: block; color: var(--muted); font-size: 15px; margin-top: 4px; }
.post-list time { color: var(--gold); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.post-meta { color: var(--muted); font-size: 15px; margin: 0; }
.post-meta time { color: var(--gold); }
.prose figure.wide { margin: 24px 0; max-width: 760px; }
.prose figure.wide img { border-radius: 18px; border: 3px solid #ffffff1c; width: 100%; }
.prose figure.wide figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }

.btn-olive { background: #b9a86a; color: #211c0a; box-shadow: 0 6px 0 #6f6334, 0 14px 30px #b9a86a40; }
