[hidden]{display:none!important}
:root{font-family:Nunito,system-ui,sans-serif;color:#fff;--navy:#071a3d;--panel:#0d3265;--panel2:#103f82;--line:#337fcb;--cyan:#28ddff;--gold:#ffd749;--pink:#d43cf7;--green:#4de454}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#061025}body{display:flex;justify-content:center}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.48;cursor:not-allowed}.app{width:min(100%,520px);min-height:100dvh;position:relative;overflow:hidden;background:linear-gradient(180deg,#1763b6 0%,#082455 40%,#07152f 100%);box-shadow:0 0 80px #000b}.app:before{content:"";position:absolute;inset:0 0 auto;height:400px;pointer-events:none;background:radial-gradient(circle at 50% -10%,#78d9ff80,transparent 70%)}#game{position:relative;min-height:100dvh;padding-bottom:calc(84px + env(safe-area-inset-bottom))}.topbar{height:74px;display:flex;align-items:center;justify-content:space-between;gap:5px;padding:8px 12px;position:relative;z-index:2;background:linear-gradient(180deg,#06285ccf,#07306d45);border-bottom:1px solid #ffffff25}.identity{border:0;background:transparent;color:white;display:flex;align-items:center;gap:7px;text-align:left;padding:0;min-width:0}.identity .avatar{height:49px;width:49px;border:3px solid #55d9ff;border-radius:14px;display:grid;place-items:center;font-size:27px;background:#082e6b;box-shadow:0 3px 0 #041335}.identity strong{display:block;max-width:143px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;line-height:1.1;text-shadow:1px 2px #00112d}.identity small{display:block;color:#ffe367;font-size:14px;font-weight:1000}.wallet{display:flex;gap:4px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.currency{font-size:13px;font-weight:1000;background:#092552;border:1px solid #2362aa;border-radius:12px;padding:5px 7px;box-shadow:inset 0 1px #92c6ff5e}.currency b{color:#fff}.screen{position:relative;z-index:1;padding:0 12px 20px}.bottom-nav{position:fixed;z-index:10;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,520px);height:calc(75px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);display:grid;grid-template-columns:repeat(5,1fr);background:linear-gradient(#184d98,#071c47);border-top:2px solid #55b7ff;box-shadow:0 -8px 22px #04122eaa}.bottom-nav button{border:0;border-right:1px solid #091d4b;color:white;background:transparent;font-weight:1000;text-shadow:1px 2px #020c28;display:grid;place-items:center;align-content:center;gap:0}.bottom-nav button.active{background:linear-gradient(#00adff,#0768d5);box-shadow:inset 0 0 0 2px #74f5ff,inset 0 -4px #0355ab;border-radius:16px 16px 0 0}.bottom-nav span{font-size:30px;line-height:1}.bottom-nav small{font-size:11px}.loading{min-height:100dvh;display:grid;align-content:center;justify-items:center;text-align:center;background:radial-gradient(circle,#1572ca,#061334 70%)}.loading-logo{font-size:90px;filter:drop-shadow(0 8px 6px #0009)}.loading h1{font-weight:1000;font-size:44px;line-height:.88;letter-spacing:-2px;color:#ffda48;text-shadow:3px 5px #763c10,0 0 25px #ffdf59}.loading p{font-weight:900;color:#b9e9ff}.spinner{height:33px;width:33px;border:4px solid #5ceaff;border-top-color:transparent;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.error{padding:40px 25px;text-align:center}.error h2{font-size:25px}.error p{color:#cae4ff}.error code{color:#ffe486}.hero{height:240px;margin:0 -12px 10px;position:relative;background:linear-gradient(180deg,#0000 47%,#061b4f 99%),url('/assets/junkyard/warehouse-bg.webp?v=20261024-art-v229') center 45%/cover}.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#092b5aab,transparent 70%)}.hero-content{position:absolute;left:22px;bottom:21px;right:20px}.eyebrow{font-size:11px;font-weight:1000;letter-spacing:1.7px;color:#9ceaff;text-transform:uppercase}.hero h1,.title-banner{font-size:38px;line-height:.9;margin:5px 0 7px;font-weight:1000;letter-spacing:-1.7px;color:#ffe465;text-shadow:2px 3px #893b15,0 0 13px #072854}.hero p{font-weight:900;margin:0;color:#fff;text-shadow:0 2px #06254c}.mode-card,.panel{background:linear-gradient(145deg,#1253a2,#0a295f 65%,#061b40);border:2px solid #3d96e8;border-radius:18px;box-shadow:inset 0 2px #b2e8ff6b,0 6px 0 #05183b,0 12px 22px #0005}.mode-card{padding:17px;margin:12px 0;background:linear-gradient(135deg,#1463b5,#0c3872)}.mode-card-top{display:flex;align-items:center;justify-content:space-between}.mode-card h2{font-size:24px;line-height:1;margin:0;font-weight:1000}.mode-card p{font-size:13px;color:#bcddff;font-weight:800;margin:6px 0 14px}.mode-badge{font-size:11px;padding:5px 8px;border-radius:8px;background:#062756;color:#87e6ff;font-weight:1000}.big-btn,.green-btn,.small-btn,.danger-btn{border:2px solid #ffe78c;border-radius:13px;color:#fff;font-weight:1000;text-shadow:1px 2px #7d3511;box-shadow:inset 0 2px #fff8,0 4px 0 #9b4c08,0 7px 10px #0018;background:linear-gradient(#ffe14f,#ffad0f);padding:11px 14px}.big-btn{display:block;width:100%;font-size:22px;letter-spacing:.3px}.green-btn{background:linear-gradient(#7dff54,#11ad29);border-color:#b6ff72;text-shadow:1px 2px #14601b;box-shadow:inset 0 2px #fff8,0 4px 0 #0a6c21;}.small-btn{font-size:13px;padding:7px 10px;background:linear-gradient(#25c7ff,#0676d8);border-color:#95eaff;text-shadow:1px 2px #094084;box-shadow:inset 0 1px #fff8,0 3px 0 #053e92}.danger-btn{background:linear-gradient(#ff667e,#d9204e);border-color:#ff9da9;font-size:13px;padding:7px 10px}.panel{padding:14px;margin:12px 0}.section-heading{font-size:18px;font-weight:1000;display:flex;align-items:center;justify-content:space-between;margin:0 0 10px}.section-heading small{font-size:11px;color:#8fdffb}.quest{display:flex;gap:11px;align-items:center;border:1px solid #3378bf;border-radius:12px;background:#071f4b9e;padding:9px 10px;margin-top:7px;font-size:13px;font-weight:900}.quest .q-icon{font-size:26px}.quest strong{margin-left:auto;color:#ffe35d;white-space:nowrap}.progress{height:12px;border-radius:20px;background:#051736;border:1px solid #3b8ac9;overflow:hidden}.progress>i{display:block;height:100%;background:linear-gradient(#6bff9a,#13bd4b);border-radius:20px}.progress.gold>i{background:linear-gradient(#ffe968,#f5a516)}.screen-title{font-size:30px;font-weight:1000;line-height:1;margin:15px 0 5px;text-shadow:2px 3px #001741}.subtle{font-size:12px;color:#a7cdf3;font-weight:800}.tab-pills{display:flex;gap:5px;margin:13px 0}.tab-pills button{flex:1;border:1px solid #6cb6ff;border-radius:10px;background:#0b3069;color:#cae7ff;padding:8px 3px;font-weight:1000;font-size:12px}.tab-pills button.active{color:white;background:linear-gradient(#16beff,#0870cf);box-shadow:inset 0 0 0 1px #9defff}.deck-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.card{position:relative;min-width:0;border:3px solid #50beff;border-radius:14px;overflow:hidden;background:#071c46;box-shadow:0 4px 0 #04112d,0 6px 10px #0007;user-select:none}.card.legendary{border-color:#ffcd4a}.card.epic{border-color:#e45bfa}.card.rare{border-color:#67d6ff}.card.selected{outline:3px solid #56ff6b;transform:translateY(-2px)}.card img{width:100%;aspect-ratio:180/210;display:block;object-fit:cover}.card .cost{position:absolute;top:2px;left:3px;width:25px;height:25px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(#e963ff,#8b19d1);border:2px solid #f4a6ff;text-shadow:1px 2px #5c1777;font-size:15px;font-weight:1000}.card .level{position:absolute;bottom:0;left:0;right:0;padding:2px 0;text-align:center;background:#05132ac9;font-size:11px;font-weight:1000}.card-name{font-size:11px;font-weight:1000;text-align:center;line-height:1.05;margin:5px 0}.collection{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.collection .card{width:100%}.collection-item{min-width:0}.collection-item .small-btn{width:100%;padding:5px 3px;font-size:10px;margin-top:5px}.stat-row{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #5292cb5b;font-size:13px;font-weight:900}.stat-row:last-child{border:0}.stat-row b{color:#ffe66d}.offer-banner{position:relative;min-height:145px;padding:15px;overflow:hidden;background:radial-gradient(circle at 80% 70%,#8d49d4,transparent 48%),linear-gradient(135deg,#124fa3,#0b245b);border:2px solid #48a8e8;border-radius:17px;box-shadow:inset 0 2px #d8f6ff77,0 5px #061639;margin:12px 0}.offer-banner .offer-art{position:absolute;right:-15px;bottom:-23px;font-size:106px;filter:drop-shadow(0 6px 3px #07183f)}.offer-banner h2{max-width:65%;font-weight:1000;color:#ffdb4b;text-shadow:2px 3px #913a15;font-size:25px;line-height:.95;margin:0 0 6px}.offer-banner p{max-width:60%;font-size:12px;font-weight:900;color:#d9edff}.offer-banner button{position:relative;z-index:2}.offers{display:grid;grid-template-columns:repeat(2,1fr);gap:11px}.offer{padding:14px 9px;text-align:center}.offer .pic{font-size:60px;filter:drop-shadow(0 4px 4px #0007)}.offer h3{font-size:16px;line-height:1;margin:5px 0}.offer p{font-size:12px;color:#a8d1f7;margin:5px 0 12px}.offer button{width:100%}.profile-hero{text-align:center;padding:21px 12px;background:linear-gradient(180deg,#1372ca99,#071f4a99),url('/assets/junkyard/warehouse-bg.webp?v=20261024-art-v229') center/cover;border-radius:0 0 22px 22px;margin:0 -12px 12px}.profile-avatar{font-size:55px;width:84px;height:84px;margin:0 auto 8px;display:grid;place-items:center;background:#0b3372;border:4px solid #ffd242;border-radius:24px;box-shadow:0 6px 0 #713a0b}.profile-hero h1{margin:0;font-size:25px;text-shadow:2px 3px #072046}.profile-hero p{margin:4px 0;color:#dcecff;font-size:12px;font-weight:800}.profile-score{display:inline-block;padding:4px 16px;background:#092452da;border-radius:10px;color:#ffe15a;font-size:21px;font-weight:1000}.history-row{display:flex;align-items:center;gap:8px;background:#092450;border:1px solid #3b73ac;border-radius:11px;padding:8px;margin-top:6px;font-size:12px;font-weight:900}.history-row span:first-child{font-size:22px}.history-row b{margin-left:auto}.win{color:#65f975}.loss{color:#ff667b}.clan-header{min-height:163px;border:2px solid #48a6e9;border-radius:18px;position:relative;padding:18px 15px;overflow:hidden;background:linear-gradient(90deg,#072456df,#073b76a0),url('/assets/junkyard/warehouse-bg.webp?v=20261024-art-v229') center/cover}.clan-header .crest{font-size:64px;float:right;filter:drop-shadow(0 5px 2px #0008)}.clan-header h1{font-size:26px;line-height:1;margin:6px 0;color:#ffe075;text-shadow:2px 3px #7a3b0e}.clan-header p{font-size:13px;color:#cbeaff;font-weight:800}.clan-list-item{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #3683bd;border-radius:10px;background:#092b60;margin-top:8px}.clan-list-item .crest{font-size:28px}.clan-list-item strong{font-size:14px}.clan-list-item small{display:block;color:#a6d3f8}.clan-list-item button{margin-left:auto}.form-input{width:100%;border:2px solid #5a9cdd;border-radius:10px;background:#071c40;color:#fff;outline:none;padding:10px;margin:5px 0}.form-input:focus{border-color:#48e1ff}.chat{height:310px;overflow:auto;background:#071a3e;border-radius:10px;padding:10px}.chat-message{background:#174272;border-radius:11px;padding:7px 9px;margin:0 0 7px;font-size:12px;overflow-wrap:anywhere}.chat-message b{color:#64d9ff;display:block}.chat-form{display:flex;gap:5px}.chat-form input{flex:1;min-width:0}.toast{position:fixed;z-index:50;bottom:94px;left:50%;transform:translate(-50%,20px);width:min(90vw,450px);padding:12px;border:2px solid #71dfff;border-radius:12px;background:#09285a;color:white;font-size:13px;font-weight:900;text-align:center;opacity:0;pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}.modal{position:fixed;z-index:60;inset:0;background:#020a1dbb;display:grid;place-items:center;padding:15px}.modal[hidden]{display:none}.modal-box{width:min(100%,390px);background:linear-gradient(#14509a,#082552);border:3px solid #5bc5ff;border-radius:20px;box-shadow:0 15px 40px #000c,inset 0 2px #b9eaff80;padding:18px;text-align:center}.modal-box h2{font-size:26px;line-height:1;color:#ffe077;margin:2px 0 10px;text-shadow:2px 3px #763c0d}.modal-box p{font-size:14px}.modal-actions{display:flex;gap:8px}.modal-actions button{flex:1}.battle-screen{position:fixed;z-index:20;inset:0;background:#07152b;display:flex;flex-direction:column;max-width:520px;margin:auto}.battle-top{height:70px;flex:none;background:linear-gradient(#143b74,#071e43);display:flex;justify-content:space-between;align-items:center;padding:9px 14px;border-bottom:2px solid #56b8ff;font-weight:1000}.battle-top .versus{color:#ffd454;text-align:center;font-size:11px}.battle-top .versus b{display:block;font-size:23px;color:white}.battle-top .enemy-name{color:#ff95a4;text-align:right}.arena{position:relative;flex:1;min-height:280px;overflow:hidden;background:linear-gradient(#243d26aa,#547a32aa),url('/assets/junkyard/warehouse-bg.webp?v=20261024-art-v229') center/cover}.arena:after{content:"";position:absolute;top:50%;left:0;right:0;height:9%;transform:translateY(-50%);background:linear-gradient(#65ddedbd,#136fcbdc,#65ddedbd);border-top:3px solid #aef9ff;border-bottom:3px solid #aef9ff;pointer-events:none;box-shadow:0 0 14px #40dfff}.arena-grid{position:absolute;inset:0;background:repeating-linear-gradient(0deg,transparent 0 calc(10% - 1px),#131d2450 calc(10% - 1px) 10%),repeating-linear-gradient(90deg,transparent 0 calc(20% - 1px),#131d2450 calc(20% - 1px) 20%);opacity:.6}.arena:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#0004,transparent 20%,transparent 80%,#0004);pointer-events:none}.tower{position:absolute;z-index:3;width:57px;height:55px;transform:translate(-50%,-50%);display:grid;place-items:center;font-size:33px;filter:drop-shadow(0 5px 2px #000a);background:linear-gradient(#a8b6c8,#586b88);border:4px solid #e1e7ee;border-radius:8px}.tower.enemy{border-color:#ff6384}.tower.player{border-color:#4ec4ff}.tower .hp{position:absolute;bottom:-17px;left:50%;transform:translateX(-50%);padding:2px 4px;border:1px solid #fff;border-radius:5px;background:#072453;color:white;font-size:10px;white-space:nowrap;font-weight:1000}.tower.enemy .hp{background:#a01140}.unit{position:absolute;z-index:5;width:43px;height:43px;transform:translate(-50%,-50%);border:3px solid #54ceff;border-radius:50%;background:#0e2556;box-shadow:0 4px 6px #0009;overflow:visible;transition:top .45s linear}.unit.enemy{border-color:#ff668a}.unit img{width:100%;height:100%;object-fit:cover;border-radius:50%}.unit .hpbar{position:absolute;left:-3px;right:-3px;bottom:-7px;height:5px;border:1px solid #fff;border-radius:4px;background:#111d38;overflow:hidden}.unit .hpbar i{display:block;height:100%;background:#53e869}.unit.enemy .hpbar i{background:#ff456c}.drop-zone{position:absolute;z-index:8;bottom:0;top:50%;width:50%;border:0;background:transparent;color:transparent}.drop-zone.left{left:0}.drop-zone.right{right:0}.arena.placing .drop-zone{color:#fff;font-size:18px;font-weight:1000;text-shadow:2px 3px #001b37;background:#17bdfd38;outline:2px dashed #c9f7ff;outline-offset:-8px}.arena.placing .drop-zone.right{background:#fa51cb38}.battle-bottom{flex:none;height:196px;padding:8px 10px calc(9px + env(safe-area-inset-bottom));background:linear-gradient(#0b4c9e,#072658);border-top:3px solid #3fc8ff}.battle-hand{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;height:119px}.battle-hand .card{height:112px}.battle-hand .card img{height:100%;aspect-ratio:auto}.battle-hand .card.selected{outline:3px solid #6bff6b}.battle-hand .card.unaffordable{filter:grayscale(.55);opacity:.7}.battle-elixir{display:flex;align-items:center;gap:9px;margin-top:9px;font-weight:1000;color:#fff}.battle-elixir .drop{font-size:25px}.battle-elixir .progress{height:18px;flex:1;border-color:#ef98ff}.battle-elixir .progress>i{background:linear-gradient(#f9a2ff,#b426e1)}.battle-elixir b{font-size:20px;min-width:30px}.battle-end{position:absolute;z-index:30;inset:0;background:#041127c9;display:grid;place-items:center;padding:18px}.battle-end .modal-box{transform:rotate(-1deg)}@media(max-width:360px){.identity strong{max-width:85px}.currency{font-size:11px}.bottom-nav small{font-size:10px}.screen{padding-left:8px;padding-right:8px}.hero{margin-left:-8px;margin-right:-8px}.deck-grid{gap:5px}.card .cost{width:21px;height:21px;font-size:12px}}@media(min-width:521px){.battle-screen{box-shadow:0 0 50px #000}.app{min-height:900px}}
.identity .avatar img{width:42px;height:42px;display:block}.identity small{display:flex;align-items:center;gap:2px}.currency{display:inline-flex;align-items:center;gap:2px}.tiny-icon{width:18px;height:18px;vertical-align:middle}.bottom-nav button img{height:39px;width:39px;object-fit:contain;filter:drop-shadow(0 2px 2px #00143b)}.profile-avatar img{width:72px;height:72px}.tower img{width:43px;height:43px;object-fit:contain}
.loading-logo{width:90px;height:90px;object-fit:contain}.q-icon img{width:30px;height:30px;object-fit:contain}.heading-icon{width:32px;height:32px;object-fit:contain;vertical-align:-6px}.offer .pic img{width:82px;height:82px;object-fit:contain}.clan-header .crest,.clan-list-item .crest{width:64px;height:64px;object-fit:contain;float:right}.clan-list-item .crest{width:36px;height:36px;float:none}.battle-elixir .drop img{width:29px;height:29px;object-fit:contain;vertical-align:middle}.profile-score .tiny-icon{width:25px;height:25px}
.hero{background:linear-gradient(180deg,#0000 30%,#061b4f 100%),url('/assets/junkyard/warehouse-bg.webp?v=20261024-art-v229') 54% 42%/cover}.hero:before{background:linear-gradient(90deg,#092b5ad0,transparent 85%)}.profile-hero{background:linear-gradient(180deg,#07326d77,#071f4aca),url('/assets/junkyard/warehouse-bg.webp?v=20261024-art-v229') center/cover}.offer-banner{background:linear-gradient(90deg,#08275edb,#082c5b6b 56%,transparent),url('/assets/junkyard/warehouse-bg.webp?v=20261024-art-v229') center/cover}.offer-banner h2,.offer-banner p{position:relative;z-index:1}
.tower.destroyed img{filter:grayscale(1);opacity:.38}.section-heading .tiny-icon,.stat-row .tiny-icon{width:23px;height:23px;vertical-align:-5px}.battle-top .tiny-icon{width:24px;height:24px;vertical-align:-7px}
.section-heading .heading-label{display:inline-flex;align-items:center;gap:5px;min-width:0}
.pvp-card{background:linear-gradient(125deg,#192f7d,#4b2478 62%,#10275d);border-color:#ce83ff;box-shadow:inset 0 2px #f4d7ff80,0 6px 0 #241248,0 12px 22px #0006}.pvp-card .mode-badge{background:#35134f;color:#ffcbff}.pvp-card .big-btn{background:linear-gradient(#ff7bed,#bc31d8);border-color:#ffb7f6;text-shadow:1px 2px #6f1679;box-shadow:inset 0 2px #fff8,0 4px 0 #721584,0 7px 10px #0018}.matchmaking{display:grid;justify-items:center;gap:8px;padding:12px 8px}.matchmaking .spinner{width:48px;height:48px;border-width:5px;border-color:#ef9eff;border-top-color:transparent}.matchmaking p{margin:4px 0 8px;color:#dce7ff}.battle-top>div:first-child,.battle-top .enemy-name{max-width:32%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.battle-top .enemy-name{font-size:12px}
.crown-score{display:flex;align-items:center;justify-content:center;gap:3px;color:#ffe774;font-size:11px;line-height:1}.crown-score img{width:13px;height:13px;object-fit:contain}.battle-top{height:76px}.battle-top .versus b{font-size:21px}
.request-form{display:flex;align-items:center;gap:7px;margin:10px 0 14px}.request-form select{flex:1;min-width:0;margin:0}.request-form button{flex:none;font-size:12px;padding:9px 7px}.request-list{display:grid;gap:8px}.request-item{display:flex;align-items:center;gap:9px;padding:8px;background:#071e48;border:1px solid #397ec0;border-radius:12px}.request-art{width:58px;height:65px;object-fit:cover;border:2px solid #67caff;border-radius:9px;flex:none}.request-detail{min-width:0;flex:1}.request-detail strong{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.request-detail small{display:block;color:#acd8f7;font-size:11px;margin:2px 0 5px}.request-detail .progress{height:9px}.request-actions{display:flex;align-items:center;gap:5px;margin-top:6px}.request-actions .small-btn{padding:4px 8px}.request-actions .subtle{margin-left:auto;font-size:10px}.achievement-list{display:grid;gap:8px}.achievement{display:flex;align-items:center;gap:9px;padding:8px;background:#08234d;border:1px solid #3b75b9;border-radius:12px}.achievement>img{width:45px;height:45px;object-fit:contain;flex:none}.achievement-main{min-width:0;flex:1}.achievement-main strong{display:block;font-size:13px;line-height:1.1}.achievement-main small{display:block;color:#a6cff4;font-size:10px;margin:3px 0}.achievement-main .progress{height:8px}.achievement-main span{display:block;text-align:right;font-size:10px;color:#ffe274}.achievement button{font-size:10px;padding:6px;white-space:nowrap}.achievement button .tiny-icon,.achievement-reward .tiny-icon{width:14px;height:14px}.achievement-reward{font-size:10px;color:#ffd45a;white-space:nowrap}.achieved{font-size:23px;color:#65ec83;margin:0 8px}
.level-panel{padding:11px 14px}.level-panel .section-heading{margin-bottom:8px}.level-panel .progress{height:13px}
.war-panel{padding:0 13px 13px;overflow:hidden;border-color:#e2a75c;background:linear-gradient(165deg,#153b83,#111e59 70%,#071637)}.war-head{display:flex;align-items:center;gap:9px;min-height:105px;margin:0 -13px;padding:13px;background:linear-gradient(90deg,#081f52ef,#142e6bca),url('/assets/junkyard/warehouse-bg.webp?v=20261024-art-v229') center/cover;border-bottom:1px solid #f3bc65}.war-head>img{width:57px;height:57px;object-fit:contain;flex:none}.war-head>div{min-width:0;flex:1}.war-head h3{font-size:22px;line-height:1;margin:4px 0;color:#ffda6a;text-shadow:1px 2px #52331b}.war-head small{color:#d4e7ff;font-size:11px;font-weight:900}.war-head button{align-self:flex-start}.war-panel>p{font-size:12px;line-height:1.4;color:#d7e6ff;font-weight:800}.war-panel>p b{color:#ffe36b}.war-score{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.war-score>div{padding:8px 3px;border:1px solid #4f8bd0;border-radius:10px;background:#071f4bd9;text-align:center}.war-score small{display:block;color:#9ad6ff;font-size:9px;font-weight:1000}.war-score strong{display:block;font-size:19px;color:#ffe267}.war-panel h4{margin:14px 0 6px;font-size:14px}.war-leaders{display:grid;gap:5px}.war-leader{display:flex;align-items:center;gap:8px;padding:7px 9px;border-radius:9px;background:#071f49;border:1px solid #376cac;font-size:12px}.war-leader.own{border-color:#f6c559;background:#3d2a59}.war-leader b{width:21px;color:#ffe576}.war-leader span{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.war-leader strong{color:#ffe36a}.war-reward{display:flex;align-items:center;gap:8px;background:#113b77;border:1px solid #dcb954;border-radius:10px;margin-top:11px;padding:8px}.war-reward img{width:40px;height:40px;object-fit:contain}.war-reward>div{min-width:0;flex:1}.war-reward strong{display:block;font-size:11px}.war-reward small{display:block;color:#bde1ff;font-size:10px}.war-reward button{font-size:10px;padding:6px}.war-reward-note{font-size:10px;color:#b8d9f5;margin-top:12px;display:flex;align-items:center;gap:5px}.war-reward-note img{width:18px;height:18px}

/* Battle arena artwork and separately drawn team towers. */
.arena{background:#4d873a url('/assets/junkyard/battlefield.webp?v=20261024-art-v229') center center/100% 100% no-repeat}
.arena:after,.arena-grid{display:none}
.arena:before{background:linear-gradient(90deg,#00152633,transparent 18%,transparent 82%,#00152633)}
.tower{width:18%;height:auto;aspect-ratio:1;border:0;border-radius:0;background:none;box-shadow:none;filter:drop-shadow(0 5px 3px #07192fb0)}
.tower.king{width:25%;aspect-ratio:1.04}
.tower.enemy,.tower.player{border:0}
.tower img{width:100%;height:100%;object-fit:contain}
.tower .hp,.tower.enemy .hp{position:absolute;left:50%;top:-5px;bottom:auto;transform:translateX(-50%);width:76%;min-width:52px;height:15px;padding:0;border:2px solid #ffe9a0;border-radius:5px;background:#071a38;box-shadow:0 2px 3px #000a;overflow:hidden;text-align:center;line-height:11px;font-size:10px;font-weight:1000;text-shadow:1px 1px #041025}
.tower .hp i{position:absolute;left:0;top:0;height:100%;background:linear-gradient(#74efff,#0085d9);box-shadow:inset 0 1px #fff8}
.tower.enemy .hp i{background:linear-gradient(#ff8c9d,#d6204e)}
.tower .hp b{position:relative;z-index:1}
.tower.destroyed img{filter:grayscale(1);opacity:.55}
.tower.destroyed .hp{opacity:.7}
@media(max-height:700px){.tower.king{width:22%}}

/* In-game troops use their own transparent full-body art. */
.unit,.unit.enemy{width:53px;height:55px;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible;filter:drop-shadow(0 4px 2px #061326aa)}
.unit.player{filter:drop-shadow(0 0 3px #54dcff) drop-shadow(0 4px 2px #061326aa)}
.unit.enemy{filter:drop-shadow(0 0 3px #ff4a6f) drop-shadow(0 4px 2px #061326aa)}
.unit img{width:100%;height:100%;object-fit:contain;border-radius:0}
.unit.unit-capybara,.unit.unit-cat,.unit.unit-bear{width:68px;height:64px}
.unit .hpbar{bottom:-3px;left:8px;right:8px;height:6px;box-shadow:0 1px 2px #000a}
.unit,.unit.enemy{width:66px;height:68px}
.unit.unit-capybara,.unit.unit-cat,.unit.unit-bear{width:82px;height:78px}
.unit .unit-shield{position:absolute;top:-10px;right:-8px;width:24px;height:24px;object-fit:contain;filter:drop-shadow(0 1px 2px #000b)}
.card-ability{min-height:25px;margin:1px 0 5px;color:#a8eaff;font-size:9px;font-weight:900;text-align:center;line-height:1.15}
.battle-fx{position:absolute;z-index:7;width:98px;height:90px;object-fit:contain;pointer-events:none;transform:translate(-50%,-50%);animation:battle-fx-pop .74s ease-out forwards;filter:drop-shadow(0 0 8px #ffd75d)}
.battle-fx.lightning{width:128px;height:115px;filter:drop-shadow(0 0 10px #b579ff)}
@keyframes battle-fx-pop{0%{opacity:0;scale:.42}18%{opacity:1;scale:1.08}58%{opacity:.92;scale:1}100%{opacity:0;scale:1.3}}
@media(prefers-reduced-motion:reduce){.battle-fx{animation:none;opacity:.8}}

/* Compact battle HUD. */
.battle-top{height:78px;gap:4px;padding:7px 8px;background:linear-gradient(180deg,#1a4689,#081c43);box-shadow:inset 0 1px #ffffff55}
.battle-combatant{min-width:0;flex:1;display:flex;align-items:center;gap:5px}
.battle-combatant.enemy{justify-content:flex-end;text-align:right}
.battle-avatar{width:37px;height:37px;flex:none;object-fit:cover;border:2px solid #54c5ff;border-radius:10px;background:#0a2451;box-shadow:0 2px #04132d}
.battle-combatant.enemy .battle-avatar{border-color:#ff5e7e}
.battle-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:1.1;text-shadow:1px 2px #06152e}
.battle-name small{display:flex;align-items:center;gap:2px;color:#ffda4f;font-size:10px}
.battle-combatant.enemy .battle-name small{justify-content:flex-end;color:#ff9bb4}
.battle-name small .tiny-icon{width:14px;height:14px}
.battle-top .versus{flex:none;min-width:78px;background:#071936ba;border:1px solid #5d95d2;border-radius:10px;padding:3px 4px;color:#ffe16a;line-height:1}
.battle-top .versus small{display:block;font-size:8px;letter-spacing:.5px}
.battle-top .versus b{font-size:23px;line-height:1.05}
.battle-top .crown-score{display:block;font-size:10px;color:#f8e2a2;white-space:nowrap}
.battle-top .crown-score .tiny-icon{width:12px;height:12px;vertical-align:-2px}
@media(max-width:360px){.battle-avatar{width:32px;height:32px}.battle-name{font-size:10px}.battle-top .versus{min-width:70px}}

/* Original meme commentary lives beside game controls and never blocks taps. */
.quip-panel{display:flex;align-items:center;gap:9px;margin:11px 0 14px;padding:9px 10px;border:1px solid #58b8ee;border-radius:13px;background:linear-gradient(120deg,#104580,#082653);box-shadow:inset 0 1px #ffffff52,0 3px 0 #041b3b;color:#fff}
.quip-panel>img{width:39px;height:39px;flex:none;object-fit:contain;filter:drop-shadow(0 2px 2px #0007)}
.quip-panel>div{min-width:0;flex:1}
.quip-panel small{display:block;color:#9feaff;font-size:9px;font-weight:1000;letter-spacing:.7px}
.quip-panel p{margin:2px 0 0;font-size:12px;font-weight:900;line-height:1.24}
.quip-panel button{width:30px;height:30px;flex:none;border:1px solid #7bdcff;border-radius:9px;background:linear-gradient(#1684df,#0a4ca2);color:#fff;font-size:22px;line-height:1;box-shadow:inset 0 1px #ffffff88,0 2px #03265f}
.battle-bottom{height:216px}
.queue-joke,.result-quip{padding:9px 10px;border:1px solid #6dd6ff;border-radius:10px;background:#06204dd9;color:#ffe887;font-weight:1000}
@media(max-width:360px){.quip-panel p{font-size:11px}.quip-panel>img{width:34px;height:34px}}
.battle-bottom{height:calc(216px + env(safe-area-inset-bottom))}

/* Battle emotes: raster character portraits and fixed, server-validated phrases. */
.emote-toggle{width:27px;height:27px;flex:none;display:grid;place-items:center;padding:1px;border:1px solid #8de6ff;border-radius:8px;background:linear-gradient(#197bd0,#0a3e85);box-shadow:inset 0 1px #ffffff99}
.emote-picker{position:absolute;z-index:25;left:8px;right:8px;bottom:calc(216px + env(safe-area-inset-bottom));padding:9px;border:2px solid #67d9ff;border-radius:15px;background:linear-gradient(#12569d,#071e48);box-shadow:0 12px 28px #001126d9,inset 0 1px #ffffff80}
.emote-picker-head{height:26px;display:flex;align-items:center;justify-content:space-between;padding:0 3px 5px;font-size:13px;color:#ffe278}
.emote-picker-head button{width:25px;height:25px;padding:0;border:1px solid #88dfff;border-radius:7px;background:#0b397c;color:#fff;font-size:21px;line-height:20px}
.emote-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.emote-grid button{min-width:0;height:43px;display:flex;align-items:center;gap:3px;padding:3px 5px;border:1px solid #4ea9e8;border-radius:8px;background:linear-gradient(#164d8d,#0b2c61);color:#fff;font-size:10px;font-weight:1000;text-align:left;box-shadow:inset 0 1px #ffffff44}
.emote-grid button:active{transform:translateY(1px);background:#176cb1}
.emote-grid img{width:31px;height:34px;flex:none;object-fit:contain}
.emote-grid span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.battle-emote{position:absolute;z-index:9;display:flex;align-items:center;gap:4px;width:max-content;max-width:45%;min-height:42px;padding:5px 7px;border:2px solid #7ee0ff;border-radius:13px;background:#f5fcff;color:#14264a;box-shadow:0 4px 9px #00132d99;pointer-events:none;animation:emote-pop .2s ease-out}
.battle-emote.enemy{top:29%;right:2%;border-color:#ff8fa7}
.battle-emote.player{bottom:29%;left:2%}
.battle-emote img{width:29px;height:29px;flex:none;object-fit:contain}
.battle-emote span{min-width:0;font-size:10px;line-height:1.08;font-weight:1000}
@keyframes emote-pop{from{transform:scale(.82);opacity:.3}to{transform:scale(1);opacity:1}}
@media(max-width:360px){.battle-emote{max-width:47%;padding:4px}.battle-emote img{width:24px;height:24px}.battle-emote span{font-size:9px}.emote-grid button{font-size:9px;padding:2px}.emote-grid img{width:27px;height:31px}}

/* Three saved decks share the same raster art as the rest of the collection. */
.deck-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:14px 0 10px}
.deck-slot{position:relative;min-width:0;min-height:73px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:6px 3px;border:2px solid #6c96cf;border-radius:13px;background:linear-gradient(160deg,#214c89,#10284f 72%);color:#fff;text-shadow:1px 2px #071833;box-shadow:inset 0 1px #ffffff66,0 3px #061b3e;font-size:12px;font-weight:1000}
.deck-slot img{width:25px;height:25px;object-fit:contain;filter:drop-shadow(0 2px 1px #0009)}
.deck-slot span{white-space:nowrap}
.deck-slot small{font-size:9px;color:#adcbff;letter-spacing:.3px}
.deck-slot.selected{border-color:#9df4ff;background:linear-gradient(160deg,#159af4,#0866bd 70%);box-shadow:0 0 0 2px #0dc6ff66,0 3px #052e6d,inset 0 1px #ffffff9c}
.deck-slot.active-deck small{color:#ffe37b}
.deck-slot.active-deck:after{content:'';position:absolute;right:7px;top:6px;width:7px;height:7px;background:#a8ff89;transform:rotate(45deg);box-shadow:0 0 5px #51fa30}
.empty-deck-card{display:grid;place-items:center;min-height:100px;border-style:dashed;font-size:30px;color:#8dc9f0}
.copy-deck{display:block;width:100%;margin-top:12px}
@media(max-width:360px){.deck-slots{gap:4px}.deck-slot{font-size:10px}.deck-slot img{width:22px;height:22px}}

/* Completed battle recap. All character and tower artwork remains WebP. */
.history-row{gap:8px;align-items:center}
.history-main{min-width:0;flex:1}
.history-main small{display:block;color:#8fbce6;font-size:10px}
.history-actions{display:grid;justify-items:end;gap:5px;flex:none}
.history-actions>b{font-size:12px;white-space:nowrap}
.history-actions .tiny-icon{width:14px;height:14px}
.history-actions .small-btn{padding:5px 7px;font-size:11px}
.draw{color:#ffe17b}
.modal-box:has(.battle-recap){max-height:88dvh;overflow-y:auto;text-align:left;scrollbar-color:#4abaf4 #0b2b5a}
.modal-box:has(.battle-recap)>h2{text-align:center}
.battle-recap{font-size:12px}
.recap-result{text-align:center;font-size:25px;font-weight:1000;text-shadow:1px 2px #071532}
.recap-quip{margin:6px 0 9px;padding:8px;border:1px solid #50b7ee;border-radius:10px;background:#092b5a;text-align:center;color:#ffe589;font-weight:900}
.recap-meta{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px 9px;color:#a8ddff;font-size:10px;font-weight:1000}
.recap-rewards{display:flex;justify-content:center;gap:15px;margin:10px 0;padding:9px;border:1px solid #d4aa45;border-radius:10px;background:linear-gradient(#6f4a12,#3a280e);font-size:15px;color:#fff4b9}
.recap-rewards .tiny-icon{width:17px;height:17px;vertical-align:-3px}
.battle-recap h3{margin:14px 0 6px;color:#fff0a6;font-size:14px}
.recap-towers{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.recap-tower{min-width:0;padding:6px;border:1px solid #4096cf;border-radius:8px;background:#0a2e62;text-align:center}
.recap-tower img{width:22px;height:22px;object-fit:contain;vertical-align:middle}
.recap-tower b{font-size:11px}
.recap-tower .progress{height:7px;margin-top:4px}
.recap-tower.fallen{opacity:.58;filter:grayscale(.7)}
.recap-deck{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:3px}
.recap-deck img{width:100%;aspect-ratio:2/3;object-fit:cover;border:1px solid #f5d670;border-radius:5px;background:#0b2c60}
.recap-events{max-height:205px;overflow:auto;border:1px solid #367bb9;border-radius:9px;background:#061e43}
.recap-event{min-height:36px;display:flex;align-items:center;gap:5px;padding:4px 6px;border-bottom:1px solid #28619a;font-size:10px}
.recap-event:last-child{border-bottom:0}
.recap-event>span{width:30px;flex:none;color:#8bd9ff;font-weight:1000}
.recap-event>img{width:25px;height:27px;flex:none;object-fit:cover;border-radius:3px}
.recap-event>b{min-width:0;flex:1;text-align:left}
.recap-event>small{flex:none;color:#9fc9e9;font-size:9px}
.recap-event.tower-fall{background:#74344880;color:#ffe4a0}
.modal-box:has(.battle-recap) .modal-actions{margin-top:10px}
@media(max-width:360px){.recap-event>small{display:none}.history-actions .small-btn{font-size:10px}}

/* UTC daily quests with raster icons and server-owned progress. */
.daily-panel{border-color:#e0ac4d;background:linear-gradient(150deg,#275b96,#0d3268 55%,#112653);box-shadow:inset 0 2px #ffefae88,0 6px 0 #07254b,0 12px 22px #0005}
.daily-head{display:flex;align-items:center;gap:8px}
.daily-head>img{width:49px;height:49px;flex:none;object-fit:contain;filter:drop-shadow(0 3px 2px #0008)}
.daily-head>div{min-width:0;flex:1}
.daily-head h3{margin:0;color:#ffe287;font-size:22px;line-height:1;text-shadow:2px 2px #7b4514}
.daily-head small{font-size:10px;color:#b7e7ff;font-weight:900}
.daily-head .small-btn{width:30px;height:30px;padding:0;flex:none;font-size:20px}
.daily-joke{margin:10px 0 9px;padding:7px 9px;border:1px solid #66c6f2;border-radius:9px;background:#0a3264;color:#ffe8a5;font-size:11px;font-weight:900;line-height:1.25}
.daily-list{display:grid;gap:6px}
.daily-item{display:flex;align-items:center;gap:7px;min-height:72px;padding:7px;border:1px solid #5e9ed7;border-radius:11px;background:linear-gradient(100deg,#144786,#0a2c61)}
.daily-item.claimed{opacity:.7}
.daily-art{width:35px;height:35px;flex:none;object-fit:contain;filter:drop-shadow(0 2px 2px #0009)}
.daily-copy{min-width:0;flex:1}
.daily-copy strong{display:block;font-size:12px;line-height:1.1;color:#fff}
.daily-copy small{display:block;margin:2px 0;color:#b8dffc;font-size:10px;font-weight:800}
.daily-copy .progress{height:8px;margin-top:3px}
.daily-copy>span{display:block;text-align:right;color:#a9edff;font-size:9px;font-weight:1000}
.daily-action{width:75px;flex:none;display:grid;justify-items:center;gap:4px}
.daily-action b{font-size:11px;color:#ffe67d;white-space:nowrap}
.daily-action .tiny-icon{width:15px;height:15px;vertical-align:-3px}
.daily-action button{width:100%;padding:5px 2px;border-radius:8px;font-size:10px;line-height:1.1}
.daily-reset{margin-top:8px;text-align:right;color:#aad5fa;font-size:10px;font-weight:900}
@media(max-width:360px){.daily-head h3{font-size:19px}.daily-item{gap:4px;padding:5px}.daily-art{width:29px;height:29px}.daily-action{width:66px}.daily-copy strong{font-size:11px}.daily-action button{font-size:9px}}

/* Three in-game currencies and the expanded raster-only shop. */
.wallet{flex-wrap:nowrap}
.currency{white-space:nowrap}
.shop-categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:14px 0 4px}
.shop-categories button{min-height:42px;padding:5px 2px;border:1px solid #5f9fd8;border-radius:9px;background:linear-gradient(#17467f,#0b2a58);color:#e5f5ff;font-size:10px;font-weight:1000;line-height:1.1}
.shop-categories button.active{border-color:#9ef4ff;background:linear-gradient(#15a9fa,#0568bf);box-shadow:inset 0 1px #fff9,0 2px #034a9e;color:#fff}
.shop-offer{min-height:219px;display:flex;flex-direction:column;align-items:center;gap:3px;margin:0;padding:10px 8px}
.shop-offer .pic{height:73px;display:grid;place-items:center}
.shop-offer .pic img{width:68px;height:68px;object-fit:contain}
.shop-offer h3{font-size:14px;min-height:28px;display:grid;place-items:center}
.shop-offer p{font-size:11px;line-height:1.2;margin:0;flex:1}
.shop-offer small{color:#9ed5f6;font-size:9px;font-weight:900}
.shop-offer button{padding:7px 4px;margin-top:4px;font-size:13px}
.shop-offer button .tiny-icon{width:18px;height:18px;vertical-align:-4px}
.shop-note h3{margin:0 0 7px;color:#ffe47b;font-size:17px}
.shop-note p{margin:0;color:#c8e5ff;font-size:12px;line-height:1.4}
.modal-box:has(.shop-confirm){max-height:88dvh;overflow:auto}
.shop-confirm p{margin:7px 0}
.shop-confirm .tiny-icon{width:19px;height:19px;vertical-align:-4px}
.shop-pool{margin:12px 0;padding:8px;border:1px solid #5caae1;border-radius:10px;background:#071f48}
.shop-pool strong{display:block;margin-bottom:7px;color:#ffe7a1;font-size:11px}
.shop-pool>div{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px}
.shop-pool img{width:100%;aspect-ratio:2/3;object-fit:cover;border:1px solid #f8d87a;border-radius:5px}
.shop-odds{margin:12px 0;padding:9px;border:1px solid #c28c39;border-radius:8px;background:#20190d}
.shop-odds>strong{display:block;color:#ffe7a1;font-size:12px}
.shop-odds>p{margin:4px 0 7px;color:#d7c9a6;font-size:10px;line-height:1.3}
.shop-odds ul{display:grid;gap:4px;margin:0;padding:0;list-style:none}
.shop-odds li{display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px;padding:5px 6px;border-radius:5px;background:#ffffff08}
.shop-odds li b{font-size:11px}
.shop-odds li small{display:block;color:#d7c9a6;font-size:9px}
.shop-odds li>strong{color:#ffe47b;font-size:12px}
@media(max-width:430px){.topbar{height:104px;display:block;padding:5px 9px}.identity{height:49px}.wallet{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.currency{justify-content:center;padding:3px 2px;font-size:12px}.identity strong{max-width:180px}}
@media(max-width:360px){.shop-categories{gap:3px}.shop-categories button{font-size:9px}.shop-offer{min-height:230px}.shop-offer h3{font-size:12px}.shop-offer p{font-size:10px}.currency{font-size:11px}}

.home-chest-shortcut{position:relative;min-width:0}
.home-chest-open{width:100%;padding-right:24px!important}
.home-chest-odds{position:absolute;top:3px;right:3px;z-index:2;width:20px;min-width:20px;min-height:20px!important;height:20px;display:flex!important;align-items:center;justify-content:center;padding:0!important;border:1px solid #ffe47b!important;border-radius:50%!important;background:#131522ee!important;color:#ffe47b!important;font-size:11px!important;font-weight:1000;line-height:1}
.free-chest-odds-copy>p{margin:6px 0 10px;color:#fff1a0;font-size:12px}
