:root{
  --bg:#07070a;
  --card:rgba(255,255,255,.06);
  --card2:rgba(255,255,255,.04);
  --line:rgba(255,255,255,.12);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.62);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(1200px 800px at 70% 20%, rgba(255,255,255,.08), transparent 50%),
              radial-gradient(900px 700px at 20% 70%, rgba(255,255,255,.06), transparent 55%),
              var(--bg);
  color:var(--text);
}

.wrap{max-width:1100px;margin:0 auto;padding:28px}
.head h1{margin:0;font-size:34px;letter-spacing:-.02em}
.head p{margin:10px 0 0;color:var(--muted)}

.panel{
  margin-top:22px;
  display:grid;
  grid-template-columns: 1fr 560px;
  gap:18px;
  align-items:start;
}

.controls{
  padding:18px;
  border-radius:18px;
  background: linear-gradient(180deg, var(--card), var(--card2));
  border:1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

label{display:grid;gap:8px;margin-bottom:14px}
label span{font-size:12px;color:var(--muted)}
input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.35);
  color: var(--text);
  outline:none;
}
input:focus{border-color:rgba(255,255,255,.28)}

.row{display:flex;gap:10px;margin:10px 0 14px}

.btn{
  flex:1;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid transparent;
  font-weight:800;
  letter-spacing:.02em;
  cursor:pointer;
  background:#fff;
  color:#0b0b10;
  transition: transform .08s ease, opacity .2s ease;
}
.btn:active{transform: translateY(1px)}
.btn:disabled{opacity:.55;cursor:not-allowed}

.btn.ghost{
  background: transparent;
  color: var(--text);
  border:1px solid var(--line);
}

.result{
  margin-top:10px;
  padding:14px;
  border-radius:16px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.25);
}
.muted{font-size:12px;color:var(--muted)}
.big{font-size:34px;font-weight:900;margin-top:6px}

.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.chips span{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  font-size:12px;
  color: rgba(255,255,255,.86);
}

.fineprint{margin-top:12px;font-size:11px;color:rgba(255,255,255,.45)}

.stage{display:flex;justify-content:center}
.wheelShell{
  position:relative;
  width:560px;
  height:560px;
  display:grid;
  place-items:center;
}

#wheelCanvas{
  width:520px;
  height:520px;
  border-radius:50%;
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
}

.pointer{
  position:absolute;
  top:8px;
  width:0;height:0;
  border-left:14px solid transparent;
  border-right:14px solid transparent;
  border-bottom:26px solid rgba(255,255,255,.92);
  filter: drop-shadow(0 10px 10px rgba(0,0,0,.45));
}

@media (max-width: 980px){
  .panel{grid-template-columns: 1fr; }
  .wheelShell{width:100%;}
}
