:root {
  color-scheme: light;
  --ink: #11112a;
  --cream: #fff6d8;
  --pink: #ff4ecd;
  --orange: #ff9f1c;
  --yellow: #ffe066;
  --mint: #2ec4b6;
  --blue: #3a86ff;
  --purple: #8338ec;
  --red: #ff5d5d;
  --shadow: rgba(12, 10, 35, 0.35);
  --glow: 0 0 30px rgba(255, 255, 255, 0.35);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --stroke: 4px solid #11112a;
  --hud-offset: clamp(140px, 18vh, 230px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Baloo 2", "Trebuchet MS", sans-serif;
  background: radial-gradient(ellipse 120% 80% at 50% -20%, #fff4d2 0%, #e8ecff 42%, #c8d9ff 100%);
  color: var(--ink);
  overflow-x: hidden;
  overflow-y: auto;
}

#app {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  position: relative;
  isolation: isolate;
}

.bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.blob {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.8;
  animation: float 12s ease-in-out infinite;
}

.blob-1 {
  background: radial-gradient(circle at top, #ff4ecd, #8338ec);
  top: -120px;
  left: -80px;
}

.blob-2 {
  background: radial-gradient(circle at top, #ffe066, #ff9f1c);
  bottom: -160px;
  right: -120px;
  animation-delay: -4s;
}

.blob-3 {
  background: radial-gradient(circle at top, #2ec4b6, #3a86ff);
  top: 30%;
  right: 5%;
  width: 320px;
  height: 320px;
  animation-delay: -7s;
}

.sparkles {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#fff 2px, transparent 2px);
  background-size: 80px 80px;
  opacity: 0.35;
  animation: shimmer 8s linear infinite;
}

.grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.2;
}

.hud {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1.1fr 1.6fr 1fr;
  gap: 18px;
  align-items: center;
  padding: 12px 32px 4px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  border: var(--stroke);
  box-shadow: 0 8px 0 var(--ink);
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.logo__img {
  display: block;
  max-height: clamp(36px, 5.5vh, 54px);
  max-width: min(100%, 240px);
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.brand-lockup {
  display: flex;
  justify-content: center;
  margin: 0 auto 12px;
}

.brand-lockup__img {
  display: block;
  max-width: min(100%, 400px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand-lockup--compact {
  margin-bottom: 16px;
}

.brand-lockup--compact .brand-lockup__img {
  max-width: min(100%, 280px);
}

.brand-lockup--screen {
  margin-bottom: 8px;
}

.brand-lockup--screen .brand-lockup__img {
  max-width: min(100%, 360px);
}

.brand-lockup--complete {
  margin-bottom: 6px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-lg);
  border: var(--stroke);
  box-shadow: 0 8px 0 rgba(17, 17, 42, 0.35);
}

.brand-lockup--complete .brand-lockup__img {
  max-width: min(100%, 320px);
}

.progress-wrap {
  display: grid;
  gap: 8px;
  padding: 12px 16px;
  background: #ffffffd1;
  border-radius: var(--radius-lg);
  border: var(--stroke);
  box-shadow: 0 10px 0 var(--ink);
}

.progress-label {
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.progress-bar {
  position: relative;
  height: 18px;
  background: #11112a;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, #ffe066, #ff4ecd, #2ec4b6);
  transition: width 0.6s ease;
}

.section-meta {
  font-family: "Bungee", "Comic Sans MS", cursive;
  font-size: clamp(18px, 2vw, 28px);
  text-transform: uppercase;
  text-align: right;
  padding: 12px 16px;
  background: #ffffffd1;
  border-radius: var(--radius-lg);
  border: var(--stroke);
  box-shadow: 0 10px 0 var(--ink);
}

.hud-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}

.menu-toggle {
  font-family: "Bungee", "Comic Sans MS", cursive;
  font-size: clamp(18px, 2vw, 24px);
  padding: 10px 16px;
  border-radius: var(--radius-lg);
  border: var(--stroke);
  background: var(--cream);
  box-shadow: 0 8px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 10;
}

.menu-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 0 var(--ink);
}

.menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
  height: 18px;
}

.menu-bar {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--ink);
}

.menu-items {
  display: none;
  flex-direction: column;
  gap: 12px;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  border: var(--stroke);
  box-shadow: 0 10px 0 var(--ink);
  z-index: 9;
  min-width: 280px;
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  align-items: stretch;
  animation: menuSlideDown 0.2s ease;
}

.menu-divider {
  height: 2px;
  background: var(--ink);
  opacity: 0.2;
  margin: 4px 0;
}

.menu-items .control-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.menu-items .control-btn {
  width: 100%;
  font-size: clamp(12px, 1.4vw, 16px);
  padding: 10px 18px;
}

.menu-items .volume-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  padding: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
}

.menu-items .volume-group label {
  font-size: clamp(12px, 1.4vw, 16px);
}

.menu-items .volume-group input[type="range"] {
  width: 100%;
}

.menu-items .toggle {
  width: 100%;
  justify-content: space-between;
}

.menu-items .section-meta {
  text-align: center;
  width: 100%;
}

.menu-items .hud-btn {
  width: 100%;
}

@keyframes menuSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-items.is-open {
  display: flex;
}

.hud-btn {
  font-family: "Bungee", "Comic Sans MS", cursive;
  font-size: clamp(12px, 1.4vw, 16px);
  padding: 8px 14px;
  border-radius: 999px;
  border: var(--stroke);
  background: #ffffff;
  box-shadow: 0 6px 0 var(--ink);
  cursor: pointer;
}

.stage {
  position: relative;
  z-index: 2;
  width: min(94vw, calc((100vh - var(--hud-offset)) * 16 / 9));
  max-height: calc(100vh - var(--hud-offset));
  height: calc(100vh - var(--hud-offset));
  margin: 0 auto 28px;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Form / welcome flows: drop fixed 16:9 so content fits viewport height */
.stage:has(.screen--signup),
.stage:has(.screen--landing),
.stage:has(.screen--intro),
.stage:has(.screen--loading) {
  aspect-ratio: unset;
  width: min(94vw, 520px);
  height: auto;
  min-height: 0;
  max-height: calc(100vh - var(--hud-offset) - 12px);
  margin-bottom: 12px;
  place-items: start center;
  align-self: start;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.stage.is-fading {
  opacity: 0.75;
  transform: scale(0.985);
}

.screen {
  width: 100%;
  min-height: 100%;
  display: grid;
  position: relative;
  align-content: center;
  justify-items: center;
  grid-auto-rows: min-content;
  padding: clamp(16px, 2.4vw, 36px);
  text-align: center;
  gap: clamp(12px, 1.6vw, 22px);
  animation: screenIn 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-x: hidden;
  overflow-y: auto;
}

.screen--signup,
.screen--landing,
.screen--intro,
.screen--loading {
  align-content: start;
  justify-items: stretch;
  padding: clamp(8px, 2vw, 20px) clamp(12px, 3vw, 24px) clamp(16px, 3vh, 28px);
  gap: clamp(8px, 1.5vh, 16px);
  min-height: auto;
}

.screen--landing .brand-lockup--screen .brand-lockup__img,
.screen--intro .brand-lockup--screen .brand-lockup__img {
  max-width: min(100%, 260px);
  max-height: min(16vh, 110px);
}

.screen--landing .title,
.screen--intro .title {
  font-size: clamp(20px, 4.5vw, 44px);
}

.screen > * {
  max-width: min(100%, 1100px);
}

.control-bar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-lg);
  border: var(--stroke);
  box-shadow: 0 10px 0 var(--ink);
  max-width: min(92vw, 1200px);
}

.control-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.control-btn {
  font-size: clamp(12px, 1.4vw, 16px);
  padding: 10px 18px;
}

.volume-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Bungee", "Comic Sans MS", cursive;
  font-size: clamp(12px, 1.4vw, 16px);
}

.volume-group input[type="range"] {
  width: 140px;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Bungee", "Comic Sans MS", cursive;
  font-size: clamp(12px, 1.4vw, 16px);
  padding: 8px 12px;
  border-radius: 999px;
  border: var(--stroke);
  background: #ffffff;
  box-shadow: 0 6px 0 var(--ink);
}

.toggle input {
  width: 18px;
  height: 18px;
}

.timer-badge {
  font-family: "Bungee", "Comic Sans MS", cursive;
  font-size: clamp(16px, 2vw, 26px);
  padding: 10px 18px;
  border-radius: 999px;
  background: #11112a;
  color: #fff;
  letter-spacing: 1px;
  box-shadow: 0 8px 0 var(--ink);
}

.timer-badge.urgent {
  background: #ff5d5d;
  animation: pulse 0.8s ease-in-out infinite;
}

.card {
  background: #fffaf0;
  border-radius: var(--radius-xl);
  border: var(--stroke);
  padding: clamp(20px, 3vw, 36px);
  box-shadow: 0 16px 0 var(--ink);
  max-width: min(100%, 920px);
}

.title {
  font-family: "Bungee", "Comic Sans MS", cursive;
  font-size: clamp(30px, 3.8vw, 58px);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
}

.subtitle {
  font-size: clamp(15px, 2vw, 24px);
  font-weight: 600;
  margin: 0;
}

.subtitle--muted {
  opacity: 0.88;
  font-weight: 600;
}

.eyebrow {
  font-family: "Bungee", "Comic Sans MS", cursive;
  font-size: clamp(11px, 1.2vw, 14px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: var(--purple);
}

.eyebrow--on-dark {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 2px 2px 0 var(--ink);
}

.lede {
  font-size: clamp(15px, 1.85vw, 20px);
  font-weight: 600;
  line-height: 1.45;
  margin: 0;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.lede--tight {
  max-width: 48ch;
}

.card--hero {
  text-align: center;
}

.screen--landing .card--hero {
  padding: clamp(14px, 2.5vw, 28px) clamp(14px, 3vw, 28px);
  box-shadow: 0 10px 0 var(--ink);
}

.screen--landing .lede--tight {
  font-size: clamp(13px, 3.2vw, 18px);
  line-height: 1.35;
}

.screen--signup .signup-card {
  text-align: left;
  max-width: min(100%, 480px);
  margin-inline: auto;
  padding: clamp(14px, 2.5vw, 24px) clamp(14px, 3vw, 28px);
  box-shadow: 0 10px 0 var(--ink);
}

.screen--signup {
  text-align: center;
}

.screen--signup .brand-lockup--screen {
  margin-bottom: 4px;
}

.screen--signup .brand-lockup--screen .brand-lockup__img {
  max-width: min(100%, 260px);
  max-height: min(18vh, 120px);
}

.signup-title {
  font-size: clamp(18px, 4.2vw, 34px);
  text-align: center;
  margin-bottom: 6px;
  line-height: 1.15;
}

.screen--signup .lede {
  font-size: clamp(13px, 3.2vw, 17px);
  line-height: 1.35;
  margin-bottom: 4px;
}

.signup-form {
  display: grid;
  gap: clamp(10px, 2vh, 14px);
  margin-top: 12px;
}

.field {
  display: grid;
  gap: 6px;
  text-align: left;
}

.field-label {
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 700;
}

.field-input {
  font-family: inherit;
  font-size: clamp(14px, 3.5vw, 17px);
  font-weight: 600;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: var(--stroke);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  width: 100%;
}

.field-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--blue), 0 4px 0 var(--ink);
}

.field-input::placeholder {
  color: rgba(17, 17, 42, 0.45);
  font-weight: 600;
}

.form-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: #ffe8e8;
  border: 3px solid var(--ink);
  font-weight: 700;
  font-size: clamp(14px, 1.6vw, 17px);
  color: #5a1010;
}

