/* REX: paper, bold ink, violet and meteor orange. */
:root {
  color-scheme: light;
  --paper: #fffaf0;
  --ink: #262029;
  --button-shadow: #262029;
  --purple: #b968cb;
  --deep: #713989;
  --orange: #ff972f;
  --line: #d9cebf;
  --muted: #665e67;
  --lavender: #eedff3;
  --display: "Arial Rounded MT Bold", ui-rounded, "Trebuchet MS", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}
body {
  container-type: inline-size;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
button,
input,
select {
  font: inherit;
}
button,
select {
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}
button,
select,
summary {
  min-height: 44px;
}
button {
  min-width: 44px;
  transition:
    transform 160ms,
    box-shadow 160ms,
    background 160ms;
}
button:active {
  transform: translateY(2px);
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
a {
  color: var(--deep);
  text-underline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 3px solid var(--deep);
  outline-offset: 5px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.12;
}
p + p {
  margin-top: 12px;
}
svg {
  display: block;
  width: 100%;
  overflow: visible;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10;
  padding: 12px 20px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
}
.skip-link:focus {
  top: 12px;
}
.game {
  width: min(1200px, calc(100% - 96px));
  margin: auto;
}
.site-header {
  min-height: 112px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
}
.brand-name {
  display: block;
  width: 126px;
  height: auto;
  flex-shrink: 0;
}
.brand-tagline {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}
.header-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}
.header-nav a:hover {
  color: var(--deep);
  text-decoration: underline;
}
.help {
  display: flex;
  align-items: center;
  gap: 15px;
  background: transparent;
  padding: 9px 15px;
  font-size: 13px;
  border-radius: 30px;
}
.help:hover {
  background: var(--lavender);
}
.help-mark {
  display: grid;
  place-items: center;
  border: 1.5px solid;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  line-height: 1;
}
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.academy-hero {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  align-items: center;
  gap: 18px;
  min-height: 650px;
  padding: 48px 0 54px;
}
.hero-copy {
  position: relative;
  z-index: 1;
}
.hero-copy .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.academy-hero h1 {
  font-size: clamp(48px, 5.95vw, 82px);
  font-weight: 1000;
  line-height: 1.04;
  letter-spacing: -3.8px;
}
.academy-hero h1 span {
  color: var(--deep);
}
.hero-description {
  max-width: 400px;
  font-size: 17px;
  line-height: 1.7;
  margin-top: 24px;
  color: #504754;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-top: 28px;
}
.primary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  width: 100%;
  margin-top: 22px;
  background: var(--orange);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--button-shadow);
  padding: 14px 23px;
  min-height: 56px;
  font-size: 17px;
  font-weight: 900;
}
.primary:hover {
  background: #ffa544;
  transform: translate(-1px, -2px);
  box-shadow: 5px 6px 0 var(--button-shadow);
}
.primary:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--button-shadow);
}
.primary span {
  font-size: 24px;
  line-height: 1;
}
.hero-actions .primary {
  width: auto;
  margin: 0;
}
.hero-actions a {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.hero-note {
  margin-top: 22px;
  font-size: 12px;
  color: var(--muted);
}
.hero-note span {
  margin-right: 5px;
  color: var(--deep);
  font-weight: 900;
}
.hero-art {
  position: relative;
  min-width: 0;
  isolation: isolate;
}
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  mix-blend-mode: normal;
}
.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 27px 14px;
  background: #34223e;
  border: 2px solid var(--ink);
  border-radius: 18px;
  color: var(--paper);
}
.quick-facts p {
  margin: 0;
  padding: 0 28px;
  border-left: 1px solid #66536e;
}
.quick-facts p:first-child {
  border-left: 0;
}
.quick-facts strong {
  display: block;
  font-family: var(--display);
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.6px;
}
.quick-facts strong span {
  font-size: 18px;
}
.quick-facts p > span {
  display: block;
  margin-top: 6px;
  color: #e3cfe9;
  font-size: 12px;
}
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  padding: 100px 24px;
  align-items: center;
}
.about-copy .eyebrow {
  color: var(--deep);
  margin-bottom: 18px;
}
.about-copy h2,
.section-heading h2 {
  font-size: 49px;
  letter-spacing: -1.8px;
}
.about-copy h2 span,
.section-heading h2 span {
  color: var(--deep);
}
.about-copy h2 {
  margin-bottom: 24px;
}
.about-copy > p:not(.eyebrow) {
  color: #584f5b;
  font-size: 15px;
  max-width: 440px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  min-height: 44px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}
