/* Simulator page (simulator.html). Loaded only there. RTL-first, logical properties, brand purple. */

.sim {
  --sim-accent: var(--brand);
  --sim-deep: var(--brand-deep);
  --sim-soft: var(--brand-soft);
  --sim-screen: linear-gradient(170deg, #7048e8, #4334b0);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  align-items: start;
  gap: 36px;
}

.sim[data-band='early'] {
  --sim-accent: #c2410c;
  --sim-deep: #a63d00;
  --sim-soft: #fff1e6;
  --sim-screen: linear-gradient(170deg, #c2410c, #be185d);
}

.sim[data-band='upper'] {
  --sim-accent: #1f6feb;
  --sim-deep: #1b3a8a;
  --sim-soft: #e7f0ff;
  --sim-screen: linear-gradient(170deg, #1f3c88, #1b1e2e);
}

.sim-hero h1 {
  margin-block-end: 8px;
}

.sim-band {
  padding-block-start: 36px;
}

.sim-h {
  font-size: 26px;
}

/* Setup */
.sim-setup {
  padding: 26px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.sim-step {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.sim-step legend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-block-end: 10px;
  font-size: 19px;
  font-weight: 800;
}

.sim-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sim-accent);
  color: #fff;
  font-size: 15px;
  transition: background 0.3s ease;
}

.sim-help {
  margin-block: 0 8px;
  color: var(--muted);
  font-size: 16px;
}

.sim-age {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-block-end: 6px;
}

.sim-age-out b {
  color: var(--sim-deep);
  font-size: 44px;
  line-height: 1;
  transition: color 0.3s ease;
}

.sim-band-tag {
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--sim-soft);
  color: var(--sim-deep);
  font-size: 15px;
  font-weight: 800;
}

/* Range: a thick track that fills from the start side (right in RTL) */
.sim input[type='range'] {
  --pct: 40%;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.sim input[type='range']::-webkit-slider-runnable-track {
  height: 12px;
  border-radius: 99px;
  background: linear-gradient(to left, var(--sim-accent) var(--pct), #e4e1f5 var(--pct));
}

.sim input[type='range']::-moz-range-track {
  height: 12px;
  border-radius: 99px;
  background: #e4e1f5;
}

.sim input[type='range']::-moz-range-progress {
  height: 12px;
  border-radius: 99px;
  background: var(--sim-accent);
}

.sim input[type='range']::-webkit-slider-thumb {
  width: 34px;
  height: 34px;
  margin-top: -11px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--sim-accent);
  box-shadow: 0 4px 14px rgba(27, 30, 46, 0.3);
  -webkit-appearance: none;
  appearance: none;
  transition: transform 0.15s ease;
}

.sim input[type='range']::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--sim-accent);
  box-shadow: 0 4px 14px rgba(27, 30, 46, 0.3);
}

.sim input[type='range']:active::-webkit-slider-thumb {
  transform: scale(1.12);
}

.sim input[type='range']:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.sim-scale {
  display: flex;
  justify-content: space-between;
  padding-inline: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.sim-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-end: 14px;
}

.sim-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border: 2px solid #ddd8ff;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.sim-chip:hover {
  transform: translateY(-1px);
}

.sim-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sim-chip .ic {
  color: var(--sim-accent);
}

.sim-chip:has(input:checked) {
  border-color: var(--sim-accent);
  background: var(--sim-soft);
  color: var(--sim-deep);
}

.sim-chip:has(input:checked)::after {
  content: '✓';
  font-weight: 900;
}

.sim-chip:has(input:focus-visible) {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.sim-emoji {
  font-size: 20px;
}

.sim-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-block-end: 8px;
  padding: 6px;
  border-radius: 18px;
  background: #f1effa;
}

