:root {
  color-scheme: dark;
  --bg: #11161b;
  --panel: #1b252e;
  --panel-2: #263342;
  --ink: #edf4fb;
  --muted: #9caab7;
  --line: rgba(255, 255, 255, 0.13);
  --blue: #4ca3ff;
  --red: #ff6161;
  --yellow: #ffd15d;
  --green: #69d883;
  --cyan: #67e0e4;
}

@property --login-frame-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: auto;
  background: linear-gradient(135deg, #101419, #1a222b 45%, #11161b);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

body.auth-locked .app,
body.auth-locked .toast {
  visibility: hidden;
}

.login-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #05080c;
}

.login-gate[hidden] {
  display: none;
}

.login-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  filter: saturate(1.05) contrast(1.08) brightness(0.72);
}

.login-video-placeholder {
  background:
    linear-gradient(115deg, rgba(4, 10, 16, 0.96), rgba(14, 40, 48, 0.78) 46%, rgba(5, 9, 18, 0.94)),
    repeating-linear-gradient(90deg, rgba(93, 235, 244, 0.08) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(0deg, rgba(255, 201, 91, 0.06) 0 1px, transparent 1px 72px);
  animation: loginScanDrift 14s linear infinite;
}

@keyframes loginScanDrift {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 0 0, 168px 0, 0 144px; }
}

.login-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 12, 0.82), rgba(5, 8, 12, 0.38) 48%, rgba(5, 8, 12, 0.76)),
    radial-gradient(circle at 52% 45%, rgba(103, 224, 228, 0.16), transparent 42%);
}

.login-gate::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 49%, rgba(103, 224, 228, 0.08) 50%, transparent 51%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px);
  opacity: 0.35;
  pointer-events: none;
  animation: login-scan-noise 5.4s steps(6, end) infinite;
}

.login-panel {
  position: relative;
  width: min(448px, calc(100vw - 32px));
  padding: 72px 24px 24px;
  border: 1px solid rgba(103, 224, 228, 0.48);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(20, 31, 39, 0.9), rgba(8, 13, 18, 0.88)),
    rgba(12, 18, 25, 0.86);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.52),
    0 0 34px rgba(103, 224, 228, 0.12),
    inset 0 0 38px rgba(103, 224, 228, 0.06);
  backdrop-filter: blur(12px);
  isolation: isolate;
  animation: login-panel-power 620ms ease-out both;
}

.login-panel::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -2;
  border-radius: inherit;
  background: conic-gradient(from var(--login-frame-angle, 0deg), transparent 0 8%, rgba(103, 224, 228, 0.96) 12%, rgba(255, 209, 93, 0.82) 18%, transparent 26% 48%, rgba(210, 116, 255, 0.72) 54%, rgba(103, 224, 228, 0.88) 62%, transparent 72% 100%);
  filter: blur(0.4px);
  animation: login-frame-orbit 4.2s linear infinite;
}

.login-panel::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(14, 22, 30, 0.97), rgba(7, 11, 16, 0.94)),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(103, 224, 228, 0.05) 18px 19px, transparent 19px 36px);
}

.login-frame-lines {
  position: absolute;
  inset: 10px;
  pointer-events: none;
}

.login-frame-lines i {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: rgba(103, 224, 228, 0.84);
  filter: drop-shadow(0 0 8px rgba(103, 224, 228, 0.58));
}

.login-frame-lines i:nth-child(1) {
  left: 0;
  top: 0;
  border-left: 2px solid;
  border-top: 2px solid;
}

.login-frame-lines i:nth-child(2) {
  right: 0;
  top: 0;
  border-right: 2px solid;
  border-top: 2px solid;
}

.login-frame-lines i:nth-child(3) {
  left: 0;
  bottom: 0;
  border-left: 2px solid;
  border-bottom: 2px solid;
}

.login-frame-lines i:nth-child(4) {
  right: 0;
  bottom: 0;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.login-billboard {
  position: absolute;
  left: 50%;
  top: -46px;
  width: min(310px, calc(100% - 58px));
  height: 84px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 209, 93, 0.44);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(80, 59, 34, 0.94), rgba(22, 22, 24, 0.96)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 9px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.44), inset 0 0 24px rgba(255, 209, 93, 0.1);
  transform-origin: 52% -28px;
  animation: billboard-drop 980ms cubic-bezier(.17,.84,.31,1.2) both, billboard-sway 5.5s ease-in-out 1.1s infinite;
}

.login-billboard::before,
.login-billboard::after {
  content: "";
  position: absolute;
  top: -32px;
  width: 1px;
  height: 38px;
  background: linear-gradient(rgba(237, 244, 251, 0.62), rgba(237, 244, 251, 0.06));
}

.login-billboard::before {
  left: 22%;
  rotate: -7deg;
}

.login-billboard::after {
  right: 18%;
  rotate: 9deg;
}

.login-billboard span {
  color: rgba(255, 209, 93, 0.82);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 0 10px rgba(255, 209, 93, 0.35);
}

.login-billboard b {
  color: rgba(237, 244, 251, 0.72);
  font-size: 10px;
  letter-spacing: 0;
}

.login-panel-glitch {
  position: absolute;
  inset: 56px 14px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(103, 224, 228, 0.72), transparent);
  opacity: 0.72;
  animation: login-glitch-line 3.6s ease-in-out infinite;
}

.login-title {
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1.05;
}

.login-subtitle {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.login-form {
  display: grid;
  gap: 12px;
}

.login-form[hidden] {
  display: none;
}

.login-sync {
  display: grid;
  gap: 12px;
  margin-top: 6px;
  padding: 14px;
  border: 1px solid rgba(103, 224, 228, 0.28);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(103, 224, 228, 0.1), transparent 32% 68%, rgba(255, 209, 93, 0.08)),
    rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 0 18px rgba(103, 224, 228, 0.08);
}

.login-sync[hidden] {
  display: none;
}

.sync-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.sync-head b {
  color: var(--yellow);
  font-size: 18px;
}

.sync-bar {
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(103, 224, 228, 0.44);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.42);
}

.sync-bar i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(103, 224, 228, 0.95), rgba(255, 209, 93, 0.86)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 8px, transparent 8px 14px);
  box-shadow: 0 0 14px rgba(103, 224, 228, 0.68);
  transition: width 160ms ease;
}

.login-sync p {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.sync-continue[hidden] {
  display: none;
}

.login-gate.syncing .login-panel-glitch {
  animation-duration: 1.2s;
}

.login-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.login-input-wrap {
  position: relative;
  display: block;
}

.login-input-wrap::before,
.login-input-wrap::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.login-input-wrap::before {
  inset: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, transparent, rgba(103, 224, 228, 0.55), transparent);
  opacity: 0;
  transform: translateX(-42%);
}

.login-input-wrap::after {
  left: 8px;
  right: 8px;
  bottom: 5px;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(103, 224, 228, 0.9) 0 8px, transparent 8px 14px);
  opacity: 0.2;
}

.login-field input {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 0 12px;
  background:
    linear-gradient(90deg, rgba(103, 224, 228, 0.08), transparent 18% 82%, rgba(255, 209, 93, 0.06)),
    rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font: inherit;
  outline: none;
}

.password-wrap input {
  padding-right: 76px;
}

.password-toggle {
  position: absolute;
  right: 7px;
  top: 50%;
  z-index: 3;
  min-height: 28px;
  min-width: 58px;
  padding: 0 8px;
  border-color: rgba(103, 224, 228, 0.38);
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(103, 224, 228, 0.12), rgba(255, 209, 93, 0.08)),
    rgba(10, 16, 22, 0.86);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  transform: translateY(-50%);
  box-shadow: inset 0 0 10px rgba(103, 224, 228, 0.1);
}

.password-toggle[aria-pressed="true"] {
  border-color: rgba(255, 209, 93, 0.62);
  color: var(--yellow);
}

.password-toggle:hover {
  background:
    linear-gradient(90deg, rgba(103, 224, 228, 0.18), rgba(255, 209, 93, 0.12)),
    rgba(18, 27, 35, 0.94);
}

.login-field input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(103, 224, 228, 0.16), inset 0 0 16px rgba(103, 224, 228, 0.12);
}

.login-input-wrap:focus-within::before {
  animation: input-weld-scan 820ms ease-out;
}

.login-input-wrap:focus-within::after {
  opacity: 0.75;
  animation: input-circuit-pulse 620ms steps(4, end) infinite;
}

.weld-spark {
  position: absolute;
  right: 8px;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
}

.weld-spark::before,
.weld-spark::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.98), rgba(103, 224, 228, 0.92));
  transform-origin: right center;
}

.weld-spark::after {
  rotate: -28deg;
  width: 30px;
}

.login-input-wrap:focus-within .weld-spark {
  animation: weld-spark-pop 520ms steps(4, end) infinite;
}

.free-notice-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(103, 224, 228, 0.22);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(103, 224, 228, 0.08), rgba(255, 209, 93, 0.04)),
    rgba(8, 14, 18, 0.58);
  box-shadow: inset 0 0 18px rgba(103, 224, 228, 0.06);
}

.free-notice-check input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--cyan);
}

.free-notice-check span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.free-notice-check b {
  color: var(--yellow);
  font-size: 12px;
  line-height: 1.2;
}

.free-notice-check em {
  max-height: 86px;
  overflow-y: auto;
  padding-right: 4px;
  color: #bfd0dc;
  font-size: 11px;
  font-style: normal;
  line-height: 1.45;
}

.free-notice-check:focus-within {
  border-color: rgba(255, 209, 93, 0.48);
  box-shadow: inset 0 0 18px rgba(255, 209, 93, 0.08), 0 0 14px rgba(103, 224, 228, 0.12);
}

.login-button {
  margin-top: 6px;
  border-color: rgba(103, 224, 228, 0.42);
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent),
    linear-gradient(180deg, #2f6f92, #20475f);
  background-size: 220% 100%, auto;
  font-weight: 800;
  box-shadow: inset 0 0 18px rgba(103, 224, 228, 0.14);
  animation: login-button-sweep 3s linear infinite;
}

.login-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.login-actions .login-button {
  margin-top: 6px;
}

.login-button.secondary {
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent),
    linear-gradient(180deg, #37495f, #202c3b);
  color: var(--ink);
}

.login-message {
  min-height: 20px;
  margin: 2px 0 0;
  color: var(--yellow);
  font-size: 13px;
}

.login-message.error {
  color: var(--red);
}

@keyframes login-panel-power {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    filter: brightness(1.6) blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: brightness(1) blur(0);
  }
}

@keyframes login-frame-orbit {
  to {
    --login-frame-angle: 360deg;
  }
}

@keyframes login-scan-noise {
  0%, 100% {
    opacity: 0.28;
    transform: translateY(0);
  }
  42% {
    opacity: 0.42;
    transform: translateY(2px);
  }
  62% {
    opacity: 0.18;
    transform: translateY(-1px);
  }
}

@keyframes billboard-drop {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-130px) rotate(-12deg);
  }
  62% {
    opacity: 1;
    transform: translateX(-50%) translateY(8px) rotate(4deg);
  }
  82% {
    transform: translateX(-50%) translateY(-3px) rotate(-2deg);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) rotate(0.8deg);
  }
}

@keyframes billboard-sway {
  0%, 100% {
    transform: translateX(-50%) rotate(0.8deg);
  }
  50% {
    transform: translateX(-50%) rotate(-1.4deg);
  }
}

@keyframes login-glitch-line {
  0%, 76%, 100% {
    opacity: 0.24;
    transform: translateX(-12px) scaleX(0.7);
  }
  80% {
    opacity: 1;
    transform: translateX(18px) scaleX(1);
  }
  83% {
    opacity: 0.38;
    transform: translateX(-4px) scaleX(0.5);
  }
}

@keyframes input-weld-scan {
  0% {
    opacity: 0;
    transform: translateX(-48%);
  }
  24% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translateX(48%);
  }
}

@keyframes input-circuit-pulse {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(2.4);
  }
}

@keyframes weld-spark-pop {
  0%, 100% {
    opacity: 0;
    filter: none;
    transform: translateY(-50%) scaleX(0.5);
  }
  35% {
    opacity: 1;
    filter: drop-shadow(0 0 9px rgba(103, 224, 228, 0.9)) drop-shadow(0 0 4px rgba(255, 209, 93, 0.72));
    transform: translateY(-50%) scaleX(1);
  }
  65% {
    opacity: 0.62;
    transform: translateY(-50%) scaleX(0.72);
  }
}

@keyframes login-button-sweep {
  from {
    background-position: 180% 0, 0 0;
  }
  to {
    background-position: -40% 0, 0 0;
  }
}

button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #2a3846;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

button:hover:not(:disabled),
button.active {
  border-color: var(--cyan);
  background: #35495c;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.app {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.hud {
  position: fixed;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  pointer-events: none;
}

.hud > * {
  pointer-events: auto;
}

.game-loading {
  position: fixed;
  left: 50%;
  top: 92px;
  z-index: 7;
  width: min(420px, calc(100vw - 32px));
  padding: 10px 12px;
  border: 1px solid rgba(103, 224, 228, 0.42);
  border-radius: 6px;
  background: rgba(8, 13, 18, 0.88);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34), inset 0 0 22px rgba(103, 224, 228, 0.08);
  transform: translateX(-50%);
  pointer-events: none;
}

.game-loading[hidden] {
  display: none;
}

.game-loading div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.game-loading strong {
  color: var(--yellow);
}

.game-loading i {
  display: block;
  width: var(--game-loading-progress, 0%);
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), var(--yellow));
  box-shadow: 0 0 12px rgba(103, 224, 228, 0.34);
  transition: width 120ms ease;
}

.kicker,
.label {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.map-name {
  margin: 6px 0 0;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 700;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 44px);
}

h2 {
  margin-bottom: 12px;
  font-size: 20px;
}

.hud-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 25, 31, 0.9);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.update-notice-button {
  position: relative;
}

.update-notice-button i {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 9px;
  height: 9px;
  border: 2px solid #111920;
  border-radius: 50%;
  background: #ff5454;
  box-shadow: 0 0 10px rgba(255, 84, 84, 0.85);
}

.update-notice-button i[hidden] {
  display: none;
}

.current-user {
  max-width: 150px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.latency-pill {
  min-width: 86px;
  padding: 7px 9px;
  border: 1px solid rgba(103, 224, 228, 0.36);
  border-radius: 6px;
  background: rgba(8, 17, 23, 0.78);
  color: #bffcff;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  box-shadow: inset 0 0 14px rgba(103, 224, 228, 0.08);
}

.latency-good {
  border-color: rgba(88, 255, 172, 0.45);
  color: #a8ffd5;
}

.latency-warn {
  border-color: rgba(255, 209, 93, 0.55);
  color: #ffe7a1;
}

.latency-bad {
  border-color: rgba(255, 97, 97, 0.55);
  color: #ffd1d1;
}

.latency-unknown {
  color: var(--muted);
}

.top-credit {
  min-width: 116px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 209, 93, 0.48);
  border-radius: 6px;
  background: rgba(38, 29, 12, 0.78);
  color: #ffe7a1;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  box-shadow: inset 0 0 16px rgba(255, 209, 93, 0.08), 0 0 14px rgba(255, 209, 93, 0.12);
}

.logout-button {
  min-width: 54px;
  min-height: 34px;
  padding: 0 10px;
  border-color: rgba(255, 97, 97, 0.42);
  color: #ffd1d1;
}

.audio-button {
  min-width: 76px;
  min-height: 34px;
  padding: 0 10px;
  border-color: rgba(103, 224, 228, 0.38);
  color: #bdfcff;
}

.audio-button[aria-pressed="false"] {
  border-color: rgba(156, 170, 183, 0.28);
  color: var(--muted);
}

.logout-button:hover {
  border-color: var(--red);
  background: rgba(116, 43, 49, 0.72);
}

#modeLabel {
  color: var(--yellow);
  font-weight: 700;
}

#cooldownLabel {
  min-width: 72px;
  text-align: center;
}

#toggleLeftPanel,
#toggleRightPanel {
  min-width: 54px;
  padding: 0 10px;
}

.layout {
  display: block;
}

.panel,
.map-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(27, 37, 46, 0.92);
}

.panel {
  position: fixed;
  top: 102px;
  bottom: 16px;
  left: 16px;
  z-index: 4;
  width: 278px;
  max-height: calc(100vh - 118px);
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 14px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
  background: rgba(18, 25, 31, 0.9);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, opacity 180ms ease;
}

.panel::-webkit-scrollbar {
  width: 8px;
}

.panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(103, 224, 228, 0.25);
}

.app.left-panel-hidden .panel:not(.right-panel) {
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(-100% - 24px));
}

.left-panel-tab {
  position: fixed;
  top: 124px;
  left: 294px;
  z-index: 6;
  width: 34px;
  min-height: 104px;
  display: grid;
  grid-template-rows: 24px 1fr;
  place-items: center;
  gap: 4px;
  padding: 8px 0;
  border-radius: 0 7px 7px 0;
  border-color: rgba(103, 224, 228, 0.38);
  background: rgba(18, 25, 31, 0.92);
  color: var(--ink);
  box-shadow: 9px 16px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  transition: left 180ms ease, background 160ms ease, border-color 160ms ease;
}

.left-panel-tab:hover {
  border-color: var(--cyan);
  background: rgba(37, 54, 67, 0.96);
}

.left-panel-tab .tab-arrow {
  font-size: 24px;
  line-height: 1;
}

.left-panel-tab .tab-text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.app.left-panel-hidden .left-panel-tab {
  left: 0;
}

.app.left-panel-hidden .left-panel-tab .tab-arrow {
  transform: rotate(180deg);
}

.right-panel {
  left: auto;
  right: 16px;
  width: 300px;
}

.app.right-panel-hidden .right-panel {
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(100% + 24px));
}

.right-panel-tab {
  position: fixed;
  top: 124px;
  right: 316px;
  z-index: 6;
  width: 34px;
  min-height: 104px;
  display: grid;
  grid-template-rows: 24px 1fr;
  place-items: center;
  gap: 4px;
  padding: 8px 0;
  border-radius: 7px 0 0 7px;
  border-color: rgba(103, 224, 228, 0.38);
  background: rgba(18, 25, 31, 0.92);
  color: var(--ink);
  box-shadow: -9px 16px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  transition: right 180ms ease, background 160ms ease, border-color 160ms ease;
}

.right-panel-tab:hover {
  border-color: var(--cyan);
  background: rgba(37, 54, 67, 0.96);
}

.right-panel-tab .tab-arrow {
  font-size: 24px;
  line-height: 1;
}

.right-panel-tab .tab-text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.app.right-panel-hidden .right-panel-tab {
  right: 0;
}

.app.right-panel-hidden .right-panel-tab .tab-arrow {
  transform: rotate(180deg);
}

.chat-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 18;
  width: min(460px, calc(100vw - 36px));
  border: 1px solid rgba(103, 224, 228, 0.34);
  border-radius: 8px;
  background: rgba(14, 21, 28, 0.94);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), inset 0 0 20px rgba(103, 224, 228, 0.07);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.auth-locked .chat-dock {
  display: none;
}

.chat-toggle {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid rgba(103, 224, 228, 0.18);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(103, 224, 228, 0.16), rgba(255, 209, 93, 0.08)),
    rgba(20, 31, 40, 0.94);
  color: var(--ink);
}

.chat-toggle strong {
  font-size: 13px;
}

.chat-toggle span {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
}

.chat-panel {
  display: grid;
  grid-template-rows: minmax(160px, 340px) auto;
}

.chat-dock.collapsed {
  width: 190px;
}

.chat-dock.collapsed .chat-panel {
  display: none;
}

.chat-dock.collapsed .chat-toggle {
  border-bottom: 0;
}

.chat-messages {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.chat-message {
  display: grid;
  gap: 3px;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  background: rgba(28, 39, 49, 0.68);
}

.chat-message.mine {
  border-color: rgba(255, 209, 93, 0.34);
  background: rgba(66, 54, 30, 0.52);
}

.chat-message.private {
  border-color: rgba(210, 116, 255, 0.38);
  background:
    linear-gradient(90deg, rgba(210, 116, 255, 0.12), rgba(103, 224, 228, 0.06)),
    rgba(28, 39, 49, 0.72);
}

.chat-message-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
}

.chat-avatar {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  max-width: 24px;
  max-height: 24px;
  aspect-ratio: 1 / 1;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(103, 224, 228, 0.42);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.2), rgba(103, 224, 228, 0.1) 42%, rgba(8, 14, 18, 0.9));
  color: #d7fbff;
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
}

span.chat-avatar {
  cursor: default;
}

button.chat-avatar:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  box-shadow: 0 0 12px rgba(255, 209, 93, 0.18);
}

.chat-speaker {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  gap: 5px;
  border: 0;
  padding: 0;
  min-height: 0;
  background: transparent;
  color: var(--cyan);
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

span.chat-speaker {
  cursor: default;
}

button.chat-speaker:hover {
  color: var(--yellow);
}

.chat-speaker em {
  flex: 0 0 auto;
  padding: 1px 4px;
  border: 1px solid rgba(255, 209, 93, 0.34);
  border-radius: 4px;
  background: rgba(255, 209, 93, 0.12);
  color: var(--yellow);
  font-style: normal;
  font-size: 9px;
  line-height: 1.2;
}

.chat-private-tag {
  flex: 0 0 auto;
  padding: 2px 5px;
  border: 1px solid rgba(210, 116, 255, 0.45);
  border-radius: 4px;
  color: #e9c5ff;
  background: rgba(210, 116, 255, 0.11);
  font-size: 9px;
  font-weight: 950;
}

.chat-message-head time {
  margin-left: auto;
  color: var(--muted);
  font-weight: 700;
}

.chat-message p {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
  word-break: break-word;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(103, 224, 228, 0.16);
  background: rgba(9, 15, 20, 0.72);
}

.player-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.player-info-grid span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(103, 224, 228, 0.18);
  border-radius: 6px;
  background: rgba(9, 15, 20, 0.48);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.player-info-grid b {
  color: var(--yellow);
}

.chat-form input {
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(103, 224, 228, 0.24);
  border-radius: 5px;
  background: rgba(8, 14, 18, 0.88);
  color: var(--ink);
}

.chat-form input.private-mode {
  border-color: rgba(210, 116, 255, 0.62);
  box-shadow: inset 0 0 18px rgba(210, 116, 255, 0.1), 0 0 12px rgba(210, 116, 255, 0.14);
}

.chat-private-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid rgba(210, 116, 255, 0.36);
  border-radius: 6px;
  background: rgba(20, 12, 30, 0.92);
  color: #e9c5ff;
  font-size: 11px;
  font-weight: 900;
}

.chat-private-bar button {
  min-height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 10px;
}

.chat-form button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 5px;
}

.portrait {
  height: 180px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.07) 1px, transparent 1px),
    #141b22;
  background-size: 18px 18px;
  overflow: hidden;
}

.portrait img {
  width: 155px;
  image-rendering: pixelated;
}

.stats {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  color: var(--muted);
}

.stats strong {
  color: var(--ink);
}

.awakening-boost-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin: 8px 0 10px;
  padding: 8px;
  border: 1px solid rgba(116, 246, 255, 0.32);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(35, 185, 202, 0.13), rgba(255, 209, 93, 0.08));
  box-shadow: inset 0 0 16px rgba(103, 224, 228, 0.08);
}

.awakening-boost-summary span {
  grid-column: 1 / -1;
  color: #8ff8ff;
  font-size: 10px;
  font-weight: 900;
}

.awakening-boost-summary b {
  color: #ffe16b;
  font-size: 11px;
}

.awakening-boost-summary[hidden] {
  display: none;
}

.stat-link {
  min-height: 24px;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink);
  font-size: 12px;
  text-align: right;
}

.stat-link:hover {
  border-color: rgba(103, 224, 228, 0.5);
}

.resource-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.resource-actions button {
  min-height: 56px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 8px;
  text-align: left;
}

.resource-actions strong {
  color: var(--cyan);
  font-size: 13px;
}

.resource-actions span {
  color: var(--muted);
  font-size: 11px;
}

.pilot-box {
  display: grid;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(103, 224, 228, 0.18);
  border-radius: 6px;
  background: rgba(8, 14, 20, 0.42);
}

.pilot-summary,
.pilot-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}

.pilot-summary strong,
.pilot-stat-grid strong {
  color: var(--ink);
}

.pilot-stat-grid span {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.035);
}

.pilot-stat-grid span.pilot-derived {
  grid-column: 1 / -1;
  align-items: flex-start;
}

.pilot-stat-grid span.pilot-derived strong {
  text-align: right;
  line-height: 1.35;
}

.pilot-stat-grid.special span {
  border-color: rgba(255, 209, 93, 0.14);
}

.pilot-action-title {
  margin: 2px 0 -2px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
}

.pilot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.pilot-actions button {
  min-height: 24px;
  padding: 4px 7px;
  border: 1px solid rgba(103, 224, 228, 0.22);
  border-radius: 4px;
  color: var(--ink);
  background: rgba(13, 24, 31, 0.82);
  font-size: 11px;
}

.pilot-actions [data-reset-stats] {
  border-color: rgba(255, 104, 104, 0.42);
  color: #ffb1b1;
  box-shadow: inset 0 0 20px rgba(255, 104, 104, 0.12);
}

.pilot-actions button.active {
  border-color: rgba(255, 209, 93, 0.68);
  color: #ffe8a3;
  box-shadow: inset 0 0 14px rgba(255, 209, 93, 0.1);
}

.pilot-job-button {
  min-width: 72px;
  display: grid;
  gap: 2px;
  text-align: left;
}

.pilot-job-button strong {
  color: inherit;
  font-size: 11px;
  line-height: 1.15;
}

.pilot-job-button span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.1;
}

.pilot-job-button.active {
  background:
    linear-gradient(90deg, rgba(255, 209, 93, 0.2), rgba(103, 224, 228, 0.08)),
    rgba(37, 30, 14, 0.9);
}

.pilot-job-button.active span {
  color: #ffe8a3;
}

.pilot-actions button:disabled {
  opacity: 0.45;
}

.equipped-box {
  display: grid;
  gap: 7px;
  padding-top: 2px;
}

.equipped-list {
  display: grid;
  gap: 6px;
}

.equipped-item {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 7px 8px;
  border: 1px solid rgba(103, 224, 228, 0.2);
  border-radius: 6px;
  background: rgba(10, 16, 22, 0.48);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.equipped-item:hover {
  border-color: rgba(103, 224, 228, 0.46);
  background: rgba(18, 31, 39, 0.72);
}

.equipped-item.exclusive-active {
  border-color: rgba(255, 209, 93, 0.46);
  box-shadow: inset 0 0 18px rgba(255, 209, 93, 0.08);
}

.equipped-item strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.equipped-item span,
.empty-note.compact {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.commands {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.weapon-list {
  display: grid;
  gap: 8px;
  max-height: 38vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.weapon {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  padding: 9px 10px;
  text-align: left;
}

.weapon-select {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-column: 1 / -1;
  gap: 4px 8px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  box-shadow: none;
}

.weapon-select:hover {
  transform: none;
  box-shadow: none;
}

.weapon span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
}

.weapon-upgrade {
  grid-column: 1 / -1;
  min-height: 28px;
  padding: 5px 8px;
  border-color: rgba(255, 209, 93, 0.38);
  color: #ffe7a1;
  font-size: 12px;
}

.map-shell {
  position: fixed;
  inset: 0;
  z-index: 1;
  height: 100vh;
  border: 0;
  border-radius: 0;
  overflow: auto;
  padding: 94px 18px 18px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    #111820;
  background-size: 80px 80px;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.map-shell.dragging {
  cursor: grabbing;
}

.gold-room-timer {
  position: fixed;
  top: 72px;
  left: 50%;
  z-index: 31;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 250px;
  max-width: min(520px, calc(100vw - 320px));
  padding: 8px 14px;
  border: 1px solid rgba(255, 209, 93, 0.72);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(50, 34, 9, 0.92), rgba(9, 20, 28, 0.9)),
    rgba(5, 10, 14, 0.92);
  box-shadow: 0 0 18px rgba(255, 209, 93, 0.18), inset 0 0 16px rgba(255, 209, 93, 0.1);
  color: #ffe7a1;
  font-size: 12px;
  font-weight: 800;
  transform: translateX(-50%);
  pointer-events: none;
}

.gold-room-timer[hidden] {
  display: none;
}

.gold-room-timer span {
  color: #67e0e4;
  font-size: 11px;
  letter-spacing: 0;
}

.gold-room-timer strong {
  color: #ffd15d;
  font-size: 18px;
  line-height: 1;
  text-shadow: 0 0 10px rgba(255, 209, 93, 0.42);
}

.gold-room-timer em {
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scene-weather {
  position: fixed;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
}

.reward-layer {
  position: sticky;
  left: 0;
  top: 0;
  z-index: 20;
  width: 100%;
  height: 0;
  overflow: visible;
  pointer-events: none;
}

.minimap {
  position: fixed;
  top: 102px;
  right: 334px;
  z-index: 7;
  width: 176px;
  height: 112px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(103, 224, 228, 0.45);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.08) 1px, transparent 1px),
    rgba(5, 11, 17, 0.82);
  background-size: 22px 22px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36), inset 0 0 18px rgba(103, 224, 228, 0.08);
  backdrop-filter: blur(8px);
}

.app.right-panel-hidden .minimap {
  right: 16px;
}

.minimap::before {
  content: "MAP";
  position: absolute;
  left: 7px;
  top: 5px;
  z-index: 3;
  color: rgba(189, 252, 255, 0.88);
  font-size: 10px;
  font-weight: 900;
  pointer-events: none;
}

.minimap-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.minimap-dot.hero {
  width: 8px;
  height: 8px;
  background: #69d883;
  box-shadow: 0 0 8px rgba(105, 216, 131, 0.9);
}

.minimap-dot.enemy {
  background: #ff6161;
  box-shadow: 0 0 7px rgba(255, 97, 97, 0.78);
}

.minimap-dot.enemy.boss {
  width: 9px;
  height: 9px;
  border: 1px solid #ffd15d;
  background: #ff2f48;
  box-shadow: 0 0 10px rgba(255, 47, 72, 0.95), 0 0 5px rgba(255, 209, 93, 0.95);
}

.minimap-dot.portal {
  width: 7px;
  height: 7px;
  border: 1px solid #67e0e4;
  background: rgba(199, 118, 255, 0.85);
  box-shadow: 0 0 8px rgba(199, 118, 255, 0.82);
}

.minimap-dot.npc,
.minimap-dot.player {
  width: 6px;
  height: 6px;
  background: #ffd15d;
  box-shadow: 0 0 7px rgba(255, 209, 93, 0.75);
}

.minimap-view {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(103, 224, 228, 0.08);
  box-shadow: 0 0 8px rgba(103, 224, 228, 0.55);
  pointer-events: none;
}

.scene-weather::before,
.scene-weather::after {
  content: "";
  position: absolute;
  inset: -12% -45%;
  opacity: 0;
  will-change: transform;
}

.scene-weather::before {
  background:
    radial-gradient(ellipse at 12% 28%, rgba(255, 255, 255, 0.34) 0 6%, transparent 13%),
    radial-gradient(ellipse at 34% 18%, rgba(255, 255, 255, 0.22) 0 5%, transparent 12%),
    radial-gradient(ellipse at 58% 34%, rgba(255, 255, 255, 0.28) 0 7%, transparent 15%),
    radial-gradient(ellipse at 82% 24%, rgba(255, 255, 255, 0.18) 0 6%, transparent 14%);
  background-size: 760px 280px;
  animation: cloud-drift 72s linear infinite;
}

.scene-weather::after {
  background:
    linear-gradient(180deg, rgba(255, 219, 140, 0.16), transparent 32%),
    radial-gradient(circle at 74% 14%, rgba(255, 235, 178, 0.34), transparent 12%);
  opacity: 0.35;
}

.meteor {
  position: absolute;
  top: 12%;
  left: 78%;
  width: 180px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), rgba(103, 224, 228, 0.38));
  filter: drop-shadow(0 0 10px rgba(103, 224, 228, 0.75));
  opacity: 0;
  transform: rotate(-24deg);
  animation: meteor-pass 13s linear infinite;
}

