@font-face{font-family:ThinkPixel;src:url('assets/think-pixel.ttf') format('truetype');font-display:swap}
:root{--belt-white:#f3f6fc;--belt-blue:#439dff;--belt-purple:#bd79ff;--belt-brown:#c68b51;--belt-black:#0b101a;--belt-red:#ff6574;--edge:#395f8a;--pixel-cut:polygon(0 6px,6px 6px,6px 0,calc(100% - 6px) 0,calc(100% - 6px) 6px,100% 6px,100% calc(100% - 6px),calc(100% - 6px) calc(100% - 6px),calc(100% - 6px) 100%,6px 100%,6px calc(100% - 6px),0 calc(100% - 6px))}
body{background:#081322;color:#edf3ff;font-family:Arial,system-ui,sans-serif;scrollbar-color:#395f8a #0b1424}
header{height:148px;padding:8px 22px 0;background:#081322;border-bottom:2px solid #395f8a;gap:0}
.header-main{gap:10px;min-height:88px;flex-wrap:wrap}.brand.brand-logo{width:350px;height:83px;position:relative;overflow:hidden;flex-shrink:0}.brand-logo img{position:absolute;width:350px;max-width:none;height:auto;top:-25px;left:0}.header-controls{margin-left:auto;gap:14px}.header-main .preview-tag{border-radius:0;font-size:12px;padding:3px 8px;background:#111f34;margin-left:0}.header-main>button{font-size:14px;padding:10px 12px}.header-main>button#open-belts{border-bottom-color:var(--belt-brown)}.header-main>button#student-questions{border-bottom-color:var(--belt-purple)}
button,.website-link{background:linear-gradient(#1b3555,#122744);border:2px solid var(--edge);border-radius:0;box-shadow:inset 0 2px #52749a66,inset 0 -3px #070e1c;clip-path:var(--pixel-cut);color:#eaf2ff;transition:background .12s,border-color .12s;min-height:40px;font-weight:700}
button:hover:not(:disabled){background:#223d61;border-color:#7caee5}button:active:not(:disabled){box-shadow:inset 0 3px #070e1c;transform:translateY(1px)}button:focus-visible{outline:none;box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 5px #238cff}
button.primary{background:#268bff;border-color:#7ac3ff;color:#071322;box-shadow:inset 0 2px #b9dfff,inset 0 -3px #1753aa;font-weight:800}
button:disabled{opacity:.55;box-shadow:none}input[type=checkbox]{accent-color:#439dff;width:18px;height:18px;flex-shrink:0;cursor:pointer}
.course-menu{height:50px;align-items:stretch;gap:10px;margin:0}.course-menu button{font-family:ThinkPixel,monospace;font-size:17px;line-height:1.25;font-weight:400;padding:12px 22px;min-width:180px;letter-spacing:0}.course-menu button[aria-pressed=true]{background:#163d69;color:#8fc8ff;border-color:#439dff;box-shadow:inset 0 3px #91c9ff,inset 0 -4px #238cff}.course-menu .note{margin:auto 0 auto 12px;font-size:14px}
.workspace{height:calc(100dvh - 148px);max-width:1700px;grid-template-columns:250px minmax(0,1fr);padding:18px;gap:16px}#typing-workspace{height:calc(100dvh - 148px)}
.lesson-sidebar,.practice-panel,.panel{background:#101f34;border:2px solid #34577e;border-radius:0;box-shadow:inset 0 0 0 3px #0b1526,0 4px #030913}.lesson-sidebar{padding:22px 16px}.lesson-sidebar h1{font:25px/1.5 ThinkPixel,monospace;color:#83bdff;margin-bottom:8px}.sidebar-note{font-size:15px;line-height:1.6;margin-bottom:22px;color:#c6d5eb}.lesson-menu{gap:12px}.lesson-menu button{font-size:15px;line-height:1.5;padding:13px 14px;text-align:left;position:relative}.lesson-menu small{font-size:14px;line-height:1.5;color:#b0c4df;margin-top:4px}.lesson-menu button[aria-current=step]{background:#2b2448;border-color:var(--belt-purple);box-shadow:inset 5px 0 var(--belt-purple),inset 0 2px #d8b2ff44,inset 0 -3px #120c22;color:#fff}.lesson-menu button[aria-current=step] small{color:#d6b9ef}
.lesson-brief{border-top:2px solid #34577e;margin-top:24px;padding-top:16px}.eyebrow,.lesson-brief .eyebrow{font-size:14px;color:#8abfff;letter-spacing:.05em}.lesson-brief .note,.preview-note{line-height:1.6}.lesson-brief button{margin-top:8px}.preview-note{font-size:14px;color:#a8bdd9}
.practice-panel{padding:20px;gap:12px;overflow:auto}.drill-heading{order:0;display:flex;flex-direction:column;align-items:flex-start;gap:4px}.drill-heading h2{font:25px/1.45 ThinkPixel,monospace;margin:0;color:#fff}.drill-heading .eyebrow{font-size:14px;color:#9ab8df}#description{order:1;font-size:15px;line-height:1.5}.steps{order:2;gap:10px;margin:0}.drill-choice{min-height:48px;font-size:15px;white-space:normal;padding:9px}.drill-choice.selected{background:#163d69;border:2px solid #70b8ff;box-shadow:inset 0 3px #89c6ff,inset 0 -3px #238cff;color:#fff}.drill-choice.completed:not(.selected){color:#c6ddff;border-color:#6aaaf0}.preview-controls{order:3;gap:12px 20px;padding:4px 0}.preview-controls label{font-size:14px;color:#d4e2f5}.preview-controls .audio-status{color:#a2b7d3}.language-warning{order:4;border-radius:0;background:#33202c;border:2px solid #b14b5b;color:#ffd0d4}
.practice-area{order:5;flex:1 1 auto;min-height:245px;border:2px solid #466c9a;border-radius:0;background:#0b172a;box-shadow:inset 0 0 0 3px #071020;overflow:hidden}.practice-area:focus-within{border-color:#78bbff;box-shadow:inset 0 0 0 2px #224a7b}.practice-topline{padding:14px 18px;gap:16px;border-bottom:1px solid #243e5d}.practice-label,.practice-instructions .translation-hint{font-size:14px;line-height:1.6}.practice-instructions .translation-hint{color:#c6d9f0}.next-letter-guide bdi{border:2px solid #73b5ff;background:#142d4e;border-radius:0;min-width:54px;padding:4px 10px;font-size:32px}.start-overlay{background:#183c67;border:2px solid #70b8ff;border-radius:0;box-shadow:inset 0 2px #86bcf8;color:#fff;font-size:16px;padding:14px 22px;clip-path:var(--pixel-cut)}
.practice-area .target.dialogue-target{font:calc(31px * var(--typing-font-scale,1))/1.8 Arial,sans-serif;padding:10px 20px 16px}.target .dialogue-speaker{color:#b5cae6;font-family:Arial,sans-serif}.dialogue-turn{padding:3px 0;border-bottom-color:#21364f}.dialogue-turn:nth-child(even) .dialogue-speaker{color:#cfa47b}.target .current{color:#fff;background:#274d77;border-bottom-color:#66b3ff}.target .correct{color:#bfdfff}.target .wrong{color:#ff9aa5;background:#79263955}.target .partial{color:#e5ba92;background:#653f2944;border-color:#c68b51}.target .gap-word{border-bottom-color:#b88ae7}.target .translation-arabic{clip-path:none;box-shadow:none;min-height:0;background:transparent}.target .translation-arabic:focus-visible{outline:2px solid #a6cfff;box-shadow:none}.target .word-gloss{font:14px/1.5 Arial,sans-serif;color:#e1d4f6}
.feedback{order:6;min-height:0}.feedback .hint{font-size:14px;color:#b0ceee}.feedback #result{color:#c0dcff}.guidance-row{order:7;display:block;flex-shrink:0;padding-top:2px}.guidance-row .hand-guidance{display:none}.key{border:2px solid #3c5c83;border-radius:0;clip-path:var(--pixel-cut);height:42px;background:linear-gradient(#203a59,#142943);box-shadow:inset 0 2px #6e8bad55,inset 0 -3px #081223;font:23px Arial,sans-serif;min-height:0;font-weight:400}.key.next{background:#278bff;border-color:#92cbff;box-shadow:inset 0 2px #d3eaff,inset 0 -3px #155bb2;color:#061429}.key small{font:12px/1.2 Arial,sans-serif;color:#b2c4de}.key.next small{color:#071b35}.key.home{border-bottom:3px solid #90add0}.key.space,.shift-key{font:14px/1.2 Arial,sans-serif;height:30px}.keyboard-note{font-size:14px!important;line-height:1.4;color:#a7bddb;margin-top:8px!important}
.bottom-bar{order:8;padding-top:14px;border-top:2px solid #34577e;margin-top:2px}.lesson-progress strong{font:20px/1.5 ThinkPixel,monospace;color:#a5cdff}.lesson-progress span{font-size:14px}.bottom-bar .actions button{min-height:40px;padding:9px 14px;font-size:14px}.bottom-bar .actions #check{border-color:#9873c8}.bottom-bar .actions #repeat{border-color:#ad7a49}
dialog{background:#101f34;border:2px solid #4874a5;border-radius:0;box-shadow:inset 0 0 0 3px #071020,0 10px 60px #0009;color:#edf3ff}dialog h2{font:23px/1.5 ThinkPixel,monospace}dialog h3{color:#a5caff}dialog .dialog-head{padding-bottom:14px;border-bottom:2px solid #34577e;margin-bottom:16px}dialog p{line-height:1.7}.rank-tabs button[aria-selected=true]{background:#2d2447;border-color:#bd79ff;color:#ecd9ff}.belt-art,.belt-note,.belt-order li,.check-parts article,.name-form input,.answer-correction{border-radius:0}.belt-note{border-left-color:var(--belt-brown)}.belt-order li{border-color:#34577e}.belt-swatch{border-radius:0}.check-parts article{border:2px solid #34577e;background:#0b172a}.entry-screen{max-width:1050px;margin:30px auto}.entry-screen .panel{padding:30px}.entry-screen h1{font:28px/1.5 ThinkPixel,monospace}.entry-screen .eyebrow{color:#c299e8}.entry-screen .check-parts h2{font:20px/1.5 ThinkPixel,monospace}.entry-screen .actions{flex-wrap:wrap}.name-form input{border:2px solid #4874a5;background:#0b172a}.name-form input:focus{outline:2px solid #8bbfff}
@media(min-width:901px) and (max-width:1400px){header{height:184px}.header-main{min-height:125px}.header-main .header-controls{order:5;width:100%;justify-content:flex-start;margin-left:0;padding-bottom:6px}.workspace,#typing-workspace{height:calc(100dvh - 184px)}.workspace{grid-template-columns:230px minmax(0,1fr)}.brand.brand-logo{width:310px;height:76px}.brand-logo img{width:310px;top:-22px}.header-main>button{font-size:14px;padding:8px 10px}}
@media(max-width:900px),(max-height:650px){body{height:auto;overflow:auto}header{height:auto;padding:10px 14px 0}.header-main{min-height:0;gap:10px}.header-main .header-controls{width:100%;order:5;justify-content:flex-start;margin-left:0;flex-wrap:wrap;padding:6px 0}.course-menu{height:auto;min-height:50px;flex-wrap:wrap;margin-top:10px}.course-menu button{min-width:0;flex:1;font-size:16px}.course-menu .note{width:100%;margin:2px 0 10px}.workspace{height:auto;min-height:0;grid-template-columns:1fr;padding:14px;gap:14px}.lesson-sidebar{padding:18px}.lesson-sidebar .lesson-menu{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.lesson-menu button{padding:12px;font-size:14px}.lesson-brief{margin-top:16px}.practice-panel{height:auto;overflow:visible;padding:18px}.practice-area{min-height:340px;flex:none}.practice-area .target.dialogue-target{max-height:none}.steps{flex-wrap:wrap}.drill-choice{flex-basis:28%}.bottom-bar{flex-wrap:wrap}.bottom-bar .actions{justify-content:flex-start}.entry-screen{margin:24px auto;padding:0 14px}#typing-workspace{height:900px}.belt-layout{grid-template-columns:1fr}.brand.brand-logo{width:320px;height:78px}.brand-logo img{width:320px;top:-23px}}
@media(max-width:600px){header{padding:8px 10px 0}.brand.brand-logo{width:290px;height:73px}.brand-logo img{width:290px;top:-20px}.header-main>button{font-size:14px;flex:1;padding:10px;min-height:42px}.header-main .preview-tag{font-size:12px}.header-controls .sound-option{font-size:14px}.header-controls{gap:10px}.course-menu button{padding:12px 8px;font-size:15px}.course-menu .note{font-size:14px}.workspace{padding:10px}.lesson-sidebar .lesson-menu{grid-template-columns:1fr}.lesson-menu button{font-size:15px}.lesson-menu small{font-size:14px}.lesson-sidebar h1{font-size:23px}.practice-panel{padding:12px;gap:12px}.drill-heading h2{font-size:23px}.practice-topline{padding:12px;flex-wrap:wrap}.next-letter-guide{margin-left:auto}.practice-area .target.dialogue-target{font-size:calc(27px * var(--typing-font-scale,1));padding:8px 12px 16px}.target .dialogue-speaker{font-size:18px;flex-basis:48px}.preview-controls label{font-size:14px;white-space:normal}.practice-area{min-height:340px}.key{height:40px;font-size:20px;clip-path:polygon(0 3px,3px 3px,3px 0,calc(100% - 3px) 0,calc(100% - 3px) 3px,100% 3px,100% calc(100% - 3px),calc(100% - 3px) calc(100% - 3px),calc(100% - 3px) 100%,3px 100%,3px calc(100% - 3px),0 calc(100% - 3px));border-width:1px}.key small{display:none}.key.space,.shift-key{height:30px;font-size:12px}.drill-choice{font-size:14px;flex-basis:28%}.bottom-bar .actions{gap:8px;display:grid;grid-template-columns:1fr 1fr;width:100%}.bottom-bar .actions button{font-size:14px;padding:10px 8px;white-space:normal}.entry-screen .panel{padding:20px}.entry-screen h1{font-size:25px}.check-parts{grid-template-columns:1fr}dialog{padding:18px}dialog h2{font-size:21px}.dialog-head{flex-wrap:wrap}.practice-label,.practice-instructions .translation-hint{font-size:14px}.start-overlay{font-size:15px;max-width:calc(100% - 24px)}.header-main .preview-tag{display:none}}
