:root{
  --bg:#0b0e13;
  --ink:#e9f1ff;
  --muted:#8ea2c2;
  --brand:#3af;
  --accent:#ff3a7d;
  --panel:#121826;
  --good:#3bd16f;
  --warn:#ffcc00;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Helvetica Neue",Arial,"Apple Color Emoji","Segoe UI Emoji";
  color:var(--ink);
  background: radial-gradient(1200px 600px at 10% -10%, #1a2540 0%, #0b0e13 55%) no-repeat fixed, var(--bg);
}

.topbar{
  max-width:1100px;
  margin:12px auto 0;
  padding:8px 16px;
}
.title{
  margin:0 0 6px;
  text-align:center;
  font-size: clamp(28px, 4.5vw, 56px);
  letter-spacing:1px;
  text-transform:uppercase;
  font-weight:900;
  background: linear-gradient(90deg, #ffdf00, #ff6a00 25%, #ff00ea 50%, #00e1ff 75%, #00ff9d);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-shadow:0 0 10px rgba(255,255,255,.08);
}
.hud{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  color:var(--muted);
  font-size:14px;
}
.hud .label{color:var(--ink); font-weight:600}

.stage-wrap{
  max-width:1100px;
  margin:8px auto 16px;
  padding:0 16px 16px;
}

.controls{
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
  align-items:center;
  margin:10px 0 14px;
}
.btn{
  appearance:none;
  border:0;
  padding:10px 14px;
  border-radius:14px;
  background:var(--brand);
  color:#001019;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 6px 20px rgba(0,170,255,.25);
}
.btn.primary:hover{filter:brightness(1.05)}
.btn:disabled{opacity:.6; cursor:not-allowed}

.level select{
  background:var(--panel);
  color:var(--ink);
  border:1px solid #243049;
  border-radius:10px;
  padding:8px 12px;
}

.hint{opacity:.8; font-size:13px}

#gameContainer{
  position:relative;
  width:100%;
  max-width:800px;
  margin:0 auto;
  background:linear-gradient(180deg,#0f1523,#0a0e18);
  border:1px solid #1f2a44;
  border-radius:16px;
  box-shadow:0 12px 40px rgba(0,0,0,.45);
  padding:10px;
}
#game{
  display:block;
  width:100%;
  height:auto;
  background: radial-gradient(600px 400px at 50% 40%, rgba(0,255,130,.06), transparent 70%) , #09101e;
  border-radius:10px;
}

/* Unsichtbarer Touch-Overlay für Mobile Eingaben */
#touchOverlay{
  position:absolute;
  inset:10px;
  cursor:pointer;
}

#status{
  text-align:center;
  margin:10px 0 0;
  min-height:22px;
  color:var(--warn);
  font-weight:700;
}

.footer{
  max-width:1100px;
  margin:12px auto 40px;
  padding:0 16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  color:var(--muted);
}
.footer .legal{
  color:var(--ink);
  text-decoration:none;
  border-bottom:1px dashed #4b5d86;
}
.footer .legal:hover{color:#fff}
.copy{font-size:12px; opacity:.9}

/* Kleinere Geräte */
@media (max-width:420px){
  .hud{font-size:13px}
  .hint{display:block; width:100%}
  .controls{justify-content:space-between}
}
