﻿:root {
  --bg: #000000;
  --fg: #f4f4f4;
  --muted: #a8a8a8;
  --accent: #f4f4f4;
  --danger: #ff4d4d;
}
@font-face {
  font-family: "Press Start 2P";
  src: url("assets/fonts/PressStart2P-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
  font-family: 'Press Start 2P', monospace;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
#wrap {
  position: fixed;
  inset: 0;
  background: #000;
  pointer-events: none;
}
canvas {
  display: block;
  width: 100vw;
  height: 100vh;
  touch-action: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  cursor: crosshair;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    #000;
}
#hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 10px 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2px 6px;
  /* Scale down gracefully on narrow phone viewports; 8px is the native pixel size of Press Start 2P */
  font-size: clamp(8px, 2.5vw, 14px);
  color: var(--fg);
  pointer-events: none;
  text-shadow: 0 0 8px rgba(255,255,255,0.25);
}
/* Hide version badge on the narrowest phones — gameplay info takes priority */
@media (max-width: 420px) {
  #version { display: none; }
}
#help {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  padding: 8px 12px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  pointer-events: none;
}
#overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.9);
  z-index: 5;
  text-align: center;
  padding: 24px;
}
#overlay.show { display: flex; }
.panel {
  max-width: 620px;
  width: min(92vw, 620px);
  background: transparent;
  border: none;
  padding: 22px 20px;
  text-align: center;
}
.splash-graphic {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  filter: drop-shadow(0 0 5px var(--accent));
}
.splash-graphic .parachute {
  stroke: var(--accent);
  stroke-width: 2;
  fill: transparent;
}
.title {
  font-size: clamp(2rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0 0 20px;
  color: #fff;
  text-shadow: none;
}
.sub {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 30px;
  text-shadow: 0 0 5px rgba(255,255,255,0.2);
}
button {
  appearance: none;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  touch-action: manipulation;
  border-radius: 0;
  padding: 14px 22px;
  font: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 0 10px var(--accent);
  transition: all 0.2s ease-in-out;
}
button:hover {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 20px var(--accent);
}
.small {
  font-size: 12px;
  color: var(--muted);
  margin-top: 20px;
  opacity: 0.7;
}
