:root {
  --ink: #173433;
  --ink-soft: #49605c;
  --paper: #f7f0df;
  --paper-deep: #eadfc5;
  --cream: #fffaf0;
  --forest: #163a3a;
  --leaf: #4b8f7c;
  --tomato: #e85e4f;
  --saffron: #f2b84b;
  --sky: #7db8c9;
  --blue: #2f79a1;
  --ocean: #2f79a1;
  --geometry-ink: #245d76;
  --geometry-deep: #1f526a;
  --geometry-grid-line: rgba(47, 121, 161, 0.055);
  --geometry-shape-radius: 18px 18px 34px 18px;
  --line: rgba(23, 52, 51, 0.14);
  --shadow: 0 18px 50px rgba(49, 56, 44, 0.12);
  --shadow-small: 0 7px 18px rgba(49, 56, 44, 0.1);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 13px;
  --display: "Kaiti SC", "STKaiti", "Songti SC", serif;
  --body: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --display-font: var(--display);
  --body-font: var(--body);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--forest);
  color: var(--ink);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(242, 184, 75, 0.16), transparent 28rem),
    linear-gradient(180deg, #f8f3e7, #f3ead7 72%, #eadfc8);
  font-family: var(--body);
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: -5rem;
  padding: 0.8rem 1rem;
  border-radius: 0 0 12px 12px;
  background: var(--forest);
  color: #fff;
}

.skip-link:focus {
  top: 0;
}

.paper-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(22, 58, 58, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 58, 58, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 80%, transparent);
}

.app-shell {
  width: min(1180px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 30px 110px;
}

.topbar {
  display: flex;
  position: sticky;
  z-index: 30;
  top: 0;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  padding: 12px 2px;
  background: linear-gradient(180deg, rgba(248, 243, 231, 0.96) 70%, rgba(248, 243, 231, 0));
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50% 43% 50% 42%;
  background: var(--forest);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.08), var(--shadow-small);
  color: var(--saffron);
  font-size: 28px;
  transform: rotate(-6deg);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.06em;
}

.brand small {
  margin-top: 1px;
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.12em;
}

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

.today-chip {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.76);
  color: var(--ink-soft);
  font-size: 13px;
}

.icon-button {
  display: grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(22, 58, 58, 0.2);
  border-radius: 50%;
  background: var(--cream);
  box-shadow: var(--shadow-small);
  cursor: pointer;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
}

.view {
  display: none;
  animation: view-in 0.45s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

.view.is-active {
  display: block;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 8px;
  color: var(--tomato);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow.preserve-case {
  text-transform: none;
}

.eyebrow::before {
  width: 26px;
  height: 2px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
}

h1 {
  max-width: 780px;
  margin-bottom: 14px;
  font-size: clamp(34px, 5.3vw, 66px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.15;
}

h3 {
  font-size: 23px;
}

.muted {
  color: var(--ink-soft);
}

.hero {
  display: grid;
  position: relative;
  grid-template-columns: 1.3fr 0.7fr;
  min-height: 420px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 38px 38px 70px 38px;
  background: var(--forest);
  box-shadow: var(--shadow);
  color: #fff9e9;
}

.hero::before,
.hero::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.hero::before {
  right: 21%;
  top: -100px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(242, 184, 75, 0.24);
  box-shadow: 0 0 0 46px rgba(242, 184, 75, 0.04), 0 0 0 92px rgba(242, 184, 75, 0.025);
}

.hero::after {
  right: -76px;
  bottom: -140px;
  width: 330px;
  height: 330px;
  background: var(--saffron);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(34px, 6vw, 72px);
}

.hero-copy h1 em {
  color: var(--saffron);
  font-style: normal;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 26px;
  color: rgba(255, 249, 233, 0.74);
  font-size: 16px;
  line-height: 1.8;
}

.hero-art {
  display: grid;
  position: relative;
  z-index: 2;
  min-height: 300px;
  place-items: center;
}

.compass {
  display: grid;
  position: relative;
  width: 210px;
  height: 210px;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.08);
  box-shadow: inset 0 0 0 18px rgba(255, 250, 240, 0.025);
  animation: float 5s ease-in-out infinite;
}

.compass::before {
  width: 84px;
  height: 84px;
  background: var(--tomato);
  clip-path: polygon(50% 0, 66% 38%, 100% 50%, 66% 62%, 50% 100%, 34% 62%, 0 50%, 34% 38%);
  content: "";
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.22));
}

.compass::after {
  position: absolute;
  content: "思";
  color: var(--cream);
  font-family: var(--display);
  font-size: 29px;
  font-weight: 800;
}

.personal-seal {
  position: absolute;
  right: 8%;
  bottom: 12%;
  display: grid;
  min-width: 138px;
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px 18px 30px 18px;
  background: rgba(22, 58, 58, 0.82);
  box-shadow: 0 16px 34px rgba(22, 58, 58, 0.18);
  color: #fff;
  font-family: var(--display-font);
  font-size: 19px;
  text-align: center;
  transform: rotate(-3deg);
}

.personal-seal small {
  margin-top: 4px;
  color: var(--saffron);
  font-family: var(--body-font);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.personal-page-stamp { color: var(--tomato); }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-10px) rotate(4deg); }
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.secondary-button,
.text-button,
.danger-button {
  min-height: 48px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button:hover,
.secondary-button:hover,
.danger-button:hover {
  transform: translateY(-2px);
}

.primary-button {
  padding: 12px 22px;
  border: 0;
  background: var(--saffron);
  box-shadow: 0 8px 0 #c88d27;
  color: var(--forest);
}

.primary-button:active {
  transform: translateY(4px);
  box-shadow: 0 4px 0 #c88d27;
}

.secondary-button {
  padding: 12px 20px;
  border: 1px solid var(--line);
  background: var(--cream);
  box-shadow: var(--shadow-small);
}

.hero .secondary-button {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  color: #fff;
}

.text-button {
  padding: 8px 3px;
  border: 0;
  background: transparent;
  color: var(--blue);
}

.danger-button {
  padding: 11px 18px;
  border: 1px solid rgba(176, 62, 51, 0.3);
  background: #fff5ef;
  color: #a83f35;
}

.progress-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  margin-top: 22px;
  padding: 15px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.progress-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--saffron);
  transition: width 0.5s ease;
}

.progress-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.today-route-board {
  display: grid;
  position: relative;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.65fr);
  gap: 18px;
  margin-top: 24px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px 28px 58px 28px;
  background:
    linear-gradient(115deg, rgba(255, 250, 240, 0.96), rgba(238, 226, 199, 0.9)),
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(23, 52, 51, 0.035) 29px);
  box-shadow: var(--shadow-small);
}

.today-route-board::before {
  position: absolute;
  right: 28%;
  top: -75px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(47, 121, 161, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 25px rgba(47, 121, 161, 0.025), 0 0 0 50px rgba(47, 121, 161, 0.018);
  content: "";
}

.route-board-copy,
.review-tide-card {
  position: relative;
  z-index: 1;
}

.route-title-row,
.weekly-report-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.route-title-row h2,
.route-title-row p {
  margin-bottom: 0;
}

.route-title-row p {
  max-width: 680px;
  margin-top: 7px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.route-status {
  display: grid;
  min-width: 88px;
  padding: 10px 13px;
  place-items: center;
  border: 1px solid rgba(75, 143, 124, 0.22);
  border-radius: 16px 16px 28px 16px;
  background: rgba(75, 143, 124, 0.1);
  color: var(--leaf);
  font-size: 11px;
  font-weight: 800;
}

.route-status.has-due {
  border-color: rgba(232, 94, 79, 0.25);
  background: rgba(232, 94, 79, 0.1);
  color: var(--tomato);
}

.route-status strong {
  font-family: var(--display);
  font-size: 27px;
  line-height: 1;
}

.week-route {
  display: grid;
  grid-template-columns: repeat(7, minmax(64px, 1fr));
  gap: 8px;
  margin-top: 24px;
}

.week-stop {
  display: grid;
  position: relative;
  min-height: 112px;
  padding: 10px 5px;
  place-items: center;
  border: 1px dashed rgba(23, 52, 51, 0.16);
  border-radius: 30px 30px 18px 18px;
  background: rgba(255, 255, 255, 0.46);
  color: var(--ink-soft);
}

.week-stop small {
  font-size: 10px;
  font-weight: 800;
}

.week-stop i {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--forest);
  font-family: var(--display);
  font-size: 17px;
  font-style: normal;
}

.week-stop strong {
  font-size: 11px;
}

.week-stop.is-today {
  border-style: solid;
  border-color: var(--forest);
  background: var(--forest);
  box-shadow: 0 8px 0 rgba(22, 58, 58, 0.16);
  color: white;
  transform: translateY(-5px);
}

.week-stop.is-today i {
  background: var(--saffron);
}

.week-stop.kind-challenge:not(.is-today) i {
  background: rgba(232, 94, 79, 0.13);
  color: var(--tomato);
}

.week-stop.kind-preparation:not(.is-today) i {
  background: rgba(201, 146, 46, 0.14);
  color: #9b6816;
}

.week-stop.kind-reflection:not(.is-today) i {
  background: rgba(47, 121, 161, 0.13);
  color: var(--blue);
}

.review-tide-card {
  min-height: 214px;
  padding: 24px;
  overflow: hidden;
  border-radius: 22px 22px 44px 22px;
  background: var(--geometry-deep);
  color: white;
}

.review-tide-card::after {
  position: absolute;
  right: -42px;
  bottom: -54px;
  width: 150px;
  height: 150px;
  border: 20px solid rgba(125, 184, 201, 0.12);
  border-radius: 50%;
  content: "";
}

.review-tide-card .eyebrow,
.review-tide-card p {
  color: rgba(255, 255, 255, 0.68);
}

.review-tide-card h3 {
  margin-bottom: 7px;
  color: var(--saffron);
}

.review-tide-card p:not(.eyebrow) {
  max-width: 280px;
  font-size: 12px;
  line-height: 1.65;
}

.tide-moon {
  position: absolute;
  right: 18px;
  top: 10px;
  color: rgba(255, 255, 255, 0.12);
  font-family: var(--display);
  font-size: 72px;
}

.interval-steps {
  display: flex;
  position: relative;
  z-index: 1;
  gap: 6px;
  margin-top: 17px;
}

.interval-steps span {
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 10px;
  font-weight: 800;
}

.content-section {
  margin-top: 52px;
}

.section-heading {
  display: flex;
  gap: 20px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-heading h2,
.section-heading h3,
.section-heading p {
  margin-bottom: 0;
}

.section-heading p {
  max-width: 500px;
  color: var(--ink-soft);
  line-height: 1.7;
  text-align: right;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat-card {
  position: relative;
  min-height: 132px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 250, 240, 0.72);
  box-shadow: var(--shadow-small);
}

.stat-card strong {
  display: block;
  margin: 6px 0 2px;
  font-family: var(--display);
  font-size: 34px;
}

.stat-card span,
.stat-card small {
  color: var(--ink-soft);
  font-size: 13px;
}

.island-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.island-card {
  display: flex;
  position: relative;
  min-height: 230px;
  padding: 24px;
  overflow: hidden;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 22px 22px 54px 22px;
  background: var(--cream);
  box-shadow: var(--shadow-small);
  cursor: pointer;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.island-card:hover {
  transform: translateY(-5px) rotate(-0.5deg);
  box-shadow: var(--shadow);
}

.island-card::after {
  position: absolute;
  right: -28px;
  bottom: -36px;
  width: 118px;
  height: 118px;
  border-radius: 47% 53% 36% 64%;
  background: color-mix(in srgb, var(--skill-color), transparent 72%);
  content: "";
  transform: rotate(20deg);
}

.island-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 26px;
  place-items: center;
  border-radius: 42% 58% 48% 52%;
  background: var(--skill-color);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.08);
  color: white;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 800;
}

.island-card h3 {
  margin-bottom: 7px;
  font-size: 24px;
}

.island-card p {
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.island-footer {
  display: flex;
  width: 100%;
  margin-top: auto;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 800;
}

.mini-progress {
  width: 90px;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--paper-deep);
}

.mini-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--skill-color);
}

.page-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
  margin: 30px 0 36px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.page-intro h1 {
  margin-bottom: 6px;
  font-size: clamp(38px, 5vw, 60px);
}

.page-intro p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.page-stamp {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 2px solid var(--tomato);
  border-radius: 50%;
  color: var(--tomato);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transform: rotate(7deg);
}

.challenge-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
}

.challenge-card,
.parent-card,
.note-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 240, 0.82);
  box-shadow: var(--shadow-small);
}

.challenge-card.featured {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  color: #fff;
}

.challenge-card.featured::after {
  position: absolute;
  right: -60px;
  top: -60px;
  width: 190px;
  height: 190px;
  border: 30px solid rgba(242, 184, 75, 0.18);
  border-radius: 50%;
  content: "";
}

.challenge-card h3,
.parent-card h3 {
  margin-bottom: 9px;
}

.challenge-card p,
.parent-card p,
.note-card p {
  color: var(--ink-soft);
  line-height: 1.75;
}

.challenge-card.featured p {
  color: rgba(255, 255, 255, 0.7);
}

.challenge-card.featured .primary-button {
  position: relative;
  z-index: 2;
}

.principle-list {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.principle-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.55;
}

.principle-list li::before {
  display: grid;
  width: 23px;
  min-width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  background: var(--saffron);
  color: var(--forest);
  content: "";
  font-size: 12px;
  font-weight: 900;
  box-shadow: inset 0 0 0 7px var(--saffron), inset 0 0 0 9px var(--forest);
}

.skill-focus-list {
  display: grid;
  gap: 12px;
}

.skill-focus-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}

.skill-focus-row:last-child {
  border-bottom: 0;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--skill-color);
}

.skill-focus-row strong,
.skill-focus-row small {
  display: block;
}

.skill-focus-row small {
  margin-top: 3px;
  color: var(--ink-soft);
}

.readiness-pill {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--paper);
  font-size: 11px;
  font-weight: 800;
}

.parent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.parent-card.wide {
  grid-column: 1 / -1;
}

.weekly-report-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255, 250, 240, 0.96), rgba(247, 240, 223, 0.9)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(23, 52, 51, 0.04) 32px);
}

.weekly-report-card::after {
  position: absolute;
  right: -48px;
  top: -58px;
  width: 175px;
  height: 175px;
  border: 24px solid rgba(242, 184, 75, 0.12);
  border-radius: 50%;
  content: "";
}

.weekly-report-head {
  position: relative;
  z-index: 1;
}

.weekly-report-head h2 {
  margin-bottom: 0;
}

.weekly-report-head > span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
}

.weekly-metric-grid {
  display: grid;
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 22px 0;
}

.weekly-metric-grid > span {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 17px 17px 28px 17px;
  background: rgba(255, 255, 255, 0.5);
}

.weekly-metric-grid strong,
.weekly-metric-grid small {
  display: block;
}

.weekly-metric-grid strong {
  font-family: var(--display);
  font-size: 27px;
}

.weekly-metric-grid small {
  color: var(--ink-soft);
  font-size: 10px;
}

.weekly-story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.weekly-story-grid > span {
  padding: 14px 16px;
  border-left: 3px solid var(--leaf);
  border-radius: 0 14px 14px 0;
  background: rgba(75, 143, 124, 0.07);
}

.weekly-story-grid small,
.weekly-story-grid strong {
  display: block;
}

.weekly-story-grid small {
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 10px;
}

.weekly-story-grid strong {
  font-size: 13px;
}

.review-focus-list {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(232, 94, 79, 0.16);
  border-radius: 16px;
  background: rgba(232, 94, 79, 0.055);
}

.review-focus-list > small {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.review-focus-list > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-focus-list span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: white;
  box-shadow: inset 0 0 0 1px rgba(22, 58, 58, 0.08);
}

.review-focus-list strong {
  font-size: 12px;
}

.review-focus-list em {
  color: var(--tomato);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.weekly-recommendation {
  position: relative;
  z-index: 1;
  margin: 20px 0 14px;
  padding-left: 18px;
  border-left: 4px solid var(--saffron);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
}

.readiness-report-card {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 32px;
  align-items: center;
  overflow: hidden;
  background: var(--forest);
  color: white;
}

.readiness-dial {
  display: grid;
  position: relative;
  width: 210px;
  height: 210px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--saffron) calc(var(--readiness) * 3.6deg), rgba(255, 255, 255, 0.1) 0);
  transform: rotate(-8deg);
}

.readiness-dial::before {
  position: absolute;
  width: 158px;
  height: 158px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: var(--forest);
  content: "";
}

.readiness-dial > span {
  position: relative;
  text-align: center;
  transform: rotate(8deg);
}

.readiness-dial strong,
.readiness-dial small {
  display: block;
}

.readiness-dial strong {
  color: var(--saffron);
  font-family: var(--display);
  font-size: 58px;
  line-height: 1;
}

.readiness-dial small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
}

.readiness-report-copy .eyebrow,
.readiness-report-copy > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.63);
}

.readiness-report-copy h2 {
  margin-bottom: 7px;
  color: white;
}

.readiness-dimensions {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.readiness-dimensions > span {
  display: grid;
  grid-template-columns: 88px minmax(100px, 1fr) minmax(180px, 1.3fr);
  gap: 12px;
  align-items: center;
}

.readiness-dimensions small {
  color: white;
  font-size: 11px;
  font-weight: 800;
}

.readiness-dimensions small b {
  float: right;
  color: var(--saffron);
}

.readiness-dimensions i,
.compact-readiness-bars i {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.readiness-dimensions i b,
.compact-readiness-bars i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--saffron);
}

.readiness-dimensions em {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-style: normal;
}

.challenge-readiness-summary {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 14px 0 16px;
  padding: 13px 15px;
  border-radius: 17px;
  background: rgba(47, 121, 161, 0.08);
}

.challenge-readiness-summary > span:last-child strong,
.challenge-readiness-summary > span:last-child small {
  display: block;
}

.challenge-readiness-summary > span:last-child small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 10px;
}

.readiness-number {
  color: var(--blue);
  font-family: var(--display);
  font-size: 32px;
  font-weight: 800;
}

.readiness-number small {
  font-family: var(--body);
  font-size: 9px;
}

.compact-readiness-bars {
  display: grid;
  gap: 7px;
  margin-bottom: 25px;
}

.compact-readiness-bars > span {
  display: grid;
  grid-template-columns: 38px 1fr 28px;
  gap: 8px;
  align-items: center;
}

.compact-readiness-bars small,
.compact-readiness-bars strong {
  font-size: 10px;
}

.compact-readiness-bars i {
  background: var(--paper-deep);
}

.compact-readiness-bars i b {
  background: var(--blue);
}

.recommendation {
  position: relative;
  padding-left: 25px;
  border-left: 5px solid var(--saffron);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.7;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
}

.report-table th,
.report-table td {
  padding: 13px 9px;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
  text-align: left;
}

