/* Scoped, responsive presentation; gameplay animation timing stays unchanged. */
/* Focus simple actions; keep inventory, comparisons and receipts fully readable. */
body.tutorial-active #tutorial-dark{display:none!important}
body.tutorial-active #tutorial-highlight{border:2px solid var(--gold);box-shadow:0 0 0 2px #16100ddd,0 0 12px #ffd35b66;background:transparent}
body.tutorial-active.guided-focus #tutorial-highlight{box-shadow:0 0 0 4000px #0009,0 0 0 2px #16100ddd,0 0 12px #ffd35b66}
body.tutorial-active #hero-tiers-info-slot{filter:none!important;opacity:1!important}
body.tutorial-active #tutorial-box{box-sizing:border-box;width:340px;padding:16px 18px;border:2px solid var(--gold);border-radius:12px;background:linear-gradient(150deg,#302a21,#1e1c1a);box-shadow:0 6px 22px #0008,inset 0 1px 0 #fff2;text-align:left;transition:none}
body.tutorial-active #tutorial-box h3{font-size:17px;margin:10px 0}
body.tutorial-active #tutorial-box p{font-size:13px;line-height:1.55;color:#f0e9df;margin:0}
body.tutorial-active #tutorial-step-counter{color:#c8ba9e;font-size:11px;text-align:left}
#tutorial-ripple{position:absolute;width:44px;height:44px;transform:translate(-50%,-50%);pointer-events:none}
#tutorial-ripple::before,#tutorial-ripple::after{content:"";position:absolute;inset:0;border:3px solid #ffe78a;border-radius:50%;box-shadow:0 0 6px #241300;opacity:0}
#tutorial-ripple.guided-ripple-playing::before{animation:guided-ripple .65s ease-out both}
#tutorial-ripple.guided-ripple-playing::after{animation:guided-ripple .65s .14s ease-out both}
@keyframes guided-ripple{0%{transform:scale(.35);opacity:1}100%{transform:scale(2.4);opacity:0}}
@keyframes guided-ripple-still{0%,60%{opacity:1}100%{opacity:0}}
body.clarity-reduced #tutorial-ripple.guided-ripple-playing::before,body.clarity-reduced #tutorial-ripple.guided-ripple-playing::after{animation-name:guided-ripple-still}
@media(prefers-reduced-motion:reduce){#tutorial-ripple.guided-ripple-playing::before,#tutorial-ripple.guided-ripple-playing::after{animation-name:guided-ripple-still}}
body.tutorial-active dialog::backdrop{background:transparent}
body.tutorial-active #upgrade-modal,body.tutorial-active #confirm-modal,body.tutorial-active #break-confirm-modal,body.tutorial-active #break-result-modal{background:transparent!important;backdrop-filter:none!important}
.clarity-close{font-size:22px!important;padding:6px!important;flex-shrink:0}
.clarity-controls{margin:16px 4px;padding:14px 10px;border-top:1px solid #65738b;display:grid;gap:12px;font-size:14px}.clarity-controls label{display:grid;gap:6px}.clarity-controls select{min-width:0;width:100%;min-height:44px;background:#162131;color:#fff;border:1px solid #8190a6;border-radius:8px;padding:8px;font:inherit}.clarity-controls .clarity-check{display:flex;align-items:center;gap:10px}.clarity-controls input{width:22px;height:22px;accent-color:#ffd579}
.clarity-note{font-size:13px;color:#c5d0dd;line-height:1.5;margin:10px 0;overflow-wrap:anywhere}
.clarity-dialog{background:#101a29;border:1px solid #8291a7;border-radius:16px;padding:0;width:min(580px,calc(100vw - 24px));max-width:580px;max-height:calc(100dvh - 32px);overflow:auto;box-shadow:0 16px 64px #0009}
.clarity-dialog::backdrop{background:#000b}.clarity-dialog-head{position:sticky;top:0;z-index:1;background:#101a29;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid #4e6078}.clarity-dialog h2{font-size:19px;margin:0;overflow-wrap:anywhere}.clarity-dialog h3{font-size:14px;margin:8px 0}.clarity-dialog-body{padding:14px 16px}.clarity-dialog p{line-height:1.6}.clarity-dialog details{border-bottom:1px solid #4e6078;padding:12px 0}.clarity-dialog summary{font-size:15px;cursor:pointer;min-height:30px}
.clarity-item-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.clarity-item{padding:12px 10px;border:1px solid #5b6b81;border-radius:10px;min-width:0;text-align:center;background:#182536}.clarity-item h3{color:#d1d9e5;font-size:12px}.clarity-item>img{width:58px;height:58px;object-fit:contain}.clarity-item strong{display:block;font-size:14px;overflow-wrap:anywhere}.clarity-item>div{font-size:13px;margin-top:6px;overflow-wrap:anywhere}.clarity-item>div img{vertical-align:middle;margin-right:4px}
.clarity-table-wrap{overflow-x:auto}.clarity-table{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}.clarity-table th,.clarity-table td{padding:10px 5px;border-bottom:1px solid #4e6078;text-align:left;overflow-wrap:anywhere}.clarity-table th{font-weight:500;width:32%;color:#d1d9e5}.clarity-table td:last-child{text-align:right;font-weight:800;white-space:nowrap}.clarity-gain{color:#8ff0bd}.clarity-loss{color:#ffb3b0}.clarity-actions{display:flex;gap:10px;margin-top:16px;flex-wrap:wrap}.clarity-actions button{flex:1}.clarity-primary{background:#e5bd65!important;border-color:#ffe19d!important;color:#1b1822!important;font-weight:800!important}
#item-tooltip:has(.clarity-tooltip-impact){max-width:min(340px,calc(100vw - 16px));max-height:calc(100dvh - 16px);overflow:auto;box-sizing:border-box}.clarity-tooltip-impact{margin-top:10px;padding-top:8px;border-top:1px solid #66768e;font-size:13px;white-space:normal}.clarity-tooltip-impact>div{display:flex;justify-content:space-between;gap:12px;margin-top:4px}
.clarity-target{outline:3px solid #ffe19d!important;outline-offset:3px}
body.clarity-reduced .hero-idle,body.clarity-reduced .crit-hit-icon,body.clarity-reduced .crit-hit-icon::after,body.clarity-reduced .crit-damage-value,body.clarity-reduced .hero-skill-learn-btn,body.clarity-reduced .skill-icon,body.clarity-reduced .talent-node,body.clarity-reduced #panda-wrap.hit,body.clarity-reduced #tutorial-arrow{animation:none!important;transition:none!important}
body.clarity-reduced .clarity-target{scroll-behavior:auto}body.clarity-reduced #map-bg-layer,body.clarity-reduced #map-bg-next-layer{transition:none!important}

/* Match the existing equipment upgrade modal and slate/gold combat interface. */
.clarity-dialog,.clarity-controls{box-sizing:border-box;color:#f1f5f9;font:inherit;line-height:1.5}.clarity-dialog button,.clarity-controls button{min-height:44px;min-width:44px;padding:8px 12px;border:2px solid #777;border-radius:8px;background:#2c2c2c;color:#fff;font:inherit;font-size:14px;cursor:pointer;line-height:1.4}
.clarity-dialog{background:#0d1a2a;border:3px solid #7dd3fc;border-radius:16px;width:min(540px,calc(100vw - 24px));max-width:540px;box-shadow:0 0 30px #7dd3fc33}
.clarity-dialog::backdrop{background:#000d;backdrop-filter:blur(4px)}.clarity-dialog-head{background:#0d1a2a;border-bottom:1px solid #7dd3fc66}.clarity-dialog h2{color:#7dd3fc}
.clarity-dialog button{border:2px solid #555;border-radius:8px;background:#2a2a2a;color:#eee;font-weight:bold}.clarity-dialog button:disabled{opacity:.55;cursor:default}.clarity-dialog :focus-visible{outline:3px solid #fff;outline-offset:3px}
.clarity-primary{background:linear-gradient(#1a6e9e,#0a3d5e)!important;color:#b7e9ff!important;border-color:#7dd3fc!important}
.clarity-item{background:#1a1a2e;border-width:2px}.clarity-item:last-child{background:#0d2a1a;box-shadow:0 0 14px #7dd3fc33}.clarity-item:last-child>img{filter:drop-shadow(0 0 5px #7dd3fc88)}.clarity-item strong{font-size:13px}
.clarity-check{display:flex;align-items:center;gap:10px}.clarity-check input{width:22px;height:22px;accent-color:var(--gold);flex-shrink:0}
#hp-container #timer{font-size:26px!important;color:var(--gold)!important;min-width:90px;box-sizing:border-box;text-align:center;font-weight:900;font-variant-numeric:tabular-nums;line-height:1.2;padding:4px 12px;border:1px solid transparent;border-radius:7px}
#hp-container #timer.boss-timer-urgent{color:#ff6666!important;border-color:#ed7777;background:#480c0c80}
#journey-launcher{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);width:min(360px,calc(100% - 32px));z-index:101;min-height:56px;display:grid;grid-template-columns:1fr auto;gap:2px 10px;text-align:left;border:2px solid var(--gold);border-bottom-width:4px;border-radius:10px;background:var(--slate-main);color:#fff;font-family:inherit;line-height:1.4;padding:8px 12px;cursor:pointer;box-shadow:0 4px 10px #0008;box-sizing:border-box}
#journey-launcher[hidden]{display:none!important}#journey-launcher:focus-visible{outline:3px solid #fff;outline-offset:3px}#journey-label{font-size:12px;color:var(--gold);font-weight:bold}#journey-current{grid-row:2;grid-column:1/-1;font-size:13px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#journey-ready{font-size:11px;text-align:right;align-self:center;color:#ddd}#journey-launcher.journey-ready #journey-ready{color:#86efa9}
.clarity-dialog[data-journal="1"]{background:var(--slate-main);border-color:var(--gold);box-shadow:0 0 30px #0008}.clarity-dialog[data-journal="1"] .clarity-dialog-head{background:var(--slate-main);border-bottom-color:var(--gold)}.clarity-dialog[data-journal="1"] h2,.journey-step,.journey-reward{color:var(--gold);font-weight:bold}.clarity-dialog[data-journal="1"] .clarity-primary{background:var(--gold)!important;color:#211700!important;border-color:#ffe49a!important}
.journey-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px}.journey-tabs button{flex:1;padding:8px;min-width:0}.journey-tabs button[aria-pressed="true"]{border-color:var(--gold);color:var(--gold)}#journey-content progress{width:100%;height:18px;accent-color:#2ecc71}.journey-quest{border:2px solid #ffffff30;border-radius:10px;background:#0003;padding:12px;margin:10px 0}.journey-quest button{width:100%}.journey-roadmap p{font-size:13px;border-bottom:1px solid #ffffff20;padding:7px 0}
.journey-themes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.journey-theme{border:2px solid var(--sample-accent);background:var(--sample-bg);border-radius:10px;padding:10px;text-align:center}.journey-theme button{width:100%}.journey-swatch{height:80px;border:2px solid var(--sample-accent);border-radius:8px;display:grid;align-content:center;gap:5px;padding:10px;color:var(--sample-accent)}.journey-swatch i{display:block;background:#2ecc71;height:8px;border-radius:8px}.journey-swatch b{font-size:11px;color:#fff}
[data-preview="classic"]{--sample-bg:#2c2c2c;--sample-accent:#ffcc00}[data-preview="forest"]{--sample-bg:#142c22;--sample-accent:#9cdb80}[data-preview="frost"]{--sample-bg:#172b3e;--sample-accent:#92d9ff}[data-preview="astral"]{--sample-bg:#2b1b40;--sample-accent:#d5afff}
body[data-journey-theme="forest"]{--slate-main:#142c22;--gold:#9cdb80;--journey-bg:#142c22}body[data-journey-theme="frost"]{--slate-main:#172b3e;--gold:#92d9ff;--journey-bg:#172b3e}body[data-journey-theme="astral"]{--slate-main:#2b1b40;--gold:#d5afff;--journey-bg:#2b1b40}
body[data-journey-theme]:not([data-journey-theme="classic"]) #left-panel,body[data-journey-theme]:not([data-journey-theme="classic"]) #right-panel{background:var(--journey-bg)}
body[data-journey-theme]:not([data-journey-theme="classic"]) .hero-card:not(.hero-card-divine-locked){border-color:var(--gold)}
body.mobile-slide-mode #journey-launcher{bottom:82px;width:calc(100% - 118px);left:calc(50% + 14px);padding:6px 9px;min-height:52px}
@media(max-width:420px){.journey-tabs button{font-size:12px}#journey-launcher{grid-template-columns:1fr}#journey-ready{grid-row:3;text-align:left}#journey-current{font-size:12px}}
@media(max-height:600px){body.mobile-slide-mode #journey-launcher{bottom:72px;left:auto;right:8px;transform:none;width:140px}#journey-ready{display:none}.clarity-dialog{max-height:calc(100dvh - 16px)}}
/* v321: interface themes only. Equipment art and rarity colors are preserved. */
#journey-launcher.quest-floating-button{position:fixed!important;inset:auto;bottom:auto;left:auto;transform:none;width:64px;height:64px;min-height:0;display:flex;align-items:center;justify-content:center;background-color:transparent;background-position:center;background-size:cover;background-repeat:no-repeat;border:3px solid #000;border-radius:50%;padding:0;box-shadow:none;z-index:99}
#journey-launcher.quest-floating-button:hover{filter:brightness(1.15)}#journey-launcher img{width:72%;height:72%;object-fit:contain;filter:brightness(0)}
#journey-dot{position:absolute;right:0;top:0;width:13px;height:13px;border-radius:50%;background:#f22;border:2px solid #fff;box-shadow:0 0 0 1px #111}#journey-dot[hidden]{display:none!important}
body.mobile-slide-mode #journey-launcher.quest-floating-button{position:absolute!important;right:8px!important;left:auto!important;top:208px!important;bottom:auto!important;width:44px!important;height:44px!important;transform:none!important;padding:0!important;min-height:0!important}
.clarity-dialog{background:var(--slate-main);border-color:var(--gold);box-shadow:0 0 24px #0008}.clarity-dialog-head{background:var(--slate-main);border-bottom-color:var(--gold)}.clarity-dialog h2{color:var(--gold)}.clarity-primary,.clarity-dialog[data-journal="1"] .clarity-primary{background:var(--gold)!important;border-color:var(--gold)!important;color:#17120a!important}
.clarity-dialog button:disabled{background:#303036!important;color:#a0a0aa!important;border-color:#555!important;opacity:.7}.clarity-item,.clarity-item:last-child{background:color-mix(in srgb,var(--slate-main) 85%,#000);box-shadow:none}.clarity-item:last-child>img{filter:none}.clarity-table th,.clarity-table td{border-bottom-color:color-mix(in srgb,var(--gold) 35%,transparent)}
#upgrade-modal .modal-box{background:var(--slate-main)!important;border-color:var(--gold)!important;min-width:0!important;width:min(520px,calc(100vw - 24px))!important;box-sizing:border-box;max-height:calc(100dvh - 24px);overflow:auto}
#upgrade-modal-content h3,#upgrade-modal-content>div>span{color:var(--gold)!important}#upgrade-modal-content button:not(:disabled):not(.danger-cancel-btn){background:var(--gold)!important;border-color:var(--gold)!important;color:#17120a!important}
body[data-journey-theme="dawn"]{--slate-main:#302414;--gold:#ffdb90;--journey-bg:#302414}body[data-journey-theme="ember"]{--slate-main:#361a21;--gold:#ffb381;--journey-bg:#361a21}body[data-journey-theme="ocean"]{--slate-main:#102e36;--gold:#8ae3dd;--journey-bg:#102e36}
[data-preview="dawn"]{--sample-bg:#302414;--sample-accent:#ffdb90}[data-preview="ember"]{--sample-bg:#361a21;--sample-accent:#ffb381}[data-preview="ocean"]{--sample-bg:#102e36;--sample-accent:#8ae3dd}
#tutorial-next-btn:disabled{opacity:.5;cursor:not-allowed;filter:grayscale(.6)}#tutorial-box{max-height:calc(100dvh - 90px);overflow:auto;box-sizing:border-box}
@media(max-width:420px){.clarity-table{font-size:12px}.journey-themes{gap:7px}.journey-theme{padding:7px}}
#upgrade-modal-content button:disabled{background:#303036!important;color:#a0a0aa!important;border-color:#555!important;cursor:not-allowed}

/* Dedicated illustrated asset, preserved in lossless WebP with alpha. */
.equipment-upgrade-icon,.equipment-upgrade-arrow{background:transparent url("../ui/equipment-upgrade.webp") center/contain no-repeat;filter:none}
.equipment-upgrade-icon{display:inline-block;width:20px;height:20px;vertical-align:middle;flex-shrink:0}.equipment-upgrade-arrow{width:38px;height:38px;flex:0 0 38px;transform:rotate(90deg)}
@media(max-width:420px){.equipment-upgrade-arrow{width:28px;height:28px;flex-basis:28px}}
/* v323: small, section-specific notifications and crisp outlines on every theme. */
#journey-dot{width:8px;height:8px;border-width:1px;right:2px;top:2px}
.journey-tabs button{position:relative;padding-right:18px}.journey-tab-dot{position:absolute;right:5px;top:5px;width:6px;height:6px;background:#f22;border:1px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #000}.journey-tab-dot[hidden]{display:none}
.clarity-dialog[data-journal="1"] button,.clarity-dialog[data-journal="1"] button:disabled,.clarity-dialog[data-journal="1"] .clarity-primary,#upgrade-modal-content button,#upgrade-modal-content button:not(:disabled):not(.danger-cancel-btn),#upgrade-modal-content button:disabled,#equip-slots button{border:2px solid #000!important}
.journey-tabs button[aria-pressed="true"]{background:var(--gold);color:#17120a;box-shadow:inset 0 -3px 0 #0005}
.equipment-upgrade-icon,.equipment-upgrade-arrow{filter:drop-shadow(1px 0 0 #000) drop-shadow(-1px 0 0 #000) drop-shadow(0 1px 0 #000) drop-shadow(0 -1px 0 #000)}
#equip-slots .equipment-upgrade-icon{width:14px;height:14px;filter:drop-shadow(.65px 0 0 #000) drop-shadow(-.65px 0 0 #000) drop-shadow(0 .65px 0 #000) drop-shadow(0 -.65px 0 #000)}
body[data-journey-theme="rose"]{--slate-main:#381d31;--gold:#ffacd9;--journey-bg:#381d31}body[data-journey-theme="sunset"]{--slate-main:#352212;--gold:#ffad50;--journey-bg:#352212}body[data-journey-theme="jade"]{--slate-main:#12342d;--gold:#79f0b5;--journey-bg:#12342d}body[data-journey-theme="obsidian"]{--slate-main:#191b24;--gold:#d5d9e8;--journey-bg:#191b24}
[data-preview="rose"]{--sample-bg:#381d31;--sample-accent:#ffacd9}[data-preview="sunset"]{--sample-bg:#352212;--sample-accent:#ffad50}[data-preview="jade"]{--sample-bg:#12342d;--sample-accent:#79f0b5}[data-preview="obsidian"]{--sample-bg:#191b24;--sample-accent:#d5d9e8}
#tutorial-next-btn[hidden]{display:none!important}
/* Reward buttons keep the warm orange/gold treatment of the game. */
.clarity-dialog[data-journal="1"] button,.clarity-dialog[data-journal="1"] button.clarity-primary{background:linear-gradient(#ffdb37,#ffae00 65%,#e88500)!important;color:#241300!important;border:2px solid #000!important;box-shadow:inset 0 2px 0 #fff4,0 2px 0 #0008;text-shadow:none;font-weight:900}
.quick-equip-choice{display:flex;align-items:center;gap:8px;margin:8px 0 10px;color:#f5e7c7;font-size:12px;cursor:pointer}.quick-equip-choice input{width:18px;height:18px;accent-color:var(--gold)}
.achievement-status-icon{width:21px;height:21px;object-fit:contain;vertical-align:middle;margin-right:5px}.succes-icon .achievement-status-icon{width:32px;height:36px}
body.tutorial-active #tutorial-next-btn{display:none!important}#tutorial-highlight{transition:left .18s ease,top .18s ease,width .18s ease,height .18s ease}#tutorial-arrow{transition:left .18s ease,top .18s ease}
@media(prefers-reduced-motion:reduce){#tutorial-highlight,#tutorial-arrow,.clarity-dialog button,#upgrade-modal-content button{transition:none!important}}

/* v325: hint overlays never change the positioning or size of native close controls. */
.guided-close-target{outline:2px solid var(--gold);outline-offset:3px}
.guided-close-arrow{position:fixed!important;width:38px!important;height:38px!important;object-fit:contain;pointer-events:none!important;z-index:2147483647;filter:drop-shadow(0 1px 2px #000)}
body.guided-settling #tutorial-overlay,body.guided-settling .guided-close-arrow{visibility:hidden!important}
body.guided-team-step #hero-tiers-panel{position:fixed!important;left:12px!important;top:62px!important;transform:none!important;width:min(360px,calc(100vw - 24px))!important;max-height:calc(100dvh - 146px)!important;box-sizing:border-box;scroll-padding-top:42px;scroll-padding-bottom:16px}
body.guided-team-step .hero-tiers-close-btn{position:sticky;top:0;float:right;margin:0 0 8px 10px;background:#111;border-radius:5px}
body.guided-settling.guided-team-step #hero-tiers-panel{visibility:hidden}
.guided-team-focus{outline:2px solid var(--gold);outline-offset:4px;border-radius:5px;background:#ffffff0b}
body.tutorial-active #tutorial-box{overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
body.tutorial-active #upgrade-modal .modal-box{max-height:calc(100dvh - 24px);overflow:auto}
body.tutorial-active #tutorial-highlight{transition:none}
@media(max-height:440px){body.guided-team-step #hero-tiers-panel{top:10px!important;max-height:calc(100dvh - 85px)!important}}

/* Keep the original arrow overlay usable inside a native dialog. */
body.tutorial-active #tutorial-overlay{position:fixed;inset:0;max-width:none;max-height:none;width:100vw;height:100dvh;pointer-events:none}
body.tutorial-active #tutorial-box{white-space:pre-line;pointer-events:auto}
body.tutorial-active #skill-global-tooltip.mobile-learning-panel{max-height:calc(100dvh - 100px);overflow:auto}

.clarity-dialog[data-journal="1"] button:disabled{opacity:.62;cursor:default}
.clarity-dialog[data-journal="1"] .journey-tabs button[aria-pressed="true"]{box-shadow:inset 0 0 0 2px #241300,0 2px 0 #0008}

/* Upgrade controls share the journal's warm, outlined buttons in every theme. */
#upgrade-modal-content button:not(:disabled):not(.danger-cancel-btn),#equip-slots button{background:linear-gradient(#ffdb37,#ffae00 65%,#e88500)!important;color:#241300!important;border:2px solid #000!important;box-shadow:inset 0 2px 0 #fff4,0 2px 0 #0008;text-shadow:none;font-weight:900}
.clarity-dialog[data-journal="1"] button[data-claim],.clarity-dialog[data-journal="1"] button[data-daily]{position:relative;overflow:visible}
.clarity-dialog[data-journal="1"] button[data-claim]:not(:disabled)::after,.clarity-dialog[data-journal="1"] button[data-daily]:not(:disabled)::after{content:"";position:absolute;right:-4px;top:-4px;width:8px;height:8px;background:#f13737;border:2px solid #180b08;border-radius:50%;pointer-events:none}

/* Clear hover/focus feedback without changing the item artwork or disabled controls. */
@media(hover:hover){#equip-slots button:not(:disabled):hover,#upgrade-modal-content button:not(:disabled):not(.danger-cancel-btn):hover{filter:brightness(1.22);box-shadow:inset 0 2px 0 #fff8,0 0 10px #ffd35b99}}
#equip-slots button:focus-visible,#upgrade-modal-content button:focus-visible{outline:2px solid #fff3b0;outline-offset:3px}
.divine-ready-label{display:none;color:#ffe78a;background:#201400;border:1px solid #ffc83d;border-radius:5px;padding:3px 6px;margin-top:5px;font-size:11px;font-weight:900;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
.hero-card-divine-locked:has(.lvl-up-btn.affordable){outline:2px solid #ffd35b;outline-offset:-2px;box-shadow:inset 0 0 20px #ffd35b33,0 0 12px #ffd35b66!important}
.hero-card-divine-locked:has(.lvl-up-btn.affordable) .divine-ready-label{display:inline-block}
.hero-card-divine-locked:has(.lvl-up-btn.affordable) .hero-name{color:#ffe78a!important}
.hero-card-divine-locked .lvl-up-btn.affordable{filter:none;box-shadow:0 0 10px #ffd35baa}
body:has(.hero-card-divine-locked .lvl-up-btn.affordable) .tab-btn[onclick="switchTab('heroes')"]::after{content:"✦";color:#ffe78a;text-shadow:0 0 6px #ffc400;margin-left:4px}

/* Matching controls and explicit hover/focus states for mouse and keyboard. */
#clarity-equip,#clarity-cancel{border:2px solid #000!important;box-shadow:inset 0 2px 0 #fff4,0 2px 0 #0008;font-weight:900;text-shadow:none}
#clarity-equip{background:linear-gradient(#ffdb37,#ffae00 65%,#e88500)!important;color:#241300!important}
#clarity-cancel{background:linear-gradient(#51515b,#303039 65%,#22222a)!important;color:#f4f0eb!important}
@media(hover:hover){
 #clarity-equip:not(:disabled):hover,.clarity-dialog[data-journal="1"] button:not(:disabled):hover{filter:brightness(1.22);box-shadow:inset 0 2px 0 #fff8,0 0 10px #ffd35b99}
 #clarity-cancel:not(:disabled):hover{background:linear-gradient(#a73e38,#78211e 65%,#531815)!important;color:#fff!important;box-shadow:inset 0 2px 0 #ffffff30,0 0 10px #ed514788}
}
#clarity-equip:focus-visible,.clarity-dialog[data-journal="1"] button:focus-visible{outline:2px solid #ffe78a;outline-offset:3px}
#clarity-cancel:focus-visible{outline:2px solid #ff8278;outline-offset:3px;background:linear-gradient(#a73e38,#78211e 65%,#531815)!important}
.game-resource-icon{display:inline-block;width:22px;height:22px;object-fit:contain;vertical-align:middle;flex-shrink:0}
.game-resource-icon.asset-lock-icon{width:18px;height:22px}
.skill-slot-btn.locked .asset-lock-icon{width:55%;height:65%;pointer-events:none}
.empty-equipment-icon{width:30px;height:30px}
#hp-container #weakness-indicator{position:static;inset:auto;transform:none;box-sizing:border-box;max-width:100%;padding:3px 10px;border:1px solid #e98074;border-left:4px solid #ed6559;border-radius:6px;background:linear-gradient(110deg,#551e20,#29171d);color:#ffe0d8;font-size:11px;font-weight:900;letter-spacing:.3px;line-height:1.35;text-align:center;text-shadow:0 1px 2px #000;white-space:normal;overflow-wrap:anywhere;z-index:auto;box-shadow:inset 0 1px 0 #ffffff18}
#hp-container #weakness-indicator.weakness-active{border-color:#f3a48e;background:linear-gradient(110deg,#772525,#351821);box-shadow:0 0 7px #ed655944,inset 0 1px 0 #ffffff20}
