/* Lguana Games site. Colors, borders and shadows follow the Car Slam: No Brakes menu UI. */
@font-face { font-family:'Lilita One'; src:url('../fonts/LilitaOne-Regular.ttf') format('truetype'); font-style:normal; font-weight:400; font-display:swap}

:root {
  --ink: #131417;
  --ink-deep: #0b0c0e;
  --panel: #26292e;
  --panel-dark: #1c1e22;
  --panel-light: #3c4148;
  --cream: #f4f4f2;
  --cream-100: #ececea;
  --cream-200: #d8d8d4;
  --muted: #a2a7ae;
  --stud: #a2a7ae;
  --red: #e63946;
  --red-dark: #8f1a24;
  --yellow: #ffd23f;
  --yellow-dark: #a8820c;
  --grass: #619b2d;
  --grass-dark: #4a7d22;
  --font-display: 'Lilita One', 'Arial Rounded MT Bold', 'Trebuchet MS', sans-serif;
  --font-text: 'Avenir Next', Avenir, 'Segoe UI', Roboto, system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing:border-box}
html { -webkit-text-size-adjust:100%; text-size-adjust:100%}
body { margin:0; min-height:100vh; min-height:100svh; display:flex; flex-direction:column; background:var(--ink); color:var(--cream); font-family:var(--font-display); font-weight:400; -webkit-font-smoothing:antialiased}
img { display:block; max-width:100%; height:auto}
a { color:inherit}
a:focus-visible { outline:3px solid var(--yellow); outline-offset:4px; border-radius:4px}

/* Top bar: the game's menu panel, dark with a cream rule underneath. */
.topbar { position:relative; z-index:3; display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:68px; padding:8px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left)); background:var(--panel); border-bottom:3px solid var(--cream-100); box-shadow:0 4px 0 rgb(19 20 23 / .45)}
.brand { display:inline-flex; border-radius:10px; transition:transform .15s ease-out}
.brand:hover { transform:rotate(-2deg) scale(1.03)}
.brand img { width:auto; height:48px}

