* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --ink: #f5f8fb;
  --ink-soft: rgba(245, 248, 251, 0.78);
  --ink-muted: rgba(245, 248, 251, 0.58);
  --line: rgba(214, 224, 228, 0.24);
  --line-strong: rgba(245, 248, 251, 0.44);
  --panel: rgba(7, 14, 19, 0.62);
  --panel-strong: rgba(8, 16, 22, 0.82);
  --steel: #9fb0b7;
  --amber: #ffc857;
  --red: #d62929;
  --red-deep: #8f1616;
  --cyan: #7fd8ff;
  --shadow: rgba(0, 0, 0, 0.42);
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: #06090d;
  color: var(--ink);
}

body {
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

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

button {
  border: 0;
}

.vr-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(127, 216, 255, 0.14), transparent 36%),
    linear-gradient(180deg, #05080c 0%, #081015 100%);
}

.landing {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background: #05090d;
}

.vr-viewer {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #05090d;
  cursor: grab;
}

.vr-viewer:active {
  cursor: grabbing;
}

.vr-viewer canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.vr-viewer__fallback {
  position: absolute;
  inset: 0;
  background-image: url("./assets/military-720vr-seamless-youth.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
  transition: opacity 380ms ease;
}

.vr-viewer.is-loaded .vr-viewer__fallback {
  opacity: 0;
}

.vr-viewer.is-fallback canvas {
  display: none;
}

.vr-viewer__loading {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  margin: 0;
  padding: 10px 14px;
  transform: translate(-50%, -50%);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(4, 8, 11, 0.72);
  color: var(--ink-soft);
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
}

.vr-viewer.is-loaded .vr-viewer__loading,
.vr-viewer.is-fallback .vr-viewer__loading {
  display: none;
}

.scene-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 5, 8, 0.74) 0%, rgba(2, 5, 8, 0.28) 38%, rgba(2, 5, 8, 0.16) 62%, rgba(2, 5, 8, 0.66) 100%),
    linear-gradient(180deg, rgba(2, 6, 10, 0.34) 0%, rgba(2, 6, 10, 0.05) 32%, rgba(2, 6, 10, 0.44) 100%);
}

.top-rail {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 20px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
}

.top-rail span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(4, 9, 13, 0.34);
  backdrop-filter: blur(8px);
}

.home {
  position: relative;
  z-index: 4;
  width: min(100%, 1440px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 90px 40px 34px;
  display: grid;
  grid-template-rows: minmax(310px, 1fr) auto;
  gap: 28px;
}

.hero {
  align-self: center;
  max-width: 680px;
  padding-left: 22px;
  border-left: 5px solid var(--red);
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
}

.hero__eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 1rem;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: 4.4rem;
  line-height: 1.04;
  font-weight: 900;
}

.hero__text {
  margin: 22px 0 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.16rem;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.hero__primary,
.hero__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.hero__primary {
  background: linear-gradient(135deg, #f3d27a, #e6a32a);
  color: #1c1204;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
}

.hero__secondary {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(8, 15, 20, 0.52);
  color: var(--ink);
  backdrop-filter: blur(10px);
}

.hero__primary:hover,
.hero__primary:focus-visible,
.hero__secondary:hover,
.hero__secondary:focus-visible {
  transform: translateY(-2px);
}

.hero__secondary:hover,
.hero__secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.64);
  background: rgba(13, 24, 32, 0.72);
}

.hero__primary:focus-visible,
.hero__secondary:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: 3px;
}

.portal-panel {
  align-self: end;
}

.portal-panel__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  color: var(--ink);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.portal-panel__heading p {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 800;
}

.portal-panel__heading span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

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

.portal-card {
  position: relative;
  min-height: 180px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(5, 12, 17, 0.68);
  color: var(--ink);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.portal-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--amber));
}

.portal-card:hover,
.portal-card:focus-within,
.portal-card:focus-visible,
.portal-card.is-active {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(8, 18, 24, 0.82);
}

.portal-card.is-active {
  border-color: rgba(255, 207, 91, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(255, 207, 91, 0.16),
    0 20px 50px rgba(0, 0, 0, 0.34);
}

.portal-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.88);
  outline-offset: 3px;
}

