@import url("../styles/secondPlatform.css?v=20260806roundednav1");
@import url("../styles/firstBlock.css?v=20260810webp1");
@import url("../styles/map.css?v=20260322a");
@import url("../styles/bord.css?v=20260812minenextproduction1");
@import url("../styles/travel.css?v=20260814missionclock1");
@import url("../styles/laboratory.css?v=20260905boxstars1");
@import url("../styles/market.css?v=20260805desktopbalance2");
@import url("./css/map.css?v=20260325a");
@import url("./css/map-flight-controls.css?v=20260326a");
@import url("./css/city-fleet-hud.css?v=20260904citydarkvertex1");
@import url("./css/report-jump.css?v=20260326a");
@import url("./css/building-modal-shell.css?v=20260904darkvertex2");
@import url("./css/lab-modal-shell.css?v=20260810webp1");
@import url("./css/city-resource-bars.css?v=20260429solunebar");
@import url("./css/city-build-board.css?v=20260413j");
@import url("./css/mobile-layout-fixes.css?v=20260429mobilenoglow2");
@import url("./css/map-fullscreen.css?v=20260812fullscreenlocked1");
@import url("./css/map-planet-hover-card.css?v=20260904hoverstatslarge2");

@font-face {
  font-family: 'Fever';
  src: url('../styles/Fever.woff2') format('woff2'),
       url('../styles/Fever.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

.ship-image-pending,
.game-city-ship-preview-placeholder,
.game-city-fleet-icon-placeholder {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.58);
  border: 1px dashed rgba(153, 69, 255, 0.48);
  background: rgba(0, 0, 0, 0.28);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ship-image-pending {
  width: 118px;
  height: 82px;
  border-radius: 10px;
  font-size: 12px;
}

.game-city-ship-preview-placeholder {
  width: 100%;
  min-height: 120px;
  border-radius: 12px;
}

.game-city-fleet-icon-placeholder {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 11px;
}

:root {
  --panel: rgba(8, 14, 24, 0.76);
  --panel-strong: rgba(5, 10, 18, 0.92);
  --text: #eef7ff;
  --muted: rgba(232, 244, 255, 0.76);
  --line: rgba(20, 241, 149, 0.26);
  --line-2: rgba(153, 69, 255, 0.26);
  --sol-a: #9945ff;
  --sol-b: #14f195;
  --sol-c: #34d8ff;
  --danger: #ff6767;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

/* Desktop parity: retain the wide layout while sharing the translucent mobile skin. */
@media (min-width: 761px) {
  #gameMessagesPanel.messages-container {
    background: transparent;
  }

  #gameMessagesPanel #gameMessagesRoot {
    padding: 0 8px 20px 0;
  }

  #gameMessagesPanel .game-messages-compose,
  #gameMessagesPanel .msg-card,
  #gameMessagesPanel .market-empty {
    border-color: rgba(20, 241, 149, 0.16);
    background: linear-gradient(145deg, rgba(8, 31, 39, 0.64), rgba(3, 16, 24, 0.7));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(153, 69, 255, 0.06) inset;
  }

  #gameMessagesPanel .game-messages-compose-title,
  #gameMessagesPanel .msg-title {
    font-family: 'Fever', Arial, sans-serif;
    background: linear-gradient(90deg, #9945ff, #14f195, #9945ff);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #14f195;
  }

  #gameMessagesPanel .game-messages-compose-title {
    font-size: 22px;
    letter-spacing: 0.04em;
  }

  #gameMessagesPanel .game-messages-compose-controls {
    grid-template-columns: minmax(210px, 0.34fr) minmax(0, 1fr);
    align-items: stretch;
  }

  #gameMessagesPanel .game-messages-compose-controls .market-select {
    grid-column: 1;
    grid-row: 1;
  }

  #gameMessagesPanel .game-messages-compose-controls .game-message-input {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  #gameMessagesPanel .game-messages-compose-controls .market-action-btn {
    grid-column: 1;
    grid-row: 2;
  }

  #gameMessagesPanel .market-select,
  #gameMessagesPanel .game-message-input {
    border-color: rgba(20, 241, 149, 0.18);
    background: rgba(1, 13, 19, 0.52);
  }

#gameMessagesPanel .msg-card.is-unread {
    border-color: rgba(20, 241, 149, 0.5);
    box-shadow: 0 0 0 1px rgba(20, 241, 149, 0.14), 0 12px 28px rgba(0, 0, 0, 0.16);
  }
}

/* Mobile Messages parity overrides stay after the base component rules. */
@media (max-width: 760px) {
  #gameMessagesPanel.messages-container,
  #gameMessagesPanel #gameMessagesRoot {
    background: transparent;
  }

  #gameMessagesPanel #gameMessagesRoot {
    padding: 0 8px 18px;
  }

  #gameMessagesPanel .game-messages-compose,
  #gameMessagesPanel .msg-card,
  #gameMessagesPanel .market-empty {
    border-color: rgba(20, 241, 149, 0.16);
    background: linear-gradient(145deg, rgba(8, 31, 39, 0.64), rgba(3, 16, 24, 0.7));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(153, 69, 255, 0.05) inset;
  }

  #gameMessagesPanel .game-messages-compose-title,
  #gameMessagesPanel .msg-title {
    font-family: 'Fever', Arial, sans-serif;
    background: linear-gradient(90deg, #9945ff, #14f195, #9945ff);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #14f195;
  }

  #gameMessagesPanel .game-messages-compose-title {
    font-size: 21px;
    letter-spacing: 0.04em;
  }

  #gameMessagesPanel .market-select,
  #gameMessagesPanel .game-message-input,
  #gameMessagesPanel .msg-avatar {
    border-color: rgba(20, 241, 149, 0.18);
    background: rgba(1, 13, 19, 0.52);
  }

  #gameMessagesPanel .msg-card.is-unread {
    border-color: rgba(20, 241, 149, 0.5);
    box-shadow: 0 0 0 1px rgba(20, 241, 149, 0.14), 0 10px 24px rgba(0, 0, 0, 0.14);
  }
}

/* Mobile Messages shares the translucent card skin used by the other sections. */
@media (max-width: 760px) {
  #gameMessagesPanel.messages-container,
  #gameMessagesPanel #gameMessagesRoot {
    background: transparent;
  }

  #gameMessagesPanel #gameMessagesRoot {
    padding: 0 8px 18px;
  }

  #gameMessagesPanel .game-messages-compose,
  #gameMessagesPanel .msg-card,
  #gameMessagesPanel .market-empty {
    border-color: rgba(20, 241, 149, 0.16);
    background: linear-gradient(145deg, rgba(8, 31, 39, 0.64), rgba(3, 16, 24, 0.7));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(153, 69, 255, 0.05) inset;
  }

  #gameMessagesPanel .game-messages-compose-title,
  #gameMessagesPanel .msg-title {
    font-family: 'Fever', Arial, sans-serif;
    background: linear-gradient(90deg, #9945ff, #14f195, #9945ff);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #14f195;
  }

  #gameMessagesPanel .game-messages-compose-title {
    font-size: 21px;
    letter-spacing: 0.04em;
  }

  #gameMessagesPanel .market-select,
  #gameMessagesPanel .game-message-input {
    border-color: rgba(20, 241, 149, 0.18);
    background: rgba(1, 13, 19, 0.52);
  }

  #gameMessagesPanel .msg-avatar {
    border-color: rgba(20, 241, 149, 0.2);
    background: rgba(1, 13, 19, 0.52);
  }

  #gameMessagesPanel .msg-card.is-unread {
    border-color: rgba(20, 241, 149, 0.5);
    box-shadow: 0 0 0 1px rgba(20, 241, 149, 0.14), 0 10px 24px rgba(0, 0, 0, 0.14);
  }
}

* {
  box-sizing: border-box;
}

/* Shared modal close button style (needed by demo boxshop modal inside V2). */
.em-close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  z-index: 60;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.em-close-btn:hover {
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.55);
  background: rgba(30, 0, 0, 0.45);
  box-shadow: 0 0 12px rgba(255, 107, 107, 0.22);
}

.em-close-btn:active {
  opacity: 0.92;
}

.em-close-btn:focus-visible {
  outline: 2px solid rgba(20, 241, 149, 0.9);
  outline-offset: 2px;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: 'Fever', Arial, sans-serif;
  color: var(--text);
  background: #03060a;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 16% 20%, rgba(20, 241, 149, 0.16), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(153, 69, 255, 0.18), transparent 22%),
    radial-gradient(circle at 50% 82%, rgba(52, 216, 255, 0.14), transparent 24%);
  pointer-events: none;
  z-index: 1;
}

.mainBackground {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background-image: url('../foto/backgrounds/MainBackground.webp') !important;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

.scene-backdrop-tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 10, 0.44), rgba(4, 9, 16, 0.68)),
    radial-gradient(circle at center, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.42));
  pointer-events: none;
  z-index: 0;
}

.scene-root {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100vw - 28px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 22px 0 84px;
}

body[data-stage="auth"] .scene-root {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-bottom: 22px;
}

body[data-stage="map"] {
  overflow-y: auto;
}

html.travel-modal-open,
body.travel-modal-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

body[data-stage="map"] .scene-root {
  width: min(1280px, calc(100vw - 40px));
  min-height: auto;
  padding: 20px 0 48px;
  align-items: start;
}

body[data-stage="map"]::before {
  display: none;
}

body[data-stage="map"] .scene-backdrop-tint {
  background: transparent;
}

.scene {
  width: 100%;
  display: none;
  align-items: center;
  justify-content: center;
}

.scene.is-active {
  display: flex;
}

#mapScene {
  align-items: stretch;
  justify-content: stretch;
}

#mapScene.is-active {
  display: block;
}

.game-world-shell {
  display: block;
  width: 100%;
}

.game-world-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 4px 14px;
  margin-bottom: 6px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.game-world-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.95;
  text-transform: uppercase;
}

#mapScene .game-world-copy .eyebrow,
#mapScene .game-world-copy h1 {
  display: none;
}

.game-world-commander {
  margin-top: 0;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--text);
}

.game-world-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.game-world-hud {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.game-world-box-anchor {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-width: 110px;
  align-self: stretch;
}

.game-world-box-trigger {
  width: 66px;
  min-height: 52px;
  height: 52px;
  padding: 0 8px;
  border: 1px solid rgba(20, 241, 149, 0.36);
  border-radius: 14px;
  background:
    radial-gradient(circle at 32% 26%, rgba(20, 241, 149, 0.2), transparent 62%),
    rgba(3, 8, 14, 0.6);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(153, 69, 255, 0.18) inset;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.game-world-box-trigger img {
  width: 34px;
  height: 34px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  filter:
    drop-shadow(0 0 10px rgba(20, 241, 149, 0.5))
    drop-shadow(0 0 14px rgba(153, 69, 255, 0.35));
}

.game-world-box-trigger:hover {
  transform: translateY(-1px) scale(1.02);
  border-color: rgba(20, 241, 149, 0.58);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(20, 241, 149, 0.2),
    0 0 0 1px rgba(153, 69, 255, 0.24) inset;
}

.game-world-box-trigger:active {
  transform: translateY(0) scale(0.99);
}

.game-world-clock {
  min-width: 218px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.game-world-clock-value {
  font-size: clamp(20px, 2.8vw, 28px);
  line-height: 1;
  color: var(--sol-b);
}

.game-world-clock-track {
  height: 10px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.game-world-clock-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sol-a), var(--sol-b), var(--sol-c));
  box-shadow: 0 0 18px rgba(20, 241, 149, 0.36);
}

.game-world-summary {
  min-height: 0;
  max-width: 290px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.game-world-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  justify-content: flex-end;
}

.game-world-actions .action-btn {
  width: auto;
  min-width: 120px;
}

.game-world-signout-label {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  gap: 2px;
}

.game-world-actions .game-world-box-trigger {
  flex: 0 0 auto;
}

@media (min-width: 981px) {
  .game-world-actions {
    align-items: stretch;
  }

  .game-world-actions .action-btn {
    height: 100%;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .game-world-actions #signOutBtn {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .game-world-actions .game-world-box-trigger {
    width: 120px;
    height: 100%;
    min-height: 0;
  }

  .game-world-actions .game-world-box-trigger img {
    width: 68px;
    height: 68px;
  }
}

#mapScene #secondPlatform {
  width: 100%;
}

#secondContent {
  position: relative;
}

#mapScene #secondPlatform[data-active-component] #secondContent {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  height: 1250px;
  min-height: 0;
  padding: 30px;
}

#mapScene #secondPlatform[data-active-component="map"] #secondContent {
  overflow: hidden;
}

.map-viewport-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  max-width: 100%;
}

#mapViewport {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  touch-action: none;
  overscroll-behavior: contain;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  max-width: 100%;
}

#mapViewport.is-dragging {
  cursor: grabbing;
}

#mapViewport #map {
  position: relative;
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
  margin: 0 auto;
}

#mapViewport #map .tile.tile-ghost {
  cursor: default;
  pointer-events: none;
  background-color: var(--em-map-fog-fill);
  border-color: var(--em-map-grid-line);
}

#mapViewport #map .tile.tile-ghost:hover {
  background-color: var(--em-map-fog-fill);
}

.map-zoom-controls {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  align-self: stretch;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin: 14px 0 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  z-index: 7;
  pointer-events: auto;
}

.map-zoom-btn {
  width: 58px;
  height: 58px;
  min-height: 52px;
  border: 1px solid rgba(20, 241, 149, 0.46);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(153, 69, 255, 0.2), rgba(20, 241, 149, 0.16)),
    rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: 'Fever', Arial, sans-serif;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.map-zoom-btn:hover:not(:disabled) {
  border-color: rgba(20, 241, 149, 0.84);
  box-shadow: 0 12px 24px rgba(20, 241, 149, 0.14);
  transform: translateY(-1px);
}

.map-zoom-btn:disabled {
  opacity: 0.46;
  border-color: rgba(255, 255, 255, 0.14);
  cursor: default;
  box-shadow: none;
}

#gameReportsPanel[hidden] {
  display: none !important;
}

#gameReportsPanel.reports-container {
  width: 100%;
  max-width: none;
  flex: 1 1 auto;
  align-self: stretch;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#gameReportsPanel.reports-container h2 {
  margin: 0 0 18px;
  font-size: 32px;
}

#reportsFeed {
  width: 100%;
  overflow: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

#reportsFeed::-webkit-scrollbar {
  width: 10px;
}

#reportsFeed::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

#reportsFeed::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}

.report-list-row {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.26);
  color: #e8f5ee;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    transform 140ms ease;
}

.report-list-row:hover,
.report-list-row:focus-visible {
  border-color: rgba(20, 241, 149, 0.3);
  background: rgba(0, 0, 0, 0.34);
  outline: none;
  transform: translateY(-1px);
}

.report-list-row--danger {
  border-color: rgba(255, 92, 92, 0.42);
}

.report-list-row--danger:hover,
.report-list-row--danger:focus-visible {
  border-color: rgba(255, 92, 92, 0.62);
  background: rgba(20, 0, 0, 0.34);
}

.report-list-row--unread {
  border-color: rgba(20, 241, 149, 0.62);
  background: rgba(6, 20, 14, 0.44);
  box-shadow: inset 0 0 0 1px rgba(20, 241, 149, 0.18);
}

.report-list-row--unread:hover,
.report-list-row--unread:focus-visible {
  border-color: rgba(20, 241, 149, 0.82);
  background: rgba(8, 28, 19, 0.5);
}

.report-list-row--danger.report-list-row--unread {
  border-color: rgba(255, 92, 92, 0.78);
  background: rgba(28, 4, 4, 0.46);
  box-shadow: inset 0 0 0 1px rgba(255, 92, 92, 0.2);
}

.report-list-summary {
  display: block;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(236, 248, 255, 0.92);
}

.report-list-empty {
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: rgba(236, 248, 255, 0.82);
  font-size: 12px;
  line-height: 1.3;
}

.report-filter-row {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  background: transparent;
}

.report-filter-btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 32px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: rgba(232, 244, 252, 0.66);
  font-family: 'Fever', Arial, sans-serif;
  font-size: 18px;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease;
}

.report-filter-btn:hover,
.report-filter-btn:focus-visible {
  border-color: rgba(153, 69, 255, 0.24);
  background: rgba(153, 69, 255, 0.08);
  color: #f3fbff;
  outline: none;
}

.report-filter-btn.is-active {
  border-color: rgba(20, 241, 149, 0.26);
  background: linear-gradient(90deg, rgba(153, 69, 255, 0.15), rgba(20, 241, 149, 0.11));
  color: var(--sol-b, #14f195);
}

@media (max-width: 640px) {
  .report-filter-btn {
    min-height: 30px;
    padding: 5px 4px;
    font-size: 15px;
  }
}

.report-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 8px;
}

.report-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  color: #eaf7ff;
  box-shadow: none;
}

.report-card--mail {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    transform 140ms ease;
}

.report-card--mail:hover,
.report-card--mail:focus-visible {
  border-color: rgba(20, 241, 149, 0.38);
  background: rgba(4, 18, 20, 0.36);
  outline: none;
  transform: translateY(-1px);
}

.report-card--mail.is-unread {
  border-color: rgba(20, 241, 149, 0.7);
  box-shadow:
    inset 0 0 0 1px rgba(20, 241, 149, 0.22),
    0 0 18px rgba(20, 241, 149, 0.14);
}

.report-card--mail.has-outcome-ribbon {
  padding-top: 34px;
}

.report-card-status-ribbon {
  position: absolute;
  inset: 0 0 auto;
  min-height: 22px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-family: 'Fever', Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.report-card-status-ribbon--victory {
  border-bottom: 1px solid rgba(20, 241, 149, 0.34);
  background: linear-gradient(90deg, rgba(20, 241, 149, 0.42), rgba(20, 241, 149, 0.08));
  color: #e1fff4;
}

.report-card-status-ribbon--defeat {
  border-bottom: 1px solid rgba(255, 92, 92, 0.44);
  background: linear-gradient(90deg, rgba(255, 92, 92, 0.44), rgba(255, 92, 92, 0.08));
  color: #ffe1e1;
}

.report-card--victory {
  border-color: rgba(20, 241, 149, 0.28);
  box-shadow: inset 0 0 18px rgba(20, 241, 149, 0.07);
}

.report-card--defeat {
  border-color: rgba(255, 92, 92, 0.48);
  background: rgba(18, 2, 4, 0.32);
}

.report-card-head {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 86px auto;
  gap: 12px;
  align-items: start;
}

.report-card--mail.has-mission-marker .report-card-head {
  grid-template-columns: 86px minmax(0, 1fr) 48px 86px auto;
}

.report-card-icon-wrap {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: grid;
  place-items: center;
  overflow: visible;
  align-self: center;
  justify-self: center;
}

.report-card-icon-pair {
  position: relative;
  width: 64px;
  min-height: 50px;
}

.report-card-icon-pair .report-card-icon-wrap {
  position: absolute;
}

.report-card-icon-wrap--source {
  left: 0;
  top: 0;
  z-index: 2;
}

.report-card-icon-wrap--target {
  right: 0;
  bottom: 0;
  width: 34px;
  height: 34px;
  z-index: 3;
  border-color: rgba(0, 195, 255, 0.34);
  background: rgba(3, 10, 18, 0.68);
}

.report-card-icon {
  width: 54px;
  height: 54px;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: drop-shadow(0 0 8px rgba(20, 241, 149, 0.16));
  transform: scale(1.55);
  transform-origin: center;
}

.report-card-icon--rocket,
.report-card--rocket .report-card-icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
  object-position: center;
  transform: scale(1.28);
}

.report-card-icon--alien-contact {
  object-fit: contain;
  object-position: center top;
  filter: drop-shadow(0 0 10px rgba(153, 69, 255, 0.34));
  transform: scale(1.22);
}

.report-card-icon-wrap--target .report-card-icon,
.report-card-target-icon {
  width: 31px;
  height: 31px;
}

.report-card-target-object {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: inline-grid;
  place-items: center;
  overflow: visible;
  flex: 0 0 auto;
  margin: 0;
  vertical-align: middle;
  transform: none;
}

.report-card-target-slot {
  width: 86px;
  min-height: 86px;
  display: grid;
  place-items: center;
  align-self: center;
  justify-self: center;
}

.report-card-target-object-img {
  width: 54px;
  height: 54px;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: drop-shadow(0 0 8px rgba(0, 195, 255, 0.18));
  transform: scale(1.55);
  transform-origin: center;
}

.report-card--alien .report-card-target-object-img {
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.28));
  transform: scale(1.28);
}

.report-card-main {
  min-width: 0;
  padding-left: 2px;
}

.report-card-kicker,
.report-card-participants,
.report-card-losses,
.report-card-loot,
.report-card-detail-block,
.report-card-log {
  font-family: Arial, sans-serif;
}

.report-card-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(226, 241, 255, 0.7);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.report-card-kicker small {
  color: rgba(226, 241, 255, 0.62);
  font-size: 11px;
  text-transform: none;
}

.report-card-mission-marker {
  position: relative;
  display: inline-grid;
  place-items: center;
  align-self: center;
  justify-self: center;
  width: 36px;
  height: 34px;
  margin: 0;
  color: #f12f43;
}

.report-card-mission-marker svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.report-card-mission-marker polygon {
  fill: none;
  stroke: #f12f43;
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.report-card-mission-marker > span {
  position: relative;
  z-index: 1;
  margin-top: 5px;
  color: #f12f43;
  font: 900 16px/1 system-ui, sans-serif;
}

.report-card-sector-chip {
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
}

.report-card-title {
  margin-top: 3px;
  color: #f2fbff;
  font-size: 15px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.report-card-summary {
  margin-top: 7px;
  color: rgba(236, 248, 255, 0.78);
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.report-card-participants {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 7px;
  color: rgba(236, 248, 255, 0.78);
  font-size: 12px;
  line-height: 1.25;
}

.report-card-participants b {
  color: rgba(20, 241, 149, 0.82);
  font-weight: 700;
}

.report-card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  align-self: center;
  gap: 8px;
}

.report-card-result {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 192px;
  min-height: 52px;
  padding: 11px 12px;
  border: 2px solid rgba(20, 241, 149, 0.35);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  color: #d9fff0;
  font-family: 'Fever', Arial, sans-serif;
  font-size: 15px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.report-card-result--defeat {
  border-color: rgba(255, 92, 92, 0.44);
  background: linear-gradient(90deg, rgba(255, 92, 92, 0.34), rgba(255, 92, 92, 0.08));
  color: #ffe1e1;
}

@keyframes report-card-soft-pulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(20, 241, 149, 0);
  }
  50% {
    box-shadow: 0 0 14px rgba(20, 241, 149, 0.18);
  }
}

.report-card-details-btn {
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.24);
  color: rgba(236, 248, 255, 0.84);
  font-family: 'Fever', Arial, sans-serif;
  font-size: 11px;
  cursor: pointer;
}

.report-card-details-btn:hover,
.report-card-details-btn:focus-visible {
  border-color: rgba(20, 241, 149, 0.38);
  color: #d9fff0;
  outline: none;
}

.report-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.report-card-losses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.report-card-losses > div,
.report-card-loot,
.report-card-detail-block,
.report-card-log {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.24);
  padding: 9px 10px;
}

.report-card-losses span,
.report-card-loot > span,
.report-card-detail-block span,
.report-card-log > span {
  display: block;
  margin-bottom: 4px;
  color: rgba(226, 241, 255, 0.64);
  font-size: 11px;
}

.report-card-losses b,
.report-card-loot b {
  color: rgba(236, 248, 255, 0.92);
  font-size: 12px;
  line-height: 1.25;
}

.report-card-loot {
  min-width: 220px;
}

.report-card-loot.is-empty {
  min-width: 92px;
}

.report-card-loot-items {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.report-card-loot-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px 3px 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
}

.report-card-loot-item img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.report-card-loot-item small {
  color: rgba(236, 248, 255, 0.68);
  font-size: 10px;
  text-transform: capitalize;
}

.report-card-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 2px;
}

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

.report-card-detail-block p,
.report-card-log ol {
  margin: 0;
  color: rgba(236, 248, 255, 0.86);
  font-size: 12px;
  line-height: 1.35;
}

.report-card-log ol {
  padding-left: 18px;
}

.report-card-log li + li {
  margin-top: 3px;
}

@media (max-width: 720px) {
  .report-card-head {
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
  }

  .report-card--mail.has-mission-marker .report-card-head {
    grid-template-columns: 64px minmax(0, 1fr) 44px;
  }

  .report-card-icon-wrap {
    grid-column: 1;
    grid-row: 1;
  }

  .report-card-main {
    grid-column: 2;
    grid-row: 1;
  }

  .report-card--mail.has-mission-marker .report-card-mission-marker {
    grid-column: 3;
    grid-row: 1;
  }

  .report-card-target-slot {
    grid-column: 1;
    grid-row: 2;
    width: 64px;
    min-height: 64px;
  }

  .report-card-side {
    grid-column: 2;
    grid-row: 2;
  }

  .report-card--mail.has-mission-marker .report-card-side {
    grid-column: 2 / 4;
  }

  .report-card-body,
  .report-card-detail-grid {
    grid-template-columns: 1fr;
  }

  .report-card-side {
    align-items: flex-start;
  }

  .report-card-loot {
    min-width: 0;
  }

  .report-card-losses {
    grid-template-columns: 1fr;
  }
}

.game-report-card-actions--inline {
  justify-content: flex-end;
  margin-bottom: 8px;
}

.report-visual-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: none;
  color: #eaf7ff;
}

.report-visual-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 1px 0;
}

.report-visual-kind {
  color: #f2fbff;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.report-visual-sector {
  color: rgba(226, 241, 255, 0.7);
  font-size: 12px;
  margin-top: 2px;
}

.report-outcome-pill {
  flex: 0 0 auto;
  border: 1px solid rgba(20, 241, 149, 0.35);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: none;
  color: #d9fff0;
  font-size: 11px;
  padding: 6px 10px;
  text-align: center;
}

.report-outcome-pill--defeat {
  border-color: rgba(255, 92, 92, 0.44);
  background: linear-gradient(90deg, rgba(255, 92, 92, 0.34), rgba(255, 92, 92, 0.08));
  color: #ffe1e1;
}

.report-combat-block {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.26);
  box-shadow: none;
}

.report-fleet-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 6px;
  table-layout: fixed;
  font-family: Arial, sans-serif;
  font-size: 12px;
  padding: 2px;
}

.report-fleet-table th,
.report-fleet-table td {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.26);
  min-width: 46px;
  height: 34px;
  padding: 3px 5px;
  text-align: center;
  color: rgba(236, 248, 255, 0.9);
}

.report-fleet-table thead th {
  min-width: 108px;
  height: 108px;
  background: rgba(0, 0, 0, 0.25);
}

.report-fleet-table th:first-child {
  width: 96px;
  background: rgba(0, 0, 0, 0.34);
  color: rgba(226, 241, 255, 0.78);
  font-weight: 400;
}

.report-fleet-role {
  vertical-align: middle;
}

.report-fleet-role span,
.report-fleet-role b {
  display: block;
  line-height: 1.15;
}

.report-fleet-role-icon {
  display: block;
  width: 42px;
  height: 42px;
  margin: 0 auto 7px;
  object-fit: cover;
  object-position: center;
  filter: drop-shadow(0 0 8px rgba(0, 195, 255, 0.24));
}

.report-fleet-role span {
  font-size: 10px;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.report-fleet-role b {
  margin-top: 3px;
  color: #c7ffdd;
  font-size: 11px;
  font-weight: 700;
}

.report-combat-block.is-attacker .report-fleet-role {
  border-color: rgba(255, 175, 64, 0.42);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: none;
}

.report-combat-block.is-attacker .report-fleet-role span {
  color: #ffd28a;
}

.report-combat-block.is-defender .report-fleet-role {
  border-color: rgba(20, 241, 149, 0.35);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: none;
}

.report-combat-block.is-defender .report-fleet-role span {
  color: #bcffe4;
}

.report-combat-block.is-hostile .report-fleet-role {
  border-color: rgba(255, 70, 94, 0.48);
  background: rgba(35, 4, 12, 0.4);
  box-shadow: none;
}

.report-combat-block.is-hostile .report-fleet-role span {
  color: #ff8da5;
}

.report-combat-block.is-hostile .report-fleet-role b {
  color: #ffe4eb;
}

.report-combat-block.is-hostile .report-fleet-table td {
  color: #ff8da5;
  font-weight: 800;
}

.report-ship-icon {
  width: 102px;
  height: 102px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(20, 241, 149, 0.18));
}

.report-ship-name {
  display: block;
  margin-bottom: 4px;
  overflow: hidden;
  color: rgba(236, 248, 255, 0.82);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-fleet-ship-stats {
  justify-content: center;
  gap: 4px 8px;
  margin-top: 4px;
}

.report-fleet-ship-stats .ship-stat-item {
  gap: 3px;
}

.report-fleet-ship-stats .ship-stat-symbol {
  font-size: 14px;
}

.report-fleet-ship-stats b {
  font-size: 10px;
}

.report-loot-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(153, 69, 255, 0.24);
  border-radius: 10px;
  background: rgba(27, 14, 46, 0.45);
  box-shadow: none;
  color: #ffe6a1;
  font-family: Arial, sans-serif;
  font-size: 12px;
}