.signup-actions {
  justify-content: stretch;
  margin-top: 4px;
}

.signup-actions .btn {
  width: 100%;
  justify-content: center;
}

.big-message {
  font-family: "Bungee", "Comic Sans MS", cursive;
  font-size: clamp(36px, 4.8vw, 80px);
  margin: 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.btn {
  font-family: "Bungee", "Comic Sans MS", cursive;
  font-size: clamp(18px, 2vw, 28px);
  padding: 14px 30px;
  border-radius: 999px;
  border: var(--stroke);
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 8px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 0 var(--ink);
}

.btn.primary {
  background: var(--pink);
  color: #fff;
  text-shadow: 2px 2px 0 var(--ink);
  animation: pulse 1.6s ease-in-out infinite;
}

.btn.primary.btn--solid {
  animation: none;
}

.btn.primary.btn--solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 0 var(--ink);
}

.btn.secondary {
  background: var(--mint);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 6px 0 var(--ink);
  animation: none;
}

.question-card {
  display: grid;
  gap: 14px;
  width: min(100%, 940px);
}

.question-layout {
  width: min(100%, 1200px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);
  gap: clamp(12px, 1.8vw, 22px);
  align-items: start;
  justify-content: center;
  margin: 0 auto;
}

.question-layout--single {
  grid-template-columns: 1fr;
  width: min(100%, 940px);
}