.meteor.two {
  top: 28%;
  left: 62%;
  width: 120px;
  animation-delay: 7s;
  animation-duration: 17s;
}

.map-shell[data-time="day"] .scene-weather::before {
  opacity: 0.72;
}

.map-shell[data-time="day"] .meteor {
  display: none;
}

.map-shell[data-time="night"] .scene-weather {
  mix-blend-mode: screen;
}

.map-shell[data-time="night"] .scene-weather::before {
  opacity: 0.22;
  filter: hue-rotate(170deg) brightness(0.76);
  animation-duration: 92s;
}

.map-shell[data-time="night"] .scene-weather::after {
  background:
    linear-gradient(180deg, rgba(16, 29, 58, 0.58), rgba(3, 8, 18, 0.22) 56%, transparent),
    radial-gradient(circle at 72% 12%, rgba(182, 219, 255, 0.22), transparent 10%),
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.12) 0 1px, transparent 2px),
    radial-gradient(circle at 39% 31%, rgba(255, 255, 255, 0.12) 0 1px, transparent 2px),
    radial-gradient(circle at 61% 21%, rgba(255, 255, 255, 0.12) 0 1px, transparent 2px);
  opacity: 0.82;
}

.map-shell[data-time="hangar"] .scene-weather {
  mix-blend-mode: normal;
}

.map-shell[data-time="hangar"] .scene-weather::before {
  inset: 0;
  opacity: 0.18;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(103, 224, 228, 0.08) 22%, transparent 26% 52%, rgba(255, 209, 93, 0.06) 56%, transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 24%);
  background-size: 520px 100%, 100% 100%;
  animation: hangar-light-scan 18s linear infinite;
}

.map-shell[data-time="hangar"] .scene-weather::after,
.map-shell[data-time="hangar"] .meteor {
  display: none;
}

.map {
  position: relative;
  z-index: 1;
  width: max-content;
  display: grid;
  grid-template-columns: repeat(60, 80px);
  grid-template-rows: repeat(36, 80px);
  border: 1px solid rgba(103, 224, 228, 0.35);
  background: #1e2a34;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.map.virtual-map {
  display: block;
  background-size: 1280px 1280px;
  background-repeat: repeat;
  background-position: center;
}

.map[data-map="tankfield"] {
  background-image:
    linear-gradient(rgba(8, 13, 18, 0.06), rgba(8, 13, 18, 0.18)),
    url("./assets/maps/bg-series-w.webp");
}

.map[data-map="port"] {
  background-image:
    linear-gradient(rgba(84, 44, 10, 0.03), rgba(42, 22, 6, 0.12)),
    url("./assets/maps/bg-map-port-desert-v1.webp");
}

.map[data-map="seedPlant"] {
  background-image:
    radial-gradient(circle at 82% 20%, rgba(160, 25, 58, 0.34), transparent 16%),
    radial-gradient(circle at 82% 20%, rgba(0, 0, 0, 0) 0 11%, rgba(255, 80, 96, 0.36) 12% 13%, transparent 14%),
    linear-gradient(135deg, transparent 0 42%, rgba(50, 132, 220, 0.18) 42% 45%, transparent 45% 100%),
    linear-gradient(rgba(8, 16, 28, 0.02), rgba(24, 8, 16, 0.10)),
    url("./assets/maps/bg-series-seed.webp");
  background-size: 1120px 840px, 1120px 840px, 720px 720px, 1280px 1280px, 1280px 1280px;
  background-position: center, center, center, center, center;
  background-repeat: repeat;
}

.map[data-map="seedPlant"]::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 20%, rgba(20, 90, 170, 0.24) 20% 23%, transparent 23% 62%, rgba(20, 90, 170, 0.18) 62% 65%, transparent 65%),
    linear-gradient(0deg, transparent 0 34%, rgba(255, 209, 93, 0.24) 34% 35%, transparent 35% 72%, rgba(255, 209, 93, 0.2) 72% 73%, transparent 73%),
    radial-gradient(circle at 82% 20%, transparent 0 9%, rgba(8, 12, 18, 0.26) 9.5% 16%, transparent 17%),
    linear-gradient(transparent, transparent);
  opacity: 0.20;
}

.map[data-map="seedOrbital"] {
  background-image:
    linear-gradient(rgba(5, 16, 28, 0.03), rgba(8, 13, 18, 0.14)),
    url("./assets/maps/bg-series-seed.webp");
}

.map[data-map="ucColony"],
.map[data-map="ucLuna"] {
  background-image:
    linear-gradient(rgba(4, 8, 12, 0.08), rgba(3, 6, 10, 0.18)),
    url("./assets/maps/bg-series-uc.webp");
}

.map[data-map="evaGeofront"] {
  background-image:
    linear-gradient(rgba(8, 3, 18, 0.03), rgba(8, 3, 18, 0.16)),
    url("./assets/maps/bg-eva-geofront-v1.webp");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.map[data-map="ooOrbit"] {
  background:
    radial-gradient(circle at 72% 28%, rgba(76, 255, 225, 0.18), transparent 16%),
    linear-gradient(135deg, transparent 0 42%, rgba(44, 224, 210, 0.16) 42% 44%, transparent 44% 100%),
    repeating-linear-gradient(90deg, rgba(50, 160, 170, 0.13) 0 3px, transparent 3px 320px),
    repeating-linear-gradient(0deg, rgba(50, 160, 170, 0.1) 0 3px, transparent 3px 320px),
    linear-gradient(145deg, #111b28 0%, #263746 38%, #0d1724 70%, #1c3140 100%);
  background-size: 1280px 960px, 960px 960px, 320px 320px, 320px 320px, auto;
  background-position: center;
}

.map[data-map="legendDojo"] {
  background-image:
    radial-gradient(circle at 50% 42%, rgba(255, 209, 93, 0.14), rgba(5, 8, 14, 0.08) 42%, rgba(3, 5, 10, 0.32) 100%),
    url("./assets/maps/bg-legend-palace.webp");
  background-size: 2720px 1920px;
  background-repeat: no-repeat;
  background-position: center top;
}

.map[data-map="apostleDojo"] {
  background-image:
    radial-gradient(circle at 50% 46%, rgba(183, 82, 255, 0.2), rgba(7, 4, 15, 0.06) 45%, rgba(3, 5, 12, 0.34) 100%),
    url("./assets/maps/bg-apostle-dojo-v1.webp");
  background-size: 2720px 1920px;
  background-repeat: no-repeat;
  background-position: center top;
}

.map[data-map="berserkDojo"] {
  background-image:
    radial-gradient(circle at 50% 44%, rgba(98, 230, 170, 0.16), rgba(34, 0, 54, 0.14) 42%, rgba(4, 5, 12, 0.38) 100%),
    linear-gradient(135deg, rgba(122, 18, 58, 0.22) 0 18%, transparent 18% 36%, rgba(20, 130, 90, 0.14) 36% 54%, transparent 54%),
    url("./assets/maps/bg-eva-geofront-v1.webp");
  background-size: 2720px 1920px, 720px 720px, 2720px 1920px;
  background-repeat: no-repeat, repeat, no-repeat;
  background-position: center top;
}

.map[data-map="darkAngelRoom"] {
  background-image:
    radial-gradient(circle at 50% 48%, rgba(138, 43, 226, 0.18), rgba(4, 4, 12, 0.18) 42%, rgba(0, 0, 0, 0.42) 100%),
    url("./assets/maps/bg-dark-angel-room-v1.png");
  background-size: 2720px 1920px;
  background-repeat: no-repeat;
  background-position: center top;
}

.map[data-map="darkRealm"] {
  background:
    radial-gradient(circle at 52% 42%, rgba(75, 0, 126, 0.32), transparent 24%),
    radial-gradient(circle at 24% 72%, rgba(0, 220, 255, 0.11), transparent 18%),
    linear-gradient(135deg, rgba(112, 10, 168, 0.15) 0 12%, transparent 12% 25%, rgba(0, 0, 0, 0.28) 25% 40%, transparent 40% 100%),
    linear-gradient(180deg, #07030c 0%, #111827 48%, #05060b 100%);
  background-size: 960px 680px, 820px 620px, 420px 420px, auto;
  background-repeat: repeat;
}

.map[data-map="guildBase"] {
  background-image:
    linear-gradient(rgba(3, 10, 15, 0.02), rgba(3, 10, 15, 0.1)),
    url("./assets/maps/bg-guild-base-v1.webp");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.map[data-map="base2"] {
  background-image:
    linear-gradient(rgba(3, 8, 16, 0.01), rgba(3, 8, 16, 0.1)),
    url("./assets/maps/bg-base2-satellite-v1.webp");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.map.virtual-map .cell {
  position: absolute;
}

.unit.enemy.mech-guildTarget img {
  filter: drop-shadow(0 0 8px rgba(255, 72, 72, 0.42)) drop-shadow(0 8px 8px rgba(0, 0, 0, 0.32));
}

.unit.enemy.mech-guildTarget .enemy-name {
  border-color: rgba(255, 209, 93, 0.72);
  color: #ffe08a;
  background: rgba(58, 34, 10, 0.92);
}

.map[data-map="waste"] {
  background:
    linear-gradient(90deg, rgba(112, 145, 160, 0.024) 1px, transparent 1px),
    linear-gradient(0deg, rgba(112, 145, 160, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 10, 14, 0.18), transparent 18%, transparent 86%, rgba(2, 31, 45, 0.48)),
    url("./assets/tiles/base.png"),
    linear-gradient(180deg, #07151f 0%, #121d26 46%, #0d151d 100%);
  background-size: 80px 80px, 80px 80px, auto, 80px 80px, auto;
  background-repeat: repeat, repeat, no-repeat, repeat, no-repeat;
}

.map.light-hub {
  display: block;
  background:
    linear-gradient(90deg, rgba(112, 145, 160, 0.024) 1px, transparent 1px),
    linear-gradient(0deg, rgba(112, 145, 160, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, transparent 0 90%, rgba(3, 30, 43, 0.7) 90% 100%),
    linear-gradient(180deg, rgba(3, 32, 47, 0.72) 0 12%, transparent 12% 100%),
    url("./assets/tiles/base.png"),
    linear-gradient(180deg, #08141d 0%, #121e27 45%, #0d151d 100%);
  background-size: 80px 80px, 80px 80px, auto, auto, 80px 80px, auto;
  background-repeat: repeat, repeat, no-repeat, no-repeat, repeat, no-repeat;
}

.map.light-hub .cell {
  position: absolute;
  background: rgba(8, 13, 18, 0.02);
  z-index: 5;
}

.hub-battleship-dock,
.hub-dock-ship,
.hub-battleship-image,
.hub-deck,
.hub-central-lane,
.hub-room,
.hub-service-block,
.hub-training-block,
.hub-spine,
.hub-connector,
.hub-zone,
.hub-ocean,
.hub-quay,
.hub-launch-arrow,
.hub-crane-rail,
.hub-gantry {
  position: absolute;
  pointer-events: none;
}

.hub-ocean {
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(98, 190, 220, 0.08) 0 2px, transparent 2px 36px),
    linear-gradient(180deg, rgba(4, 42, 61, 0.94), rgba(2, 16, 31, 0.98));
  box-shadow: inset 0 0 46px rgba(0, 0, 0, 0.58);
  z-index: 0;
}

.hub-ocean::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: repeating-linear-gradient(90deg, transparent 0 90px, rgba(103, 224, 228, 0.08) 90px 100px, transparent 100px 190px);
  animation: harborWater 12s linear infinite;
}

.hub-ocean-right::before {
  animation-duration: 11s;
}

.hub-quay {
  border: 1px solid rgba(141, 170, 180, 0.18);
  background:
    repeating-linear-gradient(90deg, rgba(255, 209, 93, 0.18) 0 12px, transparent 12px 38px),
    linear-gradient(180deg, rgba(52, 64, 72, 0.92), rgba(22, 31, 38, 0.94));
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.hub-quay-right {
  background:
    repeating-linear-gradient(0deg, rgba(255, 209, 93, 0.2) 0 18px, transparent 18px 42px),
    linear-gradient(90deg, rgba(45, 58, 67, 0.92), rgba(17, 27, 35, 0.92));
}

.hub-battleship-dock {
  border: 1px solid rgba(139, 167, 178, 0.2);
  border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, rgba(103, 224, 228, 0.12) 0 3px, transparent 3px 74px),
    linear-gradient(180deg, rgba(4, 35, 50, 0.66), rgba(2, 17, 29, 0.88));
  box-shadow: inset 0 0 34px rgba(0, 0, 0, 0.62), 0 1px 0 rgba(103, 224, 228, 0.2);
  z-index: 1;
}

.hub-battleship-image {
  z-index: 3;
  object-fit: contain;
  object-position: center center;
  image-rendering: auto;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.46)) drop-shadow(0 0 18px rgba(103, 224, 228, 0.18));
}

.hub-battleship-dock::before,
.hub-battleship-dock::after {
  content: "";
  position: absolute;
  inset: 18px 12%;
  border-top: 2px solid rgba(103, 224, 228, 0.18);
  border-bottom: 2px solid rgba(255, 209, 93, 0.14);
}

.hub-dock-ship {
  display: none;
  border-radius: 50% 50% 18% 18% / 42% 42% 20% 20%;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(103, 224, 228, 0.14) 8% 9%, transparent 9% 91%, rgba(103, 224, 228, 0.14) 91% 92%, transparent 92%),
    linear-gradient(135deg, transparent 0 8%, rgba(65, 79, 90, 0.9) 8% 16%, rgba(19, 28, 38, 0.98) 16% 84%, rgba(65, 79, 90, 0.9) 84% 92%, transparent 92%);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.62), 0 6px 18px rgba(0, 0, 0, 0.35);
  z-index: 3;
}

.hub-room {
  border: 4px solid rgba(118, 146, 155, 0.62);
  border-radius: 3px;
  overflow: hidden;
  background-repeat: no-repeat;
  outline: 1px solid rgba(5, 9, 12, 0.92);
  box-shadow:
    inset 0 0 0 2px rgba(6, 11, 15, 0.82),
    inset 0 0 0 8px rgba(255, 255, 255, 0.035),
    inset 0 0 38px rgba(0, 0, 0, 0.46),
    0 8px 0 rgba(0, 0, 0, 0.34);
}

.hub-room::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 15%;
  bottom: 11%;
  border: 1px solid rgba(255, 209, 93, 0.14);
  border-radius: 3px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.7;
  filter: saturate(0.92) contrast(1.02);
  pointer-events: none;
}

.hub-deck {
  border: 1px solid rgba(118, 151, 164, 0.14);
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(103, 224, 228, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(103, 224, 228, 0.035) 1px, transparent 1px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 2px, transparent 2px 80px),
    linear-gradient(180deg, rgba(39, 50, 59, 0.72), rgba(15, 24, 32, 0.78));
  background-size: 80px 80px, 80px 80px, 160px 160px, auto;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.018), inset 0 0 34px rgba(0, 0, 0, 0.38);
  z-index: 1;
}

.hub-deck-service {
  background:
    linear-gradient(90deg, rgba(255, 209, 93, 0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(103, 224, 228, 0.028) 1px, transparent 1px),
    linear-gradient(180deg, rgba(35, 45, 53, 0.84), rgba(15, 23, 30, 0.9));
  background-size: 80px 80px, 80px 80px, auto;
  z-index: 2;
}

.hub-central-lane {
  background:
    linear-gradient(90deg, rgba(7, 12, 17, 0.22), rgba(103, 224, 228, 0.03), rgba(7, 12, 17, 0.22)),
    repeating-linear-gradient(90deg, transparent 0 180px, rgba(255, 209, 93, 0.14) 180px 194px, transparent 194px 360px),
    rgba(19, 29, 37, 0.74);
  border-top: 2px solid rgba(112, 145, 160, 0.16);
  border-bottom: 2px solid rgba(112, 145, 160, 0.16);
  z-index: 2;
}

.hub-service-block {
  border: 1px solid rgba(103, 224, 228, 0.18);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(103, 224, 228, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(103, 224, 228, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(40, 53, 61, 0.86), rgba(18, 28, 36, 0.92));
  background-size: 40px 40px, 40px 40px, auto;
  box-shadow: inset 0 0 0 4px rgba(103, 224, 228, 0.025), inset 0 0 26px rgba(0, 0, 0, 0.34);
  z-index: 3;
}

.hub-training-block {
  border: 1px solid rgba(255, 70, 70, 0.2);
  border-radius: 6px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 70, 70, 0.1) 0 8px, transparent 8px 28px),
    linear-gradient(180deg, rgba(35, 18, 21, 0.86), rgba(13, 17, 22, 0.94));
  box-shadow: inset 0 0 0 4px rgba(255, 70, 70, 0.025), inset 0 0 26px rgba(0, 0, 0, 0.42);
  z-index: 3;
}

.hub-training-block::before {
  content: attr(data-label);
  position: absolute;
  left: 14px;
  top: 10px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 209, 93, 0.48);
  border-radius: 4px;
  color: #ffe7a1;
  background: rgba(66, 8, 15, 0.78);
  font-size: 12px;
  font-weight: 900;
}

.hub-training-block::after {
  background-image: url("./assets/hangar-modules-v1/training-room.webp");
  opacity: 0.62;
}

.hub-service-block::before {
  content: attr(data-label);
  position: absolute;
  left: 14px;
  top: 12px;
  padding: 3px 8px;
  border: 1px solid rgba(103, 224, 228, 0.28);
  border-radius: 4px;
  color: var(--cyan);
  background: rgba(7, 12, 17, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.hub-service-block::after {
  opacity: 0.66;
}

.hub-service-command {
  background-image:
    linear-gradient(90deg, rgba(103, 224, 228, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(103, 224, 228, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 76% 68%, rgba(103, 224, 228, 0.16), transparent 18%),
    linear-gradient(180deg, rgba(40, 53, 61, 0.86), rgba(18, 28, 36, 0.92));
}

.hub-service-command::after {
  background-image: url("./assets/hangar-modules-v1/mecha-warehouse.webp");
}

.hub-service-storage {
  background-image:
    linear-gradient(90deg, rgba(255, 209, 93, 0.075) 1px, transparent 1px),
    linear-gradient(0deg, rgba(103, 224, 228, 0.045) 1px, transparent 1px),
    repeating-linear-gradient(90deg, transparent 0 54px, rgba(255, 209, 93, 0.08) 54px 60px, transparent 60px 96px),
    linear-gradient(180deg, rgba(42, 45, 52, 0.88), rgba(20, 27, 34, 0.94));
}

.hub-service-storage::after {
  background-image: url("./assets/hangar-modules-v1/equipment-warehouse.webp");
}

.hub-spine,
.hub-connector {
  border: 1px solid rgba(103, 224, 228, 0.1);
  background:
    linear-gradient(90deg, rgba(103, 224, 228, 0.055), transparent 22% 78%, rgba(103, 224, 228, 0.055)),
    repeating-linear-gradient(0deg, rgba(255, 209, 93, 0.08) 0 10px, transparent 10px 54px),
    linear-gradient(180deg, rgba(35, 46, 55, 0.84), rgba(17, 26, 33, 0.9));
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.24);
  z-index: 2;
}

.hub-spine::before,
.hub-connector::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(255, 209, 93, 0.2);
}

.hub-zone {
  border: 1px solid rgba(103, 224, 228, 0.16);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(103, 224, 228, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(103, 224, 228, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 50% 54%, rgba(103, 224, 228, 0.13), transparent 25%),
    linear-gradient(180deg, rgba(38, 50, 60, 0.88), rgba(16, 24, 32, 0.94));
  background-size: 40px 40px, 40px 40px, auto, auto;
  box-shadow: inset 0 0 0 4px rgba(255, 209, 93, 0.025), inset 0 0 24px rgba(0, 0, 0, 0.34);
  z-index: 3;
}

.hub-zone.top {
  box-shadow: inset 0 0 0 5px rgba(255, 209, 93, 0.035), inset 0 0 26px rgba(0, 0, 0, 0.32), 0 -8px 20px rgba(103, 224, 228, 0.045);
}

.hub-zone.bottom {
  box-shadow: inset 0 0 0 5px rgba(255, 209, 93, 0.035), inset 0 0 26px rgba(0, 0, 0, 0.32), 0 8px 20px rgba(255, 209, 93, 0.035);
}

.hub-zone::before {
  content: attr(data-label);
  position: absolute;
  left: 12px;
  top: 10px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 209, 93, 0.35);
  border-radius: 4px;
  color: var(--yellow);
  background: rgba(7, 12, 17, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.hub-zone::after {
  opacity: 0.58;
}

.hub-zone.route-tank {
  border-color: rgba(255, 209, 93, 0.22);
  background-image:
    linear-gradient(90deg, rgba(255, 209, 93, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(103, 224, 228, 0.045) 1px, transparent 1px),
    repeating-linear-gradient(135deg, transparent 0 34px, rgba(255, 209, 93, 0.16) 34px 42px, transparent 42px 76px),
    linear-gradient(180deg, rgba(48, 55, 60, 0.88), rgba(22, 30, 37, 0.94));
}

.hub-zone.route-tank::after {
  background-image: url("./assets/hangar-modules-v1/launch-bay.webp");
}

.hub-zone.route-orbital,
.hub-zone.route-seed {
  border-color: rgba(103, 224, 228, 0.2);
  background-image:
    linear-gradient(90deg, rgba(103, 224, 228, 0.075) 1px, transparent 1px),
    linear-gradient(0deg, rgba(103, 224, 228, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 50% 55%, rgba(103, 224, 228, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(31, 47, 61, 0.88), rgba(14, 24, 34, 0.95));
}

.hub-zone.route-orbital::after,
.hub-zone.route-seed::after {
  background-image: url("./assets/hangar-modules-v1/teleport-room.webp");
}

.hub-zone.route-plant {
  border-color: rgba(113, 232, 167, 0.2);
  background-image:
    linear-gradient(90deg, rgba(113, 232, 167, 0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(103, 224, 228, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 72% 62%, rgba(113, 232, 167, 0.16), transparent 20%),
    linear-gradient(180deg, rgba(31, 53, 47, 0.88), rgba(14, 26, 28, 0.95));
}

.hub-zone.route-plant::after {
  background-image: url("./assets/hangar-modules-v1/fabrication-room.webp");
}

.hub-zone.route-colony,
.hub-zone.route-luna {
  border-color: rgba(170, 185, 255, 0.2);
  background-image:
    linear-gradient(90deg, rgba(170, 185, 255, 0.065) 1px, transparent 1px),
    linear-gradient(0deg, rgba(103, 224, 228, 0.042) 1px, transparent 1px),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(170, 185, 255, 0.08) 42px 48px, transparent 48px 90px),
    linear-gradient(180deg, rgba(39, 46, 62, 0.88), rgba(16, 24, 36, 0.95));
}

.hub-zone.route-colony::after,
.hub-zone.route-luna::after {
  background-image: url("./assets/hangar-modules-v1/wall-services.webp");
}

.hub-room.hub-zone,
.hub-room.hub-service-block,
.hub-room.hub-training-block,
.hub-space-station-room {
  border-width: 4px;
  border-style: solid;
  border-color: rgba(133, 162, 172, 0.68);
  border-radius: 3px;
  outline: 1px solid rgba(4, 8, 12, 0.9);
  box-shadow:
    inset 0 0 0 2px rgba(5, 10, 14, 0.86),
    inset 0 0 0 9px rgba(255, 255, 255, 0.035),
    inset 0 0 38px rgba(0, 0, 0, 0.45),
    0 8px 0 rgba(0, 0, 0, 0.34);
}

.hub-special-portal-room {
  border-color: rgba(255, 209, 93, 0.72);
  background:
    repeating-linear-gradient(135deg, rgba(126, 26, 34, 0.16) 0 18px, rgba(18, 25, 31, 0.12) 18px 42px),
    linear-gradient(180deg, rgba(43, 24, 29, 0.9), rgba(12, 17, 23, 0.96));
}

.hub-special-portal-room::after {
  left: 5%;
  right: 5%;
  top: 22%;
  bottom: 10%;
  opacity: 0.48;
}

.hub-portal-label {
  position: absolute;
  z-index: 8;
  pointer-events: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(103, 224, 228, 0.38);
  border-radius: 4px;
  background: rgba(4, 12, 18, 0.82);
  color: #d9fbff;
  font-size: 12px;
  font-weight: 900;
  text-shadow: 0 1px 0 #000;
  box-shadow: 0 0 14px rgba(103, 224, 228, 0.12);
}

.hub-portal-label.danger {
  border-color: rgba(255, 97, 97, 0.56);
  color: #ffe1a6;
  background: rgba(54, 9, 16, 0.84);
}

.hub-portal-label.dark {
  color: #e9d5ff;
  border-color: rgba(180, 92, 255, 0.62);
  background: rgba(18, 8, 32, 0.86);
  box-shadow: 0 0 12px rgba(120, 54, 220, 0.42);
}

.hub-portal-label.space {
  color: #e6fbff;
  border-color: rgba(114, 186, 255, 0.7);
  background: rgba(7, 20, 36, 0.88);
  box-shadow: 0 0 16px rgba(74, 164, 255, 0.28);
}

.hub-space-station-room {
  border-color: rgba(114, 186, 255, 0.78);
  background:
    radial-gradient(circle at 58% 64%, rgba(108, 238, 255, 0.22), transparent 0 10%, rgba(12, 20, 31, 0.15) 18%),
    radial-gradient(circle at 50% 62%, rgba(84, 120, 255, 0.18), transparent 0 20%, rgba(5, 10, 18, 0.28) 34%),
    linear-gradient(90deg, rgba(2, 8, 15, 0.88), rgba(18, 34, 52, 0.84)),
    repeating-linear-gradient(0deg, rgba(150, 210, 255, 0.11) 0 3px, transparent 3px 18px);
  box-shadow:
    inset 0 0 0 2px rgba(5, 10, 14, 0.86),
    inset 0 0 34px rgba(83, 177, 255, 0.18),
    0 0 26px rgba(65, 164, 255, 0.2),
    0 8px 0 rgba(0, 0, 0, 0.34);
}

.hub-space-station-room::after {
  left: 18%;
  right: 18%;
  top: 38%;
  bottom: 14%;
  opacity: 0.42;
  background:
    radial-gradient(circle at 50% 50%, rgba(100, 238, 255, 0.7) 0 8%, rgba(84, 120, 255, 0.35) 8% 17%, transparent 18%),
    conic-gradient(from 0deg, transparent 0 12%, rgba(150, 235, 255, 0.72) 12% 18%, transparent 18% 34%, rgba(255, 209, 93, 0.62) 34% 40%, transparent 40% 56%, rgba(184, 115, 255, 0.68) 56% 63%, transparent 63% 80%, rgba(98, 255, 179, 0.6) 80% 86%, transparent 86%);
  filter: drop-shadow(0 0 10px rgba(103, 224, 228, 0.42));
  animation: portalSpin 4.2s linear infinite;
}

.hub-dark-realm-room {
  border: 2px solid rgba(126, 74, 190, 0.74);
  background:
    radial-gradient(circle at 50% 48%, rgba(0, 0, 0, 0.92), rgba(34, 10, 56, 0.74) 35%, rgba(6, 10, 16, 0.82) 62%, rgba(0, 0, 0, 0.5) 100%),
    repeating-linear-gradient(135deg, rgba(96, 42, 148, 0.26) 0 14px, rgba(3, 6, 10, 0.32) 14px 28px);
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.8), 0 0 26px rgba(99, 37, 168, 0.38);
}

.hub-room.hub-zone.top,
.hub-room.hub-zone.bottom {
  box-shadow:
    inset 0 0 0 2px rgba(5, 10, 14, 0.86),
    inset 0 0 0 9px rgba(255, 255, 255, 0.035),
    inset 0 0 34px rgba(0, 0, 0, 0.44),
    0 8px 0 rgba(0, 0, 0, 0.34);
}

.hub-room.hub-zone.route-tank {
  border-color: rgba(255, 209, 93, 0.72);
}

.hub-room.hub-zone.route-orbital,
.hub-room.hub-zone.route-seed {
  border-color: rgba(103, 224, 228, 0.7);
}

.hub-room.hub-zone.route-plant {
  border-color: rgba(113, 232, 167, 0.68);
}

.hub-room.hub-zone.route-colony,
.hub-room.hub-zone.route-luna {
  border-color: rgba(170, 185, 255, 0.7);
}

.hub-launch-arrow {
  opacity: 0.5;
  background:
    linear-gradient(90deg, transparent 0 10%, rgba(255, 209, 93, 0.24) 10% 64%, transparent 64%),
    linear-gradient(135deg, transparent 0 42%, rgba(255, 209, 93, 0.36) 42% 54%, transparent 54%);
  z-index: 4;
}

.hub-crane-rail {
  opacity: 0.32;
  border-top: 2px solid rgba(119, 149, 159, 0.38);
  border-bottom: 1px solid rgba(10, 16, 22, 0.72);
  background: linear-gradient(90deg, transparent, rgba(103, 224, 228, 0.05), transparent);
  box-shadow: 0 1px 0 rgba(255, 209, 93, 0.12);
  z-index: 2;
}

.hub-gantry {
  opacity: 0.35;
  border: 1px solid rgba(103, 224, 228, 0.2);
  border-radius: 4px 4px 0 0;
  background:
    linear-gradient(90deg, rgba(103, 224, 228, 0.1), transparent 18% 82%, rgba(103, 224, 228, 0.1)),
    linear-gradient(180deg, rgba(54, 68, 78, 0.86), rgba(17, 26, 33, 0.92));
  box-shadow: inset 0 -4px 0 rgba(255, 209, 93, 0.12), 0 4px 10px rgba(0, 0, 0, 0.22);
  z-index: 2;
}

@keyframes harborWater {
  from { transform: translate3d(-40px, 0, 0); }
  to { transform: translate3d(80px, 0, 0); }
}

.map[data-map="waste"] .cell {
  border-right-color: rgba(103, 224, 228, 0.055);
  border-bottom-color: rgba(103, 224, 228, 0.055);
  background: rgba(8, 13, 18, 0.08);
}

.map[data-map="waste"] .cell:not(.teleport)::before {
  content: none;
}

.cell {
  position: relative;
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 0;
  background: #273541;
  overflow: visible;
}

.cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  image-rendering: pixelated;
}

.map.virtual-map .cell {
  background: rgba(10, 16, 22, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.map.virtual-map .cell::before {
  content: none;
}

.map.virtual-map .cell.terrain-p {
  background: rgba(14, 24, 24, 0.05);
}

.map.virtual-map .cell.terrain-f {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 42%),
    rgba(34, 35, 35, 0.1);
}

.map.virtual-map .cell.terrain-b {
  background:
    linear-gradient(90deg, rgba(103, 224, 228, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(103, 224, 228, 0.06) 1px, transparent 1px),
    rgba(20, 30, 36, 0.18);
  background-size: 20px 20px;
}

.map.virtual-map .cell.terrain-w {
  background:
    linear-gradient(135deg, rgba(103, 224, 228, 0.14), rgba(76, 163, 255, 0.08)),
    rgba(4, 28, 45, 0.18);
}

.map.virtual-map .cell.terrain-w::before {
  content: none;
}

.map[data-map="pkArena"] {
  background:
    linear-gradient(rgba(44, 208, 214, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 208, 214, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, #26323a 0 18%, #182229 58%, #0b1116 100%);
  background-size: 204px 204px, 204px 204px, 100% 100%;
}

.map[data-map="pkArena"].virtual-map .cell {
  background: rgba(21, 31, 37, 0.34);
  box-shadow: inset 0 0 0 1px rgba(121, 218, 221, 0.13);
}

.map[data-map="pkArena"].virtual-map .cell.terrain-f {
  background: rgba(53, 65, 71, 0.5);
}

.map[data-map="pkArena"].virtual-map .cell.terrain-b {
  background: rgba(10, 16, 20, 0.72);
  box-shadow: inset 0 0 0 2px rgba(232, 172, 64, 0.32);
}

.map-shell[data-scene="pkArena"] .scene-weather,
.map-shell[data-scene="pkArena"] .meteor {
  display: none;
}

.pk-arena-choices .mecha-choice.pk-selected {
  border-color: #f0c14f;
  box-shadow: inset 0 0 0 1px rgba(240, 193, 79, 0.38), 0 0 14px rgba(240, 193, 79, 0.16);
}

.mecha-choices.mission-dialog-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
}

.mission-briefing-panel {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(86, 205, 210, 0.45);
  background: rgba(9, 20, 26, 0.88);
}

.mission-briefing-panel img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  image-rendering: pixelated;
}

.mission-briefing-panel span {
  color: #69d9dd;
  font-size: 12px;
}

.mission-briefing-panel h3,
.mission-briefing-panel p {
  margin: 6px 0 0;
}

.mission-briefing-panel p {
  color: #c9d5da;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.mission-objectives-panel {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(20, 30, 36, 0.9);
}

.mission-objectives-panel > div {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 32px;
}

.mission-objectives-panel i {
  width: 7px;
  height: 7px;
  background: #77868d;
}

.mission-objectives-panel .done i {
  background: #5ed58b;
  box-shadow: 0 0 8px rgba(94, 213, 139, 0.6);
}

.mission-objectives-panel p {
  margin: 9px 0 0;
  color: #f0c14f;
}

.mission-action-button {
  width: 100%;
  min-height: 42px;
  border: 1px solid #60d1d6;
  background: #183b48;
  color: #f5fbfc;
  font-weight: 700;
}

@media (max-width: 640px) {
  .mecha-choices.mission-dialog-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .mission-briefing-panel {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .mission-briefing-panel img {
    width: 76px;
    height: 88px;
  }
}

.map[data-map="legendDojo"] .cell::before,
.map[data-map="apostleDojo"] .cell::before,
.map[data-map="berserkDojo"] .cell::before {
  opacity: 0.14;
}

.map[data-map="legendDojo"] .cell.terrain-p::before,
.map[data-map="apostleDojo"] .cell.terrain-p::before,
.map[data-map="berserkDojo"] .cell.terrain-p::before {
  content: none;
}

.map[data-map="legendDojo"] .cell.terrain-b::before,
.map[data-map="legendDojo"] .cell.terrain-f::before,
.map[data-map="apostleDojo"] .cell.terrain-b::before,
.map[data-map="apostleDojo"] .cell.terrain-f::before,
.map[data-map="berserkDojo"] .cell.terrain-b::before,
.map[data-map="berserkDojo"] .cell.terrain-f::before {
  opacity: 0.2;
}

.map.virtual-map .cell.terrain-b::before,
.map.virtual-map .cell.terrain-f::before {
  content: none;
}

.terrain-p::before {
  background-image: url("./assets/tiles/plain.png");
}

.terrain-f::before {
  background-image: url("./assets/tiles/wreckage.png");
}

.terrain-b::before {
  background-image: url("./assets/tiles/base.png");
}

.terrain-w::before {
  background-image: url("./assets/tiles/water.png");
}

.water-surface {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
}

.water-surface::before,
.water-surface::after {
  content: "";
  position: absolute;
  inset: -24%;
  opacity: 0.42;
  will-change: transform, opacity;
}

.water-surface::before {
  background:
    repeating-linear-gradient(118deg, transparent 0 12px, rgba(115, 221, 255, 0.42) 13px 15px, transparent 16px 28px),
    radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, 0.22), transparent 48%);
  animation: water-flow 2.8s linear infinite;
}

.water-surface::after {
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent),
    repeating-linear-gradient(20deg, transparent 0 17px, rgba(76, 163, 255, 0.26) 18px 20px, transparent 21px 36px);
  opacity: 0.28;
  animation: water-glint 4.6s ease-in-out infinite;
}

.cell.move-range::after,
.cell.attack-range::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 5px;
  pointer-events: none;
}

.cell.move-range::after {
  border: 2px solid var(--blue);
  background: rgba(76, 163, 255, 0.12);
}

.cell.attack-range::after {
  border: 2px solid var(--red);
  background: rgba(255, 97, 97, 0.12);
}

.cell.teleport::before,
.map[data-map="waste"] .cell.teleport::before {
  content: none;
}

.cell.teleport .portal {
  position: absolute;
  z-index: 1;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, transparent 0 9%, rgba(103, 224, 228, 0.96) 10% 18%, transparent 19% 31%, rgba(210, 116, 255, 0.95) 32% 43%, transparent 44% 58%, rgba(255, 209, 93, 0.9) 59% 65%, transparent 66% 100%),
    radial-gradient(circle, rgba(255, 255, 255, 0.92) 0 7%, rgba(103, 224, 228, 0.65) 8% 17%, rgba(210, 116, 255, 0.32) 18% 34%, transparent 35% 100%);
  box-shadow:
    0 0 18px rgba(210, 116, 255, 0.85),
    0 0 34px rgba(103, 224, 228, 0.54),
    inset 0 0 14px rgba(255, 255, 255, 0.4);
  animation: portal-spin 760ms linear infinite, portal-breathe 920ms ease-in-out infinite;
  pointer-events: none;
}

.cell.teleport .portal::before,
.cell.teleport .portal::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  pointer-events: none;
}

.cell.teleport .portal::before {
  border: 2px dotted rgba(237, 244, 251, 0.76);
  box-shadow: inset 0 0 12px rgba(103, 224, 228, 0.44);
  animation: portal-counter-spin 1100ms linear infinite;
}

.cell.teleport .portal::after {
  inset: 17px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.96), rgba(103, 224, 228, 0.78) 42%, transparent 68%);
  animation: portal-core 420ms steps(3, end) infinite;
}

.cell.dark-teleport .portal {
  width: 72px;
  height: 72px;
  background:
    conic-gradient(from 0deg, rgba(0, 0, 0, 0.96), rgba(86, 24, 160, 0.92), rgba(0, 221, 255, 0.55), rgba(0, 0, 0, 0.98), rgba(190, 38, 255, 0.82), rgba(0, 0, 0, 0.96)),
    radial-gradient(circle, rgba(0, 0, 0, 0.98) 0 22%, rgba(48, 12, 83, 0.95) 23% 46%, rgba(0, 0, 0, 0.35) 47% 100%);
  box-shadow:
    0 0 16px rgba(0, 0, 0, 0.9),
    0 0 34px rgba(146, 72, 255, 0.75),
    0 0 54px rgba(0, 220, 255, 0.28),
    inset 0 0 22px rgba(0, 0, 0, 0.95);
  animation: portal-spin 520ms linear infinite, portal-breathe 860ms ease-in-out infinite;
}

.cell.dark-teleport .portal::before {
  inset: 5px;
  border: 2px solid rgba(209, 176, 255, 0.5);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.85), 0 0 16px rgba(146, 72, 255, 0.65);
}

