/* Shared retro theme for the Hyperball web remake. MODE 5 palette:
   black background, white / blue / cyan foreground. Crisp pixels everywhere. */

:root {
  --black: #000;
  --white: #fff;
  --blue: #2a4bff;
  --cyan: #00ffff;
  --dim: #0a2a2a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #000;
  color: var(--cyan);
  font-family: "Courier New", monospace;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  -webkit-font-smoothing: none;
  image-rendering: pixelated;
}

img, canvas { image-rendering: pixelated; image-rendering: crisp-edges; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16px;
  background:
    radial-gradient(circle at 50% 0%, #021018 0%, #000 70%);
}

/* CRT scanline overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom, rgba(0,0,0,0) 0px, rgba(0,0,0,0) 2px, rgba(0,0,0,0.18) 3px);
  z-index: 9999;
}

h1, h2 {
  color: var(--cyan);
  text-shadow: 0 0 6px var(--cyan), 2px 2px 0 var(--blue);
  margin: 8px 0;
  text-align: center;
}
h1 { font-size: clamp(20px, 6vw, 44px); }

.screen {
  width: min(640px, 96vw);
  border: 3px solid var(--cyan);
  box-shadow: 0 0 18px rgba(0,255,255,0.4), inset 0 0 24px rgba(0,80,120,0.25);
  background: rgba(0, 12, 20, 0.85);
  padding: 18px 22px 24px;
}

p, li { color: var(--white); line-height: 1.5; }
a { color: var(--cyan); text-decoration: none; }
small { color: #6cc; }

.menu { list-style: none; padding: 0; margin: 18px 0; text-align: center; }
.menu li { margin: 10px 0; }

.btn, button {
  font: inherit;
  text-transform: uppercase;
  color: var(--black);
  background: var(--cyan);
  border: none;
  padding: 10px 18px;
  cursor: pointer;
  letter-spacing: 2px;
  box-shadow: 3px 3px 0 var(--blue);
  transition: transform .05s;
}
.btn:hover, button:hover { background: #fff; }
.btn:active, button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--blue); }
.btn.sel { background: var(--white); outline: 2px solid var(--cyan); }

.row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.grid-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.grid-pick button { padding: 8px 0; box-shadow: 2px 2px 0 var(--blue); }

.title-img { width: min(480px, 92vw); display: block; margin: 0 auto; }
.logo-img { width: min(420px, 90vw); display: block; margin: 6px auto; }

.scroller {
  overflow: hidden; white-space: nowrap; width: 100%;
  border-top: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  margin: 14px 0; padding: 8px 0; color: var(--cyan);
}
.scroller span { display: inline-block; padding-left: 100%; animation: scroll 28s linear infinite; }
@keyframes scroll { to { transform: translateX(-100%); } }

.blink { animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

.hud-row { display: flex; justify-content: space-between; width: 100%; color: var(--cyan); }

table { width: 100%; border-collapse: collapse; margin-top: 10px; }
td, th { padding: 6px 10px; color: var(--white); }
th { color: var(--cyan); }
tr:nth-child(odd) td { background: rgba(0, 60, 80, 0.25); }

.center { text-align: center; }
.gamewrap { display: flex; justify-content: center; margin-top: 8px; }
.play-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(640px, 96vw);
}
.level-picker {
  width: 100%;
  margin-top: 12px;
  padding: 14px 16px 18px;
  background: rgba(0, 12, 20, 0.85);
}
.level-picker-label {
  color: var(--cyan);
  text-align: center;
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 2px;
}
.level-picker .grid-pick { max-width: 320px; margin: 0 auto; }
.level-picker .row { margin-bottom: 4px; }
canvas { background: #000; }

.hint { color: #6cc; font-size: 13px; margin-top: 10px; text-align: center; }
.bignum { font-size: clamp(28px, 9vw, 64px); color: var(--white); text-shadow: 0 0 10px var(--cyan); }
