:root {
  --bg-1: #03111f;
  --bg-2: #071e33;
  --panel: rgba(5, 15, 28, 0.62);
  --line: rgba(120, 208, 255, 0.18);
  --accent: #7fdbff;
  --accent-strong: #b8f3ff;
  --text: #ebf7ff;
  --warning: #ffd47f;
  --hub-opacity: 0.55;
  --hub-blur: 9.6px;
  --hub-blur-soft: 6.9px;
  --hub-blur-strong: 11.6px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  background:
    radial-gradient(circle at top, rgba(94, 188, 255, 0.12), transparent 34%),
    radial-gradient(circle at 20% 80%, rgba(140, 249, 255, 0.08), transparent 28%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.5px),
    radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.65) 0 1px, transparent 1.5px),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.45) 0 1px, transparent 2px),
    radial-gradient(circle at 85% 75%, rgba(127, 219, 255, 0.65) 0 1.5px, transparent 2px);
  background-size: 320px 320px, 420px 420px, 520px 520px, 620px 620px;
}

body::after {
  background:
    linear-gradient(rgba(127, 219, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 219, 255, 0.03) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.game-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow: hidden;
  background: #020812;
}

.boot-screen--hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.boot-screen__background,
.boot-screen__vignette {
  position: absolute;
  inset: 0;
}

.boot-screen__background {
  background:
    linear-gradient(180deg, rgba(2, 8, 18, 0.02), rgba(2, 8, 18, 0.18)),
    url("assets/Interface/Fundo-inicial.png") center center / 100% 100% no-repeat;
  transform: none;
  filter: saturate(1.02);
}

.boot-screen__vignette {
  background:
    radial-gradient(circle at 50% 42%, rgba(127, 219, 255, 0.06), transparent 24%),
    radial-gradient(circle at center, transparent 56%, rgba(2, 8, 18, 0.12) 100%);
}

.boot-preload,
.auth-card {
  position: absolute;
  z-index: 1;
}

.auth-card {
  z-index: 2;
}

.boot-preload {
  left: 50%;
  bottom: 9vh;
  width: min(82vw, 980px);
  padding: 24px 32px 22px;
  text-align: center;
  transform: translateX(-50%);
}

.boot-preload__logo,
.auth-card__logo {
  display: grid;
  place-items: center;
}

.boot-preload__logo img,
.auth-card__logo img {
  display: block;
  max-width: 100%;
  object-fit: contain;
}

.boot-preload__logo img {
  width: min(56vw, 760px);
  filter:
    drop-shadow(0 0 28px rgba(127, 219, 255, 0.12))
    drop-shadow(0 0 58px rgba(127, 219, 255, 0.06));
}

.boot-preload__subtitle,
.boot-preload__hint {
  color: rgba(212, 237, 255, 0.72);
  font-family: Orbitron, Eurostile, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.boot-preload__subtitle {
  margin-top: 2px;
  font-size: 0.9rem;
}

.boot-preload__bar-wrap {
  position: relative;
  margin: 62px auto 18px;
  padding: 0 84px 0 38px;
}

.boot-preload__bar {
  height: 18px;
  overflow: hidden;
  border: 1px solid rgba(127, 219, 255, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(4, 13, 25, 0.96), rgba(7, 23, 40, 0.84));
  box-shadow:
    inset 0 0 18px rgba(127, 219, 255, 0.08),
    0 0 24px rgba(127, 219, 255, 0.08);
}

.boot-preload__fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(84, 205, 255, 0.88), rgba(145, 238, 255, 0.98) 48%, rgba(255, 214, 127, 0.96));
  box-shadow:
    0 0 18px rgba(127, 219, 255, 0.24),
    0 0 30px rgba(255, 214, 127, 0.18);
}

.boot-preload__ship {
  position: absolute;
  left: 38px;
  top: -52px;
  width: 64px;
  height: 64px;
  margin-left: -32px;
  filter:
    drop-shadow(0 0 14px rgba(127, 219, 255, 0.18))
    drop-shadow(0 8px 18px rgba(0, 0, 0, 0.34));
  transition: transform 120ms linear;
}

.boot-preload__ship img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: rotate(90deg);
}

.boot-preload__percent {
  position: absolute;
  right: 0;
  top: 50%;
  min-width: 62px;
  transform: translateY(-50%);
  color: rgba(255, 232, 178, 0.96);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  text-align: right;
  text-shadow: 0 0 14px rgba(255, 214, 127, 0.22);
}

.boot-preload__hint {
  min-height: 1.2em;
  font-size: 0.74rem;
}

.auth-card {
  display: grid;
  gap: 18px;
  left: 50%;
  top: 50%;
  width: min(92vw, 460px);
  padding: 28px;
  border: 1px solid rgba(127, 219, 255, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(4, 14, 27, 0.48), rgba(4, 11, 22, 0.34));
  box-shadow:
    0 18px 56px rgba(0, 0, 0, 0.2),
    inset 0 0 20px rgba(127, 219, 255, 0.04);
  backdrop-filter: blur(9px);
  transform: translate(-50%, -50%);
}

.auth-card--hidden,
.boot-preload--hidden,
.auth-form--hidden {
  display: none !important;
}

.auth-card__header {
  display: grid;
  gap: 8px;
}

.auth-card__eyebrow,
.auth-card__subtitle,
.auth-card__status,
.auth-form__note {
  color: rgba(214, 236, 255, 0.72);
}

.auth-card__eyebrow,
.auth-card__subtitle,
.auth-card__status,
.auth-card__tab,
.auth-form__field span,
.auth-form__submit,
.auth-form__note {
  font-family: Orbitron, Eurostile, sans-serif;
}

.auth-card__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.auth-card__logo img {
  width: min(72vw, 320px);
  filter:
    drop-shadow(0 0 22px rgba(127, 219, 255, 0.12))
    drop-shadow(0 0 46px rgba(127, 219, 255, 0.06));
}

.auth-card__subtitle,
.auth-card__status,
.auth-form__note {
  font-size: 0.74rem;
  line-height: 1.55;
}

.auth-card__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-card__tab,
.auth-form__submit {
  border: 1px solid rgba(127, 219, 255, 0.22);
  border-radius: 14px;
  background: rgba(8, 21, 38, 0.76);
  color: rgba(203, 240, 255, 0.9);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-card__tab {
  padding: 12px 14px;
  cursor: pointer;
}

.auth-card__tab--active {
  border-color: rgba(255, 212, 127, 0.34);
  background: linear-gradient(180deg, rgba(20, 35, 54, 0.92), rgba(11, 24, 41, 0.86));
  color: rgba(255, 234, 182, 0.96);
  box-shadow: 0 0 20px rgba(255, 212, 127, 0.08);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-card__panel {
  padding: 16px;
  border: 1px solid rgba(127, 219, 255, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(5, 16, 31, 0.36), rgba(4, 10, 20, 0.26));
  box-shadow: inset 0 0 18px rgba(127, 219, 255, 0.03);
}

.auth-form__field {
  display: grid;
  gap: 7px;
}

.auth-form__field span {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(205, 235, 255, 0.8);
}

.auth-form__input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(127, 219, 255, 0.18);
  border-radius: 14px;
  background: rgba(2, 10, 20, 0.78);
  color: rgba(233, 246, 255, 0.96);
  font: inherit;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.auth-form__input:focus {
  border-color: rgba(127, 219, 255, 0.42);
  box-shadow: 0 0 18px rgba(127, 219, 255, 0.08);
}

.auth-form__submit {
  padding: 14px 16px;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease;
}

.auth-form__submit:hover,
.auth-card__tab:hover {
  transform: translateY(-1px);
}

.auth-card__status {
  min-height: 1.2em;
}

.auth-card__status--error {
  color: rgba(255, 173, 173, 0.96);
}

.auth-card__status--success {
  color: rgba(184, 243, 199, 0.96);
}

.game-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.space-glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at center, rgba(127, 219, 255, 0.08), transparent 40%),
    radial-gradient(circle at 30% 25%, rgba(0, 191, 255, 0.1), transparent 28%),
    radial-gradient(circle at 70% 75%, rgba(140, 249, 255, 0.08), transparent 26%);
  filter: blur(32px);
  pointer-events: none;
}

.world {
  position: absolute;
  inset: 0;
  transform-origin: top left;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

.map-layer {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.2)),
    url("assets/maps/1-1.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 1px solid rgba(127, 219, 255, 0.1);
  box-shadow:
    inset 0 0 80px rgba(2, 7, 14, 0.85),
    0 0 120px rgba(79, 183, 255, 0.12);
}

.cloud-layer {
  position: absolute;
  z-index: 7;
  background-image: url("assets/maps/1-1nuvenscosmicas.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.34;
  filter:
    blur(0.8px)
    drop-shadow(0 0 36px rgba(115, 218, 255, 0.08))
    saturate(1.06);
  pointer-events: none;
  will-change: transform;
}

.cloud-layer--upper {
  z-index: 8;
  opacity: 0.22;
  filter:
    blur(1.1px)
    drop-shadow(0 0 48px rgba(115, 218, 255, 0.1))
    saturate(1.1);
}

.space-particle-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
}

.space-particle-layer--active {
  opacity: 1;
}

.warp-backdrop-layer {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, calc(var(--warp-backdrop-opacity, 0) * 0.82)),
      rgba(0, 0, 0, calc(var(--warp-backdrop-opacity, 0) * 0.94))
    ),
    radial-gradient(
      circle at center,
      rgba(0, 0, 0, calc(var(--warp-backdrop-opacity, 0) * 0.18)) 0,
      rgba(0, 0, 0, calc(var(--warp-backdrop-opacity, 0) * 0.42)) 38%,
      rgba(0, 0, 0, calc(var(--warp-backdrop-opacity, 0) * 0.88)) 72%,
      rgba(0, 0, 0, var(--warp-backdrop-opacity, 0)) 100%
    );
}

.warp-backdrop-layer--active {
  opacity: 1;
}

.sector-transition {
  position: absolute;
  inset: 0;
  z-index: 185;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(18, 46, 74, 0.18), rgba(2, 7, 14, 0.92)),
    linear-gradient(180deg, rgba(2, 7, 14, 0.86), rgba(2, 7, 14, 0.98));
  backdrop-filter: blur(12px);
}

.sector-transition--sector-1-2 {
  background:
    linear-gradient(180deg, rgba(2, 7, 14, 0.46), rgba(2, 7, 14, 0.78)),
    url("assets/Interface/FundoLoading1.png") center center / cover no-repeat,
    linear-gradient(180deg, rgba(2, 7, 14, 0.86), rgba(2, 7, 14, 0.98));
}

.sector-transition--sector-1-3 {
  background:
    linear-gradient(180deg, rgba(12, 4, 4, 0.42), rgba(8, 2, 2, 0.86)),
    radial-gradient(circle at center, rgba(138, 32, 24, 0.22), rgba(14, 4, 4, 0.9));
}

.sector-transition--hidden {
  display: none;
}

.sector-transition__panel {
  width: min(420px, calc(100vw - 64px));
  padding: 22px 24px;
  border: 1px solid rgba(127, 219, 255, 0.16);
  border-radius: 18px;
  background: rgba(5, 16, 29, 0.68);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.42),
    inset 0 0 28px rgba(127, 219, 255, 0.06);
}

.sector-transition__eyebrow {
  color: rgba(170, 222, 255, 0.78);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.sector-transition__title {
  margin-top: 8px;
  color: rgba(235, 247, 255, 0.96);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sector-transition__subtitle {
  margin-top: 8px;
  color: rgba(214, 234, 255, 0.78);
  font-size: 0.74rem;
  line-height: 1.5;
}

.sector-transition__bar {
  margin-top: 14px;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(6, 18, 30, 0.88);
  border: 1px solid rgba(127, 219, 255, 0.12);
}

.sector-transition__fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(127, 219, 255, 0.8), rgba(165, 245, 255, 0.95));
  box-shadow: 0 0 18px rgba(127, 219, 255, 0.28);
  transition: width 180ms ease;
}

.warp-ship-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 9;
  width: 168px;
  height: 168px;
  margin-left: -84px;
  margin-top: -84px;
  pointer-events: none;
  opacity: 0;
  --warp-field-angle: 0rad;
  --warp-field-charge: 0;
}

.warp-ship-overlay--active {
  opacity: 1;
}

.warp-ship-overlay__float {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
}

.warp-ship-overlay__sprite {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    brightness(1.34)
    saturate(1.18)
    drop-shadow(0 0 28px rgba(124, 232, 255, 0.52))
    drop-shadow(0 0 48px rgba(255, 197, 128, 0.28));
}

.warp-ship-overlay__tail,
.warp-ship-overlay__field,
.warp-ship-overlay__sparks {
  display: none !important;
}

.warp-ship-overlay__tail,
.warp-ship-overlay__field {
  position: absolute;
  opacity: 0;
  transform-origin: center center;
}

.warp-ship-overlay--active .warp-ship-overlay__tail,
.warp-ship-overlay--active .warp-ship-overlay__field {
  opacity: calc(0.12 + var(--warp-field-charge) * 0.88);
}

.warp-ship-overlay__tail {
  left: 50%;
  top: 50%;
  width: calc(110px + var(--warp-field-charge) * 170px);
  height: calc(58px + var(--warp-field-charge) * 44px);
  border-radius: 999px;
  transform:
    translate(-18%, -50%)
    rotate(calc(var(--warp-field-angle) + 3.14159rad))
    skewX(-14deg);
  animation: warpTailFlare 520ms ease-in-out infinite;
}

.warp-ship-overlay__tail--under {
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(255, 166, 86, 0) 0%,
      rgba(255, 166, 86, calc(0.18 + var(--warp-field-charge) * 0.36)) 16%,
      rgba(92, 210, 255, calc(0.22 + var(--warp-field-charge) * 0.42)) 52%,
      rgba(92, 210, 255, calc(0.08 + var(--warp-field-charge) * 0.16)) 76%,
      rgba(92, 210, 255, 0) 100%
    );
  filter: blur(12px);
  mix-blend-mode: screen;
}

.warp-ship-overlay__tail--over {
  z-index: 3;
  width: calc(84px + var(--warp-field-charge) * 132px);
  height: calc(28px + var(--warp-field-charge) * 20px);
  background:
    linear-gradient(
      90deg,
      rgba(236, 248, 255, 0) 0%,
      rgba(236, 248, 255, calc(0.08 + var(--warp-field-charge) * 0.18)) 18%,
      rgba(145, 226, 255, calc(0.12 + var(--warp-field-charge) * 0.2)) 56%,
      rgba(255, 212, 168, calc(0.06 + var(--warp-field-charge) * 0.12)) 82%,
      rgba(255, 212, 168, 0) 100%
    );
  filter: blur(6px);
  mix-blend-mode: screen;
}

.warp-ship-overlay__field--under {
  z-index: 1;
  inset: -20%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 224, 174, calc(0.14 + var(--warp-field-charge) * 0.24)) 0 20%, rgba(255, 224, 174, 0) 46%),
    conic-gradient(
      from calc(var(--warp-field-angle) - 0.6rad),
      rgba(84, 205, 255, 0) 0deg,
      rgba(84, 205, 255, calc(0.16 + var(--warp-field-charge) * 0.22)) 56deg,
      rgba(255, 132, 76, calc(0.18 + var(--warp-field-charge) * 0.28)) 124deg,
      rgba(96, 216, 255, calc(0.16 + var(--warp-field-charge) * 0.24)) 208deg,
      rgba(84, 205, 255, 0) 360deg
    );
  filter:
    blur(10px)
    saturate(1.18);
  mix-blend-mode: screen;
  box-shadow:
    0 0 28px rgba(94, 214, 255, calc(0.12 + var(--warp-field-charge) * 0.22)),
    0 0 42px rgba(255, 136, 76, calc(0.1 + var(--warp-field-charge) * 0.18));
  animation: warpFieldSpin 1200ms linear infinite;
}

.warp-ship-overlay__field--over {
  z-index: 3;
  inset: -12%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(236, 248, 255, calc(0.08 + var(--warp-field-charge) * 0.12)) 0 26%, rgba(236, 248, 255, 0) 48%),
    conic-gradient(
      from calc(var(--warp-field-angle) - 0.32rad),
      rgba(190, 241, 255, 0) 0deg,
      rgba(190, 241, 255, calc(0.08 + var(--warp-field-charge) * 0.14)) 84deg,
      rgba(126, 214, 255, calc(0.1 + var(--warp-field-charge) * 0.12)) 180deg,
      rgba(255, 186, 132, calc(0.08 + var(--warp-field-charge) * 0.1)) 260deg,
      rgba(255, 186, 132, 0) 360deg
    );
  filter: blur(6px);
  mix-blend-mode: screen;
  animation: warpFieldSpinReverse 980ms linear infinite;
}

.warp-ship-overlay__sparks {
  position: absolute;
  inset: -24%;
  z-index: 4;
  pointer-events: none;
}

.warp-ship-overlay__spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: calc(16px + var(--warp-field-charge) * 24px);
  margin-left: -2px;
  margin-top: calc(-8px - var(--warp-field-charge) * 12px);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(242, 250, 255, 0.95), rgba(92, 210, 255, 0.72) 55%, rgba(255, 146, 82, 0));
  box-shadow:
    0 0 8px rgba(118, 224, 255, 0.34),
    0 0 14px rgba(255, 146, 82, 0.18);
  transform-origin: center calc(100% + 18px);
}

.warp-ship-overlay__spark:nth-child(1) {
  transform: rotate(calc(var(--warp-field-angle) + 0.12rad)) translateY(calc(-18px - var(--warp-field-charge) * 26px));
  animation: warpSparkTrail 620ms linear infinite;
}

.warp-ship-overlay__spark:nth-child(2) {
  transform: rotate(calc(var(--warp-field-angle) - 0.18rad)) translateY(calc(-22px - var(--warp-field-charge) * 30px));
  animation: warpSparkTrail 740ms linear infinite 90ms;
}

.warp-ship-overlay__spark:nth-child(3) {
  transform: rotate(calc(var(--warp-field-angle) + 0.44rad)) translateY(calc(-12px - var(--warp-field-charge) * 22px));
  animation: warpSparkTrail 560ms linear infinite 140ms;
}

.warp-ship-overlay__spark:nth-child(4) {
  transform: rotate(calc(var(--warp-field-angle) - 0.46rad)) translateY(calc(-10px - var(--warp-field-charge) * 24px));
  animation: warpSparkTrail 680ms linear infinite 220ms;
}

.warp-ship-overlay__spark:nth-child(5) {
  transform: rotate(calc(var(--warp-field-angle) + 0.82rad)) translateY(calc(-8px - var(--warp-field-charge) * 16px));
  animation: warpSparkTrail 820ms linear infinite 160ms;
}

.warp-ship-overlay__spark:nth-child(6) {
  transform: rotate(calc(var(--warp-field-angle) - 0.88rad)) translateY(calc(-7px - var(--warp-field-charge) * 16px));
  animation: warpSparkTrail 760ms linear infinite 300ms;
}

@keyframes warpFieldSpin {
  from {
    transform: rotate(0deg) scale(0.96);
  }
  to {
    transform: rotate(360deg) scale(1.04);
  }
}

@keyframes warpFieldSpinReverse {
  from {
    transform: rotate(360deg) scale(0.98);
  }
  to {
    transform: rotate(0deg) scale(1.02);
  }
}

@keyframes warpTailFlare {
  0%, 100% {
    opacity: calc(0.14 + var(--warp-field-charge) * 0.74);
    filter: blur(10px);
  }
  50% {
    opacity: calc(0.22 + var(--warp-field-charge) * 0.86);
    filter: blur(14px);
  }
}

