.civics-page {
  --red: #ff7657;
  --yellow: #ffd84d;
  --blue: #6b4eff;
  --green: #087f6f;
  --purple: #4731b8;
  --paper: #f8f7ff;
  --paper-deep: #ece9ff;
}

.civics-page .challenge-hero h1 em { color: var(--blue); }
.civics-page .standards-section { background: #f0eeff; }
.civics-page .research-section { background: #f8f7ff; }
.civics-page .assessment-section { background: #ffd84d; }
.civics-page .progress-panel li.is-complete a span { background: var(--yellow); border-color: var(--yellow); }

.solo-board {
  position: relative;
  width: min(44vw, 600px);
  aspect-ratio: .96;
  border: 2px solid var(--ink);
  border-radius: 30px;
  background: linear-gradient(145deg, #eeeaff, #fff 56%, #fff1c2);
  box-shadow: 0 10px 30px rgba(3, 37, 46, .14);
}

.solo-board::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 2px dashed rgba(3, 37, 46, .2);
  border-radius: 20px;
}

.solo-track {
  position: absolute;
  inset: 22% 20%;
  border: 10px solid rgba(107, 78, 255, .22);
  border-radius: 42%;
}

.solo-score {
  position: absolute;
  z-index: 4;
  top: 7%;
  left: 7%;
  width: 118px;
  padding: 13px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
}

.solo-score span,
.solo-score strong,
.solo-score small { display: block; }
.solo-score strong { color: var(--yellow); font-size: 2rem; line-height: 1.1; }
.solo-score small { margin-top: 4px; font-size: .72rem; }

.solo-space {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 88px;
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 0 rgba(3, 37, 46, .18);
}

.solo-space b { font-size: 1.6rem; line-height: 1; }
.solo-space span { font-size: .8rem; font-weight: 800; }
.space-one { left: 18%; bottom: 16%; background: var(--yellow); }
.space-two { left: 42%; top: 46%; background: var(--red); }
.space-three { right: 15%; top: 23%; background: #c8f3ec; }
.space-four { right: 7%; top: 6%; color: #fff; background: var(--blue); }

.solo-pawn {
  position: absolute;
  z-index: 5;
  left: 46%;
  bottom: 23%;
  width: 30px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: 50% 50% 32% 32%;
  background: var(--blue);
}

.solo-pawn::after {
  content: "";
  position: absolute;
  left: -8px;
  bottom: -7px;
  width: 42px;
  height: 10px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--blue);
}

.solo-card {
  position: absolute;
  z-index: 6;
  right: 8%;
  bottom: 7%;
  width: min(52%, 245px);
  padding: 17px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 0 rgba(3, 37, 46, .18);
}

.solo-card span,
.solo-card strong,
.solo-card small { display: block; }
.solo-card span { font-size: .76rem; font-weight: 800; }
.solo-card strong { margin: 7px 0 18px; font-size: 1.25rem; line-height: 1.2; }
.solo-card small { border-top: 1px solid rgba(3,37,46,.25); padding-top: 8px; }

.independent-note {
  max-width: 1250px;
  margin: 28px auto 0;
  padding: 16px 18px;
  border: 2px solid rgba(255,255,255,.65);
  border-radius: 12px;
  color: rgba(255,255,255,.9);
}

.translation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1250px;
  margin: 0 auto;
}

.translation-grid article {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 0 rgba(3,37,46,.14);
}

.translation-head {
  padding: 16px 20px;
  border-bottom: 2px solid var(--ink);
  font-size: 1.15rem;
  font-weight: 850;
}

.translation-head.keep { background: #c8f3ec; }
.translation-head.change { background: var(--red); }
.translation-head.add { background: var(--yellow); }
.translation-grid ul { margin: 0; padding: 20px 24px 22px 42px; }
.translation-grid li + li { margin-top: 10px; }

.solo-study-section {
  padding: clamp(64px, 8vw, 108px) clamp(20px, 7vw, 110px);
  border-bottom: 3px solid var(--ink);
  background: #e7f6f3;
}

.solo-study-heading {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: end;
  max-width: 1250px;
  margin: 0 auto 46px;
}

.solo-study-heading h2 {
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 5.2vw, 4.7rem);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.solo-study-heading > p { max-width: 68ch; margin: 0; }

.solo-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1250px;
  margin: 0 auto;
}

.solo-game-grid > article {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 0 rgba(3,37,46,.14);
}

.game-number {
  display: grid;
  place-items: center;
  width: 44px;
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-weight: 850;
}

.solo-game-grid h3 {
  margin: 22px 0 18px;
  font-size: 1.65rem;
  line-height: 1.2;
}

.solo-game-grid h3 a { text-underline-offset: 5px; }
.solo-game-grid dl { display: grid; gap: 14px; margin: 0; }
.solo-game-grid dl div { padding-top: 14px; border-top: 1px solid rgba(3,37,46,.2); }
.solo-game-grid dt { margin-bottom: 4px; font-weight: 850; }
.solo-game-grid dd { margin: 0; font-size: .95rem; line-height: 1.65; }

.analysis-questions {
  margin-top: auto;
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--paper-deep);
}

.analysis-questions strong { display: block; margin-bottom: 5px; }
.analysis-questions p { margin: 0; font-size: .94rem; }

.model-reading {
  margin: 14px 0 0;
  padding: 16px 18px;
  border-left: 5px solid var(--blue);
  background: #f0eeff;
  font-size: .94rem;
}

.model-reading strong,
.model-reading span { display: block; }
.model-reading strong { margin-bottom: 5px; }

.ela-study-panel {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 28px;
  max-width: 1250px;
  margin: 34px auto 0;
  padding: 26px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  color: #fff;
  background: var(--ink);
}

.ela-study-panel h3 { margin: 0; font-size: 1.8rem; line-height: 1.2; }
.ela-study-panel ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ela-study-panel li { display: grid; grid-template-columns: 170px 1fr; gap: 16px; }
.ela-study-panel li strong { color: var(--yellow); }
.ela-study-panel > p { grid-column: 1 / -1; margin: 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.3); }
.ela-study-panel a { font-weight: 800; text-underline-offset: 4px; }

.ela-path {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 28px 42px;
  max-width: 1250px;
  margin: 24px auto 0;
  padding: 26px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 0 rgba(3,37,46,.14);
}

.ela-path-heading h3 { margin: 0 0 10px; font-size: 1.8rem; line-height: 1.2; }
.ela-path-heading > p:last-child { margin: 0; }
.ela-path ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ela-path li { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: start; }
.ela-path li > span {
  display: grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-weight: 850;
}
.ela-path li strong { display: block; margin-top: 4px; }
.ela-path li p { margin: 2px 0 0; }
.ela-path blockquote {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px 20px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--paper-deep);
}
.ela-path blockquote strong { display: block; margin-bottom: 5px; }
.ela-path blockquote p { margin: 0; }

@media (max-width: 1050px) {
  .solo-board { width: min(86vw, 600px); margin: 20px auto; }
  .solo-game-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .translation-grid { grid-template-columns: 1fr; }
  .solo-study-heading,
  .ela-study-panel,
  .ela-path { grid-template-columns: 1fr; }
  .ela-study-panel li { grid-template-columns: 1fr; gap: 3px; }
  .solo-board { width: min(92vw, 520px); }
  .solo-space { width: 70px; }
  .solo-card { width: 58%; }
}

@media (max-width: 480px) {
  .solo-score { width: 100px; }
  .solo-space { width: 58px; border-radius: 12px; }
  .solo-space b { font-size: 1.25rem; }
  .solo-space span { font-size: .66rem; }
  .solo-card { right: 5%; width: 64%; padding: 13px; }
}
