#screen-lobby { background: #070605; }
#lobby-canvas, #match-canvas, #hub-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
#screen-match::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse at 50% 40%, transparent 46%, rgba(6,4,2,0.5) 100%);
}
#combat-sides {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
  --combat-a: 0.42;
  --combat-w: 1;
}
#combat-sides.hidden { display: none !important; }
#combat-sides .side {
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(620px, 46vw);
  opacity: var(--combat-a, 0.42);
  pointer-events: none;
  overflow: visible;
  filter: blur(22px);
}
#combat-sides .side::before,
#combat-sides .side::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
#combat-sides .side.left {
  left: 0;
  transform-origin: 28% center;
  background: radial-gradient(ellipse 70% 62% at 28% 50%, rgba(255, 58, 34, 0.8) 0%, rgba(220, 28, 14, 0.42) 24%, rgba(160, 14, 10, 0.16) 48%, rgba(90, 8, 6, 0.05) 70%, transparent 92%);
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, rgba(0,0,0,0.28) 10%, #000 22%, #000 40%, rgba(0,0,0,0.4) 62%, rgba(0,0,0,0.1) 82%, transparent 100%),
    radial-gradient(ellipse 88% 72% at 30% 50%, #000 0%, #000 42%, transparent 80%);
  mask-image:
    linear-gradient(to right, transparent 0%, rgba(0,0,0,0.28) 10%, #000 22%, #000 40%, rgba(0,0,0,0.4) 62%, rgba(0,0,0,0.1) 82%, transparent 100%),
    radial-gradient(ellipse 88% 72% at 30% 50%, #000 0%, #000 42%, transparent 80%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  animation: combatDriftL 1.35s ease-in-out infinite;
}
#combat-sides .side.right {
  right: 0;
  transform-origin: 72% center;
  background: radial-gradient(ellipse 70% 62% at 72% 50%, rgba(255, 58, 34, 0.8) 0%, rgba(220, 28, 14, 0.42) 24%, rgba(160, 14, 10, 0.16) 48%, rgba(90, 8, 6, 0.05) 70%, transparent 92%);
  -webkit-mask-image:
    linear-gradient(to left, transparent 0%, rgba(0,0,0,0.28) 10%, #000 22%, #000 40%, rgba(0,0,0,0.4) 62%, rgba(0,0,0,0.1) 82%, transparent 100%),
    radial-gradient(ellipse 88% 72% at 70% 50%, #000 0%, #000 42%, transparent 80%);
  mask-image:
    linear-gradient(to left, transparent 0%, rgba(0,0,0,0.28) 10%, #000 22%, #000 40%, rgba(0,0,0,0.4) 62%, rgba(0,0,0,0.1) 82%, transparent 100%),
    radial-gradient(ellipse 88% 72% at 70% 50%, #000 0%, #000 42%, transparent 80%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  animation: combatDriftR 1.35s ease-in-out infinite;
}
#combat-sides .side.left::after {
  background: radial-gradient(ellipse 44% 40% at 28% 50%, rgba(255, 96, 52, 0.5) 0%, transparent 76%);
  animation: combatBloom 0.9s ease-in-out infinite;
}
#combat-sides .side.right::after {
  background: radial-gradient(ellipse 44% 40% at 72% 50%, rgba(255, 96, 52, 0.5) 0%, transparent 76%);
  animation: combatBloom 0.9s ease-in-out infinite;
}
@keyframes combatDriftL {
  0%, 100% { transform: translateX(0) scale(var(--combat-w, 1), 1); }
  50% { transform: translateX(4%) scale(calc(var(--combat-w, 1) * 1.05), 1.02); }
}
@keyframes combatDriftR {
  0%, 100% { transform: translateX(0) scale(var(--combat-w, 1), 1); }
  50% { transform: translateX(-4%) scale(calc(var(--combat-w, 1) * 1.05), 1.02); }
}
@keyframes combatBloom {
  0%, 100% { opacity: 0.45; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.12); }
}
.lobby-chrome {
  position: absolute; top: 20px; left: 0; right: 0; z-index: 2; text-align: center;
  pointer-events: none;
}
.lobby-chrome h2 {
  margin: 0; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
  font-family: var(--ui-display); text-shadow: 0 2px 0 #000, 0 0 16px rgba(224,180,80,0.35);
}
.lobby-chrome p { color: var(--muted); font-style: italic; }
.lobby-roster { display: flex; justify-content: center; gap: 16px; margin-top: 10px; pointer-events: auto; }
.lobby-roster button { min-width: 120px; }
.lobby-roster button.sel { border-color: var(--gold); color: var(--gold-bright); }

#hud { position: absolute; inset: 0; pointer-events: none; z-index: 8; }
#hud button, #action-bar, #action-bar .slot,
#player-frame, #target-frame, #party-frames, #enemy-frames,
.aura-row, .aura { pointer-events: auto; }
#spectate-chrome {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 14;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}
#spectate-chrome.hidden { display: none !important; }
#spectate-banner {
  font-family: var(--ui-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-size: 13px;
  text-shadow: 0 2px 0 #000, 0 0 14px rgba(120, 200, 255, 0.35);
  padding: 6px 14px;
  background: linear-gradient(180deg, rgba(16, 28, 40, 0.86), rgba(8, 10, 16, 0.9));
  border: 1px solid rgba(140, 190, 220, 0.45);
  border-radius: 4px;
}
#btn-leave-spectate {
  min-width: 140px;
  pointer-events: auto;
}
#ghost-banner {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 14;
  pointer-events: none;
  font-family: var(--ui-display);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ececec;
  font-size: 28px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
  padding: 0;
  background: none;
  border: none;
}
#ghost-banner.hidden { display: none !important; }
#screen-match.dead-tint::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 16, 18, 0.32);
  pointer-events: none;
  z-index: 8;
}
.unit-frame.spirit {
  border-color: #9ad8ff;
  box-shadow:
    0 0 0 1px #0a1420,
    0 0 0 3px rgba(90, 140, 190, 0.9),
    0 0 18px rgba(140, 210, 255, 0.4),
    inset 0 1px 0 rgba(200, 230, 255, 0.28);
}
#screen-match.spectating #action-bar,
#screen-match.spectating #gcd-bar,
#screen-match.spectating #cast-bar,
#screen-match.spectating #player-frame,
#screen-match.spectating #player-auras {
  display: none !important;
}

