/* RateHR loading screen: 8-bit arcade. Used by the live coming-soon page and by the draft site. */
/* Press Start 2P, SIL Open Font License 1.1, served from this site. */
@font-face { font-family: "Press Start 2P"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/PressStart2P-latin.woff2") format("woff2"); }
.boot, .boot * { box-sizing: border-box; }
body.locked > :not(.boot) { display: none; }
/* Mouse pointer on the loading screen: a pixel rocket, tip at the top centre. Text fields keep the normal text cursor. */
.boot, .boot * { cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 16 16' shape-rendering='crispEdges'><rect x='7' y='0' width='2' height='1' fill='%23ffffff'/><rect x='6' y='1' width='4' height='2' fill='%23ffffff'/><rect x='5' y='3' width='6' height='8' fill='%23ffffff'/><rect x='7' y='4' width='2' height='2' fill='%233de2ff'/><rect x='3' y='8' width='2' height='4' fill='%23ff4fa3'/><rect x='11' y='8' width='2' height='4' fill='%23ff4fa3'/><rect x='5' y='11' width='6' height='1' fill='%23ff4fa3'/><rect x='6' y='12' width='4' height='2' fill='%23ffd23f'/><rect x='7' y='14' width='2' height='1' fill='%23ff7a1a'/></svg>") 16 0, auto; }
.boot input { cursor: text; }
.boot { position: fixed; inset: 0; z-index: 100; background: #0b0b2a; color: #ffffff; display: flex;
  font-family: "Press Start 2P", ui-monospace, Menlo, Consolas, monospace; padding: 34px 12px 14px; overflow: hidden;
  image-rendering: pixelated; -webkit-font-smoothing: none; }
.boot[hidden] { display: none; }
.boot.off { animation: wipe 0.4s steps(6) forwards; }
.stars { position: fixed; inset: 0; pointer-events: none; }
.stars i { position: absolute; width: 3px; height: 3px; background: #ffffff; animation: twinkle 1.6s steps(2) infinite; }
/* Auto margins centre the panel both ways. boot.js shrinks it to fit when the window is small. */
.cab { position: relative; z-index: 1; width: 100%; max-width: 640px; min-width: 0; margin: auto; text-align: center; }
.hud { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: start; text-align: left; font-size: clamp(8px, 2.2vw, 11px); line-height: 1.8; color: #3de2ff; }
.hud .right { text-align: right; }
.hud .mid { text-align: center; color: #ff4f4f; }
.hud b { color: #ffffff; font-weight: 400; }
.title { font-weight: 400; margin: 26px 0 22px; font-size: clamp(30px, 11vw, 64px); line-height: 1; color: #ffd23f; letter-spacing: 2px;
  text-shadow: 4px 4px 0 #ff4fa3, 8px 8px 0 #3d1a78; }
.title span { color: #3de2ff; }
.stage { font-size: clamp(9px, 2.6vw, 13px); color: #ffd23f; min-height: 1.6em; margin-bottom: 22px; }
.track8 { position: relative; border: 4px solid #ffffff; padding: 4px; background: #000000; }
.blocks { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; height: 22px; }
.blocks i { background: #1c1c4a; }
.blocks i.on { background: #3ddc84; }
.blocks i.on:nth-child(n+8) { background: #ffd23f; }
.blocks i.on:nth-child(n+15) { background: #ff4fa3; }
.sprite { position: absolute; top: -26px; left: 0; width: 3px; height: 3px; transform: translateX(-13px); transition: left 0.13s steps(2); }
.boot .pct { margin-top: 14px; font-size: clamp(10px, 2.8vw, 14px); min-width: 0; text-align: center; }
.boot .hint { margin-top: 26px; font-size: clamp(8px, 2.2vw, 11px); color: #ffffff; opacity: 1; animation: blink8 0.9s steps(1) infinite; }
.boot .hint.start { color: #ffd23f; }
.club { display: grid; gap: 14px; margin-top: 30px; padding: 18px 16px; border: 4px solid #3de2ff; background: #000000; text-align: left; }
.club[hidden] { display: none; }
.club-title { color: #ffd23f; font-size: clamp(10px, 2.9vw, 14px); text-align: center; line-height: 1.6; }
.club-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .club-row { grid-template-columns: 1fr; } }
.club label { display: grid; gap: 8px; font-size: clamp(7px, 2vw, 9px); font-weight: 400; color: #3de2ff; }
.club input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 16px; color: #ffffff; background: #0b0b2a;
  border: 3px solid #ffffff; border-radius: 0; padding: 9px 10px; width: 100%; }
.club input:focus { outline: 3px solid #ffd23f; outline-offset: 0; }
.club button { font-family: inherit; font-size: clamp(10px, 2.8vw, 13px); color: #0b0b2a; background: #ffd23f; border: 0; border-radius: 0;
  padding: 12px; box-shadow: 4px 4px 0 #ff4fa3; }
.club button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #ff4fa3; }
.club-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.club-note { margin-top: 12px; font-family: inherit; font-size: clamp(7px, 1.9vw, 9px); line-height: 1.9; color: #3de2ff; text-align: center; text-transform: uppercase; }
.club-note .lc { text-transform: none; }
.club.done .club-note { display: none; }
.stamp { position: fixed; top: 10px; left: 12px; z-index: 1; font-size: clamp(7px, 1.9vw, 9px); color: #ffffff; pointer-events: none; }
.club-msg { font-size: clamp(8px, 2.2vw, 10px); line-height: 1.8; color: #ff4fa3; min-height: 1.8em; text-align: center; }
.club.done .club-row, .club.done label, .club.done button { display: none; }
.club.done .club-msg { color: #3ddc84; }
.board { position: relative; margin-top: 24px; border: 4px solid #ffffff; background: #000000; overflow: hidden; padding: 12px 0; white-space: nowrap; text-align: left; }
.board::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to right, rgba(0,0,0,0) 0 2px, rgba(0,0,0,0.45) 2px 3px),
              repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,0.45) 2px 3px); }
.board .run { display: inline-block; color: #ffb000; font-size: clamp(10px, 2.8vw, 14px); text-shadow: 0 0 6px rgba(255, 176, 0, 0.7);
  animation: board-scroll 18s linear infinite; will-change: transform; }
/* Two copies of the line, each followed by a short gap, so the start follows closely behind the end. */
.board .run span { display: inline-block; padding-right: 9em; }
/* Moves right to left in a continuous loop. */
@keyframes board-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* Mini game pieces. They sit behind the panel so they never cover the form. */
.bb, .ship, .boom { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 0; will-change: transform; }
.bb { width: 4px; height: 4px; background: #ffd23f; box-shadow: 0 0 4px #ffd23f; }
.ship { width: 3px; height: 3px; background: transparent; }
.boom { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #ffffff;
  box-shadow: 9px 0 0 #ffd23f, -9px 0 0 #ffd23f, 0 9px 0 #ffd23f, 0 -9px 0 #ffd23f, 7px 7px 0 #ff4fa3, -7px 7px 0 #ff4fa3, 7px -7px 0 #ff4fa3, -7px -7px 0 #ff4fa3;
  animation: boom 0.26s steps(3) forwards; }
@keyframes boom { to { transform: scale(2.4); opacity: 0; } }
.over { position: fixed; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  padding: 16px; text-align: center; background: rgba(11, 11, 42, 0.94); }
.over[hidden] { display: none; }
.over-title { font-size: clamp(28px, 10vw, 60px); line-height: 1.1; color: #ff4f4f; text-shadow: 4px 4px 0 #ffd23f, 8px 8px 0 #3d1a78; }
.over-score { font-size: clamp(9px, 2.6vw, 13px); color: #3de2ff; }
.over-score b { color: #ffffff; font-weight: 400; }
.over-btn { font-family: inherit; font-size: clamp(11px, 3vw, 15px); color: #0b0b2a; background: #ffd23f; border: 0; border-radius: 0; padding: 14px 18px;
  box-shadow: 4px 4px 0 #ff4fa3; animation: blink8 0.9s steps(1) infinite; }
.over-btn[hidden] { display: none; }
.over-btn:focus { outline: 3px solid #ffffff; outline-offset: 3px; }
/* Lives sit in the top right corner of the screen, opposite the date and version. */
.lives { position: fixed; top: 8px; right: 12px; z-index: 1; margin: 0; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: clamp(8px, 2.2vw, 11px); color: #33ff66; min-height: 20px; }
.lives span { display: inline-flex; gap: 6px; }
.life { display: inline-block; width: 18px; height: 18px; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'><rect x='7' y='0' width='2' height='1' fill='%2333ff66'/><rect x='6' y='1' width='4' height='2' fill='%2333ff66'/><rect x='5' y='3' width='6' height='8' fill='%2333ff66'/><rect x='7' y='4' width='2' height='2' fill='%230b0b2a'/><rect x='3' y='8' width='2' height='4' fill='%231fbf4a'/><rect x='11' y='8' width='2' height='4' fill='%231fbf4a'/><rect x='5' y='11' width='6' height='1' fill='%231fbf4a'/><rect x='6' y='12' width='4' height='2' fill='%23b6ffca'/><rect x='7' y='14' width='2' height='1' fill='%2333ff66'/></svg>") center / contain no-repeat; }
.boot.hit { background: #3a0b1c; }
@keyframes blink8 { 50% { opacity: 0; } }
@keyframes twinkle { 50% { opacity: 0.25; } }
@keyframes wipe { to { clip-path: inset(50% 0 50% 0); opacity: 0.2; } }
@media (prefers-reduced-motion: reduce) {
  .stars i, .boot .hint, .over-btn { animation: none; }
  .board { white-space: normal; padding: 12px; text-align: center; line-height: 1.8; }
  .board .run { animation: none; }
  .board .run span { padding-right: 0; }
  .board .run span + span { display: none; }
  .sprite { transition: none; }
  .boot.off { animation: none; opacity: 0; }
}