.report-loot-bar > span {
  color: rgba(255, 246, 209, 0.84);
  margin-right: 2px;
}

.report-loot-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 2px 8px 2px 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.26);
}

.report-loot-item img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.report-effect-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-effect-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.26);
  box-shadow: none;
  color: #e8dcff;
  font-family: Arial, sans-serif;
  font-size: 12px;
}

.report-effect-copy {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.report-effect-note {
  color: rgba(232, 220, 255, 0.78);
  font-family: 'Fever', Arial, sans-serif;
  font-size: 11px;
  line-height: 1.15;
}

.report-effect-card img {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
}

.report-siege-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-siege-card {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 175, 64, 0.3);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  color: #ffe4b3;
  font-family: Arial, sans-serif;
  font-size: 12px;
}

.report-siege-card b {
  color: #fff4d3;
}

.report-siege-card small {
  color: rgba(255, 246, 209, 0.7);
}

.report-siege-label {
  color: #ffd28a;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.35px;
}

.report-intel-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-intel-card {
  display: inline-flex;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.24);
  color: rgba(236, 248, 255, 0.86);
  font-family: 'Fever', Arial, sans-serif;
  font-size: 12px;
}

.report-pursuer-scan {
  gap: 14px;
  border-color: rgba(255, 70, 94, 0.3);
  background:
    linear-gradient(145deg, rgba(28, 8, 18, 0.78), rgba(5, 11, 20, 0.92)),
    rgba(0, 0, 0, 0.34);
  box-shadow: inset 0 0 34px rgba(255, 35, 70, 0.04);
}

.report-pursuer-scan .report-visual-kind {
  width: fit-content;
  background: linear-gradient(90deg, #ff3049, #ff6b94, #ff9cbd, #d91f62);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.report-pursuer-scan .report-outcome-pill {
  border-color: rgba(255, 74, 98, 0.48);
  color: #ffdfe6;
  background: rgba(82, 7, 25, 0.32);
  box-shadow: 0 0 12px rgba(255, 40, 67, 0.12);
}

.report-pursuer-detection {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: clamp(14px, 1.5vw, 22px);
  overflow: hidden;
  border: 1px solid rgba(255, 82, 104, 0.24);
  border-radius: 12px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    radial-gradient(circle at 50% 56%, rgba(255, 35, 67, 0.12), transparent 52%),
    rgba(2, 7, 14, 0.78);
  background-size: 28px 28px, 28px 28px, auto, auto;
}

.report-pursuer-count {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  text-align: center;
}

.report-pursuer-count span {
  color: rgba(220, 235, 246, 0.64);
  font-family: Arial, sans-serif;
  font-size: clamp(10px, 0.8vw, 13px);
  font-weight: 700;
  letter-spacing: 1.8px;
}

.report-pursuer-count strong {
  margin: 5px 0 3px;
  color: #ff5876;
  font-family: Arial, sans-serif;
  font-size: clamp(58px, 7vw, 92px);
  font-weight: 900;
  letter-spacing: -4px;
  text-shadow: 0 0 13px rgba(255, 41, 74, 0.42);
}

.report-pursuer-count b {
  color: #ffe8ed;
  font-family: Arial, sans-serif;
  font-size: clamp(11px, 0.95vw, 15px);
  letter-spacing: 1.2px;
}

.report-pursuer-vessel {
  position: relative;
  z-index: 2;
  width: min(100%, 680px);
  height: clamp(190px, 22vw, 300px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 83, 104, 0.34);
  border-radius: 10px;
  background: radial-gradient(circle at 50% 48%, rgba(255, 45, 70, 0.18), rgba(1, 5, 11, 0.94) 68%);
  box-shadow: inset 0 0 34px rgba(0, 0, 0, 0.62), 0 0 20px rgba(255, 34, 64, 0.08);
}

.report-pursuer-vessel > img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 15px 32px 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 49, 74, 0.64));
}

.report-pursuer-reticle {
  position: absolute;
  left: 50%;
  top: 44%;
  z-index: 1;
  width: 42%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 78, 101, 0.24);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 22px rgba(255, 44, 70, 0.1), inset 0 0 18px rgba(255, 44, 70, 0.08);
}

.report-pursuer-reticle::before,
.report-pursuer-reticle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(255, 76, 98, 0.18);
  transform: translate(-50%, -50%);
}

.report-pursuer-reticle::before {
  width: 138%;
  height: 1px;
}

.report-pursuer-reticle::after {
  width: 1px;
  height: 138%;
}

.report-pursuer-vessel figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-top: 1px solid rgba(255, 82, 103, 0.22);
  background: rgba(4, 7, 13, 0.9);
}

.report-pursuer-vessel figcaption span,
.report-pursuer-intel-grid span,
.report-pursuer-assessment span {
  color: rgba(203, 222, 236, 0.62);
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.report-pursuer-vessel figcaption strong {
  color: #ff8eaa;
  font-size: 13px;
}

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

.report-pursuer-intel-grid > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.28);
}

.report-pursuer-intel-grid strong {
  color: #edf8ff;
  font-size: 12px;
  line-height: 1.3;
}

.report-pursuer-intel-grid strong.is-danger {
  color: #ff647f;
}

.report-pursuer-assessment {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(153, 69, 255, 0.2);
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(29, 13, 48, 0.54), rgba(4, 12, 20, 0.48));
}

.report-pursuer-assessment > img {
  display: block;
  width: 66px;
  height: 66px;
  border: 1px solid rgba(255, 78, 105, 0.3);
  border-radius: 8px;
  object-fit: cover;
  object-position: center top;
}

.report-pursuer-assessment p {
  margin: 5px 0 0;
  color: rgba(232, 243, 251, 0.88);
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: 1.45;
}

.report-pursuer-scan.is-compact .report-pursuer-vessel {
  height: 150px;
}

.report-pursuer-scan.is-compact .report-pursuer-count strong {
  font-size: 52px;
}

@media (max-width: 720px) {
  .report-pursuer-intel-grid {
    grid-template-columns: 1fr;
  }

  .report-pursuer-vessel {
    height: 180px;
  }

  .report-pursuer-assessment {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .report-pursuer-assessment > img {
    width: 52px;
    height: 52px;
  }
}

.report-alien-contact {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
}

.report-alien-contact .report-visual-kind {
  background: linear-gradient(90deg, #9945ff 0%, #14f195 52%, #00d9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.report-alien-contact-pill {
  border-color: rgba(20, 241, 149, 0.28);
  color: rgba(226, 250, 243, 0.9);
}

.report-alien-message {
  display: grid;
  grid-template-columns: minmax(138px, 0.62fr) minmax(0, 2fr);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.report-alien-contact-identity {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 10, 17, 0.5);
}

.report-alien-contact-identity > img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: center top;
}

.report-alien-contact-identity figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.report-alien-contact-identity figcaption small,
.report-alien-vessel-inline small {
  color: rgba(207, 225, 239, 0.68);
  font-family: Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.report-alien-contact-identity figcaption strong,
.report-alien-vessel-inline strong {
  color: #f1fbff;
  font-size: 13px;
  letter-spacing: 0.3px;
}

.report-alien-message-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px 18px;
}

.report-alien-section-label {
  width: fit-content;
  color: rgba(205, 224, 237, 0.64);
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.1px;
}

.report-alien-message-copy blockquote {
  margin: 8px 0 0;
  color: rgba(239, 248, 255, 0.92);
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.55;
}

.report-alien-request {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.report-alien-request p {
  margin: 6px 0 0;
  color: rgba(231, 247, 244, 0.9);
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: 1.48;
}

.report-alien-vessel-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.report-alien-vessel-inline > img {
  width: 84px;
  height: 54px;
  flex: 0 0 auto;
  object-fit: contain;
}

.report-alien-vessel-inline > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

.report-alien-vessel-inline span {
  margin-top: 2px;
  color: rgba(207, 225, 239, 0.58);
  font-family: Arial, sans-serif;
  font-size: 10px;
}

.report-alien-decision-actions,
.report-alien-decision-status {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  background: transparent;
}

.report-alien-decision-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 1px 1px;
}

.report-alien-decision-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.report-alien-decision-copy span,
.report-alien-decision-status span {
  color: #e9f7ff;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.report-alien-decision-copy small,
.report-alien-decision-status small {
  color: rgba(207, 225, 239, 0.62);
  font-family: Arial, sans-serif;
  font-size: 10px;
}

.report-alien-decision-countdown {
  color: #ff5c6c;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1.4px;
  line-height: 1;
  text-shadow: 0 0 8px rgba(255, 51, 72, 0.38);
}

.report-alien-decision-countdown.is-expired {
  opacity: 0.72;
}

.report-alien-decision-actions.is-expired .report-alien-decision-buttons {
  opacity: 0.45;
}

.report-alien-decision-buttons {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.report-alien-decision-actions .btn {
  min-width: 112px;
  min-height: 42px;
  padding: 10px 16px;
  border-width: 1px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  font-size: 16px;
  letter-spacing: 0.3px;
  text-shadow: 0 0 4px currentColor;
}

.report-alien-decision-actions .btn.attack {
  border-color: #00ff66;
  background: rgba(0, 255, 102, 0.1);
  color: #00ff66;
}

.report-alien-decision-actions .btn.raid {
  border-color: #00c3ff;
  background: rgba(0, 195, 255, 0.1);
  color: #00c3ff;
}

.report-alien-decision-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 1px 1px;
}

.report-alien-decision-status strong {
  justify-self: end;
  color: #14f195;
  font-family: Arial, sans-serif;
  font-size: 18px;
  letter-spacing: 1px;
}

.report-alien-decision-status strong.is-expired {
  color: #ff5c6c;
}

.report-alien-decision-status.is-accepted {
  border-color: rgba(20, 241, 149, 0.32);
  background: transparent;
}

.report-alien-decision-status.is-denied {
  border-color: rgba(255, 76, 94, 0.34);
  color: #ff9ca6;
}

.report-alien-decision-status.is-archived {
  grid-template-columns: 1fr;
  opacity: 0.62;
}

#gameReportBody .report-alien-message {
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 2fr);
}

#gameReportBody .report-alien-contact-identity > img {
  height: clamp(180px, 16vw, 250px);
}

#gameReportBody .report-alien-contact-identity figcaption {
  padding: 13px 15px 15px;
}

#gameReportBody .report-alien-contact-identity figcaption small,
#gameReportBody .report-alien-vessel-inline small {
  font-size: clamp(12px, 0.95vw, 16px);
}

#gameReportBody .report-alien-contact-identity figcaption strong,
#gameReportBody .report-alien-vessel-inline strong {
  font-size: clamp(16px, 1.35vw, 22px);
}

#gameReportBody .report-alien-message-copy {
  padding: clamp(18px, 1.7vw, 28px);
}

#gameReportBody .report-alien-section-label {
  font-size: clamp(11px, 0.9vw, 15px);
}

#gameReportBody .report-alien-message-copy blockquote {
  font-size: clamp(15px, 1.35vw, 22px);
  line-height: 1.5;
}

#gameReportBody .report-alien-request p {
  font-size: clamp(14px, 1.2vw, 20px);
  line-height: 1.48;
}

#gameReportBody .report-alien-vessel-inline > img {
  width: clamp(96px, 8vw, 132px);
  height: clamp(62px, 5.2vw, 86px);
}

#gameReportBody .report-alien-vessel-inline span {
  font-size: clamp(11px, 0.85vw, 15px);
}

#gameReportBody .report-alien-decision-copy span,
#gameReportBody .report-alien-decision-status span {
  font-size: clamp(13px, 1vw, 17px);
}

#gameReportBody .report-alien-decision-copy small,
#gameReportBody .report-alien-decision-status small {
  font-size: clamp(11px, 0.9vw, 15px);
}

#gameReportBody .report-alien-decision-countdown,
#gameReportBody .report-alien-decision-status strong {
  font-size: clamp(20px, 1.7vw, 28px);
}

#gameReportBody .report-alien-decision-actions .btn {
  min-width: 130px;
  min-height: 46px;
  font-size: clamp(16px, 1.2vw, 20px);
}

@media (max-width: 720px) {
  .report-alien-message,
  #gameReportBody .report-alien-message {
    grid-template-columns: minmax(104px, 0.58fr) minmax(0, 1.6fr);
  }

  .report-alien-contact-identity > img,
  #gameReportBody .report-alien-contact-identity > img {
    height: 132px;
  }

  .report-alien-message-copy,
  #gameReportBody .report-alien-message-copy {
    padding: 14px;
  }

  .report-alien-decision-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .report-alien-decision-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .report-alien-decision-actions .btn {
    min-width: 0;
    width: 100%;
  }

  .report-alien-decision-status {
    grid-template-columns: 1fr auto;
  }

  .report-alien-decision-status small {
    grid-column: 1 / -1;
  }
}

@media (max-width: 440px) {
  .report-alien-message,
  #gameReportBody .report-alien-message {
    grid-template-columns: 1fr;
  }

  .report-alien-contact-identity {
    flex-direction: row;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .report-alien-contact-identity > img,
  #gameReportBody .report-alien-contact-identity > img {
    width: 96px;
    height: 96px;
    flex: 0 0 96px;
  }

  .report-alien-contact-identity figcaption,
  #gameReportBody .report-alien-contact-identity figcaption {
    justify-content: center;
    flex: 1 1 auto;
    border-top: 0;
  }
}

/* First Contact uses the same dark panel language as the rest of the game. */
#gameReportBody .report-alien-contact {
  gap: 12px;
  padding: 14px;
  border-color: rgba(20, 241, 149, 0.2);
  background:
    radial-gradient(circle at 93% 4%, rgba(153, 69, 255, 0.14), transparent 34%),
    radial-gradient(circle at 5% 100%, rgba(0, 217, 255, 0.09), transparent 34%),
    linear-gradient(145deg, rgba(4, 11, 18, 0.96), rgba(2, 7, 12, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

#gameReportBody .report-alien-contact > .report-visual-head {
  padding: 2px 2px 11px;
  border-bottom: 1px solid rgba(20, 241, 149, 0.16);
}

#gameReportBody .report-alien-message {
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.9fr);
  gap: 12px;
  padding: 12px;
  border-color: rgba(0, 217, 255, 0.16);
  border-radius: 11px;
  background: rgba(0, 4, 9, 0.54);
}

#gameReportBody .report-alien-contact-identity {
  overflow: hidden;
  border: 1px solid rgba(153, 69, 255, 0.24);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 34%, rgba(153, 69, 255, 0.2), transparent 46%),
    radial-gradient(circle at 50% 85%, rgba(20, 241, 149, 0.1), transparent 44%),
    rgba(5, 9, 16, 0.76);
  box-shadow: inset 0 0 34px rgba(0, 217, 255, 0.035);
}

#gameReportBody .report-alien-contact-identity > img {
  box-sizing: border-box;
  height: clamp(330px, 31vw, 430px);
  padding: 12px 10px 0;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 0 14px rgba(153, 69, 255, 0.2));
}

#gameReportBody .report-alien-contact-identity figcaption {
  padding: 11px 12px 12px;
  border-top-color: rgba(20, 241, 149, 0.2);
  background: linear-gradient(90deg, rgba(20, 241, 149, 0.08), rgba(153, 69, 255, 0.08));
}

#gameReportBody .report-alien-contact-identity figcaption small,
#gameReportBody .report-alien-vessel-inline small {
  font-size: 10px;
}

#gameReportBody .report-alien-contact-identity figcaption strong,
#gameReportBody .report-alien-vessel-inline strong {
  font-size: 15px;
}

#gameReportBody .report-alien-message-copy {
  display: grid;
  gap: 10px;
  padding: 0;
}

#gameReportBody .report-alien-section-label {
  color: rgba(211, 240, 242, 0.78);
  font-family: 'Fever', Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.25px;
}

#gameReportBody .report-alien-message-copy blockquote,
#gameReportBody .report-alien-request,
#gameReportBody .report-alien-vessel-inline {
  margin: 0;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.028);
}

#gameReportBody .report-alien-message-copy blockquote {
  border-color: rgba(0, 217, 255, 0.19);
  box-shadow: inset 3px 0 0 rgba(0, 217, 255, 0.32);
  color: rgba(241, 251, 255, 0.96);
  font-family: 'Fever', Arial, sans-serif;
  font-size: clamp(16px, 1.3vw, 19px);
  font-weight: 400;
  letter-spacing: 0.22px;
  line-height: 1.52;
}

#gameReportBody .report-alien-request {
  border-color: rgba(153, 69, 255, 0.2);
  box-shadow: inset 3px 0 0 rgba(153, 69, 255, 0.3);
}

#gameReportBody .report-alien-request p {
  margin-top: 5px;
  color: rgba(232, 250, 245, 0.94);
  font-family: 'Fever', Arial, sans-serif;
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 400;
  letter-spacing: 0.18px;
  line-height: 1.52;
}

#gameReportBody .report-alien-vessel-list {
  margin: 0;
  padding: 7px;
  border: 1px solid rgba(20, 241, 149, 0.2);
  border-radius: 10px;
  border-color: rgba(20, 241, 149, 0.2);
  background:
    radial-gradient(circle at 50% 55%, rgba(0, 217, 255, 0.08), transparent 45%),
    rgba(255, 255, 255, 0.025);
  box-shadow: inset 3px 0 0 rgba(20, 241, 149, 0.25);
}

#gameReportBody .report-alien-vessel-list .report-combat-block {
  margin: 0;
  border-color: rgba(20, 241, 149, 0.16);
  background: rgba(0, 4, 8, 0.52);
}

#gameReportBody .report-alien-decision-actions,
#gameReportBody .report-alien-decision-status {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.24);
}

#gameReportBody .report-alien-decision-copy span,
#gameReportBody .report-alien-decision-status span {
  font-size: 11px;
}

#gameReportBody .report-alien-decision-copy small,
#gameReportBody .report-alien-decision-status small {
  font-size: 10px;
}

#gameReportBody .report-alien-decision-countdown,
#gameReportBody .report-alien-decision-status strong {
  font-size: 18px;
}

#gameReportBody .report-alien-decision-actions .btn {
  min-width: 112px;
  min-height: 42px;
  padding: 9px 14px;
  font-size: 16px;
}

@media (max-width: 720px) {
  #gameReportBody .report-alien-message {
    grid-template-columns: minmax(170px, 0.65fr) minmax(0, 1.5fr);
    gap: 8px;
    padding: 8px;
  }

  #gameReportBody .report-alien-contact-identity > img {
    height: 290px;
  }

  #gameReportBody .report-alien-message-copy blockquote,
  #gameReportBody .report-alien-request,
  #gameReportBody .report-alien-vessel-list {
    padding: 9px 10px;
  }
}

@media (max-width: 440px) {
  #gameReportBody .report-alien-message {
    grid-template-columns: 1fr;
  }

  #gameReportBody .report-alien-contact-identity {
    flex-direction: column;
  }

  #gameReportBody .report-alien-contact-identity > img {
    width: 100%;
    height: 300px;
    flex: 0 0 auto;
  }

  #gameReportBody .report-alien-contact-identity figcaption {
    justify-content: flex-start;
    border-top: 1px solid rgba(20, 241, 149, 0.2);
  }
}

.report-visual-card.is-compact {
  gap: 10px;
  padding: 10px;
}

.report-visual-card.is-compact .report-visual-head {
  padding-top: 0;
}

.report-visual-card.is-compact .report-fleet-table th,
.report-visual-card.is-compact .report-fleet-table td {
  height: 32px;
  font-size: 11px;
}

.report-visual-card.is-compact .report-fleet-table thead th {
  height: 104px;
}

.report-visual-card.is-compact .report-fleet-role-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 4px;
}

#gameMarketPanel[hidden] {
  display: none !important;
}

#gameMarketPanel.market-container {
  width: 100%;
  max-width: none;
  flex: 1 1 auto;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  padding-bottom: 14px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

#gameMarketPanel.market-container::-webkit-scrollbar {
  width: 10px;
}

#gameMarketPanel.market-container::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

#gameMarketPanel.market-container::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}

#gameMarketPanel .market-view-tabs {
  display: flex;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  margin: 0 0 14px;
}

#gameMarketPanel .market-view-tabs button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 32px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: rgba(232, 244, 252, 0.66);
  background: transparent;
  font-family: 'Fever', Arial, sans-serif;
  font-size: 18px;
  cursor: pointer;
}

#gameMarketPanel .market-view-tabs button:hover {
  border-color: rgba(153, 69, 255, 0.24);
  color: #f3fbff;
  background: rgba(153, 69, 255, 0.08);
}

#gameMarketPanel .market-view-tabs button.is-active {
  border-color: rgba(20, 241, 149, 0.26);
  color: var(--sol-b, #14f195);
  background: linear-gradient(90deg, rgba(153, 69, 255, 0.15), rgba(20, 241, 149, 0.11));
}

#gameMarketPanel .market-view-content,
#gameMarketPanel .market-view-content > .market-panel {
  width: 100%;
}

#gameMarketPanel .market-inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

#gameMarketPanel .market-inventory-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(76, 255, 172, 0.2);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(8, 31, 39, 0.92), rgba(3, 16, 24, 0.94));
}

#gameMarketPanel .market-inventory-card.is-ship-nft {
  background-image:
    linear-gradient(145deg, rgba(3, 13, 24, 0.7), rgba(5, 8, 20, 0.78)),
    url("/foto/logo/card.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

#gameMarketPanel .market-inventory-card.is-building-nft {
  background-image:
    linear-gradient(145deg, rgba(4, 15, 20, 0.7), rgba(5, 10, 18, 0.78)),
    url("/foto/logo/buildings.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

#gameMarketPanel .market-inventory-card.is-techno-nft {
  background-image:
    linear-gradient(145deg, rgba(3, 10, 19, 0.38), rgba(5, 8, 18, 0.5)),
    url("/foto/backgrounds/techno.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

#gameMarketPanel .market-inventory-card.is-virus-nft {
  border-color: rgba(255, 205, 66, 0.42);
  background-image:
    linear-gradient(145deg, rgba(12, 19, 20, 0.82), rgba(8, 12, 16, 0.9)),
    url("/foto/logo/biohazard.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow:
    inset 0 0 34px rgba(255, 194, 33, 0.09),
    0 0 14px rgba(255, 177, 24, 0.08);
}

#gameMarketPanel .market-inventory-card.is-virus-nft:hover {
  border-color: rgba(255, 214, 76, 0.68);
  box-shadow:
    inset 0 0 38px rgba(255, 194, 33, 0.13),
    0 10px 28px rgba(0, 0, 0, 0.32),
    0 0 18px rgba(255, 177, 24, 0.13);
}

#gameMarketPanel .market-inventory-card h4,
#gameMarketPanel .market-rent-panel h4 {
  margin: 0;
  color: #63ffad;
}

#gameMarketPanel .market-inventory-card p,
#gameMarketPanel .market-inventory-card small {
  margin: 0;
  color: rgba(218, 239, 229, 0.74);
}

#gameMarketPanel .market-rent-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, 0.7fr);
  gap: 8px;
  margin-top: auto;
}

#gameMarketPanel .market-rent-controls label {
  display: grid;
  gap: 5px;
  color: rgba(207, 239, 222, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

#gameMarketPanel .market-rent-controls input,
#gameMarketPanel .market-rent-controls select {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(72, 255, 168, 0.25);
  border-radius: 7px;
  color: #effff6;
  background: rgba(1, 13, 19, 0.9);
}

#gameMarketPanel .market-rent-price-stepper {
  min-width: 0;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(72, 255, 168, 0.25);
  border-radius: 7px;
  background: rgba(1, 13, 19, 0.9);
  box-shadow: inset 0 0 12px rgba(20, 241, 149, 0.035);
}

#gameMarketPanel .market-rent-price-stepper input.market-rent-price {
  min-width: 0;
  padding: 8px 3px;
  border: 0;
  border-right: 1px solid rgba(72, 255, 168, 0.18);
  border-left: 1px solid rgba(72, 255, 168, 0.18);
  border-radius: 0;
  outline: 0;
  color: #f1fff7;
  background: rgba(3, 20, 27, 0.72);
  font-weight: 800;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}

#gameMarketPanel .market-rent-price-stepper input.market-rent-price::-webkit-inner-spin-button,
#gameMarketPanel .market-rent-price-stepper input.market-rent-price::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

#gameMarketPanel .market-rent-price-stepper button {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #63ffad;
  background: linear-gradient(180deg, rgba(17, 57, 61, 0.96), rgba(5, 28, 35, 0.98));
  font: 800 18px/1 'Fever', Arial, sans-serif;
  text-shadow: 0 0 7px rgba(20, 241, 149, 0.48);
  cursor: pointer;
}

#gameMarketPanel .market-rent-price-stepper button:hover,
#gameMarketPanel .market-rent-price-stepper button:focus-visible {
  color: #fff;
  background: linear-gradient(180deg, rgba(35, 91, 88, 0.98), rgba(12, 47, 54, 1));
  box-shadow: inset 0 0 12px rgba(20, 241, 149, 0.18);
  outline: 0;
}

#gameMarketPanel .market-rent-price-stepper:focus-within {
  border-color: rgba(20, 241, 149, 0.58);
  box-shadow: 0 0 0 2px rgba(20, 241, 149, 0.08), inset 0 0 12px rgba(20, 241, 149, 0.06);
}

#gameMarketPanel .market-rental-status {
  color: #ffd86b;
  font-weight: 700;
}

#gameMarketPanel .market-inventory-card.is-rented {
  border-color: rgba(255, 204, 92, 0.42);
}

#gameMarketPanel .market-buy-card {
  cursor: default;
}

#gameMarketPanel .market-buy-card:hover {
  border-color: rgba(20, 241, 149, 0.46);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), 0 0 16px rgba(153, 69, 255, 0.12);
}

#gameMarketPanel .market-buy-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: auto;
}

#gameMarketPanel .market-buy-actions .market-btn.buy {
  flex: 1 1 auto;
}

#gameMarketPanel .market-price-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #effff8;
}

#gameMarketPanel .market-price-button-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(153, 69, 255, 0.58));
}

#gameMarketPanel .market-price-button strong {
  color: #fff2a0;
  font-size: 23px;
  line-height: 1;
  text-shadow: 0 0 7px rgba(255, 209, 76, 0.28);
}

@media (max-width: 760px) {
  #gameMarketPanel .market-price-button-icon {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
  }

  #gameMarketPanel .market-price-button strong {
    font-size: 19px;
  }
}

#gameMarketPanel .market-inventory-card > .market-btn.sell {
  margin-top: auto;
}

#gameMarketPanel .market-mobile-info-btn {
  display: none;
}

.market-buy-hover-card {
  position: fixed;
  z-index: 12000;
  width: min(420px, calc(100vw - 24px));
  padding: 14px;
  border: 1px solid rgba(20, 241, 149, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(12, 19, 34, 0.96), rgba(20, 14, 36, 0.94)),
    rgba(7, 10, 18, 0.96);
  color: var(--text, #fff);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.44), 0 0 22px rgba(153, 69, 255, 0.16);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transform-origin: top left;
  transition: opacity 120ms ease, transform 120ms ease;
}

.market-buy-hover-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.market-buy-hover-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  text-transform: uppercase;
}

.market-buy-hover-card__top b {
  color: #ffd75a;
}

.market-buy-hover-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid rgba(153, 69, 255, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(20, 241, 149, 0.12), transparent 58%),
    rgba(255, 255, 255, 0.035);
}

.market-buy-hover-media img {
  position: absolute;
  display: block;
  object-position: center center;
}

.market-buy-hover-media img.market-media-image--portrait {
  top: 12px;
  left: 50%;
  width: auto !important;
  height: calc(100% - 24px) !important;
  max-width: none !important;
  max-height: none !important;
  transform: translateX(-50%);
}

.market-buy-hover-media img.market-media-image--landscape,
.market-buy-hover-media img.market-media-image--square {
  top: 50%;
  left: 12px;
  width: calc(100% - 24px) !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  transform: translateY(-50%);
}

.market-buy-hover-card__name {
  margin-bottom: 10px;
  color: #fff;
  font-size: 29px;
  line-height: 1.15;
}

.market-buy-hover-card__grid {
  display: grid;
  grid-template-columns: minmax(72px, auto) 1fr;
  gap: 6px 10px;
  font-size: 17px;
}

.market-buy-hover-card__grid span {
  color: rgba(255, 255, 255, 0.62);
}

.market-buy-hover-card__grid b {
  color: rgba(255, 255, 255, 0.92);
  text-align: right;
}

.market-mobile-info-modal {
  position: fixed;
  inset: 0;
  z-index: 15000;
  display: flex;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  background: rgba(1, 4, 10, 0.96);
}

.market-mobile-info-shell {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 36%) minmax(0, 64%);
  width: 100%;
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  color: #eefaff;
  background:
    radial-gradient(circle at 82% 10%, rgba(153, 69, 255, 0.2), transparent 33%),
    radial-gradient(circle at 14% 72%, rgba(20, 241, 149, 0.12), transparent 38%),
    linear-gradient(155deg, rgba(8, 14, 25, 0.99), rgba(5, 9, 17, 0.99));
}