.portal-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.portal-card__number,
.portal-card__tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 5px;
  font-size: 0.82rem;
  font-weight: 800;
}

.portal-card__number {
  padding: 0 9px;
  background: rgba(214, 41, 41, 0.92);
  color: #fff;
}

.portal-card__tag {
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--ink-soft);
}

.portal-card__title {
  margin: 0 0 10px;
  font-size: 1.28rem;
  line-height: 1.35;
}

.portal-card__desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
}

.portal-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
}

.portal-card__button,
.portal-card__link,
.embed-panel__link,
.embed-panel__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.portal-card__button {
  background: #f0c75a;
  color: #1b1405;
}

.portal-card__link,
.embed-panel__link {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}

.portal-card__button:hover,
.portal-card__button:focus-visible,
.portal-card__link:hover,
.portal-card__link:focus-visible,
.embed-panel__link:hover,
.embed-panel__link:focus-visible,
.embed-panel__close:hover,
.embed-panel__close:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.58);
}

.portal-card__button:focus-visible,
.portal-card__link:focus-visible,
.embed-panel__link:focus-visible,
.embed-panel__close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.vr-toolbar {
  position: absolute;
  right: 28px;
  top: 70px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vr-tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(5, 10, 14, 0.44);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.vr-tool:hover,
.vr-tool:focus-visible,
.vr-tool.is-active {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(10, 19, 25, 0.78);
}

.vr-tool:hover,
.vr-tool:focus-visible {
  transform: translateY(-2px);
}

.vr-tool:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.vr-tool__icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.vr-tool__icon--cruise::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

.vr-tool__icon--reset::before,
.vr-tool__icon--reset::after {
  content: "";
  position: absolute;
}

.vr-tool__icon--reset::before {
  inset: 2px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
}

.vr-tool__icon--reset::after {
  right: 0;
  top: 1px;
  width: 6px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(16deg);
}

.vr-tool__icon--zoom::before,
.vr-tool__icon--zoom::after {
  content: "";
  position: absolute;
}

.vr-tool__icon--zoom::before {
  left: 1px;
  top: 1px;
  width: 9px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.vr-tool__icon--zoom::after {
  right: 1px;
  bottom: 1px;
  width: 7px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.vr-hotspots {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.vr-hotspot {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px 0 9px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 6px;
  background: rgba(5, 11, 15, 0.58);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.84rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(10px);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.vr-hotspot::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 2px solid var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(255, 200, 87, 0.18);
}

.vr-hotspot.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.vr-hotspot:hover,
.vr-hotspot:focus-visible {
  transform: translate(-50%, -50%) translateY(-2px);
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(10, 18, 24, 0.84);
}

.vr-hotspot:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.embed-panel {
  position: relative;
  z-index: 8;
  width: min(100% - 48px, 1320px);
  margin: 28px auto 48px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(8, 17, 23, 0.96), rgba(4, 10, 14, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.embed-panel.is-hidden {
  display: none;
}

.embed-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}

.embed-panel__eyebrow {
  margin: 0 0 8px;
  color: var(--amber);
  font-size: 0.88rem;
  font-weight: 800;
}

.embed-panel__title {
  margin: 0;
  font-size: 2rem;
  line-height: 1.24;
}

.embed-panel__text {
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.embed-panel__frame-shell {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #000;
  min-height: 720px;
}

.embed-panel__frame {
  width: 100%;
  height: 72vh;
  min-height: 720px;
  border: 0;
  background: #000;
}

.embed-panel__close {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  min-height: 42px;
  padding: 0 14px;
  background: rgba(107, 18, 18, 0.82);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
}

.lesson-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lesson-modal__backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
  background: rgba(3, 8, 12, 0.9);
  backdrop-filter: blur(4px);
}

.lesson-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(100% - 12px, 1900px);
  height: min(94vh, 1040px);
  max-height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(10, 18, 24, 0.98), rgba(5, 11, 14, 0.98)),
    rgba(5, 11, 14, 0.9);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.46);
  overflow: hidden;
  transition: width 220ms ease, height 220ms ease;
}

.lesson-modal__header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.lesson-modal__title-wrap {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lesson-modal__tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lesson-modal__tool {
  min-height: 38px;
  min-width: 38px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(16, 24, 32, 0.84);
  color: #fff;
  font-size: 1.32rem;
  line-height: 1;
  cursor: pointer;
}

.lesson-modal__tool:hover,
.lesson-modal__tool:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(25, 35, 44, 0.94);
}

.lesson-modal__tool:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

#closeLessonModalButton {
  background: rgba(107, 18, 18, 0.88);
}

.lesson-modal__tool.is-hidden {
  display: none;
}

.lesson-viewer {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  min-width: 0;
  overflow: hidden;
}

.lesson-slide {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(126, 214, 255, 0.14), transparent 52%),
    radial-gradient(circle at 85% 100%, rgba(255, 190, 95, 0.12), transparent 48%),
    linear-gradient(180deg, rgba(9, 16, 22, 0.88), rgba(7, 12, 16, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  padding: 14px;
}

.lesson-slide__header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lesson-slide__activity {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(127, 220, 255, 0.45);
  background: rgba(24, 52, 68, 0.48);
  color: #b6efff;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  line-height: 1;
}

.lesson-slide__title {
  margin: 0;
  line-height: 1.28;
  font-size: clamp(1.15rem, 1.85vw, 1.8rem);
  color: #eff5fa;
  text-shadow: 0 2px 26px rgba(6, 28, 42, 0.55);
}

.lesson-slide__summary {
  margin: 0;
  color: #d8e4ec;
  font-size: 0.95rem;
  line-height: 1.65;
}

.lesson-slide__points {
  margin: 0;
  padding-left: 1.3em;
  display: grid;
  gap: 6px;
  color: #dce5eb;
}

.lesson-slide__points li {
  line-height: 1.6;
  font-size: 0.92rem;
}

.lesson-slide__points li::marker {
  content: "▌ ";
  color: #7ecfef;
}

.lesson-slide__media-wrap {
  position: relative;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, rgba(2, 8, 12, 0.96), rgba(8, 16, 22, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 18px 40px rgba(0, 0, 0, 0.34);
  overflow: hidden;
  min-height: 0;
  flex: 1;
  min-width: 0;
}

.lesson-viewer__video {
  width: 100%;
  height: auto;
  max-height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #000;
  border: 0;
  display: block;
}

.lesson-slide--timeline {
  position: relative;
  gap: 18px;
  padding: 30px 24px 24px;
  overflow: hidden;
  color: #17100a;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 234, 178, 0.34), transparent 30%),
    radial-gradient(circle at 50% 72%, rgba(255, 210, 120, 0.22), transparent 38%),
    linear-gradient(90deg, rgba(16, 10, 6, 0.54), transparent 20%, transparent 80%, rgba(16, 10, 6, 0.58)),
    linear-gradient(180deg, #6d5134 0%, #9a7550 46%, #5e432c 100%);
}

.lesson-slide--timeline::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(7deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 8px),
    repeating-linear-gradient(96deg, rgba(0, 0, 0, 0.08) 0 1px, transparent 1px 9px);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.lesson-timeline__title {
  position: relative;
  z-index: 1;
  margin: 0;
  text-align: center;
  color: #080604;
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.12;
  text-shadow: 0 2px 18px rgba(255, 230, 180, 0.46);
}

.lesson-timeline {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 6px 4px 14px;
}

.lesson-timeline__track {
  position: relative;
  min-width: 1640px;
  height: 100%;
  min-height: 520px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 18px;
}

.lesson-timeline__axis {
  position: absolute;
  left: -24px;
  right: -24px;
  top: 50%;
  z-index: 0;
  height: 10px;
  transform: translateY(-50%);
  background: #050403;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.14), 0 10px 20px rgba(0, 0, 0, 0.22);
}

.lesson-timeline__item {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(170px, 1fr) 78px minmax(170px, 1fr);
  min-width: 0;
}

.lesson-timeline__card {
  width: 100%;
  min-height: 156px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  align-self: end;
  justify-self: center;
  padding: 20px 14px;
  border: 8px solid #c5c5c8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #090909;
  text-align: center;
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.22);
}

.lesson-timeline__item--bottom .lesson-timeline__card {
  grid-row: 3;
  align-self: start;
}

.lesson-timeline__event-title {
  margin: 0;
  font-size: 1.42rem;
  font-weight: 800;
  line-height: 1.24;
}

.lesson-timeline__treaty {
  margin: 0;
  color: #ef1414;
  font-size: 1.14rem;
  line-height: 1.2;
}

.lesson-timeline__details {
  display: grid;
  gap: 3px;
}

.lesson-timeline__details p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.32;
}

.lesson-timeline__year {
  grid-row: 2;
  align-self: center;
  justify-self: center;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f31313;
  color: #fff;
  font-size: 1.42rem;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.lesson-slide--memorial {
  position: relative;
  justify-content: flex-end;
  padding: clamp(28px, 4vw, 70px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(10, 8, 6, 0.78) 0%, rgba(10, 8, 6, 0.34) 45%, rgba(10, 8, 6, 0.1) 100%),
    linear-gradient(0deg, rgba(5, 4, 3, 0.72) 0%, rgba(5, 4, 3, 0.2) 52%, rgba(5, 4, 3, 0.28) 100%),
    var(--memorial-bg-primary),
    var(--memorial-bg-fallback);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.lesson-slide--memorial::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 64% 38%, rgba(255, 228, 155, 0.24), transparent 36%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 32%, rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.lesson-memorial__copy {
  position: relative;
  z-index: 1;
  width: min(920px, 70%);
  padding-left: clamp(16px, 2vw, 26px);
  border-left: 7px solid #e7c16d;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.76);
}

.lesson-memorial__line {
  margin: 0;
  color: #fff3d2;
  font-size: clamp(1.45rem, 2.6vw, 3.05rem);
  font-weight: 800;
  line-height: 1.62;
  letter-spacing: 0;
}

.lesson-slide--quote {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.62fr);
  align-items: center;
  gap: clamp(28px, 4vw, 76px);
  padding: clamp(36px, 5vw, 86px);
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 42%, rgba(226, 177, 92, 0.24), transparent 28%),
    radial-gradient(circle at 8% 12%, rgba(190, 34, 34, 0.28), transparent 32%),
    linear-gradient(135deg, #130a08 0%, #2a1110 42%, #0b1117 100%);
}

.lesson-slide--quote::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 218, 125, 0.18), transparent 24%, transparent 76%, rgba(255, 218, 125, 0.12)),
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 16px);
  pointer-events: none;
}