@keyframes warpSparkTrail {
  0% {
    opacity: 0;
  }
  20% {
    opacity: calc(0.18 + var(--warp-field-charge) * 0.72);
  }
  100% {
    opacity: 0;
  }
}

body.warp-active .world {
  opacity: 0;
}

body.warp-active #playerEntity {
  display: none !important;
}

body.warp-active .resource-panel,
body.warp-active .status-toast,
body.warp-active .minimap-panel,
body.warp-active .hud-panel,
body.warp-active .utility-bar,
body.warp-active .player-label,
body.warp-active .boarding-prompt,
body.warp-active .asteroid-prompt,
body.warp-active .freighter-prompt,
body.warp-active .tutorial-overlay,
body.warp-active .action-loader,
body.warp-active .scan-panel,
body.warp-active .freighter-market {
  display: none !important;
}

.orbital-map-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 32;
  width: 52px;
  height: 52px;
  margin-left: -26px;
  margin-top: -26px;
  border: 1px solid rgba(127, 219, 255, 0.34);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(184, 238, 255, 0.96), rgba(97, 188, 255, 0.42) 52%, rgba(9, 22, 38, 0.92) 100%);
  box-shadow:
    0 0 22px rgba(127, 219, 255, 0.22),
    inset 0 0 18px rgba(210, 245, 255, 0.16);
  color: rgba(235, 247, 255, 0.98);
  cursor: pointer;
}

.orbital-map-button__icon {
  font-size: 1.18rem;
}

.orbital-map-button--hidden {
  display: none;
}

.solar-map-modal {
  position: absolute;
  inset: 0;
  z-index: 60;
}

.solar-map-modal--hidden {
  display: none;
}

.solar-map-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 7, 14, 0.72);
  backdrop-filter: blur(10px);
}

.solar-map-modal__panel {
  position: absolute;
  inset: 4vh 4vw;
  display: grid;
  place-items: center;
}

.solar-map-modal__header {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 18px;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(127, 219, 255, 0.14);
  border-radius: 16px;
  background: rgba(5, 17, 31, 0.42);
  backdrop-filter: blur(10px);
}

.solar-map-modal__header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.solar-map-modal__title {
  color: var(--accent-strong);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.16em;
}

.solar-map-modal__subtitle {
  margin-top: 6px;
  color: rgba(235, 247, 255, 0.7);
  font-size: 0.82rem;
}

.solar-map-modal__close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(127, 219, 255, 0.22);
  border-radius: 10px;
  background: rgba(9, 22, 38, 0.72);
  color: rgba(235, 247, 255, 0.92);
  cursor: pointer;
}

.solar-map-modal__add {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(127, 219, 255, 0.24);
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 30%, rgba(127, 219, 255, 0.18), transparent 58%),
    rgba(7, 22, 38, 0.78);
  color: rgba(235, 247, 255, 0.96);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.solar-map-modal__canvas {
  position: relative;
  width: min(calc((100vh - 8vh) * 1.4178547009), calc(100vw - 8vw));
  height: min(calc((100vw - 8vw) / 1.4178547009), calc(100vh - 8vh));
  border: 1px solid rgba(127, 219, 255, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(rgba(3, 7, 14, 0.24), rgba(3, 7, 14, 0.38)),
    url("assets/Interface/SistemaSolar-1.png") center / 100% 100% no-repeat,
    rgba(2, 8, 16, 0.94);
  overflow: hidden;
  cursor: default;
  aspect-ratio: 1492 / 1053;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.solar-map-modal__markers {
  position: absolute;
  inset: 0;
}

.solar-map-modal__marker {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 18px;
  min-height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(235, 247, 255, 0.94);
  cursor: pointer;
  touch-action: none;
  user-select: none;
}

.solar-map-modal__marker span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(127, 219, 255, 0.48);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 235, 188, 0.98), rgba(255, 165, 96, 0.84) 42%, rgba(255, 118, 68, 0.18) 70%, rgba(255, 118, 68, 0) 100%);
  box-shadow:
    0 0 12px rgba(127, 219, 255, 0.26),
    0 0 20px rgba(255, 142, 82, 0.24);
  animation: solarMarkerPulse 1.8s ease-in-out infinite;
}

.solar-map-modal__marker strong {
  display: block;
  margin-top: 6px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(4, 11, 20, 0.72);
  font-size: 0.66rem;
  font-weight: 600;
  white-space: nowrap;
}

.solar-map-modal__sidebar {
  position: absolute;
  right: 18px;
  top: 110px;
  bottom: 18px;
  width: 176px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  pointer-events: none;
}

.solar-map-modal__detail,
.solar-map-modal__point,
.solar-map-modal__empty {
  padding: 10px;
  border: 1px solid rgba(127, 219, 255, 0.12);
  border-radius: 12px;
  background: rgba(8, 21, 36, 0.58);
  backdrop-filter: blur(10px);
}

.solar-map-modal__detail,
.solar-map-modal__actions,
.solar-map-modal__export,
.solar-map-modal__action,
.solar-map-modal__enter,
.solar-map-modal__tab {
  pointer-events: auto;
}

.solar-map-modal__point-meta {
  margin-bottom: 6px;
  color: rgba(180, 223, 255, 0.72);
  font-size: 0.58rem;
  letter-spacing: 0.05em;
}

.solar-map-modal__detail-name {
  margin-bottom: 5px;
  color: rgba(235, 247, 255, 0.96);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.solar-map-modal__tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.solar-map-modal__tab {
  min-height: 26px;
  border: 1px solid rgba(127, 219, 255, 0.14);
  border-radius: 9px;
  background: rgba(6, 18, 31, 0.56);
  color: rgba(219, 236, 255, 0.82);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.54rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.solar-map-modal__tab--active {
  border-color: rgba(255, 213, 142, 0.28);
  color: rgba(255, 232, 196, 0.96);
  background: rgba(26, 16, 11, 0.72);
}

.solar-map-modal__tab-content {
  margin-top: 8px;
}

.solar-map-modal__marker--selected span {
  border-color: rgba(102, 255, 168, 0.86);
  background:
    radial-gradient(circle at center, rgba(212, 255, 225, 0.98), rgba(86, 255, 151, 0.88) 42%, rgba(56, 204, 111, 0.22) 70%, rgba(56, 204, 111, 0) 100%);
  box-shadow:
    0 0 22px rgba(102, 255, 168, 0.4),
    0 0 32px rgba(86, 255, 151, 0.28);
  transform: scale(1.14);
}

.solar-map-modal__marker--locked span {
  border-color: rgba(182, 194, 208, 0.32);
  background:
    radial-gradient(circle at center, rgba(216, 225, 234, 0.82), rgba(126, 139, 154, 0.82) 42%, rgba(82, 92, 104, 0.22) 70%, rgba(82, 92, 104, 0) 100%);
  box-shadow:
    0 0 10px rgba(150, 164, 180, 0.14),
    0 0 18px rgba(78, 86, 98, 0.18);
}

.solar-map-modal__marker--locked strong {
  color: rgba(196, 206, 216, 0.88);
}

.solar-map-modal__marker--initial strong::before {
  content: "Inicio";
  display: block;
  margin-bottom: 3px;
  color: rgba(255, 218, 154, 0.92);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
}

.solar-map-modal__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.solar-map-modal__action,
.solar-map-modal__enter {
  width: 100%;
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid rgba(127, 219, 255, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(8, 31, 49, 0.92), rgba(4, 18, 30, 0.92)),
    radial-gradient(circle at top left, rgba(127, 219, 255, 0.1), transparent 42%);
  color: rgba(235, 247, 255, 0.94);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.solar-map-modal__action--danger {
  border-color: rgba(255, 147, 147, 0.22);
  background:
    linear-gradient(180deg, rgba(46, 18, 20, 0.92), rgba(24, 10, 12, 0.92)),
    radial-gradient(circle at top left, rgba(255, 140, 140, 0.08), transparent 42%);
}

.solar-map-modal__action:disabled,
.solar-map-modal__enter:disabled {
  opacity: 0.38;
  cursor: default;
}

.solar-map-modal__editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.orion-upgrade-modal__canvas {
  background:
    linear-gradient(rgba(3, 7, 14, 0.22), rgba(3, 7, 14, 0.38)),
    url("assets/Interface/Hangar.png") center / 100% 100% no-repeat,
    rgba(2, 8, 16, 0.96);
}

.orion-upgrade-modal__right-rail {
  position: absolute;
  top: 92px;
  right: 18px;
  z-index: 2;
  display: grid;
  gap: 5px;
  width: 304px;
}

.orion-upgrade-modal__chip-count {
  position: relative;
  z-index: 0;
  width: 304px;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid rgba(127, 219, 255, 0.14);
  border-radius: 999px;
  background: rgba(8, 21, 36, 0.62);
  color: rgba(218, 236, 255, 0.82);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.orion-upgrade-modal__layout {
  position: absolute;
  inset: 110px 24px 24px 24px;
}

.orion-upgrade-modal__ship-zone {
  position: absolute;
  inset: 0;
}

.orion-upgrade-modal__chips {
  position: absolute;
  left: 18px;
  top: 8px;
  display: grid;
  grid-template-columns: repeat(3, 96px);
  grid-auto-rows: 128px;
  column-gap: 18px;
  row-gap: 12px;
  z-index: 3;
}

.orion-upgrade-modal__ship-stats {
  position: relative;
  z-index: 0;
  width: 304px;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid rgba(127, 219, 255, 0.12);
  border-radius: 12px;
  background: rgba(8, 21, 36, 0.6);
  backdrop-filter: blur(10px);
}

.orion-upgrade-modal__ship-stats-title {
  color: rgba(255, 232, 202, 0.96);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.orion-upgrade-modal__ship-stats-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.orion-upgrade-modal__ship-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 9px;
  background: rgba(4, 12, 20, 0.56);
}

.orion-upgrade-modal__ship-stat-label {
  color: rgba(207, 224, 241, 0.84);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.orion-upgrade-modal__ship-stat-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 232, 202, 0.95);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.orion-upgrade-modal__ship-stat-bonus {
  color: rgba(106, 255, 159, 0.96);
}

.orion-upgrade-modal__chip-card {
  display: grid;
  grid-template-rows: 96px 26px;
  gap: 6px;
  width: 96px;
}

.orion-upgrade-modal__stage {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 380px;
  height: 560px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at center, rgba(127, 219, 255, 0.12), transparent 52%),
    rgba(7, 18, 31, 0.34);
}

.orion-upgrade-modal__stage::after {
  inset: 16px;
}

.orion-upgrade-modal__ship {
  width: 380px;
  height: 380px;
  animation: orionUpgradeShipFloat 4.8s ease-in-out infinite;
}

.orion-upgrade-modal__slot {
  position: relative;
  display: block;
  z-index: 2;
  color: transparent;
  width: 96px;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  border: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background: transparent;
  box-shadow: none;
}

.orion-upgrade-modal__slot::before {
  display: none;
}

.orion-upgrade-modal__slot::after {
  display: none;
}

.orion-upgrade-modal__slot:hover {
  background: transparent;
  box-shadow: none;
}

.orion-upgrade-modal__chip-card--selected .orion-upgrade-modal__slot,
.orion-upgrade-modal__slot:hover {
  outline: 2px solid rgba(255, 213, 142, 0.55);
  outline-offset: 2px;
}

.orion-upgrade-modal__slot:focus-visible {
  outline: 2px solid rgba(255, 213, 142, 0.55);
  outline-offset: 2px;
}

.orion-upgrade-modal__slot-thumb {
  position: absolute;
  inset: 4px 4px 18px 4px;
  width: calc(100% - 8px);
  height: calc(100% - 22px);
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  transform: none;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.3));
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  z-index: 1;
}

.orion-upgrade-modal__slot-count {
  position: absolute;
  right: 6px;
  bottom: 6px;
  left: auto;
  top: auto;
  transform: none;
  min-width: 0;
  padding: 3px 5px;
  border-radius: 999px;
  background: rgba(5, 14, 24, 0.82);
  color: rgba(255, 224, 188, 0.94);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.48rem;
  letter-spacing: 0.06em;
  line-height: 1;
  text-align: center;
  z-index: 2;
}

.orion-upgrade-modal__upgrade-button {
  display: grid;
  place-items: center;
  gap: 1px;
  width: 100%;
  min-height: 26px;
  padding: 3px 6px;
  border: 1px solid rgba(127, 219, 255, 0.16);
  border-radius: 8px;
  background: rgba(5, 14, 24, 0.72);
  color: rgba(255, 236, 204, 0.9);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.44rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.92;
}

.orion-upgrade-modal__upgrade-button strong {
  font-size: 0.48rem;
  letter-spacing: 0.04em;
  color: rgba(127, 219, 255, 0.94);
}

.orion-upgrade-modal__upgrade-button:disabled {
  opacity: 0.92;
  cursor: default;
}

.orion-upgrade-modal__info {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  width: 304px;
  padding: 14px;
  border: 1px solid rgba(127, 219, 255, 0.12);
  border-radius: 12px;
  background: rgba(8, 21, 36, 0.6);
  backdrop-filter: blur(10px);
}

.orion-upgrade-modal__info-chip {
  margin-top: 8px;
  color: rgba(255, 233, 205, 0.96);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.orion-upgrade-modal__info-text {
  margin-top: 8px;
  color: rgba(218, 233, 247, 0.8);
  font-size: 0.7rem;
  line-height: 1.45;
}

.orion-upgrade-modal__info-list {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.orion-upgrade-modal__info-list span {
  display: block;
  padding: 6px 8px;
  border-radius: 9px;
  background: rgba(4, 12, 20, 0.56);
  color: rgba(255, 230, 192, 0.9);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  line-height: 1.35;
}

@keyframes orionUpgradeShipFloat {
  0%,
  100% {
    margin-top: -8px;
    filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.32));
  }

  50% {
    margin-top: 8px;
    filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.36));
  }
}

.solar-map-modal__export {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(127, 219, 255, 0.12);
  border-radius: 10px;
  background: rgba(6, 16, 28, 0.6);
  backdrop-filter: blur(10px);
}

.solar-map-modal__add,
.solar-map-modal__action,
.solar-map-modal__export {
  display: none !important;
}

.solar-map-modal__detail-line {
  margin-top: 6px;
  color: rgba(220, 236, 255, 0.88);
  font-size: 0.64rem;
  line-height: 1.34;
}

.solar-map-modal__detail-line--title {
  color: rgba(235, 247, 255, 0.96);
}

.solar-map-modal__detail-line--enemy {
  color: rgba(255, 170, 170, 0.96);
}

.solar-map-modal__detail-line--resource {
  color: rgba(255, 219, 156, 0.96);
}

.solar-map-modal__detail-line--planet {
  color: rgba(158, 225, 255, 0.96);
}

.solar-map-modal__export--hidden {
  display: none;
}

.solar-map-modal__export-title {
  color: rgba(172, 225, 255, 0.88);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.solar-map-modal__export-textarea {
  width: 100%;
  min-height: 126px;
  padding: 8px;
  border: 1px solid rgba(127, 219, 255, 0.12);
  border-radius: 8px;
  background: rgba(3, 11, 20, 0.82);
  color: rgba(231, 244, 255, 0.94);
  font-size: 0.56rem;
  line-height: 1.45;
  resize: vertical;
}

.solar-map-modal__field {
  display: grid;
  gap: 4px;
}

.solar-map-modal__field--full {
  grid-column: 1 / -1;
}

.solar-map-modal__field span {
  color: rgba(170, 222, 255, 0.88);
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.solar-map-modal__field input,
.solar-map-modal__field textarea {
  width: 100%;
  min-width: 0;
  padding: 6px 7px;
  border: 1px solid rgba(127, 219, 255, 0.12);
  border-radius: 8px;
  background: rgba(3, 12, 22, 0.72);
  color: rgba(234, 245, 255, 0.94);
  font-size: 0.64rem;
  line-height: 1.35;
  resize: vertical;
}

.solar-map-modal__field input:focus,
.solar-map-modal__field textarea:focus {
  outline: none;
  border-color: rgba(127, 219, 255, 0.28);
  box-shadow: 0 0 0 1px rgba(127, 219, 255, 0.12);
}

.solar-map-modal__field--check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  border: 1px solid rgba(127, 219, 255, 0.12);
  border-radius: 8px;
  background: rgba(3, 12, 22, 0.58);
}

.solar-map-modal__field--check input {
  width: 14px;
  height: 14px;
  min-width: 14px;
  padding: 0;
}

.solar-map-modal__field--check span {
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

@keyframes solarMarkerPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.92;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

.space-particle {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(226, 248, 255, 0.98), rgba(138, 225, 255, 0.82));
  box-shadow:
    0 0 8px rgba(148, 230, 255, var(--space-particle-glow, 0.18)),
    0 0 16px rgba(148, 230, 255, calc(var(--space-particle-glow, 0.18) * 0.55));
  transform-origin: center center;
  will-change: transform, opacity, left, top;
}

.asteroid-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.asteroid-layer--below {
  z-index: 2;
}

.asteroid-layer--above {
  z-index: 6;
}

.enemy-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.remote-player-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.salvage-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.mothership-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.civilian-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.mothership-node {
  position: absolute;
  width: 860px;
  height: 860px;
  margin-left: -430px;
  margin-top: -430px;
  will-change: transform;
}

.mothership-node__float {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  will-change: transform;
}

.mothership-node__sprite {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  filter:
    drop-shadow(0 18px 34px rgba(0, 0, 0, 0.28));
  transform-origin: center center;
  will-change: transform;
}

.communication-satellite-node {
  width: 480px;
  height: 480px;
  margin-left: -240px;
  margin-top: -240px;
}

.civilian-asteroid {
  position: absolute;
  will-change: transform;
}

.civilian-asteroid__float {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.civilian-asteroid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  filter:
    drop-shadow(0 10px 16px rgba(0, 0, 0, 0.22))
    drop-shadow(0 0 10px rgba(127, 219, 255, 0.04));
}

.civilian-scrapper {
  position: absolute;
  width: 104px;
  height: 104px;
  margin-left: -52px;
  margin-top: -52px;
  will-change: transform;
}

.civilian-scrapper__float {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  will-change: transform;
}

.civilian-scrapper__sprite {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  filter:
    drop-shadow(0 0 16px rgba(127, 219, 255, 0.1))
    drop-shadow(0 12px 20px rgba(0, 0, 0, 0.26));
  transform-origin: center center;
  will-change: transform;
}

.civilian-scrapper__cargo {
  position: absolute;
  left: 50%;
  top: 62%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  margin-top: -7px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 228, 168, 0.98), rgba(255, 164, 94, 0.42) 62%, rgba(255, 164, 94, 0) 84%);
  box-shadow:
    0 0 10px rgba(255, 204, 120, 0.22),
    0 0 16px rgba(255, 132, 82, 0.12);
  opacity: 0;
  transition: opacity 180ms ease;
}

.civilian-scrapper__beam {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.civilian-scrapper__beam-glow,
.civilian-scrapper__beam-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: left center;
  border-radius: 999px;
  will-change: transform, width;
}

.civilian-scrapper__beam-glow {
  height: 8px;
  background: linear-gradient(90deg, rgba(116, 232, 255, 0.82), rgba(112, 205, 255, 0.38) 34%, rgba(255, 156, 86, 0.3) 66%, rgba(255, 213, 129, 0));
  filter: blur(4px);
}

.civilian-scrapper__beam-core {
  height: 2px;
  background: linear-gradient(90deg, rgba(225, 252, 255, 1), rgba(132, 226, 255, 0.96) 28%, rgba(255, 205, 120, 0.82) 68%, rgba(255, 205, 120, 0));
  box-shadow:
    0 0 8px rgba(140, 232, 255, 0.38),
    0 0 12px rgba(255, 184, 110, 0.22);
}

