/* Night arcade, same tokens as the app (.superdesign/design-system.md). Light and dark follow the system. */
@font-face { font-family: "Rubik"; src: url("fonts/rubik.woff2") format("woff2"), url("fonts/rubik.ttf") format("truetype"); font-weight: 300 900; font-display: swap; }

:root {
  --bg: #F5F3FF; --card: #E9E5FF; --line: #D9D3FA; --text: #14122B; --muted: #5A5480;
  --accent: #5B3DF5; --lime: #C6F432;
  --cyan: #3DDBD9; --pink: #FF6BB5; --yellow: #FFD23F;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14122B; --card: #221F45; --line: #34306A; --text: #F4F1FF; --muted: #A9A3CC; --accent: #C6F432; }
}

:root { color-scheme: light dark; }
* { box-sizing: border-box; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 10; padding: 12px 16px; border-radius: 12px; background: var(--text); color: var(--bg); font-weight: 700; text-decoration: none; }
.skip:focus { top: 16px; }
h1, h2 { text-wrap: balance; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
main { padding: 16px 0 64px; }

a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 12px; }

/* Header: tile logo + language switch */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.logo { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 22px; }
.tiles { display: inline-flex; gap: 4px; }
.tiles span { width: 23px; height: 28px; display: grid; place-items: center; border-radius: 6px; color: #14122B; font-size: 14px; font-weight: 800; }
.tiles span:nth-child(1) { background: var(--cyan); }
.tiles span:nth-child(2) { background: var(--pink); transform: translateY(-3px) rotate(-12deg); } /* turned like the app icon's tile */
.tiles span:nth-child(3) { background: var(--yellow); }
.tiles span:nth-child(4) { background: var(--lime); }
/* Logo intro, as in the app: tiles pop in one by one, the O turns, "Scoot" slides in. */
@media (prefers-reduced-motion: no-preference) {
  .tiles span { animation: tile-pop 320ms cubic-bezier(.34, 1.56, .64, 1) both; }
  .tiles span:nth-child(2) { animation: tile-pop 320ms cubic-bezier(.34, 1.56, .64, 1) 90ms both, tile-turn 270ms cubic-bezier(.4, 0, .2, 1) 500ms both; }
  .tiles span:nth-child(3) { animation-delay: 180ms; }
  .tiles span:nth-child(4) { animation-delay: 270ms; }
  .logo > span:last-child { animation: word-slide 360ms cubic-bezier(.4, 0, .2, 1) 400ms both; }
}
@keyframes tile-pop { from { opacity: 0; scale: .5; } to { opacity: 1; scale: 1; } }
@keyframes tile-turn { from { transform: none; } to { transform: translateY(-3px) rotate(-12deg); } }
@keyframes word-slide { from { opacity: 0; translate: -12px 0; } to { opacity: 1; translate: 0 0; } }
.lang { display: inline-flex; gap: 4px; padding: 4px; background: var(--card); border-radius: 16px; }
.lang a { min-width: 48px; min-height: 44px; display: grid; place-items: center; padding: 0 12px; border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px; }
.lang a:hover { background: var(--line); }

/* Text */
h1, h2, h3 { font-weight: 800; line-height: 1.2; }
h1 { font-size: clamp(30px, 5vw, 44px); margin: 24px 0 8px; letter-spacing: -0.01em; }
h2 { font-size: 24px; margin: 56px 0 8px; padding-top: 24px; border-top: 1px solid var(--line); }
h3 { font-size: 19px; margin: 32px 0 8px; }
.updated { color: var(--muted); font-size: 15px; }
.updated::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 2px; background: var(--lime); vertical-align: 1px; }
ol li, ul li { margin: 6px 0; }
strong { font-weight: 700; }

/* Tables as grouped lists */
.table { overflow-x: auto; background: var(--card); border-radius: 24px; padding: 8px 16px; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); font-weight: 700; }
th, td { text-align: left; vertical-align: top; padding: 12px 8px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 32px; padding: 32px 0 40px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: grid; gap: 16px; }
.site-footer nav, .site-footer .contact { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 -12px; }
.site-footer nav a, .site-footer .contact a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 500; }
.site-footer nav a:hover, .site-footer .contact a:hover { color: var(--accent); }
.site-footer nav a[aria-current="page"] { color: var(--muted); }
.site-footer p { margin: 0; }
