@font-face{font-family:Vazirmatn;src:url('/fonts/Vazirmatn.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
:root{--ink:#172e59;--text:#28416b;--muted:#596d8e;--accent:#2661e8;--blue:#2661e8;--blue-deep:#1646c0;--blue-soft:#eaf0ff;--cyan:#47bdf2;--gold:#ffcf3d;--gold-soft:#fff2cb;--canvas:#eef2fb;--paper:#fffaf0;--soft:#f2f6ff;--line:#e1e7f4;--mint:#eaf0ff;--shadow:0 12px 36px #2649880e;--radius:24px;color-scheme:light}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--text);background:var(--canvas);background-image:radial-gradient(circle at 0 320px,#e2eaff 0,#e2eaff 86px,transparent 87px);font-family:Vazirmatn,Tahoma,Arial,sans-serif;font-size:15px;line-height:1.85;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit}
button,summary{-webkit-tap-highlight-color:transparent}
button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:11px 17px;border:1px solid transparent;border-radius:13px;background:var(--blue-soft);color:var(--blue-deep);font-weight:650;line-height:1.5;cursor:pointer;transition:background .16s,border-color .16s,box-shadow .16s,transform .16s}
button:hover:not(:disabled){background:#dce7ff;transform:translateY(-2px)}
button:active:not(:disabled){transform:translateY(1px)}
button:disabled{opacity:.42;cursor:default;box-shadow:none}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid var(--blue);outline-offset:4px}
.primary{background:var(--blue);color:#fff;border-color:var(--blue);box-shadow:0 4px 0 #174abb,0 6px 13px #2661e817}
.primary:hover:not(:disabled){background:#1e55d6;border-color:#1e55d6;box-shadow:0 5px 0 #174abb,0 8px 16px #2661e821}
.gold{background:var(--gold);color:var(--ink);border-color:#edbb28;box-shadow:0 4px 0 #e9b623}
.gold:hover:not(:disabled){background:#ffdb66;border-color:#eab623}
.ghost{background:#fff;border-color:var(--line);color:#536a91;box-shadow:0 2px 0 #e4eaf4}
.ghost:hover:not(:disabled){background:#f5f8ff;border-color:#b8cafa;color:var(--blue-deep)}
.danger{background:#fff1e6;border-color:#f3dbc6;color:#9b6135}
.small{min-height:42px;padding:9px 12px;font-size:12px;border-radius:11px}
.ui-icon,.btn-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:20px;height:20px}
.ui-icon svg,.btn-icon svg{display:block;width:100%;height:100%}
.btn-label{min-width:0}
.icon-only{width:46px;min-width:46px;padding:11px}
input,select,textarea{width:100%;min-height:46px;padding:11px 14px;border:1px solid #dce3f0;border-radius:12px;color:var(--ink);background:#fff;transition:border-color .16s,box-shadow .16s}
input:hover,select:hover,textarea:hover{border-color:#b3c6f0}
input:focus,select:focus,textarea:focus{border-color:var(--blue);box-shadow:0 0 0 4px #2661e80d}
input::placeholder,textarea::placeholder{color:#596d8e;opacity:1}
textarea{resize:vertical}
label{display:block;margin:13px 0 6px;color:#617394;font-size:12px;font-weight:550}
form button[type=submit]{margin-top:20px}
a{color:var(--blue-deep);text-underline-offset:3px}
h1,h2,h3,p{margin-top:0}
h1,h2,h3{color:var(--ink)}
h1{margin-bottom:12px;font-size:38px;font-weight:850;line-height:1.45;letter-spacing:-.7px}
h2{margin-bottom:16px;font-size:25px;font-weight:800;line-height:1.65}
h3{margin-bottom:12px;font-size:17px;font-weight:700}
.muted{color:var(--muted);font-size:13px;line-height:1.85}
.eyebrow{color:var(--blue);font-size:11px;font-weight:750}
.badge{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:9px;color:#476697;background:#eaf0ff;font-size:12px;font-weight:550;white-space:nowrap}
.online{color:#2556a6;background:#e6efff}
.offline{color:#936431;background:#fff0d3}

/* The blue masthead keeps the three daily destinations in one place. */
header{position:relative;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:22px;min-height:94px;padding:20px max(30px,calc((100vw - 1180px)/2));background:var(--blue);color:#fff}
.brand{display:flex;align-items:center;flex-shrink:0;gap:11px;color:#fff;font-weight:850;line-height:1.45}
.brand>div{min-width:0}
.brand-symbol,.brand-mark{display:grid;place-items:center;width:43px;height:43px;border-radius:13px;background:var(--gold);color:var(--ink);transform:rotate(-8deg);box-shadow:3px 3px 0 #1646c0}
.brand-symbol img{display:block;width:100%;height:100%;object-fit:contain}
.brand-monogram,.brand-mark{font:900 28px/1 Arial,sans-serif}
.brand-wordmark{display:block;font:900 27px/1.15 Arial,sans-serif;letter-spacing:-.8px;color:#fff}
.brand-subtitle,.brand .eyebrow{display:block;margin-top:6px;color:#dfebff;font:650 10px/1.3 Arial,sans-serif;letter-spacing:2.4px}
.header-center{display:flex;align-items:center;justify-content:center;margin-inline:auto;min-width:0}
.header-actions{display:flex;align-items:center;flex-shrink:0;gap:5px}
.header-actions .ghost{background:transparent;border-color:transparent;color:#e7efff;box-shadow:none}
.header-actions .ghost:hover:not(:disabled){background:#ffffff19;color:#fff}
.header-actions .badge{padding:5px 7px;color:#e7efff;background:transparent;font-size:11px}
.header-actions .offline{color:#fff0b7}
.header-actions .online .connection-dot{background:var(--gold)}
.connection-dot{width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 0 3px #ffffff11}
.brand-badge .ui-icon{color:var(--gold);width:17px;height:17px}
.nav-tabs{display:flex;gap:5px;padding:5px;margin:0;border-radius:15px;background:#164cc8}
.nav-tabs button{flex:1;min-width:0;min-height:43px;padding:10px 17px;border-radius:10px;background:transparent;color:#e8efff;font-size:13px;white-space:nowrap;box-shadow:none}
.nav-tabs button:hover:not(:disabled){background:#ffffff12}
.nav-tabs button.active{background:#fff;color:var(--blue-deep);box-shadow:0 3px 10px #103ea321}
.nav-tabs button.active .btn-icon{color:var(--blue)}
.shell{width:100%;max-width:1240px;margin:auto;padding:28px 30px}

/* Entry screens share the same warm paper and original character language. */
.auth-shell{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:62px;max-width:1160px;margin:44px auto 20px;padding:0 30px}
.auth-shell h1{font-size:clamp(35px,3.4vw,48px)}
.auth-shell h1 em{color:var(--blue);font-style:normal}
.auth-shell>div:first-child>.muted{max-width:460px;margin-bottom:24px;font-size:14px}
.auth-kicker,.auth-shell>div:first-child>.eyebrow{display:inline-flex;align-items:center;gap:7px;margin-bottom:14px;padding:5px 12px;border-radius:9px;background:#e2eaff;color:var(--blue-deep);font-size:11px}
.auth-kicker .ui-icon{width:16px;height:16px}
.auth-card{padding:28px;border:1px solid #fff;border-radius:24px;background:var(--paper);box-shadow:var(--shadow)}
.auth-card h2{font-size:22px}
.auth-card form button[type=submit]{width:100%;min-height:50px}
.auth-card>.small{margin-top:12px}
.segmented{display:flex;gap:4px;padding:5px;margin-bottom:20px;border-radius:14px;background:#eaf0fc}
.segmented button{flex:1;min-width:0;background:transparent;color:#64789a;font-size:13px}
.segmented button.active{background:#fff;color:var(--blue-deep);box-shadow:0 3px 9px #183d7810}
.auth-art{position:relative;min-height:540px;border:1px solid #fff;border-radius:110px 32px 32px 32px;background:#fff4d7;overflow:hidden}
.auth-art::before{content:'';position:absolute;inset:36px 28px 124px;border:1px dashed #e4c873;border-radius:50%;transform:rotate(-15deg)}
.auth-art::after{content:'';position:absolute;top:45px;left:34px;width:18px;height:18px;border:4px solid #fff;border-radius:50%;background:var(--blue);box-shadow:160px 55px 0 -5px var(--gold)}
.auth-art>img{position:relative;z-index:1;width:100%;height:540px;padding:20px 14px 94px;object-fit:contain;mix-blend-mode:multiply}
.auth-art .callout{position:absolute;z-index:2;bottom:22px;left:22px;right:22px;padding:17px 20px;border:1px solid #fff;border-radius:18px;background:#ffffffed;color:#7d785f;font-size:13px;text-align:center;box-shadow:0 5px 0 #efdca622}
.auth-art .callout b{color:var(--ink);font-size:17px;font-weight:750}
.auth-constellation{position:absolute;inset:26px;z-index:0;pointer-events:none;color:var(--blue)}
.auth-constellation .ui-icon{position:absolute;top:13%;right:8%;width:26px;height:26px}
.auth-constellation .ui-icon:nth-child(2){top:43%;right:83%;color:#e8b121;width:18px}
.auth-constellation .ui-icon:nth-child(3){top:69%;right:15%;width:16px}
.game-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.game-top>div{min-width:0}
.game-top h1{margin:4px 0 0;font-size:27px;overflow-wrap:anywhere}
.lobby-hero{position:relative;padding:30px 34px;margin-bottom:28px;border:1px solid #fff;border-radius:26px;background:var(--paper);overflow:hidden;box-shadow:var(--shadow)}
.lobby-hero.game-top h1{margin:5px 0 8px;font-size:34px}
.lobby-hero .muted{margin-bottom:0}
.lobby-hero .portrait.large{width:116px;height:116px;border-width:5px;box-shadow:0 5px 0 #efdfb8}
.lobby-eyebrow{color:var(--blue);font-size:12px;font-weight:650}
.class-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px}
.class-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;padding:24px;border:1px solid #fff;border-radius:var(--radius);background:#fff;box-shadow:0 5px 0 #dfe7f5;overflow:hidden}
.class-card h2{margin:17px 0 10px;font-size:22px}
.class-card>button{width:100%;margin-top:24px}
.class-card .icon,.class-icon{display:grid;place-items:center;width:57px;height:57px;border-radius:17px;background:#dfe9ff;color:var(--blue);font-size:32px}
.class-icon .ui-icon{width:27px;height:27px}
.class-cover{display:flex;align-items:center;gap:14px;width:calc(100% + 48px);min-height:106px;margin:-24px -24px 0;padding:24px;background:#edf3ff;border-bottom:1px solid #e9eef8}
.class-cover-label{color:#5a74a4;font-size:14px;font-weight:650}
.class-cover-spark{margin-inline-start:auto;color:#95b4f4}
.class-cover-spark .ui-icon{width:30px;height:30px}
.class-grid .class-card:nth-child(2n) .class-cover{background:#fff6dc}
.class-grid .class-card:nth-child(2n) .class-icon{color:#906610;background:#ffebae}
.class-grid .class-card:nth-child(2n) .class-cover-spark{color:#e5ba50}
.create-form{max-width:660px;margin-top:24px;padding:28px;border:1px solid #fff;border-radius:var(--radius);background:var(--paper);box-shadow:var(--shadow)}
.create-form h2{font-size:22px}
.create-form .muted{margin:12px 0 0}
.phone-classes{display:grid;gap:10px}

/* Navigation sits above the paper card; children and teacher tools below it. */
.classroom-shell{padding-top:21px}
.classroom-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;min-height:24px}
.classroom-heading .classroom-name{display:flex;align-items:center;gap:9px;min-width:0;color:#596d8e;font-size:12px;font-weight:650}
.classroom-name>.ui-icon{width:17px;height:17px;color:#91a9d2}
.classroom-subtitle{color:#596d8e;font-size:10px}
.turn-caption{color:#596d8e;font-size:11px;white-space:nowrap;margin-inline-end:4px}
.classroom-heading h1{margin:0;font-size:16px;font-weight:650}
.classroom-heading .badge{padding:4px 9px;background:#ffffff88;font-size:11px}
.stage-area{min-width:0;border:0;border-radius:var(--radius);background:transparent}
.area-body{min-width:0;padding:28px;border:1px solid #fff;border-radius:var(--radius);background:var(--paper);box-shadow:var(--shadow)}
.area-body.exercise-area{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.area-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 28px;border-bottom:1px solid var(--line)}
.exercise-nav{display:flex;align-items:center;gap:9px;margin:0 0 18px}
.exercise-picker{flex:1;min-width:0}
.exercise-picker label{margin:0 3px 5px;color:#596d8e;font-size:11px}
.exercise-picker select{max-width:340px;background:#fff;border-color:#e0e7f4;font-weight:600;font-size:13px;box-shadow:0 2px 0 #e4eaf4}
.exercise-nav>button{align-self:flex-end;min-width:44px;padding:11px 13px;font-size:12px;white-space:nowrap}
.exercise-arrows{display:flex;align-items:center;align-self:flex-end;gap:7px}
.exercise-arrows button{min-width:44px;min-height:44px;padding:10px 12px;font-size:12px}
.selection-note{color:#596d8e;font-size:10px;margin-inline-end:7px;white-space:nowrap}
.exercise-controls{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:9px;margin-bottom:16px}
.exercise-controls:empty{display:none}
.exercise-controls select{width:auto;min-width:145px;max-width:100%;background:#fff}
.partner-label{margin:0 3px;font-size:11px}
.exercise-card{position:relative;min-width:0;padding:28px;border:1px solid #fff;border-radius:24px;background:var(--paper);box-shadow:var(--shadow)}
.exercise-card::after{content:'';position:absolute;left:31px;top:27px;width:31px;height:31px;background:repeating-linear-gradient(45deg,#b8cef7 0 3px,transparent 3px 9px);clip-path:polygon(50% 0,61% 35%,100% 50%,64% 63%,50% 100%,35% 65%,0 50%,35% 36%);opacity:.7;pointer-events:none}
.exercise-heading{position:relative;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:24px;padding-inline-end:32px;z-index:1}
.stage-spark{display:none}
.speech-link{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:#fff0b6;color:#9b741c;box-shadow:0 3px 0 #e9cd7c;flex-shrink:0}
.speech-link .ui-icon{width:23px;height:23px}
.empty>.portrait{margin:0 auto 20px}
.slot-target:has(.route-swatch):has(.btn-label),.slot-target:has(>span[dir=ltr]){flex-direction:column;gap:9px;font-size:11px}
.exercise-heading h2{margin:3px 0 4px;color:var(--ink);font-size:clamp(26px,2.4vw,34px);font-weight:850;letter-spacing:-.8px}
.exercise-kicker{display:inline-flex;align-items:center;gap:7px;color:var(--blue);font-size:11px;font-weight:700}
.exercise-kicker::before{content:'';display:block;width:18px;height:3px;border-radius:2px;background:var(--gold)}
.exercise-caption{margin:0;color:#66789d;font-size:15px;line-height:1.5;font-weight:600;direction:ltr;text-align:right}
.exercise-heading>.badge{margin-top:12px;margin-inline-end:20px}
.exercise-content{min-width:0}
.exercise-layout{display:grid;grid-template-columns:minmax(170px,194px) minmax(0,1fr);gap:21px;align-items:stretch;min-width:0}
.exercise-layout>.exercise-content{display:flex;flex-direction:column;justify-content:center}
.options{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px;max-width:100%;margin:20px auto;min-width:0}
.exercise-content>.options{width:100%;margin:0}
.options:has(.number):has(>:nth-child(5)){grid-template-columns:repeat(5,minmax(0,1fr))}
.option{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:17px;min-width:0;min-height:184px;padding:23px 12px 20px;border:1px solid #eee7db;border-radius:19px;background:#fff;color:var(--ink);box-shadow:0 4px 0 #eee7db}
.exercise-layout .option{min-height:226px}
.option:hover:not(:disabled){border-color:#b9ccf8;background:#f8faff;box-shadow:0 6px 0 #dae4f9,0 10px 20px #2661e80a;transform:translateY(-4px)}
.option.selected{border-color:var(--blue);background:#edf3ff;box-shadow:0 4px 0 #b4ccff}
.option.selected::after,.stock-item.selected::after{content:'✓';position:absolute;top:10px;right:10px;display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:var(--blue);color:#fff;font:700 12px/1 Arial,sans-serif}
.option>.btn-label,.stock-item>.btn-label{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:17px;width:100%}
.option-art{display:flex;align-items:center;justify-content:center;min-width:0;min-height:112px}
.option-label{display:block;color:var(--ink);font-size:13px;font-weight:750;line-height:1.5;direction:ltr;letter-spacing:.1px}
.option .portrait{width:120px;height:120px;margin:0;border:4px solid #fff4d7;border-radius:26px;box-shadow:0 4px 0 #e7dfcc}
.option img.lamp{width:102px;height:120px;object-fit:contain}
.color-disc{display:block;width:76px;height:76px;border:4px solid #ffffffa6;border-radius:25px;box-shadow:0 5px 0 #0000000c,inset -6px -5px 0 #0000000c,inset 3px 3px 0 #ffffff44}
.number{display:inline-grid;place-items:center;min-width:37px;min-height:34px;padding:1px 8px;border-radius:9px;color:#45679e;background:#eaf1ff;font:750 23px/1.4 Arial,sans-serif}
.kind-number .number{min-width:40px;min-height:34px;color:var(--blue);font-size:24px}
.tool-picture{display:block;width:100px;height:100px;background-repeat:no-repeat}
.lamp-art{--lamp-color:#e8483f;position:relative;display:flex;align-items:flex-end;justify-content:center;width:80px;height:100px;flex-shrink:0;isolation:isolate}
.lamp-dome{position:absolute;bottom:23px;width:56px;height:74px;border-radius:28px 28px 11px 11px;background:var(--lamp-color);box-shadow:inset -9px -3px 0 #00000012,inset 3px 3px 0 #ffffff57}
.lamp-dome::after{content:'';position:absolute;top:11px;left:10px;width:9px;height:24px;border-radius:6px;background:#ffffffb5;transform:rotate(27deg)}
.lamp-base{position:relative;z-index:2;width:74px;height:30px;border-radius:7px 7px 11px 11px;background:#48556e;box-shadow:inset 0 4px 0 #697690,inset 0 -7px 0 #303d56,0 7px 12px #172e5912}
.lamp-base::after{content:'';position:absolute;left:16px;top:11px;width:40px;height:3px;border-radius:2px;background:#94a0b4}
.stimulus-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-width:0;padding:22px 16px;border:1px solid #e2eaff;border-radius:19px;background:#edf2ff;text-align:center;overflow:hidden}
.stimulus-card::before{content:'';position:absolute;width:150px;height:150px;border:1px dashed #c5d5f3;border-radius:50%;left:calc(50% - 75px);top:max(12px,calc(50% - 108px));pointer-events:none}
.stimulus-card>*{position:relative}
.stimulus-card .portrait.large{width:115px;height:115px;border-width:4px;background-color:#fff;box-shadow:0 4px 0 #d1def7}
.stimulus-label{color:#385888;font:750 14px/1.5 Vazirmatn,Arial,sans-serif}
.stimulus-note{margin:0;color:#596d8e;font-size:10px;font-weight:500;line-height:1.6;letter-spacing:.5px;direction:ltr}
.cable-visual{--cable-color:#e8483f;height:108px;width:127px;position:relative;margin:0 0 6px;direction:ltr;isolation:isolate}
.cable-wire{height:70px;width:77px;position:absolute;left:27px;top:15px;border:11px solid var(--cable-color);border-left-color:transparent;border-radius:40px;transform:rotate(-29deg);filter:drop-shadow(0 5px 0 #172e590c)}
.cable-wire::after{content:'';width:52px;height:8px;background:var(--cable-color);border-radius:7px;position:absolute;left:-41px;top:32px;transform:rotate(19deg)}
.cable-plug{position:absolute;left:4px;top:39px;width:30px;height:34px;border-radius:6px;background:var(--cable-color);box-shadow:inset -7px 0 0 #00000011;transform:rotate(-8deg);z-index:2}
.cable-plug::before{content:'';position:absolute;width:7px;height:20px;left:-7px;top:7px;background:#778092;border-radius:2px 0 0 2px;box-shadow:inset 0 4px 0 #b8c1d0}
.cable-end{position:absolute;left:30px;top:83px;width:24px;height:16px;background:var(--cable-color);border-radius:4px;transform:rotate(15deg);box-shadow:inset -5px 0 0 #00000011}
.cable-end::before{content:'';position:absolute;width:11px;height:8px;background:#9ba8bc;border-radius:0 2px 2px 0;right:-9px;top:4px}
.exercise-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:22px;min-height:42px}
.exercise-footer>button{order:2;min-height:43px;background:#fff0d7;border-color:transparent;color:#8a652e;font-size:11px;box-shadow:none}
.exercise-footer>button:hover:not(:disabled){background:#ffe8bd}
.inline-guide{display:flex;align-items:center;gap:14px;padding:12px 16px;margin:18px 0 22px;border:1px solid #e0e7f5;border-radius:13px;background:#f1f5ff}
.exercise-footer .inline-guide{display:block;min-width:0;margin:0;padding:0;border:0;background:transparent;text-align:right}
.guide-caption{display:block;color:#746d5e;font-size:10px;font-weight:500;white-space:nowrap}
.teacher-guide{display:flex;flex-wrap:wrap;gap:5px 15px;min-width:0;color:#435981;font:550 12px/1.7 Vazirmatn,Arial,sans-serif;text-align:left;direction:ltr}
.teacher-guide span{display:inline-block}
.exercise-footer .teacher-guide{justify-content:flex-end;margin-top:3px;font-size:11px}
.exercise-title{text-align:center;margin:14px 0}
.exercise-title h2{font-size:24px}
.exercise-title .listen{color:var(--blue);font-size:35px}
.instruction{margin:18px 0 12px;color:#596d8e;font:500 13px/1.7 Vazirmatn,Arial,sans-serif;text-align:center}
.slot-grid{display:flex;justify-content:center;gap:12px;max-width:780px;margin:20px auto}
.slot-target{flex:1;min-width:0;max-width:190px;min-height:66px;padding:15px;border:2px dashed #c4d4f3;border-radius:15px;background:#f5f8ff}
.slot-target.selected{border-color:var(--blue);background:#e8f0ff}
.route-swatch{display:inline-block;flex-shrink:0;width:43px;height:12px;border:1px solid #00000012;border-radius:8px;vertical-align:middle;box-shadow:inset 0 2px 0 #ffffff44}
.slot-target .route-swatch{width:78%;min-width:35px;height:16px}
.slot-target .btn-label{display:flex;justify-content:center;width:100%}
.speech-scene{max-width:700px;margin:16px auto;padding:28px 24px;border:1px solid #e4eaf8;border-radius:22px;background:#f0f5ff;text-align:center}
.speech-scene .portrait{width:142px;height:142px;margin:0 auto 20px;border-width:5px;background-color:#fff;box-shadow:0 5px 0 #dce6f9}
.speech-scene h3{margin-bottom:10px;font:650 25px/1.5 Vazirmatn,Arial,sans-serif}
.speech-scene .muted{margin-bottom:0}
.speech-scene button{margin:18px 0 0}
.speech-partners{display:flex;align-items:center;justify-content:center;gap:30px;margin-bottom:20px}
.speech-partners .portrait{margin:0}
.assessment-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:11px;margin:22px auto 8px}
.context-character .portrait{width:65px;height:65px;margin:0 auto 18px}
.count-stimulus{display:flex;flex-wrap:wrap;justify-content:center;gap:15px;max-width:620px;margin:22px auto;padding:25px;border:1px solid #f0deb1;border-radius:20px;background:#fff3d1;color:#af8319;font-size:34px}
.number-stimulus{max-width:360px;margin:22px auto;padding:18px;border:1px solid #dce6fa;border-radius:18px;background:#eff4ff;color:var(--blue);font:750 44px/1.7 Arial,sans-serif;text-align:center}
.path-svg{display:block;width:100%;height:260px;max-width:700px;margin:0 auto;padding:5px;border:1px solid #e0e8f8;border-radius:22px;background:#f6f9ff}
.exercise-content .path-svg{margin-bottom:20px}

/* Child strip and teacher dock are deliberately outside the learning canvas. */
.turn-strip{display:flex;align-items:center;gap:8px;margin:18px 0 15px;padding:3px 1px 7px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#bed0f4 transparent}
.person{display:flex;align-items:center;justify-content:flex-start;flex-shrink:0;gap:8px;min-width:106px;min-height:47px;padding:6px 9px;border:1px solid transparent;border-radius:13px;background:#ffffff94;color:#425c89;text-align:right}
.person:hover:not(:disabled){border-color:#bdcdf0;background:#fff}
.person.active{background:var(--blue-deep);color:#fff;border-color:var(--blue-deep);box-shadow:0 4px 8px #1646c014}
.person:disabled{opacity:1}
.person .name{min-width:0;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:650}
.person-score{color:#596d8e;font-size:10px;font-weight:500}
.person.active .person-score{color:#dce7ff}
.portrait{display:block;flex-shrink:0;width:44px;height:44px;border:2px solid #fff;border-radius:50%;background-color:#e8efff;background-repeat:no-repeat;box-shadow:0 2px 7px #284b6912}
.portrait.large{width:96px;height:96px}
.person .portrait{width:33px;height:33px;margin:0;border-width:1px;border-radius:10px;box-shadow:none}
.classroom-dock{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:stretch}
.classroom-dock:has(.more-menu[open]){grid-template-columns:minmax(0,1fr)}
.classroom-dock>.more-menu:only-child{justify-self:start}
.classroom-dock>.more-menu[open]:only-child{justify-self:stretch}
.teaching-next{display:flex;align-items:center;gap:13px;min-width:0;min-height:80px;padding:16px 19px;margin:0;border:1px solid #f4c53a;border-radius:18px;background:#ffdc61;box-shadow:0 4px 0 #efc241}
.next-icon{display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;border-radius:12px;color:#96701c;background:#fff0af;transform:rotate(-6deg)}
.next-icon .ui-icon{width:21px;height:21px}
.next-copy{flex:1;min-width:0}
.next-kicker{display:block;color:#715721;font-size:10px;font-weight:500}
.next-tag{margin-inline-start:6px;padding:1px 6px;border-radius:5px;background:#ffecab;color:#745b21;font-size:10px}
.next-title{display:block;margin-top:2px;color:#423c27;font-size:14px;font-weight:750;line-height:1.6}
.next-action{flex-shrink:0;min-height:44px;white-space:nowrap;font-size:12px}
.teaching-next .primary{background:var(--blue-deep);border-color:var(--blue-deep);box-shadow:none}
.teaching-next .primary:hover:not(:disabled){background:#103ba6}
.teaching-next.completed{border-color:#d3dff7;background:#e3ecff;box-shadow:0 4px 0 #cddbf7}
.teaching-next.completed .next-icon{color:var(--blue);background:#fff}
.teaching-next.completed .next-title{color:var(--ink)}
.teaching-next.completed .next-kicker{color:#6880aa}
.navigation-bar{position:relative;display:flex;align-items:stretch;gap:11px;margin-bottom:18px}
.disclosure{margin-top:20px;border-top:1px solid #e4e9f4}
.disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:46px;padding:14px 0;color:#637da6;font-size:12px;font-weight:650;cursor:pointer;list-style:none}
.disclosure>summary::-webkit-details-marker{display:none}
.disclosure>summary::after{content:'+';color:#8a9cbc;font:400 22px/1 Arial,sans-serif}
.disclosure[open]>summary::after{content:'−'}
.disclosure-body{padding-bottom:16px}
.more-menu{position:relative;z-index:30;min-width:146px;margin:0;border:1px solid #fff;border-radius:18px;background:#fff;box-shadow:0 4px 0 #dfe6f4}
.more-menu>summary{justify-content:center;min-height:80px;padding:15px 18px;border-radius:18px;color:var(--blue);font-size:12px}
.more-menu>summary::after{color:var(--blue)}
.more-menu>.disclosure-body{position:static;width:100%;padding:0 20px 20px;border-top:1px solid #e7edf8;background:#fff}
.more-menu[open]>summary{justify-content:flex-start;gap:9px;min-height:59px;border-radius:18px 18px 0 0}
.more-menu[open]>summary::after{margin-inline-start:auto}
.more-menu[open] .more-actions{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));padding-top:17px}
.more-menu[open] .disclosure{margin-top:16px}
.more-menu[open] .rewards-panel .disclosure-body{padding-bottom:4px}
.more-menu[open]>.disclosure-body>button{margin-top:14px}
.more-actions{display:grid;gap:6px}
.more-actions button{justify-content:flex-start;text-align:right;font-size:13px;box-shadow:none;border-color:transparent}
.more-actions button.active{background:var(--blue-soft);color:var(--blue-deep)}

/* Source board coordinates, canvas proportions and anchors stay unchanged. */
.board-wrap{direction:ltr;position:relative;width:100%;aspect-ratio:1942/809;max-width:1000px;margin:0 auto;border-radius:17px;background:#eaf0fa;overflow:hidden;box-shadow:0 6px 0 #d6e0f2,0 14px 25px #153a5b12}
.board-base{display:block;width:100%;height:auto}
.board-lamp{position:absolute;width:9.5263%;pointer-events:none;z-index:3}
.board-button{position:absolute;left:74.2%;top:27%;z-index:4;width:12%;min-height:44px;padding:0;border:2px dashed #4c8bea;border-radius:12px;background:transparent;color:transparent}
.board-button:hover:not(:disabled){background:#2661e818;transform:none}
.board-button:disabled{border-color:transparent}
.board-main{position:absolute;left:17.2%;top:45.8%;width:4.3%;aspect-ratio:1;border:2px solid #e0e7e8;border-radius:50%;background:#687d8b;pointer-events:none}
.board-main.on{background:#29dad0;box-shadow:0 0 25px #17cdd0}
.workshop-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}
.workshop-heading h2{margin-bottom:4px;font-size:30px}
.workshop-heading .portrait{width:68px;height:68px;border-width:3px;background-color:#fff1bd}
.workshop-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:24px}
.workshop-toolbar .inline-guide{flex:1;margin:0;background:transparent;border:0;padding:0}
.workshop-toolbar .guide-caption{margin-bottom:5px}
.workshop-toolbar .teacher-guide{font-size:11px}
.workshop-toolbar>button{flex-shrink:0;background:#fff0d7;color:#8a652e;font-size:11px;white-space:nowrap;border-color:transparent;box-shadow:none}
.status-lines{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin:22px 0 28px}
.status-lines>div{display:flex;align-items:center;gap:10px;padding:9px 14px;border:1px solid #e0e7f4;border-radius:11px;background:#fff;font-size:12px}
.status-lines strong{font-weight:550}
.stock-grid{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}
.stock-item{position:relative;width:118px;padding:12px;border:1px solid #eee7db;border-radius:17px;background:#fff;box-shadow:0 4px 0 #eee7db}
.stock-item img{width:85px;height:85px;object-fit:contain}
.stock-item:hover:not(:disabled){background:#f5f8ff;border-color:#b8ccf5}
.stock-item.selected{border-color:var(--blue);background:#eaf1ff;box-shadow:0 4px 0 #bad0ff}
.workshop-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:11px;margin:22px auto}
.route-actions{display:flex;align-items:center;gap:10px;padding:11px;border:1px solid #e0e7f4;border-radius:15px;background:#fff;box-shadow:0 3px 0 #e8e4d8}
.route-actions button{min-width:44px;padding:10px}
.card-lamp{width:42px;height:42px;object-fit:contain;vertical-align:middle}
.final-exercise{padding:25px 10px;text-align:center}
.final-exercise .portrait{margin:0 auto 20px}
.final-celebration{padding:38px 28px;border:1px solid #fff;border-radius:24px 24px 0 0;background:#fff0bc;text-align:center}
.final-celebration .portrait{width:128px;height:128px;margin:0 auto 20px;border-width:5px;background-color:#fff;box-shadow:0 5px 0 #e8cd78}
.final-celebration h1{color:var(--ink);font-size:31px}

/* Extra controls unfold without permanently crowding the classroom. */
.score-editor{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:16px;border:1px solid #e0e7f4;border-radius:14px;background:#f1f5ff}
.score-editor label{margin:0}
.score-editor #manual-points{width:85px}
.score-editor #score-reason{flex:1;min-width:140px}
.score-editor button{white-space:nowrap}
.score-summary{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 26px}
.dice-box{margin:0;padding:22px;border:1px solid #f0dfae;border-radius:18px;background:#fff3d3;text-align:center}
.dice-box h3{margin-bottom:12px;font-size:15px}
.dice-box .eyebrow{display:none}
.dice-box .muted{margin:12px 0 0;color:#806623}
.die{display:inline-block;margin:8px;color:var(--blue);font:650 54px/1.2 Vazirmatn,Arial,sans-serif}
.dice-box.rolling .die{animation:roll .5s ease-in-out infinite}
.dice-faces{display:flex;justify-content:center;flex-wrap:wrap;gap:7px;margin:16px 0}
.dice-faces span{padding:5px 9px;border:1px solid #ead8a2;border-radius:9px;background:#fff9e9;color:#897344;font-size:11px}
.cards{margin-top:14px;padding:22px;border:1px solid #dee6f8;border-radius:18px;background:#f0f5ff}
.cards h3{font-size:15px}
.collection-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:16px}
.collection-item{padding:22px 18px;border:1px solid #eee7db;border-radius:19px;background:#fff;text-align:center;box-shadow:0 4px 0 #eee7db}
.collection-item img{width:98px;height:98px;margin:6px 0 12px;object-fit:contain}
.collection-item h3{font-size:15px}
.collection-item .badge{font-size:11px}
.count-circle{display:grid;place-items:center;width:68px;height:68px;margin:6px auto 18px;border-radius:21px;color:var(--blue);background:#e7eeff;font-size:30px}
.collection-item:nth-child(2n) .count-circle{color:#aa7a18;background:#fff0c3}
.phone-editor{display:flex;gap:10px;margin-bottom:16px}
.phone-editor button{margin-top:0;white-space:nowrap}
.report-scroll{overflow-x:auto;margin-bottom:26px;border:1px solid #e0e7f4;border-radius:15px;background:#fff}
.report-table,.code-table{width:100%;border-collapse:collapse;font-size:13px}
.report-table th,.report-table td,.code-table th,.code-table td{padding:13px 16px;border-bottom:1px solid #e9edf6;text-align:right;white-space:nowrap}
.report-table th,.code-table th{color:#627ba5;background:#eaf0ff;font-size:12px;font-weight:650}
.report-table tr:last-child td,.code-table tr:last-child td{border-bottom:0}
.report-table tbody tr:nth-child(even){background:#fafbff}
.code-table code{display:inline-block;padding:4px 10px;border:1px solid #dce6f8;border-radius:8px;background:#f1f5ff;direction:ltr;user-select:all}

/* The original comic imagery remains the lead in the story view. */
.story-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:18px;padding:0;background:transparent}
.story-toolbar label{margin:0;font-size:11px}
.story-toolbar select{max-width:320px;background:#fff;font-size:13px}
#comic-player{overflow:hidden;border:1px solid #fff;border-radius:24px 24px 0 0;background:var(--paper);box-shadow:var(--shadow)}
.comic-frame{position:relative;aspect-ratio:16/9;background:#112c49;overflow:hidden}
.comic-frame img{width:100%;height:100%;object-fit:contain;transform-origin:center}
.comic-subtitle{position:absolute;bottom:13px;right:5%;left:5%;padding:10px 17px;border:1px solid #ffffff1a;border-radius:12px;background:#0c2439e6;color:#fff;font-size:16px;text-align:center}
.comic-subtitle:empty{display:none}
.comic-controls{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:9px;padding:17px;border-bottom:1px solid #eee5d6;background:var(--paper)}
.comic-controls button{padding:10px 15px;background:#fff;border-color:#e0e7f4;font-size:12px}
.comic-controls button[data-comic=play]{color:#fff;background:var(--blue);border-color:var(--blue);box-shadow:0 3px 0 #174abb}
.comic-time{padding:0 7px;color:#746e5d;font-size:11px}
.comic-note{padding:13px 24px;border:1px solid #fff;border-top:0;border-radius:0 0 24px 24px;background:var(--paper);color:#746e5d;font-size:12px}
.comic-note+.area-body{margin-top:18px}
.book-page{display:block;width:100%;max-width:650px;margin:auto;border:1px solid #e2eaf1;border-radius:13px;box-shadow:0 8px 24px #17345009}
.story-choices{display:grid;grid-template-columns:1fr 1fr;gap:14px;max-width:680px;margin:22px auto}
.story-choices button{min-height:62px;padding:16px;border-radius:16px}
.choice-reply{padding:18px;margin:14px auto;border:1px solid #dbe5f8;border-radius:16px;background:#edf3ff;color:#5270a1}
.empty{padding:56px 22px;text-align:center}
.empty .symbol{margin-bottom:16px;color:var(--blue);font-size:60px;line-height:1.3}
.empty h2{font-size:25px}
.guided-ending{margin:0 auto;max-width:700px;border:1px solid #fff;border-radius:24px;background:var(--paper);box-shadow:var(--shadow)}
.guided-ending .portrait.large{width:128px;height:128px;margin:0 auto 24px;border-width:5px;background-color:#fff;box-shadow:0 5px 0 #eadebf}
.guided-ending .muted{max-width:420px;margin:0 auto 24px}
.notice{padding:16px 18px;margin-bottom:18px;border:1px solid #eddaaa;border-radius:14px;background:#fff2d1;color:#8b6b2f;font-size:13px}
.notice button{margin-inline-start:10px}
.error-text{margin-top:12px;color:#aa503d;font-size:13px}
.loading{padding:100px 20px;text-align:center;color:var(--muted)}
.footer-note{padding:25px 16px;color:#596d8e;font-size:11px;text-align:center}
#toast{position:fixed;z-index:100;bottom:24px;left:50%;display:none;max-width:min(540px,calc(100vw - 30px));padding:13px 22px;border:1px solid #2f61c7;border-radius:15px;background:var(--blue-deep);color:#fff;box-shadow:0 10px 28px #1646c02b;font-size:14px;text-align:center;transform:translateX(-50%)}
#reaction{position:fixed;inset:0;z-index:90;display:none;place-items:center;pointer-events:none}
#reaction .spark{position:relative;color:#ffb727;font:700 50px/1 Arial,sans-serif;text-shadow:0 0 14px #ffe090;animation:spark .9s ease-out both}
#reaction .spark::before,#reaction .spark::after{content:'✦';position:absolute;color:#ffc642;font-size:24px;animation:spark-rays .9s ease-out both}
#reaction .spark::before{top:-16px;left:-24px}
#reaction .spark::after{bottom:-10px;right:-25px}
#reaction .success{color:var(--blue);font:700 70px/1 Arial,sans-serif;animation:spark .8s ease-out both}
@keyframes spark{0%{transform:scale(.6);opacity:0}15%,55%{transform:scale(1);opacity:1}100%{transform:scale(1.2);opacity:0}}
@keyframes spark-rays{0%{transform:scale(.5);opacity:0}20%,55%{transform:scale(1);opacity:1}100%{transform:scale(1.5);opacity:0}}
@keyframes roll{50%{transform:rotate(25deg) scale(1.1)}}

@media(min-width:800px){
.rewards-panel .disclosure-body{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.rewards-panel .cards{margin:0}
}
@media(max-width:1120px){
header{gap:16px;padding-inline:30px}
.header-actions .btn-label{display:none}
.header-actions .small{width:37px;min-height:40px;padding:9px}
.header-actions .badge{padding-inline:3px}
.brand-wordmark{font-size:25px}
.brand-subtitle{font-size:9px;letter-spacing:2px}
.header-center .nav-tabs button{padding-inline:15px;font-size:12px}
}
@media(max-width:900px){
header{gap:14px;padding-inline:24px}
.header-actions .badge{display:none}
.auth-shell{gap:32px;margin-top:32px}
.auth-art,.auth-art>img{min-height:450px;height:450px}
.auth-art{border-top-right-radius:80px}
.auth-card{padding:23px}
.shell{padding:24px}
.exercise-layout{grid-template-columns:165px minmax(0,1fr);gap:16px}
.options{gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
.exercise-layout .option{min-height:180px}
.option .portrait{width:108px;height:108px}
.workshop-toolbar{align-items:flex-start}
.workshop-toolbar .inline-guide{display:block}
.workshop-toolbar .teacher-guide{margin-top:5px}
}
@media(max-width:720px){
header{flex-wrap:wrap;padding:17px 20px 15px;gap:14px 12px}
.brand{order:1}
.header-actions{order:2;margin-inline-start:auto}
.header-center{order:3;width:100%}
.header-center .nav-tabs{width:100%}
.header-center .nav-tabs button{min-height:44px;padding:10px 14px;font-size:13px}
.brand-wordmark{font-size:25px}
.header-actions .small{width:38px}
}
@media(max-width:650px){
body{font-size:14px;background-image:radial-gradient(circle at 0 280px,#e2eaff 0,#e2eaff 65px,transparent 66px)}
header{padding:16px 16px 14px}
.brand{gap:9px}
.brand-symbol{width:39px;height:39px;border-radius:12px}
.brand-monogram{font-size:25px}
.brand-subtitle{font-size:8px;letter-spacing:1.8px}
.header-actions{gap:0}
.header-actions .small{width:34px;padding:8px;min-height:39px}
.header-actions .btn-icon{width:17px;height:17px}
.auth-shell{grid-template-columns:1fr;gap:24px;margin:28px auto 0;padding:0 18px}
.auth-shell h1{font-size:36px}
.auth-shell>div:first-child>.muted{margin-bottom:18px;font-size:13px}
.auth-art{order:2;min-height:315px;height:315px;border-radius:70px 24px 24px 24px}
.auth-art>img{min-height:0;height:315px;padding:5px 10px 70px}
.auth-art::before{inset:20px 45px 75px}
.auth-art .callout{bottom:14px;right:16px;left:16px;padding:10px 14px;font-size:12px}
.auth-art .callout b{font-size:15px}
.shell{padding:19px 14px}
.game-top{gap:10px;margin-bottom:14px}
.game-top h1{font-size:21px}
.game-top>.badge{max-width:43%;font-size:11px;white-space:normal}
.lobby-hero{padding:21px;border-radius:21px}
.lobby-hero.game-top h1{font-size:26px}
.lobby-hero .portrait.large{width:80px;height:80px}
.class-grid{gap:16px}
.create-form{padding:23px}
.classroom-heading{gap:8px;margin-bottom:12px}
.classroom-heading .classroom-name{font-size:11px}
.classroom-heading .badge{max-width:48%;white-space:normal}
.area-body{padding:23px 18px;border-radius:21px}
.area-heading{padding:16px}
.exercise-nav{gap:6px;margin-bottom:16px}
.exercise-nav>button{min-width:42px;padding:11px 10px;font-size:11px}
.exercise-nav>button .btn-icon{width:16px;height:16px}
.exercise-picker select{padding:10px;font-size:12px}
.exercise-picker label{font-size:11px}
.exercise-controls{gap:7px}
.exercise-controls button{font-size:12px}
.exercise-card{padding:23px 18px 20px;border-radius:21px}
.exercise-card::after{left:19px;top:23px;width:24px;height:24px}
.exercise-heading{gap:12px;margin-bottom:21px;padding-inline-end:14px}
.exercise-heading h2{font-size:26px}
.exercise-caption{font-size:13px}
.exercise-heading>.badge{font-size:10px;margin-inline-end:10px;padding-inline:7px}
.exercise-layout{grid-template-columns:minmax(0,1fr);gap:17px}
.stimulus-card{min-height:164px;padding:18px;flex-direction:row;gap:18px;flex-wrap:wrap}
.stimulus-card::before{width:120px;height:120px;left:17px;top:20px}
.stimulus-card .portrait.large{width:104px;height:104px}
.stimulus-card .cable-visual{margin:0;transform:scale(.9)}
.stimulus-label{font-size:13px}
.stimulus-note{font-size:10px}
.options,.options:has(.number):has(>:nth-child(5)){grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.option,.exercise-layout .option{min-height:181px;padding:20px 10px 17px;border-radius:17px}
.option .portrait{width:103px;height:103px;border-radius:23px}
.option img.lamp{width:86px;height:104px}
.option-art{min-height:106px}
.tool-picture{width:88px;height:88px}
.color-disc{width:72px;height:72px;border-radius:24px}
.option-label{font-size:12px}
.kind-number .number{font-size:23px}
.number{font-size:22px}
.exercise-footer{align-items:flex-start;gap:14px;margin-top:22px}
.exercise-footer .inline-guide{flex:1}
.exercise-footer>button{padding:10px 12px;font-size:11px}
.inline-guide{display:block;padding:11px 13px;margin:16px 0 20px}
.teacher-guide{margin-top:4px;gap:5px 13px;font-size:12px}
.exercise-footer .teacher-guide{font-size:10px}
.speech-scene{padding:26px 17px;border-radius:19px}
.speech-scene .portrait{width:121px;height:121px}
.speech-scene h3{font-size:23px}
.speech-partners{gap:16px}
.speech-partners .portrait{width:107px;height:107px}
.slot-grid{gap:8px}
.slot-target{padding:11px;min-height:60px}
.path-svg{height:230px;border-radius:18px}
.count-stimulus{gap:11px;padding:19px;font-size:29px}
.turn-strip{gap:7px;margin:17px 0 12px}
.person{min-width:100px;min-height:46px;gap:7px;padding:6px 8px;border-radius:12px}
.person .portrait{width:31px;height:31px}
.person .name{max-width:100px;font-size:11px}
.person-score{font-size:10px}
.classroom-dock{grid-template-columns:minmax(0,1fr);gap:14px}
.classroom-dock .more-menu{order:2}
.classroom-dock .teaching-next{order:1}
.teaching-next{gap:10px;padding:14px;flex-wrap:wrap}
.next-icon{width:35px;height:35px;border-radius:11px}
.next-copy{flex-basis:calc(100% - 45px)}
.next-title{font-size:13px}
.next-action{width:100%;margin-top:6px}
.more-menu{min-width:0;border-radius:15px}
.more-menu>summary{min-height:48px;padding:12px 14px;border-radius:15px;justify-content:space-between;font-size:12px}
.more-menu>.disclosure-body{width:100%;padding:0 15px 16px}
.more-menu[open] .more-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.more-menu[open] .more-actions button{font-size:11px;padding:10px 8px}
.exercise-arrows .selection-note{display:none}
.exercise-arrows button{min-width:44px;padding:10px 9px;font-size:11px}
.classroom-subtitle{display:none}
.board-button{display:none}
.workshop-heading h2{font-size:26px}
.workshop-heading .portrait{width:61px;height:61px}
.workshop-toolbar{gap:12px}
.workshop-toolbar>button{padding:10px;font-size:11px}
.workshop-toolbar .inline-guide{padding:0}
.status-lines{gap:7px}
.status-lines>div{gap:7px;padding:8px 10px;font-size:11px}
.route-swatch{width:32px}
.stock-grid{gap:9px}
.stock-item{width:94px;padding:9px;border-radius:15px}
.stock-item img{width:70px;height:70px}
.route-actions{gap:7px;padding:8px}
.route-actions button{padding:9px}
.workshop-actions{gap:8px}
.collection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.collection-item{padding:18px 12px;border-radius:16px}
.collection-item h3{font-size:13px}
.collection-item .badge{font-size:10px;padding:4px 8px;white-space:normal}
.collection-item img{width:82px;height:82px}
.phone-editor{flex-wrap:wrap}
.phone-editor input{flex:1;min-width:140px}
.score-editor{padding:12px}
.score-editor #score-reason{flex-basis:100%}
.story-toolbar{gap:9px}
.story-toolbar select{font-size:12px}
#comic-player{border-radius:21px 21px 0 0}
.comic-controls{gap:6px;padding:12px}
.comic-controls button{padding:9px 11px;font-size:11px}
.comic-subtitle{bottom:7px;padding:7px 11px;font-size:12px;border-radius:8px}
.comic-note{padding:12px 16px;border-radius:0 0 21px 21px}
.story-choices{grid-template-columns:1fr}
.final-celebration{padding:28px 20px;border-radius:21px 21px 0 0}
.final-celebration h1{font-size:25px}
}
@media(max-width:380px){
.brand-wordmark{font-size:21px}
.brand-symbol{width:35px;height:35px}
.brand-subtitle{font-size:7px;letter-spacing:1.6px}
.header-actions .small{width:31px}
.exercise-nav>button{min-width:42px}
.exercise-nav>button .btn-label{display:none}
.nav-tabs button{gap:5px}
.nav-tabs .btn-icon{width:16px;height:16px}
.exercise-heading h2{font-size:24px}
.exercise-footer{flex-wrap:wrap}
.exercise-footer .inline-guide{flex-basis:100%}
.exercise-footer>button{min-height:44px}
.stimulus-card{gap:10px}
.stimulus-card .portrait.large{width:94px;height:94px}
.speech-partners{gap:12px}
.speech-partners .portrait{width:91px;height:91px}
}
@media(prefers-reduced-motion:reduce){
html{scroll-behavior:auto}
*,*::before,*::after{animation:none!important;transition:none!important}
.comic-frame img{transform:none!important}
button:hover:not(:disabled),button:active:not(:disabled){transform:none}
}
