:root{
  --bg0:#060b14;
  --bg1:#071427;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.08);
  --line: rgba(255,255,255,.10);
  --text:#eaf0ff;
  --muted: rgba(234,240,255,.68);
  --accent:#4f7cff;
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --radius:18px;
}

*{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 500px at 18% 15%, rgba(76,87,255,.35), transparent 60%),
    radial-gradient(900px 500px at 82% 22%, rgba(0,200,255,.20), transparent 60%),
    radial-gradient(900px 600px at 70% 80%, rgba(120,60,255,.18), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

.topbar{
  position:sticky; top:0;
  background: rgba(5,10,18,.55);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(255,255,255,.06);
  z-index:10;
}
.topbar-inner{
  max-width:1100px;
  margin:0 auto;
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.brand{display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--text)}
.brand-logo{width:28px; height:28px; object-fit:contain}
.brand-name{font-weight:700; letter-spacing:.2px; opacity:.95}

.topbar-right{display:flex; gap:10px; align-items:center}
.ghost{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color:var(--text);
  padding:8px 12px;
  border-radius:12px;
  text-decoration:none;
  cursor:pointer;
}

.wrap{
  max-width:1100px;
  margin:0 auto;
  padding:26px 18px 60px;
}

.card{
  border-radius:24px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.card-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:22px 22px 16px;
}

.kicker{
  display:inline-block;
  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:rgba(234,240,255,.75);
  margin-bottom:10px;
}

.title{margin:0; font-size:30px; line-height:1.1}
.sub{margin:10px 0 0; color:var(--muted); max-width:520px}

.hud{display:flex; gap:10px; flex-wrap:wrap; align-items:flex-start; justify-content:flex-end}
.pill{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  border-radius:14px;
  padding:10px 12px;
  min-width:110px;
  text-align:right;
}
.pill-label{
  display:block;
  font-size:11px;
  color:rgba(234,240,255,.65);
}
.timer{border-color: rgba(79,124,255,.35);}

.progress{
  height:10px;
  background: rgba(255,255,255,.05);
  border-top:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.bar{
  height:100%;
  width:0%;
  background: linear-gradient(90deg, rgba(79,124,255,.9), rgba(79,124,255,.35));
  transition: width .25s ease;
}

.question{padding:22px}
.prompt{
  font-size:20px;
  font-weight:650;
  margin:0 0 16px;
}

.choices{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}

.choice{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  padding:14px 14px;
  text-align:left;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color:var(--text);
  cursor:pointer;
  transition: transform .08s ease, background .18s ease, border-color .18s ease;
}
.choice:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.06);
  border-color: rgba(79,124,255,.25);
}
.choice:disabled{opacity:.55; cursor:not-allowed; transform:none}

.key{
  width:34px; height:34px;
  border-radius:12px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  font-weight:800;
}
.txt{color: rgba(234,240,255,.88)}

.foot{
  margin-top:16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.note{color:rgba(234,240,255,.65); font-size:13px}

@media (max-width: 860px){
  .card-head{flex-direction:column; align-items:flex-start}
  .hud{justify-content:flex-start}
  .choices{grid-template-columns: 1fr}
}