.question-panel {
  position: relative;
}

.lifelines {
  display: grid;
  gap: 14px;
  align-content: start;
  background: #fff9ed;
  padding-block: 18px;
  width: 100%;
  max-width: 300px;
}

.lifelines-title {
  font-family: "Bungee", "Comic Sans MS", cursive;
  font-size: clamp(18px, 2vw, 24px);
  margin: 0 0 8px;
}

.lifeline {
  font-family: "Bungee", "Comic Sans MS", cursive;
  font-size: clamp(14px, 1.6vw, 18px);
  text-align: left;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: var(--stroke);
  background: #ffffff;
  box-shadow: 0 6px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.lifeline:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 0 var(--ink);
}

.lifeline.used,
.lifeline:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  text-decoration: line-through;
  transform: none;
  box-shadow: 0 6px 0 var(--ink);
}

.lifeline-note {
  font-family: "Bungee", "Comic Sans MS", cursive;
  font-size: clamp(12px, 1.4vw, 16px);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: #11112a;
  color: #fff;
}

.question-text {
  font-size: clamp(18px, 2.3vw, 30px);
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
}

.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 10px;
}

.option {
  font-size: clamp(15px, 1.7vw, 20px);
  font-weight: 700;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  border: var(--stroke);
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 8px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.25s ease, filter 0.2s ease;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.option:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 0 var(--ink);
  filter: brightness(1.02);
}

