/* ============================
   TEKNOSTEPS — OFFICIAL STYLES
   Brand: #050505 | #B6FF00 | #F1F1F1
   Fonts: Orbitron (headlines) · Raleway (body)
   ============================ */

:root {
  --black: #050505;
  --acid: #b6ff00;
  --white: #f1f1f1;
  --muted: #a6a6a6;
  --border: rgba(255, 255, 255, .14);
  --shadow: 0 0 40px rgba(182, 255, 0, .18);
  --glow: 0 0 30px rgba(182, 255, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: 'Raleway', ui-sans-serif, system-ui, Arial, sans-serif;
  overflow-x: hidden;
}

button, a, select, input { font: inherit; }
button { cursor: pointer; }

/* ============================
   LAYOUT SHELL
   ============================ */

.page-shell {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

.background-video,
.visual-fallback,
.overlay,
.scanlines {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.background-video {
  object-fit: cover;
  z-index: -5;
  filter: contrast(1.12) saturate(1.1) brightness(.92);
}

/* Velo scuro per lo "stacco" al cambio pavimento (sopra i video, sotto overlay) */
.floor-dip {
  position: fixed;
  inset: 0;
  background: #000;
  opacity: 0;
  z-index: -4;
  pointer-events: none;
}

/* ============================
   PELLE RADIO (ON AIR + palinsesto)
   ============================ */
.radio-schedule {
  display: block;
  margin-top: 3px;
  color: rgba(182, 255, 0, .75);
  font-size: .72rem;
  letter-spacing: .04em;
}
.on-air {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .3);
  font-size: .8rem;
  white-space: nowrap;
  transition: color .3s ease;
}
body.playing .on-air {
  color: #b6ff00;
  text-shadow: 0 0 12px rgba(182, 255, 0, .6);
  animation: onAirPulse 1.4s ease-in-out infinite;
}
@keyframes onAirPulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ============================
   SUPPORTA IL MOVIMENTO (monetizzazione)
   ============================ */
.support-area {
  padding: clamp(48px, 8vw, 100px) clamp(20px, 6vw, 90px);
  text-align: center;
  position: relative;
  z-index: 1;
}
.support-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  letter-spacing: .12em;
  color: #fff;
}
.support-sub {
  color: rgba(255, 255, 255, .6);
  max-width: 620px;
  margin: 12px auto 40px;
  font-size: clamp(.9rem, 2vw, 1.05rem);
}
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  max-width: 1000px;
  margin: 0 auto;
}
.support-card {
  background: linear-gradient(160deg, rgba(20, 20, 20, .9), rgba(8, 8, 8, .9));
  border: 1px solid rgba(182, 255, 0, .18);
  border-radius: 18px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: border-color .25s ease, transform .25s ease;
}
.support-card:hover { border-color: rgba(182, 255, 0, .5); transform: translateY(-4px); }
.support-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: .04em;
}
.support-card p { color: rgba(255, 255, 255, .6); font-size: .9rem; line-height: 1.5; flex: 1; }
.support-btn {
  margin-top: 10px;
  display: inline-block;
  background: #b6ff00;
  color: #050505;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: .05em;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 999px;
  transition: box-shadow .25s ease, transform .1s ease;
}
.support-btn:hover { box-shadow: 0 0 24px rgba(182, 255, 0, .5); }
.support-btn:active { transform: scale(.97); }

.visual-fallback {
  z-index: -6;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 62%, rgba(182,255,0,.14), transparent 18%),
    radial-gradient(circle at 15% 30%, rgba(182,255,0,.10), transparent 25%),
    linear-gradient(120deg, #020202, #111 50%, #030303);
}

.floor-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(182,255,0,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(182,255,0,.07) 1px, transparent 1px);
  background-size: 80px 80px;
  transform: perspective(700px) rotateX(64deg) translateY(22%);
  transform-origin: center bottom;
  opacity: .32;
  animation: gridMove 5s linear infinite;
}

@keyframes gridMove {
  to { background-position: 0 80px, 80px 0; }
}