.lesson-quote__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(22px, 3vw, 40px);
  min-width: 0;
}

.lesson-quote__activity {
  margin: 0;
  color: #f8d98a;
  font-size: clamp(1.4rem, 2.1vw, 2.35rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: 0;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.lesson-quote__quote {
  position: relative;
  margin: 0;
  padding: clamp(26px, 3.8vw, 56px) clamp(26px, 4vw, 60px);
  border-left: 8px solid #dcb15e;
  border-radius: 8px;
  background: rgba(255, 247, 224, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255, 221, 150, 0.16),
    0 28px 54px rgba(0, 0, 0, 0.28);
  color: #fff6dc;
  font-size: clamp(2rem, 3.65vw, 4.5rem);
  font-weight: 800;
  line-height: 1.54;
  letter-spacing: 0;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.56);
}

.lesson-quote__author {
  margin: 0;
  color: #f7deb2;
  font-size: clamp(1.35rem, 2.1vw, 2.25rem);
  font-weight: 800;
  line-height: 1;
  text-align: right;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.55);
}

.lesson-quote__portrait {
  position: relative;
  z-index: 1;
  margin: 0;
  justify-self: center;
  width: min(100%, 390px);
  aspect-ratio: 490 / 735;
  border-radius: 8px;
  overflow: hidden;
  border: 8px solid rgba(238, 201, 126, 0.82);
  background: #140b09;
  box-shadow:
    0 34px 76px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(255, 243, 206, 0.32);
}

