
  :root {
    --ink:#073f3d;
    --olive:#5f742f;
    --cream:#f7e8b7;
    --mustard:#e4a81d;
    --rust:#b94a1d;
    --orange:#ef9152;
    --mint:#68c9b5;
    --paper:#f4ecd6;
    --white:#fffaf0;
  }
  * { box-sizing:border-box; }
  html,body { margin:0; background:#092f2d; color:var(--ink); font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif; }
  body { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:22px; }
  .wrap {
    width:min(1120px,100%);
    background:var(--paper);
    border:5px solid var(--ink);
    border-radius:26px;
    box-shadow:0 18px 0 rgba(0,0,0,.18);
    overflow:hidden;
  }
  header {
    display:grid; grid-template-columns:180px 1fr auto; gap:18px; align-items:center;
    padding:18px 22px; border-bottom:4px solid var(--ink); background:var(--cream);
  }
  header img { width:160px; max-height:90px; object-fit:contain; filter:drop-shadow(0 3px 0 rgba(0,0,0,.12)); }
  h1 { margin:0; font-size:clamp(24px,4vw,44px); line-height:.95; letter-spacing:.02em; text-transform:uppercase; }
  .sub { margin-top:7px; font-weight:800; color:var(--rust); letter-spacing:.08em; text-transform:uppercase; font-size:12px; }
  .date { text-align:right; font-weight:900; font-size:14px; line-height:1.25; text-transform:uppercase; }
  .date span { display:block; color:var(--rust); }
  .game-shell {
    position:relative; background:#071f1f; padding:16px; isolation:isolate;
  }
  canvas {
    width:100%; aspect-ratio:16/9; display:block; background:#8ad6cf;
    border:4px solid var(--ink); border-radius:14px; image-rendering:pixelated;
    touch-action:none;
  }
  .scanlines {
    pointer-events:none; position:absolute; inset:16px; border-radius:14px; z-index:4;
    background:repeating-linear-gradient(to bottom,rgba(0,0,0,0) 0 3px,rgba(0,0,0,.07) 3px 4px);
    mix-blend-mode:multiply; opacity:.35;
  }
  .hud {
    position:absolute; inset:29px 32px auto 32px; z-index:5; display:flex; justify-content:space-between;
    color:var(--cream); text-shadow:3px 3px 0 var(--ink); font-family:"Courier New",monospace;
    font-weight:900; font-size:clamp(15px,2vw,24px); pointer-events:none;
  }
  .overlay {
    position:absolute; inset:16px; z-index:8; display:flex; align-items:center; justify-content:center;
    background:rgba(7,31,31,.82); border-radius:14px; padding:20px;
  }
  .card {
    width:min(620px,94%); background:var(--paper); border:4px solid var(--ink); border-radius:18px;
    padding:24px; box-shadow:10px 10px 0 rgba(0,0,0,.25); text-align:center;
  }
  .card .mini-logo { width:min(220px,60%); max-height:130px; object-fit:contain; margin-bottom:8px; }
  .kicker { color:var(--rust); font-weight:900; letter-spacing:.18em; text-transform:uppercase; font-size:12px; }
  .card h2 { margin:7px 0 10px; font-size:clamp(30px,6vw,58px); line-height:.92; text-transform:uppercase; }
  .card p { margin:8px auto 16px; max-width:520px; line-height:1.35; font-weight:650; }
  .how { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:16px 0 18px; }
  .how div { background:var(--cream); border:2px solid var(--ink); border-radius:10px; padding:10px 6px; font-size:12px; font-weight:900; }
  button,.button {
    appearance:none; border:3px solid var(--ink); border-radius:999px; background:var(--mustard); color:var(--ink);
    font-weight:1000; text-transform:uppercase; letter-spacing:.06em; padding:12px 20px; cursor:pointer;
    box-shadow:0 5px 0 var(--ink); text-decoration:none; display:inline-block;
  }
  button:hover,.button:hover { transform:translateY(-1px); }
  button:active,.button:active { transform:translateY(4px); box-shadow:0 1px 0 var(--ink); }
  .secondary { background:var(--cream); }
  .hidden { display:none !important; }
  .bottom {
    padding:18px 22px 22px; display:grid; grid-template-columns:1.4fr 1fr; gap:18px; align-items:start;
  }
  .bottom h3 { margin:0 0 7px; text-transform:uppercase; font-size:20px; }
  .bottom p { margin:0; line-height:1.4; }
  .legend { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
  .chip { border:2px solid var(--ink); border-radius:999px; padding:7px 10px; background:var(--white); font-weight:850; font-size:12px; }
  .form-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; text-align:left; }
  label { display:block; font-size:12px; font-weight:900; text-transform:uppercase; letter-spacing:.08em; }
  input {
    width:100%; margin-top:5px; padding:11px 12px; border:2px solid var(--ink); border-radius:10px;
    background:var(--white); font-size:16px;
  }
  .consent { display:flex; gap:8px; align-items:flex-start; text-align:left; font-size:12px; margin:11px 0 14px; line-height:1.35; }
  .consent input { width:18px; height:18px; margin:0; }
  .score-big { font:900 clamp(46px,10vw,88px)/1 "Courier New",monospace; color:var(--rust); text-shadow:3px 3px 0 var(--cream); }
  .note { margin-top:12px; font-size:11px; opacity:.72; }
  .status { margin-top:12px; font-weight:900; color:var(--rust); }
  @media (max-width:760px) {
    body { padding:8px; }
    header { grid-template-columns:92px 1fr; padding:12px; }
    header img { width:88px; max-height:60px; }
    .date { grid-column:1/-1; text-align:left; font-size:12px; }
    .game-shell { padding:8px; }
    .scanlines,.overlay { inset:8px; }
    .hud { inset:18px 19px auto; }
    .bottom { grid-template-columns:1fr; padding:14px; }
    .legend { justify-content:flex-start; }
    .how { grid-template-columns:1fr; }
    .form-grid { grid-template-columns:1fr; }
    .card { padding:18px; }
  }

/* Shared presentation and entry flow. */
.game-controls { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 18px; background:var(--cream); border-bottom:2px solid var(--ink); font-size:12px; font-weight:700; }
.sound-toggle { flex-shrink:0; padding:9px 15px; min-height:44px; font-size:12px; border:2px solid var(--ink); box-shadow:none; }
.sound-toggle[aria-pressed="true"] { background:var(--ink); color:var(--cream); }
a { color:var(--ink); text-underline-offset:3px; }
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible { outline:3px solid var(--rust); outline-offset:4px; }
button:disabled { cursor:default; opacity:.55; transform:none; }
fieldset { border:0; margin:0; padding:0; min-width:0; }
fieldset:disabled { opacity:.55; }
.entry-panel { padding:28px; border-bottom:4px solid var(--ink); scroll-margin-top:16px; }
.result-head { display:flex; justify-content:space-between; align-items:center; gap:24px; border-bottom:2px solid #073f3d30; padding-bottom:22px; margin-bottom:24px; }
.result-head h2 { font-size:clamp(26px,4vw,42px); line-height:1.05; margin:8px 0; }
.result-head p { margin:0; }
.points-label { font-size:11px; font-weight:900; letter-spacing:.12em; }
.entry-content { display:grid; grid-template-columns:.85fr 1.15fr; gap:36px; margin:0 0 24px; }
.entry-content h3 { margin:0; font-size:24px; }
.entry-content p { line-height:1.5; }
.entry-content .small,.small { font-size:12px; line-height:1.5; }
.consent { font-weight:500; text-transform:none; letter-spacing:0; font-size:13px; gap:10px; margin:16px 0; }
.consent input { flex:0 0 20px; width:20px; height:20px; accent-color:var(--ink); }
.email-choices { margin:18px 0; border-top:1px solid #073f3d40; border-bottom:1px solid #073f3d40; padding:14px 0; }
.email-choices summary { cursor:pointer; font-weight:800; }
.email-choices p { font-size:13px; }
.availability { background:var(--cream); padding:14px; border-radius:8px; margin-bottom:18px; line-height:1.45; }
.status:empty { display:none; }
.status { background:var(--cream); padding:14px; border-radius:8px; line-height:1.4; }
.honeypot { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.site-footer { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:22px; border-top:2px solid #073f3d30; background:var(--cream); }
.creator { display:flex; align-items:center; gap:12px; text-decoration:none; font-size:12px; font-weight:750; }
.creator img { width:130px; height:auto; mix-blend-mode:multiply; }
.site-footer nav { display:flex; gap:20px; flex-wrap:wrap; font-size:12px; font-weight:700; }
.legal-page { width:min(840px,100%); }
.legal-page header { display:flex; justify-content:space-between; }
.legal-page header h1 { font-size:24px; }
.legal-content { padding:32px; line-height:1.65; }
.legal-content h1 { font-size:clamp(30px,5vw,44px); text-transform:none; line-height:1.1; margin:14px 0; }
.legal-content h2 { font-size:23px; line-height:1.25; margin-top:32px; }
.legal-content h3 { margin:20px 0 4px; }
.legal-content li { margin:7px 0; }
.legal-content address { font-style:normal; }
.legal-meta { font-size:12px; color:var(--rust); font-weight:800; }
@media(max-width:760px) {
  .overlay { position:relative; inset:auto; margin-top:10px; padding:8px; }
  .card { width:100%; padding:18px 12px; box-shadow:none; }
  .card .mini-logo { width:94px; max-height:80px; }
  .card h2 { font-size:34px; }
  .how { grid-template-columns:repeat(3,1fr); gap:5px; }
  .how div { font-size:10px; }
  .card p { font-size:14px; }
  .scanlines { display:none; }
  .entry-panel { padding:20px 16px; }
  .result-head { align-items:flex-start; gap:12px; }
  .result-head h2 { font-size:26px; }
  .result-head p { font-size:13px; }
  .score-big { font-size:46px; }
  .entry-content { grid-template-columns:1fr; gap:20px; }
  .site-footer { flex-direction:column; align-items:flex-start; padding:20px 16px; }
  .site-footer nav { gap:14px; }
  .legal-content { padding:22px 18px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }

/* Top 10 scoreboard */
.board-jump { margin:14px 0 0 !important; font-size:14px; }
.board-jump a { font-weight:900; }
.board-post { background:var(--cream); border:3px solid var(--ink); border-radius:14px; padding:16px 18px; margin:0 0 26px; }
.board-post-row { display:flex; gap:12px; align-items:flex-end; }
.board-post-row label { flex:1; }
.board-post-row button { flex-shrink:0; }
.board-post .small { margin:10px 0 0; }
.board-status:empty { display:none; }
.board-status { margin:10px 0 0; font-weight:900; color:var(--rust); }
.scoreboard { padding:24px 22px 26px; background:var(--ink); color:var(--cream); border-bottom:4px solid var(--ink); scroll-margin-top:16px; }
.board-head h2 { margin:6px 0 16px; text-transform:uppercase; font-size:clamp(24px,3.6vw,36px); line-height:1; }
.scoreboard .kicker { color:var(--mustard); }
.board-list { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:1fr 1fr; grid-template-rows:repeat(5,auto); grid-auto-flow:column; gap:8px 22px; font-family:"Courier New",monospace; font-weight:900; font-size:18px; }
.board-list li { display:flex; gap:12px; align-items:center; padding:9px 12px; border:2px solid #f7e8b755; border-radius:10px; }
.board-list li:nth-child(-n+3) { border-color:var(--mustard); }
.board-list li.mine { background:var(--mustard); color:var(--ink); border-color:var(--mustard); }
.board-list .rank { color:var(--orange); }
.board-list li.mine .rank { color:var(--rust); }
.board-list .nick { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.board-empty { margin:0; font-weight:800; }
.scoreboard .board-status { color:var(--orange); }
.board-note { margin:16px 0 0; opacity:.75; }
@media(max-width:760px) {
  .board-post-row { flex-direction:column; align-items:stretch; }
  .board-list { grid-template-columns:1fr; grid-template-rows:none; grid-auto-flow:row; font-size:16px; }
  .scoreboard { padding:20px 16px; }
}
