*{box-sizing:border-box;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}html,body{margin:0;padding:0;width:100%;height:100%;min-height:100dvh;min-height:-webkit-fill-available;overflow:hidden;overscroll-behavior:none;position:fixed;font-family:Fredoka,Nunito,"Rounded Mplus 1c",system-ui,-apple-system,sans-serif;background:#74c7ff;touch-action:none}#game-container{position:fixed;top:0;left:0;right:0;bottom:0;width:100vw;height:100dvh;overflow:hidden}#game-container canvas{display:block;width:100%!important;height:100%!important}#hud-top{position:fixed;top:max(12px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none;z-index:10;gap:10px}.hud-left,.hud-right{display:flex;flex-wrap:wrap;gap:8px;pointer-events:auto}.pill{background:#ffffffeb;border:3px solid #222;border-radius:999px;padding:8px 16px;font-size:18px;font-weight:800;color:#222;box-shadow:0 4px #00000040}.star-pill{background:#fff6cc;border-color:#f39c12;color:#b76800}.checkpoint-pill{background:#e8f8ff;border-color:#2980b9;color:#1b4f72}.monster-pill{background:#f5e6ff;border-color:#8e44ad;color:#5b2c6f}.hearts-pill{background:#fff0f3;border-color:#ff2e63;letter-spacing:2px;font-size:19px}.gun-pill{background:#e3f2fd;border-color:#0984e3;color:#0652dd;cursor:pointer}.coop-pill{background:#e6ffed;border-color:#2ecc71;color:#146c38}.epic-boss-hud{position:fixed;top:72px;left:50%;transform:translate(-50%);background:#19102aeb;border:4px solid #ffd700;border-radius:20px;padding:10px 20px;min-width:310px;max-width:90vw;text-align:center;z-index:18;pointer-events:none;box-shadow:0 8px 20px #00000073}.epic-boss-title{color:gold;font-size:18px;font-weight:900;letter-spacing:.5px;margin-bottom:4px}.epic-boss-hearts{color:#ff4757;font-size:16px;font-weight:800;margin-bottom:6px}.epic-bar-track{width:100%;height:14px;background:#3d3d5c;border-radius:999px;overflow:hidden;border:2px solid #fff}.epic-bar-fill{height:100%;width:100%;background:linear-gradient(90deg,#ff2e63,#ff9f43);transition:width .15s ease}.icon-btn{border:3px solid #222;border-radius:16px;padding:9px 15px;font-size:16px;font-weight:800;cursor:pointer;box-shadow:0 4px #00000040;transition:transform .08s ease;color:#fff}.icon-btn:active{transform:translateY(3px);box-shadow:0 1px #00000040}.btn-cheer-top{background:#ff6b81}.btn-sky{background:#f39c12}.btn-player{background:#1e90ff}.btn-photos{background:#ff5e7e}.btn-hats{background:#9b59b6}.btn-sound{background:#3498db}#minimap-wrap{position:fixed;top:72px;right:14px;z-index:12;display:flex;flex-direction:column;align-items:center;gap:4px}#minimap{width:132px;height:132px;border-radius:16px;border:3px solid #222;box-shadow:0 5px #00000047;cursor:pointer;transition:width .2s ease,height .2s ease}#minimap.expanded{width:240px;height:240px}.minimap-legend{display:flex;gap:6px;background:#ffffffe6;border:2px solid #222;border-radius:999px;padding:2px 8px;font-size:11px;font-weight:800;color:#222}.minimap-legend span{display:inline-flex;align-items:center;gap:3px}.minimap-legend i{display:inline-block;width:8px;height:8px;border-radius:50%}.toast{position:fixed;top:78px;left:50%;transform:translate(-50%);background:#ffe047;border:3px solid #222;border-radius:999px;padding:10px 22px;font-size:20px;font-weight:900;color:#222;box-shadow:0 5px #00000040;z-index:20;pointer-events:none;animation:popIn .22s ease}@keyframes popIn{0%{transform:translate(-50%) scale(.7);opacity:0}to{transform:translate(-50%) scale(1);opacity:1}}.hidden{display:none!important}#controls-layer{position:fixed;bottom:max(16px,env(safe-area-inset-bottom));left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right));display:flex;justify-content:space-between;align-items:flex-end;pointer-events:none;z-index:15}#joystick-zone{width:140px;height:140px;display:flex;align-items:center;justify-content:center;pointer-events:auto;touch-action:none}#joystick-base{width:118px;height:118px;border-radius:50%;background:#ffffff57;border:4px solid rgba(255,255,255,.8);position:relative;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 14px #0000002e}#joystick-knob{width:54px;height:54px;border-radius:50%;background:#fff;border:3px solid #222;box-shadow:0 4px #00000040;transform:translate(0);pointer-events:none}#action-buttons{display:flex;flex-direction:row;gap:12px;align-items:flex-end;pointer-events:auto}#context-bar{position:fixed;bottom:100px;left:50%;transform:translate(-50%);display:flex;gap:8px;z-index:16;pointer-events:none}.context-pill{pointer-events:auto;border:3px solid #222;border-radius:999px;padding:8px 18px;font-size:16px;font-weight:900;color:#fff;cursor:pointer;box-shadow:0 5px #00000047;touch-action:manipulation;animation:popIn .18s ease}.moto-pill{background:#e74c3c}.moto-pill.riding{background:#f39c12;color:#222}.drop-pill{background:#576574}.action-btn{border:3px solid #222;border-radius:50%;font-size:28px;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 5px #00000047;transition:transform .08s ease;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.action-btn:active{transform:translateY(4px);box-shadow:0 2px #00000047}.jump-btn{width:88px;height:88px;background:#2ecc71}.cheer-btn{width:66px;height:66px;background:#ff6b81;font-size:28px}.blast-btn{width:82px;height:82px;background:#ff7f11;font-size:34px}.switch-btn{width:58px;height:58px;background:#0984e3;font-size:24px}.grenade-btn{width:68px;height:68px;background:#27ae60;font-size:30px}.drop-btn{width:54px;height:54px;background:#7f8c8d;font-size:22px}.moto-btn{width:64px;height:64px;background:#e74c3c;font-size:28px}.moto-btn.riding{background:#ffd32a}#gun-hotbar{position:fixed;bottom:34px;left:50%;transform:translate(-50%);display:flex;gap:6px;z-index:12;pointer-events:auto}.hotbar-slot{width:56px;height:56px;background:#ffffffe0;border:3px solid #222;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;position:relative;box-shadow:0 4px #00000038;font-size:24px}.hotbar-slot.active{background:#fff3b0;border-color:#f39c12;transform:translateY(-4px)}.hotbar-slot.empty{opacity:.45;cursor:default;font-size:16px;color:#666}.hotbar-num{position:absolute;top:2px;left:5px;font-size:10px;font-weight:900;color:#444}@media(max-width:900px){.desktop-only{display:none!important}.pill{font-size:13px;padding:5px 10px;border-width:2px}.hearts-pill{font-size:14px;letter-spacing:1px}.icon-btn{font-size:16px;padding:6px 10px;border-width:2px;border-radius:12px}#minimap-wrap{top:max(54px,calc(env(safe-area-inset-top) + 42px));right:max(10px,env(safe-area-inset-right))}#minimap{width:88px;height:88px;border-radius:12px;border-width:2px}#minimap.expanded{width:196px;height:196px}.minimap-legend{display:none}#joystick-zone{width:108px;height:108px}#joystick-base{width:92px;height:92px}#joystick-knob{width:42px;height:42px}#action-buttons{gap:8px}.jump-btn{width:68px;height:68px;font-size:26px}.blast-btn{width:64px;height:64px;font-size:26px}.grenade-btn{width:52px;height:52px;font-size:22px}#gun-hotbar{bottom:max(10px,env(safe-area-inset-bottom));gap:4px}.hotbar-slot{width:38px;height:38px;font-size:17px;border-radius:10px;border-width:2px}#context-bar{bottom:max(60px,calc(env(safe-area-inset-bottom) + 54px))}.context-pill{font-size:14px;padding:6px 14px}}#keyboard-hint{position:fixed;bottom:8px;left:50%;transform:translate(-50%);background:#0000006b;color:#fff;padding:5px 14px;border-radius:999px;font-size:13px;font-weight:600;pointer-events:none;z-index:5;white-space:nowrap}@media(max-width:768px){#keyboard-hint{display:none}.pill{font-size:15px;padding:6px 12px}.icon-btn{font-size:14px;padding:7px 11px}}@media(pointer:coarse){#keyboard-hint{display:none!important}}@media(min-width:769px)and (max-width:1200px)and (pointer:coarse){#joystick-zone{width:132px;height:132px}#joystick-base{width:112px;height:112px}#joystick-knob{width:50px;height:50px}.jump-btn{width:82px;height:82px;font-size:30px}.blast-btn{width:76px;height:76px;font-size:30px}.grenade-btn{width:62px;height:62px;font-size:26px}#minimap{width:112px;height:112px}#minimap.expanded{width:224px;height:224px}#gun-hotbar{bottom:max(16px,env(safe-area-inset-bottom))}#context-bar{bottom:max(84px,calc(env(safe-area-inset-bottom) + 74px))}}.player-select-card{max-width:560px}.player-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:16px}.player-card{border:4px solid #222;border-radius:22px;padding:18px 12px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:8px;box-shadow:0 6px #00000038;transition:transform .1s ease;touch-action:manipulation}.player-card:active{transform:translateY(4px);box-shadow:0 2px #00000038}.player-card-fares{background:linear-gradient(180deg,#e8f4ff,#cfe9ff);border-color:#1e90ff}.player-card-baba{background:linear-gradient(180deg,#fff5e6,#ffe0b2);border-color:#e67e22}.player-card.active-role{outline:4px solid #2ecc71;outline-offset:2px}.player-avatar{width:92px;height:92px;border-radius:20px;border:3px solid #222;background:#ffeaa7;background-size:cover;background-position:center;display:flex;align-items:center;justify-content:center;font-size:46px}.player-name{font-size:24px;font-weight:900;color:#222}.player-desc{font-size:13px;font-weight:700;color:#444;line-height:1.3}@media(max-width:500px){.player-avatar{width:72px;height:72px;font-size:36px}.player-name{font-size:20px}}.modal,.victory-banner{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000085;display:flex;align-items:center;justify-content:center;z-index:30;padding:16px}.modal-card,.victory-card{background:#fff;border:4px solid #222;border-radius:26px;padding:24px;max-width:520px;width:100%;text-align:center;box-shadow:0 10px #00000040}.modal-card h2,.victory-card h1{margin:0 0 8px;font-size:26px;color:#222}.modal-sub{margin:0 0 18px;color:#555;font-size:15px}.photo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:12px;margin-bottom:16px}.photo-slot{background:#f6f9fc;border:3px solid #dce4ec;border-radius:18px;padding:14px 10px;display:flex;flex-direction:column;align-items:center;gap:10px}.photo-preview{width:96px;height:96px;border-radius:16px;border:3px solid #222;background:#ffeaa7;display:flex;align-items:center;justify-content:center;font-size:46px;overflow:hidden;background-size:cover;background-position:center}.upload-btn{display:inline-block;background:#1e90ff;color:#fff;font-weight:800;font-size:14px;padding:8px 14px;border-radius:12px;border:2px solid #222;cursor:pointer;box-shadow:0 3px #0003}.upload-btn-green{background:#2ecc71}.upload-btn-gold{background:#e67e22}.upload-btn-pink{background:#ff6b81}.pixel-toggle{display:inline-flex;align-items:center;gap:8px;font-weight:700;font-size:16px;margin-bottom:18px;cursor:pointer}.pixel-toggle input{width:20px;height:20px}.hat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;margin-bottom:18px}.hat-card{border:3px solid #222;border-radius:16px;padding:12px 8px;background:#f8f9fa;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;font-weight:800;box-shadow:0 4px #0000002e}.hat-card.selected{background:#fff3b0;border-color:#f39c12}.hat-card.locked{opacity:.6;cursor:not-allowed}.hat-emoji{font-size:32px}.hat-cost{font-size:13px;color:#b76800}.modal-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.primary-btn,.secondary-btn{border:3px solid #222;border-radius:14px;padding:10px 24px;font-size:17px;font-weight:800;cursor:pointer;box-shadow:0 4px #00000038}.primary-btn{background:#2ecc71;color:#fff}.secondary-btn{background:#ecf0f1;color:#222}
