:root {
  color-scheme: light;
  --page: #f8f7f2; --panel: #fff; --ink: #203232; --muted: #5f6b64;
  --line: #e6e7df; --orange: #ea713d; --orange-ink: #a53c16; --rust: #fdeade;
  --forest: #1d3633; --soft-green: #e6efe5; --shadow: 0 16px 40px #223d2c12;
  --font: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 250px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.55 var(--font); }
button, input, select, textarea { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; border: 0; background: none; cursor: pointer; }
button:disabled { cursor: default; opacity: .52; }
button, a, input, select, textarea { outline-offset: 4px; }
:focus-visible { outline: 2px solid #c95225; }
h1, h2, h3, p { margin: 0; }
svg { flex: none; vertical-align: middle; }
img { display: block; max-width: 100%; }
audio { width: 100%; display: block; margin: 14px 0 2px; }
.sr-only, .skip:not(:focus) { position: absolute; clip: rect(0,0,0,0); clip-path: inset(50%); height: 1px; width: 1px; overflow: hidden; white-space: nowrap; }
.skip:focus { position: fixed; z-index: 5; top: 8px; left: 12px; background: #fff; padding: 10px; }
.shell { width: min(calc(100% - 72px), 1180px); margin: 0 auto; }
.site-header { background: #fffefa; border-bottom: 1px solid #e7e7dd; }
.header-inner { min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; justify-self: start; }
.brand span { display: grid; line-height: 1.1; gap: 4px; }
.brand strong { font-size: 19px; letter-spacing: .01em; }
.brand small { font-size: 9px; letter-spacing: .14em; font-weight: 750; color: #526258; }
.site-nav { display: flex; align-self: stretch; gap: 23px; align-items: stretch; white-space: nowrap; }
.site-nav a { display: flex; align-items: center; position: relative; padding-inline: 4px; color: #59675e; font-size: 15px; font-weight: 650; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }
.site-nav a[aria-current]::after { content: ""; position: absolute; bottom: -1px; inset-inline: 4px; height: 3px; border-radius: 8px 8px 0 0; background: var(--orange); }
.profile-link { justify-self: end; display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; padding: 5px 12px 5px 5px; border: 1px solid #e5e9df; border-radius: 100px; font-size: 14px; font-weight: 650; }
.profile-link:hover, .profile-link[aria-current] { background: #f1f5ed; }
.profile-mark { display: grid; width: 28px; height: 28px; place-items: center; background: #dce9d9; border-radius: 50%; color: #2c5346; font-size: 13px; font-weight: 800; }
.main { min-height: calc(100vh - 155px); padding-block: 28px 52px; }
.main:focus { outline: none; }
.initial-loading { padding: 54px 18px; color: var(--muted); text-align: center; }
.site-footer { border-top: 1px solid #e6e7df; color: var(--muted); font-size: 13px; }
.footer-inner { min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-block: 12px; }
.footer-inner div { display: flex; gap: 18px; align-items: center; }
.footer-divider { padding-inline: 5px; }
.text-link { padding: 0; color: inherit; }
.text-link:hover, .footer-inner a:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; border: 1px solid transparent; border-radius: 10px; padding: 8px 16px; font-weight: 700; font-size: 14px; white-space: nowrap; line-height: 1.3; transition: background .16s, border-color .16s, transform .16s; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #251a13; }
.btn-primary:hover { background: #fa8a50; }
.btn-dark { background: #24403a; color: #fff; }
.btn-dark:hover { background: #31574c; }
.btn-light { border-color: #e0e6db; background: #fffefa; }
.btn-light:hover:not(.disabled) { background: #edf3e9; border-color: #cfddcb; }
.btn-light.disabled { opacity: .48; }
.btn-hero { background: #ffffff17; border-color: #ffffff48; color: #fffaf0; }
.btn-hero:hover { background: #ffffff30; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; color: #4e665a; flex: none; }
.icon-btn:hover, .icon-btn.on { background: #edf2e7; color: #285a47; }
.icon-btn.on svg { fill: #b6d1b4; }
.hero { display: flex; position: relative; isolation: isolate; min-height: 390px; overflow: hidden; background: #1b3533 url("/media/physics.webp") right 54%/75% auto no-repeat; border-radius: 23px; color: #fffaf0; box-shadow: 0 10px 26px #283d2b20; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #193833 1%, #1c3832 23%, #203a32e8 40%, #243c3063 64%, #34433112 100%); }
.hero-copy { position: relative; margin: auto 0; padding: 38px 46px 34px; max-width: 645px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; color: #fff1bb; font-size: 14px; font-weight: 700; letter-spacing: .11em; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4rem); line-height: 1.07; letter-spacing: -.055em; font-weight: 780; margin: 13px 0 15px; text-wrap: balance; }
.hero h1 span { color: #ffe2a7; }
.hero p { max-width: 470px; color: #f0eee0; font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-actions .btn { min-height: 45px; padding-inline: 17px; }
.hero-caption { position: absolute; right: 17px; bottom: 14px; background: #213831d9; color: #fff8e8; border-radius: 100px; padding: 5px 12px; font-weight: 600; font-size: 12px; }
.section { margin-top: 34px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.section-head h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); font-weight: 780; letter-spacing: -.035em; line-height: 1.24; }
.section-head p, .subline { color: var(--muted); margin-top: 5px; }
.meta { font-size: 14px; color: var(--muted); }
.stat-chip { padding: 5px 12px; background: #eef2e7; color: #385c49; font-size: 14px; border-radius: 100px; white-space: nowrap; }
.subject-grid, .stack-grid, .word-grid, .library-grid, .feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.subject-card, .feature-card { border-radius: 15px; overflow: hidden; border: 1px solid #e3e6dc; background: #fffef9; text-align: left; transition: transform .18s, box-shadow .18s; }
.subject-card:hover, .feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.subject-cover { display: block; position: relative; height: 147px; overflow: hidden; background: #cdd9ce; }
.subject-cover img { height: 100%; width: 100%; object-fit: cover; object-position: center 48%; }
.subject-cover::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(transparent, #1e2d2b33); }
.subject-cover .color-icon { position: absolute; z-index: 1; top: 12px; left: 12px; }
.subject-copy { padding: 14px 15px 13px; }
.subject-line { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.subject-line h3 { font-size: 21px; letter-spacing: -.035em; }
.subject-line h3 span { font-size: 13px; font-weight: 650; color: #596b60; margin-left: 7px; letter-spacing: 0; }
.subject-copy p { margin-top: 3px; color: var(--muted); font-size: 14px; }
.color-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: #e6efe5; color: #2e5947; flex: none; }
.color-icon.rust { background: #fce5d6; color: #963e22; }
.color-icon.blue { background: #deedf3; color: #2a5665; }
.color-icon.plum { background: #ebe6f4; color: #5c4775; }
.section-tools { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.mini-tile { display: flex; gap: 12px; align-items: center; background: #fffef9; border: 1px solid var(--line); border-radius: 13px; text-align: left; padding: 14px; }
.mini-tile:hover { background: #fff; border-color: #ccd9c9; }
.mini-tile span:nth-child(2) { flex: 1; line-height: 1.34; }
.mini-tile strong, .mini-tile small { display: block; }
.mini-tile small { color: var(--muted); margin-top: 3px; }
.page-head { margin: 4px 0 22px; }
.crumb { display: flex; align-items: center; gap: 8px; color: var(--muted); margin-bottom: 10px; font-size: 13px; }
.crumb a:hover { text-decoration: underline; }
.page-head h1, .course-banner h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.12; letter-spacing: -.05em; margin-bottom: 7px; }
.page-head p { color: var(--muted); }
.course-banner { background: #25433e var(--cover) center 46%/cover no-repeat; color: #fff9ef; padding: 23px 28px; overflow: hidden; isolation: isolate; position: relative; border-radius: 16px; margin-bottom: 18px; }
.course-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#18352ced 12%, #1d3b31b8 48%, #213a3222 100%); }
.course-banner .crumb { color: #e8f0df; }
.course-banner p { color: #f5efe1; }
.pillbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 16px; }
.pill { display: inline-flex; gap: 7px; align-items: center; border-radius: 9px; border: 1px solid #e1e6dc; padding: 8px 12px; background: #fffef8; font-weight: 650; font-size: 14px; min-height: 39px; }
.pill:hover { border-color: #b9cdbb; }
.pill.active { background: #e4eee0; color: #214d3c; border-color: #c7dac4; }
.course-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 17px; align-items: start; }
.panel { background: #fffefa; border: 1px solid var(--line); border-radius: 14px; padding: 17px; }
.chapter-panel { padding: 13px 9px 9px; }
.chapter-panel h2 { font-size: 17px; padding: 1px 8px 8px; }
.chapter-list { display: grid; gap: 3px; max-height: 644px; overflow: auto; scrollbar-width: thin; }
.chapter-list a { display: block; padding: 8px; color: #4b5c54; font-size: 14px; line-height: 1.33; border-radius: 8px; }
.chapter-list a:hover { background: #f2f4eb; }
.chapter-list a.active { background: #e4eee0; color: #2b5543; font-weight: 750; }
.chapter-list small { display: block; padding: 10px 8px 2px; color: #647468; font-size: 12px; }
.module-bar { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; flex-wrap: wrap; }
.module-bar h2 { font-size: clamp(1.27rem, 3vw, 1.62rem); line-height: 1.22; letter-spacing: -.035em; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 6px; background: #eef3e9; color: #3e614b; font-size: 12px; font-weight: 650; }
.tag.orange { background: #faeee3; color: #8e421f; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; margin-bottom: 14px; }
.search-field, .select-field { display: flex; align-items: center; min-height: 42px; border: 1px solid #dde3d9; border-radius: 10px; background: #fffefa; color: #4a5a51; }
.search-field { padding: 0 9px; gap: 7px; min-width: min(210px, 100%); flex: 1; }
.search-field input { border: 0; background: none; min-width: 0; width: 100%; color: var(--ink); padding-block: 9px; font-size: 14px; }
.select-field select { background: transparent; border: 0; padding: 8px; min-height: 40px; max-width: 210px; color: inherit; font-size: 14px; }
.word-grid { gap: 10px; }
.word-card { border-radius: 13px; border: 1px solid #e1e6dc; background: #fffefa; padding: 11px 12px; min-width: 0; display: grid; gap: 5px; }
.word-card:hover { border-color: #bacdbb; }
.word-top, .word-foot { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.word-term { border: 0; padding: 0; text-align: left; font-weight: 760; font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.2; overflow-wrap: anywhere; }
.word-term:hover { text-decoration: underline; text-underline-offset: 3px; }
.word-zh { min-height: 23px; font-size: 14px; color: #586a60; padding-bottom: 5px; overflow-wrap: anywhere; }
.word-foot { padding-top: 5px; border-top: 1px solid #edf0e7; min-height: 32px; }
.word-foot small { color: #587365; font-size: 12px; max-width: 62%; }
.audio-mini { display: inline-flex; align-items: center; justify-content: center; padding: 3px 6px; border-radius: 6px; color: #385e4e; font-weight: 700; font-size: 12px; }
.audio-mini:hover { background: #edf3e9; }
.audio-mini:disabled { color: #637169; }
.paging { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 15px; color: var(--muted); font-size: 14px; }
.paging .btn { min-height: 37px; }
.levels { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 8px; margin: 10px 0 18px; }
.level-tile { border: 1px solid #e2e6dc; background: #fffefa; border-radius: 10px; padding: 10px; min-width: 0; line-height: 1.3; }
.level-tile strong { display: block; font-size: 14px; margin-bottom: 4px; }
.level-tile span { font-size: 13px; color: var(--muted); }
.level-tile:hover, .level-tile.active { background: #eaf2e6; border-color: #c2d4be; }
.level-tile.active strong { color: #315744; }
.lesson-details { margin-top: 16px; }
.lesson-details summary { cursor: pointer; font-weight: 700; }
.lesson-details ul { margin: 8px 0 0; padding-left: 19px; }
.lesson-details li { padding-block: 3px; }
.practice-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.practice-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.practice-card h2 { font-size: 20px; }
.practice-card p { color: var(--muted); font-size: 14px; flex: 1; }
.practice-card .btn { margin-top: 3px; }
.library-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.library-entry { text-align: left; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.library-entry:hover { border-color: #c3d4c1; }
.library-entry h3 { font-size: 17px; overflow-wrap: anywhere; }
.library-entry small { color: var(--muted); }
.feature-card .subject-cover { height: 170px; }
.feature-card { display: flex; flex-direction: column; }
.feature-copy { display: flex; flex: 1; gap: 7px; flex-direction: column; align-items: flex-start; min-height: 170px; padding: 14px; }
.feature-copy p { color: var(--muted); font-size: 14px; flex: 1; }
.feature-copy h2 { font-size: 21px; }
.profile-hero { display: grid; gap: 12px; grid-template-columns: repeat(4,minmax(0,1fr)); margin-bottom: 18px; }
.score-panel span { display: block; color: var(--muted); }
.score-panel strong { display: block; margin-top: 5px; font-size: 32px; letter-spacing: -.045em; }
.profile-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; align-items: start; }
.profile-layout h2 { font-size: 21px; margin-bottom: 7px; }
.daily-panel { flex: 1; background: #e8f0e3; border-color: #d7e4d5; }
.daily-panel .btn { margin-top: 11px; }
.record-list { list-style: none; margin: 8px 0 0; padding: 0; }
.record-list li { display: flex; gap: 8px; justify-content: space-between; border-top: 1px solid var(--line); padding-block: 7px; font-size: 14px; overflow-wrap: anywhere; }
.admin-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: start; }
.admin-grid h2 { font-size: 20px; margin-bottom: 7px; }
.admin-grid textarea, .dialog textarea { width: 100%; min-height: 135px; padding: 10px; border: 1px solid #dbe3d9; border-radius: 9px; background: #fffffc; margin-block: 9px; resize: vertical; }
.admin-grid textarea { font: 13px/1.45 ui-monospace, monospace; }
.admin-grid input[type="password"], .dialog input { padding: 9px 11px; border: 1px solid #dbe3d9; border-radius: 8px; min-height: 42px; }
.admin-grid input[type="file"] { width: 100%; margin-top: 10px; font-size: 14px; }
.admin-grid .version { overflow-wrap: anywhere; color: var(--muted); font: 12px/1.42 ui-monospace, monospace; }
.admin-report { margin-block: 10px; }
.admin-report ul { margin: 5px 0; padding-left: 20px; }
.empty { padding: 24px 15px; border: 1px dashed #d6e0d3; border-radius: 12px; color: var(--muted); text-align: center; }
.dialog { width: min(590px, calc(100% - 26px)); max-height: min(90vh, 720px); border: 1px solid #e3e9de; border-radius: 18px; background: #fffefa; color: var(--ink); box-shadow: 0 20px 100px #1a332b44; padding: 0; }
.dialog::backdrop { background: #152f2ac7; }
.dialog-body { padding: 22px; }
.dialog-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 9px; }
.dialog-top h2 { font-size: 25px; line-height: 1.2; letter-spacing: -.035em; overflow-wrap: anywhere; }
.dialog-top .icon-btn { margin: -4px -4px 0 0; }
.dialog p + p, .dialog p + .section-tools { margin-top: 9px; }
.dialog .panel, .dialog .tagbar, .dialog .choice-list { margin-top: 12px; }
.dialog .btnrow { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.dialog .hint { color: var(--muted); margin: 8px 0; font-size: 14px; }
.passage { background: #f0f4ec; color: #293f36; padding: 12px; border-radius: 9px; margin: 10px 0; white-space: pre-line; }
.tagbar { display: flex; flex-wrap: wrap; gap: 5px; }
.choice-list { display: grid; gap: 6px; }
.choice { padding: 9px; border: 1px solid #dce5d9; background: #fffeff; text-align: left; border-radius: 8px; min-height: 38px; }
.choice:hover, .choice.selected { background: #e8f1e4; border-color: #aec7ab; }
.choice.correct { background: #daeddb; border-color: #95bf9d; }
.choice.incorrect { background: #f9e8e0; border-color: #e1b5a8; }
.feedback { padding: 10px; border-radius: 8px; background: #e7f2e6; color: #315b42; margin: 10px 0 0; }
.feedback.warn { background: #fbede2; color: #834824; }
.game-board { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin-block: 12px; }
.game-card { min-height: 50px; border: 1px solid #dce4d9; border-radius: 8px; background: #f5f4ee; overflow-wrap: anywhere; font-weight: 680; font-size: 14px; }
.game-card.active { background: #fee9d8; border-color: #ddab83; }
.game-card.solved { background: #daedd9; color: #2c5d41; opacity: 1; }
.toast { position: fixed; z-index: 4; bottom: 18px; left: 50%; transform: translateX(-50%); background: #26413a; color: #fff; width: max-content; max-width: min(480px, calc(100% - 30px)); border-radius: 10px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 14px; }
@media (max-width: 950px) {
  .shell { width: calc(100% - 38px); }
  .site-nav { gap: 10px; }
  .course-layout { grid-template-columns: 192px minmax(0, 1fr); }
  .word-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero { min-height: 345px; background-size: cover; }
  .hero-copy { padding: 29px; }
  .practice-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 650px) {
  .shell { width: calc(100% - 26px); }
  .header-inner { grid-template-columns: 1fr auto; min-height: 0; column-gap: 9px; row-gap: 4px; padding-top: 9px; }
  .brand img { width: 32px; height: 32px; }
  .brand strong { font-size: 17px; }
  .brand small { font-size: 8px; }
  .profile-link { grid-column: 2; grid-row: 1; }
  .site-nav { grid-row: 2; grid-column: 1/-1; justify-content: space-between; gap: 3px; overflow: auto; min-height: 42px; }
  .site-nav a { padding-inline: 5px; font-size: 13px; }
  .main { padding-top: 17px; }
  .hero { min-height: 350px; border-radius: 15px; background-position: 62% center; }
  .hero::before { background: linear-gradient(90deg,#18352ef7,#1b382baf 79%,#2b423c44); }
  .hero-copy { padding: 23px 17px 30px; }
  .hero h1 { font-size: clamp(2.15rem, 9.8vw, 3rem); }
  .hero-caption { font-size: 10px; bottom: 5px; right: 6px; }
  .hero p { max-width: 315px; }
  .section { margin-top: 24px; }
  .section-head { align-items: flex-start; flex-wrap: wrap; }
  .subject-grid, .stack-grid, .feature-grid, .library-grid { grid-template-columns: 1fr; gap: 9px; }
  .subject-card { display: grid; grid-template-columns: 112px 1fr; align-items: stretch; }
  .subject-cover { height: 100%; min-height: 100px; }
  .subject-cover .color-icon { width: 32px; height: 32px; top: 7px; left: 7px; }
  .subject-cover .color-icon svg { width: 18px; height: 18px; }
  .subject-line { align-items: start; }
  .subject-line h3 { font-size: 19px; }
  .subject-copy { padding: 11px 9px; }
  .subject-copy .meta { font-size: 12px; }
  .subject-copy p { font-size: 13px; }
  .course-banner { padding: 14px 12px; }
  .course-layout, .profile-layout, .admin-grid { grid-template-columns: 1fr; }
  .chapter-list { display: flex; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .chapter-list small { display: none; }
  .chapter-list a { flex: 0 0 auto; }
  .panel { padding: 11px; }
  .levels { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 5px; }
  .level-tile { padding: 7px; }
  .word-grid { gap: 7px; }
  .word-card { padding: 7px 8px; }
  .word-top .icon-btn { width: 26px; height: 29px; }
  .word-foot { flex-wrap: wrap; justify-content: flex-start; }
  .word-foot .meta { max-width: unset; }
  .filters .search-field { min-width: min(178px, 100%); }
  .profile-hero { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .feature-copy { min-height: auto; }
}
@media (max-width: 340px) {
  .site-nav a { padding-inline: 3px; font-size: 12px; }
  .brand { gap: 6px; }
  .profile-link { gap: 5px; padding-right: 7px; font-size: 12px; }
  .profile-mark { width: 24px; height: 24px; }
  .hero-copy { padding-inline: 14px; }
  .hero-actions .btn { padding-inline: 11px; }
  .subject-card { grid-template-columns: 78px minmax(0, 1fr); }
  .subject-line { flex-wrap: wrap; gap: 0; }
  .word-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* The atlas cover and field notes */
:root { --page:#fbf9ef; --ink:#172f4a; --navy:#122d4f; --tangerine:#ff713a; --forest:#173957; }
.site-header { background:#fffdf7; border-color:#d7d9cb; }
.wordmark { width:142px;height:auto;mix-blend-mode:multiply }
.guest-brand,.guest-login {display:none}
.guest .site-nav,.guest .profile-link,.guest .footer-inner div {display:none}
.guest .header-inner {display:flex;gap:20px}
.guest .guest-brand {display:block;font-size:13px;letter-spacing:.09em;color:#5e686d;border-left:1px solid #c6cbbf;padding-left:19px}
.guest .guest-login {display:block;margin-left:auto;border:1px solid #24394e;border-radius:32px;padding:8px 17px;font-weight:700;font-size:14px}
.guest .main {padding-top:clamp(28px,4vw,65px);min-height:calc(100svh - 140px)}
.atlas-cover {display:grid;grid-template-columns:1fr 1.06fr;align-items:center;gap:clamp(25px,4vw,72px)}
.manifesto {padding:10px 0 23px}
.edition {display:flex;align-items:center;gap:10px;font:700 12px/1.3 "Courier New",monospace;letter-spacing:.13em;color:#425366}
.edition i {width:26px;height:3px;background:var(--tangerine);transform:rotate(-12deg);display:inline-block}
.manifesto h1,.home-story h1 {font-size:clamp(45px,5.45vw,82px);font-weight:900;letter-spacing:-.075em;line-height:1.17;margin:26px 0 24px;color:#132f4e}
.manifesto h1 em {font-style:normal;color:#1262a2;position:relative;isolation:isolate}
.manifesto h1 em:after {content:"";position:absolute;bottom:1%;left:0;right:0;height:13%;background:#ffd05a;z-index:-1;transform:rotate(-3deg)}
.orange-stop {color:#ef672e;font-size:.69em}
.lead {max-width:26em;font-size:clamp(17px,1.55vw,22px);font-weight:700;line-height:1.55}
.philosophy {max-width:30em;color:#52606a;margin-top:13px;line-height:1.85;font-size:15px}
.expedition {display:inline-flex;align-items:center;justify-content:space-between;gap:25px;border:1.5px solid #172e44;border-radius:50px;box-shadow:3px 4px 0 #172e44;background:#ff945d;color:#192c3a;padding:12px 13px 12px 23px;font-weight:800;margin-top:27px}
.expedition b {display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#152e47;color:white;line-height:1;font-size:19px}
.expedition:hover {background:#ffac70;transform:translateY(-2px)}
.atlas {--tilt:0deg;position:relative;isolation:isolate;overflow:hidden;height:clamp(420px,39vw,535px);border:2px solid #1f394e;border-radius:120px 32px 70px 32px / 58px 32px 70px 32px;background:radial-gradient(ellipse at 45% 40%,#205c8d 0%,#163c68 53%,#142d4d 95%);box-shadow:5px 6px 0 #cbd4c9;color:white}
.atlas-sky {position:absolute;inset:0;z-index:-1;background-image:radial-gradient(1.1px 1.1px at 10px 17px,#aabcdb 90%,transparent),radial-gradient(1px 1px at 70px 53px,#aabcdb 90%,transparent);background-size:90px 81px,131px 109px}
.atlas-title {position:absolute;top:6%;left:9%;font-size:19px;font-weight:800}
.atlas-title span {display:block;font:italic 15px Georgia,serif;color:#d1e3f4}
.world {position:absolute;inset:13% auto auto 24%;width:58%;aspect-ratio:1;overflow:hidden;isolation:isolate;border-radius:50%;background:#368eaf;border:2px solid #d8f6d4;transform:rotate(calc(-16deg + var(--tilt)));transition:transform 1s ease;box-shadow:0 0 0 5px #bce8e522,0 0 34px #94d7f330}
.map {position:absolute;inset:0;background:url("/media/atlas.webp") 40% center/210% 100% repeat-x;animation:turn-world 65s linear infinite}
.world:after {content:"";position:absolute;inset:-1px;border-radius:50%;background:radial-gradient(circle at 35% 29%,#ffffd731 0%,transparent 42%,#102a5e24 62%,#0821439e 91%);box-shadow:inset 6px 1px 13px #d2ffff52}
@keyframes turn-world {from{background-position:0% 0}to{background-position:190.909% 0}}
.orbit {position:absolute;left:10%;top:28%;width:83%;height:30%;border:1px dashed #d5e5e7a6;border-radius:50%;transform:rotate(-23deg)}
.orbit.near {border:2px solid transparent;border-bottom-color:#fee6b2;box-shadow:0 2px 0 -1px #ffac69;transform:rotate(-23deg)}
.moon {position:absolute;right:10%;top:21%;width:9%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 28% 28%,#ffe384,#ffae55 56%,#da7537);box-shadow:inset -3px -1px 1px #aa633d}
.satellite {position:absolute;top:42%;left:9%;width:17%;display:flex;align-items:center;justify-content:center;transform:rotate(-28deg);animation:drift 6s ease-in-out infinite}
.satellite i {width:35%;height:18px;border:2px solid #c3dff1;background:repeating-linear-gradient(90deg,transparent 0 6px,#bad4f4 7px 8px),linear-gradient(0deg,#4375bd 45%,#c5ddf7 49% 53%,#557fc0 56%)}
.satellite b {position:relative;width:26%;height:29px;transform:skewY(8deg);background:#f4b359;border:2px solid #ffcfa4;border-radius:3px}
.satellite b:before {position:absolute;content:"";width:85%;height:9px;background:#c9dee3;top:-10px;left:80%;border-radius:0 0 100% 100%;transform:rotate(-35deg)}
@keyframes drift {50%{transform:translate(7px,-8px) rotate(-18deg)}}
.sparkle {position:absolute;color:#ffe49a}.s1{right:17%;top:8%;font-size:24px}.s2{left:12%;top:56%;font-size:29px}
.field-note {position:absolute;left:7%;bottom:15%;background:#fff8de;color:#193651;padding:10px 18px 12px;border:1.5px solid #193651;border-radius:3px;box-shadow:3px 3px #142d4e;transform:rotate(-4deg);max-width:86%}
.field-note:before {content:"";position:absolute;width:44px;height:13px;left:42%;top:-7px;background:#ffcf57db;transform:rotate(4deg)}
.note-label {font:700 11px/1.4 monospace;color:#486571;display:flex;align-items:center;gap:6px}.note-label i{width:6px;height:6px;border-radius:50%;background:#ee8048}
.field-note strong,.field-note span {display:block}.field-note strong{font-size:clamp(16px,1.5vw,21px);margin:2px 0}.field-note span{font:italic 14px Georgia,serif}
.map-controls {position:absolute;bottom:4%;right:6%;display:flex;gap:6px}.map-controls button {border:1px solid #bcd1de77;border-radius:24px;color:#f2f7fa;font-size:12px;padding:4px 13px;background:#183552}.map-controls [aria-pressed=true]{background:#f7d06c;color:#1c344c;border-color:#f7d06c;font-weight:800}
.learning-loop {display:grid;grid-template-columns:repeat(3,1fr);border-block:1px solid #bec7c4;margin-top:clamp(36px,4.6vw,68px);padding:22px 0}
.learning-loop>div {display:flex;align-items:center;gap:16px;padding-left:10%;border-left:1px solid #cbd1c9}.learning-loop>div:first-child{border:0;padding:0}
.learning-loop b {font:italic bold 29px Georgia,serif;color:#217aaa}.learning-loop>div:nth-child(2) b{color:#b25532}.learning-loop>div:nth-child(3) b{color:#548259}
.learning-loop strong,.learning-loop small {display:block}.learning-loop small{color:#606c72;font-size:13px}
.guest-login[hidden] { display: none !important; }
.auth-panel { max-width: 620px; margin-inline: auto; }
.auth-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.auth-actions .btn, #phone-login .btn { min-height: 44px; }
#phone-login { display: grid; gap: 8px; margin-top: 16px; }
#phone-login label { font-weight: 700; font-size: 14px; }
#phone-login input {
  min-width: 0; width: 100%; min-height: 44px; padding: 9px 11px;
  border: 1px solid #a9b6bc; border-radius: 8px; background: #fffdfa;
}
#mobile { margin-bottom: 6px; }
.sms-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
#login-result:not(:empty) {
  color: var(--ink); background: var(--soft-green); padding: 10px 12px; border-radius: 8px;
}
#phone-login .expedition { justify-self: start; margin: 4px 0 0; }
.home-story {display:grid;grid-template-columns:.95fr 1.05fr;gap:7%;align-items:center;padding:32px 0;border-block:2px solid #254159}
.home-story h1{margin:14px 0;color:#18354e}.home-story p:not(.edition){max-width:28em}
.home-story .btn {margin-top:16px}
.experiment {background:#e6f1ec;border:1.5px solid #254159;border-radius:16px;padding:18px 24px;box-shadow:4px 4px #b5cdc5}
.experiment-scene {position:relative;height:180px;overflow:hidden;background:linear-gradient(0deg,#b1c7a7 18%,transparent 18.5%),repeating-linear-gradient(0deg,transparent 0 23px,#a9c6c244 23px 24px),repeating-linear-gradient(90deg,transparent 0 23px,#a9c6c244 23px 24px);border-radius:9px}
.stick {position:absolute;left:58%;bottom:18%;height:44%;width:11px;background:#21425b;border-radius:8px 8px 0 0}
.stick-shadow {position:absolute;bottom:17%;right:42%;width:min(var(--length,25%),57%);height:7px;transform:skewX(-30deg);border-radius:70%;background:#59726a}
.sun-ray {position:absolute;left:59%;bottom:61%;height:1px;width:27%;transform-origin:left;transform:rotate(var(--ray-angle,-45deg));border-top:2px dashed #ce9225}
.sun-ray:after {position:absolute;content:"";right:-14px;top:-14px;width:29px;height:29px;border-radius:50%;background:#ffbd36;box-shadow:0 0 0 5px #fbd67970}
.experiment label{display:flex;justify-content:space-between;font-size:14px;font-weight:700;margin-top:12px}.experiment input{width:100%;accent-color:#d66830}.experiment p{font:italic 16px Georgia,serif}
.practice-card[class*=skill-] {border:1.5px solid #29445b;border-radius:20px;box-shadow:3px 4px #bcc9bf;padding:22px;transition:transform .15s}
.practice-card:hover,.feature-card:hover{transform:translateY(-3px)}
.skill-listening{background:#ffe2c1}.skill-grammar{background:#dfedd2}.skill-reading{background:#d9eaf4}.skill-writing{background:#ece1f1}
.practice-card small{display:block;margin-top:12px;font:italic 16px Georgia,serif}.practice-card strong{display:inline-block;margin-top:20px;font-size:14px}
.back-map {display:inline-block;margin:10px 0 18px;text-decoration:underline}.trail{max-width:850px;margin:0 auto;position:relative}
.trail:before{content:"";width:2px;position:absolute;left:33px;top:30px;bottom:30px;background:repeating-linear-gradient(#9db3a6 0 6px,transparent 6px 11px)}
.trail-stop{position:relative;display:flex;align-items:center;gap:18px;padding:18px 16px;margin:12px 0;background:#f5f4eb;border:1px solid #cdd4c9;border-radius:17px}
.trail-stop.open,.trail-stop.done{background:#fff1c9;border-color:#a88d58}
.waypoint{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:50%;background:#d4ddd5;color:#415346;font:700 19px monospace}.open .waypoint,.done .waypoint{background:#204c69;color:#fff}
.trail-stop small{font:600 12px monospace;color:#4d6979}.trail-stop h2{font-size:20px}.trail-stop p,.trail-status{font-size:13px;color:#566661}.trail-stop .btn,.trail-status{margin-left:auto}
@media(max-width:780px){.atlas-cover,.home-story{grid-template-columns:1fr;gap:22px}.manifesto{padding:0}.manifesto h1{font-size:clamp(46px,9vw,68px);margin:16px 0}.atlas{height:clamp(325px,74vw,465px);max-width:590px;width:100%;justify-self:center}.world{width:min(58%,290px)}.learning-loop{gap:9px}.learning-loop>div{gap:7px;padding-left:7px}.learning-loop small{display:none}.learning-loop b{font-size:22px}.learning-loop strong{font-size:14px}.home-story h1 br{display:none}}
@media(max-width:520px){.guest .guest-brand{display:none}.guest .header-inner{min-height:62px}.guest-login{font-size:12px}.wordmark{width:119px}.atlas .field-note{padding:8px 12px;bottom:16%}.learning-loop{margin-top:27px;padding:14px 0}.learning-loop>div{display:block}.learning-loop b{font-size:19px}.trail-stop{flex-wrap:wrap;gap:10px}.trail-stop .btn,.trail-status{margin-left:54px}.home-story h1{font-size:42px}.experiment{padding:10px}.learning-loop strong{font-size:12px}.atlas-title{font-size:16px}.atlas-title span{font-size:13px}}
@media(prefers-reduced-motion:reduce){.atlas * {animation:none!important;transition:none!important}}
.brand .wordmark{width:142px;height:auto}.sun-ray{width:min(25%,56px)}.quick-prompt{font:700 clamp(32px,6vw,58px)/1.2 Georgia,serif;text-align:center;margin:16px 0;color:#174b6b}
.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.quick-grid button{border:1px solid #24465a;border-radius:13px;box-shadow:2px 3px #aec3b8;padding:14px;background:#cde9df;font:700 30px Georgia,serif}.quick-grid button:nth-child(2n){background:#ffdda6}#quick-feedback{color:#913f1d;margin-top:14px}
@media(max-width:520px){.brand .wordmark{width:119px}}
@media(max-width:370px){
  .guest .header-inner{gap:8px;padding-block:9px}.guest .guest-login{white-space:nowrap;padding:8px 10px;font-size:12px}
  .manifesto h1{font-size:clamp(30px,12vw,42px);letter-spacing:-.07em}
  .field-note strong{font-size:15px}.field-note span{font-size:12px}
}