.how-it-works {
  border: 2px solid var(--ink);
  padding: 7px 28px 0;
  border-radius: 20px;
  background: #f0e4f4;
  box-shadow: 6px 6px 0 #d7badf;
  transform: rotate(1deg);
}
.how-step {
  display: flex;
  align-items: center;
  gap: 23px;
  padding: 23px 0;
  border-bottom: 1px solid #ccb6d4;
}
.how-step b {
  font-size: 15px;
}
.how-step p {
  margin-top: 6px;
  font-size: 13px;
  color: #62506a;
}
.how-symbol {
  display: grid;
  place-items: center;
  width: 68px;
  flex-shrink: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: 50px;
  color: var(--deep);
}
.tokens-symbol {
  position: relative;
  height: 57px;
}
.tokens-symbol span {
  position: absolute;
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--purple);
  color: var(--ink);
  font-size: 20px;
  left: 0;
  top: 0;
  transform: rotate(-12deg);
}
.tokens-symbol span + span {
  background: var(--orange);
  left: 24px;
  top: 15px;
  transform: rotate(12deg);
}
.fee-symbol {
  color: var(--ink);
  font-size: 39px;
}
.library-section {
  padding: 64px 0 30px;
  border-top: 1px solid var(--line);
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 35px;
}
.section-heading .eyebrow {
  color: var(--deep);
  margin-bottom: 17px;
}
.library-intro {
  max-width: 300px;
  font-size: 14px;
  color: var(--muted);
}
.course-progress {
  display: inline-block;
  padding: 7px 12px;
  margin-top: 16px;
  border: 1px solid #cbb4d2;
  border-radius: 20px;
  background: #f0e4f4;
  color: var(--deep);
  font-size: 11px;
  font-weight: 700;
}
.lesson-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.lesson-list button {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 22px;
  background: #fcf7eb;
  border: 2px solid var(--ink);
  border-radius: 17px;
  box-shadow: 3px 4px 0 #e5d8c8;
  overflow: hidden;
}
.lesson-list button:hover {
  transform: translateY(-4px);
  box-shadow: 4px 8px 0 #d0b1db;
}
.lesson-list button[data-level="0"] {
  background: #ffe7c4;
}
.lesson-list button[data-level="2"],
.lesson-list button[data-level="4"] {
  background: #f0e4f4;
}
.lesson-list button > b {
  position: relative;
  align-self: flex-start;
  width: 33px;
  z-index: 1;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 900;
  line-height: 30px;
  min-width: 33px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  text-align: center;
  background: var(--paper);
}
.lesson-art {
  display: block;
  align-self: stretch;
  height: 100px;
  margin: -24px 8px 12px 22px;
}
.lesson-art svg {
  height: 100%;
  fill: var(--purple);
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.lesson-art svg path {
  fill: none;
}
.lesson-art svg rect:nth-child(even),
.art-fees svg circle:first-of-type,
.art-share svg circle:nth-of-type(even) {
  fill: var(--orange);
}
.art-range svg rect {
  fill: #d3a5e0;
  stroke-dasharray: 5 5;
  stroke-width: 1.5;
}
.art-range svg path {
  stroke: #663880;
}
.art-fees svg path {
  stroke: var(--deep);
}
.art-fees svg path:nth-of-type(2),
.art-grow svg path {
  stroke: var(--ink);
}
.art-share svg circle:nth-of-type(2) {
  fill: #ead0f2;
}
.lesson-list button > .lesson-title {
  display: flex;
  flex-direction: column-reverse;
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}
.card-description {
  max-width: 90%;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 400;
  color: #665c66;
  margin: 0;
}
.lesson-list i {
  display: block;
  margin-top: 14px;
  margin-left: auto;
  width: 30px;
  line-height: 30px;
  text-align: center;
  font-style: normal;
  font-size: 23px;
  color: var(--ink);
}
.lesson-list .done {
  border-color: var(--deep);
}
.lesson-list .done > b {
  background: var(--deep);
  color: white;
}
.lesson-list .done i {
  font-size: 0;
}
.lesson-list .done i::after {
  content: "✓";
  font-size: 22px;
  color: var(--deep);
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 30px 0 38px;
  font-size: 11px;
  color: var(--muted);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.footer-brand img {
  display: block;
  width: 103px;
  height: auto;
}
.site-footer p {
  margin-top: 7px;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 25px;
}
.footer-links button,
.footer-links a {
  display: flex;
  align-items: center;
  font-size: 11px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-weight: 500;
  text-decoration: underline;
  color: var(--muted);
}
/* Lesson workspace: one task per screen, one clear next step. */
.lesson-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.back-link {
  border: 0;
  background: none;
  color: var(--deep);
  font-size: 13px;
  padding: 0 10px 0 0;
}
#lessonJourney {
  display: flex;
  gap: 23px;
  padding: 0;
  margin: 0;
  list-style: none;
}
#lessonJourney li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #776c7a;
}
#lessonJourney li > span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid #c9bdcf;
  border-radius: 50%;
  font-size: 11px;
}
#lessonJourney [aria-current="step"] {
  color: var(--deep);
  font-weight: 900;
}
#lessonJourney [aria-current="step"] > span {
  background: var(--deep);
  color: white;
  border-color: var(--deep);
}
.lesson-screen {
  max-width: 640px;
  margin: 40px auto 64px;
  padding: 32px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: #fffcf5;
  box-shadow: 7px 7px 0 #e8d6ed;
}
.lesson-screen h1 {
  font-size: 31px;
  letter-spacing: -1px;
  text-align: center;
}
.lesson-screen h2 {
  font-size: 20px;
  letter-spacing: -0.3px;
}
.lesson-screen p {
  margin-top: 10px;
}
.centered {
  text-align: center;
}
.micro {
  font-size: 12px;
  color: #6c626d;
  line-height: 1.6;
}
.muted {
  font-size: 14px;
  color: #665c67;
  line-height: 1.55;
}
.pill {
  display: block;
  padding: 9px 14px;
  margin: 18px 0;
  text-align: center;
  border-radius: 30px;
  background: var(--lavender);
  font-size: 12px;
  font-weight: 700;
}
#introCount,
#results > .eyebrow {
  color: var(--deep);
  text-align: center;
  margin-top: 0;
  margin-bottom: 13px;
}
#introTitle {
  font-size: 31px;
}
.feature-link {
  display: block;
  padding: 10px;
  margin: 14px 0;
  min-height: 44px;
  font-size: 12px;
  text-align: center;
  line-height: 1.55;
}
.intro-steps {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 22px 0 14px;
}
.intro-steps button {
  width: 44px;
  border-radius: 50%;
  border-color: #bea0cb;
  background: #f4eaf7;
  color: var(--deep);
}
.intro-steps [aria-current="step"] {
  background: var(--deep);
  border-color: var(--ink);
  color: white;
}
.step-title {
  text-align: center;
  min-height: 27px;
}
.intro-canvas {
  max-width: 460px;
  margin: 20px auto 0;
  border: 1px solid #d5c0de;
  border-radius: 16px;
  background: #f4edf7;
  overflow: hidden;
}
#introVisual text {
  font-family: "Trebuchet MS", sans-serif;
}
.intro-track {
  height: 4px;
  border-radius: 4px;
  background: #eadced;
  max-width: 460px;
  margin: 12px auto 0;
  overflow: hidden;
}
#introProgress {
  height: 100%;
  background: var(--deep);
  width: 0;
}
.rex-explains {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  padding: 12px;
  border-radius: 15px;
  background: #fff2d8;
}
.intro-mascot {
  width: 72px;
}
.rex-explains .intro-caption {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
  min-width: 0;
  min-height: 88px;
  display: flex;
  align-items: center;
}
.step-navigation {
  display: flex;
  gap: 12px;
}
.step-navigation button {
  padding: 9px 17px;
  font-size: 14px;
}
#introNext {
  background: var(--lavender);
  flex: 1;
}
.play-controls {
  display: flex;
  gap: 9px;
  margin-top: 15px;
}
.play-controls button {
  flex: 1;
  padding: 9px 4px;
  font-size: 13px;
  border-color: #c7b5cc;
  background: transparent;
}
.play-controls button:hover {
  background: var(--lavender);
}
#introContinue {
  font-size: 16px;
}
.lesson-intro {
  background: #f2e7f5;
  border: 1px solid #dcc7e4;
  border-radius: 15px;
  padding: 22px;
}
.lesson-intro .eyebrow {
  font-size: 10px;
  letter-spacing: 1px;
}
.lesson-intro h1 {
  font-size: 28px;
  text-align: left;
  margin: 10px 0;
}
.lesson-intro p {
  font-size: 14px;
  line-height: 1.6;
}
.lesson-intro a {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  margin-top: 12px;
  min-height: 30px;
}
.watch-intro {
  display: block;
  border: 0;
  background: transparent;
  text-decoration: underline;
  color: var(--deep);
  font-size: 12px;
  margin-top: 8px;
  padding: 0;
}
.box {
  padding: 20px;
  border: 1px solid #d5c5b2;
  border-radius: 15px;
  background: #fff8ea;
}
.box > h2 {
  margin-bottom: 10px;
}
.box > .muted {
  margin: 0 0 16px;
}
.box .micro {
  margin-top: 12px;
}
.extra {
  margin-top: 18px;
}
.choices {
  display: flex;
  gap: 9px;
}
.choices button {
  flex: 1;
  min-width: 0;
  padding: 11px 4px;
  border: 1.5px solid #c5b5c5;
  font-size: 14px;
  background: #fffdf8;
}
.choices span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  margin-top: 3px;
}
.box .choices + .muted {
  margin: 14px 0 0;
}
.choices .selected {
  background: var(--deep);
  border-color: var(--ink);
  color: white;
}
.sliders {
  margin-top: 22px;
}
.sliders label,
#sharingPanel label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
}
.sliders output,
#shareLabel {
  color: var(--deep);
  font-variant-numeric: tabular-nums;
}
input[type="range"] {
  width: 100%;
  min-height: 44px;
  accent-color: var(--deep);
  margin: 0 0 6px;
  cursor: pointer;
}
.allocation {
  padding: 16px;
  margin: 18px 0;
  border-radius: 14px;
  background: #f0e2f5;
}
.allocation p {
  margin-top: 0;
  font-size: 11px;
  font-weight: 700;
}
.allocation p span {
  float: right;
}
.allocation .micro {
  font-weight: 400;
  margin-top: 7px;
}
.market-label {
  display: block;
  margin: 25px 0 9px;
  font-size: 14px;
  font-weight: 900;
}
select {
  display: block;
  width: 100%;
  padding: 12px;
  font-size: 14px;
}
.weather-note {
  padding: 16px;
  margin: 15px 0;
  background: #f0e6f4;
  border-radius: 13px;
  font-size: 13px;
  line-height: 1.6;
}
.weather-note p {
  margin-top: 7px;
}
.weather-note small {
  display: block;
  font-size: 11px;
  margin-top: 8px;
  color: #67596e;
}
.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.topline h1 {
  font-size: 25px;
}
.topline .pill {
  margin: 0;
  font-size: 10px;
  background: #ffe7c1;
}
.timer {
  text-align: center;
  font-family: var(--display);
  font-size: 58px;
  line-height: 1.1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -3px;
  margin: 20px 0 10px;
}
.chart-wrap {
  max-width: 490px;
  margin: auto;
}
.status {
  width: fit-content;
  margin: 16px auto 0;
  padding: 7px 20px;
  background: var(--deep);
  color: white;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 900;
}
.status.out {
  background: #a64219;
}
#statusCopy {
  font-size: 13px;
}
.rex-stage {
  position: relative;
  height: 130px;
}
.rex-stage .mascot {
  position: absolute;
  width: 135px;
  left: calc(50% - 82px);
  top: 0;
  animation: rex-watch 4s ease-in-out infinite;
}
.rex-stage .mascot.fossil {
  filter: grayscale(0.8);
  animation: none;
  transform: rotate(-6deg);
  opacity: 0.75;
}
.live-tip {
  margin: 8px 0;
  font-size: 13px;
  color: var(--deep);
}
summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 0;
}
.live-learning {
  margin: 10px 0;
  background: #f1e5f7;
  border-color: #ccb2d6;
  font-size: 13px;
}
.live-learning strong {
  display: block;
  color: var(--deep);
}
#specialStats,
#specialResult {
  margin: 15px 0;
  font-size: 13px;
}
#specialStats > div,
#specialResult > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}
.inventory {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  padding: 12px 0;
}
.inventory strong {
  white-space: nowrap;
  color: var(--deep);
}
.stats {
  display: flex;
  gap: 12px;
}
.stats > div {
  flex: 1;
  padding: 16px 6px;
  border: 1.5px solid #bea4c7;
  border-radius: 14px;
  background: #f6ecf9;
  text-align: center;
  font-size: 12px;
}
.stats strong {
  display: block;
  color: var(--deep);
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}
#resultTitle {
  color: var(--deep);
  font-size: 40px;
  text-align: center;
}
.result-rex {
  display: block;
  width: 150px;
  height: 150px;
  margin: 15px auto;
}
.results-box > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.results-box > div:first-child {
  padding-top: 0;
}
.results-box > div:last-child {
  border: 0;
  padding-bottom: 0;
}
.results-box strong {
  font-size: 22px;
  white-space: nowrap;
}
.results-box > div:first-child strong {
  font-size: 28px;
}
.positive {
  color: #246332;
}
.negative {
  color: #a53d15;
}
.lesson {
  margin: 20px 0;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}
