:root{font-family:Nunito,Microsoft YaHei,PingFang SC,system-ui,sans-serif;color:#274b40;background:#fbfaf5;font-synthesis:none;font-weight:400;--green: #14876d;--dark: #244e40;--muted: #7c8b80;--line: #e7eade;--cream: #fbfaf5}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;color:inherit;border:0;background:none;transition:transform .18s,background .18s,box-shadow .18s}button:active{transform:translateY(2px)!important}button:disabled{cursor:wait;opacity:.65}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #edbd57;outline-offset:4px}button svg{flex-shrink:0}h1,h2,h3,p{margin:0}a{color:var(--green)}.app{min-height:100vh}.site-header{height:88px;padding:0 max(4.3vw,24px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e6eadd;background:#fffcf6;gap:30px}.brand{display:flex;align-items:center;gap:12px;text-align:left;padding:0;flex-shrink:0}.brand>span:last-child{font-size:23px;letter-spacing:1px;font-weight:850;color:#28654e}.brand small{display:block;font:600 9px/1.7 system-ui;letter-spacing:3px;color:#98a083}.brand-mark{position:relative;background:#178b6e;color:#fff2c7;width:46px;height:44px;display:grid;place-items:center;border-radius:14px 14px 17px 12px;transform:rotate(-7deg);box-shadow:0 4px #c9dfc8}.brand-mark i{position:absolute;width:14px;height:8px;border-radius:12px 0;background:#b2cf72;top:-6px;left:27px;transform:rotate(-15deg)}nav{display:flex;align-items:center;gap:26px}nav>button{display:flex;align-items:center;gap:7px;font-size:14px;font-weight:650;color:#6e7f71;padding:12px 0}nav>button:hover,nav>button.nav-active{color:var(--green)}.player-chip{display:flex;align-items:center;gap:9px;border:1px solid #e1e6d8;background:#f3f4e8;border-radius:28px;padding:5px 15px 5px 5px;font-size:13px;max-width:220px;overflow:hidden;white-space:nowrap}.avatar-mini{height:34px;width:34px;border-radius:50%;background:#e2edd4;display:grid;place-items:center;color:#70904c;flex-shrink:0}.sprite{object-fit:contain;display:block;flex-shrink:0;pointer-events:none}.home-page{max-width:1600px;margin:auto}.hero{min-height:495px;position:relative;overflow:hidden;background:#eaf0dd}.hero-scenery{position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(90deg,#f7f7eaf2,#f7f7eab5 33%,#e4efe426 61%),url(/assets/world.webp) center 61% / cover no-repeat}.hero-copy{position:relative;z-index:5;padding:45px 0 48px max(7.1vw,42px);width:58%}.pill{display:inline-flex;align-items:center;justify-content:center;gap:9px;background:#f4f4de;border:1px solid #e4e7c9;border-radius:30px;padding:8px 13px;font-size:12px;color:#5b7950;font-weight:650}.pill>span{width:7px;height:7px;border-radius:50%;background:#77a161}.hero h1{font-size:57px;line-height:1.32;font-weight:900;letter-spacing:1px;margin:20px 0 15px;color:#294d3c;position:relative;display:block;width:max-content}.hero h1 em{font-style:normal;color:#13866b}.title-star{color:#ecb447;font-size:40px;position:absolute;right:-62px;top:64px;transform:rotate(15deg)}.hero-copy>p{font-size:16px;line-height:1.95;color:#73806a;letter-spacing:.5px}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:11px;border-radius:13px;padding:16px 25px;font-weight:750;font-size:16px}.primary{background:var(--green);color:#fff;box-shadow:0 4px #076650}.primary:hover{background:#0d9577;transform:translateY(-2px);box-shadow:0 6px #086a54}.secondary{background:#edf1e5;border:1px solid #dce4d3;color:#54715a}.secondary:hover{background:#e2ecdc}.hero-cta{margin:23px 0 20px;font-size:21px;min-width:225px;padding:18px 27px;border-radius:15px;animation:breathe 4s ease-in-out infinite}.hero-cta>svg:last-child{margin-left:17px}.hero-notes{display:flex;gap:17px;font-size:11px;color:#7e8d70;white-space:nowrap}.hero-notes span{display:flex;align-items:center;gap:4px}.hero-notes svg{color:#648d52}.hero-characters{position:absolute;width:530px;height:415px;right:7%;top:58px}.hero-characters .sprite{position:absolute}.hero-leaf{left:105px;top:206px;transform:rotate(-8deg);animation:bob 5s infinite ease-in-out}.hero-frog{left:139px;top:116px;z-index:3;animation:bob 5s infinite ease-in-out}.hero-dino{left:345px;top:224px;transform:rotate(6deg);animation:sway 5s infinite alternate ease-in-out}.hero-duck{left:42px;top:317px;animation:swim 8s infinite ease-in-out}.speech-bubble{position:absolute;z-index:4;top:80px;left:170px;background:#fffcf0;border:2px solid #e6e5c5;border-radius:20px;padding:11px 16px;font-size:14px;font-weight:750;transform:rotate(5deg);box-shadow:0 5px 10px #395c3611}.speech-bubble i{position:absolute;left:55px;bottom:-10px;width:15px;height:15px;background:#fffcf0;border-right:2px solid #e6e5c5;border-bottom:2px solid #e6e5c5;transform:rotate(45deg)}.floating-key{position:absolute;display:grid;place-items:center;width:60px;height:61px;border:3px solid #fff9df;border-radius:14px;box-shadow:0 6px #ccb87973;font:900 35px system-ui;color:#b79749;background:#fff0bb;z-index:4;animation:bob 4s infinite ease-in-out}.key-a{left:55px;top:122px;rotate:-14deg}.key-zh{left:408px;top:129px;rotate:14deg;background:#e3f3db;color:#559267;animation-delay:-2s}.hero-spark{position:absolute;color:#eab245;font-size:38px}.s1{top:38px;left:399px;animation:twinkle 4s infinite}.s2{left:95px;top:260px;font-size:25px}.floating-cloud{position:absolute;opacity:.6;animation:cloud-drift 30s infinite alternate linear}.cloud-one{left:47%;top:10px}.cloud-two{right:3%;top:57px;animation-delay:-15s}.hero-footnote{position:absolute;bottom:17px;right:8%;font-size:12px;color:#fffef1;text-shadow:0 1px 3px #426b48;display:flex;align-items:center;gap:8px}.tiny-star{font-size:20px;color:#ffe79b}.adventures{padding:41px max(7.1vw,42px) 36px}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:24px}.eyebrow{display:block;font-size:10px;font-weight:750;letter-spacing:2px;color:#93a08b;line-height:1.8}.section-heading h2{font-size:27px;line-height:1.6;color:#305240;font-weight:850}.section-heading h2>span{color:#d7a648;margin-left:4px}.section-heading>p{color:#8a9380;font-size:13px;margin-bottom:7px}.game-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.game-card{text-align:left;background:#fff;border:1px solid #e5e9dd;border-radius:18px;overflow:hidden;box-shadow:0 4px #eceee3;padding:0}.game-card:hover{transform:translateY(-6px);box-shadow:0 9px 22px #516a3e15}.card-art{height:159px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center}.card-character{position:relative;z-index:3;transition:transform .4s;animation:card-idle 6s ease-in-out infinite}.game-card:nth-child(2n) .card-character{animation-delay:-3s}.game-card:hover .card-character{transform:rotate(-5deg) scale(1.06)}.card-hill{position:absolute;bottom:-84px;left:-10%;height:138px;width:120%;border-radius:50%;background:#fff8;transform:rotate(-7deg)}.card-number{position:absolute;left:17px;top:13px;font:600 11px system-ui;color:#5a785b66}.card-tag{position:absolute;right:11px;top:12px;border-radius:20px;background:#ffffffb0;padding:5px 9px;color:#738371;font-size:10px;z-index:5}.card-prop{position:absolute;left:calc(50% - 77px);bottom:-38px;z-index:2}.card-side-prop{position:absolute;left:calc(50% + 38px);bottom:0;z-index:2;transform:rotate(8deg)}.game-police .card-character,.game-firefighter .card-character{margin-left:-25px}.game-rocket .card-character{width:125px!important;height:140px!important;transform:rotate(13deg)}.card-stars{position:absolute;top:30px;right:25px;bottom:30px;left:25px;font-size:24px;color:#b0bbdb}.card-table{position:absolute;height:18px;background:#d7a976;bottom:8px;width:65%;border-radius:50%;z-index:1}.card-info{display:flex;justify-content:space-between;align-items:center;padding:16px 17px 17px;gap:10px}.card-info h3{font-size:17px;font-weight:800;line-height:1.5}.card-info p{font-size:11px;color:#8b9485;line-height:1.6;margin-top:4px;white-space:nowrap}.card-arrow{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#f2f5ec;color:#84a77a;flex-shrink:0}.game-card:hover .card-arrow{background:#16896c;color:#fff}.kind-strip{margin:0 max(7.1vw,42px) 35px;padding:23px 10px;border-top:1px dashed #dce2d0;border-bottom:1px dashed #dce2d0;display:flex;justify-content:space-around;gap:20px}.kind-strip>span{font-size:10px;color:#9a9f8d;display:grid;grid-template-columns:34px 1fr;column-gap:8px;line-height:1.7}.kind-strip svg{grid-row:span 2;align-self:center;color:#96aa7a}.kind-strip b{font-size:12px;color:#6f815e;font-weight:650}footer{padding:24px max(7.1vw,42px);border-top:1px solid #e8eadd;display:flex;align-items:center;justify-content:space-between;color:#a0a78f;font-size:11px;gap:15px}.footer-brand{display:flex;align-items:center;gap:7px;font-weight:650;color:#7c9670}.text-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:14px;color:#6e8373;padding:8px 0}.text-button:hover{color:var(--green)}.selection-page,.lobby-page,.leaderboard-page{max-width:1190px;padding:35px 30px 70px;margin:auto;min-height:calc(100vh - 157px)}.page-intro{text-align:center;margin:25px 0 37px}.page-intro h1{font-size:34px;line-height:1.8;color:#315442;font-weight:850}.page-intro p{font-size:14px;line-height:1.8;color:#8a9786;margin-top:7px}.language-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px;max-width:900px;margin:0 auto 35px}.language-card{position:relative;overflow:hidden;min-height:365px;border-radius:25px;padding:35px 35px 30px;text-align:left;border:1px solid #e1e7d4;box-shadow:0 6px #e7ecd9}.language-card:hover{transform:translateY(-5px)}.chinese{background:#edf3df}.english{background:#e6f0f6}.language-symbol{font-weight:900;font-size:76px;color:#5d8653;line-height:1.2;display:block;letter-spacing:-4px}.english .language-symbol{color:#5e8aab}.language-symbol small{display:block;font-size:11px;letter-spacing:2px;margin-top:8px;color:#91a281}.language-card h2{font-size:26px;margin:28px 0 10px}.language-card p{color:#829080;font-size:13px}.language-link{margin-top:28px;display:flex;align-items:center;gap:15px;font-size:15px;font-weight:750;color:#528763}.language-card .sprite{position:absolute;right:12px;top:25px;animation:bob 5s infinite}.center-note{color:#9ca38f;font-size:12px;display:flex;align-items:center;justify-content:center;gap:7px;margin:24px 0;line-height:1.8}.lobby-top{display:flex;align-items:center;justify-content:space-between}.difficulty-picker{display:flex;justify-content:center;gap:12px;margin:0 auto 36px}.difficulty-picker button{display:flex;align-items:center;gap:12px;border:1px solid #e0e7d6;padding:13px 20px;border-radius:13px;color:#8b9982;background:#fffdf7;min-width:210px;text-align:left;font-size:14px}.difficulty-picker small{display:block;font-size:10px;color:#91a086;margin-top:5px}.difficulty-picker .selected{border:2px solid #3c977a;background:#eff6e9;color:#287955;padding:12px 19px}.lobby-grid .card-art{height:195px}.lobby-grid .card-info{padding:19px 22px}.lobby-grid .card-info h3{font-size:19px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2000;display:grid;place-items:center;background:#25493b70;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);padding:25px;animation:fade-in .2s}.modal{position:relative;background:#fffdf6;border:1px solid #f4eedc;border-radius:25px;width:470px;max-width:100%;max-height:90vh;overflow-y:auto;padding:30px 35px 35px;box-shadow:0 20px 100px #213e382c;text-align:center}.round-button{width:40px;height:40px;display:grid;place-items:center;background:#f3f5ec;border:1px solid #e3e8da;border-radius:50%;color:#7c8f7a}.round-button:hover{background:#e6eddd}.modal-close{position:absolute;top:15px;right:15px;z-index:2}.modal h2{font-size:25px;margin:5px 0 12px;font-weight:850}.modal>p{color:#8b9682;font-size:13px;line-height:1.9;margin-bottom:22px}.modal-character{display:flex;justify-content:center;height:130px;align-items:center}.modal-character .sprite{animation:bob 5s infinite}.modal-icon{margin:15px auto 17px;color:#789568}.field-label{display:block;text-align:left;font-size:12px;font-weight:650;margin:17px 0 9px;color:#74826a}.nickname-input{display:block;width:100%;padding:15px 17px;border:2px solid #d9e5cc;background:#f8faef;border-radius:11px;color:#315a43;font-size:18px}.nickname-input::placeholder{color:#abb59d}.field-help{display:block;text-align:left;color:#99a18c;font-size:10px;line-height:1.8;margin:8px 0 25px}.field-error{color:#bb6656;font-size:12px;margin:10px 0 20px}.full{width:100%}.players-list{max-height:280px;overflow:auto;margin:20px 0;display:flex;flex-direction:column;gap:10px}.players-list button{display:flex;align-items:center;gap:14px;padding:9px 15px;border:1px solid #e1e8d8;border-radius:14px;background:#f6f7ed}.players-list .selected{border:2px solid #4e9977;background:#edf5e3;padding:8px 14px}.players-list button>span{flex:1;text-align:left}.players-list b{font-size:15px}.players-list small{display:block;font-size:11px;color:#92a082;margin-top:5px}.settings-list{margin:20px 0}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 0;border-bottom:1px solid #eef0e2;font-size:14px}.setting-row>span{display:flex;gap:12px;align-items:center}.setting-row svg{color:#8c9f7b}.setting-row input[type=checkbox]{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:43px;height:25px;border-radius:20px;background:#dbe2cf;position:relative;cursor:pointer;flex-shrink:0}.setting-row input[type=checkbox]:before{content:"";position:absolute;width:19px;height:19px;left:3px;top:3px;border-radius:50%;background:#fff;transition:left .2s}.setting-row input:checked{background:#299778}.setting-row input:checked:before{left:21px}.volume-row{margin-bottom:20px;border:0}.volume-row input{width:125px;accent-color:#198a6a}.volume-row small{color:#92a080}.theme-picker{display:flex;gap:7px;margin:12px 0}.theme-picker button{flex:1;border:1px solid #e1e7d7;border-radius:10px;padding:13px 6px;font-size:12px;display:flex;align-items:center;justify-content:center;gap:5px;background:#f5f7ec}.theme-picker .selected{background:#e5f2df;border-color:#4f9f7a;color:#277e58}.game-summary{display:flex;gap:8px;justify-content:center;align-items:center;color:#97a187;font-size:12px;margin:20px 0}.result-page{max-width:850px;margin:auto;text-align:center;min-height:calc(100vh - 160px);padding:28px 25px 45px}.celebration{position:relative;height:180px;display:flex;align-items:center;justify-content:center;gap:40px}.celebration>span{font-size:42px;color:#ddb34d;animation:twinkle 3s infinite}.celebration .sprite{animation:bob 3s infinite}.result-page h1{font-size:35px;margin:18px 0 14px;color:#365b43}.result-page>p{color:#8d9a83;font-size:13px}.result-score{display:flex;gap:12px;align-items:center;justify-content:center;margin:25px 0 10px}.result-score strong{font-size:61px;font-weight:850;letter-spacing:-2px;color:#377550}.result-score>span{align-self:flex-end;color:#9ba58d;font-size:12px;margin-bottom:16px}.record-badge{display:inline-flex;gap:6px;align-items:center;background:#fcf0ce;border-radius:30px;padding:7px 12px;color:#b28d39;font-size:12px}.result-stats{display:grid;grid-template-columns:repeat(4,1fr);padding:25px 10px;margin:28px 0;background:#f2f5e9;border:1px solid #e4e9d8;border-radius:18px}.result-stats>div+div{border-left:1px solid #dfe7d2}.result-stats b{display:block;font-size:23px;color:#547b52}.result-stats span{display:block;font-size:11px;margin-top:9px;color:#94a17f}.result-actions{display:flex;justify-content:center;gap:16px}.rank-controls{display:flex;align-items:center;justify-content:space-between;margin:30px 0 20px}.rank-controls label{font-size:12px;color:#8b9883}.rank-controls select{margin-left:10px;border:1px solid #dae3cf;background:#fffdf5;padding:8px 16px;border-radius:8px;color:#647e60}.rank-tabs{display:flex;gap:8px;border-bottom:1px solid #e0e5d6;padding-bottom:15px;flex-wrap:wrap}.rank-tabs button{padding:11px 17px;font-size:13px;border-radius:10px;color:#8a977f}.rank-tabs .selected{background:#e8f1dc;color:#438060;font-weight:750}.rank-table{margin:20px 0;border:1px solid #e4e9db;border-radius:17px;background:#fffef8;overflow:hidden}.rank-row{display:grid;grid-template-columns:80px 1fr 140px 140px;align-items:center;gap:20px;padding:13px 28px;border-bottom:1px solid #edf0e4;font-size:14px;color:#8e9b85}.rank-head{background:#f2f5e9;font-size:11px;padding-top:17px;padding-bottom:17px}.rank-player{display:flex;gap:13px;align-items:center;color:#537448}.rank-player small{font-size:10px;background:#e3efd9;padding:3px 7px;border-radius:6px}.rank-row strong{display:flex;align-items:center;gap:9px;color:#709754}.rank-row strong svg{color:#d5b054}.rank-number{font-size:20px;font-weight:750;color:#a1ad94}.rank-0{color:#c7a148}.my-rank{background:#f5f8ed}.trophy-icon{color:#c7a44c;margin:10px 0}.empty-state{padding:50px 25px;text-align:center}.empty-state>svg{color:#a2b37b}.empty-state h3{margin:16px 0;color:#79925f}.empty-state p{font-size:12px;color:#a2ac93;margin:10px 0 25px}.play-page{width:100%;height:100vh;height:100dvh;padding:8px clamp(8px,1.25vw,24px) 12px;display:flex;flex-direction:column;gap:8px}.app:has(.play-page) .site-header{display:none}.play-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;flex:0 0 auto;text-align:center}.play-heading h1{font-size:21px;line-height:1.3}.play-heading .eyebrow{font-size:9px}.play-actions{display:flex;align-items:center;gap:8px}.fullscreen-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:0 13px;border:1px solid #dce4d1;border-radius:24px;background:#f3f6eb;font-size:12px;white-space:nowrap}.game-shell{display:flex;flex-direction:column;flex:1;min-height:0;border-radius:20px;border:1px solid #dce4d1;box-shadow:0 7px #e7ecdd;background:#fff;overflow:hidden;position:relative}.game-hud{flex:0 0 40px;display:flex;justify-content:space-between;align-items:center;padding:5px 24px;gap:25px;background:#fffdf4}.game-hud>span{display:flex;align-items:center;gap:7px;font-size:11px;color:#92a182}.game-hud strong{font-size:18px;color:#4e7654}.game-hud>span>svg{color:#cc9752}.time{margin-left:10px;min-width:38px;font-variant-numeric:tabular-nums}.level-progress{width:min(32%,360px);text-align:center}.level-progress>div{height:8px;background:#e7eddb;border-radius:10px;overflow:hidden}.level-progress i{display:block;height:100%;background:#a7c673;border-radius:10px;transition:width .4s}.level-progress small{font-size:10px;color:#9caa8c;display:block;margin-top:3px}.scene-stage{width:100%;flex:1;min-height:0;background:#edf3e7;display:block;overflow:hidden}.scene-stage canvas{display:block}.typing-panel{flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;column-gap:28px;row-gap:5px;padding:8px clamp(16px,3vw,56px) 10px;background:#fffef7;text-align:center;border-top:1px solid #e4e7d7}.typing-hint{grid-column:1;grid-row:2;color:#8a9a7a;font-size:12px;min-height:20px}.typing-target{grid-column:1;grid-row:1;min-width:0;font-size:clamp(28px,2.5vw,40px);line-height:1.3;font-weight:800;letter-spacing:3px;color:#547248;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.typing-target .correct{color:#a4c490}.typing-target .current{border-bottom:3px solid #d8b252;padding-bottom:2px}.input-wrap{grid-column:2;grid-row:1;display:flex;align-items:center;gap:12px;width:100%;margin:0;border:2px solid #dfe9ce;background:#f6faed;border-radius:11px;padding:0 13px;text-align:left}.input-wrap>svg{color:#a5b894;flex-shrink:0}.input-wrap input{width:100%;border:0;padding:10px 0;color:#496c48;outline:none!important;background:transparent;font-size:16px;min-width:0}.input-wrap input::placeholder{color:#a6b398;font-size:13px}.input-wrap>span{font-size:11px;color:#95a580;white-space:nowrap}.input-help{grid-column:2;grid-row:2;margin:0;color:#a3ae94;font-size:10px;display:flex;justify-content:space-between;gap:15px}.input-error .input-wrap{border-color:#dba898;background:#fff3e7}.input-error .input-wrap>span{color:#c4806a}.pause-overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:#2e534878;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);display:grid;place-items:center;z-index:100}.pause-card{width:360px;max-width:90%;padding:30px;background:#fffdf4;border:1px solid #f2eedb;border-radius:25px;text-align:center;box-shadow:0 15px 60px #1e42282a}.pause-art{display:grid;place-items:center;width:65px;height:65px;border-radius:50%;background:#eef2de;color:#a0b475;margin:0 auto 18px}.pause-card h2{font-size:25px;margin-bottom:12px}.pause-card p{font-size:12px;color:#929f84;line-height:1.9;margin-bottom:24px}.pause-card .primary{width:100%;margin-bottom:17px}.pause-card .text-button{font-size:12px}.loading-state{position:absolute;top:62px;right:0;bottom:212px;left:0;background:#edf4e1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;color:#80946b;font-size:14px}.loader{display:inline-block;width:30px;height:30px;border:3px solid #d4e2c1;border-top-color:#559b73;border-radius:50%;animation:spin 1s linear infinite}.storage-warning{padding:10px 25px;text-align:center;color:#997346;background:#fff0cf;font-size:12px}.large-target .typing-target{font-size:45px}.large-target .input-wrap input{font-size:20px}@media(max-width:700px){.play-page{height:auto;min-height:100dvh;padding:8px}.play-heading{gap:8px}.play-heading>div:not(.play-actions){min-width:0}.fullscreen-button{width:38px;padding:0}.fullscreen-button span{display:none}.game-shell{flex:0 0 auto}.scene-stage{flex:none;aspect-ratio:1100 / 540}.typing-panel{grid-template-columns:minmax(0,1fr);padding:10px 16px;row-gap:8px}.input-wrap{grid-column:1;grid-row:3}.input-help{grid-column:1;grid-row:4}}@keyframes bob{0%,to{translate:0 0}50%{translate:0 -8px}}@keyframes sway{0%{rotate:-3deg}to{rotate:3deg}}@keyframes swim{0%,to{translate:0 0}50%{translate:30px -5px}}@keyframes breathe{0%,to{scale:1}50%{scale:1.015}}@keyframes twinkle{0%,to{opacity:.5;scale:.9}50%{opacity:1;scale:1.1}}@keyframes cloud-drift{to{translate:90px 0}}@keyframes card-idle{0%,90%,to{translate:0 0}95%{translate:0 -5px}}@keyframes fade-in{0%{opacity:0;translate:0 5px}to{opacity:1;translate:0 0}}@keyframes spin{to{transform:rotate(360deg)}}.selection-page,.lobby-page,.result-page,.leaderboard-page{animation:fade-in .25s}.reduced-motion *{animation:none!important;transition:none!important}@media(min-width:1500px){.hero{min-height:560px}.hero-copy{padding-top:62px}.hero h1{font-size:66px}.hero-characters{right:10%;top:98px}.card-art{height:180px}.card-character{scale:1.12}.adventures{padding-top:45px}}@media(max-width:1100px){nav{gap:16px}.site-header{padding:0 25px}.brand>span:last-child{font-size:20px}nav>button{font-size:12px}.hero-copy{padding-left:45px}.hero h1{font-size:50px}.hero-characters{right:0;scale:.87;transform-origin:right center}.adventures{padding-left:40px;padding-right:40px}.hero-notes{gap:9px;font-size:10px}.section-heading>p{font-size:11px}.card-info h3{font-size:15px}.card-info p{font-size:10px}.game-grid{gap:17px}.kind-strip{margin-left:40px;margin-right:40px}}@media(max-width:800px){.site-header{height:auto;min-height:80px;padding:15px 22px;flex-wrap:wrap;gap:15px}.brand>span:last-child{font-size:19px}nav{gap:17px;flex:1;justify-content:flex-end}nav>button{font-size:0}nav>button svg{width:20px;height:20px}nav>button:first-child{display:none}.player-chip{font-size:11px;max-width:160px}.hero{min-height:520px}.hero-copy{padding:35px 25px;width:65%}.hero h1{font-size:42px}.hero-copy>p{font-size:14px}.hero-characters{right:-15px;top:160px;scale:.63}.hero-notes{flex-direction:column;gap:5px}.hero-footnote{right:20px}.hero-cta{min-width:180px;font-size:18px}.hero-scenery{background-position:60% 50%}.adventures{padding:30px 23px}.section-heading{align-items:flex-start;flex-direction:column;gap:7px}.section-heading h2{font-size:24px}.game-grid{grid-template-columns:repeat(2,1fr);gap:16px}.card-info{padding:13px}.card-info p{white-space:normal}.kind-strip{margin:0 23px 25px;padding:20px 0;flex-wrap:wrap;justify-content:flex-start}.kind-strip>span{flex:1;min-width:180px}footer{padding:20px 23px;flex-wrap:wrap}.page-intro h1{font-size:27px}.selection-page,.lobby-page,.leaderboard-page{padding:25px 22px 45px}.language-grid{gap:18px}.language-card{padding:25px 22px;min-height:320px}.language-card .sprite{right:-15px;top:55px;width:120px!important;height:120px!important;opacity:.85}.language-symbol{font-size:65px}.language-card h2{font-size:24px}.language-card p{font-size:11px}.language-link{font-size:12px}.difficulty-picker{flex-wrap:wrap;gap:8px}.difficulty-picker button{min-width:0;flex:1;padding:10px;gap:7px;font-size:12px}.difficulty-picker .selected{padding:9px}.difficulty-picker button>svg:first-child{display:none}.difficulty-picker small{font-size:9px}.rank-row{grid-template-columns:40px 1fr 70px 90px;gap:8px;padding:12px 14px;font-size:12px}.rank-player{gap:5px}.rank-tabs button{padding:8px 10px;font-size:11px}.play-heading h1{font-size:20px}.game-hud{padding:8px 15px;gap:15px}.level-progress{width:150px}.typing-target{font-size:29px}.typing-panel{column-gap:16px}.time{display:none}.game-hud>span{font-size:10px}.result-stats b{font-size:20px}.result-page h1{font-size:29px}}@media(max-width:480px){.site-header nav{justify-content:space-between;width:100%}.hero-characters{right:-40px;scale:.48;top:190px}.hero h1{font-size:37px}.hero-copy{width:88%}.hero-copy>p{font-size:12px}.hero-notes{font-size:10px}.title-star{right:-45px;font-size:29px}.hero-footnote{font-size:10px;bottom:14px}.game-grid{gap:12px}.card-art{height:135px}.card-character{width:120px!important;height:120px!important}.card-tag{font-size:8px;padding:3px 6px;top:7px;right:6px}.card-info h3{font-size:14px}.card-arrow{width:25px;height:25px}.card-info{padding:12px 9px}.language-grid{grid-template-columns:1fr}.language-card{min-height:270px}.language-card .sprite{right:15px;top:35px;width:160px!important;height:160px!important}.language-card h2{margin-top:15px}.modal{padding:26px 23px}.play-heading .text-button{font-size:11px}.play-heading .eyebrow{font-size:8px;letter-spacing:0}.level-progress{width:105px}.game-hud>span{gap:3px}.typing-target{font-size:25px;letter-spacing:3px}.typing-hint{font-size:10px}.result-actions{flex-direction:column}.rank-player .sprite{width:32px!important;height:32px!important}.rank-row{grid-template-columns:25px 1fr 55px 65px;gap:6px}.rank-player b{font-size:12px}.page-intro h1{font-size:23px}.result-stats b{font-size:17px}.result-stats span{font-size:10px}}.hero-cta:hover,.hero-cta:focus-visible{animation-play-state:paused}.offline-setting{margin:15px 0 20px}.offline-setting small{display:block;color:#a38461;font-size:11px;margin-top:8px}:root{--scene-accent: #278069;--scene-deep: #224c40;--scene-soft: #edf4e5;--scene-line: #ccdcca;--scene-muted: #526c5d}[data-game=frog]{--scene-accent: #287c64;--scene-deep: #244f3f;--scene-soft: #edf4df;--scene-line: #ccddbb;--scene-muted: #55744c}[data-game=dino]{--scene-accent: #9b7037;--scene-deep: #645033;--scene-soft: #f8efd9;--scene-line: #e2d1a9;--scene-muted: #7b6a4b}[data-game=eater]{--scene-accent: #a86a49;--scene-deep: #704b36;--scene-soft: #faeddf;--scene-line: #e6ccb6;--scene-muted: #866955}[data-game=police]{--scene-accent: #477b9c;--scene-deep: #2c526e;--scene-soft: #e8f1f7;--scene-line: #c6dce8;--scene-muted: #587386}[data-game=firefighter]{--scene-accent: #b3674f;--scene-deep: #774637;--scene-soft: #faeee1;--scene-line: #e6cbbb;--scene-muted: #865f51}[data-game=rocket]{--scene-accent: #477f96;--scene-deep: #274b67;--scene-soft: #e7f2f5;--scene-line: #bfd8e0;--scene-muted: #527789}.app{background:radial-gradient(ellipse at 95% 0,#edf4e5 0,transparent 45%),#fbfaf5}.site-header{background:linear-gradient(110deg,#fffdf6,#f7f9ed);box-shadow:0 3px 18px #2b523b06}.game-card{border-color:#dce6d2;border-radius:22px;box-shadow:0 5px #e8ecdf,0 12px 25px #274b4010}.game-card .card-art:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(0deg,#f9fcf33b,#eef9e00d),var(--card-scene) center / cover}.game-frog{--card-scene: url(/assets/scenes/frog-0-v2.webp)}.game-dino{--card-scene: url(/assets/scenes/dino-0-v2.webp)}.game-eater{--card-scene: url(/assets/scenes/eater-0-v2.webp)}.game-police{--card-scene: url(/assets/scenes/police-0-v2.webp)}.game-firefighter{--card-scene: url(/assets/scenes/firefighter-0-v2.webp)}.game-rocket{--card-scene: url(/assets/scenes/rocket-0-v2.webp)}.card-hill{display:none}.card-info{background:linear-gradient(100deg,#fffef9,#f4f7ec)}.card-info h3{color:#294f3f}.card-info p{color:#647660}.card-tag{color:#fff8de;background:#244e40db;border:1px solid #fff8dc59;box-shadow:0 2px 6px #163b3322;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.card-number{z-index:2;color:#fffbed;text-shadow:0 1px 5px #143e2a}.card-arrow{background:#e4eddb;border:1px solid #d3e1c8}.difficulty-picker button{border-radius:17px;border:1px solid #dce6d4;box-shadow:inset 0 1px #fff,0 3px #e8ecdf}.difficulty-picker .selected{background:linear-gradient(120deg,#e4f0d9,#f0f6e9);box-shadow:inset 0 0 0 1px #4e9270,0 3px #c8dbc1}.modal{border:1px solid #e5dcc3;background:radial-gradient(ellipse at 50% 0,#edf5df,transparent 55%),#fffcf3;box-shadow:inset 0 0 0 5px #fffef580,0 20px 90px #233c3940}.theme-picker button{min-height:102px;align-items:flex-end;padding:10px 4px;background-position:center;background-size:cover;color:#fffef2;text-shadow:0 1px 3px #173832;border-radius:14px;border:2px solid #f4ecd5;font-weight:700}.theme-picker .selected{color:#fff7cf;border-color:#699b60;box-shadow:0 0 0 2px #e0edcc;background-position:center;background-size:cover}.play-page{background:radial-gradient(ellipse at 12% 0,var(--scene-soft),transparent 70%),#faf9f2}.play-title{display:flex;align-items:center;gap:10px;text-align:left}.game-emblem{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;border-radius:13px 13px 15px 7px;color:#fffae0;background:var(--scene-accent);border:1px solid #ffffff85;box-shadow:0 3px 0 var(--scene-line),inset 0 1px #ffffff40}.play-heading h1{color:var(--scene-deep)}.play-heading .eyebrow{color:var(--scene-muted);letter-spacing:1.5px}.play-heading .text-button{color:var(--scene-muted)}.play-actions button{color:var(--scene-deep);border-color:var(--scene-line);background:linear-gradient(#fffdf6,var(--scene-soft));box-shadow:0 2px 0 var(--scene-line)}.game-shell{border-color:var(--scene-line);border-radius:23px;box-shadow:0 6px 0 var(--scene-line),0 12px 30px #24473b0e}.game-hud{background:linear-gradient(100deg,#fffdf4,var(--scene-soft) 50%,#fffdf4);border-bottom:1px solid var(--scene-line)}.game-hud>span{color:var(--scene-muted)}.game-hud strong{color:var(--scene-deep);font-variant-numeric:tabular-nums}.score-chip>svg{filter:drop-shadow(0 2px 0 #e1bc633b)}.time{background:#ffffff7a;border:1px solid var(--scene-line);padding:3px 7px;border-radius:20px;text-align:center}.level-progress>div{background:#ffffffa8;border:1px solid var(--scene-line);box-shadow:inset 0 1px 2px #28463112;height:9px}.level-progress i{background:linear-gradient(90deg,var(--scene-accent),#aec888);box-shadow:inset 0 1px #ffffff65}.level-progress small{color:var(--scene-muted)}.scene-stage{background:var(--scene-soft)}.typing-panel{background:linear-gradient(100deg,#fffcf4,var(--scene-soft));border-top-color:var(--scene-line);box-shadow:inset 0 2px #ffffffb5}.typing-target{color:var(--scene-deep)}.typing-target>span{border-radius:7px;padding:0 1px}.typing-target .correct{color:var(--scene-accent);opacity:.72}.typing-target .current{background:#fff6d3;border-bottom-color:#c89b49;box-shadow:inset 0 0 0 1px #efd9a47a}.typing-hint,.input-help{color:var(--scene-muted)}.input-wrap{border-color:var(--scene-line);background:#fffff5a6;border-radius:15px;box-shadow:inset 0 2px 4px #2c50360a,0 2px #ffffffba;transition:border-color .18s,box-shadow .18s}.input-wrap:focus-within{border-color:var(--scene-accent);box-shadow:0 0 0 3px var(--scene-soft),inset 0 1px 3px #2548320b}.input-wrap>svg,.input-wrap>span{color:var(--scene-accent)}.input-wrap input{color:var(--scene-deep)}.input-wrap input::placeholder{color:var(--scene-muted);opacity:.75}.input-error .input-wrap{border-color:#c78155;background:#fff2e0}.input-error .input-wrap:focus-within{box-shadow:0 0 0 3px #f4dcc380}.pause-overlay{background:#1e353764}.pause-card{background:radial-gradient(ellipse at 50% 0,var(--scene-soft),transparent 80%),#fffaf0;border-color:var(--scene-line);box-shadow:inset 0 0 0 5px #fff5,0 18px 65px #0f2f3840}.pause-art{color:var(--scene-accent);background:var(--scene-soft);border:1px solid var(--scene-line)}.pause-card h2{color:var(--scene-deep)}.pause-card p{color:var(--scene-muted)}.pause-card .primary{background:var(--scene-accent)}.result-page{display:grid;grid-template-columns:210px minmax(0,1fr);gap:8px 24px;max-width:860px;min-height:0;padding:28px;text-align:left;margin:24px auto;width:calc(100% - 32px);border:1px solid var(--scene-line);border-radius:32px;background:radial-gradient(ellipse at 50% 0,var(--scene-soft),transparent 55%),#fffdf6;box-shadow:inset 0 0 0 6px #ffffff7a,0 7px 0 var(--scene-line),0 18px 45px #2344370c}.celebration{grid-area:1 / 1 / 6 / 2;height:auto;min-height:220px;gap:0;isolation:isolate}.celebration>span{position:absolute;font-size:28px}.celebration>span:first-child{left:4px;top:34px}.celebration>span:last-child{right:0;bottom:30px}.result-page>.pill{grid-area:1 / 2;justify-self:start}.result-page h1{grid-area:2 / 2;font-size:29px;margin:5px 0}.result-page>p{grid-area:3 / 2;line-height:1.8}.result-page .result-score{grid-area:4 / 2;justify-content:flex-start;margin:7px 0}.result-page .record-badge{grid-area:5 / 2;justify-self:start}.result-page .result-stats{grid-area:6 / 1 / 7 / 3;margin:15px 0 10px;text-align:center;padding:20px 10px}.result-page .result-actions{grid-area:7 / 1 / 8 / 3}.result-page .center-note{grid-area:8 / 1 / 9 / 3;text-align:center;margin-top:10px}.celebration:before{content:"";position:absolute;width:160px;height:160px;border:1px dashed var(--scene-line);border-radius:50%;background:radial-gradient(circle,#fffdf5 20%,#f4dc9630 70%,transparent 71%);z-index:-1}.result-page h1,.result-score strong{color:var(--scene-deep)}.result-page>p,.result-stats span{color:var(--scene-muted)}.result-stats{background:var(--scene-soft);border-color:var(--scene-line);box-shadow:inset 0 1px #fff}.result-stats b{color:var(--scene-accent)}.result-stats>div+div{border-left-color:var(--scene-line)}.result-actions .primary{background:var(--scene-accent)}.record-badge{border:1px solid #ead38e;background:linear-gradient(#fff8dc,#faecc2);color:#977129}@media(max-width:700px){.play-title{gap:6px}.game-emblem{display:none}.play-heading .eyebrow{letter-spacing:0}.typing-target>span{padding:0}.result-page{display:flex;flex-direction:column;text-align:center;padding:20px 16px;gap:10px}.result-page .celebration{min-height:0;height:125px}.result-page .celebration .sprite{width:140px!important;height:140px!important}.result-page .celebration:before{width:120px;height:120px}.result-page>.pill,.result-page .record-badge{align-self:center}.result-page .result-score{justify-content:center}.result-page h1{font-size:25px}.result-page .result-stats{margin-top:5px}.result-page .result-actions{gap:8px}}
