/*
  Shared quiz view (Main.unity QuizView + Prefabs/UI/Quiz/*). Geometry in canvas units from
  the prefab: banner 300u (+ safe top), robot hole centre (191, 222) diameter 268, timer centre
  (W-100, 305) diameter 150, category/goal/progress rows from x=350 at y 30/131/217, exit 88u at
  56u from the right, body from y=394 with 50u sides, footer 275u.
*/
.quiz {
  --accent: #feb90b;
  --banner-h: calc(300 * var(--u));
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background-color: #c6f2d6;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* ---- banner ---------------------------------------------------------------------------- */
.quiz-banner {
  position: relative;
  flex: none;
  height: calc(var(--banner-h) + var(--safe-top));
  padding-top: var(--safe-top);
  color: #fff;
  z-index: 2;
}
.quiz-banner__band {
  position: absolute;
  inset: 0 0 auto 0;
  height: calc(var(--banner-h) + var(--safe-top));
  background: var(--accent);
  -webkit-mask:
    linear-gradient(#000, #000) top / 100% calc(var(--safe-top) + 2px) no-repeat,
    var(--eclipse) bottom / 100% var(--banner-h) no-repeat;
  mask:
    linear-gradient(#000, #000) top / 100% calc(var(--safe-top) + 2px) no-repeat,
    var(--eclipse) bottom / 100% var(--banner-h) no-repeat;
  transition: background-color var(--t-slow);
}
.quiz-banner__top {
  position: absolute;
  top: calc(var(--safe-top) + 30 * var(--u));
  left: calc(350 * var(--u));
  right: calc(56 * var(--u));
  height: calc(108 * var(--u));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(16 * var(--u));
}
.quiz-banner__category {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: calc(12 * var(--u));
  min-width: 0;
  height: 100%;
}
.quiz-banner__icon {
  width: calc(72 * var(--u));
  height: calc(72 * var(--u));
  flex: none;
  background: #fff;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.35));
}
.quiz-banner__category-name {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  font-weight: var(--w-bold);
  /* one size per screen (parts.js TITLE_SIZE); the line height matches the fit's */
  font-size: calc(var(--fit, 46) * var(--u));
  line-height: 1.08;
  text-shadow: var(--on-colour-shadow);
  overflow: hidden;
  overflow-wrap: normal;
  word-break: normal;
}
/* two lines sit higher in the row than one: the second line keeps clear air above "Goal" */
.quiz-banner__category-name[data-lines='2'] {
  padding-bottom: calc(8 * var(--u));
}
.quiz-banner__actions {
  display: flex;
  align-items: center;
  gap: calc(18 * var(--u));
  flex: none;
}
.quiz-banner__coins {
  display: inline-flex;
  align-items: center;
  gap: calc(10 * var(--u));
  height: calc(72 * var(--u));
  padding: 0 calc(22 * var(--u)) 0 calc(12 * var(--u));
  border-radius: 999px;
  background: var(--well, rgba(0, 18, 66, 0.55));
  font-weight: var(--w-medium);
  font-size: calc(30 * var(--u));
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.quiz-banner__coins img {
  width: calc(46 * var(--u));
  height: calc(46 * var(--u));
}
.quiz-banner__exit {
  display: grid;
  place-items: center;
  width: calc(88 * var(--u));
  height: calc(88 * var(--u));
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transition: transform var(--t-fast);
}
.quiz-banner__exit:active {
  transform: scale(0.92);
}
.quiz-banner__exit img {
  width: calc(38 * var(--u));
  height: calc(38 * var(--u));
  filter: drop-shadow(0 -1px 0 rgba(0, 0, 0, 0.5));
}
.quiz-banner__goal {
  position: absolute;
  top: calc(var(--safe-top) + 131 * var(--u));
  left: calc(350 * var(--u));
  right: calc(190 * var(--u));
  height: calc(72 * var(--u));
  display: flex;
  align-items: center;
  gap: calc(15 * var(--u));
}
.quiz-banner__title {
  font-weight: var(--w-bold);
  font-size: calc(60 * var(--u));
  line-height: 1;
  text-shadow: var(--on-colour-shadow);
  white-space: nowrap;
}
.quiz-banner__progress {
  position: absolute;
  top: calc(var(--safe-top) + 217 * var(--u));
  left: calc(350 * var(--u));
  right: calc(200 * var(--u));
  height: calc(66 * var(--u));
  display: flex;
  align-items: center;
  gap: calc(12 * var(--u));
}
.quiz-banner__timer {
  position: absolute;
  right: calc(25 * var(--u));
  top: calc(var(--safe-top) + 230 * var(--u));
  width: calc(150 * var(--u));
  height: calc(150 * var(--u));
}

.quiz-chip {
  display: inline-flex;
  align-items: center;
  height: calc(48 * var(--u));
  padding: 0 calc(18 * var(--u));
  border-radius: 999px;
  background: var(--well, rgba(0, 18, 66, 0.55));
  color: #fff;
  font-weight: var(--w-bold);
  font-size: calc(28 * var(--u));
  line-height: 1;
  letter-spacing: var(--tmp-bold);
  white-space: nowrap;
}

/* GoalBackground (dark pill with white rim) + yellow GoalFill + "N / M" */
.goal-bar {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: calc(208 * var(--u));
  height: calc(66 * var(--u));
  border-radius: 999px;
  background: #2f2f40;
  box-shadow: inset 0 0 0 calc(3 * var(--u)) #fff;
  overflow: hidden;
}
.goal-bar__track {
  position: absolute;
  inset: calc(3 * var(--u));
  border-radius: 999px;
  overflow: hidden;
}
.goal-bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  /* Clip a rectangular fill to the fixed track so low values never become an oval. */
  background: var(--yellow);
  transition: width var(--t-slow) var(--ease-out);
}
.goal-bar__label {
  position: relative;
  font-weight: var(--w-bold);
  font-size: calc(46 * var(--u));
  line-height: 1;
  color: #fff;
  /* the score can sit half on the yellow fill (2 / 5): the 1 px shadow plus a faint navy halo keeps it legible there */
  text-shadow: var(--on-colour-shadow), 0 0 calc(3 * var(--u)) rgba(0, 18, 66, 0.55);
  font-variant-numeric: tabular-nums;
}
.goal-bar__label span {
  font-weight: var(--w-bold);
}

/* QuizAnswerConfetti: brief, input-transparent bursts below reveal sheets. */
.answer-celebration {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
}
.answer-celebration img {
  position: absolute;
  object-fit: contain;
  animation: answer-sprinkle 1200ms ease-out both;
}
@keyframes answer-sprinkle {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
  12% { opacity: 1; }
  45% {
    opacity: 1;
    transform: translate(calc(-50% + var(--dx) * .55), calc(-50% + var(--dy) * .55 - var(--arc))) rotate(calc(var(--rot) * .4)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)) scale(.8);
  }
}
.reduced-motion .answer-celebration { display: none; }

/* Keep the small burst on the active reveal, in the corners clear of its copy. */
.reveal-celebration {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}
.reveal-celebration img {
  position: absolute;
  object-fit: contain;
  animation: answer-sprinkle 1200ms ease-out both;
}
.reduced-motion .reveal-celebration { display: none; }
.reveal-celebration--edges { overflow: visible; }

/* ---- robot in the round hole ----------------------------------------------------------------- */
.robot-hole {
  --d: calc(268 * var(--u));
  position: absolute;
  left: calc(191 * var(--u) - var(--d) / 2);
  top: calc(var(--safe-top) + 222 * var(--u) - var(--d) / 2);
  width: var(--d);
  height: var(--d);
  pointer-events: none;
}
.robot-hole__bg,
.robot-hole__rim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.robot-hole__rim {
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}
.robot-hole__rim--upper {
  z-index: 0;
}
.robot-hole__rim--lower {
  z-index: 2;
}
/* the mask: 357x600 at the hole's scale, bottom semicircle on the hole, open above the rim */
.robot-hole__mask {
  position: absolute;
  left: 0;
  width: 100%;
  bottom: calc(var(--d) * -0.008);
  height: calc(var(--d) * 600 / 357);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  z-index: 1;
}
.robot-hole__robot {
  position: absolute;
  inset: 0;
}
.robot-hole__robot canvas,
.spine-robot canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.spine-robot {
  display: block;
  pointer-events: none;
}

/* ---- timer -------------------------------------------------------------------------------------- */
.round-timer {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.round-timer__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--fraction) * 360deg), rgba(0, 0, 0, 0.25) 0);
  box-shadow: 0 calc(4 * var(--u)) calc(10 * var(--u)) rgba(27, 37, 89, 0.25);
}
.round-timer__face {
  position: absolute;
  inset: calc(12 * var(--u));
  border-radius: 50%;
  background: var(--well, #1b2559);
  box-shadow: inset 0 0 0 calc(3 * var(--u)) rgba(0, 0, 0, 0.25);
}
.round-timer__value {
  position: relative;
  font-weight: var(--w-extrabold);
  font-size: calc(80 * var(--u));
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: var(--on-colour-shadow);
}
/* low time (<= 5 s, not frozen): amber halo 6u wider, the container pulses */
.round-timer.is-low:not(.is-frozen)::before {
  content: '';
  position: absolute;
  inset: calc(-6 * var(--u));
  border-radius: 50%;
  background: #ffae0d;
}
.round-timer.is-low:not(.is-frozen) {
  animation: timer-pulse 1s ease-in-out infinite;
}
.round-timer.is-frozen .round-timer__face {
  background: radial-gradient(circle at 35% 30%, #e9fbff, #8fd8f2 70%);
}
.round-timer.is-frozen .round-timer__value {
  color: #0b5a7a;
  text-shadow: none;
}
@keyframes timer-pulse {
  50% {
    transform: scale(1.12);
  }
}
.reduced-motion .round-timer.is-low {
  animation: none !important;
}

/* ---- body ---------------------------------------------------------------------------------------- */
.quiz__body {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: calc(94 * var(--u)) calc(50 * var(--u)) calc(var(--safe-bottom) + 20 * var(--u));
}
.quiz__scroll {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: calc(32 * var(--u));
  padding-bottom: calc(12 * var(--u));
}
.quiz__footer {
  flex: none;
}

/* QuizQuestionCard: QuestionBackground (white card, convex top, grey lip) */
.question-card {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(28 * var(--u));
  padding: calc(56 * var(--u)) calc(40 * var(--u)) calc(52 * var(--u));
  border-radius: calc(80 * var(--u)) calc(80 * var(--u)) calc(64 * var(--u)) calc(64 * var(--u)) / calc(60 * var(--u)) calc(60 * var(--u)) calc(64 * var(--u)) calc(64 * var(--u));
  background: #fdfdfd;
  box-shadow:
    inset 0 calc(-10 * var(--u)) 0 #cfcfcf,
    0 calc(4 * var(--u)) calc(12 * var(--u)) rgba(27, 37, 89, 0.08);
  animation: card-in var(--t-med) var(--ease-out);
}
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(calc(16 * var(--u)));
  }
}
.question-card--tile {
  flex-direction: row;
  align-items: center;
  text-align: left;
  padding: calc(52 * var(--u)) calc(44 * var(--u)) calc(58 * var(--u));
}
.question-card__media {
  flex: none;
}
.question-card__picture {
  position: relative;
  display: block;
  width: calc(400 * var(--u));
  height: calc(400 * var(--u));
  border-radius: calc(36 * var(--u));
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
}
.question-card__picture img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.question-card__zoom {
  position: absolute;
  right: calc(16 * var(--u));
  bottom: calc(16 * var(--u));
  width: calc(56 * var(--u));
  height: calc(56 * var(--u));
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 18, 66, 0.65);
  box-shadow:
    inset 0 0 0 calc(3 * var(--u)) rgba(255, 255, 255, 0.7),
    0 calc(3 * var(--u)) calc(6 * var(--u)) rgba(0, 0, 0, 0.35);
}
.question-card__zoom img {
  width: 62%;
  height: 62%;
}
.question-card__tile {
  position: relative;
  display: grid;
  place-items: center;
  width: calc(150 * var(--u));
  height: calc(150 * var(--u));
  border-radius: calc(16 * var(--u));
  background: var(--tile);
  overflow: hidden;
}
.question-card__medallion {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
}
.question-card__glyph {
  position: absolute;
  inset: 23%;
  background: #fff;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  filter: drop-shadow(0 -1px 0 rgba(0, 0, 0, 0.5));
}
.question-card__letter {
  position: relative;
  font-weight: var(--w-bold);
  font-size: calc(64 * var(--u));
  color: #fff;
  text-shadow: var(--on-colour-shadow);
}
.question-card__text {
  flex: 1;
  min-width: 0;
  font-weight: var(--w-regular);
  font-size: calc(40 * var(--u));
  /* TMP line spacing 30 on Rubik's own line height: 66u lines for 40u text in the 1.3.0 capture */
  line-height: 1.6;
  color: var(--ink);
  text-align: center;
  overflow-wrap: break-word;
}
.question-card--tile .question-card__text {
  text-align: left;
}
.question-card--long .question-card__text {
  font-size: calc(36 * var(--u));
}

