/*
 * crt.css — shared cabin chrome: scanlines, vignette, pixel scaling.
 * Every game page + the hub include this.
 */
:root {
  --bg: #05030f;
  --cyan: #2de2e6;
  --pink: #ff3ea5;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  min-height: 100vh;
  overflow: hidden;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
body.cab {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cab-wrap {
  position: relative;
  width: min(96vw, calc(94vh * 480 / 560));
  aspect-ratio: 480 / 560;
}
.cab-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #05030f;
}
/* CRT overlay: scanlines + vignette, pointer-events off */
.crt {
  position: absolute;
  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
    ),
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, 0.42) 100%);
  mix-blend-mode: multiply;
  border-radius: 4px;
}
.home {
  position: fixed;
  top: 10px;
  left: 12px;
  color: #9ff3f5;
  background: rgba(5, 3, 18, 0.88);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 10px rgba(45, 226, 230, 0.35), inset 0 0 6px rgba(45, 226, 230, 0.15);
  text-decoration: none;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
  padding: 6px 12px;
  z-index: 10;
  transition: color 0.12s ease, box-shadow 0.12s ease, transform 0.08s ease;
}
.home:hover {
  color: #ffffff;
  box-shadow: 0 0 18px rgba(45, 226, 230, 0.7), inset 0 0 10px rgba(45, 226, 230, 0.3);
}
.home:active { transform: translateY(1px); }
