:root {
  --bg: #0f172a;
  --card: #111827;
  --muted: #94a3b8;
  --text: #e5e7eb;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --good: #15803d;
  --bad: #b91c1c;
  --border: #1f2937;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(180deg, #020617 0%, #111827 100%);
  color: var(--text);
}
.container {
  width: min(900px, calc(100% - 32px));
  margin: 32px auto;
}
.card {
  background: rgba(17, 24, 39, 0.96);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.hidden { display: none; }
h1, h2 { margin-top: 0; }
.row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 0;
}
label { font-weight: 700; }
input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #334155;
  background: #0f172a;
  color: var(--text);
  font-size: 16px;
}
button {
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
button:hover { background: var(--accent-2); }
button:disabled { opacity: .5; cursor: not-allowed; }
button.secondary { margin-top: 16px; background: #334155; }
.info, .feedback { margin-top: 12px; color: var(--muted); }
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  font-weight: 700;
}
.imageWrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: center;
}
.imageWrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}
.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.choice {
  width: 100%;
  text-align: left;
  background: #1e293b;
  border: 1px solid #334155;
}
.choice.correct { background: var(--good); }
.choice.wrong { background: var(--bad); }
@media (max-width: 700px) {
  .choices { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; }
}