/* QuizOptions: Basic Button (white pill, grey lip), 144u tall, 32u apart */
.answers {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(32 * var(--u));
}
.answers--grid {
  grid-template-columns: 1fr 1fr;
  gap: calc(28 * var(--u)) calc(28 * var(--u));
}
.answer {
  --face: #ffffff;
  --lip: #c4c4c4;
  --ink-a: var(--ink);
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(144 * var(--u));
  padding: calc(18 * var(--u)) calc(56 * var(--u)) calc(26 * var(--u));
  border-radius: calc(60 * var(--u));
  background: var(--face);
  box-shadow:
    inset 0 calc(-12 * var(--u)) 0 var(--lip),
    0 calc(3 * var(--u)) calc(8 * var(--u)) rgba(27, 37, 89, 0.08);
  color: var(--ink-a);
  font-weight: var(--w-regular);
  font-size: calc(40 * var(--u));
  line-height: 1.2;
  text-align: center;
  transition:
    transform var(--t-fast) var(--ease-out),
    background-color var(--t-med),
    box-shadow var(--t-med),
    opacity var(--t-med);
}
.answers--grid .answer {
  padding-left: calc(28 * var(--u));
  padding-right: calc(28 * var(--u));
  font-size: calc(36 * var(--u));
}
.answer:not(:disabled):hover {
  --face: #fbfcff;
}
.answer:not(:disabled):active {
  transform: translateY(calc(6 * var(--u)));
  box-shadow: inset 0 calc(-6 * var(--u)) 0 var(--lip);
}
.answer__text {
  overflow-wrap: anywhere;
}
.answer.is-selected {
  --face: #fff4cc;
  --lip: #e8b400;
}
/* Unity recolours the row and turns its label white; the label keeps its weight and place (QuizView). */
.answer.is-correct {
  --face: var(--correct);
  --lip: var(--correct-ink);
  --ink-a: #fff;
  text-shadow: var(--on-colour-shadow);
}
.answer.is-wrong {
  --face: var(--danger);
  --lip: var(--danger-ink);
  --ink-a: #fff;
  text-shadow: var(--on-colour-shadow);
  animation: shake 360ms ease-in-out;
}
.answer.is-removed {
  opacity: 0.35;
  filter: grayscale(1);
}
.answer.is-dim {
  opacity: 0.6;
}
.answer__mark {
  position: absolute;
  right: calc(34 * var(--u));
  top: 50%;
  width: calc(50 * var(--u));
  height: calc(50 * var(--u));
  transform: translateY(-58%);
  color: #fff;
}
.answer:has(> .answer__mark) {
  /* The status glyph owns its own space; a complete long answer may wrap. */
  padding-right: calc(104 * var(--u));
}
.answers--grid .answer__mark {
  display: none;
}
@keyframes shake {
  20%,
  60% {
    transform: translateX(calc(-10 * var(--u)));
  }
  40%,
  80% {
    transform: translateX(calc(10 * var(--u)));
  }
}
.reduced-motion .answer.is-wrong {
  animation: none;
}

/* ---- boosters (Footer: notice + four ButtonExtended tiles) ----------------------------------------- */
.booster-bar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(14 * var(--u));
  padding-top: calc(10 * var(--u));
}
.booster-bar__hint {
  /* Reserve its height below the complete answer column at every breakpoint. */
  position: static;
  max-width: 100%;
  padding: calc(18 * var(--u)) calc(34 * var(--u));
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: var(--w-medium);
  font-size: max(11px, calc(30 * var(--u)));
  white-space: normal;
  text-align: center;
  box-shadow: 0 calc(6 * var(--u)) calc(14 * var(--u)) rgba(0, 0, 0, 0.2);
  animation: fade-in var(--t-med) var(--ease-out);
}
.booster-bar__notice {
  font-weight: var(--w-bold);
  font-size: max(13px, calc(24 * var(--u)));
  line-height: 1.35;
  padding: 2px 8px;
  color: var(--ink);
  opacity: 0.85;
  text-align: center;
}
.booster-bar__row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: calc(28 * var(--u));
}
.booster {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(8 * var(--u));
  height: calc(172 * var(--u));
  border-radius: calc(40 * var(--u));
  background: #fff;
  box-shadow:
    inset 0 calc(-10 * var(--u)) 0 #c9c9c9,
    0 calc(4 * var(--u)) calc(10 * var(--u)) rgba(27, 37, 89, 0.1);
  transition: transform var(--t-fast) var(--ease-out);
}
.booster:not(:disabled):active {
  transform: translateY(calc(6 * var(--u)));
}
.booster:disabled {
  opacity: 0.5;
  filter: grayscale(0.7);
}
.booster__icon {
  width: calc(96 * var(--u));
  height: calc(96 * var(--u));
  object-fit: contain;
}
.booster__cost,
.booster__count {
  display: inline-flex;
  align-items: center;
  gap: calc(6 * var(--u));
  font-weight: var(--w-bold);
  font-size: calc(28 * var(--u));
  color: #c98a00;
}
.booster__cost img {
  width: calc(30 * var(--u));
  height: calc(30 * var(--u));
}
.booster__count {
  color: var(--ink);
}

