/* Pre-quiz ("You're Almost There!") page refinements. Loaded after quiz.css.
   Everything is scoped to the setup screen. New elements use the pq- prefix;
   their names avoid the words the shared stylesheets match by wildcard. */

#setup-screen .prequiz-shell {
  --pq-ink: #0b1a55;
  --pq-muted: #5a6a8d;
  --pq-line: #dbe6f8;
  --pq-blue: #1458f0;
}

#setup-screen .prequiz-shell :where(p, span, strong, small, em, li, dt, dd, button) {
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

#setup-screen .prequiz-shell :where(h2, h3),
#setup-screen .prequiz-card-kicker,
#setup-screen .prequiz-selector strong,
#setup-screen .prequiz-topic strong,
#setup-screen .prequiz-start-button,
#setup-screen .pq-ready,
#setup-screen .pq-val {
  font-family: "Manrope", "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- top banner ---------- */
#setup-screen .pq-ready {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
  padding: 0.5rem 1.1rem 0.5rem 0.85rem;
  border: 1px solid #cfe0fb;
  border-radius: 999px;
  background: linear-gradient(180deg, #f1f6ff, #e3edfd);
  box-shadow: 0 6px 16px rgba(31, 72, 150, 0.1);
  color: var(--pq-blue);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
}

#setup-screen .pq-ready lucide-icon {
  width: 1.15em;
  height: 1.15em;
}

#setup-screen .prequiz-hero h2 {
  margin: 0 0 0.7rem;
  color: var(--pq-ink);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

#setup-screen .prequiz-hero h2 em {
  position: relative;
  font-style: normal;
  color: var(--pq-blue);
  white-space: nowrap;
}

/* Hand-drawn style underline beneath the highlighted word. */
#setup-screen .prequiz-hero h2 em::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: -0.12em;
  height: 0.12em;
  border-radius: 999px;
  background: linear-gradient(90deg, #f6b721, #ffd76a);
  transform: rotate(-1.2deg);
}

#setup-screen .prequiz-hero-copy > p:not(.prequiz-eyebrow) {
  margin: 0 0 1.3rem;
  color: #33456f;
  font-size: clamp(0.98rem, 1.5vw, 1.15rem);
}

#setup-screen .prequiz-selector {
  gap: 0.85rem;
  min-height: 74px;
  padding: 0.75rem 1rem 0.75rem 0.8rem;
  border-radius: 16px;
}

#setup-screen .pq-ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #e3edff;
  color: var(--pq-blue);
}

#setup-screen .pq-ico--round {
  border-radius: 50%;
}

#setup-screen .pq-ico lucide-icon {
  width: 24px;
  height: 24px;
}

#setup-screen .prequiz-selector strong {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 1.12rem;
}

#setup-screen .pq-level-name {
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: #dbe8ff;
  color: #1a56d6;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
}

#setup-screen .pq-perks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 1.4rem 0 0;
  padding: 0;
  max-width: 560px;
  list-style: none;
}

#setup-screen .pq-perks li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.4rem;
  border-left: 1px solid #e3ebf8;
  color: var(--pq-ink);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

#setup-screen .pq-perks li:first-child {
  border-left: 0;
}

#setup-screen .pq-perks li > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e6efff;
  color: var(--pq-blue);
}

#setup-screen .pq-perks li > span.is-gold {
  background: #fff3d6;
  color: #e79a06;
}

#setup-screen .pq-perks lucide-icon {
  width: 26px;
  height: 26px;
}

#setup-screen .prequiz-artwork {
  position: relative;
}

#setup-screen .pq-begin {
  position: absolute;
  z-index: 3;
  right: 4%;
  bottom: 22%;
  padding: 0.7rem 1rem;
  border-radius: 16px 16px 16px 4px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(31, 72, 150, 0.18);
  color: var(--pq-ink);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.25;
  transform: rotate(-4deg);
}

#setup-screen .pq-begin lucide-icon {
  width: 1.1em;
  height: 1.1em;
  color: #f0462f;
  vertical-align: -0.15em;
}

/* ---------- section headers ---------- */
#setup-screen .pq-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.1rem;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

#setup-screen .pq-head__ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--pq-line);
  border-radius: 50%;
  background: #f1f6ff;
  color: var(--pq-blue);
}

#setup-screen .pq-head__ico lucide-icon {
  width: 26px;
  height: 26px;
}

#setup-screen .pq-head .prequiz-card-kicker {
  margin: 0;
  color: #0f3fc4;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