.cell.dark-teleport .portal::after {
  inset: 23px;
  background: radial-gradient(circle, rgba(0, 0, 0, 1), rgba(50, 0, 92, 0.94) 45%, transparent 70%);
}

.npc {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: var(--unit-w, 103px);
  height: var(--unit-h, 101px);
  --npc-facing: 1;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.28));
}

.npc.face-right {
  --npc-facing: -1;
}

.npc img {
  position: absolute;
  left: 50%;
  bottom: calc(var(--sprite-bottom, 0px) + 12px);
  z-index: 1;
  width: var(--sprite-w, 96px);
  max-height: var(--sprite-max-h, none);
  transform: translateX(-50%) scaleX(var(--npc-facing));
  transform-origin: center bottom;
  image-rendering: pixelated;
  filter: drop-shadow(0 5px 0 rgba(0, 0, 0, 0.32));
  animation: npc-idle 1400ms ease-in-out infinite;
}

.npc.npc-locked img {
  filter: grayscale(0.55) brightness(0.72) drop-shadow(0 5px 0 rgba(0, 0, 0, 0.34));
}

.npc-lock {
  position: absolute;
  right: 4px;
  top: 3px;
  z-index: 3;
  padding: 1px 4px;
  border: 1px solid rgba(255, 102, 102, 0.75);
  border-radius: 3px;
  background: rgba(76, 14, 24, 0.9);
  color: #ffd8d8;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

.npc-name {
  position: absolute;
  left: 50%;
  bottom: -4px;
  z-index: 2;
  max-width: 104px;
  padding: 2px 5px;
  border: 1px solid rgba(255, 209, 93, 0.5);
  border-radius: 4px;
  background: rgba(13, 20, 27, 0.82);
  color: var(--yellow);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  transform: translateX(-50%);
  white-space: nowrap;
}

.npc-cell::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(255, 209, 93, 0.26);
  border-radius: 5px;
  pointer-events: none;
}

@keyframes npc-idle {
  0%, 100% {
    transform: translateX(-50%) translateY(0) scaleX(var(--npc-facing));
  }
  50% {
    transform: translateX(-50%) translateY(-3px) scaleX(var(--npc-facing));
  }
}

@keyframes portal-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes portal-counter-spin {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@keyframes portal-breathe {
  0%, 100% {
    scale: 0.92;
    opacity: 0.82;
  }
  50% {
    scale: 1.08;
    opacity: 1;
  }
}

@keyframes portal-core {
  0%, 100% {
    scale: 0.76;
    opacity: 0.76;
  }
  50% {
    scale: 1.18;
    opacity: 1;
  }
}

@keyframes cloud-drift {
  from {
    transform: translate3d(-10%, 0, 0);
  }
  to {
    transform: translate3d(28%, 0, 0);
  }
}

@keyframes meteor-pass {
  0%,
  72% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(-24deg);
  }
  74% {
    opacity: 1;
  }
  80% {
    opacity: 0;
    transform: translate3d(-520px, 250px, 0) rotate(-24deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(-520px, 250px, 0) rotate(-24deg);
  }
}

@keyframes hangar-light-scan {
  from {
    background-position: -520px 0, 0 0;
  }
  to {
    background-position: 520px 0, 0 0;
  }
}

@keyframes water-flow {
  from {
    transform: translate3d(-10px, -8px, 0);
  }
  to {
    transform: translate3d(16px, 12px, 0);
  }
}

@keyframes water-glint {
  0%,
  100% {
    opacity: 0.18;
    transform: translate3d(-38px, 0, 0);
  }
  50% {
    opacity: 0.42;
    transform: translate3d(38px, 0, 0);
  }
}

.unit {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 8;
  width: var(--unit-w, 72px);
  height: var(--unit-h, 72px);
  --unit-facing: 1;
  transform: translate(-50%, -50%);
  overflow: visible;
  pointer-events: none;
}

.unit.online-moving {
  animation: online-player-move 760ms cubic-bezier(0.2, 0.82, 0.2, 1) both;
}

.unit.enemy-moving {
  animation: online-player-move 920ms cubic-bezier(0.2, 0.82, 0.2, 1) both;
}

.unit.mech-angel,
.unit.mech-darkAngelGundam {
  z-index: 6;
}

.selection-ring {
  position: absolute;
  left: calc(50% + var(--select-offset-x, 0px));
  top: calc(50% + var(--select-offset-y, 0px));
  z-index: 0;
  width: 80px;
  height: 80px;
  border: 2px solid var(--yellow);
  border-radius: 7px;
  box-shadow:
    inset 0 0 18px rgba(255, 209, 93, 0.28),
    0 0 14px rgba(255, 209, 93, 0.22);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.unit.face-left {
  --unit-facing: 1;
}

.unit.face-right {
  --unit-facing: -1;
}

.unit img {
  position: absolute;
  left: 50%;
  bottom: var(--sprite-bottom, 2px);
  z-index: 2;
  width: var(--sprite-w, 76px);
  max-height: var(--sprite-max-h, none);
  height: auto;
  transform: translateX(-50%) scaleX(var(--unit-facing));
  transform-origin: center bottom;
  image-rendering: pixelated;
  filter: drop-shadow(0 5px 0 rgba(0, 0, 0, 0.28));
}

.unit.skin-red img,
.move-ghost.skin-red .ghost-mech,
.skin-choice.skin-red img {
  filter: hue-rotate(325deg) saturate(1.55) contrast(1.08) drop-shadow(0 5px 0 rgba(0, 0, 0, 0.28));
}

.unit.skin-blue img,
.move-ghost.skin-blue .ghost-mech,
.skin-choice.skin-blue img {
  filter: hue-rotate(185deg) saturate(1.45) contrast(1.08) drop-shadow(0 5px 0 rgba(0, 0, 0, 0.28));
}

.unit.skin-gold img,
.move-ghost.skin-gold .ghost-mech,
.skin-choice.skin-gold img {
  filter: sepia(0.62) hue-rotate(8deg) saturate(1.9) brightness(1.08) contrast(1.1) drop-shadow(0 5px 0 rgba(0, 0, 0, 0.28));
}

.unit.skin-black img,
.move-ghost.skin-black .ghost-mech,
.skin-choice.skin-black img {
  filter: grayscale(0.45) brightness(0.62) contrast(1.38) saturate(1.2) drop-shadow(0 5px 0 rgba(0, 0, 0, 0.34));
}

.unit.skin-purple img,
.move-ghost.skin-purple .ghost-mech,
.skin-choice.skin-purple img {
  filter: hue-rotate(250deg) saturate(1.65) contrast(1.12) drop-shadow(0 5px 0 rgba(0, 0, 0, 0.28));
}

.unit.skin-green img,
.move-ghost.skin-green .ghost-mech,
.skin-choice.skin-green img {
  filter: hue-rotate(92deg) saturate(1.35) brightness(0.92) contrast(1.1) drop-shadow(0 5px 0 rgba(0, 0, 0, 0.28));
}

.unit.hero img {
  width: var(--sprite-w, 82px);
}

.unit.apostle-aura-dark .apostle-aura-field,
.move-ghost.apostle-aura-dark::after,
.aura-choice.apostle-aura-dark::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(var(--sprite-bottom, 0px) + 2px);
  z-index: 1;
  width: calc(var(--sprite-map-w, 80px) + 28px);
  height: calc(var(--sprite-map-h, 88px) + 18px);
  border-radius: 42% 42% 34% 34%;
  clip-path: polygon(50% 2%, 58% 19%, 68% 7%, 70% 33%, 84% 18%, 80% 52%, 94% 43%, 84% 78%, 72% 96%, 50% 100%, 28% 96%, 16% 78%, 6% 43%, 20% 52%, 16% 18%, 30% 33%, 32% 7%, 42% 19%);
  background:
    radial-gradient(ellipse at 50% 95%, rgba(8, 2, 16, 0.78) 0 24%, transparent 56%),
    radial-gradient(ellipse at 29% 72%, rgba(91, 0, 138, 0.52) 0 12%, transparent 31%),
    radial-gradient(ellipse at 70% 76%, rgba(12, 3, 25, 0.72) 0 15%, transparent 34%),
    radial-gradient(ellipse at 48% 48%, rgba(85, 0, 130, 0.34) 0 10%, transparent 30%),
    linear-gradient(82deg, transparent 0 16%, rgba(10, 2, 22, 0.58) 24%, transparent 34% 43%, rgba(88, 0, 137, 0.35) 52%, transparent 64% 72%, rgba(9, 2, 18, 0.52) 80%, transparent 100%);
  filter: blur(2.4px) drop-shadow(0 0 11px rgba(55, 0, 94, 0.68));
  opacity: 0.54;
  transform: translateX(-50%) scale(0.96);
  pointer-events: none;
  mix-blend-mode: screen;
  animation: apostle-dark-aura 1350ms ease-in-out infinite;
}

.unit.apostle-aura-light .apostle-aura-field,
.move-ghost.apostle-aura-light::after,
.aura-choice.apostle-aura-light::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(var(--sprite-bottom, 0px) + 2px);
  z-index: 1;
  width: calc(var(--sprite-map-w, 80px) + 30px);
  height: calc(var(--sprite-map-h, 88px) + 20px);
  border-radius: 42% 42% 34% 34%;
  clip-path: polygon(50% 2%, 58% 19%, 68% 7%, 70% 33%, 84% 18%, 80% 52%, 94% 43%, 84% 78%, 72% 96%, 50% 100%, 28% 96%, 16% 78%, 6% 43%, 20% 52%, 16% 18%, 30% 33%, 32% 7%, 42% 19%);
  background:
    radial-gradient(ellipse at 50% 96%, rgba(255, 214, 82, 0.56) 0 22%, transparent 56%),
    radial-gradient(ellipse at 29% 72%, rgba(255, 238, 146, 0.38) 0 12%, transparent 31%),
    radial-gradient(ellipse at 70% 76%, rgba(255, 186, 38, 0.44) 0 15%, transparent 34%),
    radial-gradient(ellipse at 48% 48%, rgba(255, 245, 176, 0.22) 0 10%, transparent 30%),
    linear-gradient(82deg, transparent 0 16%, rgba(255, 205, 70, 0.42) 24%, transparent 34% 43%, rgba(255, 250, 188, 0.23) 52%, transparent 64% 72%, rgba(255, 188, 45, 0.36) 80%, transparent 100%);
  filter: blur(1.8px) drop-shadow(0 0 11px rgba(255, 216, 96, 0.7));
  opacity: 0.5;
  transform: translateX(-50%) scale(0.96);
  pointer-events: none;
  mix-blend-mode: screen;
  animation: apostle-light-aura 1280ms ease-in-out infinite;
}

.unit.apostle-aura-dark .apostle-aura-field::before,
.unit.apostle-aura-dark .apostle-aura-field::after,
.unit.apostle-aura-light .apostle-aura-field::before,
.unit.apostle-aura-light .apostle-aura-field::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  border-radius: 38% 38% 32% 32%;
  clip-path: polygon(50% 0, 56% 24%, 66% 10%, 65% 39%, 78% 26%, 73% 58%, 88% 49%, 76% 86%, 50% 100%, 24% 86%, 12% 49%, 27% 58%, 22% 26%, 35% 39%, 34% 10%, 44% 24%);
  transform: translate(-50%, -50%) scale(0.88);
  pointer-events: none;
}

.unit.apostle-aura-dark .apostle-aura-field::before {
  background:
    radial-gradient(ellipse at 35% 88%, rgba(5, 1, 12, 0.68) 0 12%, transparent 28%),
    radial-gradient(ellipse at 64% 84%, rgba(92, 0, 139, 0.45) 0 10%, transparent 28%),
    linear-gradient(72deg, transparent 6%, rgba(7, 1, 16, 0.64) 18%, transparent 32%),
    linear-gradient(104deg, transparent 30%, rgba(97, 0, 142, 0.36) 44%, transparent 58%),
    linear-gradient(126deg, transparent 48%, rgba(5, 1, 13, 0.6) 62%, transparent 76%);
  filter: blur(3px);
  animation: apostle-dark-pulse 880ms ease-in-out infinite alternate;
}

.unit.apostle-aura-dark .apostle-aura-field::after {
  background:
    radial-gradient(ellipse at 45% 92%, rgba(13, 2, 25, 0.64) 0 10%, transparent 26%),
    linear-gradient(58deg, transparent 0 20%, rgba(69, 0, 111, 0.35) 32%, transparent 45%),
    linear-gradient(100deg, transparent 0 38%, rgba(5, 1, 13, 0.56) 52%, transparent 66%),
    linear-gradient(136deg, transparent 0 56%, rgba(88, 0, 136, 0.28) 68%, transparent 82%);
  filter: blur(4px);
  animation: apostle-dark-smoke 1420ms ease-in-out infinite;
}

.unit.apostle-aura-light .apostle-aura-field::before {
  background:
    radial-gradient(ellipse at 35% 88%, rgba(255, 206, 66, 0.48) 0 12%, transparent 28%),
    radial-gradient(ellipse at 64% 84%, rgba(255, 245, 170, 0.34) 0 10%, transparent 28%),
    linear-gradient(72deg, transparent 6%, rgba(255, 204, 62, 0.44) 18%, transparent 32%),
    linear-gradient(104deg, transparent 30%, rgba(255, 248, 175, 0.26) 44%, transparent 58%),
    linear-gradient(126deg, transparent 48%, rgba(255, 187, 42, 0.4) 62%, transparent 76%);
  filter: blur(2.5px);
  animation: apostle-light-ring 820ms ease-in-out infinite alternate;
}

.unit.apostle-aura-light .apostle-aura-field::after {
  background:
    radial-gradient(ellipse at 45% 92%, rgba(255, 211, 79, 0.48) 0 10%, transparent 26%),
    linear-gradient(58deg, transparent 0 20%, rgba(255, 239, 133, 0.28) 32%, transparent 45%),
    linear-gradient(100deg, transparent 0 38%, rgba(255, 188, 38, 0.36) 52%, transparent 66%),
    linear-gradient(136deg, transparent 0 56%, rgba(255, 249, 188, 0.22) 68%, transparent 82%);
  filter: blur(3px);
  animation: apostle-light-sparks 1320ms ease-in-out infinite;
}

.move-ghost.apostle-aura-dark::after,
.move-ghost.apostle-aura-light::after,
.aura-choice.apostle-aura-dark::after,
.aura-choice.apostle-aura-light::after {
  bottom: 18px;
  height: 92px;
  width: 120px;
}

.unit.apostle-aura-dark img,
.unit.apostle-aura-light img {
  z-index: 2;
}

.awakening-field {
  position: absolute;
  left: 50%;
  bottom: calc(var(--sprite-bottom, 0px) + 12px);
  width: calc(var(--sprite-map-w, 80px) + 22px);
  height: calc(var(--sprite-map-h, 88px) + 18px);
  border: 2px solid rgba(116, 246, 255, 0.76);
  border-radius: 50%;
  transform: translateX(-50%) scale(0.96);
  box-shadow:
    0 0 12px rgba(89, 232, 255, 0.65),
    inset 0 0 18px rgba(152, 118, 255, 0.32);
  pointer-events: none;
  z-index: 1;
  animation: awakening-field-pulse 1450ms ease-in-out infinite;
}

.awakening-field::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 234, 132, 0.78);
  animation: awakening-field-spin 2800ms linear infinite;
}

.unit.awakened-unit img {
  filter: drop-shadow(0 0 8px rgba(87, 244, 255, 0.78)) drop-shadow(0 5px 0 rgba(0, 0, 0, 0.28));
}

.eva-berserk-field {
  position: absolute;
  left: 50%;
  bottom: calc(var(--sprite-bottom, 0px) + 7px);
  z-index: 1;
  width: calc(var(--sprite-map-w, 80px) + 34px);
  height: calc(var(--sprite-map-h, 88px) + 28px);
  border: 2px solid rgba(255, 54, 92, 0.72);
  border-radius: 46% 54% 48% 52%;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.2), transparent 22%),
    repeating-conic-gradient(from 0deg, rgba(255, 46, 96, 0.28) 0 10deg, transparent 10deg 22deg);
  box-shadow:
    0 0 18px rgba(255, 35, 79, 0.72),
    inset 0 0 22px rgba(118, 22, 255, 0.36);
  mix-blend-mode: screen;
  animation: eva-berserk-field 520ms steps(2, end) infinite;
}

.eva-berserk-field::before,
.eva-berserk-field::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 226, 96, 0.84);
}

.eva-berserk-field::before {
  animation: awakening-field-spin 1200ms linear infinite;
}

.eva-berserk-field::after {
  inset: 16px;
  border-color: rgba(255, 78, 176, 0.74);
  animation: awakening-field-spin 900ms linear reverse infinite;
}

.eva-berserk-alert {
  position: absolute;
  left: 50%;
  top: -14px;
  z-index: 7;
  padding: 2px 7px;
  border: 1px solid rgba(255, 220, 91, 0.82);
  border-radius: 4px;
  color: #ffe86a;
  background: linear-gradient(90deg, rgba(83, 0, 16, 0.94), rgba(156, 0, 72, 0.9));
  box-shadow: 0 0 12px rgba(255, 33, 86, 0.65);
  font-size: 10px;
  font-weight: 950;
  transform: translateX(-50%);
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
  animation: eva-berserk-alert 620ms steps(2, end) infinite;
}

.unit.eva-berserk-unit img {
  filter:
    saturate(1.55)
    contrast(1.18)
    drop-shadow(0 0 3px rgba(255, 255, 255, 0.92))
    drop-shadow(0 0 12px rgba(255, 28, 86, 0.98))
    drop-shadow(0 5px 0 rgba(0, 0, 0, 0.28));
  animation: eva-berserk-body 480ms steps(2, end) infinite;
}

@keyframes eva-berserk-field {
  0%, 100% {
    opacity: 0.58;
    transform: translateX(-50%) scale(0.94) rotate(-3deg);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.08) rotate(4deg);
  }
}

@keyframes eva-berserk-body {
  0%, 100% {
    transform: translateX(-50%) scaleX(var(--unit-facing)) translate(0, 0) scale(1);
  }
  25% {
    transform: translateX(-50%) scaleX(var(--unit-facing)) translate(-1px, 1px) scale(1.05, 0.97);
  }
  50% {
    transform: translateX(-50%) scaleX(var(--unit-facing)) translate(2px, -1px) scale(0.98, 1.05);
  }
  75% {
    transform: translateX(-50%) scaleX(var(--unit-facing)) translate(-2px, 0) scale(1.03);
  }
}

@keyframes eva-berserk-alert {
  0%, 100% { opacity: 0.68; }
  50% { opacity: 1; }
}

@keyframes awakening-field-pulse {
  0%, 100% { opacity: 0.62; transform: translateX(-50%) scale(0.93); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.04); }
}

@keyframes awakening-field-spin {
  to { transform: rotate(360deg); }
}

@keyframes apostle-dark-aura {
  0%, 100% { opacity: 0.34; transform: translateX(-50%) translateY(8px); }
  24% { opacity: 0.58; transform: translateX(calc(-50% - 2px)) translateY(0); }
  48% { opacity: 0.46; transform: translateX(calc(-50% + 2px)) translateY(-8px); }
  72% { opacity: 0.54; transform: translateX(calc(-50% - 1px)) translateY(-4px); }
}

@keyframes apostle-dark-pulse {
  from { opacity: 0.28; transform: translate(-50%, -45%); }
  to { opacity: 0.56; transform: translate(-50%, -56%); }
}

@keyframes apostle-dark-smoke {
  0%, 100% { opacity: 0.22; transform: translate(-52%, -44%); }
  45% { opacity: 0.5; transform: translate(-48%, -57%); }
  72% { opacity: 0.32; transform: translate(-53%, -64%); }
}

@keyframes apostle-light-aura {
  0%, 100% { opacity: 0.32; transform: translateX(-50%) translateY(8px); }
  24% { opacity: 0.54; transform: translateX(calc(-50% + 2px)) translateY(0); }
  48% { opacity: 0.42; transform: translateX(calc(-50% - 2px)) translateY(-8px); }
  72% { opacity: 0.5; transform: translateX(calc(-50% + 1px)) translateY(-4px); }
}

@keyframes apostle-light-ring {
  from { opacity: 0.24; transform: translate(-50%, -45%); }
  to { opacity: 0.52; transform: translate(-50%, -56%); }
}

@keyframes apostle-light-sparks {
  0%, 100% { opacity: 0.18; transform: translate(-52%, -44%); }
  45% { opacity: 0.46; transform: translate(-48%, -57%); }
  72% { opacity: 0.28; transform: translate(-53%, -64%); }
}

.unit.idle > .unit-main-sprite {
  animation: unit-idle 1200ms ease-in-out infinite;
}

.unit.idle::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  z-index: -1;
  width: 34px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103, 224, 228, 0.48), rgba(76, 163, 255, 0.08) 65%, transparent 72%);
  transform: translateX(-50%);
  animation: idle-shadow 1200ms ease-in-out infinite;
}

.unit.hero.idle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  z-index: 1;
  width: 26px;
  height: 18px;
  background: url("./assets/thruster.png") center / contain no-repeat;
  image-rendering: pixelated;
  opacity: 0.42;
  transform: translateX(-50%) scaleY(0.38);
  filter: drop-shadow(0 0 8px rgba(76, 163, 255, 0.85));
  animation: idle-thruster 180ms steps(2, end) infinite;
}

.unit.enemy.idle > .unit-main-sprite {
  animation-duration: 1450ms;
}

.astranagant-drones {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 1px;
  height: 1px;
  pointer-events: none;
  transform: scaleX(var(--unit-facing));
  transform-origin: center;
}

.astranagant-drones::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 154px;
  height: 154px;
  border: 1px solid rgba(225, 69, 255, 0.38);
  border-radius: 50%;
  background: radial-gradient(circle, transparent 51%, rgba(151, 43, 255, 0.12) 53%, transparent 58%);
  box-shadow: 0 0 22px rgba(171, 47, 255, 0.22), inset 0 0 18px rgba(236, 72, 255, 0.13);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.45);
  animation: astranagant-lock-ring 5200ms ease-in-out infinite;
}

.astranagant-drone {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 42px;
  opacity: 0;
  background: url("./assets/series/vfx-astranagant-drone-v1.png") center / contain no-repeat;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 3px rgba(232, 55, 255, 0.9));
  transform-origin: 50% 68%;
  animation: astranagant-drone-flight 5200ms cubic-bezier(0.42, 0, 0.2, 1) infinite;
  animation-delay: calc(var(--drone-index) * 85ms);
  will-change: transform, opacity;
}

.astranagant-drone::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 74%;
  width: 4px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(rgba(245, 113, 255, 0.85), rgba(130, 36, 255, 0.28), transparent);
  transform: translateX(-50%);
  filter: blur(0.5px);
  animation: astranagant-drone-trail 5200ms ease-in-out infinite;
  animation-delay: calc(var(--drone-index) * 85ms);
}

.astranagant-drone::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 82%;
  width: 5px;
  height: 112px;
  border-radius: 50% 50% 2px 2px;
  background: linear-gradient(to top, #ffffff 0 4%, #f3a8ff 8%, #df32ff 28%, rgba(123, 36, 255, 0.72) 72%, transparent 100%);
  box-shadow: 0 0 4px #fff, 0 0 9px rgba(232, 59, 255, 0.95), 0 0 18px rgba(107, 45, 255, 0.75);
  opacity: 0;
  transform: translateX(-50%) scaleY(0.05);
  transform-origin: center bottom;
  animation: astranagant-drone-laser 5200ms steps(2, end) infinite;
  animation-delay: calc(var(--drone-index) * 85ms);
}

.astranagant-drone.drone-1 { --drone-index: 0; --dock-x: -17px; --dock-y: -18px; --fly-x: -78px; --fly-y: -66px; --orbit-x: -96px; --orbit-y: -27px; --drone-rot: -35deg; }
.astranagant-drone.drone-2 { --drone-index: 1; --dock-x: 17px; --dock-y: -18px; --fly-x: 78px; --fly-y: -66px; --orbit-x: 96px; --orbit-y: -27px; --drone-rot: 35deg; }
.astranagant-drone.drone-3 { --drone-index: 2; --dock-x: -24px; --dock-y: -1px; --fly-x: -106px; --fly-y: -5px; --orbit-x: -88px; --orbit-y: 37px; --drone-rot: -68deg; }
.astranagant-drone.drone-4 { --drone-index: 3; --dock-x: 24px; --dock-y: -1px; --fly-x: 106px; --fly-y: -5px; --orbit-x: 88px; --orbit-y: 37px; --drone-rot: 68deg; }
.astranagant-drone.drone-5 { --drone-index: 4; --dock-x: -16px; --dock-y: 17px; --fly-x: -70px; --fly-y: 64px; --orbit-x: -36px; --orbit-y: 86px; --drone-rot: -116deg; }
.astranagant-drone.drone-6 { --drone-index: 5; --dock-x: 16px; --dock-y: 17px; --fly-x: 70px; --fly-y: 64px; --orbit-x: 36px; --orbit-y: 86px; --drone-rot: 116deg; }

.unit.mech-astranagant.online-moving .astranagant-drones,
.unit.mech-astranagant.enemy-moving .astranagant-drones,
.unit.mech-astranagant.hidden-unit .astranagant-drones {
  opacity: 0;
}