.option.selected {
  background: var(--yellow);
  box-shadow: 0 0 0 4px #11112a inset, 0 14px 0 var(--ink);
}

.option.correct {
  background: #8ef9b3;
}

.option.wrong {
  background: #ffb3b3;
}

.option.eliminated {
  opacity: 0.1;
  transform: scale(0.9);
  pointer-events: none;
  filter: grayscale(1);
}

.option.remaining {
  box-shadow: 0 0 0 4px #11112a inset, 0 0 24px rgba(255, 224, 102, 0.7);
}

.badge {
  font-family: "Bungee", "Comic Sans MS", cursive;
  font-size: clamp(16px, 1.6vw, 22px);
  padding: 8px 16px;
  border-radius: 999px;
  background: #11112a;
  color: #fff;
  letter-spacing: 1px;
}

.badge.section-badge {
  font-size: clamp(11px, 1.35vw, 15px);
  letter-spacing: 0.5px;
  line-height: 1.25;
  max-width: min(100%, 520px);
  text-align: center;
}

.question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.locked-preview {
  position: relative;
  background: #ffffffd0;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: var(--stroke);
  width: min(100%, 900px);
}

.locked-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 42, 0.7);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "Bungee", "Comic Sans MS", cursive;
  font-size: clamp(20px, 3vw, 34px);
  text-transform: uppercase;
}

.intro-instructions .intro-quote {
  font-style: italic;
  font-weight: 600;
  margin: 0 0 16px;
}

.intro-sections {
  margin: 0;
  padding-left: 1.25rem;
  font-size: clamp(16px, 1.9vw, 22px);
  font-weight: 600;
  line-height: 1.45;
}

.results-band-card {
  margin: 16px auto 0;
  max-width: min(100%, 640px);
  text-align: center;
  background: #fff9ed;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  padding-inline-start: clamp(26px, 3.2vw, 40px);
}

.results-band-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: var(--mint);
  border-right: 3px solid var(--ink);
}