#setup-screen .pq-head__sub {
  margin: 0.2rem 0 0;
  color: var(--pq-muted);
  font-size: 0.9rem;
}

/* ---------- your choices ---------- */
#setup-screen .pq-topic-box {
  padding: 0.7rem;
  border: 1px solid var(--pq-line);
  border-radius: 18px;
  background: #ffffff;
}

#setup-screen .pq-topic-box .prequiz-topic {
  min-height: 0;
  padding: 0.6rem 0.5rem 0.9rem;
  border: 0;
  background: none;
}

#setup-screen .pq-topic-text {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

#setup-screen .pq-topic-text small {
  color: #33456f;
  font-size: 0.88rem;
  font-weight: 500;
}

#setup-screen .pq-topic-text strong {
  color: var(--pq-ink);
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

#setup-screen .pq-topic-art {
  display: block;
  width: 100%;
  height: clamp(150px, 20vw, 220px);
  border-radius: 14px;
  background: linear-gradient(135deg, #2f6dff, #7fb0ff);
  object-fit: cover;
}

#setup-screen .pq-topic-box .prequiz-note {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0.8rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid #d5e2f8;
  border-radius: 12px;
  background: #f1f6ff;
  color: #22346a;
  font-size: 0.95rem;
}

#setup-screen .pq-topic-box .prequiz-note lucide-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--pq-blue);
}

/* ---------- quiz details ---------- */
#setup-screen .pq-rows {
  margin: 0;
  border: 1px solid var(--pq-line);
  border-radius: 14px;
  overflow: hidden;
}

#setup-screen .pq-rows > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  min-height: 60px;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--pq-line);
}

#setup-screen .pq-rows > div:last-child {
  border-bottom: 0;
}

#setup-screen .pq-rows dt {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  color: var(--pq-ink);
}

#setup-screen .pq-rows dt > lucide-icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  color: var(--pq-blue);
}

#setup-screen .pq-label {
  display: grid;
  gap: 0.15rem;
  color: var(--pq-ink);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
}

#setup-screen .pq-label small {
  color: var(--pq-muted);
  font-size: 0.8rem;
  font-weight: 400;
}

#setup-screen .pq-rows dd {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  margin: 0;
  min-width: 0;
  text-align: right;
}

#setup-screen .pq-rows dd small {
  color: var(--pq-muted);
  font-size: 0.78rem;
  font-weight: 400;
}

#setup-screen .pq-val {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.3;
}

#setup-screen .pq-val--count { background: #e8edff; color: #14227a; }
#setup-screen .pq-val--level { background: #cdf5dc; color: #0c6b3c; }
#setup-screen .pq-val--time { background: #ffecd2; color: #7a3d00; }
#setup-screen .pq-val--type { background: #e7e3ff; color: #2c1f9a; }
#setup-screen .pq-val--none { background: #ffe1e1; color: #c81e1e; }

#setup-screen .pq-val--reward {
  display: grid;
  gap: 0.15rem;
  background: #e6f8ee;
}

#setup-screen .pq-val--reward .is-positive {
  color: #067a48;
  font-size: 0.95rem;
}

#setup-screen .pq-val--reward .is-negative {
  margin: 0;
  color: #d92d20;
  font-size: 0.78rem;
  font-weight: 700;
}

#setup-screen .prequiz-info {
  border-color: #c9daf7;
  border-radius: 12px;
}

/* ---------- start ---------- */
#setup-screen .prequiz-action-row .prequiz-start-button {
  min-height: 64px;
  padding-inline: clamp(2rem, 5vw, 3.6rem);
  gap: 0.8rem;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(11, 67, 224, 0.34);
}

#setup-screen .prequiz-start-button lucide-icon {
  width: 1.25em;
  height: 1.25em;
}

/* ---------- tablet and phone ---------- */
@media (max-width: 900px) {
  #setup-screen .pq-begin {
    right: 3%;
    bottom: 14%;
    font-size: 0.82rem;
    padding: 0.5rem 0.75rem;
  }
}