.step-shadow {
  position: absolute;
  bottom: 8%;
  width: 18vw;
  max-width: 220px;
  min-width: 120px;
  height: 38vw;
  max-height: 460px;
  min-height: 230px;
  border-radius: 45% 45% 38% 38%;
  background: linear-gradient(#1b1b1b, #020202);
  border: 2px solid rgba(182,255,0,.25);
  box-shadow: 0 0 35px rgba(182,255,0,.12);
  opacity: .55;
}

.step-left  { left: 36%;  transform: rotate(8deg);  animation: stepPulse 1s ease-in-out infinite alternate; }
.step-right { right: 36%; transform: rotate(-8deg); animation: stepPulse 1s ease-in-out infinite alternate-reverse; }

@keyframes stepPulse {
  to { bottom: 10%; opacity: .72; }
}

.overlay {
  z-index: -3;
  /* Look VISIBILE (come l'ultima versione approvata): la camminata si vede bene,
     il testo a sinistra resta leggibile col gradiente laterale. */
  background:
    linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.12) 55%, rgba(0,0,0,.5)),
    linear-gradient(0deg, rgba(0,0,0,.72), rgba(0,0,0,.05) 45%, rgba(0,0,0,.6));
}

/* ============================
   LOGO MARCHIO (sottofondo)
   ============================ */
.brand-lockup {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(82vw, 900px);
  height: max-content;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2.2vw, 24px);
  z-index: -4;                 /* sopra i video di sfondo, sotto overlay/contenuto */
  opacity: 1;
  pointer-events: none;
  transition: opacity 700ms ease;
}
.brand-logo-mark {
  width: 100%;
  height: auto;
  max-height: 58vh;
  object-fit: contain;
  filter: drop-shadow(0 0 70px rgba(182, 255, 0, .30));
  animation: brandGlow 4.5s ease-in-out infinite;
}
.brand-slogan {
  margin: 0;
  color: #b6ff00;
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-size: clamp(.6rem, 2vw, 1.1rem);
  text-align: center;
  text-shadow: 0 0 18px rgba(182, 255, 0, .5);
}
@keyframes brandGlow {
  0%, 100% { filter: drop-shadow(0 0 45px rgba(182, 255, 0, .16)); }
  50%      { filter: drop-shadow(0 0 95px rgba(182, 255, 0, .42)); }
}
/* Da FERMO (pagina aperta o stop): niente video, solo il logo grande.
   In PLAY: il video di camminata prende il posto e il logo sfuma via. */
body:not(.playing) .background-video { opacity: 0 !important; }
body.playing .brand-lockup { opacity: 0; }

.scanlines {
  z-index: 20;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
  opacity: .5;
}

/* ============================
   NAVBAR
   ============================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(16px, 4vw, 56px);
  backdrop-filter: blur(14px);
  background: linear-gradient(rgba(0,0,0,.7), transparent);
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .12em;
}

.logo-lockup img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
}

.desktop-menu {
  display: flex;
  gap: 30px;
}

.desktop-menu a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  text-transform: uppercase;
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .1em;
  transition: color .2s;
}

.desktop-menu a:hover { color: var(--acid); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language {
  background: rgba(0,0,0,.65);
  color: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
}

.join-btn {
  background: var(--acid);
  color: var(--black);
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: box-shadow .2s, transform .15s;
}

.join-btn:hover {
  box-shadow: var(--glow);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  background: rgba(0,0,0,.65);
  color: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 16px;
}

/* ============================
   MOBILE MENU
   ============================ */

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 25;
  background: rgba(5,5,5,.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  backdrop-filter: blur(20px);
}

.mobile-menu.hidden { display: none; }

.mobile-menu .mob-link {
  color: white;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .2s;
}

.mobile-menu .mob-link:hover { color: var(--acid); }

/* ============================
   HERO
   ============================ */

.hero {
  min-height: 100vh;
  padding: 145px clamp(18px, 5vw, 82px) 60px;
  display: grid;
  align-content: center;
  justify-items: start;
  max-width: 1180px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--acid);
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .12em;
  margin-bottom: 20px;
}

.live-pill span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 20px var(--acid);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(.85); }
}

.hero h1 {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(42px, 8vw, 100px);
  line-height: .9;
  letter-spacing: .03em;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 em {
  font-style: normal;
  color: var(--acid);
  text-shadow: 0 0 40px rgba(182,255,0,.3);
}

.hero-sub {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(16px, 2.2vw, 24px);
  font-weight: 600;
  margin: 22px 0 32px;
  color: rgba(255,255,255,.9);
  letter-spacing: .02em;
}

/* ============================
   METRICS
   ============================ */

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  gap: 12px;
  width: min(720px, 100%);
  margin-bottom: 22px;
}

.metric {
  border: 1px solid var(--border);
  background: rgba(0,0,0,.52);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  transition: border-color .2s;
}

.metric:hover { border-color: rgba(182,255,0,.4); }

.metric small {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
}

