/* CYBERSURF-specific layer on top of the shared cyberpunk base. The conduit is
   wider and colder than the bird's world, so the stage and accents shift. */

body.surf {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0,208,255,0.10), transparent 55%),
    radial-gradient(ellipse at 50% 120%, rgba(188,19,254,0.12), transparent 60%),
    var(--bg);
}
body.surf #app { max-width: 1240px; }
body.surf header.brand h1 { color: #00d0ff; text-shadow: 0 0 20px rgba(0,208,255,0.7), 0 0 46px rgba(0,208,255,0.3); }
body.surf header.brand p { color: var(--violet); }

#view-game.active { display: flex; gap: 18px; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
#stage {
  position: relative; flex: 1 1 640px; max-width: 900px;
  border: 2px solid #00d0ff; border-radius: 4px; overflow: hidden;
  box-shadow: 0 0 30px rgba(0,208,255,0.35), 0 0 90px rgba(188,19,254,0.18), inset 0 0 40px rgba(0,208,255,0.06);
  touch-action: none;
}
#stage canvas { display: block; width: 100%; height: auto; }

/* ------------------------------------------------------------------ hangar */

.hangar { display: flex; gap: 18px; align-items: stretch; flex-wrap: wrap; }
#skinPreview {
  background: radial-gradient(ellipse at 50% 55%, rgba(0,208,255,0.10), transparent 70%), rgba(0,0,0,0.5);
  border: 1px solid var(--line); border-radius: 3px; flex: none;
}
.hangar-controls { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; }

.slider { display: flex; align-items: center; gap: 10px; }
.slider > span {
  font-family: 'Orbitron', monospace; font-size: 10px; letter-spacing: 2px;
  color: var(--dim); text-transform: uppercase; width: 34px; flex: none;
}
.slider > b { font-size: 11px; color: var(--yellow); width: 30px; text-align: right; flex: none; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; flex: 1; height: 5px; border-radius: 3px; outline: none;
  background: linear-gradient(to right, hsl(0 100% 60%), hsl(60 100% 60%), hsl(120 100% 60%),
    hsl(180 100% 60%), hsl(240 100% 60%), hsl(300 100% 60%), hsl(360 100% 60%));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 2px solid #05050f; cursor: pointer; box-shadow: 0 0 8px rgba(255,255,255,0.7);
}
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid #05050f; cursor: pointer;
}

.pickers { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 7px; }
button.cycle {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 7px 10px; text-align: left; letter-spacing: 1px;
}
button.cycle em { font-style: normal; font-size: 8px; letter-spacing: 2px; color: var(--dim); text-transform: uppercase; }
button.cycle span { font-size: 11px; font-weight: 700; color: var(--cyan); }
button.cycle.rand { border-color: var(--violet); }
button.cycle.rand span { color: var(--violet); }

.wallet {
  display: flex; gap: 18px; padding-top: 8px; border-top: 1px solid var(--line);
  font-family: 'Orbitron', monospace; font-size: 10px; letter-spacing: 2px; color: var(--dim);
}
.wallet b { color: var(--yellow); font-size: 13px; margin-left: 6px; }

/* ---------------------------------------------------------------- missions */

#missions { display: grid; gap: 7px; }
.mission {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 3px; background: rgba(0,0,0,0.3); font-size: 14px;
}
.mission span { flex: 1; }
.mission b { font-family: 'Orbitron', monospace; font-size: 11px; color: var(--yellow); }
.mission.done { opacity: 0.5; border-color: rgba(0,255,157,0.4); }
.mission.done b { color: #00ff9d; }

#results .mission-clear {
  border-color: #00ff9d; color: #00ff9d; justify-content: center;
  font-family: 'Orbitron', monospace; font-size: 11px; letter-spacing: 2px;
}

@media (max-width: 900px) {
  #sidebar { width: 100%; max-width: 900px; }
  #stage { flex: 1 1 100%; }
}
