/* Skiddy Zoom Zoom's pages: the game's own look (asphalt, hazard yellow, road-sign plates).
   Colours are the game's own palette. Fonts are the game's, both SIL OFL (licences in fonts/). */
@font-face { font-family: "Bungee"; src: url("/skiddy-zoom-zoom/fonts/Bungee-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/skiddy-zoom-zoom/fonts/BarlowCondensed-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/skiddy-zoom-zoom/fonts/BarlowCondensed-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --asphalt: #14161a;
  --asphalt-2: #1d2026;
  --yellow: #ffc400;
  --paint: #f4f4ef;
  --muted: #b9bcc2;
  --red: #e5232b;
  --blue: #1f6bff;
  --rule: #3a3e46;
  font-family: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  font-weight: 600;
  color: var(--paint);
  background: var(--asphalt);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--asphalt); font-size: 1.15rem; line-height: 1.5; }
a { color: var(--yellow); text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
::selection { background: var(--yellow); color: var(--asphalt); }

.hazard { height: 14px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--asphalt) 14px 28px); }
.page { max-width: 46rem; margin: 0 auto; padding: 0 16px; }

.top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; }
.top a { color: var(--muted); text-decoration: none; }
.top a:hover { color: var(--paint); }
.top nav { display: flex; gap: 1.1rem; }

h1, h2, .sign { font-family: "Bungee", Impact, sans-serif; font-weight: 400; letter-spacing: .01em; }
h1 { font-size: clamp(2.6rem, 11vw, 4.5rem); line-height: 1; margin: 0; color: var(--yellow); }
h2 { font-size: 1.4rem; line-height: 1.15; margin: 2.4rem 0 .8rem; color: var(--paint); }
p, li { color: var(--paint); }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }

/* The game page */
.hero { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; padding: 2rem 0 1.5rem; }
.icon { width: 132px; height: 132px; border-radius: 30px; border: 4px solid var(--paint); box-shadow: 6px 6px 0 #000; display: block; }
.tagline { font-size: 1.45rem; line-height: 1.25; margin: .7rem 0 0; }
.plate { background: var(--paint); color: var(--asphalt); border: 4px solid var(--asphalt); outline: 3px solid var(--paint); box-shadow: 8px 8px 0 #000; padding: 1.1rem 1.25rem; margin: 1.5rem 0 2rem; }
.plate p, .plate li { color: var(--asphalt); }
.plate .sign { font-size: 1.05rem; color: var(--red); margin-bottom: .4rem; }
.store { display: inline-block; font-family: "Bungee", Impact, sans-serif; background: var(--yellow); color: var(--asphalt); text-decoration: none; padding: .8rem 1.1rem; border: 3px solid #000; box-shadow: 5px 5px 0 #000; }
.store.soon { background: var(--asphalt-2); color: var(--muted); border-color: var(--rule); box-shadow: none; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.facts li { padding-left: 1.6rem; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .55em; width: .8rem; height: .8rem; background: var(--yellow); transform: rotate(45deg); }
.escalation { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; margin: .4rem 0 1rem; }
.escalation li { font-family: "Bungee", Impact, sans-serif; font-size: .95rem; padding: .35rem .6rem; border: 3px solid var(--paint); }
.escalation li:nth-child(odd) { border-color: var(--red); }
.escalation li:nth-child(even) { border-color: var(--blue); }

/* Prose pages: privacy, support */
.doc { padding: 1.5rem 0 1rem; }
.doc h1 { font-size: clamp(2rem, 8vw, 3rem); }
.doc .dated { color: var(--muted); margin-top: .6rem; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: .45rem; }
.qa h2 { font-size: 1.15rem; margin-top: 1.8rem; }

footer { border-top: 2px solid var(--rule); margin-top: 3rem; padding: 1.2rem 0 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; font-size: .95rem; color: var(--muted); }
footer a { color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }

/* The gameplay clip, framed like the phone it plays on. The poster stands in
   for anyone who asked for less motion. */
.screen { margin: .5rem auto 2.2rem; width: min(280px, 72vw); }
.screen video, .screen img { display: block; width: 100%; height: auto; aspect-ratio: 480 / 980; object-fit: cover; background: #000; border: 6px solid var(--paint); border-radius: 26px; box-shadow: 8px 8px 0 #000; }
.screen img { display: none; }
.screen figcaption { margin-top: .9rem; text-align: center; font-size: .95rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .screen video { display: none; }
  .screen img { display: block; }
}

@media (max-width: 520px) {
  .hero { grid-template-columns: 1fr; gap: 1rem; }
  .icon { width: 104px; height: 104px; border-radius: 24px; }
}
