.language-switch{display:inline-flex;align-items:center;gap:5px;flex:none;min-height:36px;padding:5px 15px;color:#ffedbc;background:url('assets/ui/armory-action.png') center/100% 180% no-repeat;text-shadow:0 2px #102737;font-family:inherit}
.language-switch>span{font-size:19px}.language-switch select{width:100px;max-width:100%;padding:5px 2px;border:0;background:transparent;color:inherit;font:700 12px system-ui,sans-serif;cursor:pointer;outline-offset:3px}.language-switch option{background:#102b3c;color:#fff0c6;text-shadow:none}.language-switch:focus-within{outline:2px solid #ffe4a3;outline-offset:3px}
body>header .top-actions{flex-wrap:nowrap;min-width:0;gap:8px}#campGold{order:-100;flex-shrink:0}.top-actions .language-switch{order:100}.title-top-actions{display:flex;align-items:center;gap:12px}.hall-heading .language-switch{margin-left:auto}
html:not([lang^="zh"]) body{font-family:'Trebuchet MS','Hiragino Kaku Gothic ProN','Yu Gothic','Apple SD Gothic Neo','Malgun Gothic',sans-serif}
html:not([lang^="zh"]) :is(button,select,h1,h2,h3){letter-spacing:normal!important;word-break:normal;overflow-wrap:break-word}
html:not([lang^="zh"]) #titleScreen h1{font-size:clamp(38px,5.3vw,82px);line-height:1.14;max-width:650px}
html:not([lang^="zh"]) .top-actions button{min-width:85px;font-size:11px!important;padding-inline:14px!important;white-space:nowrap}
html:not([lang^="zh"]) .camp-gold small{letter-spacing:0}html:not([lang^="zh"]) .troop-description h2{font-size:30px!important}
html:not([lang^="zh"]) .guide-dialogue p{line-height:1.65;font-size:13px}html:not([lang^="zh"]) .guide-next{max-width:230px;height:auto;min-height:40px;padding-block:8px}
html:not([lang^="zh"]) :is(.skill-card h3,.loadout-card h3){font-size:18px}html:not([lang^="zh"]) .tree-node{font-size:11px}
body.in-duel>header .language-switch{display:none}
@media(max-width:1100px){body>header .top-actions{gap:4px}.top-actions .music-controls input{width:65px}.top-actions .language-switch{padding-inline:9px}.top-actions .language-switch select{width:87px}.top-actions #campGold{min-width:90px;padding-inline:6px}.top-actions #campGold b{font-size:18px}html:not([lang^="zh"]) .top-actions button{min-width:70px;padding-inline:10px!important;font-size:10px!important}}
/* One painted asset family for ALL languages, with separate editable lettering. */
html #menu #campShell .camp-nav :is(button,#pvpEntry,#tradeEntry){position:relative!important;background-image:url('assets/ui/navigation/normal-blank.png')!important;background-size:700% auto!important;background-position-y:48%!important;font-size:0!important;color:transparent!important;line-height:0!important;padding:0!important;height:auto!important;min-height:0!important;aspect-ratio:305/210!important}
html #menu #campShell .camp-nav #pvpEntry{background-image:url('assets/ui/navigation/arena-blank.png')!important;background-size:130% auto!important;background-position:center!important}
html #menu #campShell .camp-nav #tradeEntry{background-image:url('assets/ui/navigation/trade-blank.png')!important;background-size:130% auto!important;background-position:center!important}
html #menu #campShell .camp-nav button::after{content:attr(data-local-label);position:absolute;left:35%;right:8%;top:39%;height:25%;display:flex;align-items:center;justify-content:center;color:#fff6d3;font:900 clamp(10px,1.3vw,20px)/1.03 'Trebuchet MS','Hiragino Kaku Gothic ProN','Yu Gothic','Apple SD Gothic Neo','Malgun Gothic',sans-serif;text-shadow:1px 1px #191b16,-1px -1px #191b16,2px 2px #191b16,-2px -2px #191b16,2px -2px #191b16,-2px 2px #191b16;white-space:normal;overflow-wrap:normal;pointer-events:none}
html #menu #campShell .camp-nav button.nav-selected{filter:brightness(1.14) drop-shadow(0 2px 2px #ffd66488)}
html #menu #campShell .camp-edit-skills{position:relative!important;background:transparent url('assets/ui/configure-skills-blank.png') center 53%/100% auto no-repeat!important;font-size:0!important;color:transparent!important;padding:0!important;aspect-ratio:5/1!important;height:auto!important}
html #menu #campShell .camp-edit-skills::after{content:attr(data-local-label);position:absolute;left:27%;right:12%;top:15%;bottom:15%;display:flex;align-items:center;justify-content:center;color:#ffe4a3;font:900 clamp(13px,1.7vw,26px)/1.05 'Trebuchet MS','Yu Gothic','Apple SD Gothic Neo',sans-serif;text-shadow:1px 2px #10283a,-1px -1px #10283a;pointer-events:none}
body>header>#campGold{margin-right:12px;order:-100}body>header>.brand{margin-right:auto}body>header .top-actions{margin-left:auto}
.trade-banner>img{content:url('assets/ui/navigation/trade-blank.png')}
@media(max-width:1100px){body>header>.brand{font-size:12px;max-width:190px}body>header>#campGold{min-width:90px;margin-right:8px;padding-inline:6px}}
@media(max-width:800px){body>header>.brand{display:none}body>header .top-actions{overflow-x:auto;max-width:calc(100vw - 125px)}.language-switch select{width:80px}}

html #menu #campShell .camp-edit-skills::after{font-size:clamp(12px,1.35vw,21px)}
html[lang="ko"] #menu #campShell .camp-nav button::after{word-break:keep-all;font-size:clamp(10px,1.15vw,18px)}

/* Keep two-line translated skill names clear of cooldown labels. */
html:not([lang^="zh"]) .battle-dock .combat-skill{width:72px;min-width:72px;height:81px}
html:not([lang^="zh"]) .battle-dock .combat-skill>span{top:43px;line-height:10px;font-size:9px;min-height:20px;padding:0 2px;white-space:normal}
html:not([lang^="zh"]) .battle-dock .combat-skill>small{top:67px;line-height:10px}
html:not([lang^="zh"]) .run-relics{width:265px}
html:not([lang^="zh"]) .run-relic-slot.empty>span{font-size:8px;white-space:normal}
@media(max-width:900px){html:not([lang^="zh"]) .battle-dock .combat-skill{width:57px;min-width:57px}html:not([lang^="zh"]) .battle-dock .combat-skill>span{font-size:8px}}
/* Cover utilities share the same frame geometry and text safe area. */
#titleTopActions{display:flex;align-items:center;gap:12px;top:max(20px,env(safe-area-inset-top));right:max(28px,env(safe-area-inset-right))}
#titleTopActions .language-switch,#titleTopActions #fullscreen{box-sizing:border-box;flex:0 0 180px;width:180px;height:46px;min-height:46px;margin:0;border:0;border-radius:0;padding:0 25px;background:transparent url('assets/ui/armory-action.png') center/100% 180% no-repeat;color:#fff0c9;font-size:14px;line-height:1;letter-spacing:0;text-shadow:0 2px #102737;filter:drop-shadow(0 3px 6px #0007)}
#titleTopActions .language-switch{position:relative;display:flex;justify-content:center;gap:0}
#titleTopActions .language-switch>span{display:none}
#titleTopActions .language-switch select{appearance:none;-webkit-appearance:none;box-sizing:border-box;width:100%;height:100%;margin:0;padding:0 12px 0 0;text-align:center;text-align-last:center;font-size:14px;line-height:46px;border:0;border-radius:0;box-shadow:none;background:transparent;color:inherit}
#titleTopActions .language-switch:after{content:'';position:absolute;right:26px;top:19px;width:6px;height:6px;border-right:2px solid #f8e6b8;border-bottom:2px solid #f8e6b8;transform:rotate(45deg);pointer-events:none}
#titleTopActions #fullscreen{display:flex;align-items:center;justify-content:center;white-space:nowrap}
#titleTopActions #fullscreen:hover{filter:brightness(1.15) drop-shadow(0 3px 6px #0007)}
@media(max-width:520px){#titleTopActions{top:12px;right:12px;gap:8px}#titleTopActions .language-switch,#titleTopActions #fullscreen{flex-basis:148px;width:148px;height:42px;min-height:42px;padding-inline:20px;font-size:12px}#titleTopActions .language-switch select{font-size:12px;line-height:42px}#titleTopActions .language-switch:after{right:21px;top:17px}}
