/* WORLD-O-TECHNO — acid house control room */

:root {
  --acid: #c8ff00;
  --acid-dim: #86ad00;
  --ink: #0a0c06;
  --panel: #101408;
  --line: #2a3313;
  --hot: #ff3df0;
  --amber: #ffb300;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; overflow: hidden; }

body {
  display: flex;
  background: var(--ink);
  color: var(--acid);
  font-family: 'VT323', monospace;
  font-size: 18px;
}

/* ------------------------------------------------- panel */

#panel {
  width: 400px;
  min-width: 400px;
  height: 100%;
  overflow-y: auto;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px),
    radial-gradient(120% 90% at 30% 0%, #1a2208 0%, var(--panel) 55%, #070903 100%);
  border-right: 2px solid var(--acid);
  padding: 22px 22px 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1000;
  box-shadow: 8px 0 40px rgba(200,255,0,.12);
}

header h1 {
  font-family: 'Bungee Shade', 'Bungee', cursive;
  font-size: 34px;
  line-height: .95;
  color: var(--acid);
  text-shadow: 0 0 18px rgba(200,255,0,.45);
  letter-spacing: 1px;
}
header h1 .o { color: var(--hot); text-shadow: 0 0 18px rgba(255,61,240,.5); }
.tagline {
  margin-top: 8px;
  color: var(--acid-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 15px;
}

/* ------------------------------------------------- transport */

.transport { display: flex; align-items: stretch; gap: 12px; }

.big-btn {
  flex: 1;
  font-family: 'Bungee', cursive;
  font-size: 22px;
  padding: 14px 10px;
  background: var(--acid);
  color: var(--ink);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--acid), 0 0 26px rgba(200,255,0,.35);
  transition: transform .06s ease, background .15s;
}
.big-btn:hover { transform: translateY(-2px); }
.big-btn.playing { background: var(--hot); box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--hot), 0 0 26px rgba(255,61,240,.45); color:#fff; }

.smiley {
  width: 58px;
  display: grid;
  place-items: center;
  border: 2px dashed var(--line);
  user-select: none;
}
.smiley svg { width: 40px; height: 40px; }
.smiley.playing { animation: rave .25s infinite alternate; border-color: var(--acid); filter: drop-shadow(0 0 6px var(--acid)); }
@keyframes rave {
  from { transform: scale(1) rotate(-8deg); }
  to   { transform: scale(1.25) rotate(8deg); }
}

/* ------------------------------------------------- scope + leds */

#scope {
  width: 100%;
  height: 70px;
  background: #050703;
  border: 1px solid var(--line);
}

.section-leds { display: flex; gap: 6px; }
.led {
  flex: 1;
  text-align: center;
  padding: 6px 2px 4px;
  border: 1px solid var(--line);
  color: #3d4a1c;
  font-size: 15px;
  letter-spacing: 1px;
}
.led.on {
  color: var(--ink);
  background: var(--acid);
  box-shadow: 0 0 16px rgba(200,255,0,.6);
}

/* ------------------------------------------------- readouts */

.readouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.ro {
  border: 1px solid var(--line);
  padding: 6px 10px 4px;
  background: rgba(0,0,0,.35);
}
.ro label { display: block; font-size: 13px; color: var(--acid-dim); letter-spacing: 2px; }
.ro span { font-size: 24px; color: var(--acid); text-shadow: 0 0 8px rgba(200,255,0,.4); }
#roChord { color: var(--amber); text-shadow: 0 0 8px rgba(255,179,0,.4); }

/* ------------------------------------------------- groups */

.group { border: 1px solid var(--line); padding: 12px; }
.group-title {
  font-family: 'Bungee', cursive;
  font-size: 13px;
  color: var(--hot);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.mode-btns { display: flex; gap: 8px; }
.mode-btn {
  flex: 1;
  font-family: 'VT323', monospace;
  font-size: 18px;
  padding: 8px 6px;
  background: transparent;
  color: var(--acid-dim);
  border: 1px solid var(--line);
  cursor: pointer;
}
.mode-btn.active {
  background: var(--acid);
  color: var(--ink);
  border-color: var(--acid);
}

.hint { color: #55651f; margin-top: 8px; font-size: 16px; }

.small-btn {
  margin-top: 10px;
  width: 100%;
  font-family: 'VT323', monospace;
  font-size: 18px;
  padding: 7px;
  background: transparent;
  color: var(--amber);
  border: 1px dashed var(--amber);
  cursor: pointer;
}
.small-btn:disabled { color: #4a4a30; border-color: #33331f; cursor: not-allowed; }
.small-btn.armed { background: var(--amber); color: var(--ink); border-style: solid; }

.speed-row { display: flex; align-items: center; gap: 10px; }
.speed-val { min-width: 88px; text-align: right; font-size: 22px; color: var(--amber); }

input[type=range] {
  flex: 1;
  appearance: none;
  height: 4px;
  background: var(--line);
  outline: none;
}
input[type=range]::-webkit-slider-thumb {
  appearance: none;
  width: 18px; height: 18px;
  background: var(--acid);
  box-shadow: 0 0 12px rgba(200,255,0,.7);
  cursor: pointer;
}

footer {
  margin-top: auto;
  padding-top: 10px;
  color: #47531d;
  font-size: 15px;
}
footer a { color: var(--acid-dim); }

/* ------------------------------------------------- map */

#map { flex: 1; height: 100%; background: #0a0c06; }

/* dark acid map: invert OSM tiles */
.leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.8) contrast(1.1) saturate(.4); }

.vehicle-icon {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 5px var(--acid)) drop-shadow(0 0 14px rgba(200,255,0,.6));
  transition: transform .1s;
}
.vehicle-icon.playing { animation: trundle .3s infinite alternate; }
@keyframes trundle {
  from { transform: rotate(-5deg) translateY(0); }
  to   { transform: rotate(5deg) translateY(-3px); }
}

.wp-icon {
  width: 10px; height: 10px;
  background: var(--hot);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px var(--hot);
}

.leaflet-container { font-family: 'VT323', monospace; }