@media (max-width: 640px) {
  #setup-screen .pq-ready {
    margin-bottom: 0.8rem;
    font-size: 0.82rem;
  }

  #setup-screen .prequiz-hero h2 {
    font-size: clamp(1.75rem, 8.6vw, 2.3rem);
  }

  #setup-screen .pq-perks {
    margin-top: 1rem;
  }

  #setup-screen .pq-perks li {
    padding: 0 0.15rem;
    font-size: 0.72rem;
  }

  #setup-screen .pq-perks li > span {
    width: 42px;
    height: 42px;
  }

  #setup-screen .pq-perks lucide-icon {
    width: 21px;
    height: 21px;
  }

  #setup-screen .pq-begin {
    display: none;
  }

  #setup-screen .pq-head {
    gap: 0.7rem;
  }

  #setup-screen .pq-head__ico {
    width: 44px;
    height: 44px;
  }

  #setup-screen .pq-head .prequiz-card-kicker {
    font-size: 1rem;
  }

  #setup-screen .pq-head__sub {
    font-size: 0.82rem;
  }

  #setup-screen .pq-rows > div {
    gap: 0.5rem;
    padding: 0.55rem 0.6rem;
  }

  #setup-screen .pq-rows dt {
    gap: 0.6rem;
    flex: 1 1 42%;
  }

  #setup-screen .pq-rows dd {
    flex: 1 1 58%;
  }

  #setup-screen .pq-rows dt > lucide-icon {
    width: 22px;
    height: 22px;
  }

  #setup-screen .pq-label {
    font-size: 0.86rem;
  }

  #setup-screen .pq-label small {
    font-size: 0.72rem;
  }

  #setup-screen .pq-val {
    padding: 0.25rem 0.55rem;
    font-size: 0.8rem;
  }

  #setup-screen .pq-val--reward .is-positive {
    font-size: 0.82rem;
  }

  #setup-screen .pq-val--reward .is-negative,
  #setup-screen .pq-rows dd small {
    font-size: 0.7rem;
  }

  #setup-screen .prequiz-action-row .prequiz-start-button {
    min-height: 56px;
    font-size: 1.05rem;
  }
}

/* ---------- perks: two lines each ---------- */
#setup-screen .pq-perks li {
  font-size: 0.82rem;
  white-space: nowrap;
}

/* ---------- phone: a plain top-to-bottom flow ---------- */
/* The older phone layout pinned the banner to a fixed height and placed the
   picture and the two selectors by absolute position, which leaves no room for
   anything new. Here each piece simply follows the one before it. */
@media (max-width: 600px) {
  #setup-screen .prequiz-hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: auto;
  }

  #setup-screen .prequiz-hero-copy {
    height: auto;
    padding: 18px 14px 6px;
  }

  #setup-screen .prequiz-hero h2 {
    max-width: none;
  }

  #setup-screen .prequiz-hero-copy > p:not(.prequiz-eyebrow) {
    max-width: none;
    margin: 0 0 1rem;
    font-size: 0.92rem;
  }

  #setup-screen .prequiz-selectors {
    position: static !important;
    inset: auto !important;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    width: auto;
    margin: 0 !important;
    padding: 0;
  }

  #setup-screen .prequiz-selector {
    min-height: 60px;
    gap: 0.55rem;
    padding: 0.5rem 0.6rem;
    border-radius: 14px;
  }

  #setup-screen .pq-ico {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  #setup-screen .pq-ico lucide-icon {
    width: 19px;
    height: 19px;
  }

  #setup-screen .prequiz-selector strong {
    gap: 0.3rem;
    font-size: 0.95rem;
  }

  #setup-screen .pq-level-name {
    padding: 0.12rem 0.45rem;
    font-size: 0.64rem;
  }

  #setup-screen .pq-perks li {
    white-space: normal;
  }

  #setup-screen .prequiz-artwork {
    position: relative;
    inset: auto;
    order: 2;
    width: 100%;
    height: auto;
    margin: 0.4rem 0 0;
    display: grid;
    place-items: center;
  }

  #setup-screen .prequiz-artwork img {
    position: relative;
    inset: auto;
    width: min(78%, 300px);
    height: auto;
    transform: none;
  }

  #setup-screen .pq-topic-art {
    height: clamp(130px, 40vw, 180px);
  }
}

@media (max-width: 380px) {
  #setup-screen .prequiz-selectors {
    grid-template-columns: minmax(0, 1fr);
  }

  #setup-screen .pq-label small {
    display: none;
  }
}

/* Perk labels stay inside their own column at every width. */
#setup-screen .pq-perks {
  max-width: 600px;
}

#setup-screen .pq-perks li {
  padding: 0 0.25rem;
  font-size: 0.8rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 1024px) {
  #setup-screen .pq-perks li {
    font-size: 0.74rem;
  }
}