.comparison {
  margin: 16px 0;
}
.comparison summary {
  font-size: 14px;
}
.comparison[open] summary {
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.comparison h3 {
  font-size: 16px;
  margin: 10px 0;
}
.compare-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-size: 13px;
}
.compare-row.chosen {
  font-weight: 900;
  color: var(--deep);
}
.compare-row small {
  display: block;
  font-size: 11px;
  color: #6c5c73;
  line-height: 1.6;
}
.secondary {
  width: 100%;
  padding: 11px;
  margin-top: 15px;
  font-size: 14px;
  background: transparent;
  border-color: #c6b1ce;
}
.secondary:hover {
  background: var(--lavender);
}
.split-preview {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.split-preview > div {
  flex: 1;
  padding: 10px 2px;
  border-radius: 10px;
  background: var(--lavender);
  font-size: 11px;
  text-align: center;
}
.split-preview strong {
  display: block;
  font-size: 19px;
}
#shareStatus {
  white-space: pre-line;
  overflow-wrap: anywhere;
  user-select: text;
}
.share-dialog {
  width: min(720px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 20px;
  color: var(--ink);
  overscroll-behavior: contain;
}
.share-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.share-heading h2 {
  margin: 0;
  font-size: clamp(20px, 4vw, 26px);
}
#cardClose {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}
.share-card-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}
.card-replay {
  margin-bottom: 14px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  background: transparent;
}
.card-replay:hover {
  background: var(--lavender);
}
.card-preview {
  position: relative;
}
#cardAnimation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  pointer-events: none;
}
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.share-actions > * {
  flex: 1 1 145px;
  width: auto;
  min-height: 48px;
  margin: 0;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  border-radius: 12px;
}
.card-save {
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--lavender);
  border: 2px solid var(--deep);
  text-decoration: none;
}
.card-save:hover,
.card-copy:hover,
#cardClose:hover {
  background: var(--lavender);
}
.card-copy {
  border: 1px solid var(--line);
}
#cardStatus {
  margin: 14px 0 0;
}
#cardCaption {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  resize: vertical;
}
.share-dialog [hidden] {
  display: none;
}
/* Original character assets stay intact. */
.mascot {
  background-image: url("mascots.png");
  background-repeat: no-repeat;
  background-size: 300% 100%;
  aspect-ratio: 1;
  flex-shrink: 0;
  transform-origin: 50% 85%;
  mix-blend-mode: normal;
}
.mascot-wave {
  background-position: 0% 50%;
}
.mascot-think {
  background-position: 50% 50%;
}
.mascot-cheer {
  background-position: 100% 50%;
  animation: rex-cheer 2.4s ease-in-out 2;
}
.loss-pair {
  display: grid;
  grid-template-columns: 130px 120px;
  gap: 18px;
  justify-content: center;
  align-items: center;
  height: 150px;
}
.loss-rex-slot,
.loss-meteor-slot {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loss-pair .loss-rex {
  width: 130px;
  height: 130px;
  animation: none;
  transform: none;
}
.loss-meteor {
  flex: none;
  overflow: visible;
}
#playLossScene {
  --rex-pace: 2.8s;
  --meteor-pace: 3.2s;
}
#playLossScene .loss-rex {
  animation: rex-watch var(--rex-pace) ease-in-out infinite;
}
#playLossScene .concerned .loss-rex {
  animation-name: rex-brace;
}
#playLossScene .bracing .loss-rex {
  animation: rex-run 460ms ease-in-out infinite;
}
#playLossScene .loss-meteor {
  animation: meteor-hover var(--meteor-pace) ease-in-out infinite;
}
#playLossScene[data-speed="3"] {
  --rex-pace: 1.2s;
  --meteor-pace: 1.4s;
}
#playLossScene[data-speed="3"] .bracing .loss-rex {
  animation-duration: 260ms;
}
#playLossScene[data-speed="5"] {
  --rex-pace: 0.8s;
  --meteor-pace: 0.9s;
}
#playLossScene[data-speed="5"] .bracing .loss-rex {
  animation-duration: 180ms;
}
#playLossScene[data-paused="true"] .loss-rex,
#playLossScene[data-paused="true"] .loss-meteor {
  animation-play-state: paused;
}
@keyframes rex-brace {
  0%,
  100% {
    transform: rotate(-2deg);
  }
  50% {
    transform: translateY(-3px) rotate(2deg);
  }
}
@keyframes rex-run {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-5px) rotate(2deg);
  }
}
@keyframes meteor-hover {
  0%,
  100% {
    transform: translate(0, 0) rotate(-2deg);
  }
  50% {
    transform: translate(-4px, 3px) rotate(2deg);
  }
}
#lossSetup {
  margin-top: 16px;
}
@keyframes rex-watch {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}
@keyframes rex-cheer {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  30% {
    transform: translateY(-7px) rotate(-3deg);
  }
  65% {
    transform: translateY(-2px) rotate(3deg);
  }
}
/* Help and model notes are readable at every screen size. */
dialog {
  width: min(590px, calc(100% - 32px));
  max-height: 85dvh;
  overflow: auto;
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 30px;
  background: var(--paper);
  box-shadow: 8px 8px 0 #23182766;
}
dialog::backdrop {
  background: #26152bc4;
  backdrop-filter: blur(3px);
}
.close {
  float: right;
  width: 44px;
  font-size: 27px;
  border: 1px solid #c7b1cf;
  border-radius: 50%;
  margin: -12px -12px 10px 12px;
}
dialog h2 {
  font-size: 28px;
  margin-bottom: 22px;
}
#infoBody {
  font-family: "Trebuchet MS", sans-serif;
  font-size: 15px;
  line-height: 1.65;
}
#infoBody p {
  margin: 0 0 13px;
}
#infoBody h3 {
  font-size: 18px;
  margin: 24px 0 12px;
  color: var(--deep);
}
.help-lead {
  font-size: 17px;
}
.help-steps {
  padding-left: 24px;
}
.help-steps li {
  padding-left: 6px;
  margin-bottom: 20px;
}
#infoBody .help-steps p {
  margin-top: 5px;
}
.help-key,
.help-lessons {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 12px;
}
#infoBody .help-key h3 {
  margin-top: 10px;
}
#infoBody .model-section {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}
#infoBody .model-section p {
  margin-top: 10px;
}
/* Query the available body width, including browser/CSS zoom. */
@container (min-width: 1500px) {
  .academy-hero {
    min-height: 690px;
  }
}
@container (max-width: 1050px) {
  .game {
    width: calc(100% - 56px);
  }
  .academy-hero h1 {
    font-size: 64px;
    letter-spacing: -3px;
  }
  .academy-hero {
    min-height: 600px;
  }
  .hero-actions {
    gap: 16px;
  }
  .hero-actions .primary {
    padding: 13px 19px;
  }
  .quick-facts p {
    padding: 0 20px;
  }
  .about-section {
    gap: 50px;
    padding: 75px 10px;
  }
  .about-copy h2,
  .section-heading h2 {
    font-size: 43px;
  }
  .how-it-works {
    padding: 7px 20px 0;
  }
  .how-step {
    gap: 14px;
  }
  .lesson-list {
    gap: 16px;
  }
  .lesson-list button {
    padding: 18px;
  }
  .lesson-list button > .lesson-title {
    font-size: 18px;
  }
}
@container (max-width: 760px) {
  .game {
    width: calc(100% - 40px);
  }
  .site-header {
    min-height: 90px;
    gap: 0 15px;
    padding: 8px 0;
  }
  .header-nav {
    gap: 15px;
  }
  .header-nav a {
    font-size: 12px;
  }
  .help-label {
    display: none;
  }
  .help {
    width: 44px;
    padding: 0;
    justify-content: center;
  }
  .help-mark {
    border: 0;
    font-size: 20px;
  }
  .brand {
    gap: 12px;
  }
  .brand-name {
    width: 104px;
  }
  .brand-tagline {
    font-size: 12px;
  }
  .academy-hero {
    gap: 0;
    min-height: 530px;
    padding: 45px 0;
  }
  .academy-hero h1 {
    font-size: 51px;
    letter-spacing: -2.6px;
  }
  .hero-copy .eyebrow {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .hero-description {
    font-size: 14px;
    max-width: 300px;
  }
  .hero-actions {
    gap: 12px;
  }
  .hero-actions a {
    font-size: 12px;
  }
  .hero-note {
    font-size: 10px;
  }
  .quick-facts {
    padding: 23px 5px;
  }
  .quick-facts p {
    padding: 0 14px;
  }
  .quick-facts strong {
    font-size: 23px;
  }
  .quick-facts p > span {
    font-size: 10px;
  }
  .about-section {
    gap: 28px;
    padding: 65px 0;
  }
  .about-copy h2,
  .section-heading h2 {
    font-size: 36px;
  }
  .about-copy > p:not(.eyebrow) {
    font-size: 13px;
  }
  .how-symbol {
    width: 48px;
    font-size: 40px;
  }
  .how-step {
    gap: 16px;
    padding: 18px 0;
  }
  .how-step b {
    font-size: 13px;
  }
  .how-step p {
    font-size: 11px;
  }
  .tokens-symbol span {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
  .tokens-symbol span + span {
    left: 16px;
  }
  .how-it-works {
    padding: 7px 15px 0;
  }
  .section-heading {
    gap: 24px;
  }
  .library-intro {
    font-size: 12px;
  }
  .lesson-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-footer {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }
  .footer-links {
    gap: 24px;
  }
  .lesson-screen {
    margin: 28px auto 45px;
    padding: 26px;
  }
}
@container (max-width: 540px) {
  .game {
    width: calc(100% - 36px);
  }
  .site-header {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 104px;
    gap: 2px 12px;
    padding: 10px 0 4px;
  }
  .brand-lockup {
    grid-column: 1 / -1;
    grid-row: 1;
    width: calc(100% - 56px);
    justify-content: flex-start;
  }
  .brand {
    gap: 10px;
  }
  .brand-name {
    width: 84px;
  }
  .brand-tagline {
    font-size: 11px;
  }
  .header-nav {
    display: contents;
  }
  .header-nav a {
    display: flex;
    grid-row: 2;
    justify-content: center;
    font-size: 12px;
  }
  .header-nav a:first-child {
    grid-column: 1;
    justify-content: flex-start;
  }
  .header-nav a:nth-child(2) {
    grid-column: 2;
  }
  .header-nav .help {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    width: auto;
    border: 0;
    border-radius: 6px;
    padding: 0;
    font-size: 12px;
  }
  .header-nav .help-label {
    display: inline;
  }
  .header-nav .help-mark {
    display: none;
  }
  .header-nav .theme-toggle {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
  .academy-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 34px 0 28px;
  }
  .hero-copy .eyebrow {
    margin-bottom: 19px;
    font-size: 9px;
  }
  .academy-hero h1 {
    font-size: clamp(42px, 12.9vw, 66px);
    line-height: 1.02;
    letter-spacing: -2.3px;
  }
  .hero-description {
    max-width: 340px;
    font-size: 14px;
    line-height: 1.7;
    margin-top: 20px;
  }
  .hero-actions {
    gap: 20px;
    margin-top: 23px;
  }
  .hero-actions .primary {
    font-size: 15px;
    padding: 12px 18px;
    min-height: 52px;
    gap: 20px;
  }
  .hero-actions a {
    font-size: 12px;
    gap: 8px;
  }
  .hero-note {
    margin-top: 18px;
    font-size: 10px;
  }
  .hero-art {
    width: 89%;
    align-self: center;
    margin-top: 30px;
  }
  .quick-facts {
    grid-template-columns: repeat(2, 1fr);
    padding: 6px 17px;
    border-radius: 16px;
  }
  .quick-facts p {
    padding: 18px 8px;
  }
  .quick-facts p:nth-child(3) {
    border-left: 0;
  }
  .quick-facts p:nth-child(n + 3) {
    border-top: 1px solid #66536e;
  }
  .quick-facts p:nth-child(even) {
    padding-left: 22px;
  }
  .quick-facts strong {
    font-size: 27px;
  }
  .quick-facts p > span {
    font-size: 11px;
  }
  .about-section {
    display: block;
    padding: 56px 2px;
  }
  .about-copy .eyebrow {
    font-size: 10px;
    margin-bottom: 14px;
  }
  .about-copy h2 {
    font-size: 43px;
  }
  .about-copy > p:not(.eyebrow) {
    font-size: 14px;
  }
  .about-copy h2 br {
    display: none;
  }
  .how-it-works {
    margin: 33px 3px 0;
    padding: 7px 20px 0;
    transform: rotate(0.7deg);
  }
  .how-step {
    padding: 23px 0;
    gap: 20px;
  }
  .how-symbol {
    width: 60px;
  }
  .how-step b {
    font-size: 14px;
  }
  .how-step p {
    font-size: 12px;
  }
  .library-section {
    padding-top: 45px;
  }
  .section-heading {
    display: block;
    margin-bottom: 24px;
  }
  .section-heading .eyebrow {
    font-size: 10px;
    margin-bottom: 14px;
  }
  .section-heading h2 {
    font-size: 37px;
    letter-spacing: -1.5px;
  }
  .library-intro {
    margin-top: 18px;
    max-width: none;
    font-size: 13px;
  }
  .course-progress {
    font-size: 10px;
  }
  .lesson-list {
    gap: 15px;
    grid-template-columns: 1fr;
  }
  .lesson-list button {
    padding: 20px;
    min-height: 195px;
  }
  .lesson-art {
    position: absolute;
    width: 105px;
    height: 85px;
    right: 12px;
    top: 12px;
    margin: 0;
  }
  .lesson-list button > .lesson-title {
    margin-top: 18px;
    font-size: 21px;
    max-width: 90%;
  }
  .card-description {
    max-width: 88%;
    font-size: 13px;
  }
  .lesson-list i {
    position: absolute;
    right: 16px;
    bottom: 12px;
  }
  .site-footer {
    padding: 26px 0;
  }
  .site-footer p {
    font-size: 10px;
    max-width: 300px;
  }
  .footer-links button,
  .footer-links a {
    font-size: 10px;
  }
  .lesson-toolbar {
    display: block;
    padding: 8px 0 14px;
  }
  .back-link {
    font-size: 12px;
  }
  #lessonJourney {
    justify-content: space-between;
    gap: 8px;
    margin-top: 5px;
  }
  #lessonJourney li {
    font-size: 11px;
    gap: 5px;
  }
  #lessonJourney li > span {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }
  .lesson-screen {
    border: 0;
    padding: 12px 0 0;
    margin: 15px auto 40px;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
  }
  .lesson-screen h1,
  #introTitle {
    font-size: 27px;
  }
  #introCount {
    margin-top: 4px;
  }
  .lesson-intro {
    padding: 18px;
  }
  .lesson-intro h1 {
    font-size: 26px;
  }
  .box {
    padding: 17px;
  }
  .rex-explains {
    gap: 8px;
    padding: 10px;
  }
  .rex-explains .intro-caption {
    font-size: 13px;
    min-height: 95px;
  }
  .intro-mascot {
    width: 58px;
  }
  .intro-steps {
    margin-top: 14px;
  }
  .step-navigation button {
    padding: 9px 13px;
  }
  .play-controls {
    gap: 7px;
  }
  .play-controls button {
    font-size: 12px;
  }
  .results-box strong {
    font-size: 20px;
  }
  .results-box > div:first-child strong {
    font-size: 26px;
  }
  #resultTitle {
    font-size: 37px;
  }
  .weather-note {
    padding: 14px;
  }
  .topline h1 {
    font-size: 24px;
  }
  .timer {
    font-size: 52px;
    margin-top: 18px;
  }
  dialog {
    padding: 24px;
  }
  dialog h2 {
    font-size: 25px;
  }
}
@container (max-width: 360px) {
  .game {
    width: calc(100% - 28px);
  }
  .header-nav {
    gap: 8px;
  }
  .hero-copy .eyebrow {
    font-size: 8px;
    letter-spacing: 0.7px;
    gap: 7px;
  }
  .hero-actions {
    gap: 15px;
  }
  .hero-actions .primary {
    font-size: 14px;
    gap: 14px;
    padding: 12px 14px;
  }
  .hero-actions a {
    font-size: 11px;
  }
  .about-copy h2 {
    font-size: 37px;
  }
  .section-heading h2 {
    font-size: 32px;
  }
  .quick-facts strong {
    font-size: 25px;
  }
  .how-it-works {
    padding: 7px 15px 0;
  }
  .how-step {
    gap: 12px;
  }
  .how-symbol {
    width: 48px;
  }
  .box {
    padding: 14px;
  }
  .lesson-list button > .lesson-title {
    font-size: 20px;
  }
  .choices button {
    font-size: 12px;
  }
  .choices span {
    font-size: 10px;
  }
  .intro-mascot {
    width: 46px;
  }
  .rex-explains .intro-caption {
    font-size: 12px;
  }
  .stats strong {
    font-size: 25px;
  }
  .results-box > div {
    font-size: 12px;
  }
  .results-box strong {
    font-size: 18px;
  }
  .results-box > div:first-child strong {
    font-size: 23px;
  }
}
/* Keep the round controls within thumb reach, including the phone safe area. */
@media (max-width: 760px) {
  html {
    scroll-padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  }
  body[data-screen="play"] {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
  .simulation-controls {
    position: fixed;
    z-index: 20;
    left: max(14px, env(safe-area-inset-left, 0px));
    right: max(14px, env(safe-area-inset-right, 0px));
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    margin: 0 auto;
    max-width: 520px;
    padding: 8px;
    border: 2px solid var(--ink);
    border-radius: 18px;
    background: var(--paper);
    box-shadow: 0 4px 0 var(--button-shadow);
  }
  .simulation-controls button {
    min-height: 46px;
    border-color: var(--line);
    background: var(--lavender);
  }
}
@media (max-width: 540px) {
  body[data-screen="play"] .site-header {
    display: flex;
    min-height: 60px;
    flex-wrap: nowrap;
    justify-content: space-between;
    padding: 8px 0;
  }
  body[data-screen="play"] .brand-lockup,
  body[data-screen="play"] .header-nav {
    width: auto;
  }
  body[data-screen="play"] .header-nav {
    display: flex;
  }
  body[data-screen="play"] .header-nav .help {
    width: 44px;
    border: 2px solid var(--ink);
    border-radius: 30px;
  }
  body[data-screen="play"] .help-mark {
    display: grid;
  }
  body[data-screen="play"] .brand-name {
    width: 76px;
  }
  body[data-screen="play"] .brand-tagline,
  body[data-screen="play"] .help-label,
  body[data-screen="play"] .header-nav a {
    display: none;
  }
  body[data-screen="play"] .lesson-toolbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 4px 0;
    gap: 12px;
  }
  body[data-screen="play"] #lessonJourney {
    margin: 0;
  }
  body[data-screen="play"] #lessonJourney li:not([aria-current="step"]) {
    display: none;
  }
  #play {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    margin-top: 8px;
    padding-top: 0;
  }
  #play .topline {
    grid-column: 1;
    grid-row: 1;
  }
  #liveLesson {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
    margin-top: 4px;
  }
  #play .timer {
    grid-column: 2;
    grid-row: 1 / 3;
    margin: 0;
    font-size: 38px;
    letter-spacing: -2px;
  }
  #play .round-layout {
    grid-column: 1 / -1;
    margin-top: 6px;
  }
  #play .status {
    margin-top: 8px;
    padding: 5px 18px;
  }
  #play #statusCopy {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.45;
  }
  #playLossScene .loss-pair {
    height: 104px;
    grid-template-columns: 108px 120px;
  }
  #playLossScene .loss-rex-slot,
  #playLossScene .loss-meteor-slot {
    height: 104px;
  }
  #playLossScene .loss-rex {
    width: 104px;
    height: 104px;
  }
  #playLossScene .loss-meteor {
    max-width: 104px;
    max-height: 104px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* On wide screens, keep each explanation beside its controls. */
