*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overscroll-behavior: none;
}

body {
  color: #1c2430;
  background: #fff;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

button {
  font: inherit;
}

#app {
  min-height: 100vh;
  min-height: 100dvh;
}

.screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.screen.is-test {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  user-select: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px 22px;
  background: #0c0c0c;
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.mark {
  width: 36px;
  height: 36px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex: none;
}

.brand-text strong {
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.brand-text span {
  display: block;
  margin-top: 1px;
  color: #bdbdbd;
  font-size: 11px;
  letter-spacing: 0.03em;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.live {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.count,
.live-label {
  color: #d5d5d5;
  font-size: 14px;
  font-weight: 600;
}

.timer {
  min-width: 4.2ch;
  text-align: right;
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.timer.is-low {
  color: #ffd0dc;
}

.timer.is-urgent {
  color: #ff8fab;
}

.ghost {
  background: transparent;
  color: #eee;
  border: 1px solid #3a3a3a;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.ghost:hover {
  border-color: #888;
}

.ghost:focus-visible,
.btn-pink:focus-visible,
.btn-secondary:focus-visible,
.filter-btn:focus-visible {
  outline: 2px solid #12315f;
  outline-offset: 3px;
}

.ghost:focus-visible {
  outline-color: #fff;
}

.confirm {
  display: flex;
  align-items: center;
  gap: 8px;
}

.confirm-copy {
  color: #ddd;
  font-size: 13px;
}

.question-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 20px 20px 12px;
}

.question-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(960px, 100%);
}

.grid-label {
  margin: 0 0 16px;
  color: #7d8da1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.grid-label.is-new {
  color: #e2186b;
}

.prompt {
  margin: 0 0 28px;
  color: #1d4e8c;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  line-height: 1.35;
}

.target {
  display: inline-flex;
  align-items: center;
  gap: 0.42em;
  font-size: 1.28em;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a4f96;
}

.target .token.icon {
  color: #1c1c1c;
}

.target .token.icon svg {
  width: 28px;
  height: 28px;
}

.grid-wrap {
  width: max-content;
  max-width: 100%;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 104px);
  border: 1px solid #c8ccd2;
  background: #fff;
}

.grid.is-fresh {
  animation: gridpop 700ms ease;
}

.cell {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #d7dbe1;
  border-bottom: 1px solid #d7dbe1;
  color: #1a4f96;
  font-size: 23px;
  font-weight: 700;
}

.cell:nth-child(4n) {
  border-right: none;
}

.cell:nth-last-child(-n + 4) {
  border-bottom: none;
}

.col-nums {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 4px;
}

.col-nums span {
  text-align: center;
  color: #6d7f94;
  font-size: 12px;
  font-weight: 700;
}

.token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.token.price {
  font-variant-numeric: tabular-nums;
}

.token.icon {
  color: #1c1c1c;
}

.token.icon svg {
  width: 34px;
  height: 34px;
  display: block;
}

.grid .token.icon svg {
  width: 40px;
  height: 40px;
}

.feedback {
  max-width: 640px;
  margin: 22px 0 0;
  color: #1d4e8c;
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
}

.feedback.is-good strong {
  color: #187743;
}

.feedback.is-bad strong {
  color: #b42318;
}

.answer-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  min-height: 228px;
  padding: 26px 20px 28px;
  background: #d4e8f8;
}

.options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 22px;
  width: min(1080px, 100%);
}

.option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 176px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.option.is-static {
  cursor: default;
}

.choice-letter {
  color: #1a4f96;
  font-size: 18px;
  font-weight: 700;
}

.option-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #d5dbe3;
  border-radius: 8px;
}

.option:not(.is-static):hover .option-card {
  border-color: #9eb0c6;
}

.option.is-selected .option-card,
.option-card.is-selected {
  border-color: #1a4f96;
  box-shadow: 0 0 0 2px #1a4f96;
}

.option-card.is-correct,
.option.is-static .option-card.is-correct {
  border-color: #187743;
  box-shadow: 0 0 0 2px #187743;
}

.option-card.is-wrong {
  border-color: #b42318;
  box-shadow: 0 0 0 2px #b42318;
}

