/* bloo-mahrz — one stylesheet for every page of the site.
   Palette is lifted from the studio's opening in the game: night-blue
   sky, pale-blue wordmark, a rust-orange Mars. */
:root {
  --bg0: #020610;
  --bg1: #071426;
  --panel: #0a1a30;
  --panel-2: #0d2240;
  --line: #1d4a78;
  --ink: #dff3ff;
  --ink-dim: #9cc0dc;
  --ink-faint: #6d92b0;
  --word: #bfe8ff;
  --mars: #e0793a;
  --mars-deep: #a8481c;
  --cyan: #7fe8ff;
  --green: #7dffc0;
  --pink: #ff4d9d;
  --amber: #ffd166;
  --focus: #ffe66a;
  --px: 'Press Start 2P', 'Courier New', ui-monospace, monospace;
  --body: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Courier New', monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  background-color: var(--bg0);
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(200,230,255,.85), transparent 60%),
    radial-gradient(1px 1px at 27% 64%, rgba(200,230,255,.6), transparent 60%),
    radial-gradient(1px 1px at 41% 9%,  rgba(200,230,255,.7), transparent 60%),
    radial-gradient(2px 2px at 58% 37%, rgba(200,230,255,.55), transparent 60%),
    radial-gradient(1px 1px at 73% 81%, rgba(200,230,255,.75), transparent 60%),
    radial-gradient(1px 1px at 86% 23%, rgba(200,230,255,.7), transparent 60%),
    radial-gradient(1px 1px at 93% 58%, rgba(200,230,255,.5), transparent 60%),
    radial-gradient(1px 1px at 5% 88%,  rgba(200,230,255,.6), transparent 60%),
    linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 100%);
  background-attachment: fixed;
}
/* the faint scanlines the game draws over itself */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .35;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 1px, rgba(0,0,0,0) 1px 3px);
}