/* --------------------------------------------------------------------------
   Pre-quiz briefing rebuild — compact, header-free and shared across screens.
   This block is intentionally last because quiz.css contains legacy variants.
   -------------------------------------------------------------------------- */
body#quiz-page {
  background:
    radial-gradient(circle at 4% 20%, rgba(57, 129, 255, .15), transparent 18rem),
    radial-gradient(circle at 95% 3%, rgba(140, 188, 255, .24), transparent 20rem),
    linear-gradient(135deg, #fafdff 0%, #eaf3ff 55%, #f9fcff 100%) !important;
}

#quiz-page .quiz-main-shell {
  width: min(1180px, calc(100% - 40px));
  padding: clamp(24px, 3.6vw, 54px) 0 42px;
}

#setup-screen .prequiz-shell {
  --pq-ink: #0d286c;
  --pq-blue: #1261ea;
  --pq-muted: #48659a;
  --pq-line: #d9e6fa;
  width: 100%;
  color: var(--pq-ink);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

#setup-screen .prequiz-topline {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 42px;
  padding: 0 0 13px 8px;
  color: #102867;
  font-size: 1rem;
  font-weight: 900;
}

#setup-screen .prequiz-back-link {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #cfdef6;
  border-radius: 8px;
  color: #154da9;
  background: rgba(255,255,255,.86);
  text-decoration: none;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
#setup-screen .prequiz-back-link:hover { color: #fff; background: var(--pq-blue); transform: translateX(-2px); }
#setup-screen .prequiz-back-link lucide-icon { width: 17px; height: 17px; }

#setup-screen .prequiz-hero {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(435px, 1.08fr);
  min-height: 300px;
  overflow: hidden !important;
  border: 1px solid rgba(171, 205, 252, .65);
  border-radius: 25px;
  background:
    radial-gradient(circle at 61% 26%, rgba(202,225,255,.45), transparent 20%),
    linear-gradient(130deg, rgba(255,255,255,.98), rgba(239,247,255,.78));
  box-shadow: 0 18px 42px rgba(38,91,177,.13), inset 0 1px rgba(255,255,255,.92);
}
#setup-screen .prequiz-hero::before {
  z-index: -1;
  right: -4%;
  bottom: -78%;
  width: 73%;
  aspect-ratio: 1.75;
  background: linear-gradient(135deg, rgba(194,221,255,.72), rgba(128,180,255,.13));
}

#setup-screen .prequiz-hero-copy {
  z-index: 2;
  align-self: center;
  padding: 25px 0 27px clamp(30px, 5vw, 65px);
}
#setup-screen .prequiz-hero h2 {
  margin: 0;
  max-width: 430px;
  color: var(--pq-ink) !important;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.045em;
  -webkit-text-fill-color: var(--pq-ink) !important;
}
#setup-screen .prequiz-hero h2 em { color: inherit; font-style: normal; }
#setup-screen .prequiz-hero h2 em::after { display: none; }
#setup-screen .prequiz-hero-copy > p:not(.prequiz-eyebrow) {
  margin: 10px 0 17px;
  max-width: 390px;
  color: #233f7c;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.55;
}

#setup-screen .prequiz-selectors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  max-width: 430px;
  margin: 0;
}
#setup-screen .prequiz-selector {
  min-height: 64px;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid #cfe0fa;
  border-radius: 11px;
  background: rgba(255,255,255,.90);
  box-shadow: 0 7px 16px rgba(51,97,175,.06);
}
#setup-screen .prequiz-selector .pq-ico {
  width: 39px;
  height: 39px;
  border-radius: 10px;
  color: #0e64ec;
  background: #e5f0ff;
}
#setup-screen .prequiz-selector .pq-ico lucide-icon { width: 23px; height: 23px; }
#setup-screen .prequiz-selector small { color: #315290; font-size: .57rem; font-weight: 800; }
#setup-screen .prequiz-selector strong { gap: .3rem; color: #102867; font-size: .87rem; font-weight: 900; }
#setup-screen .pq-level-name { padding: 0; border-radius: 0; color: inherit; background: transparent; font-size: inherit; font-weight: inherit; }
#setup-screen .prequiz-language-control > lucide-icon:last-child { color: #0d286c; font-size: .93rem; }