.civilian-scrapper__beam-impact {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(236, 250, 255, 0.95), rgba(132, 226, 255, 0.54) 44%, rgba(255, 177, 95, 0.18) 72%, rgba(255, 177, 95, 0) 84%);
  box-shadow:
    0 0 12px rgba(132, 226, 255, 0.24),
    0 0 24px rgba(255, 167, 98, 0.18);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.civilian-scrapper--carrying .civilian-scrapper__cargo {
  opacity: 1;
}

.map-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(127, 219, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 219, 255, 0.04) 1px, transparent 1px);
  background-size: 120px 120px;
  mix-blend-mode: screen;
  pointer-events: none;
}

.player-entity {
  position: absolute;
  z-index: 6;
  width: 168px;
  height: 168px;
  margin-left: -84px;
  margin-top: -84px;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

.player-shield-hit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 104px;
  height: 76px;
  margin-left: -52px;
  margin-top: -38px;
  border-radius: 50% 50% 42% 42% / 68% 68% 32% 32%;
  border: 2px solid rgba(120, 255, 182, 0.5);
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06) 34%, transparent 72%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 14px);
  box-shadow:
    0 0 14px rgba(120, 255, 182, 0.22),
    inset 0 0 14px rgba(255, 255, 255, 0.08);
  opacity: 0;
  pointer-events: none;
  clip-path: ellipse(50% 50% at 50% 50%);
  transform: translate(var(--shield-hit-x, 0px), var(--shield-hit-y, 0px)) rotate(var(--shield-hit-rot, 0deg)) scale(0.24);
  transform-origin: center;
}

.player-shield-hit--green {
  border-color: rgba(132, 255, 176, 0.58);
  box-shadow:
    0 0 14px rgba(132, 255, 176, 0.24),
    inset 0 0 14px rgba(225, 255, 238, 0.08);
}

.player-shield-hit--blue {
  border-color: rgba(122, 209, 255, 0.6);
  box-shadow:
    0 0 14px rgba(122, 209, 255, 0.24),
    inset 0 0 14px rgba(232, 247, 255, 0.08);
}

.player-shield-hit--purple {
  border-color: rgba(201, 124, 255, 0.62);
  box-shadow:
    0 0 14px rgba(201, 124, 255, 0.26),
    inset 0 0 14px rgba(250, 231, 255, 0.08);
}

.player-shield-hit--active {
  animation: playerShieldHitPulse 0.34s ease-out forwards;
}

.player-shield-hit--basic {
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04) 34%, transparent 72%);
  box-shadow:
    0 0 10px rgba(120, 255, 182, 0.18),
    inset 0 0 8px rgba(255, 255, 255, 0.06);
}

@keyframes playerShieldHitPulse {
  0% {
    opacity: 0.94;
    transform: translate(var(--shield-hit-x, 0px), var(--shield-hit-y, 0px)) rotate(var(--shield-hit-rot, 0deg)) scale(0.22);
  }
  35% {
    opacity: 0.72;
    transform: translate(var(--shield-hit-x, 0px), var(--shield-hit-y, 0px)) rotate(var(--shield-hit-rot, 0deg)) scale(0.96);
  }
  100% {
    opacity: 0;
    transform: translate(var(--shield-hit-x, 0px), var(--shield-hit-y, 0px)) rotate(var(--shield-hit-rot, 0deg)) scale(1.28);
  }
}

.player-entity--warp {
  z-index: 9;
  filter:
    drop-shadow(0 0 20px rgba(124, 232, 255, 0.42))
    drop-shadow(0 0 36px rgba(255, 197, 128, 0.22));
}

.player-entity--warp .ship-float {
  opacity: 0;
}

.player-entity--warp .ship-sprite {
  filter:
    brightness(1.28)
    saturate(1.14)
    drop-shadow(0 0 24px rgba(124, 232, 255, 0.46))
    drop-shadow(0 0 42px rgba(255, 197, 128, 0.24));
}

.player-entity--inactive {
  opacity: 0.88;
}

.enemy-entity {
  position: absolute;
  width: 144px;
  height: 144px;
  margin-left: -72px;
  margin-top: -72px;
  will-change: transform;
  pointer-events: auto;
}

.enemy-entity--destroyed {
  display: none;
}

.remote-player {
  position: absolute;
  width: 168px;
  height: 168px;
  margin-left: -84px;
  margin-top: -84px;
  will-change: transform;
  pointer-events: auto;
}

.remote-player--targeted .remote-player__target {
  opacity: 1;
}

.remote-player__label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  display: grid;
  gap: 6px;
  justify-items: center;
  pointer-events: none;
}

.remote-player__title {
  padding: 4px 10px;
  border: 1px solid rgba(255, 210, 120, 0.28);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(44, 26, 8, 0.9), rgba(18, 12, 4, 0.8));
  color: rgba(255, 229, 186, 0.94);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.remote-player__title--hidden {
  display: none;
}

.remote-player__name {
  padding: 8px 14px;
  border: 1px solid rgba(127, 219, 255, 0.26);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(7, 20, 36, 0.92), rgba(8, 26, 42, 0.76));
  box-shadow:
    0 0 18px rgba(82, 210, 255, 0.12),
    inset 0 0 14px rgba(127, 219, 255, 0.06);
  color: rgba(214, 241, 255, 0.96);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.remote-player__speed {
  padding: 4px 9px;
  border: 1px solid rgba(127, 219, 255, 0.22);
  border-radius: 10px;
  background: rgba(4, 14, 24, 0.84);
  color: rgba(229, 243, 255, 0.84);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
}

.remote-player__bars {
  display: grid;
  gap: 4px;
  width: 92px;
}

.remote-player__shield,
.remote-player__health {
  overflow: hidden;
  border-radius: 999px;
}

.remote-player__shield {
  height: 6px;
  border: 1px solid rgba(120, 206, 255, 0.22);
  background: rgba(7, 18, 34, 0.82);
}

.remote-player__health {
  height: 7px;
  border: 1px solid rgba(255, 128, 128, 0.18);
  background: rgba(22, 8, 8, 0.82);
}

.remote-player__shield-fill,
.remote-player__health-fill {
  height: 100%;
  border-radius: 999px;
}

.remote-player__shield-fill {
  background: linear-gradient(90deg, rgba(110, 194, 255, 0.94), rgba(170, 241, 255, 0.88));
  box-shadow: 0 0 8px rgba(127, 219, 255, 0.18);
}

.remote-player__health-fill {
  background: linear-gradient(90deg, rgba(255, 107, 107, 0.94), rgba(255, 176, 128, 0.88));
  box-shadow: 0 0 8px rgba(255, 114, 114, 0.16);
}

.remote-player__target {
  position: absolute;
  inset: 14px;
  opacity: 0;
  transition: opacity 140ms ease;
  filter: drop-shadow(0 0 10px rgba(122, 209, 255, 0.22));
}

.remote-player__target::before,
.remote-player__target::after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(122, 209, 255, 0.82);
  border-radius: 50%;
}

.remote-player__target::after {
  inset: 32px;
  border-color: rgba(188, 239, 255, 0.64);
}

.remote-player__float {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  will-change: transform;
}

.remote-player__sprite {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  filter:
    drop-shadow(0 0 16px rgba(127, 219, 255, 0.12))
    drop-shadow(0 10px 20px rgba(0, 0, 0, 0.28));
  transform-origin: center center;
  will-change: transform;
}

.remote-cargo-unit {
  position: absolute;
  z-index: 0;
  width: 112px;
  height: 112px;
  margin-left: -56px;
  margin-top: -56px;
  will-change: transform;
  pointer-events: none;
}

.remote-cargo-unit__float {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  will-change: transform;
}

.remote-cargo-unit__sprite {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  filter:
    drop-shadow(0 0 7px rgba(255, 216, 143, 0.06))
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.16));
  transform-origin: center center;
  will-change: transform;
}

.remote-miner,
.remote-repair {
  position: absolute;
  will-change: transform;
  pointer-events: none;
}

.remote-miner {
  width: 92px;
  height: 92px;
  margin-left: -46px;
  margin-top: -46px;
}

.remote-repair {
  width: 92px;
  height: 92px;
  margin-left: -46px;
  margin-top: -46px;
}

.remote-miner__float,
.remote-repair__float {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  will-change: transform;
}

.remote-miner__sprite,
.remote-repair__sprite {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  filter:
    drop-shadow(0 0 12px rgba(127, 219, 255, 0.1))
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.24));
  transform-origin: center center;
  will-change: transform;
}

.salvage-node {
  position: absolute;
  width: 144px;
  height: 144px;
  margin-left: -72px;
  margin-top: -72px;
  will-change: transform;
  pointer-events: auto;
}

.salvage-node--medium {
  width: 164px;
  height: 164px;
  margin-left: -82px;
  margin-top: -82px;
}

.salvage-node--heavy {
  width: 188px;
  height: 188px;
  margin-left: -94px;
  margin-top: -94px;
}

.salvage-node--collected {
  display: none;
}

.salvage-float {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  will-change: transform;
}

.salvage-sprite {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  filter:
    drop-shadow(0 0 16px rgba(121, 229, 255, 0.18))
    drop-shadow(0 0 30px rgba(255, 184, 102, 0.14))
    drop-shadow(0 14px 24px rgba(0, 0, 0, 0.34));
  transform-origin: center center;
  will-change: transform;
}

.salvage-pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  margin-left: -43px;
  margin-top: -43px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(186, 241, 255, 0.28), rgba(96, 192, 255, 0.12) 42%, rgba(255, 191, 118, 0.08) 66%, rgba(255, 191, 118, 0) 82%);
  opacity: 0.66;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: salvagePulse 2.6s ease-in-out infinite;
}

.salvage-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 6px 12px;
  border: 1px solid rgba(127, 219, 255, 0.24);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(7, 21, 34, 0.92), rgba(8, 16, 24, 0.76));
  color: rgba(225, 242, 255, 0.92);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  box-shadow:
    0 0 16px rgba(122, 209, 255, 0.08),
    inset 0 0 12px rgba(255, 196, 124, 0.05);
}

.lost-cargo-node {
  width: 156px;
  height: 156px;
  margin-left: -78px;
  margin-top: -78px;
}

.lost-cargo-node__pulse {
  width: 94px;
  height: 94px;
  margin-left: -47px;
  margin-top: -47px;
  background:
    radial-gradient(circle at center, rgba(255, 223, 170, 0.24), rgba(127, 219, 255, 0.1) 48%, rgba(127, 219, 255, 0) 78%);
}

.lost-cargo-node__sprite {
  filter:
    drop-shadow(0 0 9px rgba(255, 216, 143, 0.08))
    drop-shadow(0 14px 24px rgba(0, 0, 0, 0.3));
}

.astral-crate-node {
  width: 58px;
  height: 58px;
  margin-left: -29px;
  margin-top: -29px;
}

.astral-crate-node .salvage-label {
  bottom: calc(100% + 6px);
  padding: 3px 8px;
  font-size: 0.48rem;
  letter-spacing: 0.16em;
}

.astral-crate-node__pulse {
  width: 42px;
  height: 42px;
  margin-left: -21px;
  margin-top: -21px;
  background:
    radial-gradient(circle at center, rgba(121, 235, 255, 0.24), rgba(121, 235, 255, 0.08) 52%, rgba(255, 198, 116, 0.06) 74%, transparent 86%);
  animation-duration: 2.4s;
}

.astral-crate-node__sprite {
  filter:
    drop-shadow(0 0 9px rgba(127, 235, 255, 0.34))
    drop-shadow(0 0 16px rgba(255, 201, 122, 0.22))
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.3));
}

.credit-crate-node {
  width: 64px;
  height: 64px;
  margin-left: -32px;
  margin-top: -32px;
}

.credit-crate-node .salvage-label {
  bottom: calc(100% + 6px);
  padding: 3px 8px;
  font-size: 0.46rem;
  letter-spacing: 0.14em;
  border-color: rgba(255, 214, 128, 0.3);
  background: linear-gradient(180deg, rgba(28, 18, 7, 0.92), rgba(14, 10, 5, 0.78));
  color: rgba(255, 233, 184, 0.95);
}

.credit-crate-node__pulse {
  width: 46px;
  height: 46px;
  margin-left: -23px;
  margin-top: -23px;
  background:
    radial-gradient(circle at center, rgba(255, 218, 122, 0.26), rgba(255, 190, 89, 0.12) 50%, rgba(121, 235, 255, 0.06) 76%, transparent 88%);
  animation-duration: 2.8s;
}

.credit-crate-node__sprite {
  filter:
    drop-shadow(0 0 10px rgba(255, 213, 120, 0.3))
    drop-shadow(0 0 18px rgba(255, 175, 92, 0.2))
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.3));
}
}

@keyframes salvagePulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.84);
  }

  50% {
    opacity: 0.78;
    transform: scale(1.12);
  }
}

.enemy-entity--targeted .enemy-target {
  opacity: 1;
}

.enemy-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  display: grid;
  gap: 5px;
  justify-items: center;
  pointer-events: none;
}

.enemy-name {
  padding: 6px 12px;
  border: 1px solid rgba(255, 116, 116, 0.28);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(37, 10, 10, 0.92), rgba(20, 7, 7, 0.76));
  color: rgba(255, 217, 217, 0.92);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(255, 120, 120, 0.24);
}

.enemy-name--boss {
  border-color: rgba(255, 206, 96, 0.42);
  background: linear-gradient(180deg, rgba(64, 28, 8, 0.96), rgba(28, 12, 4, 0.84));
  color: rgba(255, 233, 182, 0.98);
  box-shadow:
    0 0 18px rgba(255, 192, 96, 0.16),
    inset 0 0 12px rgba(255, 192, 96, 0.08);
  text-shadow: 0 0 14px rgba(255, 206, 96, 0.28);
}

.enemy-health {
  width: 88px;
  height: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 116, 116, 0.2);
  border-radius: 999px;
  background: rgba(15, 5, 5, 0.78);
  box-shadow: 0 0 10px rgba(255, 112, 112, 0.08);
}

.enemy-shield {
  width: 88px;
  height: 6px;
  overflow: hidden;
  border: 1px solid rgba(120, 206, 255, 0.24);
  border-radius: 999px;
  background: rgba(5, 14, 26, 0.82);
  box-shadow: 0 0 10px rgba(127, 219, 255, 0.08);
}

.enemy-shield__fill {
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(110, 194, 255, 0.98), rgba(170, 241, 255, 0.94));
  box-shadow: 0 0 12px rgba(127, 219, 255, 0.2);
}

.enemy-health__fill {
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 109, 109, 0.95), rgba(255, 173, 128, 0.95));
  box-shadow: 0 0 12px rgba(255, 116, 116, 0.18);
}

.enemy-health__fill--boss {
  background: linear-gradient(90deg, rgba(255, 196, 92, 0.98), rgba(255, 124, 76, 0.95));
  box-shadow: 0 0 14px rgba(255, 190, 96, 0.26);
}

.enemy-float {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  will-change: transform;
}

.enemy-target {
  position: absolute;
  inset: 12px;
  opacity: 0;
  transition: opacity 140ms ease;
  filter: drop-shadow(0 0 10px rgba(255, 72, 72, 0.2));
}

.enemy-target::before,
.enemy-target::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255, 84, 84, 0.82);
  border-radius: 50%;
}

.enemy-target::after {
  inset: 28px;
  border-color: rgba(255, 154, 110, 0.64);
  animation: targetSpin 2.8s linear infinite;
}

.enemy-target__corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: rgba(255, 92, 92, 0.94);
  border-style: solid;
  border-width: 0;
}

.enemy-target__corner--tl {
  left: 12px;
  top: 12px;
  border-left-width: 2px;
  border-top-width: 2px;
}

.enemy-target__corner--tr {
  right: 12px;
  top: 12px;
  border-right-width: 2px;
  border-top-width: 2px;
}

.enemy-target__corner--bl {
  left: 12px;
  bottom: 12px;
  border-left-width: 2px;
  border-bottom-width: 2px;
}

.enemy-target__corner--br {
  right: 12px;
  bottom: 12px;
  border-right-width: 2px;
  border-bottom-width: 2px;
}

.enemy-target__dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  margin-top: -4px;
  border-radius: 50%;
  background: rgba(255, 214, 214, 0.96);
  box-shadow:
    0 0 10px rgba(255, 84, 84, 0.28),
    0 0 18px rgba(255, 84, 84, 0.16);
}

@keyframes targetSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.enemy-sprite {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  filter:
    drop-shadow(0 0 20px rgba(255, 110, 110, 0.12))
    drop-shadow(0 12px 22px rgba(0, 0, 0, 0.3));
  transform-origin: center center;
  will-change: transform;
}

.asteroid-node {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
}

.asteroid-node__float {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.asteroid-node img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  filter:
    drop-shadow(0 10px 16px rgba(0, 0, 0, 0.24))
    drop-shadow(0 0 12px rgba(127, 219, 255, 0.05));
}

.player-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.player-title {
  padding: 4px 10px;
  border: 1px solid rgba(255, 210, 120, 0.34);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(42, 25, 8, 0.92), rgba(24, 13, 4, 0.84));
  box-shadow:
    0 0 18px rgba(255, 184, 88, 0.16),
    inset 0 0 16px rgba(255, 214, 142, 0.08);
  color: rgba(255, 226, 178, 0.96);
  font-family: Orbitron, Eurostile, "Arial Black", sans-serif;
  font-size: 0.54rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.player-title--hidden {
  display: none;
}

.player-nick {
  padding: 8px 14px;
  border: 1px solid rgba(127, 219, 255, 0.32);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(4, 17, 31, 0.92), rgba(7, 28, 46, 0.78));
  box-shadow:
    0 0 24px rgba(85, 211, 255, 0.16),
    inset 0 0 18px rgba(127, 219, 255, 0.08);
  color: var(--accent-strong);
  font-family: Orbitron, Eurostile, "Arial Black", sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(127, 219, 255, 0.5);
  white-space: nowrap;
}

.speed-chip {
  position: relative;
  align-self: flex-end;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 212, 127, 0.2);
  border-radius: 10px;
  background: rgba(4, 13, 25, 0.82);
  color: rgba(235, 247, 255, 0.78);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  overflow: hidden;
}

.speed-chip strong {
  color: var(--warning);
  font-size: 0.84rem;
  min-width: 2.8ch;
  text-align: right;
  text-shadow: 0 0 10px rgba(255, 212, 127, 0.3);
}

