:root{--sunshine: #ffc93c;--sky: #4fc3f7;--sky-light: #b3e5fc;--grass: #66bb6a;--cherry: #ef5350;--juicy: #ff9f45;--grape: #ab7df6;--bubblegum: #f48fb1;--cloud: #fdfdf8;--navy: #2e3a59;--cream: #fff6e5;--radius-s: 24px;--radius-m: 40px;--radius-l: 48px;--outline: 6px solid var(--navy);--sticker-shadow: 0 8px 0 rgba(46, 58, 89, .15)}html,body,#app,#stage{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;overscroll-behavior:none}html{overflow:hidden;width:100%;height:100%;margin:0}body{position:fixed;top:0;left:0;right:0;bottom:0;overflow:hidden;width:100%;height:100%;margin:0;background:var(--navy);font-family:"Baloo 2",Fredoka,Comic Sans MS,Chalkboard SE,system-ui,sans-serif;color:var(--navy)}img,svg{-webkit-user-drag:none;pointer-events:none}.touchable,.touchable *{pointer-events:auto}#stage{position:absolute;width:1920px;height:1080px;transform-origin:top left;background:linear-gradient(var(--sky),var(--sky-light));overflow:hidden}#screen{position:absolute;inset-block:0;left:0;width:1920px;height:1080px}.btn{position:absolute;display:flex;align-items:center;justify-content:center;background:var(--cloud);border:var(--outline);border-radius:999px;box-shadow:var(--sticker-shadow);cursor:pointer;pointer-events:auto}.btn.pressed{transform:translateY(6px);box-shadow:none}.btn svg{width:72%;height:72%}#splash{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:40px;pointer-events:auto;cursor:pointer}#splash .bubo{width:360px;height:360px;animation:float 2.6s ease-in-out infinite}#splash .splash-title{font-size:88px;font-weight:800;color:var(--cloud);text-shadow:0 6px 0 rgba(46,58,89,.35)}@keyframes float{0%,to{transform:translateY(0)}50%{transform:translateY(-24px)}}.lang-picker{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:60px}.lang-row{display:flex;gap:80px}.lang-card{width:420px;height:300px;background:var(--cloud);border:8px solid var(--navy);border-radius:var(--radius-l);box-shadow:var(--sticker-shadow);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;font-size:44px;font-weight:800;pointer-events:auto;cursor:pointer}.lang-card.pressed{transform:translateY(6px) scale(.98);box-shadow:none}.lang-card.suggested{outline:10px solid var(--sunshine);outline-offset:4px}.lang-card svg{width:180px;height:120px;border-radius:18px;border:5px solid var(--navy)}.decor-band{position:absolute;left:0;top:0;width:1920px;height:220px;pointer-events:none}.sun{position:absolute;left:860px;top:24px}.cloud-drift{position:absolute;animation:drift 60s linear infinite}@keyframes drift{0%{transform:translate(-300px)}to{transform:translate(2100px)}}.static .cloud-drift,.tier-low .cloud-drift{animation:none}.bubo-perch{position:absolute;left:60px;top:20px;width:190px;height:190px}.bubo-perch .bubo-eyelids{animation:blink 6s infinite;transform-origin:center 40%;opacity:0}@keyframes blink{0%,96%,to{opacity:0}97%,99%{opacity:1}}.menu-grid{position:absolute;left:134px;top:240px;width:1652px;height:636px;display:grid;grid-template-columns:repeat(5,308px);grid-template-rows:300px 300px;column-gap:28px;row-gap:36px}.tile{position:relative;border:8px solid var(--navy);border-radius:var(--radius-l);box-shadow:var(--sticker-shadow);background:var(--cloud);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;pointer-events:auto;cursor:pointer;transition:transform .2s cubic-bezier(.34,1.56,.64,1),opacity .2s}.tile svg{width:200px;height:200px}.tile .tile-caption{font-size:30px;font-weight:600;margin-top:-8px;max-width:92%;text-align:center;line-height:1.1;overflow:hidden}.tile svg{flex-shrink:1;min-height:0}.tile.pressed{transform:scale(.96)}.tile.selected{transform:scale(1.1);z-index:10}.tile.dimmed{opacity:.55}.menu.attract .tile:nth-child(3n+1){animation:wiggle 4s ease-in-out infinite}.menu.attract .tile:nth-child(3n+2){animation:wiggle 5s ease-in-out 1s infinite}.static .tile,.tier-low .tile{animation:none!important}@keyframes wiggle{0%,90%,to{transform:rotate(0)}93%{transform:rotate(-2deg)}96%{transform:rotate(2deg)}}.play-badge{position:absolute;right:-20px;bottom:-20px;width:140px;height:140px;animation:pulse .9s ease-in-out infinite;pointer-events:none}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.12)}}.beta-leaf{position:absolute;left:10px;top:10px;width:48px;height:48px}.flag-btn{width:120px;height:120px;top:30px;border-width:5px;overflow:hidden}.flag-btn svg{width:100%;height:100%;border-radius:50%}.flag-btn.active{outline:8px solid var(--sunshine);transform:scale(1.06)}.flag-btn.active.pressed{transform:translateY(6px) scale(1.06)}.home-btn{left:24px;top:896px;width:160px;height:160px;background:var(--grass)}.ear-btn{left:1736px;top:916px;width:120px;height:120px;background:var(--sunshine)}.fullscreen-btn{left:24px;top:24px;width:96px;height:96px;opacity:.85}.overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:#2e3a598c;display:flex;align-items:center;justify-content:center;gap:80px;z-index:500;pointer-events:auto}.overlay .big-choice{position:relative;border-radius:var(--radius-l);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:var(--cloud);border:8px solid var(--navy);box-shadow:var(--sticker-shadow);cursor:pointer;pointer-events:auto}.big-choice.pressed{transform:translateY(6px);box-shadow:none}.choice-keep{width:400px;height:400px;background:var(--grass)}.choice-home{width:240px;height:240px}.big-choice svg{width:60%;height:60%}.celebrate-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:800;display:flex;align-items:center;justify-content:center;pointer-events:none}.celebrate-overlay .bubo{width:300px;height:300px;animation:cheer .5s cubic-bezier(.34,1.56,.64,1) 2}@keyframes cheer{0%,to{transform:translateY(0) rotate(0)}50%{transform:translateY(-60px) rotate(6deg)}}.caption-bubble{position:absolute;left:50%;top:30px;transform:translate(-50%);max-width:1100px;background:var(--cloud);border:6px solid var(--navy);border-radius:32px;padding:14px 40px;font-size:40px;font-weight:600;z-index:600;pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.grace-play{width:360px;height:360px;background:var(--grass)}.hotspot{position:absolute;left:1800px;top:0;width:120px;height:120px;z-index:400;pointer-events:auto}.hold-ring{position:absolute;left:1806px;top:6px;width:108px;height:108px;z-index:401;pointer-events:none}.teacher-panel{position:absolute;left:260px;top:60px;width:1400px;height:960px;background:var(--cream);border:8px solid var(--navy);border-radius:var(--radius-m);z-index:700;padding:40px 60px;box-sizing:border-box;font-size:32px;overflow:hidden;pointer-events:auto}.teacher-panel h2{margin:0 0 24px;font-size:44px}.teacher-row{display:flex;align-items:center;gap:24px;margin:14px 0}.teacher-row label{min-width:420px}.teacher-games{max-height:380px;overflow-y:auto;touch-action:pan-y;border:4px solid var(--navy);border-radius:20px;background:var(--cloud);padding:10px 20px;margin-top:10px}.teacher-game-row{display:flex;align-items:center;gap:20px;padding:8px 0;border-bottom:2px dashed rgba(46,58,89,.2);font-size:28px}.teacher-game-row .g-title{flex:1}.diff-btn{width:56px;height:56px;border-radius:50%;border:4px solid var(--navy);background:var(--cloud);font-size:26px;font-weight:800;cursor:pointer}.diff-btn.active{background:var(--sunshine)}.teacher-close{position:absolute;right:24px;top:24px;width:100px;height:100px;font-size:48px;font-weight:800;background:var(--cherry);color:var(--cloud)}.teacher-panel input[type=range]{width:400px;height:48px}.teacher-panel input[type=checkbox]{width:44px;height:44px}.loading-screen{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:40px;z-index:300}.loading-screen .bubo{width:260px;height:260px;animation:float 1.4s ease-in-out infinite}.loading-screen .loading-text{font-size:52px;font-weight:800;color:var(--cloud);text-shadow:0 4px 0 rgba(46,58,89,.35)}