#setup-screen .prequiz-artwork {
  position: relative;
  align-self: stretch;
  min-width: 0;
  margin: 0;
  overflow: hidden;
}
#setup-screen .prequiz-artwork img {
  position: absolute;
  top: 50%;
  right: clamp(-8px, -.5vw, 0px);
  width: auto;
  max-width: none;
  height: min(288px, 94%);
  transform: translateY(-50%);
  mix-blend-mode: screen;
  filter: saturate(.95) contrast(1.04) drop-shadow(0 16px 18px rgba(29,82,174,.18));
}

#setup-screen .prequiz-content-grid {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(440px, 1.18fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
}
#setup-screen .prequiz-card {
  min-height: 306px;
  padding: clamp(22px, 2.7vw, 31px);
  border: 1px solid rgba(201,218,245,.85);
  border-radius: 20px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 13px 30px rgba(39,87,165,.11);
}
#setup-screen .pq-head { margin: 0 0 17px; }
#setup-screen .pq-head .prequiz-card-kicker {
  color: #0955dc;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .01em;
  text-transform: uppercase;
}
#setup-screen .pq-topic-label { margin: 0 0 13px; color: #102867; font-size: .82rem; font-weight: 800; }
#setup-screen .pq-topic-box { padding: 0; border: 0; border-radius: 0; background: none; }
#setup-screen .pq-topic-box .prequiz-topic {
  min-height: 79px;
  gap: 13px;
  padding: 11px 13px;
  border: 1px solid #cedefa;
  border-radius: 11px;
  background: linear-gradient(120deg, #fff, #f5f9ff);
}
#setup-screen .pq-topic-box .pq-ico { width: 43px; height: 43px; border-radius: 12px; }
#setup-screen .pq-topic-text small { display: none; }
#setup-screen .pq-topic-text strong { color: #102867; font-size: .93rem; font-weight: 900; line-height: 1.48; }
#setup-screen .pq-topic-box .prequiz-note {
  align-items: center;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #5470a5;
  font-size: .70rem;
  font-weight: 600;
}
#setup-screen .pq-topic-box .prequiz-note lucide-icon { width: 15px; height: 15px; color: #336fe1; }

#setup-screen .pq-rows {
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
#setup-screen .pq-rows > div {
  min-height: 43px;
  padding: 7px 0;
  border-bottom: 1px solid #e1e9f7;
}
#setup-screen .pq-rows dt { gap: 13px; color: #264783; }
#setup-screen .pq-rows dt > lucide-icon { width: 18px; height: 18px; color: #2864cf; }
#setup-screen .pq-label { color: #264783; font-size: .82rem; font-weight: 700; }
#setup-screen .pq-label small { display: none; }
#setup-screen .pq-rows dd { gap: 2px; color: #0e296b; }
#setup-screen .pq-val { padding: 0; border-radius: 0; background: none !important; color: #0e296b; font-size: .80rem; font-weight: 900; }
#setup-screen .pq-rows dd small { color: #385998; font-size: .66rem; }
#setup-screen .pq-val--reward { gap: 2px; }
#setup-screen .pq-val--reward .is-positive { color: #00945a; font-size: .75rem; }
#setup-screen .pq-val--reward .is-negative { color: #e02929; font-size: .71rem; }
#setup-screen .prequiz-info {
  align-items: center;
  gap: 11px;
  margin: 17px 0 0;
  padding: 12px 14px;
  border: 1px solid #cbdcf8;
  border-radius: 9px;
  background: #f1f6ff;
  color: #2b4d92;
  font-size: .73rem;
  font-weight: 600;
  line-height: 1.45;
}
#setup-screen .prequiz-info lucide-icon { width: 24px; height: 24px; color: #1262e9; }

#setup-screen .prequiz-action-row { margin: 22px auto 0; }
#setup-screen .prequiz-action-row .prequiz-start-button {
  min-width: 208px;
  min-height: 55px;
  gap: 10px;
  padding: 0 29px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1c75ff, #0754dc);
  box-shadow: 0 13px 24px rgba(0,83,221,.25);
  font-size: 1rem;
  font-weight: 900;
}
#setup-screen .prequiz-start-button lucide-icon:last-child { display: none; }
#setup-screen .prequiz-sound-toggle { display: none; }

@media (max-width: 1024px) {
  #quiz-page .quiz-main-shell { width: min(820px, calc(100% - 32px)); padding-top: 24px; }
  #setup-screen .prequiz-hero { grid-template-columns: minmax(0, 1fr) minmax(320px, .95fr); min-height: 285px; }
  #setup-screen .prequiz-hero-copy { padding-left: 32px; }
  #setup-screen .prequiz-artwork img { right: -4px; width: auto; height: min(255px, 92%); }
  #setup-screen .prequiz-content-grid { grid-template-columns: 1fr; gap: 12px; }
  #setup-screen .prequiz-card { min-height: 0; }
  #setup-screen .prequiz-choice-card { padding-bottom: 23px; }
}