.market-mobile-info-close.game-city-close {
  position: fixed;
  top: max(4px, env(safe-area-inset-top));
  right: max(4px, env(safe-area-inset-right));
  z-index: 20;
}

.market-mobile-info-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 0;
  height: 100%;
  padding: 58px 14px 10px;
  overflow: hidden;
  border-bottom: 1px solid rgba(20, 241, 149, 0.28);
  background:
    radial-gradient(circle, rgba(20, 241, 149, 0.12), transparent 58%),
    rgba(255, 255, 255, 0.02);
}

.market-mobile-info-media img {
  position: absolute;
  display: block;
  object-position: center center;
}

.market-mobile-info-media img.market-media-image--portrait {
  top: 58px;
  left: 50%;
  width: auto !important;
  height: calc(100% - 68px) !important;
  max-width: none !important;
  max-height: none !important;
  transform: translateX(-50%);
}

.market-mobile-info-media img.market-media-image--landscape,
.market-mobile-info-media img.market-media-image--square {
  top: 50%;
  left: 14px;
  width: 100% !important;
  height: auto !important;
  max-width: calc(100% - 28px) !important;
  max-height: none !important;
  transform: translateY(-50%);
}

.market-mobile-info-content {
  min-height: 0;
  padding: 12px 16px 14px;
  overflow: hidden;
}

.market-mobile-info-kicker {
  color: rgba(20, 241, 149, 0.72);
  font-size: 13px;
  text-transform: uppercase;
}

.market-mobile-info-content h2 {
  margin: 4px 0;
  color: #fff;
  font-family: 'Fever', Arial, sans-serif;
  font-size: clamp(25px, 7vw, 38px);
  line-height: 1;
}

.market-mobile-info-stars {
  margin-bottom: 8px;
  color: #ffd75a;
  font-size: 21px;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(255, 190, 48, 0.34);
}

.market-mobile-ship-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 8px;
  padding: 6px;
  border: 1px solid rgba(20, 241, 149, 0.24);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.24);
}

.market-mobile-ship-stat {
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  gap: 1px 4px;
  padding: 5px 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.24);
}

.market-mobile-ship-stat-icon {
  grid-row: 1 / span 2;
  color: #eef7ff;
  font-size: 18px;
  line-height: 1;
}

.market-mobile-ship-stat > span:not(.market-mobile-ship-stat-icon) {
  overflow: hidden;
  color: rgba(225, 240, 250, 0.5);
  font-size: 8px;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.market-mobile-ship-stat b {
  color: #14f195;
  font-size: 12px;
  line-height: 1;
}

.market-mobile-info-grid {
  display: grid;
  grid-template-columns: minmax(88px, auto) minmax(0, 1fr);
  gap: 5px 12px;
  padding: 9px 12px;
  border: 1px solid rgba(153, 69, 255, 0.28);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.24);
}

.market-mobile-info-grid span,
.market-mobile-info-effect > span {
  color: rgba(230, 244, 252, 0.58);
}

.market-mobile-info-grid b {
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.94);
  text-align: right;
}

.market-mobile-info-effect {
  margin-top: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(20, 241, 149, 0.24);
  border-radius: 10px;
  background: rgba(20, 241, 149, 0.05);
}

.market-mobile-info-effect p {
  margin: 4px 0 0;
  color: #f3fbff;
  font-size: 17px;
  line-height: 1.25;
}

#gameMarketPanel .market-btn.rent {
  border-color: rgba(80, 203, 255, 0.58);
  background: linear-gradient(180deg, rgba(22, 129, 174, 0.92), rgba(8, 66, 101, 0.96));
}

#gameMarketPanel .market-btn.rent-cancel {
  border-color: rgba(255, 119, 119, 0.48);
  background: linear-gradient(180deg, rgba(133, 45, 53, 0.9), rgba(71, 24, 32, 0.96));
}

@media (max-width: 760px) {
  body[data-stage="map"] #mapScene #secondPlatform[data-active-component="market"] #secondContent {
    height: 570px !important;
    min-height: 570px !important;
  }

  #gameMarketPanel .market-buy-card:hover {
    border-color: rgba(76, 255, 172, 0.2);
    box-shadow: none;
  }

  #gameMarketPanel .market-panel-buy .market-inventory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #gameMarketPanel .market-inventory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #gameMarketPanel .market-inventory-grid .market-inventory-card {
    gap: 6px;
    padding: 8px;
    border-radius: 9px;
  }

  #gameMarketPanel .market-inventory-grid .market-offer-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 140 / 170;
  }

  #gameMarketPanel .market-inventory-grid .market-offer-name {
    font-size: 15px;
  }

  #gameMarketPanel .market-inventory-grid .market-offer-row {
    font-size: 11px;
  }

  #gameMarketPanel .market-inventory-grid .market-rent-controls {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  #gameMarketPanel .market-inventory-grid .market-btn {
    min-width: 0;
    padding: 8px 7px;
    font-size: 12px;
  }

  #gameMarketPanel .market-panel-buy .market-buy-actions {
    gap: 5px;
  }

  #gameMarketPanel .market-panel-buy .market-buy-actions .market-btn.buy {
    min-width: 0;
    padding: 8px 9px;
    font-size: 14px;
  }

  #gameMarketPanel .market-mobile-info-btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 8px 9px;
    border: 1px solid rgba(153, 69, 255, 0.4);
    border-radius: 8px;
    color: #f4fbff;
    background: linear-gradient(90deg, rgba(153, 69, 255, 0.18), rgba(20, 241, 149, 0.1));
    font-family: 'Fever', Arial, sans-serif;
    font-size: 14px;
    cursor: pointer;
  }

  .market-buy-hover-card {
    display: none !important;
  }
}

@media (max-width: 640px) {
  #gameMarketPanel .market-view-tabs {
    gap: 4px;
  }

  #gameMarketPanel .market-view-tabs button {
    min-height: 30px;
    padding: 5px 9px;
    font-size: 15px;
  }

  #gameMarketPanel .market-inventory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #gameMarketPanel .market-panel-buy .market-inventory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#gameMessagesPanel[hidden] {
  display: none !important;
}

#gameMessagesPanel.messages-container {
  width: 100%;
  max-width: none;
  flex: 1 1 auto;
  align-self: stretch;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

#gameMessagesPanel.messages-container::-webkit-scrollbar {
  width: 10px;
}

#gameMessagesPanel.messages-container::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

#gameMessagesPanel.messages-container::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}

#gameMessagesPanel.messages-container h2 {
  margin: 0 0 18px;
  font-size: 32px;
}

#gameClanPanel[hidden] {
  display: none !important;
}

#gameClanPanel.clan-container {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0;
  padding: 0 8px 0 0;
  scrollbar-gutter: stable;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#gameClanPanel.clan-container::-webkit-scrollbar {
  width: 10px;
}

#gameClanPanel.clan-container::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

#gameClanPanel.clan-container::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}

#gameClanPanel.clan-container h2 {
  margin: 0 0 18px;
  padding: 0;
  border-bottom: 0;
  font-size: 32px;
  letter-spacing: 0;
  background: none;
  background-size: auto;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: initial;
  animation: none;
  text-shadow: none;
}

.clan-shell {
  display: grid;
  gap: 18px;
  padding: 14px 18px 20px;
}

.clan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
}

.clan-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.clan-card--hero {
  background: transparent;
  border: none;
  box-shadow: none;
}

.clan-card--intro {
  background: transparent;
  border: none;
  box-shadow: none;
}

.clan-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(110, 223, 255, 0.88);
}

.clan-title {
  margin: 8px 0 0;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.05;
  letter-spacing: .7px;
}

.clan-copy {
  margin: 12px 0 0;
  max-width: 700px;
  color: rgba(232, 243, 255, 0.80);
  line-height: 1.5;
}

.clan-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.clan-perks span,
.clan-tag-pill,
.clan-role-badge,
.clan-event-badge,
.clan-member-presence {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  letter-spacing: 0.04em;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset;
}

.clan-card-head,
.clan-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.clan-card-title {
  font-size: 18px;
  color: #f1fbff;
  letter-spacing: 0.35px;
}

.clan-card-sub {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(226, 241, 255, 0.62);
}

.clan-form {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.clan-compose {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.clan-field {
  display: grid;
  gap: 8px;
}

.clan-field span {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(220, 234, 247, 0.76);
}

.clan-input {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset;
  color: #fff;
  font: inherit;
  padding: 12px 14px;
}

.clan-input:focus {
  outline: none;
  border-color: rgba(20, 241, 149, 0.34);
  box-shadow:
    0 0 12px rgba(20,241,149,0.08),
    0 0 0 1px rgba(20, 241, 149, 0.14) inset;
}

.clan-input--tag {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.clan-submit-btn {
  min-height: 48px;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(20,241,149,0.12) inset;
}

.clan-contact-select {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.22));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset;
  color: #f5fbff;
  font: inherit;
  padding: 0 14px;
  appearance: none;
}

.clan-tag-pill {
  margin-top: 12px;
  background: rgba(20, 241, 149, 0.1);
  border-color: rgba(20, 241, 149, 0.3);
  color: #b7ffe3;
  box-shadow: 0 0 0 1px rgba(20, 241, 149, 0.08) inset;
}

.clan-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.clan-stat {
  min-height: 74px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset;
  padding: 12px 14px;
}

.clan-stat-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(220, 234, 247, 0.68);
}

.clan-stat b {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  color: #fff;
}

.clan-member-list,
.clan-event-list,
.clan-invite-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.clan-member-row,
.clan-event-row,
.clan-invite-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0,0,0,0.28);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset;
  padding: 12px 14px;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.clan-member-row:hover,
.clan-event-row:hover,
.clan-invite-row:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 241, 149, 0.24);
  box-shadow:
    0 0 14px rgba(20,241,149,0.12),
    0 0 0 1px rgba(20,241,149,0.10) inset;
}

.clan-card .action-btn,
.clan-card .market-btn {
  border-radius: 10px;
}

.clan-member-main,
.clan-event-copy,
.clan-invite-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.clan-member-status {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.clan-member-status.is-online,
.clan-member-presence.is-online {
  background: rgba(20, 241, 149, 0.18);
  border-color: rgba(20, 241, 149, 0.34);
  color: #8dffcb;
}

.clan-member-status.is-online {
  background: #17e18f;
  box-shadow: 0 0 14px rgba(23, 225, 143, 0.65);
}

.clan-member-status.is-offline,
.clan-member-presence.is-offline {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(228, 239, 255, 0.66);
}

.clan-member-name,
.clan-event-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #fff;
}

.clan-member-sub,
.clan-event-sub {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(220, 234, 247, 0.68);
}

.clan-invite-title {
  font-size: 15px;
  color: #fff;
}

.clan-invite-sub {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(220, 234, 247, 0.68);
}

.clan-invite-main {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
}

.clan-invite-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.clan-invite-section-title {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(110, 223, 255, 0.84);
}

.clan-warning-note {
  margin-top: 8px;
  color: #ffd28a;
  font-size: 12px;
  line-height: 1.45;
}

#gameClanPanel .market-empty {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.22);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset;
  padding: 14px;
}

.clan-role-badge {
  min-height: 22px;
  padding: 3px 8px;
  background: rgba(255, 185, 71, 0.12);
  border-color: rgba(255, 185, 71, 0.32);
  color: #ffd28a;
}

.clan-event-badge {
  min-width: 62px;
}

.clan-leave-btn {
  white-space: nowrap;
}

.game-messages-compose {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
}

.game-messages-compose-head {
  margin-bottom: 10px;
}

.game-messages-compose-title {
  font-size: 18px;
  color: #00c3ff;
}

.game-messages-compose-sub {
  font-size: 12px;
  opacity: 0.78;
  margin-top: 4px;
}

.game-messages-compose-controls {
  display: grid;
  gap: 10px;
}

.game-message-input {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  padding: 12px;
}

.msg-card {
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.msg-card.is-unread {
  border-color: rgba(20, 241, 149, 0.5);
  box-shadow: 0 0 0 1px rgba(20, 241, 149, 0.16);
}

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

.msg-left {
  display:flex;
  gap:10px;
  align-items:center;
  min-width: 0;
}

.msg-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,0.16);
}

.msg-title {
  font-weight: 700;
  opacity: .95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 420px;
}

.msg-sub {
  font-size: 12px;
  opacity: .75;
  margin-top: 2px;
}

.msg-body {
  margin-top: 10px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.25;
  opacity: .92;
}

.game-travel-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
  z-index: 100050;
  background: radial-gradient(1200px 800px at 50% 50%, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.85));
  backdrop-filter: blur(2px);
  overscroll-behavior: contain;
}

.game-travel-overlay.is-hidden {
  display: none;
}

.unknown-signal-briefing-overlay {
  position: absolute;
  inset: 0;
  z-index: 100060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: radial-gradient(circle at 50% 42%, rgba(35, 8, 52, 0.5), rgba(0, 0, 0, 0.9));
  backdrop-filter: blur(4px);
}

.unknown-signal-briefing-overlay.is-hidden {
  display: none;
}

.unknown-signal-briefing-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  max-height: 94%;
  overflow: auto;
  border: 1px solid rgba(255, 73, 91, 0.7);
  border-radius: 16px;
  color: #edf7ff;
  background: linear-gradient(145deg, rgba(17, 12, 31, 0.98), rgba(5, 11, 22, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.72), 0 0 28px rgba(255, 51, 72, 0.18), 0 0 42px rgba(153, 69, 255, 0.14);
}

.unknown-signal-briefing-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(90deg, rgba(255, 51, 72, 0.12), rgba(153, 69, 255, 0.08));
}

.unknown-signal-briefing-alert {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 2px solid #ff4659;
  border-radius: 10px;
  color: #ff5264;
  font-size: 25px;
  font-weight: 900;
  box-shadow: 0 0 16px rgba(255, 51, 72, 0.3);
}

.unknown-signal-briefing-kicker {
  margin-bottom: 3px;
  color: #ff6878;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.7px;
}

.unknown-signal-briefing-header h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #9945ff, #34d8ff, #14f195);
  background-clip: text;
  -webkit-background-clip: text;
  color: #14f195;
  -webkit-text-fill-color: transparent;
}

.unknown-signal-briefing-body {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  flex: 1 1 auto;
  align-content: center;
  gap: 22px;
  padding: 24px 24px 20px;
}

.unknown-signal-briefing-portrait {
  overflow: hidden;
  border: 1px solid rgba(153, 69, 255, 0.48);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.38);
  box-shadow: 0 0 22px rgba(153, 69, 255, 0.16);
}

.unknown-signal-briefing-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
}

.unknown-signal-briefing-portrait div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.unknown-signal-briefing-portrait span {
  color: rgba(222, 231, 244, 0.62);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.unknown-signal-briefing-portrait strong {
  color: #f5efff;
  font-size: 15px;
}

.unknown-signal-briefing-copy {
  align-self: center;
  font-size: 16px;
  line-height: 1.6;
}

.unknown-signal-briefing-copy p {
  margin: 0 0 14px;
}

.unknown-signal-briefing-sector {
  margin-top: 18px;
  padding: 9px 12px;
  border-left: 3px solid #ff4659;
  color: #ffbdc4;
  background: rgba(255, 51, 72, 0.08);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.unknown-signal-briefing-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 15px 22px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
}

@media (max-width: 620px) {
  .unknown-signal-briefing-body {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 16px;
  }

  .unknown-signal-briefing-copy {
    font-size: 14px;
    line-height: 1.48;
  }

  .unknown-signal-briefing-portrait div {
    padding: 8px;
  }

  .unknown-signal-briefing-portrait strong {
    font-size: 12px;
  }

  .unknown-signal-briefing-actions {
    padding: 13px 16px 16px;
  }

  .unknown-signal-briefing-actions button {
    flex: 1 1 0;
    min-width: 0;
  }
}

.game-travel-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(860px, 96vw);
  max-width: 860px;
  height: min(520px, 92vh);
  margin: 0;
  padding: 0;
  border: 2px solid #18c340f3;
  border-radius: 16px;
  background: rgba(20, 20, 40, 0.1);
  box-shadow: 0 0 15px #9945FF, 0 0 30px #14F195;
  overflow: hidden;
}

.game-travel-modal::before,
.game-travel-modal::after {
  display: none;
}

.game-travel-modal > * {
  position: relative;
  z-index: 1;
}

.game-travel-modal .travel-head {
  padding-right: 88px;
  padding: 14px 18px 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
}

.travel-head-topline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.travel-sector-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(20, 241, 149, 0.3);
  background: rgba(20, 241, 149, 0.1);
  color: #b7ffe3;
  font-size: 11px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(20, 241, 149, 0.08) inset;
}

.travel-mode-note {
  color: rgba(223, 240, 255, 0.62);
  font-size: 12px;
  letter-spacing: 0.25px;
}

.game-travel-modal .travel-title {
  margin: 0 0 10px 0;
  font-size: 22px;
  letter-spacing: .8px;
  background: linear-gradient(45deg, #9945FF, #14F195, #9945FF, #14F195);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: bordGradient 4s ease infinite;
  text-shadow: 0 0 12px rgba(153, 69, 255, 0.35), 0 0 18px rgba(20, 241, 149, 0.25);
}

.game-travel-modal .travel-sub {
  max-width: 640px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.45;
}

.travel-time-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.travel-time-chip {
  min-width: 132px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.travel-time-label {
  display: block;
  margin-bottom: 4px;
  color: rgba(221, 237, 255, 0.54);
  font-size: 10px;
  letter-spacing: 1.25px;
  text-transform: uppercase;
}

.travel-time-chip b {
  color: #f5fbff;
  font-size: 16px;
  letter-spacing: 0.6px;
}

.game-travel-modal .travel-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 18px;
  background: transparent;
}

.game-travel-modal .travel-shipline {
  align-items: center;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset;
}

.game-travel-modal .travel-shipline-title {
  color: #f1fbff;
  font-size: 15px;
  letter-spacing: 0.4px;
}

.game-travel-modal .travel-shipline-hint {
  color: rgba(226, 241, 255, 0.62);
  font-size: 12px;
}

.game-travel-modal .travel-shiplist {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  gap: 12px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.game-travel-modal .travel-shiplist::-webkit-scrollbar {
  width: 10px;
}

.game-travel-modal .travel-shiplist::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.game-travel-modal .travel-shiplist::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}

.game-travel-mission-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.game-travel-mission-btn {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.game-travel-mission-btn.is-active {
  border-color: rgba(20, 241, 149, 0.6);
  color: var(--sol-b);
  box-shadow: 0 0 0 1px rgba(20, 241, 149, 0.22) inset;
}

.game-travel-mission-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.game-travel-overlay .travel-shiprow.is-scout {
  gap: 16px;
}

.game-travel-overlay .travel-shiprow {
  position: relative;
  gap: 14px;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(0,0,0,0.28);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.game-travel-overlay .travel-shiprow::before {
  display: none;
}

.game-travel-overlay .travel-shiprow:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 241, 149, 0.22);
  box-shadow:
    0 0 14px rgba(20,241,149,0.12),
    0 0 0 1px rgba(20,241,149,0.10) inset;
}

.game-travel-overlay .travel-shiprow.is-selected {
  border-color: rgba(20, 241, 149, 0.3);
  background: rgba(20, 241, 149, 0.08);
  box-shadow:
    0 0 14px rgba(20,241,149,0.12),
    0 0 0 1px rgba(20,241,149,0.14) inset;
}

.game-travel-overlay .travel-shiprow.is-locked {
  opacity: 0.56;
}

.travel-shipicon-wrap {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
}

.game-travel-overlay .travel-shiprow.is-scout .travel-shipicon {
  width: 60px;
  height: 60px;
}

.game-travel-overlay .travel-shipicon {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 0 8px rgba(20, 241, 149, 0.16));
}

.travel-shipmeta-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.travel-shipmeta {
  min-width: 0;
}

.game-travel-overlay .travel-shipname {
  color: #f2fbff;
  font-size: 15px;
  letter-spacing: 0.2px;
}

.travel-shiptag {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
  color: rgba(232,244,255,0.86);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.game-travel-overlay .travel-shipavail {
  color: rgba(223, 238, 255, 0.66);
}

.travel-shipstats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.travel-shipstat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(238,247,255,0.88);
}

.travel-shipstat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  color: #9fffcf;
  font-size: 12px;
  line-height: 1;
}

.travel-shipstat-value {
  font-size: 12px;
  letter-spacing: 0.2px;
}

.game-travel-overlay .travel-stepper {
  gap: 8px;
  margin-left: auto;
}

.game-travel-overlay .travel-stepper button {
  border-width: 2px;
  border-color: #00c3ff;
  background: rgba(0,195,255,0.10);
  color: #00c3ff;
  box-shadow: none;
}

.game-travel-overlay .travel-stepper input {
  width: 60px;
  height: 30px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #f5fbff;
}

.game-travel-overlay .travel-stepper input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.game-travel-overlay .travel-stepper input[type="number"]::-webkit-outer-spin-button,
.game-travel-overlay .travel-stepper input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cargo-payload-host {
  display: flex;
  flex: 0 0 92px;
  width: 92px;
  min-width: 92px;
  max-width: 92px;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.cargo-payload-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 92px;
  max-width: 92px;
  min-height: 72px;
  overflow: visible;
}

.cargo-payload-add,
.cargo-payload-remove {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #ecf6ff;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
}

.cargo-payload-add:disabled,
.cargo-payload-remove:disabled {
  opacity: 0.42;
  cursor: default;
}

.cargo-payload-selected-wrap {
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.cargo-payload-selected-card {
  position: relative;
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  height: 77px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.26);
  box-shadow:
    0 0 0 1px rgba(20, 241, 149, 0.12) inset,
    0 0 12px rgba(20, 241, 149, 0.14);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.cargo-payload-selected-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cargo-payload-stars {
  display: block;
  width: 100%;
  text-align: center;
  color: #f7d25b;
  font-size: 11px;
  letter-spacing: 0.8px;
  line-height: 1.1;
  min-height: 11px;
  padding: 0;
  text-shadow: 0 0 7px rgba(247, 210, 91, 0.72);
}

.cargo-payload-option-wrap .cargo-payload-stars {
  font-size: 11px;
  letter-spacing: 1px;
  color: #ffd86b;
  min-height: 14px;
  padding: 0;
  text-shadow: 0 0 6px rgba(255, 216, 107, 0.55);
}

.cargo-payload-selected-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  border: 2px solid #00c3ff;
  background: rgba(0, 195, 255, 0.10);
  color: #00c3ff;
  box-shadow: none;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.cargo-payload-selected-remove:disabled {
  opacity: 0.4;
  cursor: default;
}

.cargo-payload-modal-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.52);
  z-index: 40;
  pointer-events: none;
}

.cargo-payload-modal-overlay.is-open {
  display: flex;
  pointer-events: auto;
}

.cargo-payload-modal {
  position: relative;
  width: min(640px, calc(100% - 28px));
  max-height: min(82vh, 620px);
  overflow: auto;
  border: 2px solid #18c340f3;
  border-radius: 14px;
  background: rgba(20, 20, 40, 0.16);
  box-shadow: 0 0 15px #9945ff, 0 0 30px #14f195;
  padding: 14px 14px 12px;
}

.cargo-payload-modal-close {
  top: 10px;
  right: 12px;
}

.cargo-payload-modal-title {
  color: #eef8ff;
  font-size: 17px;
  margin: 2px 56px 12px 2px;
  letter-spacing: 0.4px;
  text-shadow: 0 0 10px rgba(20, 241, 149, 0.24);
}

.cargo-payload-modal-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, 140px);
  justify-content: center;
  gap: 14px;
}

.cargo-payload-modal-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.cargo-payload-modal-add-btn {
  min-width: 96px;
  min-height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(20, 241, 149, 0.36);
  background: rgba(20, 241, 149, 0.11);
  color: #d8ffef;
  font-size: 13px;
  cursor: pointer;
}

.cargo-payload-modal-add-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.cargo-payload-empty {
  color: rgba(223, 238, 255, 0.72);
  font-size: 12px;
  padding: 10px 8px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  grid-column: 1 / -1;
}

.cargo-payload-option {
  width: 140px;
  height: 170px;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  color: #f0f8ff;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.cargo-payload-option::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 2px solid var(--cargo-payload-tier-border, transparent);
  box-sizing: border-box;
  pointer-events: none;
  z-index: 4;
}

.cargo-payload-option-wrap {
  width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.cargo-payload-option:hover {
  border-color: rgba(20, 241, 149, 0.3);
  background: rgba(20, 241, 149, 0.08);
}

.cargo-payload-option.is-selected {
  outline: none;
  filter:
    drop-shadow(0 0 10px rgba(153, 69, 255, 0.55))
    drop-shadow(0 0 16px rgba(20, 241, 149, 0.4))
    drop-shadow(0 0 24px rgba(153, 69, 255, 0.32));
}

.cargo-payload-option.tier-green {
  --cargo-payload-tier-border: rgba(20, 241, 149, 0.9);
  box-shadow: inset 0 0 0 1px rgba(20, 241, 149, 0.55);
}

.cargo-payload-option.tier-orange {
  --cargo-payload-tier-border: rgba(255, 151, 68, 0.95);
  box-shadow: inset 0 0 0 1px rgba(255, 151, 68, 0.62);
}

.cargo-payload-option.tier-solana {
  --cargo-payload-tier-border: rgba(153, 69, 255, 0.95);
  box-shadow:
    inset 0 0 0 1px rgba(153, 69, 255, 0.75),
    0 0 10px rgba(153, 69, 255, 0.28);
}

.cargo-payload-option-thumb {
  width: 100%;
  height: 100%;
}

.cargo-payload-option-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cargo-payload-option-name {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  font-size: 12px;
  padding: 4px 6px;
  text-align: center;
  background: rgba(0, 0, 0, 0.55);
  color: #e9fff2;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  opacity: 0.9;
  box-sizing: border-box;
}

.rocket-silo-payload-zone {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 8px 0 12px;
}

.rocket-silo-payload-selected-wrap {
  width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.rocket-silo-payload-selected-card {
  cursor: default;
}

.rocket-silo-manufacture-panel {
  display: grid;
  gap: 10px;
  margin: 10px 0 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 151, 68, 0.26);
  background: rgba(0, 0, 0, 0.24);
  box-shadow: 0 0 18px rgba(255, 151, 68, 0.08) inset;
}

.rocket-silo-manufacture-head,
.rocket-silo-manufacture-actions,
.rocket-silo-manufacture-cost {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rocket-silo-manufacture-head {
  justify-content: space-between;
}

.rocket-silo-manufacture-title {
  color: #ffb45f;
  font-size: 16px;
}

.rocket-silo-manufacture-sub {
  margin-top: 3px;
  color: rgba(238, 247, 255, 0.78);
  font-size: 12px;
}

.rocket-silo-manufacture-icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 151, 68, 0.24));
}

.rocket-cost-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}

#gameRocketManufactureProgressRow {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

#gameRocketManufactureProgressRow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--lab-progress, 0%);
  background: linear-gradient(90deg, rgba(20, 241, 149, 0.34), rgba(153, 69, 255, 0.28));
  box-shadow: 0 0 10px rgba(20, 241, 149, 0.22);
  transition: width 220ms ease;
  z-index: 0;
}

#gameRocketManufactureProgressRow.is-active::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 -28%;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: gameLabProgressSweep 1.35s linear infinite;
  z-index: 0;
}

#gameRocketManufactureProgressRow .lab-label,
#gameRocketManufactureProgressRow .lab-value {
  position: relative;
  z-index: 1;
}

.rocket-silo-manufacture-btn {
  max-width: 260px;
}

.game-travel-overlay .travel-actions .btn.attack,
.unknown-signal-briefing-actions .btn.attack {
  border-color: #00ff66;
  background: rgba(0, 255, 102, 0.1);
  color: #00ff66;
}

.game-travel-overlay .travel-actions .btn.raid,
.unknown-signal-briefing-actions .btn.raid {
  border-color: #00c3ff;
  background: rgba(0, 195, 255, 0.1);
  color: #00c3ff;
}

.game-travel-fleet-state,
.game-travel-status {
  color: rgba(238, 247, 255, 0.72);
  font-size: 12px;
  line-height: 1.4;
}

.game-travel-fleet-state {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0,0,0,0.22);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset;
  white-space: pre-line;
}

.game-travel-overlay .travel-actions {
  padding: 14px 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
}

.game-travel-overlay .travel-actions .btn,
.unknown-signal-briefing-actions .btn {
  min-height: 42px;
  padding: 10px 16px;
  border-width: 1px;
  border-radius: 12px;
  letter-spacing: 0.3px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.game-travel-status {
  max-width: 340px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0,0,0,0.22);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset;
}

.game-travel-overlay.is-unscanned .game-travel-modal {
  border-color: #18c340f3;
  box-shadow: 0 0 15px #9945FF, 0 0 30px #14F195;
}

.game-travel-overlay.is-unscanned .travel-sector-badge {
  border-color: rgba(0, 195, 255, 0.36);
  background: rgba(0, 195, 255, 0.12);
  color: #b5f3ff;
  animation: game-travel-ping 1.4s ease-in-out infinite;
}