@keyframes astranagant-drone-flight {
  0%, 12%, 100% {
    opacity: 0.18;
    transform: translate(calc(-50% + var(--dock-x)), calc(-50% + var(--dock-y))) rotate(var(--drone-rot)) scale(0.38);
  }
  20% {
    opacity: 0.92;
  }
  31%, 47% {
    opacity: 1;
    transform: translate(calc(-50% + var(--fly-x)), calc(-50% + var(--fly-y))) rotate(var(--drone-rot)) scale(0.78);
  }
  58%, 70% {
    opacity: 0.96;
    transform: translate(calc(-50% + var(--orbit-x)), calc(-50% + var(--orbit-y))) rotate(calc(var(--drone-rot) + 10deg)) scale(0.76);
  }
  84% {
    opacity: 0.76;
    transform: translate(calc(-50% + var(--dock-x)), calc(-50% + var(--dock-y))) rotate(var(--drone-rot)) scale(0.5);
  }
}

@keyframes astranagant-lock-ring {
  0%, 19%, 82%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.45); }
  31%, 47% { opacity: 0.58; transform: translate(-50%, -50%) scale(1); }
  58%, 70% { opacity: 0.34; transform: translate(-50%, -50%) scale(1.13) rotate(18deg); }
}

@keyframes astranagant-drone-laser {
  0%, 37%, 41%, 51%, 57%, 67%, 100% { opacity: 0; transform: translateX(-50%) scaleY(0.04); }
  38%, 40%, 52%, 56% { opacity: 1; transform: translateX(-50%) scaleY(1); }
}

@keyframes astranagant-drone-trail {
  0%, 12%, 76%, 100% { opacity: 0; transform: translateX(-50%) scaleY(0.2); }
  22%, 34% { opacity: 0.85; transform: translateX(-50%) scaleY(1); }
  48%, 68% { opacity: 0.42; transform: translateX(-50%) scaleY(0.55); }
}

@media (prefers-reduced-motion: reduce) {
  .astranagant-drone,
  .astranagant-drone::after,
  .astranagant-drone::before,
  .astranagant-drones::before {
    animation-play-state: paused;
  }
}

.unit.enemy {
  z-index: 8;
  opacity: 1;
}

.unit.enemy.boss-unit {
  z-index: 11;
}

.unit.enemy.boss-unit::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: 104px;
  height: 104px;
  border: 2px solid rgba(255, 209, 93, 0.72);
  border-radius: 8px;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 2px rgba(255, 70, 70, 0.22),
    0 0 24px rgba(255, 70, 70, 0.42),
    inset 0 0 20px rgba(255, 209, 93, 0.16);
  animation: boss-lock-pulse 900ms ease-in-out infinite;
}

.unit.enemy img {
  opacity: 1;
  filter:
    drop-shadow(0 5px 0 rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 8px rgba(255, 97, 97, 0.34));
}

.unit.enemy.boss-unit img {
  filter:
    drop-shadow(0 6px 0 rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 12px rgba(255, 79, 79, 0.68))
    drop-shadow(0 0 18px rgba(255, 209, 93, 0.36));
}

.map[data-map="legendDojo"] .unit.enemy.boss-unit,
.map[data-map="legendDojo"] .unit.enemy.boss-unit::before,
.map[data-map="legendDojo"] .unit.enemy.boss-unit::after,
.map[data-map="legendDojo"] .unit.enemy.boss-unit img,
.map[data-map="apostleDojo"] .unit.enemy.boss-unit,
.map[data-map="apostleDojo"] .unit.enemy.boss-unit::before,
.map[data-map="apostleDojo"] .unit.enemy.boss-unit::after,
.map[data-map="apostleDojo"] .unit.enemy.boss-unit img,
.map[data-map="berserkDojo"] .unit.enemy.boss-unit,
.map[data-map="berserkDojo"] .unit.enemy.boss-unit::before,
.map[data-map="berserkDojo"] .unit.enemy.boss-unit::after,
.map[data-map="berserkDojo"] .unit.enemy.boss-unit img,
.map[data-map="darkAngelRoom"] .unit.enemy.boss-unit,
.map[data-map="darkAngelRoom"] .unit.enemy.boss-unit::before,
.map[data-map="darkAngelRoom"] .unit.enemy.boss-unit::after,
.map[data-map="darkAngelRoom"] .unit.enemy.boss-unit > img:not(.dark-angel-wing-frame) {
  animation: none !important;
}

.map[data-map="legendDojo"] .unit.enemy.boss-unit img,
.map[data-map="apostleDojo"] .unit.enemy.boss-unit img,
.map[data-map="berserkDojo"] .unit.enemy.boss-unit img,
.map[data-map="darkAngelRoom"] .unit.enemy.boss-unit > img:not(.dark-angel-wing-frame) {
  transform: translateX(-50%) scaleX(var(--unit-facing)) !important;
}

.boss-crown {
  position: absolute;
  left: 50%;
  top: -46px;
  z-index: 9;
  padding: 3px 8px 4px;
  border: 1px solid rgba(255, 209, 93, 0.88);
  border-radius: 4px;
  color: #ffe7a1;
  background:
    linear-gradient(180deg, rgba(125, 22, 26, 0.96), rgba(56, 8, 13, 0.94));
  box-shadow: 0 0 12px rgba(255, 70, 70, 0.48), inset 0 0 8px rgba(255, 209, 93, 0.16);
  font-size: 10px;
  font-weight: 900;
  transform: translateX(-50%);
  pointer-events: none;
}

.enemy-name.boss-name {
  border-color: rgba(255, 209, 93, 0.82);
  color: #ffe7a1;
  background: linear-gradient(180deg, rgba(139, 25, 31, 0.94), rgba(71, 10, 18, 0.94));
}

.unit.online-player {
  z-index: 5;
  opacity: 1;
  transform: translate(-50%, -50%) translate(12px, -8px) scale(0.92);
}

.unit.online-player img {
  filter:
    drop-shadow(0 5px 0 rgba(0, 0, 0, 0.28))
    drop-shadow(0 0 10px rgba(103, 224, 228, 0.46));
}

.unit.hero.skin-red img,
.unit.online-player.skin-red img,
.unit.awakened-unit.skin-red img {
  filter: hue-rotate(325deg) saturate(1.55) contrast(1.08) drop-shadow(0 0 8px rgba(255, 90, 90, 0.45)) drop-shadow(0 5px 0 rgba(0, 0, 0, 0.28));
}

.unit.hero.skin-blue img,
.unit.online-player.skin-blue img,
.unit.awakened-unit.skin-blue img {
  filter: hue-rotate(185deg) saturate(1.45) contrast(1.08) drop-shadow(0 0 8px rgba(84, 190, 255, 0.48)) drop-shadow(0 5px 0 rgba(0, 0, 0, 0.28));
}

.unit.hero.skin-gold img,
.unit.online-player.skin-gold img,
.unit.awakened-unit.skin-gold img {
  filter: sepia(0.62) hue-rotate(8deg) saturate(1.9) brightness(1.08) contrast(1.1) drop-shadow(0 0 10px rgba(255, 209, 93, 0.5)) drop-shadow(0 5px 0 rgba(0, 0, 0, 0.28));
}

.unit.hero.skin-black img,
.unit.online-player.skin-black img,
.unit.awakened-unit.skin-black img {
  filter: grayscale(0.45) brightness(0.62) contrast(1.38) saturate(1.2) drop-shadow(0 0 9px rgba(40, 20, 70, 0.62)) drop-shadow(0 5px 0 rgba(0, 0, 0, 0.34));
}

.unit.hero.skin-purple img,
.unit.online-player.skin-purple img,
.unit.awakened-unit.skin-purple img {
  filter: hue-rotate(250deg) saturate(1.65) contrast(1.12) drop-shadow(0 0 9px rgba(185, 102, 255, 0.48)) drop-shadow(0 5px 0 rgba(0, 0, 0, 0.28));
}

.unit.hero.skin-green img,
.unit.online-player.skin-green img,
.unit.awakened-unit.skin-green img {
  filter: hue-rotate(92deg) saturate(1.35) brightness(0.92) contrast(1.1) drop-shadow(0 0 8px rgba(105, 255, 164, 0.4)) drop-shadow(0 5px 0 rgba(0, 0, 0, 0.28));
}

.unit.online-player::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 78px;
  height: 78px;
  border: 1px dashed rgba(103, 224, 228, 0.72);
  border-radius: 7px;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 16px rgba(103, 224, 228, 0.18);
}

@keyframes boss-lock-pulse {
  0%, 100% {
    opacity: 0.72;
    transform: translate(-50%, -50%) scale(0.98);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.06);
  }
}

.unit-nameplate {
  position: absolute;
  left: 50%;
  top: -10px;
  z-index: 40;
  max-width: 138px;
  padding: 3px 8px;
  border: 1px solid rgba(103, 224, 228, 0.48);
  border-radius: 999px;
  background: rgba(5, 10, 16, 0.92);
  color: #9efaff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  text-shadow: 0 0 8px rgba(103, 224, 228, 0.52);
  transform: translate(-50%, 0);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.38);
}

.unit-guild {
  position: absolute;
  left: 50%;
  top: -62px;
  z-index: 43;
  max-width: 184px;
  padding: 4px 11px;
  border: 1px solid rgba(255, 214, 94, 0.78);
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(24, 15, 4, 0.92), rgba(40, 31, 13, 0.92));
  color: #ffe58b;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  transform: translate(-50%, 0);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 0 8px rgba(255, 214, 94, 0.65);
  box-shadow: 0 0 14px rgba(255, 193, 65, 0.22), inset 0 0 10px rgba(255, 214, 94, 0.08);
}

.unit-title {
  position: absolute;
  left: 50%;
  top: -38px;
  z-index: 42;
  max-width: 176px;
  padding: 4px 10px;
  border: 1px solid rgba(150, 210, 255, 0.7);
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(6, 11, 18, 0.88), rgba(22, 34, 48, 0.88));
  color: #eaf8ff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0;
  text-shadow: 0 0 8px currentColor;
  transform: translate(-50%, 0);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(80, 170, 255, 0.28);
}

.unit-title::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-120%);
  animation: title-scan 3.6s linear infinite;
}

@keyframes title-scan {
  0%, 45% { transform: translateX(-120%); }
  70%, 100% { transform: translateX(120%); }
}

.title-blue { border-color: #7fc7ff; color: #bde7ff; box-shadow: 0 0 14px rgba(84, 176, 255, 0.35); }
.title-cyan { border-color: #67e0e4; color: #c8ffff; box-shadow: 0 0 14px rgba(103, 224, 228, 0.36); }
.title-green { border-color: #83f1a9; color: #d8ffe4; box-shadow: 0 0 14px rgba(131, 241, 169, 0.32); }
.title-amber { border-color: #ffd15d; color: #fff0b8; box-shadow: 0 0 14px rgba(255, 209, 93, 0.35); }
.title-gold { border-color: #ffdc75; color: #fff3bf; box-shadow: 0 0 18px rgba(255, 210, 77, 0.48); }
.title-red { border-color: #ff6a6a; color: #ffd0d0; box-shadow: 0 0 16px rgba(255, 87, 87, 0.42); }
.title-violet, .title-purple { border-color: #c49bff; color: #efe0ff; box-shadow: 0 0 16px rgba(172, 116, 255, 0.42); }
.title-steel { border-color: #afc4d8; color: #eef7ff; box-shadow: 0 0 12px rgba(175, 196, 216, 0.32); }
.title-black { border-color: #9e8cff; color: #e7ddff; background: linear-gradient(90deg, rgba(6, 5, 14, 0.92), rgba(34, 19, 58, 0.9)); box-shadow: 0 0 18px rgba(105, 72, 255, 0.5); }
.title-black-feather {
  border-color: #d6b6ff;
  color: #f1e7ff;
  background: linear-gradient(90deg, rgba(5, 3, 10, 0.94), rgba(34, 14, 56, 0.92), rgba(5, 3, 10, 0.94));
  box-shadow: 0 0 18px rgba(154, 76, 255, 0.55), inset 0 0 12px rgba(24, 0, 40, 0.78);
}

.title-black-feather i {
  display: inline-block;
  font-style: normal;
  opacity: 0.38;
  animation: black-feather-title-letter 1800ms steps(2, end) infinite;
  animation-delay: calc(var(--i) * 90ms);
}

@keyframes black-feather-title-letter {
  0%, 24%, 100% {
    opacity: 0.42;
    color: #cdb7ff;
    text-shadow: 0 0 5px rgba(132, 64, 255, 0.46);
  }
  42%, 72% {
    opacity: 1;
    color: #fff6ff;
    text-shadow: 0 0 9px rgba(205, 155, 255, 0.9), 0 0 16px rgba(84, 0, 130, 0.72);
  }
}
.title-rainbow {
  border-color: rgba(255, 255, 255, 0.82);
  color: #fff;
  background: linear-gradient(90deg, rgba(255, 99, 132, 0.86), rgba(255, 205, 86, 0.86), rgba(75, 192, 192, 0.86), rgba(153, 102, 255, 0.86));
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.42);
}

.title-text {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid currentColor;
  border-radius: 5px;
  background: rgba(4, 8, 14, 0.62);
  text-shadow: 0 0 8px currentColor;
}

.title-choices {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-height: 412px;
  overflow-y: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
}

.title-choice {
  min-height: 132px;
  align-items: stretch;
  text-align: left;
}

.title-choice .title-preview {
  align-self: flex-start;
  display: inline-flex;
  max-width: 100%;
  padding: 5px 10px;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: rgba(4, 8, 14, 0.76);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.1;
  text-shadow: 0 0 9px currentColor;
}

.title-choice strong {
  font-size: 14px;
}

.title-choice b {
  color: #ffe58f;
  font-size: 12px;
  line-height: 1.35;
}

.title-choice i,
.title-choice em {
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(120, 220, 255, 0.38);
  color: #9efaff;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}

.title-choice.locked {
  opacity: 0.58;
}

.title-choice.locked em {
  border-color: rgba(255, 98, 120, 0.7);
  color: #ffc4cc;
}

.online-name {
  border-color: rgba(103, 224, 228, 0.48);
  color: #9efaff;
  text-shadow: 0 0 8px rgba(103, 224, 228, 0.52);
}

.enemy-name {
  border-color: rgba(255, 97, 97, 0.72);
  background: rgba(34, 7, 13, 0.92);
  color: #ffd1d1;
  text-shadow: 0 0 8px rgba(255, 97, 97, 0.55);
}

.hero-name {
  border-color: rgba(255, 209, 93, 0.68);
  color: #ffe7a1;
  text-shadow: 0 0 8px rgba(255, 209, 93, 0.52);
}

@keyframes unit-idle {
  0%, 100% {
    transform: translateX(-50%) translateY(0) scaleX(var(--unit-facing));
  }
  50% {
    transform: translateX(-50%) translateY(-4px) scaleX(var(--unit-facing));
  }
}

@keyframes online-player-move {
  from {
    transform: translate(calc(-50% + var(--online-from-x, 0px)), calc(-50% + var(--online-from-y, 0px)));
  }
  to {
    transform: translate(-50%, -50%);
  }
}

@keyframes idle-shadow {
  0%, 100% {
    opacity: 0.45;
    transform: translateX(-50%) scaleX(0.92);
  }
  50% {
    opacity: 0.72;
    transform: translateX(-50%) scaleX(1.18);
  }
}

@keyframes idle-thruster {
  from {
    opacity: 0.28;
    transform: translateX(-50%) scaleY(0.28);
  }
  to {
    opacity: 0.56;
    transform: translateX(-50%) scaleY(0.48);
  }
}

.unit.hidden-unit {
  visibility: hidden;
}

.idle-feather {
  position: absolute;
  z-index: 3;
  width: 4px;
  height: 10px;
  border-radius: 80% 20% 80% 20%;
  background: linear-gradient(160deg, #fff, #e0e8f2 64%, rgba(138, 230, 255, 0.35));
  box-shadow: 0 0 4px rgba(237, 244, 251, 0.62);
  opacity: 0;
  pointer-events: none;
  animation: angel-idle-feather 2200ms ease-in infinite;
  animation-delay: var(--idle-delay);
}

.idle-feather.dark-feather,
.angel-feather.dark-feather {
  background: linear-gradient(160deg, #111827, #4c1d95 58%, rgba(236, 72, 153, 0.52));
  box-shadow: 0 0 5px rgba(168, 85, 247, 0.76), 0 0 10px rgba(12, 8, 18, 0.72);
}

.move-ghost {
  position: absolute;
  z-index: 8;
  width: var(--unit-w, 80px);
  height: var(--unit-h, 80px);
  --facing: 1;
  --angel-lean: 0deg;
  --wing-trail-x: 0px;
  --wing-trail-y: 0px;
  pointer-events: none;
  contain: layout paint style;
  will-change: transform;
  transform: translateZ(0);
}

.move-ghost.right {
  --angel-lean: 12deg;
  --wing-trail-x: -18px;
}

.move-ghost.left {
  --angel-lean: -12deg;
  --wing-trail-x: 18px;
}

.move-ghost.up {
  --angel-lean: -7deg;
  --wing-trail-y: 16px;
}

.move-ghost.down {
  --angel-lean: 7deg;
  --wing-trail-y: -14px;
}

.move-ghost .ghost-mech {
  position: absolute;
  left: 50%;
  bottom: var(--sprite-bottom, 2px);
  width: var(--ghost-sprite-w, 82px);
  max-height: var(--ghost-sprite-max-h, none);
  height: auto;
  transform: translateX(-50%) translateY(-2px) scaleX(var(--facing));
  transform-origin: center bottom;
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.28));
}

.move-ghost.angel-flight .ghost-mech {
  will-change: transform, filter;
  transform-origin: center bottom;
  animation: angel-lean-flight var(--flight-duration, 720ms) cubic-bezier(0.18, 0.86, 0.22, 1) forwards;
}

.unit.mech-darkAngelGundam.idle > .unit-main-sprite {
  z-index: 3;
  will-change: opacity, transform;
  animation:
    dark-wing-frame-open 1120ms steps(1, end) infinite,
    dark-angel-hover 2240ms ease-in-out infinite;
  filter: drop-shadow(0 0 9px rgba(168, 85, 247, 0.54)) drop-shadow(0 5px 0 rgba(0, 0, 0, 0.32));
}

.unit.mech-darkAngelGundam:not(.idle) .dark-angel-wing-frame,
.unit.mech-darkAngelGundam:not(.idle) .dark-angel-wing-wake {
  display: none;
}

.unit.mech-darkAngelGundam.idle .dark-angel-wing-frame {
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
  animation:
    dark-wing-frame-closed 1120ms steps(1, end) infinite,
    dark-angel-hover 2240ms ease-in-out infinite;
  filter: drop-shadow(0 0 9px rgba(168, 85, 247, 0.54)) drop-shadow(0 5px 0 rgba(0, 0, 0, 0.32));
}

.dark-angel-wing-wake {
  position: absolute;
  left: 50%;
  bottom: 36px;
  z-index: 4;
  width: 62px;
  height: 28px;
  border-top: 3px solid rgba(205, 151, 255, 0.86);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 5px rgba(126, 52, 255, 0.88));
  animation: dark-wing-wake 1120ms steps(2, end) infinite;
}

.dark-angel-wing-wake.wake-left {
  margin-left: -75px;
  transform: rotate(-22deg);
}

.dark-angel-wing-wake.wake-right {
  margin-left: 23px;
  transform: rotate(22deg);
  animation-delay: 90ms;
}

@keyframes dark-wing-frame-open {
  0%, 49.99%, 100% { opacity: 1; }
  50%, 99.99% { opacity: 0; }
}

@keyframes dark-wing-frame-closed {
  0%, 49.99%, 100% { opacity: 0; }
  50%, 99.99% { opacity: 1; }
}

@keyframes dark-angel-hover {
  0%, 100% { transform: translateX(-50%) translateY(1px) scaleX(var(--unit-facing)); }
  50% { transform: translateX(-50%) translateY(-5px) scaleX(var(--unit-facing)); }
}

@keyframes dark-wing-wake {
  0%, 18%, 100% { opacity: 0; filter: blur(0) drop-shadow(0 0 4px rgba(126, 52, 255, 0.55)); }
  34% { opacity: 0.86; }
  62% { opacity: 0.3; filter: blur(1px) drop-shadow(0 0 12px rgba(191, 128, 255, 0.94)); }
}

.move-ghost.dark-angel-flight .ghost-mech {
  filter: drop-shadow(0 0 13px rgba(168, 85, 247, 0.72)) drop-shadow(0 8px 0 rgba(0, 0, 0, 0.3));
}

.move-ghost.dark-angel-flight .angel-wing-sweep {
  display: none;
}

.angel-wing-sweep {
  position: absolute;
  left: 50%;
  bottom: var(--sprite-bottom, -2px);
  z-index: -1;
  width: var(--ghost-sprite-w, 132px);
  height: auto;
  max-height: none;
  image-rendering: pixelated;
  opacity: 0;
  pointer-events: none;
  transform-origin: center bottom;
  clip-path: polygon(0 0, 100% 0, 100% 74%, 0 74%);
  filter: brightness(1.18) drop-shadow(0 0 10px rgba(237, 244, 251, 0.38));
  animation: angel-wing-sweep var(--flight-duration, 720ms) cubic-bezier(0.18, 0.86, 0.22, 1) forwards;
}

.angel-feather {
  position: absolute;
  z-index: 3;
  width: 4px;
  height: 10px;
  border-radius: 80% 20% 80% 20%;
  background: linear-gradient(160deg, #ffffff, #d8e5f3 62%, rgba(103, 224, 228, 0.4));
  box-shadow: 0 0 4px rgba(237, 244, 251, 0.62);
  animation: angel-feather-fall 720ms ease-in forwards;
  animation-delay: var(--delay);
  opacity: 0;
  pointer-events: none;
}

.move-ghost.attack-ghost {
  z-index: 12;
}

.move-ghost.attack-ghost .ghost-mech {
  animation: attack-stance 180ms steps(2, end) infinite;
}

.move-ghost.attack-ghost.melee .ghost-mech {
  animation: melee-ready-stance 220ms steps(2, end) infinite;
}

.move-ghost.attack-ghost.melee.slash .ghost-mech {
  animation: melee-slash-stance 160ms ease-out 1;
}

.attack-ghost.attack-rifle .ghost-mech,
.attack-ghost.attack-sniper .ghost-mech {
  animation: rifle-aim-stance 210ms steps(3, end) infinite;
}

.attack-ghost.angel-beam .ghost-mech {
  animation: angel-arm-raise 260ms steps(3, end) infinite;
}

.attack-ghost.angel-saber .ghost-mech {
  animation: angel-saber-ready 120ms steps(2, end) infinite;
}

.attack-ghost.attack-bazooka .ghost-mech,
.attack-ghost.attack-railgun .ghost-mech {
  animation: heavy-aim-stance 250ms steps(3, end) infinite;
}

.attack-ghost.attack-missile .ghost-mech,
.attack-ghost.attack-funnel .ghost-mech {
  animation: deploy-stance 260ms steps(3, end) infinite;
}

.attack-ghost.attack-flame .ghost-mech,
.attack-ghost.attack-pulse .ghost-mech,
.attack-ghost.attack-spread .ghost-mech {
  animation: burst-stance 220ms steps(3, end) infinite;
}

.move-ghost.attack-ghost .thruster {
  opacity: 0.7;
}

.attack-ghost .weapon-prop,
.attack-ghost .pose-flare {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.attack-ghost .weapon-prop {
  left: 48px;
  top: 28px;
  width: 34px;
  height: 8px;
  border: 1px solid rgba(237, 244, 251, 0.9);
  background: linear-gradient(90deg, #aeb9c8, #3c4d61 72%, #67e0e4);
  box-shadow: 0 0 10px rgba(103, 224, 228, 0.45);
  transform-origin: left center;
  animation: weapon-ready 180ms steps(2, end) infinite;
}

.attack-ghost.attack-saber .weapon-prop {
  left: 50px;
  top: 24px;
  width: 8px;
  height: 46px;
  border-color: rgba(180, 255, 255, 0.88);
  background: linear-gradient(#ffffff, #68e9ff 55%, rgba(103, 224, 228, 0));
  box-shadow: 0 0 14px rgba(103, 224, 228, 0.8);
  opacity: 0.68;
  transform: rotate(54deg) scaleY(0.48);
  transform-origin: 50% 92%;
  animation: saber-ready 220ms steps(2, end) infinite;
}

.attack-ghost.attack-saber.slash .weapon-prop {
  opacity: 1;
  animation: saber-slash-blade 170ms ease-out 1;
}

.attack-ghost.attack-katana .weapon-prop,
.attack-ghost.attack-iaido .weapon-prop {
  left: 48px;
  top: 18px;
  width: 7px;
  height: 62px;
  border-color: rgba(255, 247, 210, 0.95);
  background: linear-gradient(#ffffff, #e8eef7 42%, #4d5e75 43% 52%, #151a22 52% 100%);
  box-shadow: 0 0 16px rgba(94, 224, 255, 0.66), 0 0 4px rgba(255, 255, 255, 0.9) inset;
  opacity: 0.9;
  transform: rotate(48deg) scaleY(0.78);
  transform-origin: 50% 92%;
  animation: saber-ready 180ms steps(2, end) infinite;
}

.attack-ghost.attack-katana.slash .weapon-prop,
.attack-ghost.attack-iaido.slash .weapon-prop {
  opacity: 1;
  animation: saber-slash-blade 120ms ease-out 1;
}

.attack-ghost.attack-bazooka .weapon-prop,
.attack-ghost.attack-railgun .weapon-prop {
  left: 42px;
  top: 22px;
  width: 48px;
  height: 14px;
  background: linear-gradient(90deg, #dde4ec, #52687e 64%, #ffd15d);
}

.attack-ghost.attack-missile .weapon-prop {
  left: 54px;
  top: 17px;
  width: 20px;
  height: 20px;
  border-radius: 2px;
  background:
    linear-gradient(90deg, transparent 42%, rgba(255,255,255,0.75) 42% 58%, transparent 58%),
    linear-gradient(#536b7e, #ff6161);
}

.attack-ghost.attack-funnel .weapon-prop {
  left: 58px;
  top: 12px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #c776ff;
  box-shadow: -22px 20px 0 #c776ff, 0 0 16px rgba(199, 118, 255, 0.95);
  animation: funnel-deploy 320ms steps(3, end) infinite;
}

.attack-ghost.attack-flame .weapon-prop,
.attack-ghost.attack-pulse .weapon-prop,
.attack-ghost.attack-spread .weapon-prop {
  left: 46px;
  top: 37px;
  width: 30px;
  height: 12px;
  border-color: rgba(255, 209, 93, 0.9);
  background: linear-gradient(90deg, #fff3b0, #ff935d, #ff6161);
}

.attack-ghost .pose-flare {
  left: 37px;
  top: 39px;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(103, 224, 228, 0.55);
  border-radius: 50%;
  opacity: 0;
  animation: pose-charge 420ms ease-out infinite;
}

.attack-ghost.attack-saber .pose-flare {
  left: 43px;
  top: 47px;
  border-color: rgba(103, 224, 228, 0.42);
  animation: saber-charge 360ms ease-out infinite;
}

.attack-ghost.attack-saber.slash .pose-flare {
  animation: none;
  opacity: 0;
}

.attack-ghost.attack-katana .pose-flare,
.attack-ghost.attack-iaido .pose-flare {
  left: 42px;
  top: 48px;
  border-color: rgba(255, 209, 93, 0.55);
  animation: saber-charge 300ms ease-out infinite;
}

.attack-ghost.left .weapon-prop,
.attack-ghost.left .pose-flare {
  transform: scaleX(-1);
}

.move-ghost .thruster {
  position: absolute;
  left: 50%;
  bottom: -42px;
  width: 64px;
  transform: translateX(-50%);
  transform-origin: center center;
  image-rendering: pixelated;
  animation: flame-pulse 120ms steps(2, end) infinite;
  filter: drop-shadow(0 0 16px rgba(76, 163, 255, 0.72));
}

.move-ghost.left .ghost-mech {
  --facing: 1;
}

.move-ghost.face-left .ghost-mech {
  --facing: 1;
}

.move-ghost.face-right .ghost-mech {
  --facing: -1;
}

.move-ghost:not(.attack-ghost) .thruster {
  width: 54px;
  opacity: 0.96;
}

.move-ghost:not(.attack-ghost).left .thruster {
  left: auto;
  right: -15px;
  bottom: 16px;
  transform: rotate(-90deg) scaleY(0.95);
}

.move-ghost:not(.attack-ghost).right .thruster {
  left: -15px;
  bottom: 16px;
  transform: rotate(90deg) scaleY(0.95);
}

.move-ghost:not(.attack-ghost).up .thruster {
  left: 50%;
  bottom: -38px;
  transform: translateX(-50%);
}

.move-ghost:not(.attack-ghost).down .thruster {
  left: 50%;
  top: -38px;
  bottom: auto;
  transform: translateX(-50%) rotate(180deg);
}

.move-ghost.attack-ghost.left .thruster {
  transform: translateX(-50%) rotate(-18deg);
}

.move-ghost.attack-ghost.right .thruster {
  transform: translateX(-50%) rotate(18deg);
}

.move-ghost.attack-ghost.up .thruster {
  transform: translateX(-50%) rotate(180deg);
  bottom: -28px;
}

.move-ghost.attack-ghost.down .thruster {
  bottom: -46px;
}

@keyframes angel-wing-flight {
  0%, 100% {
    transform: translateX(-50%) translateY(-4px) scaleX(var(--facing)) scaleY(0.98);
    filter: drop-shadow(0 9px 0 rgba(0, 0, 0, 0.24)) brightness(1.04);
  }
  50% {
    transform: translateX(-50%) translateY(-10px) scaleX(var(--facing)) scaleY(1.04);
    filter: drop-shadow(0 14px 0 rgba(0, 0, 0, 0.16)) brightness(1.18);
  }
}

@keyframes angel-lean-flight {
  0% {
    transform: translateX(-50%) translateY(-2px) scaleX(var(--facing)) rotate(0deg);
    filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.24)) brightness(1.06);
  }
  18% {
    transform: translateX(-50%) translateY(-10px) rotate(calc(var(--angel-lean) * 0.72)) scaleX(var(--facing));
    filter: drop-shadow(0 13px 0 rgba(0, 0, 0, 0.16)) brightness(1.18);
  }
  72% {
    transform: translateX(-50%) translateY(-13px) rotate(var(--angel-lean)) scaleX(var(--facing));
    filter: drop-shadow(0 16px 0 rgba(0, 0, 0, 0.12)) brightness(1.2);
  }
  100% {
    transform: translateX(-50%) translateY(-1px) scaleX(var(--facing)) rotate(0deg);
    filter: drop-shadow(0 10px 0 rgba(0, 0, 0, 0.2)) brightness(1.1);
  }
}

@keyframes angel-wing-sweep {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-2px) rotate(0deg) scaleX(var(--facing));
  }
  20% {
    opacity: 0.34;
    transform:
      translateX(calc(-50% + var(--wing-trail-x) * 0.55))
      translateY(calc(-8px + var(--wing-trail-y) * 0.45))
      rotate(calc(var(--angel-lean) * -0.36))
      scaleX(var(--facing));
  }
  58% {
    opacity: 0.5;
    transform:
      translateX(calc(-50% + var(--wing-trail-x)))
      translateY(calc(-12px + var(--wing-trail-y)))
      rotate(calc(var(--angel-lean) * -0.62))
      scaleX(var(--facing));
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-1px) rotate(0deg) scaleX(var(--facing));
  }
}

@keyframes angel-idle-feather {
  0% {
    opacity: 0;
    transform: translate(0, -4px) rotate(-8deg) scale(0.62);
  }
  15% {
    opacity: 0.68;
  }
  68% {
    opacity: 0.44;
  }
  100% {
    opacity: 0;
    transform: translate(var(--idle-drift), 78px) rotate(82deg) scale(0.92);
  }
}

@keyframes angel-feather-fall {
  0% {
    opacity: 0;
    transform: translate(0, -2px) rotate(-8deg) scale(0.65);
  }
  22% {
    opacity: 0.72;
  }
  100% {
    opacity: 0;
    transform: translate(var(--drift), 58px) rotate(78deg) scale(0.95);
  }
}

@keyframes dark-angel-idle {
  0%, 100% {
    transform: translateX(-50%) scaleX(var(--unit-facing)) translateY(0);
  }
  35% {
    transform: translateX(-50%) scaleX(var(--unit-facing)) translateY(-3px);
  }
  60% {
    transform: translateX(-50%) scaleX(var(--unit-facing)) translateY(0);
  }
}

@keyframes angel-arm-raise {
  0%, 100% {
    transform: translateX(-50%) translateY(-6px) scaleX(var(--facing)) rotate(-1deg);
  }
  50% {
    transform: translateX(-50%) translateY(-12px) scaleX(var(--facing)) rotate(-5deg);
  }
}

@keyframes angel-saber-ready {
  0%, 100% {
    transform: translateX(-50%) translateY(-3px) scaleX(var(--facing)) skewX(0deg);
  }
  50% {
    transform: translateX(-50%) translateY(-9px) scaleX(var(--facing)) skewX(-4deg);
  }
}

@keyframes flame-pulse {
  from {
    opacity: 0.74;
    scale: 0.92 0.88;
  }
  to {
    opacity: 1;
    scale: 1.08 1.04;
  }
}

@keyframes attack-stance {
  from {
    transform: translateX(-50%) translateY(-2px) scaleX(var(--facing)) skewX(-2deg);
  }
  to {
    transform: translateX(-50%) translateY(-4px) scaleX(var(--facing)) skewX(4deg);
  }
}

@keyframes melee-ready-stance {
  from {
    transform: translateX(-50%) translateY(-1px) scaleX(var(--facing)) rotate(-2deg);
  }
  to {
    transform: translateX(-51%) translateY(-5px) scaleX(var(--facing)) rotate(3deg);
  }
}

@keyframes melee-slash-stance {
  0% {
    transform: translateX(-52%) translateY(-5px) scaleX(var(--facing)) rotate(-8deg);
  }
  55% {
    transform: translateX(-46%) translateY(-9px) scaleX(var(--facing)) rotate(12deg);
  }
  100% {
    transform: translateX(-50%) translateY(-3px) scaleX(var(--facing)) rotate(3deg);
  }
}

@keyframes rifle-aim-stance {
  0%, 100% {
    transform: translateX(-50%) translateY(-2px) scaleX(var(--facing)) rotate(0deg);
  }
  50% {
    transform: translateX(-48%) translateY(-4px) scaleX(var(--facing)) rotate(2deg);
  }
}

@keyframes heavy-aim-stance {
  0%, 100% {
    transform: translateX(-50%) translateY(-1px) scaleX(var(--facing)) skewX(-3deg);
  }
  50% {
    transform: translateX(-53%) translateY(-5px) scaleX(var(--facing)) skewX(3deg);
  }
}

@keyframes deploy-stance {
  0%, 100% {
    transform: translateX(-50%) translateY(-2px) scaleX(var(--facing));
  }
  45% {
    transform: translateX(-50%) translateY(-8px) scaleX(var(--facing)) rotate(-2deg);
  }
}

@keyframes burst-stance {
  0%, 100% {
    transform: translateX(-50%) translateY(-2px) scaleX(var(--facing)) scale(1);
  }
  50% {
    transform: translateX(-50%) translateY(-3px) scaleX(var(--facing)) scale(1.08);
  }
}

@keyframes weapon-ready {
  from {
    opacity: 0.82;
    translate: 0 1px;
  }
  to {
    opacity: 1;
    translate: 3px -1px;
  }
}

@keyframes saber-ready {
  0%, 100% {
    opacity: 0.58;
    transform: rotate(50deg) scaleY(0.38);
  }
  50% {
    opacity: 0.82;
    transform: rotate(58deg) scaleY(0.58);
  }
}

@keyframes saber-slash-blade {
  0% {
    transform: rotate(68deg) scaleY(0.62);
  }
  48% {
    transform: rotate(16deg) scaleY(1.25);
    filter: brightness(1.8);
  }
  100% {
    transform: rotate(-18deg) scaleY(0.86);
    opacity: 0.6;
  }
}

@keyframes funnel-deploy {
  from {
    translate: -2px 4px;
  }
  to {
    translate: 8px -7px;
  }
}

@keyframes pose-charge {
  0% {
    opacity: 0.1;
    scale: 0.6;
  }
  60% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    scale: 1.9;
  }
}

@keyframes saber-charge {
  0% {
    opacity: 0;
    scale: 0.55;
  }
  60% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
    scale: 1.45;
  }
}

.attack-vfx {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 9;
  width: var(--vfx-width, 120px);
  height: 1px;
  pointer-events: none;
  transform-origin: left center;
  filter: drop-shadow(0 0 12px rgba(103, 224, 228, 0.9));
}

.attack-vfx .vfx-sprite {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: auto;
  transform: translateY(-50%);
  image-rendering: pixelated;
}

.attack-vfx.point-vfx .vfx-sprite {
  left: 50%;
  transform: translate(-50%, -50%);
}

.attack-vfx.sniper {
  filter: drop-shadow(0 0 16px rgba(255, 97, 97, 0.95));
}

.attack-vfx.saber-slash {
  z-index: 13;
  filter:
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.85))
    drop-shadow(0 0 20px rgba(103, 224, 228, 0.95));
}

.attack-vfx.heavy-saber-slash {
  z-index: 14;
  filter:
    drop-shadow(0 0 14px rgba(255, 255, 255, 0.96))
    drop-shadow(0 0 26px rgba(103, 224, 228, 1))
    drop-shadow(0 0 38px rgba(255, 209, 93, 0.72));
}

.self-destruct-vfx {
  position: absolute;
  z-index: 18;
  width: 1px;
  height: 1px;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.self-destruct-core,
.self-destruct-ring,
.self-destruct-vfx i {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

.self-destruct-core {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 18%, #94ffff 20% 34%, #3a8cff 38% 48%, rgba(255, 98, 98, 0.88) 54%, transparent 72%);
  box-shadow:
    0 0 22px rgba(255, 255, 255, 0.96),
    0 0 52px rgba(103, 224, 228, 0.95),
    0 0 90px rgba(255, 74, 74, 0.72);
  animation: self-destruct-core 820ms cubic-bezier(0.12, 0.82, 0.12, 1) forwards;
  transform: translate(-50%, -50%) scale(0.24);
}

.self-destruct-ring {
  width: 110px;
  height: 110px;
  border: 3px solid rgba(205, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow:
    0 0 28px rgba(103, 224, 228, 0.9),
    inset 0 0 28px rgba(255, 255, 255, 0.38);
  transform: translate(-50%, -50%) scale(0.12);
  animation: self-destruct-ring 760ms cubic-bezier(0.12, 0.82, 0.12, 1) forwards;
}

.self-destruct-ring.r2 {
  width: 190px;
  height: 190px;
  border-color: rgba(255, 209, 93, 0.72);
  animation-delay: 90ms;
}

.self-destruct-ring.r3 {
  width: 310px;
  height: 310px;
  border-color: rgba(255, 74, 74, 0.58);
  animation-delay: 160ms;
}

.self-destruct-vfx i {
  --angle: calc(var(--i) * 12.857deg);
  width: 48px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff, #94ffff 36%, #ff4a4a 72%, transparent);
  box-shadow: 0 0 16px rgba(103, 224, 228, 0.92);
  transform-origin: 0 50%;
  animation: self-destruct-particle 760ms cubic-bezier(0.12, 0.82, 0.12, 1) forwards;
  animation-delay: calc((var(--i) % 5) * 22ms);
}

.funnel-unit {
  position: absolute;
  z-index: 10;
  width: 42px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 14px rgba(199, 118, 255, 0.9));
  pointer-events: none;
}

.impact-vfx {
  position: absolute;
  z-index: 11;
  width: 112px;
  image-rendering: pixelated;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.2);
  filter: drop-shadow(0 0 20px rgba(255, 209, 93, 0.86));
}

.hit-impact-ring {
  position: absolute;
  z-index: 15;
  width: 78px;
  height: 78px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow:
    0 0 18px rgba(255, 209, 93, 0.82),
    inset 0 0 18px rgba(103, 224, 228, 0.38);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.28);
}

.hit-impact-ring.heavy {
  width: 112px;
  height: 112px;
  border-width: 4px;
  box-shadow:
    0 0 26px rgba(255, 255, 255, 0.86),
    0 0 44px rgba(255, 209, 93, 0.78),
    inset 0 0 24px rgba(103, 224, 228, 0.46);
}

.hit-impact-ring i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff, #ffd15d, transparent);
  box-shadow: 0 0 10px rgba(255, 209, 93, 0.9);
  transform-origin: 0 50%;
}

.damage-number {
  position: absolute;
  z-index: 16;
  min-width: 68px;
  text-align: center;
  color: #fff2a8;
  font-size: 24px;
  font-weight: 900;
  text-shadow:
    0 2px 0 #7a1c1c,
    0 0 10px rgba(255, 97, 97, 0.96),
    0 0 18px rgba(255, 209, 93, 0.72);
  pointer-events: none;
  transform: translate(-50%, -20%) scale(0.72);
}

.damage-number.recovery-number {
  min-width: 120px;
  color: #b8ffd0;
  font-size: 18px;
  text-shadow:
    0 2px 0 #0c5730,
    0 0 10px rgba(105, 216, 131, 0.95),
    0 0 18px rgba(103, 224, 228, 0.54);
}

.damage-number.barrier-number {
  min-width: 118px;
  color: #bffcff;
  font-size: 18px;
  text-shadow:
    0 2px 0 #092436,
    0 0 12px rgba(103, 224, 228, 0.98),
    0 0 24px rgba(76, 163, 255, 0.74);
}

.ai-field-barrier {
  position: absolute;
  z-index: 22;
  width: 148px;
  height: 148px;
  border: 3px solid rgba(185, 250, 255, 0.88);
  border-left-color: rgba(76, 163, 255, 0.26);
  border-right-color: rgba(210, 116, 255, 0.38);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(103, 224, 228, 0.12) 42%, rgba(76, 163, 255, 0.02) 66%, transparent 72%);
  box-shadow:
    0 0 20px rgba(103, 224, 228, 0.82),
    0 0 42px rgba(76, 163, 255, 0.48),
    inset 0 0 28px rgba(185, 250, 255, 0.28);
  pointer-events: none;
}

.ai-field-barrier i {
  position: absolute;
  left: 16%;
  right: 16%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), rgba(103, 224, 228, 0.85), transparent);
  box-shadow: 0 0 10px rgba(103, 224, 228, 0.9);
  animation: ai-field-scan 420ms ease-out infinite;
}

.ai-field-barrier i:nth-child(1) { top: 34%; animation-delay: 0ms; }
.ai-field-barrier i:nth-child(2) { top: 50%; animation-delay: 80ms; }
.ai-field-barrier i:nth-child(3) { top: 66%; animation-delay: 160ms; }

@keyframes ai-field-scan {
  0% { transform: translateX(-18px) scaleX(0.32); opacity: 0; }
  38% { opacity: 1; }
  100% { transform: translateX(18px) scaleX(1); opacity: 0; }
}

.reward-popup {
  position: absolute;
  z-index: 21;
  max-width: 210px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(9, 14, 20, 0.82);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
  pointer-events: none;
  transform: translate(-50%, 8%) scale(0.78);
  white-space: nowrap;
}

.reward-credits {
  color: #ffe07a;
  border-color: rgba(255, 209, 93, 0.56);
  box-shadow: 0 0 18px rgba(255, 209, 93, 0.22), 0 8px 18px rgba(0, 0, 0, 0.32);
}

.reward-chip {
  color: #9efaff;
  border-color: rgba(103, 224, 228, 0.58);
  box-shadow: 0 0 18px rgba(103, 224, 228, 0.22), 0 8px 18px rgba(0, 0, 0, 0.32);
}

.reward-item {
  color: #f5c6ff;
  border-color: rgba(210, 116, 255, 0.58);
  box-shadow: 0 0 18px rgba(210, 116, 255, 0.24), 0 8px 18px rgba(0, 0, 0, 0.32);
}

.reward-card {
  color: #ffe7a8;
  border-color: rgba(255, 209, 93, 0.62);
  background:
    linear-gradient(90deg, rgba(210, 116, 255, 0.18), rgba(255, 209, 93, 0.14)),
    rgba(9, 14, 20, 0.88);
  box-shadow: 0 0 20px rgba(255, 209, 93, 0.25), 0 8px 18px rgba(0, 0, 0, 0.32);
}

.reward-legend {
  color: #fff0a8;
  border-color: rgba(255, 209, 93, 0.82);
  background:
    linear-gradient(90deg, rgba(255, 209, 93, 0.22), rgba(210, 116, 255, 0.2)),
    rgba(9, 14, 20, 0.9);
  box-shadow: 0 0 26px rgba(255, 209, 93, 0.34), 0 8px 18px rgba(0, 0, 0, 0.34);
}

.reward-xp {
  color: #8ff7ff;
  border-color: rgba(255, 209, 93, 0.46);
  background:
    linear-gradient(90deg, rgba(103, 224, 228, 0.16), rgba(255, 209, 93, 0.12)),
    rgba(9, 14, 20, 0.86);
  box-shadow: 0 0 20px rgba(103, 224, 228, 0.24), 0 8px 18px rgba(0, 0, 0, 0.32);
}

.recovery-vfx {
  position: absolute;
  z-index: 13;
  width: 102px;
  height: 102px;
  border: 3px solid rgba(105, 216, 131, 0.82);
  border-top-color: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow:
    0 0 22px rgba(105, 216, 131, 0.68),
    inset 0 0 20px rgba(103, 224, 228, 0.28);
  pointer-events: none;
}

.recovery-vfx::before,
.recovery-vfx::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 2px solid rgba(103, 224, 228, 0.46);
}

.recovery-vfx::after {
  inset: 36px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8), rgba(105, 216, 131, 0.38), transparent 68%);
  border: 0;
}