/* Hero: the live crash scene behind the announcement. */
.hero { position:relative; flex:1 0 auto; display:flex; min-height:600px; overflow:hidden; isolation:isolate; background:radial-gradient(ellipse 80% 70% at 50% 55%, #6aa733 0%, var(--grass) 55%, var(--grass-dark) 100%)}
.hero-scene { position:absolute; inset:0; width:100%; height:100%; display:block; opacity:0; transition:opacity .7s ease-out}
.hero-scene.ready { opacity:1}
/* Same top and bottom shade as the game menu, so the signs sit on calmer grass. */
.hero::after { content:''; position:absolute; inset:0; z-index:1; pointer-events:none; background:linear-gradient(rgb(28 30 34 / .55) 0%, rgb(28 30 34 / 0) 32%, rgb(28 30 34 / 0) 62%, rgb(28 30 34 / .6) 100%)}
.hero-content { position:relative; z-index:2; display:flex; flex-direction:column; align-items:center; width:100%; max-width:560px; margin:0 auto; padding:30px 16px 34px; text-align:center; pointer-events:none}
.hero-content > * { pointer-events:auto}
.crash-zone { flex:1 1 auto; width:100%; min-height:190px; pointer-events:none}

/* Small dark pill, like the game's best-score badge. */
.badge { display:inline-flex; align-items:center; gap:8px; margin:0; padding:6px 16px 5px; color:var(--cream); background:var(--panel-dark); border:2px solid var(--cream-100); border-radius:999px; box-shadow:inset 0 2px 0 var(--ink), 0 3px 0 rgb(19 20 23 / .5); font-size:14px; line-height:1.2; letter-spacing:1.5px; text-transform:uppercase}
.badge .dot { width:9px; height:9px; border-radius:50%; background:var(--yellow); box-shadow:0 0 0 2px var(--ink)}

/* The game's title sign: tilted dark plate, cream border, two corner studs. */
.title-sign { position:relative; width:min(100%, 430px); margin:26px 0 0; padding:20px 14px 18px; background:var(--panel); border:3px solid var(--cream); border-radius:9px; box-shadow:0 0 0 5px var(--panel), 0 12px 0 rgb(19 20 23 / .56); transform:rotate(-3deg)}
.title-sign h1 { margin:0; font-weight:400}
.title-sign .game { display:block; font-size:clamp(54px, 15vw, 82px); line-height:.95; letter-spacing:1px; color:#fff; text-shadow:2px 4px 0 var(--ink)}
.title-sign .game span { color:var(--yellow)}
.title-sign .tagline { display:block; margin-top:8px; font-family:var(--font-text); font-size:14px; font-weight:800; letter-spacing:5px; color:var(--cream-200)}
.sign-stud { position:absolute; left:12px; top:12px; width:7px; height:7px; border-radius:50%; background:var(--stud); box-shadow:inset 1px 1px 2px rgb(0 0 0 / .4)}
.sign-stud.bottom { left:auto; top:auto; right:12px; bottom:12px}

/* Play now button: the game's PLAY button, in the game's yellow, with its press state. */
.announce { display:flex; flex-direction:column; align-items:center; gap:18px}
.play { display:inline-flex; align-items:center; gap:14px; margin:0; padding:12px 30px 11px; font-size:clamp(30px, 8vw, 40px); line-height:1; letter-spacing:1px; text-transform:uppercase; text-decoration:none; color:var(--panel-dark); background:var(--yellow); border:3px solid var(--cream-100); border-radius:11px; box-shadow:0 6px 0 var(--yellow-dark), 0 11px 0 rgb(28 30 34 / .67), 0 16px 16px rgb(19 20 23 / .33); transform:rotate(1.5deg); transition:transform .1s ease-out, box-shadow .1s ease-out, filter .1s ease-out}
.play:hover { filter:brightness(1.06); transform:rotate(1.5deg) scale(1.03)}
.play:active { transform:rotate(1.5deg) translateY(5px); box-shadow:0 1px 0 var(--yellow-dark), 0 4px 0 rgb(28 30 34 / .67), 0 8px 10px rgb(19 20 23 / .33)}
.play .tri { flex:none; width:0; height:0; border-style:solid; border-width:11px 0 11px 18px; border-color:transparent transparent transparent var(--panel-dark)}
.badge .lamp { flex:none; width:9px; height:9px; border-radius:50%; background:var(--grass); box-shadow:0 0 0 2px var(--ink); animation:lamp 1.1s steps(1, end) infinite}
@keyframes lamp { 50% { background:var(--grass-dark)} }
.pitch { max-width:510px; margin:4px 0 0; padding:14px 20px; font-family:var(--font-text); font-size:16px; font-weight:600; line-height:1.5; color:var(--cream-200); background:rgb(28 30 34 / .92); border:2px solid var(--cream-100); border-radius:12px; box-shadow:0 4px 0 rgb(19 20 23 / .5)}
.pitch strong { color:var(--cream); font-weight:800}

/* Footer: the game's bottom dock. */
.dock { position:relative; z-index:3; padding:18px max(16px, env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background:var(--panel); border-top:3px solid var(--cream-100); box-shadow:0 -4px 0 rgb(19 20 23 / .45)}
.dock-inner { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:6px 24px; max-width:1120px; margin:0 auto}
.dock p { margin:0}
.dock .copyright { font-size:17px; letter-spacing:.5px}
.dock .credit { font-family:var(--font-text); font-size:14px; font-weight:600; color:var(--cream-200)}
.dock .credit strong { color:var(--cream); font-weight:800}
.dock .fine { flex-basis:100%; padding-top:10px; margin-top:4px; border-top:1px solid rgb(236 236 234 / .14); font-family:var(--font-text); font-size:12px; line-height:1.55; color:var(--muted)}
.dock .fine a { text-underline-offset:2px}
.dock .fine a:hover { color:var(--cream)}

/* Text pages (privacy, terms, 404) sit on the game's dark backdrop. */
.page { flex:1 0 auto; padding:40px 16px 56px; background:radial-gradient(ellipse at 50% 30%, var(--panel-light), var(--ink) 80%)}
.page-card { max-width:760px; margin:0 auto; padding:30px clamp(18px, 5vw, 44px) 34px; background:var(--panel); border:3px solid var(--cream); border-radius:12px; box-shadow:0 0 0 5px var(--panel), 0 12px 0 rgb(19 20 23 / .56)}
.page-card > h1 { margin:0 0 6px; font-size:clamp(34px, 7vw, 48px); font-weight:400; line-height:1.05; letter-spacing:.5px; text-shadow:2px 3px 0 var(--ink)}
.page-card > .meta { margin:0 0 24px; font-family:var(--font-text); font-size:14px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--muted)}
.prose { font-family:var(--font-text); font-size:16px; line-height:1.65; color:var(--cream-200)}
.prose h2 { scroll-margin-top:16px; margin:34px 0 10px; font-family:var(--font-display); font-size:26px; font-weight:400; line-height:1.15; letter-spacing:.3px; color:var(--cream)}
.prose h3 { margin:24px 0 8px; font-size:18px; font-weight:800; color:var(--cream)}
.prose p, .prose ul, .prose ol { margin:0 0 14px}
.prose ul, .prose ol { padding-left:22px}
.prose li { margin-bottom:6px}
.prose a { color:var(--yellow); text-underline-offset:2px}
.prose strong { color:var(--cream)}
.prose .table-wrap { margin:0 0 16px; overflow-x:auto; -webkit-overflow-scrolling:touch}
.prose table { width:100%; min-width:480px; margin:0; border-collapse:collapse; font-size:14px}
.prose th, .prose td { padding:8px 10px; text-align:left; vertical-align:top; border:1px solid rgb(236 236 234 / .2)}
.prose th { color:var(--cream); background:var(--panel-dark)}
.notice { margin:0; padding:16px 18px; background:var(--panel-dark); border:2px dashed rgb(236 236 234 / .35); border-radius:10px}
.home-link { display:inline-flex; align-items:center; margin-top:20px; padding:12px 22px 11px; font-family:var(--font-display); font-size:20px; letter-spacing:.5px; color:var(--panel-dark); text-decoration:none; background:var(--yellow); border:3px solid var(--cream-100); border-radius:10px; box-shadow:0 5px 0 var(--yellow-dark)}
.home-link:hover { filter:brightness(1.05)}
.home-link:active { transform:translateY(4px); box-shadow:0 1px 0 var(--yellow-dark)}

@media (max-width:520px) {
  .topbar { min-height:60px}
  .brand img { height:42px}
  .hero { min-height:580px}
  .hero-content { padding-top:22px; padding-bottom:30px}
  .title-sign { margin-top:22px; padding:16px 10px 14px}
  .title-sign .tagline { font-size:12px; letter-spacing:4px}
  .play { padding:11px 22px 10px; gap:12px}
  .pitch { font-size:15px; padding:12px 16px}
  .dock-inner { flex-direction:column; align-items:center; text-align:center}
}
@media (max-height:840px) and (min-width:521px) {
  .hero { min-height:540px}
  .hero-content { padding-top:20px; padding-bottom:24px}
  .title-sign { margin-top:20px; padding:16px 12px 14px}
  .title-sign .game { font-size:68px}
  .announce { gap:14px}
  .crash-zone { min-height:150px}
}
@media (prefers-reduced-motion:reduce) {
  .badge .lamp { animation:none}
  .brand, .hero-scene, .play { transition:none}
}
.prose code { font-size:.92em; padding:1px 5px; border-radius:4px; background:var(--panel-dark)}
.prose li > ul { margin-top:6px}