.game-travel-overlay.is-unscanned .travel-time-chip {
  border-color: rgba(0, 195, 255, 0.16);
  box-shadow: 0 0 0 1px rgba(0, 195, 255, 0.06) inset;
}

.game-travel-overlay.is-unscanned .travel-shipline {
  border-color: rgba(0, 195, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
}

.game-travel-overlay.is-hostile-target .travel-sector-badge {
  border-color: rgba(255, 107, 107, 0.32);
  background: rgba(255, 107, 107, 0.1);
  color: #ffd3d3;
}

.game-travel-overlay.is-open-target .travel-sector-badge {
  border-color: rgba(20, 241, 149, 0.3);
  background: rgba(20, 241, 149, 0.1);
}

@keyframes game-travel-ping {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 1px rgba(20, 241, 149, 0.08) inset;
  }

  50% {
    transform: scale(1.04);
    box-shadow:
      0 0 0 1px rgba(0, 195, 255, 0.12) inset,
      0 0 18px rgba(0, 195, 255, 0.16);
  }
}

.game-report-modal-copy {
  min-height: 260px;
}

.game-report-modal-text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font: inherit;
  font-size: 26px;
  line-height: 1.35;
  color: var(--muted);
}

#gameReportBody .report-visual-kind {
  font-size: 30px;
}

#gameReportBody .report-visual-sector {
  font-size: 24px;
}

#gameReportBody .report-outcome-pill {
  font-size: 22px;
}

#gameReportBody .report-fleet-table {
  font-size: 24px;
}

#gameReportBody .report-fleet-role span {
  font-size: 20px;
}

#gameReportBody .report-fleet-role b {
  font-size: 22px;
}

#gameReportBody .report-loot-bar,
#gameReportBody .report-effect-card,
#gameReportBody .report-siege-card,
#gameReportBody .report-intel-card {
  font-size: 24px;
}

#gameReportBody .report-effect-note {
  font-size: 22px;
}

#gameReportBody .report-siege-label {
  font-size: 20px;
}

.advisor-widget {
  position: absolute;
  top: 88px;
  right: 14px;
  z-index: 8;
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: min(560px, calc(100% - 18px));
  touch-action: none;
}

.advisor-widget.is-hidden {
  display: none;
}

.advisor-widget.is-minimized {
  pointer-events: none;
}

.advisor-widget.is-minimized .advisor-toggle {
  pointer-events: auto;
}

.advisor-avatar {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(20, 241, 149, 0.4);
  border-radius: 22px;
  background:
    radial-gradient(circle at top, rgba(153, 69, 255, 0.22), transparent 42%),
    rgba(6, 11, 20, 0.9);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.28),
    0 0 20px rgba(20, 241, 149, 0.12);
  cursor: grab;
}

.advisor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 0 12px rgba(20, 241, 149, 0.18));
}

.advisor-panel {
  width: calc(100% - 116px);
  padding: 16px 16px 15px;
  border-radius: 20px;
  border: 1px solid rgba(20, 241, 149, 0.28);
  background: rgba(5, 10, 18, 0.9);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(12px);
}

.advisor-widget.is-minimized .advisor-panel {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.advisor-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  cursor: grab;
}

.advisor-head-copy {
  min-width: 0;
}

.advisor-rank {
  color: var(--sol-b);
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.advisor-name {
  margin-top: 2px;
  font-size: 20px;
  color: var(--text);
}

.advisor-body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 12px;
}

.advisor-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.advisor-text-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.advisor-toggle {
  position: relative;
  width: 84px;
  min-width: 84px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 8px;
  border: 1px solid rgba(20, 241, 149, 0.3);
  border-radius: 12px;
  background: rgba(5, 10, 18, 0.9);
  color: var(--sol-b);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.45px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.advisor-toggle.has-alert::after {
  content: '!';
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff6f6f 0%, #d71313 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-shadow:
    0 0 0 2px rgba(5, 10, 18, 0.92),
    0 8px 18px rgba(215, 19, 19, 0.38);
  animation: advisor-alert-pulse 1.05s ease-in-out infinite;
}

@keyframes advisor-alert-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 0 2px rgba(5, 10, 18, 0.92),
      0 8px 18px rgba(215, 19, 19, 0.38);
  }

  50% {
    transform: scale(1.16);
    box-shadow:
      0 0 0 2px rgba(5, 10, 18, 0.92),
      0 12px 24px rgba(255, 56, 56, 0.52);
  }
}

.advisor-message {
  margin-top: 0;
  min-height: 118px;
  padding: 15px 15px 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.advisor-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.advisor-text-btn {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 11px;
  font-size: 13px;
}

.advisor-foot-note {
  font-size: 11px;
  color: rgba(238, 247, 255, 0.54);
}

.panel {
  width: min(1120px, 100%);
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 40px rgba(20, 241, 149, 0.08);
  backdrop-filter: blur(16px);
}

.auth-panel-wrap {
  position: relative;
  isolation: isolate;
  width: min(720px, 100%);
  margin: -38px auto 0;
}

.panel-auth {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  gap: 20px;
  padding: 24px 28px clamp(112px, 9vw, 142px);
  max-width: none;
  margin: 0;
  border: 1px solid rgba(20, 241, 149, 0.24);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 10px rgba(0, 255, 102, 0.3),
    0 0 20px rgba(0, 255, 102, 0.2),
    0 0 30px rgba(0, 255, 102, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
}

.panel-auth::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.16), transparent 28%, transparent 68%, rgba(20, 241, 149, 0.08)),
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.panel-auth > .panel-copy,
.panel-auth > .auth-card {
  position: relative;
  z-index: 3;
}

.auth-flyby-ship {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: var(--ship-width, clamp(420px, 82vw, 780px));
  max-width: none;
  height: auto;
  opacity: var(--ship-ghost-opacity, 0.001);
  pointer-events: none;
  transform-origin: 50% 50%;
  filter:
    saturate(1.14)
    drop-shadow(0 0 12px rgba(20, 241, 149, 0.34))
    drop-shadow(0 0 22px rgba(153, 69, 255, 0.18));
  animation: authShipFlyby var(--ship-duration, 24s) linear infinite;
  animation-delay: var(--ship-delay, 0s);
  animation-fill-mode: both;
  will-change: transform, opacity;
}

.auth-aliens-peek {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 0;
  width: min(560px, calc(100% - 84px));
  max-width: none;
  height: auto;
  pointer-events: none;
  opacity: 0.28;
  transform: translateX(-50%);
  filter:
    saturate(1.02)
    contrast(0.96)
    brightness(0.68)
    blur(0.4px)
    drop-shadow(0 -10px 22px rgba(20, 241, 149, 0.1));
}

@keyframes authShipFlyby {
  0% {
    opacity: var(--ship-ghost-opacity, 0.001);
    transform:
      translate(
        calc(-50% + var(--ship-start-x, -760px)),
        calc(-50% + var(--ship-start-y, 80px))
      )
      rotate(var(--ship-start-rot, -14deg))
      scale(var(--ship-start-scale, 0.62));
  }

  8% {
    opacity: var(--ship-ghost-opacity, 0.001);
    transform:
      translate(
        calc(-50% + var(--ship-start-x, -760px)),
        calc(-50% + var(--ship-start-y, 80px))
      )
      rotate(var(--ship-start-rot, -14deg))
      scale(var(--ship-start-scale, 0.62));
  }

  17% {
    opacity: calc(var(--ship-peak-opacity, 0.42) * 0.58);
    transform:
      translate(
        calc(-50% + var(--ship-entry-x, -620px)),
        calc(-50% + var(--ship-entry-y, -80px))
      )
      rotate(var(--ship-entry-rot, -8deg))
      scale(var(--ship-entry-scale, 0.66));
  }

  42% {
    opacity: var(--ship-peak-opacity, 0.42);
    transform:
      translate(
        calc(-50% + var(--ship-mid-x, 80px)),
        calc(-50% + var(--ship-mid-y, -60px))
      )
      rotate(var(--ship-mid-rot, 10deg))
      scale(var(--ship-mid-scale, 0.72));
  }

  64% {
    opacity: calc(var(--ship-peak-opacity, 0.42) * 0.72);
    transform:
      translate(
        calc(-50% + var(--ship-late-x, 520px)),
        calc(-50% + var(--ship-late-y, 70px))
      )
      rotate(var(--ship-late-rot, 28deg))
      scale(var(--ship-late-scale, 0.66));
  }

  78% {
    opacity: var(--ship-ghost-opacity, 0.001);
  }

  100% {
    opacity: var(--ship-ghost-opacity, 0.001);
    transform:
      translate(
        calc(-50% + var(--ship-end-x, 840px)),
        calc(-50% + var(--ship-end-y, -90px))
      )
      rotate(var(--ship-end-rot, 44deg))
      scale(var(--ship-end-scale, 0.58));
  }
}

.auth-logo {
  width: 100%;
  height: clamp(266px, 38vw, 352px);
  margin: -12px 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
  -webkit-mask-composite: source-in;
}

.auth-logo-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  mix-blend-mode: multiply;
  filter: saturate(1.22) contrast(1.12) brightness(1.32);
}

.panel-auth .panel-copy {
  text-align: center;
}

.panel-auth .panel-copy h1 {
  font-size: clamp(28px, 4vw, 46px);
}

.panel-auth .panel-text {
  margin: 12px auto 0;
}

.panel-copy h1,
.intro-copy h1,
.access-card h2 {
  margin: 0;
  line-height: 0.95;
}

.panel-copy h1,
.intro-copy h1 {
  font-size: clamp(34px, 5vw, 68px);
  text-transform: uppercase;
}

.eyebrow,
.card-tag {
  margin: 0 0 12px;
  color: var(--sol-b);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.panel-text,
.access-card p,
.intro-message,
.field-hint {
  color: var(--muted);
  line-height: 1.55;
}

.panel-text {
  max-width: 66ch;
  margin: 18px 0 0;
}

.panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.panel-tags span,
.identity-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.access-card {
  min-height: 220px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 12, 20, 0.66);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.access-note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(238, 247, 255, 0.58);
}

.auth-card {
  width: min(460px, 100%);
  margin: 0 auto;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(20, 241, 149, 0.16);
  background: rgba(5, 10, 16, 0.42);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 12px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.auth-panel.is-hidden {
  display: none;
}

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

.auth-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.auth-link-btn {
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sol-b);
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  text-align: left;
}

.auth-link-btn:hover {
  color: #baffdf;
  text-shadow: 0 0 10px rgba(20, 241, 149, 0.26);
}

.auth-link-btn--solo {
  justify-self: center;
  margin-top: 2px;
}

.mail-form,
.commander-form,
.auth-form {
  display: grid;
  gap: 10px;
}

.mail-form {
  margin-top: 18px;
}

.mail-form label,
.commander-form label,
.auth-form label {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.mail-form input,
.commander-form input,
.auth-form input {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(71, 208, 255, 0.24);
  background: rgba(0, 0, 0, 0.26);
  color: var(--text);
  font: inherit;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.auth-form input:focus,
.auth-form input:focus-visible {
  outline: none;
  border-color: transparent;
  background:
    linear-gradient(rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.34)) padding-box,
    linear-gradient(90deg, #9945ff, #14f195, #9945ff) border-box;
  box-shadow:
    0 0 10px rgba(153, 69, 255, 0.42),
    0 0 18px rgba(20, 241, 149, 0.28);
}

.action-btn {
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(20, 241, 149, 0.46);
  background:
    linear-gradient(90deg, rgba(153, 69, 255, 0.2), rgba(20, 241, 149, 0.16)),
    rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.action-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 241, 149, 0.84);
  box-shadow: 0 12px 24px rgba(20, 241, 149, 0.14);
}

.action-btn.alt {
  border-color: rgba(71, 208, 255, 0.4);
  background:
    linear-gradient(90deg, rgba(71, 208, 255, 0.18), rgba(153, 69, 255, 0.18)),
    rgba(255, 255, 255, 0.04);
}

.action-btn.ghost {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.panel-intro {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  padding: 28px;
  align-items: center;
}

.intro-portrait {
  display: grid;
  place-items: center;
}

.portrait-frame {
  width: min(100%, 260px);
  aspect-ratio: 1;
  padding: 16px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top, rgba(153, 69, 255, 0.22), transparent 42%),
    rgba(6, 11, 20, 0.86);
  border: 1px solid var(--line-2);
  box-shadow:
    0 0 32px rgba(153, 69, 255, 0.16),
    inset 0 0 20px rgba(255, 255, 255, 0.04);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(20, 241, 149, 0.24));
}

.intro-message {
  margin: 16px 0 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.identity-chip {
  margin-bottom: 18px;
  color: var(--sol-c);
}

.panel-map {
  padding: 22px;
}

.map-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
  min-height: min(84vh, 920px);
}

.map-sidebar {
  display: grid;
  gap: 14px;
}

.map-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 10, 18, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.map-summary,
.map-meta {
  color: var(--muted);
  line-height: 1.5;
}

.map-summary {
  font-size: 15px;
}

.map-meta {
  margin-top: 8px;
  font-size: 13px;
}

.space-clock-value {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
  color: var(--sol-b);
}

.space-clock-track {
  height: 12px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.space-clock-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sol-a), var(--sol-b), var(--sol-c));
  box-shadow: 0 0 18px rgba(20, 241, 149, 0.36);
}

.world-stats {
  display: grid;
  gap: 10px;
}

.world-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.world-stat span {
  color: var(--muted);
}

.world-stat strong {
  color: var(--text);
}

.map-actions {
  display: grid;
  gap: 12px;
}

.map-main {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  min-width: 0;
}

.map-headerline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 10, 18, 0.72);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  display: inline-block;
}

.legend-home {
  background: linear-gradient(180deg, rgba(20, 241, 149, 0.92), rgba(52, 216, 255, 0.8));
}

.legend-known {
  background: rgba(255, 255, 255, 0.18);
}

.legend-fog {
  background: rgba(0, 0, 0, 0.46);
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  gap: 8px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at center, rgba(20, 241, 149, 0.06), transparent 42%),
    rgba(5, 10, 18, 0.8);
  min-height: 620px;
}

.map-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(11, 18, 28, 0.95), rgba(4, 7, 12, 0.95));
  overflow: hidden;
}

.map-tile.is-discovered {
  border-color: rgba(71, 208, 255, 0.18);
  background:
    radial-gradient(circle at 40% 35%, rgba(52, 216, 255, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(18, 31, 46, 0.94), rgba(7, 11, 18, 0.96));
}

.map-tile.is-home {
  border-color: rgba(20, 241, 149, 0.6);
  box-shadow:
    0 0 0 1px rgba(20, 241, 149, 0.16) inset,
    0 0 24px rgba(20, 241, 149, 0.12);
}

.map-tile.is-fog {
  opacity: 0.56;
}

.map-tile-coord {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 11px;
  color: rgba(232, 244, 255, 0.62);
}

.map-tile-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 10px;
  text-align: center;
}

.map-tile-homecore {
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.9), rgba(20, 241, 149, 0.88) 28%, rgba(52, 216, 255, 0.68) 52%, rgba(153, 69, 255, 0.3) 78%, transparent 82%);
  box-shadow:
    0 0 18px rgba(20, 241, 149, 0.5),
    0 0 34px rgba(153, 69, 255, 0.28);
}

.map-tile-label {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text);
}

.map-tile-sub {
  margin-top: 4px;
  font-size: 10px;
  color: var(--muted);
}

.map-tile-fogmark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.14);
}

.field-hint {
  margin: 0 0 4px;
  font-size: 13px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.form-actions .action-btn {
  flex: 1 1 0;
}

.status-box {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(820px, calc(100vw - 24px));
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--panel-strong);
  color: var(--muted);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
  z-index: 3;
}

.status-box:empty {
  display: none;
}

.status-box.success {
  border-color: rgba(20, 241, 149, 0.42);
  color: #ddfff0;
}

.status-box.info {
  border-color: rgba(71, 208, 255, 0.24);
}

body[data-stage="auth"] #authStatus {
  display: none;
}

@media (max-width: 940px) {
  .access-grid,
  .panel-intro {
    grid-template-columns: 1fr;
  }

  .intro-portrait {
    order: -1;
  }

  .game-world-head {
    flex-direction: column;
  }

  .game-world-box-anchor {
    width: 100%;
    min-width: 0;
    align-self: auto;
    justify-content: flex-start;
  }

  .game-world-hud {
    min-width: 0;
    width: 100%;
  }

  .advisor-widget {
    width: min(364px, calc(100% - 16px));
  }
}

@media (max-width: 640px) {
  .scene-root {
    width: min(100vw - 16px, 1200px);
    padding: 14px 0 90px;
    min-height: auto;
  }

  body[data-stage="map"] .scene-root {
    width: calc(100vw - 30px);
    padding: 15px 0 36px;
  }

  .panel {
    border-radius: 20px;
  }

  .panel-auth,
  .panel-intro,
  .panel-map {
    padding: 18px;
    gap: 18px;
  }

  .auth-panel-wrap {
    margin-top: -14px;
  }

  .panel-auth {
    padding: 16px 18px 96px;
  }

  .panel-copy h1,
  .intro-copy h1 {
    font-size: 30px;
  }

  .auth-logo {
    height: 214px;
    margin: -8px 0 10px;
  }

  .auth-flyby-ship {
    width: var(--ship-width, 560px);
  }

  .auth-aliens-peek {
    bottom: 0;
    width: 360px;
    height: auto;
    opacity: 0.28;
  }

  .access-card {
    min-height: auto;
    border-radius: 18px;
    padding: 18px;
  }

  .portrait-frame {
    width: min(100%, 210px);
    border-radius: 20px;
  }

  .form-actions {
    flex-direction: column;
  }

  .game-world-head {
    padding: 18px;
    gap: 16px;
  }

  .game-world-box-trigger {
    width: 66px;
    min-height: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .game-world-box-trigger img {
    width: 34px;
    height: 34px;
  }

  .game-world-actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .game-world-actions .action-btn {
    width: auto;
    min-width: 0;
  }

  .advisor-widget {
    top: 76px;
    right: 10px;
    gap: 8px;
    width: min(360px, calc(100% - 8px));
  }

  .advisor-avatar {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
    border-radius: 16px;
  }

  .advisor-panel {
    width: calc(100% - 86px);
    padding: 12px;
    border-radius: 16px;
  }

  .advisor-toggle {
    width: 76px;
    min-width: 76px;
    height: 34px;
    margin-top: 6px;
    font-size: 10px;
  }

  .advisor-toggle.has-alert::after {
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    font-size: 12px;
  }

  .advisor-name {
    font-size: 15px;
  }

  .advisor-message {
    min-height: 96px;
    padding: 12px;
    font-size: 13px;
    line-height: 1.5;
  }

  .advisor-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .advisor-text-btn {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 12px;
  }

  #secondPlatform {
    padding: 10px;
  }

  .second-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding-bottom: 0;
    background: transparent;
  }

  .second-nav button {
    min-width: 0;
    width: 100%;
    padding: 10px 6px;
    font-size: 12px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .second-nav button[data-component="reports"],
  .second-nav button[data-component="messages"] {
    font-size: 10.5px;
    letter-spacing: 0;
    padding-left: 4px;
    padding-right: 4px;
  }

  .second-nav button.active {
    background: rgba(20, 241, 149, 0.28);
    color: #ffffff;
    text-shadow: 0 0 12px rgba(20, 241, 149, 1);
    box-shadow: inset 0 0 0 1px rgba(20, 241, 149, 0.5), 0 0 16px rgba(20, 241, 149, 0.2);
  }

  #secondContent {
    height: 460px;
    min-height: 460px;
    padding-top: 12px;
    overflow-y: hidden;
    overflow-x: hidden;
  }

  #secondPlatform[data-active-component] #secondContent {
    min-height: 460px;
    height: 460px;
    padding: 8px 0 0;
    overflow: hidden;
  }

  #secondPlatform[data-active-component="map"] #secondContent {
    overflow: hidden;
  }

  #secondPlatform[data-active-component]:not([data-active-component="map"]) #secondContent {
    overflow: hidden;
  }

  #map {
    width: calc(100% - 6px);
  }

  .map-zoom-controls {
    bottom: 10px;
    width: auto;
    max-width: calc(100% - 12px);
    padding: 0;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .map-zoom-btn {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    font-size: 28px;
  }
}

@media (min-width: 641px) and (max-width: 980px) {
  #secondPlatform {
    padding: 16px;
  }

  .second-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding-bottom: 0;
    background: transparent;
  }

  .second-nav button {
    min-width: 0;
    width: 100%;
    padding: 11px 8px;
    font-size: 13px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .second-nav button[data-component="reports"],
  .second-nav button[data-component="messages"] {
    font-size: 12px;
    letter-spacing: 0;
    padding-left: 6px;
    padding-right: 6px;
  }

  .second-nav button.active {
    background: rgba(20, 241, 149, 0.24);
    color: #f6fffb;
    text-shadow: 0 0 10px rgba(20, 241, 149, 0.95);
    box-shadow: inset 0 0 0 1px rgba(20, 241, 149, 0.45), 0 0 14px rgba(20, 241, 149, 0.18);
  }

  #secondContent {
    height: 620px;
    min-height: 620px;
    padding: 16px 0 0;
    overflow-y: hidden;
    overflow-x: hidden;
  }

  #secondPlatform[data-active-component] #secondContent {
    min-height: 620px;
    height: 620px;
    padding-top: 10px;
    overflow: hidden;
  }

  #secondPlatform[data-active-component="map"] #secondContent {
    overflow: hidden;
  }

  #secondPlatform[data-active-component]:not([data-active-component="map"]) #secondContent {
    overflow: hidden;
  }

  #map {
    width: calc(100% - 4px);
    max-width: none;
    margin-inline: auto;
  }

  .map-zoom-controls {
    bottom: 10px;
    width: auto;
    max-width: calc(100% - 16px);
    padding: 0;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .map-zoom-btn {
    width: 50px;
    height: 50px;
    font-size: 30px;
  }
}

.game-city-overlay {
  position: absolute;
  inset: 0;
  z-index: 18;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 12px;
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.72)),
    linear-gradient(180deg, rgba(2, 8, 12, 0.16), rgba(2, 8, 12, 0.48));
  backdrop-filter: blur(3px);
}

.game-city-overlay.is-hidden {
  display: none;
}

.game-bord-overlay {
  position: absolute;
  inset: 0;
  z-index: 24;
}

.game-bord-overlay.is-hidden {
  display: none;
}

.game-lab-overlay {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-lab-overlay.is-hidden {
  display: none;
}

.game-bord-modal {
  width: 95%;
  height: 90%;
  max-width: none;
  max-height: none;
}

.game-lab-modal {
  width: 95%;
  height: 90%;
  max-width: none;
  max-height: none;
}

.game-city-modal {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 2px solid rgba(24, 195, 64, 0.95);
  background-image:
    linear-gradient(rgba(7, 11, 18, 0.22), rgba(7, 11, 18, 0.34)),
    url('/foto/backgrounds/moonbackground.webp');
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
  box-shadow: 0 0 15px #9945ff, 0 0 30px #14f195;
  overflow: hidden;
}

.game-city-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.34);
  color: #fff;
  font: inherit;
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.game-city-close:hover {
  color: #ff7c7c;
  border-color: rgba(255, 124, 124, 0.45);
}

#gameReportCloseBtn.game-city-close {
  z-index: 4;
}

.game-city-header {
  padding: 22px 22px 10px;
}

.game-city-title {
  margin: 0 72px 18px 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 3px;
  text-align: center;
  background: linear-gradient(45deg, #9945ff, #14f195, #34d8ff, #9945ff);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 5s ease infinite;
}

.game-city-resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.game-city-resource-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.34);
  box-shadow: 0 0 12px rgba(0, 255, 102, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.game-city-resource-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(20, 241, 149, 0.18));
}

.game-city-resource-card:has(#gameCityResIron) {
  grid-template-columns: 56px 1fr;
}

.game-city-resource-card:has(#gameCityResIron) .game-city-resource-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  object-position: center;
  transform: none;
}

.game-city-resource-card:has(#gameCityResGold) {
  grid-template-columns: 56px 1fr;
}

.game-city-resource-card:has(#gameCityResGold) .game-city-resource-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  object-position: center;
  transform: none;
}

.game-city-resource-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.game-city-resource-label {
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #f4f8ff;
}

.game-city-resource-value {
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1;
  color: #14f195;
}

.game-city-resource-rate {
  font-size: 13px;
  color: rgba(238, 247, 255, 0.82);
}

.game-city-resource-rate.is-rare {
  color: rgba(238, 247, 255, 0.58);
}

.game-city-header {
  position: relative;
}

.travel-hud {
  position: absolute;
  right: 18px;
  bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  z-index: 20;
  pointer-events: none;
  font-family: 'Fever', Arial, sans-serif;
}

.travel-hud[hidden] {
  display: none !important;
}

.travel-hud-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 14px;
  opacity: 0.95;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.55);
}

.travel-hud-row.is-hostile .travel-hud-label,
.travel-hud-row.is-hostile .travel-hud-time {
  color: #ff7a7a;
  text-shadow: 0 0 6px rgba(255, 74, 74, 0.44);
}

.travel-hud-sector {
  opacity: 0.8;
  color: #e8f5ee;
}

.travel-hud-label {
  opacity: 0.75;
  color: #9fffcf;
  letter-spacing: 0.4px;
}

.travel-hud-time {
  color: #00ff66;
  text-shadow: 0 0 6px rgba(0, 255, 102, 0.55);
  font-variant-numeric: tabular-nums;
}

.game-city-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 0 22px 22px;
  min-height: 0;
}

.game-city-scene {
  position: relative;
  flex: 1 1 auto;
  min-height: 470px;
  overflow: hidden;
  isolation: isolate;
}

.game-city-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.08) 45%, rgba(0, 0, 0, 0.14)),
    radial-gradient(circle at 50% 78%, rgba(20, 241, 149, 0.08), transparent 32%);
  pointer-events: none;
}

.game-city-scene::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3%;
  width: calc(100% - 2px);
  height: min(1120px, 168%);
  z-index: 1;
  transform: translate(-50%, 125px);
  background: url('/foto/buildings/platform5.webp') center bottom / 136% auto no-repeat;
  opacity: 0.96;
  pointer-events: none;
}

.game-city-satellite-orbit {
  --satellite-orbit-x: min(42vw, 330px);
  --satellite-orbit-x-mid: min(30vw, 235px);
  --satellite-orbit-y: clamp(7px, 1.4vw, 14px);
  --satellite-orbit-y-mid: clamp(5px, 1vw, 10px);
  position: absolute;
  left: 50%;
  top: clamp(22px, 7%, 46px);
  width: min(74vw, 700px);
  height: clamp(58px, 8vw, 84px);
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
  opacity: 0.94;
}

.game-city-satellite-track {
  display: none;
}

.game-city-satellite-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(34px, 4.4vw, 58px);
  height: auto;
  transform: translate(-50%, -50%) translateX(calc(0px - var(--satellite-orbit-x))) translateY(var(--satellite-orbit-y));
  filter:
    drop-shadow(0 0 10px rgba(120, 248, 232, 0.35))
    drop-shadow(0 0 14px rgba(153, 69, 255, 0.22));
  animation: gameCitySatelliteOval 26s linear infinite;
}

@supports (offset-path: ellipse(50% 30% at 50% 50%)) {
  .game-city-satellite-icon {
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    offset-path: ellipse(48% 28% at 50% 50%);
    offset-distance: 0%;
    offset-rotate: 0deg;
    animation: gameCitySatellitePath 26s linear infinite;
  }
}

@keyframes gameCitySatellitePath {
  from {
    offset-distance: 0%;
  }
  to {
    offset-distance: 100%;
  }
}

@keyframes gameCitySatelliteOval {
  0% {
    transform:
      translate(-50%, -50%)
      translateX(calc(0px - var(--satellite-orbit-x)))
      translateY(0)
      rotate(-6deg)
      scale(0.96);
  }
  12.5% {
    transform:
      translate(-50%, -50%)
      translateX(calc(0px - var(--satellite-orbit-x-mid)))
      translateY(calc(0px - var(--satellite-orbit-y-mid)))
      rotate(-3deg)
      scale(0.98);
  }
  25% {
    transform:
      translate(-50%, -50%)
      translateX(0)
      translateY(calc(0px - var(--satellite-orbit-y)))
      rotate(0deg)
      scale(1);
  }
  37.5% {
    transform:
      translate(-50%, -50%)
      translateX(var(--satellite-orbit-x-mid))
      translateY(calc(0px - var(--satellite-orbit-y-mid)))
      rotate(3deg)
      scale(0.98);
  }
  50% {
    transform:
      translate(-50%, -50%)
      translateX(var(--satellite-orbit-x))
      translateY(0)
      rotate(6deg)
      scale(0.96);
  }
  62.5% {
    transform:
      translate(-50%, -50%)
      translateX(var(--satellite-orbit-x-mid))
      translateY(var(--satellite-orbit-y-mid))
      rotate(3deg)
      scale(0.94);
  }
  75% {
    transform:
      translate(-50%, -50%)
      translateX(0)
      translateY(var(--satellite-orbit-y))
      rotate(0deg)
      scale(0.92);
  }
  87.5% {
    transform:
      translate(-50%, -50%)
      translateX(calc(0px - var(--satellite-orbit-x-mid)))
      translateY(var(--satellite-orbit-y-mid))
      rotate(-3deg)
      scale(0.94);
  }
  100% {
    transform:
      translate(-50%, -50%)
      translateX(calc(0px - var(--satellite-orbit-x)))
      translateY(0)
      rotate(-6deg)
      scale(0.96);
  }
}

