@font-face{font-family:"Archive Sans";src:url("fonts/ArchiveSans.ttf") format("truetype");font-weight:100 900;font-display:swap}
/* Grey Archive: user-selected cold wasteland. 1440 - 88 rail - 2*40 gutters = 1272px canvas. */
@font-face{font-family:Oxanium;src:url('fonts/Oxanium.ttf') format('truetype');font-weight:200 800;font-display:swap}
:root{--bg:#101110;--surface:#171916;--raised:#22251f;--ink:#e6e9e4;--muted:#afb2a5;--line:#3b3d36;--accent:#e7b46d;--pink:#c6b48e;--display:Oxanium,"Microsoft YaHei",sans-serif;--sans:"Archive Sans","Microsoft YaHei","PingFang SC",sans-serif;--serif:"Archive Sans","Microsoft YaHei",sans-serif;background:var(--bg);color:var(--ink)}
body{background:var(--bg)}button,.button,input:not([type=checkbox]):not([type=range]),textarea,select{border-radius:0}button,.button{min-height:46px;border-color:#484b41;transition:background .18s,color .18s,border-color .18s}button:hover,.button:hover{background:#2b2e26;border-color:#8d846e}.primary{background:var(--accent);color:#241e14;border:1px solid var(--accent);font-weight:600}.primary:hover{background:#f3cd91;border-color:#f3cd91}.selected{border-color:var(--accent);color:var(--accent)}input:not([type=checkbox]):not([type=range]),textarea,select{background:#10120f;border-color:#54584c}input::placeholder,textarea::placeholder{color:#a7ab9d}input:focus,textarea:focus,select:focus{border-color:var(--accent)}h1{font-weight:500;letter-spacing:.08em}h2,h3{letter-spacing:.04em}.notice{border-radius:0;background:#22251e}.notice.error{background:#2c231d;color:#f4c9aa;border-color:#665341}.empty{background:#151713;border-color:#373b31}.text-link{color:#dfba81}.text-button{color:#bdc0b2}.back-link{font-size:13px;color:#b1b5a5}.count,.date{font-family:var(--display);font-variant-numeric:tabular-nums}.date{font-size:16px;letter-spacing:.07em;color:#b4b8a9}.source{border-top:1px solid var(--line);padding-top:20px}.section-heading h2{font-size:19px}.quiet-note{border-top:1px solid var(--line);padding-top:22px;margin-top:28px;color:#a2a796;font-size:12px}.quiet-note svg{color:var(--accent)}::-webkit-scrollbar-thumb{background:#615d4d}::selection{background:var(--accent);color:#17170f}
.sidebar{width:88px;padding:25px 10px 20px;background:#0d0f0d;border-right:1px solid #35382f}.brand{flex-direction:column;gap:10px;margin-bottom:42px}.brand svg{width:36px;height:36px}.brand span{font-size:19px;letter-spacing:.14em;line-height:1.3}.brand small{display:none}.sidebar nav{gap:15px}.sidebar nav a,.sidebar-bottom>a{flex-direction:column;gap:8px;font-size:11px;padding:10px 3px;border-radius:0;min-height:64px;position:relative;color:#a8af9c}.sidebar nav a>svg,.sidebar-bottom>a>svg{width:19px;height:19px}.sidebar nav a:hover,.sidebar-bottom>a:hover{background:#1d2119;color:var(--ink)}.sidebar nav a.active,.sidebar-bottom>a.active{background:transparent;color:var(--accent)}.sidebar nav a.active:after,.sidebar-bottom>a.active:after{content:'';position:absolute;bottom:3px;width:40px;height:1px;background:var(--accent)}.sidebar-bottom{padding-top:30px}.sidebar-bottom>p.rail-motto{margin:25px 0 0;font-family:var(--display);font-size:11px;color:#929a84;letter-spacing:.04em;line-height:1.5;text-align:center}
.main-content{margin-left:88px;width:calc(100% - 88px);max-width:1800px;padding:0 40px 38px}.terminal-topbar{height:76px;display:flex;justify-content:space-between;align-items:center;gap:24px;border-bottom:1px solid #353a2f;margin-bottom:30px}.terminal-wordmark{display:flex;align-items:center;gap:22px;font-family:var(--display);font-weight:500;font-size:17px;letter-spacing:.14em;color:#c9cdbf}.terminal-wordmark span{font-family:var(--sans);font-size:12px;letter-spacing:.12em;color:#a9af9e;border-left:1px solid #4c5343;padding-left:22px}.terminal-identity{display:flex;align-items:center;gap:10px;font-size:12px;color:#b7bdac;min-height:44px}.terminal-identity svg{width:16px;height:16px}.page-heading{margin-bottom:26px}.page-heading h1{font-size:27px}.page-heading p{font-size:13px}.home-heading{margin-bottom:24px;align-items:center}.home-heading h1{font-size:25px;margin-bottom:7px}.home-heading p{font-size:13px;color:#a5ac98}
.wasteland-scene{position:relative;isolation:isolate;min-height:410px;display:flex;align-items:center;overflow:hidden;background:#292d2a;border:1px solid #494d43}.scene-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:70% 58%;z-index:-2;animation:archive-drift 28s ease-in-out infinite alternate}.scene-shade{position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(7,10,8,.87) 0%,rgba(9,12,10,.72) 30%,rgba(10,12,11,.22) 63%,rgba(10,12,11,.02) 100%)}.scene-copy{padding:42px 44px 64px;max-width:540px}.scene-copy h2{font-family:var(--sans);font-size:37px;font-weight:500;letter-spacing:.1em;line-height:1.7;margin:0 0 20px;color:#f0eee5}.scene-copy>p{font-size:15px;line-height:1.9;color:#c9cfc1;margin:0 0 26px}.scene-copy .primary{min-height:48px;padding:12px 22px;font-weight:500;font-size:14px;gap:24px}.scene-instruction{display:block;font-size:12px;color:#b5bcab;margin-top:17px;letter-spacing:.05em}.scene-caption{position:absolute;bottom:18px;left:44px;right:24px;display:flex;align-items:center;gap:10px;font-size:11px;color:#d3d6cb}.scene-caption-rule{height:1px;width:40px;background:#89917d}.signal-point{display:block;width:5px;height:5px;background:var(--accent);animation:signal-breathe 5s ease-in-out infinite}.scene-caption span:last-child{color:#c1c8b6}.memory-console{display:grid;grid-template-columns:1.1fr 1fr;border:1px solid #3d4235;border-top:0;background:#151812}.memory-console section{display:flex;align-items:center;gap:24px;padding:24px 28px;min-width:0}.console-review{border-right:1px solid #3d4235}.memory-console h2{font-size:15px;margin:0 0 7px}.memory-console p{font-size:12px;color:#aeb6a0;line-height:1.6;margin:0}.console-review>div:first-child,.console-archive>div:first-child{flex:1;min-width:0}.review-quantity{display:flex;align-items:baseline;gap:8px;white-space:nowrap}.review-quantity strong{font-family:var(--display);font-size:30px;font-weight:400;line-height:1.2;color:#e7eadd}.review-quantity span{font-size:11px;color:#a7b097}.memory-console .text-link{font-size:12px;white-space:nowrap;gap:8px}.memory-console .text-link svg{width:16px;height:16px}.library-section{margin-top:32px}.book-row{padding:20px 0;gap:22px;border-color:#343a2d}.book-cover{width:66px;height:94px;background:#262b20;border:1px solid #62674d;color:#ded7b9;position:relative}.book-cover:before{left:6px;border-color:#72755b}.book-cover:after{content:'';position:absolute;left:13px;right:6px;bottom:6px;height:3px;border-top:1px solid #65684e;border-bottom:1px solid #65684e}.book-cover span{font-size:22px;letter-spacing:.13em}.book-row h2,.book-row h3{font-size:18px}.book-row-copy>span{color:#a6ae98;font-size:13px}.book-meta{font-family:var(--sans);font-size:12px;gap:22px;color:#b4bba8}.book-row:hover{background:#151a12}.book-row:hover .book-cover{border-color:var(--accent)}.book-title h1{font-size:32px}.book-cover.large{width:116px;height:168px}.book-cover.large span{font-size:30px}.original-text{color:#ded9c7}.setup-panel{background:#161a13;border:1px solid #3d4433;padding:26px}.setting-summary strong{font-family:var(--display);color:#d9d3be}.form-panel{background:#161a13;border:1px solid #373e2d}.support-panel{border-color:#444a39;background:#14180f}.settings-section{border-color:#383f2e}.settings-section>div:first-child p{color:#afb5a3}.segment-editor{background:#11160e;border-color:#414a35}.segment-row{border-color:#313a28}.segment-number{font-family:var(--display);color:#b3be9d}.admin-book-row,.download-row,.review-row{border-color:#343c2a}.status-text,.due{color:#e2b97b}.amounts .selected{background:#30291b}.danger-zone{border-top:1px solid #4d4c3e;padding-top:14px}.prose{max-width:72ch}.toolbar input{background:#11160d}.empty h2{font-family:var(--sans)}
.training-stage{position:relative;isolation:isolate;overflow:hidden;background:#10160c;border:1px solid #5c664a;padding:25px 36px 28px}.training-stage:before{content:'';position:absolute;inset:0;z-index:-2;background:url('images/grey-archive.jpg') 72% 52%/cover;opacity:.075;filter:grayscale(1)}.training-top{font-size:12px;color:#c1c7b1}.training-top>span:last-child{font-family:var(--display);font-size:14px}.state-badge{color:#e1bb7c}.training-progress{height:2px;background:#3a442c;margin-top:20px}.training-progress>div{background:var(--accent)}.training-words{min-height:330px;padding:40px 22px}.training-words p{font-family:var(--serif);color:#e8d3a5;font-size:34px;letter-spacing:.1em;line-height:2}.training-words.recall p{font-family:var(--sans);font-size:25px;color:#c6ceb5;letter-spacing:.1em;line-height:1.9}.countdown{font-family:var(--display);font-weight:300;color:#f0c27d;font-size:66px;letter-spacing:.03em;line-height:1.2;margin-top:24px}.countdown small{color:#c4cbb5;font-size:12px}.player-controls .play-button{border-radius:0;background:var(--accent);color:#241e14;border:1px solid #efcd96;min-width:148px;min-height:52px;font-size:15px}.player-controls .play-button:hover{background:#f4d69f}.player-controls>button{color:#bec8ab}.training-footer{font-size:12px;color:#aeb99e}.extend{color:#d6bc8d;margin-top:20px}.rating-buttons button{background:#1b2314;border-color:#596744}.rating-buttons button:hover{border-color:var(--accent);color:var(--accent)}.pure-mode .scene-image,.pure-mode .scene-shade,.pure-mode .scene-caption,.pure-mode .training-stage:before{display:none}.pure-mode .wasteland-scene{background:#161b13;min-height:300px}.pure-mode .scene-copy{padding-bottom:42px}.large-text .training-words p{font-size:40px}.large-text .original-text{font-size:30px}
@keyframes archive-drift{from{transform:scale(1.015) translateX(0)}to{transform:scale(1.045) translateX(-.45%)}}
@keyframes signal-breathe{0%,100%{opacity:.6}50%{opacity:1}}
@media(min-width:1600px){.main-content{padding-left:52px;padding-right:52px}.wasteland-scene{min-height:450px}.scene-copy h2{font-size:42px}}
@media(max-width:1150px){.sidebar{width:88px;padding:25px 10px 20px}.main-content{margin-left:88px;width:calc(100% - 88px);padding:0 28px 36px}.terminal-topbar{height:70px}.wasteland-scene{min-height:390px}.scene-copy{padding-left:30px;max-width:440px}.scene-copy h2{font-size:32px}.scene-caption{left:30px}.memory-console{grid-template-columns:1fr}.memory-console section{padding:18px 24px;gap:22px}.console-review{border-right:0;border-bottom:1px solid #3d4235}.memory-console .console-archive{min-height:80px}.book-detail{gap:28px}.scene-image{object-position:65% 55%}.terminal-wordmark{font-size:16px;gap:16px}.terminal-wordmark span{padding-left:16px;font-size:11px}}
@media(max-width:760px){.sidebar{position:relative;width:100%;height:74px;padding:13px 20px;flex-direction:row;border-right:0;border-bottom:1px solid #373c30}.brand{flex-direction:row;gap:10px;margin:0}.brand svg{width:31px;height:31px}.brand span{font-size:21px}.brand small{display:none}.sidebar nav{padding:5px 8px max(8px,env(safe-area-inset-bottom));border-color:#4d5540;background:#0d110b}.sidebar nav a{flex-direction:column;min-height:56px;font-size:11px;gap:6px;padding:8px 3px}.sidebar nav a.active:after{bottom:2px;width:34px}.sidebar-bottom{padding:0;gap:9px}.sidebar-bottom>a{font-size:11px;min-height:44px;padding:3px 5px;gap:4px}.sidebar-bottom>a>svg{width:18px;height:18px}.sidebar-bottom>a.active:after{display:none}.sidebar-bottom>p.rail-motto{display:none}.main-content{margin:0;width:100%;padding:0 18px 108px}.terminal-topbar{height:48px;margin-bottom:24px;gap:10px}.terminal-wordmark{font-size:12px;letter-spacing:.11em;gap:0}.terminal-wordmark span{display:none}.terminal-identity{font-size:11px;gap:7px}.terminal-identity svg{width:14px;height:14px}.page-heading{gap:14px;margin-bottom:23px}.page-heading h1,.home-heading h1{font-size:24px}.page-heading p,.home-heading p{font-size:12px}.date{font-size:12px;white-space:nowrap;letter-spacing:.02em}.home-heading{align-items:flex-start}.home-heading .date{padding-top:8px}.wasteland-scene{min-height:440px;align-items:flex-start}.scene-image{object-position:70% center;animation:none}.scene-shade{background:linear-gradient(180deg,rgba(6,10,6,.8) 0%,rgba(7,10,7,.58) 38%,rgba(7,10,7,.04) 74%,rgba(7,10,7,.56) 100%)}.scene-copy{padding:26px 23px 30px;max-width:100%;width:100%}.scene-copy h2{font-size:28px;line-height:1.65;letter-spacing:.07em;margin-bottom:14px}.scene-copy>p{font-size:13px;line-height:1.8;margin-bottom:20px;color:#d6dccd}.scene-copy .primary{font-size:13px;min-height:46px;padding:10px 17px;gap:20px}.scene-instruction{font-size:11px;margin-top:13px;color:#d1d7c6}.scene-caption{left:20px;right:15px;bottom:17px;gap:8px;font-size:11px}.scene-caption-rule{width:24px}.memory-console section{padding:19px 18px;gap:14px;flex-wrap:wrap}.memory-console h2{font-size:14px}.memory-console p{font-size:12px}.console-review>div:first-child{flex-basis:calc(100% - 110px)}.console-review>.text-link{margin-left:0;min-height:36px}.review-quantity{flex-direction:column;gap:3px;align-items:flex-end}.review-quantity strong{font-size:32px}.review-quantity span{font-size:11px}.console-archive .text-link{font-size:12px}.library-section{margin-top:28px}.section-heading h2{font-size:18px}.book-cover{width:59px;height:86px}.book-cover span{font-size:21px}.book-row-copy>span{display:block;font-size:12px;line-height:1.6}.book-row{gap:16px;flex-wrap:wrap;padding:20px 0}.book-row-copy{flex-basis:calc(100% - 95px)}.book-meta{margin-left:75px;align-self:auto;margin-bottom:0;font-size:11px}.book-cover.large{width:96px;height:142px}.book-title h1{font-size:28px}.book-title{gap:22px}.book-detail .setup-panel{padding:24px}.book-meta svg{display:block;width:16px;height:16px}.training-stage{padding:20px 16px 24px}.training-words{min-height:300px;padding:30px 5px}.training-words p{font-size:29px;letter-spacing:.06em}.training-words.recall p{font-size:23px}.countdown{font-size:60px}.player-controls{gap:10px}.player-controls .play-button{min-width:115px;min-height:50px;font-size:14px}.player-controls>button{font-size:12px;gap:6px}.training-footer{font-size:12px}.training-stage:before{background-position:72% center;opacity:.06}.large-text .training-words p{font-size:34px}.support-panel{padding:24px}.form-panel{padding:22px}.quiet-note{font-size:12px;padding-top:18px}.pure-mode .wasteland-scene{min-height:300px}.pure-mode .scene-copy{padding-bottom:26px}}
@media(prefers-reduced-motion:reduce){.scene-image,.signal-point{animation:none!important}.scene-image{transform:none}*{scroll-behavior:auto!important}}

.sidebar nav a,.sidebar-bottom>a{font-size:12px}.sidebar-bottom>p.rail-motto{font-size:12px}.scene-caption,.scene-instruction,.review-quantity span{font-size:12px}.memory-console p,.memory-console .text-link{font-size:13px}.book-meta{font-size:13px}@media(max-width:760px){.sidebar nav a,.sidebar-bottom>a,.terminal-wordmark,.terminal-identity,.scene-caption,.scene-instruction{font-size:12px}.memory-console p,.memory-console .text-link{font-size:12px}.book-meta{font-size:12px}}

.boot-screen{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted);background:var(--bg)}.boot-screen>span{font-family:var(--display);font-size:24px;letter-spacing:.15em;color:var(--accent)}.boot-screen p{font-size:14px;margin-top:24px}
