:root{--bg:#f4f7fb;--paper:#fff;--ink:#15243a;--muted:#52647d;--line:#dce5ef;--blue:#164ca5;--deep:#18356b;--soft:#e7f0ff;--green:#1f634b;--mint:#dcf6ee;--shade:0 12px 34px #18356b0e;--sans:system-ui,-apple-system,'Segoe UI',sans-serif;--jp:'Hiragino Kaku Gothic ProN','Yu Gothic','Noto Sans CJK JP','Meiryo',sans-serif;color-scheme:light}
*,*::before,*::after{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:1rem/1.55 var(--sans);padding-bottom:calc(5.5rem + env(safe-area-inset-bottom,0px))}a{color:inherit}button{font:inherit}a,button{-webkit-tap-highlight-color:transparent}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #276ce1;outline-offset:3px}button:disabled{cursor:default}h1,h2,h3,p{margin:0}p+p{margin-top:.55rem}h1,h2,h3{line-height:1.17}h1{font-size:clamp(2rem,6vw,3.2rem);letter-spacing:-.05em;font-weight:840}h2{font-size:clamp(1.24rem,4vw,1.62rem);letter-spacing:-.025em}h3{font-size:1.15rem}svg{width:1.3rem;height:1.3rem;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.skip{position:absolute;top:-100vh;left:1rem;z-index:20;padding:.6rem;background:white}.skip:focus{top:.5rem}
.head{background:var(--paper);border-bottom:1px solid var(--line)}.head-inner{max-width:74rem;margin:auto;min-height:4.3rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:0 1rem}.brand{display:flex;align-items:center;gap:.65rem;text-decoration:none;font-size:1.08rem;font-weight:850;line-height:1.03;white-space:nowrap}.logo{width:2.5rem;height:2.5rem;display:grid;place-items:center;background:#163d81;color:white;border-radius:.8rem}.brand-sub{display:block;margin-top:.28rem;font-size:.69rem;letter-spacing:.17em;color:#475d7b}.level-tag{display:flex;align-items:center;gap:.55rem;color:#344a67;background:#eef3fa;border-radius:1.5rem;padding:.3rem .42rem .3rem .76rem;font-weight:700;font-size:.88rem;white-space:nowrap}.level-tag b{background:white;padding:.11rem .42rem;border-radius:1rem}.nav{position:fixed;bottom:0;inset-inline:0;z-index:3;background:var(--paper);border-top:1px solid var(--line);padding:.36rem .45rem calc(.32rem + env(safe-area-inset-bottom,0px))}.nav>div{max-width:40rem;margin:auto;display:grid;grid-template-columns:repeat(4,1fr);gap:.27rem}.nav a{min-height:3.35rem;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:.22rem;color:var(--muted);font-size:.86rem;font-weight:750;line-height:1.15;text-decoration:none;border-radius:.86rem;padding:.28rem}.nav a:hover,.nav a[aria-current=page]{background:var(--soft);color:var(--blue)}main{max-width:58rem;margin:0 auto;padding:1.55rem 1rem 1.5rem}main:focus{outline:none}.kicker{color:var(--blue);font-weight:850;font-size:.875rem;letter-spacing:.10em;line-height:1.25;margin-bottom:.52rem}.intro{max-width:59ch;margin-top:.55rem;color:var(--muted)}.dash-heading{margin-bottom:1.05rem}.journey{position:relative;overflow:hidden;border-radius:1.25rem;background:linear-gradient(125deg,#15346c,#204f9d);color:white;padding:1.22rem 1.15rem;min-height:9.1rem;isolation:isolate}.journey-content{position:relative;z-index:1;max-width:72%}.journey .kicker,.journey h2+p{color:#dce8ff}.journey h2+p{margin-top:.55rem}.journey-art{position:absolute;display:flex;align-items:center;gap:.35rem;right:-.8rem;bottom:-.4rem;transform:rotate(-13deg);color:#c1d7ff;opacity:.43;pointer-events:none}.journey-art span{display:grid;place-items:center;width:2.7rem;height:3.45rem;background:#83aaf23e;border:1px solid #d2e1ff70;border-radius:.5rem;font:700 1.85rem var(--jp)}.journey-art span:first-child{transform:translateY(.6rem)}.journey-art span:last-child{transform:translateY(-.6rem)}.progress{width:100%;height:.65rem;display:block;margin-top:.72rem;border:0;border-radius:999px;background:#e1e9f3;overflow:hidden}.progress::-webkit-progress-bar{background:#e1e9f3;border-radius:999px}.progress::-webkit-progress-value{background:#305fbb;border-radius:999px}.progress::-moz-progress-bar{background:#305fbb;border-radius:999px}.journey .progress{max-width:25rem;background:#ffffff34}.journey .progress::-webkit-progress-bar{background:#ffffff34}.journey .progress::-webkit-progress-value{background:#9cf2d4}.journey .progress::-moz-progress-bar{background:#9cf2d4}
.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:.65rem;margin-top:.72rem}.dash-tile{border:1px solid var(--line);border-radius:1.1rem;background:white;box-shadow:var(--shade);min-width:0;display:flex;flex-direction:column;align-items:flex-start;padding:.8rem}.dash-tile h2{font-size:clamp(1.12rem,4.5vw,1.7rem);overflow-wrap:anywhere}.tile-header{display:flex;flex-wrap:wrap;align-items:center;gap:.42rem;margin-bottom:.66rem}.tile-header .kicker{font-size:.875rem;letter-spacing:.02em;margin:0}.tile-icon{flex-shrink:0;width:2rem;height:2rem;display:grid;place-items:center;border-radius:.61rem;background:var(--soft);color:var(--blue);font-weight:850;line-height:1}.review-tile .tile-icon,.review-deck .tile-icon{background:var(--mint);color:var(--green)}.review-tile .kicker,.review-tile .queue-count{color:var(--green)}.dash-tile p{margin:.4rem 0 .72rem;color:var(--muted);font-size:.89rem}.dash-tile .btn,.dash-tile .secondary{margin-top:auto;width:100%;white-space:normal;padding:.5rem .42rem;text-align:center;font-size:.88rem}.path-heading{display:flex;justify-content:space-between;align-items:end;gap:.6rem;margin:1.85rem 0 .72rem}.path-heading .secondary{white-space:nowrap}.path-heading .kicker{margin-bottom:.27rem}.course-grid{list-style:none;margin:0;padding:0;display:grid;gap:.6rem}.route-stop{position:relative}.course-grid:not(.library-grid) .route-stop:not(:last-child)::after{content:"";position:absolute;left:1.94rem;bottom:-.61rem;height:.61rem;width:2px;background:#a7bce3;z-index:1}.route-item{min-height:4rem;display:flex;align-items:center;gap:.65rem;padding:.72rem;text-decoration:none;background:white;border:1px solid var(--line);border-radius:.88rem}.route-item:hover{border-color:#6689cf;background:#fbfdff}.route-stop.current .route-item{border-color:#91b2f0;background:#eef4ff}.route-stop.complete .stop{background:var(--mint);color:var(--green)}.stop{flex:0 0 2.45rem;width:2.45rem;height:2.45rem;display:grid;place-items:center;border-radius:.71rem;background:#edf1f7;color:#486080;font-weight:830}.current .stop{background:#2055ac;color:white}.route-item .core{flex:1;min-width:0}.route-item strong{display:block;line-height:1.33;font-size:1rem}.route-item .meta{display:block;margin-top:.13rem;color:var(--muted);font-size:.86rem;line-height:1.35}.chip{display:inline-flex;white-space:nowrap;background:#edf1f8;color:#45607c;border-radius:2rem;font-weight:760;font-size:.82rem;line-height:1.2;padding:.33rem .47rem}.current .chip{background:#d8e8ff;color:#143e90}.complete .chip{background:var(--mint);color:var(--green)}.read-quick{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.55rem;border-top:1px solid var(--line);margin-top:1.25rem;padding-top:.95rem}.read-quick p{color:var(--muted);margin-top:.24rem;font-size:.91rem}
.section{margin-top:1.45rem}.section-body{margin-top:.62rem}.spread{display:grid;gap:.65rem}.panel{background:white;border:1px solid var(--line);border-radius:1rem;padding:1rem;box-shadow:var(--shade)}.stage-line{display:flex;justify-content:space-between;gap:.3rem;margin:1rem 0 0;padding:.6rem .7rem;list-style:none;background:#e9f0fb;border-radius:.75rem;color:#344e71;font-weight:720;font-size:.88rem}.stage-line li{display:flex;align-items:center;gap:.32rem}.stage-line b{display:grid;place-items:center;border-radius:50%;width:1.38rem;height:1.38rem;background:white;color:var(--blue);font-size:.78rem}.btn,.secondary,.choice,.back{cursor:pointer;text-decoration:none;border-radius:.77rem;display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:.6rem .83rem;font-weight:790;line-height:1.2}.btn{background:#174fa9;color:white;border:1px solid #174fa9;box-shadow:0 2px 0 #153d7a}.btn:hover{background:#123f8a}.secondary,.choice{background:white;color:var(--blue);border:1px solid #b9cde9}.secondary:hover,.choice:hover{background:#edf4ff;border-color:#79a0df}.btn:active,.secondary:active{transform:translateY(1px)}.back{color:var(--blue);background:#eaf1fc;padding:.42rem .65rem;margin-bottom:.75rem}.actions{display:flex;gap:.55rem;flex-wrap:wrap;margin-top:.9rem}.actions>*{flex:1 1 10rem}.lesson-copy{margin-top:.5rem}.example{background:#eaf2ff;border-left:3px solid #5685d9;border-radius:.7rem;padding:.73rem .9rem}.example+.example{margin-top:.55rem}.example .jp+p{color:#415477}.jp{font-family:var(--jp);font-size:1.35rem;line-height:1.63;overflow-wrap:anywhere}.kanji-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kanji-grid .panel{background:#effaf6;border-color:#cde7db;padding:.8rem}.kanji-grid .jp{font-size:clamp(1.26rem,5vw,1.95rem);font-weight:760;color:var(--green)}.kanji-grid .micro{margin-top:.48rem}.micro{font-size:.89rem;color:var(--muted)}.source,.privacy,.offline-note{margin-top:1.05rem;color:var(--muted);font-size:.885rem}.source a,.privacy a{color:var(--blue);text-underline-offset:.17em}.passage{background:#f0f5ff;border:1px solid #d7e3fd;padding:.9rem;border-radius:.8rem}.reading-jp{font-size:clamp(1.22rem,4.7vw,1.6rem);line-height:1.95}.passage p+p{margin:.25rem 0 0}.wordbook{margin:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:.55rem .75rem}.wordbook dd{margin:0;color:var(--muted)}.wordbook dt{font-family:var(--jp);font-weight:720}.reveal{cursor:pointer;min-height:44px;padding:.55rem 0;color:var(--blue);font-weight:750}.translation{padding:.1rem 0 .45rem}.result{margin-top:.7rem;color:var(--muted)}rt{font-size:.58em;font-weight:530}
.review-decks{display:grid;gap:.62rem;margin-top:1rem}.review-deck{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.75rem;align-items:center;border:1px solid var(--line);background:white;box-shadow:var(--shade);border-radius:.9rem;padding:.83rem}.review-deck .tile-icon{width:2.5rem;height:2.5rem;font:750 1.14rem var(--jp)}.review-deck h2{font-size:1.1rem}.review-deck p{color:var(--muted);font-size:.88rem;margin-top:.24rem}.review-deck.due{background:#effaf6;border-color:#cbe6dc}.review-deck.due .btn{background:#19654c;border-color:#19654c;box-shadow:0 2px 0 #1b4d3d}.is-focus{padding-bottom:env(safe-area-inset-bottom,0px)}.is-focus .head{display:none}.is-focus main{max-width:43rem;padding-top:1rem}.focus-session{min-height:calc(100svh - 2rem)}.focus-head{display:grid;grid-template-columns:auto 1fr auto;gap:.65rem;align-items:center;margin-bottom:1.05rem}.focus-head .kicker{margin:0}.focus-head .progress{margin-top:.38rem}.focus-head>span{color:var(--muted);font-weight:760;font-variant-numeric:tabular-nums}.close-session{display:grid;place-items:center;height:2.75rem;width:2.75rem;border-radius:.7rem;background:#e8eef9;color:#2c4b77;text-decoration:none;font-size:1.64rem;font-weight:740;line-height:1}.close-session:hover{background:#dce8fc}.session-topic{color:var(--muted);font-size:.95rem;margin:0 0 .62rem}.question-panel h2{font-size:clamp(1.25rem,4.5vw,1.8rem)}.prompt-line{padding:.45rem .72rem;background:#eef4ff;border-radius:.7rem;margin-top:.62rem}.quiz-options{display:grid;gap:.5rem;margin-top:.8rem}.choice{text-align:left;justify-content:flex-start;align-items:center;width:100%;min-height:52px;gap:.65rem;color:var(--ink)}.answer-index{flex:none;display:grid;place-items:center;width:1.6rem;height:1.6rem;background:#e9f1fd;color:#395983;border-radius:.45rem;font-size:.83rem}.choice:disabled:not(.correct):not(.incorrect){opacity:.65}.choice.correct{background:#e0f7ec;border-color:#72ad93}.choice.incorrect{background:#ffece8;border-color:#dbaba0}.feedback{margin-top:.7rem;padding:.65rem .72rem;background:#e0f7ec;color:#224f3f;border-radius:.67rem}.feedback.miss{background:#ffede8;color:#793b2d}.finish-panel h1{font-size:clamp(1.55rem,6vw,2.5rem)}.flash{position:relative;display:grid;justify-items:center;place-content:center;text-align:center;gap:.35rem;width:100%;min-height:clamp(220px,44svh,330px);padding:1.35rem 1rem;color:white;background:linear-gradient(132deg,#1b3b7a,#305ea8);border:1px solid #2f5da6;border-radius:1.2rem;box-shadow:var(--shade);cursor:pointer;touch-action:manipulation}.flash .jp{font-size:clamp(2rem,8vw,3.25rem);font-weight:780}.flash-label,.flash .muted-light{color:#e0ebff}.flash-label{font-size:.81rem;font-weight:810;letter-spacing:.11em}.flash .answer{font-size:1.32rem;font-weight:780}.flip-label{display:inline-flex;margin-top:.66rem;background:white;color:#1e4d9b;border-radius:.65rem;padding:.52rem .9rem;font-weight:780}.flash.is-flipped{color:#163d31;background:#dcf7eb;border-color:#99cbb7}.flash.is-flipped .muted-light,.flash.is-flipped .flash-label{color:#3e6558}.review-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;margin-top:.65rem}.review-row button{display:grid;justify-items:center;gap:.16rem;min-height:3.5rem;padding:.34rem .24rem;color:#23446a}.review-row button small{font-size:.79rem;font-weight:630;color:#4a5e77}.review-row button:disabled{opacity:.56}.review-row button:not(:disabled).score-again{background:#fff1e7;color:#7a3e28;border-color:#efc5ad}.review-row button:not(:disabled).score-got{background:#e9f1fd;color:var(--blue);border-color:#aacaed}.review-row button:not(:disabled).score-easy{background:var(--mint);color:var(--green);border-color:#9ad0bf}
@media(min-width:45rem){body{padding-bottom:0}.head-inner{padding:0 1.5rem}.nav{position:static;border:0;padding:0;background:transparent}.nav>div{display:flex}.nav a{flex-direction:row;gap:.44rem;padding:.46rem .7rem;min-height:2.6rem}.nav a svg{width:1.12rem;height:1.12rem}main{padding:2.35rem 1.55rem}.journey{padding:1.55rem 1.6rem}.journey-art{right:1.8rem;bottom:-1.45rem}.journey-art span{width:4.7rem;height:5.5rem;font-size:3rem}.dashboard-grid{gap:.8rem;margin-top:.84rem}.dash-tile{padding:1.08rem}.dash-tile .btn,.dash-tile .secondary{width:auto;min-width:9rem;padding:.55rem .8rem}.tile-header .kicker{font-size:.84rem}.tile-icon{width:2.4rem;height:2.4rem}.library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.panel{padding:1.2rem}.section{margin-top:1.8rem}}
@media(max-width:360px){main{padding-inline:.68rem}.head-inner{padding-inline:.65rem}.route-item{gap:.45rem;padding:.55rem}.course-grid:not(.library-grid) .route-stop:not(:last-child)::after{left:1.77rem}.chip{font-size:.73rem}.stop-end{flex-shrink:0}.dash-tile{padding:.64rem}.review-deck{gap:.45rem;padding:.61rem}.review-deck .btn,.review-deck .secondary{padding:.45rem .55rem;font-size:.88rem}.path-heading .secondary{font-size:.88rem;padding:.45rem .53rem}}
@media(prefers-reduced-motion:no-preference){a,button{transition:background-color .15s,border-color .15s,color .15s}}
