@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;900&family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #0f0d0f;
  --panel: #171114;
  --panel-2: #211519;
  --ink: #f4ecd8;
  --muted: #cdbfaf;
  --red: #b50f28;
  --red-dark: #5a0a0a;
  --gold: #d4a047;
  --line: rgba(244,236,216,.14);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 25% 0, rgba(181,15,40,.28), transparent 42%), var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
html.is-embedded body {
  min-height: auto;
}
.game-header {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 16px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(15,13,15,.92);
}
html.is-embedded .game-header {
  min-height: 56px;
  padding-top: 10px;
  padding-bottom: 10px;
}
html.is-embedded .back {
  display: none;
}
.back,
.ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  text-decoration: none;
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: .86rem;
  cursor: pointer;
}
.game-header h1 {
  flex: 1;
  margin: 0;
  color: var(--ink);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(1.55rem, 5vw, 2.15rem);
  line-height: .95;
  letter-spacing: 0;
  text-transform: uppercase;
}
.game-main {
  width: min(100% - 32px, 980px);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 42px) 0 56px;
}
.quiz-intro {
  max-width: 760px;
  margin-bottom: 22px;
}
.quiz-eyebrow {
  margin: 0 0 8px;
  color: #ff4458;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.quiz-intro p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(.98rem, 2.4vw, 1.08rem);
  line-height: 1.55;
}
.game-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}
.game-status span {
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(244,236,216,.045);
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.game-status strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 1.15rem;
  letter-spacing: 0;
  text-transform: none;
}
.quiz-card {
  padding: clamp(18px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(244,236,216,.075), rgba(244,236,216,.025));
  box-shadow: 0 24px 60px rgba(0,0,0,.20);
}
.quiz-prompt-label {
  margin: 0 0 10px;
  color: #ff4458;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
#prompt {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.12rem, 3vw, 1.42rem);
  line-height: 1.45;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.quiz-options {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.quiz-option {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: #111;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.quiz-option:hover {
  transform: translateY(-1px);
  border-color: rgba(212,160,71,.65);
  box-shadow: 0 14px 36px rgba(0,0,0,.18);
}
.quiz-option span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(181,15,40,.10);
  color: var(--red);
  font-weight: 900;
}
.quiz-option strong {
  font-size: 1rem;
  line-height: 1.35;
}
.quiz-option.is-correct {
  border-color: rgba(48,166,91,.7);
  background: #eefaf1;
}
.quiz-option.is-wrong {
  border-color: rgba(181,15,40,.7);
  background: #fff0f2;
}
.quiz-option:disabled {
  cursor: default;
  transform: none;
}
.quiz-feedback,
.quiz-finale {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.quiz-feedback.is-ok { border-color: rgba(48,166,91,.5); }
.quiz-feedback.is-error { border-color: rgba(181,15,40,.6); }
.quiz-feedback h2,
.quiz-finale h2 {
  margin: 0 0 8px;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
}
.quiz-feedback p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.quiz-feedback dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 10px;
  margin: 14px 0 0;
  color: var(--muted);
}
.quiz-feedback dt {
  color: #ff4458;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.quiz-feedback dd { margin: 0; }
.next,
.play-again {
  margin-top: 16px;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.quiz-finale {
  text-align: center;
}
.quiz-finale strong {
  display: block;
  color: var(--gold);
  font-size: clamp(2.4rem, 10vw, 4rem);
  line-height: 1;
}
.quiz-finale p {
  margin: 10px 0 0;
  color: var(--muted);
}
.kbd-hint {
  margin-top: 14px;
  color: rgba(244,236,216,.58);
  font-size: .86rem;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
@media (max-width: 640px) {
  .game-header {
    padding: 14px 16px;
    flex-wrap: wrap;
  }
  .game-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quiz-option {
    grid-template-columns: 34px 1fr;
    min-height: 54px;
  }
  .quiz-option span {
    width: 30px;
    height: 30px;
  }
}