.metric strong {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  color: white;
  margin-top: 4px;
}

/* ============================
   PLAYER CARD
   ============================ */

.player-card {
  width: min(640px, 100%);
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.65);
  border-radius: 18px;
  padding: 14px;
  margin: 8px 0 28px;
  backdrop-filter: blur(12px);
}

.track-cover {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background:
    radial-gradient(circle, rgba(182,255,0,.75), transparent 30%),
    linear-gradient(135deg, #111, #333);
  box-shadow: 0 0 24px rgba(182,255,0,.18);
  flex-shrink: 0;
}

.track-info small {
  color: var(--acid);
  text-transform: uppercase;
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  font-size: 10px;
  letter-spacing: .1em;
}

.track-info strong {
  display: block;
  margin: 4px 0 9px;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
}

.track-time {
  color: var(--muted);
  font-size: 12px;
  font-family: 'Orbitron', sans-serif;
}

.wave {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 24px;
}

.wave span {
  width: 5px;
  background: var(--acid);
  border-radius: 4px;
  animation: wave 1s ease-in-out infinite alternate;
}

.wave span:nth-child(1) { height: 10px; }
.wave span:nth-child(2) { animation-delay: .1s; height: 18px; }
.wave span:nth-child(3) { animation-delay: .2s; height: 24px; }
.wave span:nth-child(4) { animation-delay: .3s; height: 13px; }
.wave span:nth-child(5) { animation-delay: .4s; height: 21px; }
.wave span:nth-child(6) { animation-delay: .5s; height: 16px; }
.wave span:nth-child(7) { animation-delay: .6s; height: 23px; }

@keyframes wave {
  from { height: 7px; }
  to   { height: 25px; }
}

/* ============================
   ENTER BUTTON
   ============================ */

.enter {
  width: min(420px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(0,0,0,.55);
  color: white;
  border: 2px solid var(--acid);
  border-radius: 16px;
  padding: 22px 28px;
  box-shadow: 0 0 30px rgba(182,255,0,.22);
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: box-shadow .25s, transform .2s;
}

.enter:hover {
  box-shadow: 0 0 50px rgba(182,255,0,.45);
  transform: translateY(-2px);
}

.enter b {
  font-size: 40px;
  line-height: 1;
  color: var(--acid);
}

/* ============================
   QUICK ACTIONS
   ============================ */

.quick-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.quick-actions button,
.quick-actions a,
.form-panel button,
.share-controls button {
  border: 1px solid rgba(182,255,0,.45);
  background: rgba(0,0,0,.56);
  color: white;
  border-radius: 999px;
  padding: 12px 18px;
  text-transform: uppercase;
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .07em;
  text-decoration: none;
  transition: background .2s, color .2s;
  cursor: pointer;
}

.quick-actions button:hover,
.form-panel button:hover,
.share-controls button:hover {
  background: var(--acid);
  color: var(--black);
}

/* ============================
   LIVE SECTION
   ============================ */

.live-section {
  padding: 80px clamp(18px, 5vw, 82px);
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(182,255,0,.04) 50%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.live-section .live-pill {
  justify-content: center;
  margin-bottom: 24px;
}

.live-headline {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 48px;
}

.live-headline em {
  font-style: normal;
  color: var(--acid);
  text-shadow: 0 0 40px rgba(182,255,0,.3);
}

.live-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.live-stat {
  border: 1px solid var(--border);
  background: rgba(0,0,0,.5);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(12px);
}

.live-stat strong {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(20px, 3vw, 32px);
  color: var(--acid);
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(182,255,0,.25);
}

.live-stat small {
  color: var(--muted);
  text-transform: uppercase;
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
}

/* ============================
   CONTENT GRID
   ============================ */

.content-grid,
.submit-area {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 60px clamp(16px, 4vw, 56px);
}

.content-card,
.form-panel {
  border: 1px solid var(--border);
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 28px;
  transition: border-color .25s;
}

.content-card:hover { border-color: rgba(182,255,0,.35); }

.card-icon {
  font-size: 32px;
  margin-bottom: 14px;
  filter: grayscale(40%);
}

.content-card h2,
.form-panel h2 {
  margin: 0 0 12px;
  color: var(--acid);
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.content-card p {
  color: #d4d4d4;
  line-height: 1.65;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
}

/* ============================
   SUBMIT AREA
   ============================ */

.submit-area {
  grid-template-columns: repeat(2, 1fr);
  padding-top: 0;
}

.form-panel {
  display: grid;
  gap: 12px;
}

.form-panel input {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: white;
  border-radius: 12px;
  padding: 14px 16px;
  font-family: 'Raleway', sans-serif;
  transition: border-color .2s;
}

.form-panel input:focus {
  outline: none;
  border-color: rgba(182,255,0,.5);
}

.form-panel label {
  display: flex;
  gap: 10px;
  color: #c8c8c8;
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

/* ============================
   FOOTER
   ============================ */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 48px clamp(16px, 4vw, 56px);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: white;
  letter-spacing: .15em;
}

.footer-slogan {
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--acid);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer-social {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-social a {
  color: var(--muted);
  text-decoration: none;
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: color .2s;
}

.footer-social a:hover { color: var(--acid); }

.footer-legal {
  display: flex;
  gap: 20px;
  align-items: center;
  color: var(--muted);
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}

.footer-legal a:hover { color: white; }

/* ============================
   MODAL
   ============================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0,0,0,.92);
  display: grid;
  place-items: center;
  padding: 18px;
}

.hidden { display: none; }

.modal-card {
  width: min(560px, 100%);
  max-height: 94vh;
  overflow: auto;
  background: #080808;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  position: relative;
}

.close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: 0;
  color: white;
  font-size: 32px;
  line-height: 1;
}

.close:hover { color: var(--acid); }

.modal-card h2 {
  margin-right: 40px;
  color: var(--acid);
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  letter-spacing: .06em;
}

.modal-card p { color: #ccc; font-family: 'Raleway', sans-serif; }

#shareCanvas {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #111;
}

.share-controls {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 860px) {
  .desktop-menu { display: none; }
  .join-btn { display: none; }
  .hamburger { display: block; }

  .hero {
    justify-items: stretch;
    text-align: left;
    padding-top: 115px;
  }

  .metrics { grid-template-columns: repeat(2, 1fr); }

  .player-card {
    grid-template-columns: 56px 1fr;
  }

  .track-time { grid-column: 2; }

  .content-grid,
  .submit-area { grid-template-columns: 1fr; }

  .live-stats { grid-template-columns: 1fr; }

  .step-left  { left: 27%; }
  .step-right { right: 27%; }
}

/* ============================
   WALK ENGINE — DOUBLE BUFFER
   ============================ */

/* Il secondo buffer parte invisibile; il crossfade è gestito da walk-engine.js */
.background-video.buffer-b {
  opacity: 0;
  z-index: -5;
}
.background-video {
  transition: opacity 350ms linear;
  /* leggero upscale + blur per ammorbidire 576px su schermi grandi */
  transform: scale(1.04);
}

/* ============================
   DEV PANEL (taratura sync)
   ============================ */
.dev-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  width: 280px;
  padding: 14px;
  border: 1px solid var(--acid);
  border-radius: 12px;
  background: rgba(5, 5, 5, .92);
  box-shadow: 0 0 30px rgba(182, 255, 0, .25);
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  color: var(--white);
  backdrop-filter: blur(6px);
}
.dev-panel.hidden { display: none; }
.dev-row { margin-bottom: 12px; }
.dev-row:last-child { margin-bottom: 0; }
.dev-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--acid);
  letter-spacing: 1px;
  font-weight: 700;
}
.dev-title button {
  background: none; border: none; color: var(--white);
  font-size: 18px; line-height: 1; padding: 0 4px;
}
.dev-row label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .5px;
}
.dev-row output { color: var(--acid); font-weight: 700; }
.dev-row input[type="range"] { width: 100%; accent-color: var(--acid); }
.dev-seg { display: flex; gap: 6px; }
.dev-seg button {
  flex: 1;
  padding: 6px 4px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--white);
  font-size: 11px;
}
.dev-seg button.on {
  background: var(--acid);
  color: #050505;
  border-color: var(--acid);
  font-weight: 700;
}
.dev-status {
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
  word-break: break-word;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

@media (max-width: 520px) {
  .dev-panel { width: calc(100vw - 32px); }
  .nav { padding: 12px 14px; }
  .logo-lockup img { width: 38px; height: 38px; }
  .logo-lockup span { font-size: 12px; }
  .hero h1 { font-size: clamp(36px, 13vw, 60px); }
  .metrics { gap: 9px; }
  .metric { padding: 12px; }
  .metric strong { font-size: 18px; }
  .enter { font-size: 17px; padding: 18px; }
  .live-section { padding: 50px 16px; }
  .content-grid, .submit-area { padding: 30px 16px; }
}