@container (min-width: 900px) {
  #intro,
  #setup,
  #play {
    max-width: 1040px;
  }
  .intro-experience {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 36px;
    margin-top: 20px;
  }
  .intro-illustration {
    display: flex;
    flex-direction: column;
  }
  .intro-illustration .intro-canvas {
    width: 100%;
    margin-top: 0;
  }
  .intro-illustration .intro-track {
    width: 100%;
  }
  .intro-illustration #introLossScene {
    order: 3;
  }
  .intro-instructions .rex-explains {
    margin-top: 0;
    padding: 18px;
  }
  .intro-instructions .intro-caption {
    font-size: 15px;
    line-height: 1.65;
    min-height: 110px;
  }
  #intro .feature-link {
    margin: 20px 0 0;
    padding-bottom: 0;
  }
  .setup-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
    gap: 28px;
  }
  .setup-launch {
    position: sticky;
    top: 24px;
    padding: 22px;
    background: #f2e7f5;
    border: 1px solid #d4bedf;
    border-radius: 15px;
  }
  .setup-launch .market-label {
    margin-top: 0;
  }
  .setup-launch .weather-note {
    padding: 0;
    background: transparent;
  }
  .setup-launch .primary {
    font-size: 16px;
  }
  .setup-options > .extra:first-of-type {
    margin-top: 0;
  }
  #setup .lesson-intro p {
    max-width: 780px;
  }
  .round-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 34px;
    align-items: center;
    margin-top: 20px;
  }
  #play .timer {
    margin: 6px 0 0;
  }
  .round-data {
    border-left: 1px solid var(--line);
    padding-left: 28px;
  }
  .round-data .live-tip {
    margin-top: 0;
  }
  .round-data .inventory {
    flex-wrap: wrap;
  }
}
@container (min-width: 900px) {
  body:not([data-screen="home"]) .site-header {
    min-height: 90px;
  }
  .lesson-toolbar {
    padding: 12px 0;
  }
  .lesson-screen {
    margin-top: 28px;
  }
  #setup:has(#lossSetup:not([hidden])) {
    max-width: 640px;
  }
  #setup:has(#lossSetup:not([hidden])) .setup-grid {
    display: block;
  }
  #setup:has(#lossSetup:not([hidden])) .setup-launch {
    margin-top: 20px;
  }
}

.library-section {
  padding-bottom: 64px;
}
.how-step:last-child {
  border-bottom: 0;
}
@container (max-width: 540px) {
  .quick-facts p:last-child {
    grid-column: 1 / -1;
  }
}
