/* ------------------------------------------------------------------
   Pylon Zone (prototype) — neon / LED / chrome, Daft Punk-ish.
   Canvas is 360×640 logical px, rendered at device pixel ratio.
------------------------------------------------------------------ */

.pz-stage {
  display: flex;
  justify-content: center;
  padding: 12px 16px;
  background: #05010d;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  touch-action: none;
}

.pz-frame {
  position: relative;
  height: min(calc(100vh - 96px), calc((100vw - 32px) * 16 / 9));
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  overflow: hidden;
  background: #05010d;
  box-shadow:
    0 0 0 1px rgba(255, 42, 109, 0.35),
    0 0 40px -6px rgba(131, 56, 236, 0.55),
    0 30px 60px -20px rgba(0, 0, 0, 0.8);
  touch-action: none;
}
/* CRT scanlines over everything */
.pz-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}

.pz-canvas { display: block; width: 100%; height: 100%; }

.pz-hud,
.pz-overlay {
  font-family: 'Orbitron', system-ui, sans-serif;
  color: #f4f0ff;
}

.pz-hud {
  position: absolute;
  top: 2.2%;
  left: 4%;
  right: 4%;
  display: flex;
  align-items: center;
  gap: 4%;
  font-size: clamp(10px, 2.2vh, 14px);
  font-weight: 700;
  letter-spacing: 0.12em;
  pointer-events: none;
  text-shadow: 0 0 8px rgba(255, 42, 109, 0.8);
}
.pz-hud b { font-weight: 900; color: #ffe66d; text-shadow: 0 0 10px rgba(255, 230, 109, 0.9); }
.pz-meter {
  position: relative;
  flex: 1;
  height: 0.9em;
  border: 1px solid rgba(244, 240, 255, 0.35);
  border-radius: 2px;
  overflow: hidden;
}
.pz-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  background: linear-gradient(90deg, #2ec4b6, #3a86ff, #8338ec, #ff2a6d);
  box-shadow: 0 0 12px rgba(131, 56, 236, 0.9);
  transition: width 0.12s linear;
}
.pz-target {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 2px;
  background: #ffe66d;
  box-shadow: 0 0 8px #ffe66d;
}
.pz-pct { min-width: 4.2em; text-align: right; }

.pz-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.4vh;
  padding: 8%;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(18, 0, 42, 0.78), rgba(5, 1, 13, 0.94));
}
.pz-overlay[hidden] { display: none; }
.pz-overlay p { margin: 0; }

.pz-title {
  font-size: clamp(30px, 7.5vh, 56px);
  font-weight: 900;
  font-style: italic;
  line-height: 0.95;
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, #ffffff 0%, #c9c2ff 38%, #8338ec 50%, #ff2a6d 62%, #ffe66d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 42, 109, 0.55));
}
.pz-name {
  font-size: clamp(12px, 2.6vh, 18px);
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #2ec4b6;
  text-shadow: 0 0 10px rgba(46, 196, 182, 0.9);
}
.pz-sub {
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(12px, 2vh, 15px);
  line-height: 1.55;
  color: #c9c2ff;
  max-width: 30ch;
}
.pz-pick {
  display: flex;
  align-items: center;
  gap: 1.2em;
  font-size: clamp(12px, 2.2vh, 16px);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #ffe66d;
}
.pz-pick button {
  width: 2.4em;
  height: 2.4em;
  border-radius: 50%;
  border: 1px solid rgba(255, 230, 109, 0.5);
  background: transparent;
  color: #ffe66d;
  font-size: 1em;
  cursor: pointer;
  touch-action: manipulation;
}
.pz-pick button:disabled { opacity: 0.2; cursor: default; }

.pz-go {
  padding: 0.8em 2.4em;
  border: 0;
  border-radius: 999px;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(14px, 2.6vh, 18px);
  font-weight: 900;
  letter-spacing: 0.25em;
  color: #05010d;
  background: linear-gradient(90deg, #ff2a6d, #ff9f1c, #ffe66d, #2ec4b6, #3a86ff, #8338ec);
  background-size: 200% 100%;
  box-shadow: 0 0 24px rgba(255, 42, 109, 0.6);
  cursor: pointer;
  touch-action: manipulation;
  animation: pz-shift 3s linear infinite;
}
@keyframes pz-shift { to { background-position: -200% 0; } }