.lesson-quote__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 48px rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.lesson-quote__portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.lesson-slide--tech {
  position: relative;
  gap: clamp(20px, 3vw, 36px);
  padding: clamp(34px, 4vw, 60px) clamp(28px, 4vw, 66px);
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(127, 216, 255, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(13, 25, 33, 0.98), rgba(5, 10, 14, 0.98)),
    #05090d;
  color: var(--ink);
}

.lesson-slide--tech::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(127, 216, 255, 0.08) 0 1px, transparent 1px 78px),
    repeating-linear-gradient(0deg, rgba(127, 216, 255, 0.05) 0 1px, transparent 1px 78px),
    linear-gradient(90deg, rgba(214, 41, 41, 0.18), transparent 36%, rgba(255, 200, 87, 0.08));
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.3));
  pointer-events: none;
}

.lesson-slide--tech::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--red), var(--amber), var(--cyan));
  opacity: 0.88;
  pointer-events: none;
}

.lesson-tech__header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
  padding-bottom: clamp(14px, 2vw, 24px);
  border-bottom: 1px solid rgba(127, 216, 255, 0.24);
}

.lesson-tech__title {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(1.65rem, 2.65vw, 3.05rem);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: 0;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.46);
}

.lesson-tech__sketch {
  justify-self: end;
  width: 178px;
  height: 68px;
  border: 1px solid rgba(127, 216, 255, 0.28);
  border-radius: 8px;
  opacity: 0.9;
  background:
    linear-gradient(135deg, transparent 0 42%, rgba(127, 216, 255, 0.34) 43% 45%, transparent 46%),
    linear-gradient(45deg, transparent 0 52%, rgba(255, 200, 87, 0.28) 53% 55%, transparent 56%),
    repeating-linear-gradient(90deg, rgba(127, 216, 255, 0.12) 0 1px, transparent 1px 22px),
    rgba(5, 13, 18, 0.62);
  box-shadow: inset 0 0 24px rgba(127, 216, 255, 0.08);
}