.unit-frame {
  position: absolute; top: 16px; left: 16px; width: 268px;
  display: flex; gap: 10px; align-items: stretch;
  background: linear-gradient(180deg, rgba(28,18,10,0.94), rgba(10,7,5,0.94));
  border: 1px solid #c4a050;
  border-radius: 6px;
  padding: 8px 10px 9px;
  box-shadow:
    0 0 0 1px #1a1208,
    0 0 0 3px rgba(90, 64, 24, 0.85),
    0 10px 22px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,220,150,0.22);
}
.unit-frame.target {
  left: 38%; transform: translateX(-50%); top: 16px;
  border-color: var(--gold-bright);
  box-shadow:
    0 0 0 1px #1a1208,
    0 0 0 3px rgba(90, 64, 24, 0.9),
    0 0 22px rgba(232,192,112,0.38),
    inset 0 1px 0 rgba(255,220,150,0.28);
}
.unit-frame { cursor: pointer; }
.unit-frame:hover {
  filter: brightness(1.08);
  border-color: var(--gold-bright);
}
.unit-frame.sel {
  border-color: var(--gold-bright);
  box-shadow:
    0 0 0 1px #1a1208,
    0 0 0 3px rgba(232, 192, 112, 0.95),
    0 0 18px rgba(232,192,112,0.45),
    inset 0 1px 0 rgba(255,220,150,0.28);
}
.uf-port {
  width: 52px; height: 52px; min-height: 52px; flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--cls, #3a1c14);
  background-size: cover;
  background-position: center 12%;
  background-repeat: no-repeat;
  box-shadow:
    0 0 0 2px #1a1208,
    0 0 0 3px #e0c070,
    0 0 0 5px #5a4018,
    0 0 0 6px #1a1208,
    inset 0 2px 3px rgba(255,230,180,0.28),
    0 4px 10px rgba(0,0,0,0.45);
}
.uf-port.port-blade { background-image: url("../textures/ui/port_blade.jpg"); }
.uf-port.port-warrior { background-image: url("../textures/ui/port_warrior.jpg"); }
.uf-port.port-arcanist { background-image: url("../textures/ui/port_arcanist.jpg"); }
.uf-port.port-aegis { background-image: url("../textures/ui/port_aegis.jpg"); }
.uf-body { flex: 1; min-width: 0; }
.unit-frame .name {
  font-size: 15px; color: var(--gold-bright);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px #000;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.15;
}
.uf-class {
  font-family: var(--ui-label);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1px 0 2px;
}
.bar {
  position: relative; height: 15px; margin-top: 4px; overflow: hidden;
  background: linear-gradient(#0c0706, #1a0c0c);
  border: 1px solid #2a1c10;
  border-radius: 2px;
  box-shadow: inset 0 2px 3px rgba(0,0,0,0.75);
}
.bar > i {
  display: block; height: 100%; position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.34) 0%, rgba(255,255,255,0.04) 38%, rgba(0,0,0,0.22) 100%),
    linear-gradient(180deg, #e87870, #b02020 48%, #6a1010);
}
.bar > i::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 42%;
  background: linear-gradient(180deg, rgba(255,255,255,0.28), transparent);
  pointer-events: none;
}
.bar > span {
  position: absolute; right: 5px; top: 0; font-size: 11px;
  color: #fff6d8; line-height: 15px; text-shadow: 0 1px 2px #000;
  font-variant-numeric: tabular-nums;
  z-index: 1;
}
.bar.mana > i {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 40%, rgba(0,0,0,0.22) 100%),
    linear-gradient(180deg, #7aa4ee, #1e4a9a 50%, #122a62);
}
.bar.energy > i {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 40%, rgba(0,0,0,0.22) 100%),
    linear-gradient(180deg, #efe08a, #c4a040 50%, #6a5010);
}
.bar.rage > i {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.28) 0%, transparent 40%, rgba(0,0,0,0.22) 100%),
    linear-gradient(180deg, #e87848, #a03018 50%, #5a1008);
}
.bar.cast { height: 11px; margin-top: 3px; }
.bar.cast > i {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 40%),
    linear-gradient(90deg, #8a6020, #ffe08a);
}

