html:has(.page-play),body.page-play{overscroll-behavior:none;background:#8ccdf2;height:100%;overflow:hidden}body.page-play main{height:100%}.game{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;height:100dvh;font-family:var(--font-round);background:linear-gradient(#8ccdf2,#b9e3a3);position:fixed;inset:0;overflow:hidden}.game-surface{touch-action:none;cursor:grab;position:absolute;inset:0}.game-surface:active{cursor:grabbing}.game-canvas{display:block;width:100%!important;height:100%!important}.joystick{pointer-events:none;opacity:0;width:0;height:0;transition:opacity .12s;position:absolute;top:0;left:0}.joystick.is-active{opacity:1}.joystick:before{content:"";background:#ffffff40;border-radius:50%;width:140px;height:140px;position:absolute;top:-70px;left:-70px;box-shadow:inset 0 0 0 5px #ffffffb3}.joystick-knob{background:#fff;border-radius:50%;width:64px;height:64px;position:absolute;top:-32px;left:-32px;box-shadow:0 3px 10px #00000040}.hud{pointer-events:none;padding:max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));color:#2a2f28;position:absolute;inset:0}.hud[hidden]{display:none}.hud button{pointer-events:auto;-webkit-tap-highlight-color:transparent;font-family:inherit}.hud-top{justify-content:space-between;align-items:flex-start;gap:10px;display:flex}.hud-left{justify-items:start;gap:8px;display:grid}.hud-right{gap:10px;display:grid}.hud-pill{font-variant-numeric:tabular-nums;background:#ffffffeb;border-radius:999px;align-items:center;gap:8px;min-height:44px;padding:6px 16px 6px 8px;font-size:1.3rem;font-weight:900;display:inline-flex;box-shadow:0 3px 10px #00000029}.hud-carry{min-height:36px;padding-block:4px;font-size:1.05rem}.hud-carry.is-full{color:#b3261e;background:#ffe1dc}.hud-icon svg{width:30px;height:30px}.hud-carry .hud-icon svg{color:#8a5b2c;width:22px;height:22px}.hud-money.is-pulse{animation:.28s ease-out hud-pulse}@keyframes hud-pulse{40%{transform:scale(1.12)}}.hud-round{color:#3b4a38;cursor:pointer;background:#ffffffeb;border:0;border-radius:50%;place-items:center;width:50px;height:50px;padding:0;display:grid;box-shadow:0 3px 10px #00000029}.hud-round svg{width:26px;height:26px}.hud-round:active,.hud-big:active{transform:scale(.94)}.hud-bottom{left:max(12px, env(safe-area-inset-left));right:max(12px, env(safe-area-inset-right));bottom:max(14px, env(safe-area-inset-bottom));pointer-events:none;justify-content:space-between;align-items:flex-end;display:flex;position:absolute}.hud-big{cursor:pointer;border:0;border-radius:22px;justify-items:center;gap:2px;min-width:78px;padding:10px 12px 8px;font-size:.95rem;font-weight:900;display:grid;box-shadow:0 5px #0000002e,0 8px 18px #0000002e}.hud-big svg{width:34px;height:34px}.hud-tip{color:#e0a400;background:#fff}.hud-tip span{color:#2a2f28}.hud-shop{color:#2f9e46;background:#fff}.hud-shop span{color:#2a2f28}.hud-shop.is-highlight{color:#2f9e46;background:#ffd133;animation:1.8s ease-in-out infinite hud-wiggle}@keyframes hud-wiggle{0%,70%,to{transform:rotate(0)}78%{transform:rotate(-6deg)scale(1.05)}86%{transform:rotate(6deg)scale(1.05)}}.hud-toast{left:50%;bottom:calc(max(14px, env(safe-area-inset-bottom)) + 104px);width:min(560px,100% - 32px);font-family:var(--font-body);text-align:center;opacity:0;pointer-events:none;background:#fffffff5;border-radius:20px;padding:14px 18px;font-size:1.02rem;font-weight:650;line-height:1.4;transition:opacity .25s,transform .25s;position:absolute;transform:translate(-50%,20px);box-shadow:0 6px 22px #0003}.hud-toast.is-visible{opacity:1;transform:translate(-50%)}.hud-sheet{opacity:0;visibility:hidden;pointer-events:auto;background:#141e1459;justify-content:center;align-items:flex-end;transition:opacity .2s,visibility .2s;display:flex;position:absolute;inset:0}.hud-sheet.is-open{opacity:1;visibility:visible}.shop-panel{overscroll-behavior:contain;width:min(620px,100%);max-height:min(86dvh,760px);padding:18px 16px max(20px, env(safe-area-inset-bottom));touch-action:pan-y;background:#fffaf0;border-radius:28px 28px 0 0;transition:transform .25s ease-out;overflow-y:auto;transform:translateY(30px)}.hud-sheet.is-open .shop-panel{transform:translateY(0)}@media (width>=700px) and (height>=600px){.hud-sheet{align-items:center}.shop-panel{border-radius:28px}}.shop-head{justify-content:space-between;align-items:flex-start;margin-bottom:12px;padding-inline:6px;display:flex}.shop-title{margin:0;font-size:1.7rem}.shop-level{color:#586555;font-family:var(--font-body);margin:2px 0 0;font-weight:600}.shop-list{gap:10px;display:grid}.shop-row{background:#fff;border-radius:20px;grid-template-columns:56px 1fr auto;align-items:center;gap:12px;padding:12px;display:grid;box-shadow:0 2px 8px #00000014}.shop-badge{border-radius:50%;place-items:center;width:56px;height:56px;font-size:1.7rem;display:grid}.shop-name{margin:0 0 2px;font-size:1.1rem}.shop-effect,.shop-lock{color:#586555;margin:0 0 6px;font-size:.95rem;font-weight:800}.shop-lock{align-items:center;gap:6px;margin:0;display:flex}.shop-lock svg{width:16px;height:16px}.shop-bar{gap:3px;display:flex}.shop-bar span{background:#0000001a;border-radius:4px;flex:1;max-width:22px;height:8px}.shop-buy{color:#fff;cursor:pointer;background:linear-gradient(#5fd26a,#2f9e46);border:0;border-radius:16px;justify-content:center;align-items:center;gap:6px;min-width:96px;min-height:48px;padding:8px 14px;font-size:1.05rem;font-weight:900;display:inline-flex;box-shadow:0 4px #22803a}.shop-buy svg{width:22px;height:22px}.shop-buy:disabled{color:#6d6a63;cursor:not-allowed;background:#d9d4ca;box-shadow:0 4px #bfb8ac}.shop-buy.is-bought{animation:.3s hud-pulse}.shop-row.is-locked .shop-name{color:#77736b}.game-overlay{padding:max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));z-index:5;background:linear-gradient(#8ccdf240,#1e3c1e59);place-items:center;display:grid;position:absolute;inset:0;overflow-y:auto}.game-overlay[hidden]{display:none}.game-card{text-align:center;background:#fffaf0f7;border-radius:30px;width:min(520px,100%);padding:clamp(20px,4vw,32px);box-shadow:0 18px 50px #00000040}.game-card--small{width:min(420px,100%)}.game-card h1,.game-card h2{margin-bottom:.35em;font-size:clamp(1.5rem,1.1rem + 1.8vw,2.1rem)}.game-card__icon{border-radius:22px;width:84px;height:84px;margin:0 auto 12px;box-shadow:0 6px 16px #0003}.game-card__intro{color:#586555;font-family:var(--font-body)}.character-choice{border:0;justify-content:center;gap:12px;margin:8px 0 18px;padding:0;display:flex}.character-choice legend{width:100%;margin-bottom:8px;font-size:1.05rem;font-weight:900}.character{color:#2a2f28;cursor:pointer;background:#fff;border:3px solid #0000;border-radius:20px;justify-items:center;gap:4px;min-width:120px;padding:12px 16px;font-family:inherit;font-size:1rem;font-weight:900;display:grid;box-shadow:0 3px 10px #0000001a}.character span{font-size:2.4rem;line-height:1}.character[aria-pressed=true]{background:#effae9;border-color:#2f9e46}.game-card__actions{flex-wrap:wrap;justify-content:center;gap:12px;margin:6px 0 10px;display:flex}.game-card__status{color:#b3261e;min-height:1.2em;font-family:var(--font-body);margin:0;font-weight:600}.game-card__controls{font-family:var(--font-body);color:#586555;margin:10px 0;padding:0;font-size:.9rem;list-style:none}.game-card__controls li{margin-bottom:4px}@media (pointer:coarse){.game-card__controls li:last-child{display:none}}@media (pointer:fine){.game-card__controls li:first-child{display:none}}.game-card__links{font-family:var(--font-body);flex-wrap:wrap;justify-content:center;align-items:center;gap:6px 10px;margin:6px 0 0;font-size:.95rem;display:flex}.game-card__about{text-align:start;font-family:var(--font-body);margin-top:12px;font-size:.95rem}.game-card__about summary{cursor:pointer;text-align:center;font-family:var(--font-round);color:#2c8a3c;font-weight:800}.game-card__about ul{color:#3e4a3b;padding-inline-start:1.2em}.game:not(.is-ready) .game-overlay{background:linear-gradient(#8ccdf2,#b9e3a3)}@media (height<=560px) and (orientation:landscape){.game-card__icon,.game-card__about,.game-card__controls{display:none}.hud-toast{bottom:96px}}