.lesson-tech {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(14px, 1.7vw, 28px);
  padding: clamp(24px, 3vw, 48px) 0 clamp(16px, 2vw, 30px);
}

.lesson-tech__rail {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: clamp(54px, 7vw, 78px);
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--amber), var(--cyan));
  box-shadow:
    0 0 22px rgba(214, 41, 41, 0.55),
    0 0 36px rgba(127, 216, 255, 0.22);
}

.lesson-tech__rail::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  width: 18px;
  height: 18px;
  border-top: 4px solid var(--cyan);
  border-right: 4px solid var(--cyan);
  transform: translateY(-50%) rotate(45deg);
  filter: drop-shadow(0 0 12px rgba(127, 216, 255, 0.65));
}

.lesson-tech__item {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.lesson-tech__card {
  position: relative;
  width: 100%;
  min-height: 238px;
  padding: clamp(16px, 1.6vw, 22px);
  border: 1px solid rgba(127, 216, 255, 0.22);
  border-left: 4px solid rgba(214, 41, 41, 0.94);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(13, 27, 36, 0.88), rgba(7, 14, 19, 0.86));
  color: #eef6fb;
  font-family: "KaiTi", "STKaiti", "SimKai", serif;
  font-weight: 700;
  line-height: 1.5;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 22px 48px rgba(0, 0, 0, 0.24);
}

.lesson-tech__card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--amber), transparent);
}

.lesson-tech__heading {
  margin: 0 0 6px;
  color: #f8d98a;
  font-size: clamp(1.04rem, 1.28vw, 1.36rem);
  line-height: 1.28;
}

.lesson-tech__card p {
  margin: 0;
  color: rgba(245, 248, 251, 0.9);
  font-size: clamp(0.88rem, 1vw, 1.05rem);
}

.lesson-tech__accent {
  color: #ffcf67;
  text-shadow: 0 0 14px rgba(255, 200, 87, 0.28);
}