/* ---- picture zoom --------------------------------------------------------------------------------- */
.picture-zoom {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  place-items: center;
  padding: calc(var(--safe-top) + 152 * var(--u)) calc(40 * var(--u)) calc(var(--safe-bottom) + 120 * var(--u));
  background: rgba(0, 0, 0, 0.82);
  animation: fade-in var(--t-med) var(--ease-out);
  cursor: zoom-out;
}
.picture-zoom img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  border-radius: calc(24 * var(--u));
  background: transparent;
  object-fit: contain;
}
.picture-zoom__close {
  position: absolute;
  top: calc(var(--safe-top) + 40 * var(--u));
  right: calc(40 * var(--u));
  width: calc(88 * var(--u));
  height: calc(88 * var(--u));
  padding: calc(22 * var(--u));
  border-radius: 50%;
  background: rgba(0, 18, 66, 0.65);
  color: #fff;
}

/* ---- wide: the quiz sits in a centred column, the banner spans the screen ------------------------- */
/* The banner composition spans the question column (.quiz__body, below), so the robot hole starts at the card's
   left edge and the close button ends at its right edge; the timer stays centred under the close button. */
.layout-wide .quiz-banner > *:not(.quiz-banner__band) {
  /* --gutter: the column's outer edge; the card's edge is 50u further in (the body's side padding) */
  --col: min(100%, calc(1500 * var(--u)));
  --gutter: max(0px, calc((100% - var(--col)) / 2));
}
@media (min-width: 1200px) {
  .layout-wide .quiz-banner > *:not(.quiz-banner__band) {
    --col: min(100%, calc(1800 * var(--u)));
  }
}
.layout-wide .quiz-banner__top,
.layout-wide .quiz-banner__goal,
.layout-wide .quiz-banner__progress {
  left: calc(var(--gutter) + 350 * var(--u));
}
.layout-wide .quiz-banner__top {
  right: calc(var(--gutter) + 50 * var(--u));
}
.layout-wide .quiz-banner__goal {
  right: calc(var(--gutter) + 190 * var(--u));
}
.layout-wide .quiz-banner__progress {
  right: calc(var(--gutter) + 200 * var(--u));
}
.layout-wide .robot-hole {
  left: calc(var(--gutter) + 50 * var(--u));
}
.layout-wide .quiz-banner__timer {
  /* centred under the close button (88u, its right edge on the card's edge) */
  right: calc(var(--gutter) + 19 * var(--u));
}
.layout-wide .quiz__body {
  width: calc(1080 * var(--u));
  margin: 0 auto;
}

/* ---- notice tones, armed booster, hint ------------------------------------------------------------ */
.booster-bar__notice--danger {
  color: var(--danger-ink);
  opacity: 1;
}
.booster.is-armed {
  box-shadow:
    inset 0 calc(-10 * var(--u)) 0 #d8a300,
    inset 0 0 0 calc(5 * var(--u)) var(--yellow),
    0 calc(4 * var(--u)) calc(10 * var(--u)) rgba(27, 37, 89, 0.1);
}
.booster__buy {
  font-weight: var(--w-bold);
  font-size: calc(30 * var(--u));
  color: var(--ink);
}
.booster-hint {
  color: inherit;
  font: inherit;
}

/* ---- question block transitions ---------------------------------------------------------------- */
.quiz-question {
  display: flex;
  flex-direction: column;
  gap: calc(32 * var(--u));
  animation: question-in 250ms var(--ease-spring);
}
.quiz-question.is-out {
  animation: question-out 500ms ease-in forwards;
}
@keyframes question-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}
@keyframes question-out {
  to {
    opacity: 0;
    transform: scale(0.2);
  }
}
.reduced-motion .quiz-question {
  animation: fade-in 150ms ease-out;
}
.reduced-motion .quiz-question.is-out {
  animation: none;
  opacity: 0;
}

/* ---- loading card --------------------------------------------------------------------------------- */
.loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(24 * var(--u));
  padding: calc(56 * var(--u)) calc(40 * var(--u)) calc(60 * var(--u));
  border-radius: calc(64 * var(--u));
  background: #fdfdfd;
  box-shadow: inset 0 calc(-10 * var(--u)) 0 #cfcfcf;
  text-align: center;
}
.loading-card__robot {
  width: calc(180 * var(--u));
  height: calc(210 * var(--u));
}
.loading-card p {
  font-size: calc(40 * var(--u));
  color: var(--ink);
}

/* ---- overlay layer ----------------------------------------------------------------------------------- */
.layout-wide .quiz-overlay {
  --u: var(--u-panel, 0.6px);
}
.quiz-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: calc(var(--safe-top) + 40 * var(--u)) calc(40 * var(--u)) calc(var(--safe-bottom) + 40 * var(--u));
  background: rgba(11, 15, 22, 0.62);
  animation: fade-in var(--t-med) var(--ease-out);
}
.quiz-overlay > * {
  margin: auto 0;
}