.speed-chip::before,
.speed-chip::after {
  content: "";
  position: absolute;
  inset: -20%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.speed-chip::before {
  background:
    linear-gradient(115deg, transparent 20%, rgba(124, 236, 255, 0.12) 38%, rgba(180, 255, 243, 0.34) 50%, rgba(122, 201, 255, 0.16) 62%, transparent 80%);
  transform: translateX(-100%);
}

.speed-chip::after {
  background:
    radial-gradient(circle at 14% 24%, rgba(168, 241, 255, 0.5), transparent 18%),
    radial-gradient(circle at 78% 30%, rgba(255, 231, 174, 0.42), transparent 16%),
    radial-gradient(circle at 38% 76%, rgba(128, 220, 255, 0.34), transparent 14%);
}

.speed-chip--warp {
  border-color: rgba(138, 232, 255, 0.54);
  background: linear-gradient(180deg, rgba(5, 21, 38, 0.92), rgba(10, 34, 58, 0.86));
  box-shadow:
    0 0 18px rgba(97, 210, 255, 0.18),
    inset 0 0 16px rgba(125, 233, 255, 0.16);
}

.speed-chip--warp::before,
.speed-chip--warp::after {
  opacity: 1;
}

.speed-chip--warp::before {
  animation: warpSpeedCharge 620ms linear infinite;
}

.speed-chip--warp::after {
  animation: warpSpeedPulse 920ms ease-in-out infinite;
}

.speed-chip--warp strong {
  color: rgba(222, 247, 255, 0.98);
  text-shadow:
    0 0 8px rgba(128, 230, 255, 0.32),
    0 0 18px rgba(255, 231, 174, 0.28);
  animation: warpDigitsFlicker 180ms steps(2, end) infinite;
}

@keyframes warpSpeedCharge {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

@keyframes warpSpeedPulse {
  0%, 100% {
    transform: scale(0.98);
    opacity: 0.44;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.86;
  }
}

@keyframes warpDigitsFlicker {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.72;
  }
}

.ship-float {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  will-change: transform;
}

.ship-signal {
  position: absolute;
  right: 26px;
  top: -20px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding: 6px 7px;
  border: 1px solid rgba(127, 219, 255, 0.18);
  border-radius: 12px;
  background: rgba(4, 13, 24, 0.46);
  box-shadow: 0 0 12px rgba(127, 219, 255, 0.1);
  opacity: 0;
  transition: opacity 160ms ease;
}

.ship-signal--active {
  opacity: 1;
}

.ship-signal--medium .ship-signal__bar--3 {
  opacity: 0.22;
}

.ship-signal--low {
  border-color: rgba(255, 120, 120, 0.34);
  background: rgba(35, 10, 10, 0.58);
  box-shadow: 0 0 14px rgba(255, 92, 92, 0.12);
}

.ship-signal--low .ship-signal__dot,
.ship-signal--low .ship-signal__bar {
  background: linear-gradient(180deg, rgba(255, 206, 120, 0.96), rgba(255, 96, 96, 0.8));
  box-shadow: 0 0 8px rgba(255, 96, 96, 0.16);
}

.ship-signal--low .ship-signal__bar--2,
.ship-signal--low .ship-signal__bar--3 {
  opacity: 0.22;
}

.ship-signal__dot {
  width: 5px;
  height: 5px;
  margin-right: 2px;
  border-radius: 50%;
  background: rgba(184, 243, 255, 0.92);
  box-shadow: 0 0 10px rgba(127, 219, 255, 0.3);
}

.ship-signal__bar {
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(184, 243, 255, 0.95), rgba(127, 219, 255, 0.6));
  box-shadow: 0 0 8px rgba(127, 219, 255, 0.18);
}

.ship-signal__bar--1 {
  height: 8px;
}

.ship-signal__bar--2 {
  height: 13px;
}

.ship-signal__bar--3 {
  height: 18px;
}

.ship-sprite {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  filter:
    drop-shadow(0 0 22px rgba(84, 205, 255, 0.18))
    drop-shadow(0 14px 24px rgba(0, 0, 0, 0.28));
  transform-origin: center center;
  will-change: transform;
}

.miner-entity {
  position: absolute;
  z-index: 5;
  width: 92px;
  height: 92px;
  margin-left: -46px;
  margin-top: -46px;
  will-change: transform;
}

.miner-entity--hidden {
  display: none;
}

.miner-float {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  will-change: transform;
}

.miner-sprite {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 14px rgba(127, 219, 255, 0.14))
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.24));
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.repair-drone-entity {
  position: absolute;
  z-index: 7;
  width: 92px;
  height: 92px;
  margin-left: -46px;
  margin-top: -46px;
  will-change: transform;
  pointer-events: none;
}

.repair-drone-entity--hidden {
  display: none;
}

.repair-drone-float {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  will-change: transform;
}

.repair-drone-sprite {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 18px rgba(122, 255, 182, 0.22))
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.26));
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.cargo-unit-entity {
  position: absolute;
  z-index: 6;
  width: 116px;
  height: 116px;
  margin-left: -58px;
  margin-top: -58px;
  will-change: transform;
  pointer-events: none;
}

.cargo-unit-entity--hidden {
  display: none;
}

.cargo-unit-float {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  will-change: transform;
}

.cargo-unit-sprite {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 7px rgba(255, 216, 143, 0.07))
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.mining-layer {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
}

.combat-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.damage-number {
  position: absolute;
  left: 0;
  top: 0;
  min-width: 20px;
  color: #ff4f4f;
  font-family: Orbitron, Eurostile, sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1;
  text-align: center;
  letter-spacing: 0.02em;
  text-shadow:
    0 0 6px rgba(255, 72, 72, 0.34),
    0 1px 0 rgba(74, 8, 8, 0.72);
  opacity: 0;
  will-change: transform, opacity;
}

.damage-number--ultra {
  filter: drop-shadow(0 0 8px rgba(255, 84, 84, 0.18));
}

.damage-number--medium {
  font-size: 0.92rem;
  text-shadow: 0 1px 0 rgba(74, 8, 8, 0.56);
}

.laser-shot {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 50%;
  opacity: 0;
  will-change: transform, opacity;
}

.laser-shot__glow {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 84, 84, 0.04), rgba(255, 84, 84, 0.4), rgba(255, 168, 130, 0.12));
  filter: blur(5px);
}

.laser-shot__core {
  position: absolute;
  left: 0;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 196, 196, 0.34), rgba(255, 76, 76, 0.96), rgba(255, 193, 128, 0.88));
  box-shadow: 0 0 10px rgba(255, 76, 76, 0.34);
  transform: translateY(-50%);
}

.laser-shot__accent {
  position: absolute;
  left: 0;
  top: 50%;
  height: 1px;
  border-radius: 999px;
  transform: translateY(-50%);
}

.laser-shot__particle {
  position: absolute;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  margin-top: -2px;
  border-radius: 50%;
  background: rgba(255, 176, 120, 0.94);
  box-shadow:
    0 0 8px rgba(255, 107, 107, 0.26),
    0 0 12px rgba(255, 196, 140, 0.18);
}

.laser-shot--basic .laser-shot__glow {
  height: 6px;
  filter: blur(2px);
  opacity: 0.42;
}

.laser-shot--basic .laser-shot__particle {
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  margin-top: -2.5px;
  box-shadow: 0 0 6px rgba(255, 236, 183, 0.16);
}

.laser-shot--moss .laser-shot__glow {
  background: linear-gradient(90deg, rgba(84, 122, 66, 0.04), rgba(124, 168, 88, 0.42), rgba(182, 214, 122, 0.14));
}

.laser-shot--moss .laser-shot__core {
  background: linear-gradient(90deg, rgba(208, 233, 184, 0.3), rgba(118, 162, 74, 0.96), rgba(176, 214, 112, 0.88));
  box-shadow: 0 0 10px rgba(120, 160, 82, 0.34);
}

.laser-shot--moss .laser-shot__particle {
  background: rgba(181, 214, 118, 0.94);
  box-shadow:
    0 0 8px rgba(118, 162, 74, 0.28),
    0 0 12px rgba(192, 226, 134, 0.18);
}

.laser-shot--blue .laser-shot__glow {
  background: linear-gradient(90deg, rgba(76, 132, 255, 0.04), rgba(86, 178, 255, 0.42), rgba(138, 224, 255, 0.14));
}

.laser-shot--blue .laser-shot__core {
  background: linear-gradient(90deg, rgba(202, 230, 255, 0.34), rgba(82, 170, 255, 0.96), rgba(122, 226, 255, 0.9));
  box-shadow: 0 0 10px rgba(82, 170, 255, 0.34);
}

.laser-shot--blue .laser-shot__particle {
  background: rgba(145, 222, 255, 0.94);
  box-shadow:
    0 0 8px rgba(82, 170, 255, 0.28),
    0 0 12px rgba(145, 222, 255, 0.18);
}

.laser-shot--purple .laser-shot__glow {
  background: linear-gradient(90deg, rgba(132, 76, 255, 0.04), rgba(178, 92, 255, 0.42), rgba(224, 142, 255, 0.16));
}

.laser-shot--purple .laser-shot__core {
  background: linear-gradient(90deg, rgba(231, 208, 255, 0.34), rgba(166, 78, 255, 0.96), rgba(230, 138, 255, 0.9));
  box-shadow: 0 0 10px rgba(166, 78, 255, 0.34);
}

.laser-shot--purple .laser-shot__particle {
  background: rgba(224, 156, 255, 0.94);
  box-shadow:
    0 0 8px rgba(166, 78, 255, 0.28),
    0 0 12px rgba(224, 156, 255, 0.18);
}

.laser-shot--heavy-red .laser-shot__glow {
  height: 12px;
  background: linear-gradient(90deg, rgba(98, 8, 8, 0.02), rgba(255, 74, 74, 0.52), rgba(255, 166, 120, 0.14));
  filter: blur(4px);
}

.laser-shot--heavy-red .laser-shot__core {
  height: 4px;
  margin-top: -2px;
  background: linear-gradient(90deg, rgba(255, 228, 212, 0.34), rgba(255, 58, 58, 0.96), rgba(255, 144, 108, 0.88));
  box-shadow: 0 0 14px rgba(255, 68, 68, 0.38);
}

.laser-shot--heavy-red .laser-shot__accent {
  background: linear-gradient(90deg, rgba(55, 0, 0, 0.12), rgba(130, 0, 0, 0.9), rgba(70, 0, 0, 0.2));
  box-shadow: 0 0 6px rgba(130, 0, 0, 0.28);
}

.laser-shot--heavy-red .laser-shot__particle {
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  margin-top: -3.5px;
  background: rgba(255, 118, 118, 0.94);
  box-shadow:
    0 0 10px rgba(255, 68, 68, 0.34),
    0 0 16px rgba(255, 170, 120, 0.2);
}

.ship-explosion {
  position: absolute;
  width: 180px;
  height: 180px;
  margin-left: -90px;
  margin-top: -90px;
  opacity: 0;
  will-change: transform, opacity;
}

.ship-explosion__core,
.ship-explosion__plasma,
.ship-explosion__corona,
.ship-explosion__collapse-ring,
.ship-explosion__collapse-ring--outer,
.ship-explosion__shockwave,
.ship-explosion__ember,
.ship-explosion__spark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.ship-explosion__core {
  width: 48px;
  height: 48px;
  background:
    radial-gradient(circle at center, rgba(241, 252, 255, 0.98) 0%, rgba(142, 234, 255, 0.96) 26%, rgba(68, 184, 255, 0.62) 52%, rgba(68, 184, 255, 0) 78%);
  box-shadow:
    0 0 24px rgba(138, 234, 255, 0.6),
    0 0 48px rgba(57, 170, 255, 0.32);
}

.ship-explosion__plasma {
  width: 110px;
  height: 110px;
  background:
    radial-gradient(circle at center, rgba(255, 248, 225, 0.94) 0%, rgba(255, 182, 96, 0.84) 28%, rgba(255, 101, 69, 0.62) 58%, rgba(101, 20, 20, 0) 84%);
  filter: blur(1.2px);
}

.ship-explosion__corona {
  width: 144px;
  height: 144px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0) 18%, rgba(255, 199, 110, 0.28) 38%, rgba(255, 96, 96, 0.34) 58%, rgba(42, 8, 8, 0) 80%);
  filter: blur(1.6px);
}

.ship-explosion__collapse-ring,
.ship-explosion__collapse-ring--outer {
  background: transparent;
  box-shadow:
    0 0 18px rgba(143, 229, 255, 0.2),
    inset 0 0 14px rgba(194, 243, 255, 0.18);
}

.ship-explosion__collapse-ring {
  width: 122px;
  height: 122px;
  border: 1px solid rgba(160, 236, 255, 0.54);
}

.ship-explosion__collapse-ring--outer {
  width: 156px;
  height: 156px;
  border: 1px solid rgba(255, 182, 98, 0.38);
}

.ship-explosion__shockwave {
  width: 58px;
  height: 58px;
  border: 2px solid rgba(160, 236, 255, 0.9);
  box-shadow:
    0 0 24px rgba(119, 220, 255, 0.42),
    inset 0 0 14px rgba(188, 243, 255, 0.28);
}

.ship-explosion__ember,
.ship-explosion__spark {
  width: 10px;
  height: 10px;
  margin-left: -5px;
  margin-top: -5px;
}

.ship-explosion__ember {
  background:
    radial-gradient(circle at center, rgba(255, 246, 221, 0.98), rgba(255, 140, 90, 0.82) 48%, rgba(255, 95, 70, 0.08) 78%);
  box-shadow:
    0 0 14px rgba(255, 144, 84, 0.34),
    0 0 24px rgba(255, 84, 84, 0.16);
}

.ship-explosion__spark {
  width: 6px;
  height: 6px;
  margin-left: -3px;
  margin-top: -3px;
  background:
    radial-gradient(circle at center, rgba(224, 248, 255, 0.96), rgba(116, 214, 255, 0.76) 54%, rgba(116, 214, 255, 0) 84%);
  box-shadow: 0 0 12px rgba(127, 219, 255, 0.34);
}

.ship-explosion__fire-particle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  margin-top: -2px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 244, 214, 0.98) 0%, rgba(255, 182, 88, 0.92) 36%, rgba(255, 110, 52, 0.74) 64%, rgba(214, 54, 20, 0) 100%);
  box-shadow:
    0 0 8px rgba(255, 180, 82, 0.28),
    0 0 14px rgba(255, 96, 42, 0.18);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
}

.ship-explosion--missile {
  width: 30px;
  height: 30px;
  margin-left: -15px;
  margin-top: -15px;
}

.ship-explosion--missile .ship-explosion__core {
  width: 8px;
  height: 8px;
  background:
    radial-gradient(circle at center, rgba(255, 247, 214, 0.98) 0%, rgba(255, 196, 114, 0.98) 24%, rgba(255, 112, 54, 0.82) 50%, rgba(255, 70, 38, 0) 78%);
  box-shadow:
    0 0 6px rgba(255, 174, 84, 0.34),
    0 0 10px rgba(255, 98, 52, 0.16);
}

.ship-explosion--missile .ship-explosion__plasma {
  width: 16px;
  height: 16px;
  background:
    radial-gradient(circle at center, rgba(255, 251, 235, 0.94) 0%, rgba(255, 188, 98, 0.88) 24%, rgba(255, 108, 56, 0.7) 50%, rgba(120, 22, 10, 0) 84%);
}

.ship-explosion--missile .ship-explosion__corona {
  width: 22px;
  height: 22px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0) 16%, rgba(255, 208, 122, 0.34) 34%, rgba(255, 120, 64, 0.42) 56%, rgba(62, 10, 10, 0) 82%);
}

.ship-explosion--missile .ship-explosion__collapse-ring,
.ship-explosion--missile .ship-explosion__collapse-ring--outer {
  box-shadow:
    0 0 6px rgba(255, 174, 92, 0.12),
    inset 0 0 4px rgba(255, 227, 172, 0.1);
}

.ship-explosion--missile .ship-explosion__collapse-ring {
  width: 12px;
  height: 12px;
  border-color: rgba(255, 195, 112, 0.42);
}

.ship-explosion--missile .ship-explosion__collapse-ring--outer {
  width: 18px;
  height: 18px;
  border-color: rgba(255, 122, 64, 0.34);
}

.ship-explosion--missile .ship-explosion__shockwave {
  width: 6px;
  height: 6px;
  border-color: rgba(255, 211, 142, 0.86);
  box-shadow:
    0 0 5px rgba(255, 160, 78, 0.16),
    inset 0 0 3px rgba(255, 230, 184, 0.12);
}

.ship-explosion--basic .ship-explosion__corona,
.ship-explosion--basic .ship-explosion__collapse-ring,
.ship-explosion--basic .ship-explosion__collapse-ring--outer {
  display: none;
}

.ship-explosion--basic .ship-explosion__plasma {
  filter: blur(4px);
}

.ship-explosion--basic .ship-explosion__core {
  box-shadow:
    0 0 12px rgba(255, 225, 162, 0.26),
    0 0 24px rgba(255, 137, 73, 0.16);
}

.mining-layer--hidden {
  display: none;
}

.mining-layer--repair .mining-beam--glow {
  height: 12px;
  background: linear-gradient(90deg, rgba(118, 255, 172, 0.04), rgba(92, 255, 172, 0.34), rgba(194, 255, 225, 0.12));
  filter: blur(5px);
  opacity: 0.82;
}

.mining-layer--repair .mining-beam--core {
  height: 2px;
  background: linear-gradient(90deg, rgba(168, 255, 210, 0.12), rgba(76, 255, 156, 0.92), rgba(208, 255, 230, 0.76));
  box-shadow: 0 0 12px rgba(84, 255, 166, 0.28);
}

.mining-layer--repair .mining-particle {
  width: 8px;
  height: 8px;
  margin-left: -4px;
  margin-top: -4px;
  background:
    radial-gradient(circle at 35% 35%, rgba(222, 255, 236, 0.98), rgba(88, 255, 162, 0.82) 42%, rgba(127, 219, 255, 0.06) 100%);
  box-shadow:
    0 0 8px rgba(94, 255, 166, 0.22),
    0 0 16px rgba(168, 255, 220, 0.16);
}

.mining-layer--repair .mining-impact {
  width: 42px;
  height: 42px;
  margin-left: -21px;
  margin-top: -21px;
  background:
    radial-gradient(circle at center, rgba(220, 255, 234, 0.94), rgba(92, 255, 172, 0.48) 46%, rgba(92, 255, 172, 0) 78%);
  box-shadow: 0 0 18px rgba(92, 255, 172, 0.2);
}

.remote-beam--repair.mining-beam--glow {
  height: 12px;
  background: linear-gradient(90deg, rgba(118, 255, 172, 0.04), rgba(92, 255, 172, 0.34), rgba(194, 255, 225, 0.12));
  filter: blur(5px);
  opacity: 0.82;
}

.remote-beam--repair.mining-beam--core {
  height: 2px;
  background: linear-gradient(90deg, rgba(168, 255, 210, 0.12), rgba(76, 255, 156, 0.92), rgba(208, 255, 230, 0.76));
  box-shadow: 0 0 12px rgba(84, 255, 166, 0.28);
}

.remote-beam-particle.remote-beam--repair {
  width: 8px;
  height: 8px;
  margin-left: -4px;
  margin-top: -4px;
  background:
    radial-gradient(circle at 35% 35%, rgba(222, 255, 236, 0.98), rgba(88, 255, 162, 0.82) 42%, rgba(127, 219, 255, 0.06) 100%);
  box-shadow:
    0 0 8px rgba(94, 255, 166, 0.22),
    0 0 16px rgba(168, 255, 220, 0.16);
}

.remote-beam--repair.mining-impact {
  width: 42px;
  height: 42px;
  margin-left: -21px;
  margin-top: -21px;
  background:
    radial-gradient(circle at center, rgba(220, 255, 234, 0.94), rgba(92, 255, 172, 0.48) 46%, rgba(92, 255, 172, 0) 78%);
  box-shadow: 0 0 18px rgba(92, 255, 172, 0.2);
}

.mining-beam {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 50%;
  border-radius: 999px;
}

.mining-beam--glow {
  height: 18px;
  background: linear-gradient(90deg, rgba(108, 215, 255, 0.05), rgba(108, 215, 255, 0.44), rgba(255, 236, 167, 0.15));
  filter: blur(7px);
  opacity: 0.88;
}

.mining-beam--core {
  height: 4px;
  background: linear-gradient(90deg, rgba(155, 230, 255, 0.18), rgba(133, 238, 255, 0.92), rgba(255, 230, 149, 0.82));
  box-shadow: 0 0 14px rgba(127, 219, 255, 0.34);
}

.mining-particles {
  position: absolute;
  inset: 0;
}

.mining-particle {
  position: absolute;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  margin-top: -5px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 243, 182, 0.98), rgba(255, 153, 89, 0.78) 45%, rgba(127, 219, 255, 0.08) 100%);
  box-shadow:
    0 0 10px rgba(255, 181, 88, 0.24),
    0 0 18px rgba(127, 219, 255, 0.16);
  opacity: 0;
  filter: blur(0.2px);
  transform: translate3d(0, 0, 0) scale(0.2);
  will-change: transform, opacity;
}