.lesson-tech__marker {
  position: relative;
  width: clamp(42px, 4vw, 58px);
  height: clamp(42px, 4vw, 58px);
  margin-top: auto;
  border: 3px solid rgba(255, 200, 87, 0.86);
  border-radius: 999px;
  background: rgba(7, 14, 19, 0.96);
  box-shadow:
    inset 0 0 0 6px rgba(214, 41, 41, 0.34),
    0 0 22px rgba(255, 200, 87, 0.3);
}

.lesson-tech__year {
  display: block;
  color: #f5f8fb;
  font-size: clamp(1.25rem, 1.7vw, 1.78rem);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 18px rgba(127, 216, 255, 0.28);
}

.lesson-slide--budget {
  position: relative;
  gap: clamp(22px, 3vw, 42px);
  padding: clamp(34px, 4vw, 64px);
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 200, 87, 0.16), transparent 30%),
    radial-gradient(circle at 18% 8%, rgba(214, 41, 41, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(12, 24, 32, 0.98), rgba(5, 10, 14, 0.98)),
    #05090d;
  color: var(--ink);
}

.lesson-slide--budget::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(127, 216, 255, 0.07) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(0deg, rgba(127, 216, 255, 0.05) 0 1px, transparent 1px 84px),
    linear-gradient(115deg, rgba(214, 41, 41, 0.14), transparent 42%, rgba(255, 200, 87, 0.09));
  pointer-events: none;
}

.lesson-budget__header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  padding-bottom: clamp(16px, 2vw, 24px);
  border-bottom: 1px solid rgba(127, 216, 255, 0.24);
}

.lesson-budget__activity {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(1.55rem, 2.55vw, 2.95rem);
  font-weight: 800;
  line-height: 1.24;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.46);
}

.lesson-budget__label {
  padding: 12px 18px;
  border: 1px solid rgba(255, 200, 87, 0.45);
  border-radius: 8px;
  background: rgba(255, 200, 87, 0.08);
  color: #ffd77c;
  font-size: clamp(1.5rem, 2.1vw, 2.45rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 20px rgba(255, 200, 87, 0.22);
}

.lesson-budget__chart {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: clamp(20px, 3vw, 54px);
  padding: clamp(26px, 4vw, 58px) clamp(8px, 2vw, 28px) clamp(10px, 2vw, 24px);
}

.lesson-budget__trend {
  position: absolute;
  left: 8%;
  right: 7%;
  top: 16%;
  height: 46%;
  border-top: 8px solid rgba(255, 200, 87, 0.8);
  border-right: 8px solid rgba(255, 200, 87, 0.8);
  border-radius: 0 100% 0 0;
  transform: skewX(-12deg) rotate(-4deg);
  transform-origin: left bottom;
  filter: drop-shadow(0 0 18px rgba(255, 200, 87, 0.34));
  pointer-events: none;
}

.lesson-budget__trend::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -24px;
  width: 34px;
  height: 34px;
  border-top: 8px solid rgba(255, 200, 87, 0.86);
  border-right: 8px solid rgba(255, 200, 87, 0.86);
  transform: rotate(45deg);
}

.lesson-budget__item {
  position: relative;
  z-index: 1;
  min-width: 0;
  height: 100%;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.lesson-budget__bar {
  position: relative;
  width: min(72%, 138px);
  height: var(--budget-level);
  min-height: 138px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(18px, 2vw, 28px) 10px 0;
  border: 1px solid rgba(255, 200, 87, 0.24);
  border-radius: 8px 8px 4px 4px;
  background:
    linear-gradient(180deg, rgba(255, 204, 101, 0.95), rgba(214, 41, 41, 0.84)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 48%, rgba(0, 0, 0, 0.16));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 22px 42px rgba(0, 0, 0, 0.34),
    0 0 26px rgba(214, 41, 41, 0.18);
}

.lesson-budget__bar::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: -12px;
  height: 22px;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, #ffe39a, #f6b74f);
  transform: skewX(-22deg);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.lesson-budget__bar::after {
  content: "";
  position: absolute;
  left: -16px;
  right: -16px;
  bottom: -12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(127, 216, 255, 0.18);
  filter: blur(8px);
}

.lesson-budget__amount {
  position: relative;
  z-index: 1;
  color: #170b08;
  font-size: clamp(1rem, 1.35vw, 1.48rem);
  font-weight: 900;
  line-height: 1.32;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 238, 188, 0.32);
}

