/* Camp audit: use the existing navy, brass and parchment art across utility actions. */
body.in-camp header .top-actions button,
#menu #campShell #saveCharacter,
#modal:not(.talent-mode) .modal-actions button {
 background:transparent url('assets/ui/armory-action.png') center/100% 180% no-repeat!important;
 border:0!important;border-image:none!important;border-radius:0!important;
 color:#fff0ca!important;text-shadow:0 1px 2px #092632!important;
 box-shadow:none!important;min-height:40px;padding:9px 20px!important;
 font-weight:700;line-height:1.35;image-rendering:auto;
}
body.in-camp header .top-actions button{min-height:34px;padding:7px 14px!important;font-size:11px}
#menu #campShell #saveCharacter{min-height:36px;padding:7px 14px!important;font-size:12px!important}
#menu #campShell #saveCharacter:disabled{filter:grayscale(.7);opacity:.55;cursor:default}
#modal:not(.talent-mode) .modal-actions{gap:12px!important;align-items:center;flex-shrink:0;flex-wrap:wrap}
#modal:not(.talent-mode) .modal-actions button{min-width:120px;min-height:42px;font-size:14px!important}
#modal:not(.talent-mode) .modal-actions button:hover:not(:disabled){filter:brightness(1.13)}
#modal:not(.talent-mode) #modalTitle{font-size:28px!important;line-height:1.25;letter-spacing:.04em!important;margin:0 0 16px!important;font-weight:800!important}
#modal:not(.talent-mode) :is(input,select){font:inherit;line-height:1.4;color:#f4e6c3;accent-color:#dfc17d}
#menu #campShell .base-stats :is(b,strong){font-variant-numeric:tabular-nums}
#menu #campShell .region-entry:disabled{cursor:not-allowed!important}
#menu #campShell .region-entry:disabled:hover{transform:none!important;filter:grayscale(1)!important}
/* Keep launch controls on screen at normal desktop sizes without scaling text. */
@media(min-width:1101px) and (min-height:650px){
 #menu.camp{overflow:hidden!important}
 #menu #campShell{position:absolute!important;left:50%!important;top:70px!important;bottom:12px!important;width:min(1480px,95vw)!important;height:auto!important;min-height:0!important;margin:0!important;transform:translateX(-50%)!important;display:flex!important;flex-direction:column}
 #menu #campShell .camp-top{height:clamp(66px,11dvh,96px)!important;min-height:0!important;margin:0 0 8px!important;flex:none!important}
 #menu #campShell .camp-nav{height:100%!important;max-width:1100px!important;align-items:stretch}
 #menu #campShell .camp-nav button{height:100%!important;aspect-ratio:auto!important;background-size:700% auto!important}
 #menu #campShell .camp-grid{flex:1!important;height:auto!important;min-height:0!important;align-items:stretch!important}
 #menu #campShell .camp-panel{height:100%!important;min-height:0!important}
 #menu #campShell .camp-launch{flex:none!important;height:54px!important;margin:10px 0 0!important;min-height:0!important}
 #menu #campShell .camp-launch #start{height:52px!important;min-height:0!important;background:transparent url('assets/ui/armory-action.png') center/100% 180% no-repeat!important;border:0!important;border-radius:0!important;box-shadow:none!important;text-shadow:0 2px #713f36}
 #menu #campShell .character-panel{grid-template-rows:32px minmax(60px,1fr) 45px minmax(112px,auto) 88px!important}
 #menu #campShell .character-panel #campTalentPreview{padding-top:5px!important}
 #menu #campShell .character-panel .equipment-preview{margin-top:2px!important;padding-top:3px!important}
 #menu #campShell .camp-edit-skills{margin-top:6px!important;margin-bottom:2px!important;min-height:36px!important;max-height:48px!important}
}
@media(max-width:740px){
 #modal:not(.talent-mode) .modal-actions{gap:8px!important}
 #modal:not(.talent-mode) .modal-actions button{min-width:0;flex:1;padding:9px 12px!important;font-size:12px!important}
}
/* Talent pages use the same action art while retaining their readable tree canvas. */
#modal.talent-mode .modal-actions button,#modal.talent-mode .tree-profiles button{
 background:transparent url('assets/ui/armory-action.png') center/100% 180% no-repeat!important;
 border:0!important;border-radius:0!important;color:#fff0ca!important;text-shadow:0 1px 2px #092632!important;
 box-shadow:none!important;min-height:38px!important;padding:8px 18px!important;font-weight:700;
}
#modal.talent-mode .tree-profiles .selected{filter:brightness(1.25)}
#modal.talent-mode #modalTitle{font-weight:800!important;letter-spacing:.04em!important;color:#f6e7bf!important;font-size:28px!important}
#modal :is(.warehouse-filters,.codex-tools) :is(input,select){background:#122c36!important;border:1px solid #947f55!important;border-radius:3px!important;color:#efe2bf!important;padding:8px 10px!important;min-height:36px}
#modal .warehouse-cell{border-color:#9a8b69!important;border-radius:3px!important}
/* Nested window headings must not inherit the fixed page masthead geometry. */
#modal header{position:static!important;inset:auto!important;left:auto!important;right:auto!important;top:auto!important;z-index:auto!important;pointer-events:auto!important;flex-shrink:0}
#modal .journal-body header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
#modal .journal-body header h3{font-size:20px!important;margin:0!important;color:#efdcaa}
#modal .journal-body header small{font-size:11px;line-height:1.5}
#modal .journal-tools :is(input,select){background:#122c36!important;border:1px solid #947f55!important;color:#efe2bf!important;min-height:36px;font:inherit}
/* Coin counter uses the game's existing coin art and live, outlined gold numerals. */
.camp-gold{display:flex;align-items:center;gap:8px;min-width:118px;padding:4px 14px 4px 8px;background:linear-gradient(90deg,#102d39e6,#16313ba8);border:1px solid #af9359;border-radius:5px;box-shadow:inset 0 1px #f1d59a33,0 3px 8px #0018}
.camp-gold img{width:34px;height:34px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 2px 1px #071822)}
.camp-gold span{display:flex;flex-direction:column;gap:1px}.camp-gold small{font-size:9px;color:#d2c7a2;letter-spacing:.12em}.camp-gold b{font-size:22px;font-weight:900;line-height:1.05;letter-spacing:.035em;font-variant-numeric:tabular-nums;color:#ffdb79;text-shadow:0 2px #6e3c19,0 3px 3px #0009;-webkit-text-stroke:.35px #906326}
body:not(.in-camp) .camp-gold{display:none}
.talent-click-fx{position:fixed;z-index:20000;pointer-events:none;font-weight:900;font-size:23px;color:#ffde88;text-shadow:0 2px 2px #1b140a;animation:talent-point-pop .7s ease-out both;transform:translate(-50%,-50%)}
.talent-click-fx:before,.talent-click-fx:after{content:'';position:absolute;inset:-12px;border:2px solid #ffe4a0;border-radius:50%;box-shadow:0 0 12px #f9cf79,0 0 4px #fff8;animation:talent-point-ring .65s ease-out both}.talent-click-fx:after{inset:-5px;transform:rotate(45deg);border-radius:4px;border-color:#fff2c1}.talent-click-fx.refund{color:#9de3e5}.talent-click-fx.refund:before,.talent-click-fx.refund:after{border-color:#9de3e5;box-shadow:0 0 10px #87d8e4}.talent-click-fx.error{color:#ff8176}.talent-click-fx.error:before,.talent-click-fx.error:after{border-color:#ff8176}
@keyframes talent-point-pop{0%{opacity:1;transform:translate(-50%,-40%) scale(.75)}25%{transform:translate(-50%,-70%) scale(1.2)}100%{opacity:0;transform:translate(-50%,-170%) scale(.9)}}
@keyframes talent-point-ring{0%{opacity:1;scale:.45}100%{opacity:0;scale:1.8}}
#modal .tree-node.dependency-invalid .tree-node-art{border-color:#ed6359!important;box-shadow:0 0 8px #e24b4570!important}
#modal .tree-node.dependency-invalid .pixel-icon{filter:grayscale(.7) sepia(.6) saturate(3) hue-rotate(310deg) brightness(.65)!important}
#modal .tree-node.dependency-invalid strong,#modal .tree-node.dependency-invalid em{color:#ff9b8b!important}
.tree-missing-points{position:absolute;left:50%;top:-16px;transform:translateX(-50%);white-space:nowrap;font-size:9px;line-height:13px;color:#ffd1c7;background:#641f25ed;padding:0 4px;border:1px solid #bf6256;border-radius:2px;pointer-events:none}
#modal .tree-node.inactive:after{content:'!';position:absolute;right:-9px;top:-8px;width:16px;height:16px;background:#9c302b;color:#fff1d2;font-size:12px;line-height:16px;border:1px solid #ffb794;border-radius:50%}
@media(max-width:850px){.camp-gold{min-width:90px;padding:3px 7px;gap:4px}.camp-gold img{width:26px;height:26px}.camp-gold b{font-size:17px}}
/* Primary/secondary labels share the same illustrated button family in every camp window. */
#modal #modalActions button{
 background:transparent url('assets/ui/armory-action.png') center/100% 180% no-repeat!important;
 border:0!important;border-image:none!important;border-radius:0!important;color:#fff0ca!important;
 text-shadow:0 1px 2px #092632!important;box-shadow:none!important;font-weight:700;
}
#modal #modalActions button.primary{filter:brightness(1.14)}
#modal:has(.loadout-workspace) .modal-card{background:linear-gradient(#102a37dc,#0e2331e8),url('assets/ui/loot-journal.png') center/cover!important}
#modal:has(.loadout-workspace) #modalKicker{display:none!important}

.launch-actions{display:flex;align-items:center;gap:8px;min-width:0}.launch-actions #start{flex:1;min-width:0}.launch-actions #coopEntry{display:grid;place-items:center;flex:none;width:110px;min-height:48px;background:transparent url('assets/ui/armory-action.png') center/100% 180% no-repeat;color:#fff0ca;text-decoration:none;font-weight:800;font-size:13px;text-shadow:0 1px 2px #092632}.launch-actions #coopEntry:hover{filter:brightness(1.15)}

/* Keep painted corner ornaments outside the text's usable parchment area. */
#menu #campShell .troops-panel{padding:clamp(22px,4vh,40px) clamp(36px,3.5vw,58px) clamp(54px,8vh,86px)!important;background-size:100% 100%!important}
#menu #campShell .character-panel{padding:clamp(22px,4vh,40px) clamp(28px,3vw,50px) clamp(50px,7vh,76px)!important;background-size:100% 100%!important}
#menu #campShell #campSkillPicker{width:auto!important;min-width:0;margin:6px 0 0!important}
#menu #campShell #campSkillPicker h3{line-height:1.5!important}
#menu #campShell .character-panel #campTalentPreview{margin:0!important;padding:8px 0 0!important;min-height:0;overflow:visible!important}
#menu #campShell .innate-skill{min-width:0;align-items:flex-start}
#menu #campShell .innate-skill>div{min-width:0}
#menu #campShell .innate-skill small{overflow-wrap:anywhere;line-height:1.55!important}
#menu #campShell .innate-skill img{width:36px;height:36px}
#campBackdrop{background:#1e4141 url('assets/camp-idle-poster.jpg') center/cover no-repeat}
@media(min-width:1101px) and (min-height:650px){#menu #campShell .character-panel{grid-template-rows:0 minmax(60px,1fr) 45px minmax(106px,auto) 90px!important}}

#portalChoices{display:none!important}#portalScreen{position:fixed;inset:0;z-index:9999;pointer-events:none;background:radial-gradient(ellipse at 50% 48%,#f4fff6,var(--portal-color) 35%,#071b2b 100%)}

.hp-track{position:absolute;overflow:hidden}.hp-track .absorb-segment{position:absolute;top:0;bottom:0;height:100%;background:repeating-linear-gradient(120deg,#9ff4ff 0 5px,#4daace 5px 9px)!important;border-top:1px solid #eaffff;z-index:2}

/* Eight painted destinations share one navigation row. */
#menu #campShell .camp-nav{grid-template-columns:repeat(8,minmax(0,1fr))!important;width:100%!important;max-width:1360px!important;overflow:visible!important;gap:2px!important}
#menu #campShell .camp-nav #pvpEntry{position:static!important;display:block!important;inset:auto!important;width:100%!important;height:100%!important;aspect-ratio:auto!important;min-width:0!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;box-shadow:none!important;background:transparent url('assets/ui/navigation/arena.png') center/130% auto no-repeat!important;font-size:0!important;color:transparent!important;line-height:0!important;text-shadow:none!important;filter:none;transform:none}
#menu #campShell .camp-nav #pvpEntry:hover{filter:brightness(1.12);transform:translateY(-2px)}
@media(max-width:1100px){#menu #campShell .camp-nav{grid-template-columns:repeat(8,minmax(0,1fr))!important;overflow:visible!important}}

#menu #campShell .camp-nav{grid-template-columns:repeat(9,minmax(0,1fr))!important;max-width:1500px!important}#menu #campShell .camp-nav #tradeEntry{background:transparent url('assets/ui/navigation/trade.png') center/130% auto no-repeat!important;font-size:0!important;color:transparent!important;line-height:0!important;border:0!important;padding:0!important} @media(max-width:1050px){#menu #campShell .camp-nav{grid-template-columns:repeat(9,minmax(105px,1fr))!important;overflow-x:auto!important;overflow-y:hidden!important;max-width:100%!important}}

body.in-camp{background:#1e4141 url('assets/camp-idle-poster.jpg') center/cover fixed no-repeat}body.in-camp::before{content:'';position:fixed;inset:0;z-index:0;pointer-events:none;background:url('assets/camp-idle-poster.jpg') center/cover no-repeat}body.in-camp #campBackdrop{background:transparent}body.in-camp #campBackdrop:not(.video-playing){opacity:0}

body.in-camp #campBackdrop{z-index:1}body.in-camp #game{z-index:2}
/* Keep the battle clock clear of the top-right controls in every language. */
body:not(.in-camp):not(.in-title)>header>.brand{visibility:hidden}
#hud .run-clock.panel{left:220px;top:10px;width:200px;height:78px;min-width:0;padding:12px 28px 8px}
#hud .run-clock.panel b{font-size:22px;line-height:27px;margin:0}