.sim-seg label {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 46px;
  border-radius: 14px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.sim-seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sim-seg label:has(input:checked) {
  background: #fff;
  color: var(--sim-deep);
  box-shadow: 0 4px 12px rgba(27, 30, 46, 0.12);
}

.sim-seg label:has(input:focus-visible) {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.sim-start {
  width: 100%;
  background: var(--sim-accent);
}

/* Stage and device */
.sim-stage {
  position: sticky;
  top: 84px;
}

.sim-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-block-end: 14px;
  padding: 6px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
}

.sim-view [role='tab'] {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--brand-deep);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.sim-view [role='tab'][aria-selected='true'] {
  background: var(--brand);
  color: #fff;
}

.sim-device {
  position: relative;
  padding: 12px;
  border-radius: 44px;
  background: #1b1e2e;
  box-shadow: 0 30px 60px rgba(27, 30, 46, 0.3);
}

.sim-screen {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  padding: 16px;
  border-radius: 34px;
  font-size: 16px;
  line-height: 1.5;
  animation: sim-in 0.3s ease-out;
}

.sim-screen:focus {
  outline: none;
}

.sim-child {
  background: var(--sim-screen);
  transition: background 0.4s ease;
}

.sim-parent {
  background: #f6f4ff;
}

.sim-idle {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 600px;
  padding: 24px;
  color: #fff;
  text-align: center;
}

.sim-idle-art {
  font-size: 72px;
}

/* Practice screen */
.q-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-block-end: 10px;
  color: #fff;
  font-weight: 800;
}

.q-wallet {
  display: flex;
  gap: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.q-wallet.bump {
  animation: pop 0.45s ease-out;
}

.q-progress {
  display: grid;
  grid-auto-flow: column;
  gap: 6px;
  margin-block-end: 6px;
}

.q-progress span {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.3s ease;
}

.q-progress span.done {
  background: #ffd36b;
}

.q-progress span.now {
  background: #fff;
}

.q-count {
  margin-block: 0 10px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 700;
}

.q-card {
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(27, 30, 46, 0.18);
  animation: sim-in 0.3s ease-out;
}

.q-skill {
  margin-block: 0 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.q-focus {
  margin-block: 4px 8px;
  color: var(--sim-deep);
  font-size: 84px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

/* The app's pictures and reading passages use line breaks ("🍎🍎🍎 / ➕ / 🍎", a passage, then the question). */
.q-visual,
.q-prompt,
.q-feedback {
  white-space: pre-line;
}

.q-visual {
  line-height: 1.35;
  margin-block-end: 10px;
  padding: 10px;
  border-radius: 16px;
  background: var(--sim-soft);
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  overflow-wrap: anywhere;
}

.q-prompt {
  margin-block: 0 14px;
  font-size: 21px;
  line-height: 1.45;
}

.q-prompt:focus {
  outline: none;
}

.q-audio {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-end: 12px;
}

.q-play,
.q-mute {
  min-height: 40px;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--sim-soft);
  color: var(--sim-deep);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.q-mute {
  background: #f1f1f6;
  color: var(--muted);
}

.q-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.q-choices.three.is-glyph {
  grid-template-columns: repeat(3, 1fr);
}

.q-choice {
  min-height: 56px;
  padding: 10px 12px;
  border: 2px solid transparent;
  border-radius: 16px;
  background: var(--sim-soft);
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.is-glyph .q-choice {
  min-height: 72px;
  font-size: 32px;
}

.q-choice:hover:not(:disabled) {
  border-color: var(--sim-accent);
  transform: translateY(-2px);
}

.q-choice:disabled {
  cursor: default;
}

.q-choice.is-right,
.q-choice.is-reveal {
  border-color: transparent;
  background: var(--green-deep);
  color: #fff;
}

.q-choice.is-right {
  animation: pop 0.35s ease-out;
}

.q-choice.is-right::after,
.q-choice.is-reveal::after {
  content: ' ✓';
}

.q-choice.is-wrong {
  background: #ffe3e3;
  color: #9b1c1c;
  animation: shake 0.3s ease-in-out;
}

.q-choice.is-wrong::after {
  content: ' ✗';
}

.q-opt {
  position: relative;
  display: grid;
}

.q-say {
  /* A corner badge, so it never covers the middle of the answer (glyph answers are small). */
  position: absolute;
  inset-block-start: -8px;
  inset-inline-end: -6px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 2px solid var(--sim-soft);
  border-radius: 50%;
  background: #fff;
  color: var(--sim-deep);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.q-choices:has(.q-say) {
  padding-block-start: 8px;
}

.q-say[hidden],
.q-fb-play[hidden] {
  display: none;
}

.q-fb-play {
  margin-block-start: 8px;
}

.q-feedback {
  margin: 12px 0 0;
  font-weight: 700;
}

.q-feedback:empty {
  display: none;
}

.q-feedback.ok {
  color: var(--green-deep);
}

.q-feedback.think {
  color: #6b4500;
}

.q-feedback.reveal {
  color: var(--ink);
}

.q-next {
  width: 100%;
  margin-block-start: 14px;
  background: var(--sim-accent);
}

.sim-toast {
  position: absolute;
  inset-inline: 16px;
  inset-block-end: 16px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #1b1e2e;
  color: #fff;
  font-weight: 800;
  text-align: center;
  animation: sim-in 0.3s ease-out;
}

.sim-burst {
  position: absolute;
  top: 46%;
  left: 50%;
  pointer-events: none;
}

.sim-burst span {
  position: absolute;
  font-size: 26px;
  animation: burst 0.8s ease-out forwards;
}

@keyframes burst {
  from {
    opacity: 1;
    transform: rotate(var(--a)) translateY(0) rotate(calc(-1 * var(--a)));
  }
  to {
    opacity: 0;
    transform: rotate(var(--a)) translateY(-110px) rotate(calc(-1 * var(--a)));
  }
}

@keyframes sim-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* Done */
.sim-done {
  display: grid;
  gap: 10px;
  padding: 22px 18px;
  border-radius: 24px;
  background: #fff;
  text-align: center;
  animation: sim-in 0.35s ease-out;
}

.sim-done h3 {
  margin: 0;
  font-size: 24px;
}

.sim-done h3:focus {
  outline: none;
}

.sim-done-art {
  font-size: 64px;
  line-height: 1;
  animation: pop 0.6s ease-out;
}

.sim-done-score {
  margin: 0;
  font-weight: 800;
}

.sim-done-bank {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  text-align: start;
}

.sim-done-bank b {
  font-size: 34px;
  line-height: 1.1;
}

.sim-bar {
  display: block;
  height: 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.3);
}

.sim-bar > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 99px;
  background: #ffd36b;
  transition: width 1.2s ease;
}

.sim-done-unlock {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-weight: 700;
}

.sim-done .meta {
  margin: 0;
}

.sim-done-actions {
  display: grid;
  gap: 8px;
}

.sim-done-actions .button {
  width: 100%;
  text-align: center;
}

.sim-more {
  font-weight: 800;
}

/* Parent screen */
.p-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-block-end: 12px;
}

.p-brand {
  color: var(--brand-deep);
  font-weight: 900;
}

.p-sample {
  padding: 2px 10px;
  border: 1px dashed #c98a00;
  border-radius: 999px;
  background: var(--amber-soft);
  color: #6b4500;
  font-size: 13px;
  font-weight: 800;
}

.p-child {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-block-end: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  background: #fff;
}

.p-child b {
  font-size: 19px;
}

.p-age {
  flex: 1;
  color: var(--muted);
  font-size: 14px;
}

.p-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-block-end: 12px;
}

.p-tab {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 60px;
  padding: 8px 4px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(27, 30, 46, 0.07);
}

.p-tab .ic {
  width: 22px;
  height: 22px;
  color: var(--brand);
}

.p-tab[aria-selected='true'] {
  background: var(--brand);
  color: #fff;
}

.p-tab[aria-selected='true'] .ic {
  color: #fff;
}

.p-panel {
  display: grid;
  gap: 8px;
  animation: sim-in 0.25s ease-out;
}

.p-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 14px;
  background: #fff;
  font-size: 15px;
}