a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--focus); color: #000; padding: 8px 12px; z-index: 100; font-family: var(--px); font-size: 11px; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(2,6,16,.88); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--word); font-family: var(--px); font-size: 12px; letter-spacing: .06em; }
.brand img { width: 28px; height: 28px; image-rendering: pixelated; }
.brand sup { font-size: 7px; opacity: .7; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { font-family: var(--px); font-size: 9px; letter-spacing: .08em; color: var(--ink-dim); text-decoration: none; padding: 12px 8px; }
.nav a:hover { color: #fff; }

/* ---------- hero ---------- */
.hero { padding-top: 28px; padding-bottom: 8px; text-align: center; }
.hero-art { display: block; width: 100%; max-width: 896px; height: auto; margin: 0 auto; image-rendering: pixelated; image-rendering: crisp-edges; border: 1px solid var(--line); box-shadow: 0 0 0 4px var(--bg0), 0 0 0 5px var(--line), 0 20px 60px rgba(0,0,0,.6); background: #000; }
.hero h1 { font-family: var(--px); font-weight: 400; font-size: clamp(16px, 4.4vw, 30px); line-height: 1.5; margin: 32px 0 12px; color: var(--word); text-shadow: 0 3px 0 #06243e; letter-spacing: .02em; }
.hero p { max-width: 620px; margin: 0 auto; color: var(--ink-dim); font-size: 17px; }
.hero .cta { margin-top: 24px; }

/* ---------- sections ---------- */
section.wrap { padding-top: 52px; padding-bottom: 8px; }
h2.sec { font-family: var(--px); font-weight: 400; font-size: clamp(13px, 3.2vw, 18px); color: var(--word); margin: 0 0 6px; letter-spacing: .05em; }
.sec-sub { color: var(--ink-faint); margin: 0 0 24px; font-size: 14px; }

.cards { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 760px) { .cards { grid-template-columns: 1fr 1fr; } }

.card { position: relative; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); padding: 22px 20px 20px; box-shadow: 6px 6px 0 rgba(0,0,0,.45); }
.card::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--accent, var(--cyan)); }
.card.everyone { --accent: var(--green); }
.card.teen { --accent: var(--pink); }
.tag { align-self: flex-start; font-family: var(--px); font-size: 9px; letter-spacing: .08em; padding: 7px 9px 6px; border: 1px solid var(--accent); color: var(--accent); margin-bottom: 14px; }
.tag.live { background: var(--accent); color: #04050a; }
.card h3 { font-family: var(--px); font-weight: 400; font-size: 15px; line-height: 1.5; margin: 0 0 10px; color: #fff; }
.card p { margin: 0 0 14px; color: var(--ink-dim); font-size: 15px; }
.card .spacer { flex: 1; }
.card .btn + .btn { margin-top: 10px; }
.card .note { margin: 12px 0 0; font-size: 13px; color: var(--ink-faint); }

.warn { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #7a2a52; background: rgba(255,77,157,.08); padding: 10px 12px; margin: 0 0 16px; font-size: 14px; color: #ffc2de; line-height: 1.5; }
.warn b { font-family: var(--px); font-weight: 400; font-size: 10px; color: var(--pink); white-space: nowrap; padding-top: 3px; }

/* ---------- buttons ---------- */
.btn { display: inline-block; font-family: var(--px); font-size: 11px; letter-spacing: .08em; line-height: 1.4; text-decoration: none; text-align: center; padding: 14px 18px 13px; border: 2px solid var(--accent, var(--cyan)); color: var(--accent, var(--cyan)); background: transparent; cursor: pointer; transition: transform .08s, background .12s, color .12s; box-shadow: 4px 4px 0 rgba(0,0,0,.5); }
.btn:hover { background: var(--accent, var(--cyan)); color: #04050a; }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(0,0,0,.5); }
.btn.solid { background: var(--accent, var(--cyan)); color: #04050a; }
.btn.solid:hover { filter: brightness(1.12); }
.btn.quiet { --accent: var(--ink-dim); }
.btn.mars { --accent: var(--mars); }

/* ---------- support + contact ---------- */
.band { border: 1px solid var(--line); background: rgba(10,26,48,.7); padding: 24px 20px; display: grid; gap: 18px; align-items: center; box-shadow: 6px 6px 0 rgba(0,0,0,.45); }
@media (min-width: 760px) { .band { grid-template-columns: 1fr auto; } }
.band h3 { font-family: var(--px); font-weight: 400; font-size: 13px; margin: 0 0 8px; color: var(--amber); }
.band p { margin: 0; color: var(--ink-dim); font-size: 15px; }
.mail { font-size: 17px; word-break: break-all; }

/* ---------- footer ---------- */
footer { margin-top: 64px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 13px; }
footer .row { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; align-items: baseline; }
footer .legal { font-family: var(--px); font-size: 9px; line-height: 2; letter-spacing: .06em; color: var(--ink-dim); }
footer .fine { margin: 14px 0 0; max-width: 720px; }

/* ---------- inner pages (coming soon, 404) ---------- */
.solo { padding-top: 56px; padding-bottom: 8px; text-align: center; }
.solo h1 { font-family: var(--px); font-weight: 400; font-size: clamp(16px, 4.6vw, 28px); line-height: 1.6; margin: 18px 0 14px; color: var(--word); text-shadow: 0 3px 0 #06243e; }
.solo p { max-width: 560px; margin: 0 auto 14px; color: var(--ink-dim); }
.solo .planet { width: 96px; height: 96px; image-rendering: pixelated; animation: bob 4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- the age gate ---------- */
dialog.gate { width: min(92vw, 520px); background: var(--panel); color: var(--ink); border: 2px solid var(--pink); padding: 0; box-shadow: 8px 8px 0 rgba(0,0,0,.6); }
dialog.gate::backdrop { background: rgba(2,6,16,.82); }
.gate-in { padding: 24px 22px 22px; }
.gate h2 { font-family: var(--px); font-weight: 400; font-size: 14px; line-height: 1.6; color: var(--pink); margin: 0 0 14px; }
.gate p { margin: 0 0 12px; color: var(--ink-dim); font-size: 15px; }
.gate .acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.gate .btn { --accent: var(--pink); flex: 1 1 200px; }
.gate .btn.quiet { --accent: var(--green); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- leaderboards ---------- */
.lb-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.lb-tabs button { font-family: var(--px); font-size: 10px; letter-spacing: .08em; line-height: 1.4; padding: 13px 14px 12px; color: var(--ink-dim); background: transparent; border: 2px solid var(--line); cursor: pointer; }
.lb-tabs button:hover { color: #fff; border-color: var(--ink-faint); }
.lb-tabs button[aria-selected="true"] { color: #04050a; background: var(--cyan); border-color: var(--cyan); }
.lb-tabs button[data-game="clne"][aria-selected="true"] { background: var(--green); border-color: var(--green); }
.lb-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 760px) { .lb-grid { grid-template-columns: 1fr 1fr; } }
.lb h3 { font-family: var(--px); font-weight: 400; font-size: 12px; margin: 0 0 8px; letter-spacing: .06em; }
.lb-normal h3 { color: var(--cyan); }
.lb-hard h3 { color: #ff6b6b; }
.lb-scroll { max-height: 360px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); background: rgba(10,26,48,.7); box-shadow: 6px 6px 0 rgba(0,0,0,.45); scrollbar-color: var(--line) var(--bg0); scrollbar-width: thin; }
.lb-hard .lb-scroll { border-color: #6b2a3c; }
.lb-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.lb-list li { display: grid; grid-template-columns: 2.6em 4.6em 1fr; gap: 0 10px; align-items: baseline; padding: 7px 12px; border-bottom: 1px solid rgba(29,74,120,.35); font-size: 14px; line-height: 1.4; }
.lb-list li:nth-child(even) { background: rgba(2,6,16,.35); }
.lb-list .r { color: var(--ink-faint); text-align: right; }
.lb-list .t { font-family: var(--px); font-size: 11px; color: var(--word); letter-spacing: .04em; }
.lb-list .s { color: var(--amber); letter-spacing: .06em; text-align: right; }
.lb-list .h { grid-column: 2 / -1; color: var(--ink-faint); font-size: 12px; margin-top: -2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-list li:nth-child(-n+3) .r { color: var(--amber); }
.lb-list li:nth-child(1) .t { color: #fff; }
.lb-list li.lb-empty { display: block; text-align: center; color: var(--ink-faint); padding: 26px 12px; font-size: 13px; }
.lb-list li.lb-empty .h { display: none; }
.lb-note { color: var(--ink-faint); font-size: 13px; margin: 14px 0 0; min-height: 1.4em; }

/* wide enough for a tag, a name and a score on one line */
@media (min-width: 560px) {
  .lb-list li { grid-template-columns: 2.6em 4.6em 1fr auto; }
  .lb-list .h { grid-column: 3; grid-row: 1; margin-top: 0; font-size: 13px; }
  .lb-list .s { grid-column: 4; grid-row: 1; }
}
/* four nav links and the name no longer fit one line on a phone */
.brand { white-space: nowrap; }
@media (max-width: 520px) {
  .top .wrap { flex-wrap: wrap; row-gap: 0; padding-top: 4px; padding-bottom: 0; }
  .nav { width: 100%; justify-content: space-between; }
  .nav a { padding: 10px 6px; }
}