#party-frames { position: absolute; top: 126px; left: 16px; width: 228px; right: auto; }
#enemy-frames { position: absolute; top: 16px; right: 16px; width: 228px; left: auto; }
#enemy-frames .unit-frame, #party-frames .unit-frame {
  position: relative; top: auto; left: auto; width: 100%; margin-bottom: 8px; transform: none;
}
#enemy-frames .unit-frame { border-color: #a04848; }
#party-frames .unit-frame { border-color: #4a8a48; }
#party-frames .uf-port, #enemy-frames .uf-port { width: 42px; height: 42px; min-height: 42px; }

#match-meta {
  position: absolute;
  top: auto;
  left: auto;
  right: 14px;
  bottom: 12px;
  transform: none;
  z-index: 9;
  pointer-events: none;
  color: rgba(232, 210, 150, 0.72);
  letter-spacing: 0.04em;
  font-size: 10px;
  font-family: var(--ui-label);
  padding: 2px 7px;
  background: rgba(8, 5, 3, 0.42);
  border: 1px solid rgba(212, 180, 106, 0.18);
  border-radius: 3px;
  text-shadow: 0 1px 0 #000;
  box-shadow: none;
  white-space: nowrap;
  opacity: 0.85;
}
#match-clock {
  position: absolute;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
  font-family: var(--ui-display);
  font-size: 40px;
  line-height: 1;
  color: #ffe08a;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgba(212,180,106,0.5), 0 3px 0 #3a2a10;
}
#match-clock.hidden { display: none !important; }
#match-clock.urgent {
  color: #ffc070;
  animation: matchClockPulse 0.9s ease-in-out infinite;
}
@keyframes matchClockPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

#gcd-bar {
  position: absolute; bottom: 188px; left: 50%; transform: translateX(-50%);
  width: min(720px, 88vw); height: 6px;
  background: #140e0a; border: 1px solid #6a4e28;
  border-radius: 3px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4), inset 0 1px 2px rgba(0,0,0,0.6);
  z-index: 9;
  overflow: hidden;
}
#gcd-bar > i { display: block; height: 100%; background: linear-gradient(90deg, #8a7040, #ffe08a); width: 0; }

