/* roninray.com: shared arcade look. One dark screen, pixel type for headings and menus, Hogg red, ball-dot yellow. */
:root {
  --black: #050505;
  --white: #f7f6f3;
  --red: #c8102e;
  --dot: #ffd21f;
  --soft: #cfcfcf;
  --dim: #9a9a9a;
  --pixel: "Press Start 2P", "Courier New", monospace;
  --text: "IBM Plex Mono", Consolas, "Courier New", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--pixel);
  -webkit-font-smoothing: none;
}

/* A full-window arcade screen: HUD on top, content in the middle, credits at the bottom. */
.screen {
  position: relative;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  padding-block: max(20px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  overflow: hidden;
}
.screen > * { position: relative; z-index: 1; }
.screen > canvas.court {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  filter: brightness(.42) saturate(.9);
}
.screen::after { /* CRT scanlines */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .28) 0 2px, transparent 2px 4px);
}

.hud, .foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px;
  width: 100%; max-width: 1100px; margin: 0 auto;
}
.hud { font-size: clamp(8px, 1.4vw, 13px); color: #d9d9d9; }
.hud .hi { color: var(--dot); }
.foot { font-size: clamp(7px, 1.1vw, 11px); color: var(--dim); line-height: 1.8; }
.foot a { color: inherit; }

.attract {
  display: grid; align-content: center; justify-items: center;
  gap: clamp(22px, 4.5vw, 44px);
  text-align: center;
}
.title {
  margin: 0;
  font-size: clamp(30px, 7.2vw, 72px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--red);
  text-shadow: .06em .06em 0 var(--white), .12em .12em 0 #000;
}
.sub { margin: 0; font-size: clamp(9px, 1.4vw, 13px); line-height: 1.9; color: var(--soft); }

/* Menu: the yellow cursor and red bar mark the selected item. */
.menu { display: grid; gap: clamp(10px, 2vw, 20px); justify-items: start; }
.menu a {
  display: flex; align-items: center; gap: .7em;
  padding: .4em .55em;
  color: var(--white); text-decoration: none;
  font-size: clamp(12px, 2.2vw, 22px);
}
.menu a::before { content: "\25B6"; color: var(--dot); visibility: hidden; }
.menu a.on { background: rgba(200, 16, 46, .85); color: #fff; }
.menu a.on::before { visibility: visible; animation: blink 1s steps(2, start) infinite; }
.menu a:focus-visible { outline: 3px solid var(--dot); outline-offset: 3px; }
.hint { font-size: clamp(7px, 1vw, 10px); color: var(--dim); margin: 0; }
@media (hover: none) { .hint { display: none; } }

/* Readable text panels (build log, 404) keep pixel type for headings only. */
.panel {
  width: 100%; max-width: 64ch; margin: 0 auto;
  display: grid; align-content: center; gap: 20px;
  font-family: var(--text); font-size: 16px; line-height: 1.65; color: var(--soft);
}
.panel p { margin: 0; }
.panel a { color: var(--dot); }

@keyframes blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .menu a.on::before { animation: none; }
}
