@font-face{font-family:Supercell Magic;src:url(/assets/supercell-magic.ttf) format("truetype");font-style:normal;font-weight:400;font-display:swap}:root{color-scheme:light;--ink:#173653;--blue:#197abb;--deep:#124c81;--line:#103958;--gold:#ffc83d;--cream:#fff1b5;--muted:#bedef1;--panel:#246fab;--shadow:0 4px 0 #103858;--game-safe-top:calc(max(env(safe-area-inset-top, 0px), var(--tg-device-top, 0px)) + var(--tg-safe-top, 0px));--game-safe-bottom:calc(max(env(safe-area-inset-bottom, 0px), var(--tg-device-bottom, 0px)) + var(--tg-safe-bottom, 0px))}*{box-sizing:border-box}body,html{margin:0;min-height:100%;font-family:Supercell Magic;font-synthesis:none;font-weight:400}body{color:#fff;background:#1a69a5;font-size:13px;line-height:1.6}button,input,select,textarea{font:inherit}a,button,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;touch-action:manipulation}button:disabled{cursor:default;filter:saturate(.35);opacity:.65}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #fff18a;outline-offset:3px}button{border:0}img{object-fit:contain;vertical-align:middle;-webkit-user-select:none;user-select:none}h1,h2,h3,p{margin:0}b,h1,h2,h3,strong{font-weight:400}h1{font-size:25px;line-height:1.4}h2{font-size:17px;line-height:1.5}h3{font-size:16px}small{font-size:11px}p{margin:10px 0}input,select,textarea{width:100%;min-height:46px;color:#143451;background:#e6f4ff;border:3px solid #103958;border-radius:5px;padding:9px 12px;font-size:16px;box-shadow:inset 0 3px #b1d5ed}textarea{resize:vertical;min-height:90px}input[type=checkbox]{appearance:none;width:32px;min-height:32px;flex:none;padding:0;cursor:pointer;background:#b2d9f3}input[type=checkbox]:checked{background:#64cb4c;box-shadow:inset 0 3px #a0ed7e}input[type=checkbox]:checked:after{content:"";display:block;width:100%;height:100%;background:url(/assets/icons-v2/check-medium.png) 50%/22px no-repeat}.world{min-height:100dvh;display:flex;justify-content:center;background:black}.game-shell{position:relative;width:100%;max-width:480px;min-height:100dvh;background:#237cba;box-shadow:0 0 0 4px #10476f,0 0 60px #0e3f6855;overflow:hidden}.game-header{padding:14px 14px 12px;padding-top:calc(12px + var(--game-safe-top));background:#185d95;border-bottom:4px solid #103f68;box-shadow:inset 0 -2px #489bc7}.battle-top,.brand-row,.clan-row,.header-tools,.history-row,.leader-row,.mana-row,.opponent,.player-hud,.player-row,.profile-link,.purchase-row,.resource-pill,.section-heading,.settings-row{display:flex;align-items:center}.brand-row,.purchase-row{justify-content:space-between}.brand-row{margin-bottom:12px}.wordmark{font-size:25px;letter-spacing:-1px;color:#fff1a3;text-shadow:2px 0 #18344e,-2px 0 #18344e,0 -2px #18344e,0 3px #18344e,0 5px #122a42;line-height:1.4}.wordmark span{color:#fff}.header-tools{gap:10px}.icon-button{display:grid;place-items:center;align-items:center;justify-content:center;width:44px;height:44px;flex:none;border:2px solid #103b5d;border-radius:6px;background:#348bc0;box-shadow:inset 0 2px #72bfe3,0 3px #103b5d}.bottom-nav button:active,.button:active,.icon-button:active{transform:translateY(2px);box-shadow:inset 0 2px #ffffff25}.player-hud{gap:8px;min-width:0}.profile-link{background:transparent;padding:0;gap:8px;text-align:left;flex:1 1}.profile-link>span:last-child{min-width:0}.profile-link strong{display:block;font-size:12px}.profile-link small{display:block;color:#c0e7ff;font-size:10px}.avatar{display:inline-flex;overflow:hidden;align-items:center;justify-content:center;background:#81d4f4;border:3px solid #103858;border-radius:7px;box-shadow:inset 0 3px #c0f3ff;flex:none}.avatar img{width:115%;height:115%;object-fit:contain;object-position:center}.resource-pill{background:#103e64;gap:5px;border:2px solid #5499c4;padding:4px 7px;height:38px;border-radius:4px;font-size:12px;white-space:nowrap}.resource-pill.coins{color:#ffe477}.network-dot{width:9px;height:9px;background:#ffca51;border:2px solid #113858;border-radius:50%}.network-dot.connected{background:#9fe25a}.network-dot.disconnected{background:#f87965}.screen-content{padding-bottom:calc(96px + var(--game-safe-bottom))}.screen{padding:20px 16px}.screen-intro,.screen-top{text-align:center;margin-bottom:20px}.screen-top{display:flex;align-items:center;justify-content:space-between;text-align:left}.screen-intro img{margin-bottom:8px}.footnote,.help-text,.screen-intro p{color:#d1edff;font-size:11px;line-height:1.7}.eyebrow{display:block;color:#d3efff;font-size:11px}.home-screen{padding-bottom:12px}.arena-title{text-align:center;padding:14px 10px 0;position:relative;z-index:1}.arena-title h1{font-size:23px;color:#fff2b2;text-shadow:2px 2px #113c60}.fortress-view{position:relative;display:grid;place-items:center;margin:-14px auto -5px;height:300px;overflow:hidden}.fortress-view>img{width:335px;height:335px;max-width:100%;filter:drop-shadow(0 9px #103e6933)}.fortress-spark{position:absolute;width:4px;height:4px;background:#fff0a3;animation:mote 3.5s ease-in-out infinite;pointer-events:none}.fortress-spark.a{left:24%;top:35%}.fortress-spark.b{left:70%;top:47%;animation-delay:-1.5s}.fortress-spark.c{left:61%;top:23%;animation-delay:-2.5s}.battle-actions{padding:0 28px;position:relative}.button{min-height:46px;padding:10px 15px;display:inline-flex;justify-content:center;align-items:center;gap:8px;border:3px solid #103958;border-radius:7px;background:#3993cb;box-shadow:inset 0 3px #83cce9,inset 0 -4px #1b659c,0 4px #103958;color:#fff;text-shadow:1px 2px #103958;transition:transform .1s;font-size:13px;line-height:1.5}.button.gold{background:#ffcc3c;box-shadow:inset 0 4px #fff298,inset 0 -6px #eca026,0 5px #8b5a1b;border-color:#80501d;color:#fff9db;text-shadow:2px 0 #704112,-2px 0 #704112,0 -2px #704112,0 3px #704112}.battle-button{width:100%;min-height:78px;font-size:30px;gap:15px}.battle-button img{width:44px;height:44px}.split-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0 18px}.split-actions .button{font-size:11px;padding:9px 4px}.home-section{margin:18px 16px}.section-heading{justify-content:space-between;gap:8px;margin:22px 0 12px}.section-heading h2{font-size:16px}.text-action{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:transparent;color:#fff0a5;font-size:12px;padding:6px 8px}.home-deck{display:flex;gap:9px;overflow-x:auto;padding:8px 3px 12px;scroll-snap-type:x proximity}.home-deck .game-card{width:75px;min-width:75px;scroll-snap-align:start}.daily-quest{margin:20px 16px;padding:12px;display:flex;align-items:center;gap:10px;border:3px solid #12496f;border-radius:6px;background:#16669d;box-shadow:inset 0 2px #4ea3ce}.daily-quest>div{flex:1 1}.daily-quest strong{font-size:12px}.daily-quest p{font-size:10px;margin:4px 0;color:#c7e8f9}.quest-reward{display:flex;align-items:center;gap:3px;color:#ffe77c;font-size:12px}.bottom-nav{position:fixed;z-index:20;bottom:0;left:50%;transform:translateX(-50%);width:min(480px,100%);height:calc(83px + var(--game-safe-bottom));padding-bottom:var(--game-safe-bottom);display:grid;grid-template-columns:repeat(5,1fr);border-top:4px solid #123858;background:#164d79;box-shadow:0 -3px #71aed2}.bottom-nav button{position:relative;background:#245e8d;border-right:2px solid #123b5f;border-left:1px solid #5b98bf;color:#d3eaf7;min-width:0;padding:7px 0 5px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px}.bottom-nav button>img{width:36px;height:36px}.bottom-nav button>span{font-size:10px;line-height:1.4;white-space:nowrap}.bottom-nav button.active{background:#438ec0;box-shadow:inset 0 5px #ffdc69;color:#fff6c3}.bottom-nav button i{display:none}.game-card{position:relative;display:block;min-width:0;width:100%;aspect-ratio:4/5.2;background:#a7d9e8;border:3px solid #123852;border-radius:5px;padding:0;box-shadow:inset 0 3px #defaff,0 3px #103650;touch-action:auto;transition:transform .12s,border-color .12s}.game-card>img{width:100%;height:100%;object-fit:contain;padding:4px 0 12px;filter:drop-shadow(2px 3px #17435a55)}.game-card.rarity-rare{background:#92bced;box-shadow:inset 0 3px #c0e8ff,0 3px #103650}.game-card.rarity-epic{background:#bd9be9;box-shadow:inset 0 3px #e4d4fa,0 3px #103650}.game-card.chosen{border-color:#fff18a;transform:translateY(-6px);outline:2px solid #b87521;box-shadow:0 5px 0 #8b591b}.game-card.unaffordable{background:#658899;opacity:.5}.mana-cost{position:absolute;z-index:2;top:6px;left:6px;width:25px;height:28px;display:grid;place-items:center;background:#ad48d1;border:2px solid #4b226d;border-radius:6px;color:#fff;font-size:15px;text-shadow:1px 2px #542175;box-shadow:inset 0 2px #e69aff}.card-name{position:absolute;bottom:2px;left:2px;right:2px;font-size:9px;line-height:1.3;text-align:center;text-shadow:1px 1px #123751,-1px -1px #123751,1px -1px #123751,-1px 1px #123751}.card-check{position:absolute;right:0;top:0;border:2px solid #163f4f}.collection-grid,.deck-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 10px;padding:8px 3px}.collection-grid{row-gap:20px;grid-template-columns:repeat(4,112px);width:max-content;padding:14px 12px 16px}.collection-card{scroll-snap-align:start}.empty-card{aspect-ratio:4/5.2;display:grid;place-items:center;background:#1a5d90;border:3px dashed #71aed0;border-radius:5px;color:#9ac7e2}.card-details{background:#134e7c;border:2px solid #103958;width:100%;font-size:10px;margin-top:6px;border-radius:4px}.average,.rating-pill{display:inline-flex;align-items:center;gap:5px;background:#174e7e;padding:8px;border:2px solid #69abcf;border-radius:5px}.rating-pill{color:#fff}.count{font-size:11px;color:#ffdf74}.full{width:100%;margin:8px 0}.danger{background:#bb4a43!important;box-shadow:inset 0 3px #eb8c78,0 3px #663439!important}.muted{color:#c4dfef}.gold-text{color:#ffc500}.green-text{color:#b6f180}.red-text{color:#ffb6a5}.grow,.player-label{flex:1 1;min-width:0}.clan-row,.history-row,.leader-row,.player-row,.purchase-row{gap:10px;min-height:66px;padding:10px 0;border-bottom:2px solid #165889}.clan-row strong,.history-row strong,.leader-row strong,.player-row strong{display:block;font-size:12px;overflow-wrap:anywhere}.player-row strong{color:#ffffff}.clan-row small,.history-row small,.leader-row small,.player-row small,.purchase-row small{display:block;color:#c5e3f5;font-size:10px}.leader-row small{color:#000000}.player-row .button{font-size:10px;padding:7px;min-height:44px}.history-mark{width:36px;height:36px;display:grid;place-items:center;background:#176295;border:2px solid #124265;border-radius:5px}.history-row>span:last-child{display:flex;align-items:center;gap:4px;font-size:12px}.empty{text-align:center;padding:26px 10px;color:#d4edf8}.empty p{font-size:12px}.modal .history-list .empty p{color:#66717d}.rank{width:25px;font-size:13px;color:#000000}.clan-row{width:100%;text-align:left;background:transparent}.clan-row .rank{color:#fff}.screen-intro h1{font-size:23px}.screen-intro p{max-width:350px;margin:8px auto}.form{display:grid;gap:16px}.form label{display:grid;gap:7px;font-size:12px}.form .check-row{display:flex;align-items:center;gap:10px}.search-row{display:flex;gap:8px}.search-row input{min-width:0}.share-action{margin-top:10px}.row-tools{display:flex;justify-content:flex-end;gap:12px}.row-tools button{background:transparent;font-size:10px;color:#c1deed;min-height:44px}.shop-items{display:grid;gap:18px}.shop-item{display:grid;grid-template-columns:110px 1fr;gap:14px;padding:14px;background:#1b669e;border:3px solid #10456f;border-radius:6px;box-shadow:inset 0 2px #4c9dcb}.shop-item h2{font-size:16px}.shop-item p{font-size:11px}.shop-art{display:grid;place-items:center}.shop-art img{width:110px;height:140px}.profile-card{text-align:center;padding:12px}.profile-card h2{margin-top:10px}.profile-card p{color:#c0e3f7;font-size:11px}.profile-tools{display:flex;gap:10px;justify-content:center}.stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:20px 0}.stats-grid>div{background:#175788;border:2px solid #124266;border-radius:5px;text-align:center}.stats-grid strong{display:block;font-size:20px;color:#fff3b3}.stats-grid small{color:#c7e9fa;display:block}.avatar-choices{display:flex;gap:12px;flex-wrap:wrap;padding:6px 0}.avatar-choices button{background:none;border:2px solid #0000;border-radius:5px;width:52px;height:52px;padding:1px}.avatar-choices button.active{border-color:#ffe275}.settings-row{justify-content:space-between;gap:12px;min-height:62px;border-bottom:2px solid #1a5d8d}.settings-row>span{display:flex;align-items:center;gap:10px;color:#ffffff}.settings-row select{width:auto;font-size:13px}.segmented{display:flex;margin:10px 0 16px;gap:8px}.segmented button{flex:1 1;min-height:44px;background:#175482;border:2px solid #103958;border-radius:5px;font-size:12px}.segmented .active{background:#3b9ed4;color:#fff0a9}.leaderboard-tabs{padding:5px;gap:6px;margin-top:0;border:2px solid #123957;border-radius:10px;background:#163c59;box-shadow:inset 0 2px 4px #09233866}.leaderboard-tabs .button{min-width:0;min-height:46px;padding:8px;font-size:12px;color:#fff;box-shadow:none!important;border-radius:8px!important}.leaderboard-tabs .button[aria-pressed=true]{color:#4d310d;text-shadow:0 1px #fff2b2}.leaderboard .leader-row{display:grid;grid-template-columns:20px 34px minmax(0,1fr) max-content;gap:8px;margin-bottom:8px;padding:10px 8px;border:1px solid #557b98;border-radius:8px;background:linear-gradient(#24577a,#173c5a);box-shadow:inset 0 1px #7199b44d,0 2px #14334b}.leaderboard .rank{width:auto;color:#c5e3f5;font-size:11px}.leaderboard .leader-podium{color:#ffe19a}.leader-identity{min-width:0}.leaderboard .leader-identity small,.leaderboard .leader-identity strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal}.leaderboard .leader-identity strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;overflow-wrap:anywhere;color:#fff;font-size:12px;text-shadow:0 1px #102f49}.leaderboard .leader-identity small{margin-top:4px;color:#bad6e8;font-size:9px}.leader-score{display:flex;align-items:center;gap:4px;padding:4px 6px;border:1px solid #517894;border-radius:6px;background:#102f49;color:#ffe19a}.leaderboard .leader-score strong{font-size:13px;color:inherit}.leader-score img{flex:none;image-rendering:auto;filter:drop-shadow(0 2px 1px #061c4266)}.leaderboard .empty{color:#3d5b73}.modal-backdrop,.result-backdrop{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:16px;background:#0a2949b8}.modal,.result-panel{width:100%;max-width:440px;max-height:calc(100dvh - 40px);overflow-y:auto;background:#247bb4;border:4px solid #113b5f;border-radius:9px;box-shadow:inset 0 4px #7bbfe2,0 7px #092e4f;padding:18px;color:#fff;animation:panel-in .18s ease-out}.modal.wide{max-width:600px}.modal-backdrop{grid-template-rows:minmax(0,1fr);padding:calc(16px + var(--game-safe-top)) calc(16px + max(env(safe-area-inset-right, 0px), var(--tg-device-right, 0px)) + var(--tg-safe-right, 0px)) calc(16px + var(--game-safe-bottom)) calc(16px + max(env(safe-area-inset-left, 0px), var(--tg-device-left, 0px)) + var(--tg-safe-left, 0px))}.modal-backdrop>.modal{max-height:100%}.modal-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:2px solid #134d78;padding-bottom:12px;margin-bottom:16px}.modal-heading h2{font-size:19px;color:#fff0ae}.modal>p{font-size:12px}.modal:focus{outline:none}.tutorial-scene{position:relative;height:200px;margin-bottom:16px;overflow:hidden;border-radius:12px;background:#23667f}.tutorial-arena{width:100%;height:100%;object-fit:cover;object-position:center 48%;image-rendering:auto}.tutorial-fort{position:absolute;left:50%;width:74px;height:64px;transform:translateX(-50%);object-fit:contain;image-rendering:auto;filter:drop-shadow(1px 2px 1px #102c4740)}.tutorial-fort.blue{bottom:4px}.tutorial-fort.red{top:4px}.tutorial-steps{padding-inline-start:24px;margin:14px 0 8px;font-size:13px;line-height:1.6}.tutorial-steps li+li{margin-top:6px}.tutorial-mana{font-size:11px;color:#496171}.training-safe{margin:16px 0 8px;font-size:12px;color:#274f65}.card-detail-art,.training-safe{text-align:center}.card-detail-art img{width:200px;height:210px}.rarity-text{text-align:center;color:#ffe993}.queue-art{text-align:center;padding:20px}.queue-art>img{object-fit:contain;image-rendering:auto}.queue-dots{display:flex;justify-content:center;gap:8px;margin:15px}.queue-dots i{width:8px;height:8px;background:#526475;animation:mote 1s infinite}.queue-dots i:nth-child(2){animation-delay:.2s}.queue-dots i:nth-child(3){animation-delay:.4s}.toast{position:fixed;z-index:200;left:50%;bottom:110px;transform:translateX(-50%);max-width:min(90vw,420px);width:max-content;padding:12px 18px;background:#fff0b3;color:#593a17;border:3px solid #8b5e25;box-shadow:0 4px #70451e;border-radius:6px;font-size:12px;text-align:center}.login-screen{display:flex;min-height:100dvh;flex-direction:column;align-items:center;padding:25px;padding-top:calc(25px + var(--game-safe-top));padding-bottom:calc(25px + var(--game-safe-bottom))}.login-screen .wordmark{font-size:35px}.login-fortress{width:300px;height:280px}.login-content{width:100%}.login-content h1{font-size:23px}.login-content>p{font-size:12px;color:#d4eeff}.dev-badge{color:#ffe18b;font-size:10px}.loading-screen{min-height:100dvh;display:flex;align-items:center;justify-content:center;gap:22px;flex-direction:column}.loading-bar{width:190px;height:16px;border:3px solid #103858;background:#124b7c}.loading-bar span{display:block;background:#ffde64;width:65%;height:100%;animation:loading 1s ease-in-out infinite alternate}.in-battle{height:100dvh;max-width:480px;background:#216b9e}.battle-screen,.in-battle{min-height:0;display:flex;flex-direction:column}.battle-screen{position:relative;height:100%;padding-top:var(--game-safe-top)}.battle-top{height:70px;flex:none;padding:7px 10px;gap:8px;background:#155c92;border-bottom:3px solid #113d5e;z-index:3}.opponent{gap:8px;flex:1 1}.opponent,.opponent>div{min-width:0}.opponent strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.opponent small{display:block;color:#c2e7fa}.battle-clock{background:#103c5c;border:2px solid #5298bd;border-radius:18px;padding-right:14px;padding-left:14px;padding-top:5px;text-align:center}.battle-clock small{display:block;color:#d6edf6;font-size:8px;line-height:1.25}.battle-clock strong{font-size:23px;line-height:1.25;display:block;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;text-shadow:1px 2px #071d31}.battle-clock.overtime{background:#a1393e;border-color:#ffca67}.battle-clock.urgent{background:#8c303c;border-color:#ffcf65;color:#fff0ad}.flying-crown{left:0;top:0;width:32px;height:32px;z-index:7;image-rendering:auto}.crown-award,.flying-crown{position:absolute;pointer-events:none}.crown-award{left:24%;right:24%;top:60%;z-index:8;text-align:center;animation:crown-award 1.7s cubic-bezier(.16,1,.3,1) both}.crown-award.red{top:20%}.crown-award strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:#fff;text-shadow:0 2px 2px #10243d}.crown-award>div{display:flex;justify-content:center;gap:10px;padding:4px 8px;background:linear-gradient(90deg,transparent,#2997c8bc 20%,#2997c8bc 80%,transparent)}.crown-award.red>div{background:linear-gradient(90deg,transparent,#c8405abc 20%,#c8405abc 80%,transparent)}.crown-award img{object-fit:contain}.crown-award .unearned{filter:brightness(.18);opacity:.6}.crown-award .earned{animation:crown-arrive .26s ease-out both;animation-delay:calc(var(--crown) * 80ms)}@keyframes crown-award{0%{opacity:0;transform:translateY(5px) scale(.94)}15%,80%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-3px) scale(1)}}.battle-notice{position:absolute;left:8%;right:8%;top:40%;z-index:6;padding:12px 8px;border:3px solid #ffcf65;background:#164d89f2;color:#fff1a3;text-align:center;font-size:clamp(12px,3.6vw,18px);text-shadow:1px 2px #071d31;pointer-events:none;animation:battle-notice 2.2s cubic-bezier(.22,1,.36,1) both}.battle-notice.mana{border-color:#f2b5ff;background:#613284f2;color:#fff}.battle-notice>span{display:block;font-size:30px;color:#f6c9ff}.mana-multiplier{font-size:12px;padding:3px;color:#fff;background:#843ca9;border:2px solid #efb0ff;flex:none}.double-mana .mana-track{border-color:#e7a0f4}@keyframes battle-notice{0%{opacity:0;transform:translateY(8px) scale(.96)}85%,9%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-4px) scale(1)}}@media (prefers-reduced-motion:reduce){.battle-notice{animation:none}}.battle-arena-wrap{position:relative;flex:1 1;min-height:0;display:flex;align-items:center;justify-content:center;background:#47aba9 url(/assets/arena-v2.png) 50%/contain no-repeat;overflow:hidden}.arena-canvas{position:relative;flex:none;width:100%;height:100%;min-width:0;touch-action:none}.arena-loading.loading-screen{position:fixed;inset:0;z-index:60;width:100%;max-width:480px;margin:0 auto;pointer-events:auto}.arena-canvas canvas{display:block;image-rendering:auto;visibility:hidden}.arena-canvas[data-ready=true] canvas{visibility:visible}.battle-score{position:absolute;right:4px;top:30%;bottom:30%;justify-content:space-between;pointer-events:none}.battle-score,.battle-score>span{display:flex;flex-direction:column}.battle-score>span{align-items:center;line-height:1.2;padding:3px;background:#143b56e8;border:2px solid #174661;border-radius:3px;font-size:16px}.enemy-score{color:#ffae9d}.ally-score{color:#91ddff}.battle-controls{position:relative;flex:none;padding:10px 10px calc(5px + var(--game-safe-bottom));background:#185b8c;border-top:4px solid #103858;box-shadow:inset 0 3px #64a4cb;z-index:4}.battle-hand{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) .65fr;gap:9px;align-items:end;padding-top:1px}.battle-hand .game-card{animation:hand-card-arrive .2s cubic-bezier(.16,1,.3,1);aspect-ratio:4/5;height:auto;touch-action:none}@keyframes hand-card-arrive{0%{opacity:0;translate:0 12px}to{opacity:1;translate:0 0}}.battle-hand .card-name{font-size:7px;bottom:3px}.battle-hand .mana-cost{width:20px;height:20px;font-size:12px;line-height:1.25;border-radius:8px}.next-card{text-align:center}.next-card small{display:block;font-size:8px;color:#d4eaf8;margin-bottom:4px}.next-card img{aspect-ratio:4/5;background:#7bb6d4;border:2px solid #0f3b60;border-radius:4px;padding:2px}.mana-row{position:relative;gap:6px;margin-top:9px;height:27px}.mana-row strong{font-size:19px;min-width:20px}.mana-row small{color:#b7cddd;font-size:10px}.mana-track{position:relative;flex:1 1;height:20px;background:#173d60;border:2px solid #0f2f4b;border-radius:3px;overflow:hidden;box-shadow:0 2px #457fa7}.mana-track>span{display:block;height:100%;background:#c750e2;box-shadow:inset 0 3px #ef9afa,inset 0 -3px #8a2fa9;transition:width 90ms linear}.mana-track i{position:absolute;top:0;bottom:0;width:2px;background:#541e6c66}.battle-hint{margin:3px 0 0;text-align:center;font-size:8px;color:#c5e3f5;line-height:1.5;min-height:12px}.connection-banner,.saving-overlay{position:absolute;top:20%;left:16px;right:16px;background:#fff0b5;border:3px solid #765320;color:#684a22;padding:13px;font-size:11px;text-align:center}.saving-overlay{top:40%;z-index:60}.result-panel{text-align:center;padding:24px}.result-panel h1{color:#ffe477;font-size:33px;margin:14px 0}.result-panel .eyebrow{margin-top:12px}.result-crowns{align-items:center;gap:16px;font-size:29px;margin:14px}.result-crowns,.result-rewards{display:flex;justify-content:center}.result-rewards{gap:18px;margin:20px 0;font-size:12px}.result-rewards span{display:flex;align-items:center;gap:4px}.result-panel.win{background:#2081bc;border-color:#bd8525}.result-panel .text-action{display:flex;margin:auto}.moon-avatar{border-color:#c7a3ff}.emerald-banner{background:#237f7d}.rarity-text.epic{color:#f1c5ff}@keyframes panel-in{0%{opacity:0;transform:translateY(10px) scale(.97)}to{opacity:1;transform:none}}@keyframes mote{0%,to{opacity:.2;transform:translateY(3px)}50%{opacity:1;transform:translateY(-6px)}}@keyframes loading{0%{width:25%}to{width:90%}}@media (min-width:600px){.in-battle{width:min(480px,calc((100dvh - 225px) * .642857));min-width:300px}.battle-hand .card-name{font-size:6px}.battle-top{padding-inline:7px;gap:6px}.opponent .avatar{width:34px!important;height:34px!important}.battle-top>.icon-button{width:38px;height:40px}.opponent strong{font-size:9px}.battle-clock{min-width:73px}.battle-controls{padding-inline:8px}.battle-hand{gap:7px}.battle-hand .game-card{aspect-ratio:4/5.1}}@media (max-width:359px){.player-hud{gap:5px}.resource-pill{padding:4px;font-size:10px}.profile-link small{font-size:8px}.battle-top{gap:5px;padding-inline:6px}.opponent strong{font-size:9px}.opponent .avatar{width:32px!important;height:32px!important}.battle-clock{min-width:70px}.battle-controls{padding-inline:6px}.battle-hand{gap:6px}.bottom-nav button>span{font-size:8px}.split-actions .button{font-size:10px}.wordmark{font-size:22px}}@media (prefers-reduced-motion:reduce){*,:after,:before{animation:none!important;transition:none!important;scroll-behavior:auto!important}}.battle-hand .card-name{display:none}.battle-hint{font-size:10px;min-height:16px}.battle-hand .game-card>img{padding:3px}.battle-top>.icon-button{min-width:44px;min-height:44px}.game-shell,.modal,.result-panel{background:#1b70ad}.eyebrow,.footnote,.help-text,.muted,.profile-card p,.screen-intro p{color:#e5f4ff}.profile-card p{color:#273f55}.button:not(.gold):not(.danger){background:#237bb5}.text-action{color:#fff4ca;text-shadow:1px 0 #103958,-1px 0 #103958,0 1px #103958,0 -1px #103958}.settings-row input[type=checkbox]:checked{background:#64cb4c url(/assets/icons-v2/check-medium.png) 50%/24px no-repeat}.settings-row input[type=checkbox]:checked:after{content:none}.button:not(.gold):not(.danger){border:7px solid transparent;border-image:url(/assets/ui-v2/panel-blue.png) 18 fill stretch;border-radius:0;background:transparent;box-shadow:none;text-shadow:1px 0 #163b4c,-1px 0 #163b4c,0 1px #163b4c,0 -1px #163b4c;padding:5px 10px}.icon-button{border:0;border-radius:0;background:transparent url(/assets/ui-v2/square-blue.png) 50%/100% 100% no-repeat;box-shadow:none}.modal{border:9px solid transparent;border-image:url(/assets/ui-v2/panel-blue.png) 18 fill stretch;box-shadow:0 5px #113e55;border-radius:0}.game-card{border:5px solid transparent;border-image:url(/assets/ui-v2/panel-blue.png) 18 stretch;border-radius:0;box-shadow:0 3px #143d53}.game-card.chosen{border-image:none;border-image-source:none;border-color:#ffe693;outline:2px solid #7c5928}.next-card{min-width:0;align-self:center}.next-card small{font-size:11px;line-height:1.3;color:#fff5ce;margin-bottom:5px;text-shadow:1px 1px #123b55}.next-card-art{position:relative;width:100%;border:4px solid transparent;border-image:url(/assets/ui-v2/panel-blue.png) 18 stretch;background:#a0d4e3;aspect-ratio:4/5}.next-card.inactive .next-card-art{filter:saturate(.35);opacity:.65}.next-card img{display:block;width:100%;height:100%;border:0;background:transparent;padding:1px;aspect-ratio:auto}.next-cost{position:absolute;left:-5px;bottom:-4px;display:grid;place-items:center;width:20px;height:22px;background:#ac4bca;border:2px solid #5d2c7e;color:#fff;font-size:12px;line-height:1.25;border-radius:8px}.battle-hand{grid-template-columns:repeat(4,minmax(0,1fr)) .76fr}.game-card:not(.chosen),.next-card-art{border-image-source:url(/assets/ui-v2/square-blue.png);border-image-slice:10}.modal{border-image-slice:18;background:#1b70ad}.battle-hint{min-height:18px}.battle-hint,.opponent strong{font-size:11px}.button:not(.gold):not(.danger){border-image-source:url(/assets/ui-v2/square-blue.png);border-image-slice:10 fill}.modal{border-image-source:url(/assets/ui-v2/square-blue.png);border-image-slice:10}.arena-title{padding:16px 12px 12px}.arena-title h1{font-size:clamp(20px,5.7vw,27px)}.arena-title p{margin:5px 0 0;color:#e1f3ff}.garrison{position:relative;width:calc(100% - 24px);aspect-ratio:360/298;margin:0 12px 18px;overflow:hidden;border:4px solid #123e58;box-shadow:0 4px #12517c,0 -2px #71b1d4;background:#7dba42}.garrison-soldier,.garrison>img{position:absolute}.garrison-ground{inset:0;width:100%;height:auto;image-rendering:auto}.garrison-decoration{position:absolute;inset:0;z-index:1;pointer-events:none}.garrison-decor-item{position:absolute;overflow:hidden}.garrison-decor-item[data-drift]{animation:garrison-drift var(--drift-duration) ease-in-out infinite alternate}.garrison-decor-item img{display:block;max-width:none;height:100%;animation:garrison-frames var(--duration) steps(var(--frames)) infinite}@keyframes garrison-drift{to{transform:translateX(var(--drift))}}.garrison-castle{width:43%;left:28.5%;bottom:32%}.garrison-tower{width:18%;bottom:25%}.garrison-tower.left{left:10%}.garrison-tower.right{right:10%}.garrison-soldier{width:13%;overflow:hidden;pointer-events:none;transform-origin:50% 92%;animation:garrison-idle 4s ease-in-out infinite}.garrison-soldier img{display:block;height:100%;max-width:none}.garrison-soldier.left-archer{left:12.5%;bottom:43%;width:12%}.garrison-soldier.right-archer{right:12.5%;bottom:43%;width:12%}.garrison-soldier.gate-guard{left:42%;bottom:28%;width:15%}.garrison-soldier.courtyard-guard{right:24%;bottom:19%;width:20%;animation-delay:-1.7s}.garrison-current{position:absolute;bottom:5%;width:4%;height:2px;background:#b9f5e8;box-shadow:5px 5px #72c9c2,-3px -7px #72c9c2;opacity:.55;animation:garrison-flow 3.2s linear infinite}.garrison-current.first{left:33%}.garrison-current.second{left:54%;animation-duration:4.1s;animation-delay:-2.1s}.login-garrison{max-width:420px;flex:none}@keyframes garrison-frames{to{transform:translateX(-100%)}}@keyframes garrison-idle{0%,to{transform:rotate(-.3deg)}50%{transform:rotate(.3deg)}}@keyframes garrison-flow{to{transform:translateX(150%);opacity:0}}@media (prefers-reduced-motion:reduce){.garrison-current,.garrison-decor-item,.garrison-decor-item img,.garrison-soldier,.garrison-soldier img{animation:none}}.card-scroller{--fade-left:0px;--fade-right:16px;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;scroll-padding-inline:12px;scroll-snap-type:x proximity;cursor:grab;-webkit-user-select:none;user-select:none;background:#ffffff47;border-radius:20px;-webkit-mask-image:linear-gradient(90deg,transparent,#000 var(--fade-left),#000 calc(100% - var(--fade-right)),transparent);mask-image:linear-gradient(90deg,transparent,#000 var(--fade-left),#000 calc(100% - var(--fade-right)),transparent)}.card-scroller[data-at-start=false]{--fade-left:16px}.card-scroller[data-at-end=true]{--fade-right:0px}.card-scroller[data-dragging=true]{cursor:grabbing;scroll-snap-type:none}.card-scroller:focus-visible{outline:3px solid #fff18a;outline-offset:3px}.card-scroller:focus-visible,.card-scroller:has(:focus-visible){-webkit-mask-image:none;mask-image:none}.card-scroller::-webkit-scrollbar{display:none;height:0}.home-deck.card-scroller{padding:12px 12px 16px}.card-check{display:grid;place-items:center;width:20px;height:22px}.garrison-ambience{position:absolute;inset:0;z-index:1;pointer-events:none}.garrison-castle,.garrison-soldier,.garrison-tower{z-index:2}.garrison-tree{position:absolute;width:32%;aspect-ratio:1;overflow:hidden;top:-9%}.garrison-tree.left{left:1%}.garrison-tree.right{right:1%;transform:scaleX(-1)}.garrison-tree img{display:block;width:800%;max-width:none;height:100%;animation:garrison-frames 1.6s steps(8) infinite}.garrison-tree.right img{animation-delay:-.7s}.garrison-sheep{--roam-time:19s;--roam-delay:-3s;--roam-x:165%;--roam-y:12%;--heading:1;position:absolute;left:18%;top:7%;width:15%;aspect-ratio:1;animation:garrison-roam var(--roam-time) linear var(--roam-delay) infinite}.garrison-sheep.second{--roam-time:23s;--roam-delay:-13s;--roam-x:-145%;--roam-y:30%;--heading:-1;left:65%;top:9%}.garrison-sheep.third{--roam-time:21s;--roam-delay:-8s;--roam-x:105%;--roam-y:-20%;left:37%;top:17%;width:12%}.garrison-sheep-facing,.garrison-sheep-graze,.garrison-sheep-walk{position:absolute;inset:0}.garrison-sheep-facing{animation:garrison-sheep-turn var(--roam-time) step-end var(--roam-delay) infinite}.garrison-sheep-graze,.garrison-sheep-walk{overflow:hidden}.garrison-sheep-walk{opacity:0;animation:garrison-walking var(--roam-time) step-end var(--roam-delay) infinite}.garrison-sheep-graze{animation:garrison-grazing var(--roam-time) step-end var(--roam-delay) infinite}.garrison-sheep img{display:block;max-width:none;height:100%}.garrison-sheep-walk img{width:400%;animation:garrison-frames .5s steps(4) infinite}.garrison-sheep-graze img{width:1200%;animation:garrison-frames 1.8s steps(12) infinite}.garrison-leaf{position:absolute;top:-5%;width:5px;height:7px;background-image:url(/assets/terrain/tree.png);background-position:-86px -65px;opacity:0;animation:garrison-leaf-fall 10s linear infinite}@keyframes garrison-roam{0%,8%,92%,to{transform:translate(0)}40%,65%{transform:translate(var(--roam-x),var(--roam-y))}}@keyframes garrison-sheep-turn{0%,92%,to{transform:scaleX(var(--heading))}65%{transform:scaleX(calc(var(--heading) * -1))}}@keyframes garrison-walking{0%,40%,92%,to{opacity:0}65%,8%{opacity:1}}@keyframes garrison-grazing{0%,40%,92%,to{opacity:1}65%,8%{opacity:0}}@keyframes garrison-leaf-fall{0%{transform:translate(-8px,-6px) rotate(0deg);opacity:0}15%{opacity:.75}75%{opacity:.6}to{transform:translate(20px,360px) rotate(220deg);opacity:0}}@media (prefers-reduced-motion:reduce){.garrison-ambience *{animation:none}}:root{--ui-blue:#147dcc;--ui-blue-deep:#07528f;--ui-ink:#132c45;--ui-paper:#fff4d2;--ui-edge:3px solid var(--ui-ink);--ui-radius:14px;--ui-space:16px;--ui-press:cubic-bezier(0.2,0,0,1);--ui-shadow:0 5px 0 #102e4c;--blue:var(--ui-blue);--deep:var(--ui-blue-deep);--line:var(--ui-ink);--panel:#176eb0}body{background:#0e5793;font-size:14px}h1{font-size:clamp(23px,6vw,30px);line-height:1.3}h2{line-height:1.4}.game-icon{image-rendering:auto;object-fit:contain;flex:none}.button{min-height:48px;background-color:#e3f3ff;border:var(--ui-edge);border-radius:var(--ui-radius);box-shadow:var(--ui-shadow),inset 0 3px #ffffffb3;color:#173653;text-shadow:none;padding:10px 16px;font-size:14px;transition:transform .1s var(--ui-press),box-shadow .1s var(--ui-press),opacity .1s}.button,.button.gold{background-image:none}.button.gold{background-color:#ffce44;color:#593613;box-shadow:0 5px 0 #84501c,inset 0 3px #fff4ad}.button.danger,.button.danger-button{background-color:#e45358;color:white}.button:active:not(:disabled){transform:translateY(3px) scale(.98);box-shadow:0 2px 0 #102e4c}.button:disabled{opacity:.52;filter:saturate(.6)}.battle-button{min-height:64px;font-size:27px}.icon-button{min-width:44px;min-height:44px;border-radius:12px;border:var(--ui-edge);background:#206eab}.bottom-nav,.game-header{background:#114c81;border-color:#102b48}.bottom-nav button{border-radius:10px;margin:3px;font-size:10px}.bottom-nav button.active{background:#ffcf46;color:#3c2a19;box-shadow:0 3px 0 #8f571c}.resource-pill{border:2px solid #0d2a44;border-radius:12px;background:#124574;padding:5px 9px}.screen-intro{text-align:left;padding:8px 0 16px}.screen-intro>.game-icon{float:right}.social-intro{display:flex;align-items:center;justify-content:space-between;gap:16px}.social-intro>div{min-width:0}.social-intro>.game-icon{flex-shrink:0;float:none;margin:0}.social-intro p{max-width:none;margin:8px 0 0}.footnote,.help-text,.screen-intro p{font-size:12px}.modal-panel,.pixel-frame{border:var(--ui-edge);border-radius:18px;background-image:none;box-shadow:0 7px 0 #0b2540}.modal-panel{padding:20px}.player-row,.purchase-row,.settings-row{padding:12px;border-radius:12px;background:#155d97;margin-bottom:8px}.section-title{font-size:17px;margin:20px 0 12px}input,select,textarea{border:var(--ui-edge);border-radius:10px;padding:12px;font-size:14px}.available-road-reward{margin:12px}.available-road-reward>.text-action{min-height:44px;margin-top:6px}.trophy-road-summary{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:var(--ui-edge);border-radius:14px;padding:12px;margin:14px 0;background:#104f82;color:white;box-shadow:0 4px 0 #0b3151}.trophy-road-summary>span{flex:1 1;min-width:0}.trophy-road-summary small,.trophy-road-summary strong{display:block}.trophy-road-summary small{font-size:10px;color:#cce7f6}.road-step{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 8px;border-bottom:2px solid #103858}.road-step>div,.road-step>span{display:flex;align-items:center;gap:6px}.road-step:not(.reached){opacity:.65}.road-step .button{padding:8px;font-size:11px}.game-card{background-image:none;background-color:#d7e8f4;border:3px solid #12364f;border-radius:15px;box-shadow:0 4px 0 #0b304a,inset 0 3px #f8ffff;overflow:visible}.game-card.rarity-rare{background-color:#b4d8ff}.game-card.rarity-epic{background-color:#d4bdf4}.game-card.rarity-legendary{background-color:#ffe6a0;border-color:#9b641c}.game-card.chosen{outline:3px solid #ffdb61;outline-offset:1px}.mana-cost{border-radius:10px;border:2px solid #441a60;background:#a34bd1;box-shadow:inset 0 2px #e0a5f7}.card-name{background:#19517b;color:#fff;padding:7px 4px;border-radius:0 0 10px 10px;line-height:1.35;font-size:11px}.card-level{position:absolute;right:6px;top:6px;border-radius:7px;min-width:20px;padding:1px 4px;background:#13456a;color:white;font-size:10px}.card-check{top:32px;right:6px;background:#fff;border-radius:6px}.collection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;min-width:0;gap:18px 12px;padding:8px 4px 14px}.collection-card{min-width:0;width:auto}.collection-card .game-card{width:100%}.card-details{min-height:44px;border-radius:10px;font-size:11px}.card-detail-art{border-radius:14px}.stats-grid{gap:10px}.stats-grid>div{border-radius:10px;background:#104f82;padding:10px}.shop-tabs{display:flex;overflow-x:auto;gap:8px;scrollbar-width:thin;padding:8px 2px 12px}.shop-tabs button{min-height:44px;flex:none;border:2px solid #103754;border-radius:10px;background:#11588d;color:white;padding:7px 12px;font-size:12px}.shop-tabs button[aria-selected=true]{background:#ffce44;color:#4e3217;border-color:#68421b}.catalog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.catalog-item{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center;background:#1465a0;border:var(--ui-edge);border-radius:16px;padding:14px 8px;box-shadow:0 4px #0c3558;min-width:0}.catalog-item h2{font-size:13px;margin:10px 0 6px;overflow-wrap:anywhere}.catalog-item p{font-size:10px;line-height:1.6}.catalog-item small{font-size:10px}.catalog-item .button{width:100%;margin-top:auto;padding:8px 5px;font-size:12px}.catalog-portrait{height:94px;width:100%;max-width:94px;object-fit:contain}.garrison{border-radius:18px;border:var(--ui-edge);background:#347f85}.garrison-ground{height:100%;object-fit:cover;opacity:1}.garrison-current,.garrison-decoration,.garrison-leaf,.garrison-sheep,.garrison-tree{display:none}@media (prefers-reduced-motion:reduce){.button{transition:none}}.arena-loading,.battle-arena-wrap{background:#183e4a}.skin-preview{height:94px;width:100%;position:relative}.skin-preview img:first-child{width:90px;height:94px;object-fit:contain;position:relative;z-index:1}.skin-preview img:last-child{width:42px;height:58px;object-fit:contain;position:absolute;left:14%;top:2px}.button:not(.gold):not(.danger){border:var(--ui-edge);border-image:none;border-radius:var(--ui-radius);background:#e3f3ff;color:#173653;padding:10px 16px;box-shadow:var(--ui-shadow),inset 0 3px #ffffffb3}.button,.button.gold,.button:not(.gold):not(.danger){text-shadow:none}.game-card.chosen,.game-card:not(.chosen),.modal.pixel-frame,.next-card-art{border-image:none}.modal.pixel-frame{border:var(--ui-edge);border-radius:18px;padding:18px}.next-card-art{border:3px solid var(--ui-ink);border-radius:12px}.button:not(.gold):not(.danger):active:not(:disabled){box-shadow:0 2px 0 #102e4c}.card-tactics{font-size:12px;line-height:1.7}*{scrollbar-width:none}::-webkit-scrollbar{display:none}.trophy-road-summary{width:calc(100% - 56px);margin:12px auto}.shop-tabs{-webkit-mask-image:linear-gradient(90deg,transparent,#000 10px,#000 calc(100% - 14px),transparent);mask-image:linear-gradient(90deg,transparent,#000 10px,#000 calc(100% - 14px),transparent);padding-inline:10px 18px;scroll-padding-inline:10px}.shop-tabs:focus-within{-webkit-mask-image:none;mask-image:none}.modal.pixel-frame{display:flex;flex-direction:column;overflow:hidden}.modal-heading{flex:none}.modal-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:2px 2px 18px;-webkit-mask-image:linear-gradient(180deg,transparent,#000 5px,#000 calc(100% - 12px),transparent);mask-image:linear-gradient(180deg,transparent,#000 5px,#000 calc(100% - 12px),transparent)}.modal-body:focus-within{-webkit-mask-image:none;mask-image:none}.battle-arena-wrap{background:#183e4a}.battle-arena-wrap:after,.battle-arena-wrap:before{content:"";position:absolute;top:0;bottom:0;width:22px;pointer-events:none;z-index:1}.battle-arena-wrap:before{left:0;background:linear-gradient(90deg,#cbdfff20,transparent)}.battle-arena-wrap:after{right:0;background:linear-gradient(270deg,#cbdfff20,transparent)}@media (max-width:599px){.battle-top{height:62px}.battle-hand .game-card{aspect-ratio:1/1.04}.battle-hand .card-name{display:none}.battle-controls{padding-top:7px}}@media (min-width:600px){.game-shell.in-battle{width:min(860px,100vw,calc((100dvh - 220px) * 9 / 14));max-width:860px;min-width:0}.battle-controls .mana-row,.battle-hand{width:100%;max-width:440px;margin-inline:auto}}.avatar img,.card-detail-art img,.catalog-portrait,.game-card>img,.garrison-castle,.garrison-soldier img.rendered-sprite,.garrison-tower,.next-card img{image-rendering:auto}.world{background:#081726}.game-shell{background-color:#234f76;background-image:radial-gradient(ellipse at 50% 25%,#58a6b744,transparent 75%),repeating-linear-gradient(45deg,transparent 0 59px,#0b2442b3 60px,#71b2d233 61px,transparent 63px),repeating-linear-gradient(-45deg,transparent 0 59px,#0b2442b3 60px,#71b2d233 61px,transparent 63px)}.game-header{background:linear-gradient(#10253cdd,#173b5dc9);border-bottom:2px solid #8cacc5;padding:calc(8px + var(--game-safe-top)) 12px 10px}.brand-row{margin-bottom:8px}.brand-row .wordmark{font-size:20px}.profile-link{min-width:0}.profile-link strong{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.resource-pill{border-radius:6px;background:linear-gradient(#10243b,#1b3b59);box-shadow:inset 0 1px #91c2dd66,0 2px #061c31}.button,.button:not(.gold):not(.danger){border:2px solid #183b58;border-radius:8px;background:linear-gradient(#73c8ff,#45aff8 12%,#349af0 82%,#2280d7);color:#fff;box-shadow:inset 0 2px #e2f5ff99,inset 0 -3px #2378bb,0 5px #143c60;text-shadow:-1px -1px #173451,1px -1px #173451,-1px 1px #173451,1px 2px #173451}.button.gold{background:linear-gradient(#ffe68a,#ffcd47 15%,#ffc83c 80%,#e8a52c);border-color:#88601e;color:#fffbed;box-shadow:inset 0 2px #fff9c2,inset 0 -3px #d19b32,0 5px #8c5c22;text-shadow:-1px -1px #6b4518,1px -1px #6b4518,-1px 1px #6b4518,1px 2px #6b4518}.button.danger{background:linear-gradient(#ff9c90,#ef5d5b 20%,#cf3e49);box-shadow:inset 0 2px #ffcac188,inset 0 -3px #ac3141,0 4px #6c2839}.button:active:not(:disabled),.button:not(.gold):not(.danger):active:not(:disabled){transform:translateY(3px) scale(.96);box-shadow:inset 0 2px #ffffff60,0 2px #183b58}.bottom-nav{background:linear-gradient(#7896b1,#344d69 9%,#1c344f 88%,#11243a);border-top:2px solid #b6cee0;box-shadow:0 -5px 12px #051e4266}.bottom-nav button{border-radius:5px;border:1px solid #9ebbd344;background:linear-gradient(#6987a066,#344d6933)}.bottom-nav button.active{background:linear-gradient(#d7e9f5,#819eb7 12%,#597b9c);color:#fff;box-shadow:inset 0 2px #eefaff,0 2px #12324c;text-shadow:0 2px #18334c}.bottom-nav button>img{width:34px;height:34px;filter:drop-shadow(0 3px 1px #091d4055)}.arena-title{padding:14px 12px 0}.arena-title h1{font-size:clamp(20px,5.5vw,26px)}.arena-title p{display:block;margin:7px 0 0;font-size:10px;line-height:1.5;color:#c1e6f4}.trophy-road-summary{width:calc(100% - 24px);margin-inline:12px;border-radius:8px;background:linear-gradient(#1c4565,#163852);box-shadow:inset 0 2px #91bad855,0 4px #112a43}.home-screen .battle-actions{padding-top:4px}.home-arena-button{display:grid;justify-items:center;gap:6px;width:100%;padding:0 10px 12px;color:#fff1b0;background:transparent;border:0;cursor:pointer}.home-arena-button>strong{font-size:12px}.home-arena-button>small{font-size:10px;color:#c7e6f4}.home-arena-preview{position:relative;width:clamp(112px,calc(38dvh - 100px),220px);aspect-ratio:1;margin:15px auto 8px;border-radius:12px;box-shadow:0 7px #13394b,0 12px 15px #061c4255;transform:perspective(600px) rotateX(18deg)}.home-arena-terrain{position:absolute;inset:0;overflow:hidden;border-radius:inherit;isolation:isolate}.home-arena-terrain>img{width:100%;height:100%;object-fit:fill}.home-arena-preview img{image-rendering:auto}.home-arena-fort{position:absolute;overflow:hidden;transform:translate(-50%,-50%);filter:drop-shadow(1px 2px 1px #102c3a66)}.home-arena-fort>img{position:absolute;max-width:none}.home-screen .battle-button{min-height:62px;flex-direction:column;gap:0}.battle-mode-label{font-size:10px}.home-screen .home-section{background:#0b28452b}.modal.pixel-frame{background:#dce6ed;border:3px solid #66768c;border-radius:12px;box-shadow:inset 0 2px #e8f4ff,0 6px #12273d,0 10px 30px #00132677;color:#263f55}.modal-heading{background:linear-gradient(#8c99af,#55637e);margin:-18px -18px 14px;padding:8px 12px;border-bottom:3px solid #35465e;color:white}.modal-heading h2{font-size:21px;color:white;text-shadow:0 2px #24364c}.modal-heading .icon-button{border-radius:7px;background:linear-gradient(#ffb0a0,#ed6a64 30%,#be3d49);box-shadow:inset 0 2px #ffe6d899,0 2px #57303f}.modal .help-text,.modal .muted{color:#48637b}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px 12px;padding:16px 0}.setting-control{display:flex;flex-direction:column;gap:10px;text-align:center;font-size:12px}.setting-control label,.setting-control>span{display:flex;align-items:center;justify-content:center;gap:7px}.settings-grid .button.success{background:linear-gradient(#a7f27c,#70d65b 20%,#51b746);box-shadow:inset 0 2px #dfffc9,inset 0 -3px #3a983c,0 4px #285d36}.settings-grid .language-control,.settings-grid .privacy-control,.settings-player-id,.settings-privacy-hint{grid-column:1/-1}.settings-grid .privacy-control{flex-direction:row;align-items:center;justify-content:space-between;text-align:left}.privacy-control label{justify-content:flex-start}.privacy-control .button{min-width:80px}.settings-privacy-hint{color:#48637b;font-size:10px;line-height:1.6}.settings-grid>.button{grid-column:1/-1}.settings-player-id{text-align:center;color:#637a90}.setting-control select{color:#1a3d5e;background:#fff;border:2px solid #8299ae}.level-prefix{display:none}.cards-screen .level-prefix{display:inline}.cards-screen .card-level{top:auto;bottom:4px;left:0;right:0;width:auto;background:#16324be0;border-radius:0 0 4px 4px;font-size:10px;line-height:20px}.cards-screen .game-card{border-radius:7px;border:2px solid #c0d5e8;box-shadow:inset 0 2px white,inset 0 -2px #4a6b89,0 4px #102b44;background-image:radial-gradient(ellipse at 50% 35%,#ffffff90,#7aa4c125)}.cards-screen .game-card.chosen{border-color:#ffe383;outline:1px solid #ce8b24;transform:none}.cards-screen .game-card>img{padding:7px 2px 22px}.cards-screen .card-name{display:none}.cards-screen .collection-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 10px;padding:4px 0 16px}.cards-screen .collection-card{display:flex;flex-direction:column;gap:7px;padding:6px;border:1px solid #5182a4;border-radius:12px;background:#123e61;box-shadow:0 3px #0b2b46}.cards-screen .collection-card.in-deck{border-color:#d9ad53}.collection-name{display:flex;align-items:center;justify-content:center;flex:1 1;min-height:30px;font-size:9px;line-height:1.5;text-align:center;overflow-wrap:anywhere}.cards-screen .collection-card .copy-progress{min-width:0;height:18px;border-width:1px;border-radius:5px}.cards-screen .collection-card .copy-progress strong{font-size:10px;line-height:16px}.collection-action{width:100%;min-height:44px;padding:5px 2px;border:1px solid #8dc5e9;border-radius:7px;background:#267bb5;color:white;font-size:10px;box-shadow:inset 0 2px #ffffff26}.collection-action:disabled{opacity:1;background:#16344d;color:#abc8db;border-color:#385d79;box-shadow:none}.collection-locked{min-height:18px;text-align:center;font-size:9px;color:#b5cddd}@media (min-width:420px){.cards-screen .collection-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}.cards-screen .card-check{top:5px;right:3px;width:17px;height:17px}.cards-screen .card-check img{width:11px;height:11px}.deck-slot{min-width:0;border-radius:8px;outline:2px solid transparent;outline-offset:3px}.deck-slot .empty-card,.deck-slot .game-card{width:100%}.deck-grid.choosing-slot .deck-slot{outline-color:#9ddaff}.deck-grid .deck-slot.drop-target{outline:3px solid #ffe282;background:#ffe282}.cards-screen .game-card{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:pan-y}.deck-replace-hint{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:50px;margin:10px 0;font-size:11px;line-height:1.5;color:#ffe6a0}.deck-replace-hint .text-action{min-height:44px;flex:none}.deck-grid{scroll-margin-block:80px}.deck-save{margin-bottom:8px}.card-deck-action{margin:12px 0}.deck-drag-preview{position:fixed;z-index:110;pointer-events:none;transform:translate(-50%,-55%) rotate(-5deg) scale(1.06);filter:drop-shadow(0 10px 9px #061c4299)}.deck-drag-preview .game-card{width:100%;pointer-events:none;opacity:1}.deck-dragging{cursor:grabbing}.card-upgrade-track{position:relative;height:21px;background:#112f4c;border:1px solid #85afd0;border-radius:0 0 4px 4px;margin-top:3px;overflow:hidden}.card-upgrade-track>span{position:absolute;inset:0 auto 0 0;background:linear-gradient(#65ccec,#258ebc)}.card-upgrade-track.ready>span{background:linear-gradient(#abed72,#56bf45)}.card-upgrade-track strong{position:relative;display:flex;align-items:center;justify-content:center;gap:3px;font-size:10px;line-height:19px;color:#fff;text-shadow:0 1px #12273d}.upgrade-celebration img{animation:card-upgrade .7s ease-out}.upgrade-level{color:#248b47;display:block;text-align:center;font-size:22px}.modal .rarity-text{color:#4c6182}.modal .rarity-text.rare{color:#286cb0}.modal .rarity-text.epic{color:#7543a3}.modal .card-detail-art img{width:180px;height:180px;object-fit:contain}.card-upgrade-button{position:sticky;bottom:8px;z-index:3;margin-top:14px}@keyframes card-upgrade{0%{filter:brightness(2) drop-shadow(0 0 20px #fff6a3);transform:scale(.92)}45%{transform:scale(1.06)}to{filter:none;transform:scale(1)}}.loading-screen{position:relative;isolation:isolate;background:#112941;overflow:hidden}.loading-illustration{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1}.loading-screen>.wordmark{position:absolute;top:calc(9% + var(--game-safe-top));font-size:clamp(34px,10vw,52px);text-align:center;transform:rotate(-3deg);filter:drop-shadow(0 5px 2px #071c46aa)}.loading-status{position:absolute;bottom:calc(34px + var(--game-safe-bottom));left:24px;right:24px;text-align:center;text-shadow:0 2px #10233c}.loading-bar{position:relative;width:100%;height:26px;border:3px solid #12263d;border-radius:5px;background:#081b31;box-shadow:0 2px #91b6d1}.loading-bar span{width:100%;transform-origin:left;background:linear-gradient(#9ddfff,#4ca6f5 45%,#297adb 50%,#2870bd);box-shadow:inset 0 2px #e0f7ff;animation:none}.loading-bar strong{position:absolute;inset:-4px 0 0;font-size:22px;text-shadow:-2px 0 #12233b,2px 0 #12233b,0 2px #12233b}.battle-self-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8ae6ff;font-size:10px;margin-top:2px}.opponent strong{color:#ffb9c9}.opponent small{font-size:8px}.battle-top .avatar{width:34px!important;height:34px!important}.battle-intro{position:absolute;inset:0;z-index:10;display:grid;place-items:center;background:#061d3545;pointer-events:none;text-align:center;text-shadow:-2px -1px #10243d,2px 1px #10243d,0 3px #10243d}.battle-swords{object-fit:contain;filter:drop-shadow(0 3px 2px #10243d66)}.arena-announcement h1,.arena-announcement p,.battle-swords{animation:announcement-pop .26s cubic-bezier(.16,1,.3,1) both}.arena-announcement h1{color:#ffe382;font-size:clamp(24px,6vw,34px);margin:8px 8px 4px}.arena-announcement p{animation-delay:65ms;margin:0;font-size:15px}.versus-banners{width:92%;display:grid;gap:14px;font-size:22px}.player-ribbon{display:grid;place-items:center;width:100%;height:78px;padding:10px 12% 0;background:url(/assets/presentation/ribbon-blue.png) 50%/100% 100% no-repeat;color:#fff;font-size:21px;text-shadow:-1px -1px #153149,1px 1px #153149,0 3px #153149;overflow-wrap:anywhere;line-height:1.2}.player-ribbon.red{background-image:url(/assets/presentation/ribbon-red.png)}.battle-intro .player-ribbon{animation:ribbon-red-enter .24s cubic-bezier(.16,1,.3,1) both}.battle-intro .player-ribbon.blue{animation-name:ribbon-blue-enter;animation-delay:65ms}.versus-banners>span{animation:announcement-pop .22s cubic-bezier(.16,1,.3,1) both;animation-delay:.1s}.battle-intro.exiting .player-ribbon{animation:ribbon-red-exit .28s cubic-bezier(.32,0,.67,0) both}.battle-intro.exiting .player-ribbon.blue{animation-name:ribbon-blue-exit}.battle-intro.exiting .versus-banners>span{animation:versus-exit .18s ease-out both}@keyframes ribbon-red-exit{0%{transform:translateX(0);opacity:1}to{transform:translateX(-120%);opacity:0}}@keyframes ribbon-blue-exit{0%{transform:translateX(0);opacity:1}to{transform:translateX(120%);opacity:0}}@keyframes versus-exit{0%{opacity:1}to{opacity:0}}@keyframes announcement-pop{0%{transform:scale(.9) translateY(5px);opacity:0}70%{transform:scale(1.04);opacity:1}to{transform:scale(1);opacity:1}}@keyframes ribbon-red-enter{0%{transform:translateX(-65%);opacity:0}to{transform:translateX(0);opacity:1}}@keyframes ribbon-blue-enter{0%{transform:translateX(65%);opacity:0}to{transform:translateX(0);opacity:1}}.result-backdrop{background:#05182d9c;position:absolute;padding:10px}.result-panel,.result-panel.win{position:relative;background:none;border:none;border-image:none;box-shadow:none;padding:12px;max-width:420px;overflow-y:auto}.result-panel h1{font-size:28px;margin:5px 0}.result-teams{position:relative;margin:5px 0 0;display:grid;gap:18px}.result-team{padding-top:0}.crown-podium,.result-team{position:relative;z-index:1}.crown-podium{display:flex;justify-content:center;align-items:flex-end;height:80px;padding:0 8%;margin-bottom:-11px}.crown-podium img{width:33.333%;height:80px;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 3px 4px #050f2e88);animation:crown-arrive .3s ease-out both;animation-delay:calc(var(--crown) * .1s)}.crown-podium img:nth-child(2){transform:scale(1.12);transform-origin:bottom}@keyframes crown-arrive{0%{opacity:0;translate:0 -12px}to{opacity:1;translate:0 0}}.result-versus{display:block;font-size:18px;line-height:24px;margin:0}.crown-podium.empty,.crown-podium.empty img{height:42px}.battle-score>span{font-size:20px}.result-rewards{flex-wrap:wrap;gap:8px 14px;margin:12px 0}.result-panel>.button{margin-top:10px}.result-panel>.text-action{color:#fff;padding:16px}.result-confetti{position:absolute;inset:-180px -12px -180px;pointer-events:none;overflow:hidden}.result-confetti i{position:absolute;left:var(--x);top:-15%;width:8px;height:14px;background:#6dcaff;border-radius:1px 5px;animation:result-confetti 4.4s linear infinite;animation-delay:var(--delay)}.result-confetti.red i{background:#ff7293}.result-confetti i:nth-child(3n){background:#ffdc68}@keyframes result-confetti{to{transform:translate(35px,115dvh) rotate(var(--turn))}}@media (max-width:359px){.cards-screen .collection-grid{gap:14px 6px}.result-panel{padding:4px}.crown-podium,.crown-podium img{height:65px}.player-ribbon{height:65px;font-size:18px}}@media (prefers-reduced-motion:reduce){.arena-announcement h1,.arena-announcement p,.battle-hand .game-card,.battle-intro .player-ribbon,.battle-intro.exiting .player-ribbon,.battle-intro.exiting .versus-banners>span,.battle-swords,.crown-award,.crown-award .earned,.crown-podium img,.queue-dots i,.result-confetti,.upgrade-celebration img,.versus-banners>span{animation:none}.result-confetti{display:none}.loading-bar span{transition:none}}img[src^="/assets/presentation/chest-"]{image-rendering:auto}.copy-progress{position:relative;height:22px;border:2px solid #0b2b47;border-radius:4px;background:#0b2b47;overflow:hidden;min-width:65px}.copy-progress>span{position:absolute;inset:0;background:linear-gradient(#7cddff,#279bd4);transform-origin:left;transition:transform .28s cubic-bezier(.16,1,.3,1)}.copy-progress.ready>span{background:linear-gradient(#b2fb70,#4cba41)}.copy-progress>strong{position:relative;display:block;text-align:center;color:white;font-size:12px;line-height:18px;text-shadow:0 2px #0d2e44}.home-chests{margin:14px 12px}.free-chests{display:grid;grid-template-columns:1fr 1fr;gap:10px}.free-chests>button{display:flex;align-items:center;gap:6px;text-align:left;background:#134d76;border:2px solid #6bb1d4;border-radius:12px;padding:6px;color:white;min-height:76px}.free-chests img{width:64px;height:64px;object-fit:contain}.free-chests strong{display:block;font-size:11px}.free-chests small{display:block;color:#bbecff;font-size:10px;margin-top:5px}.chest-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:12px 0}.chest-slots>button{min-height:126px;border:2px solid #70a5c2;border-radius:9px;background:#144665a6;color:#d6e9f6;padding:6px 3px}.chest-slots>button.ready{border-color:#ffe88b;background:#216b8c}.chest-slots img{width:100%;height:67px;object-fit:contain}.chest-slots strong{display:block;font-size:9px;line-height:1.4}.chest-slots small{display:block;font-size:10px;margin-top:3px;color:#ffe28c}.chest-slots>button>span{font-size:10px;opacity:.7}.chest-modal-art{display:block;width:min(240px,100%);aspect-ratio:1;object-fit:contain;margin:0 auto}.season-summary{display:flex;width:100%;align-items:center;gap:12px;padding:12px;color:#fff;border:2px solid #c5b276;border-radius:10px;background:linear-gradient(120deg,#61427e,#1c6595)}.season-summary>span{flex:1 1;text-align:left}.season-summary strong{display:block;font-size:15px}.season-summary small{display:block;font-size:10px;margin-top:4px}.season-track>article{display:grid;grid-template-columns:52px 1fr auto;align-items:center;gap:8px;border-bottom:2px solid #9cb3bf;padding:14px 0}.season-track>article>strong{display:grid;justify-items:center}.season-track>article>img{width:85px;height:70px;object-fit:contain;justify-self:center}.season-track>article>span{display:flex;align-items:center;justify-content:center;gap:5px}.season-track .button{font-size:11px;padding:10px}.reward-overlay{position:fixed;inset:0;z-index:120;width:100%;max-width:480px;margin:auto;overflow:auto;background:#123e60 none 50%/cover;background-image:var(--reward-background,linear-gradient(135deg,#153b5d,#235c80));display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:calc(38px + var(--game-safe-top)) 22px calc(24px + var(--game-safe-bottom));color:#fff;text-align:center}.reward-overlay:before{content:"";position:absolute;inset:0;z-index:-1;opacity:.18;background:repeating-linear-gradient(45deg,transparent 0 54px,#77bee0 55px,transparent 57px),repeating-linear-gradient(-45deg,transparent 0 54px,#061f37 55px,transparent 58px)}.reward-close{position:absolute;top:calc(8px + var(--game-safe-top));right:12px;z-index:5}.reward-overlay>h2{color:#b8ecff;font-size:19px;margin:10px 0 0}.reward-overlay .button{min-width:130px}.chest-presentation{position:relative;width:min(280px,70vw);aspect-ratio:1;border:0;background:transparent;padding:0;flex-shrink:0}.chest-presentation>img{width:100%;height:100%;object-fit:contain;position:relative;z-index:2}.chest-presentation>img.chest-nudge{animation:chest-nudge .2s cubic-bezier(.16,1,.3,1)}.chest-presentation.opened>img{animation:chest-open .32s cubic-bezier(.16,1,.3,1) both}.chest-glow{position:absolute;inset:16% 12%;z-index:1;background:radial-gradient(ellipse,#ffeaa8b0,transparent 68%);animation:chest-glow 1.4s ease-in-out infinite alternate}.reward-remaining{position:absolute;top:15%;right:0;z-index:3;background:#ba344f;border:3px solid white;border-radius:6px;font-size:24px;min-width:42px}.reward-hint{font-size:12px;color:#b7ddec}.reward-reveal-row{display:grid;grid-template-columns:minmax(100px,40%) minmax(0,1fr);align-items:center;gap:16px;width:100%;text-align:left;animation:reward-card-enter .26s cubic-bezier(.16,1,.3,1) both}.reward-reveal-row h2{font-size:20px;overflow-wrap:anywhere;margin:0 0 8px}.reward-reveal-row p{font-size:12px}.reward-tile{position:relative;width:100%;aspect-ratio:3/4;border:4px solid #b9cbd6;border-radius:10px;background:linear-gradient(#253e5c,#85b8d0);display:flex;align-items:center;justify-content:center;box-shadow:0 4px #0a233b;overflow:hidden}.reward-tile.rare{border-color:#e0a24f}.reward-tile.epic{border-color:#b46fda}.reward-tile.legendary{border-color:#9df5ef}.reward-tile>img:not(.game-icon){width:100%;height:100%;object-fit:contain}.reward-tile>strong{position:absolute;bottom:8px;left:0;right:0;text-align:center;font-size:clamp(22px,6vw,34px);color:white;text-shadow:-2px -1px #10243d,2px 1px #10243d,0 3px #10243d}.reward-tile .game-icon{width:65%;height:65%;object-fit:contain}.reward-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:min(290px,100%)}.reward-summary .reward-tile>strong{font-size:19px;bottom:4px}.reward-overlay.summary .chest-presentation{width:185px}.reward-overlay.summary h3{font-size:14px;margin:0;color:#bceaff}.reward-actions{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap}.reward-actions .text-action{color:#c1ebff;font-size:11px;min-height:44px}.upgrade-ready{color:#a3f96a}.reward-choices{display:grid;grid-template-columns:1fr 1fr;gap:18px}.reward-choices>button{background:transparent;border:0;color:#23445e;padding:0}.reward-choices>button>strong{display:block;font-size:12px;margin:10px 0}.upgrade-screen>.copy-progress{width:210px}.upgrade-screen>h1{font-size:25px}.upgrade-card{position:relative;width:170px;height:220px;border:4px solid #a5f377;box-shadow:0 0 24px #76da6e88;border-radius:12px;background:linear-gradient(#75a0be,#163552)}.upgrade-card>img{width:100%;height:100%;object-fit:contain}.upgrade-card>strong{position:absolute;bottom:8px;left:0;right:0;color:#a7fd80;font-size:22px;text-shadow:0 3px #103149}.upgrade-stat-list{width:230px;display:grid;gap:15px;margin:12px 0;text-align:left}.upgrade-stat-list>div{display:flex;align-items:center;gap:12px}.upgrade-stat-list strong{display:block;font-size:24px}.upgrade-stat-list strong>span{color:#a2f669}.upgrade-stat-list small{font-size:12px}.upgrade-sparks{position:absolute;inset:0;pointer-events:none}.upgrade-sparks i{position:absolute;width:7px;height:7px;background:#aeff73;border-radius:50%;left:var(--x);top:65%;box-shadow:0 0 10px #c3ff96;animation:upgrade-spark 1.2s ease-out both;animation-delay:calc(var(--spark) * 40ms)}.trophy-journey{position:relative;padding-left:26px;color:white}.modal:has(.trophy-journey){background:#1e557c}.trophy-journey:before{content:"";position:absolute;top:60px;bottom:60px;left:8px;width:7px;border:2px solid #82c8eb;border-radius:8px;background:#278ece}.trophy-journey>p{font-size:12px}.journey-step{position:relative;min-height:150px;margin:20px 0;padding:10px;background:linear-gradient(115deg,#4b7955,#89a16b);border:3px solid #5d7253;border-radius:8px;box-shadow:0 7px #304f4d}.journey-step:nth-of-type(2n) .journey-reward{flex-direction:row-reverse}.journey-reward{display:flex;gap:8px;align-items:center;justify-content:space-around;min-height:115px}.journey-reward>img{width:min(110px,44%);height:110px;object-fit:contain}.journey-reward>span{display:grid;justify-items:center;gap:5px}.journey-reward .button{font-size:11px;flex-shrink:0;min-width:80px;padding:10px}.journey-trophies{position:absolute;left:-36px;top:50%;transform:translateY(-50%);font-size:10px;text-shadow:0 2px #17354b;background:#1b5882;padding:5px;border-radius:5px}.choice-preview{position:relative;width:100px;max-width:44%;height:110px}.choice-preview img{position:absolute;width:75%;height:90px;object-fit:contain;background:#659db9;border:2px solid #cbe2ee;border-radius:5px}.choice-preview img:nth-child(2){left:22%;top:10px}.choice-preview strong{position:absolute;bottom:0;right:3px;text-shadow:0 2px #142c41}.journey-arena{text-align:center;padding:20px 5px}.journey-arena>img{width:80%;height:160px;object-fit:contain}.journey-arena h2{margin:12px 0}.journey-arena>strong{display:inline-flex;align-items:center;gap:8px}.arena-unlocks{display:flex;flex-wrap:wrap;justify-content:center;gap:5px}.arena-unlocks img{width:48px;height:58px;object-fit:contain;border:2px solid #759ab6;border-radius:6px;background:#345d7d}@keyframes chest-nudge{0%,to{transform:rotate(0)}30%{transform:rotate(-4deg) scale(.96,1.04)}65%{transform:rotate(3deg) scale(1.03,.97)}}@keyframes chest-open{0%{opacity:.65;transform:scale(.96)}to{opacity:1;transform:scale(1)}}@keyframes chest-glow{0%{opacity:.55;transform:scale(.92)}to{opacity:1;transform:scale(1.06)}}@keyframes reward-card-enter{0%{opacity:0;transform:translateY(14px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes upgrade-spark{0%{opacity:0;transform:translateY(0)}20%{opacity:1}to{opacity:0;transform:translateY(-160px) scale(.4)}}@media (max-width:359px){.free-chests img{width:48px;height:54px}.free-chests strong{font-size:9px}.reward-reveal-row h2{font-size:17px}.reward-overlay{padding-inline:16px}}@media (prefers-reduced-motion:reduce){.copy-progress>span{transition:none}.chest-glow,.chest-nudge,.chest-presentation.opened>img,.reward-reveal-row,.upgrade-sparks i{animation:none!important}.upgrade-sparks{display:none}}.chest-sparks{position:absolute;inset:25% 5%;pointer-events:none}.chest-sparks i{position:absolute;left:var(--x);top:50%;width:5px;height:5px;background:#fff7a0;box-shadow:0 0 9px #ffe05e;animation:chest-spark 1.2s calc(var(--spark) * 40ms) ease-out both}@keyframes chest-spark{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-90px) scale(.3)}}.player-avatar-button{flex-shrink:0;min-width:44px;min-height:44px;display:grid;place-items:center;background:transparent;border:0;padding:0}.clan-player-heading{display:flex;align-items:center;gap:16px;margin-bottom:20px}.clan-player-heading small{display:block;margin-top:8px}.clan-player-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.clan-player-stats div{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 4px;background:#175588;border-radius:12px;color:white}.clan-player-stats small{font-size:9px}.clan-player-deck{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.clan-player-deck div{text-align:center;min-width:0}.clan-player-deck img{width:100%;aspect-ratio:1;object-fit:contain;border-radius:12px}.clan-player-deck small{font-size:9px}.clan-member-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.clan-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}@media (prefers-reduced-motion:reduce){.chest-sparks i{animation:none;display:none}}.battle-chests-heading{margin-top:16px}.battle-chests-heading h3{font-size:12px;margin:0 0 6px}.battle-chests-heading p{font-size:10px;line-height:1.6;color:var(--muted);margin:0}.free-chests>button>span{min-width:0}.free-chests strong{overflow-wrap:normal;line-height:1.5}.clan-garrison{aspect-ratio:1;border:0;box-shadow:none;background:transparent}.clan-garrison-model{inset:0;width:100%;height:100%;object-fit:contain;image-rendering:auto}.clan-garrison .gate-guard{left:36%;top:61%;width:15%}.clan-garrison .courtyard-guard{left:53%;top:57%;width:14%}.battle-hand .game-card>img,.cards-screen .game-card>img,.game-card>img{padding:0;object-fit:cover;border-radius:10px;filter:none}.game-card.unaffordable>img{filter:grayscale(.85) brightness(.7)}.battle-hand .game-card.recharging{opacity:1;background:#7b8087;box-shadow:0 4px 0 #0b304a,inset 0 3px #c5c9cf}.battle-hand .game-card.recharging>img{filter:grayscale(1) brightness(.8)}.battle-hand .recharging .card-level,.battle-hand .recharging .mana-cost{filter:grayscale(1)}.card-recharge{position:absolute;inset:0;z-index:1;border-radius:10px;pointer-events:none;background:conic-gradient(transparent 0deg var(--card-ready-angle),#ffffff8c var(--card-ready-angle) 1turn)}.catalog-portrait,.modal .card-detail-art img,.next-card img{object-fit:cover;border-radius:10px;image-rendering:auto}.battle-emotes{position:absolute;inset:0;z-index:5;pointer-events:none}.battle-emote-toolbar{position:absolute;left:8px;right:8px;bottom:8px}.battle-emote-mute,.battle-emote-options button,.battle-emote-phrases button,.battle-emote-trigger{pointer-events:auto;color:#fff4c2;background:#195b8c;border:2px solid #103b59;box-shadow:inset 0 2px #79bfe2,0 3px #0b2d43;border-radius:10px}.battle-emote-trigger{position:relative;width:48px;height:48px;padding:2px}.battle-emote-trigger img{width:100%;height:100%;object-fit:contain}.battle-emote-trigger>span{position:absolute;inset:0;display:grid;place-items:center;border-radius:inherit;background:#0d294bc9;font-size:20px;text-shadow:0 2px #082337}.battle-emote-picker{position:absolute;left:0;bottom:60px;width:min(304px,100%);padding:8px;background:#123f61;border:2px solid #77bddb;border-radius:18px;box-shadow:0 5px 16px #06213480;pointer-events:auto;animation:battle-emote-open .15s ease-out}.battle-emote-options{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}.battle-emote-options button{min-width:0;min-height:52px;padding:3px 0}.battle-emote-options img{display:block;width:100%;height:42px;object-fit:contain}.battle-emote-phrases{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:8px}.battle-emote-phrases button{min-width:0;min-height:44px;padding:5px;font-size:9px;line-height:1.5;background:#f1f8fc;color:#193b50;box-shadow:0 2px #0b2d43}.battle-emote-options button:disabled,.battle-emote-phrases button:disabled{opacity:.5}.battle-emote-mute{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:44px;margin-top:8px;padding:6px 8px;font-size:10px;text-align:left}.battle-emote-mute[aria-pressed=true]{background:#314f68;color:#d5e3ee}.battle-emote-mute:active,.battle-emote-options button:active,.battle-emote-phrases button:active,.battle-emote-trigger:active{transform:scale(.96)}.battle-emote-bubble{position:absolute;width:clamp(28.8px,8vw,38.4px);aspect-ratio:1;border:1px solid #c7e9ff;border-radius:8px;background:#f1fbfff2;box-shadow:0 2px 0 #123e55,0 2px 6px #0a294a55;animation:battle-emote-open .18s ease-out}.battle-emote-bubble.self{left:12px;bottom:72px}.battle-emote-bubble.enemy{right:8px;top:4px;width:25.6px;border-color:#ffcab7}.battle-emote-bubble.phrase{width:max-content;max-width:min(180px,60%);aspect-ratio:auto;padding:6px 8px;font-size:10px;line-height:1.5;color:#193b50}.audio-credits-link{display:flex;align-items:center;min-height:44px;font-size:10px;color:#c5e3f5}.battle-emote-bubble img{width:100%;height:100%;object-fit:contain;animation:battle-emote-react .45s ease-in-out 3}@keyframes battle-emote-open{0%{opacity:0;transform:translateY(6px) scale(.9)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes battle-emote-react{50%{transform:translateY(-3px) rotate(-3deg)}}@media (prefers-reduced-motion:reduce){.battle-emote-bubble,.battle-emote-bubble img,.battle-emote-picker{animation:none}.battle-emote-mute:active,.battle-emote-options button:active,.battle-emote-phrases button:active,.battle-emote-trigger:active{transform:none}}