/* Reference-led Nihongo pages only. No pricing, access or progression rules. */
:is(.koi-home-body,.koi-review-body,.koi-profile-body,.koi-course-detail-body){--koi-premium-border:#71838c40;background:linear-gradient(#03080c40,#03080ca8),url('./nihongo/learning/background.jpg') center top/cover fixed no-repeat #050b10;color:#f5f1ed}
:is(.koi-home-body,.koi-review-body,.koi-profile-body,.koi-course-detail-body)::before{display:none!important}
:is(.koi-home-body,.koi-review-body,.koi-profile-body,.koi-course-detail-body) .koi-header{background:#050b10e8;border-bottom:1px solid #a5b6bd25;box-shadow:0 8px 30px #0004}
:is(.koi-home-body,.koi-review-body,.koi-profile-body,.koi-course-detail-body) :is(.koi-button,.koi-review-primary-button,.koi-home-primary-action,.koi-dashboard-continue){background:linear-gradient(125deg,#ff1238,#d50029);border:1px solid #ff3152;border-radius:10px;box-shadow:0 5px 24px #ef103537;color:#fff}
:is(.koi-home-body,.koi-review-body,.koi-profile-body,.koi-course-detail-body) a:focus-visible{outline:2px solid #ff3556;outline-offset:4px}
.koi-home-body .koi-home-main{max-width:1600px;margin:auto;padding:0 30px 40px}
.koi-home-body .koi-home-hero{min-height:470px;margin:0 -30px;padding:42px 54px;isolation:isolate}
.koi-home-body .koi-home-hero>.koi-home-hero__visuals{inset:0}
.koi-home-body .koi-home-hero__overlay{background:linear-gradient(90deg,#02070be0 0%,#02070b40 39%,transparent 70%)}
.koi-home-body :is(.koi-home-hero__koi,.koi-home-hero__japan){filter:brightness(1.35) saturate(1.18);opacity:1}
.koi-home-body .koi-home-hero h1{font-size:clamp(3rem,5.5vw,5.3rem);line-height:1.03;letter-spacing:-.035em}
.koi-home-body .koi-home-hero h1 .koi-home-title-line span{color:#ff153d}
.koi-home-body .koi-home-kicker{color:#c4c2c3;letter-spacing:.18em;font-weight:400}
.koi-home-body .koi-home-description{color:#e0dfe0;font-size:1.08rem}
.koi-home-body .koi-home-actions a{min-height:52px;padding:14px 24px;font-weight:500}
.koi-home-body .koi-dashboard-panel{grid-template-columns:1.12fr 1fr 1.05fr;gap:16px;margin-top:0}
.koi-home-body .koi-dashboard-card{padding:20px;border:1px solid var(--koi-premium-border);border-radius:13px;background:linear-gradient(135deg,#0b1219ef,#060c12ef);box-shadow:0 12px 25px #0005,inset 0 1px #ffffff06;min-height:165px}
.koi-home-body .koi-dashboard-card h2{font-size:1.3rem;font-weight:400}
.koi-home-body .koi-dashboard-ai{background:linear-gradient(90deg,#090f15d9,#090f15f5),url('./nihongo/learning/looks.jpg') right 28%/cover}
.koi-home-body .koi-dashboard-ai.is-collapsed .koi-home-ai-header{display:grid;grid-template-columns:86px minmax(0,1fr) 32px;align-items:center;gap:16px}
.koi-home-body .koi-dashboard-ai.is-collapsed .koi-dashboard-ai-icon{width:86px;height:108px;border:1px solid #ff284b55;border-radius:10px;background:url('./nihongo/learning/looks.jpg') center 24%/cover}
.koi-home-body .koi-dashboard-ai.is-collapsed .koi-dashboard-ai-icon img{display:none}
.koi-home-body .koi-dashboard-cover{border-radius:9px;box-shadow:0 0 20px #e91d3b20}
.koi-home-body .koi-learning-path{margin-top:30px;padding:0;background:none}
.koi-home-body .koi-path-stages{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.koi-home-body .koi-path-stage{min-width:0;border:1px solid #8f9ca33a;border-radius:12px;background:linear-gradient(90deg,#050b10db,#050b1070),url('./nihongo/learning/background.jpg') center/cover;overflow:hidden}
.koi-home-body .koi-path-stage::after{display:none}
.koi-home-body .koi-path-stage>a,.koi-home-body .koi-path-stage>span{align-items:flex-start;text-align:left;padding:18px;min-height:125px;gap:8px}
.koi-home-body .koi-path-current{border-color:#ff153d;box-shadow:0 0 20px #f20d3c30}
.koi-home-body .koi-path-locked{filter:saturate(.4)}
.koi-review-body .koi-review-main{width:100%;max-width:1380px;margin:auto;padding:42px 32px}
.koi-review-body .koi-review-page{max-width:none;padding:0}
.koi-review-body .koi-review-hero{padding:12px 0 25px;background:linear-gradient(90deg,#050b1080,transparent),url('./nihongo/learning/background.jpg') right 40%/cover;border-radius:12px}
.koi-review-body .koi-review-hero h1{font-size:clamp(2.4rem,4vw,3.8rem);font-weight:400;letter-spacing:-.025em}
.koi-review-body .koi-review-stats{gap:18px;margin-bottom:22px}
.koi-review-body .koi-review-stats article{padding:22px;border:1px solid var(--koi-premium-border);border-radius:12px;background:#070d13e8;box-shadow:inset 0 1px #ffffff07,0 8px 24px #0004}
.koi-review-body .koi-review-stats strong{font-size:1.7rem}
.koi-review-body :is(.koi-review-current,.koi-review-empty){border:1px solid #db334f80;border-radius:13px;background:linear-gradient(90deg,#060c13fa 45%,#060c1330),url('./nihongo/learning/background.jpg') right center/cover;box-shadow:0 12px 40px #0005;overflow:hidden}
.koi-review-body .koi-review-art{background:url('./nihongo/learning/background.jpg') center/cover;filter:saturate(1.15)}
.koi-review-body .koi-review-current-content{padding:30px}
.koi-review-body .koi-review-up-next>ol{gap:16px}
.koi-review-body .koi-review-up-next li{border:1px solid var(--koi-premium-border);border-radius:12px;background:#070e15ed;padding:20px}
.koi-review-body .koi-review-empty{padding:50px 24px}
.koi-profile-body .koi-profile-main{max-width:1380px;margin:auto;padding:36px 32px}
.koi-profile-body .koi-profile-page{display:flex;flex-direction:column;gap:24px;padding:0;max-width:none}
.koi-profile-body .koi-profile-page>*{min-width:0;box-sizing:border-box}
.koi-profile-body .koi-profile-hero{margin:0;padding:0}
.koi-profile-body .koi-profile-hero h1{font-size:2rem;margin:0}
.koi-profile-body .koi-profile-top{padding:32px;border:1px solid #8e9ba530;border-radius:16px;background:linear-gradient(90deg,#050b10e8,#050b1040),url('./nihongo/learning/background.jpg') center/cover}
.koi-profile-body .koi-profile-card{border:0;background:transparent;padding:0;box-shadow:none}
.koi-profile-body .koi-profile-avatar-wrap{border:2px solid #ff2145;box-shadow:0 0 0 6px #eb123d20,0 0 28px #ff0b3e70;border-radius:50%;width:180px;height:180px}
.koi-profile-body .koi-profile-identification h2{font-size:3rem;font-weight:400}
.koi-profile-body .koi-profile-quote{border:0;background:transparent;padding:18px;color:#fff;text-shadow:0 2px 9px #000}
.koi-profile-body .koi-profile-stats{order:1;margin:0;gap:18px}
.koi-profile-body .koi-profile-plan{order:2;background:none;border:0;padding:0;margin:0}
.koi-profile-body :is(.koi-profile-level,.koi-profile-motto,.koi-profile-account-info){order:3}
.koi-profile-body .koi-profile-stats article{padding:24px;border-radius:12px;background:#080e15ed;border:1px solid #8999a03d}
.koi-profile-body .koi-profile-stats strong{font-family:var(--koi-font-display);font-size:2.5rem;font-weight:400}
.koi-premium-plan-title{grid-column:1/-1;margin:0 0 20px}
.koi-premium-plan-title h2{font:400 2.2rem var(--koi-font-display);margin:0 0 8px}
.koi-premium-plan-title p{color:#c4c7cc;margin:0}
.koi-profile-body .koi-purchase-options{gap:18px}
.koi-profile-body .koi-purchase-options>article{display:flex;flex-direction:column;padding:25px;border:1px solid #8c9ca24d;border-radius:13px;background:linear-gradient(#060b12c9,#060b12f2),url('./nihongo/learning/background.jpg') center/cover;box-shadow:0 15px 30px #0005}
.koi-profile-body .koi-purchase-options>article:last-child{border-color:#ff254c99;box-shadow:0 0 24px #f3173824}
.koi-profile-body .koi-purchase-options h3{font:400 1.7rem var(--koi-font-display)}
.koi-profile-body .koi-purchase-options>article>:is(a,button){margin-top:auto;min-height:46px}
.koi-course-detail-body .koi-course-detail-main{max-width:1500px;margin:auto;padding:32px}
.koi-course-detail-body .koi-course-detail-layout{grid-template-columns:minmax(0,1fr) 320px;gap:26px;max-width:none;position:relative;padding-top:0}
.koi-course-detail-body .koi-course-detail-hero{min-height:290px;margin-bottom:22px;padding:22px 24px 28px;border:0;background:linear-gradient(90deg,#040a10f5 25%,#040a1040),url('./nihongo/learning/background.jpg') right center/cover;border-radius:12px}
.koi-course-detail-body .koi-course-detail-hero h1{font-size:clamp(2.7rem,4vw,4.6rem)}
.koi-course-detail-body .koi-course-detail-description{max-width:650px;color:#e0e2e4}
.koi-course-detail-body .koi-course-program{padding:20px;background:#070e15ed;border:1px solid #8999a03a;border-radius:12px}
.koi-course-detail-body .koi-course-program-module{margin:8px 0;background:#0b141ccc;border:1px solid #8999a030;border-radius:10px}
.koi-course-detail-body .koi-course-program-module[open]{border-left:3px solid #ff173d}
.koi-course-detail-body .koi-course-program-number{background:#eb0a35;border:0;box-shadow:0 0 16px #f7103930}
.koi-course-detail-body .koi-course-program-summary strong{white-space:normal;font-size:1.25rem}
.koi-course-detail-body .koi-course-program-lesson-current{background:linear-gradient(90deg,#df123b45,transparent);border-radius:6px}
.koi-course-detail-body .koi-course-detail-aside{display:flex;flex-direction:column;gap:16px;padding:0;border:0;background:none;align-self:start;min-height:0;margin-top:340px}
.koi-course-detail-body .koi-course-detail-aside>section,.koi-course-detail-body .koi-course-detail-aside>div{padding:22px;background:#070e15eb;border:1px solid #8999a040;border-radius:12px;min-height:0}
.koi-course-detail-body .koi-course-detail-aside>footer{display:none}
.koi-course-detail-body .koi-course-detail-aside>div{background:linear-gradient(90deg,#040a10bd,#040a1060),url('./nihongo/learning/background.jpg') center/cover}
.koi-course-detail-body .koi-course-detail-aside>div p[lang=ja]{font-size:1.65rem;line-height:1.6;writing-mode:horizontal-tb}
.koi-course-detail-body .koi-course-detail-aside>div p{margin:0 0 12px;line-height:1.6}
.koi-review-body .koi-review-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.koi-review-body .koi-review-stats article{min-width:0;box-sizing:border-box;display:flex;align-items:center;gap:18px}
.koi-profile-body .koi-profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.koi-profile-body .koi-purchase-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-column:1/-1}
.koi-profile-body .koi-purchase-options>article ul{flex:1}
@media(max-width:760px){.koi-review-body .koi-review-stats,.koi-profile-body .koi-profile-stats,.koi-profile-body .koi-purchase-options{grid-template-columns:1fr}}
.koi-premium-course-progress h2{font:400 1.4rem var(--koi-font-display);margin:0 0 18px}
.koi-premium-ring{width:110px;height:110px;display:grid;place-items:center;border-radius:50%;background:conic-gradient(#ff133f calc(var(--progress)*1%),#27303a 0);position:relative;isolation:isolate}
.koi-premium-ring::before{position:absolute;inset:8px;border-radius:50%;background:#080e16;content:'';z-index:-1}
.koi-premium-ring strong{font-size:1.7rem;font-weight:400}
.koi-premium-course-level{display:flex;gap:20px;align-items:center}
.koi-premium-course-level>span{color:#ff2148;font-size:2rem}
.koi-stage-theory-page{background:linear-gradient(#030a1240,#030a1280),url('./nihongo/learning/background.jpg') center/cover fixed #050b10}
.koi-stage-theory-page .koi-learning-reading{background:#050d14e8;border:1px solid #7c929b3d}
.koi-stage-theory-page .koi-learning-card{background:none}
.koi-stage-theory-page .koi-learning-lesson-head{background:linear-gradient(90deg,#07101af5,#07101a80),url('./nihongo/learning/background.jpg') right 38%/cover;padding-block:26px}
.koi-stage-theory-page .koi-theory-block{padding-top:24px}
.koi-stage-theory-page .koi-theory-block-head{border-left:5px solid #ff163e;padding-left:14px;font:400 1.4rem var(--koi-font-display)}
.koi-stage-theory-page .koi-theory-content{font-size:1.06rem;line-height:1.85;color:#e5e7eb}
.koi-stage-theory-page .koi-theory-content :is(h2,h3){font-family:var(--koi-font-display);border-left:4px solid #ff163e;padding-left:14px;color:#fff}
.koi-stage-theory-page .koi-theory-content table{background:#0a141de6;border-color:#6e889555;border-radius:10px;overflow:hidden}
.koi-stage-theory-page .koi-theory-content th{background:linear-gradient(90deg,#a8082b60,#40122160);color:#fff;padding:14px}
.koi-stage-theory-page .koi-theory-content td{padding:15px;border-color:#6e889530}
.koi-stage-theory-page .koi-theory-content td:first-child{font-family:'Yu Mincho','Hiragino Mincho ProN',serif;font-size:1.65rem;color:#fff}
.koi-stage-theory-page .koi-theory-audio-example{border:1px solid #ef1b4166;border-radius:10px;background:linear-gradient(90deg,#b8082a24,#07101a);padding:14px}
.koi-stage-theory-page .koi-theory-primary{padding:12px 25px;background:linear-gradient(120deg,#fa143d,#c9082e);border-radius:9px;box-shadow:0 5px 20px #e8103430;color:#fff}
@media(max-width:1000px){.koi-home-body .koi-dashboard-panel{grid-template-columns:1fr}.koi-home-body .koi-path-stages{grid-template-columns:repeat(2,minmax(0,1fr))}.koi-course-detail-body .koi-course-detail-layout{grid-template-columns:minmax(0,1fr)}.koi-course-detail-body .koi-course-detail-aside{margin-top:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.koi-profile-body .koi-profile-top{padding:22px}.koi-profile-body .koi-profile-avatar-wrap{width:140px;height:140px}}
@media(max-width:650px){.koi-home-body .koi-home-main{padding:0 16px 24px}.koi-home-body .koi-home-hero{margin:0 -16px;padding:30px 22px;min-height:420px}.koi-home-body .koi-home-hero h1{font-size:3rem}.koi-review-body .koi-review-main,.koi-profile-body .koi-profile-main,.koi-course-detail-body .koi-course-detail-main{padding:22px 16px}.koi-profile-body .koi-profile-identification h2{font-size:2.2rem}.koi-course-detail-body .koi-course-detail-aside{grid-template-columns:1fr}.koi-profile-body .koi-profile-stats{grid-template-columns:1fr}}
.koi-user-menu summary>span{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