.mining-impact {
  position: absolute;
  width: 34px;
  height: 34px;
  margin-left: -17px;
  margin-top: -17px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 244, 186, 0.96), rgba(127, 219, 255, 0.56) 45%, rgba(127, 219, 255, 0) 76%);
  filter: blur(1.2px);
  box-shadow: 0 0 18px rgba(127, 219, 255, 0.25);
}

.boarding-prompt {
  position: absolute;
  z-index: 28;
  width: 42px;
  height: 42px;
  margin-left: -21px;
  margin-top: -21px;
  border: 1px solid rgba(127, 219, 255, 0.34);
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(12, 39, 63, 0.96), rgba(4, 13, 24, 0.92));
  color: var(--accent-strong);
  cursor: pointer;
  box-shadow:
    0 0 22px rgba(127, 219, 255, 0.14),
    inset 0 0 20px rgba(127, 219, 255, 0.08);
}

.asteroid-prompt {
  position: absolute;
  z-index: 27;
  width: 40px;
  height: 40px;
  margin-left: -20px;
  margin-top: -20px;
  border: 1px solid rgba(127, 219, 255, 0.34);
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(12, 39, 63, 0.96), rgba(4, 13, 24, 0.92));
  color: var(--accent-strong);
  cursor: pointer;
  box-shadow:
    0 0 22px rgba(127, 219, 255, 0.14),
    inset 0 0 20px rgba(127, 219, 255, 0.08);
}

.freighter-prompt {
  position: absolute;
  z-index: 26;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.freighter-prompt--hidden {
  display: none;
}

.freighter-prompt__label {
  padding: 7px 11px;
  border: 1px solid rgba(127, 219, 255, 0.28);
  border-radius: 999px;
  background: rgba(4, 15, 28, 0.76);
  color: rgba(220, 241, 255, 0.92);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.freighter-prompt__icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(127, 219, 255, 0.34);
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(12, 39, 63, 0.96), rgba(4, 13, 24, 0.92));
  color: var(--accent-strong);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 1rem;
  box-shadow:
    0 0 22px rgba(127, 219, 255, 0.14),
    inset 0 0 20px rgba(127, 219, 255, 0.08);
}

.asteroid-prompt--hidden {
  display: none;
}

.asteroid-prompt__icon {
  display: inline-grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 1rem;
}

.boarding-prompt--hidden {
  display: none;
}

.boarding-prompt__icon {
  display: inline-grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 1rem;
}

.action-loader {
  position: absolute;
  z-index: 26;
  width: 108px;
  padding: 6px 7px 7px;
  margin-left: -54px;
  margin-top: -18px;
  overflow: hidden;
  border: 1px solid rgba(127, 219, 255, 0.26);
  border-radius: 12px;
  background: rgba(3, 12, 22, 0.76);
  box-shadow: 0 0 18px rgba(127, 219, 255, 0.12);
}

.action-loader--hidden {
  display: none;
}

.action-loader__fill {
  height: 6px;
  width: 0%;
  margin-top: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(127, 219, 255, 0.72), rgba(184, 243, 255, 1));
  box-shadow: 0 0 12px rgba(127, 219, 255, 0.28);
}

.action-loader__label {
  color: rgba(235, 247, 255, 0.84);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.54rem;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.scan-panel {
  position: absolute;
  z-index: 26;
  width: 198px;
  padding: 12px;
  border: 1px solid rgba(127, 219, 255, 0.24);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(5, 17, 31, calc(var(--hub-opacity) * 0.82)), rgba(4, 12, 22, calc(var(--hub-opacity) * 0.6))),
    radial-gradient(circle at top left, rgba(127, 219, 255, 0.08), transparent 42%);
  box-shadow:
    0 18px 28px rgba(0, 0, 0, 0.24),
    inset 0 0 20px rgba(127, 219, 255, 0.05);
  backdrop-filter: blur(var(--hub-blur-strong));
}

.scan-panel--hidden {
  display: none;
}

.scan-panel__title,
.scan-panel__subtitle,
.scan-panel__size {
  font-family: Orbitron, Eurostile, sans-serif;
}

.scan-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.scan-panel__title {
  color: var(--accent-strong);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
}

.scan-panel__help {
  position: relative;
}

.scan-panel__help-button {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(127, 219, 255, 0.2);
  border-radius: 50%;
  background: rgba(7, 18, 31, calc(var(--hub-opacity) * 0.56));
  color: var(--accent-strong);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.66rem;
  cursor: help;
}

.scan-panel__tooltip {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 220px;
  padding: 10px;
  border: 1px solid rgba(127, 219, 255, 0.16);
  border-radius: 12px;
  background: rgba(5, 17, 31, calc(var(--hub-opacity) * 0.82 + 0.06));
  color: rgba(235, 247, 255, 0.8);
  font-size: 0.68rem;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
  backdrop-filter: blur(var(--hub-blur-soft));
}

.scan-panel__help:hover .scan-panel__tooltip,
.scan-panel__help-button:focus + .scan-panel__tooltip {
  opacity: 1;
  transform: translateY(0);
}

.scan-panel__size {
  margin-top: 6px;
  color: rgba(255, 212, 127, 0.86);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}

.scan-panel__subtitle {
  margin-top: 10px;
  color: rgba(235, 247, 255, 0.72);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scan-panel__resources {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.scan-panel__resource {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border: 1px solid rgba(127, 219, 255, 0.1);
  border-radius: 10px;
  background: rgba(7, 18, 31, calc(var(--hub-opacity) * 0.42));
  color: rgba(235, 247, 255, 0.84);
  font-size: 0.72rem;
}

.scan-panel__resource span:last-child {
  color: rgba(255, 212, 127, 0.9);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.62rem;
}

.scan-panel__button {
  width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(127, 219, 255, 0.22);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(8, 25, 41, calc(var(--hub-opacity) * 0.7 + 0.08)), rgba(4, 11, 20, calc(var(--hub-opacity) * 0.7 + 0.08)));
  color: var(--accent-strong);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.scan-panel__button:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

.freighter-market {
  width: 380px;
  cursor: default;
}

.freighter-market--hidden {
  display: none;
}

.freighter-market__list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.freighter-market__header {
  cursor: grab;
}

.freighter-market__close {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(127, 219, 255, 0.2);
  border-radius: 9px;
  background: rgba(7, 18, 31, 0.34);
  color: var(--accent-strong);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.7rem;
  cursor: pointer;
}

.freighter-market__row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  padding: 9px;
  border: 1px solid rgba(127, 219, 255, 0.12);
  border-radius: 12px;
  background: rgba(7, 18, 31, calc(var(--hub-opacity) * 0.38));
}

.freighter-market__thumb {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.22));
}

.freighter-market__meta {
  display: grid;
  gap: 6px;
}

.freighter-market__head,
.freighter-market__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.freighter-market__name,
.freighter-market__price,
.freighter-market__stock {
  font-family: Orbitron, Eurostile, sans-serif;
}

.freighter-market__name {
  color: rgba(235, 247, 255, 0.92);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.freighter-market__price,
.freighter-market__stock {
  color: rgba(255, 212, 127, 0.88);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
}

.death-modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
}

.death-modal--hidden {
  display: none;
}

.death-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(127, 219, 255, 0.06), transparent 32%),
    rgba(2, 7, 14, 0.72);
  backdrop-filter: blur(8px);
}

.death-modal__card {
  position: relative;
  width: min(92vw, 520px);
  padding: 28px 28px 24px;
  border: 1px solid rgba(127, 219, 255, 0.24);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(7, 21, 36, 0.94), rgba(3, 12, 22, 0.96));
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.42),
    inset 0 0 24px rgba(127, 219, 255, 0.06);
  text-align: center;
}

.death-modal__eyebrow,
.death-modal__title {
  font-family: Orbitron, Eurostile, sans-serif;
  text-transform: uppercase;
}

.death-modal__eyebrow {
  color: rgba(255, 188, 126, 0.88);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
}

.death-modal__title {
  margin-top: 8px;
  color: rgba(235, 247, 255, 0.98);
  font-size: 1.02rem;
  letter-spacing: 0.08em;
}

.death-modal__text {
  margin-top: 14px;
  color: rgba(210, 230, 244, 0.82);
  font-size: 0.84rem;
  line-height: 1.45;
}

.death-modal__repair-count {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 201, 132, 0.22);
  border-radius: 999px;
  background: rgba(20, 12, 7, 0.78);
  color: rgba(255, 224, 189, 0.94);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.death-modal__actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.death-modal__button {
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid rgba(127, 219, 255, 0.22);
  border-radius: 14px;
  background: rgba(8, 25, 40, 0.92);
  color: rgba(235, 247, 255, 0.92);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.death-modal__button--accent {
  border-color: rgba(255, 196, 132, 0.28);
  background:
    linear-gradient(180deg, rgba(42, 19, 10, 0.96), rgba(22, 10, 5, 0.96));
  color: rgba(255, 232, 196, 0.96);
}

.death-modal__button:disabled {
  opacity: 0.54;
  cursor: not-allowed;
}

.warp-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 181;
  display: grid;
  place-items: center;
}

.warp-confirm-modal--hidden {
  display: none;
}

.warp-confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(82, 170, 255, 0.14), transparent 34%),
    rgba(2, 7, 14, 0.74);
  backdrop-filter: blur(8px);
}

.warp-confirm-modal__card {
  position: relative;
  width: min(92vw, 480px);
  padding: 26px 26px 22px;
  border: 1px solid rgba(104, 191, 255, 0.28);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(6, 18, 34, 0.96), rgba(3, 10, 20, 0.98));
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.44),
    inset 0 0 28px rgba(90, 182, 255, 0.08);
  text-align: center;
}

.warp-confirm-modal__eyebrow,
.warp-confirm-modal__title,
.warp-confirm-modal__button {
  font-family: Orbitron, Eurostile, sans-serif;
  text-transform: uppercase;
}

.warp-confirm-modal__eyebrow {
  color: rgba(122, 210, 255, 0.92);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
}

.warp-confirm-modal__title {
  margin-top: 8px;
  color: rgba(235, 247, 255, 0.98);
  font-size: 0.98rem;
  letter-spacing: 0.08em;
}

.warp-confirm-modal__text {
  margin-top: 14px;
  color: rgba(208, 228, 244, 0.84);
  font-size: 0.82rem;
  line-height: 1.5;
}

.warp-confirm-modal__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.warp-confirm-modal__button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(117, 199, 255, 0.22);
  border-radius: 14px;
  background: rgba(8, 24, 39, 0.94);
  color: rgba(235, 247, 255, 0.92);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.warp-confirm-modal__button--accent {
  border-color: rgba(120, 214, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(10, 44, 68, 0.98), rgba(4, 21, 33, 0.98));
  color: rgba(220, 245, 255, 0.98);
  box-shadow: inset 0 0 18px rgba(82, 170, 255, 0.12);
}

.captain-intro-modal {
  position: fixed;
  inset: 0;
  z-index: 182;
  display: grid;
  place-items: center;
}

.captain-intro-modal--hidden {
  display: none;
}

.captain-intro-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(105, 255, 173, 0.08), transparent 34%),
    rgba(2, 7, 14, 0.78);
  backdrop-filter: blur(10px);
}

.captain-intro-modal__card {
  position: relative;
  width: min(92vw, 640px);
  padding: 30px 30px 24px;
  border: 1px solid rgba(107, 255, 171, 0.2);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(6, 24, 23, 0.97), rgba(3, 14, 17, 0.98));
  box-shadow:
    0 30px 72px rgba(0, 0, 0, 0.48),
    inset 0 0 28px rgba(109, 255, 176, 0.06);
}

.captain-intro-modal__eyebrow,
.captain-intro-modal__title,
.captain-intro-modal__button {
  font-family: Orbitron, Eurostile, sans-serif;
  text-transform: uppercase;
}

.captain-intro-modal__eyebrow {
  color: rgba(138, 255, 194, 0.92);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.captain-intro-modal__title {
  margin-top: 8px;
  color: rgba(236, 249, 244, 0.98);
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.captain-intro-modal__text {
  margin-top: 14px;
  color: rgba(205, 232, 223, 0.86);
  font-size: 0.82rem;
  line-height: 1.62;
}

.captain-intro-modal__check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: rgba(188, 224, 214, 0.9);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.captain-intro-modal__check input {
  accent-color: #6dffb0;
}

.captain-intro-modal__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.captain-intro-modal__button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(109, 255, 176, 0.28);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(9, 52, 44, 0.98), rgba(4, 25, 22, 0.98));
  color: rgba(230, 255, 241, 0.96);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.captain-intro-modal__button--accent {
  box-shadow: inset 0 0 18px rgba(109, 255, 176, 0.12);
}

.key-shop-modal {
  position: fixed;
  inset: 0;
  z-index: 184;
  display: grid;
  place-items: center;
}

.key-shop-modal--hidden {
  display: none;
}

.key-shop-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255, 201, 108, 0.12), transparent 34%),
    rgba(2, 7, 14, 0.8);
  backdrop-filter: blur(10px);
}

.key-shop-modal__card {
  position: relative;
  width: min(92vw, 760px);
  padding: 30px 30px 24px;
  border: 1px solid rgba(255, 207, 122, 0.22);
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(255, 214, 132, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(21, 16, 8, 0.98), rgba(9, 11, 18, 0.98));
  box-shadow:
    0 30px 72px rgba(0, 0, 0, 0.5),
    inset 0 0 30px rgba(255, 196, 104, 0.06);
}

.key-shop-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 214, 128, 0.26);
  border-radius: 12px;
  background: rgba(17, 15, 11, 0.9);
  color: rgba(255, 237, 204, 0.96);
  font-size: 1rem;
  cursor: pointer;
}

.key-shop-modal__help {
  position: absolute;
  top: 14px;
  right: 62px;
  z-index: 3;
}

.key-shop-modal__help-button {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 214, 128, 0.24);
  border-radius: 12px;
  background: rgba(17, 15, 11, 0.9);
  color: rgba(255, 237, 204, 0.98);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 1rem;
  cursor: help;
}

.key-shop-modal__help-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 214, 128, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(19, 16, 11, 0.98), rgba(10, 11, 16, 0.98));
  color: rgba(238, 229, 207, 0.92);
  font-size: 0.74rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  box-shadow:
    0 18px 28px rgba(0, 0, 0, 0.28),
    inset 0 0 18px rgba(255, 201, 108, 0.05);
}

.key-shop-modal__help:hover .key-shop-modal__help-tooltip,
.key-shop-modal__help-button:hover + .key-shop-modal__help-tooltip,
.key-shop-modal__help-button:focus-visible + .key-shop-modal__help-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.key-shop-modal__eyebrow,
.key-shop-modal__title,
.key-shop-modal__package-name,
.key-shop-modal__package-keys,
.key-shop-modal__package-price,
.key-shop-modal__buy,
.key-shop-modal__check {
  font-family: Orbitron, Eurostile, sans-serif;
  text-transform: uppercase;
}

.key-shop-modal__eyebrow {
  color: rgba(255, 216, 140, 0.94);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.key-shop-modal__title {
  margin-top: 8px;
  color: rgba(255, 246, 226, 0.98);
  font-size: 1.16rem;
  letter-spacing: 0.08em;
}

.key-shop-modal__subtitle {
  margin-top: 12px;
  max-width: 560px;
  color: rgba(232, 224, 206, 0.84);
  font-size: 0.84rem;
  line-height: 1.58;
}

.key-shop-modal__packages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.key-shop-modal__package {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 252px;
  padding: 18px 16px 16px;
  border: 1px solid rgba(255, 212, 126, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(15, 19, 28, 0.96), rgba(10, 12, 19, 0.98));
  box-shadow:
    inset 0 0 20px rgba(255, 211, 119, 0.04),
    0 18px 32px rgba(0, 0, 0, 0.24);
}

.key-shop-modal__package::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.92;
  pointer-events: none;
}

.key-shop-modal__package--starter::before {
  background:
    radial-gradient(circle at top, rgba(110, 228, 255, 0.16), transparent 52%),
    linear-gradient(160deg, rgba(110, 228, 255, 0.12), transparent 48%);
}

.key-shop-modal__package--pilot::before {
  background:
    radial-gradient(circle at top, rgba(255, 207, 112, 0.2), transparent 52%),
    linear-gradient(160deg, rgba(255, 207, 112, 0.12), transparent 48%);
}

.key-shop-modal__package--command::before {
  background:
    radial-gradient(circle at top, rgba(255, 120, 120, 0.18), transparent 52%),
    linear-gradient(160deg, rgba(255, 182, 90, 0.14), transparent 48%);
}

.key-shop-modal__package-name,
.key-shop-modal__package-icon,
.key-shop-modal__package-keys,
.key-shop-modal__package-price,
.key-shop-modal__buy {
  position: relative;
  z-index: 1;
}

.key-shop-modal__package-icon {
  display: block;
  width: 72px;
  height: 72px;
  margin: 2px auto 14px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 14px rgba(255, 214, 120, 0.24))
    drop-shadow(0 10px 16px rgba(0, 0, 0, 0.24));
}

.key-shop-modal__package-name {
  color: rgba(255, 227, 172, 0.9);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-align: center;
}

.key-shop-modal__package-keys {
  margin-top: 10px;
  color: rgba(250, 248, 243, 0.98);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-align: center;
  text-shadow:
    0 0 16px rgba(255, 210, 119, 0.22),
    0 0 28px rgba(108, 221, 255, 0.12);
}

.key-shop-modal__package-price {
  margin-top: 10px;
  color: rgba(255, 206, 114, 0.98);
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  text-align: center;
}

.key-shop-modal__buy {
  margin-top: auto;
  min-height: 46px;
  border: 1px solid rgba(255, 214, 128, 0.26);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(48, 36, 12, 0.98), rgba(24, 18, 8, 0.98));
  color: rgba(255, 244, 219, 0.98);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow:
    inset 0 0 18px rgba(255, 202, 103, 0.12),
    0 12px 20px rgba(0, 0, 0, 0.16);
}

.key-shop-modal__check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: rgba(228, 219, 197, 0.88);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.key-shop-modal__check input {
  accent-color: #ffce72;
}

.support-help-button {
  position: fixed;
  top: 14px;
  right: 70px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 6px;
  border: 1px solid rgba(127, 219, 255, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(5, 17, 31, calc(var(--hub-opacity) * 0.86)), rgba(4, 12, 22, calc(var(--hub-opacity) * 0.72))),
    radial-gradient(circle at top left, rgba(127, 219, 255, 0.08), transparent 42%);
  box-shadow:
    0 14px 24px rgba(0, 0, 0, 0.24),
    inset 0 0 16px rgba(127, 219, 255, 0.05);
  backdrop-filter: blur(var(--hub-blur));
  cursor: pointer;
}

.support-help-button > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(127, 219, 255, 0.18);
  border-radius: 9px;
  background:
    radial-gradient(circle at 30% 30%, rgba(127, 219, 255, 0.2), transparent 60%),
    rgba(7, 18, 31, 0.46);
  box-shadow: inset 0 0 10px rgba(127, 219, 255, 0.08);
  color: rgba(184, 243, 255, 0.9);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.86rem;
  line-height: 1;
}

.support-help-button__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd76f, #ff9b54);
  color: rgba(32, 16, 5, 0.94);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.58rem;
  line-height: 20px;
  text-align: center;
}

.support-help-button__badge--hidden {
  display: none;
}

.support-chat-window {
  position: fixed;
  inset: 0;
  z-index: 183;
  display: grid;
  place-items: center;
}