.option:focus-visible {
  outline: none;
}

.option:focus-visible .option-card {
  outline: 2px solid #e2186b;
  outline-offset: 3px;
}

.btn-pink,
.btn-secondary {
  border-radius: 999px;
  padding: 12px 28px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.btn-pink {
  min-width: 168px;
  border: 0;
  background: #e2186b;
  color: #fff;
}

.btn-pink:hover {
  background: #c4105c;
}

.btn-pink:active,
.btn-secondary:active {
  transform: translateY(1px);
}

.btn-secondary {
  border: 1px solid #c5d0de;
  background: #fff;
  color: #1a4f96;
}

.btn-secondary:hover {
  background: #f4f8fc;
}

.nudge {
  margin: 0;
  font-size: 13px;
}

.nudge {
  color: #9a3412;
  font-weight: 700;
}

.keys {
  color: #5d7ea3;
}

.landing,
.example-note {
  width: min(680px, 100%);
}

.points {
  list-style: none;
  margin: 28px 0 4px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.points li {
  margin: 0;
  color: #243044;
  line-height: 1.5;
}

.points strong {
  color: #12315f;
}

.landing {
  margin: 0 auto;
  padding: 56px 24px 72px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #6d7f94;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing h1,
.results h1 {
  margin: 0;
  color: #12315f;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.lede,
.fine,
.disclaimer,
.band,
.key-lead,
.tip {
  line-height: 1.5;
}

.lede {
  margin: 14px 0 0;
  color: #243044;
  font-size: 18px;
}

.audience {
  margin: 14px 0 0;
  color: #5c7190;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.rules {
  counter-reset: rule;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.rules li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  color: #243044;
}

.rules li::before {
  counter-increment: rule;
  content: counter(rule);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e7f2fb;
  color: #1a4f96;
  font-size: 14px;
  font-weight: 700;
}

.landing-actions,
.results-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

a.btn-pink,
a.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.back-link {
  margin: 0 0 18px;
}

.text-link {
  color: #1a4f96;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.test-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
}

.test-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid #e6ebf1;
}

.test-row h2 {
  margin: 0;
  color: #12315f;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.test-row p {
  margin: 6px 0 0;
  color: #243044;
}

.test-row .meta {
  margin-top: 8px;
  color: #66788d;
  font-size: 14px;
  font-weight: 700;
}

.topbar.site-top {
  justify-content: flex-start;
  gap: 40px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #c9c9c9;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  color: #fff;
  background: #1c1c1c;
}

.site-nav a[aria-current="page"] {
  color: #fff;
  background: #242424;
}

.site-nav a:focus-visible {
  outline: 2px solid #e2186b;
  outline-offset: 2px;
}

.site-nav svg {
  flex: none;
}

.landing.is-wide {
  width: min(1160px, 100%);
  padding: 56px 32px 80px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.home-hero h1 {
  text-wrap: balance;
}

.home-hero .lede,
.home-hero .audience {
  max-width: 620px;
}

.home-hero .points {
  margin: 30px 0 0;
  padding: 24px 26px;
  border-radius: 12px;
  background: #f4f8fc;
}

.home .test-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.home .test-row {
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border: 1px solid #e1e8f0;
  border-radius: 12px;
}

.home .test-row .btn-pink {
  min-width: 132px;
}

.guide-link {
  margin: 28px 0 0;
  color: #243044;
  line-height: 1.5;
}

.guide-link .text-link {
  font-size: inherit;
}

.guide p:not([class]) {
  color: #243044;
  line-height: 1.6;
}

.guide-intro .lede {
  max-width: 720px;
}

.guide-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  margin-top: 40px;
}

.guide-contents {
  position: sticky;
  top: 24px;
  padding: 20px 22px;
  border-radius: 12px;
  background: #f4f8fc;
}

.guide-contents .eyebrow {
  margin: 0 0 8px;
}

.guide-contents ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.guide-contents ul:last-child {
  margin-bottom: 0;
}

.guide-contents a {
  display: block;
  padding: 4px 0;
  color: #1a4f96;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.guide-contents a:hover {
  text-decoration: underline;
}

.guide-body {
  max-width: 760px;
}

.guide-section h2 {
  margin: 36px 0 0;
  color: #12315f;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.guide-section {
  margin-top: 40px;
  padding-top: 4px;
  border-top: 1px solid #e6ebf1;
  scroll-margin-top: 16px;
}

.guide-section.is-first {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.guide-section.is-first h2 {
  margin-top: 0;
}

.guide-section .guide-tagline {
  margin: 6px 0 0;
  color: #5c7190;
  font-weight: 600;
}

.guide-section .guide-time {
  margin: 10px 0 0;
  color: #12315f;
  font-size: 15px;
  font-weight: 700;
}

.guide-section h3 {
  margin: 22px 0 10px;
  color: #6d7f94;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pills li {
  padding: 5px 12px;
  border-radius: 999px;
  background: #e7f2fb;
  color: #1a4f96;
  font-size: 13px;
  font-weight: 700;
}

.guide-tips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: #243044;
  line-height: 1.5;
}

.guide-section h2 + .guide-tips {
  margin-top: 18px;
}

.guide-section .btn-pink {
  margin-top: 24px;
}

.guide-section .rules {
  margin: 20px 0 0;
}

@media (max-width: 1040px) {
  .home-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .home .test-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .guide-contents {
    position: static;
  }
}

@media (max-width: 720px) {
  .topbar {
    gap: 10px;
  }

  .brand-text strong {
    font-size: 12px;
    letter-spacing: 0.02em;
  }

  .live-label,
  .count {
    white-space: nowrap;
  }

  .topbar:has(.confirm-copy) {
    display: grid;
    grid-template-columns: auto auto auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 8px;
    row-gap: 10px;
  }

  .topbar:has(.confirm-copy) .top-actions {
    display: contents;
  }

  .topbar:has(.confirm-copy) .brand {
    grid-column: 1 / 5;
    grid-row: 1;
    min-width: 0;
  }

  .topbar:has(.confirm-copy) .brand-text {
    min-width: 0;
  }

  .topbar:has(.confirm-copy) .live {
    grid-column: 5;
    grid-row: 1;
  }

  .topbar:has(.confirm-copy) .confirm {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
  }

  .topbar:has(.confirm-copy) .top-actions > .confirm-copy {
    grid-column: 1;
    grid-row: 2;
  }

  .topbar:has(.confirm-copy) .top-actions > [data-action="end-yes"] {
    grid-column: 2;
    grid-row: 2;
  }

  .topbar:has(.confirm-copy) .top-actions > [data-action="end-no"] {
    grid-column: 3;
    grid-row: 2;
  }

  .results {
    padding: 28px 16px 64px;
  }

  .score-line strong {
    font-size: 64px;
  }

  .key-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .review-item summary {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "num status"
      "target target";
    align-items: start;
    row-gap: 4px;
  }

  .q-num {
    grid-area: num;
  }

  .q-status {
    grid-area: status;
    justify-self: end;
    text-align: right;
  }

  .q-target {
    grid-area: target;
  }

  .screen.is-reading:not(.is-spatial) .options {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .screen.is-reading:not(.is-spatial) .option {
    flex-direction: row;
    align-items: center;
    flex: none;
    width: 100%;
    max-width: none;
  }

  .screen.is-reading:not(.is-spatial) .option-card {
    justify-content: flex-start;
    min-height: 0;
    padding: 10px 12px;
  }

  .screen.is-reading:not(.is-spatial) .option-label {
    text-align: left;
    overflow-wrap: anywhere;
  }

  .screen.is-reading .answer-band {
    max-height: 58vh;
    overflow-y: auto;
  }

  .screen.is-reading .band-actions {
    position: sticky;
    bottom: 0;
    width: 100%;
    padding-top: 8px;
    background: #d4e8f8;
  }

  .review-options:not(:has(.shape-card)) {
    flex-direction: column;
    align-items: stretch;
  }

  .review-options:not(:has(.shape-card)) .option {
    flex-direction: row;
    align-items: center;
    width: 100%;
    max-width: none;
  }

  .review-options:not(:has(.shape-card)) .option-card {
    justify-content: flex-start;
    min-height: 0;
    padding: 10px 12px;
  }

  .review-options:not(:has(.shape-card)) .option-label {
    text-align: left;
    overflow-wrap: anywhere;
  }

  .review-options:has(.shape-card) .option {
    width: calc(50% - 8px);
  }

  .screen.is-work .question-area {
    align-items: flex-start;
    padding: 8px 12px 4px;
    overflow: auto;
  }

  .screen.is-work .prompt {
    margin: 0 0 10px;
    font-size: 15px;
  }

  .screen.is-work .target {
    font-size: 1.1em;
  }

  .screen.is-work .target .token.icon svg {
    width: 22px;
    height: 22px;
  }

  .screen.is-work .grid-label {
    margin-bottom: 8px;
  }

  .screen.is-work .grid-wrap {
    width: min(100%, 360px);
  }

  .screen.is-work .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  .screen.is-work .cell {
    height: 56px;
    font-size: 16px;
  }

  .screen.is-work .grid .token.icon svg {
    width: 26px;
    height: 26px;
  }

  .screen.is-work .answer-band {
    min-height: 0;
    flex: none;
    padding: 8px 10px 10px;
    gap: 8px;
  }

  .screen.is-work .options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 8px;
    width: 100%;
  }

  .screen.is-work .option {
    flex-direction: row;
    width: auto;
    gap: 6px;
    align-items: center;
  }

  .screen.is-work .choice-letter {
    font-size: 13px;
    flex: none;
  }

  .screen.is-work .option-card {
    min-height: 36px;
    padding: 4px 6px;
    gap: 4px;
  }

  .screen.is-work .option .token {
    font-size: 13px;
  }

  .screen.is-work .option .token.icon svg {
    width: 18px;
    height: 18px;
  }

  .screen.is-work .btn-pink {
    min-width: 0;
    padding: 8px 20px;
    font-size: 15px;
  }
}

@media (max-width: 640px) {
  .landing.is-wide {
    padding: 40px 20px 64px;
  }

  .topbar.site-top {
    gap: 12px;
  }

  .site-nav {
    margin-left: auto;
  }

  .site-nav span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .home .test-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.best,
.fine,
.disclaimer {
  color: #66788d;
  font-size: 14px;
}

.best {
  margin: 22px 0 0;
  color: #12315f;
  font-weight: 700;
}

.fine {
  margin: 18px 0 0;
}

.disclaimer {
  margin: 28px 0 0;
}

.results {
  width: min(880px, 100%);
  margin: 0 auto;
  padding: 36px 24px 80px;
}

.score-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0 0;
  color: #12315f;
}

.score-line strong {
  font-size: 84px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.score-line span {
  color: #5c7190;
  font-size: 28px;
  font-weight: 700;
}

.new-best {
  margin: 8px 0 0;
  color: #e2186b;
  font-size: 14px;
  font-weight: 700;
}

.band {
  margin: 10px 0 0;
  color: #243044;
  font-size: 18px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 32px;
  margin: 22px 0;
}

.stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 72px;
}

.stats dt {
  color: #70829a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stats dd {
  margin: 0;
  color: #12315f;
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tip {
  max-width: 620px;
  margin: 0 0 22px;
  padding-left: 14px;
  border-left: 3px solid #e2186b;
  color: #243044;
}

.answer-key {
  margin-top: 36px;
  padding-top: 8px;
  border-top: 1px solid #e4e8ee;
}

.answer-key h2 {
  margin: 18px 0 6px;
  color: #12315f;
  font-size: 22px;
}

.key-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}

.filter {
  display: flex;
  flex: none;
  gap: 8px;
  margin-bottom: 8px;
}

.filter-btn {
  border: 1px solid #d5dbe3;
  background: #fff;
  color: #1a4f96;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.filter-btn.is-on {
  background: #1a4f96;
  border-color: #1a4f96;
  color: #fff;
}

.review-item {
  border-top: 1px solid #e6ebf1;
}

.review-item summary {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 2px;
  cursor: pointer;
  list-style: none;
}

.review-item summary::-webkit-details-marker {
  display: none;
}

.q-num {
  color: #6d7f94;
  font-size: 13px;
  font-weight: 700;
}

.q-target {
  color: #1a4f96;
  font-weight: 700;
}

.q-status {
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.mark-right {
  color: #187743;
}

.mark-wrong {
  color: #b42318;
}

.mark-blank {
  color: #9a5b00;
}

.review-body {
  padding: 4px 0 22px;
}

.review-options {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 10px;
  margin: 16px 0;
}

.review-options .option {
  width: 156px;
}

.review-options .option-card {
  gap: 8px;
  padding: 6px 8px;
}

.review-options .token.icon svg {
  width: 28px;
  height: 28px;
}

.screen.is-reading {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.screen.is-reading .question-area {
  align-items: flex-start;
  overflow: auto;
}

.screen.is-reading .question-stack {
  align-items: stretch;
}

.reading-stack {
  width: min(980px, 100%);
}

.passage {
  width: 100%;
  margin: 0;
  text-align: left;
}

.passage p {
  margin: 0 0 12px;
  color: #243044;
  font-size: 16px;
  line-height: 1.55;
}

.vr-prompt {
  margin: 8px 0 0;
  color: #1d4e8c;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
}

.option-label {
  color: #1a4f96;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
}

.band-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn-secondary:disabled {
  opacity: 0.45;
  cursor: default;
}

.screen.is-reading .feedback {
  text-align: left;
}

.rules-table {
  width: 100%;
  margin: 8px 0 4px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.35;
}

.rules-table caption {
  padding: 8px 10px;
  background: #12315f;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rules-table th,
.rules-table td {
  border: 1px solid #d5dbe3;
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

.rules-table thead th,
.rules-table tbody th {
  background: #12315f;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.rules-table td {
  background: #fff;
  color: #243044;
}

.screen.is-reading .answer-band {
  flex: none;
  min-height: 0;
  padding: 16px 16px 18px;
  gap: 12px;
}

.screen.is-reading .options {
  flex-wrap: nowrap;
  align-items: stretch;
}

.screen.is-reading .option {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
}

.screen.is-reading .option-card {
  flex: 1;
}

.screen.is-reading .option-label {
  font-size: 14px;
}

.stimulus {
  width: 100%;
  margin: 4px 0 8px;
}

.stimulus svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 240px;
}

.shape-card {
  min-height: 104px;
  padding: 6px;
}

.shape-card svg {
  display: block;
  width: 100%;
  height: 118px;
}

.part-block + .part-block {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #e3ebf4;
}

.part-block h2 {
  margin: 0;
  color: #12315f;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.part-copy {
  margin: 6px 0 0;
  color: #5c7190;
  font-size: 15px;
  font-weight: 600;
}

.part-block .rules {
  margin: 16px 0;
}

.screen.is-spatial .options {
  flex-wrap: wrap;
}

.screen.is-spatial .option {
  flex: 1 1 150px;
  max-width: 220px;
}

.review-options .shape-card svg {
  height: 88px;
}

.screen.is-spatial-3d .shape-card svg,
.screen.is-spatial-3d .review-options .shape-card svg {
  height: 168px;
}

.screen.is-spatial-3d .stimulus svg {
  max-height: 230px;
}

.screen.is-spatial-3d .option {
  flex: 1 1 150px;
  max-width: 190px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.screen.is-numerical .vr-prompt {
  margin-top: 36px;
  font-size: 32px;
  letter-spacing: -0.03em;
  text-align: center;
}

.screen.is-numerical .option-label {
  font-size: 22px;
}

.frac {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin: 0 0.18em;
  line-height: 1;
  font-size: 0.78em;
  font-weight: 700;
}

.frac-n,
.frac-d {
  display: block;
  padding: 0.08em 0.28em 0.06em;
}

.frac-n {
  border-bottom: 1.5px solid currentColor;
}

.screen.is-numerical .vr-prompt .frac {
  font-size: 26px;
  margin: 0 0.22em;
}

.equation {
  display: block;
  margin-top: 16px;
}

.screen.is-numerical .option-card:has(.frac),
.review-options .option-card:has(.frac) {
  min-height: 76px;
}

.rules .frac {
  font-size: 0.95em;
}

.options.is-long,
.review-options.is-long {
  flex-direction: column;
  align-items: stretch;
  width: min(720px, 100%);
}

.options.is-long .option,
.review-options.is-long .option {
  flex-direction: row;
  align-items: center;
  width: 100%;
  gap: 12px;
}

.options.is-long .option-card,
.review-options.is-long .option-card {
  justify-content: flex-start;
  min-height: 0;
  padding: 10px 12px;
}

.options.is-long .option-label,
.review-options.is-long .option-label {
  text-align: left;
}

.mapping,
.key-list {
  margin: 8px 0;
  padding-left: 18px;
  color: #243044;
  line-height: 1.45;
}

.mapping li + li,
.key-list li + li {
  margin-top: 4px;
}

.empty-filter {
  color: #66788d;
}

@keyframes gridpop {
  0% {
    box-shadow: 0 0 0 0 rgba(226, 24, 107, 0.45);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(226, 24, 107, 0);
  }
}

@media (max-width: 900px) {
  .test-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .option,
  .review-options .option {
    width: 148px;
  }

  .grid {
    grid-template-columns: repeat(4, 84px);
  }

  .cell {
    height: 68px;
    font-size: 20px;
  }
}

@media (max-height: 760px) and (min-width: 701px) {
  .grid {
    grid-template-columns: repeat(4, 92px);
  }

  .cell {
    height: 64px;
  }

  .prompt {
    margin-bottom: 16px;
  }

  .answer-band {
    min-height: 0;
    padding: 16px 16px 18px;
    gap: 12px;
  }
}

.chart-block {
  margin: 4px 0 8px;
  overflow-x: auto;
}

.chart-block svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  min-width: 560px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.35;
}

.data-table caption {
  margin: 0 0 8px;
  color: #12315f;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
}

.data-table th,
.data-table td {
  border: 1px solid #d5dbe3;
  padding: 7px 8px;
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  background: #12315f;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.data-table td {
  background: #fff;
  color: #243044;
}

.data-table td:nth-child(n + 4),
.data-table th:nth-child(n + 4) {
  text-align: right;
  white-space: nowrap;
}

.screen.is-charts .vr-prompt {
  margin-top: 14px;
}

.circuit-fig {
  margin: 4px 0 8px;
  max-width: 100%;
}

.circuit-fig svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 300px;
}

.circuit-fig.is-meters svg {
  max-height: 190px;
}

.screen.is-electrical .option-label,
.screen.is-mechanical .option-label {
  font-size: 13px;
  line-height: 1.35;
}

.mech-fig {
  margin: 4px 0 8px;
  max-width: 100%;
}

.mech-fig svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 280px;
}

@media (max-width: 720px) {
  .screen.is-reading .answer-band {
    padding: 8px 12px 10px;
    gap: 8px;
    max-height: 46vh;
  }

  .screen.is-reading .options,
  .screen.is-reading .band-actions {
    gap: 8px;
  }

  .screen.is-reading .option {
    gap: 6px;
  }

  .screen.is-reading:not(.is-spatial) .option-card {
    padding: 6px 10px;
  }

  .screen.is-reading .band-actions {
    padding-top: 2px;
  }

  .screen.is-spatial .option {
    flex-direction: row;
    align-items: center;
    flex: 1 1 calc(50% - 8px);
    width: auto;
    max-width: none;
  }

  .screen.is-spatial .shape-card {
    min-height: 0;
    padding: 4px;
  }

  .screen.is-spatial .shape-card svg {
    height: 64px;
  }

  .screen.is-spatial-3d .shape-card svg {
    height: 88px;
  }

  .screen.is-numerical .option-label {
    font-size: 18px;
  }

  .screen.is-numerical .option-card:has(.frac) {
    min-height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .grid.is-fresh {
    animation: none;
  }

  .btn-pink:active,
  .btn-secondary:active {
    transform: none;
  }
}
