.kids-app{--forest:#377c4b;--green:#4b8d50;--lime:#8cbd4d;color:#263f31;background:linear-gradient(165deg,#d9f4ff 0%,#bcecff 53%,#8fc55e 53.2%,#8ac05b 100%);min-height:100vh;font-family:Arial,system-ui,sans-serif;display:flex}.kids-sidebar{color:#fff;background:#387b48;flex-direction:column;flex-shrink:0;width:238px;min-height:100vh;padding:26px 15px 16px;display:flex;box-shadow:4px 0 18px #123c2422}.kids-logo{letter-spacing:-1.5px;color:#fff;align-items:center;gap:7px;padding:0 8px 32px;font-size:27px;font-weight:950;display:flex}.kids-logo>span:last-child>span{color:#f7e46b}.kids-logo small{letter-spacing:2px;color:#d2f5cb;margin-top:3px;font-size:8px;font-weight:700;display:block}.kids-crown{color:#ffde5a;font-size:36px;transform:rotate(-15deg)}.kids-profile{border-top:1px solid #fff3;align-items:center;gap:10px;padding:14px 7px;display:flex}.kids-avatar{background:#d5e9a3;border-radius:16px;padding:8px;font-size:36px}.kids-profile b{font-size:13px}.kids-profile small{color:#cdeacb;margin-top:5px;font-size:11px;display:block}.kids-points{gap:6px;margin:8px 0 22px;display:flex}.kids-points span{color:#49703b;background:#f5fff0;border-radius:15px;padding:7px 9px;font-size:11px;font-weight:700}.kids-menu{flex-direction:column;gap:7px;display:flex}.kids-menu button{text-align:left;color:#fff;background:0 0;border:0;border-radius:13px;align-items:center;gap:13px;width:100%;padding:13px 12px;font-size:22px;font-weight:800;display:flex}.kids-menu button span{flex:1;font-size:15px}.kids-menu button b{font-size:23px;font-weight:400}.kids-menu button.chosen,.kids-menu button:hover{background:#ffffff25}.kids-side-bottom{flex-direction:column;gap:12px;margin-top:auto;padding:18px 8px 0;display:flex}.kids-side-bottom a{color:#f6ffdb;font-size:12px;font-weight:700;text-decoration:none}.kids-side-bottom small{color:#d1e6d2;font-size:10px}.kids-main{flex:1;min-width:0}.kids-top{color:#397f4a;justify-content:space-between;align-items:center;height:75px;padding:0 42px;font-size:14px;font-weight:800;display:flex}.kids-top-right{color:#518f9e}.kids-play-layout{grid-template-columns:minmax(380px,690px) minmax(290px,350px);justify-content:center;align-items:start;gap:40px;padding:8px 32px 50px;display:grid}.kids-board-area{min-width:0}.kids-board-heading{justify-content:space-between;align-items:center;margin:0 0 16px;display:flex}.kids-board-heading>div{align-items:center;gap:13px;display:flex}.kids-heading-icon{color:#a66b17;background:#fff7d2;border:3px solid #f2d76d;border-radius:15px;place-items:center;width:54px;height:54px;font-size:34px;display:grid}.kids-board-heading h1{color:#2b673d;margin:0;font-size:27px}.kids-board-heading p{color:#58845f;margin:4px 0 0;font-size:13px}.kids-board-heading button{color:#4b8858;background:#fff;border:0;border-radius:12px;padding:7px 15px;font-size:25px}.kids-chessboard{aspect-ratio:1;border:9px solid #fff;border-radius:12px;grid-template-columns:repeat(8,1fr);width:100%;display:grid;overflow:hidden;box-shadow:0 15px 32px #39704a40}.kids-square{aspect-ratio:1;border:0;place-items:center;min-width:0;padding:0;display:grid;position:relative}.kids-square.light{background:#f4f5ed}.kids-square.dark{background:#79a94e}.kids-square.selected{background:#f9db69}.kids-square.possible{box-shadow:inset 0 0 0 4px #f4cf53}.kids-piece{z-index:2;font-family:Georgia,Times New Roman,serif;font-size:clamp(26px,4.5vw,66px);line-height:1}.kids-piece.white{color:#ffe176;text-shadow:1px 2px 1px #805f17,-1px -1px 1px #fff5ad,2px 3px 3px #403b1a88}.kids-piece.black{color:#37373b;text-shadow:1px 2px 1px #111,-1px -1px 1px #858585}.kids-move-dot{background:#e9c542a8;border-radius:50%;width:25%;height:25%;position:absolute}.kids-board-footer{color:#4b7650;background:#ffffffc9;border-radius:13px;justify-content:space-between;align-items:center;gap:10px;margin-top:14px;padding:13px 15px;font-size:12px;display:flex}.kids-board-footer button{white-space:nowrap;color:#fff;background:#4b9659;border:0;border-radius:9px;padding:9px 11px;font-size:12px;font-weight:700}.kids-panel{background:#fff;border-radius:22px;margin-top:1px;padding:20px;box-shadow:0 13px 32px #37653d1e}.kids-panel-head{text-align:center;padding:10px 0 18px}.kids-panel-head>span{font-size:34px}.kids-panel-head h2{color:#2e6040;margin:9px 0 6px;font-size:22px}.kids-panel-head p{color:#8b9b8b;margin:0;font-size:13px}.kids-mode{color:#fff;text-align:left;border:2px solid #0000;border-radius:15px;align-items:center;gap:10px;width:100%;margin:0 0 12px;padding:15px 12px;text-decoration:none;display:flex}.kids-mode.orange{background:#f49a3f}.kids-mode.purple{background:#a777d8}.kids-mode.teal{background:#49b6ad}.kids-mode.mode-active{border-color:#fff;outline:3px solid #eadcf9}.kids-mode-icon{background:#ffffff36;border-radius:12px;padding:9px;font-size:32px}.kids-mode>span:nth-child(2){flex:1}.kids-mode b{font-size:15px;display:block}.kids-mode small{color:#fff9;margin-top:4px;font-size:11px;display:block}.kids-move-history{border-top:1px solid #e9eee9;margin-top:20px;padding-top:16px}.kids-move-history b{font-size:13px}.kids-move-history p{color:#7d8b7e;min-height:36px;font-size:12px;line-height:1.7}.kids-panel-tip{color:#6b865a;background:#f2f8e8;border-radius:12px;gap:9px;padding:13px;font-size:12px;line-height:1.6;display:flex}.kids-catalog{max-width:1050px;margin:40px auto;padding:0 30px}.kids-catalog-heading{background:#ffffffd9;border-radius:24px;margin-bottom:25px;padding:30px}.kids-catalog-heading>span{color:#5c9b62;font-size:12px;font-weight:700}.kids-catalog-heading h1{color:#347348;margin:12px 0;font-size:35px}.kids-catalog-heading p{color:#6e8a70}.kids-cards{grid-template-columns:repeat(3,1fr);gap:20px;display:grid}.kids-cards a{color:#2e603b;background:#fff;border-radius:22px;padding:28px;text-decoration:none;box-shadow:0 10px 22px #386d3a26}.kids-cards a>div{font-size:65px}.kids-cards h2{margin:18px 0 8px;font-size:19px}.kids-cards p{color:#7d917f;min-height:35px;font-size:13px}.kids-cards strong{color:#ef8b34}@media (max-width:1150px){.kids-sidebar{width:190px}.kids-play-layout{grid-template-columns:minmax(320px,1fr) 280px;gap:18px;padding:8px 18px}.kids-panel{padding:13px}.kids-mode{padding:12px 8px}.kids-mode-icon{font-size:25px}}@media (max-width:850px){.kids-app{display:block}.kids-sidebar{flex-direction:row;align-items:center;gap:15px;width:100%;min-height:0;padding:10px 15px;display:flex}.kids-logo{padding:0;font-size:22px}.kids-logo small,.kids-profile,.kids-points,.kids-side-bottom{display:none}.kids-menu{flex-direction:row;flex:1;justify-content:flex-end;gap:0}.kids-menu button{width:auto;padding:8px;font-size:20px}.kids-menu button span,.kids-menu button b{display:none}.kids-top{height:52px;padding:0 18px}.kids-play-layout{grid-template-columns:1fr;max-width:640px;margin:auto}.kids-panel{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.kids-panel-head,.kids-move-history,.kids-panel-tip{grid-column:1/-1}.kids-mode{text-align:center;flex-direction:column;justify-content:center}.kids-mode>span:last-child{display:none}.kids-cards{grid-template-columns:1fr}}@media (max-width:480px){.kids-top-right{display:none}.kids-board-heading h1{font-size:21px}.kids-play-layout{padding:4px 10px 25px}.kids-chessboard{border-width:5px}.kids-piece{font-size:clamp(28px,9vw,46px)}.kids-panel{grid-template-columns:1fr}.kids-mode{text-align:left;flex-direction:row;justify-content:flex-start}.kids-mode>span:last-child{display:block}.kids-panel-head{padding:2px}.kids-board-footer{font-size:11px}}.kids-sound-toggle{color:#526b68;font:inherit;text-align:left;cursor:pointer;background:#ffffffa0;border:0;border-radius:12px;padding:10px 12px;font-size:12px;font-weight:700}.kids-sound-toggle:focus-visible{outline-offset:3px;outline:3px solid #af985e}.kids-play-layout[hidden]{display:none}.classic-piece{object-fit:contain;z-index:2;pointer-events:none;-webkit-user-select:none;user-select:none;filter:drop-shadow(0 2px 1px #1e33221b);width:88%;height:88%}.kids-heading-icon img{width:45px;height:45px}.kids-square.last-move:not(.selected){background:#d3d977}.kids-square.in-check{background:radial-gradient(#ed8780,#c3424280)}.square-file,.square-rank{z-index:3;color:#45613a;pointer-events:none;font:700 10px Arial;position:absolute}.square-file{bottom:3px;right:4px}.square-rank{top:3px;left:4px}.kids-square.dark .square-file,.kids-square.dark .square-rank{color:#eef3da}.kids-capture-ring{z-index:3;border:5px solid #e6bf4e99;border-radius:50%;position:absolute;inset:4px}.kids-square[aria-disabled=true]{cursor:default}.pig-small{padding:3px!important}.pig-small svg{width:45px;height:45px}.kids-panel-head>svg{margin:0 auto;display:block}.chess-history{max-height:175px;margin:10px 0;padding:0;list-style:none;overflow-y:auto}.chess-history li{border-radius:5px;grid-template-columns:25px 1fr 1fr;gap:7px;padding:5px 7px;font-size:13px;display:grid}.chess-history li:nth-child(odd){background:#f3f7ef}.chess-history li>span{color:#96a28d}.chess-actions{flex-wrap:wrap;align-items:center;gap:10px;padding:12px 3px;display:flex}.chess-actions button{color:#57734e;background:#f4faeb;border:1px solid #c9d6c1;border-radius:8px;padding:7px 10px;font-size:12px}.chess-actions a{color:#55764e;margin-left:auto;font-size:10px}.chess-engine-error{color:#786644;background:#fff5d9;border-radius:12px;padding:12px;font-size:13px}.chess-engine-error button,.chess-dialog>button{color:#fff;background:#53845d;border:0;border-radius:9px;margin:5px;padding:11px 15px;font-weight:700}.chess-dialog-backdrop{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);z-index:50;background:#254d3b88;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.chess-dialog{text-align:center;background:#fff9e9;border:3px solid #d5c48d;border-radius:24px;width:min(480px,100%);padding:25px;box-shadow:0 20px 70px #16342255}.chess-dialog h2{color:#3c6145;margin:0 0 20px;font-size:23px}.chess-dialog p{font-size:14px;line-height:1.6}.promotion-choices{grid-template-columns:repeat(4,1fr);gap:8px;display:grid}.promotion-choices button{color:#496149;background:#f0e7cb;border:1px solid #d7c994;border-radius:12px;padding:8px 2px}.promotion-choices img{aspect-ratio:1;width:100%}.promotion-choices span{font-size:11px}.chess-dialog .chess-dialog-cancel{color:#6a8067;background:0 0;border:1px solid #b6c5a7;margin-top:18px}.kids-app :is(button,a):focus-visible{outline-offset:3px;outline:3px solid #bf8d35}.pig-avatar{flex-shrink:0;overflow:visible}.pig-animated{width:86px;height:86px}.pig-animated .pig-face{transform-box:fill-box;transform-origin:50% 80%;animation:4s ease-in-out infinite pigBreathe}.pig-animated .pig-eye{transform-box:fill-box;transform-origin:50%;animation:6.3s linear infinite pigBlink}.pig-animated .pig-ear{transform-box:fill-box;transform-origin:50% 100%;animation:7s ease-in-out infinite pigEar}.pig-animated .pig-ear-right{animation-delay:-3.5s}.pig-animated.pig-thinking .pig-face{animation:2.4s ease-in-out infinite pigThink}.pig-animated.pig-happy .pig-face{animation:.8s ease-in-out 3 pigCelebrate}.pig-speech-slot{min-height:72px;padding-top:7px}.kids-panel-head .pig-speech{color:#7a694d;background:#fff7df;border:1px solid #e7d5ae;border-radius:14px;margin:8px 0 0;padding:12px 10px;font-size:12px;line-height:1.55;animation:.25s ease-out pigSpeechAppear;position:relative}.pig-speech:before{content:"";background:#fff7df;border-top:1px solid #e7d5ae;border-left:1px solid #e7d5ae;width:10px;height:10px;position:absolute;top:-6px;left:48%;transform:rotate(45deg)}.match-board-controls{align-items:center;gap:8px;display:flex}.kids-board-heading .chess-sound-toggle{color:#5b8058;background:#fff;border:0;border-radius:12px;place-items:center;width:43px;height:43px;padding:7px;display:grid}.chess-sound-toggle[aria-pressed=false]{opacity:.65}.match-end-dialog{position:relative;overflow:hidden}.match-end-emblem{background:#efead4;border-radius:50%;place-items:center;width:88px;height:88px;margin:0 auto 12px;display:grid}.match-end-emblem>img,.match-end-emblem>svg{width:72px;height:72px}.match-victory{border-color:#d9b95d}.match-victory .match-end-emblem{background:radial-gradient(circle,#fff3ba,#f4d67e);animation:.7s ease-out matchEmblemIn;box-shadow:0 0 0 9px #f7de952a}.match-end-dialog .match-result-reason{color:#899078;font-size:12px}.match-end-dialog>button{width:100%;margin:10px 0;display:block}.match-end-dialog .match-play-again{background:#54875a;padding:14px;font-size:16px}.match-end-dialog .match-choose-opponent{color:#67517d;background:#eaddf2}.match-end-dialog .chess-dialog-cancel{background:0 0;border:0;margin-top:16px;font-size:12px;font-weight:400}.match-end-dialog .opponent-option{text-align:left;color:#506744;background:#fff3d4;border:1px solid #e4d5ad;border-radius:14px;align-items:center;gap:15px;padding:12px;display:flex}.opponent-option>span:last-child{flex-direction:column;gap:5px;display:flex}.opponent-option small{font-size:11px;font-weight:400}.friend-pieces{flex-shrink:0;width:60px;display:flex}.friend-pieces img{width:34px;height:50px}.friend-pieces img+img{margin-left:-8px}@keyframes pigBreathe{0%,to{transform:translateY(0)rotate(-1deg)}50%{transform:translateY(-2px)rotate(1deg)}}@keyframes pigBlink{0%,93%,98%,to{transform:scaleY(1)}95%,96%{transform:scaleY(.12)}}@keyframes pigEar{0%,80%,to{transform:rotate(0)}87%{transform:rotate(-6deg)}94%{transform:rotate(4deg)}}@keyframes pigThink{0%,to{transform:rotate(-4deg)translateY(0)}50%{transform:rotate(3deg)translateY(-2px)}}@keyframes pigCelebrate{0%,to{transform:translateY(0)}50%{transform:translateY(-6px)rotate(3deg)}}@keyframes pigSpeechAppear{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes matchEmblemIn{0%{opacity:.3;transform:scale(.85)}to{opacity:1;transform:scale(1)}}@media (prefers-reduced-motion:reduce){.pig-avatar *,.pig-speech,.match-end-emblem{animation:none!important}}.kids-play-layout{grid-template-columns:minmax(320px,min(68vh,720px)) minmax(280px,390px);gap:26px;padding:8px 24px 28px}.match-opponent-panel{background:#f4faf2;border:3px solid #ffffffb3;padding:0;display:block;overflow:hidden;box-shadow:0 15px 40px #28574724}.opponent-name{text-align:center;color:#fff;background:#4b8256;margin:0;padding:18px 12px;font-size:29px;font-weight:900}.opponent-scene{isolation:isolate;background:linear-gradient(#ffd8be,#fbe9c7);height:350px;position:relative;overflow:hidden}.scene-monkey{background:linear-gradient(#6bc6b0,#b4e8a3)}.scene-seal{background:linear-gradient(#8ac8ea,#e2f6ff)}.scene-parrot{background:linear-gradient(#93d5d3,#e5efb2)}.scene-knight{background:linear-gradient(#758ab7,#c2cde5)}.scene-friend{background:linear-gradient(#9ebfd3,#e0f1d5)}.scene-orb{z-index:-2;background:#fff5c9b3;border-radius:50%;width:85px;height:85px;position:absolute;top:25px;right:35px;box-shadow:0 0 60px #fff8bfa3}.scene-hill{z-index:-1;background:#4f886a88;border-radius:50%;width:120%;height:170px;position:absolute;bottom:-45px;left:-15%}.scene-hill-back{background:#83aa8a66;bottom:15px;left:35%;transform:rotate(-20deg)}.scene-seal .scene-hill{background:#effaff}.scene-seal .scene-hill-back{background:#b1e0ed}.scene-knight .scene-hill{background:#354d7088}.scene-parrot .scene-hill{background:#30997c88}.opponent-scene>.bot-avatar{width:235px;height:235px;position:absolute;top:22px;left:50%;transform:translate(-50%)}.opponent-scene>.pig-avatar{width:210px;height:210px;position:absolute;top:40px;left:50%;transform:translate(-50%)}.scene-spark{color:#fff6b9;font-size:25px;animation:4s ease-in-out infinite bot-spark;position:absolute;top:28%;left:12%}.spark-two{animation-delay:1s;top:49%;left:auto;right:10%}.bot-speech-slot{justify-content:center;align-items:flex-end;min-height:74px;display:flex;position:absolute;bottom:14px;left:18px;right:18px}.bot-speech{text-align:center;background:#fffbed;border:3px solid #f2c45b;border-radius:23px;padding:15px 18px;font-weight:800;line-height:1.35;animation:.24s ease-out bot-bubble;position:relative;box-shadow:0 7px #42446716;color:#4e3d66!important;margin:0!important;font-size:19px!important}.bot-speech:before{content:"";border:9px solid #0000;border-top:0;border-bottom-color:#f2c45b;position:absolute;top:-17px;left:45%}.bot-speech:after{content:"";border:7px solid #0000;border-top:0;border-bottom-color:#fffbed;position:absolute;top:-12px;left:calc(45% + 2px)}.match-opponent-panel .kids-move-history{border:0;margin:0;padding:18px 20px}.match-opponent-panel .kids-move-history>b{color:#496b52;font-size:16px}.match-opponent-panel .chess-history{min-height:80px;max-height:180px}.match-opponent-panel .chess-history b{font-size:16px}.match-opponent-panel .chess-history li{padding:7px 9px}.friend-scene-pieces{justify-content:center;padding-top:45px;display:flex}.friend-scene-pieces img{width:110px}.bot-animated .bot-body{transform-origin:120px 220px;animation:4s ease-in-out infinite bot-sway}.bot-animated .bot-head{transform-origin:120px 120px;animation:6s ease-in-out infinite bot-look}.bot-animated .bot-eye{transform-box:fill-box;transform-origin:50%;animation:5s infinite pig-blink}.bot-thinking .bot-head{animation-duration:2s}.bot-happy .bot-body{animation:1.3s ease-in-out infinite bot-hop}.bot-parrot.bot-animated .bot-body{animation-duration:2.8s}.opponent-grid{grid-template-columns:1fr 1fr;gap:10px;margin:12px 0;display:grid}.opponent-grid .opponent-option{text-align:center;color:#3d654d;background:#f2f8e9;border:2px solid #0000;flex-direction:column;gap:4px;margin:0;padding:12px}.opponent-option .bot-avatar,.opponent-option .pig-avatar{flex:none;width:75px;height:75px}.opponent-grid .opponent-selected{background:#fff7da;border-color:#e8bb56}.opponent-grid small{margin-top:5px}.match-end-dialog{max-height:90dvh;overflow:auto}.match-end-emblem>.bot-avatar{width:100px;height:100px}.opponent-option:focus-visible{outline-offset:2px;outline:3px solid #876bb7}@keyframes bot-sway{0%,to{transform:rotate(-2deg)}50%{transform:rotate(2deg)translateY(-3px)}}@keyframes bot-look{0%,70%,to{transform:rotate(0)}80%{transform:rotate(-5deg)}90%{transform:rotate(4deg)}}@keyframes bot-hop{0%,to{transform:translateY(0)}50%{transform:translateY(-9px)}}@keyframes bot-spark{50%{opacity:.35;transform:scale(.8)}}@keyframes bot-bubble{0%{opacity:0;transform:translateY(10px)scale(.95)}to{opacity:1;transform:none}}@media (max-width:1100px){.kids-play-layout{grid-template-columns:minmax(290px,1fr) 285px;gap:18px;padding:8px 18px 25px}.opponent-scene{height:320px}.bot-speech{font-size:17px!important}.kids-board-heading h1{font-size:23px}}@media (max-width:850px){.kids-play-layout{grid-template-columns:1fr;max-width:660px}.match-opponent-panel{display:block}.opponent-scene{height:320px}.opponent-name{padding:12px}.match-opponent-panel .chess-history{max-height:145px}.kids-board-heading p{font-size:11px}}@media (prefers-reduced-motion:reduce){.bot-animated .bot-body,.bot-animated .bot-head,.bot-animated .bot-eye,.scene-spark,.bot-speech{animation:none!important}}.kids-logo{text-decoration:none}.kids-logo:focus-visible{border-radius:8px;outline:3px solid #ffe18c}.kids-menu button:disabled{opacity:.43;cursor:default}.kids-menu button:disabled:hover{background:0 0}.hero-lobby{max-width:1160px;margin:0 auto;padding:15px 30px 35px}.hero-lobby-intro>span{color:#658b70;font-size:12px;font-weight:800}.hero-lobby h1{color:#316d46;margin:7px 0 24px;font-size:32px}.hero-lobby-layout{grid-template-columns:minmax(260px,1fr) minmax(320px,1.1fr);gap:28px;display:grid}.hero-preview{text-align:center;background:linear-gradient(#ffdfc3,#f3eab8);border:4px solid #fff9df;border-radius:30px;flex-direction:column;justify-content:center;align-items:center;min-height:430px;padding:30px 24px;display:flex;box-shadow:0 15px 35px #345a3d20}.hero-preview>svg{filter:drop-shadow(0 8px 8px #29452c22);width:230px;height:230px}.hero-preview h2{margin:14px 0 12px;font-size:30px}.hero-preview p{color:#3b5960;max-width:310px;margin:0;font-size:19px;font-weight:700;line-height:1.45}.hero-selection{flex-direction:column;gap:20px;display:flex}.hero-cards{grid-template-columns:1fr 1fr;gap:12px;display:grid}.hero-cards button{color:#3c654c;text-align:left;cursor:pointer;background:#ffffffe3;border:3px solid #fff;border-radius:20px;align-items:center;gap:11px;min-height:108px;padding:14px;display:flex;box-shadow:0 6px 18px #37663f14}.hero-cards svg{flex:none;width:65px;height:65px}.hero-cards b{font-size:16px;display:block}.hero-cards small{color:#728574;margin-top:7px;font-size:12px;display:block}.hero-cards .hero-selected{background:#fff5cb;border-color:#e5b74c;box-shadow:0 0 0 3px #ffe8a577}.hero-start{color:#644720;cursor:pointer;background:linear-gradient(#ffce67,#f4a343);border:3px solid #ffecae;border-radius:19px;justify-content:space-between;align-items:center;gap:12px;margin-top:auto;padding:20px;font-size:19px;font-weight:900;display:flex;box-shadow:0 6px #bc7d37,0 12px 25px #755b3433}.hero-start span{font-size:26px}.hero-cards button:focus-visible,.hero-start:focus-visible{outline-offset:3px;outline:4px solid #8460a2}@media (max-width:1050px){.hero-lobby{padding:12px 20px}.hero-lobby-layout{grid-template-columns:1fr 1.2fr;gap:16px}.hero-cards button{gap:4px;padding:9px}.hero-cards svg{width:48px;height:48px}.hero-cards b{font-size:13px}.hero-start{font-size:15px}.hero-preview{padding:20px 15px}}@media (max-width:850px){.hero-lobby-layout{grid-template-columns:1fr}.hero-preview{min-height:260px}.hero-preview>svg{width:150px;height:150px}.hero-lobby h1{font-size:27px}.hero-cards button{min-height:90px}.hero-cards b{font-size:16px}.hero-cards svg{width:65px;height:65px}.hero-selection{padding-bottom:20px}}.kids-side-bottom>button{font:inherit;text-align:left;color:#f6ffdb;cursor:pointer;background:#fff2;border:1px solid #ffffff30;border-radius:12px;padding:10px 12px;font-size:13px;font-weight:750}.kids-side-bottom>button:hover{background:#ffffff35}.kids-side-bottom>button:focus-visible{outline-offset:3px;outline:3px solid #ffdf6b}.home-choice-panel{overscroll-behavior:contain;background:#f7fbf1;border:3px solid #ffffffc9;max-height:calc(100dvh - 100px);padding:18px;overflow:auto}.home-play-options h1{color:#386c47;margin:3px 0 18px;font-size:25px}.home-option{text-align:left;color:#fff;cursor:pointer;border:2px solid #fff8;border-radius:18px;grid-template-columns:48px 1fr;align-items:center;gap:3px 12px;width:100%;margin-bottom:12px;padding:18px 16px;display:grid;box-shadow:0 5px #31504418}.home-option>span:first-child{grid-row:1/3;font-size:35px}.home-option b{font-size:18px}.home-option small{opacity:.9;font-size:12px}.friend-option{background:#e8a044}.heroes-option{background:#8a6bbc}.puzzles-option{background:#399c91}.home-option.option-selected{outline:3px solid #d8bff3}.home-option:hover{filter:brightness(1.05)}.compact-heroes{margin:10px 0 20px;padding:0}.compact-heroes h2{color:#47684e;margin:12px 0;font-size:18px}.compact-heroes .hero-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.compact-heroes .hero-cards button{text-align:center;border-width:2px;border-radius:13px;flex-direction:column;gap:1px;min-height:100px;padding:6px 3px;display:flex}.compact-heroes .hero-cards svg{width:51px;height:51px}.compact-heroes .hero-cards b{font-size:11px;line-height:1.25}.compact-heroes .hero-cards small{margin-top:3px;font-size:10px}.compact-heroes .hero-start{border-radius:13px;margin-top:12px;padding:13px 11px;font-size:14px}.puzzle-streak{font-size:12px;font-weight:800}.scene-turtle{background:linear-gradient(#a8d7a3,#e0e8af)}.scene-artist{background:linear-gradient(#f2b0aa,#ffedbc)}.scene-wizard{background:linear-gradient(#8474c1,#ddd2f0)}.scene-andy{background:linear-gradient(#8dcadd,#dcebad)}.scene-grandpa{background:linear-gradient(#c4b998,#f7e5bf)}.scene-runner{background:linear-gradient(#8dccde,#dbeb9e)}.scene-prince{background:linear-gradient(#a3b4da,#e8d9ad)}.bot-turtle.bot-animated .bot-body{animation-duration:8s}.bot-runner.bot-animated .bot-body{animation-duration:1.5s}@media (min-width:1101px){.kids-play-layout{grid-template-columns:minmax(320px,min(70vh,780px)) minmax(300px,390px)}}@media (max-width:850px){.home-choice-panel{max-height:none;display:block}.home-option{padding:15px}.kids-main .kids-top{height:50px}.compact-heroes .hero-cards{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (max-width:480px){.compact-heroes .hero-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}.home-option>span:first-child{white-space:nowrap;font-size:27px}.choosing-heroes>h1,.choosing-heroes>.friend-option{display:none}.choosing-heroes>.heroes-option{margin-bottom:5px;padding:10px 14px}.choosing-heroes>.puzzles-option{margin:0;padding:10px 14px}.choosing-heroes .compact-heroes{margin:0 0 14px}.choosing-heroes .hero-cards button{min-height:84px}.choosing-heroes .hero-cards svg{width:43px;height:43px}.choosing-heroes .hero-cards b{font-size:10px}.choosing-heroes .compact-heroes h2{margin:9px 0}.choosing-heroes .hero-start{margin-top:8px;padding:9px}.home-choice-panel{scrollbar-width:thin}.choosing-heroes>.heroes-option,.choosing-heroes>.puzzles-option{display:none}.home-choice-panel:has(.hero-browser){padding:0;overflow:hidden}.hero-browser{color:#355e43;flex-direction:column;height:min(680px,100dvh - 108px);min-height:490px;display:flex}.hero-browser-heading{color:#fff;background:#4b8256;flex:none;justify-content:space-between;align-items:center;padding:12px 17px;display:flex}.hero-browser-heading h2{margin:0;font-size:22px}.hero-browser-heading button{color:#fff;cursor:pointer;background:#fff2;border:1px solid #fff6;border-radius:9px;padding:5px 10px;font-size:21px}.hero-browser-preview{isolation:isolate;flex:none;align-items:center;height:210px;min-height:185px;padding:8px 17px;display:flex;position:relative;overflow:hidden}.hero-browser-preview>.bot-avatar,.hero-browser-preview>.pig-avatar{filter:drop-shadow(0 5px 4px #263d3920);flex:none;width:150px;height:150px}.hero-preview-caption{z-index:1;min-width:0}.hero-preview-caption h3{color:#284d43;margin:0 0 10px;font-size:24px}.hero-preview-caption p{color:#35584e;margin:0;font-size:14px;font-weight:700;line-height:1.45}.hero-category-scroll{overscroll-behavior:contain;scrollbar-width:thin;background:#eff6e9;flex:1;min-height:90px;padding:4px 14px 12px;overflow:auto}.hero-category h3{margin:12px 0 8px;font-size:15px}.hero-portrait-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;display:grid}.hero-portrait{color:#2d4c40;cursor:pointer;border:3px solid #fff;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;min-width:0;min-height:80px;padding:4px 2px;display:flex;box-shadow:0 3px 8px #26463812}.hero-portrait>svg{width:56px;height:56px}.hero-portrait b{text-align:center;overflow-wrap:anywhere;font-size:9px;line-height:1.15}.hero-portrait.hero-selected{border-color:#e4ac35;box-shadow:0 0 0 2px #ffe6a4}.hero-portrait:hover{filter:brightness(1.05)}.hero-play{color:#604418;cursor:pointer;background:linear-gradient(#ffcf67,#f5a23f);border:3px solid #ffedb8;border-radius:16px;flex:none;justify-content:center;align-items:center;gap:12px;margin:10px 14px 13px;padding:13px;font-size:22px;font-weight:900;display:flex;box-shadow:0 4px #ba8034}.hero-browser :is(button,[tabindex]):focus-visible{outline-offset:2px;outline:3px solid #7952aa}.match-end-dialog .hero-browser{text-align:left;height:560px;min-height:0}.match-end-dialog .hero-browser-heading{display:none}.match-end-dialog .hero-browser-preview{height:170px;min-height:0}.match-end-dialog .hero-browser-preview>svg{width:130px;height:130px}@media (min-width:851px) and (max-height:760px){.hero-browser-preview{height:165px;min-height:165px}.hero-browser-preview>.bot-avatar,.hero-browser-preview>.pig-avatar{width:125px;height:125px}.hero-preview-caption h3{font-size:21px}.hero-preview-caption p{font-size:12px}.hero-browser-heading{padding:9px 14px}.hero-play{padding:10px}}@media (max-width:850px){.hero-browser{height:640px;min-height:0}.hero-browser-preview{height:190px;min-height:0}.hero-portrait>svg{width:66px;height:66px}.hero-portrait b{font-size:11px}}.scene-pig{background:linear-gradient(#ffd8be,#fbe9c7)}.hero-browser-preview{justify-content:center}.hero-browser-preview>.bot-avatar,.hero-browser-preview>.pig-avatar{width:170px;height:170px;transform:translateY(-12px)}.hero-preview-caption{text-align:center;position:absolute;bottom:9px;left:12px;right:12px}.hero-preview-caption h3{text-transform:none;letter-spacing:0;margin:0;font-size:22px}.hero-category h3{text-transform:none;letter-spacing:0}.hero-browser-preview .scene-hill{opacity:.5}@media (min-width:851px) and (max-height:760px){.hero-browser-preview>.bot-avatar,.hero-browser-preview>.pig-avatar{width:140px;height:140px}.hero-preview-caption h3{font-size:20px}}.hero-scenery{z-index:-1;pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.hero-portrait{isolation:isolate;position:relative;overflow:hidden}.hero-portrait>.hero-scenery{z-index:-1;width:100%;height:100%;position:absolute;inset:0}.hero-portrait>.bot-avatar,.hero-portrait>.pig-avatar{z-index:1;filter:drop-shadow(0 2px 1px #243c3322);position:relative}.hero-portrait b{z-index:1;color:#344f46;background:#fff6daeb;border-radius:5px;max-width:100%;padding:2px 3px;position:relative}.hero-preview-caption h3{color:#304b43;background:#fff5dcdf;border-radius:14px;padding:3px 14px;display:inline-block;box-shadow:0 2px 9px #29433512}.hero-arrival>.bot-avatar,.hero-arrival>.pig-avatar{animation:.65s cubic-bezier(.2,.7,.3,1) both hero-arrive}.hero-browser-preview>.bot-avatar,.hero-browser-preview>.pig-avatar{filter:drop-shadow(0 6px 3px #213b3d28)}.scenery-animated .scene-windmill{transform-origin:330px 89px;animation:15s linear infinite scene-spin}.scenery-animated .scene-water{animation:4s ease-in-out infinite scene-ripple}.scenery-animated .scene-leaves{transform-box:fill-box;transform-origin:50% 0;animation:5s ease-in-out infinite scene-sway}.scenery-animated .scene-vine{transform-origin:48px 0;animation:6s ease-in-out infinite scene-sway}.scenery-animated .scene-snow{animation:6s linear infinite scene-snowfall}.scenery-animated .scene-palm{transform-origin:51px 106px;animation:5.5s ease-in-out infinite scene-sway}.scenery-animated .scene-sail{transform-origin:330px 120px;animation:4s ease-in-out infinite scene-sway}.scenery-animated .scene-butterfly{transform-origin:330px 95px;animation:7s ease-in-out infinite scene-butterfly}.scenery-animated .scene-paint{stroke-dasharray:130;animation:6s ease-in-out infinite scene-paint}.scenery-animated .scene-brushes{transform-origin:50px 195px;animation:7s ease-in-out infinite scene-sway}.scenery-animated .scene-stars{animation:3s ease-in-out infinite scene-twinkle}.scenery-animated .scene-bubbles{animation:4s linear infinite scene-bubbles}.scenery-animated .scene-globe{transform-origin:332px 182px;animation:12s ease-in-out infinite scene-globe}.scenery-animated .scene-steam{animation:3.5s ease-out infinite scene-steam}.scenery-animated .scene-flame{transform-origin:333px 219px;animation:.9s ease-in-out infinite alternate scene-flame}.scenery-animated .flame-small{animation-delay:-.4s}.scenery-animated .scene-speed{animation:.7s linear infinite scene-speed}.scenery-animated .scene-flag{transform-box:fill-box;transform-origin:0;animation:2.3s ease-in-out infinite scene-flag}.pig-animated .pig-body{transform-origin:80px 165px;animation:3s ease-in-out infinite pig-trot}.pig-animated .pig-tail{transform-origin:119px 125px;animation:1.7s ease-in-out infinite scene-sway}.bot-monkey.bot-animated .bot-body{animation:3.7s ease-in-out infinite monkey-bounce}.bot-monkey.bot-animated .monkey-tail{transform-origin:166px 185px;animation:3s ease-in-out infinite monkey-tail}.bot-seal.bot-animated .bot-body{animation:4s ease-in-out infinite seal-rock}.bot-seal.bot-animated .seal-flipper{transform-origin:85px 173px;animation:2.8s ease-in-out infinite seal-clap}.bot-parrot.bot-animated .parrot-wing{transform-origin:143px 127px;animation:2.7s ease-in-out infinite parrot-flap}.bot-knight.bot-animated .knight-plume{transform-origin:122px 40px;animation:2.2s ease-in-out infinite scene-sway}.bot-knight.bot-animated .bot-body{animation:5s ease-in-out infinite knight-stand}.bot-turtle.bot-animated .bot-body{animation:9s ease-in-out infinite turtle-step}.bot-turtle.bot-animated .bot-head{transform-origin:164px 137px;animation:8s ease-in-out infinite turtle-peek}.bot-artist.bot-animated .bot-body{animation:5s ease-in-out infinite artist-lean}.bot-artist.bot-animated .hero-brush{transform-origin:178px 150px;animation:2.5s ease-in-out infinite artist-brush}.bot-wizard.bot-animated .bot-body{animation:4s ease-in-out infinite wizard-float}.bot-wizard.bot-animated .hero-wand{transform-origin:191px 155px;animation:4s ease-in-out infinite wizard-wand}.bot-andy.bot-animated .bot-body{animation:4s ease-in-out infinite andy-breathe}.bot-andy.bot-animated .hero-glasses{animation:6s ease-in-out infinite andy-glasses}.bot-grandpa.bot-animated .bot-body{transform-origin:120px 225px;animation:5s ease-in-out infinite grandpa-rock}.bot-grandpa.bot-animated .bot-head{animation:7s ease-in-out infinite grandpa-nod}.bot-runner.bot-animated .bot-body{animation:.7s ease-in-out infinite runner-bounce}.bot-runner.bot-animated .runner-leg{transform-origin:120px 173px;animation:.7s ease-in-out infinite alternate runner-stride}.bot-runner.bot-animated .runner-leg-back{animation-delay:-.7s}.bot-runner.bot-animated .bot-head{animation:none}.bot-prince.bot-animated .bot-body{animation:6s ease-in-out infinite prince-bow}.bot-prince.bot-animated .hero-cape{transform-origin:91px 109px;animation:3s ease-in-out infinite prince-cape}@keyframes hero-arrive{0%{opacity:.3;transform:translateY(8px)scale(.82)}60%{opacity:1;transform:translateY(-18px)scale(1.04)}to{transform:translateY(-12px)scale(1)}}@keyframes scene-spin{to{transform:rotate(360deg)}}@keyframes scene-ripple{50%{opacity:.6;transform:translate(9px)}}@keyframes scene-sway{0%,to{transform:rotate(-3deg)}50%{transform:rotate(4deg)}}@keyframes scene-snowfall{0%{opacity:0;transform:translateY(-30px)}20%,80%{opacity:.8}to{opacity:0;transform:translate(12px,115px)}}@keyframes scene-butterfly{0%,to{transform:translate(0)rotate(-8deg)}40%{transform:translate(-35px,-12px)rotate(10deg)}70%{transform:translate(-8px,8px)rotate(-6deg)}}@keyframes scene-paint{0%,to{stroke-dashoffset:0;opacity:.8}50%{stroke-dashoffset:40px;opacity:1}}@keyframes scene-twinkle{50%{opacity:.25}}@keyframes scene-bubbles{0%{opacity:0;transform:translateY(10px)}35%{opacity:1}to{opacity:0;transform:translateY(-30px)}}@keyframes scene-globe{0%,to{transform:rotate(-12deg)}50%{transform:rotate(20deg)}}@keyframes scene-steam{0%{opacity:0;transform:translateY(8px)}35%{opacity:.8}to{opacity:0;transform:translate(5px,-18px)}}@keyframes scene-flame{to{transform:scale(.86,1.1)}}@keyframes scene-speed{0%{opacity:0;transform:translate(15px)}40%{opacity:1}to{opacity:0;transform:translate(-24px)}}@keyframes scene-flag{50%{transform:skewY(6deg)scaleX(.88)}}@keyframes pig-trot{0%,75%,to{transform:translateY(0)}82%,92%{transform:translateY(-4px)rotate(-2deg)}87%,97%{transform:translateY(0)rotate(2deg)}}@keyframes monkey-bounce{0%,60%,to{transform:translateY(0)}70%,90%{transform:translateY(-9px)rotate(3deg)}80%{transform:translateY(0)rotate(-3deg)}}@keyframes monkey-tail{50%{transform:rotate(9deg)}}@keyframes seal-rock{50%{transform:rotate(-4deg)translateY(2px)}}@keyframes seal-clap{0%,60%,to{transform:rotate(0)}70%,90%{transform:rotate(-16deg)}80%{transform:rotate(4deg)}}@keyframes parrot-flap{0%,65%,to{transform:rotate(0)}72%,86%{transform:rotate(-14deg)}79%,93%{transform:rotate(5deg)}}@keyframes knight-stand{0%,70%,to{transform:translateY(0)}80%{transform:translateY(-3px)rotate(-2deg)}90%{transform:translateY(0)rotate(1deg)}}@keyframes turtle-step{0%,to{transform:translate(-5px)}50%{transform:translate(5px)}}@keyframes turtle-peek{0%,65%,to{transform:rotate(0)}78%{transform:rotate(-5deg)}90%{transform:rotate(3deg)}}@keyframes artist-lean{50%{transform:rotate(-2deg)}}@keyframes artist-brush{0%,to{transform:rotate(-12deg)}50%{transform:rotate(13deg)}}@keyframes wizard-float{50%{transform:translateY(-7px)}}@keyframes wizard-wand{50%{transform:rotate(-9deg)}}@keyframes andy-breathe{50%{transform:translateY(-2px)}}@keyframes andy-glasses{0%,70%,to{transform:translateY(0)}78%,88%{transform:translateY(-3px)}}@keyframes grandpa-rock{50%{transform:rotate(3deg)}}@keyframes grandpa-nod{0%,65%,to{transform:rotate(0)}80%{transform:rotate(5deg)}}@keyframes runner-bounce{50%{transform:translateY(-5px)rotate(-2deg)}}@keyframes runner-stride{0%{transform:rotate(-13deg)}to{transform:rotate(15deg)}}@keyframes prince-bow{0%,65%,to{transform:rotate(0)}80%{transform:rotate(3deg)translateY(2px)}}@keyframes prince-cape{50%{transform:skew(-5deg)}}@media (prefers-reduced-motion:reduce){.hero-arrival>.bot-avatar,.hero-arrival>.pig-avatar,.hero-scenery *,.bot-animated *,.pig-animated *{animation:none!important}}.bot-animated .bot-eye{animation:5.6s linear infinite pigBlink}@media (prefers-reduced-motion:reduce){.bot-animated .bot-eye{animation:none!important}}.bot-speech-queenLost,.bot-speech-materialLost{background:#fff4e9;border-color:#ddaa8f}.bot-speech-queenWon,.bot-speech-materialWon{background:#f4ffed;border-color:#9fc687}.bot-speech-opening{background:#f4f8ff;border-color:#a5bde1}
