/* The landing page: the game's own font and night-time colours, with plain text for reading. */
@font-face {
    font-family: 'Press Start 2P';
    src: url('play/assets/fonts/PressStart2P-Regular.ttf') format('truetype');
    font-display: swap;
}

:root {
    --bg: #1a1530;
    --panel: #241d42;
    --ink: #ece6f6;
    --muted: #a99fc4;
    --yellow: #ffd23a;
    --red: #ff3b3b;
    --green: #5ad16a;
    --pixel: 'Press Start 2P', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg) url('play/assets/ui/backdrop.png') repeat;
    background-size: 216px 384px;
    image-rendering: pixelated;
    color: var(--ink);
    font: 17px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

img { image-rendering: pixelated; max-width: 100%; height: auto; display: block; }

a { color: var(--yellow); }

h1, h2, h3, .brand, .button, nav a { font-family: var(--pixel); font-weight: normal; }

h1 { font-size: clamp(26px, 6vw, 46px); line-height: 1.3; color: var(--red); text-shadow: 3px 3px 0 #000; margin: 0 0 20px; }
h2 { font-size: 20px; color: var(--yellow); margin: 0 0 20px; line-height: 1.4; }
h3 { font-size: 14px; color: var(--green); margin: 28px 0 12px; }

.bar {
    position: sticky; top: 0; z-index: 2;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; background: rgba(10, 8, 20, 0.92); border-bottom: 2px solid #000;
}
.brand { color: var(--yellow); text-decoration: none; font-size: 12px; }
nav { display: flex; align-items: center; gap: 16px; }
nav a { color: var(--ink); text-decoration: none; font-size: 10px; }
nav a[aria-current] { color: var(--yellow); }

.button {
    display: inline-block; padding: 14px 18px; font-size: 13px; color: #000; background: var(--yellow);
    text-decoration: none; border: 3px solid #000; box-shadow: 4px 4px 0 #000;
}
.button:hover { background: #fff07a; }
.button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }
.button.small { padding: 8px 10px; font-size: 10px; color: #000; box-shadow: 3px 3px 0 #000; }

main { max-width: 980px; margin: 0 auto; padding: 0 16px; }

section { background: var(--panel); border: 3px solid #000; box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5); padding: 28px; margin: 32px 0; }

.hero { display: grid; grid-template-columns: 1fr 260px; gap: 32px; align-items: center; }
.hero-shot img { border: 3px solid #000; }
.lead { font-size: 19px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 24px 0 12px; }
.soon { font-family: var(--pixel); font-size: 10px; color: var(--muted); }
.small-print { font-size: 14px; color: var(--muted); }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.shots figure { margin: 0; }
.shots img { border: 3px solid #000; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

[hidden] { display: none !important; }
.board { margin: 0; padding-left: 2.2em; font-family: var(--pixel); font-size: 11px; line-height: 2.4; }
.board li::marker { color: var(--muted); }
.board li span.value { float: right; color: var(--yellow); }
.board li:nth-child(-n+3) { color: var(--yellow); }
.tabs { display: flex; gap: 8px; margin: 20px 0 8px; flex-wrap: wrap; }
.tab { font-family: var(--pixel); font-size: 11px; padding: 10px 14px; cursor: pointer; background: #000; color: var(--muted); border: 2px solid var(--muted); }
.tab[aria-selected="true"] { color: var(--yellow); border-color: var(--yellow); }

.who { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: start; }
.who img { width: 150px; border: 3px solid #000; image-rendering: auto; }
.who .links { font-family: var(--pixel); font-size: 10px; }

.safe { border-color: var(--red); }
.safe h2 { color: var(--red); }

.sponsors { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.sponsors li { border: 2px dashed var(--muted); padding: 14px 20px; font-family: var(--pixel); font-size: 10px; }
.sponsors li.empty { color: var(--muted); }

.consent {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 10; max-width: 560px; margin: 0 auto;
    background: var(--panel); border: 3px solid var(--yellow); box-shadow: 6px 6px 0 #000; padding: 16px;
}
.consent p { margin: 0 0 12px; font-size: 15px; }
.consent-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.button.plain { background: #3a3360; color: #fff; }
button.button { cursor: pointer; }

/* the secrets page: a faint link in the home footer, and screenshots in pairs */
.psst { color: #3d3560; text-decoration: none; font-size: 12px; margin-left: 6px; }
.psst:hover { color: var(--muted); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 20px; }
.pair figure { margin: 0; }
.pair img { border: 3px solid #000; }

footer { text-align: center; padding: 8px 16px 40px; font-size: 15px; }

.steps ol { padding-left: 1.4em; }
.steps li { margin-bottom: 8px; }
.key { display: inline-block; min-width: 1.4em; padding: 0 6px; border: 2px solid var(--muted); text-align: center; font-weight: bold; }

.doc { max-width: 760px; }
.doc h2 { margin-top: 28px; font-size: 15px; }

@media (max-width: 700px) {
    .hero { grid-template-columns: 1fr; }
    .hero-shot { max-width: 220px; margin: 0 auto; }
    .shots { grid-template-columns: 1fr 1fr; }
    .who { grid-template-columns: 1fr; }
    .who img { width: 140px; margin: 0 auto; }
    .shots figure:last-child { grid-column: span 2; max-width: 50%; justify-self: center; }
    section { padding: 20px; }
    nav a:not(.button) { display: none; }
    .brand { font-size: 10px; }
}
