:root{color-scheme:light;--bg:#f7f8fa;--surface:#fff;--text:#17212b;--muted:#5f6d7d;--line:#e5e9ef;--accent:#146b61;--accent-soft:#e7f3f0;--good:#16794a;--bad:#b54747;--shadow:0 10px 35px rgba(24,39,56,.06)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Vazirmatn,Tahoma,Arial,sans-serif;min-height:100vh}.app{width:min(100%,540px);min-height:100dvh;margin:auto;padding:env(safe-area-inset-top) 20px calc(20px + env(safe-area-inset-bottom));display:flex;flex-direction:column}header{height:70px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px}.brand b,.brand small{display:block}.brand b{font-size:16px}.brand small{color:var(--muted);font-size:11px}.logo{width:38px;height:38px;border-radius:12px;background:var(--accent);color:white;display:grid;place-items:center;font-weight:800;font-size:20px}.screen{display:none;flex:1}.screen.active{display:block;animation:fade .2s ease}@keyframes fade{from{opacity:.5}to{opacity:1}}.hero{text-align:center;padding:38px 6px 24px}.hero-art{position:relative;margin:0 auto 16px;width:64px;height:64px;border-radius:20px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;font-size:26px;font-weight:700}.hero-art span{position:absolute;right:-5px;top:-5px;color:#d09b36;font-size:15px}.eyebrow{color:var(--accent);font-size:12px;font-weight:700;margin:0 0 8px}.hero h1{font-size:28px;line-height:1.55;margin:5px 0 9px;font-weight:850}.hero h1 em{font-style:normal;color:var(--accent)}.sub{color:var(--muted);font-size:13px;line-height:1.9;margin:0}.card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:var(--shadow)}label{font-size:12px;font-weight:600;display:block;margin-bottom:8px}input{font:inherit;color:var(--text);background:#fff;border:1px solid var(--line);border-radius:12px;padding:13px 14px;outline:none;width:100%;font-size:14px}input:focus{border-color:var(--accent);box-shadow:0 0 0 3px #146b6118}input::placeholder{color:#a0aab7}button{font:inherit;cursor:pointer;color:inherit;border:0}.primary{width:100%;background:var(--accent);color:#fff;border-radius:12px;padding:13px;font-weight:700;margin-top:13px;min-height:48px}.primary:active,.secondary:active,.option:active{transform:scale(.985)}.primary span{margin-right:7px}.or{display:flex;align-items:center;gap:11px;color:#96a0ad;font-size:11px;margin:16px 0}.or span{height:1px;background:var(--line);flex:1}.join-row{display:flex;gap:9px}.join-row input{text-align:center;letter-spacing:5px;font-weight:700}.secondary{background:var(--accent-soft);border-radius:12px;padding:0 20px;font-weight:700;color:var(--accent);min-height:48px}.footnote{text-align:center;font-size:11px;color:var(--muted);margin:15px}.room-head{text-align:center;padding:38px 0 20px}.room-code{background:#fff;color:var(--accent);border:1px dashed #8dbbb3;padding:11px 22px;border-radius:12px;font-size:25px;font-weight:800;letter-spacing:7px;margin:6px 0 12px}.room-code span{font-size:15px;letter-spacing:0;margin-right:7px}.back{background:transparent;color:var(--muted);padding:14px 0}.players-card{margin-top:5px}.section-title{display:flex;align-items:center;justify-content:space-between;font-size:13px;margin-bottom:13px}.section-title span{color:var(--muted);font-size:11px}.players{display:grid;gap:8px;margin:8px 0 16px}.player{display:flex;align-items:center;gap:10px;background:#f7f9fa;padding:9px 11px;border-radius:12px}.avatar{width:34px;height:34px;border-radius:10px;background:var(--accent-soft);display:grid;place-items:center}.player .name{flex:1;font-size:13px}.host-tag{font-size:10px;color:var(--accent);background:var(--accent-soft);padding:4px 8px;border-radius:20px}.hint{text-align:center;color:var(--muted);font-size:10px;margin:10px 0 0}.game-top{display:flex;align-items:center;justify-content:space-between;padding:17px 0}.pill{font-size:12px;color:#465566;background:#edf0f3;padding:8px 12px;border-radius:20px}.timer{font-weight:800;font-size:19px;color:var(--accent);min-width:34px;text-align:center}.icon-btn{background:#edf0f3;border-radius:50%;width:36px;height:36px;font-size:20px;color:#647181}.turn-banner{text-align:center;border-radius:11px;background:var(--accent-soft);color:#285f58;padding:10px 12px;font-size:12px;line-height:1.8;margin-bottom:12px;min-height:40px}.word-card{background:var(--surface);border:1px solid var(--line);border-radius:17px;padding:22px 16px;text-align:center;display:flex;flex-direction:column;gap:7px;box-shadow:var(--shadow)}.word-card strong{font-size:27px;line-height:1.5;color:var(--text)}.word-card small{color:var(--muted);font-size:11px}.options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:12px 0}.option{display:flex;align-items:center;gap:9px;text-align:left;direction:ltr;min-height:54px;padding:10px;border:1px solid var(--line);background:#fff;border-radius:12px;font-size:14px;transition:.12s}.option b{font-weight:650;overflow-wrap:anywhere}.option-letter{flex:none;width:25px;height:25px;border-radius:8px;background:#f0f3f5;color:#697888;display:grid;place-items:center;font-size:11px}.option:disabled{cursor:default;opacity:.85}.option.selected{border-color:var(--accent);background:#f1f8f6}.option.correct{border-color:#61ad82;background:#eef8f1;color:#155d39}.option.wrong{border-color:#d58888;background:#fff2f1;color:#913f3f}.learning-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:15px 16px;margin:12px 0;box-shadow:var(--shadow)}.learning-card .eyebrow{display:block;color:var(--muted)}#word-pos{color:var(--accent)}#example-en{font-size:16px;font-weight:600;line-height:1.65;margin:9px 0;color:#1d3744}#example-fa{font-size:12px;line-height:1.8;margin:0;color:var(--muted)}#speak-word{background:var(--accent-soft);color:var(--accent);border-radius:9px;padding:7px 10px;font-size:11px;margin-top:10px}.guess-list{display:flex;flex-direction:column;gap:6px;padding:8px 2px}.guess-item{font-size:12px;color:#526170;background:#f0f3f5;padding:8px 11px;border-radius:9px;align-self:flex-start;max-width:95%}.guess-item b{color:var(--accent);margin-left:5px}.score-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:14px;margin-top:10px}.score-row{display:flex;align-items:center;justify-content:space-between;font-size:11px;padding:7px 2px;color:#435263;border-top:1px solid #f0f2f4}.score-row b{color:var(--accent)}.score-row .place{color:#98a3af;width:24px}.score-name{flex:1}#toast{position:fixed;bottom:calc(24px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%,15px);opacity:0;pointer-events:none;background:#17212b;color:#fff;border-radius:11px;padding:10px 15px;font-size:12px;box-shadow:var(--shadow);transition:.2s;white-space:nowrap;z-index:2}#toast.show{opacity:1;transform:translate(-50%,0)}footer{text-align:center;color:#9aa4af;font-size:10px;padding-top:18px}footer span{color:#cf7474}#final-scores{margin:4px 0 12px}button:focus-visible{outline:3px solid #52a89a;outline-offset:2px}@media(max-width:360px){.app{padding-left:14px;padding-right:14px}.hero h1{font-size:25px}.word-card strong{font-size:24px}.option{font-size:12px;padding:8px;gap:6px}.option-letter{width:22px;height:22px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
.stage-config{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 0 10px;border-top:1px solid var(--line)}.stage-config label{margin:0 0 4px;font-size:13px}.stage-config small{display:block;color:var(--muted);font-size:10px;line-height:1.7}.stage-control{display:flex;align-items:center;gap:8px;flex:none}.stage-control input{width:76px;min-height:44px;padding:8px;text-align:center;font-size:17px;font-weight:800;color:var(--accent);direction:ltr}.stage-control span{font-size:11px;color:var(--muted)}.stage-summary{margin:2px 0 8px;color:var(--muted);font-size:11px}.stage-config input:disabled{background:#f1f3f5;color:#8b96a2;opacity:1}@media(max-width:360px){.stage-config{gap:8px}.stage-config label{font-size:12px}}
.library-link{display:block;margin:4px auto 5px;padding:9px 14px;background:transparent;color:var(--accent);font-size:12px;font-weight:700}.library-link span{margin-right:5px}.library-heading{text-align:center;padding:20px 0 15px}.library-heading h1{font-size:23px;margin:4px 0 6px}.library-filters{display:flex;gap:8px}.library-filters input{min-width:0}.library-filters select{font:inherit;color:var(--text);background:#fff;border:1px solid var(--line);border-radius:12px;padding:0 9px;max-width:112px}.library-status{font-size:11px;color:var(--muted);margin:12px 2px 8px}.library-list{display:grid;gap:9px}.library-entry{background:#fff;border:1px solid var(--line);border-radius:13px;padding:13px 14px;box-shadow:var(--shadow)}.library-entry-head{display:flex;align-items:flex-start;justify-content:space-between;gap:9px}.library-entry h2{margin:0;font-size:16px}.library-answer{direction:ltr;text-align:left;color:var(--accent);font-weight:700;font-size:15px}.library-tags{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0}.library-tag{background:#eff4f3;color:#526d69;padding:3px 7px;border-radius:20px;font-size:9px}.library-example{font-size:12px;line-height:1.65;color:#334554;margin:8px 0 2px;direction:ltr;text-align:left}.library-example-fa{font-size:11px;line-height:1.7;color:var(--muted);margin:0}.library-more{display:block;width:100%;margin:12px 0;background:#fff;border:1px solid var(--line);min-height:45px}.library-more:disabled{display:none}
.example-secondary{border-top:1px solid var(--line);padding-top:9px;margin-top:10px!important;color:#475b68!important}.example-fa-secondary{margin:0;color:var(--muted);font-size:11px;line-height:1.7}
.example-caption,.library-example-caption{display:block;margin-top:8px;color:var(--accent);font-size:10px;font-weight:700}.meaning-caption{margin-top:12px}.library-example-caption{margin-top:10px}
.share-room{margin-top:10px;min-height:40px;padding:0 16px;font-size:12px}
.android-download{display:flex;align-items:center;gap:12px;margin:0 0 13px;padding:13px 15px;border:1px solid #cfe6dd;border-radius:16px;background:linear-gradient(115deg,#f0faf5,#fff);color:#155f4a;text-decoration:none;box-shadow:0 7px 18px rgba(20,107,97,.07);transition:transform .16s ease,box-shadow .16s ease}.android-download:active{transform:scale(.99)}.android-download:hover{box-shadow:0 10px 24px rgba(20,107,97,.12)}.android-download-icon{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border-radius:13px;background:#146b61;color:#fff;font-size:24px;font-weight:700}.android-download-copy{display:grid;gap:3px;flex:1}.android-download-copy b{font-size:13px}.android-download-copy small{color:var(--muted);font-size:10px}.android-download-arrow{font-size:17px;color:#146b61}.android-download[hidden]{display:none}
.level-config{display:grid;grid-template-columns:1fr;gap:7px;padding:5px 0 12px;border-bottom:1px solid var(--line)}.level-config label{margin:0;font-size:12px}.level-config select{width:100%;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--text);font:inherit;font-size:12px}.level-config select:disabled{background:#f1f3f5;color:#8b96a2}.score-row{gap:8px;min-height:45px}.score-name{min-width:0}.score-breakdown{display:flex;flex-wrap:wrap;gap:5px 12px;margin-top:4px;color:var(--muted);font-size:9px;font-weight:500}.score-breakdown span:first-child{color:#16794a}.score-breakdown span:last-child{color:#ad5252}.score-net{flex:none;white-space:nowrap;font-size:11px}.guess-item{align-self:stretch;max-width:100%}
.game-rules-hint{margin:6px 0 11px;padding:9px 10px;border-radius:10px;background:#f5f7f8;color:var(--muted);font-size:10px;line-height:1.8;text-align:center}
.profile-link{display:flex;align-items:center;gap:8px;margin:12px auto 2px;padding:10px 14px;background:#fff;border:1px solid var(--line);border-radius:12px;color:var(--accent);font-size:12px;font-weight:700}.profile-link b{margin-right:4px}.profile-tabs,.study-tabs{display:flex;gap:7px;margin-bottom:15px}.profile-tabs button,.study-tabs button{flex:1;min-height:40px;border-radius:10px;background:#f1f4f5;color:#647181;font-size:12px;font-weight:700}.profile-tabs button.selected,.study-tabs button.selected{background:var(--accent-soft);color:var(--accent)}#profile-auth label{margin:12px 0 7px}#profile-auth input,#profile-dashboard input,#profile-dashboard select{margin-bottom:8px}.profile-note,.study-empty{font-size:11px;color:var(--muted);line-height:1.8;margin:12px 0 0}.profile-identity{display:flex;align-items:center;gap:12px;margin-bottom:10px}.profile-identity>div:nth-child(2){flex:1}.profile-identity b,.profile-identity small{display:block}.profile-identity small{font-size:10px;color:var(--muted);margin-top:4px}.profile-identity #profile-avatar-large{font-size:27px;width:48px;height:48px;display:grid;place-items:center;background:var(--accent-soft);border-radius:14px}.profile-identity .secondary{min-height:38px;padding:0 12px;font-size:11px}.profile-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:10px 0}.profile-stats article{background:#fff;border:1px solid var(--line);border-radius:13px;padding:12px 5px;text-align:center}.profile-stats b,.profile-stats small{display:block}.profile-stats b{font-size:18px;color:var(--accent)}.profile-stats small{font-size:10px;color:var(--muted);margin-top:5px}.profile-edit,.study-card{margin:10px 0}.profile-edit select{width:100%;font:inherit;background:#fff;border:1px solid var(--line);border-radius:12px;padding:13px}.avatar-choices{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0 13px}.avatar-choice{width:42px;height:42px;background:#f2f5f5;border-radius:12px;font-size:21px}.avatar-choice.selected{background:var(--accent-soft);outline:2px solid var(--accent)}.profile-save{width:100%;min-height:44px}.study-entry{border-top:1px solid var(--line);padding:11px 2px;display:grid;gap:5px}.study-entry>div:first-child{display:flex;justify-content:space-between;gap:9px}.study-entry b{font-size:13px}.study-entry>span,.study-entry small{font-size:10px;color:var(--muted)}.word-actions{display:flex;gap:7px;margin-top:8px;flex-wrap:wrap}.word-action{background:var(--accent-soft);color:var(--accent);border-radius:9px;padding:8px 10px;font-size:10px;font-weight:700}.study-entry .word-action{padding:6px 8px}.study-entry>small{display:block}.library-entry .word-actions{margin-top:12px}.library-entry .word-action{font-size:10px}.learning-card .word-action{margin:8px 4px 0 0}.profile-screen{padding-bottom:14px}
.next-panel{background:#fff;border:1px solid var(--line);border-radius:15px;padding:14px;margin:12px 0;box-shadow:var(--shadow)}.next-panel[hidden]{display:none}.next-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.next-panel-head b{font-size:13px}.next-panel-head span{font-size:10px;color:var(--muted);white-space:nowrap}.ready-summary{font-size:11px;line-height:1.8;color:var(--muted);margin:8px 0}.ready-list{display:grid;gap:6px}.ready-person{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#f7f9fa;border-radius:9px;padding:8px 10px;font-size:11px}.ready-person b{font-size:10px}.ready-person .is-ready{color:var(--good)}.ready-person .is-waiting{color:#8a6a25}.next-actions{display:flex;gap:8px;margin-top:10px}.next-actions button{flex:1;margin:0;min-height:44px}.next-actions .secondary:disabled{opacity:.8;cursor:default}
.profile-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.profile-stats article{min-width:0;overflow:hidden}.profile-stats b{font-size:16px;overflow-wrap:anywhere}.profile-stats-extra{margin-top:6px}
.username-status{margin:-3px 2px 9px;font-size:11px;line-height:1.7}.username-status.error{color:#b42332}.username-status.success{color:#14784d}
.avatar-choices{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px}.avatar-choice{width:100%;height:auto;aspect-ratio:1;border-radius:15px;font-size:23px;box-shadow:inset 0 0 0 1px #fff9,0 4px 12px #254c4410;transition:transform .16s ease,box-shadow .16s ease}.avatar-choice:hover{transform:translateY(-2px)}.avatar-choice.selected{outline:2px solid var(--accent);outline-offset:1px;box-shadow:0 5px 14px #087c7028}.avatar-tone-0{background:#edf0ff}.avatar-tone-1{background:#fff4d8}.avatar-tone-2{background:#e6f5ff}.avatar-tone-3{background:#ffe8e2}.avatar-tone-4{background:#e4f5eb}.avatar-tone-5{background:#f5eaff}.avatar-tone-6{background:#ffebf2}.avatar-tone-7{background:#e9f2f1}.score-row{gap:8px}.score-avatar{width:30px;height:30px;display:grid;place-items:center;flex:none;border-radius:10px;background:var(--accent-soft);font-size:18px}.study-book-list{display:grid;gap:8px}.study-book-list .study-entry{padding:13px;background:#fff;border:1px solid var(--line);border-radius:14px}.otp-row{display:flex;align-items:end;gap:8px}.otp-row>input,.otp-row>.register-phone-entry{flex:1;min-width:0}.otp-row>button{flex:none;padding:0 13px;font-size:11px;min-height:46px}.register-phone-entry{min-width:0}.register-phone-entry label{margin-top:0!important}.otp-row.code-sent{display:block}.otp-row.code-sent>button{width:100%;margin-top:8px}.otp-row button:disabled{opacity:.62;cursor:default}.otp-row>[hidden],#register-code-entry[hidden]{display:none!important}

@font-face{font-family:Vazirmatn;src:url('/fonts/Vazirmatn-Regular.woff2') format('woff2');font-style:normal;font-weight:100 600;font-display:swap}
@font-face{font-family:Vazirmatn;src:url('/fonts/Vazirmatn-Bold.woff2') format('woff2');font-style:normal;font-weight:700 900;font-display:swap}
:root{--bg:#f2f6f4;--surface:#fff;--text:#172b31;--muted:#687c80;--line:#e1eae6;--accent:#087c70;--accent-soft:#e4f4ef;--good:#168653;--bad:#c04d56;--shadow:0 14px 38px rgba(24,62,55,.08)}
body{font-family:Vazirmatn,Tahoma,Arial,sans-serif;background:radial-gradient(ellipse at 12% 2%,#dcefe8 0,transparent 35%),radial-gradient(ellipse at 92% 22%,#f5ead3 0,transparent 28%),var(--bg);line-height:1.65;-webkit-font-smoothing:antialiased}
.app{isolation:isolate}header{border-color:#dce7e2}.logo{background:linear-gradient(145deg,#0e9380,#075f58);box-shadow:0 6px 16px #087c7030}.hero{padding-top:34px}.hero-art{background:linear-gradient(145deg,#e3f6ef,#d9eee8);box-shadow:inset 0 0 0 1px #c5e6dc,0 12px 24px #247d681c;animation:hero-float 4s ease-in-out infinite}.hero-art span{animation:star-glint 3s ease-in-out infinite}
.hero h1{letter-spacing:-.35px}.card,.word-card,.learning-card,.next-panel,.score-card{border-color:#e1ebe6;box-shadow:0 12px 34px rgba(25,73,62,.075);border-radius:20px}.card{padding:22px}.primary{background:linear-gradient(135deg,#0b8978,#07675f);box-shadow:0 7px 16px #087c7024;transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}.primary:hover{box-shadow:0 10px 22px #087c7035;filter:saturate(1.08)}.secondary{transition:transform .18s ease,background-color .18s ease}.secondary:hover{background:#d7eee6}.option{border-radius:15px;min-height:58px;transition:transform .16s ease,border-color .16s ease,background-color .16s ease,box-shadow .16s ease}.option:not(:disabled):hover{transform:translateY(-2px);border-color:#a7d3c5;box-shadow:0 7px 16px #246c5b16}.option-letter{border-radius:9px;background:#edf5f1;color:#247568}.word-card{padding:25px 18px;background:linear-gradient(150deg,#fff,#f8fcfa)}.word-card strong{font-size:29px}.turn-banner{border:1px solid #d8eee6;background:linear-gradient(100deg,#e6f5ef,#edf7f2);border-radius:14px}.learning-card{background:linear-gradient(145deg,#fff,#f8fbfa)}.next-panel{background:linear-gradient(145deg,#fff,#f7fbf9)}.ready-person{background:#f0f6f3;border:1px solid #e8f0ec;border-radius:11px}.screen.active{animation:screen-enter .28s cubic-bezier(.2,.75,.25,1)}.profile-link,.library-link,.android-download{transition:transform .18s ease,box-shadow .18s ease}.profile-link:hover,.library-link:hover,.android-download:hover{transform:translateY(-2px)}input{transition:border-color .18s ease,box-shadow .18s ease}
@keyframes screen-enter{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@keyframes hero-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}@keyframes star-glint{0%,100%{opacity:.65;transform:scale(.9) rotate(-8deg)}50%{opacity:1;transform:scale(1.12) rotate(8deg)}}
@media(max-width:380px){.hero{padding-top:26px}.card{padding:18px}.word-card strong{font-size:26px}.option{min-height:54px}}
@media(prefers-reduced-motion:reduce){.hero-art,.hero-art span{animation:none!important}}

/* Clear, accessible coin spending and contextual product guides. */
.coin-confirm-dialog,.product-guide{width:min(460px,calc(100vw - 28px));max-width:none;max-height:min(90dvh,760px);margin:auto;padding:0;border:0;background:transparent;color:var(--text);overflow:visible}
.coin-confirm-dialog::backdrop,.product-guide::backdrop{background:rgba(13,35,31,.52);backdrop-filter:blur(5px);animation:backdrop-arrive .2s ease both}
.coin-confirm-card,.product-guide-card{max-height:min(90dvh,760px);overflow:auto;overscroll-behavior:contain;border:1px solid #dcebe3;border-radius:26px;background:linear-gradient(150deg,#fff 0%,#fbfdfb 68%,#f2f8f4 100%);box-shadow:0 28px 90px rgba(12,43,34,.25);padding:clamp(19px,5vw,28px)}
.coin-confirm-dialog[open],.product-guide[open]{animation:dialog-arrive .26s cubic-bezier(.16,1,.3,1) both}
.coin-confirm-top,.product-guide-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.coin-confirm-kicker,.product-guide-top>span{color:var(--muted);font-size:11px;font-weight:750;letter-spacing:.02em}
.coin-confirm-close,.product-guide-top button{display:grid;place-items:center;width:36px;height:36px;flex:none;border:1px solid var(--line);border-radius:13px;background:#f7faf8;color:#637873;font:inherit;font-size:22px;line-height:1;cursor:pointer}
.coin-confirm-mark{display:flex;align-items:center;gap:9px;margin:15px 0 8px;color:#8a6b24;font-size:11px;font-weight:800}
.coin-confirm-mark img{width:38px;height:38px;object-fit:contain;filter:drop-shadow(0 4px 7px #a57e2930)}
.coin-confirm-card h2,.product-guide-card h2{margin:5px 0 8px;font-size:clamp(18px,5vw,22px);line-height:1.6}
.coin-confirm-copy,.product-guide-copy{margin:0;color:var(--muted);font-size:12px;line-height:1.9}
.coin-transaction{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:6px;margin:20px 0 14px;padding:14px 8px;border:1px solid #e6eee9;border-radius:18px;background:linear-gradient(120deg,#f7fbf8,#fffaf0 52%,#f7fbf8);text-align:center}
.coin-transaction>div{min-width:0;display:grid;justify-items:center;gap:4px}
.coin-transaction small{color:var(--muted);font-size:9px;line-height:1.6;white-space:nowrap}
.coin-transaction b{display:flex;align-items:center;justify-content:center;gap:4px;color:#344943;font-size:clamp(15px,4.6vw,19px);font-variant-numeric:tabular-nums}
.coin-transaction-cost{padding:8px 3px;border:1px solid #f0e5bd;border-radius:13px;background:#fff9e8}
.coin-transaction-cost b{color:#8d6b1d}
.coin-transaction-cost img{width:20px;height:20px;object-fit:contain}
.coin-transaction-minus,.coin-transaction-arrow{color:#9aaba5;font-size:16px;font-weight:800}
.coin-confirm-note,.coin-confirm-shortage{margin:10px 0 0;padding:10px 12px;border-radius:13px;background:#f1f6f3;color:#657671;font-size:10px;line-height:1.8}
.coin-confirm-shortage{border:1px solid #f0d9c9;background:#fff5ef;color:#925843}
.coin-confirm-actions{display:grid;grid-template-columns:1fr 1.35fr;gap:8px;margin-top:18px}
.coin-confirm-actions button{min-width:0;min-height:46px;margin:0;padding-inline:9px;border-radius:13px;font-size:11px}
.coin-confirm-actions #coin-confirm-wallet{grid-column:1/-1;width:100%;border-color:#cce8dc;background:#eef8f3;color:#176b57}
.coin-confirm-actions #coin-confirm-wallet[hidden]{display:none}
.coin-confirm-actions #coin-confirm-accept:disabled{background:#e9eeeb;box-shadow:none;color:#899792;cursor:not-allowed}
.product-guide-card{padding:20px 22px 18px}
.product-guide-meter{height:5px;margin:15px 0 12px;border-radius:9px;background:#e8f0ec;overflow:hidden}
.product-guide-meter i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#53ad82,#087c70);transition:width .24s ease}
.product-guide-step{display:flex;align-items:center;justify-content:space-between;color:#798985;font-size:10px}
.product-guide-step img{width:34px;height:34px;border-radius:11px}
.product-guide-card>.eyebrow{margin:14px 0 0}
.product-guide-hint{display:flex;align-items:flex-start;gap:9px;margin-top:15px;padding:11px 12px;border:1px solid #dceee5;border-radius:14px;background:linear-gradient(110deg,#f2faf5,#fbfcf7);color:#577168;font-size:10px;line-height:1.8}
.product-guide-hint-mark{display:grid;place-items:center;width:18px;height:18px;flex:none;border-radius:50%;background:#dff2e7;color:#16745d;font-size:11px;font-weight:800}
.product-guide-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:18px}
.product-guide-actions>div{display:flex;gap:7px}
.product-guide-actions button{min-height:42px;margin:0;padding:0 13px;border-radius:12px;font-size:10px}
.product-guide-actions .product-guide-skip{border:0;background:transparent;color:#73837e;font-weight:650}
.product-guide-actions [hidden]{display:none!important}
.guide-focus{position:relative;z-index:1;outline:3px solid #8fd3b1!important;outline-offset:4px!important;box-shadow:0 0 0 8px rgba(143,211,177,.2)!important;scroll-margin-block:22px}
.coin-feedback{position:fixed;z-index:1100;inset:auto max(14px,calc((100vw - 500px)/2)) calc(14px + env(safe-area-inset-bottom));display:grid;grid-template-columns:38px minmax(0,1fr) auto 28px;align-items:center;gap:10px;width:min(500px,calc(100vw - 28px));margin:0 auto;padding:12px 13px;border:1px solid #d6e9de;border-radius:17px;background:rgba(255,255,255,.96);box-shadow:0 14px 38px rgba(20,61,48,.18);opacity:0;transform:translateY(12px) scale(.985);transition:opacity .2s ease,transform .24s cubic-bezier(.2,.8,.2,1);backdrop-filter:blur(12px)}
.coin-feedback[hidden]{display:none}
.coin-feedback.is-visible{opacity:1;transform:translateY(0) scale(1)}
.coin-feedback>img{width:38px;height:38px;object-fit:contain}
.coin-feedback>div{min-width:0;display:grid;gap:2px}
.coin-feedback>div b{font-size:11px;line-height:1.6}
.coin-feedback>div small{color:var(--muted);font-size:9px;line-height:1.5}
.coin-feedback>strong{font-size:14px;font-variant-numeric:tabular-nums;white-space:nowrap}
.coin-feedback>strong.is-incoming{color:#197c58}.coin-feedback>strong.is-outgoing{color:#9a6f24}
.coin-feedback>button{display:grid;place-items:center;width:28px;height:28px;border:0;border-radius:9px;background:#f2f6f4;color:#70817b;font-size:18px;cursor:pointer}
@media(max-width:380px){.coin-confirm-card{padding:18px 15px}.coin-transaction{gap:3px;padding:11px 4px}.coin-transaction small{font-size:8px}.coin-confirm-actions{gap:6px}.coin-confirm-actions button{font-size:10px}.product-guide-card{padding:17px 16px}.product-guide-actions button{padding-inline:9px}}
@media(prefers-reduced-motion:reduce){.coin-confirm-dialog[open],.product-guide[open],.coin-feedback,.product-guide-meter i{animation:none!important;transition:none!important}.coin-confirm-dialog::backdrop,.product-guide::backdrop{backdrop-filter:none}}

.word-card{position:relative;overflow:hidden;animation:word-breathe 5.2s ease-in-out infinite}.word-card::before{content:"";position:absolute;inset:0 auto 0 0;width:38%;background:linear-gradient(100deg,transparent,#fff9,transparent);transform:translateX(-155%) skewX(-18deg);animation:card-glint 7s ease-in-out infinite;pointer-events:none}.word-card>*{position:relative}.option{animation:option-arrive .38s both}.option:nth-child(2){animation-delay:.045s}.option:nth-child(3){animation-delay:.09s}.option:nth-child(4){animation-delay:.135s}.timer.urgent{color:#bd4e50;animation:timer-beat .62s ease-in-out infinite alternate}.leave-dialog{width:min(400px,calc(100% - 32px));border:1px solid #deebe5;border-radius:24px;padding:27px 22px 20px;color:var(--text);background:linear-gradient(145deg,#fff,#f6fbf8);box-shadow:0 24px 90px #102d2733;text-align:center;overflow:visible}.leave-dialog[open]{animation:dialog-arrive .28s cubic-bezier(.16,1,.3,1) both}.leave-dialog::backdrop{background:#10282470;backdrop-filter:blur(5px);animation:backdrop-arrive .2s ease both}.leave-dialog-icon{width:54px;height:54px;display:grid;place-items:center;margin:0 auto 13px;border-radius:18px;background:linear-gradient(145deg,#fff0e8,#ffe1d5);color:#ba554a;font-size:26px;font-weight:800;transform:rotate(-35deg)}.leave-dialog .eyebrow{margin-bottom:3px}.leave-dialog h2{font-size:21px;margin:2px 0 8px}.leave-dialog>p:not(.eyebrow){font-size:13px;color:var(--muted);line-height:1.9;margin:0 auto 20px;max-width:310px}.leave-dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.leave-dialog-actions button{min-height:48px;border-radius:13px;font-weight:700}.leave-dialog-actions .secondary{padding:0 10px}.leave-danger{background:linear-gradient(135deg,#c86155,#a93f43);color:#fff;box-shadow:0 7px 16px #ad45452a;transition:transform .18s ease,box-shadow .18s ease}.leave-danger:hover{transform:translateY(-2px);box-shadow:0 10px 20px #ad454544}
@keyframes option-arrive{from{opacity:0;transform:translateY(9px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes word-breathe{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}@keyframes card-glint{0%,65%,100%{transform:translateX(-155%) skewX(-18deg);opacity:0}75%{opacity:.7}90%{transform:translateX(500%) skewX(-18deg);opacity:0}}@keyframes timer-beat{from{transform:scale(1)}to{transform:scale(1.14)}}@keyframes dialog-arrive{from{opacity:0;transform:translateY(14px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes backdrop-arrive{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.word-card,.word-card::before,.option,.timer.urgent,.leave-dialog[open]{animation:none!important}.leave-dialog::backdrop{backdrop-filter:none}}

.public-actions{display:grid;gap:10px;margin-top:11px}.public-create,.public-browse{width:100%;display:flex;align-items:center;gap:12px;text-align:right;border:1px solid #dcebe5;border-radius:17px;padding:13px 15px;background:linear-gradient(135deg,#fff,#f4faf7);color:var(--text);box-shadow:0 7px 20px rgba(25,73,62,.045);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.public-create:hover,.public-browse:hover{transform:translateY(-2px);border-color:#acd8ca;box-shadow:0 11px 24px rgba(25,73,62,.09)}.public-action-icon{width:40px;height:40px;flex:none;display:grid;place-items:center;border-radius:13px;background:linear-gradient(145deg,#e0f3eb,#cceade);color:#087c70;font-size:26px;font-weight:500}.public-create>span:nth-child(2){flex:1}.public-create b,.public-create small{display:block}.public-create b{font-size:13px}.public-create small{font-size:10px;color:var(--muted);margin-top:2px}.public-action-arrow{color:var(--accent);font-size:18px}.public-browse{justify-content:space-between;background:linear-gradient(110deg,#087c70,#075f58);border-color:transparent;color:#fff;padding:13px 16px}.public-browse span:first-child{font-size:13px;font-weight:750}.public-browse span:last-child{font-size:10px;color:#d8f0e9}.public-room-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#e7f3ee;border:1px solid #dcece5;border-radius:15px;padding:10px 12px;margin:16px 0 6px}.public-room-tools>span{font-size:10px;line-height:1.7;color:#4b6a63}.public-room-tools button{min-height:38px;padding:0 13px;white-space:nowrap}.public-room-list{display:grid;gap:11px;margin:12px 0 22px}.public-room-card{padding:16px;border:1px solid #deebe5;border-radius:19px;background:linear-gradient(145deg,#fff,#f7fbf9);box-shadow:0 10px 25px rgba(25,73,62,.06);animation:option-arrive .32s both}.public-room-card-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.public-room-card-head>div{display:grid;gap:2px}.public-room-card-head small{font-size:10px;color:var(--muted)}.public-room-card-head b{font-size:15px}.public-room-count{padding:6px 10px;border-radius:20px;background:#e5f4ed;color:#087c70;font-weight:800;font-size:12px;white-space:nowrap}.public-room-details{display:grid;gap:6px;margin:12px 0 14px;color:#536d67;font-size:11px}.public-room-enter{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:45px;padding:0 13px;border-radius:12px;background:#edf7f2;color:#087366;font-weight:750;transition:background-color .15s ease,transform .15s ease}.public-room-enter:hover{background:#dcefe7}.public-room-enter:active{transform:scale(.985)}
@media(max-width:380px){.public-room-tools{align-items:flex-start}.public-room-tools>span{font-size:9px}.public-room-tools button{padding:0 9px;font-size:11px}.public-room-card{padding:14px}}
@media(prefers-reduced-motion:reduce){.public-create,.public-browse,.public-room-enter{transition:none}.public-room-card{animation:none}}
.privacy-consent{display:flex;align-items:flex-start;gap:10px;margin:14px 0;font-size:.92rem;line-height:1.8}.privacy-consent input{width:auto;min-width:18px;height:18px;margin-top:5px}.privacy-consent a,footer a{color:var(--accent,#087c70)}
.brand-icon{width:40px;height:40px;flex:none;border-radius:13px;box-shadow:0 4px 11px #073e4530}.brand>div{min-width:0}.brand b{font-size:13px}.brand small{font-size:9px;letter-spacing:.15px}
.hero-art{background:transparent;width:88px;height:88px;overflow:hidden}.hero-art::before{content:"";position:absolute;inset:3px;border-radius:26px;background:linear-gradient(145deg,#063e45,#0b736e);box-shadow:0 12px 28px #0a6c6240}.hero-art img{position:relative;width:100%;height:100%;object-fit:contain;z-index:1;filter:drop-shadow(0 3px 6px #022d3440)}
.course-home-actions{display:grid;gap:9px;margin:-6px 0 17px}.course-primary,.course-review{width:100%;display:flex;align-items:center;gap:12px;text-align:right;padding:12px 14px;border-radius:16px;border:1px solid #dcebe5;background:linear-gradient(120deg,#fff,#f5faf7);color:var(--text);box-shadow:0 8px 20px #1d57430b;transition:transform .18s ease,box-shadow .18s ease}.course-primary{border-color:#c7e6da;background:linear-gradient(120deg,#e9f7ef,#fff)}.course-primary:hover,.course-review:hover{transform:translateY(-2px);box-shadow:0 12px 24px #1d574318}.course-action-icon{width:38px;height:38px;flex:none;display:grid;place-items:center;border-radius:12px;background:#d9f0e5;color:#08776b;font-size:20px;font-weight:800}.course-primary>span:nth-child(2),.course-review>span:nth-child(2){flex:1;min-width:0}.course-primary b,.course-primary small,.course-review b,.course-review small{display:block}.course-primary b,.course-review b{font-size:12px}.course-primary small,.course-review small{font-size:9px;color:var(--muted);line-height:1.7;margin-top:3px}.course-arrow{color:#087c70;font-size:18px}.course-review:disabled{opacity:.68;cursor:default}.course-review:disabled:hover{transform:none;box-shadow:0 8px 20px #1d57430b}.game-section-title{display:flex;align-items:center;gap:9px;margin:2px 2px 9px;color:#536861}.game-section-title>span{width:30px;height:30px;display:grid;place-items:center;border-radius:10px;background:#e9f0ed}.game-section-title b,.game-section-title small{display:block}.game-section-title b{font-size:12px}.game-section-title small{font-size:9px;color:var(--muted);margin-top:2px}
.story-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 0 11px;padding:10px 12px;border:1px solid #deebe5;border-radius:14px;background:#f8fbf9;color:var(--muted);font-size:10px}.story-tools select{font:inherit;font-size:10px;max-width:150px;min-height:38px;padding:0 8px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--text)}.stories-list{display:grid;gap:9px;margin-bottom:16px}.story-tile{width:100%;display:flex;align-items:flex-start;gap:11px;padding:13px 12px;text-align:right;border:1px solid #deebe5;border-radius:16px;background:linear-gradient(140deg,#fff,#f8fbf9);box-shadow:0 6px 16px #143b3110;transition:transform .16s ease,border-color .16s ease}.story-tile:hover{transform:translateY(-2px);border-color:#a9d8c8}.story-index{width:33px;height:33px;flex:none;display:grid;place-items:center;border-radius:11px;background:#e4f3eb;color:#087c70;font-size:13px;font-weight:800}.story-tile-copy{display:grid;gap:3px;flex:1;min-width:0}.story-level{font-size:9px;color:#528078}.story-tile-copy b{font-size:13px}.story-tile-copy small{font-size:10px;color:#718096;text-align:left}.story-summary{font-size:10px;line-height:1.65;color:var(--muted);text-align:left}.story-tile-status{flex:none;margin-top:7px;color:#087c70;font-size:9px;white-space:nowrap}.learning-method-note{margin:10px 0 20px;padding:14px;border-radius:15px;background:#edf6f1;border:1px solid #d9ece2}.learning-method-note b{font-size:11px;color:#176b5e}.learning-method-note p{margin:4px 0 0;color:#58716b;font-size:10px;line-height:1.9}
.story-reader-head{padding:16px 5px 13px}.story-reader-mark{display:inline-block;color:#96702f;background:#fbf1d7;border-radius:30px;padding:4px 8px;font-size:9px;font-weight:800;letter-spacing:.8px}.story-reader-head h1{font-size:25px;margin:8px 0 3px}.story-reader-head p{margin:0;color:var(--muted);font-size:11px}.story-reading-controls{display:flex;gap:8px;margin:0 0 10px}.story-reading-controls button{flex:1;min-height:42px;padding:0 8px;font-size:10px}.story-gloss-hint{margin:0 0 9px;color:#71827b;font-size:9px;line-height:1.7}.story-reading{display:grid;gap:8px}.story-sentence{padding:12px 13px;border:1px solid #e2ebe6;border-radius:15px;background:#fff;box-shadow:0 5px 15px #183c3309}.story-sentence-head{display:flex;justify-content:space-between;align-items:center;color:#89988e;font-size:10px}.story-sentence-head button{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#eff6f2;color:#12766b}.story-en{margin:3px 0 5px;text-align:left;font:500 16px/1.75 Vazirmatn,Arial,sans-serif;color:#173f39}.story-gloss-word{display:inline-grid;grid-template-rows:auto auto;vertical-align:baseline;text-align:center;margin:0 .035em;line-height:1.35}.story-gloss-token{text-decoration:underline;text-decoration-color:#71ad98;text-decoration-thickness:1px;text-underline-offset:3px}.story-gloss-meaning{display:none;min-height:1em;padding:2px 2px 0;color:#678077;font:500 9px/1.45 Vazirmatn,Arial,sans-serif;white-space:nowrap}.story-reading.gloss-visible .story-gloss-meaning{display:block}.story-reading.gloss-visible .story-en{line-height:2.35}.story-gloss-toggle[aria-pressed=true]{border-color:#67a98d;background:#e8f5ee;color:#176b58}.story-fa{margin:5px 0 0;padding-top:7px;border-top:1px dashed #dbe8e2;color:#64766f;font-size:12px;line-height:1.8}.story-fa[hidden]{display:none}.story-word-section{margin:14px 0;padding:13px;border-radius:16px;background:#f6faf7;border:1px solid #e1ebe5}.story-word-section h2{font-size:13px;margin:0}.story-word-section>p{font-size:10px;color:var(--muted);margin:3px 0 10px}.story-vocabulary{display:flex;flex-wrap:wrap;gap:7px}.story-word{min-width:calc(50% - 4px);flex:1;display:grid;gap:2px;text-align:left;padding:9px 10px;border:1px solid #dfeae4;border-radius:11px;background:#fff;color:#15776d}.story-word span{font:700 12px/1.5 Arial,sans-serif}.story-word small{font:11px/1.6 Vazirmatn,sans-serif;color:var(--muted);text-align:right}.story-grammar{padding:14px;border-radius:16px;background:linear-gradient(145deg,#093f46,#0b655f);color:#fff}.story-grammar>span{font-size:9px;color:#b7e4d1}.story-grammar h2{font-size:14px;margin:5px 0}.story-grammar p{font-size:11px;line-height:1.8;margin:6px 0;color:#e5f2ee}.story-grammar p[lang=en]{font:13px/1.7 Arial,sans-serif;text-align:left;color:#fff}.story-practice-start{width:100%;margin:12px 0 20px}.story-practice{margin:10px 0;padding:17px 14px;border:1px solid #dcebe5;border-radius:18px;background:#fff;box-shadow:0 10px 25px #163d310e}.practice-progress{font-size:10px;color:#087c70;font-weight:700}.story-practice h2{font-size:17px;line-height:1.8;margin:9px 0 13px}.practice-options{display:grid;gap:8px}.practice-option{min-height:47px;padding:9px 12px;text-align:right;border:1px solid #e0e9e4;border-radius:12px;background:#fbfdfc;color:#294b44;font-size:12px;transition:.16s}.practice-option.selected{border-color:#58a998;background:#eaf6f1}.practice-option.correct{border-color:#43a278;background:#e4f5eb;color:#12623e}.practice-option.incorrect{border-color:#d77970;background:#fff0ee;color:#9d3d3b}.practice-option:disabled{opacity:1}.story-practice>button{width:100%;margin:10px 0 0}.practice-feedback{padding:10px;border-radius:11px;background:#f0f6f2;color:#3f6257;font-size:11px;line-height:1.8}.story-result{margin:20px 0;padding:22px 15px;text-align:center;border:1px solid #dcebe5;border-radius:20px;background:linear-gradient(145deg,#fff,#f5faf7)}.story-result-icon{font-size:33px;color:#c28b26}.story-result h2{font-size:20px;margin:4px 0}.story-result>b{color:#087c70;font-size:14px}.story-result p{color:var(--muted);font-size:11px;line-height:1.8;margin:9px 0 17px}.story-result button{width:100%}
@media(max-width:380px){.course-primary,.course-review{padding:11px 10px}.story-tile{padding:11px 9px}.story-tile-status{font-size:8px}.story-en{font-size:14px}}
@media(prefers-reduced-motion:reduce){.course-primary,.course-review,.story-tile{transition:none}}
.course-level-group{margin:15px 0 22px}.course-level-heading{display:flex;align-items:center;gap:10px;margin:0 2px 8px;padding:11px;border:1px solid #dceae4;border-radius:14px;background:linear-gradient(110deg,#eef8f2,#fff)}.course-level-badge{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:12px;background:#0e6c62;color:#fff;font-size:12px;font-weight:800;direction:ltr}.course-level-heading>div{flex:1;min-width:0}.course-level-heading b,.course-level-heading small{display:block}.course-level-heading b{font-size:11px}.course-level-heading small{margin-top:3px;color:var(--muted);font-size:9px}.course-level-progress{width:54px;height:5px;overflow:hidden;border-radius:9px;background:#dce9e2}.course-level-progress i{display:block;height:100%;border-radius:9px;background:#41a881;transition:width .3s}.story-tile.is-in-progress{border-color:#84c3ac;background:#f6fcf8}.story-tile.is-complete .story-index{background:#daf0e4;color:#18734f}.course-progress-intro{margin:0 0 10px;color:var(--muted);font-size:10px;line-height:1.8}.learning-progress-card{margin:10px 0;padding:15px}.learning-progress-card .section-title{margin-bottom:4px}.learning-progress-card .section-title span{color:#16806c;font-size:10px;font-weight:800}.profile-lesson{padding:11px 0;border-top:1px solid var(--line)}.profile-lesson-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.profile-lesson-top>div{display:grid;gap:3px;min-width:0}.profile-lesson-top b{font-size:12px}.profile-lesson-top small{font:10px/1.5 Arial,sans-serif;color:var(--muted);text-align:left}.profile-lesson-state{display:grid;place-items:center;width:28px;height:28px;flex:none;border-radius:10px;background:#e8f5ee;color:#157957;font-weight:800}.profile-lesson:not(.is-complete) .profile-lesson-state{background:#fff3d9;color:#9a6e18}.profile-lesson-meter{height:5px;margin:8px 0 6px;overflow:hidden;border-radius:8px;background:#edf1ee}.profile-lesson-meter i{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#e2b94e,#38a981)}.profile-lesson-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px}.profile-lesson-bottom small{color:var(--muted);font-size:9px;line-height:1.7}.profile-lesson-bottom button,#profile-course-browse{padding:7px 10px;border-radius:9px;background:#eaf5ef;color:#187765;font-size:10px;font-weight:800;white-space:nowrap}#profile-course-browse{width:100%;margin-top:8px;padding:11px}
.profile-course-next{width:100%;margin:4px 0 9px;padding:12px;font-size:11px;line-height:1.8;white-space:normal}

.auth-heading{text-align:center;margin:28px auto 18px;max-width:440px}.auth-heading h1{font-size:28px}}.google-signin-slot{display:flex;justify-content:center;min-height:42px}.google-signin-button{width:100%;min-height:48px;display:flex;align-items:center;justify-content:center;gap:12px;border:1px solid #dadce0;border-radius:12px;background:#fff;color:#3c4043;font:600 14px system-ui,sans-serif;box-shadow:0 1px 2px #0000000c}.google-signin-button:active{background:#f8faff}.google-mark{font:700 21px Arial,sans-serif;background:conic-gradient(from -45deg,#4285f4 0 25%,#34a853 25% 50%,#fbbc05 50% 75%,#ea4335 75%);color:transparent;background-clip:text;-webkit-background-clip:text}.google-auth-note{text-align:center}.auth-divider{display:flex;align-items:center;gap:10px;margin:16px 0;color:var(--muted);font-size:10px}.auth-divider:before,.auth-divider:after{content:"";height:1px;flex:1;background:var(--line)}.password-field{position:relative}.password-field input{padding-left:68px}.password-field button{position:absolute;left:9px;top:50%;transform:translateY(-50%);background:transparent;color:var(--accent);font-size:10px;font-weight:700;padding:7px}.google-connected-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0;font-size:10px;color:var(--muted)}.google-connected-row button{min-height:38px;padding:0 11px;font-size:10px}.google-connected-row.is-connected span{color:#16824b}

#profile-auth [hidden]{display:none!important}.otp-row{display:flex;align-items:stretch;gap:8px}.otp-row input{flex:1;min-width:0;margin-bottom:8px!important}.otp-row button{flex:none;margin:0 0 8px;min-height:44px;padding:0 12px;font-size:11px}.forgot-password{display:block;margin:8px auto 0;padding:8px 12px;background:transparent;color:var(--accent);font:inherit;font-size:11px;font-weight:700}.forgot-password[hidden]{display:none!important}
.android-download-note{margin:-5px 0 12px;color:var(--muted);font-size:11px;line-height:1.7}
.home-hero{margin:19px auto 13px;padding:14px 16px;max-width:520px;text-align:center;border:1px solid #e1ebe6;border-radius:18px;background:linear-gradient(120deg,#f3faf6,#fff);box-shadow:0 8px 22px rgba(25,73,62,.045)}.home-hero .hero-art{display:none}.home-hero .eyebrow{margin:0 0 5px;font-size:10px}.home-hero h1{margin:0;font-size:22px;line-height:1.45}.home-hero .sub{margin:5px auto 0;font-size:11px;line-height:1.7}.course-home-actions{margin-top:12px}.android-download-note{margin-top:-7px}

/* Account identity and grouped learning settings */
.header-actions{display:flex;align-items:center;gap:9px}.header-profile{display:flex;align-items:center;gap:6px;min-width:0;max-width:168px;padding:7px 10px;border:1px solid var(--line);border-radius:13px;background:var(--surface);color:var(--text);font-size:11px;font-weight:750;box-shadow:0 3px 12px #17212b08}.header-profile>span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;direction:ltr}.header-profile #header-avatar{font-size:15px}.header-settings-glyph{color:var(--accent);font-size:13px}.profile-identity{display:flex;align-items:center;gap:12px}.profile-identity>div:nth-child(2){flex:1;min-width:0}.profile-identity>button{min-height:40px;padding:0 12px;font-size:11px;white-space:nowrap}
.settings-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(780px,100vw);height:100dvh;max-height:100dvh;border:0;border-radius:22px 0 0 22px;padding:0;background:var(--bg);color:var(--text);box-shadow:-18px 0 70px #10282433;overflow:hidden}.settings-drawer[open]{animation:settings-in .22s ease-out both}.settings-drawer::backdrop{background:#10282472;backdrop-filter:blur(4px)}@keyframes settings-in{from{opacity:.7;transform:translateX(24px)}to{opacity:1;transform:translateX(0)}}
.settings-header{height:82px;padding:14px 22px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:var(--surface)}.settings-header .eyebrow{margin-bottom:1px;font-size:10px}.settings-header h2{margin:0;font-size:21px}.settings-close{width:40px;height:40px;border-radius:13px;background:var(--bg);font-size:26px;color:var(--muted)}.settings-layout{display:grid;grid-template-columns:205px minmax(0,1fr);height:calc(100dvh - 158px);min-height:0}.settings-nav{display:flex;flex-direction:column;gap:6px;padding:20px 12px;border-left:1px solid var(--line);background:#f1f5f4}.settings-nav button{display:flex;align-items:center;gap:10px;padding:12px 13px;min-height:47px;border-radius:13px;text-align:right;background:transparent;color:#52615f;font-size:12px;font-weight:700}.settings-nav button span{width:23px;text-align:center}.settings-nav button.selected{background:#fff;color:var(--accent);box-shadow:0 4px 15px #17212b0b}.settings-panels{overflow:auto;padding:24px 22px 32px}.settings-panel h3{font-size:17px;margin:0 0 5px}.settings-help{font-size:12px;line-height:1.9;color:var(--muted);margin:0 0 17px}.settings-username{display:flex;align-items:center;gap:9px;margin:0 0 14px;padding:13px 15px;background:var(--accent-soft);border:1px solid #d4e8e3;border-radius:14px;font-size:12px}.settings-username span{color:var(--muted)}.settings-username b{direction:ltr;color:var(--accent)}.settings-username small{margin-right:auto;color:var(--muted);font-size:10px}.settings-panel .profile-edit,.settings-learning-card{padding:18px;margin:0 0 14px;box-shadow:none}.settings-panel .google-connected-row{margin-top:15px}.settings-panel .avatar-choices{margin:7px 0 4px}.settings-learning-card select{width:100%;min-height:46px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--text);font:inherit}.settings-stories-link{display:block;width:100%;margin-top:10px;text-align:right;min-height:43px}.settings-row-link{display:flex;justify-content:space-between;align-items:center;padding:15px;background:var(--surface);border:1px solid var(--line);border-radius:14px;color:var(--text);font-size:12px;text-decoration:none}.settings-row-link span{color:var(--accent)}.settings-action{display:block;width:100%;margin-top:13px;min-height:46px}.settings-panel .settings-action.leave-danger{border-radius:12px}.settings-delete-note{display:block;margin-top:9px;color:var(--muted);font-size:10px;line-height:1.8}.settings-footer{height:76px;padding:10px 22px;border-top:1px solid var(--line);background:var(--surface);display:flex;align-items:center}.settings-footer .primary{margin:0}
@media(max-width:560px){.header-actions{gap:5px}.header-actions .online{font-size:0}.header-actions .online i{margin:0}.header-profile{max-width:135px;padding:7px 8px}.settings-drawer{border-radius:0;width:100vw}.settings-layout{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);height:calc(100dvh - 158px)}.settings-nav{flex-direction:row;overflow-x:auto;gap:5px;padding:9px 12px;border-left:0;border-bottom:1px solid var(--line)}.settings-nav button{flex:0 0 auto;min-height:40px;padding:8px 11px;font-size:11px}.settings-nav button span{width:auto}.settings-panels{padding:18px 15px 25px}.settings-header{height:76px;padding:12px 16px}.settings-footer{height:76px;padding:10px 16px}.profile-identity{gap:8px;padding:15px}.profile-identity>button{padding:0 9px}}
@media(prefers-reduced-motion:reduce){.settings-drawer[open]{animation:none}}
.settings-footer[hidden]{display:none!important}
.daily-challenge-entry{border:1px solid #d8ece1;background:linear-gradient(110deg,#f1faf4,#fff)}.daily-challenge-card,.weekly-league-card{margin:12px 0 18px;padding:17px;border:1px solid var(--line);border-radius:19px;background:#fff;box-shadow:var(--shadow)}.daily-challenge-heading,.weekly-league-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.daily-challenge-heading>div{display:flex;align-items:center;gap:9px;min-width:0}.daily-challenge-heading b{font-size:12px}.daily-level-badge{display:grid;place-items:center;width:37px;height:34px;border-radius:11px;background:var(--accent-soft);color:var(--accent);font-size:11px;font-weight:850}.daily-challenge-counter{color:var(--muted);font-size:11px;font-weight:700}.daily-challenge-progress,.profile-lesson-meter{height:6px;margin:13px 0;border-radius:8px;background:#edf1ef;overflow:hidden}.daily-challenge-progress i{display:block;height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,#28a078,#88c87a);transition:width .25s ease}.daily-question-prompt{margin:18px 0 12px;font-size:18px;line-height:1.8}.daily-question-options{display:grid;grid-template-columns:1fr 1fr;gap:9px}.daily-option{display:flex;align-items:center;gap:9px;min-width:0;min-height:52px;padding:9px 11px;border:1px solid var(--line);border-radius:13px;background:#fff;text-align:left;transition:background .16s,border-color .16s}.daily-option:hover:not(:disabled){border-color:#9bcab2;background:#f4faf6}.daily-option:disabled{opacity:.7;cursor:default}.daily-option span{display:grid;place-items:center;flex:none;width:25px;height:25px;border-radius:8px;background:#eff4f1;color:var(--accent);font-size:10px;font-weight:800}.daily-option b{min-width:0;overflow-wrap:anywhere;font-size:13px;font-weight:650}.daily-answer-review{margin-top:14px;padding:14px;border:1px solid #dcece2;border-radius:14px;background:#f7fbf8}.daily-answer-review[hidden],.daily-challenge-result[hidden]{display:none!important}.daily-answer-review>b{display:block;color:#a14941;font-size:12px}.daily-answer-review>b.is-correct{color:#17734f}.daily-answer-review p{margin:9px 0 4px;line-height:1.8}.daily-answer-review p[lang=en],.daily-answer-review small[lang=en]{display:block;text-align:left;font-size:14px;font-weight:750}.daily-answer-review small{display:block;line-height:1.8;color:var(--muted)}.daily-word-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.daily-word-actions button{min-height:38px;padding:5px 8px;font-size:10px}.daily-question-next{margin-top:7px}.daily-challenge-result{text-align:center;padding:15px 4px 4px}.daily-result-mark,.weekly-league-mark{display:grid;place-items:center;width:42px;height:42px;margin:0 auto 9px;border:1px solid #eadfb5;border-radius:15px;background:#fbf7e9;color:#b08a35;font-size:23px}.daily-challenge-result h2{margin:4px 0;font-size:17px}.daily-challenge-result p{color:var(--muted);font-size:12px;line-height:1.8}.daily-challenge-result button{width:100%;min-height:42px}.weekly-league-card{margin-top:22px;background:linear-gradient(160deg,#fbfdfb,#fff)}.weekly-league-heading h2{margin:0;font-size:16px}.weekly-league-heading .eyebrow{margin:0 0 4px;font-size:10px}.weekly-league-heading .weekly-league-mark{margin:0;flex:none}.weekly-league-summary{margin:11px 0;color:var(--muted);font-size:11px;line-height:1.8}.weekly-league-my-rank{display:flex;align-items:center;gap:9px;margin:11px 0;padding:11px 12px;border:1px solid #dbeae0;border-radius:12px;background:#f3faf5;font-size:11px}.weekly-league-my-rank b{color:var(--accent)}.weekly-league-my-rank small{margin-right:auto;color:var(--muted)}.weekly-league-list{display:grid;gap:7px}.weekly-league-row{display:grid;grid-template-columns:26px 31px minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0;padding:9px 10px;border:1px solid #edf0ef;border-radius:12px;background:#fff}.weekly-league-row.is-me{border-color:#a8d3b8;background:#f4faf5}.weekly-league-place{font-size:14px;text-align:center}.weekly-league-avatar{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:#f0f5f2;font-size:17px}.weekly-league-row>b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.weekly-league-row>strong{color:var(--accent);font-size:10px;white-space:nowrap}.weekly-league-note{display:block;margin-top:12px;color:var(--muted);font-size:9px;line-height:1.8}
@media(max-width:420px){.daily-challenge-card,.weekly-league-card{padding:13px}.daily-question-prompt{font-size:16px}.daily-option{padding:8px;gap:6px}.daily-option b{font-size:12px}.weekly-league-row{grid-template-columns:22px 28px minmax(0,1fr) auto;gap:6px;padding:8px}.weekly-league-row>strong{font-size:9px}}
.settings-layout,.settings-panels,.settings-panel{min-width:0}.settings-panels{overflow-x:hidden}.account-links-card{display:grid;gap:8px;width:100%;min-width:0}.account-links-card>*{min-width:0;max-width:100%}.account-links-title{font-size:13px;color:var(--text)}.account-links-card .settings-help{margin:0 0 4px;font-size:11px}.account-links-card input{display:block;width:100%;max-width:100%;min-width:0;min-height:44px;padding:10px 12px;font-size:13px}.account-link-action{width:100%;margin-top:2px;min-height:43px}.account-link-divider{height:1px;margin:8px 0;background:var(--line)}#phone-link-code-wrap{display:grid;gap:8px;padding-top:5px}#phone-link-code-wrap[hidden],#phone-link-editor[hidden],#settings-username-editor[hidden]{display:none!important}#phone-link-countdown{font-size:10px}.account-links-card .google-connected-row{flex-wrap:wrap;padding-top:8px;border-top:1px solid var(--line)}#settings-username-status{margin:0 2px}.username-inline-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:6px 9px;padding:10px 12px}.username-inline-row b{min-width:0;overflow-wrap:anywhere}.username-inline-row small{grid-column:1/3;grid-row:2;margin:0;font-size:10px}.username-inline-row button{grid-column:3;grid-row:1/3;min-height:38px;padding:0 11px;font-size:11px}.username-inline-editor{display:grid;gap:7px;padding:3px 0 8px}.username-edit-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.username-edit-actions button{min-height:41px;padding:0 10px;font-size:11px}

/* Keep the pre-login Android download available without competing with sign-in. */
.android-download{display:flex;width:max-content;align-items:center;gap:6px;margin:6px auto 12px;padding:5px 9px;border:0;border-radius:9px;background:transparent;color:#82908d;font-size:10px;font-weight:600;box-shadow:none;transition:color .15s ease}.android-download:hover{transform:none;color:var(--accent);box-shadow:none;text-decoration:underline}.android-download-icon{display:grid;place-items:center;width:17px;height:17px;flex:none;border-radius:6px;background:#edf4f1;color:var(--accent);font-size:12px}.android-download[hidden]{display:none!important}

/* Keep the settings tabs isolated and the save action above Android's system navigation. */
.settings-drawer[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.settings-layout{height:auto;min-height:0}
.settings-panels{min-height:0}
.settings-panel[hidden]{display:none!important}
.settings-footer{height:auto;min-height:76px;padding:10px 22px calc(10px + env(safe-area-inset-bottom));}
@media(max-width:560px){.settings-drawer{padding-bottom:0}.settings-layout{height:auto;grid-template-rows:auto minmax(0,1fr)}.settings-footer{height:auto;min-height:72px;padding:9px 16px calc(10px + env(safe-area-inset-bottom))}.settings-panels{padding-bottom:18px}}
#story-reader.screen.active:not(.story-audio-open){padding-bottom:70px}
#story-reader.screen.active.story-audio-open{padding-bottom:230px}

/* A sentence and its illustration now occupy a single, turnable book page. */
#story-reading .story-sentence[hidden]{display:none!important}
#story-reading .story-sentence{min-height:min(58dvh,640px);display:grid;align-content:center;gap:9px;margin:0 auto;width:100%;max-width:740px;padding:clamp(15px,4vw,28px);border-radius:22px;background:var(--reader-card,#fff);box-shadow:0 12px 34px #193a3110}
#story-reading .story-sentence.illustrated{grid-template-rows:auto 1fr;gap:13px}
#story-reading .story-sentence-illustration{width:100%;margin:0 auto;max-width:610px;border-radius:17px}
#story-reading .story-sentence-illustration img{max-height:min(39dvh,380px);object-fit:contain}
.story-page-nav{display:grid;grid-template-columns:minmax(74px,1fr) auto minmax(74px,1fr);align-items:center;gap:8px;width:min(100%,740px);margin:12px auto 17px;padding:8px;border:1px solid var(--reader-line,#e2ebe6);border-radius:16px;background:var(--reader-card,#fff)}
.story-page-nav button{min-height:40px;padding:7px 10px;font-size:10px}
.story-page-nav button:disabled{opacity:.4;cursor:default}
.story-page-nav span{min-width:84px;text-align:center;color:var(--reader-muted,#6e7a79);font-size:10px;font-variant-numeric:tabular-nums}
#story-audio-close{display:grid;place-items:center;width:28px;height:28px;flex:none;border:1px solid #e4e9e5;border-radius:9px;background:#f7f9f8;color:#78837d;font:600 18px/1 Arial,sans-serif}
#story-audio-close:active{transform:scale(.94)}
@media(max-width:420px){#story-reading .story-sentence{min-height:54dvh;padding:13px;border-radius:18px}#story-reading .story-sentence.illustrated{gap:10px}#story-reading .story-sentence-illustration img{max-height:35dvh}.story-page-nav{margin:10px auto 14px;padding:6px}.story-page-nav button{min-height:38px;font-size:9px}}

/* One-tap home audio control, with a clear muted state. */
.home-music-toggle{display:grid;place-items:center;width:38px;height:38px;flex:none;padding:0;border:1px solid #dbe9e1;border-radius:13px;background:linear-gradient(145deg,#eff8f2,#fff);color:#17806d;box-shadow:0 3px 10px #193b3010;transition:transform .16s,background .16s,color .16s}
.home-music-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.home-music-toggle .music-muted-slash{display:none}
.home-music-toggle.is-muted{border-color:#e3e7e5;background:#f2f4f3;color:#89918d;box-shadow:none}
.home-music-toggle.is-muted .music-waves{display:none}
.home-music-toggle.is-muted .music-muted-slash{display:block}
.home-music-toggle:active{transform:scale(.94)}
.home-music-toggle[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Calm two-space home: play first, learning tools grouped separately. */
.home-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:15px 0 18px;padding:4px;border:1px solid #e2ebe6;border-radius:15px;background:#edf3f0}.home-tabs button{min-height:43px;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:11px;background:transparent;color:#73817d;font-size:12px;font-weight:750;transition:background .16s ease,color .16s ease,box-shadow .16s ease}.home-tabs button.selected{background:#fff;color:var(--accent);box-shadow:0 3px 10px #193c2e12}.home-tabs button span{font-size:15px}.home-panel[hidden]{display:none!important}.home-panel-heading{display:flex;align-items:center;gap:11px;margin:0 2px 14px;padding:6px 1px}.home-panel-heading h1{font-size:20px;line-height:1.4;margin:0 0 3px}.home-panel-heading p{font-size:11px;color:var(--muted);margin:0;line-height:1.7}.home-panel-icon{width:42px;height:42px;flex:none;display:grid;place-items:center;border:1px solid #dcece5;border-radius:14px;background:linear-gradient(145deg,#e7f6ee,#fff);font-size:19px}.home-game-card{margin:0}.public-actions{margin-top:12px}.learning-actions{display:grid;gap:10px;margin:2px 0 16px}.learning-actions .course-primary,.learning-actions .course-review{min-height:68px;padding:13px 14px}.learning-actions .course-primary small,.learning-actions .course-review small{font-size:10px}.header-profile{box-shadow:none;border-color:transparent;background:transparent}.header-profile:hover{background:var(--accent-soft)}
@media(max-width:420px){.home-tabs{margin:11px 0 15px}.home-panel-heading h1{font-size:18px}.home-game-card{padding:17px}.learning-actions .course-primary,.learning-actions .course-review{padding:11px 12px}}
@media(prefers-reduced-motion:reduce){.home-tabs button{transition:none}}
.create-room-settings{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:11px;margin:0 0 12px}.create-room-settings>div{min-width:0}.create-room-settings input,.create-room-settings select{min-height:46px;padding:10px 12px;font:inherit;font-size:12px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--text);width:100%}.create-room-settings input::placeholder{font-size:11px}.home-game-card #create:disabled,.public-create-card #create-public:disabled{opacity:.55;cursor:not-allowed}.public-entry{width:100%;display:flex;align-items:center;gap:12px;margin-top:11px;padding:14px 15px;text-align:right;border:1px solid #dcece5;border-radius:15px;background:linear-gradient(140deg,#fff,#f6fbf8);box-shadow:0 6px 16px #143b3110}.public-entry>span:nth-child(2){flex:1;display:grid;gap:3px}.public-entry b{font-size:13px}.public-entry small{font-size:10px;color:var(--muted)}.public-action-icon{font-size:20px}.public-action-arrow{color:var(--accent);font-size:18px}.public-create-card{margin:3px 0 16px}.public-create-card .section-title{margin-bottom:13px}.public-create-card .primary{margin-top:2px}.story-reading-controls{display:grid;grid-template-columns:1.2fr 1fr 1.2fr;align-items:center}.story-reading-controls button{min-width:0}.story-speed-control{display:flex;align-items:center;justify-content:center;gap:5px;margin:0;color:var(--muted);font-size:10px;white-space:nowrap}.story-speed-control select{max-width:90px;min-height:40px;padding:0 7px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--text);font:inherit;font-size:10px}.score-row{gap:9px;align-items:flex-start}.score-row .score-avatar{font-size:17px;line-height:1.5}.score-result{flex:1;min-width:0}.score-result-top{display:flex;justify-content:space-between;gap:8px;align-items:center}.score-result-top .score-name{font-size:12px;font-weight:750}.score-result-top .score-net{white-space:nowrap;font-size:11px}.score-breakdown{display:flex;flex-wrap:wrap;gap:4px 10px;margin-top:6px;color:var(--muted);font-size:9px;line-height:1.7}.score-breakdown .score-penalty{color:#a84f4b}.score-breakdown .score-earned{color:#23805b}
@media(max-width:380px){.create-room-settings{gap:7px}.story-reading-controls{grid-template-columns:1fr 1fr}.story-speed-control{grid-column:1/-1;grid-row:2;margin-top:7px}.score-breakdown{gap:3px 7px;font-size:8px}}
.private-create-hint{margin:7px 0 0;text-align:center;color:var(--muted);font-size:10px}.winner-avatar{width:82px;height:82px;border-radius:50%;font-size:40px;background:linear-gradient(145deg,#e7f3f0,#fff);border:2px solid #d2e8df;box-shadow:0 8px 24px #146b6118}.story-reading-controls{grid-template-columns:minmax(0,1.2fr) auto minmax(0,1.2fr);gap:8px}.story-audio-actions{display:flex;gap:6px;min-width:0}.story-audio-actions button{flex:1;min-width:0;min-height:42px;padding:0 7px;font-size:10px;white-space:nowrap}.story-audio-actions #story-pause:disabled{opacity:.55;cursor:not-allowed}

.settings-learning-card .settings-review-label{display:block;margin:17px 0 7px;font-size:12px;font-weight:750;color:var(--text)}.settings-learning-card .settings-inline-help{display:block;margin:7px 2px 12px;color:var(--muted);font-size:10px;line-height:1.8}.story-tile.is-locked{opacity:.57;filter:saturate(.55);cursor:not-allowed;box-shadow:none}.story-tile.is-locked:hover{transform:none;border-color:#deebe5}.story-tile.is-locked .story-tile-status{white-space:normal;max-width:116px;color:#718096;line-height:1.7}
/* Minimal live game: names only, with no live scoreboard or readiness panel. */
.game-players{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px;min-height:0}.game-players[hidden]{display:none!important}.game-player-name{padding:5px 9px;border:1px solid #e1ebe6;border-radius:999px;background:#fff;color:#64766f;font-size:10px;line-height:1.4}.game-player-answered{display:inline-grid;place-items:center;width:15px;height:15px;margin-inline-start:3px;border-radius:50%;background:#e5f5eb;color:#16794a;font:700 10px/1 Arial,sans-serif;vertical-align:middle}.game-rules-hint{margin:0 0 10px;padding:7px 9px;font-size:9px}.learning-card .word-action{min-height:38px;padding:7px 10px;margin:8px 5px 0 0;border-radius:10px;font-size:11px}.learning-card[style*="display: none"]{display:none!important}.game-top{padding:12px 0}.turn-banner{margin-bottom:9px;min-height:0;padding:8px 10px;font-size:11px}.word-card{padding:18px 14px}.options{margin:9px 0}.option{min-height:50px}
/* Richer profile characters and clear identity in live and final scoreboards. */
.avatar-choice{width:48px;height:48px;border-radius:16px;font-size:25px;box-shadow:0 2px 8px #17212b0a;transition:transform .16s ease,box-shadow .16s ease}.avatar-choice:hover{transform:translateY(-2px);box-shadow:0 6px 14px #17212b12}.avatar-choice.selected{box-shadow:0 0 0 2px var(--accent),0 5px 14px #146b6124}.avatar-tone-0{background:linear-gradient(145deg,#f1e9ff,#e3d7ff)}.avatar-tone-1{background:linear-gradient(145deg,#fff1dc,#ffe2bf)}.avatar-tone-2{background:linear-gradient(145deg,#e0f5ff,#c4e9ff)}.avatar-tone-3{background:linear-gradient(145deg,#ffe5e8,#ffd0d9)}.avatar-tone-4{background:linear-gradient(145deg,#e1f6e7,#c8edcf)}.avatar-tone-5{background:linear-gradient(145deg,#fff6ce,#f7e69b)}.avatar-tone-6{background:linear-gradient(145deg,#e5edff,#d2ddff)}.avatar-tone-7{background:linear-gradient(145deg,#ffe9d8,#ffd8bd)}.score-avatar{width:32px;height:32px;flex:0 0 32px;display:grid;place-items:center;border-radius:11px;background:var(--accent-soft);font-size:19px}.score-row{gap:8px}
.room-countdown{display:flex;align-items:center;justify-content:center;gap:9px;width:max-content;margin:0 auto 14px;padding:8px 13px;border:1px solid #d9ebe3;border-radius:999px;background:#f1f8f4;color:#52746a;font-size:11px}.room-countdown b{min-width:54px;color:var(--accent);font:800 16px/1.2 Vazirmatn,Arial,sans-serif;letter-spacing:.5px}.room-countdown[hidden]{display:none!important}
.story-reading-controls{grid-template-columns:minmax(0,1.2fr) auto minmax(0,1.2fr) minmax(0,1.2fr)}
@media(max-width:600px){.story-reading-controls{grid-template-columns:1fr 1fr;gap:7px}.story-reading-controls .story-audio-actions{grid-column:1/-1}.story-speed-control{grid-column:1/-1;grid-row:auto;margin:0}.story-reading-controls>button{min-height:40px;font-size:9px}.story-en{font-size:15px}.story-gloss-meaning{font-size:8px}}
.app{padding-bottom:calc(76px + env(safe-area-inset-bottom))}.back{position:fixed;z-index:10;left:50%;bottom:calc(10px + env(safe-area-inset-bottom));transform:translateX(-50%);display:inline-flex;align-items:center;justify-content:center;gap:5px;width:auto;min-width:0;min-height:34px;margin:0;padding:5px 13px;border:1px solid #f0c8cc;border-radius:999px;background:rgba(255,244,245,.96);color:#b42332;font-size:10px;font-weight:750;line-height:1.3;box-shadow:0 3px 12px rgba(130,35,48,.12);backdrop-filter:blur(8px);white-space:nowrap}.back:hover{background:#ffe8ea;border-color:#e6a9af}.back:active{transform:translateX(-50%) scale(.97)}.back[hidden]{display:none}.android-download-copy small{color:#718096;font-size:9px;font-weight:700;line-height:1.4}.android-download-copy{display:grid;gap:2px}
.stage-stepper{display:flex;align-items:center;gap:4px;padding:3px;border:1px solid #dce8e2;border-radius:12px;background:#f8fbf9}.stage-stepper button{display:grid;place-items:center;width:35px;height:35px;flex:none;border-radius:9px;background:#e6f2ec;color:#176e60;font:700 21px/1 Arial,sans-serif;touch-action:manipulation}.stage-stepper button:active{transform:scale(.94)}.stage-stepper button:disabled{opacity:.45;cursor:default}.stage-control .stage-stepper input{width:44px;min-height:35px!important;padding:4px!important;border:0;background:transparent;box-shadow:none;text-align:center;font-size:16px!important}.stage-control .stage-stepper input:focus{border:0;box-shadow:none}

.coin-wallet-home{display:flex;align-items:center;gap:10px;margin:14px 0 4px;padding:10px 13px;border:1px solid #e8dfbd;border-radius:15px;background:linear-gradient(110deg,#fffdf5,#f7f3e5);color:#70551b}
.coin-wallet-home[hidden]{display:none}.coin-balance-mark{width:32px;height:32px;display:grid;place-items:center;border-radius:11px;background:#f3e8bd;color:#a87810;font-size:22px}.coin-wallet-home>div{display:grid;line-height:1.15}.coin-wallet-home>div b{font-size:15px}.coin-wallet-home>div small{font-size:9px;color:#8b7949}.coin-shop-link{margin-right:auto;padding:8px 11px;border:1px solid #eadcae;border-radius:11px;background:#fff;color:#806013;font:inherit;font-size:10px;font-weight:800}.coin-shop-link span{margin-right:5px}
.story-coins-link{padding:7px 10px;border:1px solid #ecdfb7;border-radius:11px;background:#fffaf0;color:#856518;font:inherit;font-size:10px;font-weight:800;white-space:nowrap}
.story-tile.is-purchasable{border-color:#eadcae;background:linear-gradient(140deg,#fffef9,#fbf5e6)}.story-tile.is-purchasable .story-index{background:#f7eac4;color:#9b7417}.story-tile.is-purchasable .story-tile-status{color:#876716}
.coin-shop-balance{display:flex;align-items:center;gap:12px;margin:12px 0;padding:17px;border:1px solid #e9dfbd;border-radius:18px;background:linear-gradient(120deg,#fffdf6,#f7f2e2)}.coin-shop-balance .coin-balance-mark{width:46px;height:46px;font-size:28px}.coin-shop-balance>div{display:grid}.coin-shop-balance small{font-size:10px;color:#887c57}.coin-shop-balance b{font-size:18px;color:#6f541b}
.coin-shop-info{margin:12px 0;padding:16px;border:1px solid #e4ece7;border-radius:16px;background:#fff}.coin-shop-info b{color:var(--accent);font-size:13px}.coin-shop-info p{margin:5px 0 0;color:var(--muted);font-size:11px;line-height:1.9}
.coin-pack-list{display:grid;gap:10px;margin:14px 0}.coin-pack{position:relative;display:grid;gap:6px;padding:16px;border:1px solid var(--line);border-radius:17px;background:#fff}.coin-pack b{font-size:13px}.coin-pack strong{color:#8b6817;font-size:20px}.coin-pack small{font-size:9px;color:var(--muted);direction:ltr;text-align:right}.coin-pack button{min-height:42px;margin-top:5px;border:1px solid #dce3df;border-radius:12px;background:#f0f3f1;color:#79827f;font:inherit;font-size:10px;font-weight:700}.coin-pack-featured{border-color:#dfc979;background:linear-gradient(145deg,#fffef9,#fbf6e8)}.coin-pack-tag{position:absolute;left:13px;top:13px;padding:4px 8px;border-radius:20px;background:#f4e9c4;color:#856518;font-size:9px;font-weight:800}.coin-shop-notice{padding:12px 14px;border-radius:13px;background:#f7f1df;color:#746238;font-size:10px;line-height:1.9}
.room-mode-config{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.room-mode-config>label,.room-mode-config>select{grid-column:1}.room-mode-config label{font-size:11px;font-weight:700}.room-mode-config select{width:100%;min-height:44px;padding:8px 10px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--text);font:inherit;font-size:11px}.room-mode-config #private-team-size-wrap{display:grid;gap:5px;grid-column:2;grid-row:1 / span 2}.room-mode-config #private-team-size-wrap[hidden]{display:none}
.team-chip{display:inline-flex;align-items:center;padding:3px 8px;border-radius:9px;background:color-mix(in srgb,var(--team-color) 13%,white);color:var(--team-color);font-size:9px;font-weight:800}.game-player-name{border:1px solid transparent}.game-player-name[style*="--team-color"]{border-color:color-mix(in srgb,var(--team-color) 42%,white);background:color-mix(in srgb,var(--team-color) 9%,white)}.game-player-name small{color:var(--team-color);font-size:9px;font-weight:800}
.team-results{display:grid;gap:7px;margin:0 0 12px}.team-results h2{margin:4px 0;font-size:14px}.team-result-row{display:grid;grid-template-columns:24px 1fr auto;align-items:center;gap:8px;padding:10px 11px;border:1px solid color-mix(in srgb,var(--team-color) 25%,white);border-right:4px solid var(--team-color);border-radius:13px;background:color-mix(in srgb,var(--team-color) 7%,white)}.team-result-row b{font-size:11px;color:var(--team-color)}.team-result-row strong{font-size:10px}.team-result-row small{grid-column:2 / -1;color:var(--muted);font-size:9px}
@media(max-width:390px){.story-tools{flex-wrap:wrap}.story-coins-link{order:3}.room-mode-config{grid-template-columns:1fr}.room-mode-config #private-team-size-wrap{grid-column:1;grid-row:auto}}
.create-room-settings>div[hidden],#public-team-size-wrap[hidden]{display:none!important}
.winner-avatar{box-shadow:0 0 0 3px var(--winner-team-color,transparent),0 12px 28px rgba(24,73,62,.12)}
.header-actions{display:flex;align-items:center;gap:8px}.header-profile,.header-shop{display:flex;align-items:center;gap:6px;min-height:36px;padding:7px 11px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--text);font:inherit;font-size:10px;font-weight:750}.header-settings-glyph{font-size:14px}.header-shop{border-color:#e8dfbd;color:#806013;background:#fffdf6}.header-shop>span:first-child{font-size:17px;color:#b18a24}.coin-wallet-home{width:max-content;max-width:100%;justify-content:center;margin:22px auto 8px;padding:9px 16px;border:1px solid #e9e3cf;border-radius:999px;background:#fffefa;box-shadow:0 4px 18px #614e1410;color:var(--text)}.home-player-name{font-size:12px;font-weight:800}.wallet-divider{width:1px;height:20px;background:#e8e2d1}.coin-wallet-home .coin-balance-mark{width:27px;height:27px;border:1px solid #eadba9;border-radius:50%;background:linear-gradient(145deg,#fff7d8,#ead58f);color:#9d7618;font-size:18px}.coin-wallet-home>div{display:flex;align-items:baseline;gap:4px}.coin-wallet-home>div b{font-size:13px;font-variant-numeric:tabular-nums}.coin-wallet-home>div small{font-size:9px;color:#8b7949}@media(max-width:560px){.header-actions{gap:5px}.header-profile,.header-shop{padding:6px 8px;font-size:9px}.coin-wallet-home{margin-top:18px}}
.referral-help{display:block;margin:-4px 2px 12px;color:#73827d;font-size:10px;line-height:1.8}.settings-username button{margin-right:auto;min-height:34px;padding:5px 10px;font-size:10px}.welcome-tour{width:min(92vw,460px);max-height:88dvh;padding:24px;border:1px solid #dcebe2;border-radius:24px;background:#fff;color:var(--text);box-shadow:0 25px 80px #0b291f35}.welcome-tour::backdrop{background:#102b22a8;backdrop-filter:blur(4px)}.welcome-tour h2{margin:0 0 8px;font-size:20px}.welcome-tour>p:not(.eyebrow){font-size:12px;color:var(--muted);line-height:1.9}.tour-mark{display:grid;place-items:center;width:48px;height:48px;margin-bottom:12px;border-radius:17px;background:linear-gradient(145deg,#e5f6ec,#f5edd2);color:#b28a24;font-size:27px}.tour-items{display:grid;gap:8px;margin:16px 0}.tour-items article{display:grid;gap:3px;padding:11px 13px;border:1px solid var(--line);border-radius:14px;background:#fbfdfb}.tour-items b{font-size:12px}.tour-items span{font-size:10px;color:var(--muted);line-height:1.7}.welcome-tour .primary{width:100%}.coin-wallet-home .coin-balance-mark{position:relative;box-shadow:inset 0 1px 1px #fff,0 3px 8px #9d761825}.coin-shop-balance .coin-balance-mark{border-radius:15px;background:radial-gradient(circle at 30% 25%,#fff8d6,#e7c96d 62%,#ba8c25);color:#fff8dc;box-shadow:inset 0 2px 2px #fff8,0 8px 18px #8a681b30}
@media(max-width:560px){.settings-drawer{padding-bottom:env(safe-area-inset-bottom)}.settings-layout{height:calc(100dvh - 138px);grid-template-rows:auto minmax(0,1fr)}.settings-nav{scroll-snap-type:x proximity}.settings-nav button{scroll-snap-align:start;white-space:nowrap}.settings-panels{padding:14px 12px 22px}.settings-panel .profile-edit,.settings-learning-card{padding:14px}.profile-stats{gap:7px}.profile-stats article{min-width:0;padding:11px 7px}.profile-stats article b{font-size:15px}.settings-username{flex-wrap:wrap;padding:11px}.welcome-tour{padding:20px}}
@media(max-width:560px){html,body{overflow-x:clip}}

/* Story cards are grouped by CEFR level; only each group's inner rail scrolls. */
.illustrated-stories{display:grid;gap:12px;overflow:visible;padding:0;scroll-snap-type:none}
.illustrated-stories>.course-level-group{width:100%;min-width:0}

.home-player-avatar{display:grid;place-items:center;flex:none;width:30px;height:30px;border:1px solid #e6ebe8;border-radius:50%;background:linear-gradient(145deg,#fff,#edf4ef);font-size:19px;box-shadow:0 2px 7px #19392a12}.coin-wallet-home .coin-balance-mark,.coin-shop-balance .coin-balance-mark{position:relative;display:grid;place-items:center;flex:none;overflow:hidden;border:1px solid #d2a843;border-radius:50%;background:radial-gradient(circle at 28% 23%,#fff9d7 0,#f0d47c 36%,#c8962f 78%,#a97019 100%);color:transparent;font-size:0;box-shadow:inset 0 1px 1px #fff9,inset 0 -2px 3px #80550a55,0 3px 7px #78601e28}.coin-wallet-home .coin-balance-mark::after,.coin-shop-balance .coin-balance-mark::after{content:'✦';position:absolute;display:grid;place-items:center;width:58%;height:58%;border:1px solid #fff8;border-radius:50%;color:#fff8dd;text-shadow:0 1px 2px #8d6219;font-size:13px;line-height:1}.coin-shop-balance .coin-balance-mark{width:46px;height:46px}.coin-shop-balance .coin-balance-mark::after{font-size:19px}.coin-mark-large{width:46px!important;height:46px!important}
.coin-center-section{margin:18px 0;padding:16px;border:1px solid var(--line);border-radius:19px;background:#fff}.coin-center-section>.section-title{margin-bottom:12px}.coin-center-section>.section-title small{color:var(--muted);font-size:10px}.coin-task{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:11px;margin-top:9px;padding:12px;border:1px solid var(--line);border-radius:15px;background:#fbfdfb}.coin-task-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:#f4ecd2;color:#95701e;font-size:19px}.coin-task>div{min-width:0}.coin-task>div b{font-size:12px}.coin-task p{margin:4px 0;color:var(--muted);font-size:10px;line-height:1.75}.coin-task small{font-size:9px;color:#7d8b85}.coin-task button{min-height:36px;padding:6px 10px;font-size:10px;white-space:nowrap}.coin-task-locked{opacity:.7;background:#f8f9f8}.coin-task-locked .coin-task-icon{background:#eef0ef;color:#8b9591}.coin-ledger-list{display:grid;gap:7px}.coin-ledger-entry{display:grid;grid-template-columns:57px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 11px;border:1px solid #edf0ed;border-radius:13px;background:#fff}.coin-ledger-sign{min-width:50px;text-align:center;font-size:13px;font-weight:850;font-variant-numeric:tabular-nums}.coin-ledger-sign.positive{color:#218456}.coin-ledger-sign.negative{color:#bd4a49}.coin-ledger-sign.neutral{color:#9aa39f}.coin-ledger-entry>div{display:grid;gap:3px;min-width:0}.coin-ledger-entry b{font-size:10px}.coin-ledger-entry small,.coin-ledger-unit{color:var(--muted);font-size:9px}.coin-ledger-note{padding:9px 11px;border-radius:11px;background:#f8f3e5;color:#75643d;font-size:10px;line-height:1.8}.coin-ledger-empty{margin:0;padding:15px;text-align:center;color:var(--muted);font-size:11px}.coin-to-shop{width:100%;margin-bottom:14px}.coin-shop-balance>#coin-store-open{margin-right:auto;font-size:10px}
.welcome-tour{position:relative}.tour-close{position:absolute;top:12px;left:12px;display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--muted);font-size:22px;cursor:pointer}.tour-close:focus-visible,.welcome-tour .primary:focus-visible{outline:3px solid #80bd98;outline-offset:2px}
@media(max-width:560px){.coin-center-section{padding:12px}.coin-task{grid-template-columns:34px minmax(0,1fr);gap:8px;padding:10px}.coin-task-icon{width:32px;height:32px}.coin-task>button{grid-column:2;justify-self:start}.coin-ledger-entry{grid-template-columns:50px minmax(0,1fr) auto;padding:9px 8px}.coin-shop-balance>#coin-store-open{min-height:36px;padding:6px 9px}.home-player-avatar{width:27px;height:27px;font-size:17px}}

.header-actions[hidden]{display:none!important}
.native-shell #android-download{display:none!important}
@media(max-width:560px){
  .app{padding-bottom:calc(54px + env(safe-area-inset-bottom))}
  .app:has(.screen.active .back:not([hidden])){padding-bottom:calc(96px + env(safe-area-inset-bottom))}
  .back{bottom:calc(54px + env(safe-area-inset-bottom))}
  header{height:60px}
  .auth-heading{margin:14px auto 10px}
  .auth-heading h1{font-size:24px;line-height:1.3;margin:3px 0 5px}
  .auth-heading .sub{font-size:11px;line-height:1.65}
  #profile-auth.card{padding:14px 16px;border-radius:18px}
  #profile-auth .google-consent{margin:0 0 9px;font-size:11px;line-height:1.65}
  #profile-auth .google-signin-button{min-height:42px}
  #profile-auth .auth-divider{margin:10px 0;font-size:9px}
  #profile-auth .profile-tabs{margin-bottom:8px}
  #profile-auth label{margin:8px 0 5px}
  #profile-auth input{margin-bottom:4px;padding:10px 12px}
  #profile-auth .password-field input{padding-left:68px}
  #profile-auth .primary{min-height:44px;margin-top:8px;padding:10px}
  #profile-auth .profile-note{margin-top:8px}
}

.coin-mark-mini{display:inline-grid;place-items:center;width:18px;height:18px;border:1px solid #d2a843;border-radius:50%;background:radial-gradient(circle at 28% 23%,#fff9d7 0,#f0d47c 42%,#bd8924 100%);color:#fff8d9;text-shadow:0 1px 2px #8d6219;font-size:10px;line-height:1;box-shadow:inset 0 1px 1px #fff8,0 2px 4px #78601e22}.header-shop .coin-mark-mini{width:20px;height:20px;font-size:11px}.story-coin-mini{width:16px;height:16px;font-size:9px}.coin-task-complete{border-color:#d6ebdd;background:#f6fbf7}.coin-task-complete .coin-task-icon{background:#e3f4e8;color:#218456}.coin-task-complete>button{border-color:#d6ebdd;background:#eaf6ed;color:#217149}

.public-room-type-field{grid-column:1/-1;display:grid;gap:7px}.public-room-type-field select{width:100%;min-height:48px;padding:9px 11px;border:1px solid var(--line);border-radius:13px;background:#fff;color:var(--text);font:inherit;font-size:11px}.public-room-type-field small{font-size:10px;color:var(--muted);line-height:1.7}.public-room-details span:last-child{color:#806013;font-weight:800}.team-result-row b{display:flex;flex-wrap:wrap;gap:3px}

.public-prize-note{margin:10px 0 14px;padding:11px 12px;border:1px solid #e8e1c9;border-radius:13px;background:#fbf8ef;color:#6f603c;font-size:10px;line-height:1.9}
.room-choice-group{display:grid;gap:8px;min-width:0;margin:12px 0;padding:0;border:0}.room-choice-group legend{margin:0 0 3px;padding:0;color:var(--text);font-size:11px;font-weight:800}.room-choice-card{position:relative;display:flex;align-items:center;gap:10px;min-width:0;min-height:64px;padding:10px 12px;border:1px solid #e3ebe6;border-radius:15px;background:linear-gradient(120deg,#fff,#fbfdfb);cursor:pointer;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease,transform .16s ease}.room-choice-card:hover{transform:translateY(-1px);border-color:#b9d8c8;box-shadow:0 5px 15px #173d2d0d}.room-choice-card:has(input:checked){border-color:#4d9a78;background:linear-gradient(115deg,#f1faf4,#fff);box-shadow:0 0 0 2px #dcefe3}.room-choice-card input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.room-choice-card:focus-within{outline:3px solid #5ba78544;outline-offset:2px}.room-choice-check{display:grid;place-items:center;flex:none;width:20px;height:20px;border:1px solid #d9e3dd;border-radius:7px;background:#fff;color:transparent;font-size:12px;font-weight:900}.room-choice-card:has(input:checked) .room-choice-check{border-color:#39865f;background:#39865f;color:white}.room-choice-icon{display:grid;place-items:center;flex:none;width:36px;height:36px;border:1px solid #e4ece7;border-radius:12px;background:linear-gradient(145deg,#f3f8f5,#fff);color:#367a5c;font-size:19px}.room-choice-copy{display:grid;gap:3px;min-width:0}.room-choice-copy b{font-size:11px;line-height:1.4}.room-choice-copy small{color:var(--muted);font-size:9px;line-height:1.6}.private-room-choices{margin:0 0 12px}.private-room-choices legend{margin-bottom:6px}.public-room-choices{margin:14px 0}.home-game-card #create:disabled,.public-create-card #create-public:disabled{opacity:.52;cursor:not-allowed}.public-room-choices .room-choice-card{min-height:60px}
@media(max-width:390px){.room-choice-card{gap:8px;padding:9px}.room-choice-copy small{font-size:8px}.room-choice-icon{width:32px;height:32px}}
.room-choice-help{margin:-2px 2px 3px;color:var(--muted);font-size:10px;line-height:1.8}.private-room-type-wait,.private-room-type-summary{margin:9px 0;padding:10px 12px;border:1px solid #e2ece6;border-radius:13px;background:#f6faf7;color:#52675e;font-size:10px;line-height:1.8}.private-room-type-summary{border-color:#d6e9de;background:linear-gradient(120deg,#f2faf5,#fff);color:#226b4c;font-weight:750}
#private-room-type-choices[hidden],#private-room-type-wait[hidden],#private-room-type-summary[hidden]{display:none!important}
.coin-mark-mini,.coin-balance-mark{display:block;object-fit:contain;background:none!important;border:0!important;box-shadow:none!important;color:transparent;font-size:0;text-shadow:none}
.coin-mark-mini{filter:drop-shadow(0 1px 1px #80601340)}

.daily-challenge-warning{margin:12px 0;padding:11px 13px;border:1px solid #f0d8a9;border-radius:13px;background:#fff9e9;color:#795d20;font-size:11px;font-weight:750;line-height:1.9}.daily-question-gate{padding:15px;border:1px solid #dcece2;border-radius:15px;background:#f6fbf7;text-align:center}.daily-question-gate p{margin:0 0 12px;color:var(--muted);font-size:11px;line-height:1.8}.daily-question-gate .primary{width:100%;min-height:45px}.daily-question-gate[hidden],.daily-question-timer[hidden]{display:none!important}.daily-question-timer{display:flex;align-items:center;justify-content:center;gap:7px;width:max-content;margin:14px auto 0;padding:6px 12px;border:1px solid #f1d7bd;border-radius:999px;background:#fff7ef;color:#80592d;font-size:10px}.daily-question-timer b{display:grid;place-items:center;min-width:27px;height:27px;border-radius:50%;background:#f4dfca;color:#8b4c24;font-size:14px;font-variant-numeric:tabular-nums}.coin-wallet-home{appearance:none;-webkit-appearance:none;font:inherit;cursor:pointer;transition:transform .14s,box-shadow .14s}.coin-wallet-home:active{transform:scale(.985)}.coin-wallet-home:focus-visible{outline:3px solid #80bc9d;outline-offset:3px}.coin-wallet-home[aria-busy=true]{opacity:.7;pointer-events:none}

.room-restoring-card{width:min(100%,430px);margin:18vh auto 0;padding:28px 22px;border:1px solid #dcebe2;border-radius:22px;background:#fff;text-align:center;box-shadow:var(--shadow)}.room-restoring-mark{display:grid;place-items:center;width:54px;height:54px;margin:0 auto 12px;border-radius:18px;background:#e8f5ed;color:#17846f;font-size:29px;animation:room-restore-spin 1.8s linear infinite}.room-restoring-card h1{margin:0;font-size:19px}.room-restoring-card p{margin:10px 0 0;color:var(--muted);font-size:12px;line-height:1.9}@keyframes room-restore-spin{to{transform:rotate(360deg)}}

.daily-answer-prompt{margin:0 0 9px!important;padding:8px 10px;border-radius:10px;background:#fff;color:#476356;font-size:12px;font-weight:750;line-height:1.8}.daily-challenge-warning{border-color:#f0d8a9}

/* Current game controls and compact coin history */
#game.active{padding-bottom:calc(72px + env(safe-area-inset-bottom))}
.game-exit-button{position:fixed;z-index:8;left:50%;bottom:calc(12px + env(safe-area-inset-bottom));transform:translateX(-50%);min-width:158px;min-height:44px;padding:9px 18px;border:1px solid #f0d5d2;border-radius:15px;background:linear-gradient(140deg,#fff7f5,#ffebe8);color:#a63f42;font-size:12px;font-weight:800;box-shadow:0 8px 22px #7d34321f;transition:transform .16s,box-shadow .16s}
.game-exit-button:hover{transform:translateX(-50%) translateY(-2px);box-shadow:0 11px 25px #7d34322b}
.game-exit-button:active{transform:translateX(-50%) scale(.98)}
#game.active~#toast{bottom:calc(66px + env(safe-area-inset-bottom))}
.turn-banner[hidden]{display:none!important}
.coin-ledger-open{width:100%;min-height:42px;margin-top:10px;font-size:11px}
.coin-history-pagination{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;margin:16px 0 24px;padding:10px;border:1px solid var(--line);border-radius:15px;background:#fff}
.coin-history-pagination button{min-height:40px;padding:5px 10px;font-size:10px}
.coin-history-pagination button:last-child{justify-self:end}
.coin-history-pagination span{color:var(--muted);font-size:10px;white-space:nowrap;font-variant-numeric:tabular-nums}
.coin-history-pagination button:disabled{opacity:.45;cursor:default}
.settings-nav #settings-open-guide{margin-top:auto;border:1px solid #d2e7dd;background:linear-gradient(120deg,#eaf6ef,#fff);color:var(--accent)}
@media(max-width:560px){.settings-nav #settings-open-guide{margin-top:0}}

/* Cleaner public-room creation, team assignment and challenge rewards */
#public-create-card[hidden],#players[hidden],#team-groups[hidden]{display:none!important}
.public-create-launcher{display:flex;align-items:center;gap:11px;width:100%;margin:5px 0 14px;padding:10px 12px;border:1px solid #dcebe5;border-radius:15px;background:linear-gradient(130deg,#fff,#f5faf7);text-align:right;color:var(--text);box-shadow:0 5px 15px #163b3010}
.public-create-launcher>span:nth-child(2){display:grid;flex:1;gap:2px}.public-create-launcher b{font-size:12px}.public-create-launcher small{color:var(--muted);font-size:9px}.public-create-launcher .public-action-icon{width:34px;height:34px;font-size:20px}.public-create-launcher .public-action-arrow{font-size:16px}
.public-stage-stepper{width:100%;min-height:46px;padding:3px;border:1px solid var(--line);border-radius:12px;background:#fff}.public-stage-stepper input{min-width:0;min-height:38px;text-align:center;font-weight:800;cursor:default}.public-stage-stepper button{width:38px;height:38px;border-radius:9px;background:#edf6f1;color:var(--accent);font-size:22px}.public-stage-stepper button:disabled{opacity:.4;cursor:default}
.team-groups{margin:0 0 12px}.team-group-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.team-group-card{min-width:0;padding:10px;border:1px solid color-mix(in srgb,var(--team-color) 25%,#e9eeeb);border-radius:15px;background:linear-gradient(145deg,color-mix(in srgb,var(--team-color) 5%,white),#fff);transition:border-color .15s,box-shadow .15s}.team-group-card.is-mine{border-color:color-mix(in srgb,var(--team-color) 60%,white);box-shadow:0 0 0 2px color-mix(in srgb,var(--team-color) 11%,transparent)}.team-group-head{display:flex;align-items:center;gap:8px;min-width:0;margin-bottom:9px}.team-group-mark{width:10px;height:10px;flex:none;border-radius:50%;background:var(--team-color);box-shadow:0 0 0 4px color-mix(in srgb,var(--team-color) 12%,white)}.team-group-head>div{display:grid;gap:2px;min-width:0;flex:1}.team-group-head b{font-size:11px}.team-group-head small{color:var(--muted);font-size:9px}.team-group-head strong{padding:4px 7px;border-radius:20px;background:color-mix(in srgb,var(--team-color) 12%,white);color:var(--team-color);font-size:8px;white-space:nowrap}.team-group-members{display:grid;gap:5px}.team-member,.team-member-slot{display:flex;align-items:center;gap:6px;min-width:0;min-height:30px;padding:4px 6px;border-radius:9px;background:#fff;color:#4c5c56}.team-member{border:1px solid #edf0ee}.team-member.is-self{border-color:color-mix(in srgb,var(--team-color) 27%,white);background:color-mix(in srgb,var(--team-color) 6%,white)}.team-member i,.team-member-slot i{display:grid;place-items:center;width:21px;height:21px;flex:none;border-radius:7px;background:#f1f5f2;font-style:normal;font-size:13px}.team-member b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px}.team-member small{margin-right:auto;color:var(--team-color);font-size:8px;font-weight:800}.team-member em{display:grid;place-items:center;margin-right:auto;width:16px;height:16px;border-radius:50%;background:#e7f5eb;color:#17814f;font-size:10px;font-style:normal}.team-member-slot{border:1px dashed #dfe7e2;background:#ffffffa8;color:#98a49f}.team-member-slot span{font-size:8px}.game-team-groups{gap:6px}.game-team-groups .team-group-card{padding:8px}.game-team-groups .team-group-head{margin-bottom:5px}.game-team-groups .team-member,.game-team-groups .team-member-slot{min-height:25px;padding:2px 5px}
.weekly-league-prizes{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:10px 0 12px}.weekly-league-prizes>span{display:grid;justify-items:center;gap:2px;padding:6px 2px;border:1px solid #efe8d5;border-radius:10px;background:linear-gradient(145deg,#fffdf7,#fff);text-align:center}.weekly-league-prizes i{color:#92712e;font-size:8px;font-style:normal}.weekly-league-prizes b{color:#937329;font-size:10px;font-variant-numeric:tabular-nums}.weekly-league-prizes small{color:var(--muted);font-size:7px}.weekly-league-row{grid-template-rows:auto auto}.weekly-league-place,.weekly-league-avatar{grid-row:1/3}.weekly-league-row>b{grid-column:3;grid-row:1/3}.weekly-league-row>strong{grid-column:4;grid-row:1}.weekly-league-reward{grid-column:4;grid-row:2;text-align:right;color:#9a7a37;font-size:8px;white-space:nowrap}
@media(max-width:380px){.team-group-grid{gap:6px}.team-group-card{padding:8px}.team-group-head{gap:6px}.team-group-head b{font-size:10px}.team-member b{font-size:8px}.weekly-league-prizes{gap:3px}.weekly-league-prizes b{font-size:9px}}

.team-member small.team-member-offline{color:#a05c48;font-size:7px}
.auth-boot{display:none;min-height:calc(70dvh - 70px);align-content:center;justify-items:center;gap:9px;text-align:center;color:var(--text)}
.auth-boot b{font-size:15px}.auth-boot small{color:var(--muted);font-size:11px}
.auth-boot-mark{width:30px;height:30px;border:3px solid #dcebe3;border-top-color:var(--accent);border-radius:50%;animation:auth-boot-spin .8s linear infinite}
html.auth-pending .screen{display:none!important}html.auth-pending #auth-boot{display:grid}
@keyframes auth-boot-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.auth-boot-mark{animation:none;border-top-color:#dcebe3;border-right-color:var(--accent)}}

/* Challenge details stay collapsed until requested; prize amounts are typography, not tiles. */
.weekly-league-prizes[hidden],.daily-review-list[hidden]{display:none!important}
.challenge-disclosure{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:42px;margin:9px 0 0;padding:9px 12px;border:1px solid #e4ece7;border-radius:12px;background:#f8fbf9;color:#336c60;text-align:right;font-size:11px;font-weight:700}
.challenge-disclosure span{font-size:17px;line-height:1;color:#76958a;transition:transform .18s ease}
.challenge-disclosure[aria-expanded="true"] span{transform:rotate(180deg)}
.daily-review-list{display:grid;gap:0;margin-top:8px;border-top:1px solid #edf1ee;text-align:right}
.daily-review-item{display:grid;gap:5px;padding:12px 2px;border-bottom:1px solid #edf1ee}
.daily-review-head{display:flex;align-items:center;gap:8px;min-width:0}
.daily-review-head>span{display:grid;place-items:center;width:23px;height:23px;flex:none;border-radius:8px;background:#edf5f1;color:#317366;font-size:10px;font-weight:800}
.daily-review-head>b{min-width:0;flex:1;font-size:11px;line-height:1.7}
.daily-review-head>small{font-size:9px;color:#8b9891;white-space:nowrap}
.daily-review-head>small.review-correct{color:#21815c}.daily-review-head>small.review-missed{color:#a16f43}
.daily-review-item>strong{font-size:13px;color:#246b60;text-align:left}
.daily-review-item>p{margin:0;color:#34443e;font-size:12px;line-height:1.7;text-align:left}
.daily-review-item>small{color:var(--muted);font-size:10px;line-height:1.8}
.daily-review-empty{margin:10px 0;color:var(--muted);font-size:11px}
.weekly-prize-disclosure{margin:7px 0 10px}
.weekly-league-prizes{grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;margin:3px 0 13px;padding:6px 0;border-block:1px solid #edf0e8}
.weekly-league-prizes>span{display:grid;justify-items:center;gap:2px;padding:4px 1px;border:0;border-radius:0;background:transparent;text-align:center}
.weekly-league-prizes i{color:#92712e;font-size:8px;font-style:normal}
.weekly-league-prizes b{color:#826522;font-size:10px;font-variant-numeric:tabular-nums}
.weekly-league-prizes small{color:var(--muted);font-size:7px}

/* Keep weekly challenge scores readable without surrounding score cards. */
.weekly-league-row{padding:9px 0;border:0;border-bottom:1px solid #edf0ef;border-radius:0;background:transparent}
.weekly-league-row.is-me{border-color:#a8d3b8;background:transparent}

/* Keep touch feedback inside each control in WebView and mobile browsers. */
button,[role="button"],a[href],summary{-webkit-tap-highlight-color:transparent;transition:box-shadow .14s ease,filter .14s ease}
button,[role="button"],summary{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:manipulation}
button:active:not(:disabled),[role="button"]:active,a[href]:active,summary:active{outline:0;filter:brightness(.98);box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--accent) 28%,transparent),inset 0 1px 5px #10282420}
@media(prefers-reduced-motion:reduce){.challenge-disclosure span{transition:none}}
.study-book-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;margin:3px 0 8px}
.study-search{display:flex;align-items:center;gap:7px;min-width:0;min-height:42px;padding:0 10px;border:1px solid var(--line);border-radius:12px;background:#fff;color:#7b8a82}
.study-search>span{font-size:20px;line-height:1}.study-search input{width:100%;min-width:0;min-height:40px;margin:0;padding:5px 0;border:0;background:transparent;box-shadow:none;font:inherit;font-size:11px;color:var(--text);outline:0}
.study-search input:focus{border:0;box-shadow:none}
.study-sort{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:9px;white-space:nowrap}
.study-sort select{width:104px;min-height:42px;padding:0 8px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--text);font:inherit;font-size:10px}
@media(max-width:360px){.study-book-tools{grid-template-columns:minmax(0,1fr) 112px;gap:6px}.study-sort{gap:4px;font-size:8px}.study-sort select{width:78px;padding:0 4px;font-size:9px}.study-search{padding:0 7px}.study-search input{font-size:10px}}
button{position:relative;isolation:isolate;overflow:hidden;-webkit-tap-highlight-color:transparent;touch-action:manipulation}.button-ripple{position:absolute;z-index:0;display:block;border-radius:50%;background:currentColor;opacity:.26;pointer-events:none;transform:translate(-50%,-50%) scale(.08);animation:button-ripple-expand .48s cubic-bezier(.18,.72,.25,1) forwards}@keyframes button-ripple-expand{to{opacity:0;transform:translate(-50%,-50%) scale(1)}}button>:not(.button-ripple){position:relative;z-index:1}@media(prefers-reduced-motion:reduce){.button-ripple{animation-duration:.01ms}}
/* Override Chromium WebView's oversized blue touch flash while preserving keyboard focus. */
button,[role="button"],a[href],summary{-webkit-tap-highlight-color:rgba(0,0,0,0)!important}
button:focus:not(:focus-visible),[role="button"]:focus:not(:focus-visible){outline:none}
.google-signin-button:active{background:#f3f8f5}

/* Illustrated story shelf and focused reader audio dock */
.illustrated-shelf{margin:14px 0 22px;padding:16px 13px 14px;border:1px solid #deebe4;border-radius:21px;background:linear-gradient(150deg,#f0f8f3 0%,#fff 68%);box-shadow:0 10px 25px #183c3309;overflow:hidden}.illustrated-shelf-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 2px 12px}.illustrated-shelf-heading h2{margin:0;color:#173e38;font-size:18px;line-height:1.5}.illustrated-shelf-heading p:not(.eyebrow){margin:3px 0 0;color:var(--muted);font-size:10px;line-height:1.7}.illustrated-shelf-mark{display:grid;place-items:center;width:42px;height:42px;flex:none;border:1px solid #d6e9df;border-radius:14px;background:#fff;color:#17816e;font-size:21px}.illustrated-stories{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0;overflow:visible;padding:0;scroll-snap-type:none;overscroll-behavior-inline:auto;scrollbar-width:thin}.illustrated-stories>.course-level-group{width:100%;min-width:0;flex:none;overflow:hidden}.illustrated-stories .course-story-rail{display:flex;flex-wrap:nowrap;align-items:stretch;width:100%;min-width:0;overflow-x:auto;overflow-y:hidden}.illustrated-story-card.is-purchasable{border-color:#d8bb65;box-shadow:0 4px 13px #8d6b1b20}.illustrated-story-card.is-purchasable .illustrated-story-copy>span{color:#8b6815}.illustrated-story-card{display:grid;grid-template-rows:auto 1fr;flex:0 0 166px;min-width:0;padding:0;text-align:right;overflow:hidden;border:1px solid #e1e9e4;border-radius:16px;background:#fff;box-shadow:0 6px 16px #173d310d;scroll-snap-align:start;transition:transform .18s,border-color .18s,box-shadow .18s}.illustrated-story-card:hover{transform:translateY(-2px);border-color:#a5cdbb;box-shadow:0 10px 22px #173d3116}.illustrated-story-card:active{transform:scale(.985)}.illustrated-story-card.is-locked{opacity:.64;filter:saturate(.72)}.illustrated-cover{position:relative;display:block;height:112px;overflow:hidden;background:#e9f0e8}.illustrated-cover img{display:block;width:100%;height:100%;object-fit:cover}.illustrated-level,.illustrated-duration{position:absolute;top:8px;display:grid;place-items:center;min-height:24px;padding:3px 8px;border-radius:8px;background:#fffdf2eF;color:#264b43;font-size:9px;font-weight:850;box-shadow:0 2px 8px #17212b20}.illustrated-level{right:8px;direction:ltr}.illustrated-duration{left:8px;color:#52645d}.illustrated-story-copy{display:grid;gap:3px;padding:9px 10px 10px}.illustrated-story-copy b{font-size:11px;line-height:1.55}.illustrated-story-copy small{font:10px/1.45 Arial,sans-serif;color:#78867f;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.illustrated-story-copy>span{margin-top:3px;color:#147564;font-size:9px;font-weight:750}.story-reader-art,.story-inline-art{margin:5px 0 15px;overflow:hidden;border:1px solid #e4e7db;border-radius:18px;background:#f1efe5}.story-reader-art img,.story-inline-art img{display:block;width:100%;max-height:300px;object-fit:cover}.story-reader-art figcaption,.story-inline-art figcaption{padding:8px 11px;color:#69776e;font-size:10px;line-height:1.6}.story-inline-art{margin:8px 0 9px;border-radius:15px}.story-inline-art img{max-height:260px}.story-reading-controls{display:flex;gap:8px;margin:2px 0 12px}.story-reading-controls button{flex:1;min-height:40px;padding:7px 9px;font-size:10px}.story-audio-dock{position:fixed;z-index:20;left:50%;bottom:calc(100px + env(safe-area-inset-bottom));transform:translateX(-50%);display:grid;gap:8px;width:min(calc(100vw - 24px),500px);padding:11px 13px 12px;border:1px solid #dce8e2;border-radius:19px;background:rgba(255,255,255,.97);box-shadow:0 12px 35px #173b3026;backdrop-filter:blur(16px)}.story-audio-dock[hidden]{display:none}.story-audio-info{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#75837c;font-size:10px}.story-audio-info #story-audio-status{color:#176b5e;font-weight:750}.story-audio-dock input[type=range]{width:100%;height:4px;margin:0;padding:0;border:0;border-radius:99px;background:linear-gradient(90deg,#158c79,#62bea0);accent-color:#138472;box-shadow:none}.story-audio-controls{display:flex;align-items:center;justify-content:center;gap:9px;min-height:39px}.story-audio-controls button{display:grid;place-items:center;width:34px;height:34px;flex:none;border:1px solid #e3eae5;border-radius:50%;background:#f6f9f7;color:#31564c;font:700 19px/1 Arial,sans-serif}.story-audio-controls button:disabled{opacity:.48}.story-audio-controls .story-audio-play{width:42px;height:42px;border:0;background:#117c6b;color:#fff;font-size:17px;box-shadow:0 5px 12px #117c6b32}.story-audio-controls #story-pause{width:auto;min-width:48px;padding:0 10px;border-radius:12px;font:700 10px/1 Vazirmatn,sans-serif}.story-speed-control{display:flex;align-items:center;gap:5px;margin:0 0 0 auto;color:#748279;font-size:9px;white-space:nowrap}.story-speed-control select{min-height:32px;max-width:72px;padding:0 6px;border:1px solid #e2eae5;border-radius:9px;background:#f7faf8;color:#35574e;font:700 10px Vazirmatn,sans-serif}.story-sentence.is-speaking{border-color:#77b9a2;background:#f2faf5;box-shadow:0 0 0 2px #8ccbb21c,0 7px 17px #173d310b}.story-sentence.is-speaking .story-sentence-head>span{color:#0c806e;font-weight:800}.screen#story-reader.active{padding-bottom:230px}
@media(max-width:380px){.illustrated-shelf{padding:13px 10px}.illustrated-story-card{flex-basis:152px}.illustrated-cover{height:104px}.story-audio-dock{bottom:calc(94px + env(safe-area-inset-bottom));padding:9px 10px 10px}.story-audio-controls{gap:7px}.story-audio-controls button{width:32px;height:32px}.story-audio-controls .story-audio-play{width:40px;height:40px}.story-reading-controls button{font-size:9px;padding-inline:6px}}
@media(min-width:601px){.story-audio-dock{bottom:22px}.screen#story-reader.active{padding-bottom:150px}}
@media(prefers-reduced-motion:reduce){.illustrated-story-card{transition:none}}
.story-audio-controls button[hidden]{display:none}
@media(min-width:601px){.story-audio-dock{bottom:52px}}

/* App appearance preferences */
html[data-app-theme="ocean"]{--bg:#edf5fa;--surface:#fff;--text:#1d2e3b;--muted:#697b88;--line:#dce8ef;--accent:#2874a8;--accent-soft:#e3f1f8;--shadow:0 14px 38px rgba(33,77,105,.08)}
html[data-app-theme="lavender"]{--bg:#f3f0f9;--surface:#fff;--text:#2b2638;--muted:#777186;--line:#e6e0ef;--accent:#7560a7;--accent-soft:#eee9f8;--shadow:0 14px 38px rgba(77,57,111,.08)}
html[data-app-theme="paper"]{--bg:#f5f0e5;--surface:#fffdf8;--text:#352e24;--muted:#827768;--line:#e8decc;--accent:#8d6841;--accent-soft:#f3e9d8;--shadow:0 14px 38px rgba(88,67,37,.08)}
html[data-app-theme="garden"] body{background:radial-gradient(ellipse at 12% 2%,#dcefe8 0,transparent 35%),radial-gradient(ellipse at 92% 22%,#f5ead3 0,transparent 28%),var(--bg)}
html[data-app-theme="ocean"] body{background:radial-gradient(ellipse at 10% 3%,#d8ebf4 0,transparent 38%),radial-gradient(ellipse at 94% 26%,#ecf1fb 0,transparent 30%),var(--bg)}
html[data-app-theme="lavender"] body{background:radial-gradient(ellipse at 10% 3%,#e8e0f4 0,transparent 38%),radial-gradient(ellipse at 94% 26%,#f6eaf2 0,transparent 30%),var(--bg)}
html[data-app-theme="paper"] body{background:radial-gradient(ellipse at 12% 2%,#eee1c8 0,transparent 35%),radial-gradient(ellipse at 92% 22%,#f7ead4 0,transparent 28%),var(--bg)}
html[data-app-font="system"] body,html[data-app-font="system"] button,html[data-app-font="system"] input,html[data-app-font="system"] select{font-family:Tahoma,Arial,sans-serif}
.settings-panel[data-settings-panel="appearance"]{display:grid;gap:15px}.appearance-block,.appearance-audio{padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}.appearance-block>b{display:block;margin-bottom:11px;font-size:12px}.appearance-theme-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.appearance-theme-grid button{display:grid;justify-items:center;gap:6px;min-width:0;padding:8px 4px;border:1px solid transparent;border-radius:13px;background:transparent;color:var(--muted);font-size:9px}.appearance-theme-grid button[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent);font-weight:800}.theme-swatch{display:block;width:34px;height:34px;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #d7dfda,0 3px 9px #17212b16}.theme-garden{background:linear-gradient(135deg,#e4f4ef 50%,#087c70 50%)}.theme-ocean{background:linear-gradient(135deg,#e3f1f8 50%,#2874a8 50%)}.theme-lavender{background:linear-gradient(135deg,#eee9f8 50%,#7560a7 50%)}.theme-paper{background:linear-gradient(135deg,#f3e9d8 50%,#8d6841 50%)}.appearance-row{display:grid;gap:7px}.appearance-row label{margin:0;color:var(--text);font-size:11px}.appearance-row select{width:100%;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);font:inherit;font-size:12px}.appearance-audio{display:grid;gap:11px}.appearance-audio-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0}.appearance-audio-toggle span{display:grid;gap:3px}.appearance-audio-toggle b{font-size:12px}.appearance-audio-toggle small,.appearance-audio-status{color:var(--muted);font-size:9px;line-height:1.7}.appearance-audio-toggle input{width:22px;height:22px;accent-color:var(--accent);flex:none}.appearance-volume{display:grid;grid-template-columns:auto minmax(80px,1fr) auto;align-items:center;gap:10px;margin:0;color:var(--muted);font-size:10px}.appearance-volume input{padding:0;accent-color:var(--accent)}.appearance-volume b{color:var(--accent);white-space:nowrap}.appearance-audio-status{margin:0;padding-top:8px;border-top:1px solid var(--line)}

/* Compact horizontal shelves for the non-illustrated course stories */
.curriculum-shelf{padding-bottom:10px}.stories-list{display:grid;gap:10px}.course-level-group{min-width:0;padding:10px 0 2px;border-top:1px solid #e7eee9}.course-level-group:first-child{padding-top:0;border-top:0}.course-level-heading{display:flex;align-items:center;gap:9px;margin:0 2px 9px}.course-level-heading>div{display:grid;gap:1px;flex:1;min-width:0}.course-level-heading>div>b{font-size:11px}.course-level-heading>div>small{font-size:9px;color:var(--muted)}.course-level-progress{display:block;width:44px;height:5px;overflow:hidden;border-radius:99px;background:#e9efeb}.course-level-progress i{display:block;height:100%;border-radius:inherit;background:var(--accent)}.course-story-rail{display:flex;gap:10px;overflow-x:auto;padding:0 1px 9px;scroll-snap-type:x mandatory;overscroll-behavior-inline:contain;scrollbar-width:thin}.curriculum-story-card{display:grid;grid-template-rows:92px 1fr;flex:0 0 158px;min-width:0;padding:0;text-align:right;overflow:hidden;border:1px solid #e1e9e4;border-radius:16px;background:#fff;box-shadow:0 6px 16px #173d310d;scroll-snap-align:start;transition:transform .18s,border-color .18s,box-shadow .18s}.curriculum-story-card:hover{transform:translateY(-2px);border-color:#a5cdbb;box-shadow:0 10px 22px #173d3116}.curriculum-story-card:active{transform:scale(.985)}.curriculum-story-card.is-locked{opacity:.62;filter:saturate(.72)}.curriculum-story-card.is-complete{border-color:#9acbb5}.curriculum-story-cover{position:relative;display:grid;place-items:center;overflow:hidden;background:linear-gradient(145deg,#e8f3ea,#d7e7d8);color:#28584d}.curriculum-story-card[data-level="2"] .curriculum-story-cover{background:linear-gradient(145deg,#e3f2ed,#d1e7df);color:#286657}.curriculum-story-card[data-level="3"] .curriculum-story-cover{background:linear-gradient(145deg,#e5eef8,#d5e1f2);color:#365b88}.curriculum-story-card[data-level="4"] .curriculum-story-cover{background:linear-gradient(145deg,#efe9f7,#e2d9ef);color:#684f8f}.curriculum-story-card[data-level="5"] .curriculum-story-cover{background:linear-gradient(145deg,#f5e9e7,#ecd8d0);color:#8a5147}.curriculum-story-cover:after{position:absolute;inset:0;content:"";opacity:.23;background:radial-gradient(circle at 20% 20%,#fff 0 2px,transparent 3px),radial-gradient(circle at 80% 72%,#fff 0 2px,transparent 3px);background-size:27px 27px}.curriculum-story-cover-level,.curriculum-story-cover-step{position:absolute;z-index:1;top:8px;padding:4px 7px;border-radius:7px;background:#ffffffd9;color:#37584f;font-size:8px;font-weight:800}.curriculum-story-cover-level{right:8px;direction:ltr}.curriculum-story-cover-step{left:8px}.curriculum-story-cover i{position:relative;z-index:1;display:grid;place-items:center;width:42px;height:42px;border:1px solid #ffffffa8;border-radius:14px;background:#ffffff68;font-style:normal;font-size:22px}.curriculum-story-copy{display:grid;align-content:start;gap:3px;min-width:0;padding:8px 9px 9px}.curriculum-story-copy .story-level{font-size:8px}.curriculum-story-copy>b{font-size:10px;line-height:1.5}.curriculum-story-copy>small{font:9px/1.4 Arial,sans-serif;color:#78867f;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.curriculum-story-status{margin-top:3px;color:#147564;font-size:8px;font-weight:750;line-height:1.5}.curriculum-story-card.is-locked .curriculum-story-status{color:#7d8581}.curriculum-story-card.is-complete .curriculum-story-cover i{border-radius:50%;background:#e0f2e7;color:#26784f}

/* Personal reading settings */
#story-reader.screen.active{padding:0 10px 230px;border-radius:20px;background:var(--reader-page,#fff);color:var(--reader-text,#172b31)}#story-reader[data-reader-theme="light"]{--reader-page:#fff;--reader-card:#fff;--reader-text:#202a2c;--reader-muted:#6e7a79;--reader-line:#e2ebe6;--reader-ink:#173f39}#story-reader[data-reader-theme="mint"]{--reader-page:#edf6f1;--reader-card:#f9fcfa;--reader-text:#1b3730;--reader-muted:#62776e;--reader-line:#d6e7dd;--reader-ink:#155c4e}#story-reader[data-reader-theme="paper"]{--reader-page:#f3ead7;--reader-card:#fbf5e8;--reader-text:#392f22;--reader-muted:#81725c;--reader-line:#e3d5bc;--reader-ink:#51402d}#story-reader[data-reader-theme="night"]{--reader-page:#171b20;--reader-card:#222a31;--reader-text:#edf0ed;--reader-muted:#aab3af;--reader-line:#3a454c;--reader-ink:#e4efe9}#story-reader[data-reader-theme="night"] .story-reader-head p,#story-reader[data-reader-theme="night"] .story-gloss-hint,#story-reader[data-reader-theme="night"] .story-reader-art figcaption,#story-reader[data-reader-theme="night"] .story-inline-art figcaption{color:var(--reader-muted)}#story-reader[data-reader-theme="night"] .story-reader-mark{background:#3d3523;color:#f1d899}#story-reader[data-reader-theme="night"] .story-reader-art,#story-reader[data-reader-theme="night"] .story-inline-art{background:#242a2d;border-color:var(--reader-line)}#story-reader[data-reader-theme="night"] .story-sentence,#story-reader[data-reader-theme="night"] .story-practice,#story-reader[data-reader-theme="night"] .story-result{background:var(--reader-card);border-color:var(--reader-line);color:var(--reader-text)}#story-reader[data-reader-theme="night"] .story-en,#story-reader[data-reader-theme="night"] .story-sentence-head{color:var(--reader-text)}#story-reader[data-reader-theme="night"] .story-fa{border-color:var(--reader-line);color:#c3ccc6}#story-reader[data-reader-theme="night"] .story-word-section{background:#202a2b;border-color:var(--reader-line)}#story-reader[data-reader-theme="night"] .story-word{background:#293238;border-color:var(--reader-line);color:#b8e5d2}#story-reader[data-reader-theme="night"] .story-word small{color:#c5cfca}#story-reader[data-reader-theme="night"] .story-practice h2,#story-reader[data-reader-theme="night"] .story-result h2{color:var(--reader-text)}#story-reader[data-reader-theme="night"] .practice-option{background:#293238;border-color:#404d54;color:#edf0ed}#story-reader[data-reader-theme="night"] .practice-option.selected{background:#263c39;border-color:#438a79}#story-reader[data-reader-theme="night"] .practice-feedback{background:#293a35;color:#dcece4}#story-reader .story-en{font-family:var(--reader-english-font,Arial,sans-serif);font-size:var(--reader-font-size,17px);line-height:var(--reader-line-height,1.8);color:var(--reader-ink,#173f39)}#story-reader .story-fa{font-size:calc(var(--reader-font-size,17px)*.72);line-height:1.9;color:var(--reader-muted)}#story-reader .story-reading{width:100%;margin-inline:auto}#story-reader[data-reader-width="narrow"] .story-reading{max-width:37ch}#story-reader[data-reader-width="normal"] .story-reading{max-width:58ch}#story-reader[data-reader-width="wide"] .story-reading{max-width:100%}#story-reader[data-reader-width="narrow"] .story-reader-head,#story-reader[data-reader-width="narrow"] .story-reading-controls,#story-reader[data-reader-width="narrow"] .story-gloss-hint,#story-reader[data-reader-width="narrow"] .story-word-section,#story-reader[data-reader-width="narrow"] .story-grammar,#story-reader[data-reader-width="narrow"] .story-practice-start{max-width:37ch;margin-inline:auto}#story-reader[data-reader-font="serif"]{--reader-english-font:Georgia,"Times New Roman",serif}#story-reader[data-reader-font="system"]{--reader-english-font:system-ui,Roboto,Arial,sans-serif}#story-reader[data-reader-font="rounded"]{--reader-english-font:Vazirmatn,Arial,sans-serif}
.reader-settings-dialog{position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,540px);max-width:100%;max-height:min(88dvh,760px);padding:0;border:0;border-radius:26px 26px 0 0;background:#f4f5f8;color:#252a32;box-shadow:0 -14px 55px #1019233b;overflow:auto}.reader-settings-dialog::backdrop{background:#111820a8;backdrop-filter:blur(3px)}.reader-settings-sheet{padding:18px 21px calc(22px + env(safe-area-inset-bottom))}.reader-settings-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.reader-settings-head h2{margin:0;font-size:19px}.reader-settings-head button{width:36px;height:36px;border-radius:12px;background:#e8ecef;color:#4b5860;font-size:22px}.reader-setting-row{display:flex;align-items:center;justify-content:space-between;gap:13px;min-height:61px;padding:10px 0;border-top:1px solid #e2e5e9}.reader-setting-label{display:grid;gap:2px;color:#333b42;font-size:12px;font-weight:750;white-space:nowrap}.reader-setting-label small{color:#7c858b;font-size:9px;font-weight:450}.reader-theme-options{display:flex;align-items:center;gap:10px}.reader-theme-choice{display:grid;place-items:center;gap:3px;padding:2px;border:0;background:transparent;color:#6a747d;font-size:8px}.reader-theme-choice i{display:block;width:35px;height:35px;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #d5d9df}.reader-theme-choice[aria-pressed="true"] i{box-shadow:0 0 0 2px #3085c5}.reader-theme-choice[data-reader-theme="light"] i{background:#fff}.reader-theme-choice[data-reader-theme="night"] i{background:#202329}.reader-theme-choice[data-reader-theme="paper"] i{background:#f3ead7}.reader-theme-choice[data-reader-theme="mint"] i{background:#dcefe4}.reader-setting-row select{max-width:160px;min-height:40px;padding:5px 9px;border:1px solid #d7dde2;border-radius:10px;background:#fff;color:#39434b;font:inherit;font-size:11px}.reader-font-size-control{display:flex;align-items:center;gap:12px;direction:ltr}.reader-font-size-control button{width:36px;height:36px;border:1px solid #d9e0e5;border-radius:11px;background:#fff;color:#34424c;font-size:20px}.reader-font-size-control b{min-width:50px;text-align:center;font:600 13px Arial,sans-serif}.reader-settings-reset{width:100%;min-height:43px;margin:10px 0 0;border-radius:12px;background:#e8ecef;color:#59656e;font-size:11px;font-weight:750}
@media(max-width:380px){.appearance-theme-grid{gap:3px}.appearance-theme-grid button{font-size:8px}.curriculum-shelf{padding-inline:10px}.curriculum-story-card{flex-basis:152px;grid-template-rows:auto 1fr}.curriculum-story-cover{height:104px}.course-story-rail{gap:8px}.reader-settings-sheet{padding-inline:16px}.reader-theme-options{gap:6px}.reader-theme-choice i{width:32px;height:32px}.reader-setting-row select{max-width:142px}}

/* Keep text stories in the same compact, horizontally browsable card system as illustrated stories. */
.curriculum-shelf .stories-list{display:block;min-width:0}.curriculum-shelf .course-story-rail{margin:0}.curriculum-story-card{grid-template-rows:112px 1fr;flex-basis:166px}.curriculum-story-cover{height:112px}.curriculum-story-copy{gap:3px;padding:9px 10px 10px}.curriculum-story-copy>b{font-size:11px;line-height:1.55}.curriculum-story-copy>small{font-size:10px;line-height:1.45}.curriculum-story-status{font-size:9px;line-height:1.5}.course-story-empty{margin:0;padding:18px 12px;border:1px dashed #d5e3db;border-radius:14px;color:var(--muted);font-size:12px;text-align:center}
@media(max-width:380px){.curriculum-story-card{flex-basis:152px;grid-template-rows:104px 1fr}.curriculum-story-cover{height:104px}}

/* Personalization additions: a warm rose palette, book type, and compact reader controls. */
html[data-app-theme="rose"]{--bg:#f7f0f3;--surface:#fffafd;--text:#382833;--muted:#806d79;--line:#eadde5;--accent:#986179;--accent-soft:#f5e8ef;--shadow:0 14px 38px rgba(103,57,81,.08)}
html[data-app-theme="rose"] body{background:radial-gradient(ellipse at 12% 2%,#f2dfe9 0,transparent 37%),radial-gradient(ellipse at 92% 22%,#f8e9df 0,transparent 29%),var(--bg)}
html[data-app-font="book"] body,html[data-app-font="book"] button,html[data-app-font="book"] input,html[data-app-font="book"] select{font-family:Georgia,"Times New Roman",Vazirmatn,Tahoma,Arial,sans-serif}
.theme-rose{background:linear-gradient(135deg,#f7e9f0 50%,#986179 50%)}
.appearance-theme-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
#story-reader[data-reader-persian-font="system"] .story-fa,#story-reader[data-reader-persian-font="system"] .story-gloss-meaning{font-family:Tahoma,Arial,sans-serif}
.reader-settings-section-title{padding:10px 0 3px;border-top:1px solid #e2e5e9;color:#717c83;font-size:10px;font-weight:800}
.reader-toggle-row{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:58px;margin:0;padding:9px 0;border-top:1px solid #e2e5e9}
.reader-toggle-row>span{display:grid;gap:3px;color:#333b42;font-size:11px;font-weight:750}
.reader-toggle-row small{color:#7c858b;font-size:9px;font-weight:450}
.reader-toggle-row input{width:21px;height:21px;flex:none;margin:0;accent-color:#278b73}
.story-reader-settings-open{width:35px!important;height:35px!important;min-height:35px!important;flex:none;border:1px solid #dce7e1!important;border-radius:50%!important;background:#f3f8f5!important;color:#176d5f!important;font-size:17px!important;box-shadow:0 2px 7px #173b3015}
.story-reader-settings-open:active{transform:scale(.94)}
@media(max-width:380px){.appearance-theme-grid{gap:2px}.appearance-theme-grid button{padding-inline:1px;font-size:8px}.theme-swatch{width:30px;height:30px}}

/* Story category shelves, reader launch controls, and the adjustable narration slider. */
.story-kind-filter{display:flex;gap:7px;margin:2px 0 15px;padding:4px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.story-kind-filter button{flex:1;min-height:39px;border-radius:10px;background:transparent;color:var(--muted);font-size:11px;font-weight:700}
.story-kind-filter button.selected{background:var(--accent);color:#fff;box-shadow:0 3px 9px color-mix(in srgb,var(--accent) 25%,transparent)}
.story-reader-head-actions{display:flex;align-items:center;gap:8px}
.story-reader-head-actions .story-reader-mark{margin-inline-end:auto}
.story-reader-play{display:grid;place-items:center;width:38px;height:38px;border:1px solid #b7decf;border-radius:50%;background:#eaf7ef;color:#147564;font-size:14px;box-shadow:0 4px 12px #17473818}
.story-reader-play:active{transform:scale(.94)}
.story-reader-settings-open{font-size:12px!important;font-weight:800!important}
.story-audio-controls{gap:6px}
#story-audio-seek{width:100%;height:4px;margin:0;padding:0;border:0;border-radius:99px;background:linear-gradient(90deg,#158c79,#62bea0);accent-color:#138472;box-shadow:none}
.story-speed-control{display:grid;grid-template-columns:minmax(85px,112px);gap:0;margin:0 0 0 auto;color:#748279;font-size:9px;white-space:nowrap}
.story-speed-control>span{display:flex;justify-content:space-between;gap:4px}
.story-speed-control>span b{color:#176d5f;font:700 9px Arial,sans-serif}
.story-speed-control input[type=range]{width:100%;height:18px;margin:0;padding:0;border:0;background:transparent;accent-color:#138472;box-shadow:none}
.story-speed-control .story-speed-bounds{color:#89948e;font-size:8px;line-height:1.2}
@media(max-width:380px){.story-audio-controls{gap:4px}.story-speed-control{grid-template-columns:88px}.story-reader-head-actions{gap:6px}.story-kind-filter{gap:4px}.story-kind-filter button{min-height:36px;font-size:10px}}

/* Focus the timed challenge on the translation prompt; keep the countdown secondary. */
.daily-question-prompt{display:block;width:min(100%,720px);margin:10px auto 8px;padding:clamp(18px,6vw,30px) 14px;border:1px solid #d7ebdf;border-radius:20px;background:linear-gradient(135deg,#f1faf4,#fff);color:#163e37;font-size:clamp(28px,8vw,40px);font-weight:850;line-height:1.45;text-align:center;direction:rtl;box-shadow:0 10px 24px rgba(18,99,76,.08)}
.daily-question-prompt[hidden]{display:none!important}
.daily-question-timer{margin:0 auto 14px;padding:2px 8px;gap:5px;border:0;background:transparent;color:#77877f;font-size:9px}
.daily-question-timer b{min-width:20px;height:20px;background:#f4f0e7;color:#715f42;font-size:11px}
.daily-question-options{margin-top:4px}
.daily-challenge-warning{margin:8px 0 12px;padding:9px 12px;font-size:10px;text-align:center}
@media(max-width:420px){.daily-question-prompt{padding:18px 12px;font-size:clamp(26px,8.2vw,34px)}}

.daily-challenge-warning[hidden]{display:none!important}
.story-sentence-illustration{margin:14px 0 7px;overflow:hidden;border:1px solid #dfeae3;border-radius:17px;background:#f5f8f5;box-shadow:0 5px 15px #193a310c}
.story-sentence-illustration img{display:block;width:100%;height:auto;max-height:260px;object-fit:contain;background:#f5f8f5}
.story-sentence-illustration figcaption{padding:5px 10px 7px;color:#76847d;font-size:9px;line-height:1.5;text-align:right}
#story-reader[data-reader-theme="night"] .story-sentence-illustration{border-color:var(--reader-line);background:var(--reader-card)}
@media(max-width:420px){.story-sentence-illustration{margin:11px 0 6px;border-radius:14px}.story-sentence-illustration figcaption{font-size:8px}}
.story-sentence.illustrated{padding:10px;background:linear-gradient(145deg,#fff,#fbfdfb);border-color:#dcebe2}
.story-sentence.illustrated .story-sentence-illustration{margin:0 0 9px;border-radius:13px}
.story-sentence.illustrated .story-sentence-illustration img{max-height:250px}
.story-sentence.illustrated .story-sentence-head{padding:0 2px}
.story-sentence.illustrated .story-en{margin:5px 2px 6px}
.story-sentence.illustrated .story-fa{margin:5px 2px;color:#71827b;font-size:12px;line-height:1.8}
@media(max-width:420px){.story-sentence.illustrated{padding:8px}.story-sentence.illustrated .story-sentence-illustration{margin-bottom:7px}}

/* Reader corrections: only the current book page is visible. */
.story-sentence[hidden]{display:none!important}
.story-gloss-phrase{white-space:normal}

/* Unified, checked color packs: each choice recolors the full application surface. */
:root{--surface-2:#f5faf7;--surface-3:#edf5f1;--field-bg:#f8fbf9;--accent-strong:#08675c;--button-gradient:linear-gradient(135deg,#0b8978,#07675e);--theme-glow-a:#dcefe8;--theme-glow-b:#f5ead3;--theme-shadow:0 14px 36px rgba(26,76,63,.09)}
html[data-app-theme="garden"]{--bg:#edf7f2;--surface:#fff;--surface-2:#f4faf7;--surface-3:#eaf5ef;--field-bg:#f9fcfa;--text:#173a34;--muted:#61766d;--line:#d5e7de;--accent:#0b806f;--accent-strong:#07675c;--accent-soft:#e3f4ec;--button-gradient:linear-gradient(135deg,#10927e,#087060);--theme-glow-a:#dcefe8;--theme-glow-b:#f5ead3;--shadow:0 12px 34px rgba(25,73,62,.075);--theme-shadow:0 14px 36px rgba(26,76,63,.09)}
html[data-app-theme="ocean"]{--bg:#eff6fc;--surface:#fff;--surface-2:#f3f8fc;--surface-3:#e8f2fa;--field-bg:#f8fbfe;--text:#1c3345;--muted:#667b8c;--line:#d8e6f0;--accent:#2b74a8;--accent-strong:#205d8d;--accent-soft:#e3f0f8;--button-gradient:linear-gradient(135deg,#3b86b8,#205f92);--theme-glow-a:#d7eaf5;--theme-glow-b:#e9eefb;--shadow:0 12px 34px rgba(35,78,109,.075);--theme-shadow:0 14px 36px rgba(35,78,109,.09)}
html[data-app-theme="lavender"]{--bg:#f6f2fb;--surface:#fff;--surface-2:#f8f5fc;--surface-3:#f0eafa;--field-bg:#fbf9fd;--text:#302842;--muted:#756d88;--line:#e5ddf0;--accent:#7457a5;--accent-strong:#5d438b;--accent-soft:#eee8f7;--button-gradient:linear-gradient(135deg,#8c70b7,#634892);--theme-glow-a:#e8e0f4;--theme-glow-b:#f7eaf2;--shadow:0 12px 34px rgba(77,57,111,.075);--theme-shadow:0 14px 36px rgba(77,57,111,.09)}
html[data-app-theme="paper"]{--bg:#f7f1e3;--surface:#fffdf7;--surface-2:#fbf6ea;--surface-3:#f3ead7;--field-bg:#fffdf8;--text:#3c3224;--muted:#81735f;--line:#e7dcc7;--accent:#916334;--accent-strong:#744c25;--accent-soft:#f3e9d7;--button-gradient:linear-gradient(135deg,#a87943,#785027);--theme-glow-a:#eee1c8;--theme-glow-b:#f7ead4;--shadow:0 12px 34px rgba(88,67,37,.075);--theme-shadow:0 14px 36px rgba(88,67,37,.09)}
html[data-app-theme="rose"]{--bg:#fbf1f4;--surface:#fffafd;--surface-2:#fbf4f7;--surface-3:#f6e9ef;--field-bg:#fffafd;--text:#402d38;--muted:#806e79;--line:#eadce4;--accent:#a84e6c;--accent-strong:#873b58;--accent-soft:#f7e6ed;--button-gradient:linear-gradient(135deg,#bd6683,#91415e);--theme-glow-a:#f2dfe9;--theme-glow-b:#f8e9df;--shadow:0 12px 34px rgba(103,57,81,.075);--theme-shadow:0 14px 36px rgba(103,57,81,.09)}
html[data-app-theme] body{background:radial-gradient(ellipse at 12% 2%,var(--theme-glow-a) 0,transparent 38%),radial-gradient(ellipse at 94% 24%,var(--theme-glow-b) 0,transparent 31%),var(--bg);color:var(--text)}
html[data-app-theme] header{border-color:var(--line)}
html[data-app-theme] :is(.card,.word-card,.learning-card,.score-card,.players-card,.next-panel,.profile-card,.home-game-card,.settings-card,.settings-panel,.appearance-block,.appearance-audio,.coin-shop-info,.library-entry,.study-book-entry,.story-tile,.curriculum-story-card,.illustrated-story-card,.public-entry,.room-restoring-card,.story-audio-dock){border-color:var(--line);background:var(--surface);color:var(--text);box-shadow:var(--theme-shadow)}
html[data-app-theme] :is(.home-game-card,.home-panel-heading,.story-reader-head,.library-heading,.room-head,.section-title,.settings-panel h3){color:var(--text)}
html[data-app-theme] :is(.home-panel-heading p,.sub,.settings-help,.settings-row small,.story-reader-head p,.course-level-heading small,.story-level,.story-tile p,.library-status,.footnote,.hint){color:var(--muted)}
html[data-app-theme] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),html[data-app-theme] textarea,html[data-app-theme] select{border-color:var(--line);background:var(--field-bg);color:var(--text)}
html[data-app-theme] input::placeholder,html[data-app-theme] textarea::placeholder{color:var(--muted)}
html[data-app-theme] .primary{background:var(--button-gradient);color:#fff;box-shadow:0 7px 18px var(--theme-shadow)}
html[data-app-theme] .secondary{background:var(--accent-soft);color:var(--accent-strong)}
html[data-app-theme] :is(.home-tabs,.settings-nav,.study-tabs,.profile-tabs){border-color:var(--line);background:var(--surface-2)}
html[data-app-theme] :is(.home-tabs button,.settings-nav button,.study-tabs button,.profile-tabs button){color:var(--muted)}
html[data-app-theme] :is(.home-tabs button.selected,.settings-nav button.selected,.study-tabs button.selected,.profile-tabs button.selected){background:var(--surface);color:var(--accent-strong);box-shadow:0 3px 12px var(--theme-shadow)}
html[data-app-theme] :is(.player,.ready-person,.guess-item,.score-row,.library-tag,.settings-row,.wallet-history-row,.study-entry){border-color:var(--line);background:var(--surface-2);color:var(--text)}
html[data-app-theme] :is(.pill,.icon-btn,.option-letter,.stage-stepper){background:var(--surface-3);color:var(--accent-strong)}
html[data-app-theme] :is(.turn-banner,.option.selected,.daily-question-prompt,.story-word-section,.story-grammar,.practice-feedback){border-color:var(--line);background:var(--accent-soft);color:var(--text)}
html[data-app-theme] :is(.option,.library-more,.coin-shop-link,.story-coins-link,.appearance-row select){border-color:var(--line);background:var(--surface);color:var(--text)}
html[data-app-theme] :is(.story-page-nav,.story-audio-dock){border-color:var(--reader-line,var(--line));background:var(--reader-card,var(--surface));color:var(--reader-text,var(--text))}
html[data-app-theme] :is(.illustrated-shelf,.illustrated-story-card,.curriculum-story-card,.story-sentence:not(.illustrated)){border-color:var(--line);background:var(--surface)}
html[data-app-theme] .illustrated-shelf{background:linear-gradient(150deg,var(--surface-3),var(--surface) 72%)}
html[data-app-theme] :is(.story-sentence,.story-practice,.story-result){border-color:var(--reader-line,var(--line));background:var(--reader-card,var(--surface));color:var(--reader-text,var(--text))}
html[data-app-theme] :is(.story-sentence-head>span,.story-word-section h2,.story-grammar h2,.story-sentence .story-en){color:var(--reader-ink,var(--accent-strong))}
html[data-app-theme] :is(.story-fa,.story-gloss-hint,.story-reader-mark,.story-audio-info){color:var(--reader-muted,var(--muted))}
html[data-app-theme] :is(.story-reader-art,.story-sentence-illustration,.story-inline-art){border-color:var(--reader-line,var(--line));background:var(--surface-2)}
html[data-app-theme] :is(.story-sentence-illustration img,.story-reader-art img){border-radius:inherit}
html[data-app-theme] :is(.header-profile,.header-shop,.header-logout,.home-store-button){border-color:var(--line);background:var(--surface);color:var(--accent-strong)}
html[data-app-theme] :is(.header-profile:hover,.header-shop:hover,.home-store-button:hover){background:var(--accent-soft)}
.back{min-width:142px;min-height:48px;padding:10px 21px;border:1px solid #a51d2c;border-radius:999px;background:linear-gradient(135deg,#df394b,#b51f36);color:#fff;font-size:12px;font-weight:800;line-height:1.4;box-shadow:0 7px 19px rgba(152,27,46,.28);backdrop-filter:blur(8px);transition:transform .16s ease,box-shadow .16s ease,filter .16s ease}
.back:hover{border-color:#8d1928;background:linear-gradient(135deg,#eb4758,#a81931);box-shadow:0 9px 24px rgba(152,27,46,.34);filter:saturate(1.08)}
.back:active{transform:translateX(-50%) scale(.96)}
.back:focus-visible{outline:3px solid #f4a2a9;outline-offset:3px}
.header-actions{align-items:center;gap:7px}
.header-logout{display:flex;align-items:center;justify-content:center;gap:5px;min-height:38px;padding:6px 11px;border:1px solid #edc5ca;border-radius:12px;background:#fff5f6;color:#a32637;font-size:10px;font-weight:800}
.header-logout[hidden],#header-shop[hidden]{display:none!important}
.home-wallet-row{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin:12px 0 4px}
.home-wallet-row[hidden]{display:none!important}
.home-wallet-row .coin-wallet-home{flex:0 1 auto;width:auto;max-width:calc(100% - 116px);margin:0}
.home-wallet-row .home-store-button{flex:none;min-height:42px;padding:7px 12px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--accent-strong);font-size:10px;font-weight:800;box-shadow:0 4px 12px var(--theme-shadow)}
.home-wallet-row .home-store-button img{width:21px;height:21px}
.appearance-theme-grid button{min-height:66px;border-color:var(--line);background:var(--surface-2);color:var(--text)}
.appearance-theme-grid button[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-strong)}
.theme-garden{background:linear-gradient(135deg,#edf7f2 48%,#0b806f 48%)}.theme-ocean{background:linear-gradient(135deg,#eff6fc 48%,#2b74a8 48%)}.theme-lavender{background:linear-gradient(135deg,#f6f2fb 48%,#7457a5 48%)}.theme-paper{background:linear-gradient(135deg,#f7f1e3 48%,#916334 48%)}.theme-rose{background:linear-gradient(135deg,#fbf1f4 48%,#a84e6c 48%)}
.story-page-nav{grid-template-columns:minmax(0,1fr) 52px minmax(0,1fr);grid-template-rows:auto auto;gap:7px;width:min(100%,740px);margin:12px auto 9px;padding:9px}
.story-page-nav #story-page-status{grid-column:1/-1;grid-row:1;justify-self:center;min-width:0}
.story-page-nav #story-page-prev{grid-column:1;grid-row:2}
.story-page-nav #story-reader-play{grid-column:2;grid-row:2}
.story-page-nav #story-page-next{grid-column:3;grid-row:2}
.story-page-nav button{min-height:44px}
.story-page-nav .story-reader-play{width:48px;height:48px;min-height:48px;border:0;background:var(--button-gradient);color:#fff;font-size:17px;box-shadow:0 5px 14px var(--theme-shadow)}
.story-page-nav .story-reader-play.is-playing{font-size:15px}
.story-audio-dock{position:static;z-index:auto;left:auto;bottom:auto;transform:none;display:grid;gap:9px;width:min(100%,740px);margin:9px auto 14px;padding:12px 14px;border-color:var(--reader-line,var(--line));border-radius:17px;background:var(--reader-card,var(--surface));color:var(--reader-text,var(--text));box-shadow:var(--theme-shadow);backdrop-filter:none}
.story-audio-dock[hidden],#story-after-book[hidden]{display:none!important}
.story-audio-info #story-audio-status{color:var(--reader-ink,var(--accent-strong))}
.story-audio-info button#story-audio-close{width:33px;height:33px;border:1px solid var(--reader-line,var(--line));border-radius:50%;background:var(--reader-page,var(--surface-2));color:var(--reader-text,var(--text));font-size:18px}
.story-audio-dock input[type="range"]{accent-color:var(--accent)}
.story-audio-controls{justify-content:flex-start;min-height:0}
.story-speed-control{width:min(100%,260px);grid-template-columns:1fr;gap:2px;margin:0 auto 0 0;color:var(--reader-muted,var(--muted))}
.story-speed-control>span b{color:var(--reader-ink,var(--accent-strong))}
.story-speed-control input[type="range"]{accent-color:var(--accent)}
#story-reader.screen.active{padding:0 10px calc(96px + env(safe-area-inset-bottom));}
#story-reader.screen.active.story-audio-open{padding-bottom:calc(96px + env(safe-area-inset-bottom))}
.story-sentence-illustration{width:100%;margin:0 0 10px;border:0;border-radius:20px;background:transparent;box-shadow:none}
.story-sentence-illustration img{display:block;width:100%;height:clamp(240px,43dvh,560px);max-height:none;object-fit:cover;border-radius:20px;background:var(--reader-page,var(--surface-2))}
.story-sentence-illustration figcaption{display:none!important}
.story-sentence.illustrated{gap:7px;padding:10px;border-color:var(--reader-line,var(--line));border-radius:20px;background:var(--reader-card,var(--surface));color:var(--reader-text,var(--text))}
.story-sentence.illustrated .story-sentence-illustration{margin:0 0 5px;border-radius:20px}
.story-sentence.illustrated .story-sentence-illustration img{height:clamp(240px,43dvh,560px);max-height:none;border-radius:20px}
.story-reader-art{overflow:hidden;border-radius:22px;background:var(--reader-page,var(--surface-2));box-shadow:var(--theme-shadow)}
.story-reader-art img{width:100%;height:min(58dvh,600px);max-height:none;object-fit:cover;border-radius:inherit}
.story-reader-art figcaption{padding:10px 13px;color:var(--reader-muted,var(--muted));font-size:11px}
@media(max-width:420px){.back{min-width:min(176px,calc(100vw - 40px));min-height:50px;padding:11px 19px;font-size:12px}.home-wallet-row{gap:6px}.home-wallet-row .home-store-button{padding:6px 9px}.home-wallet-row .coin-wallet-home{max-width:calc(100% - 100px);padding:8px 10px}.story-page-nav{margin:8px auto 7px;padding:8px}.story-page-nav button{min-height:44px}.story-page-nav .story-reader-play{width:48px;height:48px}.story-sentence-illustration img,.story-sentence.illustrated .story-sentence-illustration img{height:clamp(230px,42dvh,470px)}.story-sentence-illustration{border-radius:18px}.story-sentence-illustration img{border-radius:18px}}
@media(prefers-reduced-motion:reduce){.back{transition:none}}
.back{min-height:54px;padding:12px 23px;font-size:13px;box-shadow:0 9px 23px rgba(152,27,46,.32)}
.story-sentence-illustration img,.story-sentence.illustrated .story-sentence-illustration img{height:clamp(270px,50dvh,680px)}
.story-reader-art img{height:min(66dvh,700px)}
.story-cover-start{width:min(100%,740px);display:block;margin:12px auto 20px;border-radius:15px;background:var(--button-gradient);box-shadow:0 9px 22px var(--theme-shadow)}
.story-cover-start[hidden]{display:none!important}
.story-download-dialog,.push-optin-dialog{position:fixed;width:min(440px,calc(100vw - 28px));max-width:440px;max-height:min(84dvh,760px);padding:24px 21px 20px;border:1px solid var(--line);border-radius:26px;background:var(--surface);color:var(--text);box-shadow:0 24px 80px #10271f40;text-align:center;overflow:auto}
.story-download-dialog::backdrop,.push-optin-dialog::backdrop{background:#10251f80;backdrop-filter:blur(4px)}
.story-download-dialog .settings-close,.push-optin-dialog .settings-close{position:absolute;left:12px;top:12px}
.story-download-mark{display:grid;place-items:center;width:54px;height:54px;margin:8px auto 14px;border-radius:18px;background:var(--accent-soft);color:var(--accent-strong);font-size:25px}
.story-download-dialog h2,.push-optin-dialog h2{margin:5px 0 4px;font-size:20px}
.story-download-dialog .muted,.push-optin-dialog>p:not(.eyebrow){color:var(--muted);font-size:12px;line-height:1.9}
.story-download-status{padding:12px;border-radius:14px;background:var(--surface-2);color:var(--muted);font-size:11px;line-height:1.8}
.story-download-actions{display:grid;gap:8px;margin-top:14px}
.story-download-actions button{margin:0}
.notification-settings-card{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:10px;margin:12px 0;padding:13px;border:1px solid var(--line);border-radius:16px;background:var(--surface-2)}
.notification-settings-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:var(--accent-soft);color:var(--accent-strong);font-size:22px}
.notification-settings-copy{min-width:0}.notification-settings-copy b{font-size:12px}.notification-settings-copy p{margin:3px 0 0;color:var(--muted);font-size:10px;line-height:1.7}
.notification-settings-card button{grid-column:1/-1;width:100%;min-height:43px}
.notification-settings-card button[hidden]{display:none!important}
.illustrated-cover{min-height:168px}
.illustrated-cover img{min-height:168px;object-fit:cover}
@media(max-width:420px){.back{min-height:54px;padding:12px 23px;font-size:13px}.story-sentence-illustration img,.story-sentence.illustrated .story-sentence-illustration img{height:clamp(260px,48dvh,560px)}.story-reader-art img{height:min(62dvh,560px)}.illustrated-cover,.illustrated-cover img{min-height:154px}}