.map.hit-stop {
  animation: none;
}

.map-shell.combat-shake {
  animation: combat-shake 220ms ease-out;
}

.map-shell.combat-shake-heavy {
  animation: combat-shake-heavy 360ms ease-out;
}

.angel-dash-trail {
  position: absolute;
  z-index: 11;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), rgba(103, 224, 228, 0.96), transparent);
  box-shadow: 0 0 18px rgba(103, 224, 228, 0.86), 0 0 34px rgba(255, 255, 255, 0.48);
  pointer-events: none;
  transform-origin: center;
}

.katana-afterimage {
  position: absolute;
  z-index: 12;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 247, 210, 0.86), rgba(103, 224, 228, 0.72), transparent);
  box-shadow: 0 0 18px rgba(103, 224, 228, 0.55), 0 0 28px rgba(255, 209, 93, 0.28);
  pointer-events: none;
  transform-origin: center;
}

.arcslash-wave {
  position: absolute;
  z-index: 12;
  width: 112px;
  height: 68px;
  border-top: 9px solid rgba(255, 247, 210, 0.94);
  border-right: 5px solid rgba(103, 224, 228, 0.72);
  border-radius: 50%;
  filter: drop-shadow(0 0 14px rgba(103, 224, 228, 0.72));
  pointer-events: none;
}

.angel-beam-sweep {
  position: absolute;
  z-index: 12;
  width: 0;
  height: 0;
  pointer-events: none;
  transform-origin: 0 0;
}

.angel-beam-sweep .sweep-beam {
  position: absolute;
  left: 0;
  top: -5px;
  width: var(--beam-length);
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffffff, #68e9ff 24%, rgba(103, 224, 228, 0.78) 66%, transparent);
  box-shadow: 0 0 16px rgba(103, 224, 228, 0.92), 0 0 34px rgba(255, 255, 255, 0.55);
  transform-origin: 0 50%;
}

.angel-beam-sweep .beam-a {
  transform: rotate(-16deg);
}

.angel-beam-sweep .beam-b {
  transform: rotate(16deg);
}

.angel-beam-sweep .sweep-ring {
  position: absolute;
  left: -42px;
  top: -42px;
  width: 84px;
  height: 84px;
  border: 3px solid rgba(237, 244, 251, 0.8);
  border-left-color: rgba(103, 224, 228, 0.12);
  border-bottom-color: rgba(103, 224, 228, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(103, 224, 228, 0.76), inset 0 0 18px rgba(103, 224, 228, 0.28);
  animation: angel-ring-sweep 260ms linear infinite;
}

.angel-beam-sweep .sweep-core {
  position: absolute;
  left: -11px;
  top: -11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff, #68e9ff 50%, transparent 72%);
  box-shadow: 0 0 18px rgba(103, 224, 228, 1);
}

@keyframes angel-ring-sweep {
  to {
    transform: rotate(360deg);
  }
}

.unit.hit > .unit-main-sprite {
  animation: hit-flash 360ms steps(3, end);
}

.unit.teleporting img,
.move-ghost.teleporting {
  animation: teleport-flash 520ms ease-out;
}

.unit.attacker > .unit-main-sprite {
  animation: attack-bob 260ms ease-out;
}

@keyframes hit-flash {
  0% {
    filter: brightness(2.5) drop-shadow(0 0 12px rgba(255, 255, 255, 0.95));
    translate: -5px 0;
  }
  35% {
    translate: 5px 0;
  }
  70% {
    filter: brightness(2.2) drop-shadow(0 0 18px rgba(255, 97, 97, 0.9));
    translate: -3px 0;
  }
  100% {
    filter: none;
    translate: 0 0;
  }
}

@keyframes hit-stop-flash {
  0%, 100% {
    filter: none;
  }
  50% {
    filter: brightness(1.22) saturate(1.18);
  }
}

@keyframes combat-shake {
  0%, 100% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-4px, 2px);
  }
  45% {
    transform: translate(5px, -2px);
  }
  70% {
    transform: translate(-2px, 1px);
  }
}

@keyframes combat-shake-heavy {
  0%, 100% {
    transform: translate(0, 0);
  }
  14% {
    transform: translate(-8px, 4px);
  }
  32% {
    transform: translate(9px, -5px);
  }
  54% {
    transform: translate(-6px, 3px);
  }
  78% {
    transform: translate(3px, -2px);
  }
}

@keyframes self-destruct-core {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.18);
    filter: brightness(1);
  }
  22% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.25);
    filter: brightness(2.4);
  }
  62% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(2.6);
    filter: brightness(2);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(4.2);
    filter: brightness(0.6);
  }
}

@keyframes self-destruct-ring {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.1);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.25);
  }
}

@keyframes self-destruct-particle {
  0% {
    opacity: 0;
    transform: rotate(var(--angle)) translateX(0) scaleX(0.2);
  }
  16% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(var(--angle)) translateX(var(--d)) scaleX(1.15);
  }
}

@keyframes attack-bob {
  0% {
    translate: 0 0;
  }
  45% {
    translate: 7px -3px;
  }
  100% {
    translate: 0 0;
  }
}

@keyframes teleport-flash {
  0% {
    opacity: 1;
    filter: brightness(1);
  }
  45% {
    opacity: 0.2;
    filter: brightness(2.8) drop-shadow(0 0 24px rgba(210, 116, 255, 0.95));
    scale: 1.18;
  }
  100% {
    opacity: 1;
    filter: brightness(1);
    scale: 1;
  }
}

.unit-menu {
  position: fixed;
  z-index: 6;
  width: 164px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(103, 224, 228, 0.58);
  border-radius: 8px;
  background: rgba(16, 23, 30, 0.94);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
}

.unit-menu::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-left: 1px solid rgba(103, 224, 228, 0.58);
  border-bottom: 1px solid rgba(103, 224, 228, 0.58);
  background: rgba(16, 23, 30, 0.94);
  transform: rotate(45deg);
}

.unit-menu[hidden] {
  display: none;
}

.unit-menu button {
  min-height: 34px;
  text-align: left;
  padding: 0 10px;
}

.unit-menu > button {
  text-align: center;
}

.portal-dialog,
.mecha-dialog,
.update-notice-dialog {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 9;
  width: min(820px, calc(100vw - 28px));
  padding: 12px;
  border: 1px solid rgba(103, 224, 228, 0.58);
  border-radius: 8px;
  background: rgba(13, 20, 27, 0.95);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.46), inset 0 0 26px rgba(103, 224, 228, 0.08);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
}

.portal-dialog[hidden],
.mecha-dialog[hidden],
.update-notice-dialog[hidden] {
  display: none;
}

.portal-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.portal-dialog h2,
.mecha-dialog h2,
.update-notice-dialog h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

#portalCloseBtn,
#mechaCloseBtn,
#updateNoticeCloseBtn {
  width: 32px;
  min-height: 32px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
  text-align: center;
}

.update-notice-dialog {
  top: 50%;
  bottom: auto;
  z-index: 76;
  width: min(760px, calc(100vw - 28px));
  max-height: min(720px, calc(100vh - 44px));
  transform: translate(-50%, -50%);
  overflow: hidden;
}

.update-notice-list {
  max-height: min(590px, calc(100vh - 150px));
  display: grid;
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
}

.update-notice-item {
  padding: 16px;
  border: 1px solid rgba(103, 224, 228, 0.28);
  border-radius: 6px;
  background: rgba(21, 31, 40, 0.92);
}

.update-notice-item.major {
  border-color: rgba(255, 210, 82, 0.55);
  box-shadow: inset 3px 0 0 #ffd252, inset 0 0 24px rgba(255, 210, 82, 0.05);
}

.update-notice-item header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.update-notice-item header span {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
}

.update-notice-item h3 {
  margin: 3px 0 0;
  font-size: 18px;
}

.update-notice-item time {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.update-notice-item p {
  margin-bottom: 10px;
  color: #d8e5ec;
  line-height: 1.6;
}

.update-notice-item ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.portal-choices {
  display: grid;
  gap: 8px;
}

.portal-choices button {
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-align: left;
  background:
    linear-gradient(90deg, rgba(103, 224, 228, 0.12), rgba(210, 116, 255, 0.08)),
    rgba(28, 39, 49, 0.96);
}

.portal-choices button strong {
  font-size: 16px;
}

.portal-choices button span {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 700;
}

.portal-choices button.locked {
  opacity: 0.55;
  filter: grayscale(0.8);
}

.mecha-choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.mecha-choices.series-choices {
  grid-template-columns: 1fr;
  max-height: 66vh;
  overflow: auto;
  padding-right: 4px;
}

.mecha-series-section {
  display: grid;
  gap: 8px;
}

.mecha-series-section h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0 0;
  padding: 6px 8px;
  border: 1px solid rgba(103, 224, 228, 0.22);
  border-radius: 6px;
  background: rgba(9, 15, 22, 0.52);
  color: var(--cyan);
  font-size: 13px;
}

.mecha-series-section h3 span {
  color: var(--muted);
  font-size: 11px;
}

.mecha-series-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.mecha-choice {
  position: relative;
  min-height: 148px;
  display: grid;
  grid-template-rows: 70px auto auto auto;
  justify-items: center;
  gap: 4px;
  padding: 8px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(103, 224, 228, 0.1), rgba(210, 116, 255, 0.07)),
    rgba(28, 39, 49, 0.96);
}

.mecha-choice.active {
  border-color: var(--yellow);
  box-shadow: inset 0 0 22px rgba(255, 209, 93, 0.18), 0 0 14px rgba(255, 209, 93, 0.18);
}

.mecha-choice.locked {
  opacity: 0.9;
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(103, 224, 228, 0.05)),
    rgba(24, 33, 42, 0.94);
}

.mecha-choice.craftable {
  border-color: rgba(103, 224, 228, 0.8);
  box-shadow: inset 0 0 20px rgba(103, 224, 228, 0.14);
}

.mecha-choice.owned {
  border-color: rgba(88, 235, 145, 0.55);
}

.mecha-upgrade-line {
  display: block;
  margin-top: 2px;
  padding: 4px 6px;
  border: 1px solid rgba(255, 209, 93, 0.28);
  border-radius: 4px;
  color: var(--yellow);
  background: rgba(255, 209, 93, 0.08);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.mecha-upgrade-line:hover {
  border-color: rgba(255, 209, 93, 0.58);
  background: rgba(255, 209, 93, 0.16);
}

.mecha-choice.awakened {
  border-color: rgba(116, 246, 255, 0.68);
  box-shadow: inset 0 0 0 1px rgba(116, 246, 255, 0.24), 0 0 18px rgba(116, 246, 255, 0.14);
}

.mecha-choice.damaged {
  filter: grayscale(0.45);
}

.mecha-awaken-line {
  display: block;
  margin-top: 2px;
  padding: 4px 6px;
  border: 1px solid rgba(116, 246, 255, 0.45);
  border-radius: 4px;
  color: #8ff8ff;
  background: rgba(39, 195, 211, 0.1);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.mecha-awaken-line.awakened {
  color: #ffe16b;
  border-color: rgba(255, 225, 107, 0.56);
  background: rgba(255, 225, 107, 0.1);
}

.mecha-awaken-line.damaged {
  color: #ff8b8b;
  border-color: rgba(255, 117, 117, 0.7);
  background: rgba(255, 68, 68, 0.14);
}

.mecha-mastery-line {
  display: block;
  margin-top: 2px;
  padding: 4px 6px;
  border: 1px solid rgba(210, 116, 255, 0.32);
  border-radius: 4px;
  color: #e9c5ff;
  background: rgba(210, 116, 255, 0.1);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.mecha-mastery-line:hover {
  border-color: rgba(210, 116, 255, 0.65);
  background: rgba(210, 116, 255, 0.18);
}

.mecha-sell-line {
  display: block;
  margin-top: 2px;
  padding: 4px 6px;
  border: 1px solid rgba(255, 104, 104, 0.3);
  border-radius: 4px;
  color: #ffb1b1;
  background: rgba(255, 104, 104, 0.08);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.mecha-sell-line:hover {
  border-color: rgba(255, 104, 104, 0.64);
  background: rgba(255, 104, 104, 0.16);
}

.mecha-choice.trial-open {
  border-color: rgba(103, 224, 228, 0.58);
  box-shadow: inset 0 0 18px rgba(103, 224, 228, 0.12);
}

.mecha-choice img {
  align-self: end;
  width: var(--choice-sprite-w, 68px);
  max-height: var(--choice-sprite-h, 72px);
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.28));
}

.mecha-lock-badge {
  position: absolute;
  right: 7px;
  top: 7px;
  z-index: 3;
  padding: 3px 6px;
  border: 1px solid rgba(255, 97, 97, 0.68);
  border-radius: 4px;
  background: rgba(36, 12, 18, 0.9);
  color: #ffd1d1;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: 0 0 12px rgba(255, 97, 97, 0.16);
}

.mecha-lock-badge.owned-badge {
  border-color: rgba(88, 235, 145, 0.7);
  background: rgba(10, 35, 24, 0.9);
  color: #bafad0;
  box-shadow: 0 0 12px rgba(88, 235, 145, 0.16);
}

.mecha-lock-badge.open-badge {
  border-color: rgba(103, 224, 228, 0.78);
  background: rgba(10, 31, 38, 0.9);
  color: #baf7ff;
  box-shadow: 0 0 12px rgba(103, 224, 228, 0.18);
}

.mecha-choice strong {
  font-size: 14px;
}

.mecha-choice span,
.mecha-choice b {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.mecha-choice b {
  color: var(--yellow);
}

.equipment-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 62vh;
  overflow: auto;
}

.equipment-section {
  display: grid;
  align-content: start;
  gap: 8px;
}

.equipment-section.wide {
  grid-column: 1 / -1;
}

.game-confirm-card {
  border-color: rgba(255, 209, 93, 0.36);
  background:
    linear-gradient(135deg, rgba(255, 209, 93, 0.08), transparent 34%),
    rgba(7, 15, 22, 0.94);
}

.game-confirm-card p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.55;
}

.danger-confirm .game-confirm-card {
  border-color: rgba(255, 97, 97, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 97, 97, 0.14), 0 0 26px rgba(255, 97, 97, 0.12);
}

.danger-confirm [data-game-confirm] {
  border-color: rgba(255, 97, 97, 0.72);
  background: linear-gradient(180deg, rgba(255, 97, 97, 0.28), rgba(112, 22, 34, 0.82));
  color: #fff2f2;
}

.equipment-section h3 {
  margin: 0;
  color: var(--cyan);
  font-size: 13px;
}

.storage-tabbar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  position: sticky;
  top: 0;
  z-index: 4;
  padding: 0 0 4px;
  background: linear-gradient(180deg, rgba(11, 17, 24, 0.98), rgba(11, 17, 24, 0.78));
}

.storage-tabbar button {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 7px;
  border-color: rgba(103, 224, 228, 0.22);
  background:
    linear-gradient(180deg, rgba(103, 224, 228, 0.08), rgba(28, 39, 49, 0.9)),
    rgba(16, 24, 32, 0.94);
  color: #d8f9ff;
  font-size: 12px;
  font-weight: 900;
}

.storage-tabbar button.active {
  border-color: var(--yellow);
  color: #fff1a7;
  box-shadow:
    inset 0 0 18px rgba(255, 209, 93, 0.17),
    0 0 14px rgba(255, 209, 93, 0.1);
}

.storage-tabbar b {
  min-width: 20px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(103, 224, 228, 0.13);
  color: var(--cyan);
  font-size: 10px;
  line-height: 1;
}

.storage-tabbar button.active b {
  background: rgba(255, 209, 93, 0.18);
  color: var(--yellow);
}

.equipment-choice {
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px;
  column-gap: 10px;
  align-items: start;
  padding: 10px;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(103, 224, 228, 0.1), rgba(210, 116, 255, 0.06)),
    rgba(28, 39, 49, 0.96);
}

.equipment-choice.active {
  border-color: var(--yellow);
  box-shadow: inset 0 0 22px rgba(255, 209, 93, 0.16);
}

.equipment-choice.locked {
  opacity: 0.62;
  filter: saturate(0.55);
}

.equipment-choice strong {
  font-size: 14px;
}

.equipment-choice span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.equipment-choice b {
  color: var(--yellow);
  font-size: 12px;
}

.equipment-choice .enhance-rate {
  color: #67e0e4;
  font-size: 11px;
}

.enhance-rule-note {
  padding: 9px 10px;
  border-left: 3px solid #ffcf5a;
  background: rgba(255, 207, 90, 0.08);
  color: #f4deb0 !important;
  line-height: 1.55;
}

.enhance-rule-note b {
  color: #ffcf5a;
}

.card-item {
  border-color: rgba(103, 224, 228, 0.28);
}

.card-slot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
  margin: 0 0 10px;
}

.card-slot {
  min-height: 58px;
  border: 1px solid rgba(103, 224, 228, 0.24);
  background: rgba(7, 14, 22, 0.58);
  padding: 9px;
}

.card-slot span {
  display: block;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
}

