/* Button system (lobby look) — one style per role across every screen.
   primary  : gold fill, dark text           (저장, 상자 상점, 조합, 가격)
   secondary: slate chip, light text          (닫기, 구매내역, 일괄 강화, 음소거, 작전 브리핑 …)
   selected : gold fill (same as primary)     (active tabs / presets / filters)
   card     : dark card, 8px corners          (unit tiles, upgrade cards)
   All: 8px corners, raised 2–3px, press sinks. Layout (size/padding) is left to each screen. */
:root{--b-r1018:8px;--b-line1018:#5B7385;--b-top1018:#3A4E5E;--b-bot1018:#26343F;--b-text1018:#ECE6D6;
 --b-g1-1018:#F0C060;--b-g2-1018:#D9A23F;--b-gline1018:#FFE7A0;--b-gdeep1018:#6b4c16;--b-gtext1018:#1A1408}

/* ---------- secondary ---------- */
html body :is(
 #tutorial260 .tutorial-actions260>button,#journey264 .tutorial-actions260>button,
 #releasePanel .release-panel-head>button,#releasePanel .billing-toolbar560>button,
 #releasePanel .deck-presets566>button,#releasePanel .deck-races>button,#releasePanel .deck-panel>button,
 #releasePanel .relationship-deck>button,#releasePanel .relationship-tabs>button,#releasePanel .relationship-skills>button,
 #releasePanel .work-races050>button,#releasePanel .work-list>button,#releasePanel .work-toolbar089 .secondary,
 #releasePanel .shop-nav>.icon-button045,#releasePanel .story-map-primary185,#releasePanel .story-map-locate185,
 #releasePanel .settings-nav1017>.settings-tab1017,#releasePanel .audio-mute1018,
 #atlasV3 .close,#atlasV3 .v3-zoom button,#atlasV3 .flow-nav048 button,
 #result .result-card>.close,#rosterPanel .close,#synergyGuide .close){
 border:1px solid var(--b-line1018)!important;border-image:none!important;border-radius:var(--b-r1018)!important;
 background:linear-gradient(180deg,var(--b-top1018),var(--b-bot1018))!important;color:var(--b-text1018)!important;text-shadow:0 1px 0 #000!important;
 box-shadow:inset 0 1px 0 rgba(255,240,200,.12),0 2px 0 #0a1018!important;filter:none!important;image-rendering:auto;
 font-weight:700!important;transition:transform .08s ease-out,filter .08s ease-out,box-shadow .08s ease-out!important;cursor:pointer}

/* ---------- selected (gold) + primary ---------- */
html body :is(
 #tutorial260 .tutorial-actions260>#tutorialAction260,#journey264 .tutorial-actions260>#journeyAction264,
 #releasePanel .deck-presets566>button.active,#releasePanel .deck-races>button.active,
 #releasePanel .relationship-tabs>button.active,#releasePanel .relationship-skills>button.active,
 #releasePanel .work-races050>button.active,#releasePanel .work-list>button.active,
 #releasePanel .shop-nav>.icon-button045.active,#releasePanel .settings-nav1017>.settings-tab1017.active,
 #releasePanel button.primary,#atlasV3 .v3-craft,#releasePanel .product-price052){
 border:1px solid var(--b-gline1018)!important;border-image:none!important;border-radius:var(--b-r1018)!important;
 background:linear-gradient(180deg,var(--b-g1-1018),var(--b-g2-1018))!important;color:var(--b-gtext1018)!important;text-shadow:0 1px 0 rgba(255,240,200,.45)!important;
 box-shadow:inset 0 1px 0 rgba(255,250,220,.55),0 3px 0 var(--b-gdeep1018)!important;filter:none!important;font-weight:700;
 transition:transform .08s ease-out,filter .08s ease-out,box-shadow .08s ease-out!important;cursor:pointer}
/* text/labels inside gold buttons stay dark; icons untouched */
html body :is(#releasePanel .settings-nav1017>.settings-tab1017.active,#releasePanel .work-list>button.active,#releasePanel .shop-nav>.icon-button045.active) :is(small,span:not([class*=badge]):not([class*=new])){color:var(--b-gtext1018)!important;text-shadow:none!important}
html body #releasePanel .settings-nav1017>.settings-tab1017.active small{color:#4a3510!important}

/* ---------- press + focus + disabled (all of the above) ---------- */
html body :is(#releasePanel,#atlasV3,#result,#rosterPanel,#synergyGuide) :is(.release-panel-head>button,.billing-toolbar560>button,.deck-presets566>button,.deck-races>button,.deck-panel>button,.relationship-deck>button,.relationship-tabs>button,.relationship-skills>button,.work-races050>button,.work-list>button,.work-toolbar089 .secondary,.shop-nav>.icon-button045,.story-map-primary185,.story-map-locate185,.settings-tab1017,.audio-mute1018,.close,.v3-zoom button,.flow-nav048 button,button.primary,.v3-craft,.product-price052):not(:disabled):active{
 transform:translateY(2px)!important;box-shadow:inset 0 2px 3px rgba(0,0,0,.35)!important;filter:brightness(.93)!important}
html body :is(#releasePanel,#atlasV3,#result,#rosterPanel) :is(.close,button.primary,.v3-craft,.product-price052,.settings-tab1017,.release-panel-head>button):focus-visible{outline:2px solid #FFF0B8!important;outline-offset:2px}
html body :is(#releasePanel,#atlasV3) :is(button.primary,.v3-craft,.secondary,.flow-nav048 button,.audio-mute1018):disabled{filter:saturate(.35) brightness(.75)!important;box-shadow:none!important;cursor:default}
@media (hover:hover){html body :is(#releasePanel .release-panel-head>button,#releasePanel .shop-nav>.icon-button045,#releasePanel .settings-tab1017,#releasePanel button.primary,#releasePanel .product-price052,#atlasV3 .close,#atlasV3 .v3-craft,#atlasV3 .flow-nav048 button):not(:disabled):hover{filter:brightness(1.1)!important}}

/* ---------- cards: same corner language ---------- */
html body #releasePanel :is(.deck-unit-list>button,.work-card076,.relationship-unit,.story-map-node185){border-radius:var(--b-r1018)!important;border-image:none!important}
html body #releasePanel .deck-unit-list>button{background:linear-gradient(180deg,#22303C,#18222C)!important;border:1px solid #3E4F5C!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 2px 0 #0a1018!important}
html body #releasePanel .deck-unit-list>button.active{border:2px solid #E3B04B!important;box-shadow:0 0 0 1px rgba(227,176,75,.25),0 0 10px rgba(227,176,75,.3),0 2px 0 #0a1018!important}
html body #releasePanel .relationship-unit{background:linear-gradient(180deg,#22303C,#18222C)!important}
html body #releasePanel .work-card076{background:linear-gradient(180deg,#1E2933,#141c24)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 2px 0 #0a1018!important;overflow:hidden}
html body #releasePanel .work-card076.tier-1{border-color:#A3ADB4!important}html body #releasePanel .work-card076.tier-2{border-color:#62AEDB!important}
html body #releasePanel .work-card076.tier-3{border-color:#B78BE0!important}html body #releasePanel .work-card076.tier-4{border-color:#EE9A4E!important}
html body #releasePanel .work-card076.can-upgrade076{border-color:#9BE07A!important;box-shadow:0 0 10px rgba(155,224,122,.35),0 2px 0 #0a1018!important}

/* lab: segmented filters + result tabs share the same corners */
html body #atlasV3 .v3-tier-filters{border-radius:var(--b-r1018)!important}
html body #resultTable043 :is(button,[role=tab]){border-radius:0!important}
html body #resultTable043 :is(nav,[role=tablist],.result-tabs043){border-radius:var(--b-r1018);overflow:hidden}
@media(prefers-reduced-motion:reduce){html body :is(#releasePanel,#atlasV3,#result,#rosterPanel) button{transition:none!important}}

/* ---------- 종족 선택 (legion picker): lobby cards, gold choose button ---------- */
html body #releasePanel .race044{gap:12px!important}
html body #releasePanel .race044 .product044{border:1px solid #3E4F5C!important;border-image:none!important;border-radius:10px!important;outline:0!important;
 background:radial-gradient(ellipse at 50% 18%,rgba(98,174,219,.18),rgba(0,0,0,0) 60%),linear-gradient(180deg,#22303C,#151d26)!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 3px 0 #0a1018,0 8px 18px rgba(0,0,0,.35)!important}
html body #releasePanel .race044 .product044::before,html body #releasePanel .race044 .product044::after{display:none!important}
html body #releasePanel .race044 .product044 h3{border:0!important;border-image:none!important;background:none!important;box-shadow:none!important;color:#FFF0C8!important;text-shadow:0 2px 0 #000!important;letter-spacing:.04em}
html body #releasePanel .race044 .product044 h3::before,html body #releasePanel .race044 .product044 h3::after{display:none!important}
html body #releasePanel .race044 .product044>button{border:1px solid #FFE7A0!important;border-image:none!important;border-radius:8px!important;
 background:linear-gradient(180deg,#F0C060,#D9A23F)!important;color:#1A1408!important;text-shadow:0 1px 0 rgba(255,240,200,.45)!important;font-weight:700;
 box-shadow:inset 0 1px 0 rgba(255,250,220,.55),0 3px 0 #6b4c16!important;transition:transform .08s ease-out,box-shadow .08s ease-out!important}
html body #releasePanel .race044 .product044>button:active{transform:translateY(2px)!important;box-shadow:inset 0 2px 3px rgba(0,0,0,.3)!important}
html body #releasePanel .race044 .product044[data-current1018]{border:2px solid #E3B04B!important;box-shadow:0 0 0 1px rgba(227,176,75,.25),0 0 14px rgba(227,176,75,.3),0 3px 0 #0a1018!important}
html body #releasePanel .race044 .product044[data-current1018]>button{background:linear-gradient(180deg,#3A4E5E,#26343F)!important;border-color:#5B7385!important;color:#F4D27A!important;text-shadow:0 1px 0 #000!important;box-shadow:inset 0 1px 0 rgba(255,240,200,.12)!important;cursor:default}
html body #releasePanel .race044 .product044[data-current1018]>button::before{content:'✓ '}

/* ---------- panel header buttons (닫기 · 구매내역): always inside the header line ---------- */
html body #releasePanel .release-panel-head :is(button,.billing-toolbar560>button){align-self:center!important;height:auto!important;min-height:0!important;max-height:calc(100% - 8px)!important;
 margin-block:0!important;padding-block:4px!important;line-height:1.2!important;box-sizing:border-box!important;
 box-shadow:inset 0 1px 0 rgba(255,240,200,.14),inset 0 -2px 0 rgba(0,0,0,.35)!important}
html body #releasePanel .release-panel-head{overflow:hidden}
html body #releasePanel .release-panel-head :is(button,.billing-toolbar560>button):not(:disabled):active{transform:translateY(1px)!important;box-shadow:inset 0 2px 3px rgba(0,0,0,.4)!important}

/* ---------- 로그인 / 계정 시작 카드: one column, equal buttons, centred ---------- */
html body .account-entry070 .account-entry-card070{position:relative}
html body .account-entry070 .account-recover238{display:block!important;width:100%!important;max-width:none!important;justify-self:stretch!important;align-self:stretch;margin:0!important;padding:0!important;box-sizing:border-box}
html body .account-entry070 .account-recover238>summary{text-align:center}
/* providers: same width/height/corners, label centred (brand colours kept as required by Google/Apple/Facebook) */
html body .account-entry070 .account-recover238>.provider070{width:100%!important;max-width:none!important;min-height:48px!important;height:48px;box-sizing:border-box;margin:0 0 10px!important;
 display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;border-radius:8px!important;padding:0 16px!important;font-size:15px!important}
html body .account-entry070 .account-recover238>button:not(.provider070){display:inline-flex!important;align-items:center;justify-content:center;vertical-align:top;width:calc(50% - 5px)!important}
html body .account-entry070 .account-recover238>button:not(.provider070)+button:not(.provider070){margin-left:10px!important}
html body .account-entry070 .account-recover238>button:not(.provider070):only-of-type{width:100%!important}
/* recovery / family: slate secondary, side by side */
html body .account-entry070 .account-recover238>button:not(.provider070){min-height:40px;margin:0;padding:6px 10px!important;box-sizing:border-box;
 border:1px solid #5B7385!important;border-image:none!important;border-radius:8px!important;background:linear-gradient(180deg,#3A4E5E,#26343F)!important;color:#ECE6D6!important;
 font-size:12px!important;line-height:1.3;text-align:center;white-space:normal;word-break:keep-all;text-shadow:0 1px 0 #000;box-shadow:inset 0 1px 0 rgba(255,240,200,.12),0 2px 0 #0a1018!important;cursor:pointer}
html body .account-entry070 .account-recover238>button:not(.provider070):active{transform:translateY(2px);box-shadow:inset 0 2px 3px rgba(0,0,0,.35)!important}
/* 뒤로: small chip in the card's top-left corner (login/signup sub-views) */
html body .account-entry070 .account-entry-card070>nav.account-actions070[aria-label]:has(>button[data-account-action="choice"]){position:absolute;left:14px;top:14px;margin:0;z-index:2}
html body .account-entry070 .account-entry-card070>nav.account-actions070[aria-label]>button[data-account-action="choice"]{min-height:30px!important;height:30px;padding:0 12px 0 10px!important;font-size:12px!important;border-radius:15px!important}
html body .account-entry070 .account-entry-card070>nav.account-actions070[aria-label]>button[data-account-action="choice"]::before{content:'‹';margin-right:5px;font-size:15px;line-height:1}
/* support links: quiet, centred, under the buttons */
html body .account-entry070 .account-entry-card070:has(>.account-recover238[open])>nav.account-actions070:not([aria-label]){order:5;gap:4px 18px!important}
html body .account-entry070 .account-entry-card070:has(>.account-recover238[open])>nav.account-actions070:not([aria-label]) a{min-height:32px!important;font-size:12px;color:#A9B3BA!important;text-decoration:none!important;border-bottom:1px solid rgba(169,179,186,.45)}
html body .account-entry070 .account-entry-card070:has(>.account-recover238[open])>nav.account-actions070:not([aria-label]) a:hover{color:#F4D27A!important}
html body .account-entry070 .account-entry-card070:has(>.account-recover238[open])>.account-recover238{order:3}
html body .account-entry070 .account-entry-card070:has(>.account-recover238[open])>.language-asia4{order:6}
/* language row */
html body .account-entry070 .language-asia4{border-top:1px solid #3E4F5C!important}
html body .account-entry070 .language-asia4 select{border:1px solid #5B7385!important;border-radius:8px!important;background:linear-gradient(180deg,#3A4E5E,#26343F)!important;color:#ECE6D6!important;min-height:38px!important;padding:4px 10px!important}
@media (max-height:500px){html body .account-entry070 .account-recover238>.provider070{height:40px;min-height:40px!important;font-size:14px!important;margin-bottom:8px!important}}
/* login view: compact card, read at a glance — title + 뒤로 on top, providers, small recovery chips, links at the bottom.
   Language is changed on the 로그인/회원가입 choice screen, so it is not repeated here. */
html body .account-entry070 .account-entry-card070:has(>.account-recover238[open]){width:min(100%,400px)!important;padding:18px 22px 14px!important;gap:12px!important}
html body .account-entry070 .account-entry-card070:has(>.account-recover238[open])>.language-asia4{display:none!important}
html body .account-entry070 .account-entry-card070:has(>.account-recover238[open]) .account-intro070 h1{font-size:24px!important;margin:2px 0!important}
html body .account-entry070 .account-entry-card070:has(>.account-recover238[open]) .account-intro070 p{margin:2px 0 0!important;font-size:13px!important}
html body .account-entry070 .account-recover238{max-width:300px!important;margin-inline:auto!important}
html body .account-entry070 .account-recover238>.provider070{height:40px!important;min-height:40px!important;font-size:14px!important;margin:0 0 8px!important;padding:0 12px!important}
html body .account-entry070 .account-recover238>button:not(.provider070){min-height:30px!important;height:auto;padding:5px 6px!important;font-size:11px!important;margin-top:2px!important;border-radius:15px!important}
html body .account-entry070 .account-entry-card070:has(>.account-recover238[open])>nav.account-actions070:not([aria-label]){border-top:1px solid #3E4F5C;padding-top:8px;margin-top:2px}
html body .account-entry070 .account-entry-card070:has(>.account-recover238[open])>nav.account-actions070:not([aria-label]) a{min-height:26px!important;font-size:11px!important}
html body .account-entry070 .account-entry-card070>nav.account-actions070[aria-label]:has(>button[data-account-action="choice"]){left:16px;top:16px}
@media (max-height:500px){html body .account-entry070 .account-entry-card070:has(>.account-recover238[open]){padding:12px 18px 10px!important;gap:8px!important}
 html body .account-entry070 .account-entry-card070:has(>.account-recover238[open]) .account-intro070 small{display:none!important}
 html body .account-entry070 .account-entry-card070:has(>.account-recover238[open]) .account-intro070 h1{font-size:20px!important}
 html body .account-entry070 .account-recover238>.provider070{height:36px!important;min-height:36px!important;margin-bottom:6px!important}
 html body .account-entry070 .account-entry-card070>nav.account-actions070[aria-label]:has(>button[data-account-action="choice"]){left:12px;top:12px}}
html body .account-entry070 .account-recover238{text-align:center}
html body .account-entry070 .account-recover238>button:not(.provider070){width:auto!important;white-space:nowrap!important;padding:0 12px!important;height:30px!important;min-height:30px!important;font-size:11px!important;margin:2px 3px 0!important}
html body .account-entry070 .account-recover238>button:not(.provider070)+button:not(.provider070){margin-left:3px!important}
html body .account-entry070 .account-recover238{max-width:none!important}
html body .account-entry070 .account-recover238>.provider070{max-width:300px!important;margin-left:auto!important;margin-right:auto!important}
/* choice view (회원가입 / 로그인): same card width + link style as the login view */
html body .account-entry070 .account-entry-card070:has(button[data-account-action="signup"]){width:min(100%,400px)!important;padding:18px 22px 14px!important;gap:12px!important}
html body .account-entry070 nav.account-actions070:has(>button[data-account-action="signup"]){gap:10px!important}
html body .account-entry070 nav.account-actions070>button:is([data-account-action="signup"],[data-account-action="login"]){width:140px;height:40px!important;min-height:40px!important;padding:0 12px!important;font-size:14px!important;border-radius:8px!important}
html body .account-entry070 nav.account-actions070>button[data-account-action="signup"]{border:1px solid #FFE7A0!important;border-image:none!important;background:linear-gradient(180deg,#F0C060,#D9A23F)!important;color:#1A1408!important;text-shadow:0 1px 0 rgba(255,240,200,.45)!important;box-shadow:inset 0 1px 0 rgba(255,250,220,.55),0 3px 0 #6b4c16!important;font-weight:700}
html body .account-entry070 nav.account-actions070>button[data-account-action="signup"]:active{transform:translateY(2px);box-shadow:inset 0 2px 3px rgba(0,0,0,.3)!important}
html body .account-entry070 .account-entry-card070 nav.account-actions070:not([aria-label]) a{font-size:12px!important;min-height:28px!important;color:#A9B3BA!important;text-decoration:none!important;border-bottom:1px solid rgba(169,179,186,.45)}
html body .account-entry070 .account-entry-card070 nav.account-actions070:not([aria-label]) a:hover{color:#F4D27A!important}
html body .account-entry070 .account-entry-card070:has(button[data-account-action="signup"]) .language-asia4 label{font-size:13px}
html body .account-entry070 .account-entry-card070:has(button[data-account-action="signup"]) .language-asia4 select{min-width:140px!important;height:34px;min-height:34px!important}

html body .account-entry070 nav.account-actions070>button:is([data-account-action="signup"],[data-account-action="login"]){font-weight:700!important}

/* Result: inventory owns chests; no second open action on the result card. */
html body #result #resultChest044{display:none!important}
html body #result #resultClose058:focus{outline:0!important;border-color:#E3B04B!important}
html body #result #resultClose058:focus-visible{outline:1px solid #E3B04B!important;outline-offset:-3px!important}

@media(max-height:360px){
 html body #result .result-card .result-reward{padding:4px 8px!important;gap:1px!important;margin-top:4px!important}
 html body #result .result-card .result-reward .reward-item254{grid-template-columns:18px 1fr auto!important;gap:5px!important;min-height:0!important}
 html body #result .result-card .result-reward .reward-icon254{width:18px!important;height:18px!important}
 html body #result .result-card .result-reward strong{font-size:14px!important}
}

/* 보유 상자: a long note never collapses into a 1-letter column — it keeps ≥220px or wraps above the button */
html body #releasePanel .chest-tools578{flex-wrap:wrap!important;row-gap:6px}
html body #releasePanel .chest-tools578>p{flex:1 1 220px!important;min-width:min(220px,100%)!important;white-space:normal;word-break:keep-all;overflow-wrap:anywhere}
html body #releasePanel .chest-tools578>button{margin-left:auto!important}
html body #releasePanel .chest-inventory044>p{grid-column:1 / -1!important;min-width:0;white-space:normal;word-break:keep-all}

/* ---------- 설정 › 키보드 단축키 (keys-20261020.js): 전투 · 조합 · 보기 sections, one row per action, same height, key chip right-aligned ---------- */
html body #releasePanel .keys-group1020{gap:8px!important;max-width:680px!important}
html body #releasePanel .keys-group1020 .keys-note1020{margin:0;color:#A9B3BA;font-size:12px;line-height:1.5}
html body #releasePanel .keys-grid1020{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;align-items:start}
html body #releasePanel .keys-list1020[data-section=battle]{grid-column:1;grid-row:1}
html body #releasePanel .keys-list1020[data-section=merge]{grid-column:2;grid-row:1 / span 2}
html body #releasePanel .keys-list1020[data-section=view]{grid-column:1;grid-row:2}
@media(max-width:760px){html body #releasePanel .keys-grid1020{grid-template-columns:minmax(0,1fr)}html body #releasePanel .keys-list1020[data-section]{grid-column:1;grid-row:auto}}
html body #releasePanel .keys-list1020{display:flex;flex-direction:column;margin:0;border:1px solid #3E4F5C;border-radius:8px;background:#1E2933;overflow:hidden}
html body #releasePanel .keys-head1020{margin:0;height:28px;display:flex;align-items:center;padding:0 12px;background:#22313a;border-bottom:1px solid #3E4F5C;color:#F0C060;font-size:12px;font-weight:700;letter-spacing:.06em}
html body #releasePanel .keys-row1020{display:flex;align-items:center;justify-content:space-between;gap:10px;height:34px;min-height:34px;padding:0 4px 0 12px;color:#ECE6D6;font-size:13px}
html body #releasePanel .keys-row1020+.keys-row1020{border-top:1px solid #2c3a46}
html body #releasePanel .keys-row1020>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body #releasePanel .keys-row1020 .keys-key1020,html body #releasePanel .keys-row1020 kbd{flex:none;box-sizing:border-box;width:76px!important;min-width:76px;height:26px!important;min-height:26px!important;margin:0!important;padding:0 6px!important;
 display:inline-flex;align-items:center;justify-content:center;border:1px solid #5B7385!important;border-image:none!important;border-radius:6px!important;background:linear-gradient(180deg,#3A4E5E,#26343F)!important;
 box-shadow:inset 0 1px 0 rgba(255,240,200,.1),0 2px 0 #10171e!important;color:#F4D27A!important;font-family:inherit;font-size:13px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums;text-shadow:none!important;white-space:nowrap;translate:none!important;transition:transform .08s ease-out,box-shadow .08s ease-out}
html body #releasePanel .keys-row1020 .keys-key1020::before,html body #releasePanel .keys-row1020 .keys-key1020::after{display:none!important}
html body #releasePanel .keys-row1020 .keys-key1020:active{transform:translateY(2px);box-shadow:inset 0 1px 2px rgba(0,0,0,.35)!important}
html body #releasePanel .keys-row1020 .keys-key1020.empty1020{color:#7d8a93!important;font-weight:500}
html body #releasePanel .keys-row1020 .keys-key1020.capturing1020{border-color:#E3B04B!important;background:#26343F!important;color:#FFF0C8!important;box-shadow:0 0 0 2px rgba(227,176,75,.28)!important;font-weight:500}
html body #releasePanel .keys-row1020.keys-fixed1020{color:#A9B3BA}
html body #releasePanel .keys-row1020.keys-fixed1020 kbd{background:#1a242d!important;color:#A9B3BA!important;box-shadow:none!important}
html body #releasePanel .keys-foot1020{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
html body #releasePanel .keys-group1020 .keys-reset1020{flex:none;width:auto!important;max-width:none!important;min-height:36px!important;height:36px;padding:0 16px!important}
html body #releasePanel .keys-group1020 .keys-status1020{margin:0;min-width:0;color:#F0C060;font-size:12px}
html body #releasePanel .settings-page1017[data-tab=keys]{overflow-y:auto;overscroll-behavior:contain;padding-bottom:12px}
html body #releasePanel .settings-page1017[data-tab=keys]>article.settings-group045{max-width:680px}
/* battle: a key press lights the button it triggered, like a tap (no movement) */
html body .kbd-press1020{filter:brightness(1.18) saturate(1.1)!important}

/* Draw control: shared navy/gold language, stable localized labels and charge meter. */
html.battle049.combo053 body #controls #summon{
 display:grid!important;grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr) auto;align-items:center;justify-content:center;gap:2px 4px;
 padding:4px 6px 18px!important;border:2px solid var(--b-gline1018)!important;border-image:none!important;
 border-radius:var(--b-r1018)!important;background:linear-gradient(180deg,#293e50,#102130)!important;
 box-shadow:inset 0 1px 0 #ffffff25,0 3px 0 #6b4c16!important;image-rendering:auto!important;
 transform:none!important;animation:none!important;transition:filter .12s,box-shadow .12s!important;
}
html.battle049.combo053 body #controls #summon::before{
 content:"";display:block;grid-column:1 / -1;min-height:0;width:100%;height:100%;
 background:url('assets/pixel-20261109/lobby-icons-clean-20261018/deck.webp') center/contain no-repeat;pointer-events:none;
}
html.battle049.combo053 body #controls #summon :is(#summonArt,.draw-pixels20261015,.plus){display:none!important}
html.battle049.combo053 body #controls #summon>strong,
html.battle049.combo053 body #controls #summon>.tickets{
 position:static!important;inset:auto!important;width:auto!important;min-width:0!important;height:auto!important;
 padding:0!important;margin:0!important;transform:none!important;animation:none!important;opacity:1!important;
 border:0!important;background:none!important;color:var(--b-text1018)!important;text-shadow:0 1px 1px #000!important;
 font-variant-numeric:tabular-nums;font-weight:700!important;text-align:center;white-space:nowrap;
}
html.battle049.combo053 body #controls #summon>strong{justify-self:end;font-size:clamp(14px,2.6vh,20px)!important;line-height:1.25!important}
html.battle049.combo053 body #controls #summon>.tickets{justify-self:start;display:flex!important;align-items:baseline;justify-content:center;gap:3px;font-size:clamp(14px,2.6vh,20px)!important;line-height:1.25!important}
html.battle049.combo053 body #controls #summon .tickets b{display:inline-block;min-width:1.5ch;font:inherit!important;transform:none!important;animation:none!important}
html.battle049.combo053 body #controls #summon .recharge{bottom:7px!important;left:12%!important;width:76%!important;height:5px!important;border-radius:3px;background:#07121d;overflow:hidden}
html.battle049.combo053 body #controls #summon .recharge i{background:linear-gradient(90deg,#d9a23f,#ffe7a0);border-radius:3px}
html.battle049.combo053 body #controls #summon:active{box-shadow:inset 0 2px 6px #0009,0 1px 0 #6b4c16!important;filter:brightness(.92)!important}
html.battle049.combo053 body #controls #summon:focus-visible{outline:2px solid #fff0b8;outline-offset:2px}
@media(hover:hover){html.battle049.combo053 body #controls #summon:not(:disabled):hover{filter:brightness(1.13)!important}}