@media (max-width: 600px) {
  #quiz-page .quiz-main-shell { width: calc(100% - 22px); padding: 13px 0 28px; }
  #setup-screen .prequiz-topline { min-height: 36px; gap: 12px; padding: 0 4px 9px; font-size: .84rem; }
  #setup-screen .prequiz-back-link { width: 25px; height: 25px; border-radius: 7px; }
  #setup-screen .prequiz-back-link lucide-icon { width: 14px; height: 14px; }
  #setup-screen .prequiz-hero { display: block; min-height: 280px; border-radius: 19px; }
  #setup-screen .prequiz-hero-copy { height: 280px; padding: 21px 17px 0; }
  #setup-screen .prequiz-hero h2 { max-width: 192px; font-size: clamp(1.14rem, 5.5vw, 1.42rem); line-height: 1.12; letter-spacing: -.035em; }
  #setup-screen .prequiz-hero-copy > p:not(.prequiz-eyebrow) { max-width: 178px; margin: 7px 0 0; font-size: .60rem; line-height: 1.48; }
  #setup-screen .prequiz-artwork { position: absolute; top: 42px; right: 2px; width: 57%; height: 150px; }
  #setup-screen .prequiz-artwork img { top: 50%; right: -4px; width: auto; height: 100%; max-width: none; transform: translateY(-50%); }
  #setup-screen .prequiz-selectors { position: absolute !important; right: 17px; bottom: 16px; left: 17px; grid-template-columns: 1fr; gap: 7px; max-width: none; }
  #setup-screen .prequiz-selector { min-height: 47px; gap: 8px; padding: 6px 9px; border-radius: 9px; }
  #setup-screen .prequiz-selector .pq-ico { width: 30px; height: 30px; border-radius: 8px; }
  #setup-screen .prequiz-selector .pq-ico lucide-icon { width: 18px; height: 18px; }
  #setup-screen .prequiz-selector small { font-size: .45rem; }
  #setup-screen .prequiz-selector strong { font-size: .69rem; }
  #setup-screen .prequiz-content-grid { margin-top: 11px; gap: 10px; }
  #setup-screen .prequiz-card { padding: 16px 13px; border-radius: 14px; }
  #setup-screen .pq-head { margin-bottom: 11px; }
  #setup-screen .pq-head .prequiz-card-kicker { font-size: .61rem; }
  #setup-screen .pq-topic-label { margin-bottom: 9px; font-size: .62rem; }
  #setup-screen .pq-topic-box .prequiz-topic { min-height: 58px; gap: 9px; padding: 8px 9px; border-radius: 8px; }
  #setup-screen .pq-topic-box .pq-ico { width: 32px; height: 32px; border-radius: 9px; }
  #setup-screen .pq-topic-box .pq-ico lucide-icon { width: 18px; height: 18px; }
  #setup-screen .pq-topic-text strong { font-size: .69rem; }
  #setup-screen .pq-topic-box .prequiz-note { margin-top: 11px; font-size: .52rem; }
  #setup-screen .pq-topic-box .prequiz-note lucide-icon { width: 11px; height: 11px; }
  #setup-screen .pq-rows > div { min-height: 31px; padding: 5px 0; }
  #setup-screen .pq-rows dt { gap: 8px; }
  #setup-screen .pq-rows dt > lucide-icon { width: 13px; height: 13px; }
  #setup-screen .pq-label { font-size: .60rem; }
  #setup-screen .pq-val { font-size: .60rem; }
  #setup-screen .pq-rows dd small { font-size: .49rem; }
  #setup-screen .pq-val--reward .is-positive { font-size: .54rem; }
  #setup-screen .pq-val--reward .is-negative { font-size: .50rem; }
  #setup-screen .prequiz-info { gap: 7px; margin-top: 10px; padding: 8px 9px; border-radius: 7px; font-size: .54rem; }
  #setup-screen .prequiz-info lucide-icon { width: 17px; height: 17px; }
  #setup-screen .prequiz-action-row { width: 100%; margin-top: 12px; }
  #setup-screen .prequiz-action-row .prequiz-start-button { width: 100%; min-width: 0; min-height: 42px; border-radius: 8px; font-size: .78rem; }
}