.support-chat-window--hidden {
  display: none;
}

.support-chat-window__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 15, 0.72);
  backdrop-filter: blur(8px);
}

.support-chat-window__card {
  position: relative;
  width: min(92vw, 560px);
  padding: 20px;
  border: 1px solid rgba(127, 219, 255, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(7, 20, 32, 0.98), rgba(4, 12, 22, 0.98));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.38),
    inset 0 0 24px rgba(127, 219, 255, 0.06);
}

.support-chat-window__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.support-chat-window__eyebrow,
.support-chat-window__title,
.support-chat-window__close,
.support-chat-window__send,
.support-chat-window__input {
  font-family: Orbitron, Eurostile, sans-serif;
}

.support-chat-window__eyebrow {
  color: rgba(138, 255, 194, 0.9);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.support-chat-window__title {
  margin-top: 4px;
  color: rgba(236, 249, 244, 0.98);
  font-size: 0.94rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.support-chat-window__close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(127, 219, 255, 0.18);
  border-radius: 12px;
  background: rgba(7, 18, 31, 0.42);
  color: rgba(211, 242, 255, 0.92);
  font-size: 0.9rem;
  cursor: pointer;
}

.support-chat-window__log {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 220px;
  max-height: min(52vh, 420px);
  padding: 10px;
  overflow-y: auto;
  border: 1px solid rgba(127, 219, 255, 0.1);
  border-radius: 14px;
  background: rgba(7, 18, 31, 0.34);
}

.support-chat-window__composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 12px;
}

.support-chat-window__input {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(127, 219, 255, 0.12);
  border-radius: 12px;
  background: rgba(7, 18, 31, 0.42);
  color: var(--text);
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  outline: none;
}

.support-chat-window__input::placeholder {
  color: rgba(184, 243, 255, 0.42);
}

.support-chat-window__send {
  padding: 0 14px;
  border: 1px solid rgba(127, 219, 255, 0.16);
  border-radius: 12px;
  background: rgba(7, 18, 31, 0.38);
  color: var(--accent-strong);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

body.death-active .player-label,
body.death-active .boarding-prompt,
body.death-active .asteroid-prompt,
body.death-active .freighter-prompt,
body.death-active .action-loader,
body.death-active .scan-panel,
body.death-active .tutorial-overlay {
  display: none !important;
}

body.death-active #playerEntity,
body.death-active #minerEntity,
body.death-active #repairDroneEntity {
  opacity: 0;
  pointer-events: none;
}

.freighter-market__quantity {
  width: 92px;
  padding: 8px 10px;
  border: 1px solid rgba(127, 219, 255, 0.16);
  border-radius: 10px;
  background: rgba(2, 10, 20, calc(var(--hub-opacity) * 0.72 + 0.06));
  color: rgba(233, 246, 255, 0.96);
  font: inherit;
  outline: none;
}

.freighter-market__sell {
  padding: 8px 11px;
  border: 1px solid rgba(127, 219, 255, 0.22);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(8, 25, 41, calc(var(--hub-opacity) * 0.7 + 0.08)), rgba(4, 11, 20, calc(var(--hub-opacity) * 0.7 + 0.08)));
  color: var(--accent-strong);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.freighter-market__empty {
  margin-top: 10px;
  padding: 16px 18px;
  border: 1px solid rgba(127, 219, 255, 0.12);
  border-radius: 14px;
  background: rgba(7, 18, 31, calc(var(--hub-opacity) * 0.34));
  color: rgba(220, 238, 255, 0.82);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.62rem;
  line-height: 1.8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.storage-container-panel {
  width: min(92vw, 900px);
}

.storage-container-panel__tabs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.storage-container-panel__tab {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(127, 219, 255, 0.18);
  border-radius: 12px;
  background: rgba(8, 22, 35, 0.92);
  color: rgba(220, 238, 255, 0.82);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.storage-container-panel__tab--active {
  border-color: rgba(255, 214, 127, 0.28);
  background: linear-gradient(180deg, rgba(39, 25, 10, 0.96), rgba(20, 13, 5, 0.96));
  color: rgba(255, 232, 191, 0.96);
}

.storage-container-panel__section {
  position: relative;
  margin-top: 12px;
}

.storage-container-panel__body {
  display: grid;
  grid-template-columns: 356px 1fr;
  gap: 14px;
  align-items: start;
}

.storage-container-panel__items-pane,
.storage-container-panel__ships-pane {
  display: grid;
  gap: 10px;
}

.storage-container-panel__label {
  color: rgba(235, 247, 255, 0.88);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.storage-container-panel__section--hidden {
  display: none;
}

.storage-container-panel__transfer-button {
  margin-left: auto;
}

.storage-container-panel__ship-slots {
  display: grid;
  grid-template-columns: repeat(2, 182px);
  gap: 10px;
  justify-content: start;
}

.storage-container-panel__ship-slot {
  width: 182px;
  min-height: 182px;
  min-width: 182px;
  padding: 10px;
  border: 1px solid rgba(127, 219, 255, 0.12);
  border-radius: 16px;
  background: rgba(7, 18, 31, calc(var(--hub-opacity) * 0.34));
  backdrop-filter: blur(var(--hub-blur-soft));
  display: grid;
  gap: 6px;
  justify-items: center;
  align-content: center;
  text-align: center;
}

.storage-container-panel__ship-slot--occupied {
  gap: 8px;
}

.storage-container-panel__ship-preview {
  position: relative;
  width: 138px;
  height: 138px;
  border: 1px dashed rgba(127, 219, 255, 0.12);
  border-radius: 14px;
  display: grid;
  place-items: center;
  cursor: grab;
}

.storage-container-panel__ship-preview-image {
  width: 94px;
  height: 94px;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.32));
  transform-origin: center center;
  pointer-events: none;
}

.storage-container-panel__ship-slot-name,
.storage-container-panel__ship-slot-status,
.storage-container-panel__ship-slot-action,
.storage-container-panel__cargo-name,
.storage-container-panel__cargo-meta,
.storage-container-panel__cargo-action,
.storage-transfer__title,
.storage-transfer__label {
  font-family: Orbitron, Eurostile, sans-serif;
  text-transform: uppercase;
}

.storage-container-panel__ship-slot-name,
.storage-transfer__title,
.storage-transfer__label,
.storage-container-panel__cargo-name {
  color: rgba(235, 247, 255, 0.92);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.storage-container-panel__ship-slot-status,
.storage-container-panel__cargo-meta {
  color: rgba(201, 223, 240, 0.72);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.storage-container-panel__ship-slot-action,
.storage-container-panel__cargo-action {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 214, 127, 0.22);
  border-radius: 10px;
  background: rgba(25, 17, 8, 0.9);
  color: rgba(255, 232, 191, 0.94);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.storage-container-panel__grid,
.storage-transfer__grid {
  display: grid;
  grid-template-columns: repeat(6, 48px);
  gap: 8px;
  justify-content: start;
  width: 328px;
  min-width: 328px;
  box-sizing: content-box;
}

.storage-container-panel__grid {
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 18px;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: rgba(127, 219, 255, 0.48) rgba(7, 18, 31, 0.22);
}

.storage-transfer__grid {
  max-height: 332px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: rgba(127, 219, 255, 0.48) rgba(7, 18, 31, 0.22);
}

#storageTransferShipGrid {
  grid-template-columns: repeat(4, 48px);
  width: 240px;
  min-width: 240px;
}

#storageTransferContainerGrid {
  grid-template-columns: repeat(6, 48px);
  width: 352px;
  min-width: 352px;
}

.storage-slot {
  position: relative;
  width: 48px;
  height: 48px;
  min-height: 0;
}

.storage-slot--button {
  cursor: pointer;
}

.storage-slot--selected {
  border-color: rgba(255, 214, 127, 0.38);
  box-shadow: 0 0 0 1px rgba(255, 214, 127, 0.16), inset 0 0 16px rgba(255, 214, 127, 0.08);
}

.storage-slot--empty {
  opacity: 0.38;
}

.storage-slot__thumb {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.storage-slot__amount {
  position: absolute;
  right: 6px;
  bottom: 4px;
  color: rgba(255, 232, 191, 0.96);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.46rem;
  letter-spacing: 0.04em;
}

.storage-transfer {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 3;
  width: 676px;
  max-width: calc(100% - 36px);
  padding: 12px;
  border: 1px solid rgba(127, 219, 255, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(4, 12, 22, 0.98), rgba(3, 9, 17, 0.98));
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.34);
}

.storage-transfer--hidden {
  display: none;
}

.storage-transfer__header,
.storage-transfer__body {
  display: flex;
}

.storage-transfer__header {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.storage-transfer__body {
  gap: 10px;
  align-items: flex-start;
}

.storage-transfer__pane {
  flex: 1;
  display: grid;
  gap: 8px;
}

.storage-transfer__pane:first-child {
  flex: 0 0 240px;
  max-width: 240px;
}

.storage-transfer__pane:last-child {
  flex: 0 0 352px;
  max-width: 352px;
}

.storage-transfer__controls {
  display: grid;
  gap: 10px;
  align-self: center;
}

.storage-transfer__arrow {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 214, 127, 0.22);
  border-radius: 12px;
  background: rgba(25, 17, 8, 0.92);
  color: rgba(255, 232, 191, 0.96);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 1rem;
  cursor: pointer;
}

.storage-container-panel__cargo-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.storage-container-panel__cargo-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
  justify-items: center;
  padding: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.storage-container-panel__cargo-visual {
  width: 100%;
  height: 112px;
  display: grid;
  place-items: center;
}

.storage-container-panel__cargo-card img {
  width: 104px;
  height: 104px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 16px rgba(127, 219, 255, 0.12))
    drop-shadow(0 12px 22px rgba(0, 0, 0, 0.24));
}

.storage-container-panel__cargo-card--lg img {
  width: 116px;
  height: 116px;
}

.storage-container-panel__cargo-card--xl img {
  width: 128px;
  height: 128px;
}

.storage-container-panel__cargo-name--accent {
  color: rgba(255, 182, 102, 0.96);
}

@media (max-width: 1100px) {
  .storage-container-panel {
    width: min(95vw, 760px);
  }

  .storage-container-panel__body {
    grid-template-columns: 1fr;
  }

  .storage-container-panel__grid,
  .storage-transfer__grid {
    grid-template-columns: repeat(4, 48px);
    width: 224px;
    min-width: 224px;
  }

  .storage-transfer__body {
    flex-direction: column;
  }

  .storage-transfer__controls {
    grid-auto-flow: column;
    justify-content: center;
  }

  .storage-container-panel__ship-slots {
    grid-template-columns: repeat(2, 172px);
    justify-content: start;
  }

  .storage-container-panel__cargo-list {
    grid-template-columns: 1fr;
  }
}

.orion-market {
  display: grid;
  grid-template-columns: 164px 1fr;
  gap: 10px;
  margin-top: 10px;
}

.orion-market__list {
  display: grid;
  gap: 8px;
  max-height: 328px;
  padding-right: 6px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(127, 219, 255, 0.48) rgba(7, 18, 31, 0.22);
}

.orion-market__list::-webkit-scrollbar {
  width: 8px;
}

.orion-market__list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(7, 18, 31, 0.24);
}

.orion-market__list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(127, 219, 255, 0.74), rgba(255, 212, 127, 0.54));
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.08);
}

.orion-market__list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(145, 232, 255, 0.88), rgba(255, 224, 156, 0.72));
}

.orion-market__item,
.orion-market__detail,
.orion-market__spec {
  border: 1px solid rgba(127, 219, 255, 0.12);
  background: rgba(7, 18, 31, calc(var(--hub-opacity) * 0.36));
}

.orion-market__item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.orion-market__item:hover,
.orion-market__item--active {
  border-color: rgba(127, 219, 255, 0.32);
  box-shadow: 0 0 16px rgba(127, 219, 255, 0.12);
  transform: translateY(-1px);
}

.orion-market__item-thumb,
.orion-market__detail-thumb {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.24));
}

.orion-market__item-name,
.orion-market__item-price,
.orion-market__detail-name,
.orion-market__detail-price,
.orion-market__detail-description,
.orion-market__spec {
  font-family: Orbitron, Eurostile, sans-serif;
}

.orion-market__item-name,
.orion-market__detail-name {
  color: rgba(235, 247, 255, 0.92);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.orion-market__item-price,
.orion-market__detail-price,
.orion-market__spec-value {
  color: rgba(255, 212, 127, 0.9);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
}

.orion-market__detail {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
}

.orion-market__detail-head {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
}

.orion-market__detail-thumb {
  width: 52px;
  height: 52px;
}

.orion-market__detail-meta {
  display: grid;
  gap: 4px;
}

.orion-market__detail-description {
  color: rgba(220, 238, 255, 0.84);
  font-size: 0.58rem;
  line-height: 1.75;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.orion-market__detail-specs {
  display: grid;
  gap: 6px;
}

.orion-market__spec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 9px;
  border-radius: 10px;
  color: rgba(235, 247, 255, 0.82);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mission-panel {
  display: grid;
  grid-template-columns: 164px 1fr;
  gap: 10px;
  margin-top: 10px;
}

.mission-panel__list {
  display: grid;
  gap: 8px;
  max-height: 328px;
  padding-right: 6px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(127, 219, 255, 0.48) rgba(7, 18, 31, 0.22);
}

.mission-panel__list::-webkit-scrollbar {
  width: 8px;
}

.mission-panel__list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(7, 18, 31, 0.24);
}

.mission-panel__list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(127, 219, 255, 0.74), rgba(255, 212, 127, 0.54));
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.08);
}

.mission-panel__list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(145, 232, 255, 0.88), rgba(255, 224, 156, 0.72));
}

.mission-panel__item,
.mission-panel__detail,
.mission-panel__spec {
  border: 1px solid rgba(127, 219, 255, 0.12);
  background: rgba(7, 18, 31, calc(var(--hub-opacity) * 0.36));
}

.mission-panel__item {
  display: block;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.mission-panel__item:hover,
.mission-panel__item--active {
  border-color: rgba(127, 219, 255, 0.32);
  box-shadow: 0 0 16px rgba(127, 219, 255, 0.12);
  transform: translateY(-1px);
}

.mission-panel__item-name,
.mission-panel__detail-name,
.mission-panel__detail-reward,
.mission-panel__detail-description,
.mission-panel__spec {
  font-family: Orbitron, Eurostile, sans-serif;
}

.mission-panel__item-name,
.mission-panel__detail-name {
  color: rgba(235, 247, 255, 0.92);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mission-panel__detail-reward,
.mission-panel__spec-value {
  color: rgba(255, 212, 127, 0.9);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
}

.mission-panel__detail {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
}

.mission-panel__detail-head {
  display: block;
}

.mission-panel__detail-meta {
  display: grid;
  gap: 4px;
}

.mission-panel__detail-meta--full {
  width: 100%;
}

.mission-panel__detail-description {
  color: rgba(220, 238, 255, 0.84);
  font-size: 0.58rem;
  line-height: 1.75;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mission-panel__detail-specs {
  display: grid;
  gap: 6px;
}

.mission-panel__spec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 9px;
  border-radius: 10px;
  color: rgba(235, 247, 255, 0.82);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mission-log {
  display: grid;
  grid-template-columns: 152px 1fr;
  gap: 10px;
}

.mission-log__list {
  display: grid;
  gap: 8px;
  align-content: start;
}

.mission-log__item,
.mission-log__detail,
.mission-log__progress-row {
  border: 1px solid rgba(127, 219, 255, 0.12);
  background: rgba(7, 18, 31, calc(var(--hub-opacity) * 0.36));
}

.mission-log__item {
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.mission-log__item:hover,
.mission-log__item--active {
  border-color: rgba(127, 219, 255, 0.32);
  box-shadow: 0 0 16px rgba(127, 219, 255, 0.12);
  transform: translateY(-1px);
}

.mission-log__item-name,
.mission-log__detail-name,
.mission-log__detail-reward,
.mission-log__detail-description,
.mission-log__progress-row,
.mission-log__empty {
  font-family: Orbitron, Eurostile, sans-serif;
}

.mission-log__item-name,
.mission-log__detail-name {
  color: rgba(235, 247, 255, 0.92);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mission-log__detail-reward,
.mission-log__progress-value {
  color: rgba(255, 212, 127, 0.9);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
}

.mission-log__detail {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
}

.mission-log__detail-description {
  color: rgba(220, 238, 255, 0.84);
  font-size: 0.58rem;
  line-height: 1.75;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mission-log__detail-progress {
  display: grid;
  gap: 6px;
}

.mission-log__progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 9px;
  border-radius: 10px;
  color: rgba(235, 247, 255, 0.82);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mission-log__empty {
  padding: 12px;
  border: 1px dashed rgba(127, 219, 255, 0.16);
  border-radius: 12px;
  color: rgba(220, 238, 255, 0.72);
  font-size: 0.56rem;
  line-height: 1.7;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resource-panel__bar-fill--credits {
  background: linear-gradient(90deg, rgba(255, 202, 102, 0.95), rgba(255, 234, 167, 0.95));
  box-shadow: 0 0 12px rgba(255, 212, 127, 0.16);
}

.resource-panel {
  position: absolute;
  left: 24px;
  top: 24px;
  z-index: 24;
  width: 230px;
  padding: 10px;
  border: 1px solid rgba(127, 219, 255, 0.18);
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(5, 17, 31, var(--hub-opacity)), rgba(4, 12, 22, calc(var(--hub-opacity) * 0.78))),
    radial-gradient(circle at top left, rgba(127, 219, 255, 0.08), transparent 42%);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.18),
    inset 0 0 16px rgba(127, 219, 255, 0.04);
  backdrop-filter: blur(var(--hub-blur));
  cursor: grab;
  touch-action: none;
}

.resource-panel--support {
  left: 270px;
  width: 152px;
  padding: 8px 9px;
}

.resource-panel--storage {
  left: 24px;
  width: min(700px, calc(100vw - 48px));
}

.resource-panel--chat {
  left: 516px;
  width: 280px;
}

.resource-panel--inventory {
  left: 762px;
  width: 760px;
}

.resource-panel__content--inventory {
  min-height: 362px;
}

.resource-panel--missions {
  left: 1008px;
  width: 428px;
}

.resource-panel__content--missions {
  min-height: 286px;
}

.resource-panel--missions.resource-panel--horizontal {
  width: 254px;
}

.resource-panel--missions.resource-panel--horizontal .resource-panel__content {
  grid-template-columns: 1fr;
}

.resource-panel--missions.resource-panel--horizontal .mission-log {
  grid-template-columns: 1fr;
  gap: 0;
}

.resource-panel--missions.resource-panel--horizontal .mission-log__list {
  display: none;
}

.resource-panel--missions.resource-panel--horizontal .mission-log__detail {
  gap: 10px;
  padding: 12px;
  width: 100%;
  min-width: 0;
}

.resource-panel--missions.resource-panel--horizontal .mission-log__detail-name {
  font-size: 0.6rem;
}

.resource-panel--missions.resource-panel--horizontal .mission-log__detail-description {
  font-size: 0.56rem;
  line-height: 1.65;
}

.resource-panel--missions.resource-panel--horizontal .mission-log__detail-progress {
  gap: 6px;
  width: 100%;
}

.resource-panel--missions.resource-panel--horizontal .mission-log__progress-row {
  padding: 7px 9px;
  font-size: 0.54rem;
  width: 100%;
  min-width: 0;
}

.inventory-layout {
  display: grid;
  grid-template-columns: 190px 220px 1fr;
  gap: 28px;
}

.inventory-equip {
  display: grid;
  gap: 8px;
  align-content: start;
  justify-items: start;
}

.inventory-equip .inventory-section {
  width: 100%;
  justify-items: start;
}

.inventory-equip .inventory-section__title,
.inventory-items .inventory-section__title {
  width: 100%;
}

.inventory-items .inventory-section__title {
  margin-left: 24px;
}

.inventory-preview,
.inventory-section,
.inventory-items {
  display: grid;
  gap: 8px;
  position: relative;
}

.inventory-preview__title,
.inventory-section__title {
  color: var(--accent-strong);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.inventory-preview__stage,
.inventory-slot,
.inventory-item {
  border: 1px solid rgba(127, 219, 255, 0.12);
  background: rgba(7, 18, 31, calc(var(--hub-opacity) * 0.34));
}

.inventory-preview__stage {
  position: relative;
  height: 286px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: grab;
  backdrop-filter: blur(var(--hub-blur-soft));
}

.inventory-preview__stage::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(127, 219, 255, 0.12);
  border-radius: 14px;
  pointer-events: none;
}

.inventory-preview__ship {
  width: 148px;
  height: 148px;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.32));
  transform-origin: center center;
  pointer-events: none;
}

.inventory-slots {
  display: grid;
  gap: 6px;
  width: max-content;
  justify-content: start;
  justify-items: start;
}

.inventory-slots--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.inventory-slots--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.inventory-slots--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.inventory-slots--single {
  grid-template-columns: 58px;
  justify-content: start;
}

.inventory-slot {
  width: 48px;
  aspect-ratio: 1 / 1;
  min-height: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  justify-content: center;
  padding: 6px;
  color: rgba(235, 247, 255, 0.46);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(var(--hub-blur-soft));
  position: relative;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
}

.inventory-slot--equipment {
  background:
    linear-gradient(180deg, rgba(6, 20, 34, calc(var(--hub-opacity) * 0.42)), rgba(4, 11, 20, calc(var(--hub-opacity) * 0.32)));
  box-shadow:
    inset 0 0 18px rgba(127, 219, 255, 0.05),
    0 10px 18px rgba(0, 0, 0, 0.12);
}

.inventory-slot::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(127, 219, 255, 0.14);
  border-radius: 10px;
}

.inventory-slot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(127, 219, 255, 0.1);
  border-radius: 5px;
  transform: translate(-50%, -58%);
  box-shadow:
    inset 0 0 8px rgba(127, 219, 255, 0.04),
    0 0 12px rgba(127, 219, 255, 0.04);
}

.inventory-slot--drive-ready {
  border-color: rgba(127, 219, 255, 0.32);
  box-shadow:
    inset 0 0 18px rgba(127, 219, 255, 0.08),
    0 0 18px rgba(127, 219, 255, 0.12);
}

.inventory-slot--drop-target {
  border-color: rgba(255, 212, 127, 0.38);
  box-shadow:
    inset 0 0 18px rgba(255, 212, 127, 0.08),
    0 0 20px rgba(255, 212, 127, 0.16);
}

.inventory-slot__equipped-thumb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  object-fit: contain;
  transform: translate(-50%, -62%);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.24));
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.inventory-items__grid {
  display: grid;
  width: 220px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  align-content: start;
  justify-content: start;
  margin-left: 24px;
}