/* ---- result card (QuizResultPanel: 910u, #FBF8F2, padding 50/24/32, spacing 16) -------------------------- */
.result-card {
  --result-accent: #0b9f49;
  position: relative;
  width: min(100%, calc(910 * var(--u)));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(16 * var(--u));
  padding: calc(24 * var(--u)) calc(50 * var(--u)) calc(36 * var(--u));
  border-radius: calc(56 * var(--u));
  background: var(--card-warm);
  box-shadow: 0 calc(18 * var(--u)) calc(50 * var(--u)) rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: pop-in var(--t-slow) var(--ease-spring);
}
.result-card__hero {
  position: relative;
  width: 100%;
  height: calc(360 * var(--u));
  display: grid;
  place-items: center;
}
.result-card__circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(330 * var(--u));
  height: calc(330 * var(--u));
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #d5ead6;
}
.result-card__circle--fail {
  background: #f9e1df;
}
.result-card__robot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(280 * var(--u));
  height: calc(310 * var(--u));
  transform: translate(-50%, -48%);
}
.result-card__confetti img {
  position: absolute;
  left: calc(50% + var(--x) * var(--u));
  top: calc(50% - var(--y) * var(--u));
  width: calc(var(--s) * var(--u));
  height: calc(var(--s) * var(--u));
  transform: translate(-50%, -50%) rotate(var(--r));
  animation: confetti-pop 600ms var(--ease-spring) both;
  animation-delay: calc(var(--i) * 40ms + 200ms);
}
@keyframes confetti-pop {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--r)) scale(0.2);
  }
}
.reduced-motion .result-card__confetti img {
  animation: none;
}
.result-card__title {
  font-weight: var(--w-bold);
  font-size: calc(64 * var(--u));
  line-height: 1.05;
  letter-spacing: var(--tmp-bold);
  color: var(--result-accent);
}
.result-card__subtitle {
  font-weight: var(--w-semibold);
  font-size: calc(28 * var(--u));
  color: var(--result-accent);
}
.result-card--win .result-card__subtitle {
  color: var(--correct-ink);
}
.result-card--lose .result-card__subtitle {
  color: var(--danger-ink);
}
.result-card__label {
  margin-top: calc(10 * var(--u));
  font-weight: var(--w-semibold);
  font-size: calc(24 * var(--u));
  /* character spacing 8 plus TMP bold spacing */
  letter-spacing: calc(0.08em + var(--tmp-bold));
  text-transform: uppercase;
  color: var(--section-grey);
}
.result-card__box {
  display: grid;
  place-items: center;
  width: calc(470 * var(--u));
  height: calc(128 * var(--u));
  border-radius: calc(34 * var(--u));
  background: #f4f1ea;
  box-shadow: inset 0 0 0 calc(3 * var(--u)) #e3dfd6;
  font-weight: var(--w-semibold);
  font-size: calc(58 * var(--u));
  color: var(--result-accent);
  font-variant-numeric: tabular-nums;
}
.result-card--win .result-card__box {
  background: #eaf5ee;
  box-shadow: inset 0 0 0 calc(3 * var(--u)) #bfe2c8;
}
.result-card__caption {
  font-weight: var(--w-semibold);
  font-size: calc(22 * var(--u));
  color: var(--section-grey);
}
.result-card__stars {
  display: flex;
  gap: calc(22 * var(--u));
}
.result-card__stars img {
  width: calc(64 * var(--u));
  height: calc(64 * var(--u));
  object-fit: contain;
}
.result-card__stars img:not(.is-lit) {
  opacity: 0.6;
}
.result-card__stars img.is-lit {
  animation: star-punch 450ms var(--ease-spring) both;
  animation-delay: calc(550ms + var(--i) * 400ms);
}
@keyframes star-punch {
  from {
    transform: scale(0);
  }
}
.result-card__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: calc(18 * var(--u));
}
.result-chip {
  display: inline-flex;
  align-items: center;
  gap: calc(12 * var(--u));
  height: calc(62 * var(--u));
  padding: 0 calc(26 * var(--u));
  border-radius: 999px;
  background: #fbf8f2;
  box-shadow: inset 0 0 0 calc(3 * var(--u)) #ece7dc;
  font-size: calc(32 * var(--u));
  color: var(--ink);
}
.result-chip img {
  width: calc(40 * var(--u));
  height: calc(40 * var(--u));
  object-fit: contain;
}
.result-card__tip {
  display: flex;
  align-items: center;
  gap: calc(24 * var(--u));
  width: min(100%, calc(745 * var(--u)));
  padding: calc(22 * var(--u)) calc(30 * var(--u));
  border-radius: calc(34 * var(--u));
  background: #fff;
  border: calc(3 * var(--u)) solid #e6e0d2;
  text-align: left;
}
.result-card__tip-icon {
  display: grid;
  place-items: center;
  width: calc(64 * var(--u));
  height: calc(64 * var(--u));
  flex: none;
  border-radius: 50%;
  background: var(--danger);
}
.result-card__tip-icon img {
  width: calc(40 * var(--u));
  height: calc(44 * var(--u));
}
.result-card__tip p {
  font-weight: var(--w-semibold);
  font-size: max(13px, calc(26 * var(--u)));
  line-height: 1.4;
  color: #3e4a56;
  /* no lone last word ("Every question makes you / smarter.") */
  text-wrap: pretty;
}
.result-card__progress {
  width: min(100%, calc(745 * var(--u)));
  display: flex;
  flex-direction: column;
  gap: calc(14 * var(--u));
  padding: calc(18 * var(--u)) calc(28 * var(--u)) calc(22 * var(--u));
  border-radius: calc(30 * var(--u));
  background: #fff;
  border: calc(3 * var(--u)) solid #e6e0d2;
}
.result-card__progress .result-card__label {
  margin: 0 0 calc(4 * var(--u));
}
.progress-row {
  display: grid;
  grid-template-columns: calc(64 * var(--u)) 1fr auto;
  grid-template-rows: auto calc(16 * var(--u));
  column-gap: calc(18 * var(--u));
  row-gap: calc(8 * var(--u));
  align-items: center;
  text-align: left;
}
.progress-row__icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: calc(64 * var(--u));
  height: calc(64 * var(--u));
  border-radius: 50%;
  background: #fbf1e3;
}
.progress-row__icon img {
  width: 66%;
  height: 66%;
  object-fit: contain;
}
.progress-row__name {
  font-weight: var(--w-semibold);
  font-size: calc(26 * var(--u));
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.progress-row__detail {
  font-weight: var(--w-medium);
  font-size: calc(22 * var(--u));
  color: var(--section-grey);
  white-space: nowrap;
}
.progress-row__track {
  grid-column: 2 / span 2;
  height: calc(16 * var(--u));
  border-radius: 999px;
  background: #e8e6ec;
  overflow: hidden;
}
.progress-row__track span {
  display: block;
  height: 100%;
  width: var(--fill);
  border-radius: inherit;
  background: var(--yellow);
  animation: bar-fill 750ms var(--ease-out) both;
  animation-delay: calc(500ms + var(--i) * 600ms);
}
@keyframes bar-fill {
  from {
    width: 0;
  }
}
.result-card__stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--n), 1fr);
  width: min(100%, calc(745 * var(--u)));
  padding: calc(26 * var(--u)) 0;
  border-radius: calc(28 * var(--u));
  background: #fff;
  border: calc(3 * var(--u)) solid #e6e0d2;
}
.result-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(6 * var(--u));
  min-width: 0;
  padding: 0 max(5px, calc(10 * var(--u)));
}
.result-stat + .result-stat {
  box-shadow: calc(-2 * var(--u)) 0 0 #ece7dc;
}
.result-stat img {
  width: calc(46 * var(--u));
  height: calc(46 * var(--u));
  object-fit: contain;
}
.result-stat b {
  font-weight: var(--w-semibold);
  font-size: calc(40 * var(--u));
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.result-stat span {
  font-weight: var(--w-semibold);
  font-size: max(12px, calc(22 * var(--u)));
  line-height: 1.3;
  color: #37474f;
}
.result-card__note {
  width: min(100%, calc(745 * var(--u)));
  padding: calc(26 * var(--u)) calc(40 * var(--u));
  border-radius: calc(30 * var(--u));
  background: #fff;
  text-align: left;
}
.result-card__note b {
  font-weight: var(--w-semibold);
  font-size: calc(30 * var(--u));
  color: #4a3b2a;
}
.result-card__note p {
  font-weight: var(--w-semibold);
  font-size: calc(24 * var(--u));
  color: #7a6a4f;
}
.result-card__actions {
  width: min(100%, calc(810 * var(--u)));
  display: flex;
  flex-direction: column;
  gap: calc(20 * var(--u));
  margin-top: calc(10 * var(--u));
}

/* ---- continue offer ----------------------------------------------------------------------------------- */
.continue-card {
  width: min(100%, calc(860 * var(--u)));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(14 * var(--u));
  /* the medallion sits as far below the card's top as the result card's does (24u + its 15u hero margin) */
  padding: calc(39 * var(--u)) calc(44 * var(--u)) calc(40 * var(--u));
  border-radius: calc(56 * var(--u));
  background: var(--card-warm);
  box-shadow: 0 calc(18 * var(--u)) calc(50 * var(--u)) rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: pop-in var(--t-slow) var(--ease-spring);
}
.continue-card__hero {
  position: relative;
  width: 100%;
  height: calc(330 * var(--u));
}
/* wide: the medallion gets the same air above it as the card's sides (the phone keeps the prefab's 20u) */
.layout-wide .continue-card {
  padding-top: calc(44 * var(--u));
}
.continue-card__robot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(250 * var(--u));
  height: calc(290 * var(--u));
  transform: translate(-50%, -48%);
}
.continue-card__title {
  font-weight: var(--w-bold);
  font-size: calc(58 * var(--u));
  color: var(--amber-ink, #8f4403);
  letter-spacing: var(--tmp-bold);
}
.continue-card__body {
  font-weight: var(--w-semibold);
  font-size: max(12px, calc(28 * var(--u)));
  line-height: 1.3;
  text-wrap: balance;
  color: var(--ink);
}
.continue-card__free {
  font-weight: var(--w-semibold);
  font-size: max(12px, calc(28 * var(--u)));
  line-height: 1.3;
  color: var(--ink);
}
.continue-card__caption {
  font-weight: var(--w-semibold);
  font-size: max(12px, calc(22 * var(--u)));
  line-height: 1.3;
  text-wrap: balance;
}
.continue-card__caption--danger {
  color: var(--danger-ink);
}
.continue-card__caption--muted {
  color: var(--section-grey);
}
.continue-card__actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: calc(20 * var(--u));
  margin-top: calc(14 * var(--u));
}
.price-chip {
  display: inline-grid;
  place-items: center;
  height: calc(56 * var(--u));
  padding: 0 calc(22 * var(--u));
  border-radius: 999px;
  font-size: calc(30 * var(--u));
  text-shadow: none;
}
.price-chip--free {
  background: var(--correct);
  color: #fff;
  box-shadow: inset 0 0 0 calc(2 * var(--u)) rgba(255, 255, 255, 0.5);
}

/* ---- wide dialogs on a short window: --u-panel scales the cards down; keep labels and body text readable ------------ */
.layout-wide .quiz-overlay .result-card__label {
  font-size: max(13px, calc(24 * var(--u)));
}
.layout-wide .quiz-overlay .result-card__subtitle,
.layout-wide .quiz-overlay .progress-row__name {
  font-size: max(13.5px, calc(28 * var(--u)));
}
.layout-wide .quiz-overlay .result-card__caption,
.layout-wide .quiz-overlay .progress-row__detail,
.layout-wide .quiz-overlay .result-stat span,
.layout-wide .quiz-overlay .result-card__note p {
  font-size: max(12.5px, calc(24 * var(--u)));
}
.layout-wide .quiz-overlay .result-card__tip p,
.layout-wide .quiz-overlay .continue-card__body,
.layout-wide .quiz-overlay .continue-card__free {
  font-size: max(14px, calc(28 * var(--u)));
}
.layout-wide .quiz-overlay .continue-card__caption {
  font-size: max(13px, calc(22 * var(--u)));
}

