:root {
  --bg: #14121c;
  --panel: #1f1b2b;
  --panel-2: #2a2539;
  --text: #f1ebdc;
  --muted: #b3aa98;
  --gold: #d9b45a;
  --correct: #4fa36c;
  --wrong: #c2484d;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  font-family: Georgia, "Times New Roman", serif;
  background: radial-gradient(ellipse at top, #2b2240 0%, var(--bg) 60%) fixed;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

a { color: var(--gold); }

.site-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #ffffff14;
}

.brand-pic { width: 28px; height: 28px; vertical-align: -7px; border-radius: 5px; }

.brand {
  font-size: 1.25rem;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: .02em;
}

main {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0 0 .5rem; color: var(--gold); }
h2 { margin: 0 0 .25rem; }
.lede { color: var(--muted); margin: 0 0 2rem; font-size: 1.1rem; }

.quiz-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.quiz-card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  text-align: left;
  background: var(--panel);
  border: 1px solid #ffffff14;
  border-radius: var(--radius);
  padding: 1.25rem;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: transform .15s, border-color .15s;
}
.quiz-card:hover, .quiz-card:focus-visible { transform: translateY(-3px); border-color: var(--gold); outline: none; }
.card-pic { width: 72px; height: 72px; border-radius: 8px; box-shadow: 0 3px 10px #0008; }
.quiz-card .title { font-size: 1.15rem; font-weight: bold; }
.quiz-card .desc { color: var(--muted); font-size: .95rem; }
.quiz-card .meta { margin-top: auto; color: var(--gold); font-size: .85rem; }

.progress {
  height: 6px;
  background: var(--panel-2);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: .5rem;
}
.progress > div { height: 100%; background: var(--gold); transition: width .3s; }
.counter { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }

.question { font-size: 1.35rem; margin: 0 0 1.25rem; }

.options { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }

.option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  text-align: center;
  font: inherit;
  font-size: 1.05rem;
  padding: 1.1rem .75rem;
  background: var(--panel);
  color: var(--text);
  border: 2px solid #ffffff14;
  border-radius: var(--radius);
  cursor: pointer;
}
.option:hover:not(:disabled), .option:focus-visible { border-color: var(--gold); outline: none; }
.option:disabled { cursor: default; }
.option-pic {
  display: block;
  width: 120px;
  height: 120px;
  font-size: 80px;
  line-height: 120px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 14px #0008;
}
.option-text { line-height: 1.3; }
@media (max-width: 420px) {
  .option-pic { width: 88px; height: 88px; font-size: 58px; line-height: 88px; }
  .option { font-size: .95rem; padding: .9rem .5rem; }
}
.option.correct { border-color: var(--correct); background: #4fa36c26; }
.option.wrong { border-color: var(--wrong); background: #c2484d26; }

.feedback { min-height: 1.5rem; margin: 1rem 0; color: var(--muted); }

.btn {
  font: inherit;
  font-weight: bold;
  padding: .75rem 1.4rem;
  border-radius: 99px;
  border: none;
  background: var(--gold);
  color: #1a1424;
  cursor: pointer;
}
.btn.secondary { background: transparent; color: var(--gold); border: 2px solid var(--gold); }
.btn:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.result {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  border-top: 6px solid var(--accent, var(--gold));
}
.result-pic { width: 140px; height: 140px; border-radius: 10px; box-shadow: 0 4px 16px #0008; margin-bottom: 1rem; }
.result-label { text-transform: uppercase; letter-spacing: .2em; font-size: .85rem; margin: 0; }
.result .sent-note { font-size: .95rem; font-style: italic; }
.result h2 { font-size: 2rem; color: var(--accent, var(--gold)); }
.result p { color: var(--muted); font-size: 1.1rem; }
.result .actions { justify-content: center; }

.gate {
  background: var(--panel);
  border: 1px solid #ffffff14;
  border-top: 6px solid var(--gold);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .75rem;
}
.gate h2 { color: var(--gold); font-size: 1.8rem; }
.gate-pic { width: 120px; height: 120px; border-radius: 10px; box-shadow: 0 4px 16px #0008; }
.gate-lede { color: var(--muted); margin: 0 0 .5rem; }
.field-label { align-self: stretch; text-align: left; font-weight: bold; max-width: 420px; width: 100%; margin: 0 auto; }
.gate input[type="email"] {
  width: 100%;
  max-width: 420px;
  font: inherit;
  font-size: 1.05rem;
  padding: .8rem 1rem;
  border-radius: 10px;
  border: 2px solid #ffffff24;
  background: var(--bg);
  color: var(--text);
}
.gate input[type="email"]:focus { outline: none; border-color: var(--gold); }
.check { display: flex; gap: .6rem; align-items: flex-start; text-align: left; max-width: 420px; color: var(--muted); font-size: .95rem; cursor: pointer; }
.check input { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.turnstile { min-height: 65px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.form-status { min-height: 1.5rem; margin: 0; color: var(--gold); }
.fine-print { color: var(--muted); font-size: .85rem; margin: 0; }

.prose { line-height: 1.65; }
.prose h2 { color: var(--gold); margin-top: 2rem; }
.prose li { margin-bottom: .4rem; }

.site-footer {
  text-align: center;
  padding: 1.25rem;
  color: var(--muted);
  font-size: .8rem;
  border-top: 1px solid #ffffff14;
}

/* Age check */
.date-row { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }
.date-row select {
  font: inherit;
  font-size: 1.05rem;
  padding: .7rem .9rem;
  border-radius: 10px;
  border: 2px solid #ffffff24;
  background: var(--bg);
  color: var(--text);
  min-width: 9rem;
}
.date-row select:focus { outline: none; border-color: var(--gold); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Cookie consent banner: equal-weight Accept / Reject */
.consent {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 720px;
  margin: 0 auto;
  background: var(--panel-2);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 30px #000a;
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
  z-index: 10;
}
.consent p { margin: 0; flex: 1 1 320px; font-size: .95rem; }
.consent-actions { display: flex; gap: .6rem; }
.link-button {
  background: none; border: none; padding: 0; margin-left: .5rem;
  font: inherit; color: var(--gold); text-decoration: underline; cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
