/* Dark scrapyard skin. Every illustrated layer is a separate WebP asset. */
:root{font-family:system-ui,sans-serif;--navy:#101018;--panel:#121621;--panel2:#1c2230;--line:#555765;--cyan:#a149ff;--gold:#faff00;--pink:#dc15ef;--green:#6af132;color:#fff}
html,body{background:#07070c}
.app{background:linear-gradient(180deg,#09081222 0,#090812cc 550px,#090910 1100px),url('/assets/junkyard/warehouse-bg.webp?v=20261024-art-v229') center top/100% auto no-repeat,#090910;box-shadow:0 0 80px #000}
.app:before{display:none}
.topbar{height:73px;padding:6px 9px;background:linear-gradient(#090a12ed,#11101ccf);border-bottom:2px solid #4b2a68;box-shadow:0 2px 12px #000;position:sticky;top:0;z-index:12}
.identity{flex:1;gap:5px}.identity .avatar{width:52px;height:52px;flex:none;background:#e5f600;border:3px solid #eafa00;border-radius:50%;box-shadow:0 0 0 2px #b815db,0 0 12px #d629ff;overflow:hidden}.identity .avatar img{width:54px;height:54px;max-width:none;object-fit:cover;object-position:center 24%;transform:translate(-3px,2px) scale(1.3)}.identity strong{max-width:130px;color:#f3ff00;font-size:16px;text-shadow:2px 2px #000,-1px -1px #000}.identity small{color:#b6b7c6;font:700 10px system-ui,sans-serif;white-space:nowrap}.identity small .tiny-icon{width:15px;height:15px}
.wallet{gap:3px;flex:none}.currency{min-width:67px;justify-content:center;gap:3px;padding:4px;border:1px solid #5f677b;border-radius:8px;background:linear-gradient(#262b40,#0c111d);box-shadow:inset 0 1px #ffffff55,0 3px 2px #000a;font:800 11px system-ui,sans-serif}.currency .tiny-icon{width:19px;height:19px}.currency span{display:grid;place-items:center;width:18px;height:21px;margin-left:2px;border-left:1px solid #64718e;color:#e3eeff;font-size:18px}.star-currency{display:none}
.screen{padding:0 8px 24px}.screen-title{font-family:Impact,'Arial Narrow',sans-serif;color:#f6ff00;font-size:34px;letter-spacing:.5px;-webkit-text-stroke:1px #000;text-shadow:3px 4px #000,0 0 9px #bb17eb}.subtle{color:#b8bac8}
.panel,.mode-card{border:1px solid #505361;border-radius:10px;background:linear-gradient(155deg,#232631ed,#0c111be9 55%,#0a0b13f2);box-shadow:inset 0 1px #ffffff36,0 4px 0 #05060b,0 8px 18px #0008}.panel{padding:11px}.section-heading{color:#f5ff00;font-family:Impact,'Arial Narrow',sans-serif;letter-spacing:.3px}.section-heading small{color:#d9dce8}.eyebrow{color:#ffec00}
.big-btn,.junk-fight{border:2px solid #131313;border-radius:8px;background:linear-gradient(#ffff28,#edeb00 75%,#b4a700);box-shadow:inset 0 2px #ffffff9c,0 4px #000,0 6px 12px #000b;color:#050505;text-shadow:none;font-family:Impact,'Arial Narrow',sans-serif;font-weight:1000;letter-spacing:.7px}.big-btn{width:100%}.small-btn{border:1px solid #6b7590;border-radius:7px;background:linear-gradient(#344365,#142337);box-shadow:inset 0 1px #ffffff55,0 3px #060b18;color:white;text-shadow:1px 1px #000}.green-btn{border:2px solid #111;border-radius:7px;background:linear-gradient(#a6ff2a,#38da17);box-shadow:inset 0 2px #ffffff99,0 3px #0d470b;color:#071000;text-shadow:none}.danger-btn{border-radius:7px}.progress{border:1px solid #61637b;background:#090c16}.progress>i{background:linear-gradient(#f92cff,#ae0ab8)}.progress.gold>i{background:linear-gradient(#ffff31,#d7c400)}
.bottom-nav{height:calc(70px + env(safe-area-inset-bottom));background:linear-gradient(#111723,#080b12);border-top:2px solid #343b4e;box-shadow:0 -5px 18px #000c}.bottom-nav button{border-right:1px solid #01030a;font-family:Impact,'Arial Narrow',sans-serif;font-weight:900;text-shadow:1px 2px #000}.bottom-nav button img{width:30px;height:31px;filter:grayscale(1) brightness(1.7) drop-shadow(0 1px #000)}.bottom-nav button.active{background:linear-gradient(#ffff2d,#e5e600);border-radius:8px 8px 0 0;box-shadow:inset 0 2px #fffbb5;color:#080808;text-shadow:none}.bottom-nav button.active img{filter:brightness(0)}.bottom-nav small{font-size:11px}
.loading{background:linear-gradient(#090915aa,#090915eb),url('/assets/junkyard/warehouse-bg.webp?v=20261024-art-v229') center/cover}.loading-logo{width:160px;height:180px;object-fit:contain;filter:drop-shadow(0 0 15px #d723fc)}.loading h1{color:#faff00;text-shadow:4px 5px #000,0 0 10px #b811dd}
.junk-hero{height:385px;position:relative;margin:0 -8px 7px;overflow:hidden;background:linear-gradient(#09081255,#0908121b 48%,#090812d9 88%),url('/assets/junkyard/warehouse-bg.webp?v=20261024-art-v229') center 25%/cover;border-bottom:4px solid #2a2b34}.junk-logo{position:absolute;z-index:3;top:11px;left:0;right:0;text-align:center;pointer-events:none}.junk-logo small{display:inline-block;padding:2px 10px;background:#f4f1e6;color:#151015;transform:rotate(-2deg);font-size:10px;font-weight:1000;letter-spacing:1px}.junk-logo h1{margin:5px 0 0;font-family:Impact,'Arial Narrow',sans-serif;font-weight:1000;line-height:.78;letter-spacing:1px;text-align:center;transform:rotate(-3deg);filter:drop-shadow(0 4px 1px #000)}.junk-logo h1 span,.junk-logo h1 em{display:block;font-style:normal;-webkit-text-stroke:2px #070707;text-shadow:4px 5px #000,-3px -2px #000,0 0 15px #fff}.junk-logo h1 span{color:#faff00;font-size:clamp(50px,15vw,78px)}.junk-logo h1 em{color:#e715e8;font-size:clamp(47px,13vw,70px);margin-left:35px}.junk-crew img{position:absolute;z-index:2;object-fit:contain;filter:drop-shadow(0 8px 5px #000b)}.crew-mutant{width:65%;height:230px;left:19%;bottom:61px}.crew-box{width:43%;height:170px;left:-9%;bottom:60px}.crew-robot{width:40%;height:168px;right:-4%;bottom:59px}.junk-fight{position:relative;z-index:4;display:block;width:76%;min-height:61px;margin:auto;font-size:31px}.junk-hero>.junk-fight{position:absolute;bottom:7px;left:12%;right:12%;transform:rotate(-2deg)}
.home-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:8px 0}.home-shortcuts button{min-width:0;min-height:85px;display:grid;grid-template-columns:32px 1fr;grid-template-rows:1fr 1fr;align-items:center;gap:0 3px;padding:6px 4px;border:1px solid #5a5a68;border-radius:9px;background:linear-gradient(#222532ed,#0b101be9);color:#fff;text-align:left}.home-shortcuts img{grid-row:span 2;width:32px;height:40px;object-fit:contain}.home-shortcuts strong{font-size:11px;line-height:1;color:#f7f7f8}.home-shortcuts small{font:700 9px system-ui,sans-serif;color:#aeb0bf;line-height:1.1}.home-deck{margin:9px 0}.home-deck .section-heading{font-size:23px}.home-deck .deck-grid{gap:5px}.home-deck .card{border-width:2px}.deck-link{display:block;margin:9px auto 0;border:0;background:none;color:#e4d8ff;font-size:12px;font-weight:900}.arena-rank{display:flex;align-items:center;gap:10px}.arena-rank>img{width:51px;height:55px;object-fit:contain}.arena-rank>div{min-width:0;flex:1}.arena-rank strong{display:block;color:#fff;font-size:21px}.arena-rank small{display:block;color:#d1d1dc;font:700 11px system-ui,sans-serif}.arena-rank .progress{height:12px;margin-top:6px}.junk-event{position:relative;min-height:130px;margin:12px 0;overflow:hidden;padding:13px;border:2px solid #d5ed00;border-radius:9px;background:linear-gradient(95deg,#1a1021dd,#12260ce3),url('/assets/junkyard/warehouse-bg.webp?v=20261024-art-v229') center 72%/cover;box-shadow:inset 0 0 0 4px #000,0 5px #000}.junk-event:after{content:'';position:absolute;right:-13px;bottom:-26px;width:155px;height:150px;background:url('/assets/junkyard/robot.webp?v=20261024-art-v229') center/contain no-repeat;filter:hue-rotate(55deg) saturate(1.7)}.junk-event .event-tag{display:inline-block;padding:3px 8px;background:#df17dc;color:#090811;font-size:10px;font-weight:1000;transform:rotate(-2deg)}.junk-event h2{position:relative;z-index:1;margin:6px 0 1px;color:#fff;font-size:28px;line-height:.9;text-shadow:3px 3px #000,-1px -1px #000}.junk-event p{position:relative;z-index:1;max-width:65%;margin:4px 0;color:#e2f89b;font:700 10px system-ui,sans-serif}.junk-event button{position:relative;z-index:2;border:1px solid #a82fed;border-radius:6px;background:#ad08d3;color:#fff;padding:5px 9px;font-weight:1000}
.page-masthead{position:relative;min-height:150px;margin:0 -8px 10px;padding:27px 15px;overflow:hidden;background:linear-gradient(90deg,#0a0811bb,#14051b8e),url('/assets/junkyard/warehouse-bg.webp?v=20261024-art-v229') center 30%/cover;border-bottom:3px solid #d51de4}.page-masthead h1{position:relative;z-index:2;margin:2px 0;color:#faff00;font-size:58px;line-height:.9;-webkit-text-stroke:2px #000;text-shadow:4px 5px #000;transform:rotate(-3deg)}.page-masthead img{position:absolute;z-index:1;right:-3px;bottom:-60px;width:50%;height:210px;object-fit:contain}.battle-feature{position:relative;min-height:247px;overflow:hidden;border:2px solid #d6f000;background:linear-gradient(100deg,#15141c,#17111c 55%,#361238)}.battle-feature-copy{position:relative;z-index:2;max-width:64%}.battle-feature h2{margin:5px 0;color:#fff;font-size:28px;line-height:.95;text-shadow:2px 3px #000}.battle-feature p{font:700 11px system-ui,sans-serif;color:#d6d9e5}.battle-feature>img{position:absolute;right:-15px;top:5px;width:51%;height:165px;object-fit:contain}.rank-value{display:inline-block;padding:4px 6px;border:1px solid #584a24;border-radius:5px;background:#100c0d;color:#faff00;font-size:14px}.battle-feature .junk-fight{position:absolute;bottom:10px;left:5%;width:90%;min-height:52px;font-size:21px}.battle-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.battle-modes .panel{position:relative;min-height:180px;overflow:hidden}.battle-modes img{width:70px;height:60px;object-fit:contain}.battle-modes h3{margin:3px 0;color:#faff00;font-size:19px}.battle-modes p{min-height:41px;margin:3px 0;color:#c6c6d2;font:700 10px system-ui,sans-serif}.battle-modes .small-btn{width:100%;font-size:11px}.battle-rules h3{margin:0;color:#e31bea}.battle-rules p{font:700 11px/1.4 system-ui,sans-serif;color:#dadbe6}
.card{border:2px solid #bc20e6;border-radius:6px;background:#0a0913;box-shadow:0 3px #040407,0 0 7px #c112d955}.card.legendary{border-color:#e91cfd}.card.epic{border-color:#c42cdc}.card.rare{border-color:#4385ff}.card img{aspect-ratio:4/5}.card .cost{top:0;left:0;width:24px;height:24px;border:2px solid #ed51ff;border-radius:5px;background:#160821;color:white;font-size:14px}.card .level{background:#08070adf;color:#faff00}.card.selected{outline:2px solid #f7ff00}.card-name{color:#f7ff00}.card-ability{color:#ddaaff}.deck-slot{min-height:47px;border-color:#4b5269;border-radius:6px;background:linear-gradient(#1c2031,#0b0e19)}.deck-slot img{display:none}.deck-slot.selected{border-color:#fffa00;background:linear-gradient(#fffc29,#d5c600);color:#111;text-shadow:none}.deck-slot small{font-size:8px}.tab-pills button{border-color:#5b5d73;border-radius:6px;background:#131824;color:#d4d4de}.tab-pills button.active{border-color:#faff00;background:#faff00;color:#111;box-shadow:none}
.recycle-panel{border-color:#bf17dd;background:radial-gradient(circle at 8% 15%,#7b168d55,transparent 45%),linear-gradient(135deg,#242331,#0b0c14);box-shadow:inset 0 1px #faacff55,0 5px #050407,0 0 18px #c21de833}.recycle-heading{display:flex;align-items:center;gap:10px}.recycle-heading>img{width:57px;height:57px;object-fit:contain;filter:drop-shadow(0 0 8px #f500e9)}.recycle-heading>div{min-width:0;flex:1}.recycle-heading h3{margin:0;color:#faff00;font:900 23px Impact,'Arial Narrow',sans-serif;letter-spacing:.2px}.recycle-heading p{margin:3px 0;color:#d7cee5;font-size:11px;line-height:1.25}.recycle-heading strong{padding:5px 7px;background:#130a1f;border:1px solid #ed3ef7;border-radius:5px;color:#faff00;font-size:17px}.recycle-note{border-top:1px dashed #8d4394;margin-top:8px;padding-top:6px;color:#cbb7ce;font-size:10px}.recycle-actions{display:grid;grid-template-columns:1fr;gap:3px;margin-top:5px}.recycle-actions .small-btn{min-width:0;width:100%;margin:0;padding:5px 1px;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:clip}.recycle-actions .small-btn:first-child{border-color:#faff00;background:linear-gradient(#e5e417,#978d08);color:#080808;text-shadow:none}.recycle-actions .tiny-icon{width:13px;height:13px;vertical-align:-2px}.trade-modal>img{width:78px;height:100px;object-fit:cover;border:2px solid #ed2cec;border-radius:5px}.trade-modal p{margin:6px 0}.trade-modal label{display:flex;align-items:center;justify-content:center;gap:9px;font-weight:900;margin:10px 0 4px}.trade-modal input{width:85px;background:#090a15;border:2px solid #d928e5;border-radius:5px;color:#fff;font-weight:900;padding:8px}.trade-modal small{color:#c8b3ce}
.offer-banner{min-height:205px;border:2px solid #e7eb00;border-radius:8px;background:linear-gradient(90deg,#150b1dde,#22102ca3),url('/assets/junkyard/warehouse-bg.webp?v=20261024-art-v229') center/cover}.offer-banner:after{content:'';position:absolute;right:-3px;bottom:0;width:55%;height:190px;background:url('/assets/junkyard/mutant.webp?v=20261024-art-v229') center bottom/contain no-repeat}.offer-banner h2{position:relative;z-index:2;color:#faff00;font-size:30px;line-height:.92;text-shadow:3px 3px #000}.offer-banner p{position:relative;z-index:2;max-width:52%;color:#fff}.offer-banner button{margin-top:25px;z-index:3}.shop-categories button{border-color:#55586a;border-radius:6px;background:linear-gradient(#232739,#0e121d)}.shop-categories button.active{border-color:#faff00;background:#faff00;color:#0a0a0b;box-shadow:none}.offer{border-color:#5d4a65}.shop-offer .pic{filter:drop-shadow(0 0 8px #bd0adb)}.shop-offer h3{color:#faff00}.shop-note{border-color:#7f2796}.shop-note h3{color:#faff00}
.profile-hero{background:linear-gradient(#0708127d,#090a12ef),url('/assets/junkyard/warehouse-bg.webp?v=20261024-art-v229') center 27%/cover;border-bottom:3px solid #d522e7}.profile-avatar{background:#eafa00;border-color:#ed16ec;border-radius:50%;overflow:hidden}.profile-avatar img{width:77px;height:77px;object-fit:cover;transform:scale(1.3)}.profile-score{background:#131117;color:#faff00}.achievement{border-color:#565061;background:#14131d}.clan-header{border-color:#ce20e2;background:linear-gradient(90deg,#110e1ce6,#170f1c8f),url('/assets/junkyard/warehouse-bg.webp?v=20261024-art-v229') center/cover}.clan-header h1{color:#faff00}.history-row{background:#121520;border-color:#464b5b}.history-actions .small-btn{background:#25395e}.modal-box{border-color:#d126e8;background:linear-gradient(#272033,#0e111b)}.modal-box h2{color:#faff00}.toast{border-color:#d824ed;background:#16101f}
.battle-screen{background:#090910}.battle-top{background:linear-gradient(#13121b,#070a13);border-bottom:2px solid #be16d4}.battle-avatar{border-color:#faff00;background:#161119}.battle-combatant.enemy .battle-avatar{border-color:#f93462}.battle-name small{color:#faff00}.battle-top .versus{border-color:#6b587a;background:#0b0a12}.battle-top .versus b{color:#fff}.arena{background-color:#1a1520;background-image:url('/assets/junkyard/battlefield.webp?v=20261024-art-v229'),url('/assets/junkyard/battlefield-preview.webp');background-position:center top,center top;background-size:100% 120%,100% 120%;background-repeat:no-repeat,no-repeat}.arena:after,.arena-grid,.arena:before{display:none}.tower .hp,.tower.enemy .hp{border-color:#faff00;background:#090811}.tower .hp i{background:linear-gradient(#64dcff,#1d63cb)}.tower.enemy .hp i{background:linear-gradient(#ff6b72,#c8183e)}.battle-bottom{background:linear-gradient(#1d2030,#090c15);border-top:3px solid #d120e4}.emote-toggle{border-color:#ad32ce;background:#282037}.battle-elixir .progress{border-color:#b74cc6}.battle-elixir .progress>i{background:linear-gradient(#f746fc,#a619d7)}.battle-elixir b{color:#faff00}.battle-hand .card{border-color:#d42aee}.battle-hand .card.selected{outline-color:#faff00}.drop-zone{z-index:8}.arena.placing .drop-zone{background:#e6ff0033;outline-color:#faff00}.arena.placing .drop-zone.right{background:#d020d633}
.social-masthead,.referral-masthead{min-height:195px}.social-masthead h1,.referral-masthead h1{font-size:clamp(43px,13vw,67px)}.social-masthead img,.referral-masthead img{width:47%;height:220px;bottom:-55px}.social-search form{display:flex;gap:5px}.social-search input{min-width:0;flex:1;border:1px solid #5a5a72;border-radius:7px;background:#070a13;color:#fff;padding:9px;font:700 13px system-ui,sans-serif}.social-search .junk-fight{width:77px;min-height:39px;margin:0;font-size:16px}.social-search>.small-btn{width:100%;margin-top:8px}.friend-row{display:flex;align-items:center;gap:8px;padding:8px 3px;border-top:1px solid #464a58}.friend-avatar{width:48px;height:48px;flex:none;overflow:hidden;border:2px solid #cc20e8;border-radius:7px;background:#16121c}.friend-avatar img{width:100%;height:100%;object-fit:cover;transform:scale(1.35)}.friend-info{min-width:0;flex:1}.friend-info strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}.friend-info small{display:block;color:#aeb0c0;font-size:10px}.friend-info .tiny-icon{width:14px;height:14px;vertical-align:-3px}.online-dot{color:#65f642}.friend-actions{display:flex;flex-direction:column;gap:3px;align-items:end}.friend-actions button{min-width:57px;padding:5px;font-size:10px}.friend-actions .subtle{font-size:10px;text-align:right}.referral-code{border:3px solid #edf500;background:linear-gradient(110deg,#e5dc00,#11111c 55%)}.referral-code h2{margin:0;color:#fff;font:900 24px Impact,'Arial Narrow',sans-serif}.referral-code>strong{display:block;margin:4px 0 10px;color:#faff00;font:900 33px Impact,'Arial Narrow',sans-serif;letter-spacing:2px}.referral-code>.green-btn{width:100%;padding:10px}.referral-code p{overflow-wrap:anywhere;font-size:11px}.referral-milestones{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.referral-milestones article{display:grid;gap:6px;justify-items:center;border:1px solid #595769;border-radius:7px;padding:10px 5px;background:#0b0c15}.referral-milestones b{color:#faff00}.referral-milestones span{font-weight:900}.referral-milestones img{width:21px;vertical-align:-5px}.referral-milestones button{width:100%;padding:7px;font-size:11px}
.quip-panel{border:1px solid #9c33b6;border-radius:7px;background:linear-gradient(90deg,#28102d,#090d17);color:#fff}.quip-panel img{object-fit:contain;filter:drop-shadow(0 0 6px #d22feb)}.quip-panel small{color:#faff00}.quip-panel button{border-color:#a438bc;background:#31143f}.daily-panel{border-top:4px solid #ebf000}.daily-head{background:linear-gradient(90deg,#2c1833,#0e101b)}.daily-head h3,.daily-head .eyebrow{color:#faff00}.daily-head small{color:#aaaebd}.daily-joke{border-color:#a42cbe;background:#211124;color:#f6eaff}.daily-item{border-color:#555264;background:#0b101a}.daily-copy strong{color:#fff}.daily-copy small,.daily-reset{color:#bfc0cd}.daily-action b{color:#faff00}.war-panel{border-color:#e5ec00;background:linear-gradient(#24232bea,#0b0c16)}.war-head{background:linear-gradient(90deg,#10111ded,#341739ac),url('/assets/junkyard/warehouse-bg.webp?v=20261024-art-v229') center/cover;border-color:#bf18d3}.war-head h3,.war-panel>p b,.war-score strong,.war-leader strong{color:#faff00}.war-head small,.war-panel>p{color:#d3d3df}.war-score>div,.war-leader,.war-reward{border-color:#555668;background:#10131c}.war-score small{color:#bbbbcd}.war-leader.own{border-color:#d620e7;background:#28142c}.war-reward-note{color:#bcbccb}.profile-links{display:grid;gap:6px}.profile-links h3{margin-bottom:2px}.profile-links button{width:100%}
@media(max-width:360px){.topbar{padding:5px}.identity .avatar{width:43px;height:43px}.identity .avatar img{width:45px;height:45px}.identity strong{max-width:83px;font-size:13px}.identity small{font-size:9px}.currency{min-width:54px;padding:2px;font-size:10px}.currency .tiny-icon{width:15px;height:15px}.currency span{width:14px;font-size:15px}.junk-logo h1 span{font-size:49px}.junk-logo h1 em{font-size:46px}.home-shortcuts strong{font-size:9px}.home-shortcuts small{font-size:8px}.home-shortcuts img{width:26px}}

/* Reference art direction: one illustrated scene per masthead, separate raster lettering. */
@font-face{font-family:TrashImpact;src:local('Impact')} 
.app{background:linear-gradient(180deg,#0b0810ae,#090810ed 520px,#07080c 1150px),url('/assets/branding/home-scene.webp?v=20261024-art-v229') center top/100% auto no-repeat,#07080c}
.topbar{height:70px;background:linear-gradient(90deg,#070711f2,#0d0b18eb);border-bottom:0;box-shadow:0 2px 15px #000b}
.identity .avatar img{width:100%;height:100%;transform:none;object-position:center;object-fit:cover}
.identity strong{font-family:TrashImpact,Impact,sans-serif;font-size:18px;letter-spacing:.2px}
.screen-title,.section-heading,.eyebrow,.home-shortcuts strong,.arena-rank strong,.offer-banner h2,.battle-feature h2,.battle-modes h3{font-family:TrashImpact,Impact,'Arial Narrow',sans-serif;letter-spacing:.25px}
.panel,.mode-card{border:2px solid #3e4555;border-radius:8px;background:linear-gradient(145deg,#1b202c,#0a0d16 58%,#080a12);box-shadow:inset 0 1px #aeb6cc4d,0 4px #030408,0 7px 14px #000b}
.loading{position:relative;min-height:100dvh;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;padding:clamp(95px,13dvh,150px) 7% 33px;overflow:hidden;background:linear-gradient(180deg,#03030a24,#07050b09 55%,#05050be0 100%),url('/assets/branding/home-scene.webp?v=20261024-art-v229') center center/cover no-repeat}
.loading:before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#0008 0%,transparent 34%,transparent 70%,#000b 100%);pointer-events:none}
.loading-logo{position:relative;z-index:1;width:min(98%,480px);height:auto;filter:drop-shadow(0 5px 8px #000) drop-shadow(0 0 9px #9f0bc9)}
.loading-caption{position:relative;z-index:1;margin-top:auto;padding:9px 14px;background:#070810de;border:2px solid #dae600;border-radius:6px;color:#faff00;font:900 clamp(13px,3.4vw,17px) TrashImpact,Impact,sans-serif;letter-spacing:.7px;text-shadow:2px 2px #000}
.loading-meter{z-index:1;width:95%;height:16px;margin-top:12px;padding:2px;border:2px solid #7b879e;border-radius:5px;background:#070810;box-shadow:0 4px 0 #000}.loading-meter i{display:block;height:100%;width:42%;border-radius:2px;background:repeating-linear-gradient(-55deg,#faff00 0 23px,#0a0a0a 23px 31px);animation:loadingPulse 1.5s ease-in-out infinite alternate}@keyframes loadingPulse{to{width:82%}}
.junk-hero{height:385px;position:relative;isolation:isolate;overflow:hidden;background:#080612;border-bottom:5px solid #151720}
.junk-hero::before{content:"";position:absolute;z-index:0;inset:-2%;pointer-events:none;background:linear-gradient(180deg,#08061215 0%,#08061200 50%,#050409d0 100%),url('/assets/branding/home-scene.webp?v=20261024-art-v229') center 53%/100% auto no-repeat;transform:translate3d(0,0,0) scale(1);transform-origin:center;animation:home-scene-loop 12s ease-in-out infinite;will-change:transform}
.junk-logo-art{position:absolute;z-index:3;top:4px;left:14%;width:72%;height:134px;object-fit:contain;filter:drop-shadow(0 5px 5px #000)}
.junk-hero .art-button{position:absolute;z-index:4;bottom:9px;left:8%;width:84%;height:75px;padding:0;border:0;background:none;box-shadow:none;transform:rotate(-2deg)}
.junk-hero .art-button img{display:block;width:100%;height:100%;object-fit:fill;filter:drop-shadow(0 5px 3px #000)}
.junk-hero .art-button:active{transform:rotate(-2deg) scale(.96)}
.home-shortcuts button{min-height:72px;border:2px solid #485064;background:linear-gradient(125deg,#1b202bdc,#0a0d16);box-shadow:inset 0 1px #ffffff52,0 4px #030408}
.home-shortcuts img{width:39px;height:45px}.home-shortcuts strong{font-size:12px}.home-shortcuts small{font-size:9px}
.home-deck{border-top:4px solid #f4fb00}.home-deck .section-heading{font-size:24px}.home-deck .heading-label{color:#faff00;text-shadow:2px 2px #000}
.card{border-width:3px;border-radius:5px;box-shadow:0 3px #030305,0 0 10px #b71be85c;overflow:visible}.card .cost{z-index:2;top:-7px;left:-6px;width:29px;height:29px;border:3px solid #e72aff;border-radius:6px;box-shadow:2px 3px #000;font:900 18px TrashImpact,Impact,sans-serif}.card .level{font:900 12px TrashImpact,Impact,sans-serif;text-shadow:2px 2px #000}
.deck-grid{gap:7px}.arena-rank{border-left:5px solid #e0e800}.arena-rank strong{font-size:23px}.arena-rank>img{filter:drop-shadow(0 0 5px #e9e705)}
.page-masthead{min-height:235px;margin:0 -8px 8px;padding:0;overflow:hidden;background:linear-gradient(180deg,#08071335,#08071300 50%,#0b0711b0),url('/assets/branding/home-scene.webp?v=20261024-art-v229') center 46%/100% auto no-repeat;border-bottom:4px solid #301136}
.page-masthead .masthead-logo{position:absolute;z-index:2;top:7px;left:2%;width:96%;height:166px;object-fit:contain;filter:drop-shadow(0 4px 5px #000)}
.shop-masthead{background-image:linear-gradient(180deg,#08071335,#08071300 50%,#0b0711b0),url('/assets/branding/shop-scene.webp?v=20261024-art-v229');background-position:center 55%}
.battle-masthead{background-position:center 50%}.deck-masthead{background-position:center 53%}
.social-masthead,.referral-masthead{min-height:230px;background-position:center 53%}
.profile-hero{position:relative;min-height:280px;padding-top:112px;background:linear-gradient(180deg,#07061335,#07061312 55%,#080712e8),url('/assets/branding/home-scene.webp?v=20261024-art-v229') center 51%/100% auto no-repeat;border-bottom:4px solid #cc1fe1;border-radius:0;margin:0 -8px 10px}
.profile-title-art{position:absolute;top:-4px;left:1%;width:98%;height:133px;object-fit:contain;filter:drop-shadow(0 4px 4px #000)}
.profile-avatar{position:relative;margin:0 auto 6px;border:3px solid #ed16ec;box-shadow:0 0 0 3px #eafa00,0 3px 8px #000}.profile-avatar img{width:100%;height:100%;transform:none;object-fit:cover}
.profile-hero h1{margin:3px 0;color:#faff00;font-family:TrashImpact,Impact,sans-serif;text-shadow:3px 3px #000;font-size:27px}
.offer-banner{background:linear-gradient(90deg,#090710ce 0%,#09071054 65%,#09071011),url('/assets/branding/shop-scene.webp?v=20261024-art-v229') center 69%/cover}.offer-banner:after{display:none}
.shop-categories button.active,.deck-slot.selected,.tab-pills button.active{background:#faff00;color:#070707}
.bottom-nav{height:calc(67px + env(safe-area-inset-bottom));background:linear-gradient(#141924,#080a11);border-top:3px solid #222a38}.bottom-nav button.active{background:linear-gradient(#faff00,#eaf000);color:#050505}
@media(max-width:360px){.junk-hero{height:350px}.junk-logo-art{height:119px}.junk-hero .art-button{height:65px}.page-masthead{min-height:204px}.page-masthead .masthead-logo{height:145px}.loading{padding-top:10dvh}.home-shortcuts img{width:31px}}
@media(min-width:521px){.app{background-size:520px auto}.junk-hero{height:420px}}
.card.titan{border-color:#fbef00;box-shadow:0 0 12px #ffee0080,inset 0 0 10px #f0e00035}
.arena:not(.placing) .drop-zone{pointer-events:none}
.unit[data-action="feed-tamagotchi"]{z-index:9;cursor:pointer;filter:drop-shadow(0 0 7px #f0ed00) drop-shadow(0 4px 2px #000)}

/* The battlefield pads are part of the raster art. Anchor the bottom of each
   friendly tower to its pad, instead of centering the whole sprite below it. */
.battle-screen{height:100dvh;min-height:0;overflow:hidden}
.battle-screen .battle-top{height:calc(clamp(52px,9dvh,76px) + env(safe-area-inset-top));padding-top:calc(5px + env(safe-area-inset-top))}
.battle-screen .arena{flex:1 1 auto;min-height:0}
.battle-screen .tower.player{transform:translate(-50%,-100%)}

.unit-ability-clock{position:absolute;z-index:8;left:50%;top:-5px;transform:translate(-50%,-100%);padding:2px 4px;border:1px solid #e5a7ff;border-radius:4px;background:linear-gradient(120deg,#211329f2,#0b101bf2);box-shadow:0 0 7px #c845ff78;color:#f6e6ff;font:900 8px/1 system-ui,sans-serif;letter-spacing:.04em;white-space:nowrap;pointer-events:none}

/* Equal side tracks keep the timer on the physical screen centre, regardless of names. */
.battle-screen .battle-top{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center}
.battle-screen .battle-top>.battle-combatant{width:100%;max-width:none;min-width:0;overflow:hidden}
.battle-screen .battle-top>.versus{grid-column:2;justify-self:center}
.battle-screen .battle-top>.battle-combatant.enemy{grid-column:3}
.telegram-stars{border-color:#eeea00;background:linear-gradient(125deg,#1a1025,#0c0e18 70%)}
.telegram-stars h3{margin:0;color:#faff00;font:700 23px JunkOswald,'Arial Narrow',sans-serif}
.telegram-stars p{margin:4px 0 12px;color:#d8d3e4;font-size:12px}
.star-packs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.star-packs article{min-width:0;display:grid;justify-items:center;gap:5px;padding:9px 4px;border:1px solid #a33cc0;border-radius:8px;background:linear-gradient(#2a1738,#0d101b)}
.star-packs img{width:36px;height:36px;object-fit:contain}
.star-packs strong{color:#faff00;font:700 17px JunkOswald,'Arial Narrow',sans-serif;white-space:nowrap}
.star-packs button{width:100%;min-height:34px;padding:3px;font-size:14px}
.battle-screen .tower.player .hp{top:auto;bottom:-15px}
.battle-screen .battle-bottom{height:calc(max(clamp(156px,23dvh,208px),calc(90px + min(24vw,125px))) + env(safe-area-inset-bottom));display:grid;grid-template-rows:minmax(0,1fr) auto;gap:4px;padding:6px 8px calc(6px + env(safe-area-inset-bottom))}

.battle-screen .battle-hand{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:minmax(0,1fr);height:auto;min-height:0;align-items:stretch;gap:6px}
.battle-screen .battle-hand>.battle-card-pick,.battle-screen .battle-hand>.battle-card-missing{grid-column:auto;grid-row:1;width:100%;min-width:0}
.battle-screen .battle-hand>div,.battle-screen .battle-hand .card{height:100%;min-height:0;min-width:0}
.battle-screen .battle-hand .card img{height:100%;object-fit:cover}
.battle-screen .battle-elixir{display:grid;grid-template-columns:26px minmax(0,1fr) auto auto 32px;align-items:center;gap:6px;min-height:30px;margin:0}
.battle-screen .battle-elixir .progress{min-width:0;margin:0}
.battle-screen .battle-elixir b{min-width:0}.battle-screen .emote-toggle{width:32px;height:30px;padding:0;color:#fff;font-size:18px;line-height:1}
@media(max-height:620px){.battle-screen .battle-hand .card .level{font-size:10px}}
.unit[data-action="feed-tamagotchi"]:after{content:'ПОКОРМИ';position:absolute;left:50%;bottom:100%;transform:translateX(-50%);background:#f8f300;color:#111;border:2px solid #14131c;border-radius:4px;font-size:9px;font-weight:1000;white-space:nowrap;padding:1px 3px}
.offer-banner{background:linear-gradient(90deg,#090710e8 0%,#180b1bb8 55%,#1b0c1866 100%),url('/assets/junkyard/warehouse-bg.webp?v=20261024-art-v229') center/cover}
.offer-banner:after{width:62%;height:205px;right:-16px;background:url('/assets/shop/royal-chest.webp') right center/contain no-repeat;filter:drop-shadow(0 0 13px #d517ff)}
.shop-offer .pic{height:128px;margin:-4px -4px 8px;border-radius:6px;overflow:hidden;filter:none;background:#100b1a}
.shop-offer .pic img{width:100%;height:100%;object-fit:cover;filter:none}
.shop-offer{overflow:hidden;border-top:3px solid #f5ee00}
.shop-offer:nth-child(3n+2){border-top-color:#cb19ef}
.shop-offer:nth-child(3n){border-top-color:#a8fb24}
.profile-season{display:grid;grid-template-columns:minmax(0,1fr) 105px;gap:8px;align-items:center;border:3px solid #e5e800;background:linear-gradient(105deg,#1c1124ee,#171015dd),url('/assets/junkyard/warehouse-bg.webp?v=20261024-art-v229') center/cover}
.profile-season .eyebrow{color:#f229ef;font-weight:1000}.profile-season h3{margin:3px 0;color:#f9f800;font:900 27px Impact,'Arial Narrow',sans-serif;text-shadow:2px 2px #000}.profile-season p{font-size:12px;color:#d8d7df;margin:0 0 5px}.profile-season strong{display:block;color:#fff;margin-bottom:8px}.profile-season>img{width:105px;height:127px;object-fit:contain;filter:drop-shadow(0 0 11px #f7e500)}
.profile-banner{min-height:95px;display:flex;align-items:center;gap:12px;border-color:#d02af1;background:linear-gradient(100deg,#260b31,#0a0b13)}.profile-banner>img{width:88px;height:77px;object-fit:contain;filter:drop-shadow(0 0 6px #dc16fb)}.profile-banner h3{margin:2px 0;color:#f6f900;font:900 24px Impact,'Arial Narrow',sans-serif}.profile-banner p{margin:0;font-size:12px;color:#dad3e1}
.unit.unit-ability-baglet,.unit.unit-ability-swarm_pop{width:31px;height:32px}
.unit.unit-ability-scrap{width:40px;height:42px}
.unit.unit-pvz.unit-ability-titan_spawner{width:96px;height:95px;z-index:6}
.unit.unit-bags.unit-ability-spawner,.unit.unit-galya,.unit.unit-sneaker{width:78px;height:78px}
.unit.unit-invisible{opacity:.48;filter:drop-shadow(0 0 8px #b92ff0)}
.battle-screen .unit.unit-revealed{outline:1px solid #8ffbff;outline-offset:3px;filter:drop-shadow(0 0 4px #fff) drop-shadow(0 0 11px #38dcff) drop-shadow(0 0 16px #a72cff)}
.battle-screen .unit.unit-revealed>.unit-sprite{filter:drop-shadow(0 0 4px #fff) drop-shadow(0 0 9px #38dcff)}
.battle-screen .unit.unit-revealed>.hpbar{border-color:#8ffbff;box-shadow:0 0 5px #38dcff,0 0 10px #a72cff}
.unit.unit-ability-hunger{filter:drop-shadow(0 0 7px #e52cff)}
.chaos-mode{position:relative;min-height:263px;margin:10px 0 13px;overflow:hidden;border:2px solid #ef23e8;border-radius:9px;background:linear-gradient(90deg,#070910f5 0%,#090914d8 36%,#0e091477 74%,#0e091433),url('/assets/junkyard/chaos-banner.webp?v=20261024-art-v229') center 54%/cover;box-shadow:inset 0 0 0 3px #07070a,0 5px #030305,0 0 14px #e500c044}.chaos-mode:before{content:'';position:absolute;inset:0 0 auto;height:8px;background:repeating-linear-gradient(110deg,#fbf500 0 13px,#09090b 13px 25px)}.chaos-mode-copy{position:relative;z-index:1;padding:20px 12px 65px;max-width:78%}.chaos-kicker{display:inline-block;padding:3px 7px;background:#d712dc;color:#fff;font:900 11px Impact,'Arial Narrow',sans-serif;letter-spacing:1px;transform:rotate(-3deg)}.chaos-mode h2{margin:8px 0;color:#faff00;font:900 34px/.85 Impact,'Arial Narrow',sans-serif;letter-spacing:.4px;-webkit-text-stroke:1px #111;text-shadow:3px 4px #000,0 0 10px #bd15b4}.chaos-mode p{max-width:220px;margin:8px 0;color:#f5ecfa;font-size:11px;font-weight:850;line-height:1.27;text-shadow:1px 2px #000}.chaos-quest{display:inline-block;padding:4px 6px;border:1px solid #e21beb;border-radius:4px;background:#12091acc;color:#faff00;font-size:10px;font-weight:900}.chaos-mode .junk-fight{position:absolute;z-index:2;bottom:10px;left:4%;width:92%;min-height:46px;font-size:20px}.chaos-arena{box-shadow:inset 0 0 0 3px #ed24ff}.chaos-battle-label{position:absolute;z-index:4;top:5px;left:6px;transform:none;padding:3px 7px;border:1px solid #e734f7;border-radius:4px;background:#10071dcc;color:#faff00;font:900 9px Impact,'Arial Narrow',sans-serif;letter-spacing:.2px;white-space:nowrap;pointer-events:none}
.daily-arena-mode{position:relative;min-height:282px;margin:10px 0 13px;overflow:hidden;border:2px solid #e8f300;border-radius:9px;background:linear-gradient(90deg,#060711f4 0%,#090813e6 35%,#0c0916a0 65%,#0a071041),url('/assets/junkyard/daily-arena-banner.webp?v=20261024-art-v229') center/cover;box-shadow:inset 0 0 0 3px #06070a,0 5px #030305,0 0 17px #e4f10049}
.daily-arena-mode:before{content:'';position:absolute;inset:0 0 auto;height:8px;background:repeating-linear-gradient(110deg,#e8f000 0 13px,#0a090b 13px 25px)}
.daily-arena-copy{position:relative;z-index:1;max-width:79%;padding:18px 12px 66px}
.daily-arena-kicker{display:inline-block;padding:4px 6px;background:#d61de4;color:#fff;font:900 10px Impact,'Arial Narrow',sans-serif;letter-spacing:.4px;transform:rotate(-2deg)}
.daily-arena-mode h2{margin:8px 0 4px;color:#faff00;font:900 39px/.82 Impact,'Arial Narrow',sans-serif;-webkit-text-stroke:1px #07070a;text-shadow:3px 4px #000,0 0 12px #d800dd}
.daily-arena-mode strong{display:block;max-width:220px;color:#fff;font-size:17px;line-height:1.02;text-shadow:2px 2px #000}
.daily-arena-mode p{max-width:235px;margin:6px 0;color:#f6f1fa;font:750 11px/1.25 system-ui,sans-serif;text-shadow:1px 2px #000}
.daily-arena-detail{display:flex;flex-direction:column;gap:3px;max-width:235px;margin:8px 0 3px;color:#faff00;font:900 10px/1.1 system-ui,sans-serif;text-shadow:1px 1px #000}
.daily-arena-detail span{width:max-content;max-width:100%;padding:3px 5px;border:1px solid #8f62a7;border-radius:3px;background:#090715cc}
.daily-arena-mode small{display:block;color:#f0caf7;font-size:10px;font-weight:850;text-shadow:1px 1px #000}
.daily-arena-mode .junk-fight{position:absolute;z-index:2;bottom:10px;left:4%;width:92%;min-height:46px;font-size:19px}

/* Keep the compact reference HUD on one line even on 320 px phones. */
.topbar{display:flex;align-items:center;gap:4px;padding:5px 7px;height:67px}
.identity{flex:1 1 auto;min-width:0;height:auto;gap:5px}
.identity .avatar{width:48px;height:48px}
.identity strong{max-width:clamp(80px,24vw,145px);font-size:clamp(13px,3.5vw,18px)}
.identity small{font-size:clamp(8px,2.2vw,10px)}
.wallet{display:flex;flex:0 0 auto;width:auto;min-width:0;gap:3px}
.currency{min-width:0;width:auto;padding:3px 2px;font-size:clamp(9px,2.6vw,12px)}
.currency .tiny-icon{width:17px;height:17px}.currency span{width:14px;height:19px;font-size:16px}
.settings-btn{flex:none;width:29px;height:36px;padding:0;border:1px solid #687085;border-radius:6px;background:linear-gradient(#323649,#12141d);box-shadow:inset 0 1px #ffffff73,0 3px #020307;color:#e9eaf1;font:25px Arial,sans-serif;line-height:1}
.settings-gear-img{display:block;width:24px;height:24px;margin:auto;object-fit:contain;filter:drop-shadow(0 1px 2px #000)}
.settings-copy{color:#d8d7e6;font-size:13px;line-height:1.4}.settings-toggle{width:100%;margin:8px 0;padding:12px;border:2px solid #687085;border-radius:6px;background:#1c2233;color:#fff;font:900 20px TrashImpact,Impact,sans-serif}.settings-toggle.on{border-color:#eafb00;color:#faff00}.audio-setting{display:block;margin:15px 0;color:#f4edc1;font-size:12px;font-weight:900;letter-spacing:.06em}.audio-setting>span{display:flex;justify-content:space-between;align-items:center}.audio-setting output{color:#8df3ff;font-variant-numeric:tabular-nums}.audio-setting input{display:block;width:100%;height:28px;margin:4px 0 0;accent-color:#c6fc20;touch-action:pan-x}
.notification-settings{margin-top:18px;padding-top:12px;border-top:1px solid #5d536b}.notification-settings h3{margin:0 0 6px;color:#faff00;font:900 17px TrashImpact,Impact,sans-serif;letter-spacing:.04em}.notification-toggle{margin:5px 0;padding:9px;font-size:16px}.notification-settings .settings-copy{margin:7px 0}
.offer-banner{background:linear-gradient(90deg,#090710d8 0%,#09071077 52%,#09071011),url('/assets/branding/shop-scene.webp?v=20261024-art-v229') center 77%/cover}
.offer-banner:after{display:none}
@media(max-width:360px){.topbar{gap:2px;padding:4px}.identity .avatar{width:42px;height:42px}.identity strong{max-width:80px}.identity small .tiny-icon{width:11px;height:11px}.currency .tiny-icon{width:14px;height:14px}.currency span{width:12px;margin-left:0}.settings-btn{width:25px;height:32px;font-size:21px}}
.deck-slots{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin:9px 0}
.deck-slot{min-height:43px;padding:3px 1px;font:900 20px TrashImpact,Impact,sans-serif}.deck-slot small{font:800 8px system-ui,sans-serif}.deck-slot span{line-height:1}
.home-deck-tabs{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;margin:3px 0 8px}.home-deck-tabs button{height:28px;border:1px solid #586074;border-radius:5px;background:linear-gradient(#232a3c,#0c101a);color:#c9cbd5;font:900 16px TrashImpact,Impact,sans-serif;box-shadow:0 2px #030405}.home-deck-tabs button.active{border-color:#070707;background:#faff00;color:#080808;box-shadow:0 0 5px #effc00}
.offers{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.shop-offer{min-height:195px;padding:5px 3px;gap:2px;text-align:center}
.shop-offer .pic{width:100%;height:92px;margin:-2px -1px 2px}
.shop-offer h3{min-height:23px;font:900 12px/1 TrashImpact,Impact,sans-serif;color:#fff;text-shadow:1px 2px #000}
.shop-offer p{font-size:8px;line-height:1.12}.shop-offer small{font-size:7px}.shop-offer button{width:100%;min-height:27px;padding:2px;font-size:10px}
@media(max-width:360px){.shop-offer .pic{height:75px}.shop-offer h3{font-size:10px}.shop-offer p{font-size:7px}}
.social-masthead{background-image:linear-gradient(180deg,#09071424,#09071400 50%,#090714c4),url('/assets/branding/friends-scene.webp?v=20261024-art-v229');background-position:center 54%}
.referral-masthead{background-image:linear-gradient(180deg,#09071424,#09071400 50%,#090714c4),url('/assets/branding/referrals-scene.webp?v=20261024-art-v229');background-position:center 54%}
.profile-scene{height:258px;position:relative;margin:0 -8px 0;overflow:hidden;background:linear-gradient(180deg,#08061311,#08061300 60%,#080613dc),url('/assets/branding/profile-scene.webp?v=20261024-art-v229') center 28%/100% auto no-repeat;border-bottom:4px solid #c929e7}
.profile-scene .profile-title-art{position:absolute;top:7px;left:1%;width:65%;height:112px;object-fit:contain;filter:drop-shadow(0 4px 4px #000)}
.profile-hero{display:grid;grid-template-columns:76px minmax(0,1fr);grid-template-rows:repeat(3,auto);align-items:center;column-gap:10px;min-height:108px;margin:0 0 10px;padding:10px;background:linear-gradient(130deg,#1b1e2a,#0b0d15 70%);border:2px solid #53586b;border-radius:8px;box-shadow:inset 0 1px #ffffff43,0 4px #020207;text-align:left}
.profile-hero .profile-avatar{grid-row:1/4;width:68px;height:68px;margin:0;border-radius:50%}
.profile-hero h1{grid-column:2;margin:0;color:#faff00;font-size:24px;line-height:1}
.profile-hero p{grid-column:2;margin:1px 0;font-size:10px}
.profile-hero .profile-score{grid-column:2;width:max-content;padding:2px 8px;font-size:17px}
@media(max-width:360px){.profile-scene{height:223px}.profile-scene .profile-title-art{height:106px}.profile-hero h1{font-size:21px}}

/* The logo is artwork; the interface uses bundled Cyrillic typefaces so it stays
   consistent inside Telegram on iOS, Android and desktop. */
@font-face{font-family:JunkOswald;src:url('/assets/fonts/Oswald-VF.ttf') format('truetype');font-style:normal;font-weight:200 700;font-display:swap}
@font-face{font-family:JunkRoboto;src:url('/assets/fonts/RobotoCondensed-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:JunkRoboto;src:url('/assets/fonts/RobotoCondensed-Bold.ttf') format('truetype');font-style:normal;font-weight:700 900;font-display:swap}
:root,html,body,button,input,textarea{font-family:JunkRoboto,'Arial Narrow',sans-serif}
.identity strong,.screen-title,.section-heading,.eyebrow,.home-shortcuts strong,.arena-rank strong,.offer-banner h2,.battle-feature h2,.battle-modes h3,.big-btn,.junk-fight,.small-btn,.green-btn,.danger-btn,.bottom-nav button,.deck-slot,.home-deck-tabs button,.shop-offer h3,.profile-hero h1,.settings-toggle{font-family:JunkOswald,'Arial Narrow',sans-serif;font-weight:700}
.identity strong,.section-heading,.screen-title,.battle-feature h2{letter-spacing:.1px}
.shop-offer p,.friend-info small,.subtle{font-family:JunkRoboto,'Arial Narrow',sans-serif}
.loading-caption,.referral-code h2,.referral-code>strong{font-family:JunkOswald,'Arial Narrow',sans-serif;font-weight:700}

/* Telegram fullscreen keeps the HUD below the close bar and phone cutouts. */
:root{--game-safe-top:max(env(safe-area-inset-top,0px),var(--tg-safe-area-inset-top,0px),var(--tg-content-safe-area-inset-top,0px));--game-safe-bottom:max(env(safe-area-inset-bottom,0px),var(--tg-safe-area-inset-bottom,0px),var(--tg-content-safe-area-inset-bottom,0px))}
#game{padding-bottom:calc(67px + var(--game-safe-bottom))}
.topbar{height:calc(67px + var(--game-safe-top));padding-top:calc(4px + var(--game-safe-top));padding-left:max(7px,env(safe-area-inset-left,0px));padding-right:max(7px,env(safe-area-inset-right,0px))}
.bottom-nav{height:calc(67px + var(--game-safe-bottom));padding-bottom:var(--game-safe-bottom)}
.loading{padding-top:var(--game-safe-top);padding-bottom:var(--game-safe-bottom)}
.battle-screen .battle-top{height:calc(clamp(52px,9dvh,76px) + var(--game-safe-top));padding-top:calc(5px + var(--game-safe-top))}
.battle-screen .battle-bottom{height:calc(max(clamp(156px,23dvh,208px),calc(90px + min(24vw,125px))) + var(--game-safe-bottom));padding-bottom:calc(6px + var(--game-safe-bottom))}
.toast{bottom:calc(79px + var(--game-safe-bottom))}
.arena{background:#100d15;display:flex;justify-content:center}
.arena-stage{position:relative;width:100%;height:100%;overflow:hidden;background-color:#1a1520;background-image:url('/assets/junkyard/battlefield.webp?v=20261024-art-v229'),url('/assets/junkyard/battlefield-preview.webp');background-position:center top,center top;background-size:100% 120%,100% 120%;background-repeat:no-repeat,no-repeat}
.battle-screen .tower.player{transform:translate(-50%,-100%)}

/* Desktop uses the window, with a centred, undistorted portrait battlefield. */
@media(min-width:768px){
  body{display:block}
  .app{width:100%;max-width:none;min-height:100dvh;background-size:cover}
  #game{width:100%}
  .topbar{padding-inline:max(20px,calc((100vw - 1440px)/2))}
  .screen{max-width:1440px;margin:0 auto;padding-inline:24px}
  .bottom-nav{width:100%;grid-template-columns:repeat(5,minmax(0,180px));justify-content:center;gap:10px;padding-inline:20px}
  .battle-screen{width:100%;max-width:none;box-shadow:none}
  .battle-screen .arena{background:linear-gradient(90deg,#090710df,#09071020 25%,#09071020 75%,#090710df),url('/assets/junkyard/warehouse-bg.webp?v=20261024-art-v229') center/cover}
  .battle-screen .arena-stage{width:min(100%,calc((100dvh - 280px)*.98),900px);box-shadow:0 0 0 3px #221629,0 0 35px #000}
  .battle-screen .tower{width:min(18%,110px)}
  .battle-screen .tower.king{width:min(25%,125px)}
  .battle-screen .battle-hand,.battle-screen .battle-elixir{width:min(100%,780px);margin-inline:auto}
  .deck-grid{grid-template-columns:repeat(8,minmax(0,1fr))}
  .collection{grid-template-columns:repeat(6,minmax(0,1fr))}
  .offers{grid-template-columns:repeat(4,minmax(0,1fr))}
  #screen:has(>.junk-hero){display:grid;grid-template-columns:minmax(0,1.25fr) minmax(330px,.75fr);gap:12px 18px;align-content:start}
  #screen:has(>.junk-hero)>.junk-hero,#screen:has(>.junk-hero)>.home-shortcuts{grid-column:1/-1}
  #screen:has(>.junk-hero)>.home-deck{grid-column:1;grid-row:3/5;margin:0}
  #screen:has(>.junk-hero)>.arena-rank{grid-column:2;grid-row:3;margin:0}
  #screen:has(>.junk-hero)>.junk-event{grid-column:2;grid-row:4;margin:0}
  .home-deck .deck-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .junk-hero .junk-logo-art{top:8px;left:20px;width:360px;height:195px;transform:none}
  .junk-hero .art-button{left:50%;right:auto;width:min(50%,460px);height:145px;transform:translateX(-50%) rotate(-2deg)}
  .junk-hero .art-button:active{transform:translateX(-50%) rotate(-2deg) scale(.96)}
  .junk-hero .art-button img{object-fit:contain}
}

/* One scrolling document, including header and tab bar. Telegram's fullscreen
   content inset is supplied by its API when the host does not expose CSS vars. */
:root{--game-safe-top:max(env(safe-area-inset-top,0px),var(--tg-safe-area-inset-top,0px),var(--tg-content-safe-area-inset-top,0px),var(--telegram-content-top,0px))}
html{scroll-behavior:smooth}
body{display:block;overflow-y:auto;overscroll-behavior-y:contain}
#game{display:flex;flex-direction:column;min-height:100dvh;padding-bottom:0}
.topbar{position:relative;top:auto;flex:none;min-height:calc(70px + var(--game-safe-top));height:auto;padding-top:calc(6px + var(--game-safe-top))}
.screen{flex:1;min-height:0}
.bottom-nav{position:relative;bottom:auto;left:auto;transform:none;width:100%;flex:none;margin-top:12px;height:calc(70px + var(--game-safe-bottom));border-top:2px solid #424656;background:linear-gradient(#161b29,#090b12);box-shadow:0 -6px 20px #0009}
.bottom-nav button.active{background:#faff00;color:#050507;text-shadow:none;box-shadow:inset 0 0 0 2px #fff46a;border-radius:8px}
.bottom-nav button.active img{filter:brightness(0)}
.toast{bottom:calc(16px + var(--game-safe-bottom))}
.ui-back{flex:none;min-width:29px;height:34px;padding:0;border:2px solid #6c738b;border-radius:6px;background:#161b2a;color:#faff00;font:900 32px/25px JunkOswald,sans-serif}
.ui-back[hidden]{display:none}
.identity{min-width:0}.identity .avatar img{max-width:100%;width:100%;height:100%;transform:none}
.topbar .identity strong{font-size:clamp(13px,3.6vw,20px)}
@media(max-width:430px){.topbar{display:flex;flex-wrap:wrap;align-content:flex-start;gap:3px;min-height:calc(102px + var(--game-safe-top));padding-top:calc(5px + var(--game-safe-top))}.identity{height:49px;flex:1}.wallet{width:100%;grid-template-columns:repeat(3,minmax(0,1fr))}.ui-back+.identity strong{max-width:140px}}
@media(min-width:768px){.bottom-nav{width:100%}.topbar{min-height:calc(70px + var(--game-safe-top))}}
.home-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.home-shortcuts button{min-height:86px}.home-shortcuts small{line-height:1.1}
.card-tap{display:block;width:100%;min-width:0;border:0;padding:0;background:transparent;color:inherit;text-align:center;cursor:pointer}.card-tap .card{pointer-events:none}
.collection-item{position:relative;padding:3px;border-radius:8px;background:#080a11;border:1px solid #42495b;box-shadow:0 3px #050509}.collection-item .card-name{color:#faff00;font-size:clamp(10px,2.5vw,14px);min-height:26px}.collection-item small{display:block;padding:4px;font-size:11px}.collection-item.upgrade-ready{border-color:#faff00;box-shadow:0 0 9px #eff80088,0 3px #050509}.upgrade-cue{display:block;position:absolute;z-index:3;top:0;right:0;padding:3px;background:#6eff39;color:#061308;font:900 9px JunkOswald,sans-serif}
.deck-slot.vip-locked{filter:grayscale(.45);border-color:#b11fd1}.deck-slot.vip-locked small{color:#faff00}
.yellow-btn{border:2px solid #e6ed50;border-radius:6px;background:linear-gradient(#ffff39,#dcdd00);color:#050508;font:900 17px JunkOswald,sans-serif;box-shadow:inset 0 1px #fff9,0 4px #080807;padding:7px 10px}.yellow-btn:disabled{filter:grayscale(.6);opacity:.7}
.modal{padding:calc(var(--game-safe-top) + 10px) 9px calc(var(--game-safe-bottom) + 10px);align-items:center}
.modal-box{position:relative;width:min(100%,620px);max-height:calc(100dvh - var(--game-safe-top) - var(--game-safe-bottom) - 20px);overflow-y:auto;padding:15px;border:3px solid #faff00;border-radius:8px;background:linear-gradient(150deg,#212231,#0b0e16 60%);box-shadow:0 18px 40px #000e,inset 0 1px #ffffff66;text-align:left;scrollbar-color:#d71fe5 #11131b}
.modal-box h2{padding-right:25px;color:#faff00;font:900 28px JunkOswald,sans-serif;text-shadow:3px 3px #000}
.modal-x{position:absolute;right:8px;top:7px;z-index:3;width:29px;height:29px;border:1px solid #767d91;border-radius:4px;background:#151a25;color:white;font-size:23px;line-height:1}
.modal-actions{margin-top:10px}.modal-actions button{min-height:36px}
.modal-box .daily-panel{border:0;background:transparent;box-shadow:none;padding:0}.modal-box .daily-head{padding:7px}.modal-box .daily-head h3{font-size:19px}.modal-box .daily-item{margin:6px 0}
.chest-modal{text-align:center}.chest-modal img{width:min(55%,190px);display:block;margin:0 auto;filter:drop-shadow(0 0 14px #c521df)}.chest-modal strong{color:#faff00}
.chest-modal.chest-opening{position:relative}
.chest-modal.chest-opening:after{content:'';position:absolute;left:50%;top:12%;width:min(48vw,150px);aspect-ratio:1;border:2px solid #4beaff;border-radius:50%;box-shadow:0 0 9px #48dfff,inset 0 0 12px #d21be9;transform:translate(-50%,0) scale(.65);opacity:0;pointer-events:none;animation:chest-charge .42s ease-out both}
.chest-modal.chest-opening>img{animation:chest-rattle .42s ease-in-out both}
@keyframes chest-rattle{0%,100%{transform:translateY(0) rotate(0);filter:drop-shadow(0 0 14px #c521df)}18%{transform:translateY(-2px) rotate(-3deg)}38%{transform:translateY(0) rotate(3deg);filter:drop-shadow(0 0 22px #42eaff)}58%{transform:translateY(-3px) rotate(-2deg)}78%{transform:translateY(0) rotate(2deg);filter:drop-shadow(0 0 25px #ffe632)}}
@keyframes chest-charge{0%{transform:translate(-50%,0) scale(.6);opacity:0}35%{opacity:.9}100%{transform:translate(-50%,0) scale(1.25);opacity:0}}
.card-detail{display:grid;grid-template-columns:minmax(115px,40%) 1fr;gap:12px;align-items:start}.card-detail-art{width:100%;border:3px solid #d326e7;border-radius:7px;box-shadow:0 0 15px #b013c48c}.card-detail-info p{font-size:14px;color:#eee}.rarity-tag{display:inline-block;background:#d325df;color:#050507;padding:3px 8px;font:900 13px JunkOswald,sans-serif}.rarity-tag.legendary,.rarity-tag.titan{background:#faff00}.rarity-tag.rare{background:#31c6ef}.card-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin:9px 0}.card-stats span{padding:5px;background:#121723;border:1px solid #464e63;border-radius:4px;color:#c5c9d5;font-size:11px}.card-stats b{display:block;color:#fff;font-size:15px}.card-detail-actions{display:grid;grid-template-columns:repeat(2,1fr);gap:5px;margin-top:12px}.card-detail-actions button{min-height:38px}.card-detail-info small{color:#faff00}
.pass-hero{min-height:210px;padding:18px 14px;border:3px solid #faff00;border-radius:7px;background:linear-gradient(90deg,#080911eb 4%,#0a0a1a5a 80%),url('/assets/branding/battle-pass-scene.webp?v=20261024-art-v229') center/cover;box-shadow:0 5px #040506}.pass-hero-copy{max-width:55%}.pass-hero h1,.vip-hero h1{font:900 clamp(32px,8vw,68px)/.95 JunkOswald,sans-serif;color:#faff00;text-shadow:4px 5px #000,-1px -1px #000;margin:8px 0}.pass-hero p,.vip-hero p{font-weight:900;color:#fff}.pass-hero strong{color:#faff00}.pass-summary{display:grid;grid-template-columns:1fr 1fr;gap:7px}.pass-summary>div{padding:8px;border:1px solid #65657b;background:#080a12}.pass-summary b,.pass-summary small{display:block}.pass-summary b{color:#faff00;font:900 17px JunkOswald,sans-serif}.pass-summary small{font-size:11px;color:#adb0c0}.pass-summary button{grid-column:1/-1}.pass-list{display:grid;gap:7px;margin:11px 0}.pass-tier{display:grid;grid-template-columns:38px 1fr 1fr;gap:5px;align-items:stretch;background:#0d1019;border:2px solid #4e5260;border-radius:7px;padding:5px}.pass-tier-number{display:grid;place-items:center;color:#0a0a0b;background:#faff00;font:900 24px JunkOswald,sans-serif}.pass-reward{display:flex;flex-direction:column;gap:4px;min-width:0;padding:5px;background:#171b28}.pass-reward.premium{background:#29102b}.pass-reward small{color:#faff00;font:900 11px JunkOswald,sans-serif}.pass-reward strong{font-size:12px;min-height:30px}.pass-reward button{font-size:12px;padding:5px;margin-top:auto}
.vip-hero{padding:22px 15px;border:3px solid #faff00;border-radius:6px;background:linear-gradient(90deg,#090911ef,#1b0c23a2),url('/assets/branding/battle-pass-scene.webp?v=20261024-art-v229') center/cover}.vip-offers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.vip-offer{display:flex;flex-direction:column;gap:7px}.vip-offer>span{color:#faff00;font:900 16px JunkOswald,sans-serif}.vip-offer h2{font:900 26px JunkOswald,sans-serif;margin:0}.vip-offer p{flex:1;font-size:13px;margin:0}.vip-offer small{color:#b6b7c5}.vip-offer button{font-size:13px}
.rank-my{display:flex;align-items:center;gap:13px}.rank-my strong{color:#faff00;font:900 32px JunkOswald,sans-serif}.rank-my b{margin-left:auto}.leader-row{display:grid;grid-template-columns:28px 42px 1fr auto;gap:6px;align-items:center;border-bottom:1px solid #4b5160;padding:7px 2px}.leader-row.me{background:#faff0022}.leader-row>b{color:#faff00}.leader-row img:not(.tiny-icon){width:40px;height:40px;border-radius:50%;object-fit:cover;border:2px solid #d22ce3}.leader-row strong,.leader-row small{display:block}.leader-row small{color:#b2b5c4}.leader-row span{white-space:nowrap;font-weight:900}.rank-list{display:grid;gap:3px}.rank-line{display:grid;grid-template-columns:29px 1fr auto;gap:6px;padding:6px;border-bottom:1px solid #4a4f5d;font-size:12px}.rank-line b{color:#faff00}
.profile-hero{grid-template-columns:78px 1fr auto;grid-template-rows:auto;gap:7px;margin:0 0 9px;padding:11px}.profile-hero .profile-avatar{grid-row:1;width:72px;height:72px}.profile-intro{min-width:0}.profile-intro h1{font-size:clamp(18px,4.8vw,26px);white-space:normal}.profile-intro p,.profile-intro small{display:block;color:#b8bac7;font-size:11px}.profile-intro strong{display:block;color:#faff00;font-size:12px}.profile-hero .profile-score{grid-column:3;grid-row:1;font-size:15px;white-space:nowrap}.vip-badge{display:inline-block;padding:1px 4px;color:#050506;background:#faff00;border-radius:3px;font:900 13px JunkOswald,sans-serif;vertical-align:middle}.profile-avatar-controls{display:flex;align-items:center;gap:5px}.profile-avatar-controls span{margin-right:auto;color:#faff00;font-weight:900}.profile-avatar-controls button{font-size:12px}.profile-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.profile-stats>div{display:grid;justify-items:center;gap:2px;padding:7px 2px;border:1px solid #4b5367;background:#0d111b;text-align:center}.profile-stats img{height:25px;width:25px}.profile-stats small{font-size:9px;color:#b3b8c7}.profile-stats b{color:#fff;font:900 19px JunkOswald,sans-serif}.profile-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:11px 0}.profile-actions button{min-height:63px;padding:7px;border:2px solid #495367;border-radius:6px;background:linear-gradient(#1c2230,#0b0e16);color:#faff00;text-align:left;font:900 16px JunkOswald,sans-serif}.profile-actions img{width:26px;height:26px;vertical-align:middle}.profile-actions small{float:right;color:white}
@media(max-width:420px){.vip-offers{grid-template-columns:1fr}.profile-hero{grid-template-columns:62px 1fr;grid-template-rows:auto auto}.profile-hero .profile-avatar{width:58px;height:58px}.profile-hero .profile-score{grid-column:2;grid-row:2;justify-self:start}.pass-hero{min-height:180px}.pass-hero-copy{max-width:70%}.card-detail{grid-template-columns:35% 1fr}.card-stats{grid-template-columns:1fr 1fr}}
#game[hidden]{display:none}
.shop-subscriptions{border-color:#faff00}.shop-subscriptions h3{color:#faff00;font:900 24px JunkOswald,sans-serif;margin:0}.shop-subscriptions>div{display:flex;gap:7px}.shop-subscriptions button{flex:1;font-size:13px}
@media(max-width:430px){.topbar .ui-back{order:0}.topbar .identity{order:1}.topbar .settings-btn{order:2;margin-left:auto}.topbar .wallet{order:3;flex-basis:100%}.topbar:has(.ui-back:not([hidden])) .identity{flex:1;min-width:0}.topbar .settings-btn{width:31px;height:31px}}
.loading{padding-top:calc(clamp(95px,13dvh,150px) + var(--game-safe-top))}
@media(min-width:768px){#screen:has(>.junk-hero)>.junk-hero{grid-row:1}#screen:has(>.junk-hero)>.quip-panel{grid-column:1/-1;grid-row:2}#screen:has(>.junk-hero)>.home-shortcuts{grid-row:3}#screen:has(>.junk-hero)>.home-deck{grid-column:1;grid-row:4/6}#screen:has(>.junk-hero)>.arena-rank{grid-column:2;grid-row:4}#screen:has(>.junk-hero)>.junk-event{grid-column:2;grid-row:5}}
.card-lore{padding:7px;border-left:3px solid #d325e8;background:#1f1425;color:#dad6e1!important;font-size:12px!important;font-style:italic}

/* Telegram chrome and navigation: the document owns scrolling. */
:root{--game-safe-top:max(env(safe-area-inset-top,0px),calc(var(--tg-safe-area-inset-top,0px) + var(--tg-content-safe-area-inset-top,0px)),var(--telegram-top-offset,0px))}
html,body{height:auto;overflow-x:clip;overflow-y:auto}
body{display:block}
.app{overflow:clip}
#game{overflow:visible;min-height:100dvh}
.topbar{position:static;top:auto;z-index:12}
.bottom-nav{position:sticky;bottom:0;left:auto;transform:none;z-index:30;margin-top:0;min-height:calc(70px + var(--game-safe-bottom));height:auto;align-self:stretch}
.bottom-nav button{min-height:68px;padding-bottom:2px}
.ui-back{display:grid;place-items:center;min-width:34px;width:34px;height:34px;line-height:1;font-size:28px}
.ui-back[data-action="exit-app"]{color:#fff;border-color:#ec2c57;background:#42101e}
@media(max-width:430px){.topbar{min-height:calc(105px + var(--game-safe-top))}.identity strong{max-width:clamp(64px,26vw,140px)}}
/* Keep navigation usable on the first screen of a long page. */
#game{padding-bottom:calc(78px + var(--game-safe-bottom))}
.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,520px);margin-top:0}
@media(min-width:768px){.bottom-nav{width:100%}}
/* Active battles cover the ordinary page navigation. */
.battle-screen{z-index:40}

/* The Telegram header owns close/back. Pin only the game's status HUD. */
:root{--game-header-height:calc(70px + var(--game-safe-top))}
@media(max-width:430px){:root{--game-header-height:calc(105px + var(--game-safe-top))}}
#game{padding-top:var(--game-header-height)}
.topbar{position:fixed;top:0;left:50%;transform:translateX(-50%);width:min(100%,520px);height:var(--game-header-height);min-height:var(--game-header-height);z-index:35}
@media(min-width:768px){.topbar{width:100%}}

/* Profile summary: keep the name, rank and trophy band aligned at every width. */
.profile-hero{display:grid;grid-template-columns:80px minmax(0,1fr);grid-template-rows:auto auto;column-gap:12px;row-gap:7px;align-items:center;min-height:132px;padding:13px;border:2px solid #646777;border-top:5px solid #faff00;background:linear-gradient(135deg,#252635,#0a0d16 70%)}
.profile-hero .profile-avatar{grid-column:1;grid-row:1/3;width:76px;height:76px;align-self:start;margin:0;box-shadow:0 0 0 3px #e9f000,0 0 15px #dc17ed80}
.profile-hero .profile-avatar img{width:100%;height:100%;object-fit:cover}
.profile-intro{grid-column:2;grid-row:1;min-width:0}
.profile-intro h1{margin:0 0 3px;font-size:clamp(20px,5vw,28px);line-height:1.02;overflow-wrap:anywhere}
.profile-intro p,.profile-intro small{margin:2px 0;font-size:clamp(10px,2.7vw,12px);line-height:1.15}
.profile-intro strong{margin-top:4px;color:#faff00;font-size:13px}
.profile-hero .profile-score{grid-column:2;grid-row:2;display:flex;align-items:center;gap:6px;justify-self:stretch;width:100%;min-width:0;padding:6px 9px;border:1px solid #faff00;border-radius:5px;background:#10121d;color:#faff00;font-size:19px;line-height:1}
.profile-hero .profile-score::before{content:'КУБКИ';margin-right:auto;color:#d3d5e0;font:700 11px JunkOswald,sans-serif}
.profile-hero .profile-score .tiny-icon{width:20px;height:20px}
.profile-avatar-controls,.level-panel{border-color:#555968;background:#121722}
.profile-stats>div{min-width:0;border:1px solid #606779;border-radius:5px;background:#151923}
.profile-stats b{font-size:clamp(16px,4.6vw,22px);overflow-wrap:anywhere}
@media(max-width:360px){.profile-hero{grid-template-columns:66px minmax(0,1fr);gap:6px;padding:10px}.profile-hero .profile-avatar{width:62px;height:62px}.profile-intro h1{font-size:20px}.profile-hero .profile-score{font-size:16px}.profile-stats small{font-size:8px}}
.battle-exit-warning{display:flex;align-items:center;gap:11px;padding:12px;border:2px solid #d420e4;border-radius:7px;background:linear-gradient(110deg,#2d132f,#10131e)}
.battle-exit-warning img{width:72px;height:76px;object-fit:contain;flex:none;filter:drop-shadow(0 0 8px #e522e8)}
.battle-exit-warning strong{color:#faff00;font:700 18px JunkOswald,sans-serif}
.battle-exit-warning p{margin:5px 0 0;font-size:13px;line-height:1.25}
.battle-exit-warning+.modal-actions{display:grid;grid-template-columns:1fr 1fr}

/* Labubu generated battle animation */
/* Labubu generated battle animation */
.unit.unit-king.unit-animated-labubu{width:74px;height:68px;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
.unit.unit-king.unit-animated-labubu>.unit-sprite{display:block;width:100%;height:100%;object-fit:contain;border-radius:0;filter:drop-shadow(0 4px 2px #0009)}
.unit.unit-king.unit-animated-labubu .hpbar{z-index:3;left:15px;right:15px;bottom:-5px;height:4px}
.unit.unit-king.unit-labubu-buffed{filter:drop-shadow(0 0 7px #f329ed)}
.unit.unit-king.unit-motion-hit>.unit-sprite{animation:labubu-hit-flinch .36s ease-out}
@keyframes labubu-hit-flinch{0%,100%{transform:translateX(0)}25%{transform:translateX(-4px) rotate(-4deg)}65%{transform:translateX(3px) rotate(3deg)}}
.battle-fx.labubu-death{width:82px;height:76px;overflow:visible;filter:none;animation:labubu-death-pop .74s ease-out forwards}
.battle-fx.labubu-death>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 0 8px #f329ed)}
.battle-fx.labubu-death:before{content:'';position:absolute;z-index:2;left:50%;top:70%;width:34px;height:16px;border:3px solid #ff36ee;border-radius:50%;box-shadow:0 0 8px #ff35ef,0 0 18px #ff35ef;transform:translate(-50%,-50%) scale(.25);animation:labubu-buff-burst .74s ease-out forwards}
.battle-fx.labubu-death:after{content:'✦';position:absolute;z-index:3;left:50%;top:48%;color:#fff4a8;font-size:21px;text-shadow:0 0 8px #ff2de8,0 0 14px #42eaff;transform:translate(-50%,-50%);animation:labubu-buff-spark .74s ease-out forwards}
@keyframes labubu-death-pop{0%{opacity:0;scale:.65}18%{opacity:1;scale:1.04}100%{opacity:0;scale:1.15}}
@keyframes labubu-buff-burst{0%{opacity:0;transform:translate(-50%,-50%) scale(.25)}28%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(2.8)}}
@keyframes labubu-buff-spark{0%,35%{opacity:0;scale:.3}55%{opacity:1;scale:1.15}100%{opacity:0;scale:.6}}
@media(prefers-reduced-motion:reduce){.unit.unit-king.unit-motion-hit>.unit-sprite{animation:none}.battle-fx.labubu-death,.battle-fx.labubu-death:before,.battle-fx.labubu-death:after{animation:none;opacity:.8}}

/* 2026 combat/UI pass: keep actor nodes alive between server snapshots. */
.battle-screen .unit{transition:left 1.12s linear,top 1.12s linear}
.battle-screen .unit.unit-position-waapi{transition:none}
.battle-screen .unit.unit-position-moving{will-change:transform}
.unit.unit-king.unit-animated-labubu>.unit-sprite{transform-origin:center}
.unit.enemy.unit-king.unit-animated-labubu>.unit-sprite{transform:scaleX(-1)}
.unit.enemy.unit-king.unit-animated-labubu.unit-motion-attack>.unit-sprite{transform:none}
.unit.enemy.unit-king.unit-motion-hit>.unit-sprite{animation:labubu-hit-flinch-enemy .36s ease-out}
@keyframes labubu-hit-flinch-enemy{0%,100%{transform:scaleX(-1) translateX(0)}25%{transform:scaleX(-1) translateX(-4px) rotate(-4deg)}65%{transform:scaleX(-1) translateX(3px) rotate(3deg)}}
.battle-screen .unit.unit-king.unit-motion-attack>.unit-sprite{animation:labubu-aim-fire .32s ease-out both}
@keyframes labubu-aim-fire{0%,100%{transform:translate3d(0,0,0) scale(1)}19%{transform:translate3d(var(--aim-recoil-x,0px),var(--aim-recoil-y,0px),0) scale(1.06,.96)}47%{transform:translate3d(0,0,0) scale(1.01,.99)}}
.battle-projectile-layer{position:absolute;z-index:7;inset:0;overflow:hidden;pointer-events:none}
.battle-projectile{will-change:transform}
.battle-projectile{position:absolute;z-index:6;width:0;height:0;pointer-events:none}
.battle-projectile-rocket{position:absolute;left:0;top:0;width:clamp(52px,16vw,68px);height:auto;object-fit:contain;transform-origin:left center;filter:drop-shadow(0 0 2px #fff) drop-shadow(0 0 6px #ff991c) drop-shadow(0 0 10px #fa3fc7);will-change:transform}
.battle-projectile-trail{position:absolute;z-index:-1;top:0;right:48%;width:var(--trail-length,36px);height:5px;border-radius:99px;background:linear-gradient(90deg,#ff3e25 0%,#ff8a32 42%,#ffd264 76%,#fff5cc 100%);transform:translateY(-50%) rotate(var(--trail-angle,0deg));transform-origin:right center;filter:blur(1px) drop-shadow(0 0 6px #ff7a2c);opacity:.9}
.battle-projectile-muzzle{position:absolute;z-index:3;width:17px;height:17px;border-radius:50%;transform:translate(-50%,-50%);background:radial-gradient(circle,#fff 0 13%,#fff8b0 22%,#ff982b 49%,#ff3cbd 66%,transparent 74%);filter:drop-shadow(0 0 5px #fff) drop-shadow(0 0 11px #ff731e);animation:labubu-muzzle-pop .19s ease-out both}
@keyframes labubu-muzzle-pop{0%{opacity:0;scale:.25}22%{opacity:1;scale:1.35}100%{opacity:0;scale:.5}}
.battle-projectile-impact{position:absolute;z-index:4;left:0;top:0;width:clamp(76px,24vw,116px);aspect-ratio:1;opacity:0;visibility:hidden;transform:translate(-50%,-50%) scale(.35);filter:drop-shadow(0 0 9px #ff9429)}
.battle-projectile-impact>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 0 8px #ff7b23) drop-shadow(0 0 16px #fb34bd)}
.battle-projectile-impact .impact-ring{position:absolute;left:50%;top:50%;width:38%;aspect-ratio:1;border:2px solid #92f8ff;border-radius:50%;box-shadow:0 0 7px #fff,0 0 15px #ed41e8;transform:translate(-50%,-50%) scale(.4);opacity:0}
.battle-projectile-impact .impact-core{position:absolute;left:50%;top:50%;width:12%;aspect-ratio:1;border-radius:50%;background:#fffce1;box-shadow:0 0 8px #fff,0 0 17px #ff8d24;transform:translate(-50%,-50%) scale(.2);opacity:0}
.battle-projectile.is-impacting .battle-projectile-rocket,.battle-projectile.is-impacting .battle-projectile-trail{opacity:0;transition:opacity .045s linear}
.battle-projectile.is-impacting .battle-projectile-impact{visibility:visible;animation:labubu-rocket-impact .62s cubic-bezier(.16,.72,.25,1) both}
.battle-projectile.is-impacting .impact-ring{animation:labubu-rocket-ring .48s .02s ease-out both}
.battle-projectile.is-impacting .impact-core{animation:labubu-rocket-core .32s ease-out both}
.battle-projectile-impact>img.mimic-jaw-impact-art{inset:auto;left:50%;top:50%;width:94%;height:82%;filter:drop-shadow(0 0 5px #fff2a2) drop-shadow(0 0 12px #ff8e36) drop-shadow(0 0 15px #47ddff)}
.battle-projectile.is-impacting .mimic-jaw-impact-art{animation:mimic-trap-snap .44s cubic-bezier(.14,.82,.2,1) both}
@keyframes mimic-trap-snap{0%{opacity:0;transform:translate(-50%,-50%) scale(.42) rotate(-10deg)}22%{opacity:1;transform:translate(-50%,-50%) scale(1.12) rotate(4deg)}48%{opacity:.96;transform:translate(-50%,-50%) scale(.94) rotate(-2deg)}72%{opacity:.58;transform:translate(-50%,-50%) scale(1.04) rotate(1deg)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.2) rotate(3deg)}}
@keyframes labubu-rocket-impact{0%{opacity:0;transform:translate(-50%,-50%) scale(.25)}12%{opacity:1;transform:translate(-50%,-50%) scale(1.04)}46%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.16)}}
@keyframes labubu-rocket-ring{0%{opacity:0;transform:translate(-50%,-50%) scale(.35)}20%{opacity:.9}100%{opacity:0;transform:translate(-50%,-50%) scale(2.45)}}
@keyframes labubu-rocket-core{0%{opacity:0;transform:translate(-50%,-50%) scale(.2)}23%{opacity:1;transform:translate(-50%,-50%) scale(1.7)}100%{opacity:0;transform:translate(-50%,-50%) scale(.4)}}
@media(prefers-reduced-motion:reduce){.battle-projectile-muzzle{display:none!important}.battle-projectile-trail,.battle-projectile-rocket,.battle-projectile-impact,.battle-projectile-impact .impact-ring,.battle-projectile-impact .impact-core{animation:none;transition:none}.battle-projectile.is-impacting .battle-projectile-impact{visibility:visible;opacity:.88;transform:translate(-50%,-50%) scale(1)}}
@media(prefers-reduced-motion:reduce){.battle-projectile.is-impacting .battle-projectile-impact .impact-ring{opacity:.9!important;transform:translate(-50%,-50%) scale(1)!important}.battle-projectile.is-impacting .battle-projectile-impact .impact-core{opacity:1!important;transform:translate(-50%,-50%) scale(1)!important}}
.battle-fx.labubu-shot{inset:0;width:100%;height:100%;overflow:visible;transform:none;animation:none;filter:none;z-index:7}
.screen.screen-enter{animation:screen-enter .16s cubic-bezier(.2,.7,.3,1) both}
@keyframes screen-enter{from{opacity:.45;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
.modal:not([hidden])>.modal-box{animation:modal-enter .2s cubic-bezier(.16,1,.3,1) both}
@keyframes modal-enter{from{opacity:0;transform:translateY(9px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
.bottom-nav button{transition:background-color .14s ease,filter .14s ease}
.bottom-nav button:active,.home-shortcuts button:active{filter:brightness(1.24);transform:scale(.97)}
.chest-modal>img{animation:chest-idle 1.8s ease-in-out infinite;transform-origin:50% 78%}
@keyframes chest-idle{0%,100%{transform:translateY(0) rotate(0);filter:drop-shadow(0 0 10px #dc24f0)}50%{transform:translateY(-4px) rotate(-1.5deg);filter:drop-shadow(0 0 17px #38eaff)}}
.chest-modal.chest-opened{position:relative;padding-top:4px}
.chest-modal.chest-opened:before{content:'✦';position:absolute;left:50%;top:10px;color:#fff69b;font-size:24px;line-height:1;text-shadow:0 0 9px #ff2de8,0 0 18px #32edff;animation:chest-spark .72s ease-out both;pointer-events:none}
.chest-modal.chest-opened>img{animation:chest-open-bounce .65s cubic-bezier(.2,.8,.2,1) both}
@keyframes chest-open-bounce{0%{transform:translateY(0) scale(1)}22%{transform:translateY(-13px) scale(1.08);filter:drop-shadow(0 0 25px #fff15b)}52%{transform:translateY(2px) scale(.94)}74%{transform:translateY(-4px) scale(1.02)}100%{transform:translateY(0) scale(1)}}
@keyframes chest-spark{0%{opacity:0;transform:translate(-50%,18px) scale(.25)}35%{opacity:1}100%{opacity:0;transform:translate(-50%,-40px) scale(1.2)}}
.chest-reward-card{position:relative;width:63px;height:76px;margin:-21px auto 3px;z-index:2;filter:drop-shadow(0 0 8px #dc2df0);animation:reward-pop .5s .18s cubic-bezier(.16,1,.3,1) both}
.chest-reward-card>img{width:100%;height:100%;object-fit:cover;border:2px solid #ffeb58;border-radius:7px}
.chest-reward-card>span{position:absolute;right:-8px;bottom:-5px;min-width:23px;padding:2px 4px;border:2px solid #faff00;border-radius:10px;background:#171020;color:#faff00;font-weight:1000}
.chest-coins{color:#fff493;font-weight:1000;text-shadow:0 0 9px #ffbd29}
@keyframes reward-pop{from{opacity:0;transform:translateY(9px) scale(.55)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(prefers-reduced-motion:reduce){.screen.screen-enter,.modal:not([hidden])>.modal-box,.chest-modal>img,.chest-modal.chest-opening:after,.chest-modal.chest-opening>img,.chest-modal.chest-opened:before,.chest-modal.chest-opened>img,.chest-reward-card{animation:none;transform:none}.battle-screen .unit,.bottom-nav button,.home-shortcuts button{transition:none}.unit.enemy.unit-king.unit-motion-hit>.unit-sprite{animation:none}}

/* Projectile trail follows the rocket and disappears with it; no static aim beam. */
.labubu-shot .rocket-trail{fill:none;stroke:#ff9c38;stroke-width:2.45;stroke-linecap:round;stroke-dasharray:16 100;stroke-dashoffset:0;opacity:0;filter:drop-shadow(0 0 2px #fff) drop-shadow(0 0 5px #ffbe3c) drop-shadow(0 0 10px #ff4e1e);animation:rocket-tail-follow .43s linear both}
.labubu-shot.enemy-shot .rocket-trail{stroke:#ff66b8;filter:drop-shadow(0 0 2px #fff) drop-shadow(0 0 5px #ff42b8) drop-shadow(0 0 10px #ff2c61)}
@keyframes rocket-tail-follow{0%{stroke-dashoffset:0;opacity:.15}12%{opacity:1}76%{stroke-dashoffset:-82;opacity:.95}100%{stroke-dashoffset:-92;opacity:0}}
.labubu-shot .shot-rocket{filter:drop-shadow(0 0 2px #fff) drop-shadow(0 0 7px #ff9f2d) drop-shadow(0 0 13px #ff5420)}
.labubu-shot .shot-rocket .rocket-body{fill:#fff6b8;stroke:#ff6b1b;stroke-width:.38}
.labubu-shot .shot-rocket .rocket-fin{fill:#ff4bbf;stroke:#fff1ab;stroke-width:.32}
.labubu-shot .shot-rocket .rocket-flame{fill:#fff276;filter:drop-shadow(0 0 3px #fff) drop-shadow(0 0 7px #ff4020)}
.labubu-shot .shot-muzzle{fill:#fffbd7;stroke:#ff9c24;stroke-width:.7;filter:drop-shadow(0 0 4px #fff) drop-shadow(0 0 11px #ff711b)}
.labubu-shot .blast-ring.outer{stroke:#fc45de;stroke-width:1.1;filter:drop-shadow(0 0 3px #fff) drop-shadow(0 0 9px #e900ff)}
.labubu-shot .blast-ring.inner{stroke:#fffbd2;stroke-width:1.4;filter:drop-shadow(0 0 5px #fff) drop-shadow(0 0 11px #ffb11c)}
.labubu-shot .blast-ring.heat{fill:#ffb522;stroke:#fff6ab;stroke-width:.45;filter:drop-shadow(0 0 8px #ff6017)}
.labubu-shot .rocket-blast{filter:drop-shadow(0 0 5px #fff4a4) drop-shadow(0 0 14px #ff761b)}
.labubu-shot .blast-ring{fill:none;stroke:#fff6cb;stroke-width:.7;filter:drop-shadow(0 0 3px #fff) drop-shadow(0 0 8px #ff8a20)}
.labubu-shot.enemy-shot .blast-ring{stroke:#ffd4ef;filter:drop-shadow(0 0 3px #fff) drop-shadow(0 0 8px #ff37b9)}
.labubu-shot .blast-flash{fill:#fffbd7;filter:drop-shadow(0 0 5px #fff) drop-shadow(0 0 14px #ffb220)}
.labubu-shot .blast-bloom{fill:#ff7a20;stroke:#ffc865;stroke-width:.45;filter:drop-shadow(0 0 7px #fff7c2) drop-shadow(0 0 15px #ff641c) drop-shadow(0 0 24px #f32665)}
.labubu-shot .blast-sparks{display:none}
.labubu-shot .blast-core{fill:#fff;filter:drop-shadow(0 0 4px #fff) drop-shadow(0 0 12px #ff941e)}
.labubu-shot .blast-debris{filter:drop-shadow(0 0 4px #ffda48)}
.labubu-shot .debris-a{fill:#fff8b4}.labubu-shot .debris-b{fill:#ff9d32}.labubu-shot .debris-c{fill:#ffe16a}
@media(prefers-reduced-motion:reduce){.labubu-shot .rocket-trail{display:none}.labubu-shot .shot-rocket,.labubu-shot .shot-muzzle,.labubu-shot .blast-sparks,.labubu-shot .blast-debris,.labubu-shot .blast-ring{display:none}.labubu-shot .rocket-blast{opacity:1!important}}

/* Smooth motion states for the roster while custom clips are prepared per hero. */
.battle-screen .unit>.unit-sprite{transform-origin:50% 82%}
.battle-screen .unit:not(.unit-king).unit-motion-idle>.unit-sprite{animation:unit-idle-bob 2.8s ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit:not(.unit-king).unit-motion-walk>.unit-sprite{animation:unit-walk-bob var(--walk-half-cycle,.5s) ease-in-out var(--unit-phase,0s) infinite alternate}
.battle-screen .unit:not(.unit-king).unit-motion-attack>.unit-sprite{animation:unit-attack-pop .42s cubic-bezier(.2,.8,.25,1) both}
.battle-screen .unit:not(.unit-king).unit-motion-hit>.unit-sprite{animation:unit-hit-flinch .38s ease-out both}
.battle-screen .unit.player.unit-motion-attack>.unit-sprite{animation-name:unit-attack-pop-player}
.battle-screen .unit.enemy.unit-motion-attack>.unit-sprite{animation-name:unit-attack-pop-enemy}
@keyframes unit-idle-bob{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-1.5px) scale(1.015)}}
@keyframes unit-walk-bob{0%{transform:translate3d(0,0,0) rotate(-.55deg) scaleX(.985) scaleY(1.015)}100%{transform:translate3d(0,-1.8px,0) rotate(.55deg) scaleX(1.015) scaleY(.985)}}
@keyframes unit-attack-pop{0%{transform:translateX(0) scale(1)}38%{transform:translateX(3px) scale(1.14,.88)}68%{transform:translateX(-1px) scale(.97,1.04)}100%{transform:translateX(0) scale(1)}}
@keyframes unit-attack-pop-player{0%{transform:translateY(0) scale(1)}38%{transform:translateY(-4px) scale(1.12,.9)}68%{transform:translateY(1px) scale(.97,1.04)}100%{transform:translateY(0) scale(1)}}
@keyframes unit-attack-pop-enemy{0%{transform:translateY(0) scale(1)}38%{transform:translateY(4px) scale(1.12,.9)}68%{transform:translateY(-1px) scale(.97,1.04)}100%{transform:translateY(0) scale(1)}}
@keyframes unit-hit-flinch{0%,100%{transform:translateX(0)}26%{transform:translateX(-3px) rotate(-3deg)}62%{transform:translateX(2px) rotate(2deg)}}

/* Per-character gait cues; generated walk clips remain preferred where available. */
.battle-screen .unit.unit-banana.unit-motion-walk>.unit-sprite{animation:walk-banana-hop var(--walk-half-cycle,.35s) ease-in-out infinite alternate;transform-origin:47% 88%}
.battle-screen .unit.unit-cat.unit-motion-walk>.unit-sprite{animation:walk-cat-bound var(--walk-half-cycle,.5s) cubic-bezier(.35,0,.3,1) infinite alternate;transform-origin:52% 88%}
.battle-screen .unit.unit-bags.unit-motion-walk>.unit-sprite{animation:walk-bags-heave var(--walk-half-cycle,.5s) ease-in-out infinite alternate;transform-origin:50% 92%}
.battle-screen .unit.unit-tape.unit-motion-walk>.unit-sprite{animation:walk-tape-stretch var(--walk-half-cycle,.5s) ease-in-out infinite alternate;transform-origin:52% 88%}
.battle-screen .unit.unit-bubble.unit-motion-walk>.unit-sprite{animation:walk-bubble-skip var(--walk-half-cycle,.5s) cubic-bezier(.35,0,.3,1) infinite alternate;transform-origin:50% 88%}
.battle-screen .unit.unit-galya.unit-motion-walk>.unit-sprite{animation:walk-galya-step var(--walk-half-cycle,.5s) ease-in-out infinite alternate;transform-origin:48% 91%}
.battle-screen .unit.unit-courier.unit-motion-walk>.unit-sprite{animation:walk-courier-lean var(--walk-half-cycle,.35s) ease-in-out infinite alternate;transform-origin:50% 90%}
.battle-screen .unit.unit-yogurt.unit-motion-walk>.unit-sprite{animation:walk-yogurt-wobble var(--walk-half-cycle,.5s) ease-in-out infinite alternate;transform-origin:50% 88%}
.battle-screen .unit.unit-earbud.unit-motion-walk>.unit-sprite{animation:walk-earbud-twitch var(--walk-half-cycle,.35s) ease-in-out infinite alternate;transform-origin:50% 86%}
.battle-screen .unit.unit-sneaker.unit-motion-walk>.unit-sprite{animation:walk-sneaker-stomp var(--walk-half-cycle,.5s) ease-in-out infinite alternate;transform-origin:52% 92%}
.battle-screen .unit.unit-cables.unit-motion-walk>.unit-sprite{animation:walk-cables-sway var(--walk-half-cycle,.5s) ease-in-out infinite alternate;transform-origin:49% 89%}
.battle-screen .unit.unit-remote.unit-motion-walk>.unit-sprite{animation:walk-remote-glitch var(--walk-half-cycle,.5s) steps(1,end) infinite alternate;transform-origin:50% 88%}
.battle-screen .unit.unit-rolypoly.unit-motion-walk>.unit-sprite{animation:walk-rolypoly-rock var(--walk-half-cycle,.5s) cubic-bezier(.4,0,.25,1) infinite alternate;transform-origin:50% 88%}
.battle-screen .unit.unit-rat.unit-motion-walk>.unit-sprite{animation:walk-rat-scurr var(--walk-half-cycle,.35s) ease-in-out infinite alternate;transform-origin:48% 89%}
.battle-screen .unit.unit-ability-trap.unit-motion-walk>.unit-sprite,.battle-screen .unit.unit-ability-wall.unit-motion-walk>.unit-sprite,.battle-screen .unit.unit-ability-confuse.unit-motion-walk>.unit-sprite,.battle-screen .unit.unit-ability-titan_spawner.unit-motion-walk>.unit-sprite{animation:none!important}
@keyframes walk-banana-hop{0%{transform:translate3d(0,1px,0) rotate(-1.6deg) scale(.97,1.03)}42%{transform:translate3d(0,-.4px,0) rotate(-.2deg) scale(1.02,.98)}100%{transform:translate3d(0,-2.2px,0) rotate(1.5deg) scale(1.01,.99)}}
@keyframes walk-cat-bound{0%{transform:translate3d(0,1px,0) scale(1.02,.98)}38%{transform:translate3d(0,-2.7px,0) scale(.99,1.025)}68%{transform:translate3d(0,-1.1px,0) scale(1.035,.97)}100%{transform:translate3d(0,0,0) scale(.99,1.01)}}
@keyframes walk-bags-heave{0%{transform:translate3d(0,1px,0) rotate(-1deg) scale(1.035,.97)}48%{transform:translate3d(0,-1.2px,0) rotate(.45deg) scale(.99,1.015)}100%{transform:translate3d(0,.3px,0) rotate(1deg) scale(1.015,.99)}}
@keyframes walk-tape-stretch{0%{transform:translate3d(-.5px,.6px,0) rotate(-.9deg) scaleX(.975)}52%{transform:translate3d(0,-1.4px,0) rotate(.25deg) scaleX(1.035)}100%{transform:translate3d(.5px,-.2px,0) rotate(.85deg) scaleX(.99)}}
@keyframes walk-bubble-skip{0%{transform:translate3d(0,1px,0) scale(.98,1.04)}38%{transform:translate3d(0,-2.8px,0) scale(1.025,.96)}64%{transform:translate3d(0,-1px,0) scale(.985,1.025)}100%{transform:translate3d(0,.2px,0) scale(1.015,.99)}}
@keyframes walk-galya-step{0%{transform:translate3d(0,.6px,0) rotate(-.9deg) scale(1.015,.99)}45%{transform:translate3d(0,-1.1px,0) rotate(.15deg) scale(.995,1.012)}100%{transform:translate3d(0,.5px,0) rotate(.8deg) scale(1.01,.995)}}
@keyframes walk-courier-lean{0%{transform:translate3d(-.3px,.4px,0) rotate(-1.2deg) scale(.99,1.01)}38%{transform:translate3d(.2px,-1.6px,0) rotate(-2.6deg) scale(1.015,.99)}72%{transform:translate3d(.3px,-.7px,0) rotate(-1.8deg) scale(1.01,.995)}100%{transform:translate3d(0,.2px,0) rotate(-.8deg) scale(.995,1.005)}}
@keyframes walk-yogurt-wobble{0%{transform:translate3d(-.3px,.6px,0) rotate(-1.1deg) scale(1.02,.985)}36%{transform:translate3d(.2px,-.8px,0) rotate(.8deg) scale(.99,1.015)}66%{transform:translate3d(-.2px,-1.2px,0) rotate(-.65deg) scale(1.01,.995)}100%{transform:translate3d(.3px,.4px,0) rotate(.75deg) scale(.995,1.01)}}
@keyframes walk-earbud-twitch{0%{transform:translate3d(0,.4px,0) rotate(-.6deg) scale(.99,1.01)}34%{transform:translate3d(0,-1.6px,0) rotate(.35deg) scale(1.01,.995)}61%{transform:translate3d(.4px,-.4px,0) rotate(-.45deg) scale(.995,1.01)}100%{transform:translate3d(-.3px,.2px,0) rotate(.55deg) scale(1.005,.995)}}
@keyframes walk-sneaker-stomp{0%,100%{transform:translate3d(0,0,0) rotate(-.2deg) scale(1)}50%{transform:translate3d(0,-.35px,0) rotate(.2deg) scale(1.005,.995)}}
@keyframes walk-cables-sway{0%{transform:translate3d(-.2px,.3px,0) rotate(-1.2deg) scaleX(.99)}44%{transform:translate3d(.2px,-1.3px,0) rotate(.3deg) scaleX(1.015)}72%{transform:translate3d(.4px,-.5px,0) rotate(1.1deg) scaleX(1.005)}100%{transform:translate3d(-.3px,.1px,0) rotate(-.5deg) scaleX(.995)}}
@keyframes walk-remote-glitch{0%{transform:translate3d(-.8px,.2px,0) rotate(-.6deg)}26%{transform:translate3d(.7px,-.9px,0) rotate(.4deg)}53%{transform:translate3d(-.4px,-.2px,0) rotate(-.3deg)}78%{transform:translate3d(.8px,-1.1px,0) rotate(.6deg)}100%{transform:translate3d(-.3px,.2px,0) rotate(-.4deg)}}
@keyframes walk-rolypoly-rock{0%{transform:translate3d(0,.5px,0) rotate(-3.8deg) scale(.99,1.01)}42%{transform:translate3d(0,-1.5px,0) rotate(1.8deg) scale(1.015,.99)}70%{transform:translate3d(0,-.5px,0) rotate(3.2deg) scale(.995,1.005)}100%{transform:translate3d(0,.3px,0) rotate(-1.4deg) scale(1.005,.995)}}
@keyframes walk-rat-scurr{0%{transform:translate3d(-.3px,1px,0) rotate(-.7deg) scale(1.025,.97)}42%{transform:translate3d(.4px,-.7px,0) rotate(.3deg) scale(.99,1.015)}68%{transform:translate3d(-.2px,-1px,0) rotate(-.45deg) scale(1.01,.995)}100%{transform:translate3d(.2px,.5px,0) rotate(.65deg) scale(.995,1.01)}}
@media(prefers-reduced-motion:reduce){.battle-screen .unit{transition:none}.battle-screen .unit>.unit-sprite{animation:none!important}}

/* Buildings stay planted; their idle cue comes from the material and mechanism. */
.battle-screen .unit.unit-ability-trap.unit-motion-idle>.unit-sprite{animation:mimic-box-suspicious 3.2s ease-in-out infinite}
.battle-screen .unit.unit-ability-wall.unit-motion-idle>.unit-sprite{animation:paper-wall-idle 3s ease-in-out infinite}
.battle-screen .unit.unit-ability-wall.unit-motion-block>.unit-sprite{animation:paper-wall-thud .28s ease-out both}
.battle-screen .unit.unit-motion-block>.unit-sprite{animation:unit-wall-thunk .24s cubic-bezier(.2,.8,.25,1) both}
.battle-screen .unit.enemy.unit-motion-block>.unit-sprite{animation:unit-wall-thunk-enemy .24s cubic-bezier(.2,.8,.25,1) both}
.battle-screen .unit.unit-ability-confuse.unit-motion-idle>.unit-sprite{animation:manual-page-idle 3.4s ease-in-out infinite}
.battle-screen .unit.unit-ability-titan_spawner.unit-motion-idle>.unit-sprite{animation:titan-building-idle 2.8s ease-in-out infinite}
@keyframes mimic-box-suspicious{0%,47%,58%,100%{transform:rotate(0)}51%{transform:rotate(-1deg)}55%{transform:rotate(.7deg)}}
@keyframes paper-wall-idle{0%,100%{transform:scale(1)}50%{transform:scale(1.008)}}
@keyframes paper-wall-thud{0%,100%{transform:translateY(0) rotate(0)}28%{transform:translateY(-1px) rotate(-1deg)}62%{transform:translateY(1px) rotate(1deg)}}
@keyframes unit-wall-thunk{0%,100%{transform:translateY(0) scale(1)}35%{transform:translateY(-3px) scale(1.04,.94)}68%{transform:translateY(1px) scale(.99,1.02)}}
@keyframes unit-wall-thunk-enemy{0%,100%{transform:translateY(0) scale(1)}35%{transform:translateY(3px) scale(1.04,.94)}68%{transform:translateY(-1px) scale(.99,1.02)}}
@keyframes manual-page-idle{0%,100%{transform:rotate(0)}50%{transform:rotate(.35deg)}}
@keyframes titan-building-idle{0%,100%{transform:scale(1)}50%{transform:scale(1.012)}}

/* Per-ability micro-motion keeps the same silhouettes while giving each kit a readable rhythm. */
.battle-screen .unit.unit-ability-invis.unit-motion-idle>.unit-sprite{animation:sock-idle 3.2s ease-in-out var(--unit-phase,0s) infinite alternate}
.battle-screen .unit.unit-ability-hunger.unit-motion-idle>.unit-sprite{animation:tama-idle 3.2s ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-ability-spawner.unit-motion-idle>.unit-sprite,.battle-screen .unit.unit-ability-baglet.unit-motion-idle>.unit-sprite{animation:bag-rustle 3.1s ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-ability-glue.unit-motion-idle>.unit-sprite{animation:tape-idle 3.8s ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-ability-swarm_pop.unit-motion-idle>.unit-sprite{animation:bubble-idle 2.2s ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-ability-laser.unit-motion-idle>.unit-sprite{animation:eye-idle 3.5s ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-ability-passport.unit-motion-idle>.unit-sprite{animation:galya-idle 3.7s ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-ability-dash.unit-motion-idle>.unit-sprite{animation:courier-idle 2.4s ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-ability-poison.unit-motion-idle>.unit-sprite{animation:yogurt-idle 3.3s ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-ability-reveal.unit-motion-idle>.unit-sprite{animation:earbud-idle 3.1s ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-ability-stomp.unit-motion-idle>.unit-sprite{animation:sneaker-idle 3.4s ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-ability-chain5.unit-motion-idle>.unit-sprite{animation:cable-idle 3s ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-ability-swap.unit-motion-idle>.unit-sprite{animation:remote-idle 4.1s ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-ability-revive.unit-motion-idle>.unit-sprite{animation:roly-idle 2.7s ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-ability-steal.unit-motion-idle>.unit-sprite{animation:rat-idle 3.2s ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-ability-trap.unit-motion-attack>.unit-sprite{animation:mimic-bite .42s cubic-bezier(.15,.85,.2,1) both}
.battle-screen .unit.unit-ability-invis.unit-motion-attack>.unit-sprite{animation:sock-snap .34s cubic-bezier(.2,.8,.25,1) both}
.battle-screen .unit.unit-ability-hunger.unit-motion-attack>.unit-sprite{animation:tama-claw .38s cubic-bezier(.18,.85,.24,1) both}
.battle-screen .unit.unit-ability-hunger.unit-motion-feed>.unit-sprite{animation:tama-feed .54s cubic-bezier(.18,.9,.25,1.15) both}
.battle-screen .unit.unit-ability-spawner.unit-motion-attack>.unit-sprite,.battle-screen .unit.unit-ability-baglet.unit-motion-attack>.unit-sprite{animation:bag-pop .36s cubic-bezier(.2,.8,.25,1) var(--attack-delay,0ms) both}
.battle-screen .unit.unit-ability-glue.unit-motion-attack>.unit-sprite{animation:tape-whip .38s cubic-bezier(.2,.8,.25,1) both}
.battle-screen .unit.unit-ability-swarm_pop.unit-motion-attack>.unit-sprite{animation:bubble-pop-attack .32s cubic-bezier(.2,.8,.25,1) both}
.battle-screen .unit.unit-ability-laser.unit-motion-attack>.unit-sprite{animation:eye-shot .34s ease-out both}
.battle-screen .unit.unit-ability-passport.unit-motion-attack>.unit-sprite{animation:galya-stamp .38s cubic-bezier(.2,.8,.25,1) both}
.battle-screen .unit.unit-ability-dash.unit-motion-dash>.unit-sprite{animation:courier-dash-lean .54s cubic-bezier(.2,.8,.25,1) both}
.battle-screen .unit.unit-courier-dash-ready{border:0;border-radius:0;background:transparent;box-shadow:none}
.battle-screen .unit.unit-courier-dash-ready>.unit-sprite{opacity:0}
.battle-screen .unit.unit-courier-dash-ready .unit-courier-dash-atlas{position:absolute;z-index:2;inset:-8px -9px -7px;pointer-events:none;background-image:url('/assets/units/animations/courier/dash-v1.webp?v=20261015-courier-dash-v1');background-size:800% 100%;background-repeat:no-repeat;filter:drop-shadow(0 3px 2px #000b);animation:courier-dash-atlas-frames .54s steps(7,end) var(--dash-atlas-delay,0ms) both}
@keyframes courier-dash-atlas-frames{0%{background-position-x:0}87.5%,100%{background-position-x:100%}}
.battle-screen .unit.unit-ability-poison.unit-motion-attack>.unit-sprite{animation:yogurt-throw .38s cubic-bezier(.2,.8,.25,1) both}
.battle-screen .unit.unit-ability-reveal.unit-motion-attack>.unit-sprite{animation:earbud-scan .34s ease-out both}
.battle-screen .unit.player.unit-sneaker{--sneaker-lunge:-4px}
.battle-screen .unit.enemy.unit-sneaker{--sneaker-lunge:4px}
.battle-screen .unit.unit-ability-stomp.unit-motion-attack>.unit-sprite{animation:sneaker-stomp .38s cubic-bezier(.2,.8,.25,1) both}
.battle-screen .unit.unit-ability-chain5.unit-motion-attack>.unit-sprite{animation:cable-whip .38s cubic-bezier(.2,.8,.25,1) both}
.battle-screen .unit.unit-ability-revive.unit-motion-attack>.unit-sprite{animation:roly-bump .36s cubic-bezier(.2,.8,.25,1) both}
.battle-screen .unit.unit-ability-steal.unit-motion-attack>.unit-sprite{animation:rat-pocket .34s cubic-bezier(.2,.8,.25,1) both}
.battle-screen .unit.unit-ability-titan_spawner.unit-motion-attack>.unit-sprite{animation:pvz-sort .42s ease-out var(--attack-delay,0ms) both}
.battle-screen .unit.unit-ability-passport.unit-motion-ability>.unit-sprite{animation:galya-stamp .42s cubic-bezier(.16,.9,.25,1) both}
.battle-screen .unit.unit-ability-confuse.unit-motion-ability>.unit-sprite{animation:manual-page-confuse .52s cubic-bezier(.18,.82,.25,1) both;transform-origin:50% 50%}
.battle-screen .unit.unit-ability-reveal.unit-motion-ability>.unit-sprite{animation:earbud-scan .42s ease-out both}
.battle-screen .unit.unit-ability-invis.unit-motion-ability>.unit-sprite{animation:sock-snap .48s cubic-bezier(.16,.9,.25,1) both}
.battle-screen .unit.unit-ability-hunger.unit-motion-ability>.unit-sprite{animation:tama-evolve .7s cubic-bezier(.16,.9,.25,1) both}
.battle-screen .unit.unit-ability-revive.unit-motion-ability>.unit-sprite{animation:roly-revive .56s cubic-bezier(.16,.9,.25,1) both}
.battle-screen .unit.unit-ability-revive.unit-motion-ability>.unit-sprite{animation-delay:var(--ability-delay,0ms)}
.battle-screen .unit.unit-ability-steal.unit-motion-ability>.unit-sprite{animation:rat-pocket .44s cubic-bezier(.16,.9,.25,1) both}
.battle-screen .unit.unit-ability-swap.unit-motion-ability>.unit-sprite{animation:remote-zap .46s steps(2,end) both}
.battle-screen .unit.unit-ability-titan_spawner.unit-motion-ability>.unit-sprite{animation:pvz-sort .52s cubic-bezier(.16,.9,.25,1) both}
.battle-screen .unit.unit-ability-passport.unit-motion-reflect>.unit-sprite{animation:galya-reflect .42s cubic-bezier(.16,.9,.25,1) both}
@keyframes sock-idle{from{transform:translateY(0) rotate(-.5deg)}to{transform:translateY(-.8px) rotate(.5deg)}}
@keyframes tama-idle{0%,100%{transform:translateY(0) scale(1)}48%{transform:translateY(-1px) scale(1.01)}52%{transform:translateY(-.7px) scale(1.005)}}
@keyframes bag-rustle{0%,100%{transform:rotate(0)}46%{transform:rotate(-.45deg)}52%{transform:rotate(.7deg)}58%{transform:rotate(-.35deg)}}
@keyframes tape-idle{0%,100%{transform:translateY(0) scaleX(1)}50%{transform:translateY(-.7px) scaleX(1.012)}}
@keyframes bubble-idle{0%,100%{transform:translateY(0) scale(1)}40%{transform:translateY(-1.1px) scale(1.018,.985)}56%{transform:translateY(-.4px) scale(.99,1.012)}}
@keyframes eye-idle{0%,84%,100%{transform:scale(1)}90%{transform:scale(1.015)}}
@keyframes galya-idle{0%,100%{transform:translateY(0)}48%{transform:translateY(-.8px)}54%{transform:translateY(-.4px) rotate(.25deg)}}
@keyframes courier-idle{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-1px) rotate(-.65deg)}}
@keyframes yogurt-idle{0%,100%{transform:rotate(0)}46%{transform:rotate(-.55deg)}52%{transform:rotate(.55deg)}}
@keyframes earbud-idle{0%,100%{transform:translateY(0)}48%{transform:translateY(-.7px)}55%{transform:translateY(-.35px) scale(1.01)}}
@keyframes sneaker-idle{0%,100%{transform:translateY(0)}48%{transform:translateY(-.55px) scaleY(1.005)}}
@keyframes cable-idle{0%,100%{transform:rotate(0)}50%{transform:rotate(.7deg)}}
@keyframes remote-idle{0%,100%{transform:rotate(0)}50%{transform:rotate(.7deg)}}
@keyframes roly-idle{0%,100%{transform:rotate(0)}35%{transform:rotate(-1deg)}70%{transform:rotate(.7deg)}}
@keyframes rat-idle{0%,100%{transform:translateY(0) rotate(0)}45%{transform:translateY(-.8px) rotate(.5deg)}53%{transform:rotate(-.5deg)}}
@keyframes mimic-bite{0%,100%{transform:translateX(0) scale(1,1)}22%{transform:translateX(-2px) rotate(-3deg) scale(.94,1.04)}48%{transform:translateX(5px) rotate(3deg) scale(1.1,.88)}70%{transform:translateX(2px) rotate(1deg) scale(.96,1.03)}}
@keyframes sock-snap{0%,100%{transform:translateX(0) rotate(0)}28%{transform:translateX(3px) rotate(4deg) scaleX(.92)}58%{transform:translateX(-1px) rotate(-2deg) scaleX(1.04)}}
@keyframes tama-claw{0%,100%{transform:translateX(0) rotate(0)}32%{transform:translateX(3px) rotate(-4deg) scale(.98,1.03)}60%{transform:translateX(-1px) rotate(2deg)}}
@keyframes tama-feed{0%{transform:scale(1)}26%{transform:translateY(-3px) scale(1.12)}58%{transform:translateY(1px) scale(.94,1.04)}100%{transform:scale(1)}}
@keyframes bag-pop{0%,100%{transform:scale(1)}36%{transform:scale(1.06,.92)}68%{transform:translateY(-2px) scale(.98,1.04)}}
@keyframes tape-whip{0%,100%{transform:rotate(0) scaleX(1)}35%{transform:rotate(-4deg) scaleX(.95)}62%{transform:rotate(2deg) scaleX(1.04)}}
@keyframes bubble-pop-attack{0%,100%{transform:scale(1)}38%{transform:scale(1.08,.88)}65%{transform:scale(.96,1.06)}}
@keyframes eye-shot{0%,100%{scale:1}24%{scale:1.035}48%{scale:1.01}}
@keyframes galya-stamp{0%,100%{transform:translateY(0)}35%{transform:translateY(2px) scaleY(.96)}62%{transform:translateY(-1px) scaleY(1.02)}}
@keyframes courier-dash-lean{0%,100%{transform:rotate(0) scaleX(1)}20%{transform:rotate(-5deg) scaleX(1.04)}72%{transform:rotate(-3deg) scaleX(1.025)}}
@keyframes yogurt-throw{0%,100%{transform:translateX(0) rotate(0)}32%{transform:translateX(2px) rotate(-3deg) scale(.97,1.04)}60%{transform:translateX(-1px) rotate(1deg)}}
@keyframes earbud-scan{0%,100%{transform:rotate(0)}40%{transform:rotate(-2deg)}72%{transform:rotate(1deg) scale(1.015)}}
@keyframes sneaker-stomp{0%,100%{transform:translateY(0) scale(1)}30%{transform:translateY(var(--sneaker-lunge,-4px)) scale(1.02)}67%{transform:translateY(calc(var(--sneaker-lunge,-4px)*-.2)) scale(1.04,.94)}}
@keyframes cable-whip{0%,100%{transform:rotate(0)}34%{transform:rotate(-3deg) scaleX(.97)}65%{transform:rotate(2deg) scaleX(1.03)}}
@keyframes roly-bump{0%,100%{transform:translateY(0)}32%{transform:translateY(1px) scaleY(.94)}72%{transform:translateY(-2px) scaleY(1.04)}}
@keyframes rat-pocket{0%,100%{transform:translateX(0) rotate(0)}30%{transform:translateX(2px) rotate(-3deg)}66%{transform:translateX(-1px) rotate(1deg)}}
@keyframes pvz-sort{0%,100%{transform:scale(1)}38%{transform:scale(1.025,.98)}66%{transform:scale(1.01)}}
@keyframes manual-page-confuse{0%,100%{transform:rotateY(0) rotate(0) scale(1)}24%{transform:perspective(120px) rotateY(-24deg) rotate(-3deg) scale(1.04)}52%{transform:perspective(120px) rotateY(12deg) rotate(2deg) scale(.99,1.02)}78%{transform:rotateY(-4deg) rotate(-.7deg)}}
@keyframes tama-evolve{0%{transform:scale(.92);filter:brightness(1)}24%{transform:scale(1.09);filter:brightness(1.8) drop-shadow(0 0 9px #53efff)}56%{transform:scale(.97);filter:brightness(1.35) drop-shadow(0 0 6px #e64dff)}100%{transform:scale(1);filter:none}}
@keyframes roly-revive{0%{transform:rotate(78deg) translateY(3px) scale(.78)}34%{transform:rotate(-10deg) translateY(-4px) scale(1.08,.92)}65%{transform:rotate(4deg) translateY(1px) scale(.97,1.04)}100%{transform:rotate(0) translateY(0) scale(1)}}
@keyframes remote-zap{0%,100%{transform:translateX(0) skewX(0);filter:none}22%{transform:translateX(-2px) skewX(-5deg);filter:brightness(1.7) drop-shadow(0 0 7px #64efff)}48%{transform:translateX(2px) skewX(4deg);filter:brightness(1.4) drop-shadow(0 0 7px #ef4ec9)}72%{transform:translateX(-1px) skewX(-2deg)}}
@keyframes galya-reflect{0%,100%{transform:rotate(0) scale(1)}14%{transform:translateX(-1px) scale(.96,1.04)}34%{transform:rotate(-4deg) translateY(-1px) scale(1.05);filter:brightness(1.65) drop-shadow(0 0 8px #fff)}61%{transform:rotate(3deg) translateY(0) scale(1.03);filter:brightness(1.3) drop-shadow(0 0 6px #68efff)}84%{transform:rotate(-1deg) scale(1.01)}}

/* Keep idle motion on the hero; shortcuts and deck previews stay still. */
.junk-logo-art{animation:home-logo-float 4.6s ease-in-out infinite}
.junk-hero .art-button img{animation:home-button-breathe 3.2s ease-in-out infinite}
@keyframes home-scene-loop{0%,100%{transform:translate3d(0,0,0) scale(1)}38%{transform:translate3d(0,-4px,0) scale(1.012)}68%{transform:translate3d(0,-3px,0) scale(1.008)}}
@keyframes home-logo-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes home-button-breathe{0%,100%{transform:translateY(0)}50%{transform:translateY(-1px)}}
@media(prefers-reduced-motion:reduce){.junk-hero::before{animation:none;transform:none;will-change:auto}.junk-logo-art,.junk-hero .art-button img,.home-shortcuts button img,.home-deck .card-tap .card{animation:none}}
.shop-reward{text-align:center}.shop-reward-stage{position:relative;width:min(72vw,300px);aspect-ratio:1;margin:0 auto 5px;overflow:hidden;border:2px solid #4beaff;border-radius:12px;background:radial-gradient(circle,#28204b,#090b13 72%);box-shadow:0 0 12px #35e8ff88,0 0 30px #d51ef044,inset 0 0 18px #000}.shop-reward-poster,.shop-reward-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.shop-reward-poster{filter:brightness(.55) saturate(1.2)}.shop-reward-video{z-index:1}.shop-reward-rare_bundle .shop-reward-stage{border-color:#db67ff;box-shadow:0 0 16px #cf45ff99,0 0 36px #8e20ff55}.shop-reward-star_chest .shop-reward-stage,.shop-reward-chest_royal .shop-reward-stage{border-color:#ffe26b;box-shadow:0 0 17px #ffcb4eaa,0 0 40px #ff982d55}.shop-reward-coin_pouch .shop-reward-stage,.shop-reward-coin_vault .shop-reward-stage{border-color:#ffd95b;box-shadow:0 0 17px #ffd448aa,0 0 40px #fa9b2355}.shop-reward-caption{margin:5px 0 8px;color:#b9c9dd;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.shop-reward-flash{position:absolute;z-index:2;inset:0;pointer-events:none;background:radial-gradient(circle at 50% 52%,#fff9a0 0,#ffcf4855 17%,transparent 60%);opacity:0}.shop-reward-revealed .shop-reward-flash{animation:shop-loot-flash .65s ease-out both}.shop-loot-reveal[hidden]{display:none}.shop-loot-reveal{display:grid;gap:8px;opacity:0;transform:translateY(10px) scale(.96)}.shop-reward-revealed .shop-loot-reveal{animation:shop-loot-in .42s cubic-bezier(.15,.9,.25,1.2) both}.shop-loot-card{display:flex;align-items:center;gap:11px;padding:8px;border:2px solid #8791a7;border-radius:8px;background:linear-gradient(110deg,#202637,#10131c);text-align:left;box-shadow:0 5px 0 #05060b}.shop-loot-card>img{width:68px;height:82px;object-fit:cover;border:1px solid #ffffff38;border-radius:5px}.shop-loot-card>div{display:grid;gap:3px}.shop-loot-card small{color:#b9c6d8;font-size:10px;font-weight:900;text-transform:uppercase}.shop-loot-card strong{font-size:16px;line-height:1.1}.shop-loot-card b{color:#faff00;font-size:15px}.shop-loot-card.rarity-rare{border-color:#4caeff;box-shadow:0 5px 0 #071126,0 0 15px #3198ff66}.shop-loot-card.rarity-epic{border-color:#c258ff;box-shadow:0 5px 0 #190a26,0 0 17px #c258ff77}.shop-loot-card.rarity-legendary,.shop-loot-card.rarity-titan{border-color:#ffd753;box-shadow:0 5px 0 #291909,0 0 18px #ffac2e99}.shop-loot-coins{display:flex;align-items:center;justify-content:center;gap:8px;padding:9px;border:1px solid #ffcc48;border-radius:7px;background:#251b0b;color:#ffe67c;font-size:18px}.shop-loot-coins img{width:25px;height:25px}.shop-reward-video-failed .shop-reward-video{display:none}.shop-reward-video-failed .shop-reward-poster{filter:brightness(.9) saturate(1.15)}.shop-reward .modal-actions [data-action="shop-reward-skip"]{color:#cbd3df}@keyframes shop-loot-in{to{opacity:1;transform:translateY(0) scale(1)}}@keyframes shop-loot-flash{0%{opacity:0}22%{opacity:.9}100%{opacity:0}}
@media(prefers-reduced-motion:reduce){.shop-reward-revealed .shop-reward-flash,.shop-reward-revealed .shop-loot-reveal{animation:none;opacity:1;transform:none}}
.shop-reward-retry{display:none;position:absolute;z-index:3;left:50%;top:50%;transform:translate(-50%,-50%);max-width:90%;padding:10px 14px;border:1px solid #faff00;border-radius:6px;background:#080b15ef;color:#faff00;font-size:13px;font-weight:900;white-space:nowrap;box-shadow:0 0 16px #faff0080}.shop-reward-video-failed .shop-reward-retry{display:block;top:auto;bottom:10px;z-index:5;transform:translateX(-50%)}
.shop-reward-video{opacity:0;transition:opacity .16s ease}.shop-reward-video-ready .shop-reward-video{opacity:1}.shop-reward-video-failed .shop-reward-video{display:none}
.home-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}
.offers{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.shop-offer{min-height:0;padding:8px;gap:5px;text-align:left}
.shop-offer .pic{height:112px;margin:0 0 3px}
.shop-offer h3{min-height:0;font-size:15px;line-height:1.05;text-align:left}
.shop-offer p{font-size:12px;line-height:1.3;text-align:left}
.shop-offer small{font-size:10px;line-height:1.25;text-align:left}
.shop-offer button{min-height:38px;padding:5px;font-size:12px}
@media(max-width:360px){.shop-offer .pic{height:98px}.shop-offer h3{font-size:14px}.shop-offer p{font-size:11px}.shop-offer small{font-size:9px}}
@media(min-width:768px){.offers{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:768px){.home-shortcuts{grid-template-columns:repeat(4,minmax(0,1fr))}}
.junk-hero::before{background-image:linear-gradient(180deg,#08061215 0%,#08061200 50%,#050409d0 100%),url('/assets/branding/home-scene-v2.webp?v=20261024-art-v229');background-position:center top;background-size:100% auto}
.junk-hero .home-mascot{position:absolute;z-index:1;left:50%;bottom:58px;width:clamp(170px,54vw,280px);height:195px;object-fit:contain;pointer-events:none;filter:drop-shadow(0 9px 8px #000c) drop-shadow(0 0 12px #d52ae455);transform:translateX(-50%);transform-origin:50% 90%;animation:home-mascot-breathe 4.2s ease-in-out infinite}
@keyframes home-mascot-breathe{0%,100%{transform:translate(-50%,0) scale(1)}50%{transform:translate(-50%,-2px) scale(1.012)}}
@media(max-width:360px){.junk-hero .home-mascot{width:168px;height:185px;bottom:55px}}
@media(min-width:768px){.junk-hero .home-mascot{width:min(32vw,330px);height:275px;bottom:70px}}
@media(prefers-reduced-motion:reduce){.junk-hero .home-mascot{animation:none}}

/* Combat action cues: clear movement, spawn, status and form-change feedback. */
.battle-screen .unit.unit-spawn-in{animation:unit-spawn-pop .46s cubic-bezier(.16,1,.3,1) both}
.battle-screen .unit.unit-spawn-in:after{content:'';position:absolute;z-index:1;left:50%;bottom:1px;width:52%;height:18%;border:2px solid #b9f5ff;border-radius:50%;box-shadow:0 0 8px #43eaff,0 0 17px #ae25ff;transform:translate(-50%,50%) scale(.25);opacity:0;pointer-events:none;animation:unit-spawn-ring .48s ease-out both}
@keyframes unit-spawn-pop{0%{transform:translate(-50%,-39%) scale(.3);opacity:0;filter:brightness(2.1)}56%{transform:translate(-50%,-53%) scale(1.08);opacity:1;filter:brightness(1.25)}100%{transform:translate(-50%,-50%) scale(1);opacity:1;filter:none}}
@keyframes unit-spawn-ring{0%{opacity:0;transform:translate(-50%,50%) scale(.25)}25%{opacity:1}100%{opacity:0;transform:translate(-50%,50%) scale(2.8)}}
.battle-screen .unit.unit-evolved{isolation:isolate}
.battle-screen .unit.unit-evolved:before{content:'';position:absolute;z-index:1;inset:-5px;border:2px solid #ffcb49;border-radius:48%;box-shadow:0 0 5px #fff7b0,0 0 12px #ff9e23,0 0 19px #d71fff;pointer-events:none;animation:evolved-halo 1.7s ease-in-out infinite}
.battle-screen .unit.unit-evolved>.unit-sprite{position:relative;z-index:2;filter:drop-shadow(0 0 5px #ffca44) drop-shadow(0 0 12px #d41aff)}
@keyframes evolved-halo{0%,100%{opacity:.68;transform:scale(.96)}50%{opacity:1;transform:scale(1.05)}}
.battle-screen .unit.unit-poisoned>.unit-sprite{filter:drop-shadow(0 0 4px #a5fa31) drop-shadow(0 0 10px #48d936)}
.battle-screen .unit.unit-poisoned>.hpbar{animation:poison-bar-pulse 1.35s ease-in-out infinite alternate}
@keyframes poison-bar-pulse{from{box-shadow:0 1px 2px #000a,0 0 3px #a5fa31}to{box-shadow:0 1px 2px #000a,0 0 9px #58f151}}
.battle-fx.unit-death{width:74px;height:68px;overflow:visible;filter:none;animation:unit-death-fade .68s ease-out forwards}
.battle-fx.unit-death>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;filter:grayscale(.22) drop-shadow(0 0 6px var(--death-accent,#55eaff)) drop-shadow(0 4px 3px #0009)}
.battle-fx.unit-death:before{content:'';position:absolute;z-index:2;inset:15%;border:2px solid var(--death-accent,#55eaff);border-radius:50%;box-shadow:0 0 7px #fff,0 0 14px var(--death-accent,#55eaff);animation:unit-death-ring .68s ease-out forwards;pointer-events:none}
.battle-fx.unit-death:after{content:'';position:absolute;z-index:3;left:50%;top:48%;width:8px;height:8px;border:2px solid #fff;border-radius:2px;background:var(--death-accent,#55eaff);box-shadow:0 0 8px #fff,0 0 14px var(--death-accent,#55eaff);rotate:45deg;animation:unit-death-spark .42s ease-out forwards;pointer-events:none}
.battle-fx.unit-death-goblin:before,.battle-fx.unit-death-receipt:before,.battle-fx.unit-death-instruction:before{inset:20%;border-radius:3px;border-style:dashed;rotate:45deg}
.battle-fx.unit-death-banana:before,.battle-fx.unit-death-tape:before,.battle-fx.unit-death-courier:before{inset:24% 8%;border-radius:48% 52% 62% 38%;border-style:dotted}
.battle-fx.unit-death-bubble:before,.battle-fx.unit-death-yogurt:before{inset:19% 12%;border-radius:42% 58% 47% 53%;border-style:dashed}
.battle-fx.unit-death-defective:before,.battle-fx.unit-death-cables:before,.battle-fx.unit-death-remote:before{inset:10% 2%;border-radius:50%;border-style:dashed}
.battle-fx.unit-death-bags:before,.battle-fx.unit-death-pvz:before{inset:18% 25%;border-radius:5px}
.battle-fx.unit-death-tape{z-index:8;width:84px;height:76px;overflow:visible;filter:none;animation:tape-death-out .74s cubic-bezier(.16,.82,.22,1) both}
.battle-fx.unit-death-tape>img:first-child{z-index:3;filter:drop-shadow(0 0 5px #b9ff62) drop-shadow(0 0 11px #43eaff);transform-origin:50% 74%;animation:tape-death-unspool .74s cubic-bezier(.16,.82,.22,1) both}
.battle-fx.unit-death-tape:before{z-index:1;inset:14% 5% 15%;border:2px solid #b9ff62;border-radius:50%;border-style:solid;background:repeating-linear-gradient(125deg,#a6ff4520 0 5px,#2af4ff1b 5px 10px,#ff4ba51c 10px 14px);box-shadow:0 0 7px #fff,0 0 14px #a6ff4a,0 0 19px #34ddff77;animation:tape-death-ring .66s cubic-bezier(.16,.8,.22,1) both}
.battle-fx.unit-death-tape>.tape-death-ribbon{position:absolute;z-index:4;width:42px;height:6px;border:1px solid #e9ffff;border-radius:2px;background:repeating-linear-gradient(90deg,#42eaff 0 6px,#f9ffff 6px 8px,#ff54c8 8px 12px,#a6ff50 12px 14px);box-shadow:0 0 5px #fff,0 0 9px #49eaff,0 0 12px #adff55;pointer-events:none}
.battle-fx.unit-death-tape>.tape-death-ribbon-a{left:8%;top:45%;transform:rotate(-18deg) scaleX(.08);transform-origin:100% 50%;animation:tape-death-peel-a .66s cubic-bezier(.14,.8,.22,1) .04s both}
.battle-fx.unit-death-tape>.tape-death-ribbon-b{right:8%;top:57%;transform:rotate(16deg) scaleX(.08);transform-origin:0 50%;animation:tape-death-peel-b .66s cubic-bezier(.14,.8,.22,1) .08s both}
.battle-fx.unit-death-tape>.tape-death-label{position:absolute;z-index:7;left:50%;top:88%;width:max-content;padding:3px 5px;border:1px solid #b9ff62;border-radius:3px;background:#08181def;color:#eaffc7;font:1000 6px/1 system-ui,sans-serif;letter-spacing:.05em;text-shadow:0 0 5px #aaff50;box-shadow:0 0 7px #65edff77;transform:translate(-50%,-50%) rotate(-6deg) scale(.45);animation:tape-death-stamp .7s cubic-bezier(.16,.82,.22,1) both;pointer-events:none}
@keyframes tape-death-out{0%{opacity:0;scale:.72}18%{opacity:1;scale:1.04}72%{opacity:.9;scale:.98}100%{opacity:0;scale:1.1}}
@keyframes tape-death-unspool{0%{opacity:0;transform:translateY(2px) rotate(0) scale(1)}16%{opacity:1}35%{transform:translateY(-2px) rotate(-5deg) scale(1.04,.96)}58%{transform:translateY(3px) rotate(8deg) scale(.96,.76)}80%{opacity:.85;transform:translateY(7px) rotate(-9deg) scale(.72,.44)}100%{opacity:0;transform:translateY(10px) rotate(-14deg) scale(.6,.2)}}
@keyframes tape-death-ring{0%{opacity:0;scale:.3}24%{opacity:.95}100%{opacity:0;scale:1.75}}
@keyframes tape-death-peel-a{0%,22%{opacity:0;transform:translate(5px,1px) rotate(-18deg) scaleX(.08)}38%{opacity:1}100%{opacity:0;transform:translate(-16px,-17px) rotate(-48deg) scaleX(1)}}
@keyframes tape-death-peel-b{0%,24%{opacity:0;transform:translate(-4px,0) rotate(16deg) scaleX(.08)}40%{opacity:1}100%{opacity:0;transform:translate(17px,-9px) rotate(42deg) scaleX(1)}}
@keyframes tape-death-stamp{0%,22%{opacity:0;transform:translate(-50%,-50%) rotate(-6deg) scale(.45)}42%{opacity:1;transform:translate(-50%,-50%) rotate(-6deg) scale(1.06)}72%{opacity:1;transform:translate(-50%,-50%) rotate(-6deg) scale(1)}100%{opacity:0;transform:translate(-50%,-50%) rotate(-6deg) scale(.96)}}
@media(prefers-reduced-motion:reduce){.battle-fx.unit-death-tape{animation:none!important;opacity:.94!important;scale:1!important}.battle-fx.unit-death-tape>img:first-child{animation:none!important;opacity:.94!important;transform:none!important}.battle-fx.unit-death-tape:before{animation:none!important;opacity:.82!important;scale:1!important}.battle-fx.unit-death-tape:after{animation:none!important;opacity:0!important}.battle-fx.unit-death-tape>.tape-death-ribbon{animation:none!important;opacity:.92!important}.battle-fx.unit-death-tape>.tape-death-ribbon-a{transform:rotate(-28deg) scaleX(.9)!important}.battle-fx.unit-death-tape>.tape-death-ribbon-b{transform:rotate(28deg) scaleX(.85)!important}.battle-fx.unit-death-tape>.tape-death-label{animation:none!important;opacity:1!important;transform:translate(-50%,-50%) rotate(-6deg)!important}}
0%{opacity:0;scale:.6;filter:brightness(2)}18%{opacity:1;scale:1.05}65%{opacity:.85;scale:.98}100%{opacity:0;scale:1.15;filter:grayscale(1)}}
@keyframes unit-death-ring{0%{opacity:0;scale:.3}22%{opacity:1}100%{opacity:0;scale:1.8}}
@keyframes unit-death-spark{0%{opacity:0;scale:.2}30%{opacity:1;scale:1.2}100%{opacity:0;scale:.35}}
.battle-fx.unit-death-goblin{z-index:8;width:86px;height:78px;overflow:visible;filter:none;animation:mimic-death-out .72s cubic-bezier(.16,.82,.22,1) both}
.battle-fx.unit-death-goblin>img:first-child{z-index:3;filter:drop-shadow(0 0 6px #ffbd55) drop-shadow(0 0 12px #48ddff);transform-origin:50% 82%;animation:mimic-death-crumple .72s cubic-bezier(.16,.82,.22,1) both}
.battle-fx.unit-death-goblin:before{z-index:1;inset:16% 9% 16%;border:2px solid #ffc15a;border-radius:4px;background:linear-gradient(180deg,#ffe6a514 0 48%,#ffbc4a2b 49% 100%);box-shadow:0 0 7px #fff3c2,0 0 15px #ffa933,0 0 20px #35dfff77;rotate:0deg;animation:mimic-death-box .68s cubic-bezier(.16,.82,.22,1) both}
.battle-fx.unit-death-goblin:after{content:'УПАКОВАНО';z-index:7;left:50%;top:78%;width:max-content;padding:3px 5px;border:1px solid #ffc666;border-radius:3px;background:#24160ff0;color:#fff2d1;font:1000 7px/1 system-ui,sans-serif;letter-spacing:.12em;text-shadow:0 0 5px #ffac37;box-shadow:0 0 8px #ffad4455;rotate:0deg;transform:translate(-50%,-50%) rotate(-7deg) scale(.6);animation:mimic-death-label .7s linear both;pointer-events:none}
.battle-fx.unit-death-goblin>.mimic-death-flap{position:absolute;z-index:5;top:42%;width:16px;height:10px;border:1px solid #e2ab69;border-radius:2px;background:repeating-linear-gradient(90deg,#85502d 0 5px,#b57940 5px 8px);box-shadow:0 0 5px #ffcb70,0 0 8px #39dfff99;pointer-events:none}
.battle-fx.unit-death-goblin>.mimic-death-flap-a{left:20%;animation:mimic-death-flap-a .58s cubic-bezier(.13,.78,.24,1) both}
.battle-fx.unit-death-goblin>.mimic-death-flap-b{right:20%;top:47%;animation:mimic-death-flap-b .58s cubic-bezier(.13,.78,.24,1) both}
.battle-fx.unit-death-goblin>.mimic-death-tape{position:absolute;z-index:6;left:50%;top:49%;width:47px;height:6px;border:1px solid #d9ffff;border-radius:2px;background:linear-gradient(90deg,#47eaff 0 38%,#fff 39% 60%,#ff63ca 61%);box-shadow:0 0 5px #fff,0 0 9px #43eaff,0 0 12px #ed43c7;transform:translate(-50%,-50%) rotate(-17deg) scaleX(.12);animation:mimic-death-tape .54s cubic-bezier(.16,.82,.22,1) .14s both;pointer-events:none}
@keyframes mimic-death-out{0%{opacity:0;scale:.65}16%{opacity:1;scale:1.04}64%{opacity:.94;scale:1}100%{opacity:0;scale:1.12}}
@keyframes mimic-death-crumple{0%{opacity:0;transform:translateY(4px) rotate(0) scale(1)}16%{opacity:1}35%{transform:translateY(0) rotate(-3deg) scale(1.04,.94)}56%{transform:translateY(6px) rotate(2deg) scale(1.08,.54)}78%{opacity:1;transform:translateY(10px) rotate(-4deg) scale(.92,.24)}100%{opacity:0;transform:translateY(13px) rotate(4deg) scale(.7,.12)}}
@keyframes mimic-death-box{0%{opacity:0;scale:.5}20%{opacity:1;scale:1}62%{opacity:.8;scale:1.08}100%{opacity:0;scale:1.28}}
@keyframes mimic-death-label{0%{opacity:0;transform:translate(-50%,-50%) rotate(-7deg) scale(.55)}16%{opacity:1;transform:translate(-50%,-50%) rotate(-7deg) scale(1.08)}78%{opacity:1;transform:translate(-50%,-50%) rotate(-7deg) scale(1)}100%{opacity:0;transform:translate(-50%,-50%) rotate(-7deg) scale(.96)}}
@keyframes mimic-death-flap-a{0%,26%{opacity:0;transform:translate(0,0) rotate(0)}38%{opacity:1}100%{opacity:0;transform:translate(-15px,-17px) rotate(-38deg)}}
@keyframes mimic-death-flap-b{0%,30%{opacity:0;transform:translate(0,0) rotate(0)}42%{opacity:1}100%{opacity:0;transform:translate(17px,-13px) rotate(46deg)}}
@keyframes mimic-death-tape{0%{opacity:0;transform:translate(-50%,-50%) rotate(-17deg) scaleX(.12)}36%{opacity:1;transform:translate(-50%,-50%) rotate(-17deg) scaleX(1.04)}100%{opacity:0;transform:translate(-50%,-50%) rotate(-17deg) scaleX(1)}}
@media(prefers-reduced-motion:reduce){.battle-fx.unit-death-goblin{animation:none!important;opacity:.94!important;transform:translate(-50%,-50%)!important;scale:1!important}.battle-fx.unit-death-goblin:before,.battle-fx.unit-death-goblin>img:first-child,.battle-fx.unit-death-goblin>.mimic-death-flap{animation:none!important;opacity:.94!important;transform:none!important;scale:1!important}.battle-fx.unit-death-goblin:after{animation:none!important;opacity:.94!important;transform:translate(-50%,-50%) rotate(-7deg)!important;scale:1!important}.battle-fx.unit-death-goblin>.mimic-death-tape{animation:none!important;opacity:.94!important;transform:translate(-50%,-50%) rotate(-17deg)!important;scale:1!important}}
.battle-fx.unit-death-galya{width:90px;height:82px;animation:galya-death-fade .74s cubic-bezier(.16,.82,.24,1) both}
.battle-fx.unit-death-galya>img:first-child{z-index:2;filter:drop-shadow(0 0 7px #ff7bb4) drop-shadow(0 0 12px #52eaff);animation:galya-death-character .74s ease-out both}
.battle-fx.unit-death-galya>.galya-death-ticket{z-index:5;inset:auto;left:calc(50% + 19px);top:28%;width:30px;height:30px;filter:drop-shadow(0 0 5px #ff68ac) drop-shadow(0 0 8px #53eaff);animation:galya-death-document .74s cubic-bezier(.16,.82,.24,1) both}
.battle-fx.unit-death-galya:before{z-index:1;inset:8% 11% 12%;border:2px solid #ff7bb4;border-radius:48% 52% 45% 55%;box-shadow:0 0 8px #fff,0 0 18px #f43f9c,0 0 28px #41dcff;animation:galya-death-scan .74s ease-out both}
.battle-fx.unit-death-galya:after{content:'ВОЗВРАТ';z-index:6;left:50%;top:76%;width:max-content;padding:3px 5px;border:1px solid #ff8ab9;border-radius:3px;background:#311226e8;color:#fff2f8;font-size:7px;font-weight:1000;letter-spacing:.1em;text-shadow:0 0 5px #ff53a6;box-shadow:0 0 8px #f2489955;rotate:0deg;transform:translate(-50%,-50%) rotate(-9deg) scale(.65);animation:galya-death-stamp .62s cubic-bezier(.15,.9,.22,1) both;pointer-events:none}
@keyframes galya-death-fade{0%{opacity:0;scale:.72}16%{opacity:1;scale:1.04}62%{opacity:.95;scale:1}100%{opacity:0;scale:1.12}}
@keyframes galya-death-character{0%{opacity:0;transform:translateY(3px) scale(.94)}18%{opacity:1}58%{opacity:.95;transform:translateY(0) scale(1)}100%{opacity:0;transform:translateY(-5px) scale(.84) rotate(3deg);filter:brightness(1.6) saturate(.65)}}
@keyframes galya-death-document{0%,10%{opacity:0;transform:translate(5px,8px) rotate(12deg) scale(.45)}32%{opacity:1;transform:translate(0,0) rotate(-8deg) scale(1.06)}62%{opacity:1;transform:translate(0,-2px) rotate(4deg) scale(1)}100%{opacity:0;transform:translate(8px,-16px) rotate(18deg) scale(.72)}}
@keyframes galya-death-scan{0%{opacity:0;scale:.36 .55;rotate:-12deg}22%{opacity:1}68%{opacity:.85;scale:1.14 1.08;rotate:8deg}100%{opacity:0;scale:1.55 1.3;rotate:16deg}}
@keyframes galya-death-stamp{0%,24%{opacity:0;transform:translate(-50%,-50%) rotate(-20deg) scale(.45)}43%{opacity:1;transform:translate(-50%,-50%) rotate(-9deg) scale(1.08)}58%{opacity:1;transform:translate(-50%,-50%) rotate(-9deg) scale(1)}100%{opacity:0;transform:translate(-50%,-53%) rotate(-7deg) scale(1.08)}}
@media(prefers-reduced-motion:reduce){.battle-fx.unit-death-galya,.battle-fx.unit-death-galya:before,.battle-fx.unit-death-galya:after,.battle-fx.unit-death-galya>img:first-child,.battle-fx.unit-death-galya>.galya-death-ticket{animation:none!important;opacity:.92!important;transform:none!important;scale:1!important}.battle-fx.unit-death-galya:after{rotate:0deg!important;transform:translate(-50%,-50%) rotate(-9deg)!important}}
.battle-fx.unit-death-pvz{width:108px;height:96px;animation:pvz-death-shutdown .74s cubic-bezier(.16,.82,.24,1) both}
.battle-fx.unit-death-pvz>img:first-child{z-index:2;filter:drop-shadow(0 0 8px #ffcb63) drop-shadow(0 0 15px #e637e9);animation:pvz-death-collapse .74s cubic-bezier(.2,.78,.24,1) both}
.battle-fx.unit-death-pvz:before{z-index:1;inset:18% 11% 16%;border:2px solid #ffd778;border-radius:5px;background:linear-gradient(180deg,#ffd16610 0 56%,#f29b2940 57% 100%);box-shadow:0 0 8px #fff4bf,0 0 19px #ffb13f,0 0 30px #d93deb66;animation:pvz-death-shutter .74s ease-out both}
.battle-fx.unit-death-pvz:after{content:'ЗАКРЫТО';z-index:6;left:50%;top:78%;width:max-content;padding:3px 5px;border:1px solid #ffd778;border-radius:3px;background:#241a19eb;color:#fff4cb;font-size:7px;font-weight:1000;letter-spacing:.12em;text-shadow:0 0 5px #ffbc4e;box-shadow:0 0 9px #ffbb4955;rotate:0deg;transform:translate(-50%,-50%) rotate(-6deg) scale(.6);animation:pvz-death-sign .62s cubic-bezier(.15,.9,.22,1) both;pointer-events:none}
.battle-fx.unit-death-pvz>.pvz-death-parcel{position:absolute;z-index:5;left:50%;top:48%;width:13px;height:11px;border:1px solid #ffe49d;border-radius:2px;background:linear-gradient(90deg,#784720 0 34%,#f2b942 35% 59%,#89532b 60%);box-shadow:0 0 6px #ffd34e,0 0 12px #ef7c28;pointer-events:none}
.battle-fx.unit-death-pvz>.pvz-death-parcel-a{--parcel-x:-25px;--parcel-turn:-28deg;animation:pvz-death-parcel .74s cubic-bezier(.16,.82,.24,1) both}
.battle-fx.unit-death-pvz>.pvz-death-parcel-b{--parcel-x:24px;--parcel-turn:32deg;top:43%;animation:pvz-death-parcel .74s cubic-bezier(.16,.82,.24,1) both}
@keyframes pvz-death-shutdown{0%{opacity:0;scale:.76}18%{opacity:1;scale:1.04}54%{opacity:.95;scale:1}100%{opacity:0;scale:1.16}}
@keyframes pvz-death-collapse{0%{opacity:0;transform:translateY(4px) scale(1)}18%{opacity:1}48%{opacity:1;transform:translateY(0) scale(1)}68%{opacity:.9;transform:translateY(5px) scale(.84,.68) rotate(-2deg)}100%{opacity:0;transform:translateY(13px) scale(.55,.28) rotate(-5deg);filter:brightness(1.8) saturate(.55)}}
@keyframes pvz-death-shutter{0%{opacity:0;scale:.46 .3}20%{opacity:1}62%{opacity:.92;scale:1.12 1.06}100%{opacity:0;scale:1.42 1.2}}
@keyframes pvz-death-sign{0%,23%{opacity:0;transform:translate(-50%,-50%) rotate(-15deg) scale(.42)}43%{opacity:1;transform:translate(-50%,-50%) rotate(-6deg) scale(1.08)}58%{opacity:1;transform:translate(-50%,-50%) rotate(-6deg) scale(1)}100%{opacity:0;transform:translate(-50%,-55%) rotate(-3deg) scale(1.1)}}
@keyframes pvz-death-parcel{0%,14%{opacity:0;transform:translate(-50%,7px) rotate(0) scale(.4)}29%{opacity:1}100%{opacity:0;transform:translate(calc(-50% + var(--parcel-x)), -26px) rotate(var(--parcel-turn)) scale(.68)}}
@media(prefers-reduced-motion:reduce){.battle-fx.unit-death-pvz,.battle-fx.unit-death-pvz:before,.battle-fx.unit-death-pvz:after,.battle-fx.unit-death-pvz>img:first-child,.battle-fx.unit-death-pvz>.pvz-death-parcel{animation:none!important;opacity:.94!important;transform:none!important;scale:1!important}.battle-fx.unit-death-pvz:after{rotate:0deg!important;transform:translate(-50%,-50%) rotate(-6deg)!important}}
.battle-fx.unit-death-defective{width:88px;height:86px;animation:cheb-death-exit .74s cubic-bezier(.2,.78,.24,1) both}
.battle-fx.unit-death-defective>img:first-child{z-index:2;filter:drop-shadow(0 0 6px #ff526d) drop-shadow(0 3px 3px #000b);animation:cheb-death-character .74s ease-out both}
.battle-fx.unit-death-defective:before{z-index:4;inset:auto;left:50%;top:43%;width:23px;height:23px;border:1px solid #ff6378;border-radius:50%;background:radial-gradient(circle,#ffb2b840 0 19%,#ff42592c 42%,#ff203500 73%);box-shadow:0 0 5px #fff,0 0 12px #ff294f,0 0 20px #e91a4f88;transform:translate(-50%,-50%) scale(.25);animation:cheb-death-eye-ring .66s ease-out both}
.battle-fx.unit-death-defective:after{content:'ГЛАЗ ОФФ';z-index:7;left:50%;top:87%;width:max-content;padding:2px 4px;border:1px solid #ff687766;border-radius:3px;background:#190b12e8;color:#ffdbe2;font:900 6px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.08em;text-shadow:0 0 5px #ff345c;box-shadow:0 0 7px #f3315655;rotate:0deg;transform:translate(-50%,-50%) scale(.8);animation:cheb-death-label .74s ease-out both}
.battle-fx.unit-death-defective>.cheb-death-lens{position:absolute;z-index:5;left:50%;top:43%;width:12px;height:12px;border:1px solid #fff7f8;border-radius:50%;background:radial-gradient(circle at 38% 34%,#fff 0 8%,#ffb9bd 13%,#ff3955 34%,#551323 73%);box-shadow:0 0 5px #fff,0 0 11px #ff284c,0 0 17px #ff284c;transform:translate(-50%,-50%);animation:cheb-death-lens .66s steps(1,end) both;pointer-events:none}
.battle-fx.unit-death-defective>.cheb-death-trace{position:absolute;z-index:6;left:50%;top:43%;width:2px;height:5px;border-radius:2px;background:linear-gradient(#fff,#ff4a65 55%,#ff4a6500);box-shadow:0 0 5px #ff345b;transform:translate(-50%,-50%);animation:cheb-death-trace .5s ease-out both;pointer-events:none}
.battle-fx.unit-death-defective>.cheb-death-trace-a{--trace-x:-10px;--trace-y:-8px;--trace-turn:-35deg}
.battle-fx.unit-death-defective>.cheb-death-trace-b{--trace-x:10px;--trace-y:-7px;--trace-turn:35deg;animation-delay:.04s}
@keyframes cheb-death-exit{0%{opacity:0;scale:.82}14%{opacity:1;scale:1.03}44%{opacity:.98;scale:1}100%{opacity:0;scale:.94;filter:grayscale(.7)}}
@keyframes cheb-death-character{0%,48%{opacity:1;transform:translateY(0) scale(1);filter:drop-shadow(0 0 6px #ff526d) drop-shadow(0 3px 3px #000b)}72%{opacity:.86;transform:translateY(2px) scale(.98,.96);filter:grayscale(.2) drop-shadow(0 0 4px #ff526d)}100%{opacity:0;transform:translateY(9px) scale(.9,.84);filter:grayscale(.85) brightness(.72)}}
@keyframes cheb-death-eye-ring{0%,12%{opacity:0;transform:translate(-50%,-50%) scale(.25)}25%{opacity:1;transform:translate(-50%,-50%) scale(.9)}42%{opacity:.92;transform:translate(-50%,-50%) scale(1.12)}68%{opacity:.55;transform:translate(-50%,-50%) scale(.82)}100%{opacity:0;transform:translate(-50%,-50%) scale(.72)}}
@keyframes cheb-death-lens{0%,12%{opacity:0;transform:translate(-50%,-50%) scale(.25)}22%{opacity:1;transform:translate(-50%,-50%) scale(.72)}40%{opacity:1;transform:translate(-50%,-50%) scale(1)}62%{opacity:.86;transform:translate(-50%,-50%) scale(1,.12);background:#35131d;box-shadow:0 0 3px #ff6276}83%,100%{opacity:.14;transform:translate(-50%,-50%) scale(.65,.08);background:#20151a;box-shadow:none}}
@keyframes cheb-death-trace{0%,18%{opacity:0;transform:translate(-50%,-50%) rotate(0) scale(.3)}33%{opacity:1}100%{opacity:0;transform:translate(calc(-50% + var(--trace-x)),calc(-50% + var(--trace-y))) rotate(var(--trace-turn)) scale(.55)}}
@keyframes cheb-death-label{0%,43%{opacity:0;transform:translate(-50%,-40%) scale(.7)}57%{opacity:1;transform:translate(-50%,-50%) scale(1)}80%{opacity:.8}100%{opacity:0;transform:translate(-50%,-60%) scale(.92)}}
@media(prefers-reduced-motion:reduce){.battle-fx.unit-death-defective,.battle-fx.unit-death-defective:before,.battle-fx.unit-death-defective:after,.battle-fx.unit-death-defective>img:first-child,.battle-fx.unit-death-defective>.cheb-death-lens,.battle-fx.unit-death-defective>.cheb-death-trace{animation:none!important;opacity:.94!important;transform:none!important;scale:1!important}.battle-fx.unit-death-defective:before{opacity:.72;transform:translate(-50%,-50%)!important}.battle-fx.unit-death-defective:after{rotate:0deg;transform:translate(-50%,-50%)!important}.battle-fx.unit-death-defective>.cheb-death-lens{background:#35131d;box-shadow:0 0 4px #ff6276;transform:translate(-50%,-50%)!important}.battle-fx.unit-death-defective>.cheb-death-trace{opacity:0!important}}
.labubu-shot .blast-art{filter:drop-shadow(0 0 5px #fff4a4) drop-shadow(0 0 12px #ff761b)}
.card-level-bonus{color:#75f5a0;font-weight:800}
.card-combo{padding:6px 8px;border-left:3px solid #53dfff;background:#0d2025;color:#c5f6ff!important;font-size:12px!important;line-height:1.25}
.battle-screen .unit.unit-cat.unit-evolved{width:68px;height:66px;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
.battle-screen .unit.unit-cat.unit-evolved:before{display:none}
.battle-screen .unit.unit-cat.unit-evolved>.unit-sprite{object-fit:contain;border-radius:0;filter:drop-shadow(0 0 7px #40deff) drop-shadow(0 0 14px #f42ce6)}
@media(prefers-reduced-motion:reduce){.battle-screen .unit.unit-spawn-in,.battle-screen .unit.unit-spawn-in:after,.battle-screen .unit.unit-evolved:before,.battle-screen .unit.unit-poisoned>.hpbar,.battle-fx.unit-death,.battle-fx.unit-death:before,.battle-fx.unit-death:after{animation:none;opacity:1;transform:none;scale:1}.battle-screen .unit.unit-evolved:before{opacity:.75}}

/* Server-targeted combat effects for the full card roster. */
.battle-projectile .battle-projectile-trail{left:0;right:auto;top:0;transform:translateY(-50%) rotate(var(--trail-angle,0deg));transform-origin:left center;will-change:transform}
.battle-projectile-body{position:absolute;left:0;top:0;width:14px;height:12px;border:1px solid #fff9;border-radius:50%;background:radial-gradient(circle at 32% 28%,#fff 0 12%,#8cf8ff 25%,#28a9ff 68%,#184bff 100%);box-shadow:0 0 7px #50e8ff,0 0 13px #3872ff;transform:translate(-50%,-50%);will-change:transform}
.projectile-rocket .battle-projectile-trail{height:6px;opacity:0}
.projectile-rocket .battle-projectile-trail{width:calc(var(--trail-length,24px) + clamp(22px,7vw,30px))}
.projectile-laser .battle-projectile-trail{left:0;right:auto;top:0;height:4px;border-radius:99px;background:linear-gradient(90deg,#fff 0%,#fff 38%,#ff375d 68%,#ff375d00 100%);box-shadow:0 0 5px #fff,0 0 12px #ff315d,0 0 20px #c71657;filter:none;transform-origin:left center}
.projectile-laser .battle-projectile-body{display:none}
.projectile-tape .battle-projectile-body{width:24px;height:6px;border:1px solid #efffda;border-radius:2px;background:linear-gradient(90deg,#d2ff64,#fff6ac,#8ef34d);box-shadow:0 0 7px #caff53;}
.projectile-yogurt .battle-projectile-body{width:16px;height:12px;border:1px solid #eeffb9;background:radial-gradient(ellipse at 28% 25%,#fffdd2 0 18%,#b6ff61 45%,#6fc537 100%);box-shadow:0 0 8px #a8ff4c,0 0 13px #4ed94f}
.projectile-acid .battle-projectile-trail{height:5px;background:linear-gradient(90deg,#c75cff00 0%,#b94cffaa 38%,#63f4ff 76%,#f4ffff 100%);filter:drop-shadow(0 0 4px #bc54ff) drop-shadow(0 0 8px #45e9ff)}
.projectile-acid .battle-projectile-body{width:19px;height:15px;border:1px solid #f8edff;border-radius:52% 38% 58% 42%;background:radial-gradient(circle at 29% 22%,#fff 0 12%,#a8faff 24%,#55dfff 47%,#a946e7 82%,#712ea9 100%);box-shadow:0 0 8px #57eaff,0 0 15px #a23eea;rotate:-18deg}
.projectile-acid .battle-projectile-body.has-art{width:32px;height:22px;border:0;border-radius:0;background:transparent;box-shadow:none}
.projectile-acid .battle-projectile-art{filter:drop-shadow(0 0 3px #eaffff) drop-shadow(0 0 6px #55e8ff) drop-shadow(0 0 9px #ab42ef)}
.projectile-stamp .battle-projectile-body{width:15px;height:15px;border:2px solid #ffb0d4;border-radius:3px;background:linear-gradient(135deg,#fa3f8d,#a4155c);box-shadow:0 0 8px #ff479a;}
.projectile-sonar .battle-projectile-body{width:15px;height:15px;border:3px solid #9ffaff;background:transparent;box-shadow:0 0 8px #43dfff}
.projectile-cable .battle-projectile-body{width:10px;height:10px;border:2px solid #efffff;background:#68edff;box-shadow:0 0 6px #fff,0 0 13px #27bdff,0 0 20px #8751ff}
.projectile-jaw .battle-projectile-body{width:16px;height:12px;border:2px solid #ffd36d;border-radius:3px;background:#b66c28;box-shadow:0 0 8px #ffad3b}
.projectile-parcel .battle-projectile-body{width:15px;height:15px;border:2px solid #ffe993;border-radius:3px;background:linear-gradient(135deg,#d48a39 0 44%,#ffdb71 45% 55%,#a850e8 56%);box-shadow:0 0 9px #ffc341}
.projectile-scrap .battle-projectile-body{width:14px;height:10px;border:1px solid #fff3a4;border-radius:35% 60% 50% 35%;background:linear-gradient(135deg,#fff6a5,#ffa62f 55%,#ed508f);box-shadow:0 0 8px #ffaf36}
.projectile-elixir .battle-projectile-trail{height:4px;background:linear-gradient(90deg,#21c77800,#52f28b 48%,#e3ffd0);filter:drop-shadow(0 0 6px #56ff8b)}
.projectile-elixir .battle-projectile-body{width:12px;height:16px;border:1px solid #d8ffd8;border-radius:55% 55% 60% 60%;background:radial-gradient(ellipse at 35% 26%,#fff 0 11%,#8dff83 26%,#18c46b 70%,#087b59 100%);box-shadow:0 0 7px #91ff67,0 0 13px #24e898}
.projectile-claw .battle-projectile-body{width:28px;height:20px;border:0;border-radius:0;background:linear-gradient(118deg,transparent 0 17%,#fff 18% 23%,#71f5ff 24% 31%,transparent 32% 41%,#fff 42% 47%,#ff58dc 48% 55%,transparent 56% 64%,#fff 65% 70%,#9afff4 71% 78%,transparent 79%);filter:drop-shadow(0 0 5px #57eaff) drop-shadow(0 0 9px #e138ef);clip-path:polygon(2% 77%,20% 46%,39% 65%,60% 32%,98% 9%,79% 67%,53% 57%,29% 100%)}
.battle-projectile-muzzle[data-kind="laser"]{width:8px;height:8px;background:radial-gradient(circle,#fff 0 18%,#fff0ec 26%,#ff6473 40%,#ff315d 57%,#d90058 68%,transparent 78%);filter:drop-shadow(0 0 2px #fff) drop-shadow(0 0 5px #ff315d);animation:laser-eye-fire .18s ease-out both}
.battle-projectile-muzzle[data-kind="acid"]{width:12px;height:12px;background:radial-gradient(circle,#fff 0 14%,#bafaff 30%,#58eaff 49%,#b54cff 70%,transparent 82%);filter:drop-shadow(0 0 6px #54eaff) drop-shadow(0 0 9px #ba46ff)}
@keyframes laser-eye-fire{0%{opacity:0;scale:.5}24%{opacity:1;scale:1.12}100%{opacity:0;scale:.75}}
@media(prefers-reduced-motion:reduce){.battle-projectile-muzzle{display:none}}
.battle-projectile-muzzle[data-kind="yogurt"]{background:radial-gradient(circle,#fff9c8 0 15%,#baff59 38%,#6bd43c 58%,transparent 78%);filter:drop-shadow(0 0 8px #9cff44)}
.battle-projectile-muzzle[data-kind="stamp"]{background:radial-gradient(circle,#fff 0 12%,#ff89bd 30%,#e82978 58%,transparent 78%);filter:drop-shadow(0 0 8px #f72f8d)}
.battle-projectile-muzzle[data-kind="elixir"]{background:radial-gradient(circle,#fff 0 12%,#baff91 32%,#43ef8a 58%,transparent 78%);filter:drop-shadow(0 0 8px #56ff8b)}
.battle-projectile.projectile-laser.is-impacting .battle-projectile-trail{opacity:.18;transition:opacity .12s ease-out}
.battle-projectile.projectile-laser .battle-projectile-impact{filter:drop-shadow(0 0 10px #ff315d)}
.projectile-tape .impact-ring{border-color:#e6ff89;box-shadow:0 0 7px #b8ff51,0 0 14px #5eeb3e}
.projectile-yogurt .impact-ring{border-color:#d7ff74;box-shadow:0 0 7px #c4ff55,0 0 14px #48d862}
.projectile-acid .impact-ring{border-color:#e9d6ff;box-shadow:0 0 7px #75f6ff,0 0 14px #bd51ff}
.projectile-acid .impact-core{background:radial-gradient(circle,#fff 0 18%,#8df7ff 34%,#c04cff 69%,transparent 100%);box-shadow:0 0 9px #80f4ff,0 0 15px #bd51ff}
.projectile-stamp .impact-ring{border-color:#ff9aca;box-shadow:0 0 7px #ff4c91,0 0 14px #e82782}
.projectile-cable .impact-ring{border-color:#9bfaff;box-shadow:0 0 7px #fff,0 0 14px #3dceff}
.projectile-claw .impact-ring{border-color:#a7ffff;box-shadow:0 0 8px #52eaff,0 0 16px #ef3de5}
.projectile-laser .impact-ring{border-color:#fff;box-shadow:0 0 7px #fff,0 0 16px #ff315d}
.projectile-elixir .impact-ring{border-color:#d9ffb2;box-shadow:0 0 7px #d9ffb2,0 0 16px #2de87d}
.unit.unit-rooted>.unit-sprite{filter:drop-shadow(0 0 4px #baff4b) drop-shadow(0 0 8px #73db3b)}
.unit.unit-stunned:after,.unit.unit-confused:after{position:absolute;z-index:4;right:-5px;top:-8px;width:18px;height:18px;display:grid;place-items:center;border-radius:50%;font:900 14px/1 sans-serif;pointer-events:none}
.unit.unit-stunned:after{content:'✦';color:#fff4a0;text-shadow:0 0 5px #fff,0 0 10px #ffb836;animation:status-star .36s ease-in-out 2 alternate}
.unit.unit-confused:after{content:'↻';color:#f6d5ff;text-shadow:0 0 6px #a43aff,0 0 11px #e747ff;animation:status-star .7s ease-in-out infinite alternate}
@keyframes status-star{to{transform:rotate(28deg) scale(1.18)}}
.battle-screen .unit.unit-ability-acid_blob.unit-motion-attack>.unit-sprite{animation:kefir-fire .42s ease-out both}
.battle-fx.fx-kefir-shield-hit{width:42px;height:42px;border:0;border-radius:50%;background:radial-gradient(circle,#f5ffff20 0 8%,#b64dff14 34%,transparent 62%);box-shadow:0 0 4px #77f7ff55;animation:kefir-shield-crack .48s ease-out both var(--fx-phase-delay,0ms)}
.kefir-shield-crack-art{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 0 1px #fff) drop-shadow(0 0 3px #70efff) drop-shadow(0 0 4px #b84bf0);pointer-events:none}
@keyframes kefir-fire{0%,100%{scale:1;filter:drop-shadow(0 2px 2px #0009)}28%{scale:1.05 .95;filter:drop-shadow(0 0 6px #8dfaff) drop-shadow(0 0 8px #a946e7)}60%{scale:.98 1.03;filter:drop-shadow(0 0 3px #8dfaff)}}
@keyframes kefir-shield-crack{0%{opacity:0;scale:.38;rotate:0deg}25%{opacity:1;scale:1.02;rotate:12deg}68%{opacity:.84;scale:1.28;rotate:-8deg}100%{opacity:0;scale:1.52;rotate:4deg}}
@media(prefers-reduced-motion:reduce){.battle-fx.fx-kefir-shield-hit{animation:none;opacity:.85;scale:1}.battle-screen .unit.unit-ability-acid_blob.unit-motion-attack>.unit-sprite{animation:none;scale:1}}
.battle-fx[class*="fx-impact-"]{width:42px;height:42px;border:0;border-radius:50%;background:transparent;filter:none;animation:junk-hit-pop .48s cubic-bezier(.16,.78,.22,1) both;animation-delay:var(--fx-phase-delay,0ms)}
.battle-fx[class*="fx-impact-"]:before{content:'';position:absolute;inset:13%;border:2px solid #fff;border-radius:50%;box-shadow:0 0 7px #fff,0 0 15px #37ddff;animation:junk-hit-ring .48s ease-out both;animation-delay:var(--fx-phase-delay,0ms)}
.battle-fx[class*="fx-impact-"]:after{content:'';position:absolute;left:50%;top:50%;width:10px;height:10px;border-radius:50%;background:#fff;box-shadow:0 0 8px #fff,0 0 16px #49eaff;transform:translate(-50%,-50%);animation:junk-hit-core .3s ease-out both;animation-delay:var(--fx-phase-delay,0ms)}
.battle-fx.fx-impact-rocket:before{border-color:#ffd47a;box-shadow:0 0 8px #fff4ad,0 0 16px #ff972a,0 0 22px #e43cb5}
.battle-fx.fx-impact-sock{width:34px;height:31px;background:radial-gradient(ellipse,#fff8 0 8%,#d7c2ff66 26%,transparent 68%);filter:drop-shadow(0 0 8px #c29aff)}
.battle-fx.fx-impact-sock:before{inset:23% 8%;border:2px dashed #eee2ff;border-radius:45% 55% 58% 42%;box-shadow:0 0 7px #bd94ff,0 0 13px #823aff}
.battle-fx.fx-impact-sock:after{left:62%;top:32%;width:8px;height:14px;border:2px solid #fff4ff;border-top:0;border-radius:0 0 55% 55%;background:#b98aff;box-shadow:0 0 7px #cb9bff}
.battle-fx.fx-impact-laser:before{border-color:#fff;box-shadow:0 0 7px #fff,0 0 14px #ff315d}
.battle-fx.fx-impact-chain:before{border-color:#a7fbff;box-shadow:0 0 8px #fff,0 0 16px #36bfff}
.battle-fx.fx-impact-wall{width:34px;height:27px;border-radius:4px;background:repeating-linear-gradient(0deg,#ffcc5c22 0 3px,#18121a22 3px 6px);filter:drop-shadow(0 0 7px #ffb83e)}
.battle-fx.fx-impact-wall:before{inset:10% 22%;border:2px solid #ffe28b;border-radius:3px;box-shadow:0 0 6px #fff2a1,0 0 12px #ff9237}
.battle-fx.fx-chain-link{z-index:6;width:var(--chain-length,24px);height:9px;border:0;border-radius:50%;background:linear-gradient(180deg,transparent 20%,#47dbff 35%,#fff 50%,#48dfff 68%,transparent 82%);filter:drop-shadow(0 0 4px #fff) drop-shadow(0 0 8px #42d9ff) drop-shadow(0 0 13px #914dff);rotate:var(--chain-angle,0deg);animation:chain-link-snap .22s ease-out both}
.battle-fx.fx-chain-link:before{content:'';position:absolute;inset:0;border:0;background:#e8ffff;clip-path:polygon(0 42%,12% 28%,22% 66%,37% 10%,50% 57%,63% 19%,76% 72%,88% 30%,100% 46%,100% 57%,88% 47%,76% 86%,63% 32%,50% 78%,37% 26%,22% 80%,12% 43%,0 56%);filter:drop-shadow(0 0 4px #42d9ff)}
@keyframes chain-link-snap{0%{opacity:0;scale:.25 .65}24%{opacity:1;scale:1.06 1}100%{opacity:0;scale:1 .58}}
.battle-fx.fx-impact-bubble:before{border-color:#edffff;box-shadow:0 0 8px #fff,0 0 15px #52eaff,0 0 0 5px #bcfaff55,0 0 0 9px #70ffd433}
.battle-fx.fx-impact-poison:before{border-color:#d2ff6b;border-radius:43% 57% 55% 45%;box-shadow:0 0 8px #bbff4e,0 0 15px #60dc42}
.battle-fx.fx-impact-glue:before{inset:35% 4%;border:3px solid #d6ff7a;border-radius:3px;transform:rotate(-24deg);box-shadow:0 0 9px #9cff44}
.battle-fx.fx-impact-stomp{width:80px;height:48px;background:url('/assets/effects/sneaker-sole-imprint-v1.svg?v=20261014-01') center/contain no-repeat;filter:drop-shadow(0 0 5px #ffbd4b) drop-shadow(0 0 8px #3edfff)}
.battle-fx.fx-impact-stomp:before{inset:30% 2%;border-width:3px;border-color:#9af8ff;box-shadow:0 0 8px #ffdc69,0 0 17px #42cfff}
.battle-fx.fx-impact-stomp:after{display:none}
.battle-fx.fx-impact-dash{width:48px;height:25px;border-radius:50%;background:radial-gradient(ellipse,#fff8 0 8%,#4ceaff55 28%,#ffbf3b22 58%,transparent 74%);filter:drop-shadow(0 0 7px #49dcff) drop-shadow(0 0 10px #ffca46)}
.battle-fx.fx-impact-dash:before{inset:33% 2%;border-width:3px;border-color:#ffe277;border-radius:50%;box-shadow:0 0 7px #fff4a3,0 0 13px #ffb637}
.battle-fx.fx-impact-dash:after{left:50%;top:50%;width:25px;height:3px;border:0;border-radius:99px;background:linear-gradient(90deg,transparent,#fff 38%,#68efff 70%,transparent);box-shadow:0 0 7px #44e4ff;transform:translate(-50%,-50%) rotate(-18deg)}
.battle-fx.fx-impact-stamp:before{inset:19%;border:3px solid #ff8fbe;border-radius:4px;transform:rotate(-12deg);box-shadow:0 0 8px #f33e8e}
.battle-fx.fx-impact-sonar:before,.battle-fx.fx-impact-reveal:before{border-width:2px;border-color:#a3faff;box-shadow:0 0 8px #fff,0 0 15px #2dcfff}
.battle-fx.fx-impact-claw:before{inset:22% 4%;border:0;border-top:3px solid #fff;border-radius:50%;transform:rotate(-27deg);box-shadow:0 0 8px #ff52d7}
.battle-fx.fx-impact-trap:before{border-radius:3px;border-color:#ffc568;box-shadow:0 0 8px #ffab3d}
.battle-fx.fx-impact-trap{width:clamp(64px,18vw,76px);height:54px;overflow:visible}
.battle-fx.fx-impact-trap:after{display:none}
.battle-fx.fx-impact-trap .mimic-jaw-impact-art{position:absolute;z-index:2;left:50%;top:50%;width:100%;height:100%;object-fit:contain;opacity:0;transform:translate(-50%,-50%) scale(.42) rotate(-10deg);filter:drop-shadow(0 0 5px #fff2a2) drop-shadow(0 0 12px #ff8e36) drop-shadow(0 0 15px #47ddff);animation:mimic-trap-snap .44s cubic-bezier(.14,.82,.2,1) both;animation-delay:var(--fx-phase-delay,0ms);pointer-events:none}
.battle-fx.fx-impact-bounce:before{border-color:#ffcf72;box-shadow:0 0 8px #ffaf41,0 0 14px #41dcff}
.battle-fx.fx-impact-steal:before{border-color:#a8ff84;box-shadow:0 0 8px #a8ff62,0 0 14px #28c899}
.battle-fx.fx-impact-parcel:before{border-radius:4px;border-color:#ffe58c;box-shadow:0 0 9px #ffc544,0 0 16px #a44dff}
.battle-fx.fx-impact-poison-secondary,.battle-fx.fx-impact-bubble-secondary{width:22px;height:22px}
.battle-fx.fx-impact-glue-secondary{width:22px;height:12px;border:2px solid #eaff9a;border-radius:3px;background:linear-gradient(110deg,#b6ff4b99,#ffffbd);box-shadow:0 0 7px #a6ff4b,0 0 12px #65e63c;transform:translate(-50%,-50%) rotate(-24deg);animation:glue-hit-stamp .46s cubic-bezier(.16,.78,.22,1) both;animation-delay:var(--fx-phase-delay,0ms)}
.battle-fx.fx-impact-glue-secondary:before,.battle-fx.fx-impact-glue-secondary:after{display:none}
@keyframes glue-hit-stamp{0%{opacity:0;transform:translate(-50%,-50%) rotate(-42deg) scale(.35)}28%{opacity:1;transform:translate(-50%,-50%) rotate(-22deg) scale(1.18)}100%{opacity:0;transform:translate(-50%,-50%) rotate(-18deg) scale(.9)}}
.battle-fx.fx-impact-poison-secondary:before{border-color:#d2ff6b;box-shadow:0 0 6px #bbff4e,0 0 10px #60dc42}
.battle-fx.fx-impact-poison-secondary:after{width:5px;height:5px;background:#d6ff72;box-shadow:0 0 6px #a5ff4c}
.battle-fx.fx-impact-bubble-secondary:before{border-color:#dfffff;box-shadow:0 0 6px #b9ffff,0 0 10px #52eaff}
.battle-fx.fx-impact-bubble-secondary:after{width:5px;height:5px;background:#fff;box-shadow:0 0 6px #66f2ff}
.battle-fx.fx-impact-laser-secondary{width:19px;height:8px;border-radius:99px;background:linear-gradient(90deg,#ff315d00,#fff 34%,#ff315d 70%,#ff315d00);box-shadow:0 0 5px #fff,0 0 11px #ff315d}
.battle-fx.fx-impact-laser-secondary:before,.battle-fx.fx-impact-laser-secondary:after{display:none}
.battle-fx.fx-impact-laser-tower{z-index:7;width:28px;height:28px;border-radius:4px;background:radial-gradient(circle,#fff 0 8%,#ff315d 16%,#ff315d44 34%,transparent 70%);filter:drop-shadow(0 0 6px #ff315d);animation:junk-hit-pop .32s ease-out both;animation-delay:var(--fx-phase-delay,0ms)}
.battle-fx.fx-impact-laser-tower:before{inset:22%;border:2px solid #fff;border-radius:3px;box-shadow:0 0 7px #ff315d,0 0 13px #ff315d}
.battle-fx.fx-impact-laser-tower:after{width:4px;height:4px;background:#fff;box-shadow:0 0 7px #ff315d}
.battle-fx.fx-impact-reflect{width:27px;height:27px}
.battle-fx.fx-impact-reflect:before{inset:18%;border-color:#fff0a7;box-shadow:0 0 7px #fff,0 0 14px #ffbd43}
.battle-fx.fx-impact-reflect:after{width:6px;height:6px;background:#fff6b2;box-shadow:0 0 9px #ffbf46}
.battle-fx.fx-reflect-glint{z-index:8;width:21px;height:25px;border:0;border-radius:0;background:url('/assets/effects/galya-passport-reflect-v3.svg?v=1') center/contain no-repeat;filter:drop-shadow(0 0 5px #ffcf63) drop-shadow(0 0 8px #f66eaf);animation:galya-passport-reflect .42s cubic-bezier(.16,.8,.25,1) both}
.battle-fx.fx-reflect-glint:before,.battle-fx.fx-reflect-glint:after{display:none}
.battle-fx.fx-wall-corrosion{z-index:7;width:30px;height:24px;border:2px solid #bcff56;border-radius:45% 55% 35% 50%;background:radial-gradient(ellipse,#f8ffb7 0 12%,#a9ff4b99 35%,#53d63433 68%,transparent 72%);filter:drop-shadow(0 0 7px #8bff3d);animation:corrode-mark .56s ease-out both}
.battle-fx.fx-wall-corrosion:before{inset:20% 30%;border-color:#fffab0;border-radius:50%;box-shadow:0 0 7px #a6ff3c}
.battle-fx.fx-wall-corrosion:after{display:none}
.battle-fx.fx-corrosion-drip{z-index:7;width:10px;height:13px;border:1px solid #eaff9d;border-radius:70% 35% 65% 35%;background:#a8ff42;box-shadow:0 0 7px #a8ff42;animation:corrosion-drip .5s ease-in both}
.battle-fx.fx-corrosion-drip:before,.battle-fx.fx-corrosion-drip:after{display:none}
.battle-fx.fx-swap-link{z-index:6;width:var(--chain-length,24px);height:3px;border:0;border-radius:99px;background:linear-gradient(90deg,#60efff00,#61efff 13%,#fff 50%,#ff6aca 87%,#ff6aca00);box-shadow:0 0 4px #fff,0 0 9px #56eaff,0 0 13px #ef44cf;rotate:var(--chain-angle,0deg);transform:translate(-50%,-50%) scaleX(.04);transform-origin:50% 50%;animation:swap-link-build .38s cubic-bezier(.14,.8,.2,1) both}
.battle-fx.fx-swap-link:before,.battle-fx.fx-swap-link:after{content:'';position:absolute;top:50%;width:8px;height:10px;border:0;background:#fff;filter:drop-shadow(0 0 4px #66efff);transform:translateY(-50%);clip-path:polygon(100% 0,0 50%,100% 100%)}
.battle-fx.fx-swap-link:before{left:0}
.battle-fx.fx-swap-link:after{right:0;rotate:180deg;filter:drop-shadow(0 0 4px #ff61d2)}
@keyframes corrode-mark{0%{opacity:0;transform:translate(-50%,-50%) scale(.4) rotate(-12deg)}30%{opacity:1;transform:translate(-50%,-50%) scale(1.12) rotate(6deg)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.28) rotate(0)}}
@keyframes corrosion-drip{0%{opacity:0;transform:translate(-50%,-50%) translateY(-10px) scale(.5)}28%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) translateY(9px) scale(.85)}}
.battle-fx.fx-impact-stomp-secondary{width:25px;height:13px;border-radius:50%;background:#50dfff44;box-shadow:0 0 7px #43dfff}
.battle-fx.fx-impact-stomp-secondary:before{inset:24% 0;border-color:#a7f7ff;box-shadow:0 0 6px #54ddff}
.battle-fx.fx-impact-stomp-secondary:after{width:4px;height:4px;background:#fff1b1;box-shadow:0 0 6px #ffbd48}
.battle-fx.fx-impact-claw-secondary{width:22px;height:18px}
.battle-fx.fx-impact-claw-secondary:before{inset:28% 4%;border-color:#ff78d9;box-shadow:0 0 7px #fa52d7}
.battle-fx.fx-impact-claw-secondary:after{width:5px;height:5px;background:#fff;box-shadow:0 0 7px #ff52d7}
@keyframes junk-hit-pop{0%{opacity:0;transform:translate(-50%,-50%) scale(.32)}20%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(1.25)}}
@keyframes junk-hit-ring{0%{opacity:0;transform:scale(.28)}22%{opacity:1}100%{opacity:0;transform:scale(2.25)}}
@keyframes junk-hit-core{0%{opacity:0;transform:translate(-50%,-50%) scale(.25)}35%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(1.6)}}
.battle-fx.fx-bubble-pop,.battle-fx.fx-death-buff,.battle-fx.fx-revive-pulse,.battle-fx.fx-spawn-pulse,.battle-fx.fx-evolve-pulse,.battle-fx.fx-ambush-pulse,.battle-fx.fx-sonar-reveal,.battle-fx.fx-swap-glitch,.battle-fx.fx-elixir-steal,.battle-fx.fx-elixir-return,.battle-fx.fx-titan-aura{width:54px;height:54px;border:2px solid #c5fbff;border-radius:50%;background:radial-gradient(circle,#fff9 0 5%,#48eaff35 22%,transparent 70%);filter:drop-shadow(0 0 9px #45eaff);animation:status-pulse .62s cubic-bezier(.18,.72,.3,1) both}
.battle-fx.fx-bubble-pop{border:0;background:radial-gradient(circle,#fff 0 7%,#f2ffff 10%,#a6fbff 17%,#59e8ff88 28%,#d64dff30 43%,transparent 68%);filter:drop-shadow(0 0 7px #b9ffff) drop-shadow(0 0 13px #3cdfff88);mix-blend-mode:screen;animation:bubble-pop-core-v2 .56s cubic-bezier(.14,.78,.23,1) both}
.battle-fx.fx-bubble-pop:before{content:'';position:absolute;inset:7px;border:2px solid #dcffff;border-right-color:#65edff;border-bottom-color:#ff71e6;border-radius:50%;background:transparent;box-shadow:0 0 6px #fff,0 0 13px #4ceaff,inset 0 0 7px #cd4dff;transform:scale(.34) rotate(-28deg);opacity:0;animation:bubble-pop-ring-v2 .56s cubic-bezier(.14,.78,.23,1) both}
.battle-fx.fx-bubble-pop:after{content:'';position:absolute;left:50%;top:50%;width:8px;height:8px;border:1px solid #efffff;border-radius:50%;background:radial-gradient(circle at 30% 25%,#fff 0 18%,#c5ffff 23%,#4adfff 70%,#ad47ff);box-shadow:-23px -22px 0 0 #8df8ff,24px -18px 0 -1px #ff70e2,21px 22px 0 0 #59eaff,-22px 20px 0 -1px #d6baff,0 -30px 0 -2px #fff,32px 5px 0 -3px #fff,-32px -3px 0 -3px #ff96ea;filter:drop-shadow(0 0 5px #79faff);transform:translate(-50%,-50%) scale(.08);opacity:0;animation:bubble-pop-droplets-v2 .5s cubic-bezier(.16,.8,.25,1) both}
.battle-fx.yogurt-death-art{z-index:8;width:74px;height:74px;object-fit:contain;filter:drop-shadow(0 0 4px #ff74bb88);animation:yogurt-svg-death .64s cubic-bezier(.16,.82,.22,1) both}
.battle-fx.yogurt-hit-art{z-index:8;width:25px;height:25px;object-fit:contain;filter:drop-shadow(0 0 3px #ff69bd77);animation:yogurt-svg-hit .44s cubic-bezier(.16,.82,.22,1) both}
@keyframes yogurt-svg-death{0%{opacity:0;transform:translate(-50%,-50%) scale(.38) rotate(-8deg)}20%{opacity:1;transform:translate(-50%,-50%) scale(1.08) rotate(3deg)}68%{opacity:1;transform:translate(-50%,-50%) scale(1) rotate(-1deg)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.16)}}
@keyframes yogurt-svg-hit{0%{opacity:0;transform:translate(-50%,-50%) scale(.38) rotate(-7deg)}24%{opacity:1;transform:translate(-50%,-50%) scale(1.08) rotate(2deg)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.24)}}
.battle-fx.fx-death-buff{border-color:#ff71ee;background:radial-gradient(circle,#fff8 0 6%,#fa48ea44 30%,transparent 70%);filter:drop-shadow(0 0 13px #ed36da)}
.battle-fx.fx-revive-pulse{border-color:#ffdc82;background:radial-gradient(circle,#fff 0 7%,#ffd15c66 22%,transparent 68%);filter:drop-shadow(0 0 11px #ffad36);animation-delay:var(--fx-phase-delay,0ms)}
.battle-fx.fx-spawn-pulse{border-color:#ffeaa3;background:radial-gradient(circle,#fff 0 7%,#ffbe4c55 26%,transparent 70%);filter:drop-shadow(0 0 9px #ffbb43);animation:spawn-entry-pulse .62s cubic-bezier(.18,.72,.3,1) var(--fx-phase-delay,0ms) both}
.battle-fx.fx-spawn-pulse[data-spawn-compact="true"]{width:36px;height:36px;border-width:1.5px}
.battle-fx.fx-spawn-pulse[data-spawn-rarity="rare"]{border-color:#9cf7ff;background:radial-gradient(circle,#fff 0 7%,#65edff66 27%,#65edff12 52%,transparent 72%);filter:drop-shadow(0 0 9px #42eaff)}
.battle-fx.fx-spawn-pulse[data-spawn-rarity="epic"]{border-color:#efb0ff;background:radial-gradient(circle,#fff 0 7%,#cb62ff66 27%,#cb62ff12 54%,transparent 72%);filter:drop-shadow(0 0 9px #be54ff)}
.battle-fx.fx-spawn-pulse[data-spawn-rarity="legendary"]{border-color:#fff0ac;background:radial-gradient(circle,#fff 0 7%,#ffc44f77 26%,#ff7cae20 54%,transparent 73%);filter:drop-shadow(0 0 9px #ffc04e) drop-shadow(0 0 13px #ff5795)}
.battle-fx.fx-spawn-pulse[data-spawn-rarity="titan"]{border-color:#bcffff;background:radial-gradient(circle,#fff 0 6%,#6af3ff88 23%,#d84cff33 48%,transparent 74%);filter:drop-shadow(0 0 8px #48edff) drop-shadow(0 0 13px #cb49ff)}
.battle-fx.fx-spawn-pulse>.spawn-rarity-aura{position:absolute;z-index:0;left:50%;top:50%;width:114%;aspect-ratio:1;border:1px solid currentColor;border-radius:50%;color:#83f4ff;box-shadow:0 0 6px currentColor,0 0 11px currentColor;opacity:0;transform:translate(-50%,-50%) scale(.62);animation:spawn-rarity-aura .62s cubic-bezier(.16,.78,.22,1) var(--fx-phase-delay,0ms) both;pointer-events:none}
.battle-fx.fx-spawn-pulse[data-spawn-rarity="rare"]>.spawn-rarity-aura{width:114%;color:#83f4ff}
.battle-fx.fx-spawn-pulse[data-spawn-rarity="epic"]>.spawn-rarity-aura{width:128%;border-style:dashed;border-width:1.5px;color:#e49aff;box-shadow:0 0 6px #df7dff,0 0 14px #a439ff88}
.battle-fx.fx-spawn-pulse[data-spawn-rarity="legendary"]>.spawn-rarity-aura{width:142%;border-style:double;border-width:2px;color:#ffe69a;box-shadow:0 0 7px #ffe36e,0 0 16px #ffad4488}
.battle-fx.fx-spawn-pulse[data-spawn-rarity="titan"]>.spawn-rarity-aura{width:154%;border-style:dashed;border-width:2px;color:#9ffaff;filter:drop-shadow(0 0 4px #42dcff) drop-shadow(0 0 7px #db52ff)}
@keyframes spawn-rarity-aura{0%{opacity:0;transform:translate(-50%,-50%) scale(.62)}22%{opacity:.9}100%{opacity:0;transform:translate(-50%,-50%) scale(1.12)}}
@keyframes spawn-entry-pulse{0%{opacity:0;transform:translate(-50%,-50%) scale(.3)}22%{opacity:1;transform:translate(-50%,-50%) scale(.72)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.6)}}
@media(prefers-reduced-motion:reduce){.battle-fx.fx-spawn-pulse{animation:none!important;opacity:.9!important;transform:translate(-50%,-50%) scale(1)!important}.battle-fx.fx-spawn-pulse>.spawn-rarity-aura{animation:none!important;opacity:.78!important;transform:translate(-50%,-50%) scale(1)!important}}
.battle-fx.fx-spawn-source-bag,.battle-fx.fx-spawn-source-pvz{width:58px;height:42px;border:2px solid #80f4ff;border-radius:8px 8px 20px 20px;background:radial-gradient(ellipse at 50% 78%,#fff 0 5%,#69f6ff75 20%,#be35ff35 56%,transparent 75%);filter:drop-shadow(0 0 8px #56eaff);animation:spawn-source-open .48s cubic-bezier(.16,.8,.28,1) var(--fx-phase-delay,0ms) both}
.battle-fx.fx-spawn-source-bag{border-color:#ffe18d;background:radial-gradient(ellipse at 50% 78%,#fff 0 5%,#ffd36b88 20%,#ff71cf3d 56%,transparent 75%);filter:drop-shadow(0 0 9px #ffcb59)}
.battle-fx.fx-spawn-source-pvz{border-radius:9px 9px 24px 24px;background:radial-gradient(ellipse at 50% 78%,#fff 0 5%,#7bf6ff77 20%,#ffbe4940 56%,transparent 75%)}
@media(prefers-reduced-motion:reduce){.battle-fx.fx-spawn-source-bag,.battle-fx.fx-spawn-source-pvz{animation:none!important;opacity:.88!important;transform:translate(-50%,-50%) scale(1)!important}.battle-screen .unit.unit-ability-spawner.unit-motion-attack>.unit-sprite,.battle-screen .unit.unit-ability-baglet.unit-motion-attack>.unit-sprite,.battle-screen .unit.unit-ability-titan_spawner.unit-motion-attack>.unit-sprite{animation:none!important}}
@keyframes spawn-source-open{0%{opacity:0;transform:translate(-50%,-42%) scale(.62)}24%{opacity:1}58%{opacity:1;transform:translate(-50%,-56%) scale(1.06)}100%{opacity:0;transform:translate(-50%,-72%) scale(1.16)}}
.battle-fx.fx-evolve-pulse{width:72px;height:72px;border-color:#75f7ff;background:radial-gradient(circle,#fff9 0 5%,#ff4fe944 25%,#26cfff22 54%,transparent 72%);filter:drop-shadow(0 0 13px #5deeff)}
.battle-fx.fx-ambush-pulse{border-color:#b7faff;background:radial-gradient(circle,#fff 0 7%,#66e9ff55 22%,transparent 68%);filter:drop-shadow(0 0 10px #70edff)}
.battle-fx.fx-sonar-reveal{width:38px;height:38px;border-color:#8ffbff;background:transparent;filter:drop-shadow(0 0 7px #3bdfff)}
.battle-fx.fx-sonar-wave{z-index:5;width:64px;height:64px;border:2px solid #9ffbff;border-radius:50%;background:radial-gradient(circle,transparent 48%,#45eaff20 58%,transparent 72%);box-shadow:inset 0 0 8px #fff8,0 0 9px #45eaff;filter:drop-shadow(0 0 8px #39dfff);animation:sonar-source-wave .72s cubic-bezier(.12,.74,.24,1) both}
@keyframes sonar-source-wave{0%{opacity:0;transform:translate(-50%,-50%) scale(.28)}15%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(2.6)}}
.battle-fx.fx-feed-burst{z-index:8;width:25px;height:25px;border:0;background:transparent;filter:drop-shadow(0 0 5px #b9ff42) drop-shadow(0 0 10px #32dfff);animation:feed-heart-pop .58s cubic-bezier(.18,.88,.3,1) both}
.battle-fx.fx-feed-burst:before{content:'♥';position:absolute;left:50%;top:50%;color:#c6ff63;font:900 22px/1 system-ui,sans-serif;text-shadow:0 0 4px #fff,0 0 9px #6eff61,0 0 14px #38eaff;transform:translate(-50%,-50%)}
.battle-fx.fx-feed-burst:after{content:'+10с';position:absolute;left:60%;top:-3%;padding:2px 4px;border:1px solid #d9ff85;border-radius:4px;background:#111827ed;color:#eaffb2;font:900 9px/1 system-ui,sans-serif;white-space:nowrap;box-shadow:0 0 5px #73f45f,0 0 9px #32dfff;text-shadow:0 0 5px #5cf4ff}
@keyframes feed-heart-pop{0%{opacity:0;transform:translate(-50%,-50%) translateY(7px) scale(.45)}24%{opacity:1;transform:translate(-50%,-50%) translateY(0) scale(1.16)}100%{opacity:0;transform:translate(-50%,-50%) translateY(-25px) scale(.82)}}
.battle-fx.fx-swap-glitch{z-index:4;width:30px;height:36px;border:1px solid #93f5ff;border-radius:4px;background:repeating-linear-gradient(0deg,transparent 0 6px,#65efff42 6px 7px),linear-gradient(90deg,#58efff18 0 46%,#ff62d421 54% 100%);box-shadow:inset 0 0 6px #45eaff2b;filter:drop-shadow(0 0 5px #50eaff) drop-shadow(0 0 7px #e934e3);animation:swap-glitch .38s steps(3,end) both}
.battle-fx.fx-swap-glitch:before{content:'';position:absolute;left:50%;top:50%;width:4px;height:4px;border:1px solid #fff;border-radius:50%;background:#fff;box-shadow:0 0 7px #68f4ff,0 0 12px #ff50cf;transform:translate(-50%,-50%)}
.battle-fx.fx-swap-glitch:after{content:'';position:absolute;inset:4px;border:1px solid #ff7bd55e;border-radius:2px;clip-path:polygon(0 0,32% 0,32% 8%,8% 8%,8% 32%,0 32%,0 0,100% 0,100% 32%,92% 32%,92% 8%,68% 8%,68% 0,100% 0,100% 100%,68% 100%,68% 92%,92% 92%,92% 68%,100% 68%,100% 100%,0 100%,0 68%,8% 68%,8% 92%,32% 92%,32% 100%,0 100%)}
.battle-fx.fx-swap-arrival{z-index:6;width:25px;height:25px;border:1px solid #88f8ff;border-radius:5px;background:radial-gradient(circle,#fff 0 4%,#58ebff44 14%,#58ebff12 47%,transparent 72%);box-shadow:0 0 5px #fff,0 0 9px #4ceaff,0 0 12px #f33dbf;animation:swap-arrival .4s cubic-bezier(.14,.82,.2,1) .13s both}
.battle-fx.fx-swap-arrival:before{content:'';position:absolute;inset:4px;border:1px solid #ff6bc8;border-radius:3px;rotate:45deg;box-shadow:0 0 4px #ff59c5}
.battle-fx.fx-swap-arrival:after{content:'↔';position:absolute;left:50%;top:50%;color:#fff;font:900 10px/1 ui-monospace,SFMono-Regular,Menlo,monospace;text-shadow:0 0 4px #39eaff,0 0 7px #fa4cc2;transform:translate(-50%,-50%)}
.battle-fx.fx-elixir-steal,.battle-fx.fx-elixir-return{width:19px;height:19px;border:2px solid #b2ff72;background:radial-gradient(circle,#fff 0 8%,#9dff57 25%,#27c985 72%);filter:drop-shadow(0 0 6px #8bff5c);animation:elixir-dart .58s ease-in-out both}
.battle-fx.fx-elixir-return{border-color:#78faff;background:radial-gradient(circle,#fff 0 10%,#5ceaff 35%,#4773ff 75%);filter:drop-shadow(0 0 7px #53eaff)}
.battle-fx.fx-titan-aura{width:100px;height:70px;border-color:#ffe89a;background:radial-gradient(ellipse,#fff8 0 4%,#ffc44740 35%,transparent 72%);filter:drop-shadow(0 0 12px #ffc04a)}
.battle-fx.fx-titan-ally-buff{width:32px;height:32px;border:2px solid #ffe28d;border-radius:50%;background:radial-gradient(circle,#fff9 0 9%,#ffc94b66 28%,transparent 72%);filter:drop-shadow(0 0 7px #ffcb4a);animation:status-pulse .52s cubic-bezier(.18,.72,.3,1) both}
@keyframes status-pulse{0%{opacity:0;scale:.3}22%{opacity:1}100%{opacity:0;scale:1.6}}
@keyframes bubble-pop-core-v2{0%{opacity:0;scale:.16}13%{opacity:1;scale:.48}38%{opacity:.96;scale:.92}100%{opacity:0;scale:1.12}}
@keyframes bubble-pop-ring-v2{0%{opacity:0;transform:scale(.34) rotate(-28deg)}17%{opacity:.95}100%{opacity:0;transform:scale(1.32) rotate(94deg)}}
@keyframes bubble-pop-droplets-v2{0%{opacity:0;transform:translate(-50%,-50%) scale(.08)}14%{opacity:1;transform:translate(-50%,-50%) scale(.35)}42%{opacity:1;transform:translate(-50%,-50%) scale(.82)}78%{opacity:.78;transform:translate(-50%,-50%) scale(1.06)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.18)}}
@keyframes swap-glitch{0%{opacity:0;transform:translate(-50%,-50%) scale(.56) skewX(0)}18%{opacity:1}42%{transform:translate(-57%,-50%) scaleX(1.12) skewX(14deg)}67%{transform:translate(-44%,-50%) scaleX(.9) skewX(-11deg)}100%{opacity:0;transform:translate(-50%,-50%) scale(.86) skewX(0)}}
@keyframes swap-link-build{0%{opacity:0;transform:translate(-50%,-50%) scaleX(.04)}18%{opacity:1}72%{opacity:.9}100%{opacity:0;transform:translate(-50%,-50%) scaleX(1)}}
@keyframes swap-arrival{0%{opacity:0;transform:translate(-50%,-50%) scale(.42) rotate(-16deg)}28%{opacity:1;transform:translate(-50%,-50%) scale(1.12) rotate(4deg)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.36) rotate(0)}}
@media(prefers-reduced-motion:reduce){.battle-fx.fx-swap-glitch,.battle-fx.fx-swap-link,.battle-fx.fx-swap-arrival{animation:none!important;opacity:.86!important;transform:translate(-50%,-50%)!important}.battle-fx.fx-swap-link{rotate:var(--chain-angle,0deg)}}
@keyframes elixir-dart{0%{opacity:0;scale:.45}25%{opacity:1;scale:1.2}100%{opacity:0;scale:.7;translate:0 -24px}}
.battle-fx.fx-courier-dash{z-index:8;width:30px;height:var(--dash-length,100px);overflow:visible;border:0;border-radius:0;background:transparent;filter:none;animation:courier-rush .46s ease-out both;animation-delay:var(--fx-phase-delay,0ms)}
.fx-courier-dash .courier-dash-rail,.fx-courier-dash .courier-dash-ribbon{position:absolute;top:0;height:100%;border-radius:8px;clip-path:inset(100% 0 0);animation:courier-track-up .42s cubic-bezier(.16,.82,.22,1) both;animation-delay:var(--fx-phase-delay,0ms);pointer-events:none}
.fx-courier-dash .courier-dash-rail{width:3px;background:repeating-linear-gradient(180deg,#fff4a0 0 3px,#ffc83b 3px 6px,transparent 6px 12px);filter:drop-shadow(0 0 4px #ffb82f)}
.fx-courier-dash .courier-dash-rail-a{left:7px}.fx-courier-dash .courier-dash-rail-b{right:7px;background:repeating-linear-gradient(180deg,#fff 0 2px,#47edff 2px 5px,transparent 5px 12px);filter:drop-shadow(0 0 4px #35e7ff)}
.fx-courier-dash .courier-dash-ribbon{left:calc(50% - 2px);width:4px;background:linear-gradient(180deg,#fff 0%,#ffe669 24%,#5ff5ff 66%,#d541ff 86%,transparent 100%);box-shadow:0 0 6px #fff,0 0 12px #4deeff;animation-duration:.36s}
.fx-courier-dash[data-dash-direction="down"] .courier-dash-rail,.fx-courier-dash[data-dash-direction="down"] .courier-dash-ribbon{clip-path:inset(0 0 100%);animation-name:courier-track-down}
.fx-courier-dash .courier-dash-end{position:absolute;left:50%;top:-4px;width:13px;height:13px;border:1px solid #fff;border-radius:2px;background:#fff18b;box-shadow:0 0 6px #fff,0 0 13px #ffbe39,0 0 18px #3deaff;clip-path:polygon(50% 0,100% 72%,63% 54%,63% 100%,37% 100%,37% 54%,0 72%);transform:translateX(-50%) scale(.3);opacity:0;animation:courier-end-hit .46s cubic-bezier(.16,.82,.22,1) both;animation-delay:var(--fx-phase-delay,0ms)}
.fx-courier-dash[data-dash-direction="down"] .courier-dash-end{top:auto;bottom:-4px;rotate:180deg;transform:translateX(-50%) scale(.3)}
.fx-courier-dash.is-collision .courier-dash-end{clip-path:none;border-radius:50%;background:#ff4564;box-shadow:0 0 7px #fff,0 0 15px #ff365d,0 0 20px #ffc447}
.fx-courier-dash .courier-dash-spark{position:absolute;left:50%;bottom:-4px;width:9px;height:9px;border:1px solid #fff;border-radius:50%;background:#ffe886;box-shadow:0 0 6px #fff,0 0 13px #ffad30;transform:translateX(-50%) scale(.2);opacity:0;animation:courier-launch-spark .3s ease-out both;animation-delay:var(--fx-phase-delay,0ms)}
.fx-courier-dash[data-dash-direction="down"] .courier-dash-spark{top:-4px;bottom:auto}
@keyframes courier-rush{0%{opacity:0}12%{opacity:1}76%{opacity:.92}100%{opacity:0}}
@keyframes courier-track-up{0%{clip-path:inset(100% 0 0)}68%{clip-path:inset(0)}100%{clip-path:inset(0)}}
@keyframes courier-track-down{0%{clip-path:inset(0 0 100%)}68%{clip-path:inset(0)}100%{clip-path:inset(0)}}
@keyframes courier-end-hit{0%,32%{opacity:0}58%{opacity:1;transform:translateX(-50%) scale(1.08)}100%{opacity:0;transform:translateX(-50%) scale(.78)}}
@keyframes courier-launch-spark{0%{opacity:0;transform:translateX(-50%) scale(.2)}40%{opacity:1;transform:translateX(-50%) scale(1.2)}100%{opacity:0;transform:translateX(-50%) scale(.5)}}
@media(prefers-reduced-motion:reduce){.battle-fx.fx-courier-dash{animation:none!important;opacity:.86}.fx-courier-dash .courier-dash-rail,.fx-courier-dash .courier-dash-ribbon{animation:none!important;clip-path:none}.fx-courier-dash .courier-dash-end,.fx-courier-dash .courier-dash-spark{animation:none!important;opacity:.88;transform:translateX(-50%) scale(1)}}
.battle-fx.fx-passport-wave,.battle-fx.fx-confuse-wave{width:190%;height:155%;border:1px solid #9df8ff;border-radius:50%;background:radial-gradient(ellipse,transparent 40%,#43e9ff12 51%,transparent 63%);filter:drop-shadow(0 0 8px #45eaff);animation:global-wave .6s ease-out both}
.battle-fx.fx-confuse-wave{border-color:#e695ff;background:radial-gradient(ellipse,transparent 36%,#b13eff22 50%,transparent 65%);filter:drop-shadow(0 0 9px #c144ff)}
.battle-fx.fx-confuse-target{z-index:9;width:24px;height:24px;border:1px solid #efa5ff;border-radius:8px 8px 8px 3px;background:linear-gradient(145deg,#3c1d57ed,#101b3de8);color:#fff;font:1000 17px/1 system-ui,sans-serif;text-align:center;text-shadow:0 0 6px #eb91ff;box-shadow:inset 0 0 7px #a445df88,0 0 8px #d35cff,0 0 13px #39dfff99;filter:none;animation:confuse-target-pop .56s cubic-bezier(.16,.82,.25,1) both}
.battle-fx.fx-confuse-target:before{content:'?';position:absolute;inset:2px 0 0;text-align:center;line-height:21px}
.battle-fx.fx-confuse-target:after{content:'';position:absolute;right:-4px;top:-4px;width:5px;height:5px;border:1px solid #9ffaff;background:#ec7cff;border-radius:1px;box-shadow:0 0 5px #74f5ff;rotate:45deg}
@keyframes confuse-target-pop{0%{opacity:0;transform:translate(-50%,-50%) translateY(5px) scale(.6)}25%{opacity:1;transform:translate(-50%,-50%) translateY(-2px) scale(1.08)}100%{opacity:0;transform:translate(-50%,-50%) translateY(-7px) scale(.88)}}
@keyframes global-wave{0%{opacity:0;scale:.25}18%{opacity:.85}100%{opacity:0;scale:1.08}}
.battle-screen .unit.unit-spawn-in{animation:unit-arrive .42s cubic-bezier(.17,.82,.28,1.3) both;animation-delay:var(--spawn-delay,0ms)}
.battle-screen .unit.unit-ability-trap .unit-sprite{transform-origin:50% 76%}
.battle-screen .unit.unit-ability-invis.unit-motion-ambush>.unit-sprite{animation:ambush-arrive .38s cubic-bezier(.15,.86,.28,1.2) both}
@keyframes ambush-arrive{0%{opacity:.2;transform:scale(.68)}55%{opacity:1;transform:scale(1.12)}100%{opacity:1;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.battle-projectile-trail,.battle-projectile-body,.battle-projectile-impact,.battle-fx[class*="fx-impact-"],.battle-fx[class*="fx-"]{animation:none!important;transition:none!important}.battle-fx.fx-impact-rocket,.battle-fx.fx-impact-laser,.battle-fx.fx-impact-chain,.battle-fx.fx-impact-poison,.battle-fx.fx-impact-stomp,.battle-fx.fx-impact-wall{opacity:.8}.unit.unit-stunned:after,.unit.unit-confused:after{animation:none}}
@media(prefers-reduced-motion:reduce){.battle-fx[class*="fx-impact-"]:before,.battle-fx[class*="fx-impact-"]:after{animation:none!important;transition:none!important;opacity:.86!important}}
@media(prefers-reduced-motion:reduce){.battle-fx.yogurt-death-art,.battle-fx.yogurt-hit-art{animation:none!important;transition:none!important;opacity:.88;transform:translate(-50%,-50%) scale(1)}}
@media(prefers-reduced-motion:reduce){.battle-fx.fx-bubble-pop{animation:none!important;opacity:.92!important;scale:1;background:radial-gradient(circle,#fff 0 9%,#d9ffff 18%,#67e8ff55 38%,transparent 69%)}.battle-fx.fx-bubble-pop:before{animation:none!important;opacity:.9;transform:scale(1) rotate(28deg)}.battle-fx.fx-bubble-pop:after{animation:none!important;opacity:.9;transform:translate(-50%,-50%) scale(.72)}}
.shop-stage-result[hidden]{display:none}.shop-stage-result{position:absolute;z-index:4;inset:5%;display:flex;align-items:center;justify-content:center;gap:10px;padding:10px;background:radial-gradient(ellipse,#090b15d9 0 54%,#090b1570 75%,transparent);opacity:0;transform:scale(.72);pointer-events:none}.shop-reward-revealed .shop-stage-result{animation:shop-stage-result-in .46s cubic-bezier(.15,.9,.25,1.18) both}.shop-stage-result-card{display:grid;justify-items:center;gap:4px;width:min(48%,126px);padding:6px;border:2px solid #8791a7;border-radius:7px;background:linear-gradient(150deg,#31364a,#12141e);box-shadow:0 4px #05060b,0 0 13px #4beaff55;color:#fff}.shop-stage-result-card img{width:100%;height:112px;object-fit:cover;border-radius:4px}.shop-stage-result-card strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.shop-stage-result-card b{color:#faff00;font-size:12px}.shop-stage-result-card.rarity-rare{border-color:#4caeff;box-shadow:0 4px #071126,0 0 16px #3198ff88}.shop-stage-result-card.rarity-epic{border-color:#c258ff;box-shadow:0 4px #190a26,0 0 18px #c258ff99}.shop-stage-result-card.rarity-legendary,.shop-stage-result-card.rarity-titan{border-color:#ffd753;box-shadow:0 4px #291909,0 0 21px #ffac2ecc}.shop-stage-result-coins{display:grid;justify-items:center;gap:4px;padding:10px;border:2px solid #ffdb5b;border-radius:10px;background:linear-gradient(145deg,#4a2d0b,#16100b);color:#fff1a0;box-shadow:0 0 20px #ffa92699}.shop-stage-result-coins img{width:54px;height:54px;object-fit:contain;filter:drop-shadow(0 0 8px #ffd64f)}.shop-stage-result-coins strong{font-size:17px}.shop-reward-waiting[hidden]{display:none}.shop-reward-waiting{margin:4px auto;color:#fff1a0;font-size:12px;font-weight:900;letter-spacing:.04em;text-shadow:0 0 9px #ffb632}.shop-reward-awaiting .shop-reward-waiting:not([hidden]){animation:shop-loot-in .32s ease-out both}@keyframes shop-stage-result-in{0%{opacity:0;transform:scale(.72)}60%{opacity:1;transform:scale(1.06)}100%{opacity:1;transform:scale(1)}}@media(prefers-reduced-motion:reduce){.shop-reward-revealed .shop-stage-result,.shop-reward-awaiting .shop-reward-waiting{animation:none;opacity:1;transform:none}}

.battle-projectile-body.has-art{width:22px;height:22px;border:0;border-radius:0;background:transparent;box-shadow:none}
.battle-projectile-art{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 0 3px #fff8) drop-shadow(0 0 7px #53eaff);pointer-events:none}
.battle-projectile.projectile-jaw{z-index:7}
.projectile-jaw .battle-projectile-body.has-art{width:38px;height:31px}
.projectile-jaw .battle-projectile-art{filter:drop-shadow(0 0 4px #fff6) drop-shadow(0 0 8px #ffb43c) drop-shadow(0 0 12px #3cddff)}
.projectile-jaw .battle-projectile-trail{height:4px;background:linear-gradient(90deg,#ff4dc800,#f34bea 24%,#ffb83e 67%,#fff0a4);filter:drop-shadow(0 0 5px #ff9b37) drop-shadow(0 0 7px #d83fe5)}
.projectile-jaw .impact-ring{border-radius:5px;border-color:#ffc863;box-shadow:0 0 7px #fff1a3,0 0 14px #ff9a31,0 0 19px #38dfff}
.projectile-jaw.is-impacting .battle-projectile-body{opacity:0;transition:opacity .045s linear}
.projectile-pixel .battle-projectile-body{width:20px;height:20px}
.projectile-pixel .battle-projectile-trail{height:5px;background:linear-gradient(90deg,#d93aff00,#d93aff 32%,#5deeff 72%,#fff 100%);filter:drop-shadow(0 0 5px #5deeff) drop-shadow(0 0 8px #d93aff)}
.projectile-ticket .battle-projectile-body{width:24px;height:18px}
.projectile-ticket .battle-projectile-trail{height:4px;background:linear-gradient(90deg,#ff5c9a00,#fa4d92 42%,#ffe4a0 100%);filter:drop-shadow(0 0 5px #ff579c)}
.projectile-spark .battle-projectile-body{width:23px;height:16px}
.projectile-spark .battle-projectile-trail{height:3px;background:linear-gradient(90deg,#8d55ff00,#a67cff 28%,#4eeeff 70%,#fff 100%);filter:drop-shadow(0 0 5px #41ddff)}
.projectile-pellet .battle-projectile-body{width:23px;height:18px}
.projectile-pellet .battle-projectile-trail{height:4px;background:linear-gradient(90deg,#79ed4b00,#b2ed48 42%,#fff1a3 100%);filter:drop-shadow(0 0 5px #8df34b)}
.projectile-pvz-crate .battle-projectile-body{width:19px;height:19px}
.projectile-pvz-crate .battle-projectile-trail{height:5px;background:linear-gradient(90deg,#a844ff00,#a844ff 25%,#ffca53 73%,#fff1ad 100%);filter:drop-shadow(0 0 6px #ffc64d) drop-shadow(0 0 8px #a844ff)}
.battle-projectile-muzzle[data-kind="pixel"]{background:radial-gradient(circle,#fff 0 13%,#b6ffff 26%,#46dbff 48%,#be4dff 67%,transparent 78%);filter:drop-shadow(0 0 5px #fff) drop-shadow(0 0 10px #53eaff) drop-shadow(0 0 13px #b344ff)}
.battle-projectile-muzzle[data-kind="ticket"]{background:radial-gradient(circle,#fff6c8 0 12%,#ffc873 28%,#ff579a 55%,transparent 78%);filter:drop-shadow(0 0 7px #ffdc8a) drop-shadow(0 0 10px #ff4d97)}
.battle-projectile-muzzle[data-kind="spark"]{background:radial-gradient(circle,#fff 0 16%,#8fffff 34%,#44dfff 53%,#9c4cff 68%,transparent 79%);filter:drop-shadow(0 0 6px #fff) drop-shadow(0 0 12px #45eaff)}
.battle-projectile-muzzle[data-kind="pellet"]{background:radial-gradient(circle,#fff7c5 0 13%,#d4ff79 31%,#84e348 55%,transparent 78%);filter:drop-shadow(0 0 7px #d8ff8e) drop-shadow(0 0 10px #74e345)}
.battle-projectile-muzzle[data-kind="pvz-crate"]{background:radial-gradient(circle,#fff 0 12%,#ffe38a 29%,#ffad3f 52%,#9f4be9 68%,transparent 79%);filter:drop-shadow(0 0 6px #ffe18a) drop-shadow(0 0 11px #9f4be9)}
.projectile-pixel .impact-ring{border-radius:2px;border-style:dashed;border-color:#9af8ff;box-shadow:0 0 7px #fff,0 0 14px #55eaff,0 0 19px #d348ff}
.projectile-ticket .impact-ring{border-radius:4px;border-color:#ffd36a;box-shadow:0 0 7px #fff2b6,0 0 15px #ff5197}
.projectile-spark .impact-ring{border-radius:2px;border-color:#8af8ff;box-shadow:0 0 8px #fff,0 0 15px #47e6ff,0 0 18px #9a57ff}
.projectile-pellet .impact-ring{border-radius:35%;border-style:dashed;border-color:#b6f273;box-shadow:0 0 7px #ecffb7,0 0 14px #70e447}
.projectile-pvz-crate .impact-ring{border-radius:4px;border-style:double;border-color:#ffe27a;box-shadow:0 0 8px #fff2b0,0 0 16px #ffc044,0 0 19px #a850e8}
.battle-fx.fx-impact-pixel:before{inset:22%;border:2px dashed #9af8ff;border-radius:2px;box-shadow:0 0 8px #5deeff,0 0 13px #c252ff}
.battle-fx.fx-impact-pixel:after{width:6px;height:6px;border-radius:0;background:#e8ffff;box-shadow:8px -6px 0 -1px #d64cff,-8px 6px 0 -1px #63f5ff,0 0 10px #fff;rotate:45deg}
.battle-fx.fx-impact-pixel-secondary{width:20px;height:20px}
.battle-fx.fx-impact-pixel-secondary,.battle-fx.fx-impact-pixel-secondary:before,.battle-fx.fx-impact-pixel-secondary:after{animation-delay:var(--fx-phase-delay,0ms)}
.battle-fx.fx-impact-ticket:before{inset:22% 13%;border:2px solid #ffd36a;border-radius:3px;transform:rotate(-9deg);box-shadow:0 0 8px #ff5a9e}
.battle-fx.fx-impact-ticket:after{width:8px;height:3px;border-radius:1px;background:#fff2b0;box-shadow:0 0 7px #ff5392;rotate:-9deg}
.battle-fx.fx-impact-spark:before{inset:13%;border:0;border-radius:0;background:#eaffff;clip-path:polygon(42% 0,56% 0,50% 36%,100% 30%,38% 56%,48% 28%,0 42%);box-shadow:none;filter:drop-shadow(0 0 5px #4beaff) drop-shadow(0 0 10px #a84dff)}
.battle-fx.fx-impact-spark:after{width:4px;height:4px;background:#fff;box-shadow:0 0 8px #fff,0 0 13px #4beaff}
.battle-fx.fx-impact-pellet:before{inset:22%;border:2px dashed #b5f071;border-radius:35%;transform:rotate(45deg);box-shadow:0 0 7px #8bea4d}
.battle-fx.fx-impact-pellet:after{width:5px;height:5px;background:#faffd0;box-shadow:0 0 7px #a0ef53}
.battle-fx.fx-impact-pvz-crate:before{inset:18%;border:3px double #ffe27a;border-radius:4px;box-shadow:0 0 8px #ffc044,0 0 14px #9d51d8}
.battle-fx.fx-impact-pvz-crate:after{width:5px;height:5px;border-radius:1px;background:#fff2ae;box-shadow:0 0 8px #ffc044}
.battle-projectile:not(.projectile-rocket) .battle-projectile-impact{width:clamp(44px,12vw,54px);filter:none}
.battle-projectile:not(.projectile-rocket) .impact-core{background:#fff;box-shadow:0 0 7px #fff,0 0 11px #50dfff}
.battle-projectile:not(.projectile-rocket).is-impacting .battle-projectile-body{opacity:0;transition:opacity .045s linear}
.battle-projectile:not(.projectile-rocket).is-impacting .battle-projectile-impact{animation:projectile-impact-small .38s cubic-bezier(.16,.78,.25,1) both}
.battle-projectile:not(.projectile-rocket).is-impacting .impact-ring{animation:projectile-ring-small .34s ease-out both}
.battle-projectile:not(.projectile-rocket).is-impacting .impact-core{animation:projectile-core-small .28s ease-out both}
.projectile-pixel .battle-projectile-impact .impact-core{box-shadow:0 0 7px #fff,0 0 12px #50eaff,0 0 16px #c94cff}
.projectile-ticket .battle-projectile-impact .impact-core{background:#fff3c2;box-shadow:0 0 7px #fff3c2,0 0 13px #ff559b}
.projectile-spark .battle-projectile-impact .impact-core{box-shadow:0 0 8px #fff,0 0 15px #42ddff,0 0 17px #9d55ff}
.projectile-pellet .battle-projectile-impact .impact-core{background:#e9ffb6;box-shadow:0 0 7px #e9ffb6,0 0 13px #7ee548}
.projectile-pvz-crate .battle-projectile-impact .impact-core{background:#fff0a8;box-shadow:0 0 8px #fff0a8,0 0 15px #ffba3d,0 0 17px #9e51dd}
@keyframes projectile-impact-small{0%{opacity:0;transform:translate(-50%,-50%) scale(.35)}20%{opacity:1;transform:translate(-50%,-50%) scale(1.05)}58%{opacity:.92;transform:translate(-50%,-50%) scale(.94)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.34)}}
@keyframes projectile-ring-small{0%{opacity:0;transform:translate(-50%,-50%) scale(.35)}22%{opacity:.9}100%{opacity:0;transform:translate(-50%,-50%) scale(1.55)}}
@keyframes projectile-core-small{0%{opacity:0;transform:translate(-50%,-50%) scale(.2)}25%{opacity:1;transform:translate(-50%,-50%) scale(1.1)}100%{opacity:0;transform:translate(-50%,-50%) scale(.55)}}
@media(prefers-reduced-motion:reduce){.battle-projectile.is-impacting .battle-projectile-impact{animation:none!important;visibility:visible!important;opacity:.88!important;transform:translate(-50%,-50%) scale(1)!important}.battle-projectile.is-impacting .battle-projectile-impact .impact-ring,.battle-projectile.is-impacting .battle-projectile-impact .impact-core{animation:none!important;opacity:.9!important;transform:translate(-50%,-50%) scale(1)!important}}

.battle-projectile.is-impacting .battle-projectile-impact{visibility:visible;animation:labubu-rocket-aftermath 1.35s cubic-bezier(.16,.72,.25,1) both}
.battle-projectile-impact.battle-projectile-impact-rocket{filter:none}
.battle-projectile-impact.impact-pixel-claw{filter:drop-shadow(0 0 5px #49eaff) drop-shadow(0 0 9px #a73aff)}
.battle-projectile-impact.impact-pixel-claw .impact-ring{border-radius:3px;border-style:dashed;border-color:#a7faff;box-shadow:0 0 7px #fff,0 0 12px #4ceaff,0 0 17px #cc42ff}
.battle-projectile-impact-art{position:absolute;z-index:2;left:50%;top:50%;width:84%;height:72%;object-fit:contain;opacity:0;transform:translate(-50%,-50%) rotate(-12deg) scale(.45);filter:drop-shadow(0 0 4px #42eaff) drop-shadow(0 0 8px #b52fff)}
.battle-projectile.projectile-pixel .battle-projectile-impact.impact-pixel-claw{filter:drop-shadow(0 0 5px #49eaff) drop-shadow(0 0 9px #a73aff)}
.battle-projectile.projectile-pixel .battle-projectile-impact.impact-pixel-claw>img.battle-projectile-impact-art{inset:auto;left:50%;top:50%;width:84%;height:72%;filter:drop-shadow(0 0 4px #42eaff) drop-shadow(0 0 8px #b52fff)}
.battle-projectile.is-impacting .battle-projectile-impact-art{animation:tama-pixel-claw-hit .38s cubic-bezier(.16,.8,.25,1) both}
@keyframes tama-pixel-claw-hit{0%{opacity:0;transform:translate(-50%,-50%) rotate(-20deg) scale(.4)}24%{opacity:1;transform:translate(-50%,-50%) rotate(-12deg) scale(1.08)}62%{opacity:.92;transform:translate(-50%,-50%) rotate(-12deg) scale(.96)}100%{opacity:0;transform:translate(-50%,-50%) rotate(-9deg) scale(1.18)}}
@media(prefers-reduced-motion:reduce){.battle-projectile.is-impacting .battle-projectile-impact-art{animation:none!important;opacity:.92;transform:translate(-50%,-50%) rotate(-12deg) scale(1)}}
.battle-projectile-impact-rocket>.rocket-impact-smoke{position:absolute;z-index:0;left:50%;top:57%;width:92%;height:58%;border-radius:50%;background:radial-gradient(ellipse at 34% 55%,#86838ebc 0 15%,transparent 46%),radial-gradient(ellipse at 69% 44%,#444856ee 0 23%,transparent 58%),radial-gradient(ellipse at 53% 61%,#5b5d6bb5 0 22%,transparent 60%),radial-gradient(ellipse at 54% 72%,#87552c66 0 12%,transparent 48%);filter:blur(1.5px);opacity:0;transform:translate(-50%,-24%) scale(.45)}
.battle-projectile-impact>.rocket-impact-ring{position:absolute;z-index:2;left:50%;top:51%;width:40%;aspect-ratio:1;border:1.5px solid #ffe4a0;border-radius:50%;box-shadow:0 0 6px #ffad4388,inset 0 0 5px #fff0b455;opacity:0;transform:translate(-50%,-50%) scale(.28)}
.battle-projectile-impact>.rocket-impact-embers{position:absolute;z-index:3;inset:0;overflow:visible}
.battle-projectile-impact>.rocket-impact-embers:before,.battle-projectile-impact>.rocket-impact-embers:after{content:'';position:absolute;width:6px;height:3px;border-radius:50%;opacity:0}
.battle-projectile-impact>.rocket-impact-embers:before{left:29%;top:43%;background:#ffe198;box-shadow:0 0 7px #ff9b31}
.battle-projectile-impact>.rocket-impact-embers:after{left:66%;top:58%;background:#9afff7;box-shadow:0 0 7px #48e7ff}
.battle-projectile.is-impacting .battle-projectile-impact>.rocket-impact-smoke{animation:labubu-rocket-smoke-rise 1.18s .11s ease-out both}
.battle-projectile.is-impacting .battle-projectile-impact>.rocket-impact-ring{animation:labubu-rocket-shock-ring .78s .05s ease-out both}
.battle-projectile.is-impacting .battle-projectile-impact>.rocket-impact-embers:before{animation:labubu-rocket-ember-left .48s calc(50ms - var(--rocket-impact-age,0ms)) ease-out both}
.battle-projectile.is-impacting .battle-projectile-impact>.rocket-impact-embers:after{animation:labubu-rocket-ember-right .56s calc(20ms - var(--rocket-impact-age,0ms)) ease-out both}
@keyframes labubu-rocket-aftermath{0%{opacity:0;transform:translate(-50%,-50%) scale(.28)}9%{opacity:1;transform:translate(-50%,-50%) scale(1.06)}25%{opacity:1;transform:translate(-50%,-50%) scale(1)}64%{opacity:.96;transform:translate(-50%,-50%) scale(1.1)}84%{opacity:.42;transform:translate(-50%,-50%) scale(1.2)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.35)}}
@keyframes labubu-rocket-smoke-rise{0%{opacity:0;transform:translate(-50%,-24%) scale(.45)}18%{opacity:.52;transform:translate(-50%,-32%) scale(.75)}65%{opacity:.42;transform:translate(-50%,-35%) scale(1.12)}88%{opacity:.2;transform:translate(-49%,-24%) scale(1.24)}100%{opacity:0;transform:translate(-46%,-24%) scale(1.24)}}
@keyframes labubu-rocket-shock-ring{0%{opacity:0;transform:translate(-50%,-50%) scale(.28)}18%{opacity:.86}100%{opacity:0;transform:translate(-50%,-50%) scale(1.8)}}
@keyframes labubu-rocket-ember-left{0%{opacity:0;transform:translate(0,0) scale(.3)}20%{opacity:1}100%{opacity:0;transform:translate(-14px,-10px) scale(.25)}}
@keyframes labubu-rocket-ember-right{0%{opacity:0;transform:translate(0,0) scale(.3)}18%{opacity:1}100%{opacity:0;transform:translate(13px,-7px) scale(.2)}}
@media(prefers-reduced-motion:reduce){.battle-projectile-impact>.rocket-impact-smoke,.battle-projectile-impact>.rocket-impact-ring,.battle-projectile-impact>.rocket-impact-embers{display:none!important}.battle-projectile.is-impacting .battle-projectile-impact>.rocket-impact-art-shell>.rocket-impact-art{animation:none!important;opacity:1!important}}

.battle-projectile-rocket{filter:drop-shadow(0 0 2px #fff) drop-shadow(0 0 5px #ff9a30) drop-shadow(0 0 4px #43eaff)}
.projectile-rocket .battle-projectile-trail{left:auto;right:0;top:0;width:26px;height:8px;border-radius:999px;background:radial-gradient(ellipse at 100% 50%,#fff 0 8%,#fff4ba 18%,#ffad45 42%,#ff6237 68%,#f245d000 100%);transform-origin:right center;filter:blur(1px) drop-shadow(0 0 5px #ff8b3c) drop-shadow(0 0 5px #43eaff);opacity:.7}
.projectile-rocket .battle-projectile-trail:before{content:'';position:absolute;right:0;top:50%;width:48%;height:38%;border-radius:99px;background:linear-gradient(90deg,#50eaff00,#7af7ff,#fff);filter:blur(.7px);transform:translateY(-50%)}
.battle-projectile-wake{position:absolute;z-index:0;right:0;top:0;width:0;height:9px;border-radius:999px;background:linear-gradient(90deg,#ff4acb00 0%,#ff4acb22 38%,#ff74384f 68%,#ffc46c9c 91%,#efffff 100%);transform:translateY(-50%) rotate(var(--wake-angle,0deg));transform-origin:right center;filter:blur(1.8px) drop-shadow(0 0 6px #ff754d8c) drop-shadow(0 0 8px #53eaff75);mix-blend-mode:screen;pointer-events:none;will-change:width,opacity}
.battle-projectile-wake:after{content:'';position:absolute;right:0;top:50%;width:35%;height:2px;border-radius:99px;background:linear-gradient(90deg,#ff9b4700,#ffb75e88,#eaffff);filter:blur(.7px);transform:translateY(-50%)}
.battle-projectile.is-impacting .battle-projectile-wake{opacity:0!important;transition:opacity .05s linear}
@media(prefers-reduced-motion:reduce){.battle-projectile-wake{display:none!important}}
.battle-projectile-impact-rocket>.rocket-impact-afterglow{position:absolute;z-index:1;inset:11%;border-radius:50%;background:radial-gradient(circle,#fff 0 8%,#fff1a4 17%,#ff9c30 34%,#ff46386b 52%,transparent 72%);filter:blur(2px);opacity:0;transform:scale(.18)}
.battle-projectile-impact-rocket>.rocket-impact-art-shell{position:absolute;z-index:2;inset:0;width:100%;height:100%;transform-origin:center;will-change:transform}
.battle-projectile-impact-rocket .rocket-impact-art{position:absolute;inset:0;width:100%;height:100%;opacity:0;transform:scale(.28);background-image:url('/assets/effects/labubu-rocket-impact-v6.webp?v=20261017-labubu-blast-v6');background-repeat:no-repeat;background-size:200% 200%;background-position:0 0;filter:drop-shadow(0 0 6px #ff7b23) drop-shadow(0 0 7px #45eaff)}
.battle-projectile-impact-rocket>.rocket-impact-ring{z-index:3}
.battle-projectile-impact-rocket>.rocket-impact-embers{z-index:4}
.battle-projectile.is-impacting .battle-projectile-impact-rocket>.rocket-impact-afterglow{animation:labubu-rocket-core-bloom .48s cubic-bezier(.16,.82,.22,1) both}
.battle-projectile.is-impacting .battle-projectile-impact-rocket{animation-duration:.98s}
.battle-projectile.is-impacting .battle-projectile-impact-rocket>.rocket-impact-art-shell>.rocket-impact-art{animation:labubu-rocket-blast-v6 .88s cubic-bezier(.16,.72,.25,1) both,labubu-rocket-blast-frames-v6 .88s steps(1,end) both}
@keyframes labubu-rocket-core-bloom{0%{opacity:0;transform:scale(.18)}18%{opacity:1;transform:scale(1.2)}50%{opacity:.82;transform:scale(1)}100%{opacity:0;transform:scale(1.52)}}
@keyframes labubu-rocket-blast-v6{0%{opacity:0;transform:scale(.28);filter:brightness(1.65) blur(2px)}12%{opacity:1;transform:scale(.8);filter:brightness(1.22) blur(0)}28%{opacity:1;transform:scale(1);filter:brightness(1) blur(0)}56%{opacity:.94;transform:scale(1.07);filter:brightness(.96) blur(.15px)}78%{opacity:.62;transform:scale(1.17);filter:brightness(.84) blur(.5px)}100%{opacity:0;transform:scale(1.29);filter:brightness(.72) blur(1.2px)}}
@keyframes labubu-rocket-blast-frames-v6{0%,19%{background-position:0 0}20%,43%{background-position:100% 0}44%,69%{background-position:0 100%}70%,100%{background-position:100% 100%}}
@media(prefers-reduced-motion:reduce){.battle-projectile-impact-rocket>.rocket-impact-afterglow,.battle-projectile-impact-rocket>.rocket-impact-smoke,.battle-projectile-impact-rocket>.rocket-impact-ring,.battle-projectile-impact-rocket>.rocket-impact-embers{display:none!important}.battle-projectile-impact-rocket .rocket-impact-art{animation:none!important;opacity:.92!important;transform:none!important;background-position:100% 0!important}}

/* Per-character hit reactions keep the silhouettes readable at battle scale. */
.battle-screen .unit.unit-ability-trap.unit-motion-hit>.unit-sprite{animation:mimic-hit .3s cubic-bezier(.2,.8,.25,1) both}
.battle-screen .unit.unit-ability-invis.unit-motion-hit>.unit-sprite{animation:sock-hit .32s cubic-bezier(.2,.8,.25,1) both}
.battle-screen .unit.unit-ability-hunger.unit-motion-hit>.unit-sprite{animation:tama-hit .3s steps(3,end) both}
.battle-screen .unit.unit-ability-spawner.unit-motion-hit>.unit-sprite,.battle-screen .unit.unit-ability-baglet.unit-motion-hit>.unit-sprite{animation:bag-hit .34s cubic-bezier(.2,.8,.25,1) both}
.battle-screen .unit.unit-ability-glue.unit-motion-hit>.unit-sprite{animation:tape-hit .31s cubic-bezier(.2,.8,.25,1) both}
.battle-screen .unit.unit-ability-swarm_pop.unit-motion-hit>.unit-sprite{animation:bubble-hit .24s cubic-bezier(.2,.8,.25,1) both}
.battle-screen .unit.unit-ability-laser.unit-motion-hit>.unit-sprite{animation:cheb-hit .32s cubic-bezier(.2,.8,.25,1) both}
.battle-screen .unit.unit-ability-passport.unit-motion-hit>.unit-sprite{animation:galya-hit .3s cubic-bezier(.2,.8,.25,1) both}
.battle-screen .unit.unit-ability-dash.unit-motion-hit>.unit-sprite{animation:courier-hit .3s cubic-bezier(.2,.8,.25,1) both}
.battle-screen .unit.unit-ability-wall.unit-motion-hit>.unit-sprite{animation:receipt-hit .36s ease-out both}
.battle-screen .unit.unit-ability-poison.unit-motion-hit>.unit-sprite{animation:yogurt-hit .32s cubic-bezier(.2,.8,.25,1) both}
.battle-screen .unit.unit-ability-reveal.unit-motion-hit>.unit-sprite{animation:earbud-hit .28s steps(3,end) both}
.battle-screen .unit.unit-ability-stomp.unit-motion-hit>.unit-sprite{animation:sneaker-hit .3s cubic-bezier(.2,.8,.25,1) both}
.battle-screen .unit.unit-ability-chain5.unit-motion-hit>.unit-sprite{animation:cable-hit .34s cubic-bezier(.2,.8,.25,1) both}
.battle-screen .unit.unit-ability-confuse.unit-motion-hit>.unit-sprite{animation:manual-hit .34s cubic-bezier(.2,.8,.25,1) both}
.battle-screen .unit.unit-ability-swap.unit-motion-hit>.unit-sprite{animation:remote-hit .3s steps(3,end) both}
.battle-screen .unit.unit-ability-revive.unit-motion-hit>.unit-sprite{animation:roly-hit .38s cubic-bezier(.2,.8,.25,1) both}
.battle-screen .unit.unit-ability-steal.unit-motion-hit>.unit-sprite{animation:rat-hit .3s cubic-bezier(.2,.8,.25,1) both}
.battle-screen .unit.unit-ability-titan_spawner.unit-motion-hit>.unit-sprite{animation:pvz-hit .36s cubic-bezier(.2,.8,.25,1) both}
@keyframes mimic-hit{0%,100%{transform:rotate(0) scale(1)}24%{transform:rotate(3deg) scale(.96,1.03)}58%{transform:rotate(-2deg) scale(1.02,.98)}}
@keyframes sock-hit{0%,100%{transform:translateX(0) rotate(0)}22%{transform:translateX(-2px) rotate(-6deg) scale(.96,1.03)}62%{transform:translateX(1px) rotate(3deg)}}
@keyframes tama-hit{0%,100%{transform:translateX(0) scale(1)}20%{transform:translateX(-1px) scale(.96,1.02)}40%{transform:translateX(1px)}62%{transform:translateX(-.5px) scale(1.02,.98)}}
@keyframes bag-hit{0%,100%{transform:scale(1)}28%{transform:scale(1.04,.9) translateY(1px)}62%{transform:scale(.98,1.05) translateY(-1px)}}
@keyframes tape-hit{0%,100%{transform:rotate(0) scaleX(1)}26%{transform:rotate(-3deg) scaleX(.9)}58%{transform:rotate(2deg) scaleX(1.06)}}
@keyframes bubble-hit{0%,100%{transform:scale(1)}34%{transform:scale(1.12,.84)}68%{transform:scale(.96,1.06)}}
@keyframes cheb-hit{0%,100%{transform:translateX(0) rotate(0)}25%{transform:translateX(-2px) rotate(-3deg) scale(.98,1.02)}62%{transform:translateX(1px) rotate(1deg)}}
@keyframes galya-hit{0%,100%{transform:translateY(0) rotate(0)}27%{transform:translateY(1px) rotate(3deg) scale(.98,.98)}62%{transform:translateY(-1px) rotate(-1deg)}}
@keyframes courier-hit{0%,100%{transform:translateX(0) rotate(0)}22%{transform:translateX(-2px) rotate(5deg)}62%{transform:translateX(1px) rotate(-2deg)}}
@keyframes receipt-hit{0%,100%{transform:skewX(0) translateX(0)}25%{transform:skewX(-3deg) translateX(-1px)}48%{transform:skewX(2deg) translateX(1px)}72%{transform:skewX(-1deg)}}
@keyframes yogurt-hit{0%,100%{transform:rotate(0)}25%{transform:rotate(-5deg) translateX(-1px)}58%{transform:rotate(3deg) translateX(1px)}}
@keyframes earbud-hit{0%,100%{transform:translateX(0) rotate(0)}24%{transform:translateX(-1px) rotate(-5deg)}48%{transform:translateX(1px) rotate(4deg)}72%{transform:rotate(-2deg)}}
@keyframes sneaker-hit{0%,100%{transform:translateY(0) scale(1)}30%{transform:translateY(1px) scale(.97,.92)}65%{transform:translateY(-1px) scale(1.02,1.04)}}
@keyframes cable-hit{0%,100%{transform:rotate(0) scaleX(1)}24%{transform:rotate(4deg) scaleX(.94)}52%{transform:rotate(-3deg) scaleX(1.04)}78%{transform:rotate(1deg)}}
@keyframes manual-hit{0%,100%{transform:perspective(120px) rotateY(0)}24%{transform:perspective(120px) rotateY(16deg) rotate(-2deg)}55%{transform:perspective(120px) rotateY(-9deg) rotate(1deg)}}
@keyframes remote-hit{0%,100%{transform:translateX(0) skewX(0)}22%{transform:translateX(-2px) skewX(-5deg)}44%{transform:translateX(2px) skewX(4deg)}66%{transform:translateX(-1px)}}
@keyframes roly-hit{0%,100%{transform:rotate(0) translateY(0)}26%{transform:rotate(9deg) translateY(1px)}56%{transform:rotate(-5deg) translateY(-1px)}82%{transform:rotate(2deg)}}
@keyframes rat-hit{0%,100%{transform:translateX(0) rotate(0)}25%{transform:translateX(-2px) rotate(-4deg)}62%{transform:translateX(1px) rotate(2deg)}}
@keyframes pvz-hit{0%,100%{transform:translateY(0) scale(1)}28%{transform:translateY(1px) scale(.97,.94)}62%{transform:translateY(-1px) scale(1.02,1.03)}}
.battle-screen .unit.unit-cat.unit-evolved.unit-motion-ability>.unit-sprite{animation:tama-evolve .7s cubic-bezier(.16,.9,.25,1) both}
.battle-screen .unit.unit-cat.unit-evolved.unit-motion-ability>.unit-sprite{animation-delay:var(--ability-delay,0ms)}
.battle-screen .unit.unit-cat .unit-evolution-cues{position:absolute;z-index:4;inset:-8px;border-radius:50%;pointer-events:none;opacity:0;animation:tama-evolution-cues .72s cubic-bezier(.16,.82,.22,1) var(--ability-delay,0ms) both}
.battle-screen .unit.unit-cat .unit-evolution-cues:before{content:'';position:absolute;inset:4px;border:2px solid transparent;border-top-color:#8dffff;border-right-color:#fa5beb;border-bottom-color:#ffd463;border-left-color:#5aeaff;border-radius:50%;filter:drop-shadow(0 0 4px #59efff) drop-shadow(0 0 8px #e84de9);animation:tama-evolution-ring .72s cubic-bezier(.16,.82,.22,1) var(--ability-delay,0ms) both}
.battle-screen .unit.unit-cat .unit-evolution-cues:after{content:'';position:absolute;left:10%;top:12%;width:80%;height:2px;background:linear-gradient(90deg,transparent,#dfffff 18%,#fff 48%,#67edff 72%,transparent);box-shadow:0 0 6px #70f4ff,0 0 11px #d84ef3;animation:tama-evolution-scan .72s ease-in var(--ability-delay,0ms) both}
@keyframes tama-evolution-cues{0%{opacity:0;transform:scale(.68)}18%,62%{opacity:1}100%{opacity:0;transform:scale(1.12)}}
@keyframes tama-evolution-ring{0%{transform:rotate(-48deg) scale(.58)}34%{transform:rotate(82deg) scale(1.04)}100%{transform:rotate(168deg) scale(1.14)}}
@keyframes tama-evolution-scan{0%{opacity:0;transform:translateY(-2px)}18%{opacity:1}82%{opacity:.9}100%{opacity:0;transform:translateY(44px)}}
.battle-fx.fx-evolve-pulse{z-index:8;width:84px;height:84px;border:0;border-radius:50%;background:radial-gradient(circle,#fff 0 3%,#e8ffffc9 5%,#4eeaff62 13%,#eb45ff33 37%,transparent 70%);filter:drop-shadow(0 0 8px #52eeff) drop-shadow(0 0 15px #cc42ff);animation:tama-evolve-pulse .72s cubic-bezier(.16,.82,.22,1) var(--fx-phase-delay,0ms) both}
.battle-fx.fx-evolve-pulse:before{content:'';position:absolute;inset:8px;border:2px dashed #b6ffff;border-radius:50%;box-shadow:0 0 6px #5ceeff,0 0 12px #df4cff;animation:tama-evolve-orbit .72s cubic-bezier(.16,.82,.22,1) var(--fx-phase-delay,0ms) both}
.battle-fx.fx-evolve-pulse:after{content:'';position:absolute;left:50%;top:50%;width:11px;height:11px;border:2px solid #fff;border-radius:3px;background:#59edff;box-shadow:0 0 7px #fff,0 0 14px #e34aff;animation:tama-evolve-core .72s cubic-bezier(.16,.82,.22,1) var(--fx-phase-delay,0ms) both}
@keyframes tama-evolve-pulse{0%{opacity:0;transform:translate(-50%,-50%) scale(.45)}16%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(1.22)}}
@keyframes tama-evolve-orbit{0%{transform:rotate(-52deg) scale(.55);opacity:0}20%{opacity:1}100%{transform:rotate(128deg) scale(1.08);opacity:0}}
@keyframes tama-evolve-core{0%{opacity:0;transform:translate(-50%,-50%) rotate(0) scale(.2)}24%{opacity:1;transform:translate(-50%,-50%) rotate(45deg) scale(1.1)}100%{opacity:0;transform:translate(-50%,-50%) rotate(135deg) scale(.35)}}
@media(prefers-reduced-motion:reduce){.battle-screen .unit.unit-cat.unit-evolved.unit-motion-ability>.unit-sprite{animation:none!important}.battle-screen .unit.unit-cat .unit-evolution-cues{display:none}.battle-fx.fx-evolve-pulse{animation:none;opacity:.8;transform:translate(-50%,-50%)}.battle-fx.fx-evolve-pulse:before{animation:none;opacity:.8;transform:none}.battle-fx.fx-evolve-pulse:after{animation:none;opacity:.8;transform:translate(-50%,-50%)}}
.battle-screen .unit.unit-cheb-walk-v17.unit-motion-walk>.unit-sprite{opacity:0;animation:none}
.battle-screen .unit.unit-cheb-walk-v17>.cheb-walk-v17-atlas{position:absolute;z-index:2;inset:-3px;width:calc(100% + 6px);height:calc(100% + 6px);background-image:url('/assets/units/animations/defective/walk-v17-atlas-128.webp?v=20261015-cheb-walk-v17');background-repeat:no-repeat;background-size:800% 100%;background-position:0 0;filter:drop-shadow(0 3px 2px #061326aa);pointer-events:none;animation:cheb-walk-v17 var(--walk-cycle,1s) steps(7,end) var(--walk-delay,0ms) infinite}
@keyframes cheb-walk-v17{to{background-position-x:100%}}
.battle-screen .unit.unit-cheb-attack.unit-motion-attack>.unit-sprite{opacity:1;animation:cheb-laser-recoil .18s cubic-bezier(.2,.82,.25,1) var(--attack-delay,0ms) both}
@keyframes cheb-laser-recoil{0%{transform:translateY(0) scale(1);filter:drop-shadow(0 0 0 #ff315d00)}20%{transform:translateY(1px) scale(.985,1.02);filter:drop-shadow(0 0 2px #ff526d)}56%{transform:translateY(-.4px) scale(1.02,.99);filter:drop-shadow(0 0 1px #ff5b73)}100%{transform:translateY(0) scale(1);filter:none}}
.battle-screen .unit.unit-cheb-attack>.unit-attack-sprite{position:absolute;z-index:3;inset:0;width:100%;height:100%;background-image:url('/assets/units/animations/defective/attack-v3-atlas-256.webp?v=20261014-cheb-attack-v3');background-repeat:no-repeat;background-size:800% auto;background-position:42.8571% 50%;clip-path:ellipse(8.3% 8.3% at 61% 35.5%);pointer-events:none;animation:cheb-eye-fire .18s ease-out both;animation-delay:var(--attack-delay,0ms)}
@keyframes cheb-eye-fire{0%{opacity:.25;filter:drop-shadow(0 0 1px #ff8b9b)}28%{opacity:1;filter:drop-shadow(0 0 2px #ff647b)}100%{opacity:.72;filter:drop-shadow(0 0 1px #ff506d)}}
@media(prefers-reduced-motion:reduce){.battle-screen .unit.unit-cheb-attack>.unit-sprite{opacity:1!important;animation:none!important}.battle-screen .unit.unit-cheb-attack>.unit-attack-sprite{display:none!important}}
@media(prefers-reduced-motion:reduce){.battle-screen .unit.unit-cheb-walk-v17>.unit-sprite{opacity:1!important}.battle-screen .unit.unit-cheb-walk-v17>.cheb-walk-v17-atlas{display:none!important}}

/* Impact scale follows rarity while keeping each attack's color and hit shape. */
.battle-projectile[data-rarity="common"]{--impact-rarity-size:clamp(38px,10vw,44px)}
.battle-projectile[data-rarity="rare"]{--impact-rarity-size:clamp(44px,11.5vw,50px)}
.battle-projectile[data-rarity="epic"]{--impact-rarity-size:clamp(49px,13vw,56px)}
.battle-projectile[data-rarity="legendary"]{--impact-rarity-size:clamp(56px,14.8vw,62px)}
.battle-projectile[data-rarity="titan"]{--impact-rarity-size:clamp(62px,16.7vw,70px)}
.battle-projectile:not(.projectile-rocket) .battle-projectile-impact{width:var(--impact-rarity-size,clamp(44px,12vw,54px))}
.battle-projectile .impact-ring:before,.battle-projectile .impact-ring:after{content:"";position:absolute;inset:0;border:1px solid currentColor;border-radius:inherit;box-sizing:border-box;opacity:0;pointer-events:none}
.battle-projectile.is-impacting[data-rarity="rare"] .impact-ring:after{inset:-24%;color:#8cf4ff;border-color:currentColor;animation:impact-rarity-ring .4s ease-out both;animation-delay:inherit}
.battle-projectile.is-impacting[data-rarity="epic"] .impact-ring:before{inset:-18%;color:#d78bff;border-color:currentColor;border-style:dashed;animation:impact-rarity-ring .42s ease-out both;animation-delay:inherit}
.battle-projectile.is-impacting[data-rarity="epic"] .impact-ring:after{inset:-38%;color:#8cf4ff;border-color:currentColor;animation:impact-rarity-ring .46s ease-out both;animation-delay:inherit}
.battle-projectile.is-impacting[data-rarity="legendary"] .impact-ring:before{inset:-23%;color:#fff0a4;border-color:currentColor;border-width:2px;animation:impact-rarity-ring .44s ease-out both;animation-delay:inherit}
.battle-projectile.is-impacting[data-rarity="legendary"] .impact-ring:after{inset:-47%;color:#ffd15d;border-color:currentColor;border-style:double;border-width:2px;animation:impact-rarity-ring .5s ease-out both;animation-delay:inherit}
.battle-projectile.is-impacting[data-rarity="titan"] .impact-ring:before{inset:-30%;color:#ff8be7;border-color:currentColor;border-width:2px;animation:impact-rarity-ring .48s ease-out both;animation-delay:inherit}
.battle-projectile.is-impacting[data-rarity="titan"] .impact-ring:after{inset:-61%;color:#8ffbff;border-color:currentColor;border-style:dashed;border-width:2px;animation:impact-rarity-ring .54s ease-out both;animation-delay:inherit}
@keyframes impact-rarity-ring{0%{opacity:0;transform:scale(.72)}22%{opacity:.82}100%{opacity:0;transform:scale(1.12)}}
@media(prefers-reduced-motion:reduce){.battle-projectile.is-impacting[data-rarity="rare"] .impact-ring:after,.battle-projectile.is-impacting[data-rarity="epic"] .impact-ring:before,.battle-projectile.is-impacting[data-rarity="epic"] .impact-ring:after,.battle-projectile.is-impacting[data-rarity="legendary"] .impact-ring:before,.battle-projectile.is-impacting[data-rarity="legendary"] .impact-ring:after,.battle-projectile.is-impacting[data-rarity="titan"] .impact-ring:before,.battle-projectile.is-impacting[data-rarity="titan"] .impact-ring:after{animation:none!important;opacity:.8!important;transform:scale(1)!important}}

@media(prefers-reduced-motion:reduce){.battle-projectile.is-impacting .battle-projectile-rocket,.battle-projectile.is-impacting .battle-projectile-trail,.battle-projectile.is-impacting .battle-projectile-wake{transition:none!important}}
.battle-projectile.projectile-jaw .battle-projectile-impact{width:clamp(68px,20vw,82px)}

/* Per-character locomotion study: keep the server position tween clean and animate only the sprite. */
.battle-screen .unit.unit-goblin.unit-motion-idle>.unit-sprite{transform-origin:52% 82%;animation:mimic-idle 3.1s ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-banana.unit-motion-idle>.unit-sprite{transform-origin:50% 86%;animation:sock-idle 2.7s ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-cat.unit-motion-idle>.unit-sprite{transform-origin:50% 82%;animation:tama-idle 2.9s ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-bags.unit-motion-idle>.unit-sprite{transform-origin:50% 82%;animation:bag-idle 3.4s ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-tape.unit-motion-idle>.unit-sprite{transform-origin:50% 82%;animation:tape-idle 2.6s ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-bubble.unit-motion-idle>.unit-sprite{transform-origin:50% 82%;animation:bubble-idle 2.25s ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-galya.unit-motion-idle>.unit-sprite{transform-origin:50% 84%;animation:galya-idle 3.8s ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-courier.unit-motion-idle>.unit-sprite{transform-origin:50% 84%;animation:courier-idle 2.8s ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-yogurt.unit-motion-idle>.unit-sprite{transform-origin:50% 82%;animation:yogurt-idle 2.35s ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-earbud.unit-motion-idle>.unit-sprite{transform-origin:50% 82%;animation:earbud-idle 3.2s ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-sneaker.unit-motion-idle>.unit-sprite{transform-origin:50% 86%;animation:sneaker-idle 3.6s ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-cables.unit-motion-idle>.unit-sprite{transform-origin:50% 82%;animation:cable-idle 2.55s ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-instruction.unit-motion-idle>.unit-sprite{transform-origin:50% 82%;animation:manual-idle 3.5s ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-remote.unit-motion-idle>.unit-sprite{transform-origin:50% 82%;animation:remote-idle 3.15s ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-rolypoly.unit-motion-idle>.unit-sprite{transform-origin:50% 84%;animation:roly-idle 2.7s ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-rat.unit-motion-idle>.unit-sprite{transform-origin:50% 84%;animation:rat-idle 3.1s ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-receipt.unit-motion-idle>.unit-sprite{transform-origin:50% 95%;animation:receipt-idle 3.6s ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-pvz.unit-motion-idle>.unit-sprite{transform-origin:50% 94%;animation:pvz-idle 4.2s ease-in-out var(--unit-phase,0s) infinite}

.battle-screen .unit.unit-banana.unit-motion-walk>.unit-sprite{animation:sock-walk var(--walk-cycle,.9s) ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-cat.unit-motion-walk>.unit-sprite{animation:tama-walk var(--walk-cycle,.9s) ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-bags.unit-motion-walk>.unit-sprite{animation:bag-walk var(--walk-cycle,.9s) ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-tape.unit-motion-walk>.unit-sprite{animation:tape-walk var(--walk-cycle,.9s) ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-bubble.unit-motion-walk>.unit-sprite{animation:bubble-walk var(--walk-cycle,.9s) ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-galya.unit-motion-walk>.unit-sprite{animation:galya-walk var(--walk-cycle,1.2s) ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-courier.unit-motion-walk>.unit-sprite{animation:courier-walk var(--walk-cycle,.9s) ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-yogurt.unit-motion-walk>.unit-sprite{animation:yogurt-walk var(--walk-cycle,.9s) ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-earbud.unit-motion-walk>.unit-sprite{animation:earbud-walk var(--walk-cycle,.9s) ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-sneaker.unit-motion-walk>.unit-sprite{animation:sneaker-walk var(--walk-cycle,1s) ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-cables.unit-motion-walk>.unit-sprite{animation:cable-walk var(--walk-cycle,.9s) ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-remote.unit-motion-walk>.unit-sprite{animation:remote-walk var(--walk-cycle,.9s) ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-rolypoly.unit-motion-walk>.unit-sprite{animation:roly-walk var(--walk-cycle,1s) ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-rat.unit-motion-walk>.unit-sprite{animation:rat-walk var(--walk-cycle,.9s) ease-in-out var(--unit-phase,0s) infinite}

@keyframes mimic-idle{0%,100%{transform:rotate(0) scale(1)}48%{transform:rotate(-.8deg) scale(1.015)}62%{transform:rotate(.4deg) scale(.995)}}
@keyframes sock-idle{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-1.3px) rotate(1deg)}}
@keyframes tama-idle{0%,100%{transform:translateY(0) scale(1)}42%{transform:translateY(-1.2px) scale(1.015)}52%{transform:translateY(0) scale(.99)}}
@keyframes bag-idle{0%,100%{transform:scale(1,1)}48%{transform:scale(1.018,.99)}57%{transform:scale(.995,1.006)}}
@keyframes tape-idle{0%,100%{transform:scaleX(1) rotate(0)}45%{transform:scaleX(1.025) rotate(-.6deg)}58%{transform:scaleX(.99) rotate(.35deg)}}
@keyframes bubble-idle{0%,100%{transform:translateY(0) scale(1)}43%{transform:translateY(-1.5px) scale(1.025,.98)}56%{transform:translateY(0) scale(.99,1.015)}}
@keyframes galya-idle{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-.8px) rotate(-.45deg)}65%{transform:translateY(0) rotate(.2deg)}}
@keyframes courier-idle{0%,100%{transform:translateY(0) rotate(0)}35%{transform:translateY(-.7px) rotate(-.8deg)}68%{transform:translateY(.2px) rotate(.4deg)}}
@keyframes yogurt-idle{0%,100%{transform:rotate(0) scale(1)}38%{transform:rotate(-1deg) scale(1.012,.99)}70%{transform:rotate(.6deg) scale(.99,1.012)}}
@keyframes earbud-idle{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-1.4px) rotate(.65deg)}}
@keyframes sneaker-idle{0%,100%{transform:translateY(0) scale(1)}54%{transform:translateY(-.7px) scale(1.008,.994)}}
@keyframes cable-idle{0%,100%{transform:rotate(0) scaleY(1)}33%{transform:rotate(-.6deg) scaleY(1.018)}70%{transform:rotate(.7deg) scaleY(.99)}}
@keyframes manual-idle{0%,100%{transform:rotate(0) skewY(0)}50%{transform:rotate(.45deg) skewY(-.4deg)}}
@keyframes remote-idle{0%,100%{transform:translateY(0) rotate(0)}48%{transform:translateY(-.8px) rotate(-.55deg)}60%{transform:translateY(0) rotate(.2deg)}}
@keyframes roly-idle{0%,100%{transform:rotate(-1deg)}30%{transform:rotate(1.1deg)}58%{transform:rotate(-.55deg)}78%{transform:rotate(.3deg)}}
@keyframes rat-idle{0%,100%{transform:translateY(0) rotate(0)}52%{transform:translateY(.7px) rotate(-.55deg)}68%{transform:translateY(0) rotate(.35deg)}}
@keyframes receipt-idle{0%,100%{transform:skewY(0) rotate(0)}43%{transform:skewY(-.7deg) rotate(.3deg)}70%{transform:skewY(.45deg) rotate(-.2deg)}}
@keyframes pvz-idle{0%,100%{transform:translateY(0) scale(1)}52%{transform:translateY(-.45px) scale(1.004)}}
@keyframes sock-walk{0%,100%{translate:0 .1px;rotate:-.55deg;scale:.995 1}25%{translate:0 -.8px;rotate:.22deg;scale:1.006 .997}50%{translate:0 .12px;rotate:.55deg;scale:1.004 .995}75%{translate:0 -.8px;rotate:-.22deg;scale:.995 1}}
@keyframes tama-walk{0%,100%{translate:0 .12px;scale:1 .99}25%{translate:0 -1.1px;scale:1 1.005}50%{translate:0 .15px;scale:1.012 .99}75%{translate:0 -1.1px;scale:.995 1.005}}
@keyframes bag-walk{0%,100%{translate:0 .12px;scale:1 1}25%{translate:0 -.72px;scale:1.012 .992}50%{translate:0 .18px;scale:.994 1.008}75%{translate:0 -.72px;scale:1.006 .994}}
@keyframes tape-walk{0%,100%{translate:0 .1px;rotate:-.5deg;scale:.99 1}25%{translate:0 -.55px;rotate:.24deg;scale:1.015 .995}50%{translate:0 .1px;rotate:.5deg;scale:1.01 .995}75%{translate:0 -.55px;rotate:-.24deg;scale:.99 1}}
@keyframes bubble-walk{0%,100%{translate:0 .1px;scale:1 .99}25%{translate:0 -1.1px;scale:1.015 .99}50%{translate:0 .15px;scale:.99 1.01}75%{translate:0 -1.1px;scale:1.01 .995}}
@keyframes galya-walk{0%,100%{translate:0 .08px;rotate:-.32deg;scale:.997 1}25%{translate:0 -.72px;rotate:.16deg;scale:1.003 .998}50%{translate:0 .08px;rotate:.32deg;scale:1.002 .997}75%{translate:0 -.72px;rotate:-.16deg;scale:.997 1}}
@keyframes courier-walk{0%,100%{translate:0 .1px;rotate:-.85deg;scale:1 1}25%{translate:0 -.7px;rotate:-.45deg;scale:1.005 .998}50%{translate:0 .1px;rotate:-.2deg;scale:.998 1.003}75%{translate:0 -.7px;rotate:-.58deg;scale:1.004 .998}}
@keyframes yogurt-walk{0%,100%{translate:0 .1px;rotate:-.42deg;scale:1 .995}25%{translate:0 -.72px;rotate:.18deg;scale:1.004 1}50%{translate:0 .1px;rotate:.42deg;scale:1.006 .994}75%{translate:0 -.72px;rotate:-.18deg;scale:.998 1}}
@keyframes earbud-walk{0%,100%{translate:0 .1px;rotate:-.42deg;scale:1 1}25%{translate:0 -.82px;rotate:.2deg;scale:1.003 .998}50%{translate:0 .1px;rotate:.42deg;scale:.998 1.003}75%{translate:0 -.82px;rotate:-.2deg;scale:1.003 .998}}
@keyframes sneaker-walk{0%,100%{translate:0 .1px;rotate:-.18deg;scale:1 .998}25%{translate:0 -.12px;rotate:.12deg;scale:1.006 .996}50%{translate:0 .1px;rotate:.18deg;scale:1 .998}75%{translate:0 -.12px;rotate:-.12deg;scale:1.006 .996}}
@keyframes cable-walk{0%,100%{translate:0 .1px;rotate:-.5deg;scale:1 1}25%{translate:0 -.62px;rotate:.28deg;scale:1.004 1.008}50%{translate:0 .1px;rotate:.5deg;scale:1 .994}75%{translate:0 -.62px;rotate:-.28deg;scale:1.003 1.004}}
@keyframes remote-walk{0%,100%{translate:0 .1px;rotate:-.38deg;scale:1 1}25%{translate:0 -.65px;rotate:.16deg;scale:1.004 .998}50%{translate:0 .1px;rotate:.38deg;scale:.998 1.002}75%{translate:0 -.65px;rotate:-.16deg;scale:1.004 .998}}
@keyframes roly-walk{0%,100%{translate:0 .08px;rotate:-1.15deg;scale:1 1}25%{translate:0 0;rotate:-.25deg;scale:1.004 .997}50%{translate:0 .08px;rotate:1.15deg;scale:1 1}75%{translate:0 0;rotate:.25deg;scale:1.004 .997}}
@keyframes rat-walk{0%,100%{translate:0 .1px;rotate:-.5deg;scale:1 .995}25%{translate:.16px -.7px;rotate:.18deg;scale:1.004 1}50%{translate:0 .1px;rotate:.5deg;scale:1.005 .995}75%{translate:-.16px -.7px;rotate:-.18deg;scale:1.004 1}}
@media(prefers-reduced-motion:reduce){.battle-screen .unit.unit-motion-idle>.unit-sprite,.battle-screen .unit.unit-motion-walk>.unit-sprite{animation:none!important}}

/* The depot titan marches visibly at its server-defined, deliberately slow pace. */
.battle-screen .unit.unit-ability-titan_spawner.unit-motion-walk>.unit-sprite{animation:titan-depot-march var(--walk-half-cycle,.83s) ease-in-out var(--unit-phase,0s) infinite alternate!important;transform-origin:50% 94%}
@keyframes titan-depot-march{0%{translate:0 0;rotate:-.22deg;scale:1 .995}100%{translate:0 -1.2px;rotate:.22deg;scale:1.008 .99}}
.unit-ability-clock.pvz-shipment-badge{border-color:#ffe27c;color:#fff3bf;box-shadow:0 0 8px #ffc94d88;text-shadow:0 0 5px #ffd95c66}
@media(prefers-reduced-motion:reduce){.battle-screen .unit.unit-ability-titan_spawner.unit-motion-walk>.unit-sprite{animation:none!important}}
.battle-fx.fx-reflect-return{z-index:8;width:var(--chain-length,24px);height:10px;border:0;border-radius:50%;background:linear-gradient(180deg,transparent 15%,#ffd85c 31%,#fff 49%,#ffb934 66%,transparent 84%);filter:drop-shadow(0 0 4px #fff) drop-shadow(0 0 9px #ffc747);rotate:var(--chain-angle,0deg);animation:reflect-return-snap .3s cubic-bezier(.18,.82,.28,1) both}
.battle-fx.fx-reflect-return:before{inset:0;border:0;border-radius:0;background:linear-gradient(90deg,transparent,#fff 48%,#ffe586 100%);clip-path:polygon(0 40%,100% 0,100% 100%,0 60%);filter:drop-shadow(0 0 4px #ffcf50)}
.battle-fx.fx-reflect-return:after{left:100%;top:50%;width:9px;height:9px;border:1px solid #fff;background:#ffe77c;box-shadow:0 0 8px #fff,0 0 14px #ffb82d;animation:reflect-return-orb .3s ease-out both}
@keyframes reflect-return-snap{0%{opacity:0;scale:.08 .6}18%{opacity:1;scale:.35 1}75%{opacity:1;scale:1 1}100%{opacity:.15;scale:1 .5}}
@keyframes reflect-return-orb{0%{opacity:0;transform:translate(-50%,-50%) scale(.4)}20%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(1.5)}}
@keyframes galya-passport-reflect{0%{opacity:0;transform:translate(-50%,-50%) translateY(3px) rotate(-8deg) scale(.72)}24%{opacity:1;transform:translate(-50%,-50%) rotate(3deg) scale(1.12)}65%{opacity:1;transform:translate(-50%,-50%) rotate(-2deg) scale(1)}100%{opacity:0;transform:translate(-50%,-50%) translateY(-3px) rotate(0) scale(.94)}}
.battle-fx.fx-reflect-damage,.battle-fx.fx-wall-corrosion-damage{z-index:12;width:max-content;height:auto;min-width:30px;padding:3px 5px;border:1px solid #ffe394;border-radius:8px;background:#17121deF;color:#fff4c8;font:900 8px/1.2 system-ui,sans-serif;letter-spacing:.02em;white-space:nowrap;text-shadow:0 1px 2px #100913;box-shadow:0 0 6px #ffb93388;transform:translate(-50%,-155%);animation:reflect-damage-pop .58s cubic-bezier(.16,.8,.25,1) both}
.battle-fx.fx-reflect-damage:before,.battle-fx.fx-reflect-damage:after,.battle-fx.fx-wall-corrosion-damage:before,.battle-fx.fx-wall-corrosion-damage:after{display:none}
.battle-fx.fx-wall-corrosion-damage{border-color:#c6ff69;background:#111a12eF;color:#ddff9b;box-shadow:0 0 6px #86e94288}
@keyframes reflect-damage-pop{0%{opacity:0;translate:0 5px;scale:.75}20%{opacity:1}100%{opacity:0;translate:0 -5px;scale:1}}
.battle-hud-flow{position:fixed;z-index:9999;width:var(--flow-length,120px);height:18px;pointer-events:none;transform:translate(-50%,-50%) rotate(var(--flow-angle,0deg));transform-origin:center;animation-delay:inherit}
.battle-hud-flow>i{position:absolute;left:0;top:50%;width:100%;height:4px;border-radius:99px;background:linear-gradient(90deg,transparent,var(--flow-color,#9dff57) 18%,#fff 53%,var(--flow-color,#9dff57) 85%,transparent);box-shadow:0 0 5px #fff,0 0 12px var(--flow-color,#9dff57);transform:translateY(-50%) scaleX(.08);transform-origin:left center;animation:resource-flow-run .58s cubic-bezier(.18,.75,.28,1) both;animation-delay:inherit}
.battle-hud-flow>span{position:absolute;left:0;top:50%;width:11px;height:11px;border:1px solid #fff;border-radius:50%;background:radial-gradient(circle,#fff 0 15%,var(--flow-color,#9dff57) 42%,transparent 76%);box-shadow:0 0 7px #fff,0 0 13px var(--flow-color,#9dff57);transform:translate(-50%,-50%);animation:resource-orb-run .58s ease-in-out both;animation-delay:inherit}
.battle-hud-flow>b{position:absolute;left:50%;top:-5px;padding:2px 5px;border:1px solid var(--flow-color,#9dff57);border-radius:7px;background:#0d1119eF;color:#e8ffd0;font:900 9px/1.1 system-ui,sans-serif;white-space:nowrap;text-shadow:0 1px 2px #000;box-shadow:0 0 7px color-mix(in srgb,var(--flow-color,#9dff57) 55%,transparent);transform:translate(-50%,-50%) rotate(var(--counter-angle,0deg))}
.battle-hud-flow.flow-steal{--flow-color:#8dff50}
.battle-hud-flow.flow-return{--flow-color:#63eaff}
.battle-hud-flow.flow-loss>b{border-color:#ff728c;color:#ffd9df;--flow-color:#ff5878}
.battle-hud-flow.flow-refund>b{border-color:#63eaff;color:#cffaff}
@keyframes resource-flow-run{0%{opacity:0;transform:translateY(-50%) scaleX(.04)}18%{opacity:1}78%{opacity:.95;transform:translateY(-50%) scaleX(1)}100%{opacity:0;transform:translateY(-50%) scaleX(1)}}
@keyframes resource-orb-run{0%{opacity:0;left:0;scale:.55}16%{opacity:1}82%{opacity:1;left:100%;scale:1.1}100%{opacity:0;left:100%;scale:.65}}
@media(prefers-reduced-motion:reduce){.battle-fx.fx-reflect-return,.battle-fx.fx-reflect-return:after,.battle-fx.fx-reflect-glint,.battle-fx.fx-reflect-damage,.battle-fx.fx-wall-corrosion-damage,.battle-hud-flow>i,.battle-hud-flow>span{animation:none!important}.battle-fx.fx-reflect-return,.battle-fx.fx-reflect-glint,.battle-hud-flow>i{opacity:.82}.battle-hud-flow>span{left:100%;opacity:.85}}

.battle-fm{margin:12px 0;padding:10px;border:1px solid #34465b;border-left:3px solid #ffd65d;border-radius:10px;background:linear-gradient(145deg,#131d2a,#0c121c);box-shadow:inset 0 1px #ffffff08}
.battle-fm-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.battle-fm-head>div{display:grid;gap:1px}
.battle-fm-head strong{color:#ffe28a;font-size:12px;letter-spacing:.11em}
.battle-fm-head small,.battle-fm-copy small{color:#9cacc0;font-size:9px;letter-spacing:.035em}
.battle-fm-signal{height:17px;display:flex;align-items:center;gap:2px;padding:0 5px;border:1px solid #34465b;border-radius:5px;background:#080e17}
.battle-fm-signal i{display:block;width:2px;height:4px;border-radius:2px;background:#50e8ee;box-shadow:0 0 5px #42e7ef88;animation:battle-fm-meter .68s ease-in-out var(--fm-delay,0s) infinite alternate}
.battle-fm-signal i:nth-child(2){--fm-delay:-.23s}.battle-fm-signal i:nth-child(3){--fm-delay:-.41s}.battle-fm-signal i:nth-child(4){--fm-delay:-.12s}.battle-fm-signal i:nth-child(5){--fm-delay:-.34s}
.battle-fm-list{display:grid;gap:5px}
.battle-fm-moment{display:grid;grid-template-columns:18px 38px minmax(0,1fr);align-items:center;gap:7px;min-height:64px;padding:6px 7px;border:1px solid #ffffff12;border-left:2px solid #8b98aa;border-radius:7px;background:#ffffff05}
.battle-fm-moment.rarity-rare{border-left-color:#51bbff}.battle-fm-moment.rarity-epic{border-left-color:#c56aff}.battle-fm-moment.rarity-legendary,.battle-fm-moment.rarity-titan{border-left-color:#ffd65d}
.battle-fm-index{color:#8292a7;font-size:9px;font-weight:900;font-variant-numeric:tabular-nums}
.battle-fm-card{width:38px;height:43px;object-fit:contain;filter:drop-shadow(0 2px 2px #0008)}
.battle-fm-copy{min-width:0;display:grid;gap:2px}
.battle-fm-copy>div{display:grid;gap:1px;min-width:0}
.battle-fm-copy b{display:-webkit-box;min-width:0;overflow:hidden;color:#f5f7fb;font-size:10.5px;line-height:1.15;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.battle-fm-copy p{margin:0;color:#cad4e1;font-size:10px;line-height:1.25}
.battle-fm-proof{margin:7px 1px 0;color:#8190a3;font-size:9px;line-height:1.25}
.battle-fm-share{width:100%;min-height:34px;margin-top:7px;border-color:#5a798f;background:linear-gradient(180deg,#1b3b50,#102536);color:#dffbff;font-size:10px;letter-spacing:.045em}
.battle-fm-story{display:none;width:100%;min-height:34px;margin-top:6px;border-color:#7158a7;background:linear-gradient(180deg,#33294d,#201a32);color:#f1e9ff;font-size:10px;letter-spacing:.045em}
html.telegram-story-sharing .battle-fm-story{display:block}
@keyframes battle-fm-meter{from{height:3px;opacity:.55}to{height:14px;opacity:1}}
@media(prefers-reduced-motion:reduce){.battle-fm-signal i{animation:none;height:7px;opacity:.85}}

/* Tamagotchi walk cycle: retain the server position tween and animate only the sprite atlas. */
.battle-screen .unit.unit-cat.unit-tama-walk-ready>.unit-sprite{opacity:0!important}
.battle-screen .unit.unit-cat.unit-tama-walk-ready>.tama-walk-atlas{position:absolute;z-index:2;inset:0;width:100%;height:100%;background-image:url('/assets/units/animations/cat/walk-base-v1.webp?v=20261014-tama-walk-v1');background-repeat:no-repeat;background-size:800% 100%;background-position:0 0;filter:drop-shadow(0 4px 2px #061326aa);pointer-events:none;animation:tama-walk-atlas var(--walk-cycle,.9s) steps(7,end) var(--walk-delay,0ms) infinite}
.battle-screen .unit.unit-cat.unit-evolved.unit-tama-walk-ready>.tama-walk-atlas{background-image:url('/assets/units/animations/cat/walk-evolved-v1.webp?v=20261014-tama-walk-v1')}
@keyframes tama-walk-atlas{0%{background-position-x:0}87.5%,100%{background-position-x:100%}}
@media(prefers-reduced-motion:reduce){.battle-screen .unit.unit-cat.unit-motion-walk>.unit-sprite{opacity:1!important;animation:none!important}.battle-screen .unit.unit-cat>.tama-walk-atlas{display:none!important}}

@media(prefers-reduced-motion:reduce){.mimic-jaw-impact-art{animation:none!important;opacity:.94;transform:translate(-50%,-50%) scale(1)}}
@media(prefers-reduced-motion:reduce){.battle-fx.fx-impact-trap .mimic-jaw-impact-art{opacity:.94!important;transform:translate(-50%,-50%) scale(1)!important}}
.battle-fx.sock-ambush-art{width:62px;height:64px;filter:drop-shadow(0 0 7px #a94bff) drop-shadow(0 0 12px #d845f4) drop-shadow(0 0 11px #48eaff);animation:sock-seam-open .52s cubic-bezier(.16,.82,.22,1) both;pointer-events:none}
@keyframes sock-seam-open{0%{opacity:0;transform:translate(-50%,-50%) scale(.36) rotate(-8deg)}24%{opacity:1;transform:translate(-50%,-50%) scale(1.08) rotate(2deg)}65%{opacity:.92;transform:translate(-50%,-50%) scale(.98) rotate(-1deg)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.16) rotate(4deg)}}
@media(prefers-reduced-motion:reduce){.battle-fx.sock-ambush-art{animation:none!important;opacity:.92!important;transform:translate(-50%,-50%) scale(1)!important}}
/* Shushara walk atlas: keep the server position tween and animate only the sprite. */
.battle-screen .unit.unit-rat.unit-rat-walk-ready>.unit-sprite{opacity:0!important}
.battle-screen .unit.unit-rat.unit-rat-walk-ready>.rat-walk-atlas{position:absolute;z-index:2;inset:0;width:100%;height:100%;background-image:url('/assets/units/animations/rat/walk-v1.webp?v=20261014-rat-walk-v1');background-repeat:no-repeat;background-size:800% 100%;background-position:0 0;filter:drop-shadow(0 3px 2px #061326aa);pointer-events:none;animation:rat-walk-atlas var(--walk-cycle,.9s) steps(7,end) var(--walk-delay,0ms) infinite}
@keyframes rat-walk-atlas{0%{background-position-x:0}87.5%,100%{background-position-x:100%}}
@media(prefers-reduced-motion:reduce){.battle-screen .unit.unit-rat.unit-motion-walk>.unit-sprite{opacity:1!important;animation:none!important}.battle-screen .unit.unit-rat>.rat-walk-atlas{display:none!important}}

/* Labubu walk atlas: lock the launcher socket while the legs cycle in place. */
.battle-screen .unit.unit-king.unit-king-walk-ready>.unit-sprite{opacity:0!important}
.battle-screen .unit.unit-king.unit-king-walk-ready>.king-walk-atlas{position:absolute;z-index:2;inset:0;width:100%;height:100%;background-image:url('/assets/units/animations/king/walk-atlas-v1.webp?v=20261015-labubu-walk-v1');background-repeat:no-repeat;background-size:800% 100%;background-position:0 0;filter:drop-shadow(0 4px 2px #061326aa);pointer-events:none;animation:labubu-walk-atlas var(--walk-cycle,1s) steps(7,end) var(--walk-delay,0ms) infinite}
.battle-screen .unit.enemy.unit-king-walk-ready>.king-walk-atlas{transform:scaleX(-1)}
@keyframes labubu-walk-atlas{0%{background-position-x:0}87.5%,100%{background-position-x:100%}}
@media(prefers-reduced-motion:reduce){.battle-screen .unit.unit-king.unit-king-walk-ready>.unit-sprite{opacity:1!important;animation:none!important}.battle-screen .unit.unit-king-walk-ready>.king-walk-atlas{display:none!important}}

/* Galya walk atlas: keep her scanner low while the stride cycles in place. */
.battle-screen .unit.unit-galya.unit-galya-walk-ready>.unit-sprite{opacity:0!important;animation:none!important}
.battle-screen .unit.unit-galya.unit-galya-walk-ready>.galya-walk-atlas{position:absolute;z-index:2;inset:0;width:100%;height:100%;background-image:url('/assets/units/animations/galya/walk-v1.webp?v=20261016-roster-walk-v153');background-repeat:no-repeat;background-size:800% 100%;background-position:0 0;filter:drop-shadow(0 3px 2px #061326aa);pointer-events:none;animation:galya-walk-atlas var(--walk-cycle,1s) steps(7,end) var(--walk-delay,0ms) infinite}
@keyframes galya-walk-atlas{0%{background-position-x:0}87.5%,100%{background-position-x:100%}}
@media(prefers-reduced-motion:reduce){.battle-screen .unit.unit-galya.unit-galya-walk-ready>.unit-sprite{opacity:1!important;animation:none!important}.battle-screen .unit.unit-galya-walk-ready>.galya-walk-atlas{display:none!important}}

/* Lonely Sock walk atlas: keep the ambush fighter's glow and invisibility state on the unit layer. */
.battle-screen .unit.unit-banana.unit-banana-walk-ready>.unit-sprite{opacity:0!important;animation:none!important}
.battle-screen .unit.unit-banana.unit-banana-walk-ready>.banana-walk-atlas{position:absolute;z-index:2;inset:0;width:100%;height:100%;background-image:url('/assets/units/animations/banana/walk-v1.webp?v=20261015-banana-walk-v1');background-repeat:no-repeat;background-size:800% 100%;background-position:0 0;filter:drop-shadow(0 4px 2px #061326aa);pointer-events:none;animation:banana-walk-atlas var(--walk-cycle,.9s) steps(7,end) var(--walk-delay,0ms) infinite}
@keyframes banana-walk-atlas{0%{background-position-x:0}87.5%,100%{background-position-x:100%}}
@media(prefers-reduced-motion:reduce){.battle-screen .unit.unit-banana.unit-motion-walk>.unit-sprite{opacity:1!important;animation:none!important}.battle-screen .unit.unit-banana>.banana-walk-atlas{display:none!important}}
.friend-challenge-status{display:grid;grid-template-columns:1fr auto;align-items:center;gap:5px 10px;border-color:#29ddf2;background:linear-gradient(100deg,#08212a,#15101d)}.friend-challenge-status strong{color:#78f1ff;font-size:12px}.friend-challenge-status>span{grid-column:1;color:#d9e1ee;font-size:11px}.friend-challenge-status button{grid-column:2;min-width:100px}.friend-challenge-status button+button{grid-column:1/-1}.friend-actions .green-btn{border-color:#51e85a}.challenge-invite{display:grid;justify-items:center;gap:8px;text-align:center}.challenge-invite>img{width:54px;height:54px;filter:drop-shadow(0 0 10px #28dff0)}.challenge-invite p{margin:0;line-height:1.4}.challenge-invite small{max-width:38ch;color:#bcc6d5;line-height:1.45}.challenge-invite b{color:#faff00}
@media(max-width:390px){.friend-row{gap:6px}.friend-avatar{width:42px;height:42px}.friend-actions button{min-width:50px;padding:4px 3px;font-size:9px}.friend-challenge-status button{min-width:84px;font-size:9px}}

/* First-battle guide: compact, thumb-safe hint above the battle controls. */
.battle-screen .battle-guide{position:absolute;z-index:55;left:max(8px,env(safe-area-inset-left,0px));right:max(8px,env(safe-area-inset-right,0px));bottom:calc(max(clamp(156px,23dvh,208px),calc(90px + min(24vw,125px))) + var(--game-safe-bottom) + 7px);width:min(calc(100% - 16px),440px);margin-inline:auto;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:9px 10px;border:1px solid #62eaff;border-radius:10px;background:linear-gradient(105deg,#07131fee,#1b0d24f2);box-shadow:0 0 0 1px #ae36d844,0 5px 18px #000b,0 0 15px #3de8ff35;color:#fff;pointer-events:auto}
.battle-guide>div{min-width:0}.battle-guide small{display:block;color:#8df4ff;font-size:9px;font-weight:1000;letter-spacing:.08em}.battle-guide p{margin:3px 0 0;color:#edf4ff;font-size:11px;line-height:1.28}.battle-guide button{min-width:78px;min-height:34px;padding:5px 8px;font-size:10px;white-space:nowrap}
.battle-guide-active[data-guide-step="0"] .battle-hand>div[data-action="select-card"]{position:relative;z-index:2;animation:battle-guide-card-pulse 1.35s ease-in-out infinite alternate}
.battle-guide-active[data-guide-step="1"] .arena.placing .drop-zone{animation:battle-guide-lane-pulse 1.1s ease-in-out infinite alternate}
@keyframes battle-guide-card-pulse{from{filter:drop-shadow(0 0 2px #62eaff55)}to{filter:drop-shadow(0 0 8px #62eaff);transform:translateY(-2px)}}
@keyframes battle-guide-lane-pulse{from{background-color:#77edff22;outline-color:#8cf5ff88}to{background-color:#77edff55;outline-color:#fff;outline-offset:-5px}}
@media(min-width:768px){.battle-screen .battle-guide{bottom:calc(clamp(156px,23dvh,208px) + var(--game-safe-bottom) + 10px)}}
@media(max-height:620px){.battle-screen .battle-guide{padding:6px 8px;gap:6px}.battle-guide p{font-size:10px;line-height:1.2}.battle-guide button{min-height:30px}}
@media(prefers-reduced-motion:reduce){.battle-guide-active[data-guide-step="0"] .battle-hand>div[data-action="select-card"],.battle-guide-active[data-guide-step="1"] .arena.placing .drop-zone{animation:none!important;outline:2px solid #bafaff;outline-offset:-5px}}

/* Sour Yogurt walk atlas: its poison status stays on the sprite during the in-place stride. */
.battle-screen .unit.unit-yogurt.unit-yogurt-walk-ready>.unit-sprite{opacity:0!important;animation:none!important}
.battle-screen .unit.unit-yogurt.unit-yogurt-walk-ready>.yogurt-walk-atlas{position:absolute;z-index:2;inset:0;width:100%;height:100%;background-image:url('/assets/units/animations/yogurt/walk-v1.webp?v=20261015-yogurt-walk-v1');background-repeat:no-repeat;background-size:800% 100%;background-position:0 0;filter:drop-shadow(0 3px 2px #061326aa);pointer-events:none;animation:yogurt-walk-atlas var(--walk-cycle,.9s) steps(7,end) var(--walk-delay,0ms) infinite}
.battle-screen .unit.unit-yogurt.unit-yogurt-walk-ready.unit-poisoned>.yogurt-walk-atlas{filter:drop-shadow(0 0 4px #a5fa31) drop-shadow(0 0 9px #48d936) drop-shadow(0 3px 2px #061326aa)}
@keyframes yogurt-walk-atlas{0%{background-position-x:0}87.5%,100%{background-position-x:100%}}
@media(prefers-reduced-motion:reduce){.battle-screen .unit.unit-yogurt.unit-motion-walk>.unit-sprite{opacity:1!important;animation:none!important}.battle-screen .unit.unit-yogurt>.yogurt-walk-atlas{display:none!important}}

/* Left Sneaker walk atlas: no attack footprint until the server confirms stomp. */
.battle-screen .unit.unit-sneaker.unit-sneaker-walk-ready>.unit-sprite{opacity:0!important;animation:none!important}
.battle-screen .unit.unit-sneaker.unit-sneaker-walk-ready>.sneaker-walk-atlas{position:absolute;z-index:2;left:50%;top:-27px;width:55px;height:110px;transform:translateX(-50%);background-image:url('/assets/units/animations/sneaker/walk-v2.webp?v=20261017-sneaker-mechanics-v203');background-repeat:no-repeat;background-size:400% 200%;background-position:0 0;filter:drop-shadow(0 3px 2px #061326aa);pointer-events:none;animation:sneaker-walk-atlas var(--walk-cycle,1.08s) steps(1,end) var(--walk-delay,0ms) infinite}
@keyframes sneaker-walk-atlas{0%,12.49%{background-position:0 0}12.5%,24.99%{background-position:33.333% 0}25%,37.49%{background-position:66.667% 2px}37.5%,49.99%{background-position:100% 2px}50%,62.49%{background-position:0 100%}62.5%,74.99%{background-position:33.333% 100%}75%,87.49%{background-position:66.667% 100%}87.5%,100%{background-position:100% calc(100% + 6px)}}
@media(prefers-reduced-motion:reduce){.battle-screen .unit.unit-sneaker.unit-motion-walk>.unit-sprite{opacity:1!important;animation:none!important}.battle-screen .unit.unit-sneaker>.sneaker-walk-atlas{display:none!important}}

/* Courier everyday scooter travel is separate from the short dash attack. */
.battle-screen .unit.unit-courier.unit-courier-walk-ready>.unit-sprite{opacity:0!important;animation:none!important}
.battle-screen .unit.unit-courier.unit-courier-walk-ready>.courier-walk-atlas{position:absolute;z-index:2;inset:0;width:100%;height:100%;background-image:url('/assets/units/animations/courier/walk-v1.webp?v=20261016-roster-walk-v153');background-repeat:no-repeat;background-size:800% 100%;background-position:0 0;filter:drop-shadow(0 3px 2px #061326aa);pointer-events:none;animation:courier-walk-atlas var(--walk-cycle,.9s) steps(7,end) var(--walk-delay,0ms) infinite}
@keyframes courier-walk-atlas{0%{background-position-x:0}87.5%,100%{background-position-x:100%}}
@media(prefers-reduced-motion:reduce){.battle-screen .unit.unit-courier.unit-motion-walk>.unit-sprite{opacity:1!important;animation:none!important}.battle-screen .unit.unit-courier>.courier-walk-atlas{display:none!important}}

/* The bag Titan keeps its spawn action separate from its heavy walk cycle. */
.battle-screen .unit.unit-bags.unit-bags-walk-ready>.unit-sprite{opacity:0!important;animation:none!important}
.battle-screen .unit.unit-bags.unit-bags-walk-ready>.bags-walk-atlas{position:absolute;z-index:2;inset:0;width:100%;height:100%;background-image:url('/assets/units/animations/bags/walk-v1.webp?v=20261015-bags-walk-v1');background-repeat:no-repeat;background-size:800% 100%;background-position:0 0;filter:drop-shadow(0 3px 2px #061326aa);pointer-events:none;animation:bags-walk-atlas var(--walk-cycle,1s) steps(7,end) var(--walk-delay,0ms) infinite}
@keyframes bags-walk-atlas{0%{background-position-x:0}87.5%,100%{background-position-x:100%}}
@media(prefers-reduced-motion:reduce){.battle-screen .unit.unit-bags.unit-motion-walk>.unit-sprite{opacity:1!important;animation:none!important}.battle-screen .unit.unit-bags>.bags-walk-atlas{display:none!important}}

/* Tape coils wobble during travel; the whip only appears on its glue attack. */
.battle-screen .unit.unit-tape.unit-tape-walk-ready>.unit-sprite{opacity:0!important;animation:none!important}
.battle-screen .unit.unit-tape.unit-tape-walk-ready>.tape-walk-atlas{position:absolute;z-index:2;inset:0;width:100%;height:100%;background-image:url('/assets/units/animations/tape/walk-v1.webp?v=20261015-tape-walk-v1');background-repeat:no-repeat;background-size:800% 100%;background-position:0 0;filter:drop-shadow(0 3px 2px #061326aa);pointer-events:none;animation:tape-walk-atlas var(--walk-cycle,.8s) steps(7,end) var(--walk-delay,0ms) infinite}
@keyframes tape-walk-atlas{0%{background-position-x:0}87.5%,100%{background-position-x:100%}}
@media(prefers-reduced-motion:reduce){.battle-screen .unit.unit-tape.unit-motion-walk>.unit-sprite{opacity:1!important;animation:none!important}.battle-screen .unit.unit-tape>.tape-walk-atlas{display:none!important}}

/* The lonely earbud bounces through travel; sonar remains an attack-only cue. */
.battle-screen .unit.unit-earbud.unit-earbud-walk-ready>.unit-sprite{opacity:0!important;animation:none!important}
.battle-screen .unit.unit-earbud.unit-earbud-walk-ready>.earbud-walk-atlas{position:absolute;z-index:2;inset:0;width:100%;height:100%;background-image:url('/assets/units/animations/earbud/walk-v1.webp?v=20261015-earbud-walk-v1');background-repeat:no-repeat;background-size:800% 100%;background-position:0 0;filter:drop-shadow(0 3px 2px #061326aa);pointer-events:none;animation:earbud-walk-atlas var(--walk-cycle,.46s) steps(7,end) var(--walk-delay,0ms) infinite}
@keyframes earbud-walk-atlas{0%{background-position-x:0}87.5%,100%{background-position-x:100%}}
@media(prefers-reduced-motion:reduce){.battle-screen .unit.unit-earbud.unit-motion-walk>.unit-sprite{opacity:1!important;animation:none!important}.battle-screen .unit.unit-earbud>.earbud-walk-atlas{display:none!important}}

/* The cable bundle flexes softly during travel; chain lightning stays attack-only. */
.battle-screen .unit.unit-cables.unit-cables-walk-ready>.unit-sprite{opacity:0!important;animation:none!important}
.battle-screen .unit.unit-cables.unit-cables-walk-ready>.cables-walk-atlas{position:absolute;z-index:2;inset:0;width:100%;height:100%;background-image:url('/assets/units/animations/cables/walk-v1.webp?v=20261015-cables-walk-v1');background-repeat:no-repeat;background-size:800% 100%;background-position:0 0;filter:drop-shadow(0 3px 2px #061326aa);pointer-events:none;animation:cables-walk-atlas var(--walk-cycle,.67s) steps(7,end) var(--walk-delay,0ms) infinite,cables-walk-bob var(--walk-cycle,.67s) ease-in-out var(--walk-delay,0ms) infinite}
@keyframes cables-walk-atlas{0%{background-position-x:0}87.5%,100%{background-position-x:100%}}
@keyframes cables-walk-bob{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-1.2px) rotate(-.7deg)}}
@media(prefers-reduced-motion:reduce){.battle-screen .unit.unit-cables.unit-motion-walk>.unit-sprite{opacity:1!important;animation:none!important}.battle-screen .unit.unit-cables>.cables-walk-atlas{display:none!important}}
.battle-screen .battle-terminal-shield{position:absolute;z-index:29;inset:0;background:transparent;pointer-events:auto}

/* Card rarity adds one quiet outer pulse to direct contacts; character hit art stays intact. */
.battle-fx[class*="fx-impact-"]{isolation:isolate}
.battle-fx[class*="fx-impact-"]::before,.battle-fx[class*="fx-impact-"]::after{z-index:1}
.battle-fx>.impact-rarity-aura{position:absolute;z-index:0;left:50%;top:50%;width:90%;max-width:116px;aspect-ratio:1;border:1px solid currentColor;border-radius:50%;box-shadow:0 0 5px currentColor,0 0 10px currentColor;opacity:0;transform:translate(-50%,-50%) scale(.64);animation:impact-rarity-aura .54s cubic-bezier(.16,.78,.22,1) var(--fx-phase-delay,0ms) both;pointer-events:none}
.battle-fx[data-impact-rarity="rare"]>.impact-rarity-aura{width:96%;color:#83f4ff;box-shadow:0 0 5px #68ecff,0 0 12px #39dfff88}
.battle-fx[data-impact-rarity="epic"]>.impact-rarity-aura{width:110%;border-style:dashed;border-width:1.5px;color:#e49aff;box-shadow:0 0 6px #df7dff,0 0 14px #a439ff88}
.battle-fx[data-impact-rarity="legendary"]>.impact-rarity-aura{width:125%;border-style:double;border-width:2px;color:#ffe69a;box-shadow:0 0 7px #ffe36e,0 0 16px #ffad4488}
.battle-fx[data-impact-rarity="titan"]>.impact-rarity-aura{width:140%;border-style:dashed;border-width:2px;color:#9ffaff;filter:drop-shadow(0 0 4px #42dcff) drop-shadow(0 0 7px #db52ff)}
.battle-fx[class*="fx-impact-"][data-impact-rarity="rare"]>.impact-rarity-aura{animation-duration:.56s}
.battle-fx[class*="fx-impact-"][data-impact-rarity="epic"]>.impact-rarity-aura{animation-duration:.58s}
.battle-fx[class*="fx-impact-"][data-impact-rarity="legendary"]>.impact-rarity-aura{animation-duration:.62s}
.battle-fx[class*="fx-impact-"][data-impact-rarity="titan"]>.impact-rarity-aura{animation-duration:.66s}
@keyframes impact-rarity-aura{0%{opacity:0;transform:translate(-50%,-50%) scale(.64)}22%{opacity:.84}100%{opacity:0;transform:translate(-50%,-50%) scale(1.12)}}
@media(prefers-reduced-motion:reduce){.battle-fx>.impact-rarity-aura{animation:none!important;opacity:.78!important;transform:translate(-50%,-50%) scale(1)!important}}

/* Lonely Sock death: the cloaked fighter folds into its own closing glitch seam. */
.battle-fx.unit-death-banana{z-index:8;width:82px;height:76px;animation:sock-death-out .72s cubic-bezier(.16,.82,.22,1) both}
.battle-fx.unit-death-banana>img:first-child{z-index:3;filter:drop-shadow(0 0 6px #d83bef) drop-shadow(0 0 11px #6ceaff);transform-origin:50% 82%;animation:sock-death-fold .72s cubic-bezier(.18,.8,.22,1) both}
.battle-fx.unit-death-banana>.sock-death-seam{z-index:5;inset:auto;left:50%;top:49%;width:47px;height:47px;object-fit:contain;filter:drop-shadow(0 0 5px #fff) drop-shadow(0 0 10px #d83bef) drop-shadow(0 0 15px #6ceaff);opacity:0;transform:translate(-50%,-50%) scaleX(.04) scaleY(.72);animation:sock-death-rift .64s cubic-bezier(.18,.82,.2,1) both;pointer-events:none}
.battle-fx.unit-death-banana:before{z-index:2;inset:16% 38%;border:1px solid #f6fbff;border-radius:50%;background:linear-gradient(90deg,#6ceaff00,#d83bef55 48%,#6ceaff00);box-shadow:0 0 8px #d83bef,0 0 15px #6ceaff;opacity:0;rotate:0deg;animation:sock-death-edge .62s ease-out both}
.battle-fx.unit-death-banana:after{z-index:6;left:50%;top:69%;width:4px;height:4px;border:0;border-radius:1px;background:#fff;box-shadow:-9px -8px #d83bef,8px -4px #6ceaff,4px 7px #fff0a8;rotate:0deg;animation:sock-death-pixels .5s ease-out both}
@keyframes sock-death-out{0%{opacity:0;scale:.76}16%{opacity:1;scale:1.04}60%{opacity:.96;scale:1}100%{opacity:0;scale:1.08}}
@keyframes sock-death-fold{0%{opacity:0;transform:translateY(2px) rotate(0) scale(1)}16%{opacity:1}36%{transform:translateY(0) rotate(-3deg) scale(1.04,.94)}57%{transform:translateY(2px) rotate(2deg) scale(.9,.52)}76%{opacity:.82;transform:translateY(-2px) rotate(0) scale(.18,.92)}100%{opacity:0;transform:translateY(-3px) scale(.04,.5)}}
@keyframes sock-death-rift{0%,27%{opacity:0;transform:translate(-50%,-50%) scaleX(.04) scaleY(.72)}43%{opacity:.9;transform:translate(-50%,-50%) scaleX(.5) scaleY(.9)}61%{opacity:1;transform:translate(-50%,-50%) scaleX(1) scaleY(1.04)}78%{opacity:.72;transform:translate(-50%,-50%) scaleX(.62) scaleY(1.08)}100%{opacity:0;transform:translate(-50%,-50%) scaleX(.02) scaleY(.8)}}
@keyframes sock-death-edge{0%,30%{opacity:0;transform:scaleY(.45)}56%{opacity:.8}100%{opacity:0;transform:scaleY(1.45)}}
@keyframes sock-death-pixels{0%,37%{opacity:0;transform:translate(-50%,-50%) scale(.3)}52%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) translateY(-9px) scale(.55)}}
@media(prefers-reduced-motion:reduce){.battle-fx.unit-death-banana{animation:none!important;opacity:.94!important;transform:translate(-50%,-50%)!important;scale:1!important}.battle-fx.unit-death-banana>img:first-child{animation:none!important;opacity:.94!important;transform:none!important}.battle-fx.unit-death-banana>.sock-death-seam{animation:none!important;opacity:.76!important;transform:translate(-50%,-50%)!important}.battle-fx.unit-death-banana:before{animation:none!important;opacity:.58!important;transform:none!important}.battle-fx.unit-death-banana:after{animation:none!important;opacity:.9!important;transform:translate(-50%,-50%)!important}}

/* Long Receipt death: paper wall curls in, sheds two printed strips, then gets written off. */
.battle-fx.unit-death-receipt{z-index:8;width:108px;height:94px;animation:receipt-death-out .76s cubic-bezier(.16,.82,.22,1) both}
.battle-fx.unit-death-receipt>img:first-child{z-index:3;filter:sepia(.28) drop-shadow(0 0 6px #ffd783) drop-shadow(0 0 12px #ff8a43);transform-origin:50% 78%;animation:receipt-death-curl .76s cubic-bezier(.2,.78,.24,1) both}
.battle-fx.unit-death-receipt:before{z-index:4;inset:auto;left:50%;top:37%;width:78%;height:2px;border:0;border-radius:2px;background:linear-gradient(90deg,#68f2ff00,#fff 34%,#ffd783 52%,#68f2ff00);box-shadow:0 0 7px #fff,0 0 13px #f7a73d;opacity:0;rotate:0deg;animation:receipt-death-scan .56s ease-in both;pointer-events:none}
.battle-fx.unit-death-receipt:after{z-index:5;left:50%;top:50%;width:6px;height:6px;border:1px solid #fff7da;border-radius:1px;background:#ffb541;box-shadow:0 0 7px #fff,0 0 13px #ff812e;rotate:45deg;animation:receipt-death-spark .45s ease-out .08s both}
.battle-fx.unit-death-receipt>.receipt-death-strip{position:absolute;z-index:6;left:50%;top:48%;width:26px;height:11px;border-top:1px solid #fff4d1;border-bottom:1px solid #b98753;border-radius:1px;background:repeating-linear-gradient(0deg,#f3dfb8 0 1px,#9d6c3d30 1px 3px);box-shadow:0 0 5px #ffe4a1;opacity:0;pointer-events:none}
.battle-fx.unit-death-receipt>.receipt-death-strip-a{animation:receipt-death-strip-a .58s cubic-bezier(.16,.8,.2,1) .12s both}
.battle-fx.unit-death-receipt>.receipt-death-strip-b{top:54%;animation:receipt-death-strip-b .58s cubic-bezier(.16,.8,.2,1) .16s both}
.battle-fx.unit-death-receipt>.receipt-death-stamp{position:absolute;z-index:8;left:50%;top:72%;width:max-content;padding:3px 5px;border:1px solid #ffd783;border-radius:2px;background:#24170deF;color:#fff3d2;font:1000 7px/1 system-ui,sans-serif;letter-spacing:.13em;text-shadow:0 0 5px #ffb33c;box-shadow:0 0 8px #ff972f66;transform:translate(-50%,-50%) rotate(-9deg) scale(.55);opacity:0;animation:receipt-death-stamp .62s cubic-bezier(.15,.9,.22,1) .08s both;pointer-events:none}
@keyframes receipt-death-out{0%{opacity:0;scale:.75}16%{opacity:1;scale:1.04}66%{opacity:.96;scale:1}100%{opacity:0;scale:1.1}}
@keyframes receipt-death-curl{0%{opacity:0;transform:translateY(4px) rotate(0) scale(1)}16%{opacity:1}34%{transform:translateY(1px) rotate(-2deg) scale(1.03,.96)}57%{transform:translateY(4px) rotate(3deg) scale(.92,.72)}78%{opacity:.8;transform:translateY(8px) rotate(-2deg) scale(.7,.3)}100%{opacity:0;transform:translateY(12px) rotate(2deg) scale(.35,.12)}}
@keyframes receipt-death-scan{0%,26%{opacity:0;transform:translate(-50%,-50%) scaleX(.08)}43%{opacity:.95}82%{opacity:.65;transform:translate(-50%,16px) scaleX(1)}100%{opacity:0;transform:translate(-50%,23px) scaleX(.6)}}
@keyframes receipt-death-spark{0%,24%{opacity:0;scale:.2}45%{opacity:1;scale:1.15}100%{opacity:0;scale:.35}}
@keyframes receipt-death-strip-a{0%,22%{opacity:0;transform:translate(-50%,-50%) rotate(0) scale(.3)}43%{opacity:1}100%{opacity:0;transform:translate(calc(-50% - 24px),calc(-50% - 17px)) rotate(-44deg) scale(.72)}}
@keyframes receipt-death-strip-b{0%,24%{opacity:0;transform:translate(-50%,-50%) rotate(0) scale(.3)}45%{opacity:1}100%{opacity:0;transform:translate(calc(-50% + 25px),calc(-50% - 12px)) rotate(51deg) scale(.66)}}
@keyframes receipt-death-stamp{0%,24%{opacity:0;transform:translate(-50%,-50%) rotate(-9deg) scale(.55)}42%{opacity:1;transform:translate(-50%,-50%) rotate(-9deg) scale(1.08)}78%{opacity:1;transform:translate(-50%,-50%) rotate(-9deg) scale(1)}100%{opacity:0;transform:translate(-50%,-50%) rotate(-9deg) scale(.96)}}
@media(prefers-reduced-motion:reduce){.battle-fx.unit-death-receipt{animation:none!important;opacity:.94!important;transform:translate(-50%,-50%)!important;scale:1!important}.battle-fx.unit-death-receipt>img:first-child{animation:none!important;opacity:.94!important;transform:none!important}.battle-fx.unit-death-receipt:before{animation:none!important;opacity:0!important}.battle-fx.unit-death-receipt:after{animation:none!important;opacity:.9!important;transform:translate(-50%,-50%)!important}.battle-fx.unit-death-receipt>.receipt-death-strip{animation:none!important;opacity:.84!important;transform:none!important}.battle-fx.unit-death-receipt>.receipt-death-stamp{animation:none!important;opacity:.96!important;transform:translate(-50%,-50%) rotate(-9deg)!important}}

/* Tamagotchi shutdown: its screen reports the base-form save failure or evolved-form overheating. */
.battle-fx.unit-death-cat{z-index:8;width:82px;height:76px;--tama-accent:#54e9ff;animation:tama-death-out .72s cubic-bezier(.16,.82,.22,1) both}
.battle-fx.unit-death-cat.is-evolved{--tama-accent:#ff56d8}
.battle-fx.unit-death-cat>img:first-child{z-index:2;filter:drop-shadow(0 0 6px var(--tama-accent)) drop-shadow(0 0 12px #ffb432);transform-origin:50% 78%;animation:tama-death-body .72s cubic-bezier(.16,.82,.22,1) both}
.battle-fx.unit-death-cat:before{z-index:4;inset:auto;left:50%;top:43%;width:48%;height:19%;border:1px solid var(--tama-accent);border-radius:2px;background:repeating-linear-gradient(0deg,#07111beF 0 2px,#10212bea 2px 3px);box-shadow:0 0 5px #fff8,0 0 10px var(--tama-accent);rotate:0deg;opacity:0;transform:translate(-50%,-50%) scaleX(.04);animation:tama-death-screen .68s steps(5,end) both;pointer-events:none}
.battle-fx.unit-death-cat:after{z-index:5;left:72%;top:30%;width:auto;height:auto;border:0;border-radius:0;background:none;color:var(--tama-accent);content:'■';font:900 9px/1 monospace;text-shadow:0 0 5px #fff,0 0 10px var(--tama-accent);rotate:0deg;transform:translate(-50%,-50%);animation:tama-death-led .6s steps(3,end) both}
.battle-fx.unit-death-cat>.tama-death-label{position:absolute;z-index:6;left:50%;top:43%;max-width:48px;padding:2px 3px;border:1px solid var(--tama-accent);border-radius:2px;background:#071019f2;color:#f3ffff;font:1000 5px/1 system-ui,sans-serif;letter-spacing:.02em;text-align:center;text-shadow:0 0 5px var(--tama-accent);box-shadow:0 0 7px var(--tama-accent);transform:translate(-50%,-50%) scaleX(.7);opacity:0;animation:tama-death-label .66s cubic-bezier(.16,.82,.22,1) .06s both;pointer-events:none;white-space:nowrap}
.battle-fx.unit-death-cat.is-evolved>.tama-death-label{border-color:#ffd35b;color:#fff1c1;text-shadow:0 0 5px #ff8a35;box-shadow:0 0 7px #ff6b3f}
.battle-fx.unit-death-cat>.tama-death-pixel{position:absolute;z-index:5;width:4px;height:4px;background:var(--tama-accent);box-shadow:0 0 6px var(--tama-accent);opacity:0;pointer-events:none}
.battle-fx.unit-death-cat>.tama-death-pixel-a{left:28%;top:37%;animation:tama-death-pixel-a .62s steps(4,end) both}
.battle-fx.unit-death-cat>.tama-death-pixel-b{right:25%;top:58%;width:3px;height:3px;animation:tama-death-pixel-b .58s steps(4,end) .04s both}
.battle-fx.unit-death-cat>.tama-death-pixel-c{left:65%;top:26%;width:3px;height:3px;animation:tama-death-pixel-c .56s steps(4,end) .02s both}
@keyframes tama-death-out{0%{opacity:0;scale:.72}16%{opacity:1;scale:1.04}64%{opacity:.96;scale:1}100%{opacity:0;scale:1.08}}
@keyframes tama-death-body{0%{opacity:0;transform:translateY(3px) scale(1)}16%{opacity:1}34%{transform:translateY(-1px) scale(1.03,.96)}55%{transform:translateY(2px) scale(.98,.9)}72%{opacity:.82;transform:translateY(0) scale(.96,.76)}100%{opacity:0;transform:translateY(3px) scale(.82,.58)}}
@keyframes tama-death-screen{0%,19%{opacity:0;transform:translate(-50%,-50%) scaleX(.04)}38%{opacity:.95;transform:translate(-50%,-50%) scaleX(1)}58%{opacity:1;transform:translate(-50%,-50%) scaleX(1)}76%{opacity:.78;transform:translate(-50%,-50%) scaleX(.9)}100%{opacity:0;transform:translate(-50%,-50%) scaleX(.02)}}
@keyframes tama-death-led{0%,22%{opacity:0;transform:translate(-50%,-50%) scale(.2)}38%,54%{opacity:1;transform:translate(-50%,-50%) scale(1.2)}100%{opacity:0;transform:translate(-50%,-50%) scale(.35)}}
@keyframes tama-death-label{0%,22%{opacity:0;transform:translate(-50%,-50%) scaleX(.35)}42%{opacity:1;transform:translate(-50%,-50%) scaleX(1.04)}62%{opacity:1;transform:translate(-50%,-50%) scaleX(1)}100%{opacity:0;transform:translate(-50%,-50%) scaleX(.88)}}
@keyframes tama-death-pixel-a{0%,24%{opacity:0;transform:translate(0,0) scale(.2)}42%{opacity:1}100%{opacity:0;transform:translate(-9px,-8px) scale(.6)}}
@keyframes tama-death-pixel-b{0%,22%{opacity:0;transform:translate(0,0) scale(.2)}43%{opacity:1}100%{opacity:0;transform:translate(8px,7px) scale(.5)}}
@keyframes tama-death-pixel-c{0%,26%{opacity:0;transform:translate(0,0) scale(.2)}44%{opacity:1}100%{opacity:0;transform:translate(5px,-11px) scale(.55)}}
@media(prefers-reduced-motion:reduce){.battle-fx.unit-death-cat,.battle-fx.unit-death-cat:before,.battle-fx.unit-death-cat:after,.battle-fx.unit-death-cat>img:first-child,.battle-fx.unit-death-cat>.tama-death-label,.battle-fx.unit-death-cat>.tama-death-pixel{animation:none!important;opacity:.94!important;transform:none!important;scale:1!important}.battle-fx.unit-death-cat:before{opacity:.78!important;transform:translate(-50%,-50%)!important}.battle-fx.unit-death-cat:after{opacity:.9!important;transform:translate(-50%,-50%)!important}.battle-fx.unit-death-cat>.tama-death-label{opacity:1!important;transform:translate(-50%,-50%)!important}.battle-fx.unit-death-cat>.tama-death-pixel{opacity:.9!important}}

/* Cable Spaghetti death: the five-target chain shorts, disconnects at two ends, and drops offline. */
.battle-fx.unit-death-cables{z-index:8;width:90px;height:78px;overflow:visible;filter:none;animation:cables-death-out .74s cubic-bezier(.16,.82,.22,1) both}
.battle-fx.unit-death-cables>img:first-child{z-index:3;filter:drop-shadow(0 0 6px #45eaff) drop-shadow(0 0 11px #bf4eff);transform-origin:50% 53%;animation:cables-death-knot .74s cubic-bezier(.18,.8,.22,1) both}
.battle-fx.unit-death-cables:before{z-index:1;inset:12% 5%;border:2px solid #5ceaff;border-radius:48% 52% 51% 49%;border-style:solid;background:radial-gradient(ellipse at 50% 50%,#45eaff24 0 18%,#b447ff12 43%,transparent 72%);box-shadow:0 0 7px #fff,0 0 14px #35dbff,0 0 21px #bf4eff55;animation:cables-death-ring .66s cubic-bezier(.16,.8,.22,1) both}
.battle-fx.unit-death-cables:after{content:'ОБРЫВ СЕТИ';z-index:7;left:50%;top:88%;width:max-content;height:auto;padding:3px 5px;border:1px solid #5ceaff;border-radius:3px;background:#091823f2;color:#e3fcff;font:1000 6px/1 system-ui,sans-serif;letter-spacing:.08em;text-shadow:0 0 5px #3eeaff;box-shadow:0 0 7px #51dbff88;rotate:0deg;transform:translate(-50%,-50%) rotate(-5deg) scale(.45);animation:cables-death-stamp .7s cubic-bezier(.16,.82,.22,1) both;pointer-events:none}
.battle-fx.unit-death-cables>.cables-death-wire{position:absolute;z-index:5;left:50%;top:49%;width:33px;height:5px;border:1px solid #efffff;border-radius:3px;background:linear-gradient(90deg,#2868ad 0%,#52eaff 34%,#fff 51%,#d34dff 72%,#7135a8 100%);box-shadow:0 0 5px #fff,0 0 10px #43dfff,0 0 14px #b64dff;pointer-events:none}
.battle-fx.unit-death-cables>.cables-death-wire-a{transform:translate(-100%,-50%) rotate(-8deg) scaleX(.18);transform-origin:right center;animation:cables-death-sever-a .62s cubic-bezier(.14,.8,.22,1) .06s both}
.battle-fx.unit-death-cables>.cables-death-wire-b{transform:translate(0,-50%) rotate(8deg) scaleX(.18);transform-origin:left center;animation:cables-death-sever-b .62s cubic-bezier(.14,.8,.22,1) .08s both}
.battle-fx.unit-death-cables>.cables-death-spark{position:absolute;z-index:6;left:50%;top:47%;width:9px;height:11px;clip-path:polygon(50% 0,62% 36%,100% 50%,63% 62%,50% 100%,38% 63%,0 50%,37% 38%);background:linear-gradient(135deg,#fff,#47f5ff 54%,#dc4fff);filter:drop-shadow(0 0 4px #fff) drop-shadow(0 0 8px #56eaff);transform:translate(-50%,-50%) scale(.2);animation:cables-death-short .48s steps(3,end) .1s both;pointer-events:none}
@keyframes cables-death-out{0%{opacity:0;scale:.76}16%{opacity:1;scale:1.04}68%{opacity:.96;scale:1}100%{opacity:0;scale:1.1}}
@keyframes cables-death-knot{0%{opacity:0;transform:translateY(2px) rotate(0) scale(1)}16%{opacity:1}38%{transform:translateY(0) rotate(-2deg) scale(1.03,.95)}61%{opacity:.9;transform:translateY(3px) rotate(4deg) scale(.88,.68)}82%{opacity:.7;transform:translateY(6px) rotate(-5deg) scale(.72,.42)}100%{opacity:0;transform:translateY(9px) rotate(7deg) scale(.56,.28)}}
@keyframes cables-death-ring{0%{opacity:0;scale:.34}24%{opacity:.9}100%{opacity:0;scale:1.72}}
@keyframes cables-death-sever-a{0%,22%{opacity:0;transform:translate(-100%,-50%) rotate(-8deg) scaleX(.18)}38%{opacity:1}100%{opacity:0;transform:translate(calc(-100% - 16px),calc(-50% - 13px)) rotate(-30deg) scaleX(.9)}}
@keyframes cables-death-sever-b{0%,24%{opacity:0;transform:translate(0,-50%) rotate(8deg) scaleX(.18)}40%{opacity:1}100%{opacity:0;transform:translate(16px,-13px) rotate(30deg) scaleX(.9)}}
@keyframes cables-death-short{0%,26%{opacity:0;transform:translate(-50%,-50%) scale(.2)}44%{opacity:1;transform:translate(-50%,-50%) scale(1.1)}72%{opacity:.78}100%{opacity:0;transform:translate(-50%,-50%) translateY(-11px) scale(.42)}}
@keyframes cables-death-stamp{0%,22%{opacity:0;transform:translate(-50%,-50%) rotate(-5deg) scale(.45)}42%{opacity:1;transform:translate(-50%,-50%) rotate(-5deg) scale(1.06)}76%{opacity:1;transform:translate(-50%,-50%) rotate(-5deg) scale(1)}100%{opacity:0;transform:translate(-50%,-50%) rotate(-5deg) scale(.96)}}
@media(prefers-reduced-motion:reduce){.battle-fx.unit-death-cables{animation:none!important;opacity:.94!important;transform:translate(-50%,-50%)!important;scale:1!important}.battle-fx.unit-death-cables>img:first-child{animation:none!important;opacity:.94!important;transform:none!important}.battle-fx.unit-death-cables:before{animation:none!important;opacity:.72!important;rotate:0deg!important;transform:none!important;scale:1!important}.battle-fx.unit-death-cables:after{animation:none!important;opacity:1!important;rotate:0deg!important;transform:translate(-50%,-50%) rotate(-5deg)!important;scale:1!important}.battle-fx.unit-death-cables>.cables-death-wire{animation:none!important;opacity:.94!important}.battle-fx.unit-death-cables>.cables-death-wire-a{transform:translate(-100%,-50%) rotate(-8deg)!important}.battle-fx.unit-death-cables>.cables-death-wire-b{transform:translate(0,-50%) rotate(8deg)!important}.battle-fx.unit-death-cables>.cables-death-spark{animation:none!important;opacity:.9!important;transform:translate(-50%,-50%)!important;scale:1!important}}

/* Earbud death: the last sonar pulse fades to a disconnected status, without a hit cue. */
.battle-fx.unit-death-earbud{z-index:8;width:88px;height:82px;overflow:visible;filter:none;animation:earbud-death-out .68s cubic-bezier(.16,.82,.22,1) both}
.battle-fx.unit-death-earbud>img:first-child{z-index:3;filter:drop-shadow(0 0 6px #55eaff) drop-shadow(0 0 10px #bb4aff);transform-origin:50% 58%;animation:earbud-death-body .68s cubic-bezier(.18,.8,.22,1) both}
.battle-fx.unit-death-earbud:before{z-index:1;inset:13% 8%;border:2px solid #67efff;border-radius:50%;background:radial-gradient(ellipse at 50% 50%,#45eaff16 0 27%,transparent 74%);box-shadow:0 0 7px #f5ffff,0 0 15px #3be7ff,0 0 20px #ad4aff66;animation:earbud-death-sonar .68s cubic-bezier(.16,.8,.22,1) both}
.battle-fx.unit-death-earbud:after{content:'НЕТ СИГНАЛА';z-index:7;left:50%;top:87%;width:max-content;padding:3px 5px;border:1px solid #65edff;border-radius:3px;background:#081721f2;color:#e9fdff;font:1000 6px/1 system-ui,sans-serif;letter-spacing:.08em;text-shadow:0 0 5px #3eeaff;box-shadow:0 0 7px #51dbff88;rotate:0deg;transform:translate(-50%,-50%) rotate(-4deg) scale(.45);animation:earbud-death-label .66s cubic-bezier(.16,.82,.22,1) both;pointer-events:none}
.battle-fx.unit-death-earbud>.earbud-death-wave{position:absolute;z-index:4;left:50%;top:47%;border:1px solid #eaffff;border-radius:50%;box-shadow:0 0 5px #fff,0 0 11px #45eaff,0 0 15px #bd4cff66;transform:translate(-50%,-50%) scale(.22);pointer-events:none}
.battle-fx.unit-death-earbud>.earbud-death-wave-a{width:24px;height:24px;animation:earbud-death-wave .52s cubic-bezier(.14,.82,.22,1) .02s both}
.battle-fx.unit-death-earbud>.earbud-death-wave-b{width:43px;height:43px;border-color:#c8a6ff;animation:earbud-death-wave .56s cubic-bezier(.14,.82,.22,1) .11s both}
@keyframes earbud-death-out{0%{opacity:0;scale:.82}18%{opacity:1;scale:1.04}68%{opacity:.95;scale:1}100%{opacity:0;scale:1.06}}
@keyframes earbud-death-body{0%{opacity:0;transform:translateY(1px) rotate(0) scale(1)}18%{opacity:1}42%{transform:translateY(0) rotate(-3deg) scale(1.02)}72%{opacity:.82;transform:translateY(3px) rotate(5deg) scale(.92,.84)}100%{opacity:0;transform:translateY(6px) rotate(8deg) scale(.78,.66)}}
@keyframes earbud-death-sonar{0%{opacity:0;scale:.42}22%{opacity:.9}66%{opacity:.74;scale:1.08}100%{opacity:0;scale:1.46}}
@keyframes earbud-death-wave{0%{opacity:0;transform:translate(-50%,-50%) scale(.22)}28%{opacity:.96;transform:translate(-50%,-50%) scale(.9)}64%{opacity:.74;transform:translate(-50%,-50%) scale(1.08)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.42)}}
@keyframes earbud-death-label{0%,20%{opacity:0;transform:translate(-50%,-50%) rotate(-4deg) scale(.45)}42%{opacity:1;transform:translate(-50%,-50%) rotate(-4deg) scale(1.04)}76%{opacity:1;transform:translate(-50%,-50%) rotate(-4deg) scale(1)}100%{opacity:0;transform:translate(-50%,-50%) rotate(-4deg) scale(.96)}}
@media(prefers-reduced-motion:reduce){.battle-fx.unit-death-earbud{animation:none!important;opacity:.94!important;transform:translate(-50%,-50%)!important;scale:1!important}.battle-fx.unit-death-earbud>img:first-child{animation:none!important;opacity:.94!important;transform:none!important}.battle-fx.unit-death-earbud:before{animation:none!important;opacity:.72!important;rotate:0deg!important;transform:none!important;scale:1!important}.battle-fx.unit-death-earbud:after{animation:none!important;opacity:1!important;rotate:0deg!important;transform:translate(-50%,-50%) rotate(-4deg)!important;scale:1!important}.battle-fx.unit-death-earbud>.earbud-death-wave{animation:none!important;opacity:.9!important;transform:translate(-50%,-50%)!important;scale:1!important}}


/* Shushara's shift ends cleanly: the pocket snaps shut after the confirmed death. */
.battle-fx.unit-death-rat{z-index:8;width:84px;height:78px;overflow:visible;animation:rat-death-out .72s cubic-bezier(.16,.82,.22,1) both}
.battle-fx.unit-death-rat>img:first-child{z-index:3;filter:drop-shadow(0 0 5px #a8ff67) drop-shadow(0 0 10px #39e7c6);transform-origin:50% 76%;animation:rat-death-fold .72s cubic-bezier(.16,.82,.22,1) both}
.battle-fx.unit-death-rat:before{z-index:1;inset:21% 19% 20%;border:2px solid #a8ff67;border-radius:44% 56% 48% 52%;background:radial-gradient(ellipse,#a8ff672b 0 18%,#48eacb12 46%,transparent 73%);box-shadow:0 0 6px #efffa9,0 0 13px #a8ff67,0 0 20px #42e9ce66;animation:rat-death-ring .66s cubic-bezier(.16,.8,.22,1) both}
.battle-fx.unit-death-rat:after{content:'КАССА ЗАКРЫТА';z-index:8;left:50%;top:90%;width:max-content;padding:3px 5px;border:1px solid #b6ff72;border-radius:3px;background:#0b1b12f2;color:#eaffc5;font:1000 6px/1 system-ui,sans-serif;letter-spacing:.08em;text-shadow:0 0 5px #9eff4b;box-shadow:0 0 7px #8eff4b66;rotate:0deg;transform:translate(-50%,-50%) scale(.55);animation:rat-death-label .66s cubic-bezier(.15,.9,.22,1) .05s both;pointer-events:none}
.battle-fx.unit-death-rat>.rat-death-pocket{position:absolute;z-index:6;left:50%;top:68%;width:20px;height:15px;border:1px solid #d4ff9e;border-radius:3px 3px 7px 7px;background:linear-gradient(145deg,#95ff5277,#126848ee 70%);box-shadow:0 0 5px #d9ffab,0 0 10px #6eff62;transform:translate(-50%,-50%) scale(.12,.55);opacity:0;animation:rat-death-pocket .52s cubic-bezier(.15,.84,.24,1) .12s both;pointer-events:none}
.battle-fx.unit-death-rat>.rat-death-pocket:before{content:'';position:absolute;left:50%;top:1px;width:12px;height:5px;border:1px solid #e8ffbb;border-radius:1px 1px 5px 5px;background:#4bdc8666;transform:translateX(-50%);transform-origin:50% 0;animation:rat-death-flap .36s cubic-bezier(.14,.8,.24,1) .2s both}
@keyframes rat-death-out{0%{opacity:0;scale:.74}15%{opacity:1;scale:1.04}62%{opacity:.96;scale:1}100%{opacity:0;scale:1.1}}
@keyframes rat-death-fold{0%,20%{opacity:1;transform:translateY(0) rotate(0) scale(1)}34%{transform:translateY(-2px) rotate(-2deg) scale(1.03)}52%{transform:translateY(2px) rotate(2deg) scale(.96,.9)}73%{opacity:.82;transform:translateY(7px) rotate(-3deg) scale(.74,.58)}100%{opacity:0;transform:translateY(10px) rotate(2deg) scale(.48,.28)}}
@keyframes rat-death-ring{0%{opacity:0;scale:.38 .62;rotate:-8deg}24%{opacity:.88}100%{opacity:0;scale:1.62 1.3;rotate:8deg}}
@keyframes rat-death-pocket{0%,24%{opacity:0;transform:translate(-50%,-50%) scale(.12,.55)}43%{opacity:1;transform:translate(-50%,-50%) scale(1.12,1.08)}66%{opacity:1;transform:translate(-50%,-50%) scale(1,.94)}100%{opacity:0;transform:translate(-50%,-50%) translateY(-5px) scale(.76,.72)}}
@keyframes rat-death-flap{0%,35%{transform:translateX(-50%) rotateX(0)}62%{transform:translateX(-50%) rotateX(68deg)}100%{transform:translateX(-50%) rotateX(0)}}
@keyframes rat-death-label{0%,25%{opacity:0;transform:translate(-50%,-50%) scale(.55)}46%{opacity:1;transform:translate(-50%,-50%) scale(1.06)}78%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-58%) scale(.94)}}
@media(prefers-reduced-motion:reduce){.battle-fx.unit-death-rat{animation:none!important;opacity:.94!important;transform:translate(-50%,-50%)!important;scale:1!important}.battle-fx.unit-death-rat>img:first-child{animation:none!important;opacity:.94!important;transform:none!important}.battle-fx.unit-death-rat:before{animation:none!important;opacity:.72!important;rotate:0deg!important;transform:none!important;scale:1!important}.battle-fx.unit-death-rat:after{animation:none!important;opacity:1!important;rotate:0deg!important;transform:translate(-50%,-50%)!important;scale:1!important}.battle-fx.unit-death-rat>.rat-death-pocket{animation:none!important;opacity:.94!important;transform:translate(-50%,-50%)!important;scale:1!important}.battle-fx.unit-death-rat>.rat-death-pocket:before{animation:none!important;transform:translateX(-50%)!important}.battle-fx.unit-death-rat>.rat-death-label{animation:none!important;opacity:1!important;transform:translate(-50%,-50%)!important}}
.battle-fx.unit-death-rat:after{content:none;display:none}
.battle-fx.unit-death-rat>.rat-death-label{position:absolute;z-index:8;left:50%;top:90%;width:max-content;padding:3px 5px;border:1px solid #b6ff72;border-radius:3px;background:#0b1b12f2;color:#eaffc5;font:1000 6px/1 system-ui,sans-serif;letter-spacing:.08em;text-shadow:0 0 5px #9eff4b;box-shadow:0 0 7px #8eff4b66;transform:translate(-50%,-50%) scale(.55);opacity:0;animation:rat-death-label .66s cubic-bezier(.15,.9,.22,1) .05s both;pointer-events:none}

/* The controller loses its link: the eye powers down and its signal raster collapses. */
.battle-fx.unit-death-remote{z-index:8;width:74px;height:68px;overflow:visible;animation:remote-death-out .72s cubic-bezier(.16,.82,.22,1) both}
.battle-fx.unit-death-remote>img:first-child{z-index:3;filter:drop-shadow(0 0 5px #c56bff) drop-shadow(0 0 10px #43eaff);transform-origin:64% 40%;animation:remote-death-body .72s steps(1,end) both}
.battle-fx.unit-death-remote:before{z-index:1;inset:12% 6%;border:1px dashed #db8bff;border-radius:48%;box-shadow:0 0 5px #fff,0 0 12px #bb5bff,0 0 16px #43eaff;animation:remote-death-raster .62s steps(1,end) both}
.battle-fx.unit-death-remote:after{content:none;display:none}
.battle-fx.unit-death-remote>.remote-death-lens{position:absolute;z-index:4;left:56%;top:33%;width:22%;height:12%;border:1px solid #ffe3ff;border-radius:50%;background:radial-gradient(ellipse,#fff 0 11%,#f394ff 18%,#922dff 58%,#210b32 80%);box-shadow:0 0 4px #fff,0 0 9px #ec65ff,0 0 13px #7e3dff;transform:scale(1);animation:remote-death-lens .56s steps(1,end) .04s both;pointer-events:none}
.battle-fx.unit-death-remote>.remote-death-scan{position:absolute;z-index:5;left:18%;top:43%;width:64%;height:1px;background:linear-gradient(90deg,transparent,#79f6ff 18%,#fff 50%,#ff87f0 82%,transparent);box-shadow:0 0 5px #69f5ff;transform:scaleX(.08);opacity:0;animation:remote-death-scan .56s cubic-bezier(.12,.8,.22,1) .06s both;pointer-events:none}
.battle-fx.unit-death-remote>.remote-death-label{position:absolute;z-index:8;left:50%;top:91%;width:max-content;padding:3px 5px;border:1px solid #db8bff;border-radius:3px;background:#110a1cf2;color:#f7eaff;font:1000 7px/1 system-ui,sans-serif;letter-spacing:.045em;text-shadow:0 0 5px #c56bff;box-shadow:0 0 7px #a850ff88;transform:translate(-50%,-50%) scale(.55);opacity:0;animation:remote-death-label .66s cubic-bezier(.15,.9,.22,1) .06s both;pointer-events:none}
@keyframes remote-death-out{0%{opacity:0;scale:.78}16%{opacity:1;scale:1.04}63%{opacity:.96;scale:1}100%{opacity:0;scale:1.08}}
@keyframes remote-death-body{0%,20%{opacity:1;transform:translateX(0) skewX(0) scale(1);filter:drop-shadow(0 0 5px #c56bff) drop-shadow(0 0 10px #43eaff)}27%{transform:translateX(-2px) skewX(-5deg) scale(1.02);filter:brightness(1.8) drop-shadow(0 0 8px #62f4ff)}34%{transform:translateX(2px) skewX(4deg) scale(.99);filter:brightness(1.6) drop-shadow(0 0 8px #ff61d2)}43%{transform:translateX(-1px) skewX(-2deg) scale(.97);filter:grayscale(.8) brightness(.8)}70%{opacity:.82;transform:translateY(3px) scale(.91,.84)}100%{opacity:0;transform:translateY(7px) scale(.78,.7)}}
@keyframes remote-death-raster{0%,20%{opacity:0;transform:scale(.55)}31%{opacity:.92;transform:scale(1.04)}42%{opacity:.76;transform:scale(.96)}100%{opacity:0;transform:scale(1.5)}}
@keyframes remote-death-lens{0%,22%{opacity:1;transform:scale(1);filter:brightness(1.6)}34%{opacity:1;transform:scale(1.12);filter:brightness(2)}45%{opacity:.8;transform:scale(.95);filter:brightness(.7)}60%,100%{opacity:0;transform:scale(.25);filter:brightness(.3)}}
@keyframes remote-death-scan{0%,20%{opacity:0;transform:scaleX(.08)}35%{opacity:1;transform:scaleX(1)}51%{opacity:.8;transform:scaleX(.12)}100%{opacity:0;transform:scaleX(.02)}}
@keyframes remote-death-label{0%,23%{opacity:0;transform:translate(-50%,-50%) scale(.55)}44%{opacity:1;transform:translate(-50%,-50%) scale(1.05)}78%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-55%) scale(.94)}}
@media(prefers-reduced-motion:reduce){.battle-fx.unit-death-remote{animation:none!important;opacity:.94!important;transform:translate(-50%,-50%)!important;scale:1!important}.battle-fx.unit-death-remote>img:first-child{animation:none!important;opacity:.94!important;transform:none!important;filter:drop-shadow(0 0 5px #c56bff) drop-shadow(0 0 10px #43eaff)!important}.battle-fx.unit-death-remote:before{animation:none!important;opacity:.72!important;transform:none!important;scale:1!important}.battle-fx.unit-death-remote>.remote-death-lens{animation:none!important;opacity:.32!important;transform:none!important;background:#20122b!important;box-shadow:0 0 4px #c56bff88!important}.battle-fx.unit-death-remote>.remote-death-scan{animation:none!important;opacity:.72!important;transform:none!important}.battle-fx.unit-death-remote>.remote-death-label{animation:none!important;opacity:1!important;transform:translate(-50%,-50%)!important}}

.battle-fx.unit-death-instruction{z-index:8;width:84px;height:76px;overflow:visible;animation:instruction-death-out .78s cubic-bezier(.16,.82,.22,1) both}
.battle-fx.unit-death-instruction>img:first-child{z-index:3;filter:drop-shadow(0 0 4px #ffe4a2) drop-shadow(0 0 9px #d598ff);transform-origin:50% 43%;animation:instruction-death-fold .78s cubic-bezier(.16,.82,.22,1) both}
.battle-fx.unit-death-instruction:before{inset:17% 16%;border:1px solid #ffedb9;border-radius:2px;background:linear-gradient(138deg,#fff2b92b 0 47%,#d598ff66 48% 50%,transparent 51%);box-shadow:0 0 7px #ffe7a777,0 0 12px #d598ff66;rotate:0deg;animation:instruction-death-crease .64s ease-out both}
.battle-fx.unit-death-instruction:after{content:none;display:none}
.battle-fx.unit-death-instruction>.instruction-death-page{position:absolute;z-index:5;width:21px;height:27px;border:1px solid #fff0c4;border-radius:1px;background:linear-gradient(0deg,transparent 0 24%,#563c47 25% 29%,transparent 30% 52%,#563c47 53% 57%,transparent 58% 78%,#563c47 79% 83%,transparent 84%),linear-gradient(135deg,#fff4c5,#dfbb73);box-shadow:0 0 6px #ffe7b7,0 0 10px #d598ff88;clip-path:polygon(0 0,100% 8%,86% 100%,11% 88%);opacity:0;pointer-events:none}
.battle-fx.unit-death-instruction>.instruction-death-page-a{left:15%;top:27%;transform:rotate(-16deg) scale(.3);transform-origin:100% 10%;animation:instruction-death-page-a .68s cubic-bezier(.15,.82,.22,1) .12s both}
.battle-fx.unit-death-instruction>.instruction-death-page-b{right:15%;top:33%;background:linear-gradient(0deg,transparent 0 31%,#523f57 32% 36%,transparent 37% 62%,#523f57 63% 67%,transparent 68% 78%),linear-gradient(135deg,#f8eccd,#d8c28d);transform:rotate(16deg) scale(.3);transform-origin:0 10%;animation:instruction-death-page-b .68s cubic-bezier(.15,.82,.22,1) .16s both}
.battle-fx.unit-death-instruction>.instruction-death-crease{position:absolute;z-index:6;left:50%;top:44%;width:42px;height:2px;background:linear-gradient(90deg,transparent,#fff5c6,#ff65bf,#80f7ff,transparent);box-shadow:0 0 6px #f5c9ff;transform:translate(-50%,-50%) scaleX(.05) rotate(-18deg);opacity:0;animation:instruction-death-crease-line .48s ease-out .18s both;pointer-events:none}
.battle-fx.unit-death-instruction>.instruction-death-stamp{position:absolute;z-index:8;left:50%;top:80%;width:max-content;padding:3px 5px;border:1px solid #ff8b9c;border-radius:2px;background:linear-gradient(110deg,#301421f5,#11101bf5);color:#fff0de;font:1000 7px/1 system-ui,sans-serif;letter-spacing:.08em;text-shadow:0 0 5px #ff7188;box-shadow:0 0 7px #ff597899;transform:translate(-50%,-50%) rotate(-8deg) scale(.45);opacity:0;animation:instruction-death-stamp .64s cubic-bezier(.15,.9,.22,1) .18s both;pointer-events:none;white-space:nowrap}
@keyframes instruction-death-out{0%{opacity:0;scale:.82}14%{opacity:1;scale:1.04}70%{opacity:.98;scale:1}100%{opacity:0;scale:1.08}}
@keyframes instruction-death-fold{0%,17%{opacity:1;transform:translateY(0) rotate(0) scale(1)}31%{transform:translateY(-2px) rotate(-2deg) scale(1.03)}47%{transform:translateY(1px) rotate(3deg) scale(.96,.92)}68%{opacity:.9;transform:translateY(4px) rotate(-6deg) scale(.83,.68)}100%{opacity:0;transform:translateY(8px) rotate(-11deg) scale(.65,.42)}}
@keyframes instruction-death-crease{0%,18%{opacity:0;transform:scale(.55) rotate(-8deg)}38%{opacity:.92;transform:scale(1.02) rotate(0)}64%{opacity:.68;transform:scale(.94) rotate(5deg)}100%{opacity:0;transform:scale(1.22) rotate(12deg)}}
@keyframes instruction-death-page-a{0%,18%{opacity:0;transform:translate(0,0) rotate(-16deg) scale(.3)}38%{opacity:1;transform:translate(-1px,-2px) rotate(-8deg) scale(1)}100%{opacity:0;transform:translate(-13px,-13px) rotate(-42deg) scale(.58)}}
@keyframes instruction-death-page-b{0%,18%{opacity:0;transform:translate(0,0) rotate(16deg) scale(.3)}40%{opacity:1;transform:translate(1px,-1px) rotate(8deg) scale(1)}100%{opacity:0;transform:translate(13px,-10px) rotate(39deg) scale(.62)}}
@keyframes instruction-death-crease-line{0%,22%{opacity:0;transform:translate(-50%,-50%) scaleX(.05) rotate(-18deg)}52%{opacity:1;transform:translate(-50%,-50%) scaleX(1) rotate(-18deg)}100%{opacity:0;transform:translate(-50%,-50%) scaleX(.3) rotate(-18deg)}}
@keyframes instruction-death-stamp{0%,20%{opacity:0;transform:translate(-50%,-50%) rotate(-8deg) scale(.45)}48%{opacity:1;transform:translate(-50%,-50%) rotate(-8deg) scale(1.08)}76%{opacity:1;transform:translate(-50%,-50%) rotate(-8deg) scale(1)}100%{opacity:0;transform:translate(-50%,-56%) rotate(-8deg) scale(.94)}}
@media(prefers-reduced-motion:reduce){.battle-fx.unit-death-instruction{animation:none!important;opacity:.96!important;transform:translate(-50%,-50%)!important;scale:1!important}.battle-fx.unit-death-instruction>img:first-child{animation:none!important;opacity:.94!important;transform:none!important}.battle-fx.unit-death-instruction:before{animation:none!important;opacity:.72!important;transform:none!important;scale:1!important}.battle-fx.unit-death-instruction>.instruction-death-page{animation:none!important;opacity:.82!important}.battle-fx.unit-death-instruction>.instruction-death-page-a{transform:translate(-6px,-3px) rotate(-12deg)!important}.battle-fx.unit-death-instruction>.instruction-death-page-b{transform:translate(6px,-2px) rotate(12deg)!important}.battle-fx.unit-death-instruction>.instruction-death-crease{animation:none!important;opacity:.75!important;transform:translate(-50%,-50%) rotate(-18deg)!important}.battle-fx.unit-death-instruction>.instruction-death-stamp{animation:none!important;opacity:1!important;transform:translate(-50%,-50%) rotate(-8deg)!important}}

/* Courier death: the scooter brakes on the route; the trail and status never imply a hit. */
.battle-fx.unit-death-courier{z-index:8;width:100px;height:88px;overflow:visible;filter:none;animation:courier-death-out .72s cubic-bezier(.16,.82,.22,1) both}
.battle-fx.unit-death-courier>img:first-child{z-index:3;filter:drop-shadow(0 0 5px #ffe15d) drop-shadow(0 0 10px #35dfff);transform-origin:48% 76%;animation:courier-death-stop .72s cubic-bezier(.18,.76,.22,1) both}
.battle-fx.unit-death-courier:before{z-index:1;inset:auto;left:50%;top:78%;width:76%;height:3px;border:0;border-radius:50%;background:linear-gradient(90deg,transparent,#40eaff 22%,#f4ffff 48%,#ffe15d 74%,transparent);box-shadow:0 0 5px #fff,0 0 11px #3feaff,0 0 14px #ffd84f99;rotate:-7deg;transform:translate(-50%,-50%) scaleX(.08);animation:courier-death-track .62s cubic-bezier(.14,.82,.2,1) .05s both;pointer-events:none}
.battle-fx.unit-death-courier:after{content:none;display:none}
.battle-fx.unit-death-courier>.courier-death-skid{position:absolute;z-index:4;height:2px;border:0;border-radius:3px;background:linear-gradient(90deg,transparent,#39dcff 26%,#fff 52%,#ffe15d 78%,transparent);box-shadow:0 0 4px #fff,0 0 8px #35e3ff;pointer-events:none}
.battle-fx.unit-death-courier>.courier-death-skid-a{left:-8%;top:75%;width:32px;transform:rotate(9deg) scaleX(.06);transform-origin:right center;animation:courier-death-skid-a .58s cubic-bezier(.15,.8,.22,1) .06s both}
.battle-fx.unit-death-courier>.courier-death-skid-b{left:-3%;top:81%;width:22px;height:1px;transform:rotate(-8deg) scaleX(.06);transform-origin:right center;animation:courier-death-skid-b .54s cubic-bezier(.15,.8,.22,1) .12s both}
.battle-fx.unit-death-courier>.courier-death-brake{position:absolute;z-index:5;left:10%;top:76%;width:5px;height:5px;border:1px solid #fff;border-radius:50%;background:#ffe15d;box-shadow:0 0 5px #fff,0 0 10px #ffe15d,0 0 13px #42eaff;opacity:0;transform:translate(-50%,-50%) scale(.2);animation:courier-death-brake .4s steps(3,end) .1s both;pointer-events:none}
.battle-fx.unit-death-courier>.courier-death-label{position:absolute;z-index:8;left:50%;top:89%;width:max-content;padding:3px 5px;border:1px solid #ffe15d;border-radius:3px;background:#11171cf2;color:#fff6d5;font:1000 7px/1 system-ui,sans-serif;letter-spacing:.08em;text-shadow:0 0 5px #ffd94e;box-shadow:0 0 6px #ffe15d88,0 0 9px #32dfff55;transform:translate(-50%,-50%) rotate(-4deg) scale(.52);opacity:0;animation:courier-death-label .64s cubic-bezier(.15,.9,.22,1) .1s both;pointer-events:none;white-space:nowrap}
@keyframes courier-death-out{0%{opacity:0;scale:.82}16%{opacity:1;scale:1.035}68%{opacity:.96;scale:1}100%{opacity:0;scale:1.07}}
@keyframes courier-death-stop{0%,14%{opacity:0;transform:translateY(-1px) rotate(0) scale(1)}20%{opacity:1}38%{transform:translateY(0) rotate(2deg) scale(1.02,.98)}57%{transform:translateY(3px) rotate(-6deg) scale(.97,.9)}78%{opacity:.88;transform:translateY(5px) rotate(-3deg) scale(.9,.82)}100%{opacity:0;transform:translateY(8px) rotate(-2deg) scale(.78,.7)}}
@keyframes courier-death-track{0%,22%{opacity:0;transform:translate(-50%,-50%) scaleX(.08)}48%{opacity:.92;transform:translate(-50%,-50%) scaleX(1)}76%{opacity:.7;transform:translate(-50%,-50%) scaleX(.84)}100%{opacity:0;transform:translate(-50%,-50%) scaleX(.56)}}
@keyframes courier-death-skid-a{0%,24%{opacity:0;transform:translate(0,0) rotate(9deg) scaleX(.06)}42%{opacity:.92}100%{opacity:0;transform:translate(-14px,-5px) rotate(9deg) scaleX(1)}}
@keyframes courier-death-skid-b{0%,28%{opacity:0;transform:translate(0,0) rotate(-8deg) scaleX(.06)}46%{opacity:.8}100%{opacity:0;transform:translate(-9px,-3px) rotate(-8deg) scaleX(.85)}}
@keyframes courier-death-brake{0%,28%{opacity:0;transform:translate(-50%,-50%) scale(.2)}46%{opacity:1;transform:translate(-50%,-50%) scale(1.2)}70%{opacity:.78}100%{opacity:0;transform:translate(-50%,-50%) translate(-5px,-4px) scale(.45)}}
@keyframes courier-death-label{0%,24%{opacity:0;transform:translate(-50%,-50%) rotate(-4deg) scale(.52)}49%{opacity:1;transform:translate(-50%,-50%) rotate(-4deg) scale(1.04)}76%{opacity:1;transform:translate(-50%,-50%) rotate(-4deg) scale(1)}100%{opacity:0;transform:translate(-50%,-56%) rotate(-4deg) scale(.96)}}
@media(prefers-reduced-motion:reduce){.battle-fx.unit-death-courier{animation:none!important;opacity:.96!important;transform:translate(-50%,-50%)!important;scale:1!important}.battle-fx.unit-death-courier>img:first-child{animation:none!important;opacity:.94!important;transform:none!important}.battle-fx.unit-death-courier:before{animation:none!important;opacity:.72!important;transform:translate(-50%,-50%) scaleX(1)!important}.battle-fx.unit-death-courier:after{animation:none!important;display:none!important}.battle-fx.unit-death-courier>.courier-death-skid{animation:none!important;opacity:.82!important}.battle-fx.unit-death-courier>.courier-death-skid-a{transform:translate(-7px,-2px) rotate(9deg)!important}.battle-fx.unit-death-courier>.courier-death-skid-b{transform:translate(-5px,-2px) rotate(-8deg)!important}.battle-fx.unit-death-courier>.courier-death-brake{animation:none!important;opacity:.9!important;transform:translate(-50%,-50%) scale(1)!important}.battle-fx.unit-death-courier>.courier-death-label{animation:none!important;opacity:1!important;transform:translate(-50%,-50%) rotate(-4deg)!important}}


/* Bags death: close the dispatch depot without suggesting a fresh spawn. */
.battle-fx.unit-death-bags{z-index:4;width:96px;height:88px;overflow:visible;filter:none;animation:bags-death-out .72s cubic-bezier(.16,.82,.22,1) both}
.battle-fx.unit-death-bags>img:first-child{z-index:3;filter:drop-shadow(0 0 4px #ffb3d2) drop-shadow(0 0 9px #ffd36b);transform-origin:50% 76%;animation:bags-death-fold .72s cubic-bezier(.18,.76,.22,1) both}
.battle-fx.unit-death-bags:before{z-index:1;inset:21% 16%;border:1px solid #ffd36b;border-radius:34% 48% 38% 52%;background:linear-gradient(135deg,#ff9dc21f,#ffd36b25 55%,transparent 72%);box-shadow:0 0 8px #ffd36b88,0 0 14px #ff6ea555;rotate:0deg;animation:bags-death-seal .62s ease-out both}
.battle-fx.unit-death-bags:after{content:none;display:none}
.battle-fx.unit-death-bags>.bags-death-tag{position:absolute;z-index:5;right:12%;top:39%;width:18px;height:13px;border:1px solid #ffe8a5;border-radius:2px;background:linear-gradient(135deg,#fff4c8,#e5b85d);box-shadow:0 0 5px #ffd36b;transform:rotate(9deg) scale(.35);opacity:0;animation:bags-death-tag .55s cubic-bezier(.15,.88,.22,1) .08s both;pointer-events:none}
.battle-fx.unit-death-bags>.bags-death-barcode{position:absolute;z-index:6;right:17%;top:43%;width:8px;height:4px;background:repeating-linear-gradient(90deg,#2d2430 0 1px,transparent 1px 2px);opacity:0;transform:rotate(9deg) scaleX(.2);animation:bags-death-barcode .42s steps(3,end) .16s both;pointer-events:none}
.battle-fx.unit-death-bags>.bags-death-led{position:absolute;z-index:7;right:10%;top:36%;width:4px;height:4px;border:1px solid #fff;border-radius:50%;background:#ff536b;box-shadow:0 0 4px #fff,0 0 8px #ff536b;opacity:0;transform:scale(.2);animation:bags-death-led .42s steps(3,end) .12s both;pointer-events:none}
.battle-fx.unit-death-bags>.bags-death-label{position:absolute;z-index:8;left:50%;top:88%;width:max-content;padding:3px 5px;border:1px solid #ffd36b;border-radius:3px;background:#17111af2;color:#fff2ce;font:1000 7px/1 system-ui,sans-serif;letter-spacing:.08em;text-shadow:0 0 5px #ffd36b;box-shadow:0 0 7px #ffd36b88,0 0 10px #ff6ea544;transform:translate(-50%,-50%) rotate(-4deg) scale(.5);opacity:0;animation:bags-death-label .64s cubic-bezier(.15,.9,.22,1) .1s both;pointer-events:none;white-space:nowrap}
@keyframes bags-death-out{0%{opacity:0;scale:.82}16%{opacity:1;scale:1.035}68%{opacity:.96;scale:1}100%{opacity:0;scale:1.07}}
@keyframes bags-death-fold{0%,14%{opacity:1;transform:translateY(0) rotate(0) scale(1)}34%{opacity:.92;transform:translateY(1px) rotate(2deg) scale(1.02,.97)}55%{opacity:.7;transform:translateY(3px) rotate(-4deg) scale(.9,.82)}78%{opacity:.42;transform:translateY(6px) rotate(-3deg) scale(.72,.64)}100%{opacity:0;transform:translateY(9px) rotate(-2deg) scale(.62,.5)}}
@keyframes bags-death-seal{0%,16%{opacity:0;transform:scale(.58) rotate(-7deg)}40%{opacity:.86;transform:scale(1.04) rotate(0)}68%{opacity:.64;transform:scale(.94) rotate(4deg)}100%{opacity:0;transform:scale(1.16) rotate(8deg)}}
@keyframes bags-death-tag{0%,18%{opacity:0;transform:translate(2px,2px) rotate(9deg) scale(.35)}48%{opacity:1;transform:translate(0,0) rotate(9deg) scale(1.08)}74%{opacity:1;transform:rotate(9deg) scale(1)}100%{opacity:0;transform:translate(1px,-3px) rotate(13deg) scale(.86)}}
@keyframes bags-death-barcode{0%,24%{opacity:0;transform:rotate(9deg) scaleX(.2)}52%{opacity:1;transform:rotate(9deg) scaleX(1)}100%{opacity:0;transform:rotate(9deg) scaleX(.45)}}
@keyframes bags-death-led{0%,18%{opacity:0;transform:scale(.2)}38%{opacity:1;transform:scale(1.2)}65%{opacity:.82}100%{opacity:0;transform:scale(.45)}}
@keyframes bags-death-label{0%,22%{opacity:0;transform:translate(-50%,-50%) rotate(-4deg) scale(.5)}48%{opacity:1;transform:translate(-50%,-50%) rotate(-4deg) scale(1.05)}76%{opacity:1;transform:translate(-50%,-50%) rotate(-4deg) scale(1)}100%{opacity:0;transform:translate(-50%,-56%) rotate(-4deg) scale(.94)}}
@media(prefers-reduced-motion:reduce){.battle-fx.unit-death-bags{animation:none!important;opacity:.96!important;transform:translate(-50%,-50%)!important;scale:1!important}.battle-fx.unit-death-bags>img:first-child{animation:none!important;opacity:.58!important;transform:translateY(5px) rotate(-3deg) scale(.82,.76)!important}.battle-fx.unit-death-bags:before{animation:none!important;opacity:.72!important;transform:none!important;scale:1!important}.battle-fx.unit-death-bags>.bags-death-tag{animation:none!important;opacity:1!important;transform:rotate(9deg)!important}.battle-fx.unit-death-bags>.bags-death-barcode{animation:none!important;opacity:1!important;transform:rotate(9deg)!important}.battle-fx.unit-death-bags>.bags-death-led{animation:none!important;opacity:1!important;transform:scale(1)!important}.battle-fx.unit-death-bags>.bags-death-label{animation:none!important;opacity:1!important;transform:translate(-50%,-50%) rotate(-4deg)!important}}

/* Sneaker death: the sole loses power; this is only a cosmetic death cue. */
.battle-fx.unit-death-sneaker{z-index:4;width:86px;height:82px;overflow:visible;filter:none;animation:sneaker-death-out .72s cubic-bezier(.16,.82,.22,1) both}
.battle-fx.unit-death-sneaker>img:first-child{z-index:3;filter:drop-shadow(0 0 5px #ffc15a) drop-shadow(0 0 10px #ff5ca855);transform-origin:51% 74%;animation:sneaker-death-settle .72s cubic-bezier(.18,.76,.22,1) both}
.battle-fx.unit-death-sneaker:before,.battle-fx.unit-death-sneaker:after{content:none;display:none}
.battle-fx.unit-death-sneaker>.sneaker-death-midsole{position:absolute;z-index:5;left:20%;top:79%;width:63%;height:4px;border:1px solid #fff6cf;border-radius:3px;background:linear-gradient(90deg,#fff8d4 0%,#ffc45d 24%,#ffab38 44%,#ff536c 70%,#4c3048 100%);box-shadow:0 0 4px #fff,0 0 8px #ffb84e,0 0 13px #ff5c78;transform:rotate(8deg) scaleX(.94);transform-origin:50% 50%;animation:sneaker-death-powerdown .62s cubic-bezier(.2,.75,.2,1) .06s both;pointer-events:none}
.battle-fx.unit-death-sneaker>.sneaker-death-led{position:absolute;z-index:6;left:75%;top:70%;width:5px;height:5px;border:1px solid #fff5c7;border-radius:50%;background:#ffc05a;box-shadow:0 0 4px #fff,0 0 9px #ffb642;transform:scale(1);animation:sneaker-death-led .42s steps(3,end) .12s both;pointer-events:none}
.battle-fx.unit-death-sneaker>.sneaker-death-label{position:absolute;z-index:8;left:50%;top:93%;width:max-content;padding:3px 5px;border:1px solid #ffc15c;border-radius:3px;background:#17121af2;color:#fff0cf;font:1000 7px/1 system-ui,sans-serif;letter-spacing:.06em;text-shadow:0 0 5px #ffc15c;box-shadow:0 0 7px #ffb64d88,0 0 10px #ff5c7844;transform:translate(-50%,-50%) rotate(-3deg) scale(.55);opacity:0;animation:sneaker-death-label .64s cubic-bezier(.15,.9,.22,1) .08s both;pointer-events:none;white-space:nowrap}
@keyframes sneaker-death-out{0%{opacity:0;scale:.9}14%{opacity:1;scale:1.02}72%{opacity:.96;scale:1}100%{opacity:0;scale:1.02}}
@keyframes sneaker-death-settle{0%,14%{opacity:1;transform:translateY(0) rotate(0) scale(1)}34%{transform:translateY(1px) rotate(-2deg) scale(1.02,.96)}56%{transform:translateY(4px) rotate(-4deg) scale(.94,.82)}76%{opacity:.76;transform:translateY(5px) rotate(-4deg) scale(.91,.78)}100%{opacity:.18;transform:translateY(6px) rotate(-4deg) scale(.88,.74)}}
@keyframes sneaker-death-powerdown{0%,18%{opacity:0;transform:rotate(8deg) scaleX(.12);filter:brightness(1.8)}38%{opacity:1;transform:rotate(8deg) scaleX(1);filter:brightness(1.4)}60%{opacity:.9;transform:rotate(8deg) scaleX(.72);filter:brightness(1)}100%{opacity:.24;transform:rotate(8deg) scaleX(.08);filter:brightness(.55)}}
@keyframes sneaker-death-led{0%,18%{opacity:0;transform:scale(.2)}42%{opacity:1;transform:scale(1.25)}68%{opacity:.85}100%{opacity:0;transform:scale(.35)}}
@keyframes sneaker-death-label{0%,20%{opacity:0;transform:translate(-50%,-50%) rotate(-3deg) scale(.55)}44%{opacity:1;transform:translate(-50%,-50%) rotate(-3deg) scale(1.04)}76%{opacity:1;transform:translate(-50%,-50%) rotate(-3deg) scale(1)}100%{opacity:0;transform:translate(-50%,-54%) rotate(-3deg) scale(.96)}}
@media(prefers-reduced-motion:reduce){.battle-fx.unit-death-sneaker{animation:none!important;opacity:.96!important;transform:translate(-50%,-50%)!important;scale:1!important}.battle-fx.unit-death-sneaker>img:first-child{animation:none!important;opacity:.68!important;transform:translateY(5px) rotate(-4deg) scale(.9,.8)!important}.battle-fx.unit-death-sneaker>.sneaker-death-midsole{animation:none!important;opacity:.3!important;transform:rotate(8deg) scaleX(.3)!important;filter:brightness(.6)!important}.battle-fx.unit-death-sneaker>.sneaker-death-led{animation:none!important;opacity:.28!important;transform:scale(.75)!important;background:#493e38;box-shadow:0 0 3px #ffc15c55}.battle-fx.unit-death-sneaker>.sneaker-death-label{animation:none!important;opacity:1!important;transform:translate(-50%,-50%) rotate(-3deg)!important}}

.battle-fx.unit-death-rolypoly-pending{z-index:4;width:84px;height:80px;overflow:visible;filter:none;animation:rolypoly-death-out .72s cubic-bezier(.16,.82,.22,1) both}
.battle-fx.unit-death-rolypoly-pending>img:first-child{z-index:3;filter:drop-shadow(0 0 5px #ffda77) drop-shadow(0 0 10px #ff9d3d);transform-origin:50% 78%;animation:rolypoly-death-tip .72s cubic-bezier(.18,.76,.22,1) both}
.battle-fx.unit-death-rolypoly-pending:before{z-index:1;inset:43% 20% 26%;border:1px dashed #ffe2a0;border-radius:50%;background:radial-gradient(ellipse,#ffbd6420 0%,transparent 68%);box-shadow:0 0 7px #ffda7755;animation:rolypoly-death-halo .68s ease-out both}
.battle-fx.unit-death-rolypoly-pending:after{content:none;display:none}
.battle-fx.unit-death-rolypoly-pending>.rolypoly-death-ground{position:absolute;z-index:2;left:50%;top:83%;width:38px;height:7px;border:1px solid #ffdc89;border-radius:50%;background:#ffb94a26;box-shadow:0 0 5px #ffcf6a,0 0 11px #f68b42;transform:translate(-50%,-50%) scaleX(.12);opacity:0;animation:rolypoly-death-ground .58s cubic-bezier(.16,.82,.22,1) .08s both;pointer-events:none}
.battle-fx.unit-death-rolypoly-pending>.rolypoly-death-led{position:absolute;z-index:5;left:61%;top:64%;width:5px;height:4px;border:1px solid #fff2a8;border-radius:1px;background:#ffdb68;box-shadow:0 0 4px #fff,0 0 8px #ffc44f;transform:scale(1);animation:rolypoly-death-led .42s steps(3,end) .1s both;pointer-events:none}
.battle-fx.unit-death-rolypoly-pending>.rolypoly-death-label{position:absolute;z-index:8;left:50%;top:88%;width:max-content;padding:3px 5px;border:1px solid #ffda77;border-radius:3px;background:#17131bf2;color:#fff3d0;font:1000 7px/1 system-ui,sans-serif;letter-spacing:.08em;text-shadow:0 0 5px #ffce5a;box-shadow:0 0 7px #ffcf6b88,0 0 10px #f68b4244;transform:translate(-50%,-50%) rotate(-4deg) scale(.55);opacity:0;animation:rolypoly-death-label .64s cubic-bezier(.15,.9,.22,1) .06s both;pointer-events:none;white-space:nowrap}
@keyframes rolypoly-death-out{0%{opacity:0;scale:.84}18%{opacity:1;scale:1.04}56%{opacity:1;scale:1}100%{opacity:0;scale:.98}}
@keyframes rolypoly-death-tip{0%,14%{opacity:1;transform:translateY(0) rotate(0) scale(1)}30%{transform:translateY(1px) rotate(-18deg) scale(1.02,.95)}48%{transform:translateY(7px) rotate(-76deg) scale(.96,.84)}62%{transform:translateY(4px) rotate(-58deg) scale(1,.9)}76%{transform:translateY(7px) rotate(-82deg) scale(.93,.82)}100%{opacity:.58;transform:translateY(7px) rotate(-82deg) scale(.88,.78)}}
@keyframes rolypoly-death-halo{0%{opacity:0;scale:.72}28%{opacity:.75}72%{opacity:.58;scale:.9}100%{opacity:.2;scale:.82}}
@keyframes rolypoly-death-ground{0%,16%{opacity:0;transform:translate(-50%,-50%) scaleX(.12)}46%{opacity:.9;transform:translate(-50%,-50%) scaleX(1.05)}100%{opacity:.24;transform:translate(-50%,-50%) scaleX(.74)}}
@keyframes rolypoly-death-led{0%,16%{opacity:0;transform:scale(.2)}38%{opacity:1;transform:scale(1.25)}62%{opacity:.78}100%{opacity:.18;transform:scale(.45);filter:brightness(.5)}}
@keyframes rolypoly-death-label{0%,20%{opacity:0;transform:translate(-50%,-50%) rotate(-4deg) scale(.55)}46%{opacity:1;transform:translate(-50%,-50%) rotate(-4deg) scale(1.04)}78%{opacity:1;transform:translate(-50%,-50%) rotate(-4deg) scale(1)}100%{opacity:0;transform:translate(-50%,-54%) rotate(-4deg) scale(.96)}}
@media(prefers-reduced-motion:reduce){.battle-fx.unit-death-rolypoly-pending{animation:none!important;opacity:.96!important;transform:translate(-50%,-50%)!important;scale:1!important}.battle-fx.unit-death-rolypoly-pending>img:first-child{animation:none!important;opacity:.88!important;transform:translateY(6px) rotate(-74deg) scale(.92,.82)!important}.battle-fx.unit-death-rolypoly-pending:before{animation:none!important;opacity:.64!important;transform:none!important;scale:.86!important}.battle-fx.unit-death-rolypoly-pending:after{animation:none!important;opacity:0!important}.battle-fx.unit-death-rolypoly-pending>.rolypoly-death-ground{animation:none!important;opacity:.74!important;transform:translate(-50%,-50%) scaleX(.78)!important}.battle-fx.unit-death-rolypoly-pending>.rolypoly-death-led{animation:none!important;opacity:.22!important;transform:scale(.65)!important;background:#584731;box-shadow:0 0 3px #ffcf6b66}.battle-fx.unit-death-rolypoly-pending>.rolypoly-death-label{animation:none!important;opacity:1!important;transform:translate(-50%,-50%) rotate(-4deg)!important}}

.pass-terms{grid-column:1/-1;margin:0;padding:9px 10px;border-left:2px solid #faff00;background:#111520;color:#c9cbd5;font-size:11px;line-height:1.45}

/* A selected card previews its real player-side spawn and forward attack lane. */
.battle-placement-preview{position:absolute;z-index:4;inset:0;overflow:hidden;pointer-events:none}
.placement-lane{position:absolute;inset:0}
.placement-spawn-line{position:absolute;z-index:1;height:1px;border-top:1px dashed #d9fbffb5;transform:translateY(-50%);filter:drop-shadow(0 0 3px #42ddff);opacity:.8}
.placement-range{position:absolute;z-index:1;width:5px;border-inline:1px solid #71e9ff80;background:linear-gradient(180deg,#58dfff40,#58dfff08);transform:translateX(-50%)}
.placement-range:after{position:absolute;content:"";top:-4px;left:50%;width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:6px solid #a6f6ff;transform:translateX(-50%);filter:drop-shadow(0 0 3px #42dfff)}
.placement-unit-ghost{position:absolute;z-index:2;width:clamp(24px,7.5vw,38px);height:clamp(24px,7.5vw,38px);background:var(--preview-sprite) center/contain no-repeat;opacity:.38;filter:drop-shadow(0 0 4px #62edff);transform:translate(-50%,-50%)}
.placement-unit-ghost.is-swarm{width:clamp(20px,6vw,31px);height:clamp(20px,6vw,31px);opacity:.45;filter:drop-shadow(0 0 3px #92f5ff)}
.placement-note{position:absolute;z-index:3;max-width:42%;padding:3px 5px;border:1px solid #79eaffa8;border-radius:4px;background:#07111de8;color:#e9fbff;font:900 7px/1.1 system-ui,sans-serif;letter-spacing:.035em;text-align:center;text-shadow:0 0 5px #38cfff;white-space:nowrap;transform:translate(-50%,-100%)}
.placement-right .placement-spawn-line{border-color:#ffb0ebc4;filter:drop-shadow(0 0 3px #ef55d9)}
.placement-right .placement-range{border-color:#f49de888;background:linear-gradient(180deg,#e54bcf35,#e54bcf08)}
.placement-right .placement-range:after{border-bottom-color:#ffb2ec;filter:drop-shadow(0 0 3px #ef55d9)}
.placement-right .placement-unit-ghost{filter:drop-shadow(0 0 4px #fa7cda)}
.placement-right .placement-note{border-color:#f09ae6a8;color:#fff0fc;text-shadow:0 0 5px #e650d3}

/* Tower shots use the server-selected target; these cues are presentation only. */
.battle-screen .tower.is-firing>img{animation:tower-fire-kick .24s ease-out both;filter:brightness(1.32) drop-shadow(0 0 7px #b9faff)}
.battle-screen .tower.is-firing:after{position:absolute;z-index:2;content:"";left:50%;top:17%;width:17px;height:17px;border-radius:50%;background:radial-gradient(circle,#fff 0 13%,#bafaff 25%,#3de8ff 47%,#1684ff77 63%,transparent 76%);filter:drop-shadow(0 0 5px #fff) drop-shadow(0 0 10px #3ddfff);transform:translate(-50%,-50%);animation:tower-muzzle-pulse .24s ease-out both;pointer-events:none}
.battle-screen .tower.enemy.is-firing:after{top:83%;background:radial-gradient(circle,#fff 0 13%,#ffd9ed 25%,#ff528e 47%,#ff174977 63%,transparent 76%);filter:drop-shadow(0 0 5px #fff) drop-shadow(0 0 10px #ff3e83)}
.battle-screen .tower.is-hit>img{animation:tower-hit-shudder .28s ease-out both;filter:brightness(1.5) drop-shadow(0 0 8px #fff1a4)}
.battle-screen .tower.is-hit:before{position:absolute;z-index:2;content:"";left:50%;top:50%;width:42%;aspect-ratio:1;border:2px solid #fff2ab;border-radius:50%;box-shadow:0 0 7px #fff,0 0 15px #ffb943;transform:translate(-50%,-50%) scale(.35);animation:tower-hit-ring .28s ease-out both;pointer-events:none}
@keyframes tower-fire-kick{0%{transform:scale(1);filter:brightness(1)}22%{transform:scale(.94);filter:brightness(1.8)}55%{transform:scale(1.045);filter:brightness(1.38)}100%{transform:scale(1);filter:brightness(1)}}
@keyframes tower-muzzle-pulse{0%{opacity:0;scale:.25}25%{opacity:1;scale:1.28}65%{opacity:.82;scale:.88}100%{opacity:0;scale:.38}}
@keyframes tower-hit-shudder{0%{transform:translateX(0);filter:brightness(1)}22%{transform:translateX(-3px);filter:brightness(1.7)}48%{transform:translateX(2px);filter:brightness(1.35)}74%{transform:translateX(-1px)}100%{transform:translateX(0);filter:brightness(1)}}
@keyframes tower-hit-ring{0%{opacity:0;transform:translate(-50%,-50%) scale(.35)}32%{opacity:1;transform:translate(-50%,-50%) scale(1.2)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.5)}}
.battle-projectile.projectile-tower-blue,.battle-projectile.projectile-tower-red{z-index:7}
.projectile-tower-blue .battle-projectile-body{width:11px;height:13px;border:1px solid #e7ffff;border-radius:3px;background:radial-gradient(circle at 32% 25%,#fff 0 13%,#bdffff 28%,#39cfff 57%,#2459ff 100%);box-shadow:0 0 6px #8ffaff,0 0 13px #268cff}
.projectile-tower-blue .battle-projectile-trail{height:4px;background:linear-gradient(90deg,#30bfff00,#30bfff 40%,#bbffff 80%,#fff 100%);filter:drop-shadow(0 0 5px #35cfff)}
.projectile-tower-red .battle-projectile-body{width:11px;height:13px;border:1px solid #fff0ed;border-radius:3px;background:radial-gradient(circle at 32% 25%,#fff 0 13%,#ffd0dd 28%,#ff537e 57%,#ca174b 100%);box-shadow:0 0 6px #ff91af,0 0 13px #f42669}
.projectile-tower-red .battle-projectile-trail{height:4px;background:linear-gradient(90deg,#fa316700,#fa3167 40%,#ffd0dd 80%,#fff 100%);filter:drop-shadow(0 0 5px #ff3a73)}
.projectile-tower-blue .battle-projectile-impact,.projectile-tower-red .battle-projectile-impact{width:clamp(34px,10vw,48px);filter:drop-shadow(0 0 8px #fff)}
.projectile-tower-blue .impact-ring{border-color:#9cfaff;box-shadow:0 0 7px #fff,0 0 14px #39cfff}
.projectile-tower-red .impact-ring{border-color:#ffc0d2;box-shadow:0 0 7px #fff,0 0 14px #ff3e79}
.projectile-tower-blue .impact-core{background:#e9ffff;box-shadow:0 0 7px #fff,0 0 14px #35cfff}
.projectile-tower-red .impact-core{background:#fff0f4;box-shadow:0 0 7px #fff,0 0 14px #ff3e79}
.battle-combo{z-index:9;display:grid;width:max-content;height:auto;max-width:min(78vw,235px);gap:2px;padding:5px 8px;border:1px solid #b5fbff;border-radius:5px;background:linear-gradient(105deg,#101322f2,#25122cf5);box-shadow:0 0 0 2px #0a0a12,0 0 9px #4deaff,0 0 18px #d52cf788;color:#f5fdff;text-align:center;filter:none;animation:battle-combo-arrive .7s cubic-bezier(.16,.82,.2,1) both}
.battle-combo:before,.battle-combo:after{position:absolute;content:"";height:1px;left:-5px;right:-5px;background:#64f3ff;box-shadow:0 0 6px #4deaff}
.battle-combo:before{top:-3px}.battle-combo:after{bottom:-3px;background:#ef54dc;box-shadow:0 0 6px #ef54dc}
.battle-combo .battle-combo-glitch{position:absolute;inset:0;background:repeating-linear-gradient(180deg,transparent 0 3px,#55e9ff14 3px 4px);pointer-events:none}
.battle-combo span,.battle-combo b{position:relative;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.battle-combo span{color:#91f7ff;font:900 7px/1.1 system-ui,sans-serif;letter-spacing:.09em}
.battle-combo b{color:#fff;font:1000 10px/1.1 system-ui,sans-serif;letter-spacing:.055em;text-shadow:0 0 6px #54e9ff}
.battle-combo-sticky-mix{border-color:#d8ff86;box-shadow:0 0 0 2px #0a0a12,0 0 9px #b9ff58,0 0 17px #ff9d4388}
.battle-combo-sticky-mix span{color:#e4ff9b}.battle-combo-sticky-mix b{text-shadow:0 0 6px #c2ff58}
@keyframes battle-combo-arrive{0%{opacity:0;scale:.78;filter:blur(2px)}22%{opacity:1;scale:1.06;filter:blur(0)}78%{opacity:1;scale:1}100%{opacity:0;scale:1.08}}
.battle-placement-preview{z-index:9}
.battle-combo{z-index:11}
.arena.placing .drop-zone{color:transparent;font-size:0;background:linear-gradient(0deg,#15bbff16,#15bbff05)!important;outline:1px dashed #a6f5ffb8;outline-offset:-6px}
.arena.placing .drop-zone.right{background:linear-gradient(0deg,#db32df17,#db32df05)!important;outline-color:#ffa8f0c2}
.arena.placing .drop-zone:after{position:absolute;left:50%;bottom:9px;transform:translateX(-50%);padding:3px 5px;border:1px solid #9af1ff;border-radius:4px;background:#07111de8;color:#e9fbff;font:900 8px/1 system-ui,sans-serif;letter-spacing:.05em;white-space:nowrap;content:'ЛЕВАЯ ЛИНИЯ';text-shadow:0 0 4px #38cfff}
.arena.placing .drop-zone.right:after{border-color:#f09ae6;color:#fff0fc;content:'ПРАВАЯ ЛИНИЯ';text-shadow:0 0 4px #e650d3}
@media(prefers-reduced-motion:reduce){.battle-screen .tower.is-firing>img,.battle-screen .tower.is-firing:after,.battle-screen .tower.is-hit>img,.battle-screen .tower.is-hit:before,.battle-combo{animation:none!important;transition:none!important}.battle-screen .tower.is-firing:after{opacity:.82;scale:.8}.battle-screen .tower.is-hit:before{opacity:.8;transform:translate(-50%,-50%) scale(1)}.battle-combo{opacity:.96;transform:translate(-50%,-50%);filter:none}.placement-unit-ghost{opacity:.28;filter:none}}


#battle-view .unit.unit-motion-walk>.unit-sprite{animation:paper-cutout-walk var(--walk-cycle,1s) cubic-bezier(.38,0,.62,1) var(--unit-phase,0s) infinite!important;opacity:1!important;transform-origin:50% 86%}
#battle-view .unit-ground-shadow{position:absolute;z-index:0;left:50%;bottom:1px;width:58%;height:8px;border-radius:50%;background:radial-gradient(ellipse at center,rgba(2,5,11,.78) 0,rgba(2,5,11,.42) 46%,transparent 78%);filter:blur(.8px);opacity:.56;transform:translateX(-50%);pointer-events:none}
#battle-view .unit-pvz>.unit-ground-shadow{width:78%;height:11px;opacity:.64}
#battle-view .unit>.unit-sprite{position:relative;z-index:2}
#battle-view .unit-motion-walk>.unit-ground-shadow{animation:paper-cutout-shadow var(--walk-cycle,1s) ease-in-out var(--unit-phase,0s) infinite}
#battle-view .unit.unit-ability-trap.unit-motion-walk>.unit-sprite,#battle-view .unit.unit-ability-wall.unit-motion-walk>.unit-sprite,#battle-view .unit.unit-ability-confuse.unit-motion-walk>.unit-sprite{animation:none!important}
@keyframes paper-cutout-walk{0%,100%{translate:0 .15px;rotate:-.45deg;scale:1 .995}25%{translate:.65px -1.05px;rotate:.58deg;scale:1.008 .992}50%{translate:0 .1px;rotate:.38deg;scale:.997 1.004}75%{translate:-.65px -1.05px;rotate:-.58deg;scale:1.008 .992}}
@keyframes paper-cutout-shadow{0%,100%{opacity:.58;transform:translateX(-50%) scaleX(1)}25%,75%{opacity:.43;transform:translateX(-50%) scaleX(.88)}50%{opacity:.62;transform:translateX(-50%) scaleX(1.08)}}
#battle-view .unit.unit-motion-walk .unit-walk-atlas{display:none!important;animation:none!important;opacity:0!important}
@media(prefers-reduced-motion:reduce){#battle-view .unit.unit-motion-walk>.unit-sprite{animation:none!important;translate:none;rotate:none;scale:none}#battle-view .unit-motion-walk>.unit-ground-shadow{animation:none!important}}

/* Per-hero cutout gaits: animate only the sprite layer, never the server-position wrapper. */
#battle-view .unit.unit-king.unit-motion-walk>.unit-sprite{animation:king-walk var(--walk-cycle,.9s) cubic-bezier(.38,0,.62,1) var(--unit-phase,0s) infinite!important;transform-origin:50% 84%}
#battle-view .unit.unit-banana.unit-motion-walk>.unit-sprite{animation:sock-walk var(--walk-cycle,.9s) ease-in-out var(--unit-phase,0s) infinite!important;transform-origin:50% 86%}
#battle-view .unit.unit-cat.unit-motion-walk>.unit-sprite{animation:tama-walk var(--walk-cycle,.9s) ease-in-out var(--unit-phase,0s) infinite!important;transform-origin:50% 84%}
#battle-view .unit.unit-bags.unit-motion-walk>.unit-sprite{animation:bag-walk var(--walk-cycle,.9s) ease-in-out var(--unit-phase,0s) infinite!important;transform-origin:50% 86%}
#battle-view .unit.unit-tape.unit-motion-walk>.unit-sprite{animation:tape-walk var(--walk-cycle,.9s) ease-in-out var(--unit-phase,0s) infinite!important;transform-origin:50% 84%}
#battle-view .unit.unit-bubble.unit-motion-walk>.unit-sprite{animation:bubble-walk var(--walk-cycle,.9s) ease-in-out var(--unit-phase,0s) infinite!important;transform-origin:50% 84%}
#battle-view .unit.unit-defective.unit-motion-walk>.unit-sprite{animation:defective-walk var(--walk-cycle,.9s) ease-in-out var(--unit-phase,0s) infinite!important;transform-origin:50% 84%}
#battle-view .unit.unit-galya.unit-motion-walk>.unit-sprite{animation:galya-walk var(--walk-cycle,1.2s) ease-in-out var(--unit-phase,0s) infinite!important;transform-origin:50% 85%}
#battle-view .unit.unit-courier.unit-motion-walk>.unit-sprite{animation:courier-walk var(--walk-cycle,.9s) ease-in-out var(--unit-phase,0s) infinite!important;transform-origin:50% 84%}
#battle-view .unit.unit-yogurt.unit-motion-walk>.unit-sprite{animation:yogurt-walk var(--walk-cycle,.9s) ease-in-out var(--unit-phase,0s) infinite!important;transform-origin:50% 84%}
#battle-view .unit.unit-earbud.unit-motion-walk>.unit-sprite{animation:earbud-walk var(--walk-cycle,.9s) ease-in-out var(--unit-phase,0s) infinite!important;transform-origin:50% 84%}
#battle-view .unit.unit-sneaker.unit-motion-walk>.unit-sprite{animation:sneaker-walk var(--walk-cycle,1s) ease-in-out var(--unit-phase,0s) infinite!important;transform-origin:50% 90%}
#battle-view .unit.unit-cables.unit-motion-walk>.unit-sprite{animation:cable-walk var(--walk-cycle,.9s) ease-in-out var(--unit-phase,0s) infinite!important;transform-origin:50% 84%}
#battle-view .unit.unit-remote.unit-motion-walk>.unit-sprite{animation:remote-walk var(--walk-cycle,.9s) ease-in-out var(--unit-phase,0s) infinite!important;transform-origin:50% 84%}
#battle-view .unit.unit-rolypoly.unit-motion-walk>.unit-sprite{animation:roly-walk var(--walk-cycle,1s) ease-in-out var(--unit-phase,0s) infinite!important;transform-origin:50% 88%}
#battle-view .unit.unit-rat.unit-motion-walk>.unit-sprite{animation:rat-walk var(--walk-cycle,.9s) ease-in-out var(--unit-phase,0s) infinite!important;transform-origin:50% 86%}
#battle-view .unit.unit-pvz.unit-motion-walk>.unit-sprite{animation:titan-depot-march var(--walk-half-cycle,.83s) ease-in-out var(--unit-phase,0s) infinite alternate!important;transform-origin:50% 94%}
#battle-view .unit.unit-pvz.unit-motion-walk>.unit-ground-shadow{animation:titan-walk-shadow var(--walk-cycle,1.66s) ease-in-out var(--unit-phase,0s) infinite}
#battle-view .unit.unit-sneaker.unit-motion-walk>.unit-ground-shadow{animation:sneaker-walk-shadow var(--walk-cycle,1s) ease-in-out var(--unit-phase,0s) infinite}
@keyframes king-walk{0%,100%{translate:0 .1px;rotate:-.3deg;scale:1 .998}25%{translate:0 -.6px;rotate:.12deg;scale:1.004 .998}50%{translate:0 .1px;rotate:.3deg;scale:.997 1.003}75%{translate:0 -.6px;rotate:-.12deg;scale:1.003 .999}}
@keyframes defective-walk{0%,100%{translate:0 .1px;rotate:-.28deg;scale:1 1}25%{translate:0 -.65px;rotate:.12deg;scale:1.003 .998}50%{translate:0 .1px;rotate:.28deg;scale:.998 1.002}75%{translate:0 -.65px;rotate:-.12deg;scale:1.003 .999}}
@keyframes sneaker-walk-shadow{0%,100%{opacity:.56;transform:translateX(-50%) scaleX(1)}25%,75%{opacity:.52;transform:translateX(-50%) scaleX(.97)}50%{opacity:.58;transform:translateX(-50%) scaleX(1.01)}}
@keyframes titan-walk-shadow{0%,100%{opacity:.64;transform:translateX(-50%) scaleX(1)}50%{opacity:.46;transform:translateX(-50%) scaleX(.84)}}
#battle-view .unit.unit-motion-walk.unit-ability-trap>.unit-sprite,#battle-view .unit.unit-motion-walk.unit-ability-wall>.unit-sprite,#battle-view .unit.unit-motion-walk.unit-ability-confuse>.unit-sprite{animation:none!important}
#battle-view .unit.unit-motion-walk.unit-ability-trap>.unit-ground-shadow,#battle-view .unit.unit-motion-walk.unit-ability-wall>.unit-ground-shadow,#battle-view .unit.unit-motion-walk.unit-ability-confuse>.unit-ground-shadow{animation:none!important}
@media(prefers-reduced-motion:reduce){#battle-view .unit.unit-motion-walk.unit-motion-walk>.unit-sprite{animation:none!important;translate:none!important;rotate:none!important;scale:none!important}#battle-view .unit.unit-motion-walk.unit-motion-walk>.unit-ground-shadow{animation:none!important}}
.battle-screen .arena-stage:before{content:"";position:absolute;z-index:1;inset:0;pointer-events:none;opacity:.2;mix-blend-mode:screen;background:radial-gradient(ellipse 18% 3% at 50% 48%,#ff40d744,transparent 75%),radial-gradient(ellipse 14% 4% at 50% 53%,#52eaff38,transparent 76%),radial-gradient(ellipse 9% 2% at 14% 28%,#faff002b,transparent 75%),radial-gradient(ellipse 9% 2% at 86% 67%,#ff3b682b,transparent 75%);animation:abandoned-pvz-neon 6.4s ease-in-out infinite;animation-delay:var(--arena-phase,0s)}
.battle-screen .arena-stage:after{content:"";position:absolute;z-index:2;left:50%;top:51%;width:clamp(13px,2.8vw,24px);height:clamp(11px,2.3vw,20px);pointer-events:none;opacity:.72;clip-path:polygon(50% 0,100% 23%,100% 76%,50% 100%,0 76%,0 23%);background:linear-gradient(90deg,#8c4829 0 47%,#d88b46 48% 100%);filter:drop-shadow(0 2px 2px #08050dcc) drop-shadow(0 0 5px #f5a74255);animation:lost-parcel-loop 10.8s cubic-bezier(.4,0,.3,1) infinite;animation-delay:var(--arena-phase,0s)}
@keyframes abandoned-pvz-neon{0%,100%{opacity:.14;filter:brightness(.85)}24%{opacity:.24;filter:brightness(1.06)}29%{opacity:.13;filter:brightness(.8)}38%{opacity:.22;filter:brightness(1.02)}72%{opacity:.17;filter:brightness(.92)}}
@keyframes lost-parcel-loop{0%,100%{transform:translate(calc(-50% - 6px),-50%) rotate(-3deg)}24%{transform:translate(-50%,-58%) rotate(2deg)}50%{transform:translate(calc(-50% + 6px),-50%) rotate(4deg)}76%{transform:translate(-50%,-45%) rotate(-2deg)}}
@media(prefers-reduced-motion:reduce){.battle-screen .arena-stage:before,.battle-screen .arena-stage:after{animation:none!important}.battle-screen .arena-stage:after{transform:translate(-50%,-50%) rotate(0);opacity:.54}}
.battle-screen .unit.unit-thermos_turret{width:60px;height:60px;z-index:5}
.battle-screen .unit.unit-thermos_turret .unit-sprite{filter:drop-shadow(0 0 4px #33ddff66)}
.battle-screen .unit.unit-ability-thermos_turret.unit-motion-idle .unit-sprite{animation:thermos-turret-idle 2.8s ease-in-out infinite}
.battle-screen .unit.unit-ability-thermos_turret.unit-motion-attack .unit-sprite{animation:thermos-turret-fire .36s cubic-bezier(.18,.85,.24,1) both}
.battle-screen .unit.unit-ability-bubble_shield.unit-motion-ability .unit-sprite{animation:bubble-shield-brace .48s cubic-bezier(.16,.9,.25,1) both}
.battle-screen .unit.unit-ability-cashier_refund.unit-motion-ability .unit-sprite{animation:cashier-scan .46s cubic-bezier(.2,.8,.25,1) both}
.battle-fx.fx-shield-grant{z-index:8;width:46px;height:48px;border:0;background:transparent;filter:drop-shadow(0 0 7px #4deaff);animation:shield-grant-rise .62s cubic-bezier(.16,.82,.24,1) both}
.battle-fx.fx-shield-grant:before{content:'';position:absolute;inset:7% 15% 9%;background:linear-gradient(145deg,#edffffe8 0 8%,#78f5ffb8 18%,#25cfff66 54%,#756bff66 100%);clip-path:polygon(50% 0,94% 16%,88% 59%,72% 82%,50% 100%,28% 82%,12% 59%,6% 16%);border:0;box-shadow:inset 0 0 8px #fff}
.battle-fx.fx-shield-grant:after{content:'';position:absolute;inset:4% 3%;border:1px solid #b6fbff;border-radius:48% 48% 44% 44%;transform:scale(.35);opacity:.8;animation:shield-grant-ring .56s ease-out both}
@keyframes thermos-turret-idle{0%,100%{transform:translateY(0) scale(1);filter:drop-shadow(0 0 3px #33ddff55)}50%{transform:translateY(-1px) scale(1.012);filter:drop-shadow(0 0 7px #33ddff99)}}
@keyframes thermos-turret-fire{0%,100%{transform:translateY(0) scale(1)}18%{transform:translateY(1px) scale(.975)}48%{transform:translateY(-1px) scale(1.025)}}
@keyframes bubble-shield-brace{0%,100%{transform:translateY(0) scale(1)}38%{transform:translateY(-3px) scale(1.07)}68%{transform:translateY(1px) scale(.98)}}
@keyframes cashier-scan{0%,100%{transform:translateY(0) rotate(0)}38%{transform:translateY(-2px) rotate(-4deg)}72%{transform:translateY(1px) rotate(2deg)}}
@keyframes shield-grant-rise{0%{opacity:0;transform:translate(-50%,-50%) scale(.46)}25%{opacity:1;transform:translate(-50%,-54%) scale(1.12)}100%{opacity:0;transform:translate(-50%,-72%) scale(.9)}}
@keyframes shield-grant-ring{0%{opacity:.8;transform:scale(.3)}100%{opacity:0;transform:scale(1.1)}}
@media(prefers-reduced-motion:reduce){.battle-screen .unit.unit-ability-thermos_turret.unit-motion-idle .unit-sprite,.battle-screen .unit.unit-ability-thermos_turret.unit-motion-attack .unit-sprite,.battle-screen .unit.unit-ability-bubble_shield.unit-motion-ability .unit-sprite,.battle-screen .unit.unit-ability-cashier_refund.unit-motion-ability .unit-sprite,.battle-fx.fx-shield-grant,.battle-fx.fx-shield-grant:after{animation:none!important;opacity:1!important;transform:none!important}.battle-fx.fx-shield-grant:after{opacity:.45}}
.battle-screen .unit.unit-pylesos_poteryashka{width:56px;height:58px;z-index:5}
.battle-screen .unit.unit-pylesos_poteryashka>.unit-sprite{filter:drop-shadow(0 0 4px #ffe34b88)}
.battle-screen .unit.unit-pylesos_poteryashka.unit-motion-walk>.unit-sprite{animation:vacuum-walk .72s ease-in-out infinite;transform-origin:50% 90%}
.battle-screen .unit.unit-ability-vacuum_pull.unit-motion-idle>.unit-sprite{animation:vacuum-idle 2.4s ease-in-out infinite;transform-origin:50% 88%}
.battle-screen .unit.unit-ability-vacuum_pull.unit-motion-ability>.unit-sprite{animation:vacuum-suck .52s cubic-bezier(.16,.8,.24,1) var(--ability-delay,0ms) both;transform-origin:50% 82%}
.battle-fx.fx-vacuum-pulse{z-index:7;width:54px;height:54px;border:2px solid #d6ff70;border-radius:50%;background:radial-gradient(circle,#efffae66 0 12%,#54f1ff30 30%,transparent 67%);box-shadow:0 0 7px #cfff69,0 0 18px #30eaffaa;animation:vacuum-pulse .52s cubic-bezier(.14,.76,.22,1) var(--fx-phase-delay,0ms) both}
.battle-fx.fx-vacuum-pulse:before,.battle-fx.fx-vacuum-pulse:after{content:'';position:absolute;inset:10%;border:1px solid #dfffff;border-radius:50%;box-shadow:0 0 8px #48edff}
.battle-fx.fx-vacuum-pulse:before{animation:vacuum-ring .48s ease-out var(--fx-phase-delay,0ms) both}
.battle-fx.fx-vacuum-pulse:after{inset:28%;border-color:#fbff9c;animation:vacuum-ring .34s ease-out var(--fx-phase-delay,0ms) both}
.battle-fx.fx-vacuum-link{z-index:6;width:var(--chain-length,24px);height:8px;border:0;border-radius:50%;background:linear-gradient(180deg,transparent 17%,#80fbff 34%,#fff 50%,#baff51 68%,transparent 84%);filter:drop-shadow(0 0 4px #fff) drop-shadow(0 0 9px #45eaff);rotate:var(--chain-angle,0deg);animation:vacuum-link .5s cubic-bezier(.16,.78,.2,1) var(--fx-phase-delay,0ms) both}
.battle-fx.fx-vacuum-link:before{content:'';position:absolute;inset:1px 0;background:linear-gradient(90deg,transparent,#efff9c,#fff,#59efff,transparent);clip-path:polygon(0 43%,12% 20%,24% 72%,38% 8%,50% 86%,64% 19%,78% 66%,89% 28%,100% 43%,100% 58%,89% 43%,78% 84%,64% 35%,50% 100%,38% 25%,24% 88%,12% 37%,0 58%)}
.battle-fx.fx-vacuum-pull{z-index:8;width:22px;height:22px;border:1px solid #dbff91;border-radius:50%;background:radial-gradient(circle,#fff 0 9%,#91ff8a 17%,#3eeaff 38%,#a75fff33 64%,transparent 73%);box-shadow:0 0 7px #fff,0 0 13px #41eaff;animation:vacuum-contact .36s cubic-bezier(.18,.8,.24,1) var(--fx-phase-delay,0ms) both}
.battle-fx.fx-vacuum-pull:after{content:'';position:absolute;inset:-7px;border:1px solid #c2ff85;border-radius:50%;animation:vacuum-ring .34s ease-out var(--fx-phase-delay,0ms) both}
.battle-fx.fx-vacuum-damage{z-index:9;padding:3px 6px;border:1px solid #9af6ff;border-radius:8px;background:#07171deb;color:#c8fdff;font:900 10px/1 JunkRoboto,Arial,sans-serif;white-space:nowrap;text-shadow:0 1px #000;box-shadow:0 0 8px #3deaff88;animation:vacuum-damage-float .52s ease-out var(--fx-phase-delay,0ms) both}
@keyframes vacuum-walk{0%,100%{transform:translateY(0) rotate(-.5deg)}50%{transform:translateY(-1.3px) rotate(.5deg)}}
@keyframes vacuum-idle{0%,100%{transform:translateY(0) scale(1);filter:drop-shadow(0 0 3px #ffe34b55)}50%{transform:translateY(-1px) scale(1.015);filter:drop-shadow(0 0 7px #78f4ff99)}}
@keyframes vacuum-suck{0%,100%{transform:translateY(0) scale(1)}32%{transform:translateY(-2px) scale(1.06,.96)}68%{transform:translateY(1px) scale(.98,1.03)}}
@keyframes vacuum-pulse{0%{opacity:0;transform:translate(-50%,-50%) scale(.35)}22%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(1.5)}}
@keyframes vacuum-ring{0%{opacity:.9;transform:scale(.25)}100%{opacity:0;transform:scale(1.22)}}
@keyframes vacuum-link{0%{opacity:0;scale:.08 1}20%{opacity:1}100%{opacity:0;scale:1 1}}
@keyframes vacuum-contact{0%{opacity:0;transform:translate(-50%,-50%) scale(.45)}40%{opacity:1;transform:translate(-50%,-50%) scale(1.25)}100%{opacity:0;transform:translate(-50%,-50%) scale(.8)}}
@keyframes vacuum-damage-float{0%{opacity:0;transform:translate(-50%,-50%) translateY(3px) scale(.88)}22%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) translateY(-12px) scale(1)}}
@media(prefers-reduced-motion:reduce){.battle-screen .unit.unit-pylesos_poteryashka.unit-motion-walk>.unit-sprite,.battle-screen .unit.unit-ability-vacuum_pull.unit-motion-idle>.unit-sprite,.battle-screen .unit.unit-ability-vacuum_pull.unit-motion-ability>.unit-sprite,.battle-fx.fx-vacuum-pulse,.battle-fx.fx-vacuum-pulse:before,.battle-fx.fx-vacuum-pulse:after,.battle-fx.fx-vacuum-link,.battle-fx.fx-vacuum-pull,.battle-fx.fx-vacuum-pull:after,.battle-fx.fx-vacuum-damage{animation:none!important}.battle-fx.fx-vacuum-pulse,.battle-fx.fx-vacuum-pull{opacity:.82!important;transform:translate(-50%,-50%) scale(1)!important}.battle-fx.fx-vacuum-pulse:before{opacity:.55;transform:scale(.85)}.battle-fx.fx-vacuum-pulse:after,.battle-fx.fx-vacuum-pull:after{opacity:.5;transform:scale(.85)}.battle-fx.fx-vacuum-link{opacity:.8!important;scale:1 1}.battle-fx.fx-vacuum-damage{opacity:1!important;transform:translate(-50%,-50%)!important}}
.battle-screen .unit.unit-magnitik_sborshchik{width:52px;height:58px;z-index:5}
.battle-screen .unit.unit-magnitik_sborshchik>.unit-sprite{filter:drop-shadow(0 0 4px #55eaff88)}
.battle-screen .unit.unit-ability-magnet_pull.unit-motion-idle>.unit-sprite{animation:magnet-idle 2.6s ease-in-out infinite;transform-origin:50% 88%}
.battle-screen .unit.unit-ability-magnet_pull.unit-motion-walk>.unit-sprite{animation:magnet-walk .62s ease-in-out infinite;transform-origin:50% 88%}
.battle-screen .unit.unit-ability-magnet_pull.unit-motion-ability>.unit-sprite{animation:magnet-charge .62s cubic-bezier(.16,.78,.22,1) var(--ability-delay,0ms) both;transform-origin:50% 82%}
.battle-fx.fx-magnet-pulse{z-index:7;width:56px;height:56px;border:2px solid #8cf9ff;border-radius:50%;background:radial-gradient(circle,#fff7 0 8%,#63edff55 24%,#ff547d28 47%,transparent 72%);box-shadow:0 0 8px #b6fbff,0 0 20px #40dcffb5;animation:magnet-pulse .62s cubic-bezier(.14,.78,.22,1) var(--fx-phase-delay,0ms) both}
.battle-fx.fx-magnet-pulse:before,.battle-fx.fx-magnet-pulse:after{content:'';position:absolute;inset:9%;border:1px solid #fa7b82;border-radius:50%;box-shadow:0 0 8px #ff718b}
.battle-fx.fx-magnet-pulse:before{animation:magnet-ring .58s ease-out var(--fx-phase-delay,0ms) both}
.battle-fx.fx-magnet-pulse:after{inset:29%;border-color:#a1ffff;box-shadow:0 0 8px #65efff;animation:magnet-ring .42s ease-out var(--fx-phase-delay,0ms) both}
.battle-fx.fx-magnet-link{z-index:6;width:var(--chain-length,24px);height:7px;border:0;border-radius:50%;background:linear-gradient(180deg,transparent 16%,#63eaff 32%,#fff 50%,#ff7884 69%,transparent 86%);filter:drop-shadow(0 0 4px #fff) drop-shadow(0 0 9px #4deaff);rotate:var(--chain-angle,0deg);animation:magnet-link .62s cubic-bezier(.15,.76,.24,1) var(--fx-phase-delay,0ms) both}
.battle-fx.fx-magnet-link:before{content:'';position:absolute;inset:1px 0;background:linear-gradient(90deg,transparent,#ffb25c,#fff,#76faff,transparent);clip-path:polygon(0 42%,17% 18%,31% 72%,46% 8%,60% 82%,76% 20%,91% 55%,100% 43%,100% 59%,91% 72%,76% 39%,60% 100%,46% 25%,31% 91%,17% 37%,0 58%)}
.battle-fx.fx-magnet-contact{z-index:8;width:24px;height:24px;border:1px solid #9efaff;border-radius:50%;background:radial-gradient(circle,#fff 0 9%,#91f9ff 18%,#53dfff55 42%,transparent 72%);box-shadow:0 0 8px #fff,0 0 14px #45dfff;animation:magnet-contact .42s cubic-bezier(.16,.82,.24,1) var(--fx-phase-delay,0ms) both}
.battle-fx.fx-magnet-contact:after{content:'';position:absolute;inset:-5px;border:1px dashed #ffd184;border-radius:50%;animation:magnet-ring .4s ease-out var(--fx-phase-delay,0ms) both}
@keyframes magnet-idle{0%,100%{transform:translateY(0) rotate(-.8deg);filter:drop-shadow(0 0 3px #4ceaff55)}50%{transform:translateY(-1.4px) rotate(.8deg);filter:drop-shadow(0 0 7px #64f2ffbb)}}
@keyframes magnet-walk{0%,100%{transform:translateY(0) rotate(-.7deg)}50%{transform:translateY(-1.2px) rotate(.7deg)}}
@keyframes magnet-charge{0%{transform:translateY(0) scale(1)}32%{transform:translateY(-2px) scale(1.04,.96);filter:drop-shadow(0 0 9px #ff6f8e)}72%{transform:translateY(1px) scale(.98,1.03);filter:drop-shadow(0 0 10px #52efff)}100%{transform:translateY(0) scale(1)}}
@keyframes magnet-pulse{0%{opacity:0;transform:translate(-50%,-50%) scale(.3)}22%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(1.45)}}
@keyframes magnet-ring{0%{opacity:.9;transform:scale(.25)}100%{opacity:0;transform:scale(1.2)}}
@keyframes magnet-link{0%{opacity:0;scale:.08 1}18%{opacity:1}100%{opacity:0;scale:1 1}}
@keyframes magnet-contact{0%{opacity:0;transform:translate(-50%,-50%) scale(.5)}42%{opacity:1;transform:translate(-50%,-50%) scale(1.2)}100%{opacity:0;transform:translate(-50%,-50%) scale(.82)}}
@media(prefers-reduced-motion:reduce){.battle-screen .unit.unit-ability-magnet_pull.unit-motion-idle>.unit-sprite,.battle-screen .unit.unit-ability-magnet_pull.unit-motion-walk>.unit-sprite,.battle-screen .unit.unit-ability-magnet_pull.unit-motion-ability>.unit-sprite,.battle-fx.fx-magnet-pulse,.battle-fx.fx-magnet-pulse:before,.battle-fx.fx-magnet-pulse:after,.battle-fx.fx-magnet-link,.battle-fx.fx-magnet-contact,.battle-fx.fx-magnet-contact:after{animation:none!important}.battle-fx.fx-magnet-pulse,.battle-fx.fx-magnet-contact{opacity:.82!important;transform:translate(-50%,-50%) scale(1)!important}.battle-fx.fx-magnet-pulse:before,.battle-fx.fx-magnet-pulse:after,.battle-fx.fx-magnet-contact:after{opacity:.52;transform:scale(.85)}.battle-fx.fx-magnet-link{opacity:.78!important;scale:1 1}}
.battle-screen .unit.unit-ability-surprise_box{width:50px;height:52px;z-index:5}
.battle-screen .unit.unit-ability-surprise_box>.unit-sprite{filter:drop-shadow(0 0 4px #ff7b3caa)}
.battle-screen .unit.unit-ability-surprise_box.unit-motion-idle>.unit-sprite{animation:surprise-box-idle 2.2s ease-in-out infinite;transform-origin:50% 92%}
.battle-screen .unit.unit-ability-surprise_box.unit-motion-ability>.unit-sprite{animation:surprise-box-arm .56s cubic-bezier(.16,.82,.24,1) both;transform-origin:50% 88%}
.battle-screen .unit.unit-ability-surprise_box.unit-surprise-box-arming:after,.battle-screen .unit.unit-ability-surprise_box.unit-surprise-box-armed:after{content:'';position:absolute;z-index:8;right:5px;top:4px;width:7px;height:7px;border:1px solid #fff7d1;border-radius:50%;pointer-events:none}
.battle-screen .unit.unit-ability-surprise_box.unit-surprise-box-arming:after{background:#ff692e;box-shadow:0 0 4px 2px #ff482e;animation:surprise-box-fuse-spark .22s steps(2,end) infinite}
.battle-screen .unit.unit-ability-surprise_box.unit-surprise-box-armed:after{background:#9dff55;box-shadow:0 0 5px 2px #71fa59,0 0 9px #41eaff}
.battle-fx.fx-surprise-box-arm{z-index:7;width:62px;height:40px;border:0;background:transparent;animation:surprise-box-arm-mark 1.2s ease-out var(--fx-phase-delay,0ms) both}
.battle-fx.fx-surprise-box-arm:before{content:'';position:absolute;inset:5px 11px;border:1px solid #ffe88e;border-radius:50%;box-shadow:0 0 8px #ff9a3e,0 0 15px #fb53f2;animation:surprise-box-arm-ring 1.2s ease-out var(--fx-phase-delay,0ms) both}
.battle-fx.fx-surprise-box-arm:after{content:'';position:absolute;left:50%;top:0;width:5px;height:5px;border-radius:50%;background:#fff4ad;box-shadow:0 0 9px 4px #ff9b38;transform:translate(-50%,-50%);animation:surprise-box-fuse-spark .22s steps(2,end) infinite}
.battle-fx.fx-surprise-box-arm b{position:absolute;left:50%;top:calc(100% + 2px);padding:2px 4px;border:1px solid #ffb34b;border-radius:5px;background:#21131ddd;color:#fff0c7;font:900 7px/1 system-ui,sans-serif;letter-spacing:.08em;text-shadow:0 0 4px #ff6b28;transform:translate(-50%,-50%)}
.battle-fx.fx-surprise-box-fizzle{z-index:7;width:20px;height:24px;border:0;background:transparent;animation:surprise-box-fizzle .48s ease-out var(--fx-phase-delay,0ms) both}
.battle-fx.fx-surprise-box-fizzle:before{content:'';position:absolute;inset:5px 3px 1px;border-radius:50% 50% 45% 45%;background:radial-gradient(ellipse at 50% 65%,#e9fdffbb 0 12%,#63e8ed77 38%,transparent 72%);filter:drop-shadow(0 0 5px #62f3ffaa)}
.battle-fx.fx-surprise-box-fizzle:after{content:'';position:absolute;left:50%;top:22%;width:4px;height:4px;border-radius:50%;background:#eaffb4;box-shadow:0 0 6px #7eeaff;animation:surprise-box-fuse-spark .26s steps(2,end) infinite}
.battle-fx.fx-surprise-box-burst{z-index:10;width:86px;height:76px;border:0;background:transparent;overflow:visible;filter:none;animation:surprise-box-burst-pop .86s cubic-bezier(.16,.8,.22,1) var(--fx-phase-delay,0ms) both}
.battle-fx.fx-surprise-box-burst:before{content:'';position:absolute;inset:8% 5%;border:0;border-radius:50%;background:radial-gradient(ellipse,#fff5b9 0 7%,#ffb04d 17%,#ff6535aa 38%,#de43ff4a 62%,transparent 75%);filter:drop-shadow(0 0 10px #ff7438);animation:surprise-box-blast-core .48s cubic-bezier(.16,.8,.22,1) var(--fx-phase-delay,0ms) both}
.battle-fx.fx-surprise-box-burst:after{content:'';position:absolute;inset:8% 3%;border:2px solid #fff4aa;border-radius:48% 52% 44% 56%;box-shadow:0 0 6px #ff9a3b,0 0 15px #ec4df6;transform:scale(.28) rotate(-8deg);animation:surprise-box-blast-ring .62s cubic-bezier(.16,.8,.22,1) var(--fx-phase-delay,0ms) both}
.battle-fx.fx-surprise-box-burst .surprise-box-burst-core{position:absolute;inset:21% 29%;border-radius:35%;background:radial-gradient(circle,#fff 0 12%,#fff193 22%,#ff7f38 58%,transparent 74%);filter:drop-shadow(0 0 8px #ff6834);animation:surprise-box-blast-core .43s cubic-bezier(.16,.8,.22,1) var(--fx-phase-delay,0ms) both}
.battle-fx.fx-surprise-box-burst .surprise-box-shard{position:absolute;width:10px;height:7px;border:1px solid #ffe09b;background:linear-gradient(135deg,#ecc07b,#86503d);box-shadow:0 0 4px #ff8f48;animation:surprise-box-cardboard .56s cubic-bezier(.18,.7,.24,1) var(--fx-phase-delay,0ms) both}
.battle-fx.fx-surprise-box-burst .surprise-box-shard-a{left:29%;top:36%;rotate:-27deg;--shard-x:-25px;--shard-y:-18px}
.battle-fx.fx-surprise-box-burst .surprise-box-shard-b{left:59%;top:32%;rotate:24deg;--shard-x:28px;--shard-y:-13px}
.battle-fx.fx-surprise-box-burst .surprise-box-shard-c{left:47%;top:58%;rotate:12deg;--shard-x:7px;--shard-y:26px}
.battle-fx.fx-surprise-box-hit{z-index:9;width:30px;height:28px;border:0;background:transparent;animation:surprise-box-hit .38s cubic-bezier(.16,.8,.24,1) var(--fx-phase-delay,0ms) both}
.battle-fx.fx-surprise-box-hit:before{content:'';position:absolute;inset:6px 5px;border:1px solid #fff0a0;border-radius:50%;box-shadow:0 0 7px #ff8140,0 0 12px #da51ff}
.battle-fx.fx-surprise-box-hit i{position:absolute;inset:10px 9px;border-radius:50%;background:radial-gradient(circle,#fff 0 12%,#ffb950 35%,transparent 72%)}
.battle-fx.fx-surprise-box-damage{z-index:11;width:max-content;height:auto;min-width:30px;padding:3px 5px;border:1px solid #ffc478;border-radius:8px;background:#21131ded;color:#fff1cf;font:900 8px/1.2 system-ui,sans-serif;letter-spacing:.02em;white-space:nowrap;text-shadow:0 1px 2px #100913;box-shadow:0 0 7px #ff823b99;transform:translate(-50%,-155%);animation:surprise-box-damage .52s ease-out var(--fx-phase-delay,0ms) both}
@keyframes surprise-box-idle{0%,100%{transform:translateY(0) rotate(-.35deg);filter:drop-shadow(0 0 3px #ff793f66)}50%{transform:translateY(-1px) rotate(.35deg);filter:drop-shadow(0 0 6px #ff994488)}}
@keyframes surprise-box-arm{0%,100%{transform:translateY(0) scale(1)}36%{transform:translateY(-2px) scale(1.055,.96)}70%{transform:translateY(1px) scale(.985,1.02)}}
@keyframes surprise-box-arm-mark{0%{opacity:0;transform:translate(-50%,-50%) scale(.55)}20%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(1.22)}}
@keyframes surprise-box-arm-ring{0%{opacity:.9;transform:scale(.35)}100%{opacity:0;transform:scale(1.2)}}
@keyframes surprise-box-fuse-spark{0%,100%{opacity:.55;scale:.8}50%{opacity:1;scale:1.2}}
@keyframes surprise-box-fizzle{0%{opacity:.9;transform:translate(-50%,-50%) scale(.8)}100%{opacity:0;transform:translate(-50%,-74%) scale(1.35)}}
@keyframes surprise-box-burst-pop{0%{opacity:0;scale:.58}14%{opacity:1;scale:1.06}48%{opacity:.96;scale:1}100%{opacity:0;scale:1.18}}
@keyframes surprise-box-blast-core{0%{opacity:0;transform:scale(.22)}22%{opacity:1}100%{opacity:0;transform:scale(1.22)}}
@keyframes surprise-box-blast-ring{0%{opacity:.9;transform:scale(.22) rotate(-8deg)}100%{opacity:0;transform:scale(1.18) rotate(18deg)}}
@keyframes surprise-box-cardboard{0%{opacity:0;transform:translate(0,0) rotate(0) scale(.45)}14%{opacity:1}100%{opacity:0;transform:translate(var(--shard-x),var(--shard-y)) rotate(155deg) scale(.78)}}
@keyframes surprise-box-hit{0%{opacity:0;transform:translate(-50%,-50%) scale(.45)}28%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(1.24)}}
@keyframes surprise-box-damage{0%{opacity:0;transform:translate(-50%,-50%) translateY(3px) scale(.9)}22%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) translateY(-10px) scale(1)}}
@media(prefers-reduced-motion:reduce){.battle-screen .unit.unit-ability-surprise_box.unit-motion-idle>.unit-sprite,.battle-screen .unit.unit-ability-surprise_box.unit-motion-ability>.unit-sprite,.battle-screen .unit.unit-ability-surprise_box.unit-surprise-box-arming:after,.battle-fx.fx-surprise-box-arm,.battle-fx.fx-surprise-box-arm:before,.battle-fx.fx-surprise-box-arm:after,.battle-fx.fx-surprise-box-fizzle,.battle-fx.fx-surprise-box-fizzle:after,.battle-fx.fx-surprise-box-burst:before,.battle-fx.fx-surprise-box-burst:after,.battle-fx.fx-surprise-box-burst .surprise-box-burst-core,.battle-fx.fx-surprise-box-burst .surprise-box-shard,.battle-fx.fx-surprise-box-hit,.battle-fx.fx-surprise-box-damage{animation:none!important}.battle-fx.fx-surprise-box-arm,.battle-fx.fx-surprise-box-fizzle,.battle-fx.fx-surprise-box-hit{opacity:.82;transform:translate(-50%,-50%) scale(1)}.battle-fx.fx-surprise-box-burst:before{opacity:.72;transform:scale(.8)}.battle-fx.fx-surprise-box-burst:after{opacity:.58;transform:scale(.8)}.battle-fx.fx-surprise-box-burst .surprise-box-burst-core{opacity:.7;transform:scale(.8)}.battle-fx.fx-surprise-box-burst .surprise-box-shard{opacity:.8}.battle-fx.fx-surprise-box-damage{opacity:1;transform:translate(-50%,-50%)}}
.battle-screen .unit.unit-skrepka_pauchok{width:48px;height:56px;z-index:5;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
.battle-screen .unit.unit-skrepka_pauchok>.unit-sprite{display:block;width:100%;height:100%;object-fit:contain;border-radius:0;transform-origin:50% 85%;filter:drop-shadow(0 0 3px #48eaff77)}
.battle-screen .unit.unit-skrepka_pauchok.unit-motion-idle>.unit-sprite{animation:paperclip-idle 2.8s ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-skrepka_pauchok.unit-motion-walk>.unit-sprite{animation:paperclip-walk var(--walk-cycle,.8s) steps(2,end) var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-skrepka_pauchok.unit-motion-ability>.unit-sprite{animation:paperclip-leap-body .62s cubic-bezier(.18,.76,.2,1) var(--ability-delay,0ms) both}
.battle-fx.fx-paperclip-leap{z-index:8;width:48px;height:34px;border:0;background:transparent;filter:none;animation:paperclip-trail .62s cubic-bezier(.18,.76,.2,1) var(--fx-phase-delay,0ms) both}
.battle-fx.fx-paperclip-leap:before,.battle-fx.fx-paperclip-leap:after{content:'';position:absolute;left:50%;width:31px;height:11px;border:2px solid #b7fbff;border-left-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-radius:50%;box-shadow:0 -2px 5px #4deaff99;transform:translateX(-50%) rotate(-9deg)}
.battle-fx.fx-paperclip-leap:before{top:7px}.battle-fx.fx-paperclip-leap:after{top:16px;width:22px;border-color:#ffce70 transparent transparent;opacity:.85}
.battle-fx.fx-paperclip-land{z-index:8;width:34px;height:19px;border:1px solid #97f5ff;border-radius:50%;background:radial-gradient(ellipse,#fff8c8 0 4%,#59ebff55 28%,transparent 68%);box-shadow:0 0 7px #4ceaff;animation:paperclip-land .42s cubic-bezier(.15,.82,.2,1) var(--fx-phase-delay,0ms) both}
.battle-fx.fx-paperclip-land:after{content:'';position:absolute;inset:-4px 3px;border:1px solid #ffcf71;border-radius:50%;animation:paperclip-ring .48s ease-out var(--fx-phase-delay,0ms) both}
.battle-fx.fx-paperclip-root{z-index:7;width:28px;height:12px;border:1px solid #91f5ff;border-radius:50%;background:#07232dbb;box-shadow:0 0 6px #45ddff99;animation:paperclip-root .42s ease-out var(--fx-phase-delay,0ms) both}
.battle-fx.fx-paperclip-root:before,.battle-fx.fx-paperclip-root:after{content:'';position:absolute;top:3px;width:7px;height:5px;border:1px solid #d3fbff;border-radius:45%;background:#3acfe888}
.battle-fx.fx-paperclip-root:before{left:2px;rotate:-24deg}.battle-fx.fx-paperclip-root:after{right:2px;rotate:24deg}
.battle-fx.fx-paperclip-hit{z-index:9;width:22px;height:22px;border:1px solid #fff1b5;border-radius:45%;background:radial-gradient(circle,#fff 0 8%,#9cf8ff 18%,#41ccef66 48%,transparent 72%);box-shadow:0 0 7px #7eefff;animation:paperclip-hit .34s cubic-bezier(.18,.8,.24,1) var(--fx-phase-delay,0ms) both}
.battle-fx.fx-paperclip-damage{z-index:10;width:max-content;height:auto;padding:3px 5px;border:1px solid #83eaff;border-radius:7px;background:#07151ded;color:#dcfbff;font:900 8px/1.1 system-ui,sans-serif;white-space:nowrap;text-shadow:0 1px 2px #080b12;box-shadow:0 0 7px #42dcff99;animation:paperclip-damage .42s ease-out var(--fx-phase-delay,0ms) both}
@keyframes paperclip-idle{0%,100%{transform:translateY(0) rotate(-.4deg);filter:drop-shadow(0 0 3px #48eaff66)}50%{transform:translateY(-1.2px) rotate(.45deg);filter:drop-shadow(0 0 6px #75f4ffbb)}}
@keyframes paperclip-walk{0%,100%{transform:translateY(0) rotate(-1.5deg)}50%{transform:translateY(-1px) rotate(1.5deg)}}
@keyframes paperclip-leap-body{0%{transform:translateY(0) rotate(0) scale(1)}25%{transform:translateY(-5px) rotate(-8deg) scale(.92,1.08)}62%{transform:translateY(-8px) rotate(7deg) scale(1.06,.94)}100%{transform:translateY(0) rotate(0) scale(1)}}
@keyframes paperclip-trail{0%{opacity:0;transform:translate(-50%,-50%) translateY(8px) scale(.45)}24%{opacity:.9}75%{opacity:.8}100%{opacity:0;transform:translate(-50%,-50%) translateY(-7px) scale(1.08)}}
@keyframes paperclip-land{0%{opacity:0;transform:translate(-50%,-50%) scale(.55)}35%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(1.18)}}
@keyframes paperclip-ring{0%{opacity:.8;transform:scale(.45)}100%{opacity:0;transform:scale(1.2)}}
@keyframes paperclip-root{0%{opacity:0;transform:translate(-50%,-50%) scale(.7)}24%{opacity:1}100%{opacity:.7;transform:translate(-50%,-50%) scale(1.08)}}
@keyframes paperclip-hit{0%{opacity:0;transform:translate(-50%,-50%) scale(.5)}35%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(1.2)}}
@keyframes paperclip-damage{0%{opacity:0;transform:translate(-50%,-50%) translateY(3px) scale(.9)}22%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) translateY(-10px) scale(1)}}
@media(prefers-reduced-motion:reduce){.battle-screen .unit.unit-skrepka_pauchok.unit-motion-idle>.unit-sprite,.battle-screen .unit.unit-skrepka_pauchok.unit-motion-walk>.unit-sprite,.battle-screen .unit.unit-skrepka_pauchok.unit-motion-ability>.unit-sprite,.battle-fx.fx-paperclip-leap,.battle-fx.fx-paperclip-land,.battle-fx.fx-paperclip-land:after,.battle-fx.fx-paperclip-root,.battle-fx.fx-paperclip-hit,.battle-fx.fx-paperclip-damage{animation:none!important}.battle-fx.fx-paperclip-leap,.battle-fx.fx-paperclip-land,.battle-fx.fx-paperclip-root,.battle-fx.fx-paperclip-hit{opacity:.82;transform:translate(-50%,-50%) scale(1)}.battle-fx.fx-paperclip-damage{opacity:1;transform:translate(-50%,-50%)}}

.unit.unit-tsennik_lipuchka{width:58px;height:58px;overflow:visible}
.unit-price-tag-badge{position:absolute;z-index:7;top:-5px;right:-4px;width:16px;height:15px;clip-path:polygon(0 0,82% 0,100% 50%,82% 100%,0 100%);background:linear-gradient(135deg,#efffff 0 16%,#50f3ff 18% 52%,#f8dc55 54% 100%);filter:drop-shadow(0 0 3px #fff) drop-shadow(0 0 7px #42eaff);transform:rotate(-8deg);animation:price-tag-badge-pulse 1.4s ease-in-out infinite alternate;pointer-events:none}
.unit-price-tag-badge:before{content:'';position:absolute;left:2px;top:5px;width:3px;height:3px;border-radius:50%;background:#fff;box-shadow:0 0 3px #fff}
.unit-price-tag-badge:after{content:'';position:absolute;left:7px;top:6px;width:5px;height:2px;border-radius:2px;background:#18222a;opacity:.85}
.battle-screen .unit.unit-price-tagged>.hpbar{border-color:#8df7ff;box-shadow:0 0 5px #43eaff,0 0 7px #ffd44a}
@keyframes price-tag-badge-pulse{from{filter:drop-shadow(0 0 2px #fff) drop-shadow(0 0 4px #42eaff);scale:.96}to{filter:drop-shadow(0 0 4px #fff) drop-shadow(0 0 8px #42eaff) drop-shadow(0 0 9px #ffd94f);scale:1.06}}
.projectile-tag .battle-projectile-trail{width:24px;height:5px;border-radius:99px;background:linear-gradient(90deg,#40f2ff00,#40f2ff99,#ffec70);filter:blur(1px);opacity:.9}
.projectile-tag .battle-projectile-body{width:19px;height:12px;border:1px solid #f5ffff;border-radius:2px 4px 2px 2px;background:linear-gradient(110deg,#a7ffff 0 20%,#37eaff 21% 56%,#ffe16b 57% 100%);clip-path:polygon(0 0,80% 0,100% 50%,80% 100%,0 100%);box-shadow:0 0 5px #fff,0 0 11px #38eaff,0 0 14px #ffd346}
.projectile-tag .battle-projectile-body:before{content:'';position:absolute;left:3px;top:4px;width:3px;height:3px;border-radius:50%;background:#fff;box-shadow:0 0 3px #fff}
.projectile-tag .battle-projectile-body:after{content:'';position:absolute;right:4px;top:5px;width:5px;height:2px;border-radius:2px;background:#10242b}
.projectile-tag .battle-projectile-impact.impact-tag .impact-ring{border-color:#ffe56a;box-shadow:0 0 8px #fff,0 0 15px #43efff,0 0 18px #ffd34c}
.projectile-tag .battle-projectile-impact.impact-tag .impact-core{background:#fff;box-shadow:0 0 8px #fff,0 0 12px #4cecff}
.battle-fx.fx-price-tag,.battle-fx.fx-impact-tag{z-index:8;width:23px;height:20px;border:1px solid #f4ffff;border-radius:3px 5px 3px 3px;background:linear-gradient(120deg,#d8ffff 0 12%,#55f2ff 14% 55%,#ffe16b 57% 100%);clip-path:polygon(0 0,82% 0,100% 50%,82% 100%,0 100%);filter:drop-shadow(0 0 4px #fff) drop-shadow(0 0 10px #36eaff) drop-shadow(0 0 12px #ffd34c);animation:price-tag-contact .46s cubic-bezier(.16,.82,.22,1) both;animation-delay:var(--fx-phase-delay,0ms);pointer-events:none}
.battle-fx.fx-price-tag:before{content:'';position:absolute;left:3px;top:8px;width:4px;height:4px;border-radius:50%;background:#fff;box-shadow:0 0 4px #fff,0 0 7px #43eaff}
.battle-fx.fx-price-tag:after{content:'';position:absolute;left:10px;top:8px;width:7px;height:3px;border-radius:2px;background:#17252b;box-shadow:0 0 2px #fff}
@keyframes price-tag-contact{0%{opacity:0;transform:translate(-50%,-50%) rotate(-24deg) scale(.35)}34%{opacity:1;transform:translate(-50%,-50%) rotate(7deg) scale(1.18)}62%{opacity:1;transform:translate(-50%,-50%) rotate(-7deg) scale(.96)}100%{opacity:.92;transform:translate(-50%,-50%) rotate(-4deg) scale(1)}}
@media(prefers-reduced-motion:reduce){.unit-price-tag-badge,.battle-fx.fx-price-tag{animation:none!important;opacity:.92!important}.battle-fx.fx-price-tag{transform:translate(-50%,-50%) rotate(-4deg) scale(1)!important}.projectile-tag .battle-projectile-trail{display:none!important}}
.battle-screen .unit.unit-tsennik_lipuchka.unit-motion-attack>.unit-sprite{animation:tsennik-lipuchka-flick .36s cubic-bezier(.18,.8,.22,1) both;transform-origin:74% 64%}
@keyframes tsennik-lipuchka-flick{0%{transform:translateY(0) rotate(0) scale(1)}28%{transform:translateY(2px) rotate(4deg) scale(.97,1.02)}54%{transform:translateY(-1px) rotate(-8deg) scale(1.06,.96)}78%{transform:translateY(0) rotate(2deg) scale(1.01,.99)}100%{transform:translateY(0) rotate(0) scale(1)}}
@media(prefers-reduced-motion:reduce){.battle-screen .unit.unit-tsennik_lipuchka.unit-motion-attack>.unit-sprite{animation:none!important}}
.battle-screen .unit.unit-cargo-cart{z-index:7;width:clamp(84px,22vw,102px);height:clamp(90px,24vw,112px)}
.battle-screen .unit.unit-on-cart{z-index:8;width:clamp(32px,9vw,42px);height:clamp(36px,10vw,46px);margin-top:-8px}
.battle-screen .unit.unit-cargo-cart>.unit-sprite{transform-origin:50% 82%;filter:drop-shadow(0 0 5px #43edff88) drop-shadow(0 4px 2px #0009)}
.battle-screen .unit.unit-cargo-cart.unit-motion-idle>.unit-sprite{animation:cargo-cart-idle 2.7s ease-in-out var(--unit-phase,0s) infinite}
.battle-screen .unit.unit-cargo-cart.unit-motion-walk>.unit-sprite{animation:cargo-cart-roll var(--walk-half-cycle,.5s) ease-in-out infinite alternate}
.battle-screen .unit.unit-cargo-cart.unit-motion-ability>.unit-sprite{animation:cargo-cart-load .52s cubic-bezier(.16,.84,.2,1) both}
.unit-cargo-badge{position:absolute;z-index:5;right:-13px;top:-12px;min-width:27px;padding:3px 4px;border:1px solid #8dffff;border-radius:999px;background:linear-gradient(140deg,#102433ed,#4d1c55ed);color:#eaffff;font:900 8px/1 system-ui,sans-serif;letter-spacing:.04em;text-align:center;box-shadow:0 0 7px #36eaffb8,0 0 11px #e438c570;pointer-events:none}
.battle-screen .unit.unit-on-cart>.unit-sprite{animation:unit-idle-bob 1.4s ease-in-out var(--unit-phase,0s) infinite}
.battle-fx.fx-cargo-pickup,.battle-fx.fx-cargo-unload{z-index:10;width:31px;height:28px;border:1px solid #91ffff;border-radius:8px;background:radial-gradient(ellipse,#fff 0 7%,#62faffb8 20%,#bd4cff55 52%,transparent 76%);filter:drop-shadow(0 0 7px #40eaff) drop-shadow(0 0 12px #d946f5);animation:cargo-load-pulse .52s cubic-bezier(.16,.84,.2,1) var(--fx-phase-delay,0ms) both}
.battle-fx.fx-cargo-pickup:after{content:'+';position:absolute;left:50%;top:48%;color:#fff;font:1000 19px/1 system-ui,sans-serif;text-shadow:0 0 5px #38edff,0 0 10px #ef50ff;transform:translate(-50%,-50%)}
.battle-fx.fx-cargo-unload{border-color:#ffdc78;background:radial-gradient(ellipse,#fff 0 7%,#ffe778b8 22%,#48eaff55 56%,transparent 76%);filter:drop-shadow(0 0 7px #ffe36a) drop-shadow(0 0 11px #38eaff)}
.battle-fx.fx-cargo-unload:after{content:'↓';position:absolute;left:50%;top:48%;color:#fff;font:1000 16px/1 system-ui,sans-serif;text-shadow:0 0 5px #ffe36a,0 0 9px #35eaff;transform:translate(-50%,-50%)}
@keyframes cargo-cart-idle{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-1px) rotate(.7deg)}}
@keyframes cargo-cart-roll{0%{transform:translateY(0) rotate(-1deg)}100%{transform:translateY(-2px) rotate(1deg)}}
@keyframes cargo-cart-load{0%{transform:translateY(0) scale(1)}35%{transform:translateY(3px) scale(1.05,.92)}70%{transform:translateY(-2px) scale(.98,1.03)}100%{transform:translateY(0) scale(1)}}
@keyframes cargo-load-pulse{0%{opacity:0;transform:translate(-50%,-50%) scale(.35)}35%{opacity:1;transform:translate(-50%,-50%) scale(1.16)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.45)}}
@media(prefers-reduced-motion:reduce){.battle-screen .unit.unit-cargo-cart>.unit-sprite,.battle-screen .unit.unit-on-cart>.unit-sprite,.battle-fx.fx-cargo-pickup,.battle-fx.fx-cargo-unload{animation:none!important}.battle-fx.fx-cargo-pickup,.battle-fx.fx-cargo-unload{opacity:.82;transform:translate(-50%,-50%) scale(1)}}

#app{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:manipulation}
#app input,#app textarea,#app select,#app [contenteditable="true"]{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
#app button{touch-action:manipulation}
.home-chest-info{position:absolute;top:3px;right:3px;z-index:2;width:24px;min-width:24px;height:24px;min-height:24px!important;display:flex!important;align-items:center;justify-content:center;padding:0!important;border:1px solid #faff00!important;border-radius:50%!important;background:#11131cee!important;color:#faff00!important;font-size:13px!important;font-weight:1000;line-height:1}
.arena-rank .eyebrow{display:block;margin-bottom:3px;font-size:9px;letter-spacing:1.4px}
.arena-rank strong{margin:0 0 2px}
.home-chest-shortcut{position:relative}
.battle-card-pick{display:block;width:100%;min-width:0;height:100%;margin:0;padding:0;border:0;background:none;color:inherit;text-align:inherit;touch-action:manipulation}
.battle-card-pick .card{height:112px;cursor:pointer}
.battle-card-pick[aria-disabled="true"]{cursor:not-allowed}
.battle-card-pick:focus-visible .card{outline:3px solid #fff76a;outline-offset:2px}
.battle-card-missing{display:grid;place-items:center;min-width:0;height:112px;padding:6px;border:1px solid #ff667e;border-radius:8px;background:#24121a;color:#ffdbe1;text-align:center;font-size:11px;font-weight:900}
.battle-name small{display:flex;align-items:center;gap:3px}
.battle-name small .tiny-icon{width:17px;height:17px;vertical-align:middle}
.shop-offer-pool{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;margin:-5px 0 9px}
.shop-offer-pool span{display:inline-flex;align-items:center;min-height:23px;padding:3px 7px;border:1px solid #5a5367;border-radius:5px;background:#11131c;color:#dcd8e5;font-size:10px;font-weight:900}
.shop-odds-row{display:grid;grid-template-columns:25px minmax(0,1fr) auto;align-items:center;gap:7px}
.odds-rarity{display:grid;place-items:center;width:23px;height:23px;border:1px solid currentColor;border-radius:6px;font-size:15px}
.odds-common{color:#d1d4df}.odds-rare{color:#64cfff}.odds-epic{color:#dc72ff}.odds-legendary{color:#ffbf54}.odds-titan{color:#ffff43}
.shop-odds-copy{display:grid;gap:1px;min-width:0}
.chest-info-visual{display:grid;justify-items:center;gap:8px}
.chest-info-art{width:110px;height:96px;object-fit:contain;filter:drop-shadow(0 0 12px #d620eb77)}
.chest-info-visual>p{margin:0 0 3px;font-weight:900}
.chest-info-reward{display:flex;align-items:center;gap:8px;width:min(100%,270px);padding:8px 10px;border:1px solid #555b70;border-radius:7px;background:#11141e;text-align:left}
.chest-info-reward .tiny-icon{width:27px;height:27px}

@media(min-width:768px){
  .topbar{padding-inline:max(28px,calc((100vw - 1680px)/2))}
  .screen{max-width:1680px;padding-inline:clamp(24px,3vw,56px)}
  .battle-screen .arena-stage{width:min(100%,calc((100dvh - 250px)*1.12),1080px);margin-inline:auto}
  .battle-screen .battle-hand,.battle-screen .battle-elixir{width:min(100%,980px)}
  #screen:has(>.junk-hero){grid-template-columns:minmax(0,1.2fr) minmax(360px,.8fr);gap:14px 22px}
  #screen:has(>.junk-hero)>.junk-hero,#screen:has(>.junk-hero)>.quip-panel{grid-column:1/-1}
  #screen:has(>.junk-hero)>.arena-rank{grid-column:1;grid-row:3;align-self:start}
  #screen:has(>.junk-hero)>.home-shortcuts{grid-column:2;grid-row:3;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  #screen:has(>.junk-hero)>.home-deck{grid-column:1;grid-row:4/6;margin:0}
  #screen:has(>.junk-hero)>.junk-event{grid-column:2;grid-row:4;margin:0}
  .junk-hero{height:clamp(400px,44dvh,520px)}
  .junk-hero .home-mascot{width:min(30vw,380px);height:300px;bottom:66px}
}
@media(prefers-reduced-motion:reduce){.battle-card-pick,.home-chest-info{transition:none!important}}
.battle-guide-active[data-guide-step="0"] .battle-hand>.battle-card-pick{position:relative;z-index:2;animation:battle-guide-card-pulse 1.35s ease-in-out infinite alternate}

/* Menu pass v231: keep the junkyard art in the section headers and let the content breathe. */
.app{background:radial-gradient(1100px 620px at 50% 0%,#171321 0,#0c0d14 55%,#08090e 100%)}
#screen{min-width:0}
#screen>.panel:not(.battle-feature):not(.arena-rank):not(.home-deck):not(.recycle-panel):not(.war-panel),#screen>.battle-modes>.panel,#screen .vip-offer{border:1px solid #414757;border-radius:12px;background:linear-gradient(145deg,#1a1e29,#0d1018 72%);box-shadow:inset 0 1px #ffffff16,0 5px 15px #0006}
#screen .section-heading{font-size:clamp(18px,2.2vw,22px);text-shadow:none;letter-spacing:.15px}
#screen .page-masthead,#screen>.social-masthead,#screen>.referral-masthead{min-height:154px;margin:0 -8px 12px;border-bottom:1px solid #414152;background-size:cover;background-position:center 52%}
#screen .page-masthead .masthead-logo{top:5px;height:136px;filter:drop-shadow(0 3px 5px #000c)}
#screen .battle-masthead{background-image:linear-gradient(180deg,#08071345,#08071318 48%,#0b0711c9),url('/assets/junkyard/battlefield-preview.webp?v=20261024-art-v229');background-position:center 53%}
#screen .deck-masthead{background-image:linear-gradient(180deg,#08071355,#08071322 48%,#0b0711c9),url('/assets/branding/home-scene-v2.webp?v=20261024-art-v229');background-position:center 54%}
#screen .shop-masthead{background-image:linear-gradient(180deg,#090a12d9,#0b0c14bf),url('/assets/junkyard/warehouse-bg.webp?v=20261024-art-v229');background-position:center 48%}
#screen>.profile-scene{height:190px;background-image:linear-gradient(180deg,#08061325,#08061310 55%,#080613d9),url('/assets/branding/profile-scene.webp?v=20261024-art-v229');background-size:cover;background-position:center 62%}
#screen>.profile-scene .profile-title-art{top:3px;left:clamp(8px,4vw,44px);width:min(72%,560px);height:100px}
#screen>.profile-hero{border:1px solid #414757;border-radius:12px;box-shadow:inset 0 1px #ffffff18,0 5px 15px #0006}
#screen>.profile-avatar-controls,#screen>.level-panel{border:1px solid #414757;border-radius:12px;background:linear-gradient(145deg,#191d27,#0d1018);box-shadow:inset 0 1px #ffffff14,0 5px 14px #0005}
#screen>.profile-stats>div{border-color:#343b4a;border-radius:10px;background:linear-gradient(145deg,#191d27,#0e1119)}
.profile-menu{display:grid;gap:10px;margin:12px 0}
.profile-menu-group{min-width:0;padding:10px;border:1px solid #343b4a;border-radius:12px;background:linear-gradient(145deg,#171b25,#0c0f16);box-shadow:0 5px 14px #0005}
.profile-menu-group>h2{margin:0 0 7px;color:#e8ebf3;font:700 14px JunkOswald,sans-serif;letter-spacing:.08em}
.profile-menu-group .profile-actions{margin:0;gap:6px}
.profile-menu-group .profile-actions button{min-width:0;min-height:58px;padding:7px;border:1px solid #434a5a;border-radius:9px;background:linear-gradient(145deg,#222734,#11141d);color:#f2f2f7;font-size:clamp(12px,3.4vw,15px);line-height:1.15;box-shadow:inset 0 1px #ffffff12,0 3px 8px #0004}
.profile-menu-group .profile-actions img{width:22px;height:22px;margin-right:3px;vertical-align:-6px}
.profile-menu-group .profile-actions small{color:#d7e342;font-size:11px}
.profile-menu-group:first-child .profile-actions button:last-child{grid-column:1/-1}
#screen .offers{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#screen .shop-offer{min-width:0;min-height:0;padding:9px;gap:6px;border-color:#414757;border-radius:12px;background:linear-gradient(145deg,#1a1e29,#0d1018);box-shadow:inset 0 1px #ffffff18,0 5px 13px #0005}
#screen .shop-offer .pic{height:clamp(96px,22vw,132px);margin:0}
#screen .shop-offer h3{min-height:0;font-size:clamp(13px,1.5vw,17px);line-height:1.1;text-align:left}
#screen .shop-offer p{font-size:clamp(11px,1.2vw,13px);line-height:1.3;text-align:left}
#screen .shop-offer small{font-size:10px;line-height:1.2;text-align:left}
#screen .shop-offer button{min-height:38px;padding:6px;font-size:clamp(11px,1.2vw,13px)}
#screen .collection{grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(7px,1.2vw,13px)}
#screen .collection-item{padding:5px;border:1px solid #3c4352;border-radius:10px;background:linear-gradient(145deg,#171b25,#0b0e15);box-shadow:0 4px 11px #0005}
#screen .collection-item .card-name{min-height:30px;font-size:clamp(11px,1.2vw,15px);line-height:1.1}
#screen .shop-categories{gap:6px;margin:12px 0 8px}
#screen .shop-categories button{min-height:42px;border-radius:9px;font-size:clamp(10px,1.2vw,13px)}
#screen .home-shortcuts{gap:8px}
#screen .home-shortcuts button{min-height:80px;padding:8px;border:1px solid #3d4555;border-radius:11px;background:linear-gradient(145deg,#1a1f2b,#0d1119);box-shadow:inset 0 1px #ffffff16,0 4px 10px #0005}
#screen .home-shortcuts img{width:34px;height:36px}
#screen .home-shortcuts strong{font-size:clamp(12px,1.2vw,15px);line-height:1.05}
#screen .home-shortcuts small{font-size:10px;line-height:1.15}
.bottom-nav{border-top:1px solid #3a4050;background:linear-gradient(180deg,#171b25f5,#090b11f8);backdrop-filter:blur(14px);box-shadow:0 -5px 20px #0008}
.bottom-nav button{border-right:0;color:#b7bac7}
.bottom-nav button.active{border-radius:9px;background:linear-gradient(180deg,#282a26,#17191a);color:#faff00;box-shadow:inset 0 2px #e8ef47,inset 0 0 0 1px #ffffff18;text-shadow:none}
.bottom-nav button.active img{filter:drop-shadow(0 0 5px #e8ef47aa) brightness(1.05)}
#game button:focus-visible{outline:2px solid #fff36d;outline-offset:2px}
@media(max-width:390px){#screen .shop-categories{grid-template-columns:repeat(2,minmax(0,1fr))}.battle-modes{grid-template-columns:1fr}.battle-modes>.panel{min-height:0}}
@media(min-width:640px){#screen .collection{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:700px){#screen .offers{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}}
@media(min-width:768px){#screen .page-masthead,#screen>.social-masthead,#screen>.referral-masthead{min-height:184px}#screen .page-masthead .masthead-logo{height:158px}#screen>.profile-scene{height:228px}#screen>.profile-scene .profile-title-art{height:118px}.profile-menu{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px}}
@media(min-width:960px){#screen .collection{grid-template-columns:repeat(5,minmax(0,1fr))}.vip-offers{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:1100px){#screen .offers{grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}}
@media(max-width:500px){.vip-offers{grid-template-columns:1fr}}
@media(min-width:501px) and (max-width:959px){.vip-offers{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
@media(min-width:1200px){.profile-menu{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:360px){#screen .page-masthead,#screen>.social-masthead,#screen>.referral-masthead{min-height:136px}#screen .page-masthead .masthead-logo{height:118px}#screen>.profile-scene{height:170px}#screen>.profile-scene .profile-title-art{height:91px}}
@media(max-height:700px) and (orientation:landscape){#screen .page-masthead,#screen>.social-masthead,#screen>.referral-masthead{min-height:120px}#screen .page-masthead .masthead-logo{height:108px}#screen>.profile-scene{height:150px}}
@media(prefers-reduced-motion:reduce){.bottom-nav button{transition:none!important}}
/* Keep long player and clan names inside narrow leaderboard rows. */
.leader-row>div,.clan-list-item>div{min-width:0}
.leader-row>div>strong,.rank-line>:nth-child(2),.clan-list-item>div>strong{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.clan-list-item>div{flex:1}
.war-leader>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.battle-screen .unit.unit-soft-collision>.unit-sprite{opacity:.88}
.battle-screen .unit.unit-ability-wall .receipt-lane-barrier{position:absolute;z-index:0;left:50%;top:49%;width:clamp(150px,44vw,396px);height:5px;transform:translate(-50%,-50%);border:1px solid #ffe5a2;border-radius:999px;background:repeating-linear-gradient(90deg,#ffdf78 0 10px,#4b2635 10px 18px);box-shadow:0 0 5px #ffcf66,0 0 12px #ff853f77;opacity:.82;pointer-events:none}
.battle-screen .unit.unit-ability-wall>.unit-sprite{position:relative;z-index:1}
.battle-screen.battle-crowd-mode .unit.unit-motion-idle>.unit-sprite{animation:none!important}
.battle-screen.battle-crowd-mode .unit.player,.battle-screen.battle-crowd-mode .unit.enemy{filter:drop-shadow(0 2px 1px #061326cc)}
.battle-screen.battle-crowd-mode .unit-ground-shadow{opacity:.58}
.battle-screen .drop-zone{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.battle-screen .arena.placing .drop-zone.is-pending{pointer-events:none;outline-style:solid;outline-color:#fff5ae;background:#fff0a833!important}
.battle-screen .arena.placing .drop-zone.is-pending:after{border-color:#fff5ae;background:#111019ed;color:#fff5ae;content:'ОТПРАВЛЯЕМ…'}

/* Shared menu hierarchy and low-cost navigation polish · v239 */
:root{--menu-ink:#f4f5fb;--menu-muted:#b8bdcd;--menu-surface:#141923;--menu-surface-deep:#0d1119;--menu-line:#3c4556;--menu-accent:#d8f34a;--menu-cyan:#62d9fa}
.topbar{background:linear-gradient(180deg,#151a25f5,#10131bdc);border-bottom:1px solid #ffffff20;backdrop-filter:none;-webkit-backdrop-filter:none}
.identity .avatar{border-color:#8addf1;background:#101b2a;box-shadow:0 2px 8px #0008}
.identity strong{letter-spacing:.01em}
.currency{min-height:38px;border-color:#394557;border-radius:10px;background:#111722;box-shadow:inset 0 1px #ffffff14}
.currency:active{transform:translateY(1px)}
#screen .page-masthead,#screen>.social-masthead,#screen>.referral-masthead,#screen>.profile-scene{overflow:hidden;border:1px solid #3b4353;border-radius:16px;background-color:#121722;box-shadow:inset 0 1px #ffffff19,0 6px 16px #0005}
#screen .page-masthead{margin:0 0 4px;border-bottom:1px solid #3b4353}
#screen>.profile-scene{margin:0 0 4px}
#screen>.panel:not(.battle-feature):not(.arena-rank):not(.home-deck):not(.recycle-panel):not(.war-panel),#screen>.battle-modes>.panel,#screen .profile-menu-group,#screen .shop-offer,#screen .vip-offer{border-color:var(--menu-line);border-radius:14px;background:linear-gradient(145deg,#191e29 0%,#10141d 76%);box-shadow:inset 0 1px #ffffff12,0 5px 14px #0004}
#screen .section-heading{min-height:30px;color:var(--menu-ink);letter-spacing:.025em}
#screen .eyebrow{color:#9dddf1;letter-spacing:.12em}
#screen .subtle,#screen .shop-offer p,#screen .shop-offer small{color:var(--menu-muted)}
#screen button[data-action],#screen button[data-tab]{min-height:42px;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
#screen .card-tap{min-height:0}
#screen .page-masthead .masthead-logo{filter:drop-shadow(0 3px 5px #000b)}
#screen .junk-hero{isolation:isolate}
#screen .junk-fight,#screen .big-btn,#screen .green-btn,#screen .yellow-btn{min-height:46px}
#screen .tab-pills button{min-height:42px;border-color:#485365;background:#171d28;color:#d7dbe5}
#screen .tab-pills button.active{border-color:#a5e8f4;background:linear-gradient(145deg,#204d65,#173447);color:#fff;box-shadow:inset 0 0 0 1px #9ce6f533}
#screen .deck-slot{border-color:#455267;background:linear-gradient(160deg,#232a37,#131923 75%);box-shadow:inset 0 1px #ffffff18,0 3px #080b11;color:var(--menu-ink)}
#screen .deck-slot.selected{border-color:#76ddef;background:linear-gradient(160deg,#19566c,#142b3b 75%);box-shadow:inset 0 1px #ffffff2a,0 0 0 2px #20c6e733}
#screen .collection-item{background:linear-gradient(145deg,#191e29,#0d1118);border-color:#3b4352}
.bottom-nav{background:linear-gradient(180deg,#151a24f5,#090b11f8);border-top:1px solid #3b4352;box-shadow:0 -5px 18px #0007;backdrop-filter:none;-webkit-backdrop-filter:none}
.bottom-nav button{min-height:66px;gap:2px;color:#c5c8d3;text-shadow:none;transition:background-color .14s ease,color .14s ease,transform .12s ease}
.bottom-nav button img{width:24px;height:24px;object-fit:contain;opacity:.78}
.bottom-nav button small{font-size:11px;letter-spacing:.01em}
.bottom-nav button[aria-current="page"]{border-radius:10px 10px 0 0;background:linear-gradient(180deg,#292d31,#191d22);color:var(--menu-accent);box-shadow:inset 0 2px var(--menu-accent),inset 0 0 0 1px #ffffff14}
.bottom-nav button[aria-current="page"] img{opacity:1;filter:drop-shadow(0 0 4px #d8f34a77)}
.bottom-nav button:active{transform:scale(.97)}
.screen.screen-enter{animation:screen-enter .18s cubic-bezier(.2,.7,.3,1) both}
@media(max-width:390px){
  .topbar{height:68px;min-height:68px;gap:3px;padding:5px 7px}
  .identity{gap:5px}
  .identity .avatar{width:38px;height:38px;border-width:2px;border-radius:10px}
  .identity strong{max-width:76px;font-size:13px}
  .identity small{font-size:11px}
  .wallet{flex-wrap:nowrap;gap:2px}
  .currency{min-height:34px;gap:2px;padding:3px 4px;border-radius:8px;font-size:10px}
  .currency .tiny-icon{width:14px;height:14px}
  .currency span{display:none}
  .settings-btn{width:31px;height:34px;flex:none}
  .bottom-nav button{min-height:62px}
}
@media(prefers-reduced-motion:reduce){.screen.screen-enter{animation:none!important}.bottom-nav button,.currency{transition:none!important}}
#screen .p2p-mode{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:10px 0;padding:15px;border:1px solid #76568a;background:radial-gradient(ellipse at 92% 20%,#50256755,transparent 45%),linear-gradient(135deg,#171522,#10131c 72%)}#screen .p2p-mode-copy{max-width:68%}#screen .p2p-mode h2{margin:4px 0;color:#fff;font-size:22px;line-height:.95;text-shadow:2px 2px #000}#screen .p2p-mode p{margin:6px 0 0;color:#c8c6d5;font:700 11px/1.45 system-ui,sans-serif}#screen .p2p-mode .small-btn{flex:none;min-width:124px;border-color:#b45de1;color:#fff;background:linear-gradient(135deg,#7d32a6,#4b2b71)}.direct-consent{font:600 13px/1.5 system-ui,sans-serif;color:#dedce8}.direct-consent p{margin:0 0 12px}.direct-consent b{color:#fff}#battle-view .p2p-ping{display:inline-block;margin-left:4px;color:#83efb3;font-size:10px;white-space:nowrap}#battle-view .p2p-ping[data-status="connecting"],#battle-view .p2p-ping[data-status="reconnecting"]{color:#ffd56b}#battle-view .p2p-ping[data-status="failed"]{color:#ff777e}#modal .p2p-status-copy{color:#83efb3}@media(max-width:390px){#screen .p2p-mode{align-items:stretch;flex-direction:column}#screen .p2p-mode-copy{max-width:none}#screen .p2p-mode .small-btn{width:100%}}

/* Trim continuous GPU work on low-end Mini App devices, while keeping movement and hit feedback. */
html[data-performance-tier=low] .battle-screen .unit:not(.unit-king).unit-motion-idle>.unit-sprite{animation:none!important}
html[data-performance-tier=low] .battle-screen .unit.player,html[data-performance-tier=low] .battle-screen .unit.enemy{filter:none!important}
html[data-performance-tier=low] .battle-screen .unit-sprite{filter:none!important}
html[data-performance-tier=low] .junk-event:after{display:none}
html[data-performance-tier=low] .app{box-shadow:none}
.account-delete-link{display:block;margin:7px 0;padding:9px;border:1px solid #505366;border-radius:6px;color:#c9c7d4;text-align:center;text-decoration:none;font:800 12px/1.3 system-ui,sans-serif}
.account-delete-button{border-color:#8c3449;background:linear-gradient(#45202b,#24151d);color:#ffb0b8;font-size:16px}
.delete-account-confirm-label{display:grid;gap:7px;margin:14px 0;color:#eceaf3;font:800 12px system-ui,sans-serif}
.delete-account-confirm-label input{width:100%;min-height:46px;padding:10px 12px;border:2px solid #a74760;border-radius:7px;background:#0d0e15;color:#fff;font:900 18px system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase}
.delete-account-confirm-label input:focus{outline:3px solid #faff00;outline-offset:2px}

/* Main menu art refresh v254: five light WebP illustrations, one visual language. */
#screen .junk-hero::before{
  background-image:linear-gradient(180deg,#08091242 0%,#08091218 42%,#05060cd9 100%),url('/assets/branding/menu-v254/home.webp?v=254');
  background-position:center 52%;
  background-size:cover;
  animation-duration:18s;
}
#screen .junk-hero .home-mascot{display:none}
#screen .page-masthead{background-repeat:no-repeat;background-size:cover}
#screen .battle-masthead{
  background-image:linear-gradient(180deg,#08091224 0%,#08091216 48%,#05060cc9 100%),url('/assets/branding/menu-v254/battle.webp?v=254');
  background-position:center 52%;
}
#screen .deck-masthead{
  background-image:linear-gradient(180deg,#08091230 0%,#08091212 47%,#05060cc9 100%),url('/assets/branding/menu-v254/deck.webp?v=254');
  background-position:center 53%;
}
#screen .shop-masthead{
  background-image:linear-gradient(180deg,#08091224 0%,#08091212 48%,#05060cc9 100%),url('/assets/branding/menu-v254/shop.webp?v=254');
  background-position:center 52%;
}
#screen .profile-scene{
  background-image:linear-gradient(180deg,#08091224 0%,#08091210 48%,#05060cc9 100%),url('/assets/branding/menu-v254/profile.webp?v=254');
  background-position:center 54%;
  background-size:cover;
}
#screen .profile-scene .profile-title-art{left:clamp(10px,3vw,36px);top:5px;width:min(58%,500px);height:92px}
#screen .profile-hero{background:linear-gradient(135deg,#1a1e29,#0d111a 72%)}
@media(max-width:500px){
  #screen .junk-hero::before{background-position:95% 50%}
  #screen .page-masthead{background-position:center 50%}
  #screen .profile-scene{background-position:center 52%}
  #screen .profile-scene .profile-title-art{width:60%;height:82px}
}
@media(prefers-reduced-motion:reduce){#screen .junk-hero::before{animation:none;transform:none;will-change:auto}}

/* Menu composition pass v255: tighter first screen, shared spacing, fuller art. */
#screen .junk-hero{
  height:clamp(300px,40svh,370px);
  border:1px solid #3b4353;
  border-radius:16px;
  box-shadow:inset 0 1px #ffffff18,0 7px 18px #0006;
}
#screen .junk-hero::before{background-position:center 52%;background-size:cover}
#screen .junk-hero .art-button{bottom:7px;height:clamp(58px,8vw,74px)}
#screen .arena-rank,#screen .home-deck{border-radius:14px}
#screen .arena-rank{padding:11px 13px}
#screen .home-shortcuts{gap:8px;margin:0}
#screen .home-shortcuts button{min-height:76px;padding:8px;border-radius:12px}
#screen .home-deck{margin:0;padding:12px}
#screen .junk-event{margin:0;border-radius:14px}
#screen .page-masthead,#screen>.social-masthead,#screen>.referral-masthead{
  min-height:148px;
  margin:0 0 2px;
  border-radius:16px;
}
#screen .page-masthead .masthead-logo{height:132px}
#screen>.profile-scene{height:184px;margin:0 0 2px;border-radius:16px}
#screen>.profile-hero{margin:0}
#screen .battle-feature{min-height:225px;border-radius:15px}
#screen .battle-feature>img{width:47%;height:152px;right:-5px}
#screen .battle-modes{gap:10px}
#screen .battle-modes>.panel{min-height:154px;padding:12px;border-radius:14px}
#screen .rank-my{
  border:1px solid #586174;
  border-radius:14px;
  background-image:linear-gradient(90deg,#0b1019f2 0%,#0d1119dd 54%,#0c0f18a8 100%),url('/assets/branding/menu-v254/battle.webp?v=254');
  background-size:cover;
  background-position:center 42%;
}
#screen .social-masthead{
  background-image:linear-gradient(180deg,#08091224 0%,#08091214 48%,#05060cc9 100%),url('/assets/branding/menu-v254/home.webp?v=254');
  background-position:center 53%;
}
#screen .referral-masthead{
  background-image:linear-gradient(180deg,#08091224 0%,#08091214 48%,#05060cc9 100%),url('/assets/branding/menu-v254/shop.webp?v=254');
  background-position:center 52%;
}
#screen[data-active-screen="battlePass"] .pass-hero{
  background-image:linear-gradient(90deg,#080912e8 0%,#080912b5 42%,#08091236 100%),url('/assets/branding/menu-v254/battle.webp?v=254');
  background-position:center 51%;
}
#screen[data-active-screen="clan"] .clan-header{
  border-radius:15px;
  background-image:linear-gradient(90deg,#10131de8,#171421a8),url('/assets/branding/menu-v254/battle.webp?v=254');
  background-position:center 53%;
}
#screen[data-active-screen="vip"] .vip-hero{
  min-height:178px;
  border:1px solid #6b5a3c;
  border-radius:15px;
  background-image:linear-gradient(90deg,#0b1019ed 0%,#10121bcf 46%,#14101bad 100%),url('/assets/branding/menu-v254/shop.webp?v=254');
  background-position:center 52%;
  box-shadow:inset 0 1px #ffffff1a,0 6px 16px #0005;
}
#screen .pass-hero{min-height:188px;border-width:1px;border-radius:15px}
#screen .pass-summary,#screen .pass-tier{border-radius:12px}
#screen .profile-menu-group{padding:12px}
#screen .profile-menu-group .profile-actions{gap:8px}
#screen .profile-menu-group .profile-actions button{min-height:62px}
#screen .shop-categories{margin:2px 0 0}
#screen .offer-banner{border-radius:14px}
#screen .telegram-stars,#screen .shop-subscriptions,#screen .shop-note{border-radius:14px}

@media(max-width:520px){
  #screen{padding-inline:9px;padding-bottom:18px}
  #screen .junk-hero{height:clamp(286px,38svh,322px)}
  #screen .junk-hero::before{background-position:95% 50%}
  #screen .junk-hero .art-button{left:7%;width:86%;height:60px}
  #screen .home-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}
  #screen .home-shortcuts button{min-height:70px;grid-template-columns:34px minmax(0,1fr);gap:0 6px}
  #screen .home-shortcuts img{width:31px;height:34px}
  #screen .home-shortcuts strong{font-size:clamp(11px,3vw,13px)}
  #screen .home-shortcuts small{font-size:10px}
  #screen .page-masthead,#screen>.social-masthead,#screen>.referral-masthead{min-height:138px}
  #screen .page-masthead .masthead-logo{height:122px}
  #screen>.profile-scene{height:166px}
  #screen>.profile-scene .profile-title-art{height:76px}
  #screen .battle-feature{min-height:214px}
  #screen .battle-modes{grid-template-columns:repeat(2,minmax(0,1fr))}
  #screen .battle-modes>.panel{min-height:176px}
  #screen .shop-offer .pic{height:clamp(92px,28vw,124px)}
  #screen .profile-menu{gap:8px;margin-top:8px}
  #screen .profile-menu-group .profile-actions button{font-size:clamp(11px,3.3vw,14px)}
}
@media(max-width:370px){
  #screen .battle-modes{grid-template-columns:1fr}
  #screen .battle-modes>.panel{min-height:0}
  #screen .junk-hero{height:282px}
  #screen .junk-hero .art-button{height:54px}
  #screen .profile-menu-group .profile-actions{grid-template-columns:1fr}
  #screen .profile-menu-group:first-child .profile-actions button:last-child{grid-column:auto}
}
@media(min-width:768px){
  #screen .junk-hero{height:clamp(350px,34vw,450px)}
  #screen .page-masthead,#screen>.social-masthead,#screen>.referral-masthead{min-height:186px}
  #screen .page-masthead .masthead-logo{height:160px}
  #screen>.profile-scene{height:218px}
  #screen .home-shortcuts button{min-height:78px}
  #screen .battle-feature{min-height:244px}
  #screen .battle-modes>.panel{min-height:178px}
  #screen[data-active-screen="profile"] .profile-menu{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce){#screen .junk-hero::before{animation:none!important}}