.p-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.p-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.p-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.p-btn {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.p-btn.soft {
  background: #ece9ff;
  color: var(--brand-deep);
}

.p-meter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #fff;
  font-size: 15px;
}

.p-meter-bar {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 99px;
  background: #ece9ff;
}

.p-meter-bar > span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--green-deep);
  transition: width 0.6s ease;
}

.p-week {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
}

.p-week span {
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--brand), #a99cff);
}

.p-more {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.p-note {
  position: absolute;
  inset-inline: 16px;
  inset-block-end: 16px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: #1b1e2e;
  color: #fff;
  font-weight: 800;
  text-align: center;
  animation: sim-in 0.3s ease-out;
}

.sim-next .actions {
  margin-block-start: 16px;
}

/* Phones and tablets */
@media (max-width: 980px) {
  .sim {
    grid-template-columns: 1fr;
  }

  .sim-stage {
    position: static;
    width: 100%;
    max-width: 440px;
    margin-inline: auto;
    scroll-margin-top: 12px;
  }
}

@media (max-width: 480px) {
  .sim-setup {
    padding: 20px 16px;
  }

  .sim-device {
    padding: 8px;
    border-radius: 34px;
  }

  .sim-screen {
    min-height: 580px;
    padding: 12px;
    border-radius: 28px;
  }

  .q-card {
    padding: 14px;
  }

  .q-prompt {
    font-size: 19px;
  }

  .q-choice {
    font-size: 17px;
  }
}

/* The app's drawings in place of emoji: sized by the text around them. */
.q-pic {
  display: inline-block;
  width: 1.3em;
  height: 1.3em;
  margin-inline: 0.06em;
  vertical-align: -0.28em;
  object-fit: contain;
}

.q-feedback .q-pic {
  width: 1.5em;
  height: 1.5em;
  vertical-align: -0.4em;
}

/* ---------------------------------------------------------------------------------------------------------------
   Lantern look (owner, 2026-12-04): the simulator's phone wears the app's new design. Tokens follow the app's
   design tokens (canvas, ink, primary, violet, gold = earned only). This block only re-skins; it changes no logic.
   --------------------------------------------------------------------------------------------------------------- */
.sim,
.sim[data-band='early'],
.sim[data-band='upper'] {
  --lx-canvas: #f6f6f9;
  --lx-ink: #1e1b3a;
  --lx-ink-2: #5d5f75;
  --lx-hair: #e3e3ec;
  --lx-hair-strong: #c9c9d6;
  --lx-primary: #2e2675;
  --lx-violet: #4a3cb8;
  --lx-violet-tint: #eceafb;
  --lx-gold: #f5a623;
  --lx-gold-text: #8a5300;
  --lx-gold-tint: #fff4e0;
  --lx-safe: #18735a;
  --lx-safe-tint: #ddf0e8;
  --lx-alert: #b4232c;
  --lx-alert-bg: #fbedee;
  --lx-head: 'Fredoka', inherit;
  --sim-accent: var(--lx-violet);
  --sim-deep: var(--lx-primary);
  --sim-soft: #f7f5fd;
  --sim-screen: linear-gradient(180deg, #ede8fb 0%, #f7f5fd 42%, #fce5d6 100%);
  --lx-on-screen: var(--lx-ink);
  --lx-track: #dcdce6;
}

/* Ages 11–14: the app's dark "ink" canvas and the plain typeface. */
.sim[data-band='upper'] {
  --sim-screen: linear-gradient(180deg, #16152f 0%, #211f45 100%);
  --lx-on-screen: #fff;
  --lx-track: rgba(255, 255, 255, 0.2);
  --lx-head: inherit;
}

.sim .sim-device {
  border-radius: 44px;
}

.sim .sim-child {
  color: var(--lx-ink);
}

.sim .q-top {
  color: var(--lx-on-screen);
  font-weight: 600;
}

.sim .q-wallet {
  border: 1px solid var(--lx-hair);
  background: #fff;
  color: var(--lx-ink);
  box-shadow: 0 1px 3px rgba(30, 27, 58, 0.08);
}

.sim .q-progress span {
  background: var(--lx-track);
}

.sim .q-progress span.done {
  background: var(--lx-gold);
}

.sim .q-progress span.now {
  background: var(--lx-violet);
}

.sim[data-band='upper'] .q-progress span.now {
  background: #fff;
}

.sim .q-count {
  color: var(--lx-on-screen);
  font-weight: 500;
  opacity: 0.8;
}

/* The question card dissolves into the screen: Mindo asks from a speech bubble, the picture sits on its own
   white card, and each answer is a large white tile, as in the app. */
.sim .q-card {
  padding: 0;
  background: none;
  box-shadow: none;
}

.sim .q-skill {
  margin-block-end: 10px;
  color: var(--lx-on-screen);
  font-weight: 500;
  opacity: 0.75;
}

.sim .q-prompt {
  position: relative;
  min-height: 96px;
  margin-block: 0 14px;
  margin-inline-start: 92px;
  padding: 16px 18px;
  border-radius: 24px;
  border-start-start-radius: 8px;
  background: #fff;
  color: var(--lx-ink);
  font-family: var(--lx-head);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.4;
  box-shadow:
    0 8px 28px rgba(30, 27, 58, 0.1),
    0 1px 3px rgba(30, 27, 58, 0.06);
}

.sim .q-prompt::before {
  content: '';
  position: absolute;
  inset-block-start: -6px;
  inset-inline-start: -96px;
  width: 84px;
  height: 118px;
  background: url(mindo/bust-curious.webp) center bottom / contain no-repeat;
}

.sim[data-band='upper'] .q-prompt {
  min-height: 0;
  margin-inline-start: 0;
  border-start-start-radius: 24px;
}

.sim[data-band='upper'] .q-prompt::before {
  content: none;
}

.sim .q-visual,
.sim .q-focus {
  margin-block: 0 14px;
  padding: 18px 12px;
  border-radius: 20px;
  background: #fff;
  color: var(--lx-ink);
  box-shadow: 0 1px 3px rgba(30, 27, 58, 0.06);
}

.sim .q-focus {
  color: var(--lx-primary);
  font-family: var(--lx-head);
  font-weight: 600;
}

.sim .q-audio .button,
.sim .q-fb-play {
  border: 1px solid var(--lx-hair-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--lx-violet);
  box-shadow: none;
}

.sim .q-choices {
  gap: 12px;
}

.sim .q-choice {
  min-height: 72px;
  border: 1px solid var(--lx-hair);
  border-radius: 20px;
  background: #fff;
  color: var(--lx-ink);
  font-family: var(--lx-head);
  font-size: 22px;
  font-weight: 600;
  box-shadow:
    0 6px 18px rgba(30, 27, 58, 0.08),
    0 1px 2px rgba(30, 27, 58, 0.06);
}

.sim .is-glyph .q-choice {
  min-height: 88px;
  font-size: 36px;
}

.sim .q-choice:hover:not(:disabled) {
  border-color: var(--lx-violet);
}

.sim .q-choice:focus-visible {
  outline: 3px solid var(--lx-violet);
  outline-offset: 2px;
}

.sim .q-choice.is-right,
.sim .q-choice.is-reveal {
  border-color: var(--lx-safe);
  background: var(--lx-safe-tint);
  color: var(--lx-safe);
}

.sim .q-choice.is-wrong {
  border-color: #ebc4c7;
  background: var(--lx-alert-bg);
  color: var(--lx-alert);
}

.sim .q-say {
  border-color: var(--lx-hair-strong);
  background: #fff;
  color: var(--lx-violet);
}

.sim .q-feedback {
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  color: var(--lx-ink);
  font-weight: 500;
}

.sim .q-feedback.ok {
  background: var(--lx-safe-tint);
  color: var(--lx-safe);
}

.sim .q-feedback.think {
  background: var(--lx-gold-tint);
  color: var(--lx-gold-text);
}

.sim .q-next,
.sim .sim-done-actions .button {
  min-height: 56px;
  border-radius: 999px;
  background: var(--lx-primary);
  color: #fff;
  font-weight: 600;
  box-shadow: none;
}

.sim[data-band='upper'] .q-next {
  background: var(--lx-violet);
}

.sim .sim-toast {
  border-radius: 16px;
  background: var(--lx-primary);
  font-weight: 600;
}

/* End of a round: the earned minutes are the one gold thing on the screen. */
.sim .sim-done {
  color: var(--lx-on-screen);
}

.sim .sim-done h3 {
  font-family: var(--lx-head);
  font-weight: 600;
}

.sim .sim-done-bank {
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: var(--lx-ink);
  box-shadow: 0 1px 3px rgba(30, 27, 58, 0.06);
}

.sim .sim-done-bank b {
  color: var(--lx-gold-text);
  font-family: var(--lx-head);
}

.sim .sim-bar {
  background: var(--lx-track);
}

.sim .sim-bar > span {
  background: var(--lx-gold);
}

.sim .sim-done-unlock {
  border-radius: 16px;
  background: var(--lx-gold-tint);
  color: var(--lx-gold-text);
}

/* Parent screen: quiet canvas, hairlines, violet for the selected tab. */
.sim .sim-parent {
  background: var(--lx-canvas);
  color: var(--lx-ink);
}

.sim .p-tab[aria-selected='true'] {
  border-color: var(--lx-violet);
  background: var(--lx-violet-tint);
  color: var(--lx-violet);
}

.sim .p-panel,
.sim .p-row {
  border-color: var(--lx-hair);
}

/* The settings beside the phone follow the same palette. */
.sim .sim-setup {
  border-radius: 24px;
  box-shadow:
    0 8px 28px rgba(30, 27, 58, 0.1),
    0 1px 3px rgba(30, 27, 58, 0.06);
}

.sim .sim-chip:has(input:checked),
.sim .sim-seg label:has(input:checked) {
  border-color: var(--lx-violet);
  background: var(--lx-violet-tint);
  color: var(--lx-primary);
}

.sim .sim-start {
  border-radius: 999px;
  background: var(--lx-primary);
}

.sim .sim-view [role='tab'][aria-selected='true'] {
  background: var(--lx-primary);
  color: #fff;
}