.game-city-slots {
  position: absolute;
  inset: 0;
  z-index: 2;
  --slot-lift: -11%;
}

.game-city-slot {
  position: absolute;
  left: calc(var(--x) + var(--slot-offset-x, 0px));
  top: calc(var(--y) + var(--slot-lift) + var(--slot-offset-y, 0px));
  width: clamp(66px, 7vw, 104px);
  height: clamp(42px, 4.6vw, 60px);
  padding: 0;
  appearance: none;
  font: inherit;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(20, 241, 149, 0.22);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  color: rgba(244, 248, 255, 0.88);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

#gameCitySlot7 {
  --slot-offset-x: -29px;
  --slot-offset-y: 26px;
}

#gameCitySlot1 {
  --slot-offset-x: -5px;
  --slot-offset-y: -5px;
}

.game-city-slot:hover {
  transform: translate(-50%, -50%) scale(1.04);
  border-color: rgba(20, 241, 149, 0.45);
  box-shadow: 0 0 18px rgba(20, 241, 149, 0.16);
}

@media (min-width: 0px) {
  .game-city-slot.is-buildable-empty {
    isolation: isolate;
    width: clamp(92px, calc(8.6vw + 10px), 136px);
    height: clamp(32px, 3.1vw, 44px);
    border: 1px solid rgba(20, 241, 149, 0.72);
    border-radius: 50%;
    background: rgba(2, 10, 14, 0.12);
    box-shadow:
      0 0 22px rgba(20, 241, 149, 0.34),
      0 0 34px rgba(153, 69, 255, 0.16),
      inset 0 0 16px rgba(20, 241, 149, 0.24);
  }

  .game-city-slot.is-buildable-empty::before,
  .game-city-slot.is-buildable-empty::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.34);
  }

  .game-city-slot.is-buildable-empty::before {
    width: 70%;
    height: 54%;
    border: 1px solid rgba(153, 69, 255, 0.9);
    box-shadow:
      0 0 9px rgba(153, 69, 255, 0.58),
      inset 0 0 8px rgba(153, 69, 255, 0.28);
  }

  .game-city-slot.is-buildable-empty::after {
    width: 40%;
    height: 28%;
    border: 1px solid rgba(52, 216, 255, 0.94);
    box-shadow:
      0 0 8px rgba(52, 216, 255, 0.62),
      inset 0 0 7px rgba(20, 241, 149, 0.28);
  }

  .game-city-slot.is-buildable-empty:hover::before,
  .game-city-slot.is-buildable-empty:focus-visible::before,
  .game-city-slot.is-buildable-empty:active::before {
    animation: gameCityEmptyRingReveal 780ms ease-out 70ms both,
      gameCityEmptyRingDrift 1.8s ease-in-out 850ms infinite;
  }

  .game-city-slot.is-buildable-empty:hover::after,
  .game-city-slot.is-buildable-empty:focus-visible::after,
  .game-city-slot.is-buildable-empty:active::after {
    animation: gameCityEmptyRingReveal 720ms ease-out 260ms both,
      gameCityEmptyRingDriftReverse 1.45s ease-in-out 980ms infinite;
  }

  .game-city-slot.is-buildable-empty .game-city-slot-number {
    display: none;
  }

  .game-city-slot.is-building .game-city-slot-number {
    display: none;
  }
}

@keyframes gameCityEmptyRingReveal {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.34);
  }
  62% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.92);
  }
  100% {
    opacity: 0.96;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes gameCityEmptyRingDrift {
  0%, 100% { transform: translate(-50%, -50%) scale(1); filter: brightness(1); }
  50% { transform: translate(-50%, -50%) scale(0.88); filter: brightness(1.35); }
}

@keyframes gameCityEmptyRingDriftReverse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.88); filter: brightness(1.3); }
  50% { transform: translate(-50%, -50%) scale(1.08); filter: brightness(0.92); }
}

.game-city-slot-number {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(28px, 2.8vw, 38px);
  color: #fff6b0;
  text-shadow: 0 0 10px rgba(255, 244, 140, 0.44);
  pointer-events: none;
}

.game-city-slot-art {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -62%);
  width: 198%;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.44));
  transition: filter 0.2s ease;
}

@keyframes gameCitySolanaLogoPulse {
  0%, 100% {
    filter:
      drop-shadow(0 14px 18px rgba(0, 0, 0, 0.44))
      drop-shadow(0 0 4px rgba(153, 69, 255, 0.68))
      drop-shadow(0 0 7px rgba(120, 248, 232, 0.54))
      drop-shadow(0 0 11px rgba(20, 241, 149, 0.56));
  }
  50% {
    filter:
      drop-shadow(0 14px 18px rgba(0, 0, 0, 0.44))
      drop-shadow(0 0 6px rgba(153, 69, 255, 0.78))
      drop-shadow(0 0 10px rgba(120, 248, 232, 0.62))
      drop-shadow(0 0 16px rgba(20, 241, 149, 0.66));
  }
}

.game-city-slot.is-building {
  border-color: transparent;
  background: transparent;
}

.game-city-slot.is-building:hover {
  transform: translate(-50%, -50%);
  border-color: transparent;
  box-shadow: none;
}

.game-city-slot.is-building:hover .game-city-slot-art {
  animation: gameCitySolanaLogoPulse 1.35s ease-in-out infinite;
}

.game-city-slot.is-building .game-city-slot-number {
  top: auto;
  left: auto;
  right: -8px;
  bottom: -16px;
  transform: none;
  font-size: clamp(24px, 2.2vw, 34px);
}

.game-city-slot.is-rocket_silo {
  z-index: 8;
}

.game-city-slot.is-rocket_silo .game-city-slot-name,
.game-city-slot.is-rocket_silo .game-city-slot-level {
  z-index: 9;
}

.game-city-slot.is-shipyard .game-city-slot-art {
  width: 192.6%;
  transform: translate(-50%, -61%);
}

.game-city-slot.is-relay_tower .game-city-slot-art {
  transform: translate(-50.83%, calc(-49.54% - 105px));
}

.game-city-slot.is-relay_tower .game-city-slot-name {
  bottom: calc(100% - 18px);
}

.game-city-slot.is-relay_tower .game-city-slot-level {
  bottom: calc(100% - 44px);
}

.game-city-slot-name,
.game-city-slot-level {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
}

.game-city-slot-name {
  bottom: calc(100% + 44px);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(3, 11, 18, 0.78);
  font-size: 12px;
  color: #eef7ff;
  letter-spacing: 0.6px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.game-city-slot-level {
  bottom: calc(100% + 16px);
  font-size: 13px;
  color: #14f195;
  text-shadow: 0 0 10px rgba(20, 241, 149, 0.22);
}

.game-city-slot.is-upgrading .game-city-slot-name {
  bottom: calc(100% + 56px);
}

.game-city-slot-level.has-progress {
  --slot-progress: 0;
  bottom: calc(100% + 12px);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #14f195;
  text-shadow: 0 0 10px rgba(20, 241, 149, 0.28);
  background: rgba(2, 12, 19, 0.92);
  box-shadow: 0 0 0 1px rgba(20, 241, 149, 0.16) inset;
}

.game-city-slot-level.has-progress .game-city-slot-level-number {
  color: #ff4d5e;
  text-shadow: 0 0 9px rgba(255, 54, 78, 0.52);
}

.game-city-slot-level.has-progress::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background:
    conic-gradient(from -90deg,
      #9945ff 0,
      #14f195 calc(var(--slot-progress) * 0.52%),
      #34d8ff calc(var(--slot-progress) * 1%),
      rgba(153, 69, 255, 0.14) 0
    );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  filter:
    drop-shadow(0 0 7px rgba(153, 69, 255, 0.3))
    drop-shadow(0 0 8px rgba(20, 241, 149, 0.24))
    drop-shadow(0 0 7px rgba(52, 216, 255, 0.22));
  pointer-events: none;
}

.game-city-slot-progress {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 10px);
  transform: translateX(-50%);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(20, 241, 149, 0.24);
  background: rgba(3, 11, 18, 0.86);
  color: #98ffd4;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-shadow: 0 0 8px rgba(20, 241, 149, 0.2);
  white-space: nowrap;
  pointer-events: none;
}

.game-city-note {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  color: rgba(238, 247, 255, 0.8);
  font-size: 13px;
  line-height: 1.45;
}

.game-building-overlay {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.72)),
    linear-gradient(180deg, rgba(3, 11, 18, 0.18), rgba(3, 11, 18, 0.38));
  backdrop-filter: blur(3px);
}

.game-building-overlay.is-hidden {
  display: none;
}

.game-building-modal {
  position: relative;
  width: min(760px, 100%);
  max-height: 100%;
  overflow: auto;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(20, 241, 149, 0.3);
  background:
    linear-gradient(180deg, rgba(7, 12, 20, 0.96), rgba(5, 9, 16, 0.95)),
    rgba(0, 0, 0, 0.4);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 28px rgba(20, 241, 149, 0.12);
}

.game-building-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.game-building-head {
  padding-right: 48px;
}

.game-building-kicker {
  color: var(--sol-b);
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.game-building-title {
  margin: 6px 0 0;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #eef7ff;
}

.game-building-body {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.game-building-note {
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(238, 247, 255, 0.78);
  line-height: 1.5;
}

.game-building-summary-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.game-building-summary-line {
  color: rgba(238, 247, 255, 0.84);
  line-height: 1.5;
}

.game-building-summary-line strong {
  color: var(--sol-b);
}

.game-building-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.game-building-stat-card {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.game-building-stat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.game-building-stat-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.game-building-stat-title {
  font-size: 16px;
  color: #eef7ff;
}

.game-building-stat-sub {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(238, 247, 255, 0.62);
}

.game-building-stat-line {
  color: rgba(238, 247, 255, 0.84);
  line-height: 1.5;
}

.game-building-stat-line strong {
  color: var(--sol-b);
}

.game-building-progress {
  height: 10px;
  margin: 12px 0 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.game-building-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sol-a), var(--sol-b), var(--sol-c));
  transition: width 240ms linear;
}

.game-building-upgrade-progress {
  width: 100%;
  margin-top: 12px;
}

.game-building-upgrade-progress[hidden] {
  display: none !important;
}

.game-building-upgrade-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(231, 243, 251, 0.74);
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.game-building-upgrade-progress-head b {
  color: var(--sol-b, #14f195);
  font-size: 15px;
  text-shadow: 0 0 8px rgba(20, 241, 149, 0.28);
}

@media (max-width: 980px) {
  .game-city-overlay {
    position: fixed;
    inset: 0;
    z-index: 200000;
    padding: 12px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    background: rgba(3, 8, 14, 0.72);
    background-image: none;
    backdrop-filter: blur(2px);
  }

  .game-bord-modal {
    width: 96%;
    height: 92%;
    padding: 20px;
  }

  .game-lab-modal {
    width: 96%;
    height: 92%;
  }

  .game-city-modal {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 24px);
    max-height: calc(100svh - 24px);
    border-radius: 16px;
    overflow: hidden;
  }

  .game-city-header {
    padding: 18px 16px 8px;
  }

  .game-city-body {
    padding: 0 16px 16px;
    overflow: hidden;
  }

  .game-city-note {
    display: none;
  }

  .game-city-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .game-city-resource-card,
  .game-city-resource-card:has(#gameCityResIron),
  .game-city-resource-card:has(#gameCityResGold) {
    grid-template-columns: 36px 1fr;
    min-height: 0;
    gap: 8px;
    padding: 8px;
  }

  .game-city-resource-icon,
  .game-city-resource-card:has(#gameCityResIron) .game-city-resource-icon,
  .game-city-resource-card:has(#gameCityResGold) .game-city-resource-icon {
    width: 36px;
    height: 36px;
  }

  .game-city-resource-copy {
    gap: 2px;
  }

  .game-city-resource-label {
    font-size: 12px;
  }

  .game-city-resource-value {
    font-size: 14px;
  }

  .game-city-resource-rate {
    font-size: 10px;
  }

  #gameBuildingOverlay .bord-resbar,
  #gameLabOverlay .lab-resbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #gameBuildingOverlay .bord-resbar .res,
  #gameLabOverlay .lab-resbar .res,
  #gameLabOverlay .lab-resbar .res:has(#gameLabResSolune) {
    display: grid;
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto auto;
    align-items: center;
    justify-content: initial;
    min-height: 0;
    gap: 2px 8px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.34);
    box-shadow:
      0 0 12px rgba(0, 255, 102, 0.08),
      0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  }

  #gameBuildingOverlay .bord-resbar .res-icon,
  #gameLabOverlay .lab-resbar .res-icon {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 36px;
    height: 36px;
    object-fit: contain;
    object-position: center;
    transform: none;
  }

  #gameBuildingOverlay .bord-resbar .res-label,
  #gameLabOverlay .lab-resbar .res-label {
    grid-column: 2;
    grid-row: 1;
    font-size: 12px;
  }

  #gameBuildingOverlay .bord-resbar .res-val,
  #gameLabOverlay .lab-resbar .res-val {
    grid-column: 2;
    grid-row: 2;
    font-size: 14px;
    line-height: 1;
  }

  #gameBuildingOverlay .bord-resbar .res-rate,
  #gameLabOverlay .lab-resbar .res-rate,
  #gameLabOverlay .lab-resbar .res:has(#gameLabResSolune) .res-rate {
    grid-column: 2;
    grid-row: 3;
    margin-left: 0;
    font-size: 10px;
    opacity: 0.82;
  }

  .travel-hud {
    position: static;
    margin-top: 8px;
    align-items: flex-start;
  }

  .travel-hud-row {
    gap: 6px;
    font-size: 12px;
    flex-wrap: wrap;
  }

  #gameMarketPanel.market-container {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    padding-bottom: 14px;
  }

  .game-city-scene {
    min-height: clamp(340px, 52dvh, 460px);
  }

  .game-city-scene::after {
    width: min(800px, 120%);
    height: min(640px, 104%);
    bottom: 1%;
    transform: translate(-50%, 76px);
    background-size: 128% auto;
  }

  .game-city-slot {
    width: clamp(60px, 11vw, 88px);
    height: clamp(38px, 6.8vw, 52px);
  }

  #gameCitySlot1 {
    --slot-offset-x: -16px;
    --slot-offset-y: -6px;
  }

  #gameCitySlot4 {
    --slot-offset-x: -4px;
    --slot-offset-y: -8px;
  }

  #gameCitySlot7 {
    --slot-offset-x: -12px;
    --slot-offset-y: 8px;
  }

  .game-city-slot-number {
    font-size: clamp(20px, 5vw, 30px);
  }

  .game-city-slot-number {
    display: none;
  }

  .game-city-slot.is-building .game-city-slot-art {
    width: 124%;
    transform: translate(-50%, -60%);
  }

  .game-city-slot.is-building.is-shipyard .game-city-slot-art {
    width: 126%;
    transform: translate(-50%, -60%);
  }

  .game-city-slot.is-building.is-relay_tower .game-city-slot-art {
    transform: translate(-50.83%, calc(-49.54% - clamp(42px, 6vw, 54px)));
  }

  .game-city-slot.is-building .game-city-slot-name {
    display: none;
  }

  .game-city-slot.is-buildable-empty .game-city-slot-name {
    display: none;
  }

  .game-city-slots {
    --slot-lift: -6.9%;
  }

  .game-building-modal {
    width: min(680px, 100%);
    padding: 18px;
  }

  .game-building-overlay {
    background:
      radial-gradient(circle at center, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.56)),
      linear-gradient(180deg, rgba(3, 11, 18, 0.1), rgba(3, 11, 18, 0.24));
    backdrop-filter: blur(2px);
  }

  .game-building-stat-grid {
    grid-template-columns: 1fr;
  }

  #gameReportsPanel.reports-container {
    height: 100%;
    min-height: 0;
  }

  #gameClanPanel.clan-container {
    height: 100%;
    min-height: 0;
    padding-right: 0;
  }

  .clan-grid {
    grid-template-columns: 1fr;
  }

  .clan-stats {
    grid-template-columns: 1fr;
  }

  .clan-card-head,
  .clan-hero-top,
  .clan-member-row,
  .clan-event-row,
  .clan-invite-row,
  .clan-invite-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .game-travel-modal {
    width: calc(100% - 18px);
    height: calc(100% - 18px);
  }
}

@media (max-width: 640px) {
  .game-city-overlay {
    padding: 10px;
  }

  .game-city-modal {
    max-height: calc(100vh - 20px);
    max-height: calc(100svh - 20px);
  }

  .game-bord-modal {
    width: 100%;
    height: 100%;
    padding: 16px;
    border-radius: 16px;
  }

  .game-city-close {
    top: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    font-size: 36px;
  }

  .game-travel-modal .travel-head {
    padding-right: 74px;
  }

  .travel-head-topline {
    gap: 8px;
    margin-bottom: 8px;
  }

  .travel-sector-badge {
    min-height: 26px;
    padding: 5px 10px;
    font-size: 10px;
  }

  .travel-mode-note {
    font-size: 11px;
  }

  .game-travel-modal .travel-title {
    font-size: 21px;
  }

  .travel-time-grid {
    gap: 8px;
  }

  .travel-time-chip {
    min-width: 112px;
    flex: 1 1 0;
    padding: 9px 10px;
  }

  .travel-time-chip b {
    font-size: 15px;
  }

  .game-travel-modal .travel-shipline {
    padding: 10px 12px;
  }

  .game-travel-overlay .travel-shiprow {
    padding: 12px;
  }

  .travel-shipicon-wrap {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }

  .game-travel-overlay .travel-shipicon {
    width: 48px;
    height: 48px;
  }

  .travel-shipstats {
    gap: 6px;
  }

  .travel-shipstat {
    padding: 4px 7px;
  }

  .game-city-title {
    margin-right: 56px;
    font-size: 26px;
    letter-spacing: 2px;
  }

  .game-city-resource-grid {
    gap: 6px;
  }

  .game-city-resource-card,
  .game-city-resource-card:has(#gameCityResIron),
  .game-city-resource-card:has(#gameCityResGold) {
    grid-template-columns: 30px 1fr;
    min-height: 0;
    padding: 7px;
    gap: 6px;
  }

  .game-city-resource-icon,
  .game-city-resource-card:has(#gameCityResIron) .game-city-resource-icon,
  .game-city-resource-card:has(#gameCityResGold) .game-city-resource-icon {
    width: 30px;
    height: 30px;
    transform: none;
  }

  .game-city-resource-copy {
    gap: 1px;
  }

  .game-city-resource-label {
    font-size: 10px;
  }

  .game-city-resource-value {
    font-size: 12px;
  }

  .game-city-resource-rate {
    font-size: 9px;
  }

  #gameBuildingOverlay .bord-resbar .res,
  #gameLabOverlay .lab-resbar .res,
  #gameLabOverlay .lab-resbar .res:has(#gameLabResSolune) {
    grid-template-columns: 30px 1fr;
    padding: 7px;
    gap: 1px 6px;
  }

  #gameBuildingOverlay .bord-resbar .res-icon,
  #gameLabOverlay .lab-resbar .res-icon {
    width: 30px;
    height: 30px;
  }

  #gameBuildingOverlay .bord-resbar .res-label,
  #gameLabOverlay .lab-resbar .res-label {
    font-size: 10px;
  }

  #gameBuildingOverlay .bord-resbar .res-val,
  #gameLabOverlay .lab-resbar .res-val {
    font-size: 12px;
  }

  #gameBuildingOverlay .bord-resbar .res-rate,
  #gameLabOverlay .lab-resbar .res-rate,
  #gameLabOverlay .lab-resbar .res:has(#gameLabResSolune) .res-rate {
    font-size: 9px;
  }

  .travel-hud {
    margin-top: 6px;
  }

  .travel-hud-row {
    font-size: 11px;
    gap: 5px;
  }

  .game-city-scene {
    flex: 0 0 clamp(300px, 50svh, 380px);
    width: 100%;
    height: clamp(300px, 50svh, 380px);
    min-height: clamp(300px, 50svh, 380px);
    max-height: clamp(300px, 50svh, 380px);
  }

  .game-city-scene::after {
    width: min(680px, 124%);
    height: min(510px, 102%);
    bottom: 1%;
    transform: translate(-50%, 56px);
    background-size: 124% auto;
  }

  .game-city-slot {
    width: clamp(52px, 15vw, 64px);
    height: clamp(34px, 9vw, 42px);
  }

  .game-city-slot.is-buildable-empty {
    width: 54px;
    height: 19px;
  }

  #gameCitySlot1 {
    --slot-offset-x: -20px;
    --slot-offset-y: -6px;
  }

  #gameCitySlot3 {
    --slot-offset-x: 15px;
    --slot-offset-y: -18px;
  }

  #gameCitySlot4 {
    --slot-offset-x: -4px;
    --slot-offset-y: -8px;
  }

  #gameCitySlot7 {
    --slot-offset-x: -16px;
    --slot-offset-y: 3px;
  }

  #gameCitySlot8 {
    --slot-offset-x: 1px;
    --slot-offset-y: -7px;
  }

  #gameCitySlot9 {
    --slot-offset-x: 5px;
    --slot-offset-y: -22px;
  }

  #gameCitySlot2 {
    --slot-offset-x: 2px;
    --slot-offset-y: -28px;
  }

  #gameCitySlot6 {
    --slot-offset-x: 4px;
    --slot-offset-y: -2px;
  }

  .game-city-slot.is-building .game-city-slot-art {
    width: 116%;
    transform: translate(-50%, -60%);
  }

  .game-city-slot.is-building.is-shipyard .game-city-slot-art {
    width: 117%;
    transform: translate(-50%, -60%);
  }

  .game-city-slot.is-building.is-rocket_silo .game-city-slot-art {
    transform: translate(-50%, calc(-60% - 10px));
  }

  .game-city-slot.is-building.is-relay_tower .game-city-slot-art {
    transform: translate(-50.83%, calc(-49.54% - clamp(30px, 9vw, 38px) - 12px));
  }

  .game-city-slots {
    --slot-lift: 5%;
  }

  .game-city-slot-name {
    bottom: calc(100% + 34px);
    font-size: 10px;
  }

  .game-city-slot-level {
    bottom: calc(100% + 12px);
    font-size: 11px;
  }

  .game-city-slot.is-upgrading .game-city-slot-name {
    bottom: calc(100% + 50px);
  }

  .game-city-slot.is-upgrading {
    z-index: 40 !important;
  }

  .game-city-slot.is-upgrading .game-city-slot-name,
  .game-city-slot.is-upgrading .game-city-slot-level,
  .game-city-slot.is-upgrading .game-city-slot-progress {
    z-index: 41;
  }

  .game-city-slot-level.has-progress {
    width: 42px;
    height: 42px;
    font-size: 11px;
  }

  .game-city-slot-progress {
    bottom: calc(100% - 11px);
    font-size: 20px;
    line-height: 1;
    padding: 2px 8px;
  }

  .game-building-overlay {
    padding: 10px;
  }

  .game-building-modal {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
  }

  .game-building-close {
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .game-building-title {
    font-size: 24px;
  }

  #gameReportsPanel.reports-container h2 {
    margin-bottom: 14px;
    font-size: 24px;
  }

  .game-travel-modal {
    width: 100%;
    height: 100%;
    border-radius: 16px;
  }

  .travel-head-topline {
    flex-direction: column;
    align-items: flex-start;
  }

  .travel-time-grid {
    flex-direction: column;
  }

  .travel-time-chip {
    width: 100%;
  }

  .game-travel-mission-row {
    gap: 6px;
  }

  .game-travel-mission-btn {
    flex: 1 1 calc(50% - 6px);
    min-height: 32px;
    padding: 6px 8px;
    font-size: 12px;
  }

  .game-travel-overlay .travel-shiprow.is-scout .travel-shipicon {
    width: 50px;
    height: 50px;
  }

  .travel-shipicon-wrap {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .game-travel-status {
    max-width: none;
  }

  .game-travel-overlay .travel-actions {
    align-items: stretch;
  }
}

@media (max-width: 980px) and (max-height: 740px) {
  .game-city-scene {
    flex-basis: 300px;
    height: 300px;
    min-height: 300px;
    max-height: 300px;
  }

  .game-city-scene::after {
    bottom: 1%;
    transform: translate(-50%, 34px);
    background-size: 113% auto;
  }

  .game-city-slots {
    --slot-lift: -3.7%;
  }
}

@media (max-width: 980px) {
  #mapViewport #map .tile.base-tile,
  #mapViewport #map .tile.base-tile.sector-visited:not(.tile-ghost) {
    position: relative;
    z-index: 4;
    overflow: visible;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }

  #mapViewport #map .tile.base-tile::after {
    content: none;
    display: none;
  }

  #mapViewport #map .tile.base-tile .tile-content {
    position: absolute;
    inset: -28%;
    display: grid;
    place-items: center;
    overflow: visible;
    pointer-events: none;
    z-index: 2;
  }

  #mapViewport #map .tile.base-tile .map-home-planet-img {
    width: 180% !important;
    height: 180% !important;
    min-width: 42px;
    min-height: 42px;
    object-fit: contain !important;
    filter:
      drop-shadow(0 0 8px rgba(20, 241, 149, 0.82))
      drop-shadow(0 0 14px rgba(153, 69, 255, 0.48));
  }
}

/* Main section titles aligned with the Moonbook title. */
#gameReportsPanel.reports-container > h2,
#gameMessagesPanel.messages-container > h2,
#gameClanPanel.clan-container > h2 {
  flex: 0 0 auto;
  width: fit-content;
  max-width: calc(100% - 44px);
  margin: 38px 0 18px 22px;
  padding: 0;
  font-family: 'Fever', Arial, sans-serif;
  font-size: 52px;
  line-height: 1;
  color: #f4fbff;
  background: linear-gradient(45deg, var(--sol-a, #9945ff), var(--sol-b, #14f195), var(--sol-c, #34d8ff));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(153, 69, 255, 0.22);
}

@media (max-width: 760px) {
  #gameReportsPanel.reports-container > h2,
  #gameMessagesPanel.messages-container > h2,
  #gameClanPanel.clan-container > h2 {
    max-width: calc(100% - 24px);
    margin: 30px 0 14px 12px;
    font-size: 36px;
  }
}

/* Clan skin aligned with Market and Moonbook. Functionality and layout stay unchanged. */
#gameClanPanel.clan-container {
  --clan-card-bg: linear-gradient(145deg, rgba(8, 31, 39, 0.76), rgba(3, 16, 24, 0.82));
  --clan-card-border: rgba(76, 255, 172, 0.2);
  --clan-card-hover: rgba(20, 241, 149, 0.46);
  background: transparent;
}

#gameClanPanel .clan-shell {
  gap: 14px;
  padding: 0 8px 20px 0;
}

#gameClanPanel .clan-grid {
  gap: 14px;
}

#gameClanPanel .clan-card {
  padding: 16px;
  border: 1px solid var(--clan-card-border);
  border-radius: 12px;
  background: var(--clan-card-bg);
  box-shadow:
    inset 0 0 24px rgba(20, 241, 149, 0.025),
    0 10px 28px rgba(0, 0, 0, 0.22);
}

#gameClanPanel .clan-card--hero,
#gameClanPanel .clan-card--intro {
  background:
    linear-gradient(115deg, rgba(153, 69, 255, 0.12), rgba(20, 241, 149, 0.07) 58%, transparent),
    var(--clan-card-bg);
}

#gameClanPanel .clan-card-head,
#gameClanPanel .clan-hero-top {
  border-bottom-color: rgba(76, 255, 172, 0.16);
}

#gameClanPanel .clan-card-title,
#gameClanPanel .clan-title {
  width: fit-content;
  max-width: 100%;
  font-family: 'Fever', Arial, sans-serif;
  color: #f4fbff;
  background: linear-gradient(45deg, #9945ff, #14f195, #34d8ff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(153, 69, 255, 0.2);
}

#gameClanPanel .clan-card-title {
  font-size: 23px;
}

#gameClanPanel .clan-eyebrow,
#gameClanPanel .clan-invite-section-title {
  color: rgba(52, 216, 255, 0.88);
}

#gameClanPanel .clan-input,
#gameClanPanel .clan-contact-select {
  border-color: var(--clan-card-border);
  background: rgba(1, 13, 19, 0.68);
  box-shadow: inset 0 0 18px rgba(20, 241, 149, 0.025);
}

#gameClanPanel .clan-input:focus,
#gameClanPanel .clan-contact-select:focus {
  outline: none;
  border-color: rgba(20, 241, 149, 0.46);
  box-shadow:
    inset 0 0 18px rgba(20, 241, 149, 0.04),
    0 0 14px rgba(153, 69, 255, 0.12);
}