/* ---- Rapid Fire reveal banner (docked card, 24u margins, #FBF8F2) ------------------------------------------- */
.reveal-banner-layer {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 calc(24 * var(--u)) calc(var(--safe-bottom) + 24 * var(--u));
}
.reveal-banner-layer.is-reporting {
  background: rgba(0, 0, 0, 0.42);
}
.reveal-banner {
  width: min(100%, calc(1032 * var(--u)));
  display: flex;
  flex-direction: column;
  gap: calc(18 * var(--u));
  padding: calc(30 * var(--u)) calc(36 * var(--u)) calc(32 * var(--u));
  border-radius: calc(44 * var(--u));
  background: var(--card-warm);
  box-shadow: 0 calc(-6 * var(--u)) calc(30 * var(--u)) rgba(27, 37, 89, 0.22);
  animation: banner-rise 300ms var(--ease-out);
}
@keyframes banner-rise {
  from {
    transform: translateY(110%);
  }
}
.reduced-motion .reveal-banner {
  animation: none;
}
.reveal-banner__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: calc(24 * var(--u));
}
.reveal-banner__badge {
  display: grid;
  place-items: center;
  width: calc(110 * var(--u));
  height: calc(110 * var(--u));
  border-radius: 50%;
  background: var(--correct);
}
.reveal-banner.is-wrong .reveal-banner__badge {
  background: var(--danger);
}
.reveal-banner__badge img {
  width: 62%;
  height: 62%;
  object-fit: contain;
}
.reveal-banner__titles {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: calc(4 * var(--u));
  text-align: left;
}
.reveal-banner__titles b {
  font-weight: var(--w-bold);
  font-size: calc(52 * var(--u));
  line-height: 1;
  color: var(--correct);
}
.reveal-banner.is-wrong .reveal-banner__titles b {
  color: var(--danger);
}
.reveal-banner__titles span {
  font-weight: var(--w-bold);
  font-size: calc(32 * var(--u));
  line-height: 1.25;
  color: var(--correct-ink);
  /* the correct answer is always shown whole: it wraps instead of ending in an ellipsis */
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
/* a hyphenated word in the answer line stays whole (panels.js keepHyphenatedWords) */
.reveal-banner__titles .nowrap {
  white-space: nowrap;
}
.reveal-banner.is-wrong .reveal-banner__titles span {
  color: var(--ink);
  font-weight: var(--w-semibold);
}

/* Confirmed earned progress: same warm result family at readable phone size. */
.quiz-overlay .result-card--earned {
  width: min(100%, 360px); gap: 8px; padding: 16px 18px;
  border-radius: 26px;
}
.quiz-overlay .result-card--earned .result-card__hero { height: 108px; }
.quiz-overlay .result-card--earned .result-card__circle { width: 104px; height: 104px; }
.quiz-overlay .result-card--earned .result-card__robot { width: 96px; height: 106px; }
.quiz-overlay .result-card--earned .result-card__title { font-size: 28px; line-height: 1.1; }
.quiz-overlay .result-card--earned .result-card__subtitle { font-size: 16px; line-height: 1.3; }
.quiz-overlay .result-card--earned .result-card__label { font-size: 14px; margin-top: 0; }
.quiz-overlay .result-card--earned .result-card__box { width: min(100%, 240px); height: 48px; border-radius: 16px; font-size: 30px; }
.quiz-overlay .result-card--earned .result-card__caption { font-size: 14px; }
.quiz-overlay .result-card--earned .result-card__stars { display: none; }
.quiz-overlay .result-card--earned .result-card__note { width: 100%; padding: 10px 12px; border-radius: 14px; }
.quiz-overlay .result-card--earned .result-card__note b { font-size: 16px; }
.quiz-overlay .result-card--earned .result-card__note p { font-size: 14px; line-height: 1.35; }
.quiz-overlay .result-card--earned .result-card__actions { gap: 8px; width: 100%; margin-top: 0; }
.quiz-overlay .result-card--earned .result-card__actions .btn { --btn-h: 48px; --btn-font: 18px; gap: 10px; }
.quiz-overlay .result-card--earned .result-card__actions .btn__icon { width: 26px; height: 26px; }
.earned-rewards { position: relative; width: 100%; text-align: left; color: var(--ink); }
.earned-rewards__visible { display: grid; gap: 8px; }
.earned-league { display: flex; align-items: center; gap: 10px; min-height: 68px; padding: 10px 12px; border-radius: 15px;
  color: white; background: #008044; box-shadow: inset 0 -3px 0 #056d3d; font-variant-numeric: tabular-nums; }
.earned-league > img { width: 42px; height: 46px; object-fit: contain; flex: none; }
.earned-league > span { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.earned-league strong { font-size: 29px; line-height: 1; font-weight: var(--w-bold); }
.earned-league small { font-size: 13px; line-height: 1.25; }
.earned-league__total { margin-left: auto; padding-left: 10px; border-left: 1px solid #ffffff77; }
.earned-league__total b { font-size: 18px; white-space: normal; overflow-wrap: anywhere; }
.earned-chips { display: flex; gap: 8px; }
.earned-chips > span { display: flex; justify-content: center; align-items: center; flex: 1; min-width: 0; min-height: 42px;
  gap: 10px; border: 1px solid #e5e0d6; border-radius: 22px; background: white; font-size: 22px; }
.earned-chips img { width: 29px; height: 29px; object-fit: contain; }
.earned-mastery-list { padding: 10px 12px; border: 1px solid #e5e0d6; border-radius: 15px; background: white; }
.earned-rewards__label { display: block; font-size: 15px; margin-bottom: 5px; }
.earned-mastery { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 4px 8px; align-items: center;
  min-height: 38px; color: var(--ink); font-size: 15px; }
.earned-mastery > img { width: 30px; height: 30px; object-fit: contain; grid-row: 1 / span 2; }
.earned-mastery__glyph { width: 30px; height: 30px; grid-row: 1 / span 2; background: var(--ink, #1b2559);
  mask: var(--earned-glyph) center / contain no-repeat; -webkit-mask: var(--earned-glyph) center / contain no-repeat; }
.reward-details .popup__close { color: var(--ink, #1b2559); background: #fff; border: 1px solid #e5e0d6; }
.earned-mastery__name { font-weight: var(--w-semibold); overflow-wrap: anywhere; }
.earned-mastery > b { white-space: nowrap; font-size: 16px; }
.earned-mastery__before { grid-column: 2; font-size: 14px; }
.earned-mastery__level { grid-column: 3; font-size: 14px; }
.earned-details-button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 34px; margin: 7px 0 0 auto;
  padding: 4px 13px; color: #0757a7; background: #fff; border: 1px solid #bbd2f8; border-radius: 18px;
  font: inherit; font-weight: var(--w-semibold); font-size: 15px; box-shadow: 0 2px 2px #00124215; }
.earned-details-button > span { font-size: 25px; line-height: 1; }
.earned-status { display: flex; gap: 12px; align-items: center; padding: 13px; min-height: 68px; border-radius: 15px; background: #e4efff; }
.earned-status > span:last-child { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.earned-status b { font-size: 16px; line-height: 1.3; }
.earned-status small { font-size: 15px; line-height: 1.35; }
.earned-status > img { width: 38px; height: 38px; object-fit: contain; flex: none; }
.earned-status--rejected { background: #fbe9e8; }
.earned-status--excluded, .earned-status--zero { background: #edf0f5; }
.earned-status__spinner { width: 34px; height: 34px; border: 5px solid #a6c7f5; border-top-color: #1686fa;
  border-radius: 50%; flex: none; animation: reward-spin 900ms linear infinite; }
@keyframes reward-spin { to { transform: rotate(1turn); } }
.reduced-motion .earned-status__spinner { animation: none; }
.earned-rewards__remaining, .earned-rewards__error { font-size: 14px; line-height: 1.4; margin-top: 6px; }
.earned-rewards__error { color: var(--danger-ink); }
.popup.reward-details { width: min(94vw, 560px); max-height: calc(100dvh - 32px); background: var(--card-warm); }
.reward-details .popup__header { background: var(--card-warm); color: var(--ink); text-shadow: none; padding: 18px 52px 14px 20px; }
.reward-details .popup__header h2 { font-size: 22px; color: var(--ink); text-shadow: none; }
.reward-details .popup__body { display: flex; min-height: 0; padding: 0; overflow: hidden; }
.reward-details .popup__footer { padding: 12px 18px 18px; }
.reward-details .popup__footer .btn { --btn-h: 50px; --btn-font: 19px; }
.reward-details__scroll { width: 100%; max-height: min(65dvh, 570px); overflow-y: auto; min-height: 0; padding: 4px 18px;
  mask-image: linear-gradient(to bottom, transparent, #000 var(--reward-fade-top, 0px), #000 calc(100% - var(--reward-fade-bottom, 0px)), transparent); }
.reward-details__content { display: grid; gap: 10px; padding: 8px 0; }
.earned-detail-award { padding: 12px; border: 1px solid #e5e0d6; border-radius: 15px; background: #fff; }
.reward-details__resource { display: flex; align-items: center; gap: 12px; }
.reward-details__resource > img { width: 38px; height: 42px; object-fit: contain; }
.reward-details__resource > strong { font-size: 27px; }
.reward-details__resource > span { display: flex; flex-direction: column; gap: 4px; margin-left: auto; font-size: 15px; text-align: right; }
.reward-details__resource b { font-size: 17px; }
.reward-details__breakdown { display: grid; gap: 8px; margin-top: 12px; font-size: 15px; }
.reward-details__breakdown > span { display: flex; justify-content: space-between; }
.reward-details__bonus { margin-top: 8px; font-size: 14px; }
.reward-details__score { display: flex; gap: 10px; }
.reward-details__score > span { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid #e5e0d6;
  border-radius: 15px; background: white; font-size: 15px; text-align: center; }
.reward-details__score b { font-size: 23px; }
.home-earned-moment { position: relative; margin: 10px 0; padding: 10px; border: 1px solid #c5e6d9; border-radius: 18px; background: #f3fff9; }
.home-earned-card { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.home-earned-card__award { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.home-earned-card__award > img { width: 32px; height: 36px; object-fit: contain; flex: none; }
.home-earned-card__award > .earned-mastery__glyph { flex: none; }
.home-earned-card__copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
.home-earned-card__copy b { font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; }
.home-earned-card__copy small { font-size: 13px; line-height: 1.2; }
.home-earned-card__award > strong { font-size: 23px; white-space: nowrap; }
.home-earned-card .earned-details-button { flex: none; width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
.home.home--earning .home__news { scrollbar-width: none;
  mask-image: linear-gradient(to bottom, transparent, #000 var(--home-reward-fade-top, 0px), #000 calc(100% - var(--home-reward-fade-bottom, 0px)), transparent); }
.layout-phone .home.home--daily.home--earning { overflow: hidden; }
.layout-phone .home.home--daily.home--earning .home__news { flex: 1 1 0; min-height: 0; overflow-y: auto; padding-bottom: 8px; }
.layout-phone .home.home--daily.home--earning .home-stage { flex: 0 0 250px; min-height: 250px; order: 0; margin-top: 8px; }
.layout-phone .home.home--daily.home--quick.home--earning .home-stage { flex-basis: 320px; min-height: 320px; }
@media (max-height: 800px) and (orientation: portrait) {
  .layout-phone .home.home--daily.home--earning .home-stage { flex-basis: 148px; min-height: 148px; }
  .layout-phone .home.home--daily.home--quick.home--earning .home-stage { flex-basis: 164px; min-height: 164px; }
}
@media (min-width: 760px) and (max-width: 999px), (min-width: 1000px) and (max-width: 1199px) and (orientation: portrait) {
  .layout-wide .home.home--quick.home--earning { overflow: hidden; }
  .layout-wide .home.home--quick.home--earning .home__news { flex: 1 1 0; min-height: 0; overflow-y: auto; padding-bottom: 8px; }
  .layout-wide .home.home--quick.home--earning .home-stage { flex: 0 0 260px; min-height: 260px; height: 260px; flex-direction: row; flex-wrap: nowrap; gap: 24px; padding: 12px 0 8px; }
  .layout-wide .home.home--quick.home--earning .home-stage__robot { height: 140px; max-width: 25%; margin: 0; }
  .layout-wide .home.home--quick.home--earning .home-quick-actions { flex: 1; min-width: 0; width: auto; max-width: none; }
  .layout-wide .home.home--quick.home--earning .home-quick-actions .home-play { width: 100%; max-width: none; }
}
.earned-league--quiet { min-height: 52px; background: none; box-shadow: none; color: #006740; padding: 0; }
.earned-league--quiet .earned-league__total { border-color: #b6dac9; }
.earned-league--quiet > img { width: 36px; height: 40px; }
.earned-league--quiet strong { font-size: 25px; }
@media (min-width: 760px) {
  .quiz-overlay .result-card--earned { width: min(100%, 560px); padding: 16px 24px; }
  .result-card--earned .earned-rewards__visible { grid-template-columns: 1fr 1fr; }
  .result-card--earned .earned-league, .result-card--earned .earned-status { grid-column: 1 / -1; }
  .result-card--earned .earned-chips { grid-column: 1; flex-direction: column; }
  .result-card--earned .earned-mastery-list { grid-column: 2; }
  .result-card--earned .earned-rewards__remaining { grid-column: 1 / -1; }
}
.reveal-banner__flag {
  display: grid;
  place-items: center;
  width: calc(80 * var(--u));
  height: calc(80 * var(--u));
  border-radius: 50%;
  background: #ece9e2;
}
.reveal-banner__flag.is-on {
  background: var(--slate);
}
.reveal-banner__flag img {
  width: 50%;
  height: 50%;
  object-fit: contain;
}
.reveal-banner__explanation,
.reveal-banner__status {
  font-weight: var(--w-semibold);
  font-size: calc(26 * var(--u));
  color: var(--ink);
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reveal-banner__status {
  color: var(--correct-ink);
}
.reveal-banner__report {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: calc(16 * var(--u));
}
.reveal-banner__report p {
  font-weight: var(--w-semibold);
  font-size: calc(28 * var(--u));
  color: var(--ink);
}
.reveal-banner__report div {
  display: flex;
  gap: calc(14 * var(--u));
}
.reveal-banner__progress {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: calc(20 * var(--u));
}
.reveal-banner__track {
  height: calc(20 * var(--u));
  border-radius: 999px;
  background: #e9e5dc;
  overflow: hidden;
}
.reveal-banner__track span {
  display: block;
  height: 100%;
  /* The full track owns the rounded ends; a nearly empty countdown stays a clean slice. */
  background: var(--yellow);
}
.reveal-banner__countdown {
  font-weight: var(--w-semibold);
  font-size: calc(24 * var(--u));
  color: var(--section-grey);
  white-space: nowrap;
}

/* The sheet covers the booster tray: the tray steps out while it is up, so nothing peeks out around the sheet. */
.quiz__footer {
  transition: opacity var(--t-med) var(--ease-out);
}
.quiz:has(.reveal-banner-layer) .quiz__footer {
  opacity: 0;
  pointer-events: none;
}

/* The sheet takes the question column's width (panels.js measures it), so its edges line up with the card and the
   answers. Wide: it also shows the whole explanation, clamped only when the room below the answers cannot hold it. */
.reveal-banner-layer.is-aligned {
  justify-content: flex-start;
  padding-left: var(--dock-left);
  padding-right: 0;
}
.reveal-banner-layer.is-aligned .reveal-banner {
  width: var(--dock-width);
}
.reveal-banner-layer.is-docked .reveal-banner {
  gap: calc(14 * var(--u));
  padding: calc(26 * var(--u)) calc(40 * var(--u)) calc(28 * var(--u));
}
.is-docked .reveal-banner__titles span {
  font-size: calc(34 * var(--u));
}
.is-docked .reveal-banner__explanation,
.is-docked .reveal-banner__status {
  font-size: calc(30 * var(--u));
  line-height: 1.4;
  white-space: normal;
  text-overflow: clip;
  text-wrap: pretty;
}
.reveal-banner__explanation.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--clamp);
  overflow: hidden;
}
/* little room below the answers: a smaller badge and less air so the sheet still clears them */
.reveal-banner-layer .reveal-banner.is-tight {
  gap: calc(12 * var(--u));
  padding-top: calc(18 * var(--u));
  padding-bottom: calc(20 * var(--u));
}
.reveal-banner.is-tight .reveal-banner__badge {
  width: calc(84 * var(--u));
  height: calc(84 * var(--u));
}
.reveal-banner.is-tight .reveal-banner__titles b {
  font-size: calc(40 * var(--u));
}
.reveal-banner.is-tight .reveal-banner__titles span {
  font-size: calc(30 * var(--u));
}
.is-docked .reveal-banner.is-tight .reveal-banner__explanation,
.is-docked .reveal-banner.is-tight .reveal-banner__status {
  font-size: calc(28 * var(--u));
}
.reveal-banner.is-tight .reveal-banner__flag {
  width: calc(68 * var(--u));
  height: calc(68 * var(--u));
}

/* ---- Category Master reveal popup (QuizRevealPanel: 910u card) ------------------------------------------------ */
.reveal-popup {
  position: relative;
  width: min(100%, calc(910 * var(--u)));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(14 * var(--u));
  padding: calc(40 * var(--u)) calc(50 * var(--u)) calc(40 * var(--u));
  border-radius: calc(56 * var(--u));
  background: var(--card-warm);
  box-shadow: 0 calc(18 * var(--u)) calc(50 * var(--u)) rgba(0, 0, 0, 0.32);
  text-align: center;
  animation: pop-in var(--t-slow) var(--ease-spring);
}
.reveal-popup__badge {
  display: grid;
  place-items: center;
  width: calc(136 * var(--u));
  height: calc(136 * var(--u));
  border-radius: 50%;
  background: var(--correct);
  box-shadow: 0 0 0 calc(10 * var(--u)) #d5ead6;
}
.reveal-popup.is-wrong .reveal-popup__badge {
  background: var(--danger);
  box-shadow: 0 0 0 calc(10 * var(--u)) #f9e1df;
}
.reveal-popup__badge img {
  width: 58%;
  height: 58%;
}
.reveal-popup__headline {
  margin-top: calc(10 * var(--u));
  font-weight: var(--w-bold);
  font-size: calc(62 * var(--u));
  letter-spacing: var(--tmp-bold);
  color: var(--correct);
}
.reveal-popup.is-wrong .reveal-popup__headline {
  color: var(--danger);
}
.reveal-popup__label {
  font-size: max(13px, calc(26 * var(--u)));
  line-height: 1.35;
  color: var(--section-grey);
}
.reveal-popup__answer {
  font-weight: var(--w-bold);
  font-size: max(15px, calc(34 * var(--u)));
  overflow-wrap: anywhere;
  color: var(--correct-ink);
}
.reveal-popup__explanation {
  width: 100%;
  padding: calc(24 * var(--u)) calc(30 * var(--u));
  border-radius: calc(30 * var(--u));
  border: calc(3 * var(--u)) solid #7dcb9d;
  background: #eef8f2;
  font-weight: var(--w-medium);
  font-size: max(13px, calc(28 * var(--u)));
  line-height: 1.4;
  overflow-wrap: anywhere;
  color: #12323a;
  text-align: left;
}
.reveal-popup.is-wrong .reveal-popup__explanation {
  border-color: #ecaaa0;
  background: #fdf4f3;
}
/* Good / Bad / Report error share one row across the card (QuizRevealPanel ReportChoices) */
.reveal-popup__ratings .btn {
  flex: 1 1 auto;
  min-width: 0;
  --btn-font: calc(28 * var(--u));
  gap: calc(14 * var(--u));
  padding: 0 calc(22 * var(--u));
}
.reveal-popup__ratings .btn__icon {
  width: calc(44 * var(--u));
  height: calc(44 * var(--u));
}
.reveal-popup__divider {
  width: 100%;
  height: calc(3 * var(--u));
  flex: none;
  border-radius: 2px;
  background: #e7e4dc;
}
.reveal-popup__ratings {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: calc(14 * var(--u));
}
.reveal-popup__status {
  font-weight: var(--w-semibold);
  font-size: max(13px, calc(28 * var(--u)));
  line-height: 1.35;
  color: var(--correct-ink);
}
.feedback-reward {
  display: inline-flex;
  align-items: center;
  gap: calc(10 * var(--u));
  vertical-align: middle;
}
.feedback-reward > img {
  width: calc(36 * var(--u));
  height: calc(36 * var(--u));
  flex: none;
  object-fit: contain;
}
.reveal-popup__mascot {
  width: 100%;
  display: flex;
  align-items: center;
  gap: calc(24 * var(--u));
  min-height: calc(260 * var(--u));
  padding: calc(18 * var(--u)) calc(36 * var(--u)) calc(18 * var(--u)) calc(40 * var(--u));
  border: calc(3 * var(--u)) solid #e5e9eb;
  border-radius: calc(30 * var(--u));
  background: #fff;
  text-align: left;
}
.reveal-popup__robot {
  width: calc(215 * var(--u));
  height: calc(215 * var(--u));
  flex: none;
}
.reveal-popup__mascot b {
  font-weight: var(--w-semibold);
  font-size: max(14px, calc(34 * var(--u)));
  line-height: 1.3;
  letter-spacing: var(--tmp-bold);
  color: #17323f;
}
.reveal-popup__mascot p {
  font-weight: var(--w-semibold);
  font-size: max(13px, calc(26 * var(--u)));
  line-height: 1.4;
  color: #66727c;
}

/* ---- fit ladder (QuizColumnLayout): gap / outer / row face / question font -------------------------- */
.quiz {
  --q-gap: calc(32 * var(--u));
  --row-face: calc(130 * var(--u));
  --q-font: calc(40 * var(--u));
  --card-pad: calc(40 * var(--u));
}
.quiz--fit-1 { --q-gap: calc(28 * var(--u)); --row-face: calc(120 * var(--u)); }
.quiz--fit-2 { --q-gap: calc(24 * var(--u)); --row-face: calc(120 * var(--u)); --card-pad: calc(28 * var(--u)); }
.quiz--fit-3 { --q-gap: calc(20 * var(--u)); --row-face: calc(108 * var(--u)); --card-pad: calc(28 * var(--u)); }
.quiz--fit-4 { --q-gap: calc(20 * var(--u)); --row-face: calc(108 * var(--u)); --card-pad: calc(28 * var(--u)); --q-font: calc(36 * var(--u)); }
.quiz--fit-5 { --q-gap: calc(20 * var(--u)); --row-face: calc(108 * var(--u)); --card-pad: calc(28 * var(--u)); --q-font: calc(32 * var(--u)); }
.quiz--fit-6 { --q-gap: calc(16 * var(--u)); --row-face: calc(108 * var(--u)); --card-pad: calc(28 * var(--u)); --q-font: calc(32 * var(--u)); }
.quiz__scroll,
.quiz-question,
.answers {
  gap: var(--q-gap);
}
.quiz-question .answer {
  min-height: calc(var(--row-face) + 14 * var(--u));
}
.quiz-question .question-card {
  padding-top: calc(var(--card-pad) + 16 * var(--u));
  padding-bottom: calc(var(--card-pad) + 12 * var(--u));
}
.quiz-question .question-card__text {
  font-size: var(--q-font);
}
/* centre the card and answers in the spare height (QuizColumnLayout) */
.quiz__scroll > .quiz-question,
.quiz__scroll > .loading-card {
  margin: auto 0;
}

/* ---- wide: a wider column and a 2x2 answer grid ------------------------------------------------------ */
.layout-wide .quiz__body {
  width: min(100%, calc(1500 * var(--u)));
}
@media (min-width: 1200px) {
  .layout-wide .quiz__body {
    width: min(100%, calc(1800 * var(--u)));
  }
}
.layout-wide .booster-bar__row {
  max-width: calc(1080 * var(--u));
  margin: 0 auto;
}
/* A short landscape window and a portrait tablet give the quiz its own unit: QuizLayout sets --u on .quiz as a px
   value (parts.js quizUnit), because the Spine robot reads --u as a number. */

/* ---- planned column (js/game/quiz/column-layout.js; QuizColumnLayout + QuestionCardLayout) ----------------------
   The planner writes the composition and every size in canvas units as custom properties; these rules only place. */
.quiz__scroll > [data-col-plan] {
  display: flex;
  flex-direction: column;
  gap: calc(var(--plan-gap) * var(--u));
  margin: 0;
  padding: calc(var(--plan-top) * var(--u)) 0 calc(var(--plan-bottom) * var(--u));
}
.question-card[data-plan] {
  display: block;
  flex: none;
  height: calc(var(--card-h) * var(--u));
  /* the card's soft shadow hangs below its slot, so the visible gap to the answers is the column rhythm */
  margin-bottom: calc(-2 * var(--u));
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  gap: 0;
}
/* QuestionBackground.png, 9-sliced (border L80 B89 R80 T115): the arched top and the grey lower edge */
.question-card[data-plan]::before {
  content: '';
  position: absolute;
  inset: 0;
  border-style: solid;
  border-color: transparent;
  border-width: calc(115 * var(--card-edge-scale, 1) * var(--u)) calc(80 * var(--u)) calc(89 * var(--card-edge-scale, 1) * var(--u)) calc(80 * var(--u));
  border-image: url('../assets/unity/Art/UI/Elements/Backgrounds/AskAQuestion/QuestionBackground.webp') 115 80 89 80 fill / calc(115 * var(--card-edge-scale, 1) * var(--u)) calc(80 * var(--u)) calc(89 * var(--card-edge-scale, 1) * var(--u)) calc(80 * var(--u));
  pointer-events: none;
}
.question-card[data-plan] .question-card__media {
  position: absolute;
  z-index: 1;
  left: calc(var(--fx) * var(--u));
  top: calc(var(--fy) * var(--u));
  width: calc(var(--fw) * var(--u));
  height: calc(var(--fh) * var(--u));
}
.question-card[data-plan] .question-card__tile,
.question-card[data-plan] .question-card__picture {
  width: 100%;
  height: 100%;
  /* QuestionImageMask: a rounded square scaled to the frame */
  border-radius: 3.3%;
}
.question-card[data-plan] .question-card__picture img {
  object-fit: cover;
}
.question-card[data-picture='1'] .question-card__picture img{object-fit:contain}
.question-card__media-status{display:grid;place-items:center;width:100%;height:100%;min-height:calc(150 * var(--u));padding:calc(24 * var(--u));background:#f2f6f5;border-radius:3.3%;font-size:calc(30 * var(--u));line-height:1.35;text-align:center;color:var(--ink)}
.question-card[data-plan] .question-card__text {
  position: absolute;
  z-index: 1;
  left: calc(var(--tx) * var(--u));
  top: calc(var(--ty) * var(--u));
  width: calc(var(--tw) * var(--u));
  margin: 0;
  font-size: calc(var(--plan-font) * var(--u));
  line-height: 1.63;
  text-align: var(--talign);
  /* The planner measures the same emergency breaks for overlong tokens. */
  overflow-wrap: anywhere;
}
.question-card[data-plan='text'] .question-card__media {
  display: none;
}
/* Keep a short final word from standing alone in the question column.
   The planner's type size and available text rectangle remain authoritative. */
.question-card[data-plan] .question-card__text {
  text-wrap: balance;
}
.answers[data-cols] {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--plan-gap, 32) * var(--u));
}
.answers[data-cols='2'] {
  grid-template-columns: 1fr 1fr;
}
.answers[data-cols] .answer {
  height: calc(var(--row-h) * var(--u));
  min-height: 0;
  padding: 0 calc(40 * var(--u));
}
.answers[data-cols] .answer__text {
  font-size: calc(var(--answer-font, 40) * var(--u));
  line-height: 1.32;
}
.answers[data-cols] .answer__mark {
  /* the check or cross of a revealed answer (colour never stands alone for right and wrong), list row and tile alike */
  display: block;
  right: calc(24 * var(--u));
  width: calc(40 * var(--u));
  height: calc(40 * var(--u));
}
/* A planned row keeps the mark's width free on both sides (split-plan.js MARK_RESERVE plans the label that narrow),
   so its centred label sits in the same place before and after the reveal and never runs under the mark. Adventure's
   padlock and bet rows own their space already. */
.answers[data-cols] > .answer > .answer__text,
.answers[data-cols] > .advq-row:not(.has-chip):not(.has-stamp) > .answer > .answer__text {
  max-width: calc(100% - 72 * var(--u));
}

/* The wide picture composition (js/ui/quiz/split-plan.js): the card with its photo on the left, the answers in a
   list on the right, both centred on the same middle line. */
.quiz__scroll > [data-col-plan][data-split='1'] {
  display: grid;
  grid-template-columns: calc(var(--split-left) * var(--u)) minmax(0, 1fr);
  align-items: center;
  column-gap: calc(var(--plan-gap) * var(--u));
}
[data-split='1'] > .question-card[data-plan] {
  margin-bottom: 0;
}

/* A photo gets a thin frame: a white-background picture on the white card keeps visible edges, and the magnifier
   reads as the picture's own corner badge. (The prefab's QuestionImageMask has no frame of its own.) */
.question-card__picture::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 max(1px, calc(3 * var(--u))) #dde1e7;
  pointer-events: none;
}
.question-card__zoom {
  z-index: 1;
}
/* A tile beside the question on a wide card: the lines run across the width (balanced lines left the right side
   empty); a lone last word is still avoided. */
.layout-wide .question-card[data-plan='long'] .question-card__text {
  text-wrap: pretty;
}

/* A desktop reveal can use the available width instead of shrinking its copy
   into the height-scaled phone composition. Preserve the existing materials. */
@media (min-width: 1200px) {
  .layout-wide .reveal-popup:not(.advq-reveal) {
    width: min(720px, calc(100vw - 96px));
    gap: 10px;
    padding: 24px 32px;
  }
  .layout-wide .reveal-popup:not(.advq-reveal) .reveal-popup__headline {
    margin-top: 4px;
    font-size: 32px;
    line-height: 1.1;
  }
  .layout-wide .reveal-popup:not(.advq-reveal) .reveal-popup__label {
    font-size: 16px;
  }
  .layout-wide .reveal-popup:not(.advq-reveal) .reveal-popup__answer {
    font-size: 22px;
    line-height: 1.3;
  }
  .layout-wide .reveal-popup:not(.advq-reveal) .reveal-popup__explanation {
    padding: 14px 18px;
    font-size: 18px;
    line-height: 1.45;
  }
  .layout-wide .reveal-popup:not(.advq-reveal) .reveal-popup__ratings {
    gap: 12px;
  }
  .layout-wide .reveal-popup:not(.advq-reveal) .reveal-popup__ratings .btn {
    --btn-h: 48px;
    --btn-font: 16px;
    gap: 12px;
    padding: 0 20px;
  }
  .layout-wide .reveal-popup:not(.advq-reveal) .reveal-popup__ratings .btn__icon {
    width: 24px;
    height: 24px;
  }
  .layout-wide .reveal-popup:not(.advq-reveal) .reveal-popup__mascot {
    min-height: 120px;
    gap: 24px;
    padding: 12px 24px;
  }
  .layout-wide .reveal-popup:not(.advq-reveal) .reveal-popup__robot {
    width: 104px;
    height: 104px;
  }
  .layout-wide .reveal-popup:not(.advq-reveal) .reveal-popup__mascot b {
    font-size: 20px;
  }
  .layout-wide .reveal-popup:not(.advq-reveal) .reveal-popup__mascot p {
    font-size: 18px;
  }
  .layout-wide .reveal-popup:not(.advq-reveal) > .btn--yellow {
    --btn-h: 56px;
    --btn-font: 22px;
  }
}
@media (min-width: 1200px) and (max-height: 760px) {
  .layout-wide .reveal-popup:not(.advq-reveal) {
    gap: 8px;
    padding: 20px 28px;
  }
  .layout-wide .reveal-popup:not(.advq-reveal) .reveal-popup__badge {
    width: 52px;
    height: 52px;
  }
  .layout-wide .reveal-popup:not(.advq-reveal) .reveal-popup__headline {
    margin-top: 2px;
    font-size: 30px;
  }
  .layout-wide .reveal-popup:not(.advq-reveal) .reveal-popup__mascot {
    min-height: 108px;
    padding: 8px 20px;
  }
  .layout-wide .reveal-popup:not(.advq-reveal) .reveal-popup__robot {
    width: 96px;
    height: 96px;
  }
}

/* ---- First-session gentle practice quiz ------------------------------------------------------- */
.practice-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(10 * var(--u));
  min-height: calc(236 * var(--u));
  padding: calc(18 * var(--u)) calc(24 * var(--u));
  text-align: center;
}
.practice-footer__hint {
  font-weight: var(--w-semibold);
  font-size: max(13px, calc(30 * var(--u)));
  line-height: 1.35;
  color: var(--ink);
  text-wrap: balance;
}
.practice-footer__sub {
  font-weight: var(--w-medium);
  font-size: max(12px, calc(24 * var(--u)));
  line-height: 1.35;
  color: var(--ink);
  opacity: 0.78;
}
.quiz--practice .quiz-banner__category-name {
  font-size: calc(min(var(--fit, 46), 36) * var(--u));
}
/* "Question N of 5" sits clearly below the title, as in the app */
.quiz--practice .quiz-banner__title {
  font-size: calc(30 * var(--u));
}
.quiz--practice .reveal-banner__explanation {
  white-space: normal;
  text-overflow: clip;
  line-height: 1.38;
  text-wrap: pretty;
}
.quiz--practice .reveal-banner {
  cursor: pointer;
}
.quiz--practice .result-card__note {
  border: calc(3 * var(--u)) solid #e6e0d2;
}
.quiz--practice .result-card__note p {
  margin-top: calc(6 * var(--u));
  line-height: 1.38;
  color: #4f4638;
  text-wrap: pretty;
}