.inventory-item {
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 6px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  backdrop-filter: blur(var(--hub-blur-soft));
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.inventory-item--equipable {
  cursor: grab;
}

.inventory-item--equipable:hover {
  border-color: rgba(127, 219, 255, 0.28);
  box-shadow: 0 0 16px rgba(127, 219, 255, 0.1);
}

.inventory-item--empty {
  place-items: center;
  align-content: center;
  border-style: dashed;
  color: rgba(235, 247, 255, 0.26);
}

.inventory-item--empty::before {
  content: "+";
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.5;
}

.inventory-item__thumb {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.24));
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.inventory-item__name,
.inventory-item__meta {
  font-family: Orbitron, Eurostile, sans-serif;
  text-transform: uppercase;
}

.inventory-item__name {
  color: rgba(235, 247, 255, 0.88);
  font-size: 0.54rem;
  letter-spacing: 0.09em;
}

.inventory-item__meta {
  color: rgba(255, 212, 127, 0.86);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
}

.inventory-item-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 140;
  width: 188px;
  padding: 10px 12px;
  border: 1px solid rgba(127, 219, 255, 0.16);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(5, 17, 31, calc(var(--hub-opacity) * 0.86)), rgba(4, 12, 22, calc(var(--hub-opacity) * 0.72))),
    radial-gradient(circle at top left, rgba(127, 219, 255, 0.08), transparent 42%);
  box-shadow:
    0 14px 24px rgba(0, 0, 0, 0.24),
    inset 0 0 16px rgba(127, 219, 255, 0.05);
  backdrop-filter: blur(var(--hub-blur));
  pointer-events: none;
}

.inventory-item-tooltip--hidden {
  display: none;
}

.inventory-item-tooltip__name,
.inventory-item-tooltip__meta,
.inventory-item-tooltip__desc {
  font-family: Orbitron, Eurostile, sans-serif;
  text-transform: uppercase;
}

.inventory-item-tooltip__name {
  color: rgba(235, 247, 255, 0.92);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}

.inventory-item-tooltip__meta {
  margin-top: 4px;
  color: rgba(255, 212, 127, 0.88);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
}

.inventory-item-tooltip__desc {
  margin-top: 8px;
  color: rgba(220, 238, 255, 0.78);
  font-size: 0.5rem;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

.inventory-drag-ghost {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 80;
  width: 64px;
  height: 64px;
  padding: 8px;
  border: 1px solid rgba(127, 219, 255, 0.28);
  border-radius: 14px;
  background: rgba(7, 18, 31, 0.86);
  backdrop-filter: blur(var(--hub-blur-soft));
  box-shadow: 0 14px 22px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.inventory-drag-ghost img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.resource-panel--settings {
  left: auto;
  right: 24px;
  top: 24px;
  width: 296px;
}

.resource-panel__title,
.resource-panel__meter,
.resource-panel__resource {
  font-family: Orbitron, Eurostile, sans-serif;
}

.resource-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  cursor: grab;
}

.resource-panel__title {
  appearance: none;
  border: 0;
  padding: 2px 0 2px 14px;
  background: transparent;
  color: var(--accent-strong);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.resource-panel__title::before {
  content: "◂";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 214, 146, 0.9);
  font-size: 0.58rem;
  opacity: 0.92;
}

.resource-panel__toggle {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(127, 219, 255, 0.18);
  border-radius: 8px;
  background: rgba(7, 18, 31, 0.34);
  color: var(--accent-strong);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.72rem;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.resource-panel__content {
  display: grid;
  gap: 10px;
}

.resource-panel__metric-group {
  display: grid;
}

.resource-panel__meter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  color: rgba(235, 247, 255, 0.72);
  font-size: 0.53rem;
  letter-spacing: 0.08em;
}

.resource-panel__meter strong {
  color: rgba(255, 212, 127, 0.92);
  font-size: 0.57rem;
}

.resource-panel__bar {
  height: 6px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(7, 18, 31, 0.72);
  border: 1px solid rgba(127, 219, 255, 0.1);
}

.resource-panel__bar--minor {
  height: 5px;
}

.resource-panel__bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(127, 219, 255, 0.72), rgba(184, 243, 255, 1));
}

.resource-panel__bar-fill--minor {
  background: linear-gradient(90deg, rgba(255, 212, 127, 0.74), rgba(255, 160, 93, 0.95));
}

.resource-panel__bar-fill--shield {
  background: linear-gradient(90deg, rgba(125, 219, 255, 0.75), rgba(239, 255, 255, 0.98));
}

.resource-panel__bar-fill--health {
  background: linear-gradient(90deg, rgba(88, 255, 175, 0.82), rgba(181, 255, 208, 0.98));
}

.resource-panel--support .resource-panel__content {
  gap: 6px;
}

.resource-panel--support .resource-panel__meter {
  justify-content: flex-start;
  gap: 14px;
  margin-top: 4px;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
}

.resource-panel--support .resource-panel__meter strong {
  font-size: 0.61rem;
  flex: 0 0 auto;
}

.resource-panel--support .resource-panel__bar {
  width: 50%;
  height: 10px;
  margin-top: 5px;
}

.resource-panel--support .resource-panel__bar--minor {
  height: 8px;
}

.resource-panel__resources {
  display: grid;
  gap: 6px;
}

.resource-panel--storage .resource-panel__resources {
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 4px;
}

.resource-panel--storage .resource-panel__resource {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 5px 6px;
  border-radius: 8px;
  font-size: 0.46rem;
  letter-spacing: 0.04em;
}

.resource-panel--storage .resource-panel__resource span,
.resource-panel--storage .resource-panel__resource strong {
  white-space: nowrap;
}

.resource-panel--storage .resource-panel__resource strong {
  font-size: 0.5rem;
}

.resource-panel--horizontal {
  width: min(460px, calc(100vw - 24px));
}

.resource-panel--support.resource-panel--horizontal {
  width: 272px;
}

.resource-panel--support.resource-panel--horizontal .resource-panel__bar {
  width: 72%;
}

.resource-panel--horizontal .resource-panel__content {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 8px;
}

.resource-panel--horizontal .resource-panel__metric-group,
.resource-panel--horizontal .resource-panel__resources {
  margin-top: 0;
}

.resource-panel--storage.resource-panel--horizontal {
  width: 176px;
}

.resource-panel--storage.resource-panel--horizontal .resource-panel__content {
  grid-template-columns: 1fr;
}

.resource-panel--storage.resource-panel--horizontal .resource-panel__resources {
  grid-template-columns: 1fr;
  gap: 4px;
}

.resource-panel--storage.resource-panel--horizontal .resource-panel__resource {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  width: 100%;
  padding: 5px 7px;
  border-radius: 8px;
  font-size: 0.5rem;
  letter-spacing: 0.05em;
}

.resource-panel--storage.resource-panel--horizontal .resource-panel__resource span,
.resource-panel--storage.resource-panel--horizontal .resource-panel__resource strong {
  white-space: nowrap;
}

.resource-panel--storage.resource-panel--horizontal .resource-panel__resource strong {
  font-size: 0.52rem;
}

.resource-panel--chat.resource-panel--horizontal {
  width: min(440px, calc(100vw - 24px));
}

.resource-panel--chat.resource-panel--horizontal .resource-panel__content--chat {
  grid-template-columns: 1fr;
}

.resource-panel--dragging {
  cursor: grabbing;
}

.resource-panel--dragging .resource-panel__header {
  cursor: grabbing;
}

.resource-panel--horizontal .resource-panel__toggle {
  transform: rotate(90deg);
}

.resource-panel--minimized {
  width: 42px;
  min-width: 42px;
  padding: 6px;
  border-radius: 12px;
}

.resource-panel--minimized .resource-panel__header {
  margin-bottom: 0;
  justify-content: center;
}

.resource-panel--minimized .resource-panel__title {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(127, 219, 255, 0.18);
  border-radius: 9px;
  background:
    radial-gradient(circle at 30% 30%, rgba(127, 219, 255, 0.2), transparent 60%),
    rgba(7, 18, 31, 0.46);
  box-shadow: inset 0 0 10px rgba(127, 219, 255, 0.08);
  font-size: 0;
  position: relative;
}

.resource-panel--minimized .resource-panel__title::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(184, 243, 255, 0.9);
  border-radius: 4px;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 10px rgba(127, 219, 255, 0.14),
    inset 0 0 8px rgba(127, 219, 255, 0.08);
}

.resource-panel--support.resource-panel--minimized .resource-panel__title::before {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border-color: rgba(140, 249, 255, 0.92);
  box-shadow:
    0 0 12px rgba(127, 219, 255, 0.18),
    inset 0 0 8px rgba(127, 219, 255, 0.1);
}

.resource-panel--support.resource-panel--minimized .resource-panel__title::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(184, 243, 255, 0.92);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(127, 219, 255, 0.26);
}

.resource-panel--chat.resource-panel--minimized .resource-panel__title::before {
  width: 14px;
  height: 10px;
  border-radius: 3px;
}

.resource-panel--settings.resource-panel--minimized .resource-panel__title::before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 2px solid rgba(184, 243, 255, 0.88);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(127, 219, 255, 0.12);
}

.resource-panel--settings.resource-panel--minimized .resource-panel__title::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 220, 150, 0.94);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(255, 220, 150, 0.14);
}

.resource-panel--chat.resource-panel--minimized .resource-panel__title::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 54%;
  width: 10px;
  height: 1px;
  background: rgba(184, 243, 255, 0.88);
  transform: translate(-50%, 0);
  box-shadow:
    0 -4px 0 rgba(184, 243, 255, 0.72),
    0 4px 0 rgba(184, 243, 255, 0.72);
}

.resource-panel--missions.resource-panel--minimized .resource-panel__title::before {
  width: 12px;
  height: 14px;
  border-radius: 3px;
  border-color: rgba(184, 243, 255, 0.9);
}

.resource-panel--missions.resource-panel--minimized .resource-panel__title::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 1px;
  background: rgba(255, 212, 127, 0.92);
  transform: translate(-50%, 0);
  box-shadow:
    0 -3px 0 rgba(255, 212, 127, 0.92),
    0 3px 0 rgba(255, 212, 127, 0.92);
}

.resource-panel--minimized .resource-panel__toggle,
.resource-panel--minimized .resource-panel__content {
  display: none;
}

.resource-panel__content--settings {
  gap: 12px;
}

.settings-group {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(127, 219, 255, 0.12);
  border-radius: 12px;
  background: rgba(6, 17, 29, 0.24);
}

.settings-group__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.settings-group__label,
.settings-group__value,
.settings-mode__option {
  font-family: Orbitron, Eurostile, sans-serif;
}

.settings-group__label {
  color: rgba(220, 241, 255, 0.84);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.settings-group__value {
  color: rgba(255, 217, 135, 0.96);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
}

.settings-mode {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.settings-mode__option {
  padding: 10px 8px;
  border: 1px solid rgba(127, 219, 255, 0.16);
  border-radius: 10px;
  background: rgba(7, 18, 31, 0.34);
  color: rgba(202, 238, 255, 0.84);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.settings-mode__option--active {
  border-color: rgba(255, 212, 127, 0.28);
  background: linear-gradient(180deg, rgba(20, 35, 54, 0.84), rgba(11, 24, 41, 0.68));
  color: rgba(255, 232, 184, 0.96);
  box-shadow: 0 0 14px rgba(255, 212, 127, 0.06);
}

.settings-slider {
  width: 100%;
  accent-color: #8ee8ff;
  cursor: pointer;
}

.resource-panel__resource {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border: 1px solid rgba(127, 219, 255, 0.1);
  border-radius: 10px;
  background: rgba(7, 18, 31, 0.34);
  color: rgba(235, 247, 255, 0.84);
  font-size: 0.56rem;
  letter-spacing: 0.06em;
}

.resource-panel__resource strong {
  color: rgba(255, 212, 127, 0.92);
  font-size: 0.58rem;
}

.resource-panel__resource--condritos strong {
  color: #c8b48a;
}

.resource-panel__resource--ferro strong {
  color: #aeb7c4;
}

.resource-panel__resource--ouro strong {
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 179, 0, 0.28);
}

.resource-panel__resource--diamante strong {
  color: #7fdbff;
  text-shadow: 0 0 10px rgba(239, 255, 255, 0.2);
}

.resource-panel__resource--rhodium strong {
  color: #e5e4e2;
  text-shadow: 0 0 10px rgba(207, 232, 255, 0.24);
}

.resource-panel__resource--iridium strong {
  color: #8b66ff;
  text-shadow: 0 0 10px rgba(106, 0, 255, 0.28);
}

.resource-panel__resource--osmium strong {
  color: #6f8ca5;
  text-shadow: 0 0 8px rgba(47, 79, 111, 0.24);
}

.resource-panel__resource--neutronium strong {
  color: #00a2ff;
  text-shadow: 0 0 12px rgba(0, 162, 255, 0.32);
}

.resource-panel__resource--eventite strong {
  color: #ff00aa;
  text-shadow:
    0 0 10px rgba(255, 0, 170, 0.28),
    0 0 18px rgba(0, 30, 255, 0.18);
}

.resource-panel__content--chat {
  gap: 8px;
}

.chat-panel__log {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-height: 140px;
  max-height: 180px;
  padding: 8px;
  overflow-y: auto;
  border: 1px solid rgba(127, 219, 255, 0.1);
  border-radius: 11px;
  background: rgba(7, 18, 31, 0.34);
  scrollbar-width: thin;
  scrollbar-color: rgba(127, 219, 255, 0.5) transparent;
}

.chat-panel__message {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 1px 6px;
  border-radius: 6px;
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  line-height: 1;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat-panel__message--system {
  border: 1px solid rgba(127, 219, 255, 0.12);
  background: rgba(6, 20, 34, 0.5);
  color: rgba(184, 243, 255, 0.84);
}

.chat-panel__message--self {
  justify-self: start;
  border: 1px solid rgba(255, 212, 127, 0.14);
  background: rgba(28, 18, 7, 0.44);
  color: rgba(255, 228, 176, 0.92);
}

.chat-panel__message--admin {
  border: 1px solid rgba(111, 255, 183, 0.16);
  background: rgba(8, 28, 20, 0.46);
  color: rgba(194, 255, 225, 0.94);
}

.chat-panel__composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}

.chat-panel__input {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(127, 219, 255, 0.12);
  border-radius: 10px;
  background: rgba(7, 18, 31, 0.42);
  color: var(--text);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.56rem;
  letter-spacing: 0.05em;
  outline: none;
}

.chat-panel__input::placeholder {
  color: rgba(184, 243, 255, 0.42);
}

.chat-panel__send {
  padding: 0 10px;
  border: 1px solid rgba(127, 219, 255, 0.16);
  border-radius: 10px;
  background: rgba(7, 18, 31, 0.38);
  color: var(--accent-strong);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.status-toast {
  position: absolute;
  left: 50%;
  top: 22px;
  z-index: 28;
  max-width: 380px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 120, 120, 0.22);
  border-radius: 14px;
  background: rgba(36, 11, 11, 0.74);
  color: rgba(255, 219, 219, 0.92);
  font-size: 0.76rem;
  line-height: 1.4;
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.status-toast--hidden {
  display: none;
}

.hud-panel {
  position: absolute;
  right: 24px;
  bottom: 24px;
  max-width: 320px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(5, 17, 31, calc(var(--hub-opacity) * 0.82)), rgba(4, 12, 22, calc(var(--hub-opacity) * 0.62))),
    radial-gradient(circle at top left, rgba(127, 219, 255, 0.08), transparent 42%);
  backdrop-filter: blur(var(--hub-blur-strong));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

.ship-profile-card {
  position: absolute;
  left: 24px;
  top: 24px;
  z-index: 23;
  width: 288px;
  padding: 14px 15px 15px;
  border: 1px solid rgba(127, 219, 255, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(6, 20, 34, calc(var(--hub-opacity) * 0.82 + 0.06)), rgba(4, 12, 22, calc(var(--hub-opacity) * 0.72 + 0.06))),
    radial-gradient(circle at top left, rgba(127, 219, 255, 0.12), transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(255, 189, 118, 0.12), transparent 28%);
  backdrop-filter: blur(var(--hub-blur-strong));
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.24),
    inset 0 0 22px rgba(127, 219, 255, 0.04);
  overflow: hidden;
}

.ship-profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(127, 219, 255, 0.08), transparent 30%, transparent 70%, rgba(255, 205, 129, 0.06));
  pointer-events: none;
}

.ship-profile-card__header {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
}

.ship-profile-card__title {
  padding-left: 28px;
}