.card-slot strong {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.card-slot.filled {
  border-color: rgba(255, 209, 93, 0.55);
  background: rgba(36, 29, 12, 0.68);
}

.card-slot.filled strong {
  color: var(--yellow);
}

.card-item.card-R {
  border-color: rgba(105, 216, 131, 0.46);
}

.card-item.card-SR {
  border-color: rgba(103, 224, 228, 0.54);
  box-shadow: inset 0 0 18px rgba(103, 224, 228, 0.11);
}

.card-item.card-SSR {
  border-color: rgba(210, 116, 255, 0.62);
  box-shadow: inset 0 0 20px rgba(210, 116, 255, 0.16);
}

.card-item.card-UR {
  border-color: rgba(255, 209, 93, 0.78);
  box-shadow:
    inset 0 0 24px rgba(255, 209, 93, 0.18),
    0 0 18px rgba(255, 209, 93, 0.12);
}

.card-quality {
  color: var(--cyan);
}

.card-detail-card strong {
  display: block;
  margin: 10px 0;
  color: var(--yellow);
  font-size: 15px;
}

.card-replace-note {
  border-left: 3px solid var(--yellow);
  padding-left: 10px;
  color: #ffe08a;
}

.legendary-item,
.storage-item:has(.legend-tag) {
  border-color: rgba(255, 209, 93, 0.82);
  background:
    linear-gradient(135deg, rgba(255, 209, 93, 0.18), rgba(210, 116, 255, 0.13)),
    rgba(28, 39, 49, 0.96);
  box-shadow: inset 0 0 24px rgba(255, 209, 93, 0.16);
}

.legend-tag {
  border-color: rgba(255, 209, 93, 0.78);
  background: rgba(54, 38, 10, 0.92);
  color: #ffe08a;
}

.leaderboard-choices {
  grid-template-columns: 1fr;
  max-height: 66vh;
  overflow: auto;
  padding-right: 4px;
}

.leaderboard-tabs {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 4px 0 8px;
  background: rgba(8, 15, 22, 0.96);
}

.leaderboard-loading {
  padding: 18px;
  border: 1px solid rgba(103, 224, 228, 0.24);
  border-radius: 6px;
  color: var(--cyan);
  background: rgba(28, 39, 49, 0.72);
  font-weight: 800;
}

.leaderboard-row {
  min-height: 76px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 210px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  text-align: left;
  background:
    linear-gradient(90deg, rgba(103, 224, 228, 0.11), rgba(255, 209, 93, 0.06)),
    rgba(24, 34, 43, 0.96);
}

.leaderboard-row.mine {
  border-color: var(--yellow);
  box-shadow: inset 0 0 22px rgba(255, 209, 93, 0.14);
}

.leaderboard-row.guild-rank-row {
  cursor: default;
  opacity: 1;
}

.leaderboard-rank {
  color: var(--yellow);
  font-size: 18px;
  font-weight: 900;
}

.leaderboard-main,
.leaderboard-stat {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.leaderboard-main strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
}

.leaderboard-main strong i {
  padding: 2px 5px;
  border: 1px solid rgba(103, 224, 228, 0.42);
  border-radius: 4px;
  color: var(--cyan);
  font-size: 9px;
  font-style: normal;
}

.leaderboard-main em,
.leaderboard-stat em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.leaderboard-main b {
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.leaderboard-main b i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--yellow));
}

.leaderboard-stat {
  justify-items: end;
  text-align: right;
}

.leaderboard-stat strong {
  color: var(--green);
  font-size: 16px;
}

.equipment-choice-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.exclusive-tag {
  align-self: start;
  min-width: 56px;
  padding: 4px 6px;
  border: 1px solid rgba(255, 74, 93, 0.7);
  border-radius: 4px;
  color: #ff4a5d;
  background: rgba(255, 40, 62, 0.11);
  box-shadow: inset 0 0 12px rgba(255, 74, 93, 0.14);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.exclusive-tag.exclusive-mismatch {
  border-color: rgba(255, 74, 93, 0.36);
  color: rgba(255, 122, 135, 0.66);
  background: rgba(78, 18, 28, 0.2);
}

.exclusive-inline {
  color: #ff4a5d;
  font-style: normal;
  font-weight: 900;
}

.chip-choices {
  grid-template-columns: 1fr;
}

.chip-choice.active {
  border-color: rgba(255, 209, 93, 0.55);
}

.equipment-choice.storage-item {
  cursor: default;
}

.guild-choices {
  grid-template-columns: 1fr;
  max-height: 66vh;
  overflow: auto;
  padding-right: 4px;
}

.guild-section {
  grid-column: 1 / -1;
  padding: 12px;
  border: 1px solid rgba(103, 224, 228, 0.22);
  border-radius: 6px;
  background: rgba(9, 18, 25, 0.72);
}

.guild-section h3 {
  margin: 0 0 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--cyan);
  font-size: 13px;
}

.guild-section h3 span {
  color: var(--muted);
  font-size: 11px;
}

.storage-tabs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.storage-tab,
.dialog-action {
  min-height: 32px;
  border: 1px solid rgba(103, 224, 228, 0.35);
  border-radius: 4px;
  background: rgba(18, 32, 42, 0.9);
  color: var(--cyan);
  font-weight: 900;
  cursor: pointer;
}

.storage-tab.active,
.dialog-action {
  border-color: rgba(255, 209, 93, 0.72);
  color: var(--yellow);
  box-shadow: inset 0 0 14px rgba(255, 209, 93, 0.12);
}

.guild-create-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 8px;
}

.tech-input {
  min-height: 34px;
  border: 1px solid rgba(103, 224, 228, 0.36);
  border-radius: 4px;
  padding: 0 10px;
  background: rgba(3, 9, 14, 0.88);
  color: #e9fbff;
  outline: none;
}

.tech-input:focus {
  border-color: rgba(255, 209, 93, 0.75);
  box-shadow: 0 0 0 2px rgba(255, 209, 93, 0.12);
}

.storage-item {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(103, 224, 228, 0.24);
  border-radius: 6px;
  background: rgba(28, 39, 49, 0.86);
  color: #e9fbff;
  text-align: left;
}

.storage-item strong {
  color: #fff;
  font-size: 13px;
}

.stack-count {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  margin-left: 7px;
  padding: 1px 7px;
  border: 1px solid rgba(255, 209, 93, 0.58);
  border-radius: 999px;
  color: var(--yellow);
  font-size: 11px;
  line-height: 1;
  background: rgba(255, 209, 93, 0.12);
  box-shadow: 0 0 10px rgba(255, 209, 93, 0.12);
}

.storage-item span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.storage-item b {
  color: var(--yellow);
  font-size: 11px;
}

.storage-item.danger {
  border-color: rgba(255, 74, 93, 0.42);
  background: rgba(55, 18, 26, 0.72);
}

.storage-item.passive {
  cursor: default;
}

.storage-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.storage-actions button {
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
}

.item-detail-choices {
  grid-template-columns: 1fr;
}

.item-detail-card {
  padding: 14px;
  border: 1px solid rgba(103, 224, 228, 0.24);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(103, 224, 228, 0.08), rgba(255, 209, 93, 0.045)),
    rgba(18, 28, 36, 0.92);
}

.item-detail-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.item-detail-card strong {
  color: var(--yellow);
}

.item-detail-actions {
  margin-top: 8px;
}

.trade-choices {
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
}

.trade-list {
  display: grid;
  gap: 6px;
  max-height: 180px;
  overflow: auto;
}

.trade-row,
.trade-money {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(103, 224, 228, 0.16);
  border-radius: 4px;
  background: rgba(7, 14, 22, 0.42);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.trade-row input,
.trade-money input {
  accent-color: var(--yellow);
}

.trade-money input {
  width: 120px;
  margin-left: auto;
  padding: 5px 7px;
  border: 1px solid rgba(103, 224, 228, 0.28);
  border-radius: 4px;
  background: rgba(2, 8, 14, 0.82);
  color: var(--yellow);
}

.empty-note {
  margin: 0;
  padding: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
}

.menu-weapons,
.menu-spirits {
  display: none;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  max-height: 260px;
  overflow: auto;
}

.unit-menu.show-weapons .menu-weapons {
  display: grid;
  grid-column: 1 / -1;
}

.unit-menu.show-spirits .menu-spirits {
  display: grid;
  position: absolute;
  left: calc(100% + 10px);
  top: 0;
  width: 246px;
  padding: 8px;
  border: 1px solid rgba(103, 224, 228, 0.42);
  border-radius: 8px;
  background: rgba(16, 23, 30, 0.96);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.42);
}

.menu-weapons button,
.menu-spirits button {
  color: var(--muted);
  font-size: 13px;
  min-height: 30px;
}

.menu-spirits button {
  display: grid;
  gap: 2px;
}

.menu-spirits button strong {
  color: var(--ink);
}

.menu-spirits button span {
  font-size: 11px;
  color: rgba(197, 211, 221, 0.74);
}

.menu-weapons button.active {
  color: var(--ink);
}

.scout-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(103, 224, 228, 0.32);
  border-radius: 8px;
  background: rgba(20, 31, 42, 0.86);
}

.scout-card img {
  width: 140px;
  max-height: 140px;
  object-fit: contain;
  image-rendering: auto;
}

.scout-card h3,
.scout-card p {
  margin: 0 0 7px;
}

.hp {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 1px;
  z-index: 5;
  height: 5px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.hp i {
  display: block;
  height: 100%;
  background: var(--green);
}

.enemy .hp i {
  background: var(--red);
}

.en {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: -6px;
  z-index: 5;
  height: 4px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.5);
  overflow: hidden;
  box-shadow: 0 0 8px rgba(76, 163, 255, 0.3);
}

.en i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #4ca3ff, #67e0e4);
}

.cooldown-bar {
  position: absolute;
  left: 2px;
  right: 2px;
  top: -10px;
  z-index: 6;
  height: 6px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  overflow: hidden;
  box-shadow: 0 0 10px rgba(255, 209, 93, 0.55);
}

.cooldown-bar i {
  display: block;
  height: 100%;
  width: var(--cooldown-progress, 0%);
  background: linear-gradient(90deg, #ff6868, #ffd15d, #69d883);
  transition: width 80ms linear;
}

.enemy-list,
.battle-intel {
  display: grid;
  gap: 8px;
}

.battle-intel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.battle-intel-card,
.battle-intel-row {
  padding: 9px;
  border: 1px solid rgba(103, 224, 228, 0.18);
  border-radius: 6px;
  background: rgba(7, 13, 20, 0.48);
}

.battle-intel-card {
  display: grid;
  gap: 3px;
}

.battle-intel-card span,
.battle-intel-row span {
  color: var(--muted);
  font-size: 11px;
}

.battle-intel-card strong,
.battle-intel-row strong {
  color: var(--ink);
  font-size: 13px;
}

.battle-intel-row {
  display: grid;
  gap: 4px;
}

.mission-list {
  display: grid;
  gap: 8px;
}

.mission-card {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(103, 224, 228, 0.28);
  border-radius: 6px;
  background: rgba(7, 13, 20, 0.58);
}

.mission-card strong {
  color: #fff5c4;
}

.mission-card span,
.mission-meta {
  color: var(--muted);
  font-size: 12px;
}

.mission-row {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 8px;
  color: rgba(232, 244, 251, 0.78);
  font-size: 13px;
}

.mission-row i {
  width: 9px;
  height: 9px;
  border: 1px solid rgba(255, 209, 93, 0.55);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 209, 93, 0.25);
}

.mission-row.done i {
  border-color: rgba(105, 216, 131, 0.8);
  background: #69d883;
  box-shadow: 0 0 10px rgba(105, 216, 131, 0.55);
}

.mission-row b {
  color: #ffd15d;
  font-size: 12px;
}

.mission-row.done b {
  color: #9effb8;
}

.enemy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
}

.enemy-row strong {
  color: var(--ink);
}

.enemy-row span {
  grid-column: 1 / -1;
  font-size: 12px;
}

.log {
  height: 230px;
  overflow: auto;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.log p {
  margin: 0 0 8px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 10;
  transform: translateX(-50%) translateY(18px);
  opacity: 0;
  padding: 10px 16px;
  border: 1px solid rgba(103, 224, 228, 0.45);
  border-radius: 8px;
  background: rgba(17, 22, 27, 0.95);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.announcement-bar {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 70;
  width: min(760px, calc(100vw - 32px));
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border: 1px solid rgba(255, 213, 95, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(34, 11, 14, 0.92), rgba(25, 33, 48, 0.95), rgba(34, 11, 14, 0.92));
  box-shadow: 0 0 22px rgba(255, 68, 68, 0.22), inset 0 0 18px rgba(255, 213, 95, 0.12);
  color: #ffe892;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 0 10px rgba(255, 213, 95, 0.45);
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(-20px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.announcement-bar.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.announcement-bar.awakening {
  border-color: rgba(105, 240, 255, 0.72);
  color: #bffaff;
  box-shadow: 0 0 24px rgba(67, 214, 255, 0.28), inset 0 0 18px rgba(105, 240, 255, 0.12);
}

.announcement-bar.self-destruct {
  border-color: rgba(255, 91, 91, 0.82);
  color: #ffd0d0;
  box-shadow: 0 0 28px rgba(255, 61, 61, 0.32), inset 0 0 20px rgba(255, 91, 91, 0.16);
}

.story-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(rgba(5, 9, 14, 0.34), rgba(5, 9, 14, 0.62)),
    repeating-linear-gradient(0deg, rgba(103, 224, 228, 0.08) 0 1px, transparent 1px 5px);
}

.story-panel {
  position: relative;
  width: min(760px, calc(100vw - 32px));
  padding: 22px 24px 20px;
  overflow: hidden;
  border: 1px solid rgba(103, 224, 228, 0.56);
  border-radius: 6px;
  background: rgba(8, 15, 24, 0.92);
  box-shadow: 0 0 0 1px rgba(255, 209, 93, 0.14) inset, 0 24px 80px rgba(0, 0, 0, 0.58), 0 0 34px rgba(103, 224, 228, 0.22);
}

.story-dialogue {
  padding: 16px;
}

.dialogue-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 184px 1fr;
  align-items: end;
  gap: 16px;
}

.speaker-right .dialogue-stage {
  grid-template-columns: 1fr 184px;
}

.speaker-right .dialogue-portrait {
  grid-column: 2;
}

.speaker-right .dialogue-box {
  grid-column: 1;
  grid-row: 1;
}

.dialogue-portrait {
  align-self: stretch;
  min-height: 236px;
  overflow: hidden;
  border: 1px solid rgba(103, 224, 228, 0.3);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(103, 224, 228, 0.12), transparent),
    rgba(4, 9, 16, 0.58);
}

.dialogue-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  image-rendering: pixelated;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.36));
}

.dialogue-box {
  min-height: 190px;
  padding: 16px;
  border: 1px solid rgba(255, 209, 93, 0.28);
  border-radius: 6px;
  background: rgba(5, 10, 16, 0.72);
}

.dialogue-line {
  min-height: 74px;
  margin: 0;
  color: rgba(241, 248, 252, 0.94);
  font-size: 18px;
  line-height: 1.8;
}

.story-panel::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 209, 93, 0.26);
  pointer-events: none;
}

.story-scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: -20%;
  height: 26%;
  background: linear-gradient(transparent, rgba(103, 224, 228, 0.12), transparent);
  animation: story-scan 3.2s linear infinite;
  pointer-events: none;
}

.story-kicker {
  margin: 0 0 8px;
  color: #67e0e4;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.story-panel h2 {
  margin: 0 0 14px;
  color: #fff5c4;
  font-size: 26px;
  line-height: 1.1;
}

.story-copy {
  display: grid;
  gap: 10px;
  color: rgba(232, 244, 251, 0.88);
  font-size: 15px;
  line-height: 1.7;
}

.story-copy p {
  margin: 0;
}

.story-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.story-actions button {
  min-width: 96px;
}

.story-primary {
  border-color: rgba(255, 209, 93, 0.72);
  background: linear-gradient(180deg, rgba(255, 209, 93, 0.22), rgba(255, 97, 97, 0.22));
  color: #fff5c4;
}

.story-secondary {
  color: rgba(232, 244, 251, 0.76);
}

@keyframes story-scan {
  to {
    transform: translateY(520%);
  }
}

@media (max-width: 1100px) {
  .panel {
    top: auto;
    bottom: 12px;
    left: 12px;
    width: min(430px, calc(100vw - 24px));
    max-height: min(72vh, calc(100vh - 118px));
  }

  .left-panel-tab {
    top: auto;
    bottom: calc(12px + min(34vh, 260px) - 104px);
    left: min(430px, calc(100vw - 24px));
  }

  .app.left-panel-hidden .left-panel-tab {
    left: 0;
    bottom: 132px;
  }

  .right-panel {
    left: auto;
    right: 12px;
    width: min(380px, calc(100vw - 24px));
  }

  .right-panel-tab {
    right: min(392px, calc(100vw - 12px));
  }

  .app.right-panel-hidden .right-panel-tab {
    right: 0;
  }

  .minimap {
    top: 94px;
    right: min(404px, calc(100vw - 192px));
  }

  .app.right-panel-hidden .minimap {
    right: 12px;
  }

  .map-shell {
    padding-top: 94px;
  }
}

@media (max-width: 680px) {
  .leaderboard-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .leaderboard-stat {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }

  .app {
    padding: 0;
  }

  .login-panel {
    width: min(390px, calc(100vw - 28px));
    padding: 62px 18px 20px;
  }

  .login-billboard {
    top: -38px;
    width: min(258px, calc(100% - 44px));
    height: 72px;
  }

  .login-title {
    font-size: 25px;
  }

  .login-subtitle {
    font-size: 13px;
  }

  .hud {
    align-items: stretch;
    flex-direction: column;
    top: 10px;
    left: 10px;
    right: 10px;
  }

  .hud-actions {
    flex-wrap: wrap;
  }

  .panel,
  .right-panel {
    left: 10px;
    right: 10px;
    width: auto;
    max-height: min(76vh, calc(100vh - 112px));
  }

  .chat-dock {
    right: 10px;
    bottom: 10px;
    width: min(360px, calc(100vw - 20px));
  }

  .weapon-list {
    max-height: 30vh;
  }

  .left-panel-tab {
    bottom: 120px;
    left: calc(100vw - 44px);
  }

  .mecha-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .title-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: min(60vh, 412px);
  }

  .mecha-choice {
    min-height: 132px;
    grid-template-rows: 62px auto auto auto;
  }

  .mecha-choice img {
    max-width: 62px;
    max-height: 64px;
  }

  .dialogue-stage,
  .speaker-right .dialogue-stage {
    grid-template-columns: 112px 1fr;
    gap: 10px;
  }

  .speaker-right .dialogue-portrait,
  .speaker-right .dialogue-box {
    grid-column: auto;
    grid-row: auto;
  }

  .dialogue-portrait {
    min-height: 178px;
  }

  .dialogue-box {
    min-height: 178px;
    padding: 12px;
  }

  .dialogue-line {
    min-height: 82px;
    font-size: 14px;
    line-height: 1.65;
  }

  .app.left-panel-hidden .left-panel-tab {
    left: 0;
    bottom: 120px;
  }

  .right-panel {
    display: none;
  }

  .right-panel-tab {
    display: none;
  }

  .minimap {
    top: 138px;
    right: 10px;
    width: 132px;
    height: 84px;
  }

  .map-shell {
    padding-top: 138px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-gate::after,
  .login-panel,
  .login-panel::before,
  .login-billboard,
  .login-panel-glitch,
  .login-input-wrap:focus-within::before,
  .login-input-wrap:focus-within::after,
  .login-input-wrap:focus-within .weld-spark,
  .login-button {
    animation: none;
  }
}

.login-maintenance {
  max-height: min(58vh, 560px);
  overflow-y: auto;
  padding: 18px;
  border: 1px solid rgba(255, 194, 70, 0.65);
  background: rgba(9, 20, 27, 0.94);
  color: #dcebf1;
}

.login-maintenance .maintenance-kicker {
  color: #ffca55;
  font-size: 12px;
  font-weight: 700;
}

.login-maintenance h2 {
  margin: 7px 0 8px;
  color: #fff3c4;
  font-size: 24px;
}

.login-maintenance > p,
.login-maintenance article p,
.login-maintenance li {
  color: #adc0c8;
  line-height: 1.65;
}

.login-maintenance article {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(93, 220, 232, 0.25);
}

.login-maintenance article strong,
.login-maintenance time {
  color: #69e6ec;
}

.unit.mech-majinRental .unit-main-sprite,
.move-ghost.mech-majinRental .ghost-mech,
.npc.mech-majinRental img {
  image-rendering: auto;
  filter: drop-shadow(0 0 5px rgba(45, 222, 255, 0.7)) drop-shadow(0 3px 3px rgba(0, 0, 0, 0.75));
}

.unit.mech-majinRental::before,
.move-ghost.mech-majinRental::before,
.npc.mech-majinRental::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 52%;
  width: 72%;
  height: 72%;
  border: 2px solid rgba(50, 224, 255, 0.58);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(50, 224, 255, 0.75), inset 0 0 8px rgba(255, 184, 54, 0.25);
  transform: translate(-50%, -50%);
  animation: majin-reactor-ring 1.1s steps(4) infinite;
  pointer-events: none;
}

.unit.mech-majinRental::after,
.move-ghost.mech-majinRental::after,
.npc.mech-majinRental::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 54%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8df7ff;
  box-shadow: -42px -18px 0 #ffbd38, 38px -24px 0 #62eaff, -34px 22px 0 #39d8ff, 44px 18px 0 #ffd66a, -10px -48px 0 #63f4ff, 15px 45px 0 #ff9e2e;
  animation: majin-energy-particles 1.25s steps(5) infinite;
  pointer-events: none;
}

.move-ghost.mech-majinRental::before,
.unit.mech-majinRental.online-moving::before {
  width: 88%;
  height: 54%;
  border-color: rgba(255, 171, 44, 0.8);
  box-shadow: -34px 0 12px rgba(52, 223, 255, 0.8), 34px 0 12px rgba(255, 126, 36, 0.7);
}

.attack-ghost.mech-majinRental.attack-pulse::before,
.attack-ghost.mech-majinRental.attack-railgun::before {
  width: 112%;
  height: 112%;
  border-width: 3px;
  box-shadow: 0 0 20px rgba(73, 230, 255, 0.95), inset 0 0 16px rgba(255, 190, 46, 0.6);
}

.rental-mecha-choices {
  display: block;
}

.rental-mecha-card {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(280px, 1fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(73, 220, 237, 0.55);
  background: #111d25;
}

.rental-mecha-visual {
  position: relative;
  display: grid;
  min-height: 250px;
  place-items: center;
  overflow: hidden;
  background: #081219;
  border: 1px solid rgba(255, 184, 48, 0.38);
}

.rental-mecha-visual img {
  position: relative;
  z-index: 2;
  width: 210px;
  height: 210px;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 0 10px rgba(46, 226, 255, 0.65));
}

.majin-rental-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.majin-rental-particles i {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #70efff;
  box-shadow: 0 0 8px #70efff;
  animation: majin-dialog-particle 1.4s steps(6) infinite;
}

