*{margin:0;padding:0;box-sizing:border-box}:root{--inset-top: env(safe-area-inset-top, 0px);--inset-right: env(safe-area-inset-right, 0px);--inset-bottom: env(safe-area-inset-bottom, 0px);--inset-left: env(safe-area-inset-left, 0px)}@media (orientation: portrait) and (pointer: coarse){:root{--inset-top: env(safe-area-inset-right, 0px);--inset-right: env(safe-area-inset-bottom, 0px);--inset-bottom: env(safe-area-inset-left, 0px);--inset-left: env(safe-area-inset-top, 0px)}}html,body,#root{height:100%;overflow:hidden}body{font-family:Nunito,Segoe UI,system-ui,-apple-system,sans-serif;background:#211510;color:#fff;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;position:fixed;top:0;right:0;bottom:0;left:0;width:100%;overscroll-behavior:none}button{font-family:inherit;cursor:pointer}.screen{height:100%;display:flex;flex-direction:column;align-items:center;padding:calc(var(--inset-top) + 16px) max(var(--inset-right),20px) calc(var(--inset-bottom) + 20px) max(var(--inset-left),20px);overflow-y:auto;overflow-x:hidden;background:linear-gradient(160deg,#3a2418,#211510 60%,#170e09)}.menu-screen{position:relative;flex-direction:row;align-items:center;justify-content:space-between;gap:24px;padding:20px max(var(--inset-right),6vw) 20px max(var(--inset-left),6vw);overflow:hidden;background:linear-gradient(90deg,#170e09a8,#170e0929 38%,#170e0929 62%,#170e09a8),linear-gradient(180deg,#170e091a 55%,#170e0980),url(./meta/bg-menu.jpg) center / cover no-repeat #211510}.menu-brand{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;max-width:40vw}.menu-actions{display:flex;flex-direction:column;align-items:stretch;width:min(300px,38vw)}.menu-actions .btn{max-width:none}@media (orientation: portrait){.menu-screen{flex-direction:column;justify-content:center}.menu-brand{max-width:none}.menu-actions{width:min(300px,82vw)}}.menu-title{font-size:clamp(28px,9vh,40px);letter-spacing:1px;background:linear-gradient(90deg,#ffb45a,#ff7eb0);-webkit-background-clip:text;background-clip:text;color:transparent}.menu-subtitle{opacity:.7}.menu-stats{position:absolute;top:max(var(--inset-top),12px);right:max(var(--inset-right),14px);z-index:3;display:flex;align-items:center;gap:7px;padding:6px 13px;border-radius:999px;background:#100b088c;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);font-size:16px;font-weight:800}.btn{display:block;width:100%;max-width:280px;margin-top:10px;padding:14px 24px;border:none;border-radius:999px;font-size:17px;font-weight:700;color:#fff;background:#100b088c;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);transition:transform .1s ease}.btn:active{transform:scale(.96)}.btn.primary{background:linear-gradient(90deg,#ff8f5e,#ff5e8f);box-shadow:0 6px 20px #ff5e8f66}.btn.big{font-size:22px;padding:18px 32px}.overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:#160d0899;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);z-index:20}.panel{display:flex;flex-direction:column;align-items:center;min-width:260px;padding:28px 32px;border-radius:24px;background:#3a2415;box-shadow:0 20px 60px #00000080}.panel h2{margin-bottom:12px}.stars-row{font-size:42px;margin:4px 0 8px}.star{color:#fff3;margin:0 4px}.star.earned{color:#ffd23e;text-shadow:0 0 18px rgba(255,210,62,.6)}.result-line{opacity:.75;font-size:14px;margin-bottom:8px}.levels-screen{align-items:stretch;gap:16px}.levels-header{display:flex;align-items:center;gap:12px}.levels-header h2{flex:1}.world-section h3{margin-bottom:10px;opacity:.85}.level-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}.level-card{display:flex;flex-direction:column;gap:4px;padding:14px;border:none;border-radius:16px;background:#ffffff1a;color:#fff;text-align:left}.level-card.locked{opacity:.45}.level-num{font-size:22px;font-weight:800}.level-name{font-size:13px;opacity:.8}.level-stars{color:#ffd23e;letter-spacing:2px}.game-screen{position:relative;height:100%;background:#1c120c}.game-stage{position:absolute;top:0;right:0;bottom:0;left:0}.hud-topbar{position:absolute;top:0;left:0;right:0;z-index:15;display:flex;gap:8px;align-items:center;pointer-events:none;padding:max(var(--inset-top),8px) max(var(--inset-right),10px) 0 max(var(--inset-left),10px)}.game-canvas{position:absolute;top:0;right:0;bottom:0;left:0;touch-action:none}.game-canvas canvas{display:block;width:100%;height:100%}.hud-spacer{flex:1}.hud-chip{padding:6px 11px;border-radius:999px;background:#100b088c;font-size:13px;font-weight:700;white-space:nowrap}.hud-btn{pointer-events:auto;width:38px;height:34px;border:none;border-radius:999px;background:#100b088c;color:#fff;font-size:15px;flex:none}.hud-toast{position:absolute;top:calc(max(var(--inset-top),8px) + 44px);left:50%;transform:translate(-50%);padding:9px 16px;border-radius:14px;background:#2a1910cc;font-size:14px;font-weight:700;animation:toast-in .25s ease;max-width:85%;text-align:center;pointer-events:none;z-index:10}@keyframes toast-in{0%{opacity:0;transform:translate(-50%,-8px)}}.compass{position:absolute;left:max(var(--inset-left),12px);bottom:max(var(--inset-bottom),12px);width:116px;height:116px;z-index:12;pointer-events:none;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:4px}.compass-cell{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border-radius:10px;background:#20130c8c;transition:background .12s ease,transform .12s ease;will-change:transform;transform:translateZ(0)}.compass-cell.up{grid-area:1 / 2}.compass-cell.down{grid-area:3 / 2}.compass-cell.left{grid-area:2 / 1}.compass-cell.right{grid-area:2 / 3}.compass-center{grid-area:2 / 2;margin:auto;width:13px;height:13px;border-radius:50%;background:#ffffff40;transition:background .12s ease;will-change:transform;transform:translateZ(0)}.compass-center.active{background:#fff;box-shadow:0 0 10px #fffc}.compass-arrow{font-size:11px;line-height:1;font-weight:800;opacity:.75}.pict{display:block;border-radius:3px}.pict-wide{width:18px;height:8px;background:#ff9f43}.pict-tall{width:8px;height:18px;background:#54a0ff}.pict-flat{width:20px;height:4px;background:#ff6b9d}.pict-ball{width:14px;height:14px;border-radius:50%;background:#2ecc71}.pict-jump{width:15px;height:9px;border:2.5px solid #f2e6c9;border-bottom:none;border-radius:10px 10px 0 0}.compass-cell.active{transform:translateZ(0) scale(1.1)}.compass-cell.active .compass-arrow{color:#3a2415;opacity:1}.compass-cell.up.active{background:#54a0ff}.compass-cell.down.active{background:#ff9f43}.compass-cell.left.active{background:#ff6b9d}.compass-cell.left.guest-ball.active{background:#2ecc71}.compass-cell.left.guest-sticky.active{background:#a06bff}.compass-cell.left.active .pict-ball,.compass-cell.left.active .pict-sticky{background:#3a2415}.compass-cell.right.active{background:#f2e6c9}.compass-cell.active .pict-wide,.compass-cell.active .pict-tall,.compass-cell.active .pict-flat{background:#3a2415}.compass-cell.right.active .pict-ball{width:14px;height:14px;border-radius:50%;background:#2ecc71}.pict-sticky{width:14px;height:13px;border-radius:7px 7px 9px 9px;background:#a06bff}.pict-jump{border-color:#3a2415}.result-bar{position:absolute;bottom:max(var(--inset-bottom),16px);left:50%;transform:translate(-50%);z-index:20;display:flex;flex-direction:column;align-items:center;gap:10px;animation:result-in .45s cubic-bezier(.34,1.4,.64,1)}@keyframes result-in{0%{opacity:0;transform:translate(-50%,30px)}}.result-stats{padding:7px 14px;border-radius:999px;background:#100b0899;font-size:13px;font-weight:700;white-space:nowrap}.result-actions{display:flex;gap:10px}.result-actions .btn{width:auto;max-width:none;margin:0;padding:11px 20px;font-size:15px}.result-actions .btn.primary{background:linear-gradient(90deg,#ff8f5e,#ff5e8f)}.rotate-hint{display:none;position:absolute;top:0;right:0;bottom:0;left:0;z-index:25;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:#20130ceb;font-size:17px;font-weight:700;text-align:center;padding:24px}.rotate-icon{font-size:52px;animation:rotate-phone 1.6s ease-in-out infinite}@keyframes rotate-phone{0%,20%{transform:rotate(0)}55%,80%{transform:rotate(90deg)}to{transform:rotate(90deg)}}@media (orientation: portrait) and (hover: none){.rotate-hint{display:flex}}.editor-screen{height:100%;display:flex;flex-direction:column;background:#1c120c}.ed-topbar{display:flex;gap:8px;align-items:center;padding:max(var(--inset-top),8px) 12px 8px;flex:none}.ed-input{background:#ffffff1a;border:none;border-radius:10px;color:#fff;padding:8px 10px;font-family:inherit;font-size:14px}.ed-input option{color:#3a2415}.ed-name{width:160px}.ed-btn{width:auto;max-width:none;margin:0;padding:8px 14px;font-size:14px}.ed-danger{background:#e0555559}.ed-body{flex:1;min-height:0;display:flex}.ed-tools{width:150px;flex:none;display:flex;flex-direction:column;gap:4px;padding:8px;overflow-y:auto}.ed-tool{border:none;border-radius:10px;background:#ffffff14;color:#fff;padding:8px 10px;text-align:left;font-size:13px}.ed-tool.active{background:linear-gradient(90deg,#ff8f5e,#ff5e8f);font-weight:700}.ed-stage{position:relative;flex:1;min-width:0;min-height:0;display:flex}.ed-panel{position:absolute;top:10px;right:10px;width:150px;padding:10px;border-radius:12px;background:#17102be0;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);display:flex;flex-direction:column;gap:6px}.ed-zoom{position:absolute;right:10px;bottom:10px;display:flex;flex-direction:column;gap:6px}.ed-zoom-btn{width:44px;height:44px;border:none;border-radius:12px;background:#ffffff1f;color:#fff;font-size:22px;line-height:1}.fps-stats{position:absolute;bottom:6px;left:50%;transform:translate(-50%);z-index:30;padding:4px 8px;border-radius:8px;background:#0009;color:#7fff9f;font-family:ui-monospace,monospace;font-size:12px;pointer-events:none;white-space:pre-wrap;text-align:center;max-width:96vw}.ed-panel-title{font-size:12px;opacity:.7}.ed-field{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:12px}.ed-field input{width:70px;background:#ffffff1f;border:none;border-radius:6px;color:#fff;padding:4px 6px}.ed-canvas{flex:1;background:#251811;touch-action:none;cursor:crosshair}.ed-grid{stroke:#ffffff0f}.ed-axis{stroke:#ffffff40}.ed-plat{fill:#8a6a4a;stroke:#c9a06a}.ed-grate{fill:#5a6e6499;stroke:#7fbfae;stroke-dasharray:6 3}.ed-slick{fill:#a0d2e666;stroke:#bfe8f0}.ed-bouncer{fill:#ffc83c8c;stroke:#ffd23e}.ed-crumble{fill:#966e508c;stroke:#c9906a;stroke-dasharray:3 3}.ed-belt{fill:#46465ab3;stroke:#9aa4b5}.ed-laser{fill:#ff3c3c59;stroke:#ff4d4d;stroke-dasharray:2 4}.ed-spikes{fill:#e0555580;stroke:#e05555}.ed-orbit{fill:none;stroke:#ffffff4d;stroke-dasharray:4 4}.ed-blade{fill:#aab4c5;stroke:#39404d}.ed-emoji{font-size:22px;text-anchor:middle;dominant-baseline:middle;-webkit-user-select:none;user-select:none}.ed-selected{stroke:#ffd23e!important;stroke-width:3;filter:drop-shadow(0 0 6px rgba(255,210,62,.8))}.ed-ghost{fill:#ffd23e40;stroke:#ffd23e;stroke-dasharray:5 4}.ed-decor-mark{opacity:.55;pointer-events:none}.e3d{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;display:flex;flex-direction:column;background:#1c120c}.e3d-topbar{display:flex;align-items:center;gap:10px;padding:max(var(--inset-top),8px) 12px 8px;flex:none}.e3d-title{flex:1;min-width:0;font-size:13px;opacity:.85;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.e3d-canvas{flex:1;min-height:0;position:relative;touch-action:none}.e3d-canvas canvas{position:absolute;top:0;right:0;bottom:0;left:0;width:100%!important;height:100%!important}.e3d-palette{flex:none;display:flex;gap:6px;overflow-x:auto;padding:8px 8px calc(8px + var(--inset-bottom));scrollbar-width:none}.e3d-palette::-webkit-scrollbar{display:none}.e3d-chip{flex:none;min-height:42px;white-space:nowrap}.e3d-panel{top:60px;right:10px;width:168px;z-index:65}.e3d-row{display:flex;flex-wrap:wrap;gap:5px}.e3d-mini{border:none;border-radius:8px;background:#ffffff1f;color:#fff;padding:7px 9px;font-size:12px}.ed-io{max-width:640px;width:90%}@media (max-width: 940px),(max-height: 540px){.ed-topbar{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none}.ed-topbar::-webkit-scrollbar{display:none}.ed-topbar .btn,.ed-topbar .ed-input,.ed-topbar .hud-btn{flex:none;white-space:nowrap}.ed-name{width:96px}.ed-body{flex-direction:column}.ed-stage{order:1}.ed-tools{order:2;width:100%;flex-direction:row;overflow-x:auto;overflow-y:hidden;gap:6px;padding:6px 8px calc(6px + var(--inset-bottom));scrollbar-width:none}.ed-tools::-webkit-scrollbar{display:none}.ed-tool{flex:none;min-height:42px;padding:8px 12px;font-size:14px}.ed-panel{width:138px}}.ed-textarea{width:100%;height:260px;background:#00000059;color:#cfe8ff;border:none;border-radius:10px;padding:10px;font-family:ui-monospace,monospace;font-size:12px;margin-bottom:10px}.finale-note{padding:10px 20px;border-radius:14px;background:#2a1910cc;font-size:16px;font-weight:800;text-align:center}.story-banner{position:absolute;top:24%;left:50%;transform:translate(-50%);z-index:18;padding:14px 26px;border-radius:18px;background:#20130cd9;border:1px solid rgba(255,210,62,.35);font-size:17px;font-weight:700;text-align:center;max-width:80%;pointer-events:none;animation:story-in .6s ease}@keyframes story-in{0%{opacity:0;transform:translate(-50%,14px)}}.btn.small{width:auto;max-width:none;margin-top:0;padding:8px 14px;font-size:14px}.home-screen{position:relative;height:100%;overflow:hidden;background:#211510}.home-scene{position:absolute;top:0;right:0;bottom:0;left:0;background-size:cover;background-position:center bottom;background-color:#2c1b12}.home-header{position:absolute;top:max(var(--inset-top),10px);left:max(var(--inset-left),12px);right:max(var(--inset-right),12px);z-index:6;display:flex;align-items:center;justify-content:space-between;gap:8px}.home-tabs{display:flex;gap:6px}.home-coins{font-size:17px;font-weight:800;color:#ffd23e;white-space:nowrap;padding:6px 12px;border-radius:999px;background:#100b088c}.home-happy{border:none;cursor:pointer;font:inherit;font-size:17px;font-weight:800;color:#ff8f9e}.home-happy .ico-happy{width:18px;height:18px}.happy-tip{z-index:9}.home-happy.pulse-a{animation:happy-gulp-a .32s ease-out}.home-happy.pulse-b{animation:happy-gulp-b .32s ease-out}@keyframes happy-gulp-a{40%{transform:scale(1.16)}}@keyframes happy-gulp-b{40%{transform:scale(1.16)}}.home-happy.pulse-a .ico-happy,.home-happy.pulse-b .ico-happy{filter:drop-shadow(0 0 5px rgba(255,143,158,.9))}.home-happy.gold{animation:happy-gold 1.4s ease-out}@keyframes happy-gold{0%,70%{color:#ffd23e;background:#3c2608d9;box-shadow:0 0 0 2px #ffd23ee6,0 0 22px 6px #ffd23e99}12%{transform:scale(1.35) rotate(-4deg)}24%{transform:scale(1.1) rotate(3deg)}36%{transform:scale(1.2)}60%{transform:scale(1)}}.care-fx{position:absolute;top:0;right:0;bottom:0;left:0;z-index:8;pointer-events:none;overflow:hidden}.care-pop{position:absolute;display:flex;flex-direction:column;align-items:center;gap:4px;transform:translate(-50%,-100%);font-size:28px;font-weight:900;color:#fff;white-space:nowrap;-webkit-text-stroke:6px #5a1626;paint-order:stroke fill;filter:drop-shadow(0 3px 0 rgba(40,8,16,.45));animation:care-pop 1.3s cubic-bezier(.2,.8,.3,1) forwards}.care-pop svg{width:26px;height:26px;fill:#ff6f86;stroke:#5a1626;stroke-width:2.6}.care-pop-row{display:flex;align-items:center;gap:4px}.care-pop-charge{width:64px;height:7px;border-radius:4px;background:#2808108c;border:1.5px solid #5a1626;overflow:hidden}.care-pop-charge i{display:block;height:100%;background:#ff6f86;transition:width .2s}.care-pop.empty{font-size:18px;-webkit-text-stroke-width:5px;animation-duration:2.2s}.care-pop.empty svg{width:18px;height:18px;fill:none;stroke:#fff}.care-pop.big{font-size:38px;color:#ffd23e;-webkit-text-stroke-color:#4a2a06}.care-pop.big svg{width:34px;height:34px;fill:#ffd23e;stroke:#4a2a06}@keyframes care-pop{0%{transform:translate(-50%,-60%) scale(.3) rotate(-12deg);opacity:0}14%{transform:translate(-50%,-110%) scale(1.25) rotate(6deg);opacity:1}26%{transform:translate(-50%,-115%) scale(1) rotate(0)}75%{opacity:1}to{transform:translate(-50%,-190%) scale(.95);opacity:0}}.care-spark-x{position:absolute;animation-name:care-spark-x;animation-timing-function:cubic-bezier(.55,0,.9,.6);animation-fill-mode:both}.care-spark-y{animation-name:care-spark-y;animation-timing-function:cubic-bezier(.2,.9,.5,1);animation-fill-mode:both}.care-spark-y svg{display:block;width:20px;height:20px;margin:-10px 0 0 -10px;fill:#ff6f86;stroke:#fff;stroke-width:1.5;filter:drop-shadow(0 0 4px rgba(255,143,158,.9))}@keyframes care-spark-x{0%{transform:translate(0) scale(.6)}to{transform:translate(var(--dx)) scale(.8)}}@keyframes care-spark-y{0%{transform:translateY(0) scale(.4);opacity:0}15%{opacity:1;transform:translateY(-30px) scale(1.2)}to{transform:translateY(var(--dy)) scale(.7);opacity:.9}}@media (prefers-reduced-motion: reduce){.care-pop,.care-spark-x,.care-spark-y,.home-happy.pulse-a,.home-happy.pulse-b{animation-duration:.01ms!important}}.home-footer{position:absolute;right:max(var(--inset-right),14px);bottom:max(var(--inset-bottom),12px);z-index:6}.home-footer .btn{width:auto;max-width:none;margin:0;padding:12px 18px;font-size:15px}.tama-bubble{pointer-events:none;position:absolute;left:50%;top:18%;transform:translate(-50%);z-index:5;display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 18px;border-radius:18px;background:#100b08b8;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);text-align:center;animation:bubble-in .3s ease}.tama-bubble p{font-size:14px;font-weight:700}.tama-bubble .btn{margin:0;pointer-events:auto}@keyframes bubble-in{0%{opacity:0;transform:translate(-50%,8px)}}.tama-item-ico{width:52px;height:52px;display:flex;align-items:center;justify-content:center;font-size:30px}.tama-care-hint{font-size:11px;opacity:.65}.tama-stats{position:absolute;top:calc(max(var(--inset-top),10px) + 52px);left:max(var(--inset-left),12px);z-index:5;pointer-events:none;width:min(240px,46vw);display:flex;flex-direction:column;gap:6px;padding:10px 12px;border-radius:14px;background:#100b088c;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}.stat-row{display:flex;align-items:center;gap:10px}.stat-icon{width:24px;text-align:center;font-size:17px}.stat-track{flex:1;height:14px;border-radius:7px;background:#ffffff1f;overflow:hidden}.stat-fill{height:100%;border-radius:7px;transition:width .4s ease}.stat-value{width:32px;text-align:right;font-size:13px;font-weight:700;opacity:.8}.tama-actions{position:absolute;left:max(var(--inset-left),12px);right:calc(max(var(--inset-right),14px) + 218px);bottom:max(var(--inset-bottom),12px);z-index:5;display:flex;gap:8px;overflow-x:auto;align-items:flex-end}.tama-hint{font-size:14px;padding:8px 14px;border-radius:12px;background:#100b088c;white-space:nowrap}.tama-item{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;flex:none;width:78px;padding:7px 6px;border:none;border-radius:14px;color:#fff;background:#100b0899;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);transition:transform .1s ease}.tama-item:active{transform:scale(.94)}.tama-item:disabled{opacity:.4}.tama-item img{width:52px;height:52px;border-radius:12px}.tama-item-name{font-size:12px;font-weight:700}.tama-item-count{position:absolute;top:4px;right:6px;font-size:11px;font-weight:800;color:#ffd23e}.shop-scroll{position:absolute;top:calc(max(var(--inset-top),10px) + 50px);bottom:0;left:0;right:0;z-index:5;overflow-y:auto;padding:4px max(var(--inset-right),16px) 76px max(var(--inset-left),16px)}.shop-scroll section{max-width:760px;margin:0 auto}.shop-section{margin:6px 2px 8px;font-size:15px;opacity:.75}.shop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}.shop-card{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 10px;border-radius:16px;background:#ffffff14}.shop-card img{width:64px;height:64px;border-radius:14px}.shop-card-name{font-size:14px;font-weight:800}.shop-owned{color:#ffd23e}.shop-perk{font-size:11px;text-align:center;opacity:.65;line-height:1.35}.shop-card-actions{display:flex;flex-direction:column;gap:6px;width:100%}.shop-card-actions .btn{width:100%;max-width:none}.shop-card-actions .btn:disabled{opacity:.45}.ico{width:1em;height:1em;flex:none;vertical-align:-.14em}.ico-star{color:#ffd23e}.ico-star-empty{color:#ffffff52}.ico-acorn{color:#d9a25e}.ico-cheese{color:#ffd76e}.ico-lock{color:#ffffff8c}.btn{display:flex;align-items:center;justify-content:center;gap:8px}.hud-chip{display:inline-flex;align-items:center;gap:5px}.hud-btn{display:flex;align-items:center;justify-content:center}.hud-btn .ico{width:18px;height:18px}.compass-arrow .ico,.rotate-icon .ico,.stat-icon .ico{display:block}.stat-icon{display:flex;align-items:center;justify-content:center}.menu-hero-img{width:clamp(84px,24vh,132px);height:clamp(84px,24vh,132px);border-radius:28px;box-shadow:0 10px 30px #ffb45a4d}.menu-dot{opacity:.5}.world-lock{display:inline-flex;align-items:center;gap:4px}.level-stars{display:flex;align-items:center;justify-content:center;gap:2px}.home-coins{display:inline-flex;align-items:center;gap:6px}.finale-note{display:flex;align-items:center;gap:8px}.world-panel{position:relative;min-height:230px;border-radius:18px;background-size:cover;background-position:center 30%;background-color:#2c1b12;display:flex;flex-direction:column;justify-content:flex-end;gap:12px;padding:14px 16px 16px;overflow:hidden;box-shadow:0 8px 24px #00000059}.world-panel:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(180deg,#170e092e,#170e098c)}.world-panel>*{position:relative;z-index:1}.world-panel h3{margin:0;opacity:1;display:flex;align-items:center;gap:10px;font-size:20px;text-shadow:0 2px 8px rgba(0,0,0,.65)}.world-panel .level-card{background:#100b0899;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.world-panel .level-card:not(.locked):active{transform:scale(.97)}.world-section.locked .world-panel{filter:grayscale(.65) brightness(.62)}.world-lock{padding:3px 10px;border-radius:999px;background:#170e09a6;font-size:12px;font-weight:700}.levels-screen{background:linear-gradient(180deg,#0c1322,#1d1a1c 34%,#2f2015 72%,#241610);background-attachment:local}.levels-header{position:fixed;top:0;left:0;right:0;z-index:5;padding:calc(var(--inset-top) + 8px) max(var(--inset-right),16px) 8px max(var(--inset-left),16px);background:#1a100ab8;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid rgba(255,255,255,.06)}.levels-screen,.rules-screen{padding-top:calc(var(--inset-top) + 62px)}.hamster-view{position:absolute;top:0;right:0;bottom:0;left:0}.hamster-view canvas{display:block;width:100%;height:100%;touch-action:none}.shop-card{background:#24160eb8;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}.home-scene-art{position:absolute;top:0;right:0;bottom:0;left:0;background-size:cover;background-position:center bottom}.repair-done{position:absolute;top:max(var(--inset-top),12px);right:max(var(--inset-right),14px);z-index:6}.repair-panel{position:absolute;left:50%;bottom:max(var(--inset-bottom),12px);transform:translate(-50%);z-index:6;display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 16px;border-radius:18px;background:#100b08a6;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.repair-swatches{display:flex;gap:10px}.repair-swatch{width:44px;height:44px;border-radius:50%;border:3px solid rgba(255,255,255,.35);display:flex;align-items:center;justify-content:center;color:#fff;font-size:18px;font-weight:800;transition:transform .1s ease}.repair-swatch:active{transform:scale(.92)}.repair-swatch.active{border-color:#fff;box-shadow:0 0 12px #ffffff80}.repair-swatch.locked{opacity:.55}.repair-swatch .ico{font-size:16px}.repair-hint{font-size:12px;opacity:.7}.repair-hint-pill{position:absolute;left:50%;bottom:max(var(--inset-bottom),14px);transform:translate(-50%);z-index:6;padding:8px 16px;border-radius:999px;background:#100b0899;font-size:13px;font-weight:700;white-space:nowrap;pointer-events:none}.repair-selected{position:absolute;top:max(var(--inset-top),14px);left:50%;transform:translate(-50%);z-index:6;display:flex;align-items:center;gap:10px;padding:6px 8px 6px 16px;border-radius:999px;background:#100b08a6;color:#ffd23e;font-size:14px;font-weight:800;pointer-events:none}.repair-selected .repair-rotate{pointer-events:auto;margin:0}.shop-paint-swatch{width:64px;height:64px;border-radius:50%;border:4px solid rgba(255,255,255,.3)}.rules-screen{align-items:stretch;gap:18px;background:linear-gradient(180deg,#170e09c7,#170e09e6),url(./meta/bg-menu.jpg) center / cover no-repeat #211510}.rules-screen .levels-header h2{display:flex;align-items:center;gap:10px}.rules-section{max-width:860px;width:100%;margin:0 auto}.rules-section h3{display:flex;align-items:center;gap:10px;font-size:21px;margin-bottom:6px}.rules-lead{opacity:.8;font-size:14px;line-height:1.5;margin-bottom:12px}.rules-swipes{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:8px;margin-bottom:12px}.rule-swipe{display:flex;align-items:center;gap:12px;padding:10px 14px;border-radius:16px;background:#ffffff12}.rule-swipe-arrow{flex:none;width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#100b0899;font-size:16px}.rule-swipe .pict{flex:none}.rule-picts{flex:none;display:flex;flex-direction:column;gap:3px}.rule-swipe b{font-size:14px}.rule-swipe p{font-size:12.5px;opacity:.75;line-height:1.45}.rules-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px}.rule-card{display:flex;flex-direction:column;gap:5px;padding:13px 15px;border-radius:16px;background:#ffffff12}.rule-card-ico{font-size:24px;line-height:1}.rule-card b{font-size:14.5px}.rule-card p{font-size:12.5px;opacity:.75;line-height:1.45}.rules-footer{text-align:center;opacity:.7;font-size:14px;padding-bottom:8px}.stat-label{flex:none;width:84px;font-size:12px;font-weight:700;opacity:.85;white-space:nowrap}.tama-stats{width:min(310px,56vw)}.splash-screen{justify-content:center;gap:12px;background:linear-gradient(160deg,#3a2418,#211510 60%,#170e09)}.splash-bar{width:min(320px,70vw);height:10px;border-radius:999px;background:#ffffff26;overflow:hidden}.splash-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,#ff8f5e,#ff5e8f);transition:width .2s ease}.splash-percent{font-size:13px;opacity:.7}.app-rotate{width:100%;height:100%}@media (orientation: portrait) and (pointer: coarse){.app-rotate{position:fixed;top:0;left:0;width:100dvh;height:100dvw;width:var(--app-h, 100dvh);height:var(--app-w, 100dvw);transform:rotate(90deg) translateY(-100%);transform-origin:top left}}.logo-hamster{filter:drop-shadow(0 10px 26px rgba(255,180,90,.35))}.logo-hamster canvas{display:block;width:100%;height:100%}.stat-rings{position:absolute;top:max(var(--inset-top),12px);left:50%;transform:translate(-50%);z-index:6;display:flex;gap:12px}.stat-ring{position:relative;width:46px;height:46px;border-radius:50%;padding:4px;border:none;cursor:pointer;transition:transform .1s ease}.stat-ring:before{content:"";position:absolute;top:-8px;right:-8px;bottom:-8px;left:-8px;border-radius:50%}.stat-ring:active{transform:scale(.92)}.stat-ring.active{outline:2px solid rgba(255,255,255,.85);outline-offset:2px}.stat-tip{position:absolute;top:calc(max(var(--inset-top),12px) + 52px);left:50%;transform:translate(-50%);z-index:7;width:min(360px,84vw);padding:10px 14px;border-radius:14px;background:#100b08d9;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);animation:bubble-in .2s ease;cursor:pointer}.stat-tip b{font-size:14px;color:#ffd23e}.stat-tip p{margin-top:4px;font-size:12.5px;line-height:1.45;opacity:.85}.stat-ring-inner{width:100%;height:100%;border-radius:50%;background:#100b08bf;display:flex;align-items:center;justify-content:center;font-size:16px;color:#fff}.stat-ring.low{animation:ring-pulse 1s ease-in-out infinite}@keyframes ring-pulse{50%{transform:scale(1.12)}}.room-window{position:absolute;border-radius:50%;overflow:hidden;box-shadow:inset 0 0 20px #0a061499}.room-window-art{position:absolute;top:0;right:0;bottom:0;left:0;background-size:114% 114%;background-position:center}.room-window-art.flying{background-size:120% 140%;animation:window-fly 18s ease-in-out infinite alternate}@keyframes window-fly{0%{background-position:50% 100%}to{background-position:50% 0%}}.home-play{display:flex;align-items:center;gap:10px;width:auto;max-width:none;margin:0}.home-play-stars{display:inline-flex;align-items:center;gap:5px;font-size:14px;padding:4px 10px;border-radius:999px;background:#100b0859}.page-wipe{position:fixed;top:0;right:0;bottom:0;left:0;z-index:500;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 50% 50%,#3a2418,#211510 65%);clip-path:circle(0% at 50% 50%);visibility:hidden;pointer-events:none}.page-wipe.closing{visibility:visible;pointer-events:auto;animation:wipe-close .27s ease-in forwards}.page-wipe.opening{visibility:visible;animation:wipe-open .38s ease-out forwards}@keyframes wipe-close{0%{clip-path:circle(0% at 50% 50%)}to{clip-path:circle(120% at 50% 50%)}}@keyframes wipe-open{0%{clip-path:circle(120% at 50% 50%)}to{clip-path:circle(0% at 50% 50%)}}.page-wipe .ico{width:52px;height:52px;animation:wipe-spin .9s ease-in-out infinite;filter:drop-shadow(0 4px 14px rgba(0,0,0,.4))}@keyframes wipe-spin{0%{transform:rotate(-12deg) scale(.95)}50%{transform:rotate(12deg) scale(1.05)}to{transform:rotate(-12deg) scale(.95)}}.settings-note{max-width:280px;margin-top:10px;padding:10px 14px;border-radius:14px;background:#100b0866;font-size:12.5px;line-height:1.45;opacity:.85;text-align:center}.lb-panel{width:min(420px,92vw)}.lb-panel h2{display:flex;align-items:center;gap:8px}.lb-list{display:flex;flex-direction:column;gap:4px;max-height:min(46vh,320px);overflow-y:auto;margin:6px 0 2px}.lb-row{display:flex;align-items:center;gap:10px;padding:7px 12px;border-radius:12px;background:#ffffff0f;font-size:15px}.lb-row.me{background:#ffd23e29;box-shadow:inset 0 0 0 1.5px #ffd23e8c;font-weight:800}.lb-rank{width:26px;text-align:right;font-weight:800;opacity:.75;flex-shrink:0}.lb-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lb-score{display:inline-flex;align-items:center;gap:5px;font-weight:800;color:#ff8f9e}.lb-note{font-size:12.5px;opacity:.65;margin:4px 0 6px}.result-bonus{display:flex;align-items:center;gap:7px;padding:7px 14px;border-radius:999px;background:#100b0899;color:#ff8f9e;font-weight:700;font-size:14.5px}.result-bonus .ico-acorn,.result-bonus b{color:#ffd23e}.intro-panel{width:min(460px,94vw);padding:22px 26px}.intro-sub{font-size:13.5px;opacity:.75;text-align:center;margin-bottom:8px}.intro-rows{display:flex;flex-direction:column;gap:6px;width:100%;margin-bottom:8px}.intro-row{display:flex;align-items:center;gap:12px;padding:7px 12px;border-radius:12px;background:#ffffff12;font-size:14px}.intro-arrow{display:inline-flex;width:20px;justify-content:center;color:#ffd23e;flex-shrink:0}.intro-row .pict{flex-shrink:0}.intro-text{flex:1}@media (max-height: 420px){.intro-panel{padding:14px 20px}.intro-panel h2{font-size:18px;margin-bottom:6px}.intro-row{padding:5px 10px;font-size:13px}}.games-screen{align-items:stretch;justify-content:center;gap:18px;background:linear-gradient(180deg,#170e098c,#170e09e6),url(./meta/bg-menu.jpg) center / cover}.games-header{display:flex;align-items:center;gap:12px}.games-header h2{font-size:26px}.games-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;width:100%;max-width:980px;margin:0 auto}.game-card{position:relative;display:flex;align-items:flex-end;min-height:230px;padding:0;border:2px solid rgba(255,255,255,.14);border-radius:22px;overflow:hidden;background-size:cover;background-position:center;color:#fff;font:inherit;text-align:left;cursor:pointer;transition:transform .15s,box-shadow .15s;box-shadow:0 10px 28px #00000073}.game-card:not(.locked):hover,.game-card:not(.locked):active{transform:translateY(-3px) scale(1.02);box-shadow:0 14px 34px #ff5e8f59}.game-card.locked{cursor:default;filter:grayscale(.75) brightness(.7)}.game-card-shade{position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(180deg,#140c0800 25%,#140c08eb 78%)}.game-card-body{position:relative;display:flex;flex-direction:column;gap:6px;padding:16px 64px 16px 16px}.game-card-title{font-size:21px;font-weight:900}.game-card-about{font-size:13px;line-height:1.3;opacity:.85}.game-card-meta{display:inline-flex;align-items:center;gap:5px;margin-top:2px;font-size:14px;font-weight:800;color:#ffd23e}.game-card-meta svg{width:16px;height:16px}.game-card-play{position:absolute;right:14px;bottom:16px;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:linear-gradient(90deg,#ff8f5e,#ff5e8f);box-shadow:0 6px 16px #ff5e8f73}.game-card.locked .game-card-play{background:#ffffff2e;box-shadow:none}.game-card-play svg{width:20px;height:20px}@media (max-height: 420px){.game-card{min-height:180px}.game-card-about{display:none}}.runner-meters{min-width:72px;justify-content:center;font-size:17px!important;font-weight:900!important;font-variant-numeric:tabular-nums}.runner-best{color:#ffd23e}.runner-result{align-items:center;text-align:center}.runner-result-meters{font-size:54px;font-weight:900;line-height:1;font-variant-numeric:tabular-nums}.runner-result-meters.best{color:#ffd23e;animation:happy-gold 1.4s ease-out;border-radius:16px;padding:4px 14px}.runner-new-best{font-weight:900;color:#ffd23e;letter-spacing:.04em;text-transform:uppercase}.runner-result-line{display:flex;align-items:center;gap:6px;justify-content:center}.rank-btn{position:relative}.rank-chip{position:absolute;top:-7px;right:-9px;padding:1px 5px;border-radius:999px;font-size:11px;font-weight:900;line-height:1.35;white-space:nowrap;pointer-events:none;animation:rank-chip 6s ease-out forwards}.rank-chip.up{color:#10300f;background:#7ee07a;box-shadow:0 0 10px #7ee07a99}.rank-chip.down{color:#f1e6dc;background:#5a463ce6}.rank-chip.inline{position:static;margin-left:6px;animation:none}@keyframes rank-chip{0%{transform:translateY(6px) scale(.5);opacity:0}8%{transform:translateY(0) scale(1.15);opacity:1}14%{transform:scale(1)}85%{opacity:1}to{opacity:0}}.happy-tip-rank{margin-top:6px;color:#ffd23e}.lb-tabs{display:flex;gap:6px;justify-content:center}.lb-tab{display:inline-flex;align-items:center;gap:5px;padding:6px 14px;border:none;border-radius:999px;background:#ffffff1a;color:inherit;font:inherit;font-weight:800;cursor:pointer}.lb-tab.active{background:linear-gradient(90deg,#ff8f5e,#ff5e8f)}.lb-tab svg{width:16px;height:16px}.runner-rank{flex-wrap:wrap;color:#ffd23e;font-weight:800}.runner-rank-next{color:#f1e6dc;font-weight:600}.treats-screen{position:relative;height:100%;overflow:hidden;background:#2c1b12;touch-action:none}.treats-screen.shake-a{animation:treats-shake-a .35s}.treats-screen.shake-b{animation:treats-shake-b .35s}@keyframes treats-shake-a{20%{transform:translate(-8px)}40%{transform:translate(7px)}60%{transform:translate(-5px)}80%{transform:translate(3px)}}@keyframes treats-shake-b{20%{transform:translate(-8px)}40%{transform:translate(7px)}60%{transform:translate(-5px)}80%{transform:translate(3px)}}.treats-timer{position:absolute;top:0;left:0;right:0;height:5px;z-index:7;background:#100b0880}.treats-timer i{display:block;height:100%;background:linear-gradient(90deg,#ff8f5e,#ff5e8f);transition:width .1s linear}.treats-hud{position:absolute;top:max(var(--inset-top),12px);left:max(var(--inset-left),12px);right:max(var(--inset-right),12px);z-index:6}.treats-score{min-width:56px;justify-content:center;font-size:20px!important;font-weight:900!important;font-variant-numeric:tabular-nums}.treats-combo{color:#ffd23e;font-weight:900!important;animation:happy-gulp-a .3s ease-out}.treats-lives{display:flex;gap:3px;padding:5px 9px;border-radius:999px;background:#100b088c}.treats-lives svg{width:18px;height:18px}.treats-lives .full{fill:#ff6f86;stroke:#5a1626}.treats-lives .empty{fill:none;stroke:#ffffff59}.treats-pop.bad{color:#ff5a4e}.treats-pop.info{color:#ffd23e;-webkit-text-stroke-color:#4a2a06;font-size:22px}.treats-wide{position:absolute;right:max(var(--inset-right),18px);bottom:max(var(--inset-bottom),18px);z-index:7;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:92px;height:92px;border:3px solid rgba(255,255,255,.25);border-radius:50%;background:#100b0899;color:#fff;font:inherit;font-size:13px;font-weight:900;cursor:pointer;touch-action:none;transition:transform .12s,background .12s}.treats-wide.active{background:linear-gradient(135deg,#ff9f43,#ff5e8f);border-color:#ffd23e;transform:scale(1.08)}.treats-intro p{margin:4px 0;line-height:1.35}.token-icon{display:inline-block;width:15px;height:15px;border-radius:50%;background:linear-gradient(180deg,#ff6f9e 0,#ff6f9e 50%,#fff3dd 50%,#fff3dd);box-shadow:inset 0 0 0 1.5px #5a1626,0 0 6px #ff6f9e80;vertical-align:-2px}.token-icon.big{width:24px;height:24px}.dust-icon{color:#b9a4ff;font-weight:900;text-shadow:0 0 6px rgba(185,164,255,.8)}.wish-screen,.wardrobe-screen{align-items:stretch;gap:12px;background:radial-gradient(ellipse at 70% 30%,rgba(146,98,255,.28),transparent 60%),linear-gradient(160deg,#2a1a3a,#1a1026 60%,#120a1a)}.wish-header{display:flex;align-items:center;gap:10px}.wish-header h2{font-size:22px}.wish-balance{border:none;color:inherit;font:inherit;font-size:15px!important;font-weight:900!important;cursor:pointer}.wish-plus{margin-left:2px;padding:0 5px;border-radius:50%;background:#ff5e8f;font-size:12px}.wish-tabs{display:flex;flex-wrap:wrap;gap:6px}.wish-body{display:grid;grid-template-columns:1.3fr 1fr;gap:16px;flex:1;min-height:0}.wish-banner{position:relative;display:grid;grid-template-columns:1fr 1fr;align-items:center;border-radius:22px;padding:16px;overflow:hidden;background:linear-gradient(135deg,#ffffff14,#ffffff05);border:2px solid rgba(255,255,255,.12)}.wish-banner.seasonal{border-color:#ffd23e8c;background:radial-gradient(circle at 75% 50%,rgba(255,210,62,.25),transparent 55%),linear-gradient(135deg,#ffffff14,#ffffff05)}.wish-banner h3{font-size:22px;margin-bottom:4px}.wish-banner p{font-size:13px;opacity:.85;line-height:1.35}.wish-featured{margin-top:8px;color:#ffd23e;opacity:1!important;font-weight:800}.wish-rares{display:flex;gap:8px;margin-top:10px}.wish-rare{display:flex;flex-direction:column;align-items:center;width:70px;font-size:11px;text-align:center}.wish-rare img{width:56px;height:56px;border-radius:12px;background:#788cff40;box-shadow:inset 0 0 0 2px #8ca0ff99}.skin-preview{position:relative}.skin-preview canvas{display:block;width:100%;height:100%}.wish-hero{height:100%;min-height:200px}.wish-machine-col{display:flex;flex-direction:column;align-items:center;gap:8px}.capsule-machine{position:relative;width:170px}.capsule-dome{position:relative;height:130px;border-radius:90px 90px 16px 16px;background:radial-gradient(circle at 35% 30%,#ffffff73,#c8e6ff1f 45%,#a0c8ff14);border:3px solid rgba(255,255,255,.5);overflow:hidden}.capsule{position:absolute;width:34px;height:34px;border-radius:50%;box-shadow:inset 0 0 0 2px #280a1480}.capsule.c0{background:linear-gradient(180deg,#ff6f9e 50%,#fff3dd 50%)}.capsule.c1{background:linear-gradient(180deg,#6fb5ff 50%,#fff3dd 50%)}.capsule.c2{background:linear-gradient(180deg,#ffd23e 50%,#fff3dd 50%)}.capsule.c3{background:linear-gradient(180deg,#8fe07a 50%,#fff3dd 50%)}.capsule.c4{background:linear-gradient(180deg,#b98cff 50%,#fff3dd 50%)}.capsule-base{position:relative;height:70px;margin-top:-6px;border-radius:12px 12px 18px 18px;background:linear-gradient(180deg,#e8474f,#b82834);box-shadow:inset 0 -6px #0003}.capsule-knob{position:absolute;left:50%;top:12px;width:36px;height:36px;margin-left:-18px;border-radius:50%;background:#fff3dd;box-shadow:inset 0 0 0 3px #7a1c24}.capsule-knob:after{content:"";position:absolute;left:50%;top:4px;bottom:4px;width:6px;margin-left:-3px;border-radius:3px;background:#7a1c24}.capsule-machine.shaking{animation:machine-shake .5s ease-in-out 2}.capsule-machine.shaking .capsule-knob{animation:knob-turn .9s ease-in-out}@keyframes machine-shake{25%{transform:rotate(-3deg)}75%{transform:rotate(3deg)}}@keyframes knob-turn{to{transform:rotate(360deg)}}.wish-pity{text-align:center;font-size:12px;opacity:.85}.wish-chance{color:#ffd23e}.wish-buttons{display:flex;gap:8px}.wish-buttons .btn{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.wish-odds-link{border:none;background:none;color:#b9a4ff;font:inherit;font-size:13px;text-decoration:underline;cursor:pointer}.wish-drop{position:absolute;top:0;right:0;bottom:0;left:0;z-index:30;display:flex;align-items:center;justify-content:center;background:#0a05108c;pointer-events:none}.wish-capsule{position:relative;width:110px;height:110px;animation:capsule-drop .55s cubic-bezier(.3,1.6,.5,1) both,capsule-wobble .35s .6s ease-in-out 3}.wish-capsule-top,.wish-capsule-bottom{position:absolute;left:0;right:0;height:50%;box-shadow:inset 0 0 0 4px #280a1480}.wish-capsule-top{top:0;border-radius:55px 55px 0 0;background:#ff6f9e}.wish-capsule-bottom{bottom:0;border-radius:0 0 55px 55px;background:#fff3dd}.wish-capsule.rare .wish-capsule-top{background:#6f8cff}.wish-capsule.legendary .wish-capsule-top{background:#ffd23e}.wish-capsule.rare{filter:drop-shadow(0 0 22px rgba(111,140,255,.9))}.wish-capsule.legendary{filter:drop-shadow(0 0 30px rgba(255,210,62,1));animation:capsule-drop .55s cubic-bezier(.3,1.6,.5,1) both,capsule-wobble .3s .6s ease-in-out 4,capsule-glow 1.9s ease-in both}@keyframes capsule-drop{0%{transform:translateY(-60vh) rotate(-40deg)}to{transform:translateY(0) rotate(0)}}@keyframes capsule-wobble{25%{transform:rotate(-12deg) scale(1.03)}75%{transform:rotate(12deg) scale(1.03)}}@keyframes capsule-glow{80%{filter:drop-shadow(0 0 30px rgba(255,210,62,1)) brightness(1)}to{filter:drop-shadow(0 0 80px rgba(255,235,150,1)) brightness(2.2)}}.wish-reveal{z-index:31}.wish-reveal-panel{align-items:center;max-width:94vw}.wish-reveal-panel.many{width:min(760px,94vw)}.wish-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;width:100%}.wish-reveal-actions{display:flex;gap:10px}.reveal-card{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 6px;border-radius:16px;background:#ffffff12;box-shadow:inset 0 0 0 2px #ffffff26;text-align:center;animation:reveal-pop .45s cubic-bezier(.3,1.5,.5,1) both}.reveal-card img{width:100%;max-width:110px;aspect-ratio:1}.reveal-card.big img{max-width:200px}.reveal-card.rare{background:#6f8cff2e;box-shadow:inset 0 0 0 2px #6f8cffcc,0 0 18px #6f8cff66}.reveal-card.legendary{background:#ffd23e2e;box-shadow:inset 0 0 0 2px #ffd23ef2,0 0 26px #ffd23e99}.reveal-name{font-weight:900;font-size:13px}.reveal-card.big .reveal-name{font-size:22px}.reveal-rarity{font-size:11px;color:#ffd23e}.reveal-new{font-size:11px;font-weight:900;color:#7ee07a;text-transform:uppercase}.reveal-dupe{font-size:12px;font-weight:800}.reveal-note{font-size:11px;opacity:.8}@keyframes reveal-pop{0%{transform:scale(.3) rotate(-8deg);opacity:0}to{transform:scale(1) rotate(0);opacity:1}}.wish-odds table{width:100%;border-collapse:collapse;font-size:13px}.wish-odds td{padding:6px 4px;border-bottom:1px solid rgba(255,255,255,.1);vertical-align:top}.wish-odds td:first-child{font-weight:800;white-space:nowrap;padding-right:10px}.wish-tokens .btn{display:inline-flex;align-items:center;justify-content:center;gap:6px}.wardrobe-count{opacity:.7;font-weight:800}.wardrobe-body{display:grid;grid-template-columns:1fr 1.4fr;gap:16px;flex:1;min-height:0}.wardrobe-hero{min-height:220px;border-radius:22px;background:radial-gradient(circle at 50% 60%,rgba(255,210,62,.18),transparent 65%)}.wardrobe-side{display:flex;flex-direction:column;gap:10px;min-height:0}.wardrobe-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:8px;overflow-y:auto;padding:2px}.wardrobe-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px;border:none;border-radius:14px;background:#ffffff12;color:inherit;font:inherit;cursor:pointer;box-shadow:inset 0 0 0 2px #ffffff1f}.wardrobe-card img{width:100%;aspect-ratio:1}.wardrobe-card.rare{box-shadow:inset 0 0 0 2px #6f8cffb3}.wardrobe-card.legendary{box-shadow:inset 0 0 0 2px #ffd23ed9}.wardrobe-card.on{background:#ff5e8f47;box-shadow:inset 0 0 0 3px #ff5e8f}.wardrobe-card.locked img{filter:brightness(0) opacity(.35)}.wardrobe-card:disabled{cursor:default}.wardrobe-name{font-size:11px;font-weight:800;text-align:center;line-height:1.2}.wardrobe-none{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1;font-size:34px;opacity:.5}.wardrobe-lock{position:absolute;top:6px;right:6px;width:14px;height:14px;opacity:.7}.tama-wish{position:relative}.tama-badge{position:absolute;top:-4px;right:-4px;min-width:20px;padding:1px 6px;border-radius:999px;background:#ff5e8f;font-size:12px;font-weight:900}.milestone-note{position:absolute;left:50%;top:60px;z-index:9;display:flex;align-items:center;gap:6px;padding:8px 14px;border-radius:999px;transform:translate(-50%);background:#281432e6;box-shadow:0 0 0 2px #ff6f9e99;font-weight:800;white-space:nowrap;animation:rank-chip 4s ease-out forwards}@media (max-height: 480px){.wish-body,.wardrobe-body{gap:10px}.capsule-machine{transform:scale(.8);margin:-12px 0}}.dash-top{position:absolute;top:max(var(--inset-top),10px);left:max(var(--inset-left),12px);right:max(var(--inset-right),12px);z-index:6;display:flex;align-items:center;gap:12px}.dash-progress{position:relative;flex:1;height:16px;border-radius:999px;background:#100b0899;box-shadow:inset 0 0 0 2px #ffffff40;overflow:visible}.dash-progress i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#7ee07a,#ffd23e);box-shadow:0 0 10px #7ee07a99}.dash-best-mark{position:absolute;top:-4px;bottom:-4px;width:3px;margin-left:-1px;border-radius:2px;background:#fff;box-shadow:0 0 6px #fff}.dash-pct{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:900;text-shadow:0 1px 2px rgba(0,0,0,.8)}.dash-secrets{display:flex;gap:4px;padding:4px 8px;border-radius:999px;background:#100b088c}.dash-secrets svg{width:18px;height:18px;opacity:.3;filter:grayscale(1)}.dash-secrets svg.got{opacity:1;filter:drop-shadow(0 0 6px rgba(255,210,62,.9));animation:happy-gulp-a .35s ease-out}.dash-secrets.big{background:none;justify-content:center}.dash-secrets.big svg{width:34px;height:34px}.dash-attempt{position:absolute;left:50%;top:28%;z-index:5;transform:translate(-50%,-50%);font-size:44px;font-weight:900;color:#fff;-webkit-text-stroke:7px #2b1a12;paint-order:stroke fill;pointer-events:none;white-space:nowrap;animation:dash-attempt 1.3s ease-out forwards}@keyframes dash-attempt{0%{transform:translate(-50%,-50%) scale(1.6);opacity:0}12%{transform:translate(-50%,-50%) scale(1);opacity:1}70%{opacity:1}to{transform:translate(-50%,-80%) scale(.9);opacity:0}}.dash-newbest{position:absolute;left:50%;top:42%;z-index:5;transform:translate(-50%);font-size:26px;font-weight:900;color:#ffd23e;-webkit-text-stroke:6px #4a2a06;paint-order:stroke fill;pointer-events:none;animation:reveal-pop .4s cubic-bezier(.3,1.5,.5,1) both}.skin-preview.interactive{cursor:grab;touch-action:none}.skin-preview.interactive:active{cursor:grabbing}.runner-meters.record{color:#ffd23e;box-shadow:0 0 0 2px #ffd23ecc,0 0 14px #ffd23e99}.runner-speed{color:#ff9f7a;font-weight:900!important;font-variant-numeric:tabular-nums}.radial-scrim{position:absolute;top:0;right:0;bottom:0;left:0;z-index:7;background:radial-gradient(circle at 0% 100%,#100b088c,#100b0826 60%);animation:radial-fade .2s ease-out}@keyframes radial-fade{0%{opacity:0}}.radial{position:absolute;left:max(var(--inset-left),20px);bottom:max(var(--inset-bottom),20px);z-index:8;width:72px;height:72px}.radial-main{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;border:3px solid rgba(255,255,255,.85);border-radius:50%;background:linear-gradient(135deg,#ff8f5e,#ff5e8f);color:#fff;cursor:pointer;box-shadow:0 6px 18px #ff5e8f80;transition:transform .25s cubic-bezier(.3,1.5,.5,1)}.radial-main svg{width:34px;height:34px;stroke-width:3;transition:transform .25s}.radial.open .radial-main svg{transform:rotate(135deg)}.radial-main:active{transform:scale(.92)}.radial-main .rank-chip{top:-6px;right:-8px}.radial-item{position:absolute;left:4px;top:4px;display:flex;align-items:center;justify-content:center;width:64px;height:64px;border:2px solid rgba(255,255,255,.25);border-radius:50%;background:#18100ce0;color:#fff;cursor:pointer;opacity:0;pointer-events:none;box-shadow:0 4px 12px #00000059;transition:transform .28s cubic-bezier(.3,1.45,.5,1),opacity .18s}.radial.open .radial-item{opacity:1;pointer-events:auto}.radial-item svg{width:32px;height:32px}.radial-item.primary{background:linear-gradient(135deg,#ff8f5e,#ff5e8f);border-color:#fffc}.radial-item:active{filter:brightness(1.2)}.radial-badge{position:absolute;top:-5px;right:-5px;min-width:20px;padding:1px 5px;border-radius:999px;background:#ff5e8f;font-size:11px;font-weight:900;line-height:1.4}.hub-screen{position:relative;height:100%;overflow:hidden;background:#9fd0ff}.hub-canvas{position:absolute;top:0;right:0;bottom:0;left:0;touch-action:none}.hub-canvas canvas{display:block;width:100%;height:100%}.hub-top{position:absolute;top:max(var(--inset-top),10px);left:max(var(--inset-left),12px);right:max(var(--inset-right),12px);z-index:6}.hub-online{font-weight:900!important}.hub-near{margin-left:4px;opacity:.75;font-weight:700}.hub-emotes{position:absolute;right:max(var(--inset-right),12px);top:50%;z-index:6;display:flex;flex-direction:column;gap:6px;transform:translateY(-50%)}.hub-emote{display:flex;flex-direction:column;align-items:center;gap:2px;width:62px;padding:6px 4px;border:2px solid rgba(255,255,255,.25);border-radius:14px;background:#18100cb3;color:#fff;font:inherit;font-size:10px;font-weight:800;cursor:pointer}.hub-emote:active{transform:scale(.94)}.hub-chat{position:absolute;left:max(var(--inset-left),12px);bottom:max(var(--inset-bottom),10px);z-index:6;width:min(420px,60vw);display:flex;flex-direction:column;gap:6px;padding:8px;border-radius:16px;background:#18100cb8;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.hub-chat.collapsed{width:auto}.hub-chat-tabs{display:flex;gap:4px;align-items:center}.hub-chat-tabs .lb-tab{padding:4px 10px;font-size:12px}.hub-chat-toggle{margin-left:auto;border:none;background:none;color:#fff;font-size:16px;cursor:pointer}.hub-chat-list{height:132px;overflow-y:auto;font-size:13px;line-height:1.35;padding-right:4px}.hub-chat-empty{opacity:.6;padding:8px 2px}.hub-line b{color:#ffd23e;cursor:pointer}.hub-line.me b{color:#7ee07a;cursor:default}.hub-chat-input{display:flex;gap:6px}.hub-chat-input input,.hub-nick-input{flex:1;min-width:0;padding:8px 12px;border:2px solid rgba(255,255,255,.2);border-radius:999px;background:#ffffff1a;color:#fff;font:inherit;font-size:14px;outline:none}.hub-nick-input{width:100%;margin-bottom:8px;text-align:center;font-size:18px;font-weight:800}.hub-chat-input input:focus,.hub-nick-input:focus{border-color:#ff5e8f}.hub-reject{font-size:12px;font-weight:800;color:#ff9a8f}@media (max-height: 420px){.hub-chat-list{height:84px}}.hub-stick{position:absolute;display:none;width:110px;height:110px;margin:-55px 0 0 -55px;border-radius:50%;border:2px solid rgba(255,255,255,.45);background:#18100c40;pointer-events:none;z-index:5}.hub-stick-knob{position:absolute;left:50%;top:50%;width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;background:#ffffffd9;box-shadow:0 2px 8px #00000059}.hub-hint{position:absolute;left:50%;bottom:calc(max(var(--inset-bottom),10px) + 6px);z-index:5;transform:translate(-50%);padding:6px 12px;border-radius:999px;background:#18100c99;font-size:12px;font-weight:700;pointer-events:none}.hub-market-btn{position:absolute;top:calc(max(var(--inset-top),10px) + 44px);right:max(var(--inset-right),12px);z-index:6}.trade-panel{width:min(640px,94vw)}.trade-cols{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%}.trade-col{padding:8px;border-radius:14px;background:#ffffff0f;box-shadow:inset 0 0 0 2px #ffffff1f;min-height:120px}.trade-col.ok{box-shadow:inset 0 0 0 2px #7ee07a}.trade-col-title{font-weight:900;margin-bottom:6px}.trade-offer{display:flex;flex-wrap:wrap;gap:6px;min-height:52px}.trade-item{position:relative;display:flex;flex-direction:column;align-items:center;width:52px;font-size:11px;font-weight:800}.trade-item img,.trade-pickbtn img{width:44px;height:44px;border-radius:10px;background:#ffffff14}.trade-minus{position:absolute;top:-4px;right:-2px;width:18px;height:18px;border:none;border-radius:50%;background:#ff5e8f;color:#fff;font-weight:900;cursor:pointer}.trade-dust,.trade-empty{align-self:center;font-weight:800;opacity:.85}.trade-pick{display:flex;flex-wrap:wrap;gap:4px;margin-top:8px;padding-top:8px;border-top:1px solid rgba(255,255,255,.12);max-height:110px;overflow-y:auto}.trade-pickbtn{position:relative;padding:0;border:none;background:none;color:#fff;cursor:pointer}.trade-pickbtn span{position:absolute;bottom:0;right:0;padding:0 5px;border-radius:8px;background:#18100cd9;font-size:11px;font-weight:900}.trade-dust-input{display:flex;align-items:center;gap:6px;margin-top:8px;font-size:12px}.trade-dust-input input,.market-price{width:80px;padding:4px 8px;border:2px solid rgba(255,255,255,.2);border-radius:8px;background:#ffffff1a;color:#fff;font:inherit;font-weight:800}.trade-countdown{font-weight:900;color:#ffd23e}.market-panel{width:min(560px,94vw)}.market-panel h2{display:flex;align-items:center;gap:10px}.market-list{width:100%;max-height:min(50vh,340px);overflow-y:auto;display:flex;flex-direction:column;gap:6px}.market-row{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:12px;background:#ffffff0f}.market-row.rare{box-shadow:inset 0 0 0 2px #6f8cff99}.market-row.legendary{box-shadow:inset 0 0 0 2px #ffd23ecc}.market-row img{width:44px;height:44px;border-radius:10px;background:#ffffff14}.market-info{flex:1;display:flex;flex-direction:column;font-size:12px}.market-info b{font-size:14px}.market-sub{margin-top:8px;font-size:14px}.hub-emote.active{background:linear-gradient(135deg,#ff8f5e,#ff5e8f);border-color:#ffd23e}.hub-event{position:absolute;left:50%;top:calc(max(var(--inset-top),10px) + 48px);z-index:7;transform:translate(-50%);padding:8px 16px;border-radius:999px;background:#9262ffd9;box-shadow:0 4px 18px #9262ff80;font-weight:800;white-space:nowrap;animation:reveal-pop .35s cubic-bezier(.3,1.5,.5,1) both}.hub-event.in{background:#2ecc71e6}.hub-event.result{background:#18100cd9}.hub-event.result.ok{background:#ffd23ef2;color:#2b1a12}.collection-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.collection-filters select{background:#fff3dd;color:#503b30;border:2px solid #c4ad8f;border-radius:12px;padding:7px;font:inherit;max-width:220px}.collection-filters h2{flex:1;margin:0}.collection-filters [aria-pressed=true]{background:#d9e5cf;border-color:#648268}.collection-progress{display:flex;flex-direction:column;gap:6px;padding:12px;background:#edf0dc;border-radius:16px;color:#503b30}.collection-grid:empty{display:none}.collection-detail{width:min(620px,calc(100vw - 32px));background:#fff3dd;color:#503b30;max-height:calc(100dvh - 32px);overflow:auto;display:flex;flex-direction:column;gap:12px}.collection-compare{display:grid;grid-template-columns:1fr 1fr;gap:16px}.collection-compare>:first-child{min-height:220px}.collection-versions{display:flex;flex-direction:column;justify-content:center;gap:8px}.wardrobe-card.epic,.wish-reward.epic{border-color:#a579b0;background:#f0e2ef}.wish-tabs{overflow-x:auto;flex-shrink:0}.wish-capsule.epic .wish-capsule-top{background:#b786c4}.wish-capsule.epic{filter:drop-shadow(0 0 24px #b786c4)}.reveal-card.epic{border-color:#a579b0;background:#f0e2ef}