#gameClanPanel .clan-stat,
#gameClanPanel .clan-member-row,
#gameClanPanel .clan-event-row,
#gameClanPanel .clan-invite-row,
#gameClanPanel .market-empty {
  border: 1px solid rgba(76, 255, 172, 0.14);
  border-radius: 10px;
  background: rgba(1, 13, 19, 0.56);
  box-shadow: inset 0 0 18px rgba(20, 241, 149, 0.022);
}

#gameClanPanel .clan-member-row:hover,
#gameClanPanel .clan-event-row:hover,
#gameClanPanel .clan-invite-row:hover {
  border-color: var(--clan-card-hover);
  background: rgba(4, 22, 29, 0.84);
  box-shadow:
    inset 0 0 20px rgba(20, 241, 149, 0.04),
    0 8px 22px rgba(0, 0, 0, 0.24),
    0 0 14px rgba(153, 69, 255, 0.1);
}

#gameClanPanel .clan-perks span,
#gameClanPanel .clan-tag-pill,
#gameClanPanel .clan-role-badge,
#gameClanPanel .clan-event-badge,
#gameClanPanel .clan-member-presence {
  border-color: rgba(76, 255, 172, 0.22);
  background: rgba(5, 10, 18, 0.46);
}

#gameClanPanel .clan-tag-pill {
  color: #8dffcb;
  background: linear-gradient(90deg, rgba(153, 69, 255, 0.13), rgba(20, 241, 149, 0.1));
}

#gameClanPanel .clan-card .market-btn,
#gameClanPanel .clan-card .action-btn {
  min-height: 42px;
  border: 1px solid rgba(153, 69, 255, 0.22);
  border-radius: 9px;
  background: rgba(5, 10, 18, 0.52);
  color: #eef7ff;
  font-family: 'Fever', Arial, sans-serif;
}

#gameClanPanel .clan-card .market-btn:hover,
#gameClanPanel .clan-card .action-btn:hover {
  border-color: rgba(20, 241, 149, 0.46);
  background: linear-gradient(90deg, rgba(153, 69, 255, 0.14), rgba(20, 241, 149, 0.1));
}

#gameClanPanel .clan-card .market-btn.buy {
  border-color: rgba(20, 241, 149, 0.34);
  background: linear-gradient(90deg, rgba(153, 69, 255, 0.13), rgba(20, 241, 149, 0.12));
}

#gameClanPanel .clan-leave-btn {
  border-color: rgba(255, 119, 119, 0.4);
  color: #ffc1c1;
}

@media (max-width: 760px) {
  #gameClanPanel .clan-shell {
    gap: 10px;
    padding: 0 0 14px;
  }

  #gameClanPanel .clan-grid {
    gap: 10px;
  }

  #gameClanPanel .clan-card {
    padding: 12px;
    border-radius: 10px;
  }

  #gameClanPanel .clan-card-title {
    font-size: 20px;
  }
}
/* Shared unread counter for Reports, Messages and other second-block navigation. */
.second-nav button {
  position: relative;
}

.second-nav-notification-badge {
  position: absolute;
  top: 5px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(153, 69, 255, 0.55);
  border-radius: 4px;
  background: rgba(20, 8, 34, 0.92);
  color: #d9c0ff;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-shadow: none;
  box-sizing: border-box;
  pointer-events: none;
}

/* Shared Moonbook-style close control for second-block sections. */
#gameReportsPanel,
#gameMarketPanel,
#gameClanPanel,
#gameMessagesPanel {
  position: relative;
}

.section-map-close.moonbook-close.game-city-close {
  top: 14px;
  right: 16px;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  font-size: 40px;
  z-index: 8;
}

#gameMarketPanel .market-header-row {
  padding-right: 68px;
}

/* Mobile Reports fills the second block; only the report list scrolls. */
@media (max-width: 640px) {
  .section-map-close.moonbook-close.game-city-close {
    top: 10px;
    right: 9px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 30px;
  }

  #gameMarketPanel .market-header-row {
    padding-right: 52px;
  }

  body[data-stage="map"] #mapScene #secondPlatform[data-active-component]:not([data-active-component="map"]) #secondContent {
    height: 570px !important;
    min-height: 570px !important;
  }

  #secondPlatform[data-active-component="messages"] #gameMessagesPanel.messages-container {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  #secondPlatform[data-active-component="clan"] #gameClanPanel.clan-container {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  #secondPlatform[data-active-component="reports"] #gameReportsPanel.reports-container {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
  }

  #secondPlatform[data-active-component="reports"] #reportsFeed {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  /* Use the mobile header width efficiently without clipping player details. */
  body[data-stage="map"] #mapScene .game-world-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
  }

  body[data-stage="map"] #mapScene .game-world-copy {
    width: 100%;
    min-width: 0;
  }

  body[data-stage="map"] #mapScene .game-world-commander {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  body[data-stage="map"] #mapScene .game-world-copy .game-world-meta {
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
  }

  body[data-stage="map"] #mapScene .game-world-hud {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 8px;
  }

  body[data-stage="map"] #mapScene .game-world-clock {
    width: 100%;
    min-width: 0;
  }

  /* Compact Clan layout for phone screens. */
  #gameClanPanel .clan-shell,
  #gameClanPanel .clan-grid {
    gap: 8px;
  }

  #gameClanPanel .clan-card {
    padding: 10px;
  }

  #gameClanPanel .clan-card-head,
  #gameClanPanel .clan-hero-top,
  #gameClanPanel .clan-member-row,
  #gameClanPanel .clan-event-row,
  #gameClanPanel .clan-invite-row,
  #gameClanPanel .clan-invite-actions {
    flex-direction: row;
    align-items: center;
  }

  #gameClanPanel .clan-card-head,
  #gameClanPanel .clan-hero-top {
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 8px;
  }

  #gameClanPanel .clan-hero-top > div {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, auto) auto;
    align-items: center;
    column-gap: 8px;
  }

  #gameClanPanel .clan-hero-top .clan-eyebrow {
    grid-column: 1 / -1;
  }

  #gameClanPanel .clan-title,
  #gameClanPanel .clan-tag-pill {
    margin-top: 4px;
  }

  #gameClanPanel .clan-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  #gameClanPanel .clan-stat {
    min-height: 52px;
    padding: 7px 6px;
  }

  #gameClanPanel .clan-stat-label {
    font-size: 9px;
    letter-spacing: 0.04em;
  }

  #gameClanPanel .clan-stat b {
    margin-top: 4px;
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  #gameClanPanel .clan-member-list,
  #gameClanPanel .clan-event-list,
  #gameClanPanel .clan-invite-list {
    gap: 6px;
    margin-top: 8px;
  }

  #gameClanPanel .clan-member-row,
  #gameClanPanel .clan-event-row,
  #gameClanPanel .clan-invite-row {
    gap: 7px;
    padding: 8px;
  }

  #gameClanPanel .clan-member-main,
  #gameClanPanel .clan-event-copy {
    gap: 7px;
  }

  #gameClanPanel .clan-member-presence,
  #gameClanPanel .clan-role-badge,
  #gameClanPanel .clan-event-badge {
    min-height: 24px;
    padding: 3px 7px;
    font-size: 10px;
  }

  #gameClanPanel .clan-compose {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 7px;
    margin-top: 8px;
  }

  #gameClanPanel .clan-compose .clan-submit-btn {
    width: auto;
    padding-inline: 9px;
  }

  #gameClanPanel .clan-invite-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
  }

  #gameClanPanel .clan-invite-actions .action-btn {
    width: auto;
    min-height: 34px;
    padding: 5px 8px;
  }
}

/* Desktop parity overrides must stay after the base component rules. */
@media (min-width: 761px) {
  #gameMessagesPanel.messages-container {
    background: transparent;
  }

  #gameMessagesPanel #gameMessagesRoot {
    padding: 0 8px 20px 0;
  }

  #gameMessagesPanel .game-messages-compose,
  #gameMessagesPanel .msg-card,
  #gameMessagesPanel .market-empty {
    border-color: rgba(20, 241, 149, 0.16);
    background: linear-gradient(145deg, rgba(8, 31, 39, 0.64), rgba(3, 16, 24, 0.7));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(153, 69, 255, 0.06) inset;
  }

  #gameMessagesPanel .game-messages-compose-title,
  #gameMessagesPanel .msg-title {
    font-family: 'Fever', Arial, sans-serif;
    background: linear-gradient(90deg, #9945ff, #14f195, #9945ff);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #14f195;
  }

  #gameMessagesPanel .game-messages-compose-title {
    font-size: 22px;
    letter-spacing: 0.04em;
  }

  #gameMessagesPanel .game-messages-compose-controls {
    grid-template-columns: minmax(210px, 0.34fr) minmax(0, 1fr);
    align-items: stretch;
  }

  #gameMessagesPanel .game-messages-compose-controls .market-select {
    grid-column: 1;
    grid-row: 1;
  }

  #gameMessagesPanel .game-messages-compose-controls .game-message-input {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  #gameMessagesPanel .game-messages-compose-controls .market-action-btn {
    grid-column: 1;
    grid-row: 2;
  }

  #gameMessagesPanel .market-select,
  #gameMessagesPanel .game-message-input {
    border-color: rgba(20, 241, 149, 0.18);
    background: rgba(1, 13, 19, 0.52);
  }

  #gameMessagesPanel .msg-card.is-unread {
    border-color: rgba(20, 241, 149, 0.5);
    box-shadow: 0 0 0 1px rgba(20, 241, 149, 0.14), 0 12px 28px rgba(0, 0, 0, 0.16);
  }
}
/* Restored demo star, moved inward so its full 2x2 artwork remains visible on mobile. */
#mapViewport #map .tile.map-star-tile {
  overflow: visible;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  pointer-events: auto;
  cursor: pointer;
  z-index: 12;
}

#mapViewport #map .tile.map-star-hit-tile {
  cursor: pointer;
}

#mapViewport #map .tile.map-asteroid-field-hit-tile {
  cursor: pointer;
}

.game-star-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.82));
  backdrop-filter: blur(3px);
}

.game-star-overlay.is-hidden {
  display: none;
}

.game-star-modal {
  position: relative;
  width: min(760px, 100%);
  max-height: 94%;
  overflow: auto;
  padding: 22px;
  border: 2px solid rgba(24, 195, 64, 0.95);
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(rgba(7, 11, 18, 0.35), rgba(7, 11, 18, 0.74)), url('/foto/backgrounds/moonbackground.webp') center / cover;
  box-shadow: 0 0 15px #9945ff, 0 0 30px #14f195;
}

.game-asteroid-field-modal {
  border-color: rgba(190, 137, 78, 0.88);
  box-shadow: 0 0 16px rgba(255, 174, 83, 0.38), 0 0 34px rgba(90, 114, 143, 0.3);
}

.game-asteroid-field-scene {
  background: radial-gradient(circle, rgba(112, 74, 45, 0.28), rgba(3, 8, 16, 0.96) 70%);
}

.game-asteroid-field-scene img {
  position: relative;
  z-index: 2;
  width: min(60%, 270px);
  height: min(74%, 250px);
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 0 13px rgba(255, 167, 72, 0.36));
}

.game-asteroid-field-scene-aura {
  background: radial-gradient(circle, rgba(255, 169, 79, 0.24), rgba(132, 88, 50, 0.09) 48%, transparent 76%);
}

.game-star-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 68px;
}

.game-star-preview {
  width: 106px;
  height: 106px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 220, 120, 0.85));
}

.game-star-kicker,
.game-star-header p {
  margin: 0;
  opacity: 0.72;
}

.game-star-header h2 {
  margin: 3px 0;
  font-size: 34px;
  background: linear-gradient(90deg, #9945ff, #14f195, #ffd76a);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.game-stellar-nft-rating {
  margin: 1px 0 5px;
  color: #ffd76a;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 3px;
  text-shadow: 0 0 6px rgba(255, 215, 106, 0.78), 0 0 14px rgba(255, 151, 42, 0.42);
  white-space: nowrap;
}

.game-star-scene {
  position: relative;
  height: 270px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 16px;
  background: radial-gradient(circle, rgba(255, 150, 20, 0.18), rgba(3, 7, 14, 0.88) 62%);
}

.game-star-scene img {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(330px, 70%);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 22px rgba(255, 210, 100, 0.9));
}

.game-star-scene-aura {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 230px;
  height: 230px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 155, 35, 0.2);
  filter: blur(22px);
}

.game-star-resources h3 {
  margin: 18px 0 10px;
}

.game-star-resource-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid rgba(20, 241, 149, 0.35);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.32);
}

.game-star-resource-card img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.game-star-resource-card div {
  display: flex;
  flex-direction: column;
}

.game-star-resource-card span {
  font-size: 18px;
}

.game-star-resource-card strong {
  color: #14f195;
}

.game-star-harvester-lock {
  display: grid;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 215, 106, 0.2);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.24);
}

.game-star-harvester-btn {
  width: 100%;
}

.game-star-harvester-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(0.7);
}

.game-star-harvester-lock span {
  display: block;
  color: #ffd76a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

@media (max-width: 640px) {
  .game-stone-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    padding: 0;
    z-index: 2147483000;
    align-items: stretch;
    justify-content: stretch;
  }

  .game-stone-overlay .game-stone-modal {
    width: 100%;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    border-radius: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .game-star-modal {
    width: 100%;
    max-height: 100%;
    padding: 16px;
  }

  .game-star-preview {
    width: 76px;
    height: 76px;
  }


  .game-star-header h2 {
    font-size: 27px;
  }

  .game-star-scene {
    height: 220px;
  }
}

#mapViewport #map .map-star-wrap {
  position: absolute;
  left: 0;
  top: 0;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 10;
}

#mapViewport #map .map-star-wrap--large-copy {
  left: -100%;
  top: -100%;
  width: 300%;
  height: 300%;
}

#mapViewport #map .star-asteroid-field {
  position: absolute;
  inset: 0;
  z-index: 11;
  display: block;
  overflow: visible;
  pointer-events: none;
}

#mapViewport #map .star-asteroid-track {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: var(--star-asteroid-orbit-size, 240%);
  height: var(--star-asteroid-orbit-size, 240%);
  transform-origin: center;
  will-change: transform;
  animation: secondStarAsteroidOrbit var(--star-asteroid-orbit-duration, 60s) linear infinite;
}

#mapViewport #map .star-orbiting-asteroid {
  position: absolute;
  left: 100%;
  top: 50%;
  display: block;
  width: var(--star-asteroid-visual-size, 6%);
  height: auto;
  object-fit: contain;
  transform: translate(-50%, -50%);
  transform-origin: center;
  filter: brightness(1.08) drop-shadow(0 0 5px rgba(255, 163, 63, 0.25));
  will-change: transform;
  animation: secondStarAsteroidSpin var(--star-asteroid-spin-duration, 14s) linear infinite;
}

#mapViewport #map .star-orbiting-asteroid--large {
  filter:
    brightness(1.1)
    drop-shadow(0 0 6px rgba(255, 176, 72, 0.32))
    drop-shadow(0 0 11px rgba(255, 111, 36, 0.2));
}

@keyframes secondStarAsteroidOrbit {
  from { transform: translate(-50%, -50%) rotate(var(--star-asteroid-start-angle, 0deg)); }
  to { transform: translate(-50%, -50%) rotate(calc(var(--star-asteroid-start-angle, 0deg) + 360deg)); }
}

@keyframes secondStarAsteroidSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}

@media (prefers-reduced-motion: reduce) {
  #mapViewport #map .star-asteroid-track,
  #mapViewport #map .star-orbiting-asteroid {
    animation: none !important;
  }
}

/* Keep second-block section headers and their primary controls on shared rails. */
@media (min-width: 761px) {
  #gameReportsPanel.reports-container > h2,
  #gameMessagesPanel.messages-container > h2,
  #gameClanPanel.clan-container > h2,
  #gameMarketPanel .market-header-row {
    width: 100%;
    min-height: 82px;
    margin: 0;
    padding: 14px 94px 14px 20px;
    box-sizing: border-box;
  }

  #gameReportsPanel.reports-container > h2,
  #gameMessagesPanel.messages-container > h2,
  #gameClanPanel.clan-container > h2 {
    max-width: none;
    display: flex;
    align-items: center;
    font-size: 38px;
  }

  #gameMarketPanel .market-header-row h2 {
    top: 22px;
    left: 20px;
    font-size: 38px;
  }

  #gameMarketPanel .market-header-row .market-balance {
    top: 14px;
  }
}

#gameMarketPanel .market-view-tabs,
#gameReportsPanel .report-filter-row {
  width: 100%;
  min-height: 45px;
  margin: 0;
  padding: 6px 12px;
  align-items: stretch;
  box-sizing: border-box;
}

#gameMarketPanel .market-view-tabs {
  flex: 0 0 45px;
}

#gameReportsPanel .report-filter-row {
  top: 0;
  flex: 0 0 45px;
}

@media (max-width: 760px) {
  #gameReportsPanel.reports-container > h2,
  #gameMessagesPanel.messages-container > h2,
  #gameClanPanel.clan-container > h2,
  #gameMarketPanel .market-header-row {
    width: 100%;
    min-height: 112px;
    margin: 0;
    padding: 9px 58px 9px 10px;
    box-sizing: border-box;
  }

  #gameReportsPanel.reports-container > h2,
  #gameMessagesPanel.messages-container > h2,
  #gameClanPanel.clan-container > h2 {
    max-width: none;
    display: flex;
    align-items: flex-start;
    padding-top: 12px;
    font-size: 36px;
  }

  #gameMarketPanel .market-header-row h2 {
    top: 12px;
    left: 10px;
    font-size: 36px;
  }

  #gameMarketPanel .market-header-row .market-balance {
    top: 10px;
    right: 58px;
  }
}

#mapViewport #map .map-black-hole-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 9;
  width: 56%;
  height: 56%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  isolation: isolate;
  filter: none;
}

#mapViewport #map .map-black-hole-wrap::before,
#mapViewport #map .map-black-hole-disk,
#mapViewport #map .map-black-hole-photon-ring {
  display: none;
}

#mapViewport #map .map-black-hole-wrap::before {
  display: block;
  content: "";
  position: absolute;
  inset: -52%;
  z-index: 4;
  border-radius: 46% 54% 48% 52% / 55% 44% 56% 45%;
  background: conic-gradient(from 0deg,
    rgba(156, 33, 5, 0.14) 0deg,
    rgba(211, 59, 8, 0.28) 35deg,
    rgba(247, 104, 16, 0.46) 72deg,
    rgba(255, 158, 48, 0.6) 108deg,
    rgba(255, 168, 39, 0.82) 145deg,
    rgba(255, 171, 61, 0.58) 181deg,
    rgba(241, 92, 13, 0.4) 218deg,
    rgba(191, 45, 5, 0.2) 254deg,
    rgba(239, 82, 10, 0.36) 290deg,
    rgba(255, 145, 39, 0.54) 326deg,
    rgba(156, 33, 5, 0.14) 360deg);
  -webkit-mask: radial-gradient(circle,
    transparent 0 47%,
    rgba(0, 0, 0, 0.32) 55%,
    #000 62%,
    rgba(0, 0, 0, 0.18) 76%,
    transparent 94%);
  mask: radial-gradient(circle,
    transparent 0 47%,
    rgba(0, 0, 0, 0.32) 55%,
    #000 62%,
    rgba(0, 0, 0, 0.18) 76%,
    transparent 94%);
  clip-path: none;
  filter:
    url(#demoBlackHoleAuraWaves)
    blur(6px)
    brightness(1.55)
    drop-shadow(0 0 9px rgba(255, 137, 32, 0.78))
    drop-shadow(0 0 21px rgba(222, 54, 7, 0.55));
  pointer-events: none;
  animation: gameMapBlackHoleOuterAura 11s linear infinite;
}

#mapViewport #map .map-black-hole-wrap::after {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: 5;
  border-radius: 52% 48% 55% 45% / 47% 56% 44% 53%;
  background: conic-gradient(from 18deg,
    rgba(184, 42, 4, 0.58) 0deg,
    rgba(226, 68, 7, 0.72) 30deg,
    rgba(250, 112, 15, 0.86) 60deg,
    rgba(255, 165, 43, 0.96) 90deg,
    rgba(255, 211, 111, 1) 120deg,
    rgba(255, 174, 43, 1) 150deg,
    rgba(255, 145, 21, 0.98) 180deg,
    rgba(255, 137, 25, 0.9) 210deg,
    rgba(239, 84, 8, 0.76) 240deg,
    rgba(194, 43, 3, 0.58) 270deg,
    rgba(229, 67, 6, 0.7) 300deg,
    rgba(249, 108, 14, 0.84) 330deg,
    rgba(184, 42, 4, 0.58) 360deg);
  -webkit-mask: radial-gradient(circle,
    transparent 0 49%,
    rgba(0, 0, 0, 0.35) 54%,
    #000 59%,
    rgba(0, 0, 0, 0.22) 72%,
    transparent 91%);
  mask: radial-gradient(circle,
    transparent 0 49%,
    rgba(0, 0, 0, 0.35) 54%,
    #000 59%,
    rgba(0, 0, 0, 0.22) 72%,
    transparent 91%);
  clip-path: none;
  filter:
    url(#demoBlackHoleAuraWaves)
    blur(1.6px)
    brightness(1.9)
    saturate(1.38)
    drop-shadow(0 0 5px rgba(255, 170, 35, 1))
    drop-shadow(0 0 13px rgba(255, 102, 13, 1))
    drop-shadow(0 0 25px rgba(225, 48, 5, 0.92))
    drop-shadow(0 0 38px rgba(154, 24, 2, 0.7));
  opacity: 1;
  pointer-events: none;
  animation: gameMapBlackHoleCloudAura 7s linear infinite;
}

#mapViewport #map .map-black-hole-filter-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

#mapViewport #map .map-black-hole-canvas {
  position: absolute;
  inset: -14%;
  z-index: 4;
  display: block;
  width: 128%;
  height: 128%;
}

#mapViewport #map .map-black-hole-canvas.is-webgl-active + .map-black-hole-image {
  display: none;
}

#mapViewport #map .map-black-hole-wrap::before {
  content: "";
  position: absolute;
  inset: 12%;
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 12%, transparent 0 48%, rgba(255, 157, 70, 0.22) 51%, transparent 58%),
    radial-gradient(ellipse at 50% 88%, transparent 0 48%, rgba(156, 62, 27, 0.14) 51%, transparent 58%);
  filter: blur(4px);
  animation: gameMapBlackHoleLens 5.5s ease-in-out infinite;
}

#mapViewport #map .map-black-hole-disk,
#mapViewport #map .map-black-hole-disk::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 142%;
  height: 43%;
  border-radius: 50%;
  background:
    linear-gradient(90deg,
      rgba(87, 25, 10, 0.04) 0%,
      rgba(255, 91, 25, 0.18) 18%,
      rgba(255, 203, 127, 0.92) 37%,
      rgba(255, 245, 216, 0.72) 46%,
      rgba(255, 125, 38, 0.36) 62%,
      rgba(99, 29, 11, 0.06) 100%),
    repeating-linear-gradient(96deg,
      transparent 0 9px,
      rgba(255, 223, 176, 0.28) 11px,
      transparent 15px 25px);
  background-size: 100% 100%, 220px 100%;
  -webkit-mask: radial-gradient(ellipse, transparent 0 31%, #000 39% 65%, transparent 73%);
  mask: radial-gradient(ellipse, transparent 0 31%, #000 39% 65%, transparent 73%);
}

#mapViewport #map .map-black-hole-disk {
  z-index: 4;
  transform: translate(-50%, -50%) rotate(-7deg);
  filter:
    blur(1.2px)
    drop-shadow(0 0 5px rgba(255, 205, 145, 0.58))
    drop-shadow(0 0 12px rgba(213, 75, 25, 0.38));
  animation: gameMapBlackHoleDisk 7.5s linear infinite;
}

#mapViewport #map .map-black-hole-disk::after {
  content: "";
  z-index: 5;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  opacity: 0.38;
  filter: blur(3px);
  animation: gameMapBlackHoleGas 10s linear infinite reverse;
}

#mapViewport #map .map-black-hole-photon-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: 78%;
  height: 78%;
  border: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse at 50% 8%, transparent 0 46%, rgba(255, 211, 153, 0.55) 49%, transparent 54%),
    radial-gradient(ellipse at 50% 92%, transparent 0 46%, rgba(198, 86, 37, 0.25) 49%, transparent 54%);
  filter: blur(0.8px) drop-shadow(0 0 4px rgba(255, 135, 52, 0.34));
  animation: gameMapBlackHolePhoton 4.6s ease-in-out infinite;
}

#mapViewport #map .map-black-hole-image {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    sepia(1)
    saturate(3.8)
    hue-rotate(-12deg)
    drop-shadow(0 0 3px rgba(255, 135, 20, 0.96))
    drop-shadow(0 0 8px rgba(255, 76, 7, 0.82))
    drop-shadow(0 0 17px rgba(185, 31, 2, 0.58));
}

@keyframes gameMapBlackHoleCloudAura {
  0% { transform: rotate(0deg) scale(0.97); opacity: 0.82; }
  50% { transform: rotate(180deg) scale(1.055); opacity: 1; }
  100% { transform: rotate(360deg) scale(0.97); opacity: 0.82; }
}

@keyframes gameMapBlackHoleOuterAura {
  from { transform: rotate(0deg) scale(0.96); opacity: 0.62; }
  50% { transform: rotate(180deg) scale(1.06); opacity: 1; }
  to { transform: rotate(360deg) scale(0.96); opacity: 0.62; }
}

@keyframes gameMapBlackHoleInnerCloudWave {
  0%, 100% {
    border-radius: 52% 48% 55% 45% / 47% 56% 44% 53%;
    clip-path: polygon(50% 1%, 66% 10%, 82% 12%, 90% 29%, 100% 48%, 89% 63%, 84% 84%, 64% 88%, 49% 100%, 33% 88%, 14% 84%, 11% 64%, 0% 49%, 12% 32%, 17% 13%, 35% 11%);
  }
  25% {
    border-radius: 45% 55% 49% 51% / 56% 46% 54% 44%;
    clip-path: polygon(50% 8%, 67% 0%, 80% 17%, 100% 27%, 92% 47%, 96% 66%, 77% 78%, 66% 100%, 48% 91%, 30% 98%, 20% 78%, 0% 68%, 8% 48%, 3% 29%, 23% 20%, 33% 0%);
  }
  50% {
    border-radius: 55% 45% 46% 54% / 44% 53% 47% 56%;
    clip-path: polygon(50% 0%, 65% 13%, 84% 5%, 89% 26%, 100% 48%, 88% 66%, 91% 83%, 67% 86%, 50% 100%, 34% 89%, 8% 91%, 12% 66%, 0% 50%, 12% 34%, 8% 17%, 34% 14%);
  }
  75% {
    border-radius: 48% 52% 57% 43% / 53% 43% 57% 47%;
    clip-path: polygon(50% 9%, 69% 1%, 80% 20%, 98% 32%, 91% 50%, 100% 68%, 78% 80%, 65% 98%, 48% 90%, 31% 100%, 19% 79%, 1% 67%, 9% 48%, 0% 31%, 21% 19%, 35% 2%);
  }
}

@keyframes gameMapBlackHoleOuterCloudWave {
  0%, 100% {
    border-radius: 46% 54% 48% 52% / 55% 44% 56% 45%;
    clip-path: polygon(50% 4%, 70% 0%, 82% 18%, 100% 29%, 92% 50%, 98% 69%, 80% 82%, 66% 100%, 48% 92%, 29% 99%, 17% 80%, 0% 67%, 8% 49%, 1% 29%, 21% 18%, 34% 1%);
  }
  25% {
    border-radius: 56% 44% 53% 47% / 45% 57% 43% 55%;
    clip-path: polygon(50% 0%, 64% 12%, 86% 7%, 90% 27%, 100% 49%, 87% 64%, 91% 87%, 66% 89%, 50% 100%, 34% 87%, 10% 92%, 13% 65%, 0% 50%, 11% 34%, 8% 12%, 35% 14%);
  }
  50% {
    border-radius: 49% 51% 43% 57% / 58% 47% 53% 42%;
    clip-path: polygon(50% 10%, 68% 0%, 79% 20%, 99% 32%, 90% 50%, 100% 67%, 78% 79%, 65% 100%, 48% 89%, 31% 99%, 20% 77%, 0% 68%, 10% 48%, 1% 30%, 23% 20%, 34% 0%);
  }
  75% {
    border-radius: 43% 57% 55% 45% / 48% 42% 58% 52%;
    clip-path: polygon(50% 0%, 66% 13%, 85% 5%, 89% 27%, 100% 48%, 87% 67%, 92% 84%, 67% 87%, 49% 100%, 33% 89%, 7% 91%, 13% 65%, 0% 50%, 12% 33%, 7% 16%, 35% 14%);
  }
}

/* NASA-inspired accretion disk variant: fixed lensed arcs with moving gas inside. */
#mapViewport #map .map-black-hole-wrap::before,
#mapViewport #map .map-black-hole-wrap::after {
  display: none !important;
}

#mapViewport #map .map-black-hole-image {
  z-index: 3;
  filter: saturate(1.35) sepia(0.25) brightness(0.86);
}

