@font-face{font-family:Local;src:local('Microsoft YaHei UI')}*{box-sizing:border-box}body{margin:0;color:#29293f;background:#f6f7fb;font-family:Inter,Local,'Microsoft YaHei',system-ui,sans-serif;font-size:14px;line-height:1.6}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #a88dfa;outline-offset:3px}h1,h2,h3,p{margin:0}button{border:0}svg{display:block}.hidden{display:none!important}.app-shell{display:flex;min-height:100vh}.sidebar{width:225px;flex-shrink:0;background:white;border-right:1px solid #eaeaf3;padding:32px 20px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0}.brand{display:flex;align-items:center;gap:12px;font-size:21px;font-weight:800;letter-spacing:.5px;padding:0 8px}.brand small{display:block;font-size:10px;letter-spacing:2px;color:#9291a5;margin-top:0}.brand-mark{height:45px;width:45px;background:#7654e5;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;color:white;font-size:31px;font-weight:800;position:relative;line-height:1}.brand-mark>span{position:absolute;color:#ffda68;font-size:23px;right:-7px;top:-5px}.nav-label{font-size:12px;color:#a4a2b3;letter-spacing:1px;margin:44px 14px 16px}.nav-item{width:100%;display:flex;align-items:center;gap:15px;background:transparent;padding:13px 17px;margin:4px 0;border-radius:12px;color:#747385;text-align:left;font-weight:600;font-size:14px}.nav-item>span{font-size:21px;line-height:1;width:20px;text-align:center}.nav-item.active{background:#f0eafd;color:#7654de}.nav-item:hover{background:#f5f1fe}.sidebar-note{margin:45px 8px 20px;padding:23px 15px;background:#fcf8ee;border-radius:16px;border:1px solid #f6edda}.little-star{display:block;color:#e7b84e;font-size:27px;margin-bottom:9px}.sidebar-note strong{font-size:13px}.sidebar-note p{font-size:12px;color:#aaa087;margin-top:9px;line-height:1.9}.sidebar-bottom{margin-top:auto}.version{font-size:11px;color:#bbb9c8;margin:20px 14px 0}.workspace{width:calc(100% - 225px);max-width:1800px;margin-left:225px;padding:30px 40px 18px}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px}.eyebrow{display:block;font-size:10px;font-weight:700;letter-spacing:2px;color:#9b95b0;margin-bottom:8px}h1{font-size:24px;font-weight:800;letter-spacing:.1px}h1>span{color:#eabc4e;margin-left:12px;font-size:26px}.profile{display:flex;align-items:center;gap:10px}.avatar{width:41px;height:41px;background:#ffead0;border:3px solid white;border-radius:50%;font-weight:bold;display:grid;place-items:center;color:#b27b3c}.profile strong{font-size:13px}.profile small{display:block;font-size:11px;color:#9a97aa}.time-banner{padding:22px 26px;background:white;border:1px solid #eeeaf8;border-radius:18px;display:flex;align-items:center;gap:20px;box-shadow:0 4px 20px #2c245204}.time-icon{width:58px;height:58px;flex-shrink:0;display:grid;place-items:center;border-radius:16px;background:#f1ebff;color:#8662e5;font-size:38px;line-height:1}.time-copy{min-width:190px}.time-copy>span{display:block;font-size:12px;color:#858195}.time-copy>strong{display:block;font-size:29px;font-weight:800;letter-spacing:1px}.time-copy small{font-size:13px;font-weight:500;color:#a3a0b1;margin:0 4px}.time-progress{flex:1;max-width:560px;padding:0 25px 0 0}.progress-label{display:flex;justify-content:space-between;font-size:12px;color:#827b96;gap:10px}.progress-label strong{color:#9871e8;font-size:11px}.progress-track{height:7px;background:#f0edf7;border-radius:10px;margin:9px 0 7px;overflow:hidden}.progress-track>span{display:block;width:0;height:100%;background:linear-gradient(90deg,#ac8cec,#7654e5);border-radius:10px;transition:width .4s}.secondary{font-size:10px;color:#a9a3b6}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:43px;padding:10px 20px;border-radius:10px;font-weight:600;font-size:13px;white-space:nowrap;transition:background .2s,transform .2s}.button:hover{transform:translateY(-1px)}.button.primary{background:#7956e6;color:white;box-shadow:0 4px 10px #7956e61c}.button.primary:hover{background:#6844d3}.button:disabled{background:#efecf6!important;color:#b0a9c3!important;box-shadow:none!important;transform:none}.button.subtle{border:1px solid #e9e5f2;background:white;color:#8b7aab}.full{width:100%}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:30px 0 18px}.section-heading h2{font-size:21px;font-weight:800}.section-heading p{color:#9b97ab;font-size:12px;margin-top:3px}.section-heading .button{font-size:11px;min-height:34px;padding:6px 12px}.mode-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:24px}.mode-tab{display:flex;text-align:left;align-items:center;gap:12px;padding:18px;background:#fff;border:1px solid #e8e7f0;border-radius:14px;color:#777185;position:relative}.mode-tab.active{border:1.5px solid #ac8aed;background:#f6f1ff;box-shadow:0 4px 15px #7a51d505;color:#714bd2}.mode-tab.active:after{content:'';height:5px;width:35px;background:#8d64e5;border-radius:5px 5px 0 0;position:absolute;bottom:-1px;left:50%;transform:translateX(-50%)}.mode-icon{width:42px;height:42px;background:#f4f2f8;color:#a199b4;border-radius:12px;display:grid;place-items:center;font-size:24px}.mode-tab.active .mode-icon{background:#eadeff;color:#8861df}.mode-tab strong{display:block;font-size:14px}.mode-tab small{display:block;font-size:11px;color:#a8a0b7;margin-top:2px}.mode-level{font-size:9px;color:#bab2c7;letter-spacing:1px;margin-left:auto;align-self:flex-start}.mode-tab.active .mode-level{color:#9c7dcf}.play-layout{display:grid;grid-template-columns:minmax(0,1fr) 256px;gap:22px;align-items:start}.game-panel{background:white;border:1px solid #eae8f2;border-radius:17px;overflow:hidden}.game-toolbar{display:flex;align-items:center;gap:12px;padding:19px 22px;border-bottom:1px solid #f1eff5}.category-filters{display:flex;flex-wrap:wrap;gap:4px;flex:1}.category-button{font-size:11px;background:transparent;color:#a09bac;padding:7px 12px;border-radius:7px}.category-button.active{color:#8961df;background:#f3edff;font-weight:700}.category-button:hover{background:#f5f2fb}.game-toolbar select{font-size:11px;border:1px solid #ebe8f2;background:#fff;padding:6px;border-radius:6px;color:#8e889e;max-width:100px}.icon-button{font-size:22px;color:#a69cb7;background:transparent;border:1px solid #ece8f2;border-radius:7px;height:31px;width:31px;line-height:1}.round-heading{display:flex;align-items:flex-start;justify-content:space-between;padding:22px 23px 16px;gap:10px}.round-heading strong{font-size:15px}.round-heading p{font-size:11px;color:#aaa3b7;margin-top:5px}.round-count{white-space:nowrap;background:#f7f4fb;color:#9a89b6;font-size:10px;padding:4px 10px;border-radius:20px;margin-top:2px}.board{padding:0 23px 24px;min-height:290px}.match-board{display:grid;grid-template-columns:1fr 28px 1fr;gap:12px}.column-label{display:flex;justify-content:space-between;align-items:center;font-size:9px;letter-spacing:1.7px;color:#c4bdcf;margin-bottom:12px}.column-label>span{font-size:10px;letter-spacing:0;color:#a69bad}.word-grid,.picture-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.word-card{min-height:108px;padding:18px 7px 15px;background:#fff;border:1.5px solid #e7e1f3;border-radius:12px;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#464057;box-shadow:0 3px 0 #f5f1fc;transition:all .15s}.word-card strong{font-size:18px;font-weight:700;line-height:1.3;overflow-wrap:anywhere}.word-card small{font-size:11px;color:#b5a9c5;margin-top:7px}.word-dot{position:absolute;top:8px;left:10px;font-size:10px;color:#d2c4ea}.card-corner{position:absolute;right:9px;bottom:7px;color:#c1b1dc;font-size:12px}.word-card:hover{border-color:#ba9ee9;transform:translateY(-2px)}.word-card.selected{border-color:#9671e2;background:#f4edff;box-shadow:0 0 0 3px #c3a4f322;color:#7348cd}.picture-card{background:#fff;padding:0;border:1.5px solid #efe9f2;border-radius:12px;position:relative;overflow:hidden;min-height:108px;transition:all .15s}.card-art{display:block;width:100%;height:100%;min-height:108px;aspect-ratio:1;object-fit:cover;background-repeat:no-repeat;border-radius:inherit}.picture-card .card-art{aspect-ratio:auto;height:108px;min-height:108px}.picture-card:hover{border-color:#b897ed;transform:translateY(-2px)}.picture-label{position:absolute;bottom:5px;right:6px;font-size:9px;color:#6c6377;background:#ffffffbb;border:1px solid #ffffff9e;padding:0 5px;border-radius:5px}.pair-divider{display:flex;align-items:center;justify-content:center;color:#c5b6dd;font-size:21px;padding-top:17px}.pair-divider>span{background:#f8f5fd;border-radius:50%;width:30px;height:30px;display:grid;place-items:center;font-size:15px}.game-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #f1eef7;padding:13px 22px;font-size:10px;color:#b5acbf;gap:12px}.game-footer>span:first-child{display:flex;align-items:center;gap:7px;color:#9586a8}.game-footer i{width:5px;height:5px;border-radius:50%;background:#bc9edc;flex-shrink:0}.game-aside{display:grid;gap:16px}.reward-card,.today-card{background:white;border:1px solid #ebe7f2;border-radius:16px;padding:22px 20px}.reward-card .eyebrow{font-size:8px;letter-spacing:1.2px;color:#b7a5c9}.reward-card h3{font-size:16px;letter-spacing:.2px}.reward-card h3>span{color:#e8bf61;margin-left:8px}.reward-card>p{font-size:10px;color:#aea5bc;margin:8px 0 20px}.reward-row{display:flex;align-items:center;gap:10px;margin:19px 0}.reward-badge{width:29px;height:29px;display:grid;place-items:center;border-radius:9px;font-weight:700;font-size:12px;flex-shrink:0}.reward-badge.first{background:#f3e8cf;color:#bb9349}.reward-badge.second{background:#eee7fd;color:#9d7cce}.reward-badge.third{background:#e4f3eb;color:#7aa28f}.reward-row>div>strong{display:block;font-size:12px;font-weight:600}.reward-row small{display:block;font-size:9px;color:#b8adbf;margin-top:1px}.reward-value{margin-left:auto;font-size:20px;color:#9973d9;white-space:nowrap}.reward-value>small{display:inline;color:#b5a3c8;font-size:10px;font-weight:500}.reward-foot{font-size:9px;color:#ada2bb;border-top:1px dashed #eee6f3;padding-top:13px;margin-top:15px}.today-card{padding:17px 20px;background:#fffdf8;border-color:#f0eada}.mini-title{font-size:12px;font-weight:700;display:flex;justify-content:space-between}.mini-title>span{color:#dcb777;font-size:17px}.today-stats{display:flex;margin:13px 0;gap:30px}.today-stats strong{display:block;font-size:28px;font-weight:700;color:#ad8651;line-height:1.4}.today-stats span{font-size:10px;color:#b4a38f}.today-card>p{font-size:10px;color:#bdac93;border-top:1px solid #f2ece1;padding-top:10px}.connection-card{display:flex;align-items:flex-start;gap:10px;padding:2px 8px;color:#aaa0b6}.connection-icon{font-size:20px}.connection-card strong{font-size:11px;font-weight:600}.connection-card p{font-size:10px;margin-top:3px;line-height:1.7;color:#b5adc0}.page-footer{margin-top:25px;display:flex;justify-content:space-between;font-size:10px;color:#bdb4c9}.page-footer>span{font-size:10px;font-style:italic;letter-spacing:.2px}.audio-board{min-height:376px}.listen-prompt{display:flex;align-items:center;justify-content:center;gap:20px;padding:20px 0 28px}.listen-button{display:grid;place-items:center;width:76px;height:76px;border-radius:24px;background:#eee5ff;color:#8459dc;font-size:39px;box-shadow:0 0 0 8px #f8f4ff}.listen-button:hover{background:#e3d4ff}.listen-prompt strong{font-size:18px}.listen-prompt p{color:#aaa0b6;font-size:12px;margin-top:5px}.audio-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.audio-option{position:relative;min-height:92px;border:1.5px solid #e9e0f6;background:#fff;border-radius:14px;color:#625070}.audio-option:hover{border-color:#a783e0;background:#faf6ff}.audio-option strong{font-size:22px}.option-letter{position:absolute;top:9px;left:11px;width:23px;height:23px;display:grid;place-items:center;border-radius:7px;font-size:11px;background:#f3ebfc;color:#9e7dc5}.image-option{padding:0;overflow:hidden}.image-option .card-art{height:150px;min-height:150px;aspect-ratio:auto}.round-finished,.board-placeholder{min-height:320px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;width:100%;grid-column:1/-1}.round-finished>span{font-size:60px;color:#e1b859;line-height:1}.round-finished h2{margin-top:20px;font-size:23px}.round-finished p{color:#a195b0;margin:8px 0 22px}.content-panel{background:#fff;border:1px solid #ece7f4;border-radius:17px;padding:30px}.harvest-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.harvest-word{border:1px solid #eee6f6;border-radius:13px;padding:20px;background:#fdfbff}.harvest-word>span{color:#ddbd68}.harvest-word strong{display:block;font-size:22px;margin-top:8px}.harvest-word p{color:#988ca9;margin:5px 0}.harvest-word small{color:#b8a4d2}.empty-state{text-align:center;padding:35px;color:#a69caf}.empty-state>span{font-size:48px;color:#d2bded}.empty-state h3{color:#716481}.active-usage{background:#f6f1ff;border-radius:14px;padding:24px;margin-bottom:25px;text-align:center}.active-usage span{font-size:13px;color:#a28bbd}.active-usage strong{display:block;font-size:42px;color:#8056cb;margin:8px 0}.active-usage p{color:#9a86b3;font-size:12px}.active-usage button{margin-top:18px}.ledger-row{display:flex;align-items:center;gap:13px;border-bottom:1px solid #f1ecf7;padding:15px 0}.ledger-icon{background:#f5edff;color:#ac89d7;border-radius:9px;display:grid;place-items:center;width:37px;height:37px}.ledger-row>div{flex:1}.ledger-row p{font-size:11px;color:#b5a7c1}.ledger-row time{font-size:11px;color:#b8adbf}.positive{color:#9e7dce}.toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,20px);background:#5d487b;color:white;padding:13px 23px;border-radius:13px;box-shadow:0 8px 25px #50307626;z-index:200;opacity:0;pointer-events:none;transition:all .2s;max-width:85vw;font-size:14px}.toast.visible{opacity:1;transform:translate(-50%,0)}.toast.error{background:#aa615f}.celebration{position:fixed;left:53%;top:40%;font-size:48px;font-weight:800;color:#9770dc;pointer-events:none;z-index:199;opacity:0;transform:translateY(20px);text-shadow:0 3px white,0 0 20px white;transition:all .4s}.celebration.show{opacity:1;transform:translateY(-10px)}dialog{border:1px solid #e5dbf5;border-radius:23px;padding:0;max-width:min(90vw,430px);box-shadow:0 20px 80px #35234226;color:#453653}dialog::backdrop{background:#31274740;backdrop-filter:blur(5px)}.dialog-content{padding:35px}.dialog-content>p{color:#a08aad;font-size:13px;margin:13px 0 24px;line-height:1.8}.login-dialog .brand-mark{margin-bottom:24px;width:50px;height:50px}.login-dialog .eyebrow{font-size:9px}.login-dialog h2{font-size:28px;line-height:1.5}.login-parent{display:block;text-align:center;color:#a08aad;font-size:11px;margin-top:18px}.demo-note{background:#f9f4ff;color:#9977b8!important;border-radius:8px;padding:9px;font-size:11px!important;text-align:center;margin:16px 0 0!important}label{display:block;color:#8f7d9b;font-size:12px;margin:16px 0}input,select{display:block;border:1px solid #e8deef;background:#fff;border-radius:9px;padding:11px 13px;width:100%;margin-top:6px;color:#544361;outline:none}input:focus{border-color:#ac86d6}.form-error{font-size:12px;color:#b36766;min-height:19px;margin:8px 0 12px}.correct{animation:match .5s forwards;border-color:#a6cda5!important}.shake{animation:shake .4s}@keyframes match{50%{transform:scale(1.04);background:#eef8eb}100%{transform:scale(.85);opacity:0}}@keyframes shake{20%,60%{transform:translateX(-5px)}40%,80%{transform:translateX(5px)}}
/* Management workspace */
.admin-layout .sidebar-note{background:#f5f0ff;border-color:#e9dffd}.admin-layout .sidebar-note p{color:#a494bd}.admin-layout .workspace{max-width:none}.admin-heading{margin:25px 0;display:flex;align-items:center;justify-content:space-between;gap:14px}.admin-heading h2{font-size:22px}.admin-heading p{color:#9d90ad;font-size:13px;margin-top:5px}.admin-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:22px 0}.summary-box{padding:24px;background:#fff;border:1px solid #ece7f4;border-radius:15px}.summary-box span{font-size:12px;color:#a08daf}.summary-box strong{display:block;font-size:34px;color:#8161a5;line-height:1.5}.summary-box p{font-size:11px;color:#b1a3be}.device-grid,.child-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0}.device-card,.child-card{padding:24px;background:#fff;border:1px solid #e8e0f2;border-radius:15px}.device-card h3,.child-card h3{font-size:17px;display:flex;justify-content:space-between;align-items:center;gap:10px}.status-pill{font-size:10px;background:#efebf4;color:#a190b2;padding:3px 10px;border-radius:20px;white-space:nowrap}.status-pill.online{background:#e9f4ec;color:#78a084}.device-card p,.child-card p{color:#a495b3;font-size:12px;margin-top:10px}.device-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}.device-actions .button{font-size:11px;padding:7px 13px;min-height:34px}.admin-table-wrap{overflow:auto}.admin-table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}.admin-table th{font-size:11px;color:#b2a4bf;font-weight:500;border-bottom:1px solid #eee7f5;padding:13px}.admin-table td{font-size:13px;padding:13px;border-bottom:1px solid #f1ebf7}.admin-table td:first-child{white-space:normal}.admin-table .table-art{width:54px;height:54px;min-height:54px;border-radius:9px}.admin-table .button{font-size:11px;min-height:30px;padding:5px 11px}.word-cell{display:flex;align-items:center;gap:14px}.word-cell small{display:block;font-size:11px;color:#b4a5c0}.admin-form{max-width:700px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.form-grid label{font-size:13px}.form-grid label.full-span{grid-column:1/-1}.settings-help{color:#ac9ab9;font-size:12px;margin-top:20px}.warning-note{padding:14px 20px;border:1px solid #eee1bd;background:#fffaf0;color:#a48e5e;border-radius:10px;font-size:12px;line-height:1.8;margin:20px 0}.pair-code{font-size:32px;letter-spacing:7px;color:#8a65ba;display:block;text-align:center;padding:17px;background:#f7f0ff;border-radius:13px;margin:16px 0}.image-preview{width:140px;height:140px;min-height:140px;border-radius:14px;background:#f7f3fc;margin:16px auto;object-fit:cover}.image-controls{display:flex;gap:10px;justify-content:center}.image-controls label{margin:0}.image-controls input{display:none}.dialog-wide{max-width:min(94vw,620px)}.admin-filters{display:flex;gap:12px;margin-bottom:18px;align-items:center}.admin-filters input{margin:0;max-width:280px}.admin-filters select{margin:0;max-width:130px}.child-balance{font-size:30px;color:#8f6ab9;margin:16px 0}.child-balance small{font-size:12px;color:#bba7ca}.inline-help{font-size:11px;color:#ad9bbb;margin:10px 0}.table-muted{color:#b4a8c0}.setup-heading{font-size:26px;line-height:1.5}.danger{color:#af7777!important;border-color:#ecd7d7!important}.activity-log{font-size:12px;color:#9e8baa}.activity-log>div{border-bottom:1px solid #f0eaf6;padding:13px 0;display:flex;justify-content:space-between;gap:15px}.admin-view{animation:appear .25s}@keyframes appear{from{opacity:.5;transform:translateY(3px)}to{opacity:1;transform:none}}
@media(min-width:1500px){.workspace{padding-left:55px;padding-right:55px}.play-layout{grid-template-columns:minmax(0,1fr) 300px}.word-card,.picture-card,.picture-card .card-art{min-height:135px}.picture-card .card-art{height:135px}.reward-card{padding:27px}.reward-card>p{font-size:12px}.reward-row>div>strong{font-size:14px}.reward-row small,.reward-foot{font-size:11px}.game-toolbar{padding:22px 27px}.round-heading{padding:26px 27px 19px}.board{padding:0 27px 28px}.word-card strong{font-size:23px}.match-board{gap:20px}.word-grid,.picture-grid{gap:16px}}
@media(max-width:1200px){.sidebar{width:190px;padding:26px 13px}.workspace{width:calc(100% - 190px);margin-left:190px;padding:26px 24px}.brand{font-size:18px;gap:10px}.play-layout{grid-template-columns:minmax(0,1fr) 220px;gap:16px}.reward-card,.today-card{padding:18px 14px}.time-copy{min-width:150px}.time-progress{padding-right:0}.time-banner{gap:15px;padding:20px}.time-icon{width:46px;height:46px;font-size:30px}.time-copy>strong{font-size:25px}.time-banner .button{padding:10px 13px;font-size:12px}.mode-tab{padding:15px 12px;gap:8px}.mode-level{display:none}.mode-tab strong{font-size:13px}.mode-tab small{font-size:10px}.match-board{gap:7px;grid-template-columns:1fr 19px 1fr}.board{padding:0 17px 20px}.word-grid,.picture-grid{gap:9px}.word-card strong{font-size:16px}.word-card,.picture-card,.picture-card .card-art{min-height:99px}.picture-card .card-art{height:99px}.game-footer>span:last-child{display:none}.game-toolbar{padding:16px}.category-button{padding:6px 9px}.topbar h1{font-size:21px}.profile small{display:none}}
@media(max-width:1000px){.sidebar{width:165px;padding:26px 12px}.brand{padding:0;font-size:16px;gap:9px}.brand-mark{width:38px;height:38px;font-size:27px}.brand small{font-size:8px;letter-spacing:1px}.nav-item{padding:12px 13px;gap:10px}.workspace{width:calc(100% - 165px);margin-left:165px;padding:24px}.play-layout{grid-template-columns:minmax(0,1fr)}.game-aside{grid-template-columns:1.4fr 1fr}.reward-card{padding:20px}.reward-row{margin:13px 0}.connection-card{grid-column:1/-1}.sidebar-note{padding:15px 10px}.sidebar-note strong{font-size:11px}.sidebar-note p{font-size:10px}.time-banner{flex-wrap:wrap}.time-progress{flex-basis:40%;min-width:200px}.time-banner .button{margin-left:auto}.word-card,.picture-card,.picture-card .card-art{min-height:118px}.picture-card .card-art{height:118px}.word-card strong{font-size:20px}.topbar h1{font-size:19px}.profile{display:none}.harvest-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.sidebar{position:relative;width:100%;padding:15px 18px;border-right:0;border-bottom:1px solid #e9e3f3;display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:15px}.brand{font-size:18px}.brand small{font-size:9px}.nav-label,.sidebar-note,.sidebar-bottom,.version{display:none}.sidebar nav{display:flex;margin-left:auto}.nav-item{font-size:11px;width:auto;margin:0;padding:8px 9px;gap:5px}.nav-item>span{font-size:17px;width:17px}.app-shell{display:block}.workspace{width:100%;margin:0;padding:22px 16px}.topbar{margin-bottom:20px}.topbar h1{font-size:19px}.eyebrow{font-size:9px}.time-banner{padding:18px;gap:13px}.time-copy{min-width:150px}.time-copy>strong{font-size:26px}.time-progress{flex-basis:100%;order:4;min-width:0;max-width:none}.time-banner .button{font-size:11px;padding:9px 12px}.mode-tabs{gap:7px}.mode-tab{padding:12px 8px;justify-content:center;gap:6px}.mode-icon{width:30px;height:35px;font-size:20px}.mode-tab strong{font-size:11px}.mode-tab small{font-size:9px}.section-heading{margin-top:25px}.section-heading h2{font-size:20px}.section-heading p{font-size:11px}.round-heading{padding:19px 17px 16px}.round-heading strong{font-size:14px}.round-heading p{font-size:10px}.board{padding:0 15px 20px}.word-card strong{font-size:18px}.word-card small{font-size:10px}.word-card,.picture-card,.picture-card .card-art{min-height:110px}.picture-card .card-art{height:110px}.game-toolbar{gap:6px;padding:14px}.category-button{padding:6px 8px;font-size:10px}.game-toolbar select{max-width:70px;font-size:9px}.game-aside{gap:12px;grid-template-columns:1.3fr 1fr}.reward-card{padding:19px 14px}.reward-card h3{font-size:14px}.reward-card>p{font-size:9px;margin-bottom:12px}.reward-card .eyebrow{font-size:7px}.reward-row{gap:7px}.reward-row>div>strong{font-size:10px}.reward-row small{font-size:8px}.reward-value{font-size:19px}.reward-value small{font-size:9px}.reward-badge{width:24px;height:24px;font-size:10px}.reward-foot{font-size:8px}.today-card{padding:18px 15px}.today-stats{display:grid;gap:9px}.today-stats strong{font-size:26px}.today-stats span{font-size:9px}.mini-title{font-size:11px}.page-footer{font-size:9px;gap:10px}.page-footer span{display:none}.harvest-grid{grid-template-columns:repeat(2,1fr)}.content-panel{padding:20px}.ledger-row{gap:10px}.ledger-row time{display:none}.ledger-row>strong{font-size:12px}.ledger-row strong{font-size:12px}.admin-summary{gap:9px}.summary-box{padding:15px}.summary-box strong{font-size:26px}.summary-box span{font-size:10px}.summary-box p{display:none}.device-grid,.child-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-grid label.full-span{grid-column:auto}.admin-layout .sidebar nav{width:100%;justify-content:space-between}.admin-heading h2{font-size:20px}.admin-filters{flex-wrap:wrap}.dialog-content{padding:27px}.celebration{left:32%;font-size:36px}}
.course-bar{background:#fbf8ff;border-bottom:1px solid #eee7f7;padding:12px 20px;display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.course-bar>span{font-size:10px;color:#a590bd}.course-bar>div{display:flex;gap:6px}.course-bar select{width:auto;margin:0;font-size:10px;padding:5px 8px;max-width:115px}.picture-card,.image-option{perspective:600px;overflow:visible;background:#fff;transform-style:preserve-3d}.picture-card{min-height:124px;padding:7px}.card-front{display:flex;align-items:center;justify-content:center;position:relative;height:100%;width:100%;border-radius:10px;backface-visibility:hidden;transition:transform .5s}.picture-card .card-art{width:100%;max-width:108px;height:auto!important;min-height:0!important;aspect-ratio:1;border-radius:8px}.card-suit{position:absolute;left:2px;top:0;font-size:10px;color:#9e8d6d}.card-back{position:absolute;inset:0;background:#f4ebff;border:1.5px solid #b295d7;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px;backface-visibility:hidden;transform:rotateY(-180deg);transition:transform .5s}.card-back strong{font-size:18px;overflow-wrap:anywhere;text-align:center}.card-back small{color:#a586bb;font-size:11px;margin-top:5px}.card-back>span{color:#b093c4;font-size:11px;margin-top:8px}.card-back>b{font-size:20px;color:#ae89cf;margin-top:5px}.flipped .card-front{transform:rotateY(180deg)}.flipped .card-back{transform:rotateY(0)}.image-option .card-front{height:150px}.image-option .card-art{width:140px;height:140px;min-height:0;aspect-ratio:1}.flipped .option-letter{visibility:hidden}.wrong{background:#fff0ed;border-color:#dcb5a3}.board-placeholder p{font-size:12px;color:#aa95bb;max-width:360px;margin-top:12px}.textbook-empty{background:#fffaf0;border-radius:12px;padding:18px;color:#aa8f5d;font-size:12px;margin:20px 0}.import-area{width:100%;min-height:170px;border:1px solid #e2d5ee;border-radius:10px;padding:15px;resize:vertical;font:12px/1.8 monospace;color:#776089}.word-pending{color:#bc8c58;font-size:11px}.course-picker{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.course-picker select{max-width:200px;margin:0;font-size:13px}.admin-course-note{font-size:12px;color:#ae9cba;line-height:1.8;margin:15px 0}
@media(max-width:700px){.course-bar{padding:12px 14px}.course-bar>span{width:100%}.course-bar select{font-size:10px;max-width:100px}.picture-card{min-height:122px}.card-back strong{font-size:15px}.word-card{min-height:122px}.course-picker select{max-width:150px}}
.workspace{padding-top:24px}.topbar{margin-bottom:18px}.time-banner{padding-top:16px;padding-bottom:16px}.section-heading{margin-top:23px;margin-bottom:14px}.mode-tab{padding-top:13px;padding-bottom:13px}.mode-tabs{margin-bottom:18px}.game-toolbar{padding-top:11px;padding-bottom:11px}.round-heading{padding-top:16px;padding-bottom:13px}.course-bar{padding-top:8px;padding-bottom:8px}.card-back{visibility:hidden}.flipped .card-back{visibility:visible}.speaking{color:#8560c1!important}.touch-tip{display:none}.section-heading h2{font-size:20px}.section-heading p{font-size:13px}.round-heading strong{font-size:16px}.round-heading p{font-size:12px}.category-button{font-size:12px}.reward-card>p,.connection-card p{font-size:12px}.reward-row>div>strong{font-size:13px}.reward-foot,.today-card>p{font-size:11px}.mode-tab strong{font-size:15px}.mode-tab small{font-size:12px}.sidebar-note p{font-size:12px}
@media(max-width:1000px){.topbar h1{font-size:18px}.time-banner{gap:12px}.time-progress{min-width:0;flex-basis:45%}.game-aside{grid-template-columns:1.4fr 1fr}.category-button{font-size:11px}}
@media(max-width:700px){.workspace{padding:18px 12px}.sidebar{padding:13px}.sidebar nav{gap:3px;width:100%;justify-content:space-between}.nav-item{font-size:12px;padding:8px 12px}.time-icon{width:40px;height:40px;font-size:28px}.time-copy{min-width:135px}.time-copy>span{font-size:11px}.time-copy>strong{font-size:25px}.time-banner .button{font-size:11px;min-height:40px;padding:9px 11px}.time-progress{flex-basis:100%}.progress-label{font-size:11px}.mode-icon{display:none}.mode-tab{padding:11px 9px}.mode-tab strong{font-size:13px}.mode-tab small{font-size:10px}.mode-tabs{gap:8px}.round-heading p{font-size:11px}.round-heading strong{font-size:14px}.board{padding-left:12px;padding-right:12px}.match-board{gap:5px;grid-template-columns:1fr 13px 1fr}.word-grid,.picture-grid{gap:7px}.word-card{min-height:121px}.word-card strong{font-size:15px}.word-card small{font-size:9px}.word-dot{top:5px;left:7px}.pair-divider>span{width:20px;height:24px;font-size:12px}.picture-card{padding:6px}.picture-card .card-art{max-width:85px}.game-aside{grid-template-columns:1fr}.reward-card,.today-card{display:none}.connection-card{font-size:12px}.page-footer{margin-top:14px}.content-panel{padding:18px}.admin-layout .sidebar nav{gap:0}.admin-layout .nav-item{padding:8px 5px;font-size:11px}.admin-layout .nav-item>span{display:none}.admin-heading{flex-wrap:wrap}.admin-heading>.button{min-height:42px}.admin-table th,.admin-table td{font-size:12px}.admin-filters select{min-height:42px}.course-bar select{min-height:34px}.listen-button{width:66px;height:66px}.listen-prompt{gap:16px}.listen-prompt strong{font-size:17px}.audio-option strong{font-size:20px}}
.mobile-switch{display:none}
@media(max-width:700px){.app-shell:not(.admin-layout) .sidebar{flex-wrap:nowrap;justify-content:space-between;min-height:68px}.mobile-switch{display:block;font-size:12px;color:#9975be;background:#f7f0ff;border:1px solid #eee0fc;border-radius:9px;padding:9px 12px;min-height:38px}.app-shell:not(.admin-layout) .sidebar nav{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #eee6f8;z-index:100;padding:10px 13px;gap:8px;box-shadow:0 -4px 20px #54437406}.app-shell:not(.admin-layout) .sidebar nav .nav-item{padding:9px 12px;justify-content:center;flex:1;font-size:12px}.app-shell:not(.admin-layout) .topbar{display:none}.app-shell:not(.admin-layout) .workspace{padding-bottom:85px}.app-shell:not(.admin-layout) .time-banner{padding:13px;gap:9px}.app-shell:not(.admin-layout) .time-progress .secondary{display:none}.app-shell:not(.admin-layout) .time-copy>strong{font-size:26px}.app-shell:not(.admin-layout) .time-icon{width:37px;height:37px}.app-shell:not(.admin-layout) .time-copy{min-width:126px}.app-shell:not(.admin-layout) .time-banner .button{font-size:10px;padding:9px}.app-shell:not(.admin-layout) .progress-label{font-size:10px}.app-shell:not(.admin-layout) .section-heading{margin-top:19px;margin-bottom:12px}.app-shell:not(.admin-layout) .mode-tabs{margin-bottom:14px}.app-shell:not(.admin-layout) .course-bar{padding:8px 13px}.app-shell:not(.admin-layout) .round-heading{padding:13px}.app-shell:not(.admin-layout) .game-toolbar{padding:9px 12px}.app-shell:not(.admin-layout) .column-label{font-size:8px;margin-bottom:9px}.app-shell:not(.admin-layout) .column-label>span{font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
.mode-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}.mode-tab{gap:8px;padding:13px 12px}.mode-level{white-space:nowrap}.mode-tab:disabled{background:#f0eef5;opacity:.6}.daily-strip{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:12px 16px;margin:-3px 0 18px;background:#efe9fd;color:#8061b6;border-radius:12px;font-size:12px}.daily-strip span{font-size:11px}.speak-board{display:flex;flex-direction:column;align-items:center;text-align:center;gap:16px;padding:26px}.speaking-picture{position:relative;width:min(280px,90%);padding:16px;background:white;border:2px solid #ece3f8;border-radius:20px;box-shadow:0 5px 20px #6655830b}.speaking-picture .card-art{width:100%;height:auto;aspect-ratio:1}.spoken-answer{display:block;font-size:20px;color:#7854cd;margin-top:12px}.mic-button{min-height:54px;min-width:220px}.mic-button.recording{background:#c25978}.mic-status{color:#805eaa;font-size:13px;min-height:24px}.mic-help{font-size:11px;color:#a5a0af;max-width:450px}.import-selects{display:grid;grid-template-columns:1fr 1fr;gap:15px}.batch-panel{margin-top:24px;border-top:1px solid #eee6f8;padding-top:20px}.batch-item{padding:15px;background:#f8f5fd;border-radius:12px;margin-top:12px}.batch-item>div{display:flex;justify-content:space-between;gap:12px}.batch-item span{font-size:12px;color:#9c8aaf}.batch-item progress{width:100%;height:7px;accent-color:#8459cf;margin:12px 0}.batch-item .button{margin-top:10px}.voice-panel{margin-bottom:25px}
.mode-level{display:inline;margin-left:auto}.mode-tab{min-width:0}.mode-tab>span:nth-child(2){min-width:0}
.word-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:9px}.generation-hint{margin:0 0 18px;line-height:1.8}.admin-layout #admin-words .admin-heading{align-items:flex-start}.word-actions #add-word{background:white;color:#8b7aab;border:1px solid #e9e5f2;box-shadow:none}
@media(max-width:1200px){.mode-icon{display:none}.mode-tab strong{font-size:13px}.mode-level{font-size:9px}.mode-tab{gap:6px}.mode-tab small{font-size:10px}}
@media(max-width:700px){.mode-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mode-tab{padding:10px 12px}.daily-strip{align-items:flex-start;flex-direction:column;gap:3px;margin-bottom:12px;padding:10px 13px}.speak-board{padding:20px 13px}.batch-item>div{flex-direction:column;gap:3px}.mic-help{font-size:10px}}
.card-art{position:relative}.picture-hint{position:absolute;left:3px;right:3px;bottom:2px;padding:2px 3px;border-radius:5px;background:#fffdf5ed;color:#6b5878;font-size:11px;line-height:1.25;text-align:center}.table-art .picture-hint{display:none}.speaking-picture .picture-hint{font-size:15px;padding:5px}
.child-client{background:linear-gradient(145deg,#f6f1ff,#f5f9ff 55%,#fff9ee);min-height:100vh}.client-workspace{width:100%;max-width:1900px;margin:auto;padding:22px 30px}.client-header{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:22px}.client-header .brand{padding:0}.client-account{display:flex;align-items:center;gap:10px}.client-account .button{min-height:36px;padding:7px 12px;font-size:12px}.subject-tabs{display:flex;gap:9px}.subject-tab{border-radius:12px;padding:10px 26px;background:#fff;color:#8c819e;border:1px solid #e7dfef;font-size:17px;font-weight:700}.subject-tab.active{background:#7956e6;color:white;border-color:#7956e6}.subject-tab:disabled{opacity:.55;cursor:default}.subject-tab small{display:block;font-size:9px;font-weight:400}.client-welcome{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}.client-welcome h1{font-size:24px}.client-welcome>span{font-size:12px;color:#9a88b6}.child-client .time-banner{padding:17px 23px}.child-client .time-progress{max-width:none}.child-client .time-copy>strong{font-size:32px}.child-client .section-heading{margin:21px 0 14px}.child-client .mode-tabs{margin-bottom:16px}.child-client .mode-tab strong{font-size:16px}.child-client .mode-tab small{font-size:12px}.child-client .mode-tab{padding:14px 19px}.child-client .game-toolbar{padding:12px 22px;justify-content:space-between}.streak-banner{font-size:17px;font-weight:700;color:#a77927}.child-client .round-heading{padding:16px 22px}.child-client .round-heading strong{font-size:20px}.child-client .round-heading p{font-size:13px}.child-client .round-count{font-size:13px}.child-client .match-board{grid-template-columns:minmax(0,1fr) 25px minmax(0,1fr);gap:13px}.child-client .word-grid,.child-client .picture-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.child-client .word-card,.child-client .picture-card{min-height:145px}.child-client .word-card strong{font-size:22px}.child-client .word-card small{font-size:12px}.child-client .picture-card{padding:0}.child-client .picture-card .card-art{max-width:none;width:100%;height:145px;min-height:145px;aspect-ratio:auto}.child-client .column-label{font-size:11px}.child-client .column-label>span{font-size:12px}.child-client .game-footer{font-size:12px}.client-achievements{display:flex;align-items:center;gap:24px;padding:17px 8px;color:#9a85ad;font-size:12px}.client-achievements>div{display:flex;align-items:center;gap:8px}.client-achievements strong{font-size:24px;color:#8060be}.client-achievements details{margin-left:auto;text-align:right}.client-achievements summary{cursor:pointer}.client-achievements small{display:block}.client-connection{text-align:center;color:#b1a3bd;font-size:11px}.child-client .celebration{left:50%;width:max-content;max-width:90vw;text-align:center;font-size:30px;transform:translate(-50%,-50%);background:#fffae5ef;padding:14px 24px;border-radius:24px;box-shadow:0 9px 35px #aa80bd33}.child-client .audio-option strong{font-size:28px}.child-client .speaking-picture{width:320px}.progress-filter{width:100%;margin:15px 0}.progress-summary{display:flex;flex-wrap:wrap;gap:13px;background:#f4effb;padding:15px;border-radius:12px;color:#7956a9}.progress-records{max-height:55vh;overflow:auto;margin-top:14px}.progress-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}
.recent-accounts{margin:16px 0}.recent-accounts p{font-size:12px;margin-bottom:8px;color:#9d8eb0}.recent-accounts .button{padding:7px 13px;min-height:35px;margin:0 6px 6px 0}.child-client #register-account{margin-top:12px}
@media(max-width:1199px){.child-client .word-grid,.child-client .picture-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.child-client .word-card,.child-client .picture-card,.child-client .picture-card .card-art{min-height:136px}.child-client .picture-card .card-art{height:136px}.client-welcome{flex-direction:column;align-items:flex-start}.client-header{flex-wrap:wrap}.child-client .time-banner .button{font-size:13px}.child-client .mode-level{display:block}}
@media(max-width:700px){.client-workspace{padding:14px 12px 22px}.client-header{gap:12px;margin-bottom:18px}.client-header .brand{font-size:18px}.client-account{gap:7px}.client-account .avatar{display:none}.client-account strong{font-size:12px}.client-account .button{font-size:11px;padding:7px 9px}.subject-tabs{order:3;width:100%}.subject-tab{flex:1;padding:7px;font-size:15px}.client-welcome h1{font-size:20px}.child-client .time-copy>strong{font-size:27px}.child-client .time-banner{padding:12px;gap:10px}.child-client .time-progress{flex-basis:100%;order:4}.child-client .time-icon{display:none}.child-client .mode-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.child-client .mode-tab{padding:11px}.child-client .mode-tab strong{font-size:14px}.child-client .mode-tab small{font-size:10px}.child-client .section-heading h2{font-size:17px}.child-client .section-heading .button{font-size:10px}.child-client .game-toolbar{padding:10px 12px}.streak-banner{font-size:12px}.child-client #new-round{font-size:11px;min-height:35px;padding:7px 10px}.child-client .word-grid,.child-client .picture-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.child-client .match-board{grid-template-columns:minmax(0,1fr) 12px minmax(0,1fr);gap:5px}.child-client .board{padding:0 10px 17px}.child-client .word-card,.child-client .picture-card,.child-client .picture-card .card-art{min-height:112px}.child-client .picture-card .card-art{height:112px}.child-client .word-card strong{font-size:17px}.child-client .word-card small{font-size:10px}.child-client .round-heading{padding:14px 12px}.child-client .round-heading strong{font-size:16px}.child-client .round-heading p{font-size:11px}.child-client .round-count{font-size:10px}.child-client .column-label{letter-spacing:0;font-size:9px}.child-client .column-label>span{font-size:9px}.child-client .game-footer{padding:12px;font-size:11px}.client-achievements{flex-wrap:wrap;gap:14px}.client-achievements>p{width:100%;order:4;font-size:11px}.client-achievements details{font-size:11px}.child-client .celebration{font-size:19px;padding:12px 16px}.progress-records .admin-table{min-width:580px}}
.child-client .picture-card .card-art{height:auto!important;min-height:0!important;aspect-ratio:1}

.child-client .round-progress{width:360px;max-width:100%;flex-shrink:0}.round-progress-label{display:flex;justify-content:space-between;gap:14px;color:#655180;font-size:13px}.round-progress-label strong{font-size:22px;color:#744bda}.round-progress-track{height:20px;margin-top:9px;background:#ede7f7;border-radius:12px;overflow:hidden;box-shadow:inset 0 1px 3px #dacfea}.round-progress-track>span{display:block;height:100%;width:0;background:linear-gradient(90deg,#8c65e5,#56c797);border-radius:12px;transition:width .45s}.us-ipa{display:block;color:#8a7ca3;font-size:16px;margin-top:8px}.listen-button{min-width:100px;font-size:22px!important}.update-notice{color:#705ba2;text-align:center;font-size:13px;margin:12px}@media(max-width:600px){.child-client .round-heading{align-items:stretch;flex-direction:column;gap:18px}.child-client .round-progress{width:100%}.round-progress-track{height:22px}}

.child-client .picture-hint{font-size:26px!important;line-height:1.35;font-weight:800;padding:6px 8px;max-width:100%;text-shadow:0 1px 1px #fff}.child-client .image-option .picture-hint{font-size:30px!important}@media(max-width:600px){.child-client .picture-hint,.child-client .image-option .picture-hint{font-size:19px!important;padding:4px}}

.listening-feedback{display:flex;align-items:center;justify-content:center;gap:24px;width:100%;padding:16px;background:#f6f2fe;border-radius:18px}.listening-feedback .card-art{width:140px;height:140px;flex-shrink:0;aspect-ratio:1;border-radius:12px}.listening-feedback>div{display:flex;flex-direction:column;gap:6px}.listening-feedback strong{font-size:30px}.listening-feedback small{font-size:19px;color:#77628e}.listening-feedback b{color:#38a77b}.listening-feedback span{font-size:18px}.listening-feedback.hidden{display:none}@media(max-width:600px){.listening-feedback{gap:12px;padding:12px}.listening-feedback .card-art{width:100px;height:100px}.listening-feedback strong{font-size:24px}.listening-feedback small{font-size:15px}}

/* Compact learning view: the playing area follows the usable viewport. */
.compact-details-toggle{display:none}
@media(max-width:1100px){
  .child-client .client-workspace{height:100vh;height:100dvh;min-height:0;display:flex;flex-direction:column;padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));gap:8px}
  .child-client:not(.mobile-details-open) .client-header,.child-client:not(.mobile-details-open) .client-welcome,.child-client:not(.mobile-details-open) .time-progress,.child-client:not(.mobile-details-open) #start-computer,.child-client:not(.mobile-details-open) .section-heading,.child-client:not(.mobile-details-open) .daily-strip,.child-client:not(.mobile-details-open) .client-achievements,.child-client:not(.mobile-details-open) .client-connection{display:none}
  .child-client .time-banner{flex:0 0 auto;padding:6px 12px;min-height:52px;gap:10px;flex-wrap:wrap;border-radius:14px}
  .child-client .time-icon{display:none}.child-client .time-copy{display:flex;align-items:center;gap:12px;min-width:0;flex:1}.child-client .time-copy>span{font-size:12px;white-space:nowrap}.child-client .time-copy>strong{font-size:24px;white-space:nowrap;line-height:1.4}.child-client .time-copy small{font-size:11px;margin:0 2px}
  .child-client .compact-details-toggle{display:inline-flex;min-height:38px;padding:5px 10px;font-size:12px}
  .child-client #view-game{display:flex;flex-direction:column;flex:1;min-height:0;gap:8px}
  .child-client .mode-tabs{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:0;flex-shrink:0}
  .child-client .mode-tab{padding:9px 3px;min-height:42px;border-radius:10px;justify-content:center;text-align:center;gap:0}.child-client .mode-tab strong{font-size:clamp(11px,2.9vw,15px);white-space:nowrap}.child-client .mode-icon,.child-client .mode-level,.child-client .mode-tab small{display:none}
  .child-client .game-panel{flex:1;min-height:0;display:flex;flex-direction:column;border-radius:14px}
  .child-client .game-toolbar{flex:0 0 auto;padding:5px 10px;min-height:37px;gap:6px}.child-client .streak-banner{font-size:12px;line-height:1.3}.child-client #new-round{min-height:30px;padding:4px 8px;font-size:11px}
  .child-client .round-heading{padding:7px 10px;gap:4px;flex:0 0 auto;flex-direction:column;align-items:stretch}.child-client .round-heading>div:first-child{display:none}.child-client .round-progress{width:100%}.child-client .round-progress-label{font-size:11px;align-items:center;line-height:1.4}.child-client .round-progress-label strong{font-size:17px}.child-client .round-progress-track{height:12px;margin-top:4px}
  .child-client .board{flex:1;min-height:0;padding:0 8px 7px;overflow:auto;overscroll-behavior:contain}
  .child-client .match-board{grid-template-columns:minmax(0,1fr) 10px minmax(0,1fr);gap:4px;align-items:stretch}
  .child-client .card-column{display:flex;flex-direction:column;min-height:0;min-width:0}.child-client .column-label{margin:0 0 4px;font-size:9px;letter-spacing:0;flex:0 0 auto}.child-client .column-label>span{font-size:9px}
  .child-client .word-grid,.child-client .picture-grid{flex:1;min-height:0;grid-template-columns:repeat(var(--match-columns,2),minmax(0,1fr));grid-template-rows:repeat(var(--match-rows,5),minmax(44px,1fr));gap:5px}
  .child-client .word-card,.child-client .picture-card{min-height:0;height:100%;border-radius:9px;padding:4px;box-shadow:none}.child-client .word-card strong{font-size:clamp(12px,3.5vw,18px);line-height:1.16;max-width:100%}.child-client .word-card small{font-size:clamp(9px,2.4vw,12px);line-height:1.2;margin-top:3px;overflow-wrap:anywhere}.child-client .word-dot,.child-client .card-corner,.child-client .card-suit{display:none}
  .child-client .picture-card{padding:0}.child-client .picture-card .card-front{height:100%;display:flex;justify-content:center;align-items:center}.child-client .picture-card .card-art{width:100%;height:100%!important;min-height:0!important;aspect-ratio:auto;border-radius:7px}.child-client .picture-label{font-size:8px;padding:0 3px;bottom:2px;right:2px}
  .child-client .picture-hint{font-size:clamp(13px,3.7vw,20px)!important;padding:2px 3px;line-height:1.2;bottom:1px}.child-client .card-back{padding:4px;justify-content:center}.child-client .card-back strong{font-size:clamp(13px,3.7vw,21px);overflow-wrap:anywhere}.child-client .card-back small{font-size:10px;margin:2px 0}.child-client .card-back span{font-size:12px}.child-client .card-back b{display:none}
  .child-client .pair-divider{padding:0}.child-client .pair-divider>span{width:12px;height:22px;font-size:10px}
  .child-client .game-footer{flex:0 0 auto;min-height:29px;padding:5px 9px;font-size:10px;line-height:1.4}.child-client .game-footer>span:first-child{min-width:0}.child-client #game-status{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.child-client .game-footer>span:last-child{display:none}
  .child-client .audio-board{display:flex;flex-direction:column;gap:8px;position:relative}.child-client .listen-prompt{flex-shrink:0;padding:8px 0;gap:14px}.child-client .listen-button{width:64px;height:54px;min-width:80px;border-radius:15px;box-shadow:0 0 0 4px #f8f4ff;font-size:19px!important}.child-client .listen-prompt strong{font-size:16px}.child-client .listen-prompt p{font-size:11px}.child-client .audio-options{flex:1;min-height:0;grid-template-rows:repeat(2,minmax(44px,1fr));gap:8px}.child-client .audio-option{min-height:0;padding:5px}.child-client .audio-option strong{font-size:clamp(18px,5vw,27px);overflow-wrap:anywhere}.child-client .audio-option .us-ipa{font-size:13px;margin-top:4px}.child-client .image-option{padding:0}.child-client .image-option .card-art{min-height:0;height:100%;aspect-ratio:auto}.child-client .image-option .picture-hint{font-size:clamp(17px,4.6vw,26px)!important}
  .child-client .listening-feedback:not(.hidden){position:absolute;inset:4px;width:auto;padding:18px;background:#f6f2ff;border:2px solid #d3bdf3;border-radius:14px;z-index:4;flex-direction:column;gap:12px;text-align:center}.child-client .listening-feedback .card-art{width:min(180px,32vh);height:min(180px,32vh);min-height:0;flex-shrink:1;aspect-ratio:1}.child-client .listening-feedback>div{gap:4px}.child-client .listening-feedback strong{font-size:clamp(22px,6vw,32px)}.child-client .listening-feedback small{font-size:16px}.child-client .listening-feedback span{font-size:18px}
  .child-client .speak-board{gap:7px;justify-content:center;padding:8px}.child-client .speaking-picture{width:min(280px,38dvh);padding:8px}.child-client .speaking-picture .card-art{height:auto;min-height:0}.child-client .mic-button{min-height:44px;min-width:180px}.child-client .mic-status{font-size:12px;min-height:18px}.child-client #hear-example{min-height:32px;padding:4px 12px;font-size:12px}.child-client .mic-help{font-size:10px;line-height:1.4}.child-client .spoken-answer{font-size:15px;margin-top:4px}
  .child-client .round-finished,.child-client .board-placeholder{min-height:0;height:100%;padding:12px}.child-client .round-finished>span{font-size:44px}.child-client .round-finished h2{font-size:20px;margin-top:10px}.child-client .round-finished p{font-size:12px;margin:7px 0 12px}.child-client dialog{max-height:94dvh;overflow:auto}.child-client .dialog-content{padding:22px}
  .child-client.mobile-details-open .client-workspace{height:auto;min-height:100dvh}.child-client.mobile-details-open #view-game{min-height:calc(100dvh - 150px)}.child-client.mobile-details-open .game-panel{min-height:calc(100dvh - 210px)}.child-client.mobile-details-open .client-header{margin-bottom:0}.child-client.mobile-details-open .client-welcome{margin:0}.child-client.mobile-details-open .client-welcome h1{font-size:17px}.child-client.mobile-details-open .section-heading{margin:3px 0}.child-client.mobile-details-open .time-progress{width:100%;flex-basis:100%}.child-client.mobile-details-open .client-achievements{padding:8px;font-size:11px}
  .child-client .update-notice{position:fixed;bottom:8px;left:8px;right:8px;z-index:6;background:#f3ebff;border-radius:9px;padding:8px;font-size:11px;margin:0}
}
@media(max-width:360px){.child-client .time-copy{gap:6px}.child-client .time-copy>span{font-size:10px}.child-client .time-copy>strong{font-size:22px}.child-client .compact-details-toggle{padding:4px 7px}}
@media(max-width:1100px) and (max-height:520px){.child-client .client-workspace{gap:4px;padding:4px}.child-client .time-banner{min-height:40px;padding:2px 10px}.child-client #view-game{gap:4px}.child-client .mode-tab{min-height:32px;padding:5px}.child-client .game-toolbar{min-height:30px;padding:2px 8px}.child-client .round-heading{padding:3px 8px}.child-client .round-progress-track{height:8px;margin-top:2px}.child-client .game-footer{min-height:22px;padding:3px 8px}.child-client .listen-prompt{padding:3px 0}.child-client .listen-button{height:40px;width:54px}.child-client .listening-feedback:not(.hidden){flex-direction:row}.child-client .speaking-picture{width:min(180px,30dvh)}.child-client .speak-board{display:grid;grid-template-columns:1fr 1fr;align-content:center;gap:5px}.child-client .speaking-picture{grid-row:1/5;justify-self:end}.child-client .mic-help{grid-column:1/-1}}

@media(max-width:1100px){
  .child-client .picture-card:has(.picture-hint) .card-art,.child-client .image-option:has(.picture-hint) .card-art{height:calc(100% - 20px)!important}
  .child-client .picture-card:has(.picture-hint) .card-front,.child-client .image-option:has(.picture-hint) .card-front{height:100%;align-items:flex-start;display:flex}
  .child-client .picture-card .picture-hint,.child-client .image-option .picture-hint{top:100%;bottom:auto;left:0;right:0;height:20px;font-size:12px!important;line-height:18px;padding:1px 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#fffcf5;border-radius:0;font-weight:650}
  .child-client .speaking-picture .picture-hint,.child-client .listening-feedback .picture-hint{font-size:13px!important;padding:2px 4px;font-weight:650}
}
@media(min-width:650px) and (max-width:1100px){.child-client .picture-card .picture-hint,.child-client .image-option .picture-hint{font-size:14px!important}}
.prize-row{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto;align-items:end;gap:9px;padding:10px;border:1px solid #eee5f5;border-radius:12px;margin:12px 0}.prize-row label{min-width:0;font-size:11px}.prize-row input,.prize-row select{width:100%}.prize-row .button{margin-bottom:14px}#prize-form>label{display:block;max-width:260px}#draw-enabled{width:auto}#draw-result{margin:15px 0;color:#7856ba;font-weight:700}.reward-prize-list{margin:12px 0;padding:12px;background:#f5f0fc;border-radius:10px}#my-rewards h4{margin:14px 0 6px}@media(max-width:700px){.prize-row{grid-template-columns:1fr 1fr}.prize-row>label:first-child{grid-column:1/-1}}
.child-client .coin-celebration{white-space:normal;font-size:22px;line-height:1.6;pointer-events:none}@media(max-width:1100px){.child-client .coin-celebration{font-size:17px}}
.child-client .coin-celebration{top:22px;transform:translate(-50%,0);padding:9px 18px;font-size:18px}@media(max-width:1100px){.child-client .coin-celebration{top:66px;font-size:15px;padding:7px 12px}}