.ship-profile-card__title::before {
  content: "✦";
  left: 0;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 214, 146, 0.86);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 228, 176, 0.98), rgba(255, 167, 85, 0.86) 42%, rgba(48, 90, 134, 0.94) 100%);
  color: rgba(255, 239, 205, 0.98);
  font-size: 0.58rem;
  line-height: 1;
  box-shadow:
    0 0 10px rgba(255, 176, 94, 0.18),
    inset 0 0 8px rgba(255, 255, 255, 0.08);
}

.ship-profile-card__content {
  position: relative;
  z-index: 1;
  display: grid;
}

.ship-profile-card__crest,
.ship-profile-card__stats,
.ship-profile-card__xp {
  position: relative;
  z-index: 1;
}

.ship-profile-card__crest {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.ship-profile-card__rank-emblem {
  position: relative;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0%, 90% 18%, 100% 58%, 74% 100%, 26% 100%, 0% 58%, 10% 18%);
  background:
    linear-gradient(180deg, rgba(255, 231, 184, 0.96), rgba(255, 167, 85, 0.88) 42%, rgba(56, 96, 138, 0.92));
  box-shadow:
    0 0 0 1px rgba(255, 228, 176, 0.18),
    0 0 18px rgba(255, 176, 94, 0.24);
}

.ship-profile-card__rank-emblem::after {
  content: "";
  position: absolute;
  inset: 3px;
  clip-path: inherit;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.32), transparent 48%),
    linear-gradient(180deg, rgba(24, 45, 74, 0.82), rgba(8, 20, 34, 0.92));
}

.ship-profile-card__rank-emblem span {
  position: relative;
  z-index: 1;
  color: rgba(255, 226, 179, 0.98);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 1.02rem;
  letter-spacing: 0.12em;
  text-shadow: 0 0 12px rgba(255, 184, 104, 0.3);
}

.ship-profile-card__eyebrow {
  color: rgba(148, 217, 255, 0.76);
  font-size: 0.54rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ship-profile-card__name {
  margin-top: 3px;
  color: rgba(241, 248, 255, 0.98);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
}

.ship-profile-card__vip {
  position: relative;
  min-width: 58px;
  padding: 6px 8px 5px;
  border: 1px solid rgba(127, 219, 255, 0.16);
  border-radius: 12px;
  text-align: center;
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ship-profile-card__vip-crown {
  position: absolute;
  left: 50%;
  top: -11px;
  transform: translateX(-50%);
  font-size: 0.8rem;
}

.ship-profile-card__vip--active {
  color: rgba(255, 232, 178, 0.98);
  background:
    linear-gradient(180deg, rgba(68, 47, 14, 0.92), rgba(38, 24, 7, 0.92));
  border-color: rgba(255, 211, 122, 0.34);
  box-shadow: 0 0 18px rgba(255, 189, 98, 0.16);
}

.ship-profile-card__vip--inactive {
  color: rgba(168, 182, 198, 0.82);
  background:
    linear-gradient(180deg, rgba(30, 39, 50, 0.86), rgba(15, 22, 30, 0.9));
  border-color: rgba(173, 187, 204, 0.14);
}

.ship-profile-card__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.ship-profile-card__stat {
  padding: 9px 10px;
  border: 1px solid rgba(127, 219, 255, 0.12);
  border-radius: 12px;
  background: rgba(4, 16, 28, 0.62);
}

.ship-profile-card__stat--inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ship-profile-card__stat span {
  display: block;
  color: rgba(167, 220, 255, 0.72);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ship-profile-card__stat strong {
  display: block;
  margin-top: 4px;
  color: rgba(239, 246, 255, 0.96);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.ship-profile-card__xp {
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(127, 219, 255, 0.12);
  border-radius: 14px;
  background: rgba(4, 16, 28, 0.64);
}

.ship-profile-card__xp-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 7px;
}

.ship-profile-card__xp-meta strong {
  color: rgba(241, 247, 255, 0.94);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.ship-profile-card__stat--inline span,
.ship-profile-card__stat--inline strong {
  margin: 0;
}

.ship-profile-card__stat--inline strong {
  flex-shrink: 0;
  text-align: right;
}

.ship-profile-card__xp-bar {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(6, 12, 18, 0.86), rgba(10, 22, 34, 0.86));
  box-shadow: inset 0 0 0 1px rgba(127, 219, 255, 0.08);
}

.ship-profile-card__xp-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(89, 219, 255, 0.96), rgba(255, 188, 96, 0.92));
  box-shadow:
    0 0 12px rgba(92, 214, 255, 0.18),
    0 0 18px rgba(255, 176, 94, 0.14);
}

.ship-profile-card.resource-panel--horizontal {
  width: 204px;
  min-width: 204px;
  padding: 12px 12px 13px;
}

.ship-profile-card.resource-panel--horizontal .ship-profile-card__header {
  margin-bottom: 8px;
}

.ship-profile-card.resource-panel--horizontal .ship-profile-card__crest {
  display: none;
}

.ship-profile-card.resource-panel--horizontal .ship-profile-card__stats {
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 0;
}

.ship-profile-card.resource-panel--horizontal .ship-profile-card__stat:first-child {
  display: none;
}

.ship-profile-card.resource-panel--horizontal .ship-profile-card__stat:last-child {
  padding: 7px 9px;
}

.ship-profile-card.resource-panel--horizontal .ship-profile-card__stat:last-child span {
  font-size: 0.5rem;
}

.ship-profile-card.resource-panel--horizontal .ship-profile-card__stat:last-child strong {
  margin-top: 3px;
  font-size: 0.74rem;
}

.ship-profile-card.resource-panel--horizontal .ship-profile-card__xp {
  margin-top: 8px;
  padding: 8px 9px;
  border-radius: 12px;
}

.ship-profile-card.resource-panel--horizontal .ship-profile-card__xp-meta {
  margin-bottom: 6px;
  gap: 6px;
}

.ship-profile-card.resource-panel--horizontal .ship-profile-card__xp-meta strong {
  font-size: 0.58rem;
}

.ship-profile-card.resource-panel--horizontal .ship-profile-card__xp-bar {
  height: 8px;
}

.ship-profile-card.resource-panel--minimized {
  width: 42px;
  min-width: 42px;
  padding: 6px;
  border-radius: 12px;
}

.ship-profile-card.resource-panel--minimized .ship-profile-card__header {
  margin-bottom: 0;
}

.ship-profile-card.resource-panel--minimized .ship-profile-card__title {
  width: 28px;
  height: 28px;
  padding: 0;
}

.ship-profile-card.resource-panel--minimized .ship-profile-card__title::before {
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ship-profile-card.resource-panel--minimized .ship-profile-card__content {
  display: none;
}

.minimap-panel {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 20;
  width: 238px;
  padding: 6px;
  border: 1px solid rgba(127, 219, 255, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(5, 17, 31, calc(var(--hub-opacity) * 0.72)), rgba(4, 12, 22, calc(var(--hub-opacity) * 0.54))),
    radial-gradient(circle at top left, rgba(127, 219, 255, 0.08), transparent 42%);
  backdrop-filter: blur(var(--hub-blur));
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.minimap-panel__header,
.minimap-coords-overlay {
  position: relative;
  z-index: 1;
}

.minimap-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  padding: 0 2px;
}

.minimap-title {
  color: var(--accent-strong);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
}

.minimap-zoom {
  display: flex;
  align-items: center;
  gap: 6px;
}

.minimap-zoom__button {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(127, 219, 255, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(7, 25, 41, calc(var(--hub-opacity) * 0.74 + 0.08)), rgba(4, 12, 22, calc(var(--hub-opacity) * 0.74 + 0.08)));
  color: var(--accent-strong);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.92rem;
  line-height: 1;
  cursor: pointer;
}

.minimap-zoom__button:hover {
  border-color: rgba(127, 219, 255, 0.5);
  box-shadow: 0 0 16px rgba(127, 219, 255, 0.16);
}

.minimap-stage {
  position: relative;
  z-index: 1;
  height: 176px;
  overflow: hidden;
  border: 1px solid rgba(127, 219, 255, 0.16);
  border-radius: 12px;
  background:
    radial-gradient(circle at center, rgba(15, 46, 72, calc(var(--hub-opacity) * 0.62)), rgba(2, 8, 16, calc(var(--hub-opacity) * 0.92 + 0.02))),
    linear-gradient(rgba(127, 219, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 219, 255, 0.05) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  box-shadow:
    inset 0 0 24px rgba(0, 0, 0, 0.42),
    0 0 16px rgba(127, 219, 255, 0.06);
}

.minimap-world {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  will-change: transform, width, height;
}

.minimap-map,
.minimap-clouds,
.minimap-asteroids,
.minimap-interactions {
  position: absolute;
  inset: 0;
}

.minimap-map {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url("assets/maps/1-1.png");
}

.minimap-clouds {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url("assets/maps/1-1nuvenscosmicas.png");
  opacity: 0.72;
  mix-blend-mode: screen;
  filter: blur(0.15px) saturate(1.18) contrast(1.1);
}

.minimap-asteroids {
  pointer-events: none;
}

.minimap-interactions {
  pointer-events: none;
  z-index: 1;
}

.minimap-asteroid {
  position: absolute;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(230, 239, 255, 0.95), rgba(167, 189, 222, 0.85) 34%, rgba(83, 104, 138, 0.95) 72%, rgba(33, 46, 68, 0.95) 100%);
  box-shadow:
    0 0 0 1px rgba(188, 220, 255, 0.12),
    0 0 6px rgba(127, 219, 255, 0.12);
  opacity: 0.9;
}

.minimap-interaction {
  position: absolute;
  width: 720px;
  height: 720px;
  margin-left: -360px;
  margin-top: -360px;
  display: grid;
  place-items: center;
  filter:
    drop-shadow(0 0 10px rgba(127, 219, 255, 0.22))
    drop-shadow(0 0 18px rgba(127, 219, 255, 0.14));
}

.minimap-interaction__sprite {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.98;
}

.minimap-interaction__badge {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 32px);
  transform: translateX(-50%);
  padding: 18px 36px;
  border: 1px solid rgba(127, 219, 255, 0.24);
  border-radius: 999px;
  background: rgba(5, 17, 31, 0.88);
  color: rgba(235, 247, 255, 0.92);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 4.8rem;
  letter-spacing: 0.12em;
  line-height: 1.1;
  white-space: nowrap;
}

.minimap-interaction--mothership .minimap-interaction__badge {
  color: rgba(184, 243, 255, 0.94);
}

.minimap-interaction--storage .minimap-interaction__badge {
  color: rgba(255, 225, 154, 0.94);
}

.minimap-interaction--orion .minimap-interaction__badge {
  color: rgba(133, 232, 255, 0.94);
}

.minimap-interaction--satellite .minimap-interaction__badge {
  color: rgba(183, 255, 214, 0.94);
}

body.graphics-basic .ship-sprite,
body.graphics-basic .miner-sprite,
body.graphics-basic .enemy-sprite,
body.graphics-basic .remote-player__sprite,
body.graphics-basic .remote-cargo-unit__sprite,
body.graphics-basic .remote-miner__sprite,
body.graphics-basic .remote-repair__sprite,
body.graphics-basic .civilian-scrapper__sprite,
body.graphics-basic .mothership-node__sprite,
body.graphics-basic .salvage-sprite {
  filter: none !important;
}

body.graphics-basic .player-shield-hit {
  border-width: 1px;
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04) 34%, transparent 72%);
  box-shadow:
    0 0 8px rgba(120, 255, 182, 0.14),
    inset 0 0 8px rgba(255, 255, 255, 0.05);
}

body.graphics-basic .laser-shot__glow,
body.graphics-basic .damage-number,
body.graphics-basic .ship-explosion__plasma,
body.graphics-basic .ship-explosion__spark,
body.graphics-basic .ship-explosion__ember,
body.graphics-basic .ship-explosion__fire-particle,
body.graphics-basic .ship-explosion__shockwave {
  filter: none !important;
}

.minimap-viewport {
  position: absolute;
  border: 1px solid rgba(127, 219, 255, 0.9);
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(127, 219, 255, 0.2),
    inset 0 0 0 1px rgba(127, 219, 255, 0.12);
  background: rgba(127, 219, 255, 0.06);
}

.minimap-player {
  position: absolute;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  margin-top: -7px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: radial-gradient(circle at center, #ffd47f 0 30%, #ff9b54 55%, #ff6f61 100%);
  box-shadow:
    0 0 0 6px rgba(255, 212, 127, 0.08),
    0 0 20px rgba(255, 164, 96, 0.5);
}

.minimap-player::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 2px;
  transform: translateY(-50%);
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(255, 212, 127, 0.95), rgba(255, 212, 127, 0));
}

.minimap-scan {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent, rgba(127, 219, 255, 0.06), transparent);
  animation: minimap-scan 5s linear infinite;
  pointer-events: none;
}

.minimap-coords-overlay {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 7px;
  border: 1px solid rgba(127, 219, 255, 0.14);
  border-radius: 999px;
  background: rgba(4, 11, 20, calc(var(--hub-opacity) * 0.38));
  color: rgba(235, 247, 255, 0.82);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  backdrop-filter: blur(var(--hub-blur-soft));
}

@keyframes minimap-scan {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

.hud-title {
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.26em;
}

.hud-panel p {
  margin: 0;
  color: rgba(235, 247, 255, 0.72);
  line-height: 1.45;
  font-size: 0.95rem;
}

.utility-bar {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
}

.utility-bar__top,
.utility-bar__bottom,
.utility-bar__missiles {
  display: grid;
  gap: 10px;
}

.utility-bar__top {
  grid-template-columns: 174px 174px 174px;
}

.utility-bar__bottom {
  grid-template-columns: repeat(9, 58px);
}

.utility-bar__missiles {
  grid-template-columns: repeat(3, 58px);
}

.utility-bar__spacer {
  width: 100%;
  min-height: 1px;
}

.utility-slot {
  position: relative;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(127, 219, 255, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(6, 20, 34, calc(var(--hub-opacity) * 0.74 + 0.08)), rgba(4, 11, 20, calc(var(--hub-opacity) * 0.72 + 0.08)));
  box-shadow:
    inset 0 0 18px rgba(127, 219, 255, 0.04),
    0 10px 18px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(var(--hub-blur-soft));
}

.utility-slot--active {
  border-color: rgba(127, 219, 255, 0.32);
}

.utility-slot--selected {
  border-color: rgba(255, 207, 118, 0.52);
  box-shadow:
    inset 0 0 20px rgba(255, 207, 118, 0.1),
    0 12px 24px rgba(0, 0, 0, 0.24);
}

.utility-slot--disabled {
  border-color: rgba(127, 219, 255, 0.1);
  opacity: 0.52;
}

.utility-slot img {
  width: 76%;
  height: 76%;
  object-fit: contain;
  margin: 7px;
  filter: drop-shadow(0 0 8px rgba(127, 219, 255, 0.1));
  pointer-events: none;
}

.utility-slot img.utility-slot__icon--hidden {
  opacity: 0;
}

.utility-slot__key {
  position: absolute;
  left: 7px;
  top: 6px;
  color: rgba(235, 247, 255, 0.74);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}

.utility-slot__count {
  position: absolute;
  right: 6px;
  bottom: 6px;
  min-width: 20px;
  padding: 2px 5px;
  border: 1px solid rgba(127, 219, 255, 0.14);
  border-radius: 999px;
  background: rgba(3, 11, 20, 0.9);
  color: rgba(235, 247, 255, 0.82);
  font-family: Orbitron, Eurostile, sans-serif;
  font-size: 0.46rem;
  line-height: 1;
  text-align: center;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.missile-shot {
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 42px;
  margin-left: -18px;
  margin-top: -21px;
  opacity: 0;
  will-change: transform, opacity;
}

.missile-shot__sprite {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 10px rgba(255, 188, 122, 0.12));
}

.tutorial-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

.tutorial-overlay--hidden {
  display: none;
}

.tutorial-card {
  position: absolute;
  left: 50%;
  top: 14%;
  width: min(420px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid rgba(127, 219, 255, 0.24);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(5, 17, 31, calc(var(--hub-opacity) * 0.92)), rgba(4, 12, 22, calc(var(--hub-opacity) * 0.82))),
    radial-gradient(circle at top left, rgba(127, 219, 255, 0.08), transparent 42%);
  box-shadow:
    0 18px 28px rgba(0, 0, 0, 0.28),
    inset 0 0 20px rgba(127, 219, 255, 0.05);
  backdrop-filter: blur(var(--hub-blur-strong));
  transform: translateX(-50%);
  pointer-events: auto;
}

.tutorial-card__eyebrow,
.tutorial-card__text,
.tutorial-card__button {
  font-family: Orbitron, Eurostile, sans-serif;
}

.tutorial-card__eyebrow {
  color: rgba(255, 212, 127, 0.9);
  font-size: 0.54rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tutorial-card__text {
  margin-top: 8px;
  color: rgba(235, 247, 255, 0.92);
  font-size: 0.66rem;
  line-height: 1.8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tutorial-card__button {
  margin-top: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(127, 219, 255, 0.22);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(8, 25, 41, calc(var(--hub-opacity) * 0.72 + 0.08)), rgba(4, 11, 20, calc(var(--hub-opacity) * 0.72 + 0.08)));
  color: var(--accent-strong);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.tutorial-card__button--hidden {
  display: none;
}

.tutorial-overlay__arrow {
  position: absolute;
  width: 84px;
  height: 84px;
  pointer-events: none;
}

.tutorial-overlay__arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  height: 56px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 212, 127, 0.96), rgba(255, 212, 127, 0));
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(255, 212, 127, 0.26);
}

.tutorial-overlay__arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46px;
  width: 18px;
  height: 18px;
  border-right: 3px solid rgba(255, 212, 127, 0.96);
  border-bottom: 3px solid rgba(255, 212, 127, 0.96);
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 0 0 12px rgba(255, 212, 127, 0.22);
}

.tutorial-target {
  position: relative;
  z-index: 91;
  box-shadow:
    0 0 0 2px rgba(255, 212, 127, 0.6),
    0 0 24px rgba(255, 212, 127, 0.22) !important;
}

@media (max-width: 720px) {
  .key-shop-modal__card {
    width: min(94vw, 520px);
    padding: 24px 18px 18px;
  }

  .key-shop-modal__packages {
    grid-template-columns: 1fr;
  }

  .key-shop-modal__package {
    min-height: 188px;
  }

  .player-entity {
    width: 132px;
    height: 132px;
    margin-left: -66px;
    margin-top: -66px;
  }

  .player-nick {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
  }

  .speed-chip {
    font-size: 0.62rem;
  }

  .hud-panel {
    right: 14px;
    bottom: 86px;
    max-width: min(320px, calc(100vw - 28px));
  }

  .minimap-panel {
    left: 14px;
    bottom: 14px;
    width: min(238px, calc(100vw - 28px));
  }

  .resource-panel {
    left: 14px;
    top: 14px;
    width: min(254px, calc(100vw - 28px));
  }

  .ship-profile-card {
    left: 14px;
    top: 14px;
    width: min(288px, calc(100vw - 28px));
  }

  .resource-panel--support {
    left: 14px;
    top: 190px;
  }

  .resource-panel--chat {
    left: 14px;
    top: 248px;
    width: min(280px, calc(100vw - 28px));
  }

  .minimap-stage {
    height: 160px;
  }

  .minimap-panel__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .utility-bar {
    gap: 6px;
    bottom: 12px;
  }

  .utility-bar__top {
    grid-template-columns: 126px 126px 126px;
    gap: 6px;
  }

  .utility-bar__bottom {
    grid-template-columns: repeat(9, 42px);
    gap: 6px;
  }

  .utility-bar__missiles {
    grid-template-columns: repeat(3, 42px);
    gap: 6px;
  }

  .utility-slot {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .utility-slot__key {
    left: 5px;
    top: 4px;
    font-size: 0.5rem;
  }
}
