:root {
  --bg: #0f172a;        /* slate-900 */
  --card: #111827;      /* gray-900 */
  --text: #e5e7eb;      /* gray-200 */
  --muted: #9ca3af;     /* gray-400 */
  --primary: #60a5fa;   /* blue-400 */
  --correct: #16a34a;   /* green-600 */
  --wrong: #dc2626;     /* red-600 */
  --border: #1f2937;    /* gray-800 */
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 700px at 10% -20%, #1f2937, var(--bg)), var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.container {
  max-width: 800px;
  margin: 32px auto;
  padding: 0 16px;
}

h1 { font-size: 28px; margin: 0 0 16px; }
.footer { color: var(--muted); font-size: 14px; margin-top: 16px; }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.meta { margin-bottom: 10px; }
.meta .row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.progress { position: relative; height: 8px; background: #0b1220; border: 1px solid var(--border); border-radius: 999px; margin-top: 8px; overflow: hidden; }
.progress-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: linear-gradient(90deg, #1e40af, #60a5fa); transition: width 0.25s ease; }

.status { color: var(--muted); margin-bottom: 8px; min-height: 20px; }
.qid { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.question { font-size: 20px; margin: 8px 0 16px; }
.options { display: grid; gap: 10px; }

.media { margin: 8px 0 12px; display: grid; gap: 8px; }
.media img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0b1220;
}

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  background: #0b1220;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.05s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.option:hover { border-color: #334155; }
.option:active { transform: translateY(1px); }

.option.correct { background: rgba(22, 163, 74, 0.15); border-color: rgba(22, 163, 74, 0.7); }
.option.wrong { background: rgba(220, 38, 38, 0.15); border-color: rgba(220, 38, 38, 0.7); }

.badge {
  display: inline-block;
  min-width: 26px;
  height: 26px;
  padding: 2px 0;
  text-align: center;
  border-radius: 999px;
  background: #0a1427;
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
}

.controls { margin-top: 16px; display: flex; gap: 10px; }
.btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0b1220;
  color: var(--text);
  cursor: pointer;
}
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn:not([disabled]):hover { border-color: #334155; }
