:root{--ink:#344a68;--blue:#4b92e8;--line:#bcd5ea;--green:#3ba58a}*{box-sizing:border-box}body{margin:0;background-color:#edf8ff;background-image:radial-gradient(#d3e9f7 1.6px,transparent 1.6px);background-size:24px 24px;color:var(--ink);font-family:"Arial Rounded MT Bold","Trebuchet MS","Microsoft YaHei","Segoe UI",sans-serif;font-size:15px}.app{max-width:1240px;margin:auto;padding:0 36px}header{height:88px;display:flex;align-items:center;gap:20px;border-bottom:3px dashed #bedcec}.brand{font-size:30px;letter-spacing:-1px;font-weight:900;text-decoration:none;color:#4a82c7;text-shadow:0 2px 0 #fff}.brand span{color:#ffad35}.brand i{font-style:normal;font-size:16px;letter-spacing:1px;color:#6082aa;margin-left:14px}.header-note{margin-left:auto;background:#fff6c9;border:2px solid #f0d985;border-radius:24px;padding:10px 16px;font-size:12px;font-weight:700;color:#9a7328;display:flex;align-items:center;gap:7px}.dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#43b98d;flex-shrink:0}.dot.offline{background:#ecae4d}.icon-button{width:40px;height:40px;border:2px solid #a9cbea;border-radius:13px;color:#5c91c7;background:white;box-shadow:0 3px 0 #a9cbea;font-size:22px;cursor:pointer}.intro{position:relative;padding:35px 265px 34px 0;min-height:205px}.eyebrow{font-size:12px;letter-spacing:1.4px;font-weight:800;color:#6c99c7}.intro h1{font-size:40px;font-weight:900;letter-spacing:1px;margin:14px 0 12px;color:#425f91;text-shadow:0 3px 0 white}.intro h1 span{color:#e99c2e}.intro p{font-size:15px;color:#718aa7;line-height:1.8;margin:0}.hero-mascot{position:absolute;right:12px;top:4px;width:244px;transform:rotate(2deg);pointer-events:none}.hero-mascot svg{width:100%;display:block}.hero-mascot>span{position:absolute;right:0;top:10px;background:#fff;border:2px solid #b7d9ec;border-radius:16px;padding:8px 12px;font-size:11px;font-weight:700;transform:rotate(-4deg);box-shadow:0 3px 0 #d3eaf5}.layout{display:grid;grid-template-columns:minmax(0,1fr) 316px;gap:24px;align-items:start}.main-column{display:grid;gap:24px}.card{border:3px solid #b9d4e9;border-radius:25px;background:#fff;padding:24px;box-shadow:0 7px 0 #d1e5f3;position:relative}.input-card{border-color:#edcf8e;box-shadow:0 7px 0 #f5e4b7}.input-card:before{content:'';position:absolute;width:62px;height:14px;background:#ffe393b8;left:calc(50% - 31px);top:-9px;transform:rotate(-4deg);border:1px solid #e8ca71}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}h2{font-size:18px;font-weight:800;margin:0}.step{display:inline-grid;place-items:center;width:28px;height:28px;background:#e9f4ff;border:2px solid #b7d5f0;border-radius:9px;color:#6398ca;font-size:11px;margin-right:8px;vertical-align:middle}.input-card .step{color:#b68c2d;background:#fff3bd;border-color:#ecd38d}.text-button{font:inherit;font-size:12px;font-weight:700;color:#6587b1;border:2px solid #d0e1ef;border-radius:12px;background:#f3f9ff;box-shadow:0 3px 0 #d5e5f1;padding:9px 12px;cursor:pointer;text-decoration:none;display:inline-block}.text-button:hover{background:#e4f1ff}.text-button:active{box-shadow:0 1px 0 #d5e5f1;transform:translateY(2px)}textarea,input,select{font:inherit;color:var(--ink)}textarea{width:100%;resize:vertical;min-height:84px;max-height:260px;border:2px solid #e8d9ab;background:#fffdf2;border-radius:16px;padding:14px 17px;font-size:18px;line-height:1.6;box-shadow:inset 0 3px 0 #f7f0db}textarea:focus,input:focus,select:focus{outline:3px solid #a9d4fa;outline-offset:3px}.input-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:16px;gap:12px}#input-count{font-size:12px;font-weight:700;color:#a3894f;background:#fff7dc;border-radius:12px;padding:7px 11px}.primary,.secondary,.audio-button{font:inherit;font-size:14px;font-weight:800;cursor:pointer;border:2px solid;border-radius:16px;padding:12px 18px;transition:transform .15s,box-shadow .15s,background .15s}.primary{background:#75b6fa;border-color:#4383c9;color:#173f72;box-shadow:0 5px 0 #4383c9,inset 0 3px 0 #a1d1ff}.primary span{margin-left:12px}.primary:hover{background:#8fc6ff;transform:translateY(-2px);box-shadow:0 7px 0 #4383c9,inset 0 3px 0 #b9deff}.primary:active{transform:translateY(4px);box-shadow:0 1px 0 #4383c9}#start{background:#ffd56b;border-color:#d5a03b;color:#79521b;box-shadow:0 5px 0 #d5a03b,inset 0 3px 0 #ffe69e}#start:hover{background:#ffe188}#start:active{box-shadow:0 1px 0 #d5a03b}.secondary{background:#eee3ff;color:#705491;border-color:#b499d0;box-shadow:0 5px 0 #b499d0,inset 0 3px 0 #f7f0ff}.secondary:hover{background:#f5eaff;transform:translateY(-2px)}.secondary:active{transform:translateY(4px);box-shadow:0 1px 0 #b499d0}button:disabled{opacity:.55;cursor:wait}button:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #f0b744;outline-offset:4px}.error{color:#b75854;font-size:13px;margin-bottom:0}.error:empty{display:none}.badge{font-size:12px;font-weight:800;color:#568bb9;border:2px solid #bfdaf0;border-radius:16px;background:#edf7ff;padding:6px 12px}.progress-track{height:12px;background:#eef5fa;border:2px solid #d2e4f1;border-radius:12px;margin:0 0 22px;overflow:hidden}#progress-bar{height:100%;width:0;background:repeating-linear-gradient(120deg,#82d7b1 0,#82d7b1 12px,#a1e8c6 12px,#a1e8c6 24px);border-radius:8px;transition:width .2s}.zone-label{font-size:14px;font-weight:800;color:#688aaa;display:flex;justify-content:space-between;align-items:center;gap:12px}.zone-label span{font-size:11px;font-weight:400;color:#839bb4;text-align:right}.word-zone{display:flex;flex-wrap:wrap;align-content:flex-start;gap:12px;padding:19px 15px;border-radius:20px;min-height:120px;margin-top:12px}.answer-zone{border:3px dashed #9fcebb;background:#f0fcf5;background-image:radial-gradient(#d4eddd 1px,transparent 1px);background-size:14px 14px}.answer-zone:empty:before{content:'✨ Drop your tiles here!';margin:auto;padding:23px 0;font-size:14px;color:#789b88}.answer-zone.drag-over{background:#dcf7e7;border-color:#55ac8b}.bank-label{margin-top:24px}.bank-zone{background:#f3f7ff;border:2px solid #d2e0f2;min-height:104px}.bank-zone:empty:before{content:'🎉 All tiles are ready. Check your answer!';font-size:13px;color:#8197b4;padding:16px 0}.word{font:inherit;font-size:18px;font-weight:700;border:2px solid var(--tile-border,#d2ae57);background:var(--tile-bg,#ffe99b);color:#3b5270;box-shadow:0 4px 0 var(--tile-border,#d2ae57),inset 0 3px 0 #ffffff66;border-radius:13px;padding:10px 15px;cursor:grab;user-select:none;touch-action:none;max-width:100%;overflow-wrap:anywhere;transition:transform .12s,box-shadow .12s}.word:nth-child(5n+1){--tile-bg:#ffe99b;--tile-border:#d7b964}.word:nth-child(5n+2){--tile-bg:#b5e9fc;--tile-border:#7ab9d2}.word:nth-child(5n+3){--tile-bg:#fbd2df;--tile-border:#d7a2b5}.word:nth-child(5n+4){--tile-bg:#d4c7fb;--tile-border:#ac98d8}.word:nth-child(5n){--tile-bg:#bfeccc;--tile-border:#8abd97}.word:hover{transform:translateY(-3px) rotate(-2deg);box-shadow:0 7px 0 var(--tile-border),inset 0 3px 0 #ffffff66}.word:active{cursor:grabbing;transform:translateY(3px);box-shadow:0 1px 0 var(--tile-border)}.word.right{--tile-bg:#b6ecc4!important;--tile-border:#6db184!important}.word.wrong{--tile-bg:#ffe0ba!important;--tile-border:#deaa74!important}.word.dragging{opacity:.3}.word.drop-before{border-left:5px solid #368dab}.drag-ghost{position:fixed;z-index:99;pointer-events:none;transform:rotate(-6deg);opacity:.97;box-shadow:0 8px 0 #48697b44}.feedback{font-size:13px;color:#7a91ae;line-height:1.8;background:#f4f8fd;border-radius:12px;padding:10px 13px;margin:18px 0;min-height:40px}.feedback.success{color:#398560;background:#e6f8e9;font-weight:700}.feedback.warning{color:#a07136;background:#fff3dc}.game-actions{display:flex;align-items:center;gap:12px;padding-bottom:5px}.game-actions .text-button{margin-left:auto}.reveal{border-top:2px dashed #d9e7f2;margin-top:21px;padding-top:16px;font-size:12px;color:#8196b2}.reveal summary{cursor:pointer;min-height:24px;width:fit-content}.reveal p{font-size:17px;line-height:1.8;color:var(--ink)}.audio-card{background:#fffbf0;border-color:#ebd19a;box-shadow:0 7px 0 #f1dfb9;padding:24px}.audio-symbol{display:grid;place-items:center;font-size:34px;width:66px;height:66px;background:#ffe1a2;border:2px solid #e5ba68;border-radius:21px;box-shadow:0 4px 0 #e5ba68;transform:rotate(-8deg);margin-bottom:22px}.audio-card .eyebrow{color:#b99759;font-size:11px}.audio-card h2{font-size:23px;margin:11px 0;color:#a27936}.muted{font-size:13px;color:#998767;line-height:1.9}.voice{display:flex;align-items:center;gap:10px;background:white;border:2px solid #eedfb8;border-radius:17px;padding:12px;margin:23px 0 19px}.avatar{display:grid;place-items:center;background:#e3f3ff;border:2px solid #b7d5ed;border-radius:14px;width:43px;height:43px;font-size:25px;flex-shrink:0}.voice strong{font-size:14px}.voice small{display:block;font-size:10px;color:#a28e6e;margin-top:5px}.voice-wave{margin-left:auto;color:#dda957;font-size:12px;letter-spacing:1px}.audio-button{width:100%;background:#ffaec3;border-color:#cf7c99;color:#864362;padding:14px 9px;box-shadow:0 5px 0 #cf7c99,inset 0 3px 0 #ffccda}.audio-button:hover{background:#ffbfd1;transform:translateY(-2px)}.audio-button:active{transform:translateY(4px);box-shadow:0 1px 0 #cf7c99}.audio-message{font-size:12px;line-height:1.8;color:#9d8964;margin:16px 0 19px;overflow-wrap:anywhere}.audio-message.error{color:#b75854}audio{width:100%;height:40px;margin:18px 0 10px}.service{display:flex;align-items:center;gap:7px;flex-wrap:wrap;border-top:2px dashed #ead9b3;padding-top:16px;font-size:10px;color:#958366}.service .text-button{margin-left:auto;font-size:10px;padding:7px 8px;background:#fff;border-color:#e8d8b6;box-shadow:0 2px 0 #e8d8b6;color:#a18655}.settings{border-top:2px dashed #ead9b3;margin-top:18px;padding-top:16px;font-size:12px;color:#a08b63}.settings summary{cursor:pointer;font-weight:700;padding:5px 0}.settings label{display:block;font-size:11px;margin:15px 0 8px}.settings input,.settings select{border:2px solid #e5d9ba;padding:10px 8px;width:100%;font-size:11px;border-radius:10px;background:white}.settings-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.settings-tip{font-size:10px;line-height:1.8}.tip-card{display:flex;gap:12px;background:#eee8ff;border:2px solid #cabbef;border-radius:19px;padding:19px 16px;margin-top:23px;box-shadow:0 4px 0 #d7ccef;transform:rotate(1deg)}.tip-card>span{font-size:26px;color:#a08bd1}.tip-card strong{font-size:13px;color:#8370a9}.tip-card p{font-size:12px;line-height:1.9;color:#9887b5;margin:7px 0 0}footer{display:flex;justify-content:space-between;gap:12px;margin-top:37px;padding:23px 0;border-top:3px dashed #bedcec;color:#8ba8c2;font-size:12px}footer span:first-child,footer span:last-child{font-size:10px;letter-spacing:1px;font-weight:800}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}[hidden]{display:none!important}@media(max-width:1050px){.app{padding:0 24px}.layout{grid-template-columns:minmax(0,1fr) 290px;gap:20px}.card{padding:20px}.intro h1{font-size:34px}.intro{padding-right:215px}.hero-mascot{width:210px}.game-actions{gap:9px}.game-actions .primary,.game-actions .secondary{font-size:12px;padding:12px}.game-actions .text-button{font-size:10px;padding:9px}.zone-label span{max-width:165px;font-size:10px}.brand i{font-size:13px}}@media(max-width:760px){.app{padding:0 16px}header{height:76px;gap:12px}.brand{font-size:24px}.brand i{font-size:11px;margin-left:8px}.header-note{display:none}.icon-button{margin-left:auto}.intro{min-height:180px;padding:27px 94px 26px 0}.intro .eyebrow{font-size:9px;letter-spacing:.8px}.intro h1{font-size:29px;line-height:1.5;letter-spacing:0;margin:8px 0}.intro h1 span{display:block}.intro p{font-size:12px;line-height:1.8}.hero-mascot{width:128px;top:42px;right:-5px;opacity:.9}.hero-mascot>span{display:none}.layout{grid-template-columns:1fr;gap:24px}.card{padding:19px 17px;border-radius:22px}.section-heading{gap:8px}h2{font-size:16px}.step{width:24px;height:24px;margin-right:5px;font-size:10px}.section-heading .text-button{font-size:11px;padding:8px}.input-bottom .primary{font-size:13px;padding:12px}.input-bottom{gap:8px}textarea{font-size:17px;min-height:90px}.word-zone{padding:16px 12px;gap:10px}.word{font-size:17px;padding:10px 13px;min-height:46px}.zone-label{font-size:13px;align-items:flex-start}.zone-label span{max-width:155px;font-size:10px}.game-actions{flex-wrap:wrap;gap:12px}.game-actions .primary,.game-actions .secondary{font-size:12px;padding:12px 10px;min-height:44px}.game-actions .primary span{margin-left:4px}.game-actions .text-button{font-size:10px;padding:10px 6px;min-height:40px}.audio-card{padding:24px}.audio-card h2{font-size:24px}.tip-card{margin-top:22px}.feedback{font-size:12px}.answer-zone:empty:before{font-size:12px}footer{font-size:10px;margin-top:28px}footer span:last-child{display:none}}@media(max-width:360px){.brand i{display:none}.intro h1{font-size:26px}.hero-mascot{width:115px}.game-actions .text-button{margin-left:0}.zone-label{flex-direction:column;gap:5px}.zone-label span{max-width:none}.section-heading .text-button{font-size:10px;padding:7px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.upload-zone{background:#fffef9;border:3px dashed #e8bc76;border-radius:20px;padding:20px 12px 12px;text-align:center;margin-top:20px}.upload-zone>span{display:block;font-size:36px;margin-bottom:16px}.upload-zone p{font-size:11px;color:#a78a5d;line-height:1.9;margin:13px 0 0}.upload-zone.drag-over{border-color:#c77398;background:#ffe8f0}.audio-file-info{display:flex;align-items:center;gap:10px;margin-top:20px;padding:12px;background:#fff;border:2px solid #efdcb3;border-radius:15px}.audio-file-info>span{font-size:24px}.audio-file-info>div{min-width:0}.audio-file-info strong{font-size:12px;overflow-wrap:anywhere;display:block;color:#8c7450}.audio-file-info small{display:block;font-size:11px;margin-top:5px;color:#a99572}.playback-tools{display:flex;align-items:center;gap:10px;margin-top:8px}.playback-tools .secondary{font-size:12px;padding:10px 12px;flex:1;white-space:nowrap}.playback-tools select{font:inherit;font-size:11px;color:#927749;border:2px solid #e5d1a8;background:white;border-radius:12px;padding:10px 6px;width:100px}.audio-file-actions{display:flex;gap:10px;justify-content:space-between;margin-top:17px}.audio-file-actions .text-button{font-size:10px;padding:8px}.tts-backup{border-top:2px dashed #ead9b3;margin-top:20px;padding-top:15px}.tts-backup>summary{font-size:12px;color:#ac926b;font-weight:700;cursor:pointer;padding:6px 0}.tts-backup>.audio-button{margin:10px 0 18px;font-size:12px;background:#eadbfb;border-color:#b89bcb;color:#806494;box-shadow:0 4px 0 #b89bcb}.tts-backup>.settings-tip{font-size:11px;color:#a48f6e;line-height:1.8}

/* The puzzle is the stage; input and audio are compact supporting controls. */
.app{max-width:1360px;padding:0 32px}header{height:64px;border-bottom-width:2px}.brand{font-size:25px}.brand i{font-size:13px}.header-note{font-size:10px;padding:6px 11px}.icon-button{width:34px;height:34px;font-size:19px}.intro{min-height:96px;padding:20px 120px 17px 0}.intro .eyebrow{display:none}.intro h1{font-size:25px;margin:0 0 5px;letter-spacing:0}.intro p{font-size:12px}.hero-mascot{width:115px;top:-1px;right:4px}.hero-mascot>span{display:none}.layout{grid-template-columns:minmax(0,1fr) 230px;gap:20px}.main-column{gap:18px}.input-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 14px;border:2px solid #d1dfec;box-shadow:0 3px 0 #dce9f3;border-radius:17px;padding:13px 16px;background:#f8fbfe}.input-card:before{display:none}.input-card .section-heading{grid-column:1/-1;margin:0}.input-card h2{font-size:12px;color:#8399b1}.input-card .step{display:none}.input-card .text-button{font-size:10px;box-shadow:none;border:0;background:transparent;padding:0}.input-card textarea{font-size:15px;min-height:44px;height:44px;max-height:140px;padding:9px 12px;border:1px solid #d4e2ed;border-radius:10px;background:#fff;box-shadow:none;resize:vertical}.input-bottom{margin:0;gap:10px}#input-count{font-size:10px;padding:5px 7px;background:#edf3f8;color:#92a1b3;white-space:nowrap}.input-bottom .primary{font-size:12px;padding:10px 14px;border-radius:12px;white-space:nowrap}.input-card .error{grid-column:1/-1;margin:0;font-size:11px}.puzzle-card{padding:24px 28px 19px;border:3px solid #78b2ed;box-shadow:0 8px 0 #afd2f0;border-radius:26px;background:linear-gradient(#fff,#fcfeff)}.puzzle-card .section-heading{margin-bottom:18px}.puzzle-card h2{font-size:27px;color:#416da3;letter-spacing:1px}.badge{font-size:14px;padding:7px 14px}.progress-track{height:14px;margin-bottom:22px}.zone-label{font-size:16px}.word-zone{min-height:142px;padding:23px 20px;gap:14px}.bank-zone{min-height:128px}.word{font-size:23px;padding:13px 20px;border-radius:15px;min-height:57px}.feedback{font-size:13px;margin:20px 0 16px}.game-actions .primary{font-size:16px;padding:13px 22px}.game-actions .secondary{font-size:14px;padding:13px 18px}.game-actions .text-button{font-size:12px;padding:11px 13px}.reveal{margin-top:16px;padding-top:11px;font-size:11px}.audio-card{padding:15px 13px;background:#f7fafc;border:2px solid #cfdfeb;box-shadow:0 3px 0 #dce7ef;border-radius:18px}.audio-card h2{font-size:14px;color:#7a93ab;margin:0}.upload-zone{margin-top:12px;padding:10px 8px;border-width:2px;border-radius:12px;border-color:#d1dfe9;background:#fff}.upload-zone .audio-button{font-size:11px;padding:9px 6px;border:1px solid #c5d9e7;border-radius:10px;background:#e8f3fb;color:#6a8ca6;box-shadow:0 2px 0 #c5d9e7}.upload-zone p{font-size:9px;color:#9bacb9;margin:8px 0 0}.audio-file-info{padding:9px 7px;gap:6px;border-width:1px;border-color:#d4e2ed;border-radius:10px;margin-top:12px}.audio-file-info>span{font-size:18px}.audio-file-info strong{font-size:10px;color:#7d94aa}.audio-file-info small{font-size:9px;color:#9caab8}.audio-card audio{height:35px;margin:12px 0 4px}.playback-tools{gap:7px}.playback-tools .secondary{font-size:10px;padding:8px 6px;box-shadow:0 2px 0 #b499d0;border-width:1px;border-radius:10px}.playback-tools select{font-size:9px;width:80px;padding:8px 3px;border-width:1px;border-color:#cddce8;border-radius:9px}.audio-file-actions{gap:6px;margin-top:12px}.audio-file-actions .text-button{font-size:9px;padding:6px;box-shadow:none;border-width:1px}.audio-message{font-size:10px;line-height:1.7;color:#96a5b3;margin:12px 0 0}.tts-backup{border-top:1px dashed #d1dfe9;padding-top:9px;margin-top:12px}.tts-backup>summary{font-size:10px;color:#99a9b6;padding:4px 0}.tts-backup>.audio-button{font-size:10px;padding:10px 6px;border-width:1px}.settings summary{font-size:10px}.service{border-top-color:#d8e4ed;font-size:9px}.service .text-button{font-size:9px}.settings{border-top-color:#d8e4ed}footer{font-size:10px;margin-top:23px;padding:14px 0;border-top-width:2px}footer span:last-child{display:none}
.result-dialog{padding:0;border:4px solid #87bbed;border-radius:30px;width:min(540px,calc(100% - 28px));max-height:calc(100dvh - 28px);overflow:auto;color:#3e587b;background:#fffef8;box-shadow:0 9px 0 #5384b74d,0 30px 90px #234e7040}.result-dialog::backdrop{background:#28567866;backdrop-filter:blur(5px)}.result-close{position:absolute;right:14px;top:13px;z-index:2;display:grid;place-items:center;width:34px;height:34px;border:2px solid #accfeb;border-radius:12px;color:#7e9ab1;background:#fff;font-size:24px;cursor:pointer}.celebration-scene{height:170px;background:linear-gradient(#d8f0ff,#eefaff);position:relative;overflow:hidden;border-bottom:3px solid #cae4ef}.trophy{position:absolute;left:calc(50% - 53px);top:25px;font-size:88px;line-height:1.2;filter:drop-shadow(0 5px 0 #e8b55550);animation:trophy-pop .5s ease-out}.victory-stars{position:absolute;bottom:8px;width:100%;text-align:center;color:#f2b639;font-size:26px;letter-spacing:9px;text-shadow:0 2px 0 #cb9032}.party-cloud{position:absolute;color:white;font-size:75px;line-height:1}.cloud-left{top:41px;left:22px;transform:rotate(-9deg)}.cloud-right{top:24px;right:22px;transform:rotate(7deg)}.party-star{position:absolute;color:#ffcb60;font-size:30px}.star-left{top:13px;left:100px;transform:rotate(-12deg)}.star-right{top:82px;right:78px;transform:rotate(15deg)}.result-content{padding:23px 28px 25px;text-align:center}.result-eyebrow{font-size:10px;letter-spacing:1.5px;color:#98abc1;font-weight:800}.result-content h2{font-size:27px;color:#4974a4;margin:10px 0}.result-content>p:not(.result-sentence){font-size:12px;line-height:1.8;color:#8b9caf}.result-sentence{font-size:18px;line-height:1.7;border:2px dashed #e9cf8f;border-radius:15px;background:#fff6d9;padding:13px;margin:17px 0;overflow-wrap:anywhere;color:#98723c}.result-stats{display:grid;grid-template-columns:1fr 1fr 1fr;gap:9px}.result-stats>div{background:#eef7ff;border:1px solid #d2e6f5;border-radius:14px;padding:12px 5px}.result-stats strong{display:block;font-size:23px;color:#638eb6}.result-stats span{display:block;margin-top:5px;font-size:10px;color:#8ba3bc}.result-total{margin:14px 0 18px}.result-actions{display:flex;justify-content:center;gap:13px}.result-actions button{font-size:13px;padding:12px 18px}.result-content>.text-button{font-size:11px;margin-top:18px}.confetti{position:absolute;inset:0;overflow:hidden;pointer-events:none}.confetti i{position:absolute;left:var(--x);top:-20px;width:9px;height:15px;background:var(--color);border-radius:2px;animation:confetti-fall 2.8s var(--delay) ease-out both}.confetti i:nth-child(3n){border-radius:50%;width:10px;height:10px}@keyframes confetti-fall{0%{transform:translateY(-15px) rotate(0);opacity:0}10%{opacity:1}100%{transform:translateY(205px) rotate(var(--turn));opacity:0}}@keyframes trophy-pop{0%{transform:scale(.4) rotate(-12deg)}70%{transform:scale(1.12) rotate(4deg)}100%{transform:scale(1) rotate(0)}}
@media(max-width:1050px){.app{padding:0 22px}.layout{grid-template-columns:minmax(0,1fr) 200px;gap:17px}.input-card{grid-template-columns:minmax(0,1fr) auto;gap:8px}.input-bottom{gap:6px}#input-count{display:none}.puzzle-card{padding:22px}.puzzle-card h2{font-size:23px}.word{font-size:21px;padding:12px 17px}.game-actions .primary{font-size:14px;padding:12px 17px}.game-actions .secondary{font-size:12px;padding:12px}.game-actions .text-button{font-size:10px;padding:10px}.word-zone{padding:20px 16px}}@media(max-width:760px){.app{padding:0 14px}header{height:58px}.brand{font-size:23px}.brand i{font-size:10px}.intro{min-height:75px;padding:15px 85px 15px 0}.intro h1{font-size:19px;margin:0;line-height:1.5}.intro h1 span{display:inline}.intro p{font-size:10px;line-height:1.6;margin-top:3px}.hero-mascot{width:80px;top:2px;right:-1px}.layout{grid-template-columns:1fr;gap:20px}.main-column{gap:16px}.input-card{padding:10px 12px;gap:8px}.input-card h2{font-size:11px}.input-card .text-button{font-size:10px}.input-card textarea{height:42px;min-height:42px;font-size:13px;padding:8px}.input-bottom .primary{font-size:11px;padding:9px 10px}.input-bottom .primary span{display:none}.puzzle-card{padding:20px 16px 15px;border-radius:23px}.puzzle-card h2{font-size:22px;letter-spacing:0}.badge{font-size:11px;padding:6px 10px}.puzzle-card .section-heading{margin-bottom:13px}.progress-track{height:12px;margin-bottom:18px}.zone-label{font-size:13px;flex-direction:row;gap:7px}.zone-label span{font-size:9px;max-width:140px}.word-zone{min-height:126px;padding:18px 12px;gap:12px}.bank-zone{min-height:120px}.word{font-size:20px;padding:12px 15px;min-height:53px}.bank-label{margin-top:21px}.feedback{font-size:11px;padding:9px 11px;margin:17px 0 14px}.game-actions{gap:10px}.game-actions .primary{font-size:12px;padding:12px 11px}.game-actions .secondary{font-size:11px;padding:12px 10px}.game-actions .text-button{font-size:9px;padding:10px 6px;margin-left:auto}.audio-card{padding:12px;background:#f8fbfd}.audio-card h2{font-size:12px}.upload-zone{padding:8px;margin-top:9px}.upload-zone .audio-button{max-width:220px;font-size:11px}.upload-zone p{font-size:9px}.audio-message{font-size:9px}.audio-card audio{height:37px}.playback-tools{max-width:290px}.audio-file-actions{justify-content:flex-start}.audio-file-info{padding:8px}.audio-file-info strong{font-size:11px}.result-content{padding:20px 17px}.result-content h2{font-size:23px}.result-sentence{font-size:16px}.result-actions{gap:10px}.result-actions button{font-size:12px;padding:12px 13px}.result-stats strong{font-size:21px}.celebration-scene{height:155px}.trophy{font-size:78px;left:calc(50% - 47px)}.star-left{left:65px}.star-right{right:60px}footer{margin-top:20px;font-size:9px}}@media(max-width:360px){.input-card{grid-template-columns:1fr}.input-bottom{justify-content:flex-end}.input-card .section-heading{grid-column:1}.puzzle-card{padding:18px 12px}.game-actions .text-button{margin-left:0}.result-content h2{font-size:21px}}@media(prefers-reduced-motion:reduce){.confetti i{animation:none;top:25px;opacity:.7}.trophy{animation:none}.result-dialog::backdrop{backdrop-filter:none}}

.sfx-settings{position:relative;color:#8fa1b3;margin-left:auto}.header-note+.sfx-settings{margin-left:0}.sfx-settings>summary{list-style:none;font-size:11px;cursor:pointer;padding:7px 9px;border:1px solid #c7dcea;border-radius:10px;background:#f3f9ff;white-space:nowrap}.sfx-settings>summary::-webkit-details-marker{display:none}.sfx-panel{position:absolute;right:0;top:39px;width:250px;padding:17px;background:#fff;border:2px solid #b8d4e9;border-radius:17px;box-shadow:0 6px 0 #cfe4f0,0 12px 24px #41688b22;z-index:20}.sfx-heading{display:flex;justify-content:space-between;font-size:12px;font-weight:700;color:#728cab}.sfx-panel input[type=range]{width:100%;margin:14px 0;accent-color:#6ea9e5;height:22px;cursor:pointer}.sfx-actions{display:flex;gap:10px}.sfx-panel button{font:inherit;font-size:11px;padding:8px 12px;border:1px solid #c2d9eb;border-radius:10px;color:#7595b5;background:#edf6ff;cursor:pointer}.sfx-actions button{flex:1}.sfx-panel p{font-size:10px;color:#93a8ba;line-height:1.8;margin:13px 0 8px}.sfx-panel small{display:block;font-size:9px;color:#9cabb9;line-height:1.8;margin-top:12px}.sfx-panel #sfx-refresh{font-size:10px;background:transparent;border-color:#e0eaf1}.sfx-settings:focus-within>summary{outline:none}@media(max-width:760px){header{gap:9px}.header-note+.sfx-settings{margin-left:auto}.sfx-settings>summary{font-size:10px;padding:7px}.sfx-panel{right:-40px;width:240px}.icon-button{margin-left:0}.brand i{display:none}}

.lesson-toolbar{display:flex;align-items:center;gap:12px;min-height:32px;margin-bottom:-7px}.lesson-mode{display:flex;background:#e4f0fa;border:1px solid #c8ddec;border-radius:12px;padding:3px;gap:3px}.lesson-mode button{font:inherit;font-size:11px;padding:7px 10px;border:0;border-radius:9px;background:transparent;color:#829bb5;cursor:pointer}.lesson-mode button.selected{background:white;color:#527fa8;box-shadow:0 2px 3px #45678815;font-weight:700}#lesson-progress{font-size:11px;color:#88a0b8}.teacher-button{margin-left:auto;font:inherit;font-size:10px;padding:6px 8px;border:0;background:transparent;color:#95a7b8;cursor:pointer}.listen-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;border:2px solid #bad9ef;border-radius:16px;padding:14px 17px;background:#f0f9ff}.listen-notice strong{font-size:13px;color:#6991b4}.listen-notice small{display:block;font-size:10px;color:#96adbf;margin-top:6px}.listen-notice .secondary{font-size:11px;padding:10px 13px;white-space:nowrap}.listening-mode .hide-audio-name{display:none}.listening-mode .reveal{display:none}.lesson-dialog{width:min(730px,calc(100% - 26px));max-height:calc(100dvh - 26px);padding:24px;border:3px solid #accfec;border-radius:24px;background:#fbfdff;color:#557495;box-shadow:0 7px 0 #6594bd33;overflow:auto}.lesson-dialog::backdrop{background:#375e7c55;backdrop-filter:blur(3px)}.lesson-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.lesson-dialog-heading h2{font-size:20px}.lesson-dialog-heading button{background:white;border:1px solid #c6dceb;border-radius:10px;width:30px;height:30px;font-size:22px;color:#91a8bb;cursor:pointer}.lesson-help{font-size:11px;line-height:1.9;color:#96a9ba;margin:13px 0}.lesson-dialog>label{font-size:12px;display:block;margin:14px 0 8px}.lesson-dialog textarea{min-height:120px;max-height:260px;background:white;border-color:#c5dced;font-size:14px}.lesson-import-actions{display:flex;gap:12px;margin-top:13px}.lesson-import-actions button{font-size:12px;padding:10px 16px}.lesson-message{font-size:11px;line-height:1.8;color:#87a2b9;overflow-wrap:anywhere}.lesson-list{display:grid;gap:8px;max-height:300px;overflow:auto}.lesson-row{display:flex;align-items:center;gap:12px;padding:12px;background:#fff;border:1px solid #d9e8f3;border-radius:12px}.lesson-number{color:#a0b7ca;font-size:12px;font-weight:800}.lesson-copy{flex:1;min-width:0}.lesson-copy strong{font-size:12px;font-weight:600;display:block;overflow-wrap:anywhere}.lesson-copy small{display:block;font-size:10px;color:#a0afbc;margin-top:5px;overflow-wrap:anywhere}.lesson-row button{font:inherit;font-size:10px;padding:8px 10px;border:1px solid #cbdfea;border-radius:9px;color:#7b99b1;background:#f1f8fd;cursor:pointer;white-space:nowrap}@media(max-width:760px){.lesson-toolbar{gap:7px;flex-wrap:wrap}.lesson-mode button{font-size:10px;padding:7px 8px}#lesson-progress{font-size:9px}.teacher-button{font-size:9px;padding:6px 2px}.listen-notice{padding:12px}.listen-notice strong{font-size:11px}.listen-notice small{font-size:9px}.lesson-dialog{padding:17px}.lesson-dialog-heading h2{font-size:17px}.lesson-import-actions{gap:10px}.lesson-import-actions button{font-size:11px;padding:10px 12px}.lesson-row{padding:10px 8px;gap:9px}.lesson-copy strong{font-size:11px}}

#token-mode{font:inherit;font-size:10px;border:1px solid #d4e3ed;color:#809ab0;border-radius:8px;padding:4px 7px;background:white;margin-left:auto;max-width:160px}.input-card .section-heading #example{white-space:nowrap}.word{font-family:"Arial Rounded MT Bold","Trebuchet MS","Microsoft YaHei","Segoe UI",sans-serif}.brand i{font-size:11px}.intro h1{font-size:24px}.puzzle-card h2{font-size:25px}.lesson-toolbar{flex-wrap:wrap}.listen-notice strong{font-size:12px}.lesson-mode button{font-size:10px}.result-content h2{font-size:24px}@media(max-width:760px){.intro h1{font-size:19px}.puzzle-card h2{font-size:21px}.input-card h2{font-size:10px}#token-mode{font-size:9px;max-width:125px}.input-card .section-heading{gap:7px}.input-bottom .primary{font-size:10px}.game-actions .primary{font-size:11px}.game-actions .secondary{font-size:10px}.game-actions .text-button{font-size:9px}.lesson-toolbar{row-gap:6px}#lesson-progress{font-size:9px}.teacher-button{font-size:9px}.result-actions button{font-size:11px}.result-content h2{font-size:22px}}
.recorder-box{margin-top:14px;padding-top:14px;border-top:1px dashed #c9dfed}.recorder-box p{font-size:11px;line-height:1.6;color:#809bb4}.recorder-box small{display:block;font-size:10px;line-height:1.6;color:#91a9ba}.recorder-box .audio-button{background:#fff0ce;border-color:#efd092;color:#967534}#record-live{display:flex;align-items:center;gap:9px;padding:10px 0}.record-light{width:10px;height:10px;border-radius:50%;background:#ed6a7c;box-shadow:0 0 0 4px #ffe0e5}#record-time{font-variant-numeric:tabular-nums;font-weight:bold;color:#cf6272}#record-stop{margin-left:auto;font-size:11px;padding:8px 12px}#record-preview{width:100%;height:36px;margin:8px 0}.record-actions{display:flex;flex-wrap:wrap;gap:8px;margin:7px 0 12px}.record-actions .primary{font-size:11px;padding:9px 12px}.record-actions .text-button{font-size:11px}.recorder-box .error{color:#c35d69}
.challenge-button{font:inherit;font-size:13px;font-weight:800;color:#82602d;background:#ffdf87;border:2px solid #e1b65a;border-radius:13px;padding:10px 16px;box-shadow:0 4px 0 #d4a951;cursor:pointer;min-height:44px}.challenge-button.selected{background:#ffd16c;border-color:#ce9838}#challenge-language{font:inherit;font-size:11px;border:1px solid #c6ddec;border-radius:9px;padding:8px;background:white;color:#6486a3;min-height:40px;max-width:100px}#new-sentence{margin-left:auto}#manage-lessons{margin-left:0}.answer-hidden .hide-audio-name{display:none}.audio-card{display:flex;flex-direction:column}.audio-card.audio-ready{min-height:540px}.audio-card .playback-tools{margin-top:24px;max-width:none;display:grid;grid-template-columns:1fr;gap:12px;padding-top:18px;border-top:1px dashed #c8dfed}.audio-card #replay{width:100%;min-height:76px;font-size:20px;padding:17px 12px;border-radius:18px;touch-action:manipulation}.audio-card .playback-tools select{width:100%;min-height:44px;font-size:13px;padding:10px 12px}.audio-card #player{width:100%;margin-top:auto;padding-top:20px;height:62px}.audio-card .audio-file-actions{order:0}.audio-card .recorder-box{margin-bottom:16px}@media(min-width:761px) and (max-width:1180px){.layout{grid-template-columns:minmax(0,1fr) 260px;gap:18px}.audio-card{position:sticky;top:20px}.audio-card.audio-ready{min-height:590px}.audio-card #replay{min-height:84px;font-size:21px}.lesson-toolbar{gap:9px}.lesson-mode button{min-height:40px}.teacher-button{min-height:40px}.challenge-button{font-size:12px;padding:10px 12px}}@media(max-width:760px){.challenge-button{font-size:12px;padding:10px 12px}.audio-card.audio-ready{min-height:0}.audio-card #replay{min-height:76px}.lesson-toolbar{gap:8px}#challenge-language{font-size:10px}.lesson-mode button{min-height:40px}#new-sentence{font-size:10px;min-height:40px}}

.booting .input-card,.booting .reveal{display:none}