.report-table th {
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.score-bar {
  display: flex;
  gap: 9px;
  align-items: center;
}

.score-bar .mini-progress {
  width: 110px;
}

.settings-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.field input,
.field select,
.answer-input {
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid rgba(23, 52, 51, 0.22);
  border-radius: 14px;
  background: #fffef9;
  color: var(--ink);
}

.data-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.privacy-note {
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: 12px;
  background: rgba(75, 143, 124, 0.1);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.bottom-nav {
  display: flex;
  position: fixed;
  z-index: 40;
  right: max(18px, calc((100vw - 1120px) / 2));
  bottom: max(18px, env(safe-area-inset-bottom));
  left: max(18px, calc((100vw - 1120px) / 2));
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(22, 58, 58, 0.95);
  box-shadow: 0 18px 45px rgba(22, 58, 58, 0.28);
  backdrop-filter: blur(18px);
}

.app-shell.is-session .bottom-nav {
  display: none;
}

.nav-item {
  display: grid;
  min-width: 104px;
  min-height: 55px;
  padding: 5px 13px;
  place-items: center;
  border: 0;
  border-radius: 17px;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  cursor: pointer;
}

.nav-item span {
  font-family: var(--display);
  font-size: 21px;
}

.nav-item small {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.nav-item.is-active {
  background: var(--saffron);
  color: var(--forest);
}

.session-view {
  max-width: 900px;
  margin: 18px auto 0;
}

.session-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.session-progress .progress-track {
  background: rgba(22, 58, 58, 0.1);
}

.session-progress .progress-track span {
  background: var(--tomato);
}

.session-progress small {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
}

.timer {
  min-width: 82px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--forest);
  color: #fff;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  text-align: center;
}

.question-card {
  position: relative;
  padding: clamp(24px, 5vw, 52px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px 34px 70px 34px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.question-card::before {
  position: absolute;
  right: -44px;
  top: -44px;
  width: 130px;
  height: 130px;
  border: 22px solid color-mix(in srgb, var(--skill-color), transparent 75%);
  border-radius: 50%;
  content: "";
}

.question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--skill-color), transparent 84%);
  color: var(--skill-color);
  font-size: 11px;
  font-weight: 900;
}

.question-prompt {
  max-width: 760px;
  margin-bottom: 30px;
  font-family: var(--display);
  font-size: clamp(26px, 4.3vw, 40px);
  font-weight: 800;
  line-height: 1.5;
}

.answer-zone {
  max-width: 680px;
}

.answer-input {
  min-height: 68px;
  border-width: 2px;
  font-size: 28px;
  font-weight: 800;
  text-align: center;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.choice-option {
  display: flex;
  min-height: 62px;
  padding: 13px 16px;
  gap: 11px;
  align-items: center;
  border: 2px solid rgba(23, 52, 51, 0.13);
  border-radius: 16px;
  background: #fffef9;
  cursor: pointer;
  line-height: 1.5;
  text-align: left;
}

.choice-option::before {
  display: grid;
  width: 26px;
  min-width: 26px;
  height: 26px;
  place-items: center;
  border: 2px solid var(--paper-deep);
  border-radius: 50%;
  content: "";
}

.choice-option.is-selected {
  border-color: var(--skill-color);
  background: color-mix(in srgb, var(--skill-color), white 92%);
}

.choice-option.is-selected::before {
  border: 7px solid var(--skill-color);
}

.question-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
}

.hint-panel,
.feedback-panel {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 18px;
  line-height: 1.75;
}

.hint-panel {
  border-left: 5px solid var(--saffron);
  background: rgba(242, 184, 75, 0.14);
}

.hint-panel strong,
.feedback-panel strong {
  display: block;
  margin-bottom: 5px;
}

.feedback-panel.correct {
  border-left: 5px solid var(--leaf);
  background: rgba(75, 143, 124, 0.12);
}

.feedback-panel.try-again {
  border-left: 5px solid var(--tomato);
  background: rgba(232, 94, 79, 0.1);
}

.feedback-panel .solution {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(23, 52, 51, 0.2);
  color: var(--ink-soft);
}

.question-card.path-practice {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--skill-color) 5%, transparent) 1px, transparent 1px),
    linear-gradient(color-mix(in srgb, var(--skill-color) 5%, transparent) 1px, transparent 1px),
    var(--cream);
  background-size: 22px 22px;
}

.question-card.path-practice::before {
  background: linear-gradient(90deg, var(--skill-color), var(--saffron), var(--tomato));
}

.practice-reflection {
  margin-top: 16px;
  padding: 19px;
  border: 1px dashed rgba(232, 94, 79, 0.34);
  border-radius: 17px 17px 32px 17px;
  background: rgba(242, 184, 75, 0.1);
}

.practice-reflection > span,
.practice-reflection > small {
  display: block;
}

.practice-reflection > span {
  margin-bottom: 12px;
  color: var(--ink);
  font-weight: 900;
}

