
:root{
  --bg:#0b1020;
  --card:#121a33;
  --text:#eaf0ff;
  --muted:#a9b4d6;
  --accent:#ff9f1a;
  --ok:#22c55e;
  --bad:#ef4444;
  --line:rgba(255,255,255,.10);
  --shadow: 0 18px 70px rgba(0,0,0,.40);
  --radius:20px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background:
    radial-gradient(900px 600px at 10% -10%, rgba(255,159,26,.25), transparent 60%),
    radial-gradient(900px 600px at 90% 0%, rgba(59,130,246,.18), transparent 55%),
    radial-gradient(900px 700px at 50% 120%, rgba(34,197,94,.10), transparent 60%),
    var(--bg);
}
.bg-orbs{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:-1}
.orb{position:absolute;border-radius:999px;filter:blur(40px);opacity:.25}
.o1{width:420px;height:420px;background:var(--accent);left:-120px;top:120px}
.o2{width:520px;height:520px;background:#3b82f6;right:-180px;top:-140px}
.o3{width:480px;height:480px;background:#22c55e;left:40%;bottom:-280px}

.topbar{
  position:sticky;top:0;z-index:50;
  display:flex;align-items:center;justify-content:space-between;
  gap:14px;padding:14px 16px;
  backdrop-filter: blur(10px);
  background: rgba(11,16,32,.55);
  border-bottom:1px solid var(--line);
}
.brand{display:flex;align-items:center;gap:12px}
.brand-badge{
  width:44px;height:44px;border-radius:16px;display:grid;place-items:center;
  background: linear-gradient(135deg, rgba(255,159,26,.28), rgba(255,159,26,.06));
  border:1px solid rgba(255,159,26,.25);
  box-shadow: var(--shadow);
  font-size:20px;
}
.brand-title{font-weight:900;letter-spacing:.2px}
.brand-subtitle{font-size:12px;color:var(--muted)}

.hud{display:flex;gap:10px;align-items:stretch}
.hud-card{
  min-width:86px;
  padding:8px 10px;border-radius:16px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.hud-label{font-size:11px;color:var(--muted)}
.hud-value{font-size:18px;font-weight:900;color:var(--accent);line-height:1.1}

.container{max-width:1200px;margin:0 auto;padding:16px}
.game{
  display:grid;grid-template-columns: 1.3fr .85fr;
  gap:14px;
}
.panel{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.panel-top{
  display:flex;justify-content:space-between;align-items:center;
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.status{font-weight:800}
.level{color:var(--muted);font-weight:700}

.question-box{padding:16px}
.q-number{
  display:inline-flex;gap:8px;align-items:center;
  padding:6px 10px;border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color:var(--muted);
  font-size:12px;
}
.question{margin:12px 0 8px;font-size:24px;line-height:1.25;font-weight:900}
.meta{margin-top:6px;color:var(--muted);font-size:12px}

.answers{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  padding: 0 16px 16px;
}
.answer{
  padding:14px 14px;
  border-radius:18px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color:var(--text);
  cursor:pointer;
  text-align:left;
  font-weight:800;
  transition: transform .08s ease, border-color .15s ease, background .15s ease;
}
.answer:hover{transform: translateY(-1px);border-color: rgba(255,159,26,.35)}
.answer:disabled{opacity:.55;cursor:not-allowed;transform:none}
.answer .key{
  display:inline-grid;place-items:center;
  width:30px;height:30px;border-radius:12px;
  background: rgba(255,159,26,.16);
  border:1px solid rgba(255,159,26,.25);
  color:var(--accent);
  font-weight:900;
  margin-right:10px;
}
.answer.correct{
  border-color: rgba(34,197,94,.55);
  background: rgba(34,197,94,.12);
}
.answer.wrong{
  border-color: rgba(239,68,68,.55);
  background: rgba(239,68,68,.12);
}
.answer.dimmed{opacity:.18;filter: grayscale(1)}

.lifelines{
  display:flex;flex-wrap:wrap;gap:10px;
  padding: 12px 16px 16px;
  border-top:1px solid var(--line);
}
.btn{
  padding:10px 12px;border-radius:16px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color:var(--text);
  cursor:pointer;
  font-weight:900;
  transition: transform .08s ease, border-color .15s ease;
}
.btn:hover{transform: translateY(-1px);border-color: rgba(255,159,26,.35)}
.btn:disabled{opacity:.5;cursor:not-allowed;transform:none}
.btn.primary{
  background: linear-gradient(135deg, rgba(255,159,26,.35), rgba(255,159,26,.10));
  border-color: rgba(255,159,26,.35);
}
.btn.ghost{background: rgba(255,255,255,.02)}
.btn.danger{border-color: rgba(239,68,68,.30)}
.count{
  display:inline-grid;place-items:center;
  min-width:22px;height:22px;padding:0 6px;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid var(--line);
  margin-left:6px;
  color:var(--accent);
}

.side{display:flex;flex-direction:column;gap:12px}
.side-card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
  box-shadow: var(--shadow);
  padding:12px;
}
.side-title{font-weight:900;margin-bottom:10px}
.result{
  padding:10px 12px;border-radius:16px;
  border:1px dashed rgba(255,255,255,.16);
  background: rgba(255,255,255,.02);
  color:var(--muted);
  min-height:52px;
  display:flex;align-items:center;
}
.side-actions{display:flex;gap:10px;margin-top:10px;flex-wrap:wrap}
.tip ul{margin:0;padding-left:18px;color:var(--muted);line-height:1.55}

.ladder{
  margin:0;padding-left:20px;color:var(--muted);
  display:grid;gap:6px;
}
.ladder li{
  padding:6px 8px;border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}
.ladder li.active{
  color:var(--text);
  border-color: rgba(255,159,26,.35);
  background: rgba(255,159,26,.10);
}
.ladder li.done{
  color: rgba(234,240,255,.92);
  border-color: rgba(34,197,94,.25);
  background: rgba(34,197,94,.08);
}
.footer{margin-top:14px;text-align:center;color:var(--muted);font-size:12px}

@media (max-width: 980px){
  .game{grid-template-columns:1fr}
  .answers{grid-template-columns:1fr}
  .question{font-size:22px}
  .hud-card{min-width:78px}
}
