:root{
  --bg:#070b14;
  --line: rgba(255,255,255,.14);
  --text:#eaf1ff;
  --muted:#a9b8d8;
}
*{box-sizing:border-box}
html,body{height:100%; margin:0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial}
body{
  background: radial-gradient(900px 500px at 20% 0%, rgba(0,208,255,.18), transparent 60%),
              radial-gradient(900px 500px at 80% 20%, rgba(44,255,147,.12), transparent 60%),
              linear-gradient(180deg, #0b1020, var(--bg));
  color:var(--text);
}
.hud{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:12px 14px;
  border-bottom:1px solid var(--line);
  background: rgba(7,11,20,.68);
  backdrop-filter: blur(12px);
}
.title{font-weight:900; letter-spacing:.2px}
.sub{color:var(--muted); font-size:12px; margin-top:2px}
.right{display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end}
.chip{
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  padding:8px 10px;
  border-radius: 999px;
  font-weight:800;
  font-size:12px;
}
.btn{cursor:pointer}
.stage{position:relative; height: calc(100% - 58px);}
canvas{width:100%; height:100%; display:block}
.controls{
  position:absolute; left:12px; right:12px; bottom:12px;
  display:flex; align-items:flex-end; justify-content:space-between; gap:10px;
  pointer-events:none;
}
.pad{display:flex; gap:10px; pointer-events:auto}
.ctl{
  min-width:68px; height:54px;
  border-radius: 16px;
  border:1px solid var(--line);
  background: rgba(15,23,48,.65);
  color:var(--text);
  font-weight:900;
  letter-spacing:.4px;
  cursor:pointer;
}
.ctl.primary{
  border-color: rgba(0,208,255,.40);
  background: linear-gradient(135deg, rgba(0,208,255,.95), rgba(44,255,147,.70));
  color:#04101a;
}
.overlay{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  background: rgba(0,0,0,.55);
  padding:18px;
}
.panel{
  max-width: 720px;
  width: 100%;
  border-radius: 22px;
  border:1px solid var(--line);
  background: rgba(7,11,20,.82);
  padding:18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.panel h1{margin:0 0 10px; font-size:28px}
.panel p{margin:0 0 10px; color:rgba(234,241,255,.90)}
.panel ul{margin:0 0 14px; color:var(--muted)}
.start{
  width:100%;
  height:54px;
  border-radius:16px;
  border:1px solid rgba(0,208,255,.35);
  background: linear-gradient(135deg, rgba(0,208,255,.95), rgba(44,255,147,.70));
  color:#04101a;
  font-weight:900;
  cursor:pointer;
}
@media (max-width:700px){
  .controls{flex-direction:column; align-items:stretch}
  .pad{justify-content:space-between}
  .ctl{flex:1}
}

