/* Account adventure: a compact game shell with independently scrolling scenes. */
.is-online-signed-in{--game-width:560px;--game-head:48px;--game-dock:76px;--game-type:'Wildkin Display','Outfit',sans-serif;background-color:#0b3e83;background-image:radial-gradient(ellipse at 50% 20%,#2274b8,transparent 72%),url('assets/ui/diamond-wall.svg');background-size:auto,128px 128px}
.is-online-signed-in .topbar{position:fixed;z-index:35;left:50%;top:0;transform:translateX(-50%);width:min(100%,var(--game-width));height:calc(var(--game-head) + env(safe-area-inset-top));min-height:0;margin:0;padding:calc(5px + env(safe-area-inset-top)) 12px 5px;display:flex;gap:8px;border-bottom:2px solid #0a2e5d;background:linear-gradient(#216eb4,#104d8c);box-shadow:inset 0 -1px #6aa7d555,0 2px #07295166}
.is-online-signed-in .wordmark{gap:5px;font-size:25px;-webkit-text-stroke:1px #072852;text-shadow:0 2px #062552;letter-spacing:.8px}.is-online-signed-in .brand-emblem{font-size:27px;line-height:1}.is-online-signed-in .adventure-mode{font-size:9px;letter-spacing:.1px;margin-left:auto;margin-right:0;gap:4px}.is-online-signed-in .adventure-mode>span{height:5px;width:5px}.is-online-signed-in .top-actions{margin-left:2px}.is-online-signed-in .keeper-menu{display:grid;place-items:center;min-height:36px;min-width:37px;padding:4px;border:1px solid #98c9ee77;border-radius:8px;background:#0d3f79;color:#ecf8ff;font-size:23px;text-decoration:none;line-height:1}
.is-online-signed-in #online-root{position:fixed;left:50%;top:calc(var(--game-head) + env(safe-area-inset-top));bottom:0;transform:translateX(-50%);width:min(100%,var(--game-width));max-width:var(--game-width);min-height:0;margin:0;padding:0;display:flex;flex-direction:column;isolation:isolate;background:linear-gradient(#164f91aa,#082e6a33);box-shadow:0 0 50px #031b42aa}
.is-online-signed-in #online-content{min-height:0;min-width:0;flex:1;overflow-y:auto;overflow-x:clip;overscroll-behavior-y:contain;padding:8px 12px calc(var(--game-dock) + env(safe-area-inset-bottom) + 18px);scrollbar-width:thin;scrollbar-color:#5b97c0 transparent;-webkit-overflow-scrolling:touch}
.is-online-signed-in>footer{display:none}.is-online-signed-in .resource-bar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));flex:none;gap:7px;width:100%;max-width:none;margin:0;padding:8px 12px 5px;border:0;background:linear-gradient(#16538f,#12437a00);z-index:5}.is-online-signed-in .resource{height:42px;min-width:0;padding:3px 4px 3px 0;gap:2px;border:1px solid #6398c4;border-radius:6px;background:linear-gradient(#123f70,#092b59);box-shadow:inset 0 1px 3px #061c4977,0 2px #09264f}
.is-online-signed-in .resource-art{width:29px;height:33px;min-width:25px;margin-left:-4px;filter:drop-shadow(0 2px #061e4c88)}.is-online-signed-in .resource-label{font-size:8px;color:#bed7f0;line-height:1.1}.is-online-signed-in .resource strong{font-size:19px;line-height:1.2;letter-spacing:.2px;-webkit-text-stroke:.6px #06224b;text-shadow:0 2px #06224b}
.is-online-signed-in .destination-nav{position:absolute;z-index:30;bottom:0;left:0;transform:none;width:100%;height:calc(var(--game-dock) + env(safe-area-inset-bottom));padding:0 0 env(safe-area-inset-bottom);gap:0;border:0;border-top:2px solid #8ab1ce;border-radius:0;background:linear-gradient(#547fa7,#273f64);box-shadow:0 -3px #08264f,0 -8px 20px #061d4377;overflow:visible}
.is-online-signed-in .destination-nav button{height:var(--game-dock);min-height:var(--game-dock);padding:3px 1px 7px;gap:0;border:0;border-right:1px solid #233f66;border-radius:0;background:linear-gradient(#547fa7,#324d73 75%);box-shadow:inset 1px 2px #b1d4e955,inset 0 -3px #1c3659;color:#f6f9ff;font-size:14px;-webkit-text-stroke:.7px #08234a;text-shadow:0 2px #08234a}
.is-online-signed-in .destination-nav svg{width:43px;height:44px;filter:drop-shadow(0 3px #09274f77)}.is-online-signed-in .destination-nav [aria-current=page]{transform:none;border:0;border-right:1px solid #9c6a23;background:linear-gradient(#fff0a0,#f4cc55 65%,#db9f2e);box-shadow:inset 0 2px #fff7c0,inset 0 -4px #b77c1b;text-shadow:0 2px #805416;-webkit-text-stroke:.7px #805416}.is-online-signed-in .destination-nav [aria-current=page] svg{transform:translateY(-2px) scale(1.08)}
.is-online-signed-in .heading-row{min-height:0;padding:9px 12px;margin:4px 0 12px;border-width:2px;border-radius:8px;box-shadow:inset 0 2px #fff9ca,0 3px #092b5b}.is-online-signed-in .heading-row h1{max-width:none;font-size:28px;line-height:1.1}.is-online-signed-in .section-note{font-size:12px;line-height:1.5;margin:0 2px 15px}.is-online-signed-in .panel{padding:16px;border-width:2px;border-radius:11px}.is-online-signed-in .notice{flex:none;margin:4px 12px;padding:8px 10px;font-size:11px;line-height:1.5;max-height:110px;overflow:auto}.recovery-strip{display:flex;align-items:center;justify-content:space-between;gap:8px}.recovery-strip button{flex:none;min-height:34px;padding:5px 8px;font-size:10px}
.game-save-mode{font:500 9px/1.5 'DM Sans',sans-serif!important;text-align:center;color:#bad5ef!important;margin:13px 0 0!important;-webkit-text-stroke:0;text-shadow:none}.keeper-home{position:relative}.keeper-identity{display:flex;align-items:center;gap:8px;margin:1px 0 0;min-height:45px}.keeper-crest{display:grid;place-items:center;flex:none;width:38px;height:42px;filter:drop-shadow(0 2px #061d4488)}.keeper-crest .icon{width:100%;height:100%}.keeper-identity>div{min-width:0;flex:1}.keeper-identity>div>span{display:block;font-size:8px;font-weight:800;letter-spacing:1px;color:#bcd9f3}.keeper-identity h1{font-size:24px;line-height:1.1;margin:3px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-text-stroke:1px #082851;text-shadow:0 2px #082851}.keeper-trophy{display:flex;align-items:center;gap:5px;min-height:37px!important;padding:5px 8px!important;border:1px solid #88a4c677!important;border-radius:7px!important;background:#092e60bb!important;box-shadow:inset 0 1px #7dadd066!important;flex:none}.keeper-trophy .icon{width:24px;height:27px}.keeper-trophy strong{font:400 19px/1 var(--game-type);color:#ffe088}
.keeper-home-stage{position:relative;height:clamp(190px,calc(100dvh - 510px),320px);min-height:190px;margin:2px -9px 0;isolation:isolate}.keeper-arena-stage{position:absolute;inset:0;overflow:hidden;pointer-events:none;isolation:isolate}.arena-sky{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 75%,#8ce8f866,transparent 60%)}.arena-sky i{position:absolute;width:6px;height:6px;background:#b4efff;border:1px solid #efffff;transform:rotate(45deg);opacity:.6;left:15%;top:24%;box-shadow:230px 55px #a3dfff,55px 104px #ffe8a3}.arena-sky i:nth-child(2){left:68%;top:12%;width:3px;height:3px}.arena-sky i:nth-child(3){left:29%;top:55%;width:4px;height:4px}.arena-island{position:absolute;left:50%;top:36%;width:74%;height:54%;transform:translateX(-50%);border-radius:45%;background:radial-gradient(ellipse,#90eaff55,transparent 72%)}.arena-ring{position:absolute;left:8%;right:8%;bottom:0;height:36%;border:2px solid #61bbdf66;border-radius:50%;box-shadow:0 0 20px #8af0f233,inset 0 0 20px #8af0f233}.arena-board{position:absolute;inset:12% 6% 13%;transform:perspective(420px) rotateX(38deg) rotateZ(-8deg);border:6px solid #e0bc6a;border-radius:22px;background:repeating-linear-gradient(0deg,transparent 0 31px,#d2d8a126 32px 33px),repeating-linear-gradient(90deg,#89af7166 0 31px,#b5d68955 32px 33px),#497a65;box-shadow:inset 0 0 0 4px #446760,0 12px #294a55,0 17px #0a2c4a,0 23px 16px #061b4c77}.arena-river{position:absolute;inset:43% 0 41%;background:linear-gradient(#2ca8c9,#6acbdd);box-shadow:0 -2px #1c6d8499,0 2px #badfbc66}.arena-bridge{position:absolute;top:39%;width:14%;height:24%;border:2px solid #82572e;border-radius:2px;background:repeating-linear-gradient(0deg,#c99b56 0 4px,#e7b96c 5px 6px)}.arena-bridge.one{left:18%}.arena-bridge.two{right:18%}.arena-tower{position:absolute;z-index:2;width:47px;height:53px;transform:rotateZ(8deg) rotateX(-20deg);filter:drop-shadow(0 4px #203d4c88)}.arena-tower .icon{width:100%;height:100%}.arena-tower.north{left:13%;top:-20%}.arena-tower.south{right:11%;bottom:-12%}.arena-champion{position:absolute;left:50%;top:0;bottom:5%;width:67%;transform:translateX(-50%);z-index:3;display:flex;align-items:flex-end;justify-content:center}.arena-champion img{width:100%;height:100%;object-fit:contain;object-position:center bottom;max-width:none;filter:drop-shadow(0 11px 6px #082751aa)}.arena-companions{position:absolute;left:21%;right:15%;bottom:9%;height:32%;display:flex;align-items:flex-end;justify-content:space-between;z-index:4}.arena-companions img{width:90px;height:100%;object-fit:contain;filter:drop-shadow(0 6px 4px #09254a99)}.arena-stage-glow{position:absolute;z-index:-1;left:12%;right:12%;top:12%;bottom:0;border-radius:50%;background:radial-gradient(ellipse,#5ed8e83b,transparent 70%)}.home-stage-title{position:absolute;left:0;right:0;top:2%;z-index:5;text-align:center;pointer-events:none}.home-stage-title>span{font-size:8px;font-weight:800;letter-spacing:2px;color:#b0daf5}.home-stage-title h2{font-size:24px;line-height:1.1;margin:3px 0;text-shadow:0 3px #082a53;-webkit-text-stroke:1px #082a53}.keeper-home-stage .arena-champion{top:20%;bottom:8%}.home-stage-services{position:absolute;z-index:6;left:7px;right:7px;top:38%;display:flex;align-items:flex-start;justify-content:space-between;pointer-events:none;gap:5px}.home-stage-services .home-service{pointer-events:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:58px;min-height:77px;padding:4px 3px;border:0;border-radius:11px;background:linear-gradient(#407cb6aa,#17497caa);box-shadow:inset 0 1px #9fc9ed66,0 3px #092c5b77;color:#eaf6ff;text-shadow:0 1px #092b54}.home-service .icon{width:42px;height:43px;filter:drop-shadow(0 3px #06224f88)}.home-service>span{font-size:9px;font-weight:800;line-height:1.4}.home-service>small{font-size:8px;color:#c4e2f8;line-height:1.4}.home-service.ready{box-shadow:inset 0 0 0 1px #ffe89b99,0 3px #092c5b77}.home-service.ready>small{color:#ffe894}.home-service:disabled{opacity:.7}.home-stage-services .home-service:nth-child(2){margin-top:34px;margin-left:auto;margin-right:-2px}.home-stage-services .home-service:nth-child(3){margin-top:-10px}
.home-battle-dock{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 78px;gap:9px;margin:5px 0 10px}.home-battle-button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:73px!important;padding:8px 13px!important;border-radius:11px!important}.home-battle-button>.icon{width:40px;height:46px;flex:none}.home-battle-button>span{flex:1;min-width:0;text-align:left}.home-battle-button strong{display:block;font:400 35px/1 var(--game-type);color:#fff5ce;-webkit-text-stroke:1.4px #6b4217;text-shadow:0 2px #925d1e}.home-battle-button small{display:block;font:800 8px/1.4 'DM Sans',sans-serif;color:#714715;letter-spacing:.6px;-webkit-text-stroke:0;text-shadow:none;margin-top:4px}.home-battle-button>b{font:400 31px/1 var(--game-type)}.home-deck-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-height:73px!important;padding:4px!important;border-radius:10px!important;background:linear-gradient(#397ab5,#1f518b)!important;border-color:#0c2f60!important}.home-deck-button>.icon{width:41px;height:45px}.home-deck-button>span{font-size:10px;font-weight:800}
.home-next{display:flex;align-items:center;gap:8px;width:100%;min-height:36px;padding:8px 10px;margin:0 0 10px;border:1px solid #86b5d766;border-radius:8px;background:#123c70aa;box-shadow:inset 0 1px #86b5d744;color:#d7ecff;font:600 11px/1.4 'DM Sans',sans-serif;text-align:left}.home-next-spark{color:#ffe498;font-size:15px}.home-next>span:nth-child(2){flex:1}.home-next>b{font-size:19px;color:#ffe4a0}.home-secondary{display:grid;grid-template-columns:1fr 1fr;gap:9px}.home-secondary button{display:flex;align-items:center;gap:7px;justify-content:center;min-height:45px;padding:6px 4px;border:1px solid #759bc777;border-radius:8px;background:linear-gradient(#2c6198,#204a7e);box-shadow:inset 0 1px #97c5e255,0 2px #0b2d59;font-size:10px;font-weight:800}.home-secondary .icon{height:29px;width:28px}.compact-recovery{justify-content:space-between}.compact-recovery strong{font-size:11px}.compact-recovery button{min-height:32px;padding:5px 8px;font-size:10px}
.battle-lobby{max-width:520px;margin:0 auto}.lobby-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:1px 0 9px}.lobby-heading h1{margin:0;font-size:30px;line-height:1.1}.lobby-help{min-height:35px;padding:6px 9px;font-size:10px;box-shadow:inset 0 1px #b0ddf466,0 2px #082c5b}.battle-mode-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:4px;border:1px solid #70a6d366;border-radius:10px;background:#092e625e}.battle-mode-tabs button{min-height:40px;padding:8px 5px;border:0;border-radius:7px;background:transparent;box-shadow:none;color:#c7dff8;font-size:13px;font-weight:800}.battle-mode-tabs [aria-pressed=true]{background:linear-gradient(#ffe795,#edbe44);box-shadow:inset 0 1px #fff8c4,0 2px #9e6b22;color:#543817;text-shadow:none}
.lobby-stage{position:relative;min-height:clamp(129px,calc(100dvh - 540px),205px);margin:2px -8px 4px;padding:17px 10px;display:flex;align-items:center;overflow:hidden}.lobby-stage>.keeper-arena-stage{left:40%;right:-16%;top:-15%;bottom:-12%;opacity:.96}.lobby-stage>.keeper-arena-stage .arena-champion{width:83%;top:5%;bottom:7%;left:55%}.lobby-stage>.keeper-arena-stage .arena-island{width:80%;left:56%;height:50%;top:46%}.lobby-stage>div:last-child{position:relative;z-index:6;max-width:57%;text-shadow:0 2px #092f5c}.lobby-stage .eyebrow{font-size:8px;letter-spacing:.8px}.lobby-stage h2{font-size:27px;line-height:1.1;margin:5px 0 7px}.lobby-stage p{font-size:10px;line-height:1.5;color:#d2e7fb;margin:0;max-width:165px}.lobby-deck{padding:10px 9px 8px;border:1px solid #6f9fc7;border-radius:10px;background:linear-gradient(#174b82,#0b3468);box-shadow:inset 0 1px #9dc5e255,0 3px #08264e;margin:0 0 13px}.lobby-deck>div:first-child{display:flex;align-items:center;justify-content:space-between;margin:0 0 7px;gap:8px}.lobby-deck>div:first-child>span{font-size:8px;font-weight:800;letter-spacing:1px;color:#c0daf3}.lobby-deck>div:first-child>button{min-height:27px;padding:3px 5px;border:0;background:none;box-shadow:none;font-size:10px;color:#ffe69d}.lobby-deck-cards{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px}.lobby-deck-cards>span{position:relative;display:block;height:49px;border:1px solid #e4c16c;border-radius:5px;background:linear-gradient(#6592bd,#183f77);overflow:visible;box-shadow:inset 0 0 0 1px #413f3a,0 2px #082750}.lobby-deck-cards img{height:100%;width:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 2px #102a4f66)}.lobby-deck-cards small{position:absolute;left:-3px;top:-4px;display:grid;place-items:center;width:15px;height:17px;border:1px solid #eed0ff;border-radius:50%;background:linear-gradient(#d88ef8,#8b3cbb);color:#fff5ff;font:400 11px/1 var(--game-type);text-shadow:0 1px #42206a}.lobby-loadouts{display:flex;align-items:center;gap:6px;margin:10px 0 0}.lobby-loadouts button{min-width:31px;min-height:29px;padding:4px;border:1px solid #5b85b0;border-radius:5px;font:400 15px/1 var(--game-type);box-shadow:inset 0 1px #98c8ed66,0 2px #082950}.lobby-loadouts [aria-pressed=true]{background:linear-gradient(#ffe99d,#efc251);color:#5b3e1c;border-color:#d2a349;text-shadow:none}.lobby-loadouts>span{margin-left:auto;font-size:9px;color:#aecce8}.lobby-start{padding:0 0 2px}.lobby-primary{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:58px!important;padding:8px 12px!important;font-size:27px!important;border-radius:10px!important}.lobby-primary>.icon{width:33px;height:35px}.lobby-mode-note{font-size:9px!important;line-height:1.4!important;text-align:center;color:#d0e4f9!important;margin:8px 0 12px!important}.lobby-trail{margin:9px 0 0!important;border-width:1px!important;border-radius:8px!important}.lobby-trail>summary{min-height:44px;padding:10px!important;font-size:11px!important}.lobby-trail>summary strong{font-size:12px}.lobby-trail>summary span{font-size:9px}.battle-lobby .progress-row{padding:12px 9px;gap:8px}.battle-lobby .progress-row h3{font-size:19px}.battle-lobby .progress-row p{font-size:10px;line-height:1.5}.battle-lobby .progress-row .pill{font-size:8px;margin:0 0 4px}.battle-lobby .progress-row button{font-size:11px;min-height:38px;padding:7px 10px}.battle-lobby .friend-options{margin:10px 0 0;padding:0;border:1px solid #779bca66;border-radius:8px;background:#0c346b66}.battle-lobby .friend-options>summary{padding:11px;min-height:42px;font-size:11px}.battle-lobby .friend-options>button,.battle-lobby .friend-options>label,.battle-lobby .friend-options>div{margin:9px 11px;max-width:calc(100% - 22px)}.battle-lobby .friend-options>button{font-size:11px;min-height:40px}.battle-lobby .friend-options>label{display:block;font-size:10px}.battle-lobby .friend-join{flex-wrap:nowrap!important;gap:7px}.battle-lobby .friend-join input{flex:1;min-width:0;width:100%;font-size:13px;min-height:43px}.battle-lobby .friend-join button{min-height:43px;font-size:11px;padding:8px 10px}.lobby-blocked{font-size:11px;line-height:1.5;text-align:center;color:#ffe4a6;background:#173d6a88;border-radius:7px;padding:8px}.battle-lobby .pvp-waiting{margin:13px 0;padding:16px}.battle-lobby .pvp-waiting h2{font-size:26px}.battle-lobby .pvp-waiting p{font-size:11px;line-height:1.5}.battle-lobby .pvp-waiting .invite-code{font-size:30px;padding:8px 0}
/* Battle scenes own the viewport; long menus and ordinary pages keep a scrollable pane. */
.is-online-battle .topbar,.is-online-results .topbar{display:none}.is-online-battle #online-root,.is-online-results #online-root{top:0;bottom:0;max-width:760px;width:min(100%,760px);padding:0;background:#082950}.is-online-battle #online-content{padding:0;overflow:hidden;display:flex;flex-direction:column}.battle-game{height:100%;min-height:0;display:flex;flex-direction:column;position:relative;background:radial-gradient(ellipse at 50% 35%,#22639b,#092d5b);color:#f7f6e7}.battle-game-hud{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;min-height:calc(54px + env(safe-area-inset-top));padding:calc(6px + env(safe-area-inset-top)) 10px 5px;background:linear-gradient(#1e5895,#0d386d);border-bottom:1px solid #5f8bae77;box-shadow:inset 0 -2px #082a5b}.battle-rival{display:flex;align-items:center;gap:6px;min-width:0;flex:1}.battle-rival-badge{width:30px;height:34px;flex:none}.battle-rival-badge .icon{width:100%;height:100%}.battle-rival>span:last-child{min-width:0}.battle-rival strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:1.4;max-width:210px;color:#fff1c5}.battle-rival small{display:block;font-size:8px;color:#a7c7e5;line-height:1.5;font-weight:750;letter-spacing:.5px}.battle-game #battle-clock{flex:none;display:grid;place-items:center;min-width:62px;min-height:35px;padding:4px 7px;border:1px solid #4d7caa;border-radius:7px;background:#082954;font:400 25px/1 var(--game-type);color:#fff7db;text-shadow:0 2px #051d41;font-variant-numeric:tabular-nums}.battle-game .battle-menu-button{display:grid;place-items:center;flex:none;min-width:39px;min-height:37px;padding:4px;border:1px solid #7fadd0;border-radius:7px;background:linear-gradient(#3975a8,#205184);box-shadow:inset 0 1px #accfe466,0 2px #092a52;font-size:21px;color:#edf7ff}.battle-crown-line{display:flex;align-items:center;justify-content:center;gap:11px;height:25px;flex:none;padding:2px 8px;background:#08274dcc;font-size:10px;color:#d3e7f8}.battle-crown-line strong{font:400 17px/1 var(--game-type);color:#ffe49b;margin:0 3px}.battle-crown-line>.icon,.battle-crown-line>span>.icon{width:20px;height:22px}.battle-playfield{position:relative;flex:1;min-height:110px;isolation:isolate;overflow:hidden}.battle-game #online-arena{display:block;width:100%!important;height:100%!important;max-height:none!important;aspect-ratio:auto!important;margin:0;border:0;border-radius:0;touch-action:none;background:radial-gradient(ellipse,#296d8b,#123d64)}.battle-playfield canvas:not(#online-arena){z-index:1}.battle-countdown{position:absolute;z-index:5;left:50%;top:42%;transform:translate(-50%,-50%);font:400 75px/1 var(--game-type);color:#ffe89c;-webkit-text-stroke:2px #83531d;paint-order:stroke fill;text-shadow:0 4px #072c52;pointer-events:none}.battle-countdown:empty{display:none}.battle-connection{position:absolute;z-index:6;left:12px;right:12px;top:8px;text-align:center;max-width:430px;margin:0 auto;padding:7px 9px;border:1px solid #94b4d366;border-radius:7px;background:#082b58e8;color:#e3efff;font-size:10px;line-height:1.5;pointer-events:none}.battle-connection:empty{display:none}.battle-connection-actions{position:absolute;z-index:7;left:15px;right:15px;top:55px;display:flex;justify-content:center;gap:8px}.battle-connection-actions:has(button){padding:4px}.battle-connection-actions button{font-size:11px;min-height:38px;padding:6px 10px}
.battle-controls{position:relative;z-index:8;flex:none;padding:6px 9px calc(7px + env(safe-area-inset-bottom));background:linear-gradient(#143f73,#082650);border-top:2px solid #73a6cc;box-shadow:0 -3px #08254c,0 -8px 25px #031b4266}.battle-energy-line{display:flex;align-items:center;gap:7px;margin:0 2px 7px;min-height:20px}.battle-energy-line>span{color:#e193ff;font-size:19px;text-shadow:0 1px #481a7a}.battle-energy-line>strong{font-size:12px;line-height:1.2;min-width:39px;font-variant-numeric:tabular-nums;color:#f2d7ff}.battle-energy-track{height:12px;position:relative;flex:1;border:1px solid #bd80e4;border-radius:5px;background:repeating-linear-gradient(90deg,transparent 0 calc(10% - 1px),#783b9d 10%),#25184b;overflow:hidden;box-shadow:inset 0 2px #071a3699}.battle-energy-track>i{display:block;height:100%;width:50%;background:repeating-linear-gradient(90deg,transparent 0 calc(10% - 1px),#9e5ac9 10%),linear-gradient(#efb7ff,#af60e4);box-shadow:inset 0 1px #ffdfff}.battle-energy-line>small{font-size:10px;color:#eed3ff;min-width:16px}.battle-controls .hand{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0;padding:0;border:0}.battle-controls .battle-hand-card{position:relative;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-end;height:101px;min-height:0;padding:0;border:2px solid #b2c4d7;border-radius:8px;background:radial-gradient(ellipse at 50% 25%,color-mix(in srgb,var(--ally-glow,#9bddff) 45%,#154f88),#1a3d72 75%);box-shadow:inset 0 0 0 1px #113567,0 3px #041d40;overflow:visible;text-align:center;transform:none;isolation:isolate}.battle-hand-card .hand-portrait{display:block;position:absolute;inset:0 0 16px;overflow:hidden;border-radius:6px;z-index:-1}.hand-portrait img{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 3px #102b4d77)}.battle-hand-card>strong{display:flex;align-items:center;justify-content:center;min-height:23px;padding:3px 1px;background:linear-gradient(#0d376daa,#082958f2);border-radius:0 0 5px 5px;color:#f3f7ff;font:750 8px/1.2 'DM Sans',sans-serif;text-shadow:0 1px #041c42;overflow:hidden}.battle-hand-card .hand-energy{position:absolute;z-index:3;top:-6px;left:-5px;display:grid;place-items:center;width:25px;height:27px;border:2px solid #f0b7ff;border-radius:50%;background:linear-gradient(#e69bff,#9a45c9);box-shadow:0 2px #371b68;color:#fff;font:400 19px/1 var(--game-type);text-shadow:0 2px #5d237a}.hand-shortcut{position:absolute;right:4px;top:3px;font-size:8px;color:#e3f0fc;opacity:.7}.battle-controls .battle-hand-card.selected{transform:translateY(-4px);border-color:#ffe36d;box-shadow:inset 0 0 0 1px #b17e25,0 3px #70501e,0 0 13px #ffdf6f55}.battle-hand-card.needs-energy .hand-portrait{filter:saturate(.5);opacity:.65}.battle-hand-card.needs-energy>.hand-energy{background:linear-gradient(#ad91c2,#705580);border-color:#b39dc7}.battle-hand-card:disabled{opacity:.65}.battle-lane-actions{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:7px 0 0}.battle-lane-actions button{min-height:30px;min-width:79px;padding:5px 7px;border:1px solid #5687b6;border-radius:6px;background:linear-gradient(#28639e,#183f75);box-shadow:inset 0 1px #a1cde955,0 2px #041f45;font-size:9px;line-height:1.2}.battle-lane-actions>span{font-size:9px;font-weight:750;line-height:1.3;text-align:center;color:#c2daf0;min-width:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.game-battle-dialog{width:min(370px,calc(100vw - 28px));max-height:calc(100dvh - 36px);margin:auto;padding:20px 17px;border:2px solid #99c5e6;border-radius:13px;background:linear-gradient(#215b98,#10336a);box-shadow:inset 0 2px #c9e9fa66,0 5px #061f46,0 15px 70px #0008;color:#eff7ff;overflow:auto}.game-battle-dialog::backdrop{background:#031225bd;backdrop-filter:blur(3px)}.game-battle-dialog h2{font-size:31px;line-height:1.1;margin:0 0 13px}.game-battle-dialog p{font-size:12px;line-height:1.6;color:#cde2f7}.battle-continues{padding:9px;border:1px solid #ddbe6755;border-radius:7px;background:#13406b;color:#ffe6a0!important}.game-dialog-menu{display:flex;flex-direction:column;gap:12px;margin-top:19px}.game-dialog-menu button,.game-dialog-actions button{min-height:45px;font-size:13px}.game-dialog-actions{display:flex;gap:9px;margin-top:17px}.game-dialog-actions button{flex:1;padding:10px 8px}.game-dialog-actions button.primary{font-size:20px}.game-battle-help{margin:0;padding-left:22px}.game-battle-help li{padding:5px 0;color:#d4e8fa;font-size:12px;line-height:1.6}.game-battle-help strong{color:#fff1b8}.keyboard-help{font-size:10px!important;border-top:1px solid #a0c2df55;padding-top:11px;margin-top:12px}
.is-online-results #online-content{padding:calc(18px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom));overflow-y:auto;background:radial-gradient(ellipse at 50% 20%,#4356a9,#0b285a 75%)}.battle-results{position:relative;max-width:410px;min-height:100%;margin:0 auto;text-align:center;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:center}.results-light{position:absolute;z-index:-1;left:-10%;right:-10%;top:0;height:50%;background:radial-gradient(ellipse,#b09bea3b,transparent 70%);pointer-events:none}.results-mode{font-size:9px;font-weight:800;letter-spacing:1.4px;color:#c1d6f7}.results-trophy{height:91px;width:101px;margin:12px 0 8px;filter:drop-shadow(0 9px 7px #08214aaa)}.results-trophy .icon{width:100%;height:100%}.battle-results h1{font-size:49px;line-height:1.1;color:#ffe6a0;margin:0 0 4px;-webkit-text-stroke:1.7px #805421;text-shadow:0 4px #6f441d}.battle-results.enemy h1{font-size:42px;color:#f1edff;-webkit-text-stroke-color:#242c62;text-shadow:0 3px #242c62}.results-opponent{font-size:12px;line-height:1.5;color:#d6e6fb;margin:0 0 14px}.results-crowns{display:flex;align-items:center;justify-content:center;gap:20px;width:100%;max-width:260px;padding:10px 15px;border:1px solid #a4abd977;border-radius:12px;background:linear-gradient(#1b4280aa,#102d61aa);box-shadow:inset 0 1px #c2d3ee44}.results-crowns>div{display:flex;align-items:center;gap:8px;flex:1}.results-crowns>div:last-child{flex-direction:row-reverse}.results-crowns>div>span{font-size:11px;color:#c5d9f4}.results-crowns strong{font:400 36px/1 var(--game-type);color:#fff6cf}.results-crowns>span{width:37px;height:40px}.results-crowns .icon{width:100%;height:100%}.results-reason{font-size:10px;color:#c8ddf6;margin:9px 0 14px}.results-rewards{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;width:100%;padding:12px 15px;background:#0b285c88;border:1px solid #7697c288;border-radius:10px}.results-rewards>div{display:grid;grid-template-columns:30px auto;grid-template-rows:auto auto;align-items:center;gap:0 4px;text-align:left}.results-rewards .icon{grid-row:span 2;width:28px;height:31px}.results-rewards strong{font:400 22px/1 var(--game-type);color:#ffe69b}.results-rewards span{font-size:9px;color:#bdd4ed;line-height:1.5}.results-saved{font-size:9px;color:#bbd9ed;margin:8px 0 13px}.results-reward-note{display:flex;flex-direction:column;gap:5px;padding:12px;border:1px solid #8e9bc177;border-radius:9px;background:#153970aa;width:100%;margin:0 0 15px}.results-reward-note strong{font-size:12px;color:#ffe9ad}.results-reward-note span{font-size:11px;line-height:1.5;color:#ccdef4}.results-actions{display:grid;grid-template-columns:1fr 1fr;gap:11px;width:100%;margin:9px 0 0}.results-actions button{min-height:44px;font-size:13px;border-radius:8px}.results-actions .primary{grid-column:span 2;font-size:28px;min-height:56px}.results-account-note{font-size:9px;color:#9cbedf;margin:16px 0 0;line-height:1.5}.results-refresh{margin:0 0 7px;font-size:12px;min-height:38px}
@media(max-width:374px){.is-online-signed-in{--game-head:45px;--game-dock:72px}.is-online-signed-in .resource-bar{padding:6px 10px 4px;gap:6px}.is-online-signed-in .resource{height:39px}.is-online-signed-in .resource-art{width:26px;height:30px;min-width:23px}.is-online-signed-in .resource strong{font-size:18px}.is-online-signed-in #online-content{padding-left:10px;padding-right:10px}.is-online-signed-in .adventure-mode{font-size:8px}.is-online-signed-in .wordmark{font-size:23px}.keeper-identity h1{font-size:22px}.home-stage-title h2{font-size:23px}.home-battle-button strong{font-size:32px}.home-battle-button{min-height:67px!important;padding:8px 10px!important}.home-deck-button{min-height:67px!important}.lobby-stage{min-height:122px}.lobby-stage h2{font-size:25px}.lobby-deck-cards>span{height:44px}.lobby-deck{margin-bottom:12px;padding-top:8px}.lobby-primary{min-height:54px!important;font-size:25px!important}.battle-controls .hand{gap:7px}.battle-controls .battle-hand-card{height:94px}.battle-hand-card>strong{font-size:7.5px}.battle-lane-actions>span{font-size:8px}.battle-rival strong{max-width:160px}.battle-game #battle-clock{font-size:23px;min-width:57px}}
@media(max-height:690px){.keeper-home-stage{height:185px;min-height:185px}.keeper-home .game-save-mode{display:none}.keeper-home .home-secondary{margin-bottom:0}.keeper-identity{min-height:39px}.keeper-home .home-next{min-height:32px;padding:6px 9px;margin-bottom:8px}.home-battle-dock{margin-top:0}.battle-lobby .lobby-stage{min-height:117px;padding-top:10px;padding-bottom:10px}.lobby-stage h2{font-size:24px}.lobby-stage p{font-size:9px}.lobby-deck-cards>span{height:43px}.lobby-loadouts{margin-top:8px}.lobby-mode-note{margin-bottom:9px!important}.results-trophy{height:69px;width:80px;margin:8px 0 6px}.battle-results h1{font-size:43px}.results-opponent{margin-bottom:10px}.results-crowns{padding:7px 12px}.results-reason{margin-bottom:10px}.results-rewards{padding-top:9px;padding-bottom:9px}.results-actions{gap:9px}.results-actions .primary{min-height:49px;font-size:26px}.results-account-note{margin-top:12px}}
@media(max-height:440px) and (orientation:landscape){.battle-game-hud{min-height:43px;padding-top:4px}.battle-controls{padding-top:4px}.battle-controls .battle-hand-card{height:71px}.battle-hand-card .hand-portrait{bottom:15px}.battle-hand-card>strong{min-height:18px;font-size:8px}.battle-energy-line{margin-bottom:5px;min-height:18px}.battle-lane-actions{margin-top:5px}.battle-lane-actions button{min-height:27px}.battle-crown-line{height:21px}.battle-rival small{font-size:7px}}
@media(min-width:700px){.is-online-signed-in{--game-width:560px}.keeper-home-stage{max-height:320px}.battle-controls .battle-hand-card{height:113px}.battle-controls{padding-left:20px;padding-right:20px}.battle-controls .hand{gap:14px}.battle-hand-card>strong{font-size:11px}.battle-rival strong{max-width:370px}.battle-hand-card .hand-shortcut{font-size:10px}.battle-lane-actions button{min-height:34px;font-size:11px}.battle-lane-actions>span{font-size:11px}}
@media(prefers-reduced-motion:reduce){.keeper-arena-stage *,.battle-results *,.battle-controls *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

body:not(.is-online-signed-in) .keeper-menu{display:none}.is-online-signed-in .offline-switch{display:none}.is-online-signed-in #online-status{max-width:min(450px,calc(100vw - 26px));padding:10px 13px;font-size:12px;pointer-events:none}.is-online-battle #online-status{bottom:calc(191px + env(safe-area-inset-bottom));font-size:11px;padding:8px 11px}.battle-hand-card>strong{font-size:9px}.battle-lane-actions button{min-height:38px}.lobby-loadouts button{min-width:35px;min-height:34px}

.battle-action-recovery{display:flex;align-items:center;justify-content:space-between;gap:9px;max-width:340px;padding:8px 9px;border:1px solid #e9c976;border-radius:8px;background:#0b2d5bea;box-shadow:0 3px #061d42;color:#ffebb7;font:650 10px/1.5 'DM Sans',sans-serif}.battle-action-recovery>span{min-width:0;flex:1}.battle-action-recovery button{flex:none;min-height:36px;font-size:10px;padding:6px 8px}.battle-connection-actions{flex-wrap:wrap}.results-action-recovery{display:flex;align-items:center;justify-content:space-between;gap:9px;width:100%;margin:0 0 10px;padding:10px;border:1px solid #dfc480;border-radius:8px;background:#143569;color:#ffe7ad;font-size:11px;line-height:1.5}.results-action-recovery button{flex:none;min-height:39px;padding:7px 9px;font-size:11px}
.battle-placement-status{position:absolute;z-index:10;left:9px;right:9px;bottom:calc(100% + 7px);margin:0;padding:7px 9px;border:1px solid #ffe188;border-radius:8px;background:#153659ed;color:#ffe9ad;font:650 11px/1.4 'DM Sans',sans-serif;text-align:center;pointer-events:none;box-shadow:0 3px 12px #051c4655}.battle-placement-status[hidden]{display:none}.battle-hand-card.deployment-pending::after{content:'Sending';position:absolute;z-index:4;top:30px;left:2px;right:2px;padding:4px 1px;border-radius:4px;background:#082b58e8;color:#ffe49b;font:750 9px/1.2 'DM Sans',sans-serif;pointer-events:none}

/* Optional composition choices stay collapsed until requested. */
.tactical-deck-styles{margin:8px 0;padding:10px 14px;border:1px solid #81b9d480;border-radius:12px;background:#0b2f50}.tactical-deck-styles summary{cursor:pointer;font-weight:700}.tactical-style-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}.tactical-style-buttons button{min-height:44px;font-size:14px;padding:8px 4px}
