#page-game{font-family:system-ui,sans-serif;text-align:left;color:#fff}
.game-shell{max-width:1240px;margin:0 auto;background:linear-gradient(145deg,#160c18,#08070b 72%);border:3px solid #101015;border-radius:20px;box-shadow:8px 8px 0 #111,0 0 34px rgba(255,20,147,.2);padding:clamp(12px,2.4vw,26px)}
.game-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.game-head h1{font-family:"Rubik Spray Paint","Permanent Marker",sans-serif;font-size:clamp(1.7rem,5vw,3rem);line-height:1.04;margin:2px 0;color:#fff;text-shadow:3px 3px 0 #ff1493}
.game-kicker{font-size:.72rem;letter-spacing:.2em;color:#ff65b6;font-weight:800;margin:0}
.game-sub{color:#d6c9d3;margin:4px 0 0;font-size:.88rem}
.game-score{min-width:122px;text-align:right;border:2px solid #ff1493;background:#150c17;border-radius:12px;padding:8px 12px;box-shadow:3px 3px 0 #000}
.game-score span,.game-score small{display:block;color:#ff9bd0;font-size:.65rem;letter-spacing:.12em;font-weight:800}
.game-score strong{display:block;font-size:1.75rem;color:#fff;font-variant-numeric:tabular-nums;line-height:1.1}
.game-score small{min-height:1em;color:#fff}
.game-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-bottom:12px}
.game-toolbar button,.game-side button,.game-shop button{font:700 .82rem system-ui,sans-serif;color:#fff;background:#302433;border:2px solid #050407;border-radius:9px;padding:8px 11px;cursor:pointer;box-shadow:2px 2px 0 #000}
.game-toolbar button:hover,.game-side button:hover,.game-shop button:hover{border-color:#ff1493;background:#49223b}
.game-toolbar button.on,.game-side button.on{background:#ff1493}
.game-volume{display:flex;align-items:center;gap:6px;color:#e3cedd;font-size:.75rem}
.game-volume input{width:90px;accent-color:#ff1493}
.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:14px;align-items:start}
.game-main{min-width:0}
#game-stage{position:relative;width:100%;height:min(68vh,660px);min-height:360px;overflow:hidden;border:3px solid #251522;border-radius:14px;background:#120d17;box-shadow:inset 0 0 30px #000;touch-action:none;user-select:none}
#game-canvas{display:block;width:100%;height:100%;touch-action:none}
.game-overlay{position:absolute;left:50%;top:14px;transform:translateX(-50%);z-index:3;pointer-events:none}
#game-toast{opacity:0;background:#ff1493;color:#fff;padding:7px 14px;border:2px solid #140c14;border-radius:18px;font-size:.85rem;font-weight:800;transition:opacity .15s,top .15s}
#game-toast.show{opacity:1;top:24px}
.game-paused{display:none;inset:0;align-items:center;justify-content:center;transform:none;left:0;top:0;background:rgba(8,5,12,.62);color:#fff;font-family:"Bungee",system-ui,sans-serif;font-size:clamp(2rem,8vw,5rem);letter-spacing:.08em;text-shadow:4px 4px #ff1493}
.game-paused.show{display:flex}
.game-reward{top:26%;font-size:clamp(1rem,4vw,2.2rem);font-weight:900;color:#fff;text-shadow:3px 3px #ff1493;opacity:0;transition:transform .65s,opacity .65s}
.game-reward.show{opacity:1;transform:translate(-50%,-30px) scale(1.16)}
.game-instructions{margin:8px 2px 0;color:#d4c7d2;font-size:.76rem;line-height:1.55}
.game-instructions kbd{background:#281b2b;color:#fff;border:1px solid #79536c;border-radius:4px;padding:1px 5px}
.game-side{position:relative;color:#eee;background:#171119;border:2px solid #392738;border-radius:14px;padding:12px;min-width:0}
.game-side h2,.game-side h3{margin:0 0 8px;color:#ff84c6;font-family:"Rubik Spray Paint","Permanent Marker",sans-serif}
.game-side h2{font-size:1.35rem}
.game-side h3{font-size:1rem}
.game-inventory{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.game-tool{min-height:82px!important;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;padding:6px!important}
.game-tool .game-icon{font-size:1.55rem;line-height:1}
.game-tool small{font-size:.6rem;color:#e4cddd;font-weight:500}
.game-tool.selected{background:#ff1493!important;border-color:#ffc2e4!important}
.game-tool:disabled{opacity:.42;cursor:not-allowed}
.game-upgrade{margin-top:12px;padding-top:10px;border-top:1px solid #493747}
.game-upgrade p,.game-shop p{font-size:.76rem;color:#c6b6c3;margin:4px 0 8px}
.game-upgrade>button{width:100%;margin-bottom:8px;background:#49223b}
.game-upgrade label{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:.76rem;color:#ddd}
.game-upgrade select{max-width:135px;padding:5px;border:1px solid #ff1493;border-radius:6px;background:#1b111c;color:#fff}
.game-shop{position:absolute;z-index:5;inset:7px;background:#100b13;border:2px solid #ff1493;border-radius:12px;padding:12px;box-shadow:0 0 0 999px rgba(0,0,0,.68),0 0 24px #ff1493;overflow:auto;max-height:calc(100% - 14px)}
.game-shop[hidden]{display:none}
.game-shop-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.game-shop-head h2{font-size:1.15rem;margin:0}
.game-shop-head button{font-size:1.2rem;padding:3px 9px}
.shop-item{display:grid;grid-template-columns:40px 1fr;gap:6px;align-items:center;margin-top:8px;padding:8px;border:1px solid #3c2b3c;border-radius:9px;background:#1c131d}
.shop-item .shop-icon{font-size:1.6rem;grid-row:span 2}
.shop-item strong{display:block;font-size:.76rem;color:#fff}
.shop-item small{display:block;font-size:.65rem;color:#bdabb8}
.shop-item button{grid-column:2;padding:6px 8px;font-size:.7rem}
.shop-item button:disabled{opacity:.6;cursor:default}
@media(max-width:850px){.game-layout{grid-template-columns:minmax(0,1fr) 220px}.game-side{padding:9px}.game-tool{min-height:72px!important}}
@media(max-width:640px){.game-shell{padding:10px}.game-layout{grid-template-columns:1fr}.game-side{order:2}.game-head{align-items:flex-start}.game-score{min-width:96px;padding:6px 8px}.game-score strong{font-size:1.45rem}#game-stage{height:min(58vh,560px);min-height:300px}.game-inventory{grid-template-columns:repeat(3,minmax(0,1fr))}.game-tool{min-height:66px!important}.game-toolbar{gap:5px}.game-toolbar button{font-size:.72rem;padding:7px 8px}}
@media(prefers-reduced-motion:reduce){.game-reward,#game-toast{transition:none}}