.lesson-budget__year {
  color: #f5f8fb;
  font-size: clamp(1.18rem, 1.65vw, 1.72rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 18px rgba(127, 216, 255, 0.24);
}

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

.lesson-modal__pager-btn {
  min-height: 36px;
  min-width: 36px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.lesson-modal__pager-btn:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.lesson-modal__pager-btn:hover:not(:disabled),
.lesson-modal__pager-btn:focus-visible:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.58);
}

.lesson-modal__pager-btn:focus-visible:not(:disabled) {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.lesson-modal__pager-text {
  position: absolute;
}

.lesson-modal-open {
  overflow: hidden;
}

.lesson-modal.is-hidden {
  display: none;
}

.lesson-modal__dialog.is-maximized {
  width: calc(100% - 8px);
  height: calc(100vh - 8px);
  max-height: calc(100vh - 8px);
  border-radius: 4px;
}

.lesson-modal-maximized .lesson-modal__footer {
  opacity: 0;
  pointer-events: none;
  height: 0;
}

.lesson-modal__footer.is-hidden {
  display: none;
}

@media (max-width: 1120px) {
  .portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero h1 {
    font-size: 3.6rem;
  }

  .lesson-viewer {
    min-height: 360px;
  }

  .lesson-viewer__video {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .lesson-timeline__title {
    font-size: 2.45rem;
  }

  .lesson-timeline__track {
    min-width: 1380px;
  }

  .lesson-timeline__event-title {
    font-size: 1.24rem;
  }

  .lesson-timeline__treaty {
    font-size: 1rem;
  }

  .lesson-timeline__details p {
    font-size: 0.88rem;
  }
}

@media (max-width: 780px) {
  .landing {
    min-height: 100svh;
  }

  .top-rail {
    left: 14px;
    right: 14px;
    top: 12px;
    gap: 8px;
    font-size: 0.78rem;
  }

  .top-rail span {
    min-height: 28px;
    padding: 0 8px;
  }

  .top-rail span:nth-child(2) {
    display: none;
  }

  .vr-toolbar {
    right: 14px;
    top: 54px;
    flex-direction: column;
    align-items: stretch;
  }

  .vr-tool {
    min-height: 36px;
    padding: 0 9px;
  }

  .home {
    min-height: 100svh;
    padding: 112px 16px 18px;
    grid-template-rows: minmax(260px, 1fr) auto;
    gap: 20px;
  }

  .hero {
    max-width: 440px;
    padding-left: 16px;
    border-left-width: 4px;
  }

  .hero h1 {
    font-size: 2.66rem;
  }

  .hero__text {
    font-size: 1rem;
    line-height: 1.68;
  }

  .hero__actions {
    margin-top: 22px;
  }

  .portal-panel__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .portal-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .portal-card {
    min-height: 0;
    padding: 14px;
  }

  .portal-card__desc {
    display: none;
  }

  .lesson-modal {
    padding: 12px;
  }

  .lesson-modal__dialog {
    width: calc(100% - 18px);
    max-height: calc(100vh - 24px);
    padding: 12px;
    gap: 10px;
  }

  .lesson-modal__header {
    flex-direction: column;
    gap: 6px;
  }

  .lesson-modal__title {
    font-size: 1.35rem;
  }

  .lesson-modal__footer {
    flex-wrap: wrap;
  }

  .lesson-modal__pager-text {
    width: 100%;
    order: -1;
  }

  .lesson-viewer {
    min-height: 300px;
  }

  .lesson-viewer__video {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .lesson-slide {
    gap: 10px;
    padding: 10px;
  }

  .lesson-slide__title {
    font-size: 1.03rem;
    line-height: 1.35;
  }

  .lesson-slide__summary,
  .lesson-slide__points li {
    font-size: 0.84rem;
  }

  .lesson-slide--timeline {
    padding: 16px 10px 12px;
  }

  .lesson-timeline__title {
    font-size: 1.65rem;
    line-height: 1.22;
  }

  .lesson-timeline__track {
    min-width: 1120px;
    min-height: 470px;
    gap: 10px;
  }

  .lesson-timeline__item {
    grid-template-rows: minmax(148px, 1fr) 64px minmax(148px, 1fr);
  }

  .lesson-timeline__card {
    min-height: 136px;
    padding: 14px 10px;
    border-width: 5px;
    gap: 7px;
  }

  .lesson-timeline__event-title {
    font-size: 1rem;
  }

  .lesson-timeline__treaty {
    font-size: 0.86rem;
  }

  .lesson-timeline__details p {
    font-size: 0.78rem;
  }

  .lesson-timeline__year {
    width: 54px;
    height: 54px;
    font-size: 1.08rem;
  }

  .lesson-slide--memorial {
    padding: 24px 18px;
    background-position: 58% center;
  }

  .lesson-memorial__copy {
    width: min(100%, 640px);
    padding-left: 14px;
    border-left-width: 5px;
  }

  .lesson-memorial__line {
    font-size: 1.16rem;
    line-height: 1.72;
  }

  .lesson-slide--quote {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 16px;
    padding: 24px 18px;
    overflow: auto;
  }

  .lesson-quote__content {
    gap: 14px;
  }

  .lesson-quote__activity {
    font-size: 1.1rem;
  }

  .lesson-quote__quote {
    padding: 18px 18px 18px 22px;
    border-left-width: 5px;
    font-size: 1.34rem;
    line-height: 1.62;
  }

  .lesson-quote__author {
    font-size: 1rem;
  }

  .lesson-quote__portrait {
    width: min(52vw, 220px);
    border-width: 5px;
  }

  .lesson-slide--tech {
    padding: 20px 14px;
    overflow: auto;
  }

  .lesson-tech__header {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .lesson-tech__title {
    font-size: 1.34rem;
  }

  .lesson-tech__sketch {
    display: none;
  }

  .lesson-tech {
    min-width: 1020px;
    padding: 24px 0 22px;
    gap: 18px;
  }

  .lesson-tech__rail {
    bottom: 54px;
    height: 4px;
  }

  .lesson-tech__rail::after {
    right: -4px;
    width: 14px;
    height: 14px;
    border-top-width: 3px;
    border-right-width: 3px;
  }

  .lesson-tech__card {
    min-height: 190px;
    padding: 14px;
  }

  .lesson-tech__heading {
    font-size: 1rem;
  }

  .lesson-tech__card p {
    font-size: 0.86rem;
  }

  .lesson-tech__marker {
    width: 42px;
    height: 42px;
  }

  .lesson-slide--budget {
    padding: 20px 14px;
    overflow: auto;
  }

  .lesson-budget__header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
  }

  .lesson-budget__activity {
    font-size: 1.24rem;
  }

  .lesson-budget__label {
    justify-self: start;
    padding: 9px 12px;
    font-size: 1.26rem;
  }

  .lesson-budget__chart {
    min-width: 860px;
    min-height: 430px;
    gap: 22px;
    padding: 34px 8px 14px;
  }

  .lesson-budget__item {
    min-height: 360px;
  }

  .lesson-budget__bar {
    width: 108px;
    min-height: 118px;
  }

  .lesson-budget__amount {
    font-size: 0.9rem;
  }

  .lesson-budget__year {
    font-size: 1rem;
  }

  .embed-panel {
    width: calc(100% - 24px);
    margin: 18px auto 34px;
    padding: 14px;
  }

  .embed-panel__header {
    flex-direction: column;
  }

  .embed-panel__title {
    font-size: 1.5rem;
  }

  .embed-panel__frame-shell,
  .embed-panel__frame {
    min-height: 520px;
  }

  .embed-panel__close {
    right: 12px;
    bottom: 12px;
  }
}

@media (max-width: 460px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero__primary,
  .hero__secondary {
    width: 100%;
  }

  .portal-card__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-card__button,
  .portal-card__link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