#cast-bar {
  position: absolute; bottom: 208px; left: 50%; transform: translateX(-50%);
  width: 430px; display: flex; align-items: stretch; gap: 8px;
  background: linear-gradient(180deg, rgba(22,14,8,0.95), rgba(8,6,4,0.95));
  border: 1px solid var(--gold);
  border-radius: 5px;
  padding: 7px 9px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,220,150,0.22);
  z-index: 9; pointer-events: none;
}
#cast-bar.hidden { display: none !important; }
#target-frame .bar.cast { display: none !important; }
#target-cast-bar {
  position: absolute; top: 148px; left: 38%; transform: translateX(-50%);
  width: 268px; display: flex; align-items: stretch; gap: 6px;
  background: linear-gradient(180deg, rgba(28,10,8,0.96), rgba(12,6,6,0.96));
  border: 1px solid #e05040;
  border-radius: 5px;
  padding: 7px 9px; box-shadow: 0 10px 28px rgba(0,0,0,0.7);
  z-index: 8; pointer-events: none;
}
#target-cast-bar.hidden { display: none !important; }
#target-cast-bar.friendly { border-color: #4aaa55; }
#target-cast-bar .cast-track > i { background: linear-gradient(90deg, #6a1818, #ff6840); }
#target-cast-bar.friendly .cast-track > i { background: linear-gradient(90deg, #2a5a28, #7adf6a); }
.cast-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 4px;
  background: #6ec4ff;
  box-shadow: 0 0 0 1px #1a1208, 0 0 0 2px #e0c070, inset 0 0 8px rgba(0,0,0,0.35);
}
.cast-body { flex: 1; min-width: 0; }
.cast-name { font-size: 14px; color: #fff6d8; margin-bottom: 4px; letter-spacing: 0.03em; }
.cast-track {
  height: 16px; background: #1a1008; border: 1px solid #5a4020; overflow: hidden; border-radius: 2px;
  box-shadow: inset 0 2px 3px rgba(0,0,0,0.65);
}
.cast-track > i {
  display: block; height: 100%; width: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 42%),
    linear-gradient(90deg, #8a6020, #ffe08a);
}
.cast-time { width: 36px; text-align: right; color: #ffe08a; font-size: 15px; align-self: center; font-variant-numeric: tabular-nums; }

.aura-row {
  position: absolute; top: 100px; left: 16px; display: flex; gap: 4px; z-index: 6;
}
.aura-row.target-auras { left: 38%; transform: translateX(-50%); top: 108px; }
.aura {
  width: 32px; height: 32px; border: 1px solid #d4b46a; position: relative;
  border-radius: 4px;
  background: radial-gradient(circle at 30% 25%, #5a4020, #1a1008);
  color: #fff6d8; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,230,180,0.2);
  cursor: pointer;
}
.aura.harm { background: radial-gradient(circle at 30% 25%, #4a1818, #1a0808); }
.aura.aura-magic { border-color: #4a9fff; box-shadow: 0 0 8px rgba(74, 159, 255, 0.7), inset 0 1px 0 rgba(180, 220, 255, 0.35); }
.aura.aura-curse { border-color: #b070ff; box-shadow: 0 0 8px rgba(176, 112, 255, 0.7), inset 0 1px 0 rgba(220, 190, 255, 0.35); }
.aura.aura-poison { border-color: #3dcc5a; box-shadow: 0 0 8px rgba(61, 204, 90, 0.7), inset 0 1px 0 rgba(180, 255, 190, 0.35); }
.aura.aura-disease { border-color: #c4a040; box-shadow: 0 0 8px rgba(196, 160, 64, 0.7), inset 0 1px 0 rgba(255, 230, 150, 0.35); }
.aura.aura-bleed { border-color: #e05050; box-shadow: 0 0 8px rgba(224, 80, 80, 0.75), inset 0 1px 0 rgba(255, 180, 180, 0.35); }
.aura.aura-enrage { border-color: #e07828; box-shadow: 0 0 8px rgba(224, 120, 40, 0.75), inset 0 1px 0 rgba(255, 200, 140, 0.35); }
.aura.aura-physical { border-color: #d4b46a; box-shadow: 0 0 8px rgba(212, 180, 106, 0.45), inset 0 1px 0 rgba(255, 230, 180, 0.25); }
.aura .ad { position: absolute; bottom: 0; right: 2px; font-size: 9px; color: #ffe08a; }

#action-bar {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start;
  gap: 7px;
  width: max-content; max-width: 96vw;
  padding: 10px 14px 12px;
  background:
    linear-gradient(180deg, rgba(16,10,6,0.12), rgba(8,4,2,0.2)),
    url("../textures/ui/action_tray.jpg") center/100% 100% no-repeat;
  border: 1px solid #c4a050;
  border-radius: 2px;
  box-shadow: 0 16px 28px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,220,150,0.12);
  z-index: 12;
  pointer-events: auto;
  overflow: visible;
}
.bar-break { flex-basis: 100%; height: 0; margin: 0; padding: 0; pointer-events: none; }
.slot {
  width: 62px; height: 62px; overflow: visible;
  border: 1px solid #1a1008;
  border-radius: 4px;
  background: #100a06;
  color: #efe4c8;
  display: block;
  position: relative;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  flex: 0 0 62px;
  box-shadow:
    0 0 0 1px #c9a35a,
    0 0 0 2px #5a4018,
    inset 0 2px 4px rgba(0,0,0,0.65),
    0 3px 8px rgba(0,0,0,0.4);
  transition: filter 0.12s ease, box-shadow 0.12s ease, transform 0.08s ease;
}
.slot:hover {
  filter: brightness(1.12);
  z-index: 2;
  box-shadow:
    0 0 0 1px #ffe9a8,
    0 0 0 2px #8a6828,
    0 0 14px rgba(255, 224, 138, 0.5),
    inset 0 2px 4px rgba(0,0,0,0.5);
}
.slot:active {
  transform: translateY(1px) scale(0.97);
  filter: brightness(0.92);
}
.slot .key {
  position: absolute; top: 3px; left: 5px; z-index: 3;
  color: var(--gold-bright); font-size: 11px; font-weight: 700;
  font-family: var(--ui-label);
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px #000, 0 0 6px #000;
  pointer-events: none;
}
.slot .icon {
  position: absolute; inset: 3px;
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; line-height: 1;
  color: #fff8e8;
  font-family: "Segoe UI Symbol", "Noto Sans Symbols", "Apple Symbols", sans-serif;
  text-shadow: 0 2px 0 rgba(0,0,0,0.55), 0 0 12px rgba(255,255,255,0.22);
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,0.38), transparent 42%),
    linear-gradient(165deg, var(--icon-hi, #8a6840) 0%, var(--icon-mid, #4a3018) 48%, var(--icon-lo, #1a1008) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), inset 0 -10px 14px rgba(0,0,0,0.45);
}
.slot .icon::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.16) 0%, transparent 38%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
}
.slot.school-frost { --icon-hi: #9ad4ff; --icon-mid: #2a6aa8; --icon-lo: #0c2848; }
.slot.school-fire { --icon-hi: #ff9a4a; --icon-mid: #c04018; --icon-lo: #4a1008; }
.slot.school-holy { --icon-hi: #ffe9a0; --icon-mid: #c4a040; --icon-lo: #4a3410; }
.slot.school-shadow { --icon-hi: #c090ff; --icon-mid: #5a2a9a; --icon-lo: #1a0838; }
.slot.school-arcane { --icon-hi: #e0b0ff; --icon-mid: #7a40b8; --icon-lo: #2a1048; }
.slot.school-physical { --icon-hi: #d8c090; --icon-mid: #6a4a28; --icon-lo: #24180c; }
.slot .tip { display: none; }
.slot .cd-sweep, .slot .gcd-sweep {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: conic-gradient(rgba(0,0,0,0.72) calc(var(--p, 0) * 1%), transparent 0);
  border-radius: 4px;
}
.slot .gcd-sweep { background: conic-gradient(rgba(10,16,36,0.5) calc(var(--p, 0) * 1%), transparent 0); }
.slot .cd-num {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; text-shadow: 0 2px 3px #000, 0 0 8px #000; font-weight: 700;
  pointer-events: none; z-index: 4;
}
.slot.flash { box-shadow: 0 0 0 1px #ffe08a, 0 0 16px rgba(255,224,138,0.75); }
.slot.fail { box-shadow: 0 0 0 1px #e04040, 0 0 14px rgba(224,64,64,0.7); }
.slot.cd .icon { filter: brightness(0.55); }
.slot.oom .icon { filter: grayscale(0.25) brightness(0.7) sepia(0.35) hue-rotate(-20deg); }
.slot.oom { cursor: pointer; }
.slot.passive { cursor: default; }
.slot.passive:hover { filter: none; transform: none; }
.slot .autocast {
  display: none;
  position: absolute;
  inset: -6px;
  border: 2px dashed rgba(92, 210, 78, 0.92);
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 0 10px rgba(70, 190, 70, 0.4);
  animation: autocastSpin 2.6s linear infinite;
}
.slot.passive .autocast { display: block; }
@keyframes autocastSpin {
  to { transform: rotate(360deg); }
}

#combat-log {
  position: absolute; bottom: 188px; right: 16px; width: 300px; height: 148px;
  overflow: hidden; font-size: 13px; color: #d8c8a8; text-align: right;
  text-shadow: 0 1px 2px #000;
  mask-image: linear-gradient(180deg, transparent, #000 18%);
}