.majin-rental-particles i:nth-child(2) { margin-left: -58px; animation-delay: -0.25s; background: #ffc247; }
.majin-rental-particles i:nth-child(3) { margin-left: 54px; animation-delay: -0.5s; }
.majin-rental-particles i:nth-child(4) { margin-left: -34px; animation-delay: -0.75s; background: #ffc247; }
.majin-rental-particles i:nth-child(5) { margin-left: 31px; animation-delay: -1s; }
.majin-rental-particles i:nth-child(6) { margin-left: 4px; animation-delay: -1.2s; background: #ffc247; }

.rental-mecha-info {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
}

.rental-mecha-info strong { color: #fff2bd; font-size: 22px; }
.rental-mecha-info span { color: #b9cbd2; }
.rental-mecha-info b { color: #ff7070; }
.rental-mecha-info em { color: #65e8f0; font-style: normal; }

.world-boss-card {
  border-color: rgba(255, 74, 74, 0.68);
  background: linear-gradient(135deg, rgba(28, 9, 15, 0.95), rgba(8, 18, 25, 0.98));
}

.world-boss-card .rental-mecha-visual {
  min-height: 280px;
  border-color: rgba(255, 74, 74, 0.52);
  background:
    radial-gradient(circle at 50% 56%, rgba(255, 34, 52, 0.25), transparent 46%),
    #070b10;
}

.world-boss-card .rental-mecha-visual img {
  width: min(100%, 300px);
  height: 240px;
  filter: drop-shadow(0 0 14px rgba(255, 50, 63, 0.62)) drop-shadow(0 8px 0 rgba(0, 0, 0, 0.35));
}

.boss-aura-world {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.boss-aura-world i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 110px;
  height: 110px;
  border: 2px solid rgba(255, 58, 76, 0.36);
  transform: translate(-50%, -50%) rotate(45deg);
  animation: world-boss-aura 2.4s linear infinite;
}

.boss-aura-world i:nth-child(2) { animation-delay: -0.4s; border-color: rgba(87, 255, 151, 0.24); }
.boss-aura-world i:nth-child(3) { animation-delay: -0.8s; width: 150px; height: 150px; }
.boss-aura-world i:nth-child(4) { animation-delay: -1.2s; border-color: rgba(255, 210, 75, 0.2); }
.boss-aura-world i:nth-child(5) { animation-delay: -1.6s; width: 190px; height: 190px; }
.boss-aura-world i:nth-child(6) { animation-delay: -2s; border-color: rgba(87, 255, 151, 0.2); }

@keyframes majin-reactor-ring {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}

@keyframes majin-energy-particles {
  0% { opacity: 0; transform: translate(-50%, 12px) scale(0.7); }
  25% { opacity: 0.9; }
  100% { opacity: 0; transform: translate(-50%, -20px) scale(1.15); }
}

@keyframes majin-dialog-particle {
  0% { opacity: 0; transform: translateY(42px) scale(0.5); }
  25% { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(-82px) scale(1.25); }
}

@keyframes world-boss-aura {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(45deg) scale(0.35); }
  20% { opacity: 0.75; }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(225deg) scale(1.45); }
}

@media (max-width: 720px) {
  .rental-mecha-card { grid-template-columns: 1fr; }
  .rental-mecha-visual { min-height: 190px; }
  .rental-mecha-visual img { width: 170px; height: 170px; }
}

.login-maintenance ul {
  margin: 10px 0;
  padding-left: 20px;
}

.login-maintenance time {
  display: block;
  margin-top: 14px;
  font-size: 13px;
}

.mecha-damage-shell {
  position: absolute;
  left: 50%;
  bottom: var(--sprite-bottom, 2px);
  width: var(--sprite-w, 76px);
  max-height: var(--sprite-max-h, none);
  aspect-ratio: 1;
  transform: translateX(-50%) scaleX(var(--unit-facing, 1));
  mask-position: center;
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  background: repeating-linear-gradient(125deg, transparent 0 15px, rgba(14,16,20,.9) 16px 18px, rgba(220,230,236,.75) 19px, transparent 20px 38px);
}
.unit[data-damage="damaged"] .mecha-damage-shell,
.move-ghost[data-damage="damaged"] .mecha-damage-shell { opacity: .46; }
.unit[data-damage="critical"] .mecha-damage-shell,
.move-ghost[data-damage="critical"] .mecha-damage-shell {
  opacity: .8;
  background: radial-gradient(ellipse at 35% 60%, rgba(8,10,12,.9), transparent 34%), repeating-linear-gradient(125deg, transparent 0 10px, #11181e 12px 15px, #939b9e 16px, transparent 17px 30px);
}
.unit[data-damage="destroyed"] .mecha-damage-shell { opacity: .9; background: #172028; }
.unit.idle:not(.mech-darkAngelGundam):not(.eva-berserk-unit) > .unit-main-sprite,
.unit.idle:not(.mech-darkAngelGundam):not(.eva-berserk-unit) > .mecha-damage-shell {
  animation: mecha-weighted-hover var(--body-period, 2800ms) ease-in-out infinite;
  animation-delay: var(--body-phase, 0ms);
}
.unit.idle > .mecha-ground-shadow { animation-duration: var(--body-period,2800ms); animation-delay: var(--body-phase,0ms); }
.move-ghost .mecha-damage-shell { width:var(--ghost-sprite-w,82px); transform:translateX(-50%) scaleX(var(--facing,1)); }
.move-ghost.face-right { --facing:-1; }
.move-ghost.face-left { --facing:1; }
.move-ghost:not(.attack-ghost):not(.angel-flight) .mecha-damage-shell {transform:translateX(-50%) translateY(-5px) scaleX(var(--facing));rotate:var(--angel-lean);}
.move-ghost.attack-ghost .mecha-damage-shell {transform:translateX(-50%) translateY(-3px) scaleX(var(--facing));}
.move-ghost.angel-flight .mecha-damage-shell {animation:angel-lean-flight var(--flight-duration,720ms) cubic-bezier(.18,.86,.22,1) forwards;transform-origin:center bottom;}
.unit.mech-darkAngelGundam.idle .mecha-damage-shell {animation:dark-angel-hover 2240ms ease-in-out infinite;}
.move-ghost.braking .mecha-damage-shell {rotate:calc(var(--angel-lean) * -0.65);}
.move-ghost.braking:not(.attack-ghost) .ghost-mech { rotate:calc(var(--angel-lean) * -0.65); }
.move-ghost.braking.right .thruster {left:auto;right:-15px;transform:rotate(-90deg);}
.move-ghost.braking.left .thruster {right:auto;left:-15px;transform:rotate(90deg);}
.move-ghost.braking.up .thruster {bottom:auto;top:-38px;transform:translateX(-50%) rotate(180deg);}
.move-ghost.braking.down .thruster {top:auto;bottom:-38px;transform:translateX(-50%);}
.blade-clash {position:absolute;z-index:15;width:1px;height:1px;pointer-events:none;transform:rotate(var(--clash-angle));}
.blade-clash i {position:absolute;width:68px;height:4px;left:-34px;top:-2px;background:#fff6db;box-shadow:0 0 5px #ffc479;transform:rotate(42deg);}
.blade-clash i+i {background:#d9faff;box-shadow:0 0 5px #6cdaff;transform:rotate(-42deg);}
.mecha-skill-cutin {position:absolute;left:16px;bottom:18%;z-index:24;pointer-events:none;display:flex;align-items:center;gap:18px;width:min(360px,calc(100% - 32px));height:122px;padding:12px 22px;background:linear-gradient(90deg,rgba(9,16,22,.94),rgba(9,16,22,.72),transparent);border-left:3px solid #90e5ff;border-bottom:1px solid #789baf;}
.mecha-skill-cutin img {width:95px;height:100px;object-fit:contain;image-rendering:pixelated;}
.mecha-skill-cutin strong {font-size:20px;color:#eafaff;overflow-wrap:anywhere;}
@keyframes mecha-weighted-hover {
  0%,100% {transform:translateX(-50%) translateY(0) scaleX(var(--unit-facing));}
  50% {transform:translateX(-50%) translateY(calc(var(--body-hover,3px) * -1)) scaleX(var(--unit-facing));}
}

.combat-particle-surface {
  position: fixed;
  z-index: 19;
  pointer-events: none;
}

.unit > .unit-main-sprite,
.move-ghost .ghost-mech {
  filter: drop-shadow(-1px -1px 0 rgba(199,232,255,0.22)) drop-shadow(3px 5px 2px rgba(0,0,0,0.38));
}

.move-ghost.attack-ghost .ghost-mech {
  animation: none;
  transform: translateX(-50%) translateY(-3px) scaleX(var(--facing));
  rotate: 0deg;
  transition: rotate 100ms ease-out;
}

.move-ghost.attack-ghost.melee.slash .ghost-mech {
  animation: none;
  rotate: var(--angel-lean);
}

.attack-vfx.beam-vfx .vfx-sprite {
  height: 16px;
  max-height: 16px;
  object-fit: fill;
}
.attack-vfx.beam-vfx.railgun .vfx-sprite { height: 24px; max-height: 24px; }
.attack-vfx.beam-vfx.flame .vfx-sprite { height: 52px; max-height: 52px; }
.attack-vfx.beam-vfx.spread .vfx-sprite { height: 10px; max-height: 10px; }
.attack-vfx { filter: drop-shadow(0 0 5px rgba(103,224,228,0.6)); }

/* Depth stays on the visual layers; grid anchors and hit boxes stay fixed. */
.mecha-ground-shadow {
  position: absolute;
  pointer-events: none;
  left: 50%;
  bottom: -7px;
  width: clamp(32px, 64%, 100px);
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.24) 45%, transparent 72%);
  transform: translateX(-50%);
  z-index: 0;
}

.unit.idle:not(.mech-darkAngelGundam):not(.eva-berserk-unit) > .unit-main-sprite {
  animation: mecha-weighted-hover var(--body-period,2800ms) ease-in-out infinite;
  animation-delay: var(--body-phase,var(--hover-phase,0ms));
}

.unit.idle > .mecha-ground-shadow {
  animation: mecha-depth-shadow var(--body-period,2800ms) ease-in-out infinite;
  animation-delay: var(--body-phase,var(--hover-phase,0ms));
}

.unit.idle::before,
.unit.hero.idle::after {
  display: none;
}

.unit .hp,
.unit .en {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.move-ghost {
  contain: layout style;
  overflow: visible;
}

.move-ghost:not(.attack-ghost):not(.angel-flight) .ghost-mech {
  transform: translateX(-50%) translateY(-5px) scaleX(var(--facing));
  rotate: var(--angel-lean);
  transition: rotate 100ms ease-out;
}

.move-ghost > .mecha-ground-shadow {
  opacity: 0.5;
  transform: translateX(-50%) scale(0.85);
}

@keyframes mecha-depth-hover {
  0%, 100% { transform: translateX(-50%) translateY(0) scaleX(var(--unit-facing)); }
  50% { transform: translateX(-50%) translateY(-5px) scaleX(var(--unit-facing)); }
}

@keyframes mecha-depth-shadow {
  0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.48; transform: translateX(-50%) scale(0.84); }
}

@media (prefers-reduced-motion: reduce) {
  .unit.idle > .unit-main-sprite,
  .unit.idle > .mecha-damage-shell,
  .unit.idle > .mecha-ground-shadow {
    animation: none !important;
  }
  .unit.mech-darkAngelGundam.idle > .unit-main-sprite { opacity: 1; }
  .unit .dark-angel-wing-frame,
  .unit .dark-angel-wing-wake { display: none; }
}

.map[data-map="gColony"] {
  background:
    radial-gradient(circle at 27.08% 43.75%, #18363824 0 390px, #74e6ddbb 392px 404px, #112f3999 406px 428px, transparent 430px),
    radial-gradient(circle at 54.58% 28.47%, #18363824 0 390px, #74e6ddbb 392px 404px, #112f3999 406px 428px, transparent 430px),
    radial-gradient(circle at 54.58% 71.53%, #18363824 0 390px, #74e6ddbb 392px 404px, #112f3999 406px 428px, transparent 430px),
    radial-gradient(circle at 87.08% 78.47%, #4a33192a 0 540px, #ffd374cc 542px 556px, #42351baa 558px 582px, transparent 584px),
    linear-gradient(#10293738,#07172648),
    url("./assets/maps/bg-series-seed.webp") center/100% 100% no-repeat;
}
.map[data-map="gColony"].virtual-map .cell.terrain-p {background-color:transparent;}

/* Anchor Longnight by its body, keeping the long blade outside the unit box. */
.unit.mech-trueLongnight > .unit-main-sprite,
.unit.mech-originalLongnight > .unit-main-sprite,
.unit.mech-trueLongnight > .mecha-damage-shell,
.unit.mech-originalLongnight > .mecha-damage-shell {
  left: calc(50% - 36px * var(--unit-facing, 1));
}
.move-ghost.mech-trueLongnight > .ghost-mech,
.move-ghost.mech-originalLongnight > .ghost-mech,
.move-ghost.mech-trueLongnight > .mecha-damage-shell,
.move-ghost.mech-originalLongnight > .mecha-damage-shell {
  left: calc(50% - 36px * var(--facing, 1));
}
.unit.mech-trueLongnight .selection-ring,
.unit.mech-originalLongnight .selection-ring {
  width: 94px;
  height: 108px;
}

.tianzhan-panel { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.tianzhan-panel > p,.tianzhan-panel > select { grid-column:1/-1; }
.tianzhan-panel > button { white-space:normal; min-height:44px; }
@media(max-width:600px) { .tianzhan-panel {grid-template-columns:1fr;} }

/* v196: readable counting damage labels without changing recovery/MISS. */
.attack-damage-number { min-width: 150px; white-space: nowrap; font-size: 19px; font-variant-numeric: tabular-nums; }

/* True Tianzhan: luminous gold blade sweep, no layout movement. */
.title-tianzhan { position:relative; color:#fff4c7; font-weight:900; letter-spacing:2px; text-shadow:0 0 3px #fff,0 0 8px #ffd447,0 0 16px #ff8e16; border:1px solid #ffe18e; border-radius:7px; padding:3px 12px; background:linear-gradient(110deg,#281140cc,#5e270bcc,#251039cc); box-shadow:0 0 8px #ffc14688,inset 0 0 8px #ffce5844; animation:tianzhan-title-glow 2.2s ease-in-out infinite alternate; }
.title-tianzhan::after {content:"";position:absolute;inset:-3px -9px;pointer-events:none;background:linear-gradient(115deg,transparent 35%,#fff9d888 49%,transparent 62%);background-size:300% 100%;animation:tianzhan-title-sweep 3s ease-in-out infinite;border-radius:8px;}
.title-tianzhan i {font-style:normal;display:inline-block;color:inherit;}
@keyframes tianzhan-title-glow {to{text-shadow:0 0 4px #fff,0 0 12px #ffe672,0 0 23px #ff7a18;box-shadow:0 0 14px #ffc146bb,inset 0 0 10px #ffce5877;}}
@keyframes tianzhan-title-sweep {0%,20%{background-position:100% 0}75%,100%{background-position:0% 0}}
@media(prefers-reduced-motion:reduce){.title-tianzhan,.title-tianzhan::after{animation:none}}

.unit-title.title-tianzhan { position:absolute; }

.tianzhan-casting > .unit-main-sprite,.tianzhan-casting > .mecha-damage-shell{visibility:hidden!important}
.tianzhan-thunder-frames{position:absolute;bottom:-8px;width:180px;height:180px;background-size:360px 360px;background-repeat:no-repeat;pointer-events:none;z-index:7;}
.tianzhan-sky-thunder{position:absolute;width:180px;height:320px;z-index:20;pointer-events:none;transform:translateX(-50%);transform-origin:top center;}
.tianzhan-sky-thunder svg{width:100%;height:100%;overflow:visible;fill:none;stroke-linejoin:round;stroke-linecap:round;}
.thunder-halo{stroke:#58bfff;stroke-width:16;filter:blur(5px);opacity:.9}
.thunder-core{stroke:#fff5bc;stroke-width:5;filter:drop-shadow(0 0 5px #ffe35d)}
.thunder-branch{stroke:#94eaff;stroke-width:3}
.tianzhan-sky-thunder ellipse{stroke:#ffe77c;stroke-width:3;fill:#f4cc4d33;filter:drop-shadow(0 0 7px #60cfff)}

/* v200: stationary blade-raising and sky lightning; cosmetic only. */
.tianzhan-idle-pose{display:none;position:absolute;inset:0;pointer-events:none;z-index:7;}
.unit.mech-trueLongnight.idle:not(.tianzhan-casting):not(.online-moving):not(.enemy-moving) > .tianzhan-idle-pose{display:block;}
.unit.mech-trueLongnight.idle:not(.tianzhan-casting):not(.online-moving):not(.enemy-moving) > .unit-main-sprite,
.unit.mech-trueLongnight.idle:not(.tianzhan-casting):not(.online-moving):not(.enemy-moving) > .mecha-damage-shell{visibility:hidden!important;}
.tianzhan-idle-sheet{position:absolute;left:50%;bottom:-8px;width:180px;height:180px;background-size:360px 360px;background-repeat:no-repeat;transform:translateX(-50%) scaleX(var(--unit-facing,1));animation:tianzhan-idle-frames 8s steps(1,end) infinite;}
@keyframes tianzhan-idle-frames{
  0%,52%,100%{background-position:0 0;transform:translateX(calc(-50% - 20px * var(--unit-facing,1))) scaleX(var(--unit-facing,1));}
  56%,88%{background-position:-180px 0;transform:translateX(calc(-50% - 12px * var(--unit-facing,1))) scaleX(var(--unit-facing,1));}
  60%,84%{background-position:0 -180px;transform:translateX(calc(-50% - 10px * var(--unit-facing,1))) scaleX(var(--unit-facing,1));}
  64%{background-position:-180px -180px;transform:translateX(calc(-50% + 3px * var(--unit-facing,1))) scaleX(var(--unit-facing,1));}
  92%{background-position:0 0;transform:translateX(calc(-50% - 20px * var(--unit-facing,1))) scaleX(var(--unit-facing,1));}
}
.tianzhan-idle-bolt{position:absolute;left:50%;top:-205px;width:90px;height:180px;transform:translateX(-50%);fill:none;stroke:#fff5af;stroke-width:3;stroke-linejoin:round;filter:drop-shadow(0 0 5px #69cfff);opacity:0;animation:tianzhan-idle-lightning 8s linear infinite;}
@keyframes tianzhan-idle-lightning{0%,65%,78%,100%{opacity:0}68%{opacity:1}70%{opacity:.2}72%{opacity:.85}75%{opacity:.1}}
@media(prefers-reduced-motion:reduce){.tianzhan-idle-sheet{animation:none;background-position:0 0;left:calc(50% - 20px * var(--unit-facing,1));}.tianzhan-idle-bolt{animation:none;opacity:0}}

/* Persistent surrounding lightning, independent of the idle sword cycle. */
.tianzhan-lightning-aura{position:absolute;inset:0;z-index:6;pointer-events:none;}
.tianzhan-aura-ray{position:absolute;bottom:-2px;width:70px;height:230px;overflow:visible;fill:none;stroke-linecap:round;stroke-linejoin:round;transform-origin:bottom center;animation:tianzhan-aura-fall 1.65s linear infinite;opacity:0;}
.tianzhan-aura-ray.ray-0{left:-38px;animation-delay:-1.1s;}
.tianzhan-aura-ray.ray-1{right:-38px;animation-delay:-.55s;}
.tianzhan-aura-ray.ray-2{left:calc(50% - 35px);bottom:8px;height:260px;animation-delay:0s;z-index:-1;}
.aura-ray-glow{stroke:#6cbfff;stroke-width:7;opacity:.35;}
.aura-ray-core{stroke:#fff1aa;stroke-width:1.8;}
.aura-ray-branch{stroke:#a7e8ff;stroke-width:1;opacity:.8;}
.tianzhan-aura-ray ellipse{stroke:#83dcff;stroke-width:1.5;fill:#80dfff16;}
@keyframes tianzhan-aura-fall{0%{opacity:0;transform:scaleY(.3)}8%{opacity:.85;transform:scaleY(1)}16%{opacity:.28}23%{opacity:.8}38%{opacity:.25}52%,100%{opacity:0;transform:scaleY(1)}}
@media(prefers-reduced-motion:reduce){.tianzhan-aura-ray{animation:none;opacity:.2;}}

/* Float the pose wrapper, keeping frame registration and facing independent. */
.unit.idle > .tianzhan-idle-pose{animation:tianzhan-pose-hover var(--body-period,2800ms) ease-in-out infinite;animation-delay:var(--body-phase,var(--hover-phase,0ms));}
@keyframes tianzhan-pose-hover{0%,100%{transform:translateY(0)}50%{transform:translateY(calc(var(--body-hover,4px) * -1))}}
@media(prefers-reduced-motion:reduce){.unit.idle > .tianzhan-idle-pose{animation:none;transform:none}}

.fleet-panel{display:grid;gap:12px;width:100%;}.fleet-panel p{margin:0;line-height:1.6}.fleet-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.fleet-card{padding:12px;border:1px solid #416a85;border-radius:10px;background:#102535}.fleet-card img{width:100%;height:72px;object-fit:contain}.fleet-card h3{font-size:16px;color:#dfecff}.fleet-card button{width:100%;margin-top:8px}.fleet-next{font-size:12px;color:#a7c8d4}.fleet-sun img{filter:sepia(.6) saturate(1.7)}.fleet-shade img{filter:hue-rotate(55deg)}.fleet-status{color:#8ce5ff}.fleet-call{padding:12px}.npc.fleet-dock-npc{width:240px!important;height:86px!important;z-index:8}.npc.fleet-dock-npc>img{width:240px!important;max-height:86px!important;object-fit:contain}.fleet-dock-npc .npc-name{font-size:15px;color:#fff0ac;white-space:nowrap}#menuSupportBtn{grid-column:1 / -1}@media(max-width:700px){.fleet-cards{grid-template-columns:1fr}.fleet-card img{height:56px}}

/* Consistent five-action grid: two pairs, one centered equal-size support button. */
.unit-menu > button{width:100%;min-width:0;height:36px;min-height:36px;padding:0 8px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;}
#menuMoveBtn{grid-column:1;grid-row:1}#menuAttackBtn{grid-column:2;grid-row:1}
#menuSpiritBtn{grid-column:1;grid-row:2}#menuRecoverBtn{grid-column:2;grid-row:2}
#menuSupportBtn{grid-column:1 / -1;grid-row:3;justify-self:center;width:calc((100% - 6px) / 2)}
.unit-menu > .menu-weapons,.unit-menu > .menu-spirits{grid-row:4;grid-column:1 / -1}

.npc.fleet-dock-npc,.npc.fleet-dock-npc > img,.npc.fleet-dock-npc .npc-name{pointer-events:auto;cursor:pointer;}

/* Align each fleet card by content row, including wrapped effects and upgrades. */
.fleet-card{display:grid;grid-template-rows:72px minmax(38px,auto) minmax(52px,auto) 1fr auto auto;align-content:start;gap:8px;}
.fleet-card > img{grid-row:1;height:72px;}
.fleet-card > h3{grid-row:2;margin:0;align-self:center;}
.fleet-card > p:not(.fleet-next){grid-row:3;}
.fleet-card > .fleet-next{grid-row:4;}
.fleet-card > button{grid-row:5;margin-top:0;min-height:40px;}
.fleet-card > button + button{grid-row:6;}
@media(max-width:700px){.fleet-card{grid-template-rows:56px auto auto auto auto auto;}.fleet-card > img{height:56px;}}

/* Flame Tower: static arena art and lightweight UI; no per-frame game loops. */
.map[data-map="flameTower"] {
  background-color:#21151b;
  background-image:radial-gradient(ellipse at 50% 50%,transparent 25%,rgba(97,22,8,.7) 95%), repeating-linear-gradient(0deg,transparent 0 77px,rgba(245,122,38,.12) 78px 80px), repeating-linear-gradient(90deg,#251b23 0 77px,#44302b 78px 80px);
  background-size:100% 100%,80px 80px,80px 80px;
  border-color:#bd682c;
  box-shadow:inset 0 0 100px #d4491633,0 24px 80px #0008;
}
.map[data-map="flameTower"] .cell:not(.selected):not(.move-range):not(.attack-range) { background-color:transparent; }
.map[data-map="flameTower"] .cell::before { opacity:.08; }
.map[data-map="flameTower"] .unit.enemy img { filter:drop-shadow(0 0 7px #e86a3180); }
.npc.flame-tower-npc,.npc.flame-tower-npc img,.npc.flame-tower-npc .npc-name {pointer-events:auto;cursor:pointer;}
.npc.flame-tower-npc img {filter:drop-shadow(0 0 12px #ff8e3466);}
.npc.flame-tower-npc .npc-name {border-color:#d18b46;color:#ffe3aa;background:#2d180df2;}
.flame-tower-dialog {display:flex!important;flex-direction:column;gap:14px;max-width:860px;}
.flame-tower-dialog h3 {margin:0 0 8px;color:#ffe1aa;font-size:17px;}
.flame-tower-dialog p {margin:7px 0;line-height:1.65;}
.flame-tower-hero {display:grid;grid-template-columns:115px 1fr;gap:20px;align-items:center;padding:18px 22px;border:1px solid #aa6639;border-radius:12px;background:radial-gradient(ellipse at 10% 60%,#7b321b66,transparent 60%),linear-gradient(120deg,#251c1a,#131e29);}
.flame-tower-hero img {width:110px;height:148px;object-fit:contain;}
.flame-eyebrow {display:block;color:#e5aa6f;font-size:12px;letter-spacing:1px;margin-bottom:5px;}
.flame-record {display:flex;align-items:baseline;gap:10px;color:#c6b9a7;}
.flame-record strong {font-size:42px;line-height:1.15;color:#ffd08b;font-variant-numeric:tabular-nums;}
.flame-reward-card,.flame-challenge-card,.flame-boss-section {padding:16px 18px;border:1px solid #584c42;border-radius:10px;background:#15212bcc;}
.flame-reward-card {border-color:#8d6843;}
.flame-reward-card>div:first-child>p {font-size:12px;color:#aaaeb4;}
.flame-reward-totals {display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0;}
.flame-reward-totals>span {padding:12px;background:#09121a99;border:1px solid #74604366;border-radius:7px;display:flex;justify-content:space-between;gap:10px;align-items:center;}
.flame-reward-totals b {font-size:22px;color:#ffd599;font-variant-numeric:tabular-nums;}
.flame-tower-dialog button {min-height:40px;margin:0;border:1px solid #956439;border-radius:7px;background:linear-gradient(#714726,#4b3022);color:#ffebcf;padding:9px 16px;cursor:pointer;}
.flame-tower-dialog button:disabled {opacity:.45;cursor:default;}
.flame-tower-dialog button:not(:disabled):hover {border-color:#ffd196;background:#805333;}
.flame-reward-card>button {width:100%;}
.flame-reward-pending {color:#edc087;font-size:13px;}
.flame-fineprint,.flame-rules {font-size:12px;color:#b2bcc4;}
.flame-reward-result {padding:10px 12px;border-left:3px solid #80c19f;background:#18322c;color:#c4efda;font-size:13px;}
.flame-challenge-heading {display:flex;justify-content:space-between;gap:12px;align-items:baseline;}
.flame-challenge-heading>span {font-size:12px;color:#b6bdc4;}
.flame-challenge-card label {font-size:13px;margin-right:12px;}
.flame-challenge-card select {max-width:100%;min-height:38px;border:1px solid #76604d;border-radius:5px;padding:6px 10px;background:#0e1922;color:#ecdfc8;}
.flame-floor-preview {display:grid;grid-template-columns:1fr 1fr;gap:8px 18px;margin:14px 0;color:#c0cbd5;font-size:13px;}
.flame-floor-preview b {color:#f4dab1;}
.flame-action-row {display:flex;gap:8px;flex-wrap:wrap;}
.flame-action-row button {flex:1;}
.flame-boss-grid {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;}
.flame-boss-tile {display:flex;flex-direction:column;gap:7px;padding:11px 8px;background:#111921;border:1px solid #384450;border-radius:6px;min-height:78px;}
.flame-boss-tile>span {color:#e2a05e;font-size:12px;font-variant-numeric:tabular-nums;}
.flame-boss-tile strong {font-size:13px;color:#d1d8dc;}
.flame-boss-tile small {font-size:11px;color:#758794;margin-top:auto;}
.flame-boss-tile.cleared {border-color:#517a65;background:#192b26;}
.flame-boss-tile.cleared small {color:#8acaad;}
.flame-rules {padding:8px 3px;line-height:1.7;}
.flame-rules summary {cursor:pointer;color:#ddbc92;}
.flame-tower-hud {position:fixed;z-index:7;top:auto;bottom:24px;left:50%;transform:translateX(-50%);width:min(460px,calc(100% - 130px));padding:12px 14px;border:1px solid #aa6c34;border-radius:10px;background:#161b22f2;box-shadow:0 5px 20px #0006;pointer-events:auto;}
.flame-tower-hud[hidden] {display:none;}
.flame-tower-hud>div {display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px;}
.flame-tower-hud .flame-eyebrow {flex-basis:100%;margin:0;}
.flame-tower-hud strong {font-size:19px;color:#ffd190;}
.flame-tower-hud div>span:last-child {font-size:12px;color:#b9c9cc;}
.flame-tower-hud nav {display:flex;gap:7px;margin-top:8px;}
.flame-tower-hud button {flex:1;min-height:32px;padding:5px 8px;color:#ffdfb5;border:1px solid #805732;border-radius:5px;background:#553720;cursor:pointer;font-size:12px;}
.flame-tower-hud button:disabled {opacity:.4;cursor:default;}
@media(max-width:650px) {
 .flame-tower-hero {grid-template-columns:75px 1fr;gap:12px;padding:14px;}
 .flame-tower-hero img {width:75px;height:110px;}
 .flame-tower-hero h3 {font-size:16px;}
 .flame-tower-hero p {font-size:12px;}
 .flame-boss-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
 .flame-reward-totals {gap:6px;}
 .flame-reward-totals>span {padding:9px;font-size:12px;flex-direction:column;align-items:flex-start;}
 .flame-tower-hud {width:calc(100% - 24px);left:50%;bottom:64px;transform:translateX(-50%);padding:8px;}
 .flame-tower-hud strong {font-size:16px;}
 .flame-challenge-heading {display:block;}
 .flame-floor-preview {grid-template-columns:1fr;}
}

/* Inferno SSSR collection */
.card-SSSR{border-color:#ffd18a!important;background:linear-gradient(135deg,#402337,#201c31 55%,#57361d)!important;box-shadow:inset 0 0 18px #e4a34520,0 0 12px #d28b3426;}
.card-SSSR .card-quality{color:#ffe5aa;border-color:#efbc6a;text-shadow:0 0 8px #ffae59;}
.inferno-card-thumb{width:78px;height:104px;object-fit:cover;border:1px solid #e4b465;border-radius:7px;grid-column:1;grid-row:1;}
.card-item.card-SSSR{grid-template-columns:78px minmax(0,1fr) auto;gap:12px;}
.card-item.card-SSSR .equipment-choice-main{grid-column:2;grid-row:1;}
.card-item.card-SSSR .card-quality{grid-column:3;grid-row:1;}
.card-item.card-SSSR .storage-actions{grid-column:1/-1;}
.inferno-card-detail-art{display:block;width:min(300px,100%);max-height:420px;object-fit:cover;margin:0 auto 18px;border-radius:12px;border:2px solid #e6b86c;box-shadow:0 0 24px #e8993d38;}
.inferno-reward-panel{padding:18px;border:1px solid #b08b52;border-radius:12px;background:#201b27;}
.inferno-card-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.inferno-preview{overflow:hidden;border:1px solid #dcb16f;border-radius:10px;display:flex;flex-direction:column;}
.inferno-preview img{width:100%;aspect-ratio:3/4;object-fit:cover;}
.inferno-preview b,.inferno-preview span,.inferno-preview p{padding:0 10px;}
.inferno-preview b{color:#ffe1a1;font-size:14px;margin-top:10px;}.inferno-preview span{color:#c6c1d3;font-size:12px;margin-top:5px;}.inferno-preview p{font-size:12px;line-height:1.6;}
.inferno-last-drop{color:#ffe1a1;}
@media(max-width:700px){.inferno-card-gallery{grid-template-columns:repeat(2,minmax(0,1fr));}.card-item.card-SSSR{grid-template-columns:64px minmax(0,1fr);}.inferno-card-thumb{width:64px;height:86px;}.card-item.card-SSSR .card-quality{grid-column:2;grid-row:2;justify-self:start;}}

.flame-tower-dialog{max-height:68vh;overflow:auto;overscroll-behavior:contain;padding-right:5px;}



.map-shell:has(#mechaDialog:not([hidden])){z-index:90;}

.npc.encyclopedia-npc,.npc.encyclopedia-npc img,.npc.encyclopedia-npc .npc-name{pointer-events:auto;cursor:pointer;}
.encyclopedia-npc .npc-name{border-color:#78dbef;color:#c1f4ff;}
.encyclopedia-dialog{display:flex;flex-direction:column;gap:12px;max-height:72vh;overflow:hidden;}
.encyclopedia-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;}
.encyclopedia-dialog button{border:1px solid #486c82;border-radius:6px;color:#ddecf5;background:#243746;padding:9px 12px;cursor:pointer;min-height:38px;}
.encyclopedia-dialog button.active{background:#17556a;border-color:#76deec;color:#fff;}
.encyclopedia-dialog button:disabled{opacity:.4;cursor:default;}
.encyclopedia-toolbar{display:grid;grid-template-columns:2fr 1fr 1.25fr;gap:10px;align-items:end;}
.encyclopedia-toolbar label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#b6d5e1;min-width:0;}
.encyclopedia-toolbar input[type=search],.encyclopedia-toolbar select{box-sizing:border-box;width:100%;min-width:0;height:36px;background:#10222e;color:#e5f6fc;border:1px solid #527c90;border-radius:5px;padding:5px 8px;}
.encyclopedia-toolbar .encyclopedia-owned{grid-column:1/-1;flex-direction:row;align-items:center;}
.encyclopedia-owned input{width:16px;height:16px;}
.encyclopedia-note{font-size:12px;color:#99b8c7;margin:0;line-height:1.6;}
.encyclopedia-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;overflow:auto;min-height:0;overscroll-behavior:contain;padding-right:5px;}
.encyclopedia-entry{min-width:0;border:1px solid #395b70;border-radius:9px;padding:14px;background:linear-gradient(130deg,#152e3d,#13212c);color:#dcebf0;overflow-wrap:anywhere;}
.encyclopedia-entry h3{font-size:16px;color:#eefaff;margin:0 0 9px;}
.encyclopedia-entry p{font-size:12px;line-height:1.65;margin:9px 0;}
.encyclopedia-entry b{display:block;color:#ebd9a8;font-size:13px;line-height:1.7;}
.encyclopedia-badge{display:inline-block;border:1px solid #516471;border-radius:4px;font-size:11px;padding:2px 7px;color:#9ab1c0;}
.encyclopedia-badge.owned{color:#acedd1;border-color:#4d997d;background:#173f35;}
.encyclopedia-mecha-art{height:136px;background:radial-gradient(ellipse,#38546955,transparent 70%);display:flex;justify-content:center;align-items:center;margin-bottom:12px;}
.encyclopedia-mecha-art img{max-width:100%;max-height:132px;object-fit:contain;image-rendering:pixelated;}
.encyclopedia-card-art{display:block;width:100%;max-height:250px;object-fit:cover;object-position:50% 30%;border-radius:6px;margin-bottom:12px;}
.encyclopedia-entry summary{font-size:12px;color:#8cdbe9;cursor:pointer;margin-top:10px;}
.encyclopedia-set-mark{font-size:11px;color:#bce4fa;}
.encyclopedia-set-entry{grid-column:1/-1;}
.encyclopedia-set-parts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0;}
.encyclopedia-set-parts section{padding:10px;background:#07172170;border-radius:6px;}
.encyclopedia-set-parts h4{margin:0;color:#8ad2e7;font-size:13px;}
.encyclopedia-set-parts small{display:block;margin-top:4px;color:#9cb7c5;}
.encyclopedia-set-parts em{color:#ecd9a0;font-style:normal;}
.encyclopedia-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:#bdd6e3;flex-shrink:0;}
.encyclopedia-empty{grid-column:1/-1;color:#b8cbd4;padding:24px;text-align:center;}
@media(max-width:700px){.encyclopedia-tabs{gap:5px;}.encyclopedia-tabs button{padding:7px 2px;font-size:12px;}.encyclopedia-toolbar{grid-template-columns:1fr 1fr;}.encyclopedia-toolbar label:first-child{grid-column:1/-1;}.encyclopedia-results{grid-template-columns:1fr;}.encyclopedia-set-parts{grid-template-columns:1fr;}.encyclopedia-dialog{max-height:72vh;}.encyclopedia-pagination button{padding:6px 8px;}}

/* Shared illustrations, rarity-specific frames. */
.card-N{--card-edge:#8b9bab;}.card-R{--card-edge:#68b8ee;}.card-SR{--card-edge:#b997f5;}.card-SSR{--card-edge:#f0ba5b;}.card-UR{--card-edge:#fc829b;}.card-SSSR{--card-edge:#ffe4a1;}
.card-item,.card-detail-card,.encyclopedia-entry[class*="card-"]{border-color:var(--card-edge,#527080);}
.card-item:has(.inferno-card-thumb){grid-template-columns:78px minmax(0,1fr) auto;gap:12px;}
.card-item:has(.inferno-card-thumb) .equipment-choice-main{grid-column:2;grid-row:1;}
.card-item:has(.inferno-card-thumb) .card-quality{grid-column:3;grid-row:1;color:var(--card-edge);}
.card-item:has(.inferno-card-thumb) .storage-actions{grid-column:1/-1;}
.inferno-card-thumb,.inferno-card-detail-art,.encyclopedia-card-art{border:2px solid var(--card-edge,#e4b465);box-sizing:border-box;}
.encyclopedia-card-art{height:240px;object-fit:contain;object-position:center;background:#07141d;}
.inferno-card-detail-art{object-fit:contain;background:#091522;}
@media(max-width:700px){.card-item:has(.inferno-card-thumb){grid-template-columns:64px minmax(0,1fr);}.card-item:has(.inferno-card-thumb) .card-quality{grid-column:2;grid-row:2;justify-self:start;}}

.fleet-feedback:not([hidden]){padding:10px 12px;border:1px solid #429b9c;border-radius:6px;background:#102f34;color:#aefff0}.fleet-feedback.is-error{border-color:#c97568;background:#382325;color:#ffd1c6}

/* SP resource visibility */
.sp-gauge{grid-column:1/-1;height:8px;border-radius:5px;background:#201a32;overflow:hidden;margin:-3px 0 6px}.sp-gauge i{display:block;height:100%;width:var(--sp-fill,100%);background:linear-gradient(90deg,#845ce5,#e6baff);transition:width .35s ease}
.unit .sp{position:absolute;left:7px;right:7px;bottom:-13px;height:4px;z-index:5;border-radius:99px;background:#241c35;overflow:hidden;box-shadow:0 0 5px #bc8bfc66;pointer-events:none}.unit .sp i{display:block;height:100%;background:linear-gradient(90deg,#9c66ed,#e5b4ff);transition:width .3s ease}
.spirit-menu-summary{padding:8px;color:#ead5ff;background:#251d37;border-radius:5px;grid-column:1/-1}.unit-menu.show-spirits #menuSpirits{max-height:55vh;overflow-y:auto}
.map-shell:has(.unit-menu.show-spirits:not([hidden])){z-index:90}.unit-menu.show-spirits{left:50%!important;top:50%!important;transform:translate(-50%,-50%);width:min(520px,calc(100vw - 28px));box-sizing:border-box;z-index:100}.unit-menu.show-spirits::before{display:none}.unit-menu.show-spirits .menu-spirits{position:static;width:auto;grid-template-columns:1fr 1fr;box-shadow:none}.spirit-close{grid-column:1/-1;color:#e4c7ff!important}.unit-menu.show-spirits .menu-spirits button{padding:8px;white-space:normal}@media(max-width:500px){.unit-menu.show-spirits .menu-spirits{grid-template-columns:1fr}}
.unit-menu.show-spirits .menu-spirits{grid-auto-rows:max-content;align-content:start}.unit-menu.show-spirits .menu-spirits button[data-spirit]{height:auto;min-height:86px;align-content:start}.unit-menu.show-spirits .menu-spirits .spirit-close{min-height:36px}

.spirit-categories{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.spirit-categories button{font-size:12px!important;min-width:0;padding:8px 3px!important}.spirit-categories button[aria-pressed="true"]{background:#51406c;color:#f3dbff;border-color:#c492ef}.unit-menu.show-spirits{max-height:calc(100dvh - 24px);overflow-y:auto}

/* v222: independent, compact two-line spirit list. */
.unit-menu.show-spirits{width:min(400px,calc(100vw - 24px));padding:8px;display:block;overflow:hidden}
.unit-menu.show-spirits[hidden]{display:none}
.unit-menu.show-spirits>button,.unit-menu.show-spirits>#menuWeapons{display:none!important}
.unit-menu.show-spirits #menuSpirits{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;max-height:min(520px,calc(100dvh - 48px));padding:0;border:0;overflow-y:auto;scrollbar-width:thin}
.spirit-menu-heading{display:flex;align-items:center;gap:10px;height:30px;color:#ead5ff}
.spirit-menu-heading>strong{font-size:15px}.spirit-menu-heading>span{margin-left:auto;font-size:12px;font-weight:700}
.unit-menu.show-spirits .menu-spirits .spirit-close{display:block;width:28px;height:28px;min-height:28px;padding:0;line-height:24px;font-size:20px}
.spirit-core-note{font-size:11px;color:#a9a0bb;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0 0 2px}
.unit-menu.show-spirits .spirit-categories{gap:4px;margin-bottom:2px}
.unit-menu.show-spirits .spirit-categories button{display:block;min-height:28px;height:28px;padding:4px 2px!important;font-size:11px!important}
.unit-menu.show-spirits .menu-spirits button[data-spirit]{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:18px 17px;gap:1px;min-height:48px;height:48px;padding:5px 8px;text-align:left;border-radius:4px;overflow:hidden}
.unit-menu.show-spirits .menu-spirits .spirit-row-top{display:flex;align-items:center;gap:8px;min-width:0;line-height:18px}
.unit-menu.show-spirits .menu-spirits .spirit-row-top strong{font-size:13px;white-space:nowrap}
.unit-menu.show-spirits .menu-spirits .spirit-row-cost{font-size:11px;color:#d5c2ed;white-space:nowrap}
.unit-menu.show-spirits .menu-spirits .spirit-row-status{margin-left:auto;font-size:10px;white-space:nowrap}
.unit-menu.show-spirits .menu-spirits .spirit-row-desc{display:block;font-size:11px;line-height:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.hero-buff-strip{position:absolute;left:50%;transform:translateX(-50%);display:flex;flex-wrap:wrap;justify-content:center;gap:4px;width:196px;z-index:55;pointer-events:none}
.hero-buff-strip button{position:relative;display:grid;place-items:center;box-sizing:border-box;width:28px;height:28px;min-width:28px;min-height:28px;padding:4px;border:1px solid var(--buff-color);border-radius:6px;background:#101b29f5;color:var(--buff-color);box-shadow:0 0 7px color-mix(in srgb,var(--buff-color) 35%,transparent);pointer-events:auto;cursor:pointer;touch-action:manipulation}
.hero-buff-strip button:hover,.hero-buff-strip button:focus-visible,.hero-buff-strip button[aria-expanded="true"]{outline:2px solid #f4f7ff;outline-offset:2px;background:#273a50}
.hero-buff-strip svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.buff-icon-count{position:absolute;right:-3px;bottom:-4px;min-width:12px;padding:0 2px;border-radius:4px;background:#101522;color:white;font-size:10px;font-weight:900;line-height:13px;text-align:center;pointer-events:none}
.buff-icon-count:empty{display:none}.buff-expiring .buff-icon-count{background:#9c3039;color:#fff3d7}.hero-buff-strip .buff-expiring{border-color:#ff8a7d}
.hero-buff-details{position:fixed;z-index:20000;width:min(260px,calc(100vw - 16px));box-sizing:border-box;padding:12px;border:1px solid var(--buff-color,#a6d6ff);border-radius:8px;background:#101923fa;color:#e9f3ff;box-shadow:0 8px 30px #0009;font-size:12px;line-height:1.6;pointer-events:auto}
.buff-detail-name{display:block;padding-right:28px;font-size:14px;color:var(--buff-color)}.buff-detail-desc{margin:7px 0}.buff-detail-time{display:block;color:#ffdf98}.buff-detail-source{display:block;margin-top:4px;color:#93a7be}
.hero-buff-details .buff-detail-close{position:absolute;top:5px;right:6px;width:26px;height:26px;min-height:26px;padding:0;line-height:24px;font-size:19px;color:#c8d5e3;background:transparent;border:0;cursor:pointer}

.refined-move-trail{position:absolute;left:0;top:0;z-index:9;pointer-events:none;filter:drop-shadow(0 0 4px #81dcff);will-change:opacity}.refined-move-trail img{pointer-events:none;image-rendering:pixelated}@media(prefers-reduced-motion:reduce){.refined-move-trail{display:none}}

.hero-buff-details{max-height:min(420px,calc(100dvh - 24px));overflow-y:auto}.buff-detail-desc{overflow-wrap:anywhere}

/* Compact buff rows directly below the SP gauge. */
.hero-buff-strip{top:calc(100% + 17px);bottom:auto;left:50%;width:118px;display:grid;grid-template-columns:repeat(6,18px);justify-content:start;gap:2px;transform:translateX(-50%)}
.hero-buff-strip button{width:18px;height:18px;min-width:18px;min-height:18px;padding:2px;border-radius:3px;box-shadow:none}
.hero-buff-strip svg{width:13px;height:13px;stroke-width:2}
.hero-buff-strip button:hover,.hero-buff-strip button:focus-visible,.hero-buff-strip button[aria-expanded="true"]{outline-width:1px;outline-offset:0}
.hero-buff-strip .buff-icon-count{right:-1px;bottom:-1px;min-width:8px;padding:0 1px;border-radius:2px;font-size:8px;line-height:9px}

.pilot-dialog-content{display:block!important;width:100%;max-height:68vh;overflow-y:auto;overscroll-behavior:contain;padding-right:4px}.pilot-tabs{display:flex;gap:8px;margin:12px 0}.pilot-tabs button{flex:1}.pilot-tabs [aria-pressed=true]{border-color:#e4c678;color:#ffe6a1}.pilot-feedback{color:#8fe4ee;min-height:1.4em}.pilot-help{font-size:12px;color:#aab9c7;line-height:1.7}.pilot-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.pilot-card-game{min-width:0;border:1px solid #3e596d;border-radius:10px;overflow:hidden;background:#12232e;display:flex;flex-direction:column}.pilot-portrait{width:100%;height:235px;object-fit:cover;object-position:center 20%}.pilot-card-body{padding:12px;display:flex;flex-direction:column;gap:8px;flex:1}.pilot-card-body h3,.pilot-card-body p{margin:0}.pilot-card-body small{color:#d7c18b}.pilot-card-body p{font-size:12px;line-height:1.6}.pilot-card-body details{font-size:12px}.pilot-card-body summary{cursor:pointer;color:#9ddfeb}.pilot-card-body ul{padding:0;list-style:none}.pilot-card-body li{padding:6px 0;border-bottom:1px solid #ffffff12}.pilot-card-body li span{display:block;color:#b8c5d1;line-height:1.6}.pilot-skill-locked{opacity:.55}.pilot-passive{padding:9px;background:#10202d;border-left:2px solid #e4c678;flex:1}.pilot-passive strong{font-size:13px;color:#ffe6a1}.pilot-passive q{display:block;font-size:12px;color:#a8c7da;margin-top:6px}.pilot-card-actions{display:grid;gap:6px;margin-top:auto}.pilot-card-actions button{min-height:36px;font-size:12px;width:100%}.pilot-recruiter-npc img{image-rendering:auto}.npc.pilot-recruiter-npc,.npc.pilot-recruiter-npc img,.npc.pilot-recruiter-npc .npc-name{pointer-events:auto;cursor:pointer}.pilot-cutin{position:fixed;left:0;top:36%;z-index:2500;display:flex;align-items:center;width:min(390px,90vw);height:132px;background:linear-gradient(100deg,#071a2bf5,#162c3ef0);border-top:1px solid #e4c678;border-bottom:1px solid #e4c678;box-shadow:0 8px 40px #0008;pointer-events:none;animation:pilot-slide 3s ease-in-out forwards;overflow:hidden}.pilot-cutin img{width:118px;height:132px;object-fit:cover;object-position:center 18%;flex-shrink:0}.pilot-cutin>div{padding:12px 15px}.pilot-cutin small{display:block;color:#ffe6a1;font-size:11px}.pilot-cutin strong{display:block;font-size:19px;color:white;margin:5px 0}.pilot-cutin p{font-size:13px;line-height:1.6;color:#dcecf5;margin:0}@keyframes pilot-slide{0%{transform:translateX(-105%);opacity:0}12%,82%{transform:translateX(0);opacity:1}100%{transform:translateX(-105%);opacity:0}}@media(max-width:720px){.pilot-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.pilot-portrait{height:190px}.pilot-card-body{padding:9px}}@media(max-width:440px){.pilot-cards{grid-template-columns:1fr}.pilot-portrait{height:240px}}@media(prefers-reduced-motion:reduce){.pilot-cutin{animation:none}}

/* Three equally sized resource shortcuts. */
.resource-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.resource-actions button{min-width:0;padding:9px 7px}.resource-actions strong{font-size:12px;white-space:nowrap}.resource-actions span{font-size:10px;overflow-wrap:anywhere}

/* UC0083 map10: four CSS-only impacts, no timers/network/per-enemy particles. */
.map[data-map="ucStardust"] {
  background: linear-gradient(#10182518,#1c0d2625), url("./assets/uc0083-v236/map.webp") top left / 2560px 2560px repeat;
}
.map[data-map="ucStardust"].virtual-map .cell.terrain-p {background-color:transparent;}
.uc-bombardment {display:none;position:fixed;inset:94px 0 0;z-index:3;overflow:hidden;pointer-events:none;contain:strict;}
.map-shell[data-scene="ucStardust"] .uc-bombardment {display:block;}
.map-shell[data-scene="ucStardust"] .scene-weather {display:none;}
.uc-bombardment i {position:absolute;left:24%;top:58%;width:1px;height:1px;--cycle:7.4s;--delay:-1.4s;}
.uc-bombardment i:nth-child(2){left:67%;top:38%;--cycle:8.1s;--delay:-4.2s;}
.uc-bombardment i:nth-child(3){left:47%;top:83%;--cycle:9.2s;--delay:-6.8s;}
.uc-bombardment i:nth-child(4){left:86%;top:69%;--cycle:8.6s;--delay:-2.6s;}
.uc-bombardment i::before {content:"";position:absolute;left:-4px;bottom:0;width:8px;height:43px;border-radius:60% 60% 30% 30%;background:linear-gradient(#ffbd42,#ff752baa 25%,#77818e 27%,#29313c 78%,#d6d8d4);box-shadow:0 -12px 15px #ffac4266;transform-origin:50% 100%;opacity:0;animation:uc-shell-fall var(--cycle) linear var(--delay) infinite;}
.uc-bombardment i::after {content:"";position:absolute;left:-62px;top:-42px;width:124px;height:84px;border-radius:50%;background:radial-gradient(ellipse,#fff4aa 0 9%,#ffbd51 13%,#ff7125ab 30%,#49403b80 49%,transparent 69%);box-shadow:inset 0 0 8px #ffaa6680;opacity:0;animation:uc-shell-impact var(--cycle) ease-out var(--delay) infinite;}
@keyframes uc-shell-fall {0%{opacity:0;transform:translate(-130px,-460px) rotate(-16deg)}2%{opacity:1}18%{opacity:1;transform:translate(0,0) rotate(-16deg)}19%,100%{opacity:0;transform:translate(0,0) rotate(-16deg)}}
@keyframes uc-shell-impact {0%,17%{opacity:0;transform:scale(.1)}19%{opacity:.92;transform:scale(.45)}24%{opacity:.65;transform:scale(1.1)}36%{opacity:0;transform:scale(1.65)}100%{opacity:0;transform:scale(1.65)}}
.map[data-map="ucStardust"] .unit.hero::before,
.map[data-map="ucStardust"] .unit.online-player::before {
  content:"";display:block;position:absolute;left:50%;bottom:1px;z-index:0;width:82px;height:27px;
  border:2px dashed #cd8affaa;border-radius:50%;pointer-events:none;
  background:radial-gradient(ellipse,#a447e22b,transparent 70%);box-shadow:0 0 10px #a447e244,inset 0 0 9px #bd76ff44;
  animation:uc-suppression-ring 2.8s ease-in-out infinite;
}
@keyframes uc-suppression-ring {0%,100%{opacity:.48;transform:translateX(-50%) scale(.88)}50%{opacity:.9;transform:translateX(-50%) scale(1.08)}}
@media(prefers-reduced-motion:reduce){.uc-bombardment{display:none!important}.map[data-map="ucStardust"] .unit.hero::before,.map[data-map="ucStardust"] .unit.online-player::before{animation:none;transform:translateX(-50%);opacity:.8}}

.unit.guard-unit .enemy-name{background:#53280d;color:#ffe7a2;border:1px solid #ffb347;box-shadow:0 0 9px #ffa94080;font-weight:900;}
.g9-guard-list{display:grid;gap:6px;margin:10px 0;padding:10px;border:1px solid #9c7039;border-radius:7px;background:#211b14;color:#ffe4af;font-size:12px;}
.g9-guard-row{display:grid;gap:3px;padding:5px 0;border-bottom:1px solid #ffffff14;}
.g9-guard-row b{color:#ffbd66}.g9-guard-row.done,.g9-guard-row.done b{color:#8bdca2}.g9-guard-list small{line-height:1.5;color:#c9bda6;}

.toast{width:max-content;max-width:min(560px,calc(100vw - 32px));box-sizing:border-box;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;}

.gp02-nuclear-impact{position:absolute;width:0;height:0;z-index:35;pointer-events:none;}
.gp02-nuclear-impact i{position:absolute;left:-90px;top:-48px;width:180px;height:96px;border:3px solid #ffd87c;border-radius:50%;background:radial-gradient(ellipse,#fff5bdbb,#ff872b66 35%,transparent 70%);animation:gp02-shock 1.5s ease-out forwards;}
.gp02-nuclear-impact b{position:absolute;left:-58px;top:-132px;width:116px;height:128px;background:radial-gradient(ellipse at 50% 25%,#ffe6a6 0 17%,#f59a37 26%,#865246aa 39%,transparent 42%),radial-gradient(ellipse at 50% 69%,#edb261 0 12%,#925332aa 22%,transparent 25%);animation:gp02-cloud 1.7s ease-out forwards;}
.gp02-nuclear-impact span{position:absolute;left:-24px;top:-95px;color:#fff2b7;font-size:20px;font-weight:900;text-shadow:0 0 8px #ff5d00;animation:gp02-cloud 1.7s ease-out forwards;}
@keyframes gp02-shock{0%{opacity:.9;transform:scale(.2)}60%{opacity:.6}100%{opacity:0;transform:scale(2.1)}}
@keyframes gp02-cloud{0%{opacity:0;transform:translateY(30px) scale(.4)}20%{opacity:.95}100%{opacity:0;transform:translateY(-25px) scale(1.5)}}
@media(prefers-reduced-motion:reduce){.gp02-nuclear-impact i,.gp02-nuclear-impact b,.gp02-nuclear-impact span{animation:none;opacity:.5}}

.area-targeting .cell.attack-range{background:rgba(255,95,20,.38)!important;border-color:#ffca62!important;box-shadow:inset 0 0 12px #ff932866;}
#area-attack-confirm{position:fixed;z-index:10000;bottom:24px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:10px;padding:12px;max-width:calc(100vw - 24px);background:#14242ff2;border:1px solid #ffbd57;border-radius:9px;color:#fff;box-shadow:0 4px 24px #0009;}
#area-attack-confirm span{font-size:13px;line-height:1.6;}#area-attack-confirm button{padding:9px;white-space:nowrap;}

/* Keep static NPC hover in phase across viewport rebuilds. */
.npc img{animation-delay:var(--npc-idle-phase,0ms);}

.map[data-map="seedFreedom"]{background:#505a6a url("assets/seed-v249/map.webp") repeat;background-size:2560px auto;}
.map[data-map="seedFreedom"].virtual-map .cell.terrain-p{background-color:transparent;}

/* Manufacturing: distinguish map generations within the same series. */
.mecha-choice.forge-choice[data-craft-map]{grid-template-rows:70px auto auto auto auto;background:linear-gradient(145deg,rgba(var(--craft-map-color),.38),rgba(var(--craft-map-color),.10) 65%),#15212d;box-shadow:inset 0 3px 0 rgba(var(--craft-map-color),.9);}
.forge-choice .craft-map-label{display:inline-block;border:1px solid rgba(var(--craft-map-color),.7);border-radius:4px;padding:2px 7px;background:rgba(7,14,24,.72);color:#f1f5fc;font-size:11px;line-height:1.4;}
.mecha-choice.forge-choice.craftable{border-color:rgba(103,224,228,.8);}.mecha-choice.forge-choice.locked{opacity:.9;}
.forge-choice[data-craft-map="0"]{--craft-map-color:117,132,152;}
.forge-choice[data-craft-map="1"]{--craft-map-color:68,140,198;}
.forge-choice[data-craft-map="2"]{--craft-map-color:55,159,155;}
.forge-choice[data-craft-map="3"]{--craft-map-color:68,148,190;}
.forge-choice[data-craft-map="4"]{--craft-map-color:117,100,185;}
.forge-choice[data-craft-map="5"]{--craft-map-color:155,105,190;}
.forge-choice[data-craft-map="6"]{--craft-map-color:169,86,156;}
.forge-choice[data-craft-map="7"]{--craft-map-color:61,145,188;}
.forge-choice[data-craft-map="8"]{--craft-map-color:177,128,58;}
.forge-choice[data-craft-map="9"]{--craft-map-color:115,139,164;}
.forge-choice[data-craft-map="10"]{--craft-map-color:186,127,60;}
.forge-choice[data-craft-map="11"]{--craft-map-color:146,102,210;}

.npc.lost-temple-npc,.npc.lost-temple-npc > img,.npc.lost-temple-npc .npc-name,.npc.lost-temple-npc .npc-lock{pointer-events:auto;cursor:pointer;}

.item-filter-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 0;margin-bottom:8px}.item-filter-bar label{display:flex;align-items:center;gap:6px}.item-filter-bar select,.item-filter-bar input{min-width:120px;max-width:100%;padding:7px 9px;border:1px solid #496174;border-radius:5px;background:#172936;color:#e7f3fa}.item-filter-bar input{flex:1}.item-filter-count{font-size:12px;color:#a9c4d4}[data-item-filter-tags][hidden],.item-filter-empty[hidden]{display:none!important}

.equipment-category-buttons{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.equipment-category-buttons button{padding:6px 10px;min-height:30px;border:1px solid #496174;border-radius:5px;background:#172936;color:#c4d8e5;font-size:12px}.equipment-category-buttons button[aria-pressed="true"]{border-color:#67e0e4;background:#245364;color:#fff}.item-filter-bar label[hidden]{display:none!important}

/* Remote Tianzhan keeps hover, sword frames and one lightning ray without stacked glow. */
.online-player.mech-trueLongnight .tianzhan-aura-ray { animation-duration:2.4s; }
.online-player.mech-trueLongnight .title-tianzhan { animation:none; text-shadow:0 0 5px #ffc146; box-shadow:0 0 5px #ffc14666; }
.online-player.mech-trueLongnight .title-tianzhan::after { animation:none; display:none; }
@media (prefers-reduced-motion:reduce) {
 .tianzhan-idle-sheet {left:50%;transform:translateX(calc(-50% - 20px * var(--unit-facing,1))) scaleX(var(--unit-facing,1));}
}

.map[data-map="lostTemple"]{background:#142c32 url("assets/temple-v270/battlefield.png") center / 100% 100% no-repeat;}
.map[data-map="lostTemple"] .cell{background:transparent!important;}
.temple-dialog{display:flex!important;flex-direction:column;gap:14px;max-width:920px;}
.temple-banner{display:flex;align-items:center;border:1px solid #8c7842;border-radius:12px;padding:18px;background:linear-gradient(120deg,#11272c,#20312b);gap:14px;}
.temple-banner>div{flex:1;}.temple-banner img{width:170px;height:145px;object-fit:contain;image-rendering:pixelated;}.temple-banner h3{color:#ffe1a0;margin:8px 0;font-size:23px;}.temple-dialog p{line-height:1.6;margin:8px 0;}.temple-banner span,.temple-sigil{color:#e5c777;}
.temple-wallet{display:flex;gap:16px;align-items:center;flex-wrap:wrap;padding:12px;background:#17272f;border-radius:8px;}.temple-wallet button{margin-left:auto;}.temple-rule{color:#b9d3cd;}.temple-warning{color:#ffca80;}
.temple-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}.temple-card{display:flex;flex-direction:column;padding:16px;border:1px solid #b6924b;border-radius:10px;background:linear-gradient(145deg,#23363b,#19242a);}.temple-card h4{color:#ffe1a1;margin:8px 0;}.temple-card small{color:#d6c296;}.temple-sigil{font-size:32px;}.temple-card button{margin-top:auto;width:100%;}.temple-dialog select{padding:8px;color:#eee;background:#24353d;border:1px solid #647c7d;}
@media(max-width:600px){.temple-grid{grid-template-columns:1fr;}.temple-banner img{width:100px;height:100px;}.temple-banner{padding:12px;}}
.temple-dialog{max-height:calc(100dvh - 150px);overflow-y:auto;padding-right:6px;}

.chat-new-badge{display:inline-flex;align-items:center;margin-left:8px;padding:2px 6px;border-radius:5px;background:#f45149;color:#fff;font-size:10px;font-weight:800;line-height:1.3;letter-spacing:.5px;box-shadow:0 0 8px #f4514955}.chat-new-badge[hidden]{display:none}

.temple-contract{margin:12px 0;padding:12px;border:1px solid #9f8847;border-radius:10px;background:#252817}.temple-contract h3{margin:0;color:#ffdc86}.temple-contract p{margin:8px 0;line-height:1.5}.temple-contract small{display:block;margin-top:8px;color:#c8cbb9}

/* Temple has many bosses: retain hover and markers without pulsing shadow paint. */
.map[data-map="lostTemple"] .unit.enemy.boss-unit::before{animation:none;box-shadow:0 0 0 2px rgba(255,70,70,.18);}
.map[data-map="lostTemple"] .unit.enemy.boss-unit img{filter:drop-shadow(0 5px 0 rgba(0,0,0,.34));}

.unit.stationary-ai,.unit.stationary-ai *,.unit.stationary-ai::before,.unit.stationary-ai::after{animation:none!important;}.unit.stationary-ai .tianzhan-idle-sheet,.unit.stationary-ai .tianzhan-thunder-frames{display:none!important;}

.forge-blessing-label{color:#ffcf75!important}.armor-break-mark{position:absolute;bottom:-26px;left:50%;transform:translateX(-50%);font-size:10px;white-space:nowrap;color:#ffe5df;background:#782c2c;border:1px solid #ff9878;border-radius:3px;padding:1px 3px;pointer-events:auto}.armor-break-mark{z-index:8}@keyframes armor-break-expire{to{visibility:hidden}}

.map[data-map="wingEW"]{background:#273747 url("assets/wing-ew-v290/map.png") center/100% 100% no-repeat;}
.map[data-map="wingEW"].virtual-map .cell.terrain-p{background-color:transparent;}

.forge-choice[data-craft-map="12"]{--craft-map-color:125,192,216;}

/* EW manufacturing cards: a visibly separate generation from early W. */
.mecha-choice.forge-choice[data-craft-map="12"] {
  --craft-map-color:104,225,255;
  background:linear-gradient(145deg,#176687 0%,#12445f 60%,#102f48 100%);
  border:2px solid #68dfff;
  box-shadow:inset 0 5px 0 #a1efff,inset 0 0 28px #53cbff24;
}
.mecha-choice.forge-choice[data-craft-map="12"] .craft-map-label {
  background:#a1efff;color:#092c40;border-color:#c8f7ff;font-weight:800;letter-spacing:.4px;
}
.mecha-choice.forge-choice[data-craft-map="12"] strong {color:#fff;}
.mecha-choice.forge-choice[data-craft-map="12"] span {color:#d4f2ff;}
.mecha-choice.forge-choice[data-craft-map="12"].locked {opacity:1;}
.mecha-choice.forge-choice[data-craft-map="12"]:not(:disabled):hover {border-color:#dcfbff;background:linear-gradient(145deg,#207b9e,#185773 60%,#143d57);}

.map[data-map="newtypeTrial"]{background:#071523 url("assets/newtype-v295/trial.svg") center/100% 100% no-repeat;}
.map[data-map="newtypeTrial"] .cell{background-color:transparent!important;}
.newtype-dialog{display:flex!important;flex-direction:column;gap:12px;max-width:780px;line-height:1.6;}
.newtype-dialog p{margin:4px 0;}.nt-banner{border:1px solid #6fdfeb;background:linear-gradient(125deg,#15394c,#17333c);padding:14px;border-radius:9px;}.nt-banner b{color:#9ceef3;font-size:18px;}
.nt-checklist{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;}.nt-checklist span{padding:7px;background:#25333e;border-radius:4px;font-size:12px;}.nt-checklist .done{background:#17433f;color:#9ff9dc;}.nt-note{color:#b2c8d5;font-size:13px;}.nt-vision{display:flex;gap:18px;align-items:center;}.nt-vision img{width:160px;height:180px;object-fit:contain;}.newtype-dialog button{padding:12px;}
@media(max-width:600px){.nt-checklist{grid-template-columns:repeat(2,minmax(0,1fr));}.nt-vision img{width:100px;}}

.map[data-map="satelliteFinal"]{background:#12141b url("assets/emperor-v298/map.png") center/100% 100% no-repeat;}
.map[data-map="satelliteFinal"] .cell{background-color:transparent!important;}

.map .cell.emperor-danger{background-color:rgba(230,35,40,.32)!important;box-shadow:inset 0 0 0 2px #ff5959;}
.map .cell.emperor-danger::after{content:"⚠";position:absolute;inset:0;display:grid;place-items:center;color:#ffc5b0;font-size:22px;pointer-events:none;}
.map .emperor-opening{outline:2px solid #69f7ef;filter:drop-shadow(0 0 8px #4dded3);}
#emperor-phase-banner{position:fixed;z-index:40;bottom:84px;left:50%;transform:translateX(-50%);max-width:min(620px,85vw);padding:10px 16px;border:1px solid #92704b;border-radius:8px;background:#161619ee;color:#ffe4b0;pointer-events:none;text-align:center;font-size:14px;}
#emperor-phase-banner[data-phase="warning"]{border-color:#ff6464;color:#ffc7b8;background:#44121eee;}
#emperor-phase-banner[data-phase="opening"]{border-color:#6cebdc;color:#abfff5;background:#103332ee;}
.emperor-phase-copy{display:block;margin-top:10px;color:#ffce78;}
.map .cell.emperor-detonation{animation:emperor-detonation .8s ease-out;}
@keyframes emperor-detonation{0%{box-shadow:inset 0 0 35px 20px #fff2a2;background-color:#fff2a2;}35%{box-shadow:inset 0 0 24px 12px #fa4c29;}100%{box-shadow:inset 0 0 0 0 transparent;}}
@media(prefers-reduced-motion:reduce){.map .cell.emperor-detonation{animation-duration:.15s;}}

.map[data-map="innerWorld1"]{background:linear-gradient(135deg,#160936b8,#191b6080),url("assets/emperor-v298/map.png") center/100% 100% no-repeat;}
.map[data-map="innerWorld1"] .cell{background-color:transparent!important;}

.map[data-map="innerWorld1"],.map[data-map="innerHunt"],.map[data-map="innerSurvive"]{background:#080e20 url("assets/inner-trials-v301/court.svg") center/100% 100% no-repeat;}
.map[data-map="innerHunt"] .cell,.map[data-map="innerSurvive"] .cell{background-color:transparent!important;}
.map[data-map="innerMaze"]{background:#0d1725;}
.map[data-map="innerMaze"] .terrain-x{background:repeating-linear-gradient(135deg,#24364b,#24364b 10px,#1c2b40 10px,#1c2b40 20px)!important;border:2px solid #56758e;box-shadow:inset 0 0 15px #030b16;}
.map[data-map="innerMaze"] .terrain-p{background:#0c202b!important;}
.inner-maze-goal::after,.inner-maze-start::after{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;font-weight:bold;color:#acffe8;}
.inner-maze-goal::after{content:"终点";background:#26796388;border:3px solid #84f0c9;}
.inner-maze-start::after{content:"起点";border:2px solid #7fbde3;}
#inner-trial-clock{position:fixed;z-index:42;bottom:90px;left:50%;transform:translateX(-50%);padding:10px 16px;background:#102136ee;border:1px solid #72d5ea;border-radius:8px;display:flex;gap:14px;align-items:center;max-width:90vw;color:#d9fcff;}
#inner-trial-clock button{white-space:nowrap;padding:6px 10px;background:#324658;color:white;border:1px solid #859fae;border-radius:4px;}
.inner-reward{padding:12px;margin:8px 0;border:1px solid #5c858e;border-radius:8px;}
.inner-volley{animation:inner-volley .7s ease-out;}
@keyframes inner-volley{from{filter:drop-shadow(0 0 15px #ff9a4d) brightness(2)}to{filter:none}}
@media(prefers-reduced-motion:reduce){.inner-volley{animation-duration:.15s;}}

.inner-volley-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:15;animation:inner-volley-fade .65s ease-out;}.inner-volley-lines path{stroke:#ffaf63;stroke-width:4;fill:none;}@keyframes inner-volley-fade{from{opacity:.9}to{opacity:0}}

.map[data-map="spaceCorridor"]{background:#030a16 url("assets/space-corridor-v305/corridor.svg") center/100% 100% no-repeat;}
.map[data-map="spaceBase"]{background:#08101d url("assets/space-corridor-v305/base.svg") center/100% 100% no-repeat;}
.map[data-map="spaceCorridor"] .cell,.map[data-map="spaceBase"] .cell{background-color:transparent!important;}
.map[data-map="spaceCorridor"] .terrain-x{border-color:transparent;}
.map[data-map="spaceCorridor"] [data-unit^="space-gun-"] .sprite{animation:none!important;}
#space-corridor-hud{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:40;display:flex;align-items:center;gap:12px;padding:10px 16px;max-width:90vw;background:#101d2ef0;border:1px solid #6799bf;border-radius:8px;color:#d6eeff;font-size:13px;box-shadow:0 4px 20px #0008;}
#space-corridor-hud button{white-space:nowrap;padding:6px 12px;}

.map[data-map="xRuins"]{background:#222d37 url("assets/x-ruins-v307/map.png") center/100% 100% no-repeat;}
.map[data-map="xRuins"] .cell{background-color:transparent!important;}
.mecha-choice.forge-choice[data-craft-map="14"]{background:linear-gradient(145deg,#554131,#273b46);border:2px solid #e8c486;box-shadow:inset 0 0 0 1px #8ecdd5;}
.mecha-choice.forge-choice[data-craft-map="14"] .craft-map-label{background:#a37b34;color:#fff;}

.x14-warning{padding:14px;border:1px solid #ec865e;background:#342223;color:#efd8c1;line-height:1.6;grid-column:1/-1}.x14-warning b{color:#ffb78c}.x14-warning p{margin:8px 0}

#portalDialog.x14-portal{position:fixed!important;left:50%!important;top:50%!important;bottom:auto!important;right:auto!important;transform:translate(-50%,-50%)!important;width:min(720px,92vw);max-height:85vh;overflow:auto;z-index:10000;box-shadow:0 0 0 100vmax #0009;}

.map[data-map="waterTower"]{background:#123a4e url("assets/water-v310/map.png") center/100% 100% no-repeat}.map[data-map="waterTower"] .cell{background-color:transparent!important;}#waterTowerHud{border-color:#65deff;background:linear-gradient(120deg,#092d42,#124762);}

.water-tower-dialog .flame-tower-hero {background:linear-gradient(135deg,#103747,#14242c);border-color:#3facc1;}
.water-tower-dialog .flame-reward-card,.water-tower-dialog .flame-challenge-card {border-color:#327b90;}
.water-tower-dialog .flame-eyebrow,.water-tower-dialog h3,.water-tower-dialog .flame-record strong,.water-tower-dialog .flame-reward-totals b,#waterTowerHud strong,#waterTowerHud .flame-eyebrow {color:#9deaff;}
.water-tower-dialog button,#waterTowerHud button {background:#174554;color:#c8f4ff;border-color:#397f93;}

.map[data-map="ucLaplace"]{background:#142a31 url("assets/uc-laplace-v312/map.png") center/100% 100% no-repeat;}
.map[data-map="ucLaplace"] .cell{background-color:transparent!important;}
.mecha-choice.forge-choice[data-craft-map="15"]{background:linear-gradient(135deg,#0d413e,#14283e);border:2px solid #88eacd;}
.mecha-choice.forge-choice[data-craft-map="15"] .craft-map-label{background:#21685c;color:#dffff4;}
.u15-field-overlay{position:absolute;inset:0;pointer-events:none;z-index:3;}
.u15-field-overlay i{position:absolute;border:2px solid #ffcc72;background:#ffc24d33;box-sizing:border-box;}
.u15-field-overlay.active i{border-color:#fa75c6;background:#b62f8544;}
#u15FieldHud{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:34;border:1px solid #69d6b5;border-radius:8px;background:#0a202bee;color:#d4ffee;padding:10px 16px;font-size:13px;pointer-events:none;max-width:85vw;}
