:root { color-scheme: dark; --bg:#07080d; --ink:#f6f1e8; --accent:#5ad7ff; --theme:#10243a; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 50% -10%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%),
    var(--bg);
}
.top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: max(14px, env(safe-area-inset-top)) 16px 8px;
}
.mark {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.logo {
  margin: 0;
  font-family: Georgia, "Iowan Old Style", Palatino, "Noto Serif", serif;
  font-size: clamp(40px, 11vw, 68px);
  line-height: .9;
  letter-spacing: -.04em;
  font-weight: 700;
}
.logo span { color: var(--accent); }
.sub { margin: 4px 0 0; color: #cbbba6; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.score {
  min-width: 64px;
  text-align: center;
  font-weight: 800;
  font-size: 22px;
  color: var(--accent);
}
main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 14px 12px; gap: 12px; }
.panel {
  width: min(520px, 100%);
  background: rgba(16,14,22,.72);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,.28);
}
.hud { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 10px; color: #d9cbb8; font-size: 13px; }
button, .cta {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-height: 48px;
  padding: 0 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.primary { color: #1a1208; background: linear-gradient(180deg, #ffe6b0, var(--accent)); }
.ghost { color: var(--ink); background: transparent; border: 1px solid color-mix(in srgb, var(--accent) 55%, white); }
.row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; width: min(520px, 100%); }
footer { padding: 8px 16px max(16px, env(safe-area-inset-bottom)); text-align: center; }
.actions { display: flex; justify-content: center; gap: 10px; }
.cta { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; min-width: 132px; }
.cta-main { color: #1a1208; background: linear-gradient(180deg, #ffe6b0, #f0c36a); }
.cta-alt { color: #f6f0e6; background: rgba(255,255,255,.04); border: 1px solid rgba(240,195,106,.6); }
.fine { color: #b7ab9a; font-size: 12px; }
[hidden] { display: none !important; }
canvas { width: min(520px, 100%); height: auto; border-radius: 18px; background: #090b12; touch-action: none; }

.question { margin: 0; text-align: center; font-size: clamp(48px, 14vw, 84px); font-weight: 800; letter-spacing: -.04em; }
.choices { display:grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.choice { font-size: 28px; background: #16324a; color: white; }
.choice.ok { background: #1f8f5b; }
.choice.bad { background: #a33b3b; }
