:root{--bg-color:#141715;--surface-color:#1b211d;--surface-card:#1c221e;--surface-border:#2c362f;--surface-border-bright:#3e4c42;--primary-green:#2bd88e;--primary-glow:#2bd88e66;--accent-green:#18f2b2;--gold-color:gold;--danger-color:#ff1744;--fire-color:#ff3d00;--fire-glow:#ff3d0080;--text-main:#f0f0f0;--text-muted:#9aa19c;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}*{box-sizing:border-box;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;margin:0;padding:0}html,body{overscroll-behavior:none;background-color:var(--bg-color);width:100%;height:100dvh;max-height:100dvh;color:var(--text-main);overflow:hidden}body{justify-content:center;align-items:center;display:flex}#app{flex-direction:column;width:100%;min-width:0;max-width:min(100vw,480px);height:100dvh;display:flex;position:relative;overflow:hidden}.lobby-view{width:100%;height:100%;padding:max(8px, env(safe-area-inset-top)) 12px max(8px, env(safe-area-inset-bottom)) 12px;background:radial-gradient(circle at top,#1e2821 0%,#141715 70%);flex-direction:column;justify-content:space-between;display:flex}.lobby-header{border-bottom:1px solid var(--surface-border);flex-shrink:0;justify-content:space-between;align-items:center;width:100%;padding:8px 4px 12px;display:flex}.lobby-brand{color:inherit;cursor:pointer;-webkit-tap-highlight-color:#2bd88e33;align-items:center;gap:10px;text-decoration:none;transition:opacity .2s,transform .15s;display:flex}.lobby-brand:hover{opacity:.88;transform:translateY(-1px)}.lobby-brand:active{transform:scale(.97)}.brand-text-col{flex-direction:column;display:flex}.brand-badge{color:var(--primary-green);letter-spacing:1px;font-size:.6rem;font-weight:800}.lobby-header-right{flex-shrink:0;align-items:center;gap:8px;display:flex}.btn-back-website{background:var(--surface-card);border:1px solid var(--surface-border);color:var(--text-muted);white-space:nowrap;border-radius:8px;align-items:center;gap:4px;padding:5px 8px;font-size:.72rem;font-weight:700;text-decoration:none;transition:all .2s;display:inline-flex}.btn-back-website:hover{border-color:var(--primary-green);color:var(--accent-green);background:#2bd88e1f}.btn-back-website svg{flex-shrink:0}@media (width<=380px){.btn-back-website span{display:none}.btn-back-website{padding:5px 6px}}.lobby-user-stats{border:1px solid var(--surface-border);background:#1c221ebf;border-radius:8px;flex-direction:column;align-items:flex-end;padding:4px 8px;display:flex}.lobby-stat-label{color:var(--text-muted);font-size:.58rem;font-weight:700}.lobby-stat-val{color:var(--gold-color);font-family:monospace;font-size:1rem;font-weight:900}.lobby-scroll-content{-webkit-overflow-scrolling:touch;flex-direction:column;flex:1;gap:16px;min-height:0;padding:12px 2px;display:flex;overflow:hidden auto}.lobby-scroll-content::-webkit-scrollbar{width:4px}.lobby-scroll-content::-webkit-scrollbar-thumb{background:var(--surface-border);border-radius:4px}.lobby-hero-card{border:1px solid #2bd88e59;border-radius:16px;flex-shrink:0;width:100%;position:relative;overflow:hidden;box-shadow:0 8px 24px #2bd88e26}.hero-bg-wrapper{z-index:1;width:100%;height:100%;position:absolute;top:0;left:0}.hero-bg-img{object-fit:cover;filter:brightness(.4)saturate(1.2);width:100%;height:100%}.hero-overlay{background:linear-gradient(#14171533 0%,#141715f2 100%);width:100%;height:100%;position:absolute;top:0;left:0}.hero-content{z-index:2;flex-direction:column;gap:8px;padding:20px 16px 16px;display:flex;position:relative}.hero-pill{border:1px solid var(--fire-color);color:#ffab91;letter-spacing:.5px;background:#ff3d0040;border-radius:20px;align-items:center;gap:4px;width:fit-content;padding:3px 8px;font-size:.65rem;font-weight:900;display:inline-flex}.hero-pill svg{width:14px;height:14px}.hero-title{color:#fff;letter-spacing:1px;font-size:1.6rem;font-weight:900}.hero-desc{color:#cbd5e1;font-size:.8rem;line-height:1.4}.btn-hero-cta{background:var(--accent-green);color:#08110b;cursor:pointer;border:none;border-radius:10px;justify-content:center;align-items:center;gap:8px;margin-top:6px;padding:12px;font-size:.95rem;font-weight:900;transition:transform .1s,filter .15s;display:flex;box-shadow:0 4px 16px #18f2b259}.btn-hero-cta:active{transform:scale(.96)}.lobby-section-header{justify-content:space-between;align-items:center;padding:0 4px;display:flex}.section-title{color:var(--text-main);letter-spacing:.5px;font-size:.88rem;font-weight:800}.section-count{color:var(--text-muted);font-size:.72rem}.lobby-games-grid{flex-direction:column;gap:12px;padding-bottom:16px;display:flex}.game-card{background:var(--surface-card);border:1px solid var(--surface-border);cursor:pointer;border-radius:14px;flex-direction:column;gap:10px;padding:14px;transition:all .2s;display:flex}.game-card:hover{border-color:#2bd88e73}.game-card:active{transform:scale(.98)}.game-card.coming-soon{opacity:.85}.game-card-header{justify-content:space-between;align-items:center;display:flex}.game-card-icon{object-fit:cover;background:var(--bg-color);border:1px solid var(--surface-border);border-radius:10px;width:44px;height:44px;padding:2px}.game-card-badge{border-radius:6px;padding:2px 8px;font-size:.65rem;font-weight:900}.game-card-badge.hot{color:var(--primary-green);border:1px solid var(--primary-green);background:#2bd88e26}.game-card-badge.coming_soon{color:var(--text-muted);border:1px solid var(--surface-border-bright);background:#9aa19c1f}.game-card-title{color:#fff;font-size:1.15rem;font-weight:800}.game-card-subtitle{color:var(--primary-green);margin-top:-4px;font-size:.75rem;font-weight:600}.game-card-desc{color:var(--text-muted);font-size:.78rem;line-height:1.35}.game-card-tags{flex-wrap:wrap;gap:6px;display:flex}.game-tag{color:var(--text-muted);background:var(--bg-color);border-radius:4px;padding:2px 6px;font-size:.65rem}.game-card-footer{margin-top:4px}.btn-card-action{cursor:pointer;border:none;border-radius:8px;justify-content:center;align-items:center;gap:6px;width:100%;padding:9px;font-size:.85rem;font-weight:800;display:flex}.btn-card-action.btn-play{color:var(--primary-green);border:1px solid var(--primary-green);background:#2bd88e26}.btn-card-action.btn-soon{background:var(--surface-border);color:var(--text-muted);border:1px solid var(--surface-border-bright)}.lobby-bottom-bar{background:var(--surface-color);border:1px solid var(--surface-border);border-radius:16px;flex-shrink:0;justify-content:space-around;align-items:center;padding:8px 6px;display:flex}.lobby-tab-btn{color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:8px;flex-direction:column;align-items:center;gap:4px;padding:4px 16px;font-size:.68rem;font-weight:700;transition:all .15s;display:flex}.lobby-tab-btn svg{width:20px;height:20px}.lobby-tab-btn.active{color:var(--primary-green)}.lobby-tab-btn.active svg{filter:drop-shadow(0 0 8px var(--primary-glow))}.lobby-tab-btn:active{transform:scale(.92)}.lobby-info-modal p{color:#cbd5e1;text-align:left;font-size:.88rem;line-height:1.5}.game-view{width:100%;max-width:100%;height:100dvh;padding:max(8px, env(safe-area-inset-top)) 10px max(8px, env(safe-area-inset-bottom)) 10px;touch-action:none;flex-direction:column;justify-content:space-between;gap:8px;display:flex;overflow:hidden}.arcade-header{background:var(--surface-color);border:1px solid var(--surface-border);border-radius:12px;flex-wrap:nowrap;flex-shrink:0;justify-content:space-between;align-items:center;gap:6px;width:100%;padding:6px 10px;display:flex;overflow:hidden;box-shadow:0 4px 16px #00000080}.brand-section{flex-shrink:0;align-items:center;gap:6px;display:flex}.brand-meta-col{flex-direction:column;justify-content:center;align-items:flex-start;gap:2px;min-width:0;line-height:1.1;display:flex}.brand-logo{object-fit:contain;width:26px;height:26px}.brand-title{letter-spacing:.5px;color:var(--primary-green);text-shadow:0 0 8px var(--primary-glow);white-space:nowrap;font-size:.82rem;font-weight:900;line-height:1}.hud-stats{align-items:center;gap:8px;display:flex}.stat-item{flex-direction:column;align-items:center;display:flex}.stat-label{color:var(--text-muted);letter-spacing:.5px;font-size:.55rem;font-weight:700}.stat-value{color:#fff;font-family:monospace;font-size:1.05rem;font-weight:900;line-height:1.2}.stat-value.score{color:var(--primary-green);text-shadow:0 0 8px var(--primary-glow)}.stat-value.high-score{color:var(--gold-color)}@media (width<=360px){.stat-item.length-stat{display:none}}.hud-actions{flex-shrink:0;align-items:center;gap:6px;display:flex}.icon-btn{background:var(--surface-card);border:1px solid var(--surface-border);color:#fff;cursor:pointer;touch-action:manipulation;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:34px;height:34px;font-size:.95rem;transition:all .15s;display:flex}.icon-btn:active{background:var(--surface-border);transform:scale(.92)}.icon-btn.back-btn{border-color:var(--surface-border-bright);background:#1c221ecc}.icon-btn.back-btn:hover{border-color:var(--primary-green)}.icon-btn.lang-btn{letter-spacing:-.5px;color:var(--accent-green);background:#2bd88e1a;border-color:#2bd88e59;flex-shrink:0;width:34px;height:34px;padding:0;font-family:inherit;font-size:.72rem;font-weight:800}.icon-btn.lang-btn .svg-globe{width:19px;height:19px;stroke:var(--accent-green);transition:transform .25s,filter .2s}.icon-btn.lang-btn:hover .svg-globe{filter:drop-shadow(0 0 6px var(--primary-green));transform:rotate(20deg)scale(1.08)}.icon-btn.lang-btn:hover{border-color:var(--primary-green);box-shadow:0 0 8px var(--primary-glow);background:#2bd88e33}.svg-icon{transition:transform .15s,filter .15s;display:block}.icon-btn:hover .svg-icon,.icon-btn:active .svg-icon{filter:drop-shadow(0 0 6px var(--primary-green))}.icon-btn .svg-muted{color:#64748b}.turbo-boost-btn .svg-flame{filter:drop-shadow(0 0 10px #ff3d00b3);animation:1.8s ease-in-out infinite alternate flamePulse;display:block}@keyframes flamePulse{0%{filter:drop-shadow(0 0 6px #ff3d0080);transform:scale(.96)}to{filter:drop-shadow(0 0 14px #ff9100e6);transform:scale(1.06)}}body.is-pseudo-fullscreen{z-index:99999!important;background:#000!important;width:100vw!important;height:100dvh!important;position:fixed!important;inset:0!important;overflow:hidden!important}body.is-pseudo-fullscreen #app{width:100vw!important;max-width:none!important;height:100dvh!important;margin:0!important;padding:0!important}body.is-pseudo-fullscreen .game-view{padding:max(4px, env(safe-area-inset-top)) 6px max(4px, env(safe-area-inset-bottom)) 6px!important;height:100dvh!important}.canvas-container{flex:1;justify-content:center;align-items:center;width:100%;min-width:0;max-width:100%;min-height:0;display:flex;overflow:hidden}.canvas-wrapper{aspect-ratio:1;touch-action:none;background:#0f1310;border:1.5px solid #2bd88e40;border-radius:14px;width:100%;min-width:0;max-width:min(100%,440px);min-height:0;max-height:100%;position:relative;overflow:hidden;box-shadow:0 8px 30px #000000b3}.canvas-wrapper.survivor-wrapper{aspect-ratio:auto;border:1.5px solid #00e67659;border-radius:12px;width:100%;max-width:500px;height:100%;max-height:100%;position:relative;overflow:hidden;box-shadow:0 4px 24px #00e67626}.canvas-wrapper.moonrun-wrapper{aspect-ratio:440/560;max-width:min(100%,440px);max-height:min(100%,100dvh - 170px)}#game-canvas,#survivor-canvas,#moonrun-canvas{touch-action:none;width:100%;height:100%;display:block}.mobile-control-deck{flex-shrink:0;justify-content:space-between;align-items:center;width:100%;padding:4px 8px 8px;transition:opacity .2s,transform .2s;display:flex}.mobile-control-deck.deck-hidden{opacity:.15;pointer-events:none}.dpad-cross-container{flex-direction:column;justify-content:center;align-items:center;width:146px;height:146px;display:flex;position:relative}.dpad-cross-btn{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid var(--surface-border);color:#fff;cursor:pointer;touch-action:none;background:#1c221ed9;justify-content:center;align-items:center;width:48px;height:48px;font-size:1.25rem;transition:background .1s,transform 80ms;display:flex}.dpad-cross-btn:active,.dpad-cross-btn.active{background:var(--primary-green);color:#000;box-shadow:0 0 16px var(--primary-glow);transform:scale(.92)}.dpad-up{border-radius:12px 12px 4px 4px}.dpad-down{border-radius:4px 4px 12px 12px}.dpad-middle-row{justify-content:center;align-items:center;width:100%;display:flex}.dpad-left{border-radius:12px 4px 4px 12px}.dpad-right{border-radius:4px 12px 12px 4px}.dpad-center-core{border:1px solid var(--surface-border);background:#141715f2;justify-content:center;align-items:center;width:48px;height:48px;display:flex}.turbo-btn-container{justify-content:center;align-items:center;padding-right:12px;display:flex}.turbo-boost-btn{border:2px solid var(--fire-color);width:90px;height:90px;box-shadow:0 0 16px var(--fire-glow);color:#fff;cursor:pointer;touch-action:none;background:radial-gradient(circle,#ff3d0059 0%,#1c221ef2 100%);border-radius:50%;flex-direction:column;justify-content:center;align-items:center;transition:transform 80ms,filter .15s;display:flex}.turbo-boost-btn:active,.turbo-boost-btn.active{background:var(--fire-color);transform:scale(.92);box-shadow:0 0 28px #ff3d00cc}.boost-text{letter-spacing:1px;color:#ffab91;margin-top:2px;font-size:.72rem;font-weight:900}.desktop-instructions{text-align:center;width:100%;color:var(--text-muted);justify-content:center;gap:12px;padding-bottom:4px;font-size:.75rem;display:none}.key-badge{background:var(--surface-card);color:#fff;border:1px solid var(--surface-border);border-radius:4px;padding:1px 5px;font-family:monospace;font-size:.7rem}@media (width>=769px){.desktop-instructions{display:flex}}.modal-overlay{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);opacity:0;pointer-events:none;z-index:50;background:#0e110fe0;justify-content:center;align-items:center;width:100%;height:100%;padding:16px;transition:opacity .25s;display:flex;position:absolute;top:0;left:0}.modal-overlay.active{opacity:1;pointer-events:auto}.game-modal{background:var(--surface-color);text-align:center;border:1px solid #2bd88e66;border-radius:16px;flex-direction:column;gap:12px;width:100%;max-width:360px;max-height:96%;padding:20px 16px;display:flex;overflow-y:auto;box-shadow:0 12px 35px #0009}.modal-title{color:var(--danger-color);letter-spacing:1px;font-size:1.6rem;font-weight:900}.modal-title.new-record{color:var(--gold-color);text-shadow:0 0 12px #ffd70099}.modal-stats-grid{background:var(--bg-color);border:1px solid var(--surface-border);border-radius:10px;grid-template-columns:1fr 1fr;gap:8px;padding:12px;display:grid}.modal-stat-box{flex-direction:column;display:flex}.modal-stat-label{color:var(--text-muted);white-space:nowrap;text-overflow:ellipsis;max-width:100%;font-size:.7rem;overflow:hidden}.modal-stat-val{font-family:monospace;font-size:1.3rem;font-weight:900}.modal-stat-val.primary{color:var(--primary-green)}.modal-actions{flex-direction:column;gap:8px;display:flex}.btn-primary{background:var(--accent-green);color:#08110b;cursor:pointer;touch-action:manipulation;border:none;border-radius:10px;justify-content:center;align-items:center;gap:8px;padding:12px;font-size:1.05rem;font-weight:900;transition:transform .1s;display:flex}.btn-primary:active{transform:scale(.96)}.btn-secondary{background:var(--surface-card);color:#fff;border:1px solid var(--surface-border);cursor:pointer;touch-action:manipulation;border-radius:8px;justify-content:center;align-items:center;gap:6px;padding:9px;font-size:.85rem;font-weight:700;display:flex}.btn-secondary:active{background:var(--surface-border);transform:scale(.96)}.share-row{gap:8px;display:flex}.share-row .btn-secondary{flex:1}.victory-modal{background:radial-gradient(circle at 50% 10%,#231c0cfa,#0c1016fa);border:2px solid gold;max-width:400px;box-shadow:0 0 40px #ffd70073,inset 0 0 20px #ffd70026}.victory-crown-badge{filter:drop-shadow(0 0 16px #ffd700b3);margin-top:-6px;font-size:2.8rem;line-height:1;animation:2.4s ease-in-out infinite victoryCrownFloat}@keyframes victoryCrownFloat{0%,to{transform:translateY(0)scale(1)}50%{transform:translateY(-6px)scale(1.08)}}.victory-title{color:gold;text-shadow:0 0 16px #ffd700cc,0 0 32px #ff910080;letter-spacing:1.5px;margin:0;font-size:1.5rem}.victory-story-box{text-align:left;background:#ffd70014;border:1px solid #ffd70059;border-radius:12px;flex-direction:column;gap:8px;padding:12px 14px;display:flex}.story-badge{color:gold;letter-spacing:.5px;background:#ffd70033;border-radius:6px;align-self:flex-start;padding:2px 8px;font-size:.75rem;font-weight:800;display:inline-block}.story-desc{color:#f0f6fc;margin:0;font-size:.82rem;font-weight:500;line-height:1.55}.victory-share-btn{color:#0b0f14;background:linear-gradient(135deg,gold,#ff9100);border:none;font-weight:900;box-shadow:0 4px 18px #ffd70066}.victory-share-btn:hover{filter:brightness(1.1)}.survivor-hud-center{flex-direction:column;flex:1;gap:4px;min-width:60px;max-width:105px;margin:0 4px;display:flex}.bar-row{align-items:center;gap:6px;display:flex}.bar-tag{border-radius:3px;padding:1px 4px;font-size:.55rem;font-weight:900;line-height:1}.stage-pill{color:gold;letter-spacing:.5px;white-space:nowrap;background:#ffd70026;border:1px solid #ffd70066;border-radius:4px;padding:1px 5px;font-size:.52rem;font-weight:900}.bar-tag.hp-tag{color:#fff;background:#ff1744}.bar-tag.exp-tag{background:var(--primary-green);color:#000}.bar-tag.fever-tag{color:#000;background:#ff9100}.bar-tag.fever-tag.fever-active{color:#000;background:gold;animation:.5s infinite alternate fever-tag-pulse}@keyframes fever-tag-pulse{0%{transform:scale(1);box-shadow:0 0 4px #ff6d00}to{transform:scale(1.06);box-shadow:0 0 10px #ffea00}}.progress-track{background:var(--surface-card);border-radius:4px;flex:1;height:6px;overflow:hidden}.progress-fill{height:100%;transition:width .15s}.progress-fill.hp-fill{background:linear-gradient(90deg,#ff1744,#ff5252)}.progress-fill.exp-fill{background:linear-gradient(90deg,#18f2b2,#5be399)}.progress-fill.fever-fill{background:linear-gradient(90deg,#ff9100,#ffea00)}.progress-fill.fever-fill.fever-burning{background:linear-gradient(90deg,#ff3d00,gold,#fff);animation:.4s infinite alternate fever-fire}@keyframes fever-fire{0%{filter:brightness()}to{filter:brightness(1.3)}}.macro-event-banner{z-index:20;pointer-events:none;-webkit-backdrop-filter:blur(8px);background:#141715f0;border:1.5px solid #ff1744;border-radius:8px;align-items:center;gap:8px;padding:5px 10px;transition:all .35s cubic-bezier(.16,1,.3,1);animation:.3s cubic-bezier(.16,1,.3,1) macroSlideDown;display:flex;position:absolute;top:8px;left:8px;right:8px;box-shadow:0 4px 20px #0009}.macro-event-banner.banner-intro{animation:.3s cubic-bezier(.16,1,.3,1) macroSlideDown}.macro-event-banner.banner-collapsed{border-width:1px;border-radius:13px;gap:6px;max-width:210px;height:26px;padding:2px 8px;animation:.35s cubic-bezier(.16,1,.3,1) macroCollapse;top:8px;left:auto;right:8px;box-shadow:0 2px 12px #00000073}@keyframes macroCollapse{0%{opacity:.85;transform:scale(1.08)}to{opacity:1;transform:scale(1)}}.macro-banner-icon.mini{border-radius:4px;width:18px;height:18px}.macro-name.mini{white-space:nowrap;text-overflow:ellipsis;max-width:110px;font-size:.68rem;font-weight:700;overflow:hidden}.macro-timer-pill.mini{border-radius:6px;padding:1px 5px;font-size:.6rem}@keyframes macroSlideDown{0%{opacity:0;transform:translateY(-24px)}to{opacity:1;transform:translateY(0)}}.macro-banner-icon{background:#0000004d;border:1px solid #ffffff26;border-radius:7px;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;display:flex}.macro-banner-content{flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.macro-banner-row{align-items:center;gap:6px;display:flex}.macro-pill{letter-spacing:.5px;text-transform:uppercase;color:#fff;background:#ffffff38;border-radius:4px;padding:1px 6px;font-size:.58rem;font-weight:900}.macro-name{color:#fff;font-size:.8rem;font-weight:800}.macro-timer-pill{color:#ffeb3b;font-variant-numeric:tabular-nums;background:#00000073;border:1px solid #ffeb3b59;border-radius:10px;margin-left:auto;padding:1px 6px;font-size:.7rem;font-weight:850}.macro-headline{color:#fff;text-shadow:0 1px 2px #000c;font-size:.73rem;font-weight:700;line-height:1.2}#levelup-modal{padding:12px 10px}.upgrade-modal{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);scrollbar-width:none;-ms-overflow-style:none;text-align:center;background:#0e1420f5;border:1.5px solid #00e67680;border-radius:14px;gap:4px;width:95%;max-width:440px;max-height:96%;padding:12px 14px;overflow:hidden auto;box-shadow:0 16px 50px #000000e6,0 0 30px #00e67640}.upgrade-modal::-webkit-scrollbar{display:none}.upgrade-header-pill{color:#00e676;letter-spacing:.5px;background:#00e67626;border:1px solid #00e67699;border-radius:12px;margin:0 auto;padding:2px 10px;font-size:.78rem;font-weight:900;line-height:1.3;display:inline-block}.upgrade-modal-title{color:#fff;letter-spacing:.8px;margin:2px 0 6px;font-size:1.32rem;font-weight:900;line-height:1.25}.upgrade-cards-list{flex-direction:column;gap:10px;margin-top:6px;display:flex}.upgrade-card-btn{text-align:left;cursor:pointer;background:linear-gradient(135deg,#141c2cf2 0%,#0c121ef2 100%);border:1.5px solid #00e67659;border-radius:12px;align-items:center;gap:12px;padding:10px 14px;transition:all .18s;display:flex;box-shadow:0 4px 14px #00000080}.upgrade-card-btn:hover,.upgrade-card-btn:active{background:linear-gradient(135deg,#1e2c42fa 0%,#101a2afa 100%);border-color:#00e676;transform:translateY(-1px)scale(1.01);box-shadow:0 6px 20px #00e67659}.upgrade-card-icon-col{background:#00e6761f;border:1.5px solid #00e67666;border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:48px;height:48px;display:flex}.upgrade-card-icon-col svg{width:32px;height:32px}.upgrade-card-info{flex:1;min-width:0}.upgrade-card-head{justify-content:space-between;align-items:center;gap:6px;min-width:0;line-height:1.25;display:flex}.upgrade-title{color:#fff;letter-spacing:.3px;white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;font-size:1.15rem;font-weight:900;overflow:hidden}.upgrade-badge,.upgrade-cat{white-space:nowrap;border-radius:5px;flex-shrink:0;padding:2px 7px;font-size:.72rem;font-weight:800}.upgrade-badge.weapon,.upgrade-cat.weapon{color:#ff8a65;background:#ff3d0040;border:1px solid #ff572280}.upgrade-badge.stats,.upgrade-cat.stats{color:#80d8ff;background:#00b0ff40;border:1px solid #00b0ff80}.upgrade-badge.special,.upgrade-cat.special{color:gold;background:#ffd70040;border:1px solid #ffd70080}.upgrade-desc{color:#cbd5e1;margin-top:3px;font-size:.94rem;font-weight:600;line-height:1.42}.survivor-joystick-overlay{pointer-events:none;z-index:10;opacity:.32;flex-direction:column;justify-content:center;align-items:center;transition:opacity .25s;display:flex;position:absolute;bottom:24px;left:50%;transform:translate(-50%)}.survivor-joystick-overlay.active{opacity:.72}.survivor-joystick-overlay .joystick-base{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#0c121e40;border:1.5px solid #00e67640;border-radius:50%;justify-content:center;align-items:center;width:96px;height:96px;transition:transform .12s;display:flex;position:relative;box-shadow:0 0 16px #00e6761a,inset 0 0 12px #00e6760f}.survivor-joystick-overlay .joystick-base:after{content:"";pointer-events:none;border:1px dashed #ffffff29;border-radius:50%;width:58px;height:58px;position:absolute}.survivor-joystick-overlay.active .joystick-base{border-color:#00e6768c;box-shadow:0 0 20px #00e67640,inset 0 0 14px #00e6761f}.survivor-joystick-overlay .joystick-stick{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#00e67640;border:2px solid #ffffff8c;border-radius:50%;width:44px;height:44px;position:absolute;box-shadow:0 0 14px #00e67659}.survivor-joystick-overlay .joystick-stick:after{content:"";background:#ffffffb3;border-radius:50%;width:8px;height:8px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 0 6px #00e67699}.survivor-joystick-overlay .joystick-hint{color:#ffffff80;text-shadow:0 1px 3px #000000e6;letter-spacing:.5px;margin-top:6px;font-size:.62rem;font-weight:700;transition:opacity .2s}.survivor-joystick-overlay.active .joystick-hint{opacity:0}.moonrun-touch-deck{gap:12px;width:100%;padding:8px 12px 12px;display:flex}.moonrun-steer-btn{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1.5px solid var(--surface-border);color:#fff;cursor:pointer;touch-action:none;background:#1c221ecc;border-radius:14px;flex:1;justify-content:center;align-items:center;gap:8px;height:68px;font-size:.95rem;font-weight:900;transition:transform 80ms,background .1s;display:flex}.moonrun-steer-btn:active,.moonrun-steer-btn.active{background:var(--primary-green);color:#000;box-shadow:0 0 16px var(--primary-glow);transform:scale(.96)}@media (width<=440px){.canvas-wrapper.survivor-wrapper{border-radius:10px;width:100%;max-width:100%;height:100%;max-height:100%}.arcade-header{flex-wrap:nowrap;gap:4px;padding:4px 6px}.brand-section{gap:3px;min-width:0}.brand-meta-col{gap:1px;min-width:0;max-width:68px}.brand-title{letter-spacing:-.2px;white-space:nowrap;text-overflow:ellipsis;font-size:.68rem;overflow:hidden}.stage-pill{padding:0 3px;font-size:.44rem;line-height:1.1}.hud-actions{flex-shrink:0;gap:4px}.icon-btn{flex-shrink:0;width:28px;height:28px}.icon-btn.lang-btn{width:28px;height:28px;padding:0}.icon-btn.lang-btn .svg-globe{width:16px;height:16px}.hud-stats{gap:4px}.stat-label{font-size:.48rem}.stat-value{font-size:.85rem}.survivor-hud-center{gap:2px;min-width:45px;max-width:88px;margin:0 2px}.macro-event-banner{gap:6px;padding:4px 7px;top:5px;left:5px;right:5px}.macro-banner-icon{width:24px;height:24px}.macro-banner-icon svg{width:17px;height:17px}.macro-pill{padding:1px 4px;font-size:.5rem}.macro-name{font-size:.7rem}.macro-timer-pill{padding:1px 5px;font-size:.6rem}.macro-headline{font-size:.65rem}#levelup-modal{padding:8px 6px}.upgrade-modal{gap:3px;max-width:96%;padding:10px}.upgrade-header-pill{padding:2px 8px;font-size:.74rem}.upgrade-modal-title{margin:2px 0 4px;font-size:1.22rem}.upgrade-cards-list{gap:8px;margin-top:4px}.upgrade-card-btn{border-radius:10px;gap:10px;padding:9px 11px}.upgrade-card-icon-col{width:44px;height:44px}.upgrade-card-icon-col svg{width:28px;height:28px}.upgrade-title{font-size:1.1rem}.upgrade-badge{padding:2px 6px;font-size:.7rem}.upgrade-desc{color:#e2e8f0;margin-top:2px;font-size:.9rem;font-weight:600;line-height:1.38}}