.practice-reflection > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.practice-reflection button {
  padding: 9px 12px;
  border: 1px solid rgba(23, 52, 51, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.practice-reflection button:hover,
.practice-reflection button.is-selected {
  border-color: var(--tomato);
  background: var(--tomato);
  color: #fff;
}

.practice-reflection > small {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 10px;
}

.completion-card {
  padding: clamp(30px, 6vw, 64px);
  border-radius: 40px;
  background: var(--forest);
  box-shadow: var(--shadow);
  color: #fff;
  text-align: center;
}

.completion-mark {
  display: grid;
  width: 104px;
  height: 104px;
  margin: 0 auto 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 0 14px rgba(242, 184, 75, 0.1);
  color: var(--forest);
  font-family: var(--display);
  font-size: 45px;
  font-weight: 900;
}

.completion-card h2 {
  margin-bottom: 10px;
  font-size: 44px;
}

.completion-card p {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.8;
}

.completion-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 620px;
  margin: 28px auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.completion-paths {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.completion-paths span {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 900;
}

.completion-promotion {
  max-width: 620px;
  margin: -5px auto 28px;
  padding: 18px 22px;
  border: 1px solid rgba(242, 184, 75, 0.42);
  border-radius: 18px 18px 36px 18px;
  background: rgba(242, 184, 75, 0.1);
}

.completion-promotion span,
.completion-promotion strong {
  display: block;
}

.completion-promotion span {
  margin-bottom: 6px;
  color: var(--saffron);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.completion-promotion strong {
  color: #fff;
  font-family: var(--display);
  font-size: 20px;
}

.completion-stats div {
  padding: 20px 10px;
}

.completion-stats strong,
.completion-stats small {
  display: block;
}

.completion-stats strong {
  color: var(--saffron);
  font-family: var(--display);
  font-size: 30px;
}

.completion-card .button-row {
  justify-content: center;
}

.toast {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: 106px;
  max-width: min(90vw, 520px);
  padding: 12px 18px;
  border-radius: 14px;
  background: #112b2b;
  box-shadow: var(--shadow);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.empty-state {
  padding: 34px;
  border: 1px dashed rgba(23, 52, 51, 0.22);
  border-radius: var(--radius-md);
  color: var(--ink-soft);
  text-align: center;
}

/* V0.2 visual lesson system */
.microcourse-banner {
  display: grid;
  position: relative;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 330px;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid rgba(23, 52, 51, 0.13);
  border-radius: 34px 34px 78px 34px;
  background: #fff9eb;
  box-shadow: var(--shadow-small);
}

.microcourse-banner::before {
  position: absolute;
  right: -70px;
  top: -100px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(75, 143, 124, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(75, 143, 124, 0.05), 0 0 0 84px rgba(75, 143, 124, 0.025);
  content: "";
}

.microcourse-copy {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 5vw, 54px);
}

.microcourse-copy h2 {
  max-width: 650px;
  margin-bottom: 13px;
  font-size: clamp(29px, 4vw, 45px);
  line-height: 1.18;
}

.microcourse-copy > p:not(.eyebrow) {
  max-width: 580px;
  margin-bottom: 24px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.banner-number-stage {
  display: grid;
  position: relative;
  z-index: 2;
  min-height: 290px;
  place-items: center;
}

.banner-tile {
  display: grid;
  position: absolute;
  top: 103px;
  width: 75px;
  height: 88px;
  place-items: center;
  border-radius: 18px 18px 26px 18px;
  box-shadow: 0 12px 0 rgba(22, 58, 58, 0.12), 0 20px 35px rgba(22, 58, 58, 0.12);
  color: #fff;
  font-family: var(--display);
  font-size: 35px;
  font-weight: 900;
}

.tile-48 {
  left: calc(50% - 133px);
  background: var(--leaf);
  animation: banner-left 0.85s cubic-bezier(0.22, 0.8, 0.3, 1) 0.35s both;
}

.tile-52 {
  right: calc(50% - 133px);
  background: var(--tomato);
  animation: banner-right 0.85s cubic-bezier(0.22, 0.8, 0.3, 1) 0.35s both;
}

.banner-plus,
.banner-equals {
  position: absolute;
  top: 126px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 900;
}

.banner-plus {
  left: 50%;
  transform: translateX(-50%);
  animation: fade-away 0.4s ease 1.05s both;
}

.banner-equals {
  right: 23%;
  opacity: 0;
  animation: fade-in 0.4s ease 1.3s both;
}

.banner-number-stage > strong {
  position: absolute;
  right: 7%;
  top: 105px;
  color: var(--tomato);
  font-family: var(--display);
  font-size: 56px;
  opacity: 0;
  animation: pop-in 0.6s cubic-bezier(0.2, 1.4, 0.4, 1) 1.4s both;
}

.banner-number-stage svg {
  position: absolute;
  inset: 56px 4% auto;
  width: 92%;
  fill: none;
  stroke: rgba(22, 58, 58, 0.18);
  stroke-dasharray: 5 8;
  stroke-width: 2;
}

@keyframes banner-left {
  from { transform: translateX(-32px) rotate(-8deg); opacity: 0; }
  to { transform: translateX(34px) rotate(-2deg); opacity: 1; }
}

@keyframes banner-right {
  from { transform: translateX(32px) rotate(8deg); opacity: 0; }
  to { transform: translateX(-34px) rotate(2deg); opacity: 1; }
}

@keyframes banner-tile-hide { to { opacity: 0; } }
@keyframes fade-away { to { opacity: 0; transform: translateX(-50%) scale(0.7); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.6) rotate(-8deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes pop-in-center { from { opacity: 0; transform: translateX(-50%) scale(0.6) rotate(-8deg); } to { opacity: 1; transform: translateX(-50%) scale(1) rotate(0); } }

.visual-lab-intro h1 {
  max-width: 1000px;
  font-size: clamp(36px, 4.6vw, 58px);
}

.golden-lesson-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  min-height: 520px;
  overflow: hidden;
  border-radius: 38px 38px 88px 38px;
  background: var(--forest);
  box-shadow: var(--shadow);
  color: #fff9e9;
}

.golden-copy {
  position: relative;
  z-index: 2;
  padding: clamp(34px, 6vw, 68px);
}

.lesson-status {
  display: inline-block;
  margin-bottom: 32px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 800;
}

.golden-copy h2 {
  margin-bottom: 13px;
  color: var(--saffron);
  font-size: clamp(44px, 6vw, 74px);
}

.golden-copy > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.visual-feature-list {
  display: grid;
  gap: 9px;
  margin: 25px 0 32px;
  padding: 0;
  color: rgba(255, 255, 255, 0.78);
  list-style: none;
}

.visual-feature-list li::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--saffron);
  content: "";
}

.golden-stage {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

.lesson-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.lesson-catalog-card {
  display: flex;
  min-height: 270px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 46px rgba(23, 52, 51, 0.08);
  flex-direction: column;
}

.lesson-catalog-card > span,
.lesson-catalog-card > small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.lesson-catalog-card h3 {
  margin: 16px 0 10px;
  font-size: 28px;
}

.lesson-catalog-card p {
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.lesson-catalog-card .secondary-button {
  align-self: flex-start;
  margin-top: auto;
}

.paper-sun {
  position: absolute;
  right: -90px;
  top: -90px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 0 50px rgba(242, 184, 75, 0.07);
}

.sample-number,
.sample-hundred {
  display: grid;
  position: absolute;
  z-index: 3;
  place-items: center;
  font-family: var(--display);
  font-weight: 900;
}

.sample-number {
  top: 86px;
  width: 92px;
  height: 108px;
  border-radius: 22px 22px 34px 22px;
  box-shadow: 0 13px 0 rgba(0, 0, 0, 0.12), 0 25px 40px rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 42px;
}

.sample-48 {
  left: 12%;
  background: var(--leaf);
  animation: golden-left 0.85s cubic-bezier(0.2, 0.85, 0.25, 1) 0.4s both, golden-number-hide 0.28s ease 1.18s forwards;
}

.sample-52 {
  right: 12%;
  background: var(--tomato);
  animation: golden-right 0.85s cubic-bezier(0.2, 0.85, 0.25, 1) 0.4s both, golden-number-hide 0.28s ease 1.18s forwards;
}

.sample-hundred {
  left: 50%;
  top: 224px;
  width: 156px;
  height: 126px;
  border: 2px dashed rgba(255, 255, 255, 0.38);
  border-radius: 50% 45% 52% 46%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--saffron);
  font-size: 52px;
  opacity: 0;
  transform: translateX(-50%);
  animation: hundred-reveal 0.7s ease 1.2s both;
}

.sample-hundred small {
  margin-top: -15px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--body);
  font-size: 11px;
}

.golden-stage > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(255, 255, 255, 0.34);
  stroke-dasharray: 7 10;
  stroke-width: 2;
}

@keyframes golden-left { to { transform: translate(118px, 138px) rotate(-4deg); } }
@keyframes golden-right { to { transform: translate(-118px, 138px) rotate(4deg); } }
@keyframes golden-number-hide { to { opacity: 0; } }
@keyframes hundred-reveal { from { opacity: 0; transform: translate(-50%, 20px) scale(0.8); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }

.motion-study-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.motion-study {
  min-height: 530px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px 28px 62px 28px;
  background: var(--cream);
  box-shadow: var(--shadow-small);
}

.study-heading > span {
  color: var(--tomato);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.study-heading {
  position: relative;
}

.study-replay {
  position: absolute;
  right: 0;
  top: -5px;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--forest);
  font-size: 11px;
  font-weight: 900;
}

.study-replay:hover {
  background: var(--paper);
}

.study-heading h3 {
  margin: 8px 0 5px;
  font-size: 31px;
}

.study-heading p {
  color: var(--ink-soft);
  line-height: 1.65;
}

.bar-model {
  position: relative;
  margin: 66px 5% 42px;
  padding-bottom: 55px;
}

.bar-row {
  display: grid;
  grid-template-columns: 42px 1fr 34px;
  gap: 12px;
  align-items: center;
  margin-bottom: 26px;
}

.bar-row label,
.bar-row strong {
  font-size: 12px;
  font-weight: 900;
}

.bar {
  display: flex;
  height: 48px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 7px 0 rgba(22, 58, 58, 0.1);
  transform-origin: left center;
}

.bar-model.is-playing .bar-long {
  animation: bar-grow 0.9s cubic-bezier(0.2, 0.8, 0.3, 1) 0.3s both;
}

.bar-model.is-playing .bar-short {
  width: 74%;
  animation: bar-grow 0.9s cubic-bezier(0.2, 0.8, 0.3, 1) 0.55s both;
}

.bar-short {
  width: 74%;
}

.bar-known {
  flex: 1;
  background: var(--leaf);
}

.bar-difference {
  display: grid;
  width: 26%;
  place-items: center;
  background: var(--tomato);
  color: #fff;
  font-weight: 900;
}

.sum-brace {
  position: absolute;
  right: 10%;
  bottom: 0;
  left: 54px;
  height: 30px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  border-left: 2px solid var(--blue);
  border-radius: 0 0 12px 12px;
}

.sum-brace span {
  position: absolute;
  left: 50%;
  bottom: -30px;
  padding: 4px 8px;
  background: var(--cream);
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  transform: translateX(-50%);
}

@keyframes bar-grow { from { transform: scaleX(0); opacity: 0.2; } to { transform: scaleX(1); opacity: 1; } }

.study-rule {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 58px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.study-rule i {
  width: 10px;
  min-width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tomato);
}

.square-counter {
  display: grid;
  grid-template-columns: minmax(210px, 330px) 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 25px;
}

.square-counter svg {
  width: 100%;
  overflow: visible;
}

.grid-lines {
  fill: none;
  stroke: var(--forest);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.count-square {
  fill: none;
  stroke: var(--leaf);
  stroke-width: 10;
  opacity: 0.18;
}

.square-counter.is-playing .count-square {
  animation: count-reveal 0.55s ease var(--count-delay) both;
}

@keyframes count-reveal {
  0% { opacity: 0; stroke: var(--tomato); stroke-dasharray: 0 1200; }
  48% { opacity: 1; stroke: var(--saffron); stroke-dasharray: 1200 0; }
  100% { opacity: 0.18; stroke: var(--leaf); stroke-dasharray: 1200 0; }
}

.count-legend {
  display: grid;
  gap: 12px;
}

.count-legend span {
  color: var(--ink-soft);
  font-size: 12px;
  opacity: 0.35;
}

.square-counter.is-playing .count-legend span:nth-child(1) { animation: count-label 0.55s ease 2.15s both; }
.square-counter.is-playing .count-legend span:nth-child(2) { animation: count-label 0.55s ease 3.65s both; }
.square-counter.is-playing .count-legend span:nth-child(3) { animation: count-label 0.55s ease 4.4s both; }
.square-counter.is-playing .count-legend > strong { animation: count-label 0.55s ease 4.8s both; }

@keyframes count-label {
  from { opacity: 0.35; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.count-legend b,
.count-legend strong {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-size: 27px;
}

.count-legend strong {
  color: var(--tomato);
  font-size: 35px;
  opacity: 0.35;
}

.visual-rules-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--forest);
  color: #fff;
}

.visual-rules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.visual-rules-grid div {
  min-height: 125px;
  padding: 22px;
  background: var(--forest);
}

.visual-rules-grid strong,
.visual-rules-grid span {
  display: block;
}

.visual-rules-grid strong {
  margin-bottom: 17px;
  color: var(--saffron);
  font-family: var(--display);
  font-size: 26px;
}

.visual-rules-grid span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.6;
}

.lesson-view {
  width: min(1080px, 100%);
  margin: 8px auto 0;
}

.lesson-player-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 15px;
  align-items: center;
  margin-bottom: 12px;
}

.lesson-player-title strong,
.lesson-player-title small {
  display: block;
}

.lesson-player-title strong {
  font-family: var(--display);
  font-size: 20px;
}

.lesson-player-title small,
.lesson-time {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 11px;
}

.lesson-time {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lesson-step-track {
  height: 7px;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(22, 58, 58, 0.09);
}

.lesson-step-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--leaf), var(--saffron));
  transition: width 0.6s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.lesson-scene {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 600px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 36px 36px 78px 36px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.lesson-copy {
  position: relative;
  z-index: 4;
  padding: clamp(30px, 5vw, 58px);
}

.scene-kicker {
  margin-bottom: 14px;
  color: var(--tomato);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.lesson-copy h2 {
  margin-bottom: 17px;
  font-size: clamp(33px, 4.4vw, 52px);
  line-height: 1.18;
}

.lesson-copy > p:not(.scene-kicker) {
  color: var(--ink-soft);
  line-height: 1.85;
}

.scene-note {
  margin-top: 28px;
  padding: 17px 18px;
  border-left: 5px solid var(--saffron);
  border-radius: 0 14px 14px 0;
  background: rgba(242, 184, 75, 0.12);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.scene-note span {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-weight: 900;
}

.math-theatre {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    var(--forest);
  background-size: 26px 26px;
}

.math-theatre::after {
  position: absolute;
  right: -95px;
  bottom: -145px;
  width: 330px;
  height: 330px;
  border-radius: 50% 45% 50% 43%;
  background: var(--saffron);
  content: "";
}

.number-tile {
  display: grid;
  width: 96px;
  height: 112px;
  place-items: center;
  border-radius: 22px 22px 34px 22px;
  box-shadow: 0 13px 0 rgba(0, 0, 0, 0.13), 0 26px 40px rgba(0, 0, 0, 0.2);
  color: #fff;
  font-family: var(--display);
  font-size: 43px;
  font-weight: 900;
}

.tone-green { background: var(--leaf); }
.tone-blue { background: var(--blue); }
.tone-tomato { background: var(--tomato); }

.orbit {
  position: absolute;
  border: 1px dashed rgba(255, 255, 255, 0.23);
  border-radius: 50%;
}

.orbit-one { width: 430px; height: 430px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.orbit-two { width: 280px; height: 280px; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(22deg); }

.floating-equation {
  display: flex;
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 45%;
  gap: 17px;
  align-items: center;
  transform: translate(-50%, -50%);
}

.math-sign {
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--display);
  font-size: 31px;
  font-weight: 900;
}

.float-a { animation: tile-arrive-left 0.7s cubic-bezier(0.2, 0.9, 0.3, 1) 0.15s both; }
.float-b { animation: tile-arrive-up 0.7s cubic-bezier(0.2, 0.9, 0.3, 1) 0.35s both; }
.float-c { animation: tile-arrive-right 0.7s cubic-bezier(0.2, 0.9, 0.3, 1) 0.55s both; }

@keyframes tile-arrive-left { from { opacity: 0; transform: translate(-80px, 20px) rotate(-16deg); } to { opacity: 1; transform: none; } }
@keyframes tile-arrive-up { from { opacity: 0; transform: translateY(-70px) rotate(8deg); } to { opacity: 1; transform: none; } }
@keyframes tile-arrive-right { from { opacity: 0; transform: translate(80px, 25px) rotate(16deg); } to { opacity: 1; transform: none; } }

.visual-caption {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 70px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  white-space: nowrap;
  transform: translateX(-50%);
}

.caption-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--saffron);
}

.lesson-choice-stack,
.principle-choices {
  display: grid;
  gap: 10px;
  margin-top: 25px;
}

.lesson-choice,
.principle-choice {
  display: flex;
  min-height: 62px;
  padding: 12px 15px;
  align-items: center;
  justify-content: space-between;
  border: 2px solid rgba(23, 52, 51, 0.1);
  border-radius: 15px;
  background: #fffef9;
  cursor: pointer;
  text-align: left;
  transition: 0.2s ease;
}

.lesson-choice:hover,
.principle-choice:hover {
  border-color: rgba(75, 143, 124, 0.5);
  transform: translateX(4px);
}

.lesson-choice span,
.principle-choice span {
  font-weight: 900;
}

.lesson-choice small,
.principle-choice small {
  color: var(--ink-soft);
}

.lesson-choice.is-selected,
.principle-choice.is-selected {
  border-color: var(--saffron);
  background: rgba(242, 184, 75, 0.08);
}

.lesson-choice.is-correct,
.principle-choice.is-correct {
  border-color: var(--leaf);
  background: rgba(75, 143, 124, 0.1);
}

.lesson-feedback {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: 17px;
  padding: 14px;
  border-radius: 14px;
}

.lesson-feedback span {
  font-size: 21px;
}

.lesson-feedback p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.lesson-feedback.is-good { background: rgba(75, 143, 124, 0.12); }
.lesson-feedback.is-thinking { background: rgba(242, 184, 75, 0.14); }

.concept-theatre {
  position: relative;
  display: grid;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(22, 58, 58, 0.1);
  border-radius: 34px 34px 70px 34px;
  background:
    radial-gradient(circle at 82% 14%, rgba(242, 184, 75, 0.2), transparent 26%),
    linear-gradient(145deg, rgba(255, 253, 244, 0.96), rgba(225, 239, 229, 0.86));
  place-items: center;
}

.concept-theatre::before,
.concept-theatre::after {
  position: absolute;
  border: 1px solid rgba(22, 58, 58, 0.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.concept-theatre::before { width: 330px; height: 330px; }
.concept-theatre::after { width: 460px; height: 460px; }

.concept-sequence-stage,
.concept-process-stage,
.concept-badge-stage {
  position: relative;
  z-index: 1;
  width: min(90%, 620px);
}

.concept-sequence-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
}

.concept-sequence-item {
  position: relative;
  display: grid;
  min-width: 62px;
  height: 72px;
  padding: 0 12px;
  border: 1px solid rgba(22, 58, 58, 0.13);
  border-radius: 18px 18px 28px 18px;
  background: #fffaf0;
  box-shadow: 0 14px 26px rgba(22, 58, 58, 0.1);
  place-items: center;
}

.concept-sequence-item strong {
  color: var(--ink);
  font-family: var(--display-font);
  font-size: clamp(22px, 3vw, 36px);
  white-space: nowrap;
}

.concept-sequence-item i {
  position: absolute;
  top: 50%;
  left: calc(100% + 5px);
  min-width: 34px;
  color: var(--tomato);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
  transform: translateY(-50%);
}

.concept-sequence-stage.is-revealed .concept-sequence-item {
  animation: concept-rise 560ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.concept-sequence-stage.is-revealed .concept-sequence-item:nth-child(2) { animation-delay: 80ms; }
.concept-sequence-stage.is-revealed .concept-sequence-item:nth-child(3) { animation-delay: 160ms; }
.concept-sequence-stage.is-revealed .concept-sequence-item:nth-child(4) { animation-delay: 240ms; }
.concept-sequence-stage.is-revealed .concept-sequence-item:nth-child(5) { animation-delay: 320ms; }

.concept-reveal {
  width: fit-content;
  margin: 34px auto 0;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.concept-process-stage {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.concept-process-stage > span {
  display: flex;
  min-height: 128px;
  padding: 18px;
  border-radius: 20px 20px 34px 20px;
  background: var(--ink);
  box-shadow: 0 16px 30px rgba(22, 58, 58, 0.14);
  color: #fff;
  flex-direction: column;
  justify-content: space-between;
  animation: concept-rise 620ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--step, 0) * 110ms);
}

.concept-process-stage > span:nth-child(2) { background: var(--ocean); }
.concept-process-stage > span:nth-child(3) { background: var(--tomato); }
.concept-process-stage > span:nth-child(4) { background: var(--saffron); color: var(--ink); }
.concept-process-stage small { opacity: 0.58; font-weight: 900; }
.concept-process-stage strong { line-height: 1.45; }

.concept-bar-stage {
  display: grid;
  width: min(86%, 560px);
  gap: 22px;
}

.concept-bar-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
}

.concept-bar-row > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.concept-bar {
  position: relative;
  display: flex;
  height: 58px;
  overflow: visible;
  border-radius: 15px;
  background: var(--ink);
  box-shadow: 0 14px 26px rgba(22, 58, 58, 0.14);
}

.concept-bar.short { width: 74%; }
.concept-bar b { flex: 1; border-radius: inherit; background: var(--ink); }
.concept-bar em {
  display: grid;
  width: 26%;
  border-radius: 0 15px 15px 0;
  background: var(--tomato);
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  place-items: center;
}

.concept-bar-stage.emphasize-difference .concept-bar em {
  animation: bar-pulse 900ms ease-in-out 2;
}

.concept-bar-sum {
  width: fit-content;
  margin: 4px auto 0;
  padding: 9px 18px;
  border: 1px dashed rgba(22, 58, 58, 0.28);
  border-radius: 999px;
  color: var(--ink);
}

@keyframes bar-pulse {
  50% { box-shadow: 0 0 0 10px rgba(232, 94, 79, 0.18); transform: scale(1.04); }
}

.concept-logic-grid {
  display: grid;
  width: min(86%, 500px);
  grid-template-columns: 94px repeat(var(--logic-columns), minmax(58px, 1fr));
  overflow: hidden;
  border: 1px solid rgba(22, 58, 58, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 46px rgba(22, 58, 58, 0.12);
}

.concept-logic-grid > * {
  display: grid;
  min-height: 58px;
  border-right: 1px solid rgba(22, 58, 58, 0.1);
  border-bottom: 1px solid rgba(22, 58, 58, 0.1);
  place-items: center;
}

.concept-logic-grid > strong,
.logic-grid-corner {
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.concept-logic-grid > b {
  padding: 0 8px;
  background: rgba(242, 184, 75, 0.14);
  color: var(--ink);
  font-size: 12px;
}

.concept-logic-grid > i {
  color: rgba(22, 58, 58, 0.18);
  font-size: 20px;
  font-style: normal;
  font-weight: 950;
}

.concept-logic-grid > i.is-no { color: var(--tomato); }
.concept-logic-grid > i.is-yes,
.concept-logic-grid > i.is-solution-cell {
  background: rgba(75, 143, 124, 0.14);
  color: var(--leaf);
}

.concept-logic-grid.is-solution > i.is-solution-cell {
  animation: logic-confirm 560ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes logic-confirm {
  from { opacity: 0; transform: scale(0.65); }
  to { opacity: 1; transform: scale(1); }
}

.concept-badge-stage {
  display: grid;
  place-items: center;
}

.concept-distributive-stage {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(90%, 620px);
  gap: 18px;
  place-items: center;
}

.distributive-expression {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.distributive-expression span {
  padding: 18px 22px;
  border: 1px solid rgba(22, 58, 58, 0.13);
  border-radius: 20px 20px 30px 20px;
  background: #fffaf0;
  box-shadow: 0 14px 30px rgba(22, 58, 58, 0.11);
  color: var(--ink);
  font-family: var(--display-font);
  font-size: clamp(22px, 3vw, 34px);
  white-space: nowrap;
}

.distributive-expression b { color: var(--tomato); font-size: 26px; }

.distributive-factor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 58%;
  color: var(--tomato);
  text-align: center;
}

.distributive-factor small {
  grid-column: 1 / -1;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(232, 94, 79, 0.12);
  font-weight: 950;
}

.distributive-factor i { font-size: 24px; font-style: normal; }

.distributive-merge {
  min-width: 240px;
  padding: 16px 24px;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 950;
  text-align: center;
}

.concept-distributive-stage.is-revealed .distributive-merge {
  animation: concept-rise 560ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.concept-cycle-stage {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(90%, 620px);
  gap: 26px;
  place-items: center;
}

.cycle-loop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 34px 20px;
  border: 2px dashed rgba(22, 58, 58, 0.18);
  border-radius: 999px;
}

.cycle-loop span {
  display: grid;
  width: clamp(60px, 10vw, 92px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--tomato);
  box-shadow: 0 12px 26px rgba(22, 58, 58, 0.14);
  color: #fff;
  place-content: center;
  text-align: center;
}

.cycle-loop span:nth-child(2) { background: var(--saffron); color: var(--ink); }
.cycle-loop span:nth-child(3) { background: var(--leaf); }
.cycle-loop span:nth-child(4) { background: var(--ocean); }
.cycle-loop small { opacity: 0.7; font-weight: 900; }
.cycle-loop strong { font-size: clamp(18px, 2.4vw, 28px); }
.cycle-loop > i { color: var(--tomato); font-size: 30px; font-style: normal; }

.cycle-target {
  display: grid;
  min-width: 210px;
  padding: 14px 22px;
  border-radius: 20px;
  background: var(--ink);
  color: #fff;
  text-align: center;
}

.cycle-target small { color: var(--saffron); font-weight: 900; }
.cycle-target strong { margin-top: 5px; font-size: 20px; }

.concept-cycle-stage.is-revealed .cycle-loop span {
  animation: concept-rise 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--cycle-index) * 90ms);
}

.concept-unit-rate-stage {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(92%, 680px);
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.concept-unit-rate-stage > i {
  color: var(--tomato);
  font-size: 25px;
  font-style: normal;
  font-weight: 950;
}

.unit-rate-card {
  display: grid;
  min-height: 154px;
  padding: 20px 14px;
  border-radius: 22px 22px 34px 22px;
  background: var(--ink);
  box-shadow: 0 16px 32px rgba(22, 58, 58, 0.14);
  color: #fff;
  place-content: center;
  text-align: center;
}

.unit-rate-one { background: var(--tomato); }
.unit-rate-target { background: var(--ocean); }
.unit-rate-card small { opacity: 0.72; font-weight: 900; }
.unit-rate-card strong { margin: 10px 0; font-family: var(--display-font); font-size: clamp(23px, 3vw, 34px); }
.unit-rate-card em { min-height: 34px; font-size: 11px; font-style: normal; font-weight: 900; line-height: 1.45; }

.concept-unit-rate-stage.is-revealed .unit-rate-one,
.concept-unit-rate-stage.is-revealed .unit-rate-target {
  animation: concept-rise 560ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.concept-unit-rate-stage.is-revealed .unit-rate-target { animation-delay: 120ms; }

.concept-assumption-stage {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(90%, 640px);
  grid-template-columns: 0.72fr 1.6fr;
  gap: 14px;
}

.assumption-heads,
.assumption-comparison,
.assumption-difference {
  border-radius: 22px 22px 34px 22px;
  box-shadow: 0 16px 34px rgba(22, 58, 58, 0.13);
}

.assumption-heads {
  display: grid;
  padding: 22px;
  background: var(--ink);
  color: #fff;
  place-content: center;
  text-align: center;
}

.assumption-heads small,
.assumption-comparison small,
.assumption-difference small { opacity: 0.72; font-weight: 900; }
.assumption-heads strong { margin: 10px 0; font-family: var(--display-font); font-size: 32px; }
.assumption-heads em { font-size: 11px; font-style: normal; line-height: 1.5; }

.assumption-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  padding: 18px;
  background: rgba(255, 255, 255, 0.76);
  align-items: center;
}

.assumption-comparison span { display: grid; gap: 9px; text-align: center; }
.assumption-comparison span:first-child { color: var(--ocean); }
.assumption-comparison span:last-child { color: var(--tomato); }
.assumption-comparison strong { font-size: clamp(16px, 2vw, 23px); }
.assumption-comparison b { color: var(--saffron); font-size: 26px; }

.assumption-difference {
  grid-column: 1 / -1;
  display: grid;
  padding: 15px 22px;
  background: var(--tomato);
  color: #fff;
  text-align: center;
}

.assumption-difference strong { margin-top: 6px; font-size: 18px; }

.concept-assumption-stage.is-revealed .assumption-difference {
  animation: concept-rise 560ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.concept-equivalence-stage {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(90%, 650px);
  grid-template-columns: minmax(0, 1.25fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.equivalence-source,
.equivalence-target {
  display: grid;
  min-height: 190px;
  padding: 24px;
  border-radius: 24px 24px 38px 24px;
  box-shadow: 0 18px 38px rgba(22, 58, 58, 0.14);
  place-content: center;
  text-align: center;
}

.equivalence-source {
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

.equivalence-target {
  background: var(--ink);
  color: #fff;
}

.equivalence-source small,
.equivalence-target small {
  color: var(--tomato);
  font-weight: 950;
}

.equivalence-source strong,
.equivalence-target strong {
  margin: 10px 0;
  font-family: var(--display-font);
  font-size: clamp(26px, 4vw, 42px);
}

.equivalence-source em {
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.equivalence-strip {
  position: relative;
  display: block;
  width: min(220px, 100%);
  height: 28px;
  margin: 0 auto;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.66);
  background-image: linear-gradient(90deg, transparent calc(100% - 1px), rgba(22, 58, 58, 0.22) calc(100% - 1px));
  background-size: calc(100% / var(--equivalence-parts)) 100%;
}

.equivalence-strip i {
  display: block;
  width: var(--equivalence-fill);
  height: 100%;
  background: linear-gradient(90deg, var(--saffron), var(--tomato));
}

.concept-equivalence-stage > b {
  align-self: center;
  color: var(--tomato);
  font-size: 30px;
}

.concept-equivalence-stage.is-revealed .equivalence-target {
  animation: concept-rise 560ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.concept-recurrence-stage {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(94%, 720px);
  gap: 24px;
  place-items: center;
}

.recurrence-chain {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.recurrence-chain span {
  position: relative;
  display: grid;
  width: clamp(56px, 9vw, 82px);
  aspect-ratio: 1;
  border: 1px solid rgba(22, 58, 58, 0.12);
  border-radius: 20px 20px 31px 20px;
  background: #fffaf0;
  box-shadow: 0 13px 26px rgba(22, 58, 58, 0.12);
  color: var(--ink);
  place-content: center;
  text-align: center;
}

.recurrence-chain span:nth-child(3n + 2) { background: var(--saffron); }
.recurrence-chain span:nth-child(3n) { background: var(--leaf); color: #fff; }
.recurrence-chain small { opacity: 0.55; font-size: 10px; font-weight: 950; }
.recurrence-chain strong { font-family: var(--display-font); font-size: clamp(23px, 3vw, 34px); }

.recurrence-chain i {
  position: absolute;
  top: 50%;
  right: calc(100% + 1px);
  color: var(--tomato);
  font-size: 15px;
  font-style: normal;
  transform: translateY(-50%);
}

.recurrence-rule {
  display: grid;
  min-width: 230px;
  padding: 14px 24px;
  border-radius: 20px;
  background: var(--ink);
  color: #fff;
  text-align: center;
}

.recurrence-rule small { color: var(--saffron); font-weight: 900; }
.recurrence-rule strong { margin-top: 4px; font-size: 19px; }

.concept-recurrence-stage.is-revealed .recurrence-chain span {
  animation: concept-rise 500ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--recurrence-index) * 70ms);
}

.concept-ratio-stage {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(90%, 650px);
  gap: 13px;
}

.ratio-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
}

.ratio-row > strong,
.ratio-row > em {
  font-style: normal;
  font-weight: 950;
}

.ratio-row > em { color: var(--ink-soft); font-size: 12px; }

.ratio-row > span {
  display: grid;
  grid-template-columns: repeat(var(--ratio-max-parts), minmax(0, 1fr));
  gap: 7px;
}

.ratio-row i {
  min-width: 0;
  height: 48px;
  border-radius: 13px 13px 20px 13px;
  background: var(--tomato);
  box-shadow: 0 10px 20px rgba(22, 58, 58, 0.12);
}

.ratio-right i { background: var(--ocean); }

.ratio-total {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
  padding: 15px 20px;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
}

.ratio-total small { color: var(--saffron); font-weight: 900; }
.ratio-total strong { font-size: 20px; }
.ratio-total span { font-size: 12px; font-weight: 850; }

.concept-ratio-stage.is-revealed .ratio-row i {
  animation: ratio-grow 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--ratio-index) * 65ms);
}

@keyframes ratio-grow {
  from { opacity: 0; transform: scaleX(0.2); transform-origin: left; }
  to { opacity: 1; transform: scaleX(1); transform-origin: left; }
}

.concept-truth-stage {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(90%, 650px);
  grid-template-columns: minmax(0, 1.45fr) minmax(150px, 0.8fr);
  gap: 14px;
}

.truth-statements {
  display: grid;
  grid-column: 1;
  grid-row: 1 / span 2;
  gap: 9px;
}

.truth-candidates {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 3;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.truth-candidates span {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 10px;
  align-items: center;
  padding: 10px 13px;
  border: 1px solid rgba(22, 58, 58, 0.12);
  border-radius: 15px 15px 22px 15px;
  background: rgba(255, 255, 255, 0.76);
}

.truth-candidates small { color: var(--tomato); font-size: 10px; font-weight: 950; }
.truth-candidates strong { font-size: 14px; }
.truth-candidates em { grid-column: 1 / -1; color: var(--ink-soft); font-size: 12px; font-style: normal; font-weight: 800; }

.truth-statements span {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
  border: 1px solid rgba(22, 58, 58, 0.11);
  border-radius: 18px 18px 28px 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 24px rgba(22, 58, 58, 0.1);
}

.truth-statements small {
  display: grid;
  width: 34px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--tomato);
  color: #fff;
  font-weight: 950;
  place-items: center;
}

.truth-statements span:nth-child(2) small { background: var(--ocean); }
.truth-statements span:nth-child(3) small { background: var(--leaf); }
.truth-statements strong { font-size: 15px; line-height: 1.45; }

.truth-condition,
.truth-target {
  display: grid;
  padding: 16px;
  border-radius: 20px 20px 32px 20px;
  text-align: center;
  place-content: center;
}

.truth-condition {
  grid-column: 2;
  grid-row: 1;
  background: var(--saffron);
  color: var(--ink);
}

.truth-target {
  grid-column: 2;
  grid-row: 2;
  background: var(--ink);
  color: #fff;
}

.truth-condition small,
.truth-target small { opacity: 0.7; font-weight: 900; }
.truth-condition strong,
.truth-target strong { margin-top: 7px; font-size: 17px; line-height: 1.45; }

.concept-truth-stage.is-revealed .truth-target {
  animation: concept-rise 560ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.concept-range-stage {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(88%, 620px);
  gap: 20px;
}

.range-benchmark,
.range-target {
  display: grid;
  padding: 14px 18px;
  border-radius: 18px 18px 28px 18px;
  text-align: center;
}

.range-benchmark { background: var(--ink); color: #fff; }
.range-benchmark small { color: var(--saffron); font-weight: 900; }
.range-benchmark strong { margin-top: 5px; font-family: var(--display-font); font-size: 24px; }

.range-scale {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) auto;
  gap: 12px;
  align-items: center;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 850;
}

.range-scale > i {
  position: relative;
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--leaf), var(--saffron) 50%, var(--tomato));
}

.range-scale > i::before {
  position: absolute;
  left: 50%;
  top: -8px;
  width: 2px;
  height: 28px;
  background: var(--ink);
  content: "";
}

.range-scale b {
  position: absolute;
  left: 45%;
  top: 50%;
  width: 22px;
  height: 22px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--tomato);
  box-shadow: 0 7px 16px rgba(22, 58, 58, 0.2);
  transform: translate(-50%, -50%);
}

.range-scale em {
  position: absolute;
  left: 45%;
  top: 25px;
  width: max-content;
  color: var(--ink);
  font-style: normal;
  transform: translateX(-50%);
}

.range-target { margin-top: 16px; background: rgba(255, 255, 255, 0.8); }
.range-target small { color: var(--tomato); font-weight: 900; }
.range-target strong { margin-top: 5px; font-size: 17px; }
.concept-range-stage.is-revealed .range-target { animation: concept-rise 560ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }

.concept-pairing-stage {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(90%, 660px);
  grid-template-columns: minmax(0, 1.4fr) minmax(130px, 0.6fr);
  gap: 12px;
}

.pairing-list {
  display: grid;
  grid-row: 1 / span 2;
  gap: 8px;
}

.pairing-list span {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 9px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid rgba(22, 58, 58, 0.11);
  border-radius: 16px 16px 24px 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 18px rgba(22, 58, 58, 0.09);
}

.pairing-list strong { font-family: var(--display-font); font-size: 19px; }
.pairing-list i { color: var(--tomato); font-style: normal; font-weight: 950; }
.pairing-list em { color: var(--ink-soft); font-style: normal; font-weight: 900; text-align: right; }

.pairing-count,
.pairing-target {
  display: grid;
  padding: 14px;
  border-radius: 18px 18px 28px 18px;
  text-align: center;
  place-content: center;
}

.pairing-count { background: var(--saffron); }
.pairing-target { background: var(--ink); color: #fff; }
.pairing-count small,
.pairing-target small { opacity: 0.72; font-weight: 900; }
.pairing-count strong,
.pairing-target strong { margin-top: 6px; font-size: 17px; line-height: 1.45; }
.concept-pairing-stage.is-revealed .pairing-list span { animation: concept-rise 480ms ease both; animation-delay: calc(var(--pair-index) * 55ms); }

.concept-rate-stage {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(90%, 660px);
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.rate-actors,
.rate-track { grid-column: 1 / -1; }

.rate-actors {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.rate-actors span {
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px 8px;
  align-items: center;
  padding: 10px 13px;
  border-radius: 16px 16px 24px 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 9px 20px rgba(22, 58, 58, 0.1);
}

.rate-actors span:last-child { text-align: right; }
.rate-actors small { color: var(--tomato); font-weight: 950; }
.rate-actors strong { grid-column: 1 / -1; font-size: 14px; }
.rate-actors i { grid-row: 1 / span 2; color: var(--tomato); font-size: 24px; font-style: normal; }
.rate-actors span:first-child i { grid-column: 3; }
.rate-actors span:last-child i { grid-column: 1; }

.rate-track {
  position: relative;
  height: 18px;
  border: 2px solid rgba(22, 58, 58, 0.16);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tomato), var(--saffron) 50%, var(--blue));
}

.rate-track i,
.rate-track b {
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 8px 16px rgba(22, 58, 58, 0.16);
  transform: translateY(-50%);
}

.rate-track i { left: 4%; background: var(--tomato); }
.rate-track b { right: 4%; background: var(--blue); }
.concept-rate-stage.is-revealed .rate-track i { animation: rate-left 650ms ease both; }
.concept-rate-stage.is-revealed .rate-track b { animation: rate-right 650ms ease both; }

@keyframes rate-left { to { left: calc(50% - 24px); } }
@keyframes rate-right { to { right: calc(50% - 24px); } }

.rate-total,
.rate-merged {
  display: grid;
  padding: 14px;
  border-radius: 18px 18px 28px 18px;
  text-align: center;
}

.rate-total { background: var(--saffron); }
.rate-merged { background: var(--ink); color: #fff; }
.rate-total small,
.rate-merged small { opacity: 0.72; font-weight: 900; }
.rate-total strong,
.rate-merged strong { margin-top: 5px; font-size: 17px; }
.rate-merged em { margin-top: 4px; font-size: 12px; font-style: normal; }
.concept-rate-stage .concept-reveal { grid-column: 1 / -1; }

.concept-game-stage {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(90%, 650px);
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.38fr);
  gap: 14px;
}

.game-rule,
.game-target {
  display: grid;
  padding: 15px 18px;
  border-radius: 19px 19px 30px 19px;
}

.game-rule {
  grid-column: 1 / -1;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  background: var(--ink);
  color: #fff;
}

.game-rule small { color: var(--saffron); font-weight: 950; }
.game-rule strong { text-align: right; }

.game-states {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.game-states span {
  display: grid;
  min-height: 76px;
  padding: 10px;
  border: 1px solid rgba(22, 58, 58, 0.12);
  border-radius: 17px 17px 26px 17px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 9px 20px rgba(22, 58, 58, 0.09);
  place-content: center;
  text-align: center;
}

.game-states small { color: var(--ink-soft); font-size: 9px; font-weight: 900; }
.game-states strong { margin-top: 2px; font-family: var(--display-font); font-size: 25px; }

.game-states span.is-safe {
  border-color: transparent;
  background: var(--leaf);
  color: #fff;
}

.game-states span.is-safe small { color: rgba(255, 255, 255, 0.72); }

.game-target {
  background: var(--saffron);
  color: var(--ink);
  place-content: center;
  text-align: center;
}

.game-target small { font-weight: 950; }
.game-target strong { margin-top: 8px; font-size: 17px; line-height: 1.45; }

.concept-game-stage.is-revealed .game-states span {
  animation: concept-rise 480ms ease both;
  animation-delay: calc(var(--game-index) * 55ms);
}

.concept-identity-stage {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(92%, 680px);
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.25fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.identity-card {
  display: grid;
  min-height: 148px;
  padding: 18px 14px;
  border: 1px solid rgba(22, 58, 58, 0.12);
  border-radius: 20px 20px 34px 20px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 30px rgba(22, 58, 58, 0.1);
  place-content: center;
  text-align: center;
}

.identity-card small { color: var(--tomato); font-weight: 950; }
.identity-card strong { margin-top: 10px; font-family: var(--display-font); font-size: clamp(18px, 2.2vw, 27px); line-height: 1.35; }
.identity-bridge { background: var(--saffron); }
.identity-target { background: var(--ink); color: #fff; }
.identity-target small { color: var(--saffron); }

.concept-identity-stage > i {
  align-self: center;
  color: var(--tomato);
  font-size: 25px;
  font-style: normal;
  font-weight: 950;
}

.concept-identity-stage.is-revealed .identity-card {
  animation: concept-rise 540ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.concept-identity-stage.is-revealed .identity-bridge { animation-delay: 90ms; }
.concept-identity-stage.is-revealed .identity-target { animation-delay: 180ms; }

.concept-square-growth {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(92%, 690px);
  gap: 13px;
}

.square-growth-main {
  display: grid;
  grid-template-columns: minmax(132px, 0.48fr) minmax(0, 1.52fr);
  gap: 14px;
  align-items: center;
}

.square-growth-diagram {
  display: grid;
  gap: 7px;
  justify-items: center;
}

.square-growth-diagram > span {
  display: grid;
  width: min(152px, 100%);
  aspect-ratio: 1;
  grid-template-columns: repeat(var(--square-size), minmax(0, 1fr));
  gap: 2px;
  padding: 8px;
  border-radius: 18px 18px 28px 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(22, 58, 58, 0.09);
}

.square-growth-cell {
  min-width: 0;
  border-radius: 3px;
  background: rgba(34, 135, 178, 0.6);
}

.square-growth-cell.tone-0 { background: rgba(22, 58, 58, 0.62); }
.square-growth-cell.tone-1 { background: rgba(34, 135, 178, 0.58); }
.square-growth-cell.tone-2 { background: rgba(242, 184, 75, 0.82); }
.square-growth-cell.is-new-layer { background: var(--tomato); }
.square-growth-diagram > small { color: var(--ink); font-size: 10px; font-weight: 950; }

.square-growth-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(62px, 1fr));
  gap: 8px;
}

.square-growth-values span {
  display: grid;
  min-height: 82px;
  padding: 10px 7px;
  border: 1px solid rgba(22, 58, 58, 0.12);
  border-radius: 17px 17px 27px 17px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 22px rgba(22, 58, 58, 0.09);
  place-content: center;
  text-align: center;
}

.square-growth-values span:nth-child(even) { background: rgba(242, 184, 75, 0.88); }
.square-growth-values small { color: var(--ink-soft); font-size: 9px; font-weight: 900; }
.square-growth-values strong { font-family: var(--display-font); font-size: 28px; }

.square-growth-increments {
  display: flex;
  gap: 7px;
  justify-content: center;
  flex-wrap: wrap;
}

.square-growth-increments span {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--tomato);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.square-growth-proof {
  display: grid;
  padding: 15px 18px;
  border-radius: 18px 18px 30px 18px;
  background: var(--ink);
  color: #fff;
  text-align: center;
}

.square-growth-proof small { color: var(--saffron); font-weight: 950; }
.square-growth-proof strong { margin-top: 5px; font-size: 17px; line-height: 1.45; }

.concept-square-growth.is-revealed .square-growth-values span {
  animation: concept-rise 480ms ease both;
  animation-delay: calc(var(--growth-index) * 55ms);
}

.concept-constraint-stage {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(91%, 670px);
  gap: 12px;
}

.constraint-network-map { position: relative; min-height: 246px; }

.constraint-network-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.constraint-network-lines path {
  fill: none;
  stroke: rgba(22, 58, 58, 0.42);
  stroke-dasharray: 5 6;
  stroke-linecap: round;
  stroke-width: 3;
}

.constraint-nodes { position: absolute; inset: 0; }

.constraint-nodes span {
  position: absolute;
  top: 5px;
  display: grid;
  width: 27%;
  min-height: 86px;
  padding: 12px;
  border-radius: 18px 18px 30px 18px;
  background: var(--ink);
  color: #fff;
  place-content: center;
  text-align: center;
}

.constraint-nodes span:nth-child(1) { left: 0; }
.constraint-nodes span:nth-child(2) { left: 36.5%; background: var(--tomato); }
.constraint-nodes span:nth-child(3) { right: 0; background: var(--ocean); }
.constraint-nodes small { opacity: 0.68; font-weight: 900; }
.constraint-nodes strong { font-family: var(--display-font); font-size: 27px; }

.constraint-edge-label {
  position: absolute;
  display: grid;
  width: 31%;
  min-height: 66px;
  padding: 10px;
  border: 1px dashed rgba(22, 58, 58, 0.3);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  place-content: center;
  text-align: center;
}

.constraint-edge-ab { top: 92px; left: 17%; }
.constraint-edge-bc { top: 92px; right: 17%; }
.constraint-edge-ac { bottom: 0; left: 34.5%; }
.constraint-edge-label small { color: var(--ink-soft); font-weight: 900; }
.constraint-edge-label strong { color: var(--tomato); font-size: 24px; }

.constraint-target {
  display: grid;
  padding: 15px 18px;
  border-radius: 18px 18px 30px 18px;
  background: var(--saffron);
  color: var(--ink);
  text-align: center;
}

.constraint-target small { font-weight: 950; }
.constraint-target strong { margin-top: 5px; font-size: 17px; }
.concept-constraint-stage.is-revealed .constraint-target { animation: concept-rise 520ms ease both; }

.concept-counterexample-stage {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(91%, 660px);
  gap: 13px;
}

.counterexample-claim,
.counterexample-target {
  display: grid;
  padding: 15px 18px;
  border-radius: 19px 19px 31px 19px;
  text-align: center;
}

.counterexample-claim { background: var(--ink); color: #fff; }
.counterexample-claim small { color: var(--saffron); font-weight: 950; }
.counterexample-claim strong { margin-top: 6px; font-size: 20px; }

.counterexample-candidates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 9px;
}

.counterexample-candidates span {
  display: grid;
  min-height: 92px;
  padding: 12px;
  border: 1px solid rgba(22, 58, 58, 0.12);
  border-radius: 18px 18px 29px 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 22px rgba(22, 58, 58, 0.09);
  place-content: center;
  text-align: center;
}

.counterexample-candidates small { color: var(--ink-soft); font-size: 10px; font-weight: 900; }
.counterexample-candidates strong { margin-top: 4px; font-family: var(--display-font); font-size: 23px; }
.counterexample-candidates span.is-counterexample { border-color: transparent; background: var(--tomato); color: #fff; }
.counterexample-candidates span.is-counterexample small { color: rgba(255, 255, 255, 0.75); }
.counterexample-candidates span.is-hidden-candidate {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: none;
}
.counterexample-candidates span.is-hidden-candidate strong { color: var(--ink-soft); }

.counterexample-target { background: var(--saffron); }
.counterexample-target small { font-weight: 950; }
.counterexample-target strong { margin-top: 5px; font-size: 17px; line-height: 1.45; }

.concept-counterexample-stage.is-revealed .counterexample-candidates span {
  animation: concept-rise 480ms ease both;
  animation-delay: calc(var(--counter-index) * 65ms);
}

.concept-badge-stage > div {
  display: grid;
  width: min(320px, 82%);
  aspect-ratio: 1;
  padding: 44px;
  border: 2px solid rgba(22, 58, 58, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  text-align: center;
  place-content: center;
}

.concept-badge-stage.is-earned > div {
  border-color: var(--saffron);
  background: var(--ink);
  box-shadow: 0 0 0 14px rgba(242, 184, 75, 0.17), 0 28px 60px rgba(22, 58, 58, 0.24);
  color: #fff;
  animation: badge-pop 680ms cubic-bezier(0.18, 0.89, 0.32, 1.28) both;
}

.concept-badge-stage small { color: var(--saffron); font-weight: 900; }
.concept-badge-stage strong { margin: 16px 0; font-family: var(--display-font); font-size: clamp(28px, 4vw, 44px); }
.concept-badge-stage em { font-size: 12px; font-style: normal; font-weight: 800; line-height: 1.55; }

@keyframes concept-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.pair-stage {
  position: absolute;
  z-index: 2;
  inset: 0;
}

.pair-stage .number-tile {
  position: absolute;
  top: 215px;
}

.pair-left { left: 10%; }
.pair-middle { left: 50%; transform: translateX(-50%); }
.pair-right { right: 10%; }

.pair-arc {
  position: absolute;
  left: 50%;
  top: 115px;
  width: 78%;
  overflow: visible;
  fill: none;
  stroke: var(--saffron);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  stroke-linecap: round;
  stroke-width: 4;
  transform: translateX(-50%);
}

.pair-arc circle {
  fill: var(--saffron);
  stroke: none;
  opacity: 0;
}

.pair-result {
  position: absolute;
  left: 50%;
  top: 104px;
  color: var(--saffron);
  font-family: var(--display);
  font-size: 55px;
  font-weight: 900;
  opacity: 0;
  text-align: center;
  transform: translateX(-50%) scale(0.7);
}

.pair-result small {
  display: block;
  margin-top: -8px;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--body);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.pair-theatre.has-match .pair-arc { animation: draw-arc 0.8s ease both; }
.pair-theatre.has-match .pair-arc circle { animation: fade-in 0.3s ease 0.6s both; }
.pair-theatre.has-match .pair-result { animation: match-pop 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) 0.6s both; }
.pair-theatre.has-match .pair-left { animation: pair-nudge-left 0.65s ease 0.3s both; }
.pair-theatre.has-match .pair-right { animation: pair-nudge-right 0.65s ease 0.3s both; }

@keyframes draw-arc { to { stroke-dashoffset: 0; } }
@keyframes match-pop { to { opacity: 1; transform: translateX(-50%) scale(1); } }
@keyframes pair-nudge-left { to { transform: translateX(36px) rotate(-4deg); } }
@keyframes pair-nudge-right { to { transform: translateX(-36px) rotate(4deg); } }

.replay-button {
  min-height: 45px;
  margin-top: 15px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font-weight: 900;
}

.composition-board {
  position: absolute;
  z-index: 2;
  inset: 0;
}

.composition-board .number-tile,
.round-box,
.final-equation {
  position: absolute;
}

.compose-a { left: 9%; top: 90px; }
.compose-b { left: 50%; top: 90px; transform: translateX(-50%); }
.compose-c { right: 9%; top: 90px; }

.round-box {
  display: grid;
  z-index: 3;
  left: 50%;
  top: 280px;
  width: 170px;
  height: 140px;
  place-items: center;
  border: 2px dashed rgba(255, 255, 255, 0.35);
  border-radius: 50% 44% 52% 45%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--saffron);
  font-family: var(--display);
  font-size: 56px;
  font-weight: 900;
  opacity: 0;
  transform: translateX(-50%);
}

.round-box small {
  margin-top: -22px;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--body);
  font-size: 11px;
}

.final-equation {
  display: flex;
  z-index: 4;
  right: 7%;
  bottom: 80px;
  left: 7%;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 15px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.16);
  color: #fff;
  font-family: var(--display);
  font-size: 24px;
  opacity: 0;
}

.final-equation strong {
  color: var(--saffron);
  font-size: 34px;
}

.motion-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(255, 255, 255, 0.3);
  stroke-dasharray: 7 10;
  stroke-width: 2;
}

.composition-theatre.is-playing .compose-a { animation: compose-left 0.9s cubic-bezier(0.2, 0.8, 0.3, 1) 0.35s both; }
.composition-theatre.is-playing .compose-c { animation: compose-right 0.9s cubic-bezier(0.2, 0.8, 0.3, 1) 0.35s both; }
.composition-theatre.is-playing .compose-b { animation: wait-number 0.7s ease 1.7s both; }
.composition-theatre.is-playing .round-box { animation: round-box-in 0.65s cubic-bezier(0.2, 1.3, 0.4, 1) 1.05s both; }
.composition-theatre.is-playing .final-equation { animation: final-rise 0.55s ease 2.05s both; }

@keyframes compose-left { to { transform: translate(145px, 205px) rotate(-6deg) scale(0.72); opacity: 0.2; } }
@keyframes compose-right { to { transform: translate(-145px, 205px) rotate(6deg) scale(0.72); opacity: 0.2; } }
@keyframes wait-number { 50% { transform: translateX(-50%) scale(1.08); } to { transform: translate(-50%, 168px) scale(0.75); } }
@keyframes round-box-in { from { opacity: 0; transform: translate(-50%, 20px) scale(0.7); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes final-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.lesson-answer-field {
  display: block;
  margin-top: 27px;
}

.lesson-answer-field span {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 900;
}

.lesson-answer-field input {
  width: 150px;
  height: 70px;
  border: 2px solid rgba(23, 52, 51, 0.18);
  border-radius: 17px;
  background: #fffef9;
  color: var(--ink);
  font-family: var(--display);
  font-size: 33px;
  font-weight: 900;
  text-align: center;
}

.lesson-submit {
  min-height: 48px;
  margin-left: 8px;
  padding: 11px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.solve-equation {
  display: flex;
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 110px;
  gap: 14px;
  align-items: center;
  transform: translateX(-50%);
}

.solve-hint-line,
.solve-result {
  position: absolute;
  z-index: 3;
  left: 50%;
  opacity: 0;
  transform: translateX(-50%);
}

.solve-hint-line {
  display: flex;
  top: 290px;
  gap: 11px;
  align-items: center;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--display);
  font-size: 24px;
}

.solve-hint-line strong { color: var(--saffron); font-size: 35px; }

.solve-result {
  top: 385px;
  padding: 13px 18px;
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.16);
  color: #fff;
  font-family: var(--display);
  font-size: 25px;
}

.solve-result strong { color: var(--saffron); font-size: 37px; }
.solve-theatre.is-solved .solve-hint-line { animation: final-rise 0.5s ease both; }
.solve-theatre.is-solved .solve-result { animation: final-rise 0.5s ease 0.55s both; }

.principle-choice {
  display: block;
}

.principle-choice span,
.principle-choice small {
  display: block;
}

.principle-choice small {
  margin-top: 3px;
}

.method-badge {
  display: grid;
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 100px;
  width: 290px;
  height: 330px;
  place-items: center;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 50% 47% 52% 45%;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  transform: translateX(-50%);
}

.method-badge small,
.method-badge strong,
.method-badge em {
  display: block;
  position: relative;
  z-index: 2;
}

.method-badge small { align-self: end; font-size: 11px; }
.method-badge strong { color: inherit; font-family: var(--display); font-size: 48px; line-height: 1.05; }
.method-badge em { align-self: start; font-size: 10px; font-style: normal; letter-spacing: 0.18em; }

.badge-formula {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 95px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  white-space: nowrap;
  transform: translateX(-50%);
}

.badge-theatre.is-earned .method-badge {
  animation: badge-earned 0.8s cubic-bezier(0.2, 1.4, 0.4, 1) both;
  background: var(--tomato);
  box-shadow: 0 0 0 20px rgba(232, 94, 79, 0.1), 0 20px 50px rgba(0, 0, 0, 0.2);
  color: #fff;
}

@keyframes badge-earned { from { opacity: 0.35; transform: translateX(-50%) scale(0.72) rotate(-8deg); } to { opacity: 1; transform: translateX(-50%) scale(1) rotate(0); } }

.lesson-player-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 0 8px;
}

.lesson-coach-note {
  color: var(--ink-soft);
  font-size: 12px;
}

.primary-button:disabled {
  background: #d8d1be;
  box-shadow: 0 6px 0 #bcb39e;
  color: #7d7769;
  cursor: not-allowed;
  transform: none;
}

.lesson-complete-card {
  padding: clamp(38px, 8vw, 86px);
  border-radius: 40px 40px 88px 40px;
  background: var(--forest);
  box-shadow: var(--shadow);
  color: #fff;
  text-align: center;
}

.complete-badge {
  display: grid;
  width: 150px;
  height: 150px;
  margin: 0 auto 30px;
  place-items: center;
  border: 2px dashed rgba(255, 255, 255, 0.38);
  border-radius: 50% 46% 52% 45%;
  background: var(--tomato);
  box-shadow: 0 0 0 18px rgba(232, 94, 79, 0.1);
  transform: rotate(-4deg);
}

.complete-badge span,
.complete-badge small {
  display: block;
}

.complete-badge span {
  align-self: end;
  color: var(--saffron);
  font-family: var(--display);
  font-size: 52px;
  font-weight: 900;
}

.complete-badge small {
  align-self: start;
  font-size: 11px;
}

.lesson-complete-card h2 {
  margin-bottom: 12px;
  font-size: clamp(36px, 5vw, 54px);
}

.lesson-complete-card > p:not(.eyebrow) {
  max-width: 680px;
  margin-right: auto;
  margin-bottom: 28px;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.67);
  line-height: 1.8;
}

.lesson-complete-card .button-row {
  justify-content: center;
}

.lesson-report-card {
  align-self: stretch;
}

.lesson-report-head {
  display: flex;
  gap: 20px;
  align-items: start;
  justify-content: space-between;
}

.lesson-report-head > span {
  max-width: 250px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  text-align: right;
}

.lesson-progress-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.lesson-progress-list > div {
  display: flex;
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px 20px 34px 20px;
  background: rgba(255, 255, 255, 0.58);
  flex-direction: column;
}

.lesson-progress-list > div.is-complete {
  border-color: rgba(75, 143, 124, 0.32);
  background: rgba(75, 143, 124, 0.08);
}

.lesson-progress-list span { color: var(--tomato); font-size: 10px; font-weight: 900; }
.lesson-progress-list .is-complete span { color: var(--leaf); }
.lesson-progress-list strong { margin: 10px 0 5px; font-size: 17px; }
.lesson-progress-list small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.lesson-progress-list button { align-self: flex-start; margin-top: auto; }

/* V0.3 · deep-ocean progression atlas */
.progression-banner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  min-height: 430px;
  margin-top: 26px;
  overflow: hidden;
  border-radius: 40px 40px 92px 40px;
  background:
    radial-gradient(circle at 78% 18%, rgba(242, 184, 75, 0.22), transparent 24%),
    radial-gradient(circle at 52% 110%, rgba(47, 121, 161, 0.38), transparent 45%),
    #102f39;
  box-shadow: var(--shadow);
  color: #fff9e9;
}

.progression-banner-copy {
  position: relative;
  z-index: 3;
  padding: clamp(36px, 6vw, 68px);
}

.progression-banner-copy .eyebrow {
  color: var(--saffron);
}

.progression-banner-copy h2 {
  max-width: 650px;
  margin-bottom: 18px;
  color: #fff9e9;
  font-size: clamp(40px, 4.8vw, 56px);
}

.progression-banner-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.home-path-next {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 7px;
  margin-bottom: 24px;
}

.home-path-next span {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px 12px 22px 12px;
  background: rgba(255, 255, 255, 0.06);
}

.home-path-next small,
.home-path-next strong {
  display: block;
}

.home-path-next small {
  margin-bottom: 4px;
  color: var(--saffron);
  font-size: 9px;
  font-weight: 900;
}

.home-path-next strong {
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  line-height: 1.4;
}

.light-text-button {
  color: rgba(255, 255, 255, 0.8);
}

.light-text-button:hover {
  color: #fff;
}

.progression-mini-map {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 30px 30px;
}

.progression-mini-map::before,
.progression-mini-map::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.progression-mini-map::before {
  right: -70px;
  top: -75px;
  width: 330px;
  height: 330px;
}

.progression-mini-map::after {
  right: 12px;
  top: 7px;
  width: 165px;
  height: 165px;
}

.progression-mini-map > svg {
  position: absolute;
  inset: 18% 5% auto;
  width: 90%;
  fill: none;
  stroke: rgba(242, 184, 75, 0.58);
  stroke-dasharray: 8 10;
  stroke-linecap: round;
  stroke-width: 3;
}

.mini-route-badges {
  display: flex;
  position: absolute;
  z-index: 3;
  right: 24px;
  top: 22px;
  gap: 7px;
  max-width: 82%;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.mini-route-badges span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 900;
}

.mini-level {
  display: grid;
  position: absolute;
  z-index: 2;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px 18px 30px 18px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 13px 0 rgba(0, 0, 0, 0.11);
  color: rgba(255, 255, 255, 0.68);
  transform: rotate(-3deg);
}

.mini-level:nth-of-type(1) { left: 5%; bottom: 12%; }
.mini-level:nth-of-type(2) { left: 21%; bottom: 22%; }
.mini-level:nth-of-type(3) { left: 37%; bottom: 34%; }
.mini-level:nth-of-type(4) { left: 53%; bottom: 46%; }
.mini-level:nth-of-type(5) { left: 69%; bottom: 59%; }
.mini-level:nth-of-type(6) { left: 84%; bottom: 72%; }

.mini-level small,
.mini-level strong {
  display: block;
}

.mini-level small {
  align-self: end;
  color: var(--saffron);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.mini-level strong {
  align-self: start;
  font-family: var(--display);
  font-size: 19px;
}

.mini-level.is-current {
  border-color: var(--saffron);
  background: var(--tomato);
  box-shadow: 0 0 0 13px rgba(242, 184, 75, 0.1), 0 13px 0 rgba(0, 0, 0, 0.12);
  color: #fff;
  animation: current-level-pulse 0.75s ease both;
}

@keyframes current-level-pulse {
  from { opacity: 0; transform: rotate(-3deg) scale(0.7); }
  to { opacity: 1; transform: rotate(-3deg) scale(1); }
}

.progression-intro h1 {
  max-width: 930px;
}

.progression-stamp {
  border-color: rgba(47, 121, 161, 0.38);
  color: var(--blue);
}

.curriculum-atlas {
  padding: clamp(24px, 5vw, 58px);
  border-radius: 38px 38px 82px 38px;
  background:
    radial-gradient(circle at 92% 8%, rgba(242, 184, 75, 0.22), transparent 22%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #102f39;
  background-size: auto, 28px 28px, 28px 28px, auto;
  box-shadow: var(--shadow);
  color: #fff;
}

.curriculum-atlas-heading h2 {
  color: var(--saffron);
}

.curriculum-atlas-heading > p,
.curriculum-path-row header p,
.curriculum-node-detail > aside p {
  color: rgba(255, 255, 255, 0.62);
}

.curriculum-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 34px 0 20px;
}

.curriculum-summary > span {
  display: flex;
  min-height: 94px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
  flex-direction: column;
  justify-content: space-between;
}

.curriculum-summary strong {
  color: var(--saffron);
  font-family: var(--display);
  font-size: 34px;
}

.curriculum-summary small {
  color: rgba(255, 255, 255, 0.64);
  font-weight: 800;
}

.curriculum-summary .coverage-complete strong { color: #9ad4bd; }
.curriculum-summary .coverage-entry strong { color: var(--saffron); }
.curriculum-summary .coverage-planned strong { color: #9db0b7; }

.curriculum-filters {
  display: flex;
  gap: 8px;
  margin: 0 0 26px;
  flex-wrap: wrap;
}

.curriculum-filters button {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.68);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.curriculum-filters button:hover,
.curriculum-filters button.is-selected {
  border-color: var(--saffron);
  background: var(--saffron);
  color: var(--forest);
}

.curriculum-path-list {
  display: grid;
  gap: 14px;
}

.curriculum-path-row {
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(0, 2.3fr);
  gap: 20px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.045);
  align-items: center;
}

.curriculum-path-row > header {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
}

.curriculum-path-row > header > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(242, 184, 75, 0.35);
  border-radius: 50%;
  color: var(--saffron);
  font-family: var(--display);
  font-size: 23px;
}

.curriculum-path-row h3 {
  color: #fff;
  font-size: 20px;
}

.curriculum-path-row header p {
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.55;
}

.curriculum-node-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.curriculum-node-card {
  display: flex;
  min-height: 126px;
  padding: 13px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px 16px 25px 16px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  text-align: left;
  flex-direction: column;
  cursor: pointer;
}

.curriculum-node-card > span {
  margin-bottom: 12px;
  color: var(--saffron);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.curriculum-node-card > strong {
  font-size: 13px;
  line-height: 1.35;
}

.curriculum-node-card > small {
  margin-top: auto;
  padding-top: 12px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 9px;
  font-weight: 850;
}

.curriculum-node-card.coverage-complete { border-color: rgba(154, 212, 189, 0.38); background: rgba(75, 143, 124, 0.15); }
.curriculum-node-card.coverage-entry { border-color: rgba(242, 184, 75, 0.38); background: rgba(242, 184, 75, 0.1); }
.curriculum-node-card.coverage-planned { border-style: dashed; opacity: 0.76; }
.curriculum-node-card:hover,
.curriculum-node-card.is-selected { border-color: var(--saffron); box-shadow: 0 0 0 2px rgba(242, 184, 75, 0.22); transform: translateY(-2px); }

.curriculum-node-detail {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 34px;
  margin-top: 24px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 30px 30px 58px 30px;
  background: #fff7e8;
  color: var(--ink);
}

.curriculum-node-detail.coverage-complete { box-shadow: inset 6px 0 #4b8f7c; }
.curriculum-node-detail.coverage-entry { box-shadow: inset 6px 0 var(--saffron); }
.curriculum-node-detail.coverage-planned { box-shadow: inset 6px 0 #9db0b7; }

.curriculum-node-detail h3 {
  margin-bottom: 10px;
  font-size: clamp(34px, 4vw, 48px);
}

.curriculum-node-detail .curriculum-detail-main > p:not(.eyebrow) {
  max-width: 750px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.curriculum-node-detail .method-tags {
  margin: 20px 0;
}

.curriculum-contest-focus {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  flex-direction: column;
}

.curriculum-contest-focus small,
.curriculum-node-detail > aside small {
  color: var(--tomato);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.curriculum-node-detail > aside {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 22px;
  background: var(--forest);
  color: #fff;
  align-content: start;
}

.curriculum-node-detail > aside > div {
  display: flex;
  gap: 7px;
  flex-direction: column;
}

.curriculum-node-detail > aside strong {
  line-height: 1.55;
}

.curriculum-node-detail > aside p {
  font-size: 11px;
  line-height: 1.65;
}

.curriculum-parent-card {
  background:
    radial-gradient(circle at 93% 9%, rgba(242, 184, 75, 0.18), transparent 22%),
    #173a3b;
  color: #fff;
}

.curriculum-parent-head {
  display: flex;
  gap: 20px;
  align-items: start;
  justify-content: space-between;
}

.curriculum-parent-head h2 { color: var(--saffron); }
.curriculum-parent-card > p { color: rgba(255, 255, 255, 0.65); line-height: 1.75; }

.curriculum-production-priorities {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(242, 184, 75, 0.22);
  border-radius: 18px;
  background: rgba(242, 184, 75, 0.07);
}

.curriculum-production-priorities > small,
.curriculum-parent-card > .curriculum-next-label {
  color: var(--saffron);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.curriculum-production-priorities > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.curriculum-production-priorities span {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 8px;
  align-items: center;
}

.curriculum-production-priorities em {
  display: grid;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--saffron);
  color: var(--ink);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  place-items: center;
  grid-row: 1 / 3;
}

.curriculum-production-priorities strong { font-size: 10px; }
.curriculum-production-priorities b { color: rgba(255, 255, 255, 0.62); font-size: 12px; }
.curriculum-production-priorities.is-complete {
  border-color: rgba(85, 172, 131, 0.32);
  background: rgba(85, 172, 131, 0.1);
}
.curriculum-production-priorities.is-complete > div { grid-template-columns: 1fr; }
.curriculum-production-priorities.is-complete em { background: var(--leaf); color: #fff; }
.curriculum-production-priorities.is-complete b { font-size: 13px; }
.curriculum-next-label { margin-top: 24px; }

.curriculum-parent-steps {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}

.curriculum-parent-steps > span {
  display: flex;
  min-height: 128px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px 16px 24px 16px;
  background: rgba(255, 255, 255, 0.055);
  flex-direction: column;
}

.curriculum-parent-steps small { color: var(--saffron); font-weight: 850; }
.curriculum-parent-steps strong { margin-top: 11px; font-size: 13px; line-height: 1.4; }
.curriculum-parent-steps em { margin-top: auto; color: rgba(255, 255, 255, 0.48); font-size: 9px; font-style: normal; }

.diagnostic-portal {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 30px;
  align-items: center;
  margin-bottom: 38px;
  padding: clamp(30px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 36px 36px 78px 36px;
  background:
    radial-gradient(circle at 82% 18%, rgba(242, 184, 75, 0.15), transparent 25%),
    var(--cream);
  box-shadow: var(--shadow-small);
}

.diagnostic-portal.has-result {
  border-color: rgba(75, 143, 124, 0.35);
}

.path-diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 38px;
}

.path-diagnostic-grid .diagnostic-portal {
  grid-template-columns: 1fr;
  gap: 18px;
  min-height: 410px;
  margin-bottom: 0;
  padding: 32px;
  align-content: space-between;
}

.path-diagnostic-grid .diagnostic-portal-copy h2 {
  font-size: clamp(32px, 3.8vw, 47px);
}

.path-diagnostic-grid .diagnostic-dial {
  width: 138px;
  height: 138px;
  box-shadow: 0 0 0 14px rgba(22, 58, 58, 0.07), 0 20px 35px rgba(22, 58, 58, 0.16);
}

.path-diagnostic-grid .diagnostic-dial::before {
  inset: 16px;
}

.path-diagnostic-grid .diagnostic-dial strong {
  font-size: 53px;
}

.path-portal.path-combinatorics {
  border-color: rgba(232, 94, 79, 0.28);
  background:
    linear-gradient(90deg, rgba(232, 94, 79, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(232, 94, 79, 0.045) 1px, transparent 1px),
    #fff6df;
  background-size: 24px 24px;
}

.path-portal.path-combinatorics .diagnostic-dial {
  background: var(--tomato);
}

.path-portal.path-geometry {
  border-color: rgba(47, 121, 161, 0.34);
  background:
    radial-gradient(circle at 86% 14%, rgba(242, 184, 75, 0.25), transparent 25%),
    linear-gradient(90deg, var(--geometry-grid-line) 1px, transparent 1px),
    linear-gradient(var(--geometry-grid-line) 1px, transparent 1px),
    #eaf5f1;
  background-size: auto, 20px 20px, 20px 20px, auto;
}

.path-portal.path-geometry .diagnostic-dial {
  border-radius: 24% 76% 22% 78% / 76% 24% 76% 24%;
  background: var(--geometry-ink);
  transform: rotate(2deg);
}

.diagnostic-portal-copy h2 {
  margin-bottom: 13px;
  font-size: clamp(36px, 4.7vw, 56px);
}

.diagnostic-portal-copy > p:not(.eyebrow) {
  max-width: 720px;
  margin-bottom: 25px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.diagnostic-dial {
  display: grid;
  position: relative;
  width: 270px;
  height: 270px;
  margin: auto;
  place-items: center;
  border: 2px dashed rgba(255, 255, 255, 0.34);
  border-radius: 50% 46% 52% 44%;
  background: var(--forest);
  box-shadow: 0 0 0 22px rgba(22, 58, 58, 0.07), 0 25px 45px rgba(22, 58, 58, 0.18);
  color: #fff;
  text-align: center;
  transform: rotate(-3deg);
}

.diagnostic-dial::before {
  position: absolute;
  inset: 27px;
  border: 1px solid rgba(242, 184, 75, 0.35);
  border-radius: 50%;
  content: "";
}

.diagnostic-dial span,
.diagnostic-dial strong,
.diagnostic-dial small {
  display: block;
  position: relative;
  z-index: 2;
}

.diagnostic-dial span { align-self: end; color: rgba(255, 255, 255, 0.58); font-size: 11px; }
.diagnostic-dial strong { color: var(--saffron); font-family: var(--display); font-size: 88px; line-height: 0.9; }
.diagnostic-dial small { align-self: start; max-width: 150px; color: rgba(255, 255, 255, 0.68); line-height: 1.5; }

.ability-ladder {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  min-height: 335px;
  align-items: end;
}

.ability-level {
  display: flex;
  position: relative;
  min-height: 185px;
  padding: 20px 17px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px 22px 38px 22px;
  background: var(--cream);
  box-shadow: var(--shadow-small);
  flex-direction: column;
}

.ability-level:nth-child(1) { transform: translateY(0); }
.ability-level:nth-child(2) { transform: translateY(-20px); }
.ability-level:nth-child(3) { transform: translateY(-40px); }
.ability-level:nth-child(4) { transform: translateY(-60px); }
.ability-level:nth-child(5) { transform: translateY(-80px); }
.ability-level:nth-child(6) { transform: translateY(-100px); }

.ability-level > span {
  margin-bottom: 20px;
  color: var(--tomato);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.ability-level strong {
  font-family: var(--display);
  font-size: 21px;
}

.ability-level p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.ability-level small {
  margin-top: auto;
  color: var(--blue);
  font-weight: 900;
}

.ability-level.is-recommended {
  border-color: var(--tomato);
  background: var(--forest);
  color: #fff;
}

.ability-level.is-recommended p { color: rgba(255, 255, 255, 0.63); }
.ability-level.is-recommended small { color: var(--saffron); }

.number-theory-path {
  padding: clamp(28px, 6vw, 66px);
  border-radius: 38px 38px 90px 38px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #102f39;
  background-size: 32px 32px;
  box-shadow: var(--shadow);
  color: #fff;
}

.path-heading {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 50px;
}

.path-heading-main {
  max-width: 760px;
}

.path-diagnostic-link {
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--saffron);
  font-weight: 900;
  cursor: pointer;
}

.path-diagnostic-link:hover {
  transform: translateX(4px);
}

.path-heading h2 {
  margin-bottom: 7px;
  color: var(--saffron);
  font-size: clamp(42px, 6vw, 72px);
}

.path-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.6);
}

.path-seal {
  display: grid;
  width: 130px;
  height: 130px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--tomato);
  font-family: var(--display);
  font-size: 82px;
}

.method-path {
  position: relative;
  max-width: 1080px;
  margin: auto;
}

.method-path::before {
  position: absolute;
  left: 47px;
  top: 42px;
  bottom: 42px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--saffron) 0 8px, transparent 8px 16px);
  content: "";
  opacity: 0.48;
}

.method-node {
  display: grid;
  position: relative;
  grid-template-columns: 96px 1fr;
  gap: 22px;
  margin-bottom: 24px;
}

.node-marker {
  display: grid;
  position: relative;
  z-index: 2;
  width: 96px;
  height: 96px;
  place-items: center;
  border-radius: 24px 24px 42px 24px;
  background: var(--forest-soft);
  box-shadow: 0 12px 0 rgba(0, 0, 0, 0.15);
}

.node-marker span {
  color: var(--saffron);
  font-family: var(--display);
  font-size: 31px;
}

.node-marker i {
  position: absolute;
  right: -29px;
  top: 47px;
  width: 29px;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.node-card {
  position: relative;
  padding: 28px 30px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 25px 25px 52px 25px;
  background: rgba(255, 255, 255, 0.065);
}

.node-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.node-meta span {
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 900;
}

.node-meta small { color: rgba(255, 255, 255, 0.42); }
.node-card h3 { color: #fff; font-size: clamp(29px, 4vw, 43px); }
.node-subtitle { margin: 4px 0 12px; color: var(--saffron) !important; font-weight: 900; }
.node-card > p:not(.node-subtitle, .node-prerequisite) { color: rgba(255, 255, 255, 0.62); line-height: 1.7; }

.method-tags {
  display: flex;
  gap: 7px;
  margin: 17px 0;
  flex-wrap: wrap;
}

.method-tags span {
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(47, 121, 161, 0.28);
  color: #c9edff;
  font-size: 10px;
  font-weight: 900;
}

.node-sample {
  padding: 16px 18px;
  border-left: 3px solid var(--tomato);
  border-radius: 0 13px 13px 0;
  background: rgba(0, 0, 0, 0.14);
}

.node-sample small,
.node-sample strong { display: block; }
.node-sample small { margin-bottom: 5px; color: rgba(255, 255, 255, 0.4); }
.node-sample strong { color: rgba(255, 255, 255, 0.82); line-height: 1.55; }
.node-prerequisite { margin-top: 13px; color: rgba(255, 255, 255, 0.36); font-size: 10px; }

.node-practice-evidence {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.16);
}

.node-practice-evidence > div:first-child {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
}

.node-practice-evidence > div:first-child strong {
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
}

.node-evidence-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.node-evidence-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--saffron), var(--tomato));
}

.node-practice-button {
  width: fit-content;
  min-height: 40px;
  padding: 8px 14px;
  font-size: 11px;
}

.node-practice-button.secondary-button {
  color: var(--forest);
}

.method-node.access-recommended .node-marker,
.method-node.access-ready .node-marker { background: var(--tomato); }
.method-node.access-recommended .node-card { border-color: rgba(242, 184, 75, 0.58); background: rgba(242, 184, 75, 0.09); }
.method-node.access-mastered .node-marker { background: var(--leaf); }
.method-node.access-mastered .node-card { border-color: rgba(75, 143, 124, 0.55); }
.method-node.access-preview { opacity: 0.76; }
.method-node.access-preview:hover { opacity: 1; }

.combinatorics-path,
.arithmetic-path,
.patterns-path,
.quantitative-modeling-path,
.logic-path {
  padding: clamp(28px, 6vw, 66px);
  border: 1px solid rgba(232, 94, 79, 0.2);
  border-radius: 90px 38px 38px 38px;
  background:
    radial-gradient(circle at 92% 7%, rgba(242, 184, 75, 0.38), transparent 22%),
    linear-gradient(90deg, rgba(232, 94, 79, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(232, 94, 79, 0.055) 1px, transparent 1px),
    #fff4db;
  background-size: auto, 32px 32px, 32px 32px, auto;
  box-shadow: var(--shadow);
  color: var(--ink);
}

.combinatorics-path .path-heading h2,
.arithmetic-path .path-heading h2,
.patterns-path .path-heading h2,
.quantitative-modeling-path .path-heading h2,
.logic-path .path-heading h2 {
  color: var(--tomato);
}

.combinatorics-path .path-heading p:not(.eyebrow),
.arithmetic-path .path-heading p:not(.eyebrow),
.patterns-path .path-heading p:not(.eyebrow),
.quantitative-modeling-path .path-heading p:not(.eyebrow),
.logic-path .path-heading p:not(.eyebrow) {
  color: var(--ink-soft);
}

.combinatorics-path .path-seal,
.arithmetic-path .path-seal,
.patterns-path .path-seal,
.quantitative-modeling-path .path-seal,
.logic-path .path-seal {
  border-color: rgba(232, 94, 79, 0.28);
  color: var(--blue);
}

.combinatorics-path .path-diagnostic-link,
.arithmetic-path .path-diagnostic-link,
.patterns-path .path-diagnostic-link,
.quantitative-modeling-path .path-diagnostic-link,
.logic-path .path-diagnostic-link {
  color: var(--tomato);
}

.combinatorics-path .method-path::before,
.arithmetic-path .method-path::before,
.patterns-path .method-path::before,
.quantitative-modeling-path .method-path::before,
.logic-path .method-path::before {
  background: repeating-linear-gradient(to bottom, var(--tomato) 0 8px, transparent 8px 16px);
}

.combinatorics-path .node-marker,
.arithmetic-path .node-marker,
.patterns-path .node-marker,
.quantitative-modeling-path .node-marker,
.logic-path .node-marker {
  background: var(--saffron);
  box-shadow: 0 12px 0 rgba(178, 119, 21, 0.17);
}

.combinatorics-path .node-marker span,
.arithmetic-path .node-marker span,
.patterns-path .node-marker span,
.quantitative-modeling-path .node-marker span,
.logic-path .node-marker span {
  color: var(--forest);
}

.combinatorics-path .node-marker i,
.arithmetic-path .node-marker i,
.patterns-path .node-marker i,
.quantitative-modeling-path .node-marker i,
.logic-path .node-marker i {
  background: rgba(232, 94, 79, 0.3);
}

.combinatorics-path .node-card,
.arithmetic-path .node-card,
.patterns-path .node-card,
.quantitative-modeling-path .node-card,
.logic-path .node-card {
  border-color: rgba(232, 94, 79, 0.16);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 30px rgba(86, 57, 31, 0.08);
}

.combinatorics-path .node-meta span,
.arithmetic-path .node-meta span,
.patterns-path .node-meta span,
.quantitative-modeling-path .node-meta span,
.logic-path .node-meta span {
  border-color: rgba(232, 94, 79, 0.2);
  color: var(--tomato);
}

.combinatorics-path .node-meta small,
.arithmetic-path .node-meta small,
.patterns-path .node-meta small,
.quantitative-modeling-path .node-meta small,
.logic-path .node-meta small,
.combinatorics-path .node-prerequisite,
.arithmetic-path .node-prerequisite,
.patterns-path .node-prerequisite,
.quantitative-modeling-path .node-prerequisite,
.logic-path .node-prerequisite {
  color: rgba(33, 56, 54, 0.52);
}

.combinatorics-path .node-card h3,
.arithmetic-path .node-card h3,
.patterns-path .node-card h3,
.quantitative-modeling-path .node-card h3,
.logic-path .node-card h3 {
  color: var(--ink);
}

.combinatorics-path .node-subtitle,
.arithmetic-path .node-subtitle,
.patterns-path .node-subtitle,
.quantitative-modeling-path .node-subtitle,
.logic-path .node-subtitle {
  color: var(--tomato) !important;
}

.combinatorics-path .node-card > p:not(.node-subtitle, .node-prerequisite),
.arithmetic-path .node-card > p:not(.node-subtitle, .node-prerequisite),
.patterns-path .node-card > p:not(.node-subtitle, .node-prerequisite),
.quantitative-modeling-path .node-card > p:not(.node-subtitle, .node-prerequisite),
.logic-path .node-card > p:not(.node-subtitle, .node-prerequisite) {
  color: var(--ink-soft);
}

.combinatorics-path .method-tags span,
.arithmetic-path .method-tags span,
.patterns-path .method-tags span,
.quantitative-modeling-path .method-tags span,
.logic-path .method-tags span {
  background: rgba(75, 143, 124, 0.14);
  color: #286756;
}

.combinatorics-path .node-sample,
.arithmetic-path .node-sample,
.patterns-path .node-sample,
.quantitative-modeling-path .node-sample,
.logic-path .node-sample {
  border-left-color: var(--blue);
  background: rgba(47, 121, 161, 0.08);
}

.combinatorics-path .node-sample small,
.arithmetic-path .node-sample small,
.patterns-path .node-sample small,
.quantitative-modeling-path .node-sample small,
.logic-path .node-sample small {
  color: rgba(33, 56, 54, 0.5);
}

.combinatorics-path .node-sample strong,
.arithmetic-path .node-sample strong,
.patterns-path .node-sample strong,
.quantitative-modeling-path .node-sample strong,
.logic-path .node-sample strong {
  color: var(--ink);
}

.combinatorics-path .method-node.access-ready .node-marker,
.arithmetic-path .method-node.access-ready .node-marker,
.patterns-path .method-node.access-ready .node-marker,
.quantitative-modeling-path .method-node.access-ready .node-marker,
.logic-path .method-node.access-ready .node-marker,
.combinatorics-path .method-node.access-recommended .node-marker,
.arithmetic-path .method-node.access-recommended .node-marker,
.patterns-path .method-node.access-recommended .node-marker,
.quantitative-modeling-path .method-node.access-recommended .node-marker,
.logic-path .method-node.access-recommended .node-marker {
  background: var(--tomato);
}

.combinatorics-path .method-node.access-ready .node-marker span,
.arithmetic-path .method-node.access-ready .node-marker span,
.patterns-path .method-node.access-ready .node-marker span,
.quantitative-modeling-path .method-node.access-ready .node-marker span,
.logic-path .method-node.access-ready .node-marker span,
.combinatorics-path .method-node.access-recommended .node-marker span,
.arithmetic-path .method-node.access-recommended .node-marker span,
.patterns-path .method-node.access-recommended .node-marker span,
.quantitative-modeling-path .method-node.access-recommended .node-marker span,
.logic-path .method-node.access-recommended .node-marker span {
  color: #fff;
}

.combinatorics-path .method-node.access-recommended .node-card,
.arithmetic-path .method-node.access-recommended .node-card,
.patterns-path .method-node.access-recommended .node-card,
.quantitative-modeling-path .method-node.access-recommended .node-card,
.logic-path .method-node.access-recommended .node-card {
  border-color: rgba(232, 94, 79, 0.55);
  background: rgba(255, 255, 255, 0.9);
}

.combinatorics-path .node-practice-evidence,
.arithmetic-path .node-practice-evidence,
.patterns-path .node-practice-evidence,
.quantitative-modeling-path .node-practice-evidence,
.logic-path .node-practice-evidence,
.geometry-path .node-practice-evidence {
  border-top-color: rgba(33, 56, 54, 0.13);
}

.combinatorics-path .node-practice-evidence > div:first-child,
.arithmetic-path .node-practice-evidence > div:first-child,
.patterns-path .node-practice-evidence > div:first-child,
.quantitative-modeling-path .node-practice-evidence > div:first-child,
.logic-path .node-practice-evidence > div:first-child,
.geometry-path .node-practice-evidence > div:first-child {
  color: rgba(33, 56, 54, 0.58);
}

.combinatorics-path .node-practice-evidence > div:first-child strong,
.arithmetic-path .node-practice-evidence > div:first-child strong,
.patterns-path .node-practice-evidence > div:first-child strong,
.quantitative-modeling-path .node-practice-evidence > div:first-child strong,
.logic-path .node-practice-evidence > div:first-child strong,
.geometry-path .node-practice-evidence > div:first-child strong {
  color: var(--ink);
}

.combinatorics-path .node-evidence-track,
.arithmetic-path .node-evidence-track,
.patterns-path .node-evidence-track,
.quantitative-modeling-path .node-evidence-track,
.logic-path .node-evidence-track,
.geometry-path .node-evidence-track {
  background: rgba(33, 56, 54, 0.1);
}


.arithmetic-path { background: radial-gradient(circle at 92% 7%, rgba(217, 115, 53, 0.32), transparent 22%), linear-gradient(90deg, rgba(217, 115, 53, 0.055) 1px, transparent 1px), linear-gradient(rgba(217, 115, 53, 0.055) 1px, transparent 1px), #fff3e4; background-size: auto, 32px 32px, 32px 32px, auto; border-color: rgba(217, 115, 53, 0.22); }
.patterns-path { background: radial-gradient(circle at 92% 7%, rgba(134, 96, 168, 0.3), transparent 22%), linear-gradient(90deg, rgba(134, 96, 168, 0.06) 1px, transparent 1px), linear-gradient(rgba(134, 96, 168, 0.06) 1px, transparent 1px), #f7f0fb; background-size: auto, 32px 32px, 32px 32px, auto; border-color: rgba(134, 96, 168, 0.22); }
.quantitative-modeling-path { background: radial-gradient(circle at 92% 7%, rgba(35, 124, 128, 0.3), transparent 22%), linear-gradient(90deg, rgba(35, 124, 128, 0.06) 1px, transparent 1px), linear-gradient(rgba(35, 124, 128, 0.06) 1px, transparent 1px), #eef8f6; background-size: auto, 32px 32px, 32px 32px, auto; border-color: rgba(35, 124, 128, 0.22); }
.logic-path { background: radial-gradient(circle at 92% 7%, rgba(155, 91, 66, 0.3), transparent 22%), linear-gradient(90deg, rgba(155, 91, 66, 0.06) 1px, transparent 1px), linear-gradient(rgba(155, 91, 66, 0.06) 1px, transparent 1px), #fbf1ec; background-size: auto, 32px 32px, 32px 32px, auto; border-color: rgba(155, 91, 66, 0.22); }

.geometry-path {
  padding: clamp(28px, 6vw, 66px);
  border: 1px solid rgba(47, 121, 161, 0.3);
  border-radius: 38px 90px 38px 38px;
  background:
    radial-gradient(circle at 8% 9%, rgba(242, 184, 75, 0.3), transparent 20%),
    linear-gradient(90deg, rgba(47, 121, 161, 0.075) 1px, transparent 1px),
    linear-gradient(rgba(47, 121, 161, 0.075) 1px, transparent 1px),
    #e7f3f0;
  background-size: auto, 28px 28px, 28px 28px, auto;
  box-shadow: var(--shadow);
  color: var(--ink);
}

.geometry-path .path-heading h2 { color: var(--geometry-ink); }
.geometry-path .path-heading p:not(.eyebrow) { color: var(--ink-soft); }
.geometry-path .path-diagnostic-link { color: var(--geometry-ink); }

.geometry-path .path-seal {
  border-color: rgba(47, 121, 161, 0.35);
  border-radius: 24% 76% 22% 78% / 76% 24% 76% 24%;
  color: var(--tomato);
  transform: rotate(3deg);
}

.geometry-path .method-path::before {
  background: repeating-linear-gradient(to bottom, #2f79a1 0 8px, transparent 8px 16px);
}

.geometry-path .node-marker {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px 50px 18px 50px;
  background: var(--geometry-ink);
  box-shadow: 0 12px 0 rgba(31, 79, 101, 0.17);
}

.geometry-path .node-marker span { color: #f7d675; }
.geometry-path .node-marker i { background: rgba(47, 121, 161, 0.34); }

.geometry-path .node-card {
  border-color: rgba(47, 121, 161, 0.2);
  background:
    linear-gradient(90deg, rgba(47, 121, 161, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(47, 121, 161, 0.035) 1px, transparent 1px),
    rgba(255, 255, 255, 0.76);
  background-size: 18px 18px;
  box-shadow: 0 16px 30px rgba(31, 79, 101, 0.08);
}

.geometry-path .node-meta span {
  border-color: rgba(47, 121, 161, 0.25);
  color: var(--geometry-ink);
}

.geometry-path .node-meta small,
.geometry-path .node-prerequisite { color: rgba(33, 56, 54, 0.52); }
.geometry-path .node-card h3 { color: var(--ink); }
.geometry-path .node-subtitle { color: #2f79a1 !important; }
.geometry-path .node-card > p:not(.node-subtitle, .node-prerequisite) { color: var(--ink-soft); }

.geometry-path .method-tags span {
  background: rgba(47, 121, 161, 0.12);
  color: var(--geometry-ink);
}

.geometry-path .node-sample {
  border-left-color: var(--saffron);
  background: rgba(47, 121, 161, 0.08);
}

.geometry-path .node-sample small { color: rgba(33, 56, 54, 0.5); }
.geometry-path .node-sample strong { color: var(--ink); }

.geometry-path .method-node.access-ready .node-marker,
.geometry-path .method-node.access-recommended .node-marker { background: var(--tomato); }

.geometry-path .method-node.access-recommended .node-card {
  border-color: rgba(47, 121, 161, 0.62);
  background-color: rgba(255, 255, 255, 0.94);
}

.progression-note {
  padding: 28px 32px;
  border: 1px solid rgba(47, 121, 161, 0.28);
  border-radius: 24px 24px 50px 24px;
  background: rgba(47, 121, 161, 0.08);
}

.progression-note strong { display: block; margin-bottom: 7px; color: var(--blue); font-family: var(--display); font-size: 25px; }
.progression-note p { color: var(--ink-soft); line-height: 1.7; }

.progression-report-card {
  border-color: rgba(47, 121, 161, 0.28);
  background: linear-gradient(145deg, rgba(47, 121, 161, 0.08), var(--cream));
}

.progression-report-card.report-combinatorics {
  border-color: rgba(232, 94, 79, 0.28);
  background: linear-gradient(145deg, rgba(242, 184, 75, 0.13), var(--cream));
}

.progression-report-card.report-geometry {
  border-color: rgba(47, 121, 161, 0.38);
  background:
    linear-gradient(90deg, rgba(47, 121, 161, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(47, 121, 161, 0.035) 1px, transparent 1px),
    linear-gradient(145deg, rgba(47, 121, 161, 0.12), var(--cream));
  background-size: 18px 18px, 18px 18px, auto;
}

.practice-error-report {
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 12%, rgba(242, 184, 75, 0.2), transparent 20%),
    rgba(255, 250, 240, 0.84);
}

.practice-error-chips {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.practice-error-chips span {
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 13px 13px 24px 13px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 10px;
  text-align: center;
}

.practice-error-chips span.has-count {
  border-color: rgba(232, 94, 79, 0.35);
  background: rgba(232, 94, 79, 0.08);
}

.practice-error-chips strong {
  display: block;
  margin-bottom: 4px;
  color: var(--tomato);
  font-family: var(--display);
  font-size: 24px;
}

.diagnostic-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 15px;
}

.diagnostic-header strong,
.diagnostic-header small { display: block; }
.diagnostic-header small { margin-top: 3px; color: var(--ink-soft); }
.diagnostic-header > span { color: var(--ink-soft); font-size: 12px; font-weight: 900; }

.diagnostic-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(22, 58, 58, 0.1);
}

.diagnostic-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--leaf), var(--saffron), var(--tomato));
  transition: width 0.7s ease;
}

.diagnostic-stage {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  min-height: 610px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 36px 36px 80px 36px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.diagnostic-question-card {
  padding: clamp(34px, 6vw, 68px);
}

.diagnostic-question-card h2 {
  max-width: 760px;
  margin: 12px 0 16px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.22;
}

.diagnostic-method-hint {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.diagnostic-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 32px 0 25px;
}

.diagnostic-choice {
  min-height: 70px;
  padding: 15px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 16px 16px 28px 16px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 900;
  text-align: left;
}

.diagnostic-choice:hover,
.diagnostic-choice.is-selected {
  border-color: var(--leaf);
  background: rgba(75, 143, 124, 0.1);
  box-shadow: inset 4px 0 0 var(--leaf);
}

.diagnostic-answer {
  display: block;
  max-width: 340px;
  margin: 35px 0 28px;
}

.diagnostic-answer span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 900;
}

.diagnostic-answer input {
  width: 100%;
  padding: 18px 20px;
  border: 2px solid var(--line-strong);
  border-radius: 17px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 32px;
}

.diagnostic-side-panel {
  display: grid;
  position: relative;
  padding: 56px;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at 80% 25%, rgba(242, 184, 75, 0.22), transparent 28%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #102f39;
  background-size: auto, 28px 28px, 28px 28px, auto;
  color: #fff;
  text-align: center;
}

.diagnostic-level-orbit {
  display: grid;
  position: relative;
  width: 230px;
  height: 230px;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(255, 255, 255, 0.035), 0 0 0 76px rgba(255, 255, 255, 0.025);
}

.diagnostic-level-orbit b {
  color: var(--saffron);
  font-family: var(--display);
  font-size: 92px;
}

.diagnostic-level-orbit small {
  position: absolute;
  top: 28px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--display);
  font-size: 25px;
}

.diagnostic-stage.path-combinatorics .diagnostic-side-panel {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    #733f38;
  background-size: 28px 28px;
}

.diagnostic-stage.path-geometry .diagnostic-side-panel {
  background:
    radial-gradient(circle at 78% 20%, rgba(242, 184, 75, 0.2), transparent 24%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    var(--geometry-deep);
  background-size: auto, 24px 24px, 24px 24px, auto;
}

.geometry-question-visual {
  max-width: 560px;
  margin: 22px 0 16px;
  padding: 12px 14px 8px;
  overflow: hidden;
  border: 1px solid rgba(47, 121, 161, 0.25);
  border-radius: var(--geometry-shape-radius);
  background:
    linear-gradient(90deg, var(--geometry-grid-line) 1px, transparent 1px),
    linear-gradient(var(--geometry-grid-line) 1px, transparent 1px),
    #edf7f4;
  background-size: 18px 18px;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.5);
}

.geometry-question-visual svg {
  display: block;
  width: 100%;
  height: auto;
  color: var(--geometry-ink);
}

.geometry-question-visual figcaption {
  padding: 5px 5px 2px;
  color: rgba(36, 93, 118, 0.64);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.geometry-question-visual .geo-outline,
.geometry-question-visual .geo-accent,
.geometry-question-visual .geo-guide,
.geometry-question-visual .geo-grid,
.geometry-question-visual .geo-dimension,
.geometry-question-visual .geo-right-angle,
.geometry-question-visual .geo-accent-box {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.geometry-question-visual .geo-outline { stroke: var(--geometry-ink); stroke-width: 2.4; }
.geometry-question-visual .geo-accent { stroke: var(--tomato); stroke-width: 3; }
.geometry-question-visual .geo-guide { stroke: rgba(36, 93, 118, 0.5); stroke-width: 1.5; stroke-dasharray: 5 5; }
.geometry-question-visual .geo-grid { stroke: rgba(36, 93, 118, 0.34); stroke-width: 1.2; }
.geometry-question-visual .geo-dimension { stroke: var(--tomato); stroke-width: 1.5; }
.geometry-question-visual .geo-right-angle { stroke: var(--tomato); stroke-width: 1.8; }
.geometry-question-visual .geo-accent-box { stroke: var(--tomato); stroke-width: 3; }
.geometry-question-visual .geo-fill { fill: rgba(47, 121, 161, 0.1); }
.geometry-question-visual .geo-fill-alt { fill: rgba(242, 184, 75, 0.22); }
.geometry-question-visual .geo-accent-fill { fill: rgba(232, 94, 79, 0.15); }
.geometry-question-visual .geo-cut { fill: rgba(255, 255, 255, 0.78); stroke: var(--tomato); stroke-width: 1.5; stroke-dasharray: 5 4; }
.geometry-question-visual .geo-points { fill: var(--tomato); }
.geometry-question-visual text { font-family: var(--body); text-anchor: middle; }
.geometry-question-visual .geo-label { fill: var(--geometry-ink); font-size: 12px; font-weight: 900; }
.geometry-question-visual .geo-count { fill: var(--tomato); font-family: var(--display); font-size: 20px; font-weight: 900; }
.geometry-question-visual .geo-accent-text { fill: var(--tomato); font-family: var(--display); font-size: 21px; font-weight: 900; }

.diagnostic-side-panel > p {
  max-width: 360px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.7;
}

.diagnostic-trail {
  display: flex;
  gap: 8px;
}

.diagnostic-trail span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.32);
  font-size: 9px;
  font-weight: 900;
}

.diagnostic-trail .is-past { background: var(--leaf); color: #fff; }
.diagnostic-trail .is-current { border-color: var(--saffron); color: var(--saffron); box-shadow: 0 0 0 7px rgba(242, 184, 75, 0.08); }

.diagnostic-result-card {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: clamp(34px, 7vw, 80px);
  align-items: center;
  min-height: 650px;
  padding: clamp(38px, 8vw, 86px);
  border-radius: 40px 40px 90px 40px;
  background:
    radial-gradient(circle at 10% 20%, rgba(242, 184, 75, 0.18), transparent 24%),
    #102f39;
  box-shadow: var(--shadow);
  color: #fff;
}

.diagnostic-result-card.result-combinatorics {
  background:
    radial-gradient(circle at 12% 18%, rgba(242, 184, 75, 0.22), transparent 26%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #563b36;
  background-size: auto, 30px 30px, 30px 30px, auto;
}

.diagnostic-result-card.result-geometry {
  background:
    radial-gradient(circle at 14% 18%, rgba(242, 184, 75, 0.2), transparent 24%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    var(--geometry-deep);
  background-size: auto, 26px 26px, 26px 26px, auto;
}

.result-level-mark {
  display: grid;
  width: 300px;
  height: 340px;
  place-items: center;
  border: 2px dashed rgba(255, 255, 255, 0.35);
  border-radius: 47% 44% 51% 46%;
  background: var(--tomato);
  box-shadow: 0 0 0 25px rgba(232, 94, 79, 0.1), 0 30px 60px rgba(0, 0, 0, 0.22);
  text-align: center;
  transform: rotate(-3deg);
}

.result-level-mark span,
.result-level-mark strong,
.result-level-mark small { display: block; }
.result-level-mark span { align-self: end; font-size: 11px; }
.result-level-mark strong { color: var(--saffron); font-family: var(--display); font-size: 112px; line-height: 0.9; }
.result-level-mark small { align-self: start; font-family: var(--display); font-size: 27px; }

.diagnostic-result-copy h2 {
  max-width: 760px;
  margin: 10px 0 18px;
  color: #fff;
  font-size: clamp(42px, 6vw, 72px);
}

.diagnostic-result-copy > p:not(.eyebrow, .result-caution) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.67);
  line-height: 1.8;
}

.result-evidence {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 27px 0 20px;
}

.result-evidence span {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
}

.result-evidence strong {
  display: block;
  margin-bottom: 4px;
  color: var(--saffron);
  font-family: var(--display);
  font-size: 31px;
}

.result-direction {
  display: grid;
  gap: 5px;
  max-width: 760px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--saffron);
  border-radius: 0 14px 14px 0;
  background: rgba(255, 255, 255, 0.07);
}

.result-direction span,
.result-direction small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
}

.result-direction strong {
  color: #fff;
  font-size: 15px;
}

.result-caution {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .hero,
  .challenge-layout,
  .parent-grid,
  .microcourse-banner,
  .progression-banner,
  .today-route-board,
  .readiness-report-card,
  .diagnostic-portal,
  .diagnostic-stage,
  .diagnostic-result-card,
  .golden-lesson-card,
  .lesson-scene {
    grid-template-columns: 1fr;
  }

  .weekly-metric-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .curriculum-path-row,
  .curriculum-node-detail {
    grid-template-columns: 1fr;
  }

  .curriculum-node-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .curriculum-parent-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .readiness-dial {
    margin: auto;
  }

  .path-diagnostic-grid,
  .path-diagnostic-grid .diagnostic-portal {
    grid-template-columns: 1fr;
  }

  .progression-mini-map {
    min-height: 370px;
  }

  .diagnostic-portal {
    text-align: center;
  }

  .diagnostic-portal-copy > p:not(.eyebrow) {
    margin-right: auto;
    margin-left: auto;
  }

  .ability-ladder {
    grid-template-columns: repeat(3, 1fr);
    min-height: auto;
  }

  .ability-level:nth-child(n) {
    transform: none;
  }

  .diagnostic-side-panel {
    min-height: 500px;
  }

  .result-level-mark {
    margin: auto;
  }

  .diagnostic-result-copy {
    text-align: center;
  }

  .diagnostic-result-copy > p:not(.eyebrow, .result-caution) {
    margin-right: auto;
    margin-left: auto;
  }

  .result-direction {
    margin-right: auto;
    margin-left: auto;
    text-align: left;
  }

  .diagnostic-result-copy .button-row {
    justify-content: center;
  }

  .hero-art {
    min-height: 250px;
  }

  .hero::after {
    right: -90px;
    bottom: -170px;
  }

  .island-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .banner-number-stage {
    min-height: 250px;
  }

  .golden-stage {
    min-height: 470px;
  }

  .motion-study-grid {
    grid-template-columns: 1fr;
  }

  .visual-rules-grid {
    grid-template-columns: 1fr 1fr;
  }

  .math-theatre {
    min-height: 520px;
  }
}

@media (max-width: 620px) {
  .app-shell {
    padding: 0 16px 104px;
  }

  .topbar {
    min-height: 74px;
  }

  .today-chip {
    display: none;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .hero {
    min-height: auto;
    border-radius: 28px 28px 52px 28px;
  }

  .hero-copy {
    padding: 32px 24px 16px;
  }

  .hero-art {
    min-height: 215px;
  }

  .compass {
    width: 160px;
    height: 160px;
  }

  .progress-strip {
    grid-template-columns: 1fr auto;
  }

  .progress-strip > strong {
    grid-column: 1 / -1;
  }

  .today-route-board {
    padding: 20px;
    border-radius: 24px 24px 48px 24px;
  }

  .route-title-row,
  .weekly-report-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .week-route {
    grid-template-columns: repeat(4, 1fr);
  }

  .week-stop {
    min-height: 96px;
  }

  .section-heading,
  .page-intro {
    display: block;
  }

  #parent-title {
    font-size: clamp(32px, 8.7vw, 38px);
    line-height: 1.16;
  }

  .section-heading p {
    margin-top: 8px;
    text-align: left;
  }

  .curriculum-atlas {
    padding: 22px 14px;
    border-radius: 28px 28px 58px 28px;
  }

  .curriculum-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .curriculum-summary > span:last-child {
    grid-column: 1 / -1;
  }

  .curriculum-path-row {
    padding: 14px;
  }

  .curriculum-node-grid,
  .curriculum-parent-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .curriculum-production-priorities > div {
    grid-template-columns: 1fr;
  }

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

  .curriculum-node-card {
    min-height: 116px;
  }

  .curriculum-node-detail {
    padding: 24px 18px;
  }

  .curriculum-parent-head {
    align-items: stretch;
    flex-direction: column;
  }

  .page-stamp {
    display: none;
  }

  .island-grid,
  .stat-grid,
  .choice-grid,
  .settings-form,
  .visual-rules-grid,
  .weekly-story-grid {
    grid-template-columns: 1fr;
  }

  .review-focus-list {
    grid-template-columns: 1fr;
  }

  .weekly-metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .weekly-metric-grid > span:last-child {
    grid-column: 1 / -1;
  }

  .readiness-report-card {
    padding: 24px 20px;
  }

  .readiness-dial {
    width: 180px;
    height: 180px;
  }

  .readiness-dial::before {
    width: 136px;
    height: 136px;
  }

  .readiness-dimensions > span {
    grid-template-columns: 72px 1fr;
  }

  .readiness-dimensions em {
    grid-column: 1 / -1;
  }

  .island-card {
    min-height: 210px;
  }

  .bottom-nav {
    right: 10px;
    bottom: max(9px, env(safe-area-inset-bottom));
    left: 10px;
    padding: 6px;
    border-radius: 21px;
  }

  .nav-item {
    min-width: 0;
    min-height: 53px;
    flex: 1;
    padding: 4px;
  }

  .session-header {
    grid-template-columns: auto 1fr;
  }

  .session-header .timer {
    grid-column: 1 / -1;
  }

  .question-card {
    padding: 25px 20px 30px;
    border-radius: 26px 26px 48px 26px;
  }

  .question-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .question-actions .primary-button,
  .question-actions .secondary-button,
  .question-actions .text-button {
    width: 100%;
  }

  .completion-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .microcourse-banner {
    border-radius: 28px 28px 55px 28px;
  }

  .microcourse-copy {
    padding: 28px 23px 10px;
  }

  .progression-banner {
    border-radius: 28px 28px 58px 28px;
  }

  .progression-banner-copy {
    padding: 32px 23px 12px;
  }

  .progression-banner-copy h2 {
    font-size: 40px;
  }

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

  .progression-mini-map {
    min-height: 330px;
  }

  .mini-level {
    width: 56px;
    height: 62px;
    border-radius: 14px 14px 24px 14px;
  }

  .mini-level strong {
    font-size: 15px;
  }

  .diagnostic-portal {
    padding: 28px 22px;
    border-radius: 28px 28px 55px 28px;
  }

  .diagnostic-dial {
    width: 220px;
    height: 220px;
  }

  .diagnostic-dial strong {
    font-size: 70px;
  }

  .ability-ladder {
    grid-template-columns: 1fr;
  }

  .ability-level {
    min-height: 160px;
  }

  .path-heading {
    display: block;
  }

  .path-seal {
    display: none;
  }

  .number-theory-path,
  .combinatorics-path,
  .geometry-path {
    padding: 28px 18px;
    border-radius: 28px 28px 60px 28px;
  }

  .geometry-question-visual {
    margin-top: 17px;
    padding: 8px 9px 6px;
  }

  .method-path::before {
    left: 27px;
  }

  .method-node {
    grid-template-columns: 56px 1fr;
    gap: 12px;
  }

  .node-marker {
    width: 56px;
    height: 66px;
    border-radius: 15px 15px 27px 15px;
  }

  .node-marker span {
    font-size: 22px;
  }

  .node-marker i {
    right: -17px;
    top: 32px;
    width: 17px;
  }

  .node-card {
    padding: 21px 18px;
    border-radius: 19px 19px 38px 19px;
  }

  .node-card h3 {
    font-size: 29px;
  }

  .node-practice-evidence > div:first-child {
    align-items: flex-start;
    flex-direction: column;
  }

  .node-practice-button {
    width: 100%;
  }

  .practice-error-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .practice-reflection > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .practice-reflection button {
    min-height: 43px;
  }

  .diagnostic-header {
    grid-template-columns: auto 1fr;
  }

  .diagnostic-header > span {
    grid-column: 1 / -1;
  }

  .diagnostic-question-card {
    padding: 30px 22px;
  }

  .diagnostic-question-card h2 {
    font-size: 37px;
  }

  .diagnostic-choices {
    grid-template-columns: 1fr;
  }

  .diagnostic-side-panel {
    min-height: 390px;
    padding: 35px 24px;
  }

  .diagnostic-level-orbit {
    width: 180px;
    height: 180px;
  }

  .diagnostic-level-orbit b {
    font-size: 70px;
  }

  .diagnostic-result-card {
    min-height: 0;
    padding: 34px 22px 44px;
    border-radius: 28px 28px 58px 28px;
  }

  .result-level-mark {
    width: 220px;
    height: 250px;
  }

  .result-level-mark strong {
    font-size: 84px;
  }

  .result-evidence {
    grid-template-columns: 1fr;
  }

  .banner-number-stage {
    min-height: 230px;
  }

  .banner-tile {
    top: 68px;
  }

  .banner-plus,
  .banner-equals {
    top: 92px;
  }

  .banner-number-stage > strong {
    top: 72px;
    right: auto;
    left: 50%;
    font-size: 58px;
    animation-name: pop-in-center;
  }

  .tile-48 {
    animation: banner-left 0.85s cubic-bezier(0.22, 0.8, 0.3, 1) 0.25s both, banner-tile-hide 0.25s ease 1.05s forwards;
  }

  .tile-52 {
    animation: banner-right 0.85s cubic-bezier(0.22, 0.8, 0.3, 1) 0.25s both, banner-tile-hide 0.25s ease 1.05s forwards;
  }

  .banner-equals {
    display: none;
  }

  .golden-lesson-card {
    border-radius: 28px 28px 60px 28px;
  }

  .golden-copy {
    padding: 30px 23px;
  }

  .golden-stage {
    min-height: 400px;
  }

  .sample-number {
    top: 60px;
    width: 76px;
    height: 92px;
  }

  .sample-48 { left: 7%; }
  .sample-52 { right: 7%; }
  .sample-hundred { top: 205px; }

  @keyframes golden-left { to { transform: translate(72px, 145px) rotate(-4deg); } }
  @keyframes golden-right { to { transform: translate(-72px, 145px) rotate(4deg); } }

  .motion-study {
    min-height: auto;
    padding: 23px;
  }

  .square-counter {
    grid-template-columns: 1fr;
  }

  .count-legend {
    grid-template-columns: repeat(4, 1fr);
    align-items: end;
  }

  .count-legend b,
  .count-legend strong {
    font-size: 24px;
  }

  .lesson-player-header {
    grid-template-columns: auto 1fr;
  }

  .lesson-time {
    display: none;
  }

  .lesson-scene {
    min-height: 0;
    border-radius: 27px 27px 50px 27px;
  }

  .lesson-copy {
    padding: 28px 22px;
  }

  .math-theatre {
    min-height: 470px;
  }

  .concept-theatre {
    min-height: 310px;
    border-radius: 24px 24px 48px 24px;
  }

  .concept-sequence-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 9px;
  }

  .concept-sequence-item {
    min-width: 0;
    height: 60px;
    padding: 0 7px;
  }

  .concept-sequence-item i {
    top: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%);
  }

  .concept-process-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .concept-process-stage > span {
    min-height: 104px;
  }

  .personal-seal {
    right: 2%;
    bottom: 6%;
    min-width: 116px;
    padding: 10px 13px;
    font-size: 16px;
  }

  .distributive-expression { gap: 5px; }

  .distributive-expression span {
    padding: 13px 10px;
    border-radius: 15px 15px 24px 15px;
    font-size: 20px;
  }

  .distributive-factor { width: 78%; }
  .distributive-merge { min-width: 210px; font-size: 17px; }

  .cycle-loop {
    gap: 6px;
    padding: 25px 9px;
  }

  .cycle-loop span { width: 58px; }
  .cycle-loop > i { font-size: 22px; }

  .concept-unit-rate-stage {
    width: min(74%, 250px);
    grid-template-columns: 1fr;
  }

  .concept-unit-rate-stage > i { line-height: 0.7; text-align: center; }
  .unit-rate-card { min-height: 92px; padding: 12px; }
  .unit-rate-card strong { margin: 5px 0; font-size: 24px; }

  .concept-assumption-stage { grid-template-columns: 1fr; }
  .assumption-heads { padding: 15px; }
  .assumption-heads strong { margin: 4px 0; font-size: 27px; }
  .assumption-comparison { padding: 13px 9px; }
  .assumption-difference { grid-column: 1; }

  .concept-equivalence-stage {
    width: min(88%, 285px);
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .equivalence-source,
  .equivalence-target {
    min-height: 112px;
    padding: 14px 18px;
  }

  .equivalence-source strong,
  .equivalence-target strong { margin: 5px 0; font-size: 27px; }
  .equivalence-strip { height: 20px; }
  .concept-equivalence-stage > b { line-height: 0.6; text-align: center; transform: rotate(90deg); }

  .recurrence-chain {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .recurrence-chain span { width: 100%; }
  .recurrence-chain i {
    top: 5px;
    right: auto;
    left: 5px;
    display: grid;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--tomato);
    color: #fff;
    font-size: 11px;
    transform: none;
    place-items: center;
  }
  .recurrence-rule { min-width: 210px; }

  .concept-ratio-stage { width: 91%; }
  .ratio-row { grid-template-columns: 54px minmax(0, 1fr) 36px; gap: 7px; }
  .ratio-row > span { gap: 4px; }
  .ratio-row i { height: 38px; border-radius: 10px 10px 15px 10px; }
  .ratio-total { grid-template-columns: 1fr; gap: 3px; padding: 12px 16px; text-align: center; }

  .concept-truth-stage {
    width: 90%;
    grid-template-columns: 1fr 1fr;
  }

  .truth-statements { grid-column: 1 / -1; }
  .truth-statements span { padding: 10px 12px; }
  .truth-condition,
  .truth-target { min-height: 100px; padding: 12px; }
  .truth-condition strong,
  .truth-target strong { font-size: 14px; }
  .truth-statements,
  .truth-condition,
  .truth-target,
  .truth-candidates { grid-row: auto; }
  .truth-candidates { grid-column: 1 / -1; grid-template-columns: 1fr; }

  .concept-range-stage { width: 90%; gap: 16px; }
  .range-scale { grid-template-columns: 1fr; gap: 8px; text-align: center; }
  .range-scale > i { order: -1; margin: 12px 0 25px; }

  .concept-pairing-stage {
    width: 91%;
    grid-template-columns: 1fr 1fr;
  }
  .pairing-list { grid-column: 1 / -1; grid-row: auto; }
  .pairing-list strong { font-size: 16px; }

  .concept-rate-stage { width: 91%; }
  .rate-actors { gap: 8px; }
  .rate-actors span { padding: 9px 10px; }
  .rate-actors strong { font-size: 12px; }
  .rate-total,
  .rate-merged { padding: 12px 9px; }

  .concept-game-stage {
    width: 91%;
    grid-template-columns: 1fr;
  }
  .game-target { min-height: 100px; }
  .game-states { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game-states span { min-height: 66px; }

  .concept-identity-stage {
    width: min(88%, 285px);
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .identity-card { min-height: 92px; padding: 13px 12px; }
  .identity-card strong { margin-top: 5px; font-size: 20px; }
  .concept-identity-stage > i { line-height: 0.55; text-align: center; transform: rotate(90deg); }

  .concept-square-growth { width: 91%; }
  .square-growth-main { grid-template-columns: 1fr; gap: 8px; }
  .square-growth-diagram > span { width: 118px; }
  .square-growth-values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .square-growth-values span { min-height: 67px; padding: 7px 5px; }
  .square-growth-values strong { font-size: 22px; }
  .square-growth-increments span { padding: 6px 9px; font-size: 11px; }

  .concept-constraint-stage { width: 91%; }
  .constraint-network-map { min-height: 218px; }
  .constraint-nodes span { min-height: 68px; padding: 8px 5px; }
  .constraint-nodes strong { font-size: 22px; }
  .constraint-edge-label { min-height: 56px; padding: 6px 3px; }
  .constraint-edge-ab,
  .constraint-edge-bc { top: 78px; }
  .constraint-edge-label small { font-size: 9px; }
  .constraint-edge-label strong { font-size: 18px; }

  .concept-counterexample-stage { width: 91%; }
  .counterexample-candidates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .counterexample-candidates span { min-height: 70px; padding: 8px; }
  .counterexample-candidates strong { font-size: 20px; }

  .floating-equation {
    gap: 8px;
  }

  .number-tile {
    width: 76px;
    height: 92px;
    font-size: 35px;
  }

  .pair-stage .number-tile {
    top: 210px;
  }

  .pair-left { left: 6%; }
  .pair-right { right: 6%; }

  .compose-a { left: 6%; top: 65px; }
  .compose-b { top: 65px; }
  .compose-c { right: 6%; top: 65px; }

  @keyframes compose-left { to { transform: translate(98px, 205px) rotate(-6deg) scale(0.7); opacity: 0.2; } }
  @keyframes compose-right { to { transform: translate(-98px, 205px) rotate(6deg) scale(0.7); opacity: 0.2; } }

  .final-equation {
    right: 4%;
    bottom: 54px;
    left: 4%;
    font-size: 19px;
  }

  .solve-equation {
    top: 80px;
    gap: 6px;
  }

  .solve-hint-line { top: 240px; }
  .solve-result { top: 330px; }

  .method-badge {
    top: 55px;
    width: 250px;
    height: 290px;
  }

  .lesson-player-actions {
    gap: 12px;
    align-items: stretch;
    flex-direction: column;
  }

  .lesson-player-actions .primary-button {
    width: 100%;
  }

  .lesson-report-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .lesson-report-head > span { text-align: left; }

  .lesson-progress-list {
    grid-template-columns: 1fr;
  }

  .completion-stats div:nth-child(even) {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }

  .completion-stats div:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .report-table {
    display: block;
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-delay: 0s !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- V0.16 综合竞赛套题 ---------- */
.paper-view {
  max-width: 960px;
  margin: 18px auto 0;
}

.paper-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 28px;
  align-items: start;
  padding: clamp(26px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 34px 34px 70px 34px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.paper-intro h1 {
  margin-bottom: 12px;
  font-family: var(--display);
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.3;
}

.paper-intro-copy > p { color: var(--ink-soft); line-height: 1.8; }

.paper-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 18px;
}

.paper-facts span {
  display: grid;
  min-width: 92px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(22, 58, 58, 0.07);
  text-align: center;
}

.paper-facts strong { font-family: var(--display); font-size: 28px; color: var(--forest); }
.paper-facts small { color: var(--ink-soft); font-size: 11px; font-weight: 900; }

.paper-section-list {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.paper-section-list li {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffef9;
  font-size: 13px;
  color: var(--ink-soft);
}

.paper-section-list .paper-section-name { font-weight: 900; color: var(--ink); }

.paper-intro-stamp {
  display: grid;
  place-items: center;
  align-content: center;
  aspect-ratio: 1;
  border: 3px dashed rgba(232, 94, 79, 0.5);
  border-radius: 50%;
  color: var(--tomato);
  text-align: center;
  transform: rotate(-8deg);
}

.paper-intro-stamp span { font-size: 12px; font-weight: 900; letter-spacing: 0.12em; }
.paper-intro-stamp strong { font-family: var(--display); font-size: 54px; line-height: 1; }
.paper-intro-stamp small { font-size: 11px; font-weight: 900; }

.paper-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.paper-section-chip strong,
.paper-section-chip small { display: block; }
.paper-section-chip strong { font-size: 15px; }
.paper-section-chip small { margin-top: 3px; color: var(--ink-soft); }

.timer.is-urgent { background: var(--tomato); }

.paper-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.paper-nav-item {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 2px solid rgba(23, 52, 51, 0.16);
  border-radius: 12px;
  background: #fffef9;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  cursor: pointer;
}

.paper-nav-item.is-answered {
  border-color: var(--leaf);
  background: rgba(75, 143, 124, 0.14);
  color: var(--forest);
}

.paper-nav-item.is-current {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(22, 58, 58, 0.12);
}

.paper-actions {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  margin-top: 28px;
}

.paper-confirm {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23, 52, 51, 0.5);
  backdrop-filter: blur(3px);
}

.paper-confirm-panel {
  width: min(100%, 480px);
  padding: 28px;
  border-radius: 26px 26px 48px 26px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.paper-confirm-panel h2 { margin: 6px 0 10px; font-family: var(--display); font-size: 26px; }
.paper-confirm-panel p { color: var(--ink-soft); line-height: 1.75; }
.paper-confirm-panel .button-row { margin-top: 18px; }

.paper-review-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr);
  gap: 24px;
  padding: clamp(26px, 5vw, 52px);
  border-radius: 34px 34px 70px 34px;
  background: var(--forest);
  color: #fff;
  box-shadow: var(--shadow);
}

.paper-review-hero .eyebrow { color: var(--saffron); }
.paper-review-hero h1 { margin-bottom: 12px; font-family: var(--display); font-size: clamp(26px, 4vw, 38px); line-height: 1.35; }
.paper-review-hero p { color: rgba(255, 255, 255, 0.72); line-height: 1.8; }
.paper-review-hero .button-row { margin-top: 20px; }
.paper-review-hero .secondary-button { border-color: rgba(255, 255, 255, 0.35); background: transparent; color: #fff; }

.paper-score-board {
  display: grid;
  gap: 10px;
  align-content: center;
}

.paper-score-board div {
  display: grid;
  gap: 4px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.paper-score-board strong { font-family: var(--display); font-size: 28px; color: var(--saffron); }
.paper-score-board strong small { font-size: 16px; color: rgba(255, 255, 255, 0.6); }
.paper-score-board span { color: rgba(255, 255, 255, 0.7); font-size: 12px; font-weight: 900; }

.paper-sections-report {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.paper-sections-report article {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--leaf);
  border-radius: 18px;
  background: var(--cream);
}

.paper-sections-report article.is-over-time { border-left-color: var(--saffron); }
.paper-sections-report span { color: var(--ink-soft); font-size: 12px; font-weight: 900; }
.paper-sections-report strong { font-family: var(--display); font-size: 30px; color: var(--forest); }
.paper-sections-report small { color: var(--ink-soft); }

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.evidence-card {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--skill-color);
  border-radius: 20px 20px 36px 20px;
  background: var(--cream);
  box-shadow: var(--shadow-small);
}

.evidence-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-soft); font-size: 12px; font-weight: 900; }
.evidence-meta strong { color: var(--tomato); }
.evidence-card h3 { font-family: var(--display); font-size: 22px; }
.evidence-card p { color: var(--ink-soft); line-height: 1.7; }
.evidence-card small { color: var(--ink-soft); }
.evidence-card .secondary-button, .evidence-card .text-button { justify-self: start; margin-top: 6px; }

.evidence-empty {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 24px;
  border: 1px dashed rgba(75, 143, 124, 0.6);
  border-radius: 20px;
  background: rgba(75, 143, 124, 0.08);
}

.evidence-empty p { color: var(--ink-soft); line-height: 1.7; }

.paper-question-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.paper-question-list li {
  border: 1px solid var(--line);
  border-left: 6px solid var(--leaf);
  border-radius: 16px;
  background: var(--cream);
}

.paper-question-list li.is-wrong { border-left-color: var(--tomato); }
.paper-question-list li.is-blank { border-left-color: var(--saffron); }

.paper-question-list summary {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.paper-question-list summary::-webkit-details-marker { display: none; }

.paper-question-status {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(22, 58, 58, 0.08);
  font-weight: 900;
}

.is-correct .paper-question-status { background: rgba(75, 143, 124, 0.18); color: var(--forest); }
.is-wrong .paper-question-status { background: rgba(232, 94, 79, 0.16); color: var(--tomato); }
.is-blank .paper-question-status { background: rgba(242, 184, 75, 0.2); color: #8a5b00; }

.paper-question-summary { display: grid; gap: 4px; min-width: 0; }
.paper-question-summary strong { font-size: 13px; color: var(--ink-soft); }
.paper-question-summary > span { line-height: 1.6; overflow-wrap: anywhere; }

.paper-question-detail { padding: 0 16px 18px 62px; }

.paper-answer-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.paper-answer-row span { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: rgba(22, 58, 58, 0.06); }
.paper-answer-row small { color: var(--ink-soft); font-size: 11px; font-weight: 900; }
.paper-answer-row strong { overflow-wrap: anywhere; }

.paper-question-detail .solution {
  padding: 12px 14px;
  border-left: 4px solid var(--leaf);
  border-radius: 12px;
  background: rgba(75, 143, 124, 0.1);
  line-height: 1.75;
}

.paper-question-detail .solution strong { display: block; margin-bottom: 4px; }

.paper-section-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.paper-section-strip span {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.challenge-card:not(.featured) .paper-section-strip span { background: rgba(22, 58, 58, 0.07); }
.paper-section-strip strong { font-size: 14px; }
.paper-section-strip small { font-size: 11px; opacity: 0.8; }

.paper-record-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.paper-record-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffef9;
}

.paper-record-list li > span { display: grid; gap: 2px; min-width: 0; }
.paper-record-list li > span strong { font-size: 14px; }
.paper-record-list li > span small { color: var(--ink-soft); font-size: 12px; }
.paper-record-score { font-family: var(--display); font-size: 22px; color: var(--forest); }
.paper-record-legacy { color: var(--ink-soft); font-size: 11px; }
.paper-records-empty { color: var(--ink-soft); line-height: 1.7; }

@media (max-width: 720px) {
  .paper-intro { grid-template-columns: 1fr; }
  .paper-intro-stamp { width: 150px; margin: 0 auto; }
  .paper-section-list li { grid-template-columns: 1fr 1fr; }
  .paper-review-hero { grid-template-columns: 1fr; }
  .paper-actions { grid-template-columns: 1fr 1fr; }
  .paper-actions .primary-button { grid-column: 1 / -1; }
  .paper-section-strip { grid-template-columns: 1fr; }
  .paper-question-detail { padding-left: 16px; }
  .paper-record-list li { grid-template-columns: 1fr auto; }
  .paper-record-list li > :last-child { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 420px) {
  .paper-header { grid-template-columns: auto 1fr; }
  .paper-header .timer { grid-column: 2; justify-self: end; }
  .paper-nav-item { width: 36px; height: 36px; }
}

@media (max-width: 620px) {
  /* 手机端缩小题卡装饰圆，避免遮住题干（专项与套题共用）。 */
  .question-card::before {
    right: -36px;
    top: -36px;
    width: 96px;
    height: 96px;
    border-width: 14px;
  }

  .question-card .question-meta { margin-bottom: 20px; padding-right: 48px; }
  .question-card .question-prompt { position: relative; z-index: 1; }
}

.paper-node-list { margin: 0 0 18px; }
.paper-node-list > small { display: block; margin-bottom: 8px; color: var(--ink-soft); font-size: 11px; font-weight: 900; letter-spacing: 0.08em; }
.paper-node-list > div { display: flex; flex-wrap: wrap; gap: 8px; }
.paper-node-list span { display: inline-flex; gap: 6px; align-items: center; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fffef9; font-size: 12px; font-weight: 700; }
.paper-node-list span b { color: var(--forest); font-size: 11px; }
.paper-node-list span i { font-style: normal; color: var(--ink-soft); font-size: 11px; }
.paper-node-list span.reason-wrong { border-color: rgba(232, 94, 79, 0.5); background: rgba(232, 94, 79, 0.08); }
.paper-node-list span.reason-hinted { border-color: rgba(242, 184, 75, 0.6); background: rgba(242, 184, 75, 0.12); }

.weekly-paper-report { margin-top: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(22, 58, 58, 0.04); }
.weekly-paper-report > small { display: block; margin-bottom: 10px; color: var(--ink-soft); font-size: 11px; font-weight: 900; letter-spacing: 0.08em; }
.weekly-paper-list { display: grid; gap: 10px; margin: 0 0 12px; padding: 0; list-style: none; }
.weekly-paper-list li { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fffef9; }
.weekly-paper-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; }
.weekly-paper-head strong { font-size: 14px; }
.weekly-paper-head span { color: var(--ink-soft); font-size: 12px; }
.weekly-paper-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.weekly-paper-sections span { display: grid; gap: 2px; padding: 8px 10px; border-left: 4px solid var(--leaf); border-radius: 10px; background: rgba(22, 58, 58, 0.05); }
.weekly-paper-sections span.is-empty { border-left-color: var(--tomato); }
.weekly-paper-sections span.is-full { border-left-color: var(--saffron); }
.weekly-paper-sections small { color: var(--ink-soft); font-size: 11px; font-weight: 900; }
.weekly-paper-sections strong { font-family: var(--display); font-size: 20px; color: var(--forest); }
.weekly-paper-sections em { font-style: normal; color: var(--tomato); font-size: 11px; font-weight: 900; }
.weekly-paper-list .text-button { justify-self: start; padding-left: 0; }
.weekly-paper-empty { margin: 0 0 12px; color: var(--ink-soft); }
.weekly-paper-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.weekly-paper-compare span { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: #fffef9; border: 1px solid var(--line); }
.weekly-paper-compare small { color: var(--ink-soft); font-size: 11px; font-weight: 900; }
.weekly-paper-compare strong { font-family: var(--display); font-size: 22px; color: var(--forest); }
.weekly-paper-compare em { font-style: normal; color: var(--ink-soft); font-size: 11px; }
.weekly-paper-compare .compare-delta.is-up strong { color: var(--leaf); }
.weekly-paper-compare .compare-delta.is-down strong { color: var(--tomato); }
.weekly-paper-recommendation { margin: 12px 0 0; color: var(--ink); line-height: 1.7; }

.path-mastery-table td small { color: var(--ink-soft); font-size: 11px; }
.path-mastery-table td strong { white-space: nowrap; }

/* 网格子项允许收缩，避免表格或多列指标把手机端布局视口撑宽。 */
.parent-grid > * { min-width: 0; }
.parent-card > div[style*="overflow-x"] { max-width: 100%; }

.path-card p { min-height: 0; }
.tide-node-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.tide-node-list span { display: inline-flex; gap: 5px; align-items: center; padding: 5px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); font-size: 11px; font-weight: 800; }
.tide-node-list span b { font-size: 10px; opacity: 0.8; }
.tide-node-list span i { font-style: normal; opacity: 0.75; }
.legacy-record-note { margin: 4px 0 8px; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }

.sync-status { display: grid; gap: 2px; margin-top: 12px; padding: 10px 12px; border-left: 4px solid var(--leaf); border-radius: 12px; background: rgba(75, 143, 124, 0.1); }
.sync-status.status-offline, .sync-status.status-failed { border-left-color: var(--saffron); background: rgba(242, 184, 75, 0.14); }
.sync-status.status-unauthorized { border-left-color: var(--tomato); background: rgba(232, 94, 79, 0.1); }
.sync-status.status-disabled { border-left-color: rgba(23, 52, 51, 0.2); background: rgba(22, 58, 58, 0.05); }
.sync-status small { color: var(--ink-soft); }

.onboarding-view { max-width: 640px; margin: 24px auto 0; }
.onboarding-card { padding: clamp(26px, 5vw, 48px); border: 1px solid var(--line); border-radius: 34px 34px 70px 34px; background: var(--cream); box-shadow: var(--shadow); }
.onboarding-card h1 { margin-bottom: 10px; font-family: var(--display); font-size: clamp(28px, 4.5vw, 40px); }
.onboarding-card > p { color: var(--ink-soft); line-height: 1.8; margin-bottom: 18px; }
.onboarding-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.onboarding-hint { display: block; margin: 4px 0 8px; color: var(--ink-soft); }
.onboarding-notice { margin: 4px 0 8px; padding: 10px 12px; border-left: 4px solid var(--tomato); border-radius: 10px; background: rgba(232, 94, 79, 0.1); color: var(--ink); }
.parent-gate { max-width: 520px; margin: 24px auto 0; padding: clamp(26px, 5vw, 44px); border: 1px solid var(--line); border-radius: 30px 30px 60px 30px; background: var(--cream); box-shadow: var(--shadow); }
.parent-gate h1 { margin-bottom: 8px; font-family: var(--display); font-size: clamp(26px, 4vw, 34px); }
.parent-gate > p { color: var(--ink-soft); line-height: 1.7; margin-bottom: 14px; }
.parent-gate .text-button { margin-top: 12px; padding-left: 0; }
.parent-reset-form { margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--line); }
.parent-reset-form p { color: var(--ink-soft); line-height: 1.6; margin-bottom: 8px; }
.pin-card.is-missing { border: 1px solid rgba(242, 184, 75, 0.6); background: rgba(242, 184, 75, 0.08); }
@media (max-width: 520px) { .onboarding-form .field-row { grid-template-columns: 1fr; } }
