#survival-screen .unit-card[hidden],#survival-screen .mage-cooldown[hidden]{display:none}
#survival-screen .mage-cooldown{display:block;color:#b5cdf9;font-size:.73em}
#survival-screen .unit-card[data-unit="9"] .unit-icon svg{display:none}
#survival-screen .unit-card[data-unit="9"] .unit-icon::before{content:'✦';color:#b3c7ff}

#survival-screen .unit-skill-menu[hidden],#sound-status[hidden]{display:none}
.unit-skill-menu{position:absolute;z-index:8;transform:translate(-50%,-50%);width:min(292px,calc(100% - 16px));max-height:calc(100% - 16px);overflow:auto;padding:10px;border:1px solid #ac956b;border-radius:9px;background:#151f31f5;color:#eee4d0;box-shadow:0 10px 24px #0009}
.unit-skill-menu strong{display:block;padding:0 3px 7px;font-size:13px}
.skill-menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.skill-menu-grid button{display:grid;grid-template-columns:1fr auto;align-items:center;text-align:left;gap:2px 5px;min-height:39px;padding:5px 7px;font-size:12px;line-height:1.2;white-space:normal}
.skill-menu-grid button[data-skill^="mage-"]{grid-column:1/-1}
.skill-menu-grid button small{grid-column:1/-1;font-size:11px}
.skill-menu-grid button:disabled{opacity:.72}
#survival-screen #unit-skills button[data-skill^="mage-"]{min-width:72px}
#sound-status{display:block;margin:.35em 0 .6em;color:#e3c59a}

#mage-hotbar[hidden],#mage-order-status[hidden]{display:none}
#mage-hotbar{
 position:absolute;z-index:7;inset:auto auto 12px 50%;transform:translateX(-50%);
 width:min(484px,calc(100% - 22px));box-sizing:border-box;padding:7px 9px 8px;
 border:1px solid #847658;border-radius:8px;background:linear-gradient(160deg,#1b2837f7,#0e1624fa 62%);
 box-shadow:0 7px 22px #050a12ad;color:#f1ecdf;font-size:12px;
}
.mage-bar-heading{display:flex;align-items:center;gap:9px;margin-bottom:6px;min-height:25px}
.mage-bar-heading strong{font-size:13px;letter-spacing:.015em;color:#f5e8ce}
#mage-control-state{color:#abbedc;white-space:nowrap}
.mage-utility{display:flex;gap:4px;margin-left:auto}
#mage-hotbar .mage-utility button{min-height:28px;padding:3px 8px;font-size:11px;white-space:nowrap}
#mage-spell-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
#mage-hotbar button.mage-slot{
 position:relative;display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;
 min-height:56px;padding:5px 6px;gap:6px;text-align:left;isolation:isolate;overflow:hidden;
 border:1px solid color-mix(in srgb,var(--spell-tone),#243144 66%);border-radius:5px;color:#f6f7fa;
 background:linear-gradient(155deg,color-mix(in srgb,var(--spell-tone),#142030 87%),#111a2a);
}
#mage-hotbar button.mage-slot:hover,#mage-hotbar button.mage-slot:focus-visible{
 border-color:var(--spell-tone);outline-color:var(--spell-tone);background:#253548;
}
.mage-slot[data-spell="lightning"]{--spell-tone:#b2baff}
.mage-slot[data-spell="frost"]{--spell-tone:#79e1ee}
.mage-slot[data-spell="pulse"]{--spell-tone:#f0bb7f}
.mage-slot .mage-slot-icon{display:grid;place-items:center;width:30px;height:33px;color:var(--spell-tone);
 font:24px/1 "Segoe UI Symbol",sans-serif;text-shadow:0 0 9px color-mix(in srgb,var(--spell-tone),transparent 25%)}
.mage-slot .mage-slot-copy{display:grid;gap:3px;min-width:0}
.mage-slot .mage-slot-label{font-size:12px;line-height:1.12;font-weight:700}
.mage-slot small{font-size:10px;color:#b5c8e1;line-height:1.2}
.mage-slot kbd{align-self:start;color:#e1d5b8;background:#090f1a;padding:1px 4px;border-radius:3px;line-height:16px}
.mage-slot .mage-recharge{
 position:absolute;inset:auto 0 0;height:3px;border-radius:2px;background:var(--spell-tone);
 transform:scaleX(var(--recharge,0));transform-origin:left;opacity:.85;
}
#mage-hotbar button.mage-slot[data-state="cooldown"],#mage-hotbar button.mage-slot[data-state="blocked"]{
 background:#151e2a;border-color:#344254;cursor:default;color:#ccd4e1;
}
.mage-slot[aria-pressed="true"] .mage-slot-icon,.mage-slot[data-state="approach"] small{color:#ffe1a6}
#mage-order-status{margin:6px 0 0;color:#f1ce98;line-height:1.24}
#combat-deck.mage-selected .targets,#combat-deck.mage-selected .stances{display:none}
@media(max-width:550px){
 #mage-hotbar{bottom:7px;padding:5px 6px}
 #mage-hotbar button.mage-slot{grid-template-columns:21px minmax(0,1fr) auto;gap:3px;padding:4px;min-height:53px}
 .mage-slot .mage-slot-icon{width:21px;font-size:18px}
 .mage-slot .mage-slot-label,.mage-slot small{font-size:10px}
 .mage-bar-heading{gap:5px;flex-wrap:wrap}
}
#survival-screen .manual-priority #control-caption{display:block;color:#b6c8dd;font-size:10px;order:3}\n