:root{color-scheme:light;--paper:#f5f3ee;--ink:#252522;--coral:#f07f80;--sun:#e9b65e;--mint:#76b7a2;--lilac:#b49bd8}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--paper);font-family:Nunito,ui-rounded,system-ui,sans-serif;color:var(--ink);touch-action:pan-y}
button{font:inherit;border:0;cursor:pointer}.game-shell{height:100dvh;min-height:360px;max-width:980px;margin:auto;padding:clamp(10px,2.5vw,22px);display:flex;flex-direction:column;gap:12px}
.hud{height:58px;flex:0 0 58px;display:flex;align-items:center;justify-content:space-between;padding:0 6px}
.brand,.mini-logo{display:flex;align-items:baseline;gap:1px;font-size:clamp(25px,4vw,34px);font-weight:1000;letter-spacing:-2px}.brand b,.mini-logo b{color:#292925}.brand i,.mini-logo i{font-style:normal}.coral{color:var(--coral)}.sun{color:var(--sun)}.mint{color:var(--mint)}.lilac{color:var(--lilac)}
.stats{display:flex;align-items:center;gap:18px}.stat{display:grid;gap:0;text-align:center}.stat small{font-size:9px;letter-spacing:1.4px;color:#96938a;font-weight:900}.stat strong{font-size:19px;line-height:1.2;font-weight:1000;font-variant-numeric:tabular-nums}.icon-btn{width:38px;height:38px;border-radius:13px;background:#fff;box-shadow:0 3px 0 #e6e1d7;color:#555;font-size:19px;margin-left:auto}
.arena{position:relative;flex:1;min-height:0;border-radius:28px;background:linear-gradient(155deg,#fffefa,#eeece4);border:1px solid #e9e5dc;box-shadow:0 12px 36px #3933290c;overflow:hidden;display:flex;flex-direction:column}
.arena:before,.arena:after{content:"";position:absolute;border-radius:50%;pointer-events:none;filter:blur(2px);opacity:.38}.arena:before{width:180px;height:180px;left:-90px;top:25%;background:#f8d5d0}.arena:after{width:220px;height:220px;right:-110px;bottom:5%;background:#d8eae2}
.arena-top{height:40px;flex:0 0 40px;display:flex;justify-content:space-between;align-items:center;padding:0 20px;z-index:1}.level{font-size:10px;font-weight:1000;letter-spacing:1.7px;color:#aaa398}.combo{font-size:17px;letter-spacing:5px;color:#ded9ce}.combo span{color:#e8b65e}
#world{width:100%;height:100%;display:block;position:relative;z-index:1;touch-action:none}
.overlay{position:absolute;inset:0;z-index:3;display:grid;place-items:center;background:#f5f3eed9;backdrop-filter:blur(5px);transition:opacity .25s,visibility .25s}.overlay.hidden{opacity:0;visibility:hidden;pointer-events:none}.panel{text-align:center;padding:22px 20px;max-width:310px}.mini-logo{justify-content:center;font-size:30px;margin-bottom:8px}.mascot{font-size:44px;color:var(--sun);text-shadow:0 5px 0 #e8d8b6;animation:bob 1.6s ease-in-out infinite}.panel h1{font-size:clamp(27px,5vw,40px);font-weight:1000;letter-spacing:-1.6px;margin:5px 0 2px}.panel p{font-size:14px;line-height:1.5;color:#878278;font-weight:800;margin:8px 0 22px}.panel button{padding:14px 26px;border-radius:17px;background:#282824;color:white;font-size:12px;font-weight:1000;letter-spacing:1.1px;box-shadow:0 5px 0 #c6c0b5;transition:transform .12s,box-shadow .12s}.panel button:active{transform:translateY(4px);box-shadow:0 1px 0 #c6c0b5}.panel button span{font-size:18px;margin-left:12px}
.controls{height:62px;flex:0 0 62px;display:flex;align-items:center;justify-content:space-between;padding:0 4px}.move{width:54px;height:48px;border-radius:17px;background:white;color:#333;font-size:25px;font-weight:900;box-shadow:0 4px 0 #e4dfd5;touch-action:manipulation}.move:active{transform:translateY(3px);box-shadow:0 1px 0 #e4dfd5}.control-hint{font-size:9px;letter-spacing:1.4px;color:#a39e93;font-weight:1000}.control-hint span{padding:0 5px;color:var(--coral)}.foot-brand{text-align:center;font-size:8px;font-weight:1000;letter-spacing:3px;color:#b9b4aa;padding-bottom:2px}
@keyframes bob{0%,100%{transform:translateY(0) rotate(-8deg)}50%{transform:translateY(-8px) rotate(8deg)}}
@media(max-width:560px){.game-shell{padding:8px;gap:7px}.hud{height:48px;flex-basis:48px;padding:0 3px}.stats{gap:11px}.stat strong{font-size:16px}.icon-btn{width:34px;height:34px}.arena{border-radius:21px}.arena-top{height:34px;flex-basis:34px;padding:0 13px}.controls{height:54px;flex-basis:54px}.move{width:48px;height:44px;border-radius:15px}.control-hint{font-size:8px;letter-spacing:1px}.foot-brand{font-size:7px}}
@media(orientation:landscape) and (max-height:520px){.game-shell{padding:6px 14px;gap:5px}.hud{height:38px;flex-basis:38px}.brand{font-size:23px}.arena-top{height:25px;flex-basis:25px}.controls{height:42px;flex-basis:42px}.move{height:36px;width:46px}.foot-brand{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}