#mapViewport #map .map-black-hole-gas-arc {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 150%;
  height: 132%;
  transform: translate(-50%, -50%) rotate(-8deg);
  overflow: hidden;
  pointer-events: none;
  filter:
    url(#demoBlackHoleAuraWaves)
    blur(2.4px)
    drop-shadow(0 0 5px rgba(255, 121, 28, 0.8))
    drop-shadow(0 0 13px rgba(183, 45, 7, 0.58));
}

#mapViewport #map .map-black-hole-gas-arc--upper {
  clip-path: inset(0 0 49% 0);
}

#mapViewport #map .map-black-hole-gas-arc--lower {
  clip-path: inset(51% 0 0 0);
  opacity: 0.72;
}

#mapViewport #map .map-black-hole-gas-arc::before {
  content: "";
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg,
      transparent 0deg 8deg,
      rgba(255, 216, 129, 0.58) 10deg 13deg,
      transparent 16deg 41deg,
      rgba(255, 181, 68, 0.42) 43deg 47deg,
      transparent 50deg 79deg,
      rgba(255, 225, 147, 0.52) 81deg 84deg,
      transparent 87deg 119deg,
      rgba(255, 174, 55, 0.45) 121deg 126deg,
      transparent 129deg 166deg,
      rgba(255, 210, 111, 0.55) 168deg 171deg,
      transparent 174deg 206deg,
      rgba(255, 183, 67, 0.4) 208deg 212deg,
      transparent 215deg 251deg,
      rgba(255, 224, 139, 0.56) 253deg 257deg,
      transparent 260deg 294deg,
      rgba(255, 172, 49, 0.44) 296deg 300deg,
      transparent 303deg 337deg,
      rgba(255, 207, 105, 0.5) 339deg 343deg,
      transparent 346deg 360deg),
    conic-gradient(from 0deg,
      rgba(220, 65, 9, 0.7) 0deg,
      rgba(242, 87, 12, 0.78) 30deg,
      rgba(255, 119, 22, 0.84) 60deg,
      rgba(255, 147, 37, 0.88) 90deg,
      rgba(255, 128, 25, 0.83) 120deg,
      rgba(241, 84, 11, 0.76) 150deg,
      rgba(225, 67, 8, 0.72) 180deg,
      rgba(244, 91, 13, 0.79) 210deg,
      rgba(255, 133, 27, 0.86) 240deg,
      rgba(255, 151, 39, 0.89) 270deg,
      rgba(250, 108, 18, 0.81) 300deg,
      rgba(232, 75, 9, 0.74) 330deg,
      rgba(220, 65, 9, 0.7) 360deg),
    repeating-conic-gradient(from 4deg,
      rgba(255, 192, 88, 0.16) 0deg 3deg,
      transparent 5deg 11deg);
  -webkit-mask: radial-gradient(ellipse,
    transparent 0 42%,
    rgba(0, 0, 0, 0.55) 47%,
    #000 52% 62%,
    rgba(0, 0, 0, 0.25) 68%,
    transparent 74%);
  mask: radial-gradient(ellipse,
    transparent 0 42%,
    rgba(0, 0, 0, 0.55) 47%,
    #000 52% 62%,
    rgba(0, 0, 0, 0.25) 68%,
    transparent 74%);
  filter: blur(3.3px) saturate(1.12);
  animation: gameMapBlackHoleRearGas 6.5s linear infinite;
}

#mapViewport #map .map-black-hole-gas-arc--lower::before {
  animation-duration: 8s;
}

#mapViewport #map .map-black-hole-front-disk {
  position: absolute;
  left: 50%;
  top: 56%;
  z-index: 5;
  width: 166%;
  height: 49%;
  transform: translate(-50%, -50%) rotate(-9deg);
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  filter:
    url(#demoBlackHoleAuraWaves)
    blur(0.8px)
    drop-shadow(0 0 5px rgba(255, 153, 43, 0.9))
    drop-shadow(0 0 14px rgba(196, 49, 7, 0.7));
  -webkit-mask: radial-gradient(ellipse,
    transparent 0 30%,
    rgba(0, 0, 0, 0.65) 38%,
    #000 45% 67%,
    rgba(0, 0, 0, 0.28) 73%,
    transparent 81%);
  mask: radial-gradient(ellipse,
    transparent 0 30%,
    rgba(0, 0, 0, 0.65) 38%,
    #000 45% 67%,
    rgba(0, 0, 0, 0.28) 73%,
    transparent 81%);
}

#mapViewport #map .map-black-hole-front-disk::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(93, 20, 3, 0.15),
      rgba(214, 57, 6, 0.62) 18%,
      rgba(255, 132, 22, 0.96) 34%,
      rgba(255, 196, 77, 0.88) 46%,
      rgba(239, 80, 8, 0.62) 64%,
      rgba(118, 25, 3, 0.2)),
    repeating-linear-gradient(96deg,
      transparent 0 7px,
      rgba(255, 205, 104, 0.5) 10px,
      rgba(255, 92, 9, 0.18) 14px,
      transparent 19px 28px);
  background-size: 100% 100%, 240px 100%;
  animation: gameMapBlackHoleFrontGas 5.5s linear infinite;
}

@keyframes gameMapBlackHoleRearGas {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes gameMapBlackHoleFrontGas {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 0, 240px 0; }
}

@keyframes gameMapBlackHoleDisk {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 0, 220px 0; }
}

@keyframes gameMapBlackHoleGas {
  from { background-position: 0 0, 0 0; transform: translate(-50%, -50%) scale(0.98); }
  to { background-position: 0 0, -220px 0; transform: translate(-50%, -50%) scale(1.02); }
}

@keyframes gameMapBlackHolePhoton {
  0%, 100% { opacity: 0.52; transform: translate(-50%, -50%) scale(0.99); }
  50% { opacity: 0.82; transform: translate(-50%, -50%) scale(1.01); }
}

@keyframes gameMapBlackHoleLens {
  0%, 100% { transform: scale(0.99); opacity: 0.45; }
  50% { transform: scale(1.02); opacity: 0.7; }
}

#mapViewport #map .map-star-core {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: drop-shadow(0 0 14px rgba(255, 220, 120, 0.85)) drop-shadow(0 0 28px rgba(255, 160, 0, 0.65));
  transition: filter 320ms ease, transform 320ms ease;
}

#mapViewport #map .map-star-aura {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 72%;
  height: 72%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 120, 0.38) 0%, rgba(255, 170, 70, 0.22) 45%, rgba(255, 120, 20, 0.06) 72%, rgba(255, 120, 20, 0) 100%);
  filter: blur(6px);
  animation: gameMapStarAuraPulse 3.6s ease-in-out infinite;
}

#mapViewport #map .map-star-aura.second {
  width: 92%;
  height: 92%;
  opacity: 0.68;
  filter: blur(10px);
  animation-duration: 4.8s;
}

#mapViewport #map:has(.map-star-hit-tile:hover) .map-star-core {
  filter:
    brightness(1.28)
    saturate(1.2)
    drop-shadow(0 0 18px rgba(255, 245, 185, 1))
    drop-shadow(0 0 38px rgba(255, 194, 55, 0.98))
    drop-shadow(0 0 68px rgba(255, 115, 0, 0.82));
}

#mapViewport #map:has(.map-star-hit-tile:hover) .map-star-aura {
  opacity: 1;
  filter: blur(9px) brightness(1.55);
}

#mapViewport #map:has(.map-star-hit-tile:hover) .map-star-aura.second {
  opacity: 0.95;
  filter: blur(14px) brightness(1.7);
}

@keyframes gameMapStarAuraPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.55; }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: 0.95; }
}

#mapViewport #map .tile.map-stone-tile {
  overflow: visible;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  z-index: 4;
}

#mapViewport #map .tile.map-stone-hit-tile {
  background: transparent !important;
  box-shadow: inset 0 0 12px rgba(54, 203, 255, 0.08) !important;
  cursor: pointer;
}

#mapViewport #map .map-stone-wrap {
  position: absolute;
  inset: 5%;
  display: grid;
  place-items: center;
  pointer-events: none;
  animation: gameMapStoneDrift 9s ease-in-out infinite alternate;
}

#mapViewport #map .map-stone-wrap.map-stone-wrap--area {
  left: 0;
  top: 0;
  right: auto;
  bottom: auto;
  width: 200%;
  height: 200%;
  animation: none;
}

@keyframes gameMapMithrilAuraPulse {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(69, 226, 255, 0.78)) drop-shadow(0 0 10px rgba(31, 166, 255, 0.52)); }
  50% { filter: drop-shadow(0 0 8px rgba(111, 240, 255, 1)) drop-shadow(0 0 17px rgba(39, 183, 255, 0.78)); }
}

#mapViewport #map .map-stone-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 76%;
  height: 76%;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.55));
  animation: gameMapStoneRotate 28s linear infinite;
}

#mapViewport #map .map-stone-wrap--area .map-stone-image {
  position: absolute;
  left: 27%;
  top: 27%;
  width: 46%;
  height: 46%;
  offset-path: ellipse(25% 25% at 50% 50%);
  offset-anchor: center;
  offset-rotate: 0deg;
  animation: gameMapStoneRotate 42s linear infinite, gameMapAsteroidPatrol 36s linear infinite;
  animation-delay: var(--asteroid-rotation-delay, 0ms), var(--asteroid-orbit-delay, 0ms);
}

#mapViewport #map .map-stone-wrap.has-mithril-aura .map-stone-image {
  animation: gameMapStoneRotate 42s linear infinite, gameMapAsteroidPatrol 36s linear infinite, gameMapMithrilAuraPulse 2.6s ease-in-out infinite;
  animation-delay: var(--asteroid-rotation-delay, 0ms), var(--asteroid-orbit-delay, 0ms), var(--asteroid-aura-delay, 0ms);
}

#mapViewport #map .map-gold-stone-wrap.has-mithril-aura .map-stone-image {
  animation: gameMapStoneRotate 48s linear infinite reverse, gameMapAsteroidPatrol 39s linear infinite reverse, gameMapGoldAuraPulse 2.9s ease-in-out infinite;
  animation-delay: var(--asteroid-rotation-delay, 0ms), var(--asteroid-orbit-delay, 0ms), var(--asteroid-aura-delay, 0ms);
}

#mapViewport #map .map-gold-stone-wrap:not(.has-mithril-aura) .map-stone-image {
  animation: gameMapStoneRotate 48s linear infinite reverse, gameMapAsteroidPatrol 39s linear infinite reverse;
  animation-delay: var(--asteroid-rotation-delay, 0ms), var(--asteroid-orbit-delay, 0ms);
}

@keyframes gameMapGoldAuraPulse {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(255, 204, 51, 0.82)) drop-shadow(0 0 10px rgba(255, 142, 24, 0.55)); }
  50% { filter: drop-shadow(0 0 8px rgba(255, 235, 126, 1)) drop-shadow(0 0 17px rgba(255, 170, 35, 0.82)); }
}

@keyframes gameMapAsteroidPatrol {
  from { offset-distance: 0%; }
  to { offset-distance: 100%; }
}

.game-stone-overlay.has-mithril-aura .game-stone-preview,
.game-stone-overlay.has-mithril-aura .game-stone-scene img {
  filter: drop-shadow(0 0 12px rgba(62, 225, 255, 0.42));
}

.game-stone-overlay.is-gold-asteroid.has-mithril-aura .game-stone-preview,
.game-stone-overlay.is-gold-asteroid.has-mithril-aura .game-stone-scene img {
  filter: drop-shadow(0 0 13px rgba(255, 193, 55, 0.58));
}

#mapViewport #map .map-stone-mining-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 5;
  display: grid;
  place-items: center;
  min-width: 25px;
  width: auto;
  padding: 0 5px;
  height: 25px;
  border: 1px solid rgba(255, 190, 70, 0.78);
  border-radius: 6px;
  color: #ffd76a;
  background: rgba(5, 8, 14, 0.82);
  box-shadow: 0 0 10px rgba(255, 145, 35, 0.58);
  font-size: 15px;
  line-height: 1;
  pointer-events: none;
  animation: gameMapMiningBadgeBlink 1.2s ease-in-out infinite;
}

@keyframes gameMapMiningBadgeBlink {
  0%, 100% { opacity: 0.42; filter: brightness(0.82); }
  50% { opacity: 1; filter: brightness(1.38); }
}

#mapViewport #map .map-flight-action-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 15;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: rgba(5, 8, 14, 0.84);
  font-size: 15px;
  line-height: 1;
  pointer-events: none;
  animation: gameMapActionBadgePulse 1.25s ease-in-out infinite;
}

#mapViewport #map .map-flight-action-badge.is-scout {
  color: #61dcff;
  box-shadow: 0 0 11px rgba(70, 205, 255, 0.62);
}

#mapViewport #map .map-flight-action-badge.is-attack {
  color: #ff5d68;
  box-shadow: 0 0 12px rgba(255, 45, 65, 0.68);
  animation-duration: 0.72s;
}

#mapViewport #map .map-flight-action-badge.is-raid {
  color: #ffd76a;
  box-shadow: 0 0 8px rgba(255, 215, 106, 0.82), 0 0 13px rgba(255, 145, 35, 0.58);
  animation-duration: 0.82s;
}

#mapViewport #map .map-flight-action-badge.is-raid::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 9px;
  width: 14px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 4px 4px 6px 6px;
  background: linear-gradient(145deg, rgba(255, 224, 126, 0.9), rgba(181, 105, 17, 0.72));
  clip-path: polygon(21% 0, 79% 0, 100% 35%, 91% 100%, 9% 100%, 0 35%);
  transform: translateX(-50%);
  box-sizing: border-box;
}

#mapViewport #map .map-flight-action-badge.is-raid::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  width: 8px;
  height: 5px;
  border: 1.5px solid currentColor;
  border-radius: 50% 50% 35% 35%;
  background: rgba(125, 69, 12, 0.9);
  transform: translateX(-50%);
  box-sizing: border-box;
}

#mapViewport #map .map-flight-action-badge.is-defense {
  color: #b995ff;
  box-shadow: 0 0 8px rgba(153, 69, 255, 0.72), 0 0 13px rgba(20, 241, 149, 0.46);
  animation-duration: 1s;
}

#mapViewport #map .map-flight-action-badge.is-return {
  color: #14f195;
  box-shadow: 0 0 11px rgba(20, 241, 149, 0.58);
}

@keyframes gameMapActionBadgePulse {
  0%, 100% { opacity: 0.42; filter: brightness(0.82); }
  50% { opacity: 1; filter: brightness(1.38); }
}

.game-stone-preview {
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.72));
}

.game-stone-scene {
  background: radial-gradient(circle, rgba(153, 69, 255, 0.13), rgba(0, 0, 0, 0.96) 68%);
}

.game-stone-scene img {
  width: min(360px, 72%);
  height: 72%;
  max-width: 72%;
  max-height: 72%;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.82));
}

.game-stone-scene-aura {
  width: 270px;
  height: 160px;
  border-radius: 50%;
  background: rgba(153, 69, 255, 0.12);
  filter: blur(25px);
}

.game-stone-intel-grid {
  display: grid;
  grid-template-columns: minmax(90px, auto) 1fr;
  gap: 8px 16px;
  padding: 14px 16px;
  border: 1px solid rgba(20, 241, 149, 0.35);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.32);
}

.game-stone-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 520px) {
  .game-stone-resource-grid {
    grid-template-columns: 1fr;
  }
}

.game-stone-intel-grid span {
  color: rgba(255, 255, 255, 0.62);
}

.game-stone-intel-grid b {
  color: rgba(255, 255, 255, 0.94);
  text-align: right;
}

.game-stone-harvesting-intel {
  padding: 12px 14px;
  border: 1px solid rgba(20, 241, 149, 0.38);
  border-radius: 12px;
  background: rgba(3, 12, 17, 0.62);
  box-shadow: inset 0 0 18px rgba(20, 241, 149, 0.06);
}

.game-stone-harvesting-intel span {
  color: rgba(225, 236, 241, 0.86);
  font-weight: 700;
}

.game-stone-harvesting-intel b {
  color: #14f195;
  font-size: 16px;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(20, 241, 149, 0.34);
}

.game-stone-harvesting-intel b[data-asteroid-mining-occupied] {
  color: #ffd76a;
  text-shadow: 0 0 10px rgba(255, 190, 70, 0.38);
}

.game-stone-mining-panel {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(153, 69, 255, 0.42);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.36);
}

.game-stone-mining-status {
  color: #14f195;
  font-weight: 700;
}

.game-stone-mining-timer {
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.game-stone-mining-missions {
  display: grid;
  gap: 10px;
}

.game-stone-mining-missions[hidden] {
  display: none;
}

.game-stone-mining-mission {
  padding: 9px 10px 7px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.24);
}

.game-stone-mining-mission-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 3px;
}

.game-stone-mining-mission-head strong {
  color: #14f195;
  font-size: 14px;
}

.game-stone-mining-mission-head span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  text-align: right;
}

.game-stone-mining-track {
  position: relative;
  height: 9px;
  margin: 11px 14px;
  overflow: visible;
  border: 1px solid rgba(20, 241, 149, 0.34);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
}

.game-stone-mining-ship {
  display: grid;
  place-items: center;
  position: absolute;
  left: 0;
  top: 50%;
  width: 44px;
  height: 34px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(153, 69, 255, 0.58);
  overflow: hidden;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.56);
  box-shadow: 0 0 10px rgba(153, 69, 255, 0.3);
  transition: left 0.35s linear;
  z-index: 2;
}

.game-stone-mining-ship img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.game-stone-mining-track > span:first-child {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9945ff, #14f195);
  box-shadow: 0 0 12px rgba(20, 241, 149, 0.62);
  transition: width 0.35s linear;
}

.game-stone-mining-quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 700;
}

.game-stone-harvester-stepper {
  gap: 8px;
  margin-left: auto;
}

.game-stone-harvester-stepper button {
  width: 32px;
  height: 30px;
  border-width: 2px;
  border-color: #00c3ff;
  border-radius: 8px;
  color: #00c3ff;
  background: rgba(0, 195, 255, 0.1);
  box-shadow: none;
}

.game-stone-harvester-stepper input {
  width: 60px;
  height: 30px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #f5fbff;
}

.game-stone-harvester-stepper input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.game-stone-harvester-stepper input[type="number"]::-webkit-outer-spin-button,
.game-stone-harvester-stepper input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.game-stone-mining-start {
  width: 100%;
}

@media (max-width: 640px) {
  .game-stone-mining-mission-head {
    align-items: flex-start;
  }

  .game-stone-mining-mission-head span {
    max-width: 62%;
  }
}

@keyframes gameMapStoneDrift {
  0% { transform: translate(-4px, 3px) scale(0.96); }
  35% { transform: translate(3px, -4px) scale(1); }
  70% { transform: translate(5px, 2px) scale(0.98); }
  100% { transform: translate(-2px, -3px) scale(1.02); }
}

@keyframes gameMapStoneRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  #mapViewport #map .map-black-hole-wrap::before,
  #mapViewport #map .map-black-hole-wrap::after,
  #mapViewport #map .map-black-hole-disk,
  #mapViewport #map .map-black-hole-disk::after,
  #mapViewport #map .map-black-hole-photon-ring,
  #mapViewport #map .map-stone-wrap,
  #mapViewport #map .map-stone-image,
  #mapViewport #map .map-stone-mining-badge,
  #mapViewport #map .map-flight-action-badge {
    animation: none;
  }
}

/* Isolated stellar tidal-disruption event. It shares the transformed map coordinates. */
#mapViewport #map .stellar-accretion-effect {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.stellar-accretion-stream {
  opacity: 0;
  transition: opacity 900ms ease;
  will-change: opacity;
}

.stellar-accretion-reveal-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  will-change: stroke-dashoffset;
}

.stellar-accretion-glow,
.stellar-accretion-body,
.stellar-accretion-edge,
.stellar-accretion-hotline {
  vector-effect: non-scaling-stroke;
  will-change: opacity, stroke-dashoffset;
}

.stellar-accretion-glow {
  fill: rgba(255, 75, 20, 0.32);
  filter: url(#stellarStreamGlow);
}

.stellar-accretion-body {
  fill: url(#stellarStreamGradient);
  opacity: 0.26;
  filter: url(#stellarOrganicWarp);
}

.stellar-accretion-edge {
  fill: none;
  stroke: rgba(255, 61, 20, 0.66);
  stroke-width: 4px;
  stroke-linecap: round;
  stroke-dasharray: 19 11 7 15;
  opacity: 0.2;
  animation: stellarPlasmaEdgeFlow 1.5s linear infinite;
}

.stellar-accretion-chunks {
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: url(#stellarHotGlow);
  will-change: stroke-dashoffset, opacity;
}

.stellar-accretion-chunks--left,
.stellar-accretion-chunks--center,
.stellar-accretion-chunks--right {
  stroke: rgba(255, 122, 24, 0.92);
  stroke-width: 6px;
  stroke-dasharray: 51 24 13 34 72 27 21 43 86 37;
  animation: stellarPlasmaChunkFlow 2.4s linear infinite;
}

.stellar-accretion-chunks--left {
  stroke: rgba(255, 86, 20, 0.84);
  stroke-width: 7px;
}

.stellar-accretion-chunks--center {
  stroke: rgba(255, 211, 90, 0.96);
  stroke-width: 6px;
  filter: url(#stellarHotGlow);
}

.stellar-accretion-chunks--right {
  stroke: rgba(255, 129, 25, 0.88);
  stroke-width: 5px;
  opacity: 0.82;
}

.stellar-accretion-hotline {
  fill: none;
  stroke: rgba(255, 211, 90, 0.92);
  stroke-width: 2.2px;
  stroke-linecap: round;
  stroke-dasharray: 22 16 11 23;
  opacity: 0.62;
  filter: url(#stellarHotGlow);
  animation: stellarPlasmaHotFlow 1.42s linear infinite;
}

.stellar-accretion-hotline--two {
  stroke: rgba(255, 244, 184, 0.72);
  stroke-width: 1.15px;
  stroke-dasharray: 13 21 28 34;
  opacity: 0.48;
  animation-duration: 1.08s;
  animation-direction: reverse;
}

.stellar-accretion-particle {
  fill: #ffd35a;
  opacity: 0;
  filter: url(#stellarHotGlow);
}

.stellar-star-fragment-cluster {
  opacity: 0;
  filter: drop-shadow(0 0 3px rgba(255, 211, 90, 0.95)) drop-shadow(0 0 7px rgba(255, 99, 20, 0.72));
  will-change: opacity;
}

.stellar-star-fragment-piece {
  stroke: rgba(255, 244, 176, 0.38);
  stroke-width: 0.55px;
}

.stellar-detached-fragments {
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.stellar-micro-fragments {
  opacity: 0;
  pointer-events: none;
  transition: opacity 360ms ease;
}

.stellar-micro-fragment {
  filter: drop-shadow(0 0 2px rgba(255, 211, 90, 0.88)) drop-shadow(0 0 4px rgba(255, 72, 18, 0.56));
}

.stellar-micro-fragment__piece {
  fill: url(#stellarLavaMixed);
  stroke: rgba(255, 226, 117, 0.62);
  stroke-width: 0.32px;
}

.stellar-micro-fragment--2 .stellar-micro-fragment__piece { fill: url(#stellarLavaYellowRed); }
.stellar-micro-fragment--3 .stellar-micro-fragment__piece { fill: url(#stellarLavaRedYellow); }

.stellar-detached-fragment {
  opacity: 0;
  filter: drop-shadow(0 0 4px rgba(255, 211, 90, 0.94)) drop-shadow(0 0 8px rgba(255, 78, 18, 0.68));
  will-change: opacity;
}

.stellar-detached-fragment__piece {
  fill: url(#stellarLavaMixed);
  stroke: rgba(255, 226, 117, 0.82);
  stroke-width: 0.7px;
  transform-box: fill-box;
  transform-origin: center;
}

.stellar-detached-fragment--2 .stellar-detached-fragment__piece,
.stellar-detached-fragment--5 .stellar-detached-fragment__piece,
.stellar-detached-fragment--7 .stellar-detached-fragment__piece { fill: url(#stellarLavaYellowRed); }
.stellar-detached-fragment--3 .stellar-detached-fragment__piece,
.stellar-detached-fragment--8 .stellar-detached-fragment__piece { fill: url(#stellarLavaRedYellow); }
.stellar-detached-fragment--1 .stellar-detached-fragment__piece,
.stellar-detached-fragment--4 .stellar-detached-fragment__piece,
.stellar-detached-fragment--6 .stellar-detached-fragment__piece { fill: url(#stellarLavaMixed); }
.stellar-detached-fragment--2 .stellar-detached-fragment__piece { transform: scale(0.72); }
.stellar-detached-fragment--3 .stellar-detached-fragment__piece { transform: scale(1.18); }
.stellar-detached-fragment--4 .stellar-detached-fragment__piece { transform: scale(0.58); }
.stellar-detached-fragment--5 .stellar-detached-fragment__piece { transform: scale(0.92); }
.stellar-detached-fragment--6 .stellar-detached-fragment__piece { transform: scale(1.08); }
.stellar-detached-fragment--7 .stellar-detached-fragment__piece { transform: scale(0.64); }
.stellar-detached-fragment--8 .stellar-detached-fragment__piece { transform: scale(0.84); }

.stellar-source-eruption {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1500ms ease-out;
}

.stellar-arrival-stream {
  opacity: 0;
  pointer-events: none;
  transition: opacity 620ms ease-out;
  will-change: opacity;
}

.stellar-arrival-stream__glow,
.stellar-arrival-stream__body,
.stellar-arrival-stream__hot {
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  will-change: stroke-dashoffset, opacity;
}

.stellar-arrival-stream__glow {
  stroke: rgba(255, 72, 18, 0.38);
  stroke-width: 12px;
  filter: url(#stellarStreamGlow);
}

.stellar-arrival-stream__body {
  stroke: #ff7a18;
  stroke-width: 6px;
  stroke-dasharray: 34 8 17 12 48 9;
  filter: url(#stellarHotGlow);
  animation: stellarArrivalFlow 0.72s linear infinite;
}

.stellar-arrival-stream__hot {
  stroke: #ffd35a;
  stroke-width: 2px;
  stroke-dasharray: 19 16 7 21;
  opacity: 0.9;
  filter: url(#stellarHotGlow);
  animation: stellarArrivalFlow 0.46s linear infinite;
}

.stellar-accretion-effect[data-phase="flowing"] .stellar-arrival-stream {
  opacity: 1;
}

.stellar-accretion-effect[data-phase="fading"] .stellar-arrival-stream {
  opacity: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: stellarArrivalConsume 1.5s cubic-bezier(0.42, 0, 0.78, 1) forwards;
}

.stellar-source-splash {
  fill: #ff7a18;
  stroke: rgba(255, 211, 90, 0.74);
  stroke-width: 0.65px;
  opacity: 0;
  filter: drop-shadow(0 0 3px rgba(255, 122, 24, 0.95)) drop-shadow(0 0 7px rgba(255, 59, 20, 0.62));
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform, opacity;
}

.stellar-source-splash--hot {
  fill: #ffd35a;
  stroke: rgba(255, 244, 176, 0.9);
}

.stellar-source-splash--small {
  fill: #ff4918;
  stroke-width: 0.4px;
}

.stellar-accretion-effect[data-phase="charging"] .stellar-accretion-stream {
  opacity: 0.05;
}

.stellar-accretion-effect[data-phase="forming"] .stellar-accretion-stream {
  opacity: 0.58;
}

.stellar-accretion-effect[data-phase="forming"] .stellar-accretion-reveal-path {
  animation: stellarStreamReveal 1.1s cubic-bezier(0.24, 0.72, 0.25, 1) forwards;
}

.stellar-accretion-effect[data-phase="flowing"] .stellar-accretion-stream {
  opacity: 1;
}

.stellar-accretion-effect[data-phase="flowing"] .stellar-accretion-reveal-path {
  stroke-dashoffset: 0;
}

.stellar-accretion-effect[data-phase="fading"] .stellar-accretion-reveal-path {
  animation: stellarStreamConsume 1.5s cubic-bezier(0.42, 0, 0.78, 1) forwards;
}

.stellar-accretion-effect[data-phase="flowing"] .stellar-accretion-particle,
.stellar-accretion-effect[data-phase="fading"] .stellar-accretion-particle {
  opacity: 0.9;
  animation: stellarParticleFlicker 0.72s ease-in-out infinite alternate;
  animation-delay: var(--particle-delay);
}

.stellar-accretion-effect[data-phase="flowing"] .stellar-star-fragment-cluster,
.stellar-accretion-effect[data-phase="fading"] .stellar-star-fragment-cluster {
  opacity: 0.98;
  animation: stellarStarFragmentPulse 0.84s ease-in-out infinite alternate;
  animation-delay: var(--fragment-delay);
}

.stellar-accretion-effect[data-phase="forming"] .stellar-detached-fragments,
.stellar-accretion-effect[data-phase="flowing"] .stellar-detached-fragments,
.stellar-accretion-effect[data-phase="fading"] .stellar-detached-fragments {
  opacity: 1;
}

.stellar-accretion-effect[data-phase="forming"] .stellar-micro-fragments,
.stellar-accretion-effect[data-phase="flowing"] .stellar-micro-fragments,
.stellar-accretion-effect[data-phase="fading"] .stellar-micro-fragments {
  opacity: 0.92;
}

.stellar-accretion-effect[data-phase="forming"] .stellar-detached-fragment,
.stellar-accretion-effect[data-phase="flowing"] .stellar-detached-fragment,
.stellar-accretion-effect[data-phase="fading"] .stellar-detached-fragment {
  opacity: 0.96;
  animation: stellarDetachedFragmentFlicker 0.9s ease-in-out infinite alternate;
  animation-delay: var(--detached-delay);
}

.stellar-accretion-effect[data-phase="forming"] .stellar-source-eruption,
.stellar-accretion-effect[data-phase="flowing"] .stellar-source-eruption {
  opacity: 1;
}

.stellar-accretion-effect[data-phase="forming"] .stellar-source-splash,
.stellar-accretion-effect[data-phase="flowing"] .stellar-source-splash,
.stellar-accretion-effect[data-phase="fading"] .stellar-source-splash {
  animation: stellarSourceSplash var(--splash-duration) cubic-bezier(0.22, 0.58, 0.38, 1) infinite;
  animation-delay: var(--splash-delay);
}

.stellar-accretion-effect[data-phase="fading"] .stellar-accretion-stream {
  opacity: 1;
  transition: none;
}

.stellar-accretion-effect[data-phase=""] .stellar-accretion-stream,
.stellar-accretion-effect[data-phase=""] .stellar-arrival-stream,
.stellar-accretion-effect[data-phase=""] .stellar-detached-fragments,
.stellar-accretion-effect[data-phase=""] .stellar-micro-fragments {
  visibility: hidden;
  opacity: 0;
  transition: none;
}

#mapViewport #map .map-star-wrap::after {
  content: "";
  position: absolute;
  left: var(--stellar-source-x, 50%);
  top: var(--stellar-source-y, 50%);
  z-index: 4;
  width: 17%;
  height: 8%;
  border-radius: 48% 76% 73% 44%;
  opacity: 0;
  background: radial-gradient(ellipse at 20% 50%, #fff1ae 0 8%, #ffd35a 24%, #ff7a18 56%, rgba(255, 59, 20, 0) 100%);
  filter: blur(2px) drop-shadow(0 0 8px rgba(255, 122, 24, 0.78));
  transform: translate(-5%, -50%) rotate(var(--stellar-feed-angle, 0deg)) scaleX(0.25);
  transform-origin: 5% 50%;
  pointer-events: none;
  transition: opacity 2200ms ease-out, filter 2200ms ease-out;
}

#mapViewport #map .map-star-wrap.is-stellar-feeding-source::after {
  opacity: 0.94;
  animation: stellarSourceTide 0.9s ease-in-out infinite alternate;
}

#mapViewport #map .map-star-wrap.is-stellar-cooling::after {
  animation: stellarSourceFlameRetract 3.2s cubic-bezier(0.24, 0.58, 0.38, 1) forwards;
}

#mapViewport #map .stellar-source-flames {
  position: absolute;
  left: var(--stellar-source-x, 50%);
  top: var(--stellar-source-y, 50%);
  z-index: 4;
  display: block;
  width: 1px;
  height: 1px;
  opacity: 0;
  transform: rotate(var(--stellar-feed-angle, 0deg));
  transform-origin: center;
  pointer-events: none;
}

#mapViewport #map .stellar-source-flames i {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: calc(15% * var(--source-flame-size, 1));
  min-width: calc(18px * var(--source-flame-size, 1));
  height: calc(7px * var(--source-flame-size, 1));
  border-radius: 44% 79% 72% 38%;
  opacity: 0;
  background: radial-gradient(ellipse at 18% 50%, #fff1ae 0 8%, #ffd35a 24%, #ff7a18 57%, rgba(255, 59, 20, 0) 100%);
  filter: blur(1.5px) drop-shadow(0 0 6px rgba(255, 122, 24, 0.72));
  transform: translateY(-50%) rotate(var(--source-flame-angle, 0deg)) scaleX(0.15);
  transform-origin: 2% 50%;
  will-change: transform, opacity, filter;
}

#mapViewport #map .map-star-wrap.is-stellar-feeding-source .stellar-source-flames {
  opacity: 1;
}

#mapViewport #map .map-star-wrap.is-stellar-feeding-source .stellar-source-flames i {
  animation: stellarSourceBranchPulse 0.86s ease-in-out infinite alternate;
  animation-delay: var(--source-flame-delay);
}

#mapViewport #map .map-star-wrap.is-stellar-cooling .stellar-source-flames {
  opacity: 1;
}

#mapViewport #map .map-star-wrap.is-stellar-cooling .stellar-source-flames i {
  animation: stellarSourceBranchRetract 3s cubic-bezier(0.24, 0.58, 0.38, 1) forwards;
  animation-delay: var(--source-flame-delay);
}

.bh-infall-particles {
  position: absolute;
  inset: -12%;
  z-index: 4;
  display: block;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.bh-infall-particles i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--infall-width, 3px);
  height: 1.5px;
  border-radius: 999px;
  background: #ffd35a;
  box-shadow: 0 0 5px #ff7a18;
  opacity: 0;
  transform: rotate(var(--infall-angle)) translateX(var(--infall-radius, 58%)) rotate(calc(-1 * var(--infall-angle)));
}

.black-hole.is-stellar-feeding .bh-infall-particles {
  opacity: 1;
}

.black-hole.is-stellar-feeding .bh-infall-particles i {
  animation: bhStellarInfall var(--infall-duration, 1.15s) cubic-bezier(0.4, 0, 0.72, 1) infinite;
  animation-delay: var(--infall-delay, 0s);
}

.bh-arrival-coil,
.bh-arrival-coil__arc,
.bh-arrival-coil__heat {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity, filter;
}

.bh-arrival-coil {
  inset: -20%;
  left: auto;
  top: auto;
  z-index: 4;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 520ms ease-out;
}

.bh-arrival-coil__arc {
  background: conic-gradient(from 18deg,
    transparent 0 8%,
    rgba(255, 73, 18, 0.42) 13%,
    #ff7a18 19%,
    #ffd35a 25%,
    rgba(255, 122, 24, 0.78) 32%,
    transparent 40% 55%,
    rgba(255, 61, 20, 0.54) 61%,
    #ff9a21 69%,
    rgba(255, 211, 90, 0.9) 74%,
    transparent 83% 100%);
  -webkit-mask: radial-gradient(circle, transparent 0 58%, #000 64% 72%, transparent 79%);
  mask: radial-gradient(circle, transparent 0 58%, #000 64% 72%, transparent 79%);
  filter: blur(1.2px) drop-shadow(0 0 5px rgba(255, 122, 24, 0.82));
}

.bh-arrival-coil__arc--outer {
  width: 132%;
  height: 132%;
  animation: bhArrivalCoilOuter 1.05s cubic-bezier(0.34, 0, 0.58, 1) infinite;
}

.bh-arrival-coil__arc--middle {
  width: 112%;
  height: 112%;
  opacity: 0.88;
  animation: bhArrivalCoilMiddle 0.82s cubic-bezier(0.3, 0, 0.55, 1) infinite;
}

.bh-arrival-coil__arc--inner {
  width: 94%;
  height: 94%;
  opacity: 0.76;
  filter: blur(0.7px) brightness(1.25) drop-shadow(0 0 6px rgba(255, 180, 52, 0.9));
  animation: bhArrivalCoilInner 0.64s linear infinite;
}

.bh-arrival-coil__heat {
  z-index: -1;
  width: 92%;
  height: 92%;
  background: radial-gradient(circle, transparent 0 47%, rgba(255, 72, 16, 0.2) 55%, rgba(255, 145, 28, 0.42) 63%, transparent 76%);
  filter: blur(7px) brightness(1.35);
  animation: bhArrivalHeatPulse 0.9s ease-in-out infinite alternate;
}

.black-hole.is-stellar-feeding .bh-arrival-coil {
  opacity: 1;
  transform: scale(1);
}

@keyframes stellarPlasmaEdgeFlow {
  to { stroke-dashoffset: -52; }
}

@keyframes stellarPlasmaHotFlow {
  to { stroke-dashoffset: -64; }
}

@keyframes stellarPlasmaChunkFlow {
  0% { stroke-dashoffset: 0; opacity: 0.48; }
  37% { opacity: 1; }
  71% { opacity: 0.68; }
  100% { stroke-dashoffset: -183; opacity: 0.52; }
}

@keyframes stellarStreamReveal {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes stellarStreamConsume {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -1; }
}

@keyframes stellarParticleFlicker {
  from { opacity: 0.38; }
  to { opacity: 1; }
}

@keyframes stellarStarFragmentPulse {
  from { opacity: 0.58; }
  to { opacity: 1; }
}

@keyframes stellarDetachedFragmentFlicker {
  from { opacity: 0.58; }
  to { opacity: 1; }
}

@keyframes stellarSourceSplash {
  0% { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(0.28, 0.5); }
  14% { opacity: 1; }
  48% { opacity: 0.94; transform: translate(var(--splash-x), var(--splash-y)) rotate(var(--splash-rotate)) scale(1.08, 0.84); }
  100% { opacity: 0; transform: translate(var(--splash-x), var(--splash-y)) rotate(var(--splash-rotate)) scale(0.42, 0.22); }
}

@keyframes stellarArrivalFlow {
  to { stroke-dashoffset: -126; }
}

@keyframes stellarArrivalConsume {
  0% { opacity: 1; transform: rotate(0deg) scale(1); }
  68% { opacity: 1; }
  100% { opacity: 0; transform: rotate(210deg) scale(0.16); }
}

@keyframes stellarSourceTide {
  0% { transform: translate(-5%, -50%) rotate(var(--stellar-feed-angle, 0deg)) scaleX(0.72) scaleY(0.82); filter: blur(2.6px) brightness(1.05); }
  100% { transform: translate(-5%, -50%) rotate(var(--stellar-feed-angle, 0deg)) scaleX(1.2) scaleY(1.18); filter: blur(1.2px) brightness(1.42); }
}

@keyframes stellarSourceBranchPulse {
  0% { opacity: 0.56; transform: translateY(-50%) rotate(var(--source-flame-angle, 0deg)) scaleX(0.68) scaleY(0.82); }
  100% { opacity: 0.96; transform: translateY(-50%) rotate(var(--source-flame-angle, 0deg)) scaleX(1.14) scaleY(1.12); }
}

@keyframes stellarSourceFlameRetract {
  0% { opacity: 0.94; transform: translate(-5%, -50%) rotate(var(--stellar-feed-angle, 0deg)) scaleX(1.12) scaleY(1); }
  28% { opacity: 0.88; transform: translate(-5%, -50%) rotate(var(--stellar-feed-angle, 0deg)) scaleX(0.78) scaleY(1.08); }
  43% { opacity: 0.8; transform: translate(-5%, -50%) rotate(var(--stellar-feed-angle, 0deg)) scaleX(0.9) scaleY(0.82); }
  68% { opacity: 0.58; transform: translate(-5%, -50%) rotate(var(--stellar-feed-angle, 0deg)) scaleX(0.43) scaleY(0.72); }
  80% { opacity: 0.46; transform: translate(-5%, -50%) rotate(var(--stellar-feed-angle, 0deg)) scaleX(0.54) scaleY(0.56); }
  100% { opacity: 0; transform: translate(-5%, -50%) rotate(var(--stellar-feed-angle, 0deg)) scaleX(0.04) scaleY(0.18); filter: blur(3px); }
}

@keyframes stellarSourceBranchRetract {
  0% { opacity: 0.9; transform: translateY(-50%) rotate(var(--source-flame-angle, 0deg)) scaleX(1.08) scaleY(1); }
  30% { opacity: 0.82; transform: translateY(-50%) rotate(var(--source-flame-angle, 0deg)) scaleX(0.7) scaleY(1.1); }
  46% { opacity: 0.72; transform: translateY(-50%) rotate(var(--source-flame-angle, 0deg)) scaleX(0.84) scaleY(0.78); }
  70% { opacity: 0.5; transform: translateY(-50%) rotate(var(--source-flame-angle, 0deg)) scaleX(0.36) scaleY(0.66); }
  83% { opacity: 0.38; transform: translateY(-50%) rotate(var(--source-flame-angle, 0deg)) scaleX(0.46) scaleY(0.48); }
  100% { opacity: 0; transform: translateY(-50%) rotate(var(--source-flame-angle, 0deg)) scaleX(0.03) scaleY(0.12); filter: blur(2.8px); }
}

@keyframes bhStellarInfall {
  0% { opacity: 0; transform: rotate(var(--infall-angle)) translateX(var(--infall-radius, 64%)) scale(1.35, 0.8); }
  13% { opacity: 0.72; }
  31% { opacity: 1; }
  68% { opacity: 0.58; }
  100% { opacity: 0; transform: rotate(calc(var(--infall-angle) + 286deg)) translateX(8%) scale(0.08, 0.35); }
}

@keyframes bhArrivalCoilOuter {
  0% { transform: translate(-50%, -50%) rotate(0deg) scale(1.14); opacity: 0; }
  18% { opacity: 0.92; }
  100% { transform: translate(-50%, -50%) rotate(360deg) scale(0.84); opacity: 0.34; }
}

@keyframes bhArrivalCoilMiddle {
  0% { transform: translate(-50%, -50%) rotate(30deg) scale(1.12); opacity: 0.28; }
  38% { opacity: 1; }
  100% { transform: translate(-50%, -50%) rotate(390deg) scale(0.78); opacity: 0.22; }
}

@keyframes bhArrivalCoilInner {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes bhArrivalHeatPulse {
  from { transform: translate(-50%, -50%) scale(0.94); opacity: 0.46; }
  to { transform: translate(-50%, -50%) scale(1.06); opacity: 0.88; }
}

@media (prefers-reduced-motion: reduce) {
  .stellar-accretion-effect,
  .bh-infall-particles,
  #mapViewport #map .map-star-wrap::after {
    display: none !important;
    animation: none !important;
  }
}


@media (max-width: 640px) {
  .stellar-accretion-edge {
    stroke-width: 1.8px;
  }

  .stellar-accretion-chunks--left {
    stroke-width: 3.1px;
  }

  .stellar-accretion-chunks--center {
    stroke-width: 2.7px;
  }

  .stellar-accretion-chunks--right {
    stroke-width: 2.2px;
  }

  .stellar-accretion-hotline {
    stroke-width: 1px;
  }

  .stellar-accretion-hotline--two {
    stroke-width: 0.52px;
  }

  .stellar-arrival-stream__glow {
    stroke-width: 5.4px;
  }

  .stellar-arrival-stream__body {
    stroke-width: 2.7px;
  }

  .stellar-arrival-stream__hot {
    stroke-width: 0.9px;
  }

  .stellar-detached-fragment__piece {
    stroke-width: 0.18px;
  }

  .stellar-micro-fragment__piece {
    stroke-width: 0.08px;
  }

  .stellar-accretion-particle,
  .stellar-star-fragment-piece,
  .stellar-micro-fragment__piece {
    transform-box: fill-box;
    transform-origin: center;
    transform: scale(0.22);
  }

  .stellar-detached-fragment--1 .stellar-detached-fragment__piece { transform: scale(0.22); }
  .stellar-detached-fragment--2 .stellar-detached-fragment__piece { transform: scale(0.16); }
  .stellar-detached-fragment--3 .stellar-detached-fragment__piece { transform: scale(0.26); }
  .stellar-detached-fragment--4 .stellar-detached-fragment__piece { transform: scale(0.13); }
  .stellar-detached-fragment--5 .stellar-detached-fragment__piece { transform: scale(0.2); }
  .stellar-detached-fragment--6 .stellar-detached-fragment__piece { transform: scale(0.24); }
  .stellar-detached-fragment--7 .stellar-detached-fragment__piece { transform: scale(0.14); }
  .stellar-detached-fragment--8 .stellar-detached-fragment__piece { transform: scale(0.19); }

  .stellar-star-fragment-cluster {
    filter: drop-shadow(0 0 1.5px rgba(255, 211, 90, 0.9)) drop-shadow(0 0 3.5px rgba(255, 99, 20, 0.64));
  }

  .stellar-detached-fragment {
    filter: drop-shadow(0 0 2px rgba(255, 211, 90, 0.9)) drop-shadow(0 0 4px rgba(255, 78, 18, 0.62));
  }

  .stellar-accretion-effect[data-phase="forming"] .stellar-source-splash,
  .stellar-accretion-effect[data-phase="flowing"] .stellar-source-splash,
  .stellar-accretion-effect[data-phase="fading"] .stellar-source-splash {
    stroke-width: 0.2px;
    animation-name: stellarSourceSplashMobile;
  }

  #mapViewport #map .stellar-source-flames i {
    min-width: calc(18px * var(--source-flame-size, 1));
    height: calc(7px * var(--source-flame-size, 1));
    filter: blur(1.5px) drop-shadow(0 0 6px rgba(255, 122, 24, 0.72));
  }
}

@keyframes stellarSourceSplashMobile {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(0deg) scale(0.06, 0.11);
  }
  14% {
    opacity: 0.82;
  }
  48% {
    opacity: 0.86;
    transform: translate(var(--splash-x), var(--splash-y)) rotate(var(--splash-rotate)) scale(0.24, 0.18);
  }
  100% {
    opacity: 0;
    transform: translate(var(--splash-x), var(--splash-y)) rotate(var(--splash-rotate)) scale(0.08, 0.045);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bh-ring,
  .bh-particles,
  .bh-arrival-coil__arc,
  .bh-arrival-coil__heat,
  .black-hole-field-shell,
  .black-hole-gravity-field,
  .black-hole-heat-wave {
    animation: none !important;
  }
}

/* Final section rail override; intentionally last so legacy panel rules cannot shift it. */
@media (min-width: 761px) {
  #gameReportsPanel.reports-container > h2,
  #gameMessagesPanel.messages-container > h2,
  #gameClanPanel.clan-container > h2,
  #gameMarketPanel .market-header-row {
    width: 100%; min-height: 82px; margin: 0; padding: 14px 94px 14px 20px; box-sizing: border-box;
  }
  #gameReportsPanel.reports-container > h2,
  #gameMessagesPanel.messages-container > h2,
  #gameClanPanel.clan-container > h2 {
    max-width: none; display: flex; align-items: center; font-size: 38px;
  }
  #gameMarketPanel .market-header-row h2 { top: 22px; left: 20px; font-size: 38px; }
  #gameMarketPanel .market-header-row .market-balance { top: 14px; }
}

#gameMarketPanel .market-view-tabs,
#gameReportsPanel .report-filter-row {
  width: 100%; min-height: 45px; margin: 0; padding: 6px 12px; align-items: stretch; box-sizing: border-box;
}
#gameMarketPanel .market-view-tabs { flex: 0 0 45px; }
#gameReportsPanel .report-filter-row { top: 0; flex: 0 0 45px; }

@media (max-width: 760px) {
  #gameReportsPanel.reports-container > h2,
  #gameMessagesPanel.messages-container > h2,
  #gameClanPanel.clan-container > h2,
  #gameMarketPanel .market-header-row {
    width: 100%; min-height: 112px; margin: 0; padding: 9px 58px 9px 10px; box-sizing: border-box;
  }
  #gameReportsPanel.reports-container > h2,
  #gameMessagesPanel.messages-container > h2,
  #gameClanPanel.clan-container > h2 {
    max-width: none; display: flex; align-items: flex-start; padding-top: 12px; font-size: 36px;
  }
  #gameMarketPanel .market-header-row h2 { top: 12px; left: 10px; font-size: 36px; }
  #gameMarketPanel .market-header-row .market-balance { top: 10px; right: 58px; }
}

/* Shared Moonbook color treatment for all main second-block section titles. */
#gameMarketPanel .market-header-row h2,
#gameReportsPanel.reports-container > h2,
#gameMessagesPanel.messages-container > h2,
#gameClanPanel.clan-container > h2 {
  color: #f4fbff;
  background: linear-gradient(
    45deg,
    var(--sol-a, #9945ff),
    var(--sol-b, #14f195),
    var(--sol-c, #34d8ff)
  );
  background-size: 300px 100%;
  background-repeat: no-repeat;
  background-position: left center;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(153, 69, 255, 0.22);
}
/* First scout discovery mission: unknown signal on an unexplored sector. */
#mapViewport #map .tile.has-unknown-signal {
  cursor: pointer;
}

#mapViewport #map .tile.has-alien-rescue {
  cursor: pointer;
  overflow: visible;
}

#mapViewport #map .tile.has-alien-decision {
  cursor: pointer;
  overflow: visible;
}

#mapViewport #map .tile.has-alien-pursuer {
  cursor: pointer;
  overflow: visible;
}

#mapViewport #map .map-alien-pursuer-marker {
  position: absolute;
  inset: 3%;
  z-index: 13;
  display: grid;
  place-items: center;
  pointer-events: none;
  animation: alienPursuerDrift 2.8s ease-in-out infinite;
}

#mapViewport #map .map-alien-pursuer-marker img {
  position: relative;
  z-index: 2;
  display: block;
  width: 84%;
  height: 84%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 5px rgba(255, 55, 74, 0.98))
    drop-shadow(0 0 12px rgba(255, 25, 48, 0.68));
}

#mapViewport #map .map-alien-pursuer-aura {
  position: absolute;
  inset: 10%;
  z-index: 1;
  border: 1px solid rgba(255, 62, 82, 0.72);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 44, 68, 0.2), rgba(255, 25, 48, 0.03) 62%, transparent 74%);
  box-shadow: 0 0 11px rgba(255, 36, 58, 0.54), inset 0 0 9px rgba(255, 55, 74, 0.25);
  animation: alienPursuerAura 1.35s ease-in-out infinite;
}

#mapViewport #map .map-alien-pursuer-marker b {
  position: absolute;
  left: 3%;
  right: 3%;
  bottom: 0;
  z-index: 3;
  padding: 2px 3px;
  border: 1px solid rgba(255, 66, 84, 0.68);
  border-radius: 4px;
  color: #ffe9ec;
  background: rgba(14, 4, 9, 0.88);
  box-shadow: 0 0 7px rgba(255, 35, 57, 0.34);
  font: 800 clamp(5px, 0.48vw, 8px)/1.15 Arial, sans-serif;
  letter-spacing: 0.45px;
  text-align: center;
  white-space: nowrap;
}

#mapViewport #map .map-alien-pursuer-marker.is-scanned b {
  color: #8feaff;
  border-color: rgba(77, 211, 255, 0.68);
  box-shadow: 0 0 7px rgba(54, 197, 255, 0.34);
}

#mapViewport #map .map-alien-rescue-ship-marker {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 3%;
  height: 64%;
  z-index: 13;
  display: grid;
  place-items: center;
  pointer-events: none;
  animation: alienPursuerDrift 2.8s ease-in-out infinite;
}

#mapViewport #map .map-alien-rescue-ship-marker img {
  position: relative;
  z-index: 2;
  display: block;
  width: 88%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 5px rgba(20, 241, 149, 0.94))
    drop-shadow(0 0 10px rgba(52, 216, 255, 0.6))
    drop-shadow(0 0 13px rgba(153, 69, 255, 0.42));
}

#mapViewport #map .map-alien-rescue-ship-aura {
  position: absolute;
  inset: 7%;
  z-index: 1;
  border: 1px solid rgba(20, 241, 149, 0.7);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(153, 69, 255, 0.2), rgba(52, 216, 255, 0.08) 48%, rgba(20, 241, 149, 0.03) 64%, transparent 74%);
  box-shadow:
    0 0 10px rgba(20, 241, 149, 0.46),
    0 0 15px rgba(153, 69, 255, 0.3),
    inset 0 0 9px rgba(52, 216, 255, 0.24);
  animation: none;
}

#mapViewport #map .map-alien-rescue-ship-marker.is-awaiting-decision img {
  animation: alienDecisionShipGlow 1.25s ease-in-out infinite;
}

#mapViewport #map .map-alien-rescue-ship-marker.is-awaiting-decision .map-alien-rescue-ship-aura {
  animation: alienDecisionThreatAura 1.25s ease-in-out infinite;
}

@keyframes alienPursuerDrift {
  0%, 100% { transform: translateY(1%) scale(0.96); }
  50% { transform: translateY(-3%) scale(1.02); }
}

@keyframes alienPursuerAura {
  0%, 100% { opacity: 0.48; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes alienDecisionThreatAura {
  0%, 38%, 100% {
    opacity: 0.88;
    border-color: rgba(20, 241, 149, 0.82);
    background: radial-gradient(circle, rgba(153, 69, 255, 0.24), rgba(52, 216, 255, 0.1) 48%, rgba(20, 241, 149, 0.04) 64%, transparent 74%);
    box-shadow: 0 0 10px rgba(20, 241, 149, 0.58), 0 0 16px rgba(153, 69, 255, 0.38), inset 0 0 10px rgba(52, 216, 255, 0.28);
    transform: scale(0.94);
  }
  52%, 82% {
    opacity: 1;
    border-color: rgba(255, 62, 82, 0.86);
    background: radial-gradient(circle, rgba(255, 44, 68, 0.25), rgba(255, 25, 48, 0.06) 62%, transparent 74%);
    box-shadow: 0 0 11px rgba(255, 36, 58, 0.72), 0 0 17px rgba(255, 25, 48, 0.46), inset 0 0 10px rgba(255, 55, 74, 0.3);
    transform: scale(1.08);
  }
}

@keyframes alienDecisionShipGlow {
  0%, 38%, 100% {
    filter: drop-shadow(0 0 5px rgba(20, 241, 149, 0.94)) drop-shadow(0 0 10px rgba(52, 216, 255, 0.6)) drop-shadow(0 0 13px rgba(153, 69, 255, 0.42));
  }
  52%, 82% {
    filter: drop-shadow(0 0 6px rgba(255, 55, 74, 1)) drop-shadow(0 0 13px rgba(255, 25, 48, 0.78));
  }
}

#mapViewport #map .map-alien-decision-timer {
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: 3%;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 19%;
  padding: 2px 4px;
  border: 1px solid rgba(255, 51, 72, 0.62);
  border-radius: 5px;
  background: rgba(9, 4, 9, 0.88);
  box-shadow: 0 0 9px rgba(255, 51, 72, 0.22);
  pointer-events: none;
}

#mapViewport #map .map-alien-decision-timer span {
  color: #ff5365;
  font-family: Arial, sans-serif;
  font-size: clamp(6px, 0.58vw, 10px);
  font-weight: 800;
  letter-spacing: 0.7px;
}

#mapViewport #map .map-alien-decision-timer strong {
  color: #fff0f2;
  font-family: Arial, sans-serif;
  font-size: clamp(7px, 0.7vw, 12px);
  font-weight: 800;
  letter-spacing: 0.35px;
  white-space: nowrap;
}

#mapViewport #map .map-alien-decision-timer strong.is-expired {
  color: #ff6878;
}

#mapViewport #map .map-alien-rescue-timer {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 3%;
  z-index: 14;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 2px 3px;
  box-sizing: border-box;
  border: 1px solid rgba(20, 241, 149, 0.7);
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(20, 7, 35, 0.92), rgba(3, 23, 29, 0.94));
  box-shadow: 0 0 9px rgba(153, 69, 255, 0.4), 0 0 12px rgba(20, 241, 149, 0.2);
  pointer-events: none;
}

#mapViewport #map .map-alien-rescue-timer strong {
  color: #eafff6;
  font: 800 clamp(5px, 0.48vw, 8px)/1.15 Arial, sans-serif;
  letter-spacing: 0.45px;
  text-shadow: 0 0 7px rgba(20, 241, 149, 0.46);
  white-space: nowrap;
}

#mapViewport #map .map-alien-rescue-timer strong.is-expired {
  color: #ff6878;
  text-shadow: 0 0 7px rgba(255, 51, 72, 0.5);
}

#mapViewport #map .map-unknown-signal-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88%;
  max-width: none;
  aspect-ratio: 1;
  transform: translate(-50%, -52%);
  display: grid;
  place-items: center;
  z-index: 12;
  color: #ff4d5f;
  filter: drop-shadow(0 0 6px rgba(255, 42, 62, 0.92));
  animation: unknownSignalPulse 1s steps(2, end) infinite;
}

#mapViewport #map .map-unknown-signal-marker svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

#mapViewport #map .map-unknown-signal-marker polygon {
  fill: none;
  stroke: #ff3348;
  stroke-width: 5.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

#mapViewport #map .map-unknown-signal-marker span {
  position: relative;
  z-index: 2;
  margin-top: 17%;
  color: #ff5365;
  text-shadow: 0 0 7px rgba(255, 42, 62, 0.95);
  font: 900 clamp(24px, 58%, 44px)/1 system-ui, sans-serif;
}

@keyframes unknownSignalPulse {
  0%, 42% { opacity: 1; }
  43%, 72% { opacity: 0.18; }
  73%, 100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  #mapViewport #map .map-unknown-signal-marker,
  #mapViewport #map .map-alien-rescue-ship-marker,
  #mapViewport #map .map-alien-rescue-ship-aura,
  #mapViewport #map .map-alien-rescue-ship-marker.is-awaiting-decision img { animation: none; opacity: 1; }
}
