*, *::before, *::after { box-sizing: border-box; }
:root {
  --bg: #0b1020;
  --card: #121a33;
  --text: #e6ecff;
  --muted: #a8b3d6;
  --primary: #4f7cff;
  --primary-600: #3f66d1;
  --ok: #30c48d;
  --bad: #ff6b6b;
}
html, body { height: 100%; }
body {
  margin: 0;
  background: radial-gradient(80% 80% at 50% 0%, #101939 0%, #0b1020 60%);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  display: grid;
  place-items: center;
  padding: 24px;
}

#app { width: 100%; max-width: 780px; }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(6px);
}

h1, h2 { margin: 0 0 12px 0; line-height: 1.2; }
.lead { margin: 8px 0 16px; color: var(--muted); }

.btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  color: var(--text);
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .08s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn.primary {
  background: linear-gradient(180deg, var(--primary), var(--primary-600));
  border-color: rgba(0,0,0,0.15);
}

.actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 16px; }

.options { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.options .option {
  width: 100%; text-align: left; justify-content: flex-start;
}
.options .option.selected { outline: 2px solid var(--primary); }

.progress { position: relative; height: 10px; background: rgba(255,255,255,0.08); border-radius: 999px; margin-bottom: 16px; }
.progress .bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--primary); border-radius: 999px; transition: width .25s ease; }
.progress .label { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }

.score { font-size: 20px; color: var(--muted); margin-bottom: 12px; }
.review { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.review li { padding: 12px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.review li.ok { border-color: rgba(48,196,141,0.5); }
.review li.bad { border-color: rgba(255,107,107,0.5); }
.review .q { font-weight: 600; margin-bottom: 6px; }
.review .a, .review .c { color: var(--muted); font-size: 14px; }