.results-band--high::before {
  background: linear-gradient(180deg, #ffe066, #2ec4b6);
}

.results-band--mid::before {
  background: linear-gradient(180deg, #ff9f1c, #3a86ff);
}

.results-band--low::before {
  background: linear-gradient(180deg, #ff9f9f, #ff5d5d);
}

.results-band-title {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.4vw, 28px);
}

.results-band-body {
  margin: 0;
}

.results-scoring-note {
  opacity: 0.92;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.answer-lock {
  font-family: "Bungee", "Comic Sans MS", cursive;
  font-size: clamp(28px, 4vw, 54px);
  margin: 0;
}

.countdown {
  font-size: clamp(32px, 5vw, 80px);
  font-family: "Bungee", "Comic Sans MS", cursive;
  color: var(--red);
  text-shadow: 3px 3px 0 var(--ink);
  animation: pulse 0.8s ease-in-out infinite;
}

.correct-screen .big-message,
.unlock-screen .big-message,
.complete-screen .big-message {
  color: #fff;
  text-shadow: 4px 4px 0 var(--ink), 0 0 24px rgba(255, 255, 255, 0.45),
    0 0 48px rgba(255, 224, 102, 0.45);
}

.correct-screen,
.unlock-screen,
.complete-screen {
  background: radial-gradient(circle at top, #ffe066, #ff4ecd, #8338ec);
  border-radius: var(--radius-xl);
  border: var(--stroke);
  box-shadow: 0 16px 0 var(--ink);
  color: #fff;
}

.wrong-screen {
  background: radial-gradient(circle at top, #ff9f9f, #ff5d5d);
  border-radius: var(--radius-xl);
  border: var(--stroke);
  box-shadow: 0 16px 0 var(--ink);
  color: #fff;
  animation: shake 0.4s ease;
}

.answer-locked-screen {
  backdrop-filter: blur(6px);
  border-radius: var(--radius-xl);
  border: var(--stroke);
  box-shadow: 0 16px 0 var(--ink);
  background: rgba(17, 17, 42, 0.8);
  color: #fff;
  transform: scale(1.02);
  animation: lockPulse 0.9s ease-in-out;
}

.answer-locked-screen .option {
  cursor: default;
}

.answer-locked-screen .option.selected {
  background: var(--yellow);
  color: var(--ink);
}

.answer-locked-screen .question-card,
.answer-locked-screen .question-text {
  color: var(--ink);
}

.answer-locked-screen .question-card {
  background: #fff5e8;
}

.lifeline-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 42, 0.85);
  display: grid;
  place-items: center;
  z-index: 5;
  border-radius: var(--radius-xl);
  animation: screenIn 0.4s ease;
}

.lifeline-modal {
  width: min(90%, 640px);
}

.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.confetti span {
  position: absolute;
  width: 14px;
  height: 26px;
  background: var(--yellow);
  opacity: 0.8;
  animation: confettiFall 2.4s ease-in-out infinite;
}

.confetti span:nth-child(2n) {
  background: var(--pink);
  animation-delay: -0.4s;
}

.confetti span:nth-child(3n) {
  background: var(--mint);
  animation-delay: -0.8s;
}

.confetti span:nth-child(4n) {
  background: var(--blue);
  animation-delay: -1.2s;
}

.spotlight {
  width: min(60vw, 640px);
  height: min(40vw, 420px);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), transparent 70%);
  filter: blur(2px);
  animation: glow 2s ease-in-out infinite;
}

.mascot {
  position: absolute;
  right: 4vw;
  bottom: 4vh;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #fff;
  border: var(--stroke);
  box-shadow: 0 10px 0 var(--ink);
  display: grid;
  place-items: center;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

.mascot-face {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #ffffff 0%, #e8d4ff 35%, var(--purple) 72%, var(--blue) 100%);
  border: 3px solid var(--ink);
  box-shadow: inset 0 -4px 0 rgba(17, 17, 42, 0.12);
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-18px);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(80px);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  50% {
    transform: translateX(10px);
  }
  75% {
    transform: translateX(-6px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes lockPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  60% {
    transform: scale(1.03);
    opacity: 1;
  }
  100% {
    transform: scale(1.02);
  }
}

@keyframes confettiFall {
  0% {
    transform: translateY(-10%) rotate(0deg);
  }
  100% {
    transform: translateY(110%) rotate(360deg);
  }
}

@keyframes glow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@media (max-width: 960px) {
  :root {
    --hud-offset: clamp(130px, 22vh, 240px);
  }

  .hud {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 8px 16px 4px;
    gap: 10px;
  }

  .logo__img {
    max-height: clamp(28px, 7vh, 44px);
    max-width: min(100%, 200px);
  }

  .progress-wrap {
    padding: 8px 12px;
    gap: 6px;
  }

  .progress-label {
    font-size: clamp(10px, 2.8vw, 13px);
  }

  .progress-bar {
    height: 14px;
  }

  .menu-toggle {
    padding: 8px 14px;
  }

  .stage:has(.screen--signup),
  .stage:has(.screen--landing),
  .stage:has(.screen--intro),
  .stage:has(.screen--loading) {
    width: min(100%, 94vw);
    max-height: calc(100vh - var(--hud-offset) - 8px);
  }

  .section-meta {
    text-align: center;
  }

  .hud-actions {
    justify-content: center;
  }

  .menu-items {
    right: 0;
    left: 0;
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
    max-width: 95vw;
    max-height: 80vh;
  }

  .menu-items .control-group {
    align-items: stretch;
  }

  .options {
    grid-template-columns: 1fr;
  }

  .question-layout {
    grid-template-columns: 1fr;
  }

  .lifelines {
    width: 100%;
  }

  .control-bar {
    position: static;
    transform: none;
    margin: 12px auto 20px;
  }

  .mascot {
    display: none;
  }
}
