@font-face {
  font-family: 'Lab Symbols';
  src: url('assets/symbols.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: block;
}

@font-face {
  font-family: Barlow;
  src: url('assets/barlow-700.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #fbfaf5;
  --surface: #fffefb;
  --ink: #202d25;
  --muted: #586559;
  --soft-ink: #6c776c;
  --green: #286447;
  --deep-green: #1d4d36;
  --mint: #e9f2e6;
  --line: #e8e8df;
  --yellow: #fff3d7;
  --gold: #946018;
  --rail: 224px;
  font-family: 'PingFang SC', 'Microsoft YaHei UI', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); font-size: 14px; }
body.watch-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: .5; cursor: default; }
img { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
:focus-visible { outline: 2px solid #367454; outline-offset: 4px; }
main:focus, [tabindex='-1']:focus:not(:focus-visible) { outline: none; }

.icon {
  flex: none;
  display: inline-block;
  width: 1em;
  overflow: hidden;
  font-family: 'Lab Symbols';
  font-size: 1.3em;
  font-style: normal;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: normal;
  font-feature-settings: 'liga';
  text-transform: none;
  -webkit-font-smoothing: antialiased;
}

.skip-link { position: fixed; z-index: 4; top: 10px; left: 10px; padding: 10px; background: white; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 2; display: flex; flex-direction: column; width: var(--rail); background: #fffef9; border-right: 1px solid var(--line); padding: 31px 18px 24px; }
.brand { display: flex; align-items: center; gap: 12px; margin: 0 4px 42px; width: fit-content; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; font-weight: 800; white-space: nowrap; }
.brand small { margin-top: 4px; color: #617363; font: 700 9px/1.15 Barlow, sans-serif; letter-spacing: .17em; }
.brand-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; background: var(--green); color: white; font-size: 23px; transform: rotate(-5deg); }
.brand-icon .icon { transform: rotate(5deg); }
.navigation { display: grid; gap: 8px; }
.navigation a, .guide-link { display: flex; align-items: center; gap: 11px; min-height: 47px; padding: 0 12px; border-radius: 10px; color: #536458; font-weight: 650; white-space: nowrap; transition: background-color .16s, color .16s; }
.navigation .icon, .guide-link .icon { font-size: 21px; }
.navigation a:hover, .guide-link:hover { background: #f2f4eb; color: var(--deep-green); }
.navigation [aria-current], .guide-link[aria-current] { color: var(--deep-green); background: #e7f0e3; font-weight: 800; }
.guide-link { margin-top: auto; }

.workspace { margin-left: var(--rail); }
.topbar, main, .noscript { width: min(100%, 1350px); margin-inline: auto; padding-inline: clamp(26px, 3.6vw, 55px); }
.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 79px; gap: 12px; }
.breadcrumb, .toolbar { display: flex; align-items: center; gap: 10px; }
.breadcrumb { color: var(--muted); font-size: 13px; white-space: nowrap; }
.breadcrumb .icon { color: #838e81; }
.breadcrumb > span:last-child { color: var(--ink); font-weight: 750; }
.breadcrumb a:hover { text-decoration: underline; }
.toolbar { gap: 13px; }
.global-search { display: flex; align-items: center; gap: 1px; width: 228px; height: 41px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.global-search:focus-within { border-color: #7caa90; box-shadow: 0 0 0 2px #e2efe4; }
.icon-button { flex: none; display: inline-grid; place-content: center; width: 39px; height: 39px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; color: var(--muted); font-size: 16px; }
.icon-button:hover { background: #edf2e9; color: var(--deep-green); }
.global-search input { min-width: 0; width: 100%; height: 100%; padding: 0 9px 0 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.global-search input::placeholder { color: #68746a; }
.star-pill { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; color: #774907; background: #faedcb; border-radius: 10px; padding-inline: 11px; font-size: 13px; font-weight: 750; white-space: nowrap; }
.star-pill .icon { color: #986613; }
.star-pill:hover { background: #f5e5b7; }
main { padding-bottom: 48px; }

.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 345px; border: 1px solid #e0eddf; border-radius: 24px; overflow: hidden; background: radial-gradient(ellipse at 81% 52%, #d3e8d4 0%, transparent 48%), #e8f1e4; }
.hero-copy { position: relative; z-index: 1; max-width: 63%; padding: 32px 0 36px clamp(30px, 4vw, 54px); }
.hero-label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 6px; background: #d8e9d8; color: #28553b; font-size: 12px; font-weight: 750; letter-spacing: .025em; }
.hero h1 { margin-top: 15px; color: #203d2c; font-size: clamp(34px, 3.55vw, 57px); font-weight: 900; letter-spacing: -.06em; line-height: 1.19; white-space: nowrap; }
.hero h1 span { color: #3b885d; }
.hero p { margin: 14px 0 23px; color: #435f4a; font-size: clamp(13px, 1.15vw, 16px); line-height: 1.75; }
.hero-art { position: absolute; inset: 12px 2.5% 14px 48%; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; pointer-events: none; }
.hero-art img { z-index: 1; width: 100%; max-width: 520px; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 12px #43633c21); animation: settle .55s ease-out both; }
.orbit { position: absolute; left: 5%; right: 8%; top: 17%; bottom: 13%; border: 1px dashed #7daa84a0; border-radius: 50%; transform: rotate(-20deg); }
.orbit-dot { position: absolute; inset: 16% 5% auto auto; width: 8px; height: 8px; border: 2px solid #edbc66; border-radius: 50%; }
.hero-spark { position: absolute; top: 16%; left: 6%; color: #689071; font-size: 24px; }
@keyframes settle { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; width: fit-content; padding: 0 15px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-weight: 750; transition: background-color .16s, border-color .16s, color .16s; }
.button .icon { font-size: 20px; }
.primary { color: white; background: var(--green); }
.primary:hover { background: var(--deep-green); }
.secondary { border-color: var(--line); background: var(--surface); color: var(--green); }
.secondary:hover:not(:disabled), .secondary[aria-pressed='true'] { background: var(--mint); border-color: #d6e5d5; }
.text-link { display: inline-flex; align-items: center; gap: 4px; width: fit-content; color: var(--green); font-size: 13px; font-weight: 750; white-space: nowrap; }
.text-link:hover { color: var(--deep-green); text-decoration: underline; text-underline-offset: 3px; }
.text-link .icon { font-size: 17px; }

.home-grid { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); gap: 22px; margin-top: 31px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.section-heading h2 { font-size: 23px; font-weight: 850; letter-spacing: -.04em; line-height: 1.35; }
.route-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.route-card { display: flex; align-items: center; position: relative; min-width: 0; min-height: 111px; gap: 12px; padding: 14px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .16s, box-shadow .16s; }
.route-card:hover, .growth-card:hover { border-color: #a6c1aa; box-shadow: 0 3px 12px #2d5b4310; }
.route-icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--tone); color: var(--tone-ink); }
.route-icon .icon { font-size: 26px; }
.theme-nature { --tone: #e6f1e3; --tone-ink: #336c43; }
.theme-maker { --tone: #ffefdb; --tone-ink: #9a541c; }
.theme-math { --tone: #efeafa; --tone-ink: #634d9d; }
.theme-ai { --tone: #e3edf8; --tone-ink: #3b608d; }
.route-copy { flex: 1; min-width: 0; }
.route-title { display: flex; flex-wrap: wrap; align-items: center; column-gap: 7px; row-gap: 3px; }
.route-title h3 { font-size: 16px; font-weight: 850; }
.age-tag { display: inline-flex; min-width: max-content; align-items: center; padding: 3px 6px; border-radius: 5px; background: #efefe8; color: #59655a; font-size: 10px; font-weight: 650; }
.route-copy p { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.route-copy small { display: block; margin-top: 6px; color: var(--green); font-size: 11px; font-weight: 700; }
.route-arrow { flex: none; color: #7b8c7d; }
.route-arrow .icon { font-size: 17px; }
.mission-section { display: flex; flex-direction: column; }
.home-mission { position: relative; flex: 1; display: flex; flex-direction: column; align-items: flex-start; min-height: 180px; padding: 18px; border: 1px solid #f2e4c4; border-radius: 15px; background: radial-gradient(circle at 95% 100%, #f9e9be88, transparent 64%), var(--yellow); }
.mission-icon { flex: none; display: grid; place-content: center; width: 42px; height: 42px; border-radius: 12px; background: #f9e5ae; color: #865513; font-size: 19px; }
.mission-reward { position: absolute; top: 17px; right: 15px; display: inline-flex; align-items: center; gap: 3px; padding: 4px 7px; border-radius: 6px; background: #fae7b7; color: #79531b; font-size: 11px; font-weight: 750; }
.home-mission h3 { margin-top: 12px; font-size: 20px; font-weight: 850; }
.home-mission p { margin: 6px 0 13px; color: #695c42; font-size: 12px; line-height: 1.55; }
.home-mission .text-link { margin-top: auto; min-height: 30px; }
.featured { margin-top: 30px; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 17px; }
.video-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .16s, box-shadow .16s; }
.video-card:focus-within, .video-card:hover { border-color: #a6c1aa; box-shadow: 0 3px 10px #2d5b4312; }
.video-card-button { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.video-card-button:focus-visible { outline-offset: -3px; }
.video-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--tone); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.video-card-button:hover img { transform: scale(1.035); }
.play-dot, .runtime, .watched-tag { position: absolute; }
.play-dot { left: 10px; bottom: 10px; display: grid; place-content: center; width: 34px; height: 34px; border-radius: 50%; color: #183222; background: #fffdf6ed; font-size: 17px; }
.runtime { right: 9px; bottom: 9px; padding: 3px 6px; border-radius: 4px; background: #131c16da; color: white; font: 700 12px/1.3 Barlow, sans-serif; }
.watched-tag { top: 8px; right: 8px; display: flex; align-items: center; gap: 4px; padding: 4px 7px; border-radius: 5px; background: var(--mint); color: var(--deep-green); font-size: 11px; font-weight: 750; }
.video-card-body { display: grid; justify-items: start; gap: 7px; width: 100%; padding: 12px 14px 15px; }
.video-category { display: inline-block; padding: 3px 6px; border-radius: 5px; background: var(--tone); color: var(--tone-ink); font-size: 11px; font-weight: 750; }
.video-card-body strong { font-size: 15px; line-height: 1.45; }
.video-byline { color: var(--muted); font-size: 12px; }
.page-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--soft-ink); font-size: 12px; }
.page-footer a, .guide-card a, .results-count a { text-decoration: underline; text-underline-offset: 3px; color: var(--green); }

.page-heading { padding: 21px 0 27px; }
.page-heading h1, .route-banner h1 { font-size: clamp(32px, 3.5vw, 47px); font-weight: 900; line-height: 1.2; letter-spacing: -.055em; }
.page-heading p, .route-banner p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.route-overview { gap: 16px; }
.route-overview .route-card { min-height: 140px; padding: 22px; }
.route-overview .route-icon { width: 56px; height: 56px; }
.route-overview .route-title h3 { font-size: 20px; }
.back-link { margin: 10px 0 16px; }
.route-banner { display: flex; align-items: center; gap: 19px; padding: 23px; border-radius: 18px; background: var(--tone); }
.route-banner > .route-icon { width: 65px; height: 65px; background: #fffefab3; }
.route-banner > .route-icon .icon { font-size: 36px; }
.route-banner .age-tag { margin-bottom: 6px; background: #fffefac2; }
.route-meter { flex: none; display: grid; gap: 6px; margin-left: auto; padding: 12px 15px; border-radius: 11px; background: #fffefad1; }
.route-meter strong { color: var(--tone-ink); font-size: 22px; }
.route-meter span { color: var(--muted); font-size: 12px; }
progress { width: 100%; height: 7px; border: 0; border-radius: 10px; overflow: hidden; color: var(--green); background: #e4eadf; }
progress::-webkit-progress-bar { background: #e4eadf; }
progress::-webkit-progress-value { background: var(--green); }
progress::-moz-progress-bar { background: var(--green); }
.stages { display: grid; gap: 15px; margin-top: 18px; }
.stage-card, .guide-card { padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.stage-card.locked { background: #f8f7f0; }
.stage-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.stage-kicker { margin-bottom: 5px; color: var(--green); font-size: 12px; font-weight: 750; }
.stage-heading h2 { scroll-margin-top: 15px; font-size: 23px; letter-spacing: -.035em; }
.stage-heading h2 + p { margin-top: 7px; color: var(--muted); line-height: 1.65; }
.stage-status { display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; border-radius: 6px; background: var(--mint); color: var(--deep-green); font-size: 12px; font-weight: 750; white-space: nowrap; }
.locked .stage-status { background: #eeeee7; color: var(--muted); }
.locked-note { margin-top: 14px; color: var(--muted); font-size: 13px; }
.stage-videos { display: grid; gap: 8px; margin-top: 15px; }
.video-row { display: flex; gap: 12px; align-items: center; width: 100%; padding: 7px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-align: left; cursor: pointer; }
.video-row:hover { border-color: #a6c1aa; background: #fbfdf9; }
.row-thumbnail { position: relative; flex: 0 0 83px; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 5px; overflow: hidden; background: var(--mint); }
.row-thumbnail img { width: 100%; height: auto; }
.row-thumbnail .icon { position: absolute; color: white; filter: drop-shadow(0 1px 2px #16291e); }
.row-text { display: grid; gap: 5px; min-width: 0; }
.row-text small { color: var(--muted); font-size: 12px; }
.row-state { flex: none; display: flex; align-items: center; gap: 4px; margin-left: auto; padding-right: 6px; color: var(--muted); font-size: 12px; }
.row-state.is-watched { color: var(--green); }
.stage-mission { scroll-margin-top: 14px; margin-top: 16px; padding: 15px; border-radius: 11px; background: #fff6e2; }
.stage-mission-title { display: flex; align-items: center; gap: 10px; }
.stage-mission-title h3 { font-size: 17px; }
.stage-mission-title p { margin-top: 4px; color: #695c42; font-size: 12px; line-height: 1.5; }
.stage-mission ol { margin: 13px 0; padding-inline-start: 24px; line-height: 1.7; }
.stage-mission li + li { margin-top: 4px; }
.stage-mission .button { min-height: 38px; }
.mission-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bridge-record { margin-block: 14px; padding: 14px; border: 1px solid #ebdfc4; border-radius: 10px; background: var(--surface); }
.bridge-record-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.bridge-record-heading h4 { margin: 0; font-size: 16px; }
.bridge-record-heading span { padding: 2px 6px; border-radius: 5px; background: #efefe8; color: var(--muted); font-size: 11px; }
.bridge-record form { display: grid; gap: 12px; max-width: 550px; }
.bridge-prediction { min-width: 0; margin: 0; padding: 0; border: 0; }
.bridge-prediction legend, .bridge-counts label, .bridge-discovery { color: var(--ink); font-size: 13px; font-weight: 700; }
.bridge-prediction legend { padding: 0; }
.prediction-choices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.prediction-choices label { display: inline-flex; align-items: center; gap: 4px; min-height: 38px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; cursor: pointer; }
.prediction-choices label:has(input:checked) { border-color: #b9d1ba; background: var(--mint); color: var(--deep-green); }
.prediction-choices input { margin: 0; accent-color: var(--green); }
.bridge-counts { display: grid; grid-template-columns: repeat(2, minmax(0, 165px)); gap: 9px; }
.bridge-counts label, .bridge-discovery { display: grid; align-content: start; gap: 5px; }
.bridge-counts input, .bridge-discovery textarea { width: 100%; min-height: 38px; padding: 7px 8px; border: 1px solid #d9ddd2; border-radius: 7px; background: white; color: var(--ink); font-weight: 400; }
.bridge-discovery textarea { resize: vertical; }
.bridge-saved-link { margin-top: 9px; }

.library-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filter { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 39px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 700; }
.filter:hover { border-color: #b5c8b5; }
.filter.selected { border-color: #cddfcd; background: var(--mint); color: var(--deep-green); }
.results-count { margin: 14px 0; color: var(--muted); overflow-wrap: anywhere; font-size: 13px; }
.results-count a { margin-left: 6px; }
.empty-state { display: grid; justify-items: center; gap: 10px; padding: 35px 14px; text-align: center; border: 1px dashed #d9ded2; border-radius: 15px; }
.empty-state h2 { font-size: 20px; }
.empty-state p { color: var(--muted); }
.empty-state .button { margin-top: 2px; }

.stats-grid, .badge-grid, .growth-grid { display: grid; gap: 12px; }
.stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.growth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.badge-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-card, .growth-card, .badge-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 15px; }
.stat-card, .growth-card { display: flex; align-items: center; gap: 12px; }
.stat-card strong { display: block; font: 700 30px/1 Barlow, sans-serif; }
.stat-card strong + span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.growth-section { margin-top: 25px; }
.findings h2 { scroll-margin-top: 15px; }
.finding-card { display: grid; justify-items: start; gap: 11px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.finding-heading { display: flex; align-items: center; gap: 9px; }
.finding-heading p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.finding-values { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.finding-values > div { display: grid; gap: 4px; min-width: 72px; padding: 6px 9px; border-radius: 7px; background: var(--mint); color: var(--deep-green); }
.finding-values dt { font-size: 11px; }
.finding-values dd { margin: 0; font-weight: 750; }
.finding-discovery, .finding-empty { max-width: 100%; color: var(--muted); line-height: 1.65; overflow-wrap: anywhere; white-space: pre-wrap; }
.growth-card > div { flex: 1; }
.growth-card p { margin: 3px 0 5px; color: var(--muted); font-size: 12px; }
.badge-card { display: grid; justify-items: center; gap: 7px; text-align: center; }
.badge-card > span:last-child { color: var(--muted); font-size: 12px; }
.badge-card:not(.earned) .route-icon { filter: grayscale(1); }
.badge-card.earned { border-color: #bdd4bd; }
.guide-content { display: grid; gap: 14px; max-width: 840px; }
.guide-card h2 { display: flex; align-items: center; gap: 8px; font-size: 19px; }
.guide-card .icon { color: var(--green); }
.guide-card p { margin-top: 9px; color: var(--muted); line-height: 1.8; }

dialog { width: min(700px, calc(100% - 28px)); max-height: calc(100% - 34px); padding: 19px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); color: var(--ink); box-shadow: 0 16px 70px #12291f3d; overscroll-behavior: contain; }
dialog::backdrop { background: #19271ed0; }
.watch-header { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.watch-header h2 { margin: 5px 0; font-size: clamp(19px, 3vw, 26px); line-height: 1.35; }
.watch-header p { color: var(--muted); font-size: 12px; }
.close-watch { background: #eff1e9; }
.watch-player { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: #17241c; }
.watch-player iframe, .watch-poster { width: 100%; height: 100%; border: 0; }
.watch-poster { position: relative; display: grid; place-items: center; padding: 0; background: transparent; cursor: pointer; }
.watch-poster::after { position: absolute; inset: 0; content: ''; background: #13241630; }
.watch-poster:focus-visible { outline-offset: -4px; }
.watch-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.large-play { z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--surface); color: var(--green); box-shadow: 0 4px 15px #1d322980; font-size: 31px; }
.watch-note { margin: 11px 0; color: var(--muted); line-height: 1.65; }
.watch-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.watch-actions .button, .watch-nav .button { min-height: 39px; }
.watch-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.toast { position: fixed; z-index: 4; right: 18px; bottom: 18px; max-width: calc(100vw - 36px); padding: 10px 14px; border-radius: 8px; background: var(--deep-green); color: white; font-weight: 700; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(5px); transition: opacity .16s, transform .16s, visibility .16s; }
.toast.show { visibility: visible; opacity: 1; transform: none; }
dialog .toast { position: sticky; bottom: 0; width: fit-content; height: 0; margin-left: auto; padding-block: 0; }
dialog .toast.show { height: auto; padding-block: 10px; }

@media (max-width: 1170px) {
  :root { --rail: 187px; }
  .sidebar { padding-inline: 14px; }
  .topbar, main, .noscript { padding-inline: 24px; }
  .route-arrow { display: none; }
  .route-card { gap: 9px; }
  .home-grid { gap: 15px; }
}

@media (max-width: 920px) {
  :root { --rail: 151px; }
  .sidebar { padding-inline: 9px; }
  .brand { gap: 7px; }
  .brand strong { font-size: 14px; }
  .brand-icon { width: 34px; height: 34px; font-size: 18px; }
  .navigation a, .guide-link { padding-inline: 8px; gap: 7px; }
  .topbar, main, .noscript { padding-inline: 21px; }
  .hero { min-height: 308px; }
  .hero-art { left: 46%; right: 0; }
  .hero h1 { font-size: clamp(34px, 4vw, 44px); }
  .home-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .route-arrow { display: block; }
  .home-mission { min-height: 145px; padding-left: 75px; }
  .home-mission .mission-icon { position: absolute; top: 21px; left: 17px; }
  .home-mission h3 { margin-top: 2px; padding-right: 52px; }
}

@media (max-width: 680px) {
  :root { --rail: 0px; }
  .sidebar { inset: auto 0 0; flex-direction: row; align-items: stretch; width: 100%; padding: 4px 4px max(4px, env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--line); }
  .brand { display: none; }
  .navigation { flex: 4; display: flex; gap: 0; }
  .navigation a, .guide-link { flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 49px; margin: 0; padding: 3px 1px; font-size: 11px; }
  .topbar, main, .noscript { padding-inline: 13px; }
  .topbar { min-height: 61px; }
  .breadcrumb { gap: 4px; }
  .breadcrumb a, .breadcrumb .icon { display: none; }
  .toolbar { gap: 6px; }
  .global-search { width: clamp(116px, 40vw, 210px); }
  .global-search input { font-size: 12px; }
  .star-pill { padding-inline: 6px; }
  .star-label { display: none; }
  main { padding-bottom: 76px; }
  .hero { border-radius: 16px; }
  .hero-copy { padding-left: 19px; }
  .hero h1 { font-size: clamp(30px, 6.1vw, 41px); }
  .hero p { max-width: 15em; }
  .hero-art { inset: 12% 0 3% 43%; }
  .hero-spark { display: none; }
  .home-grid { margin-top: 22px; }
  .route-grid { gap: 8px; }
  .route-card, .route-overview .route-card { padding: 10px 8px; gap: 8px; min-height: 113px; }
  .route-card .route-icon, .route-overview .route-icon { width: 33px; height: 33px; border-radius: 8px; }
  .route-card .route-icon .icon { font-size: 20px; }
  .route-title h3, .route-overview .route-title h3 { font-size: 14px; }
  .route-arrow { display: none; }
  .route-copy p { font-size: 11px; }
  .section-heading h2 { font-size: 21px; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .video-card-body { padding: 9px; }
  .video-card-body strong { font-size: 14px; }
  .video-byline { font-size: 11px; }
  .page-heading { padding: 14px 0 20px; }
  .route-banner, .stage-card, .guide-card { padding: 13px; }
  .route-banner { gap: 10px; flex-wrap: wrap; }
  .route-banner > .route-icon { width: 44px; height: 44px; }
  .route-banner > .route-icon .icon { font-size: 27px; }
  .route-banner > div:not(.route-meter) { flex: 1; }
  .route-banner p { font-size: 13px; }
  .route-meter { flex: 1 0 100%; grid-template-columns: max-content max-content 1fr; align-items: center; margin: 0; }
  .stage-heading h2 { font-size: 19px; }
  .stage-mission { padding: 11px; }
  .bridge-record { padding: 10px; }
  .bridge-counts input, .bridge-discovery textarea { font-size: 16px; }
  .row-thumbnail { flex-basis: 60px; }
  .row-state span:not(.icon) { display: none; }
  .stats-grid { gap: 5px; }
  .stat-card { flex-direction: column; align-items: flex-start; gap: 7px; padding: 8px; }
  .growth-grid, .badge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .growth-card { padding: 8px; gap: 6px; }
  .growth-card h3 { font-size: 14px; }
  .growth-card > .route-icon { width: 30px; height: 30px; border-radius: 8px; }
  .growth-card > .route-icon .icon { font-size: 18px; }
  .growth-card > .icon { display: none; }
  .toast { bottom: 67px; }
}

@media (max-width: 480px) {
  .hero { align-items: flex-start; min-height: 390px; }
  .hero-copy { max-width: 100%; padding: 19px 11px 0 16px; }
  .hero-label { font-size: 11px; }
  .hero h1 { margin-top: 10px; }
  .hero p { max-width: none; margin: 8px 0 12px; font-size: 12px; }
  .hero .button { min-height: 40px; }
  .hero-art { inset: auto 7% 4px 10%; height: 168px; }
  .orbit { inset: 10% 13% 7% 13%; }
  .route-card { align-items: flex-start; }
  .route-title { gap: 3px 5px; }
  .route-title .age-tag { padding: 2px 4px; }
  dialog { padding: 12px; }
  .watch-actions .button { padding-inline: 8px; font-size: 13px; }
  .watch-actions .icon { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
