:root {
  color-scheme: dark;
  --ground: #263e68;
  --panel: #304e7a;
  --inset: #20385f;
  --raised: #3e6092;
  --ivory: #fff6e5;
  --text: #e1ebf8;
  --muted: #c1d3ec;
  --blue: #4a6fa5;
  --sky: #7298c7;
  --coral: #e99b85;
  --line: #b2cceb42;
  --sans: Inter, "Avenir Next", "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-family: var(--sans);
  color: var(--ivory);
  background: var(--ground);
}
.account-layout,
.clan-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.account-layout h2,
.clan-layout h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
}
.merit-balance {
  display: block;
  font-size: 4.5rem;
  line-height: 1.3;
  color: var(--ivory);
  font-variant-numeric: tabular-nums;
}
.withdraw-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.withdraw-row:last-child {
  border-bottom: 0;
}
.withdraw-row small {
  overflow-wrap: anywhere;
  font-size: 0.75rem;
}
.empty-state {
  padding: 24px 0;
  color: var(--muted);
}
.clan-roster > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.clan-roster small {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 5px;
}
.clan-chat {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 12px;
}
.clan-chat article {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.clan-chat p {
  overflow-wrap: anywhere;
}
.clan-chat small {
  font-size: 0.75rem;
  color: var(--muted);
}
.clan-layout label {
  margin-top: 16px;
}
.invite-code {
  font: 600 1.8rem/1.5 var(--mono);
  letter-spacing: 0.12em;
  overflow-wrap: anywhere;
}
.inline-form {
  display: flex;
  align-items: end;
  gap: 16px;
}
.inline-form label {
  flex: 1;
  min-width: 0;
}
@media (max-width: 750px) {
  .account-layout,
  .clan-layout {
    grid-template-columns: 1fr;
  }
  .withdraw-row {
    flex-direction: column;
    align-items: start;
  }
  .inline-form {
    flex-direction: column;
    align-items: stretch;
  }
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
a:is(:hover, :active, :focus) {
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
[hidden] {
  display: none !important;
}
img {
  max-width: 100%;
}
p,
h1,
h2,
h3,
figure {
  margin: 0;
}
p {
  color: var(--text);
  line-height: 1.65;
}
h1,
h2,
h3 {
  line-height: 1.04;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(3rem, 6.5vw, 6rem);
  font-weight: 730;
}
h2 {
  font-size: clamp(2.2rem, 4.6vw, 4.15rem);
  font-weight: 710;
}
h3 {
  font-size: 1.35rem;
  font-weight: 690;
}
:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
}
button:focus:not(:focus-visible) {
  outline: none;
}
.shell {
  width: min(1280px, calc(100% - 88px));
  margin-inline: auto;
}
.mono,
.eyebrow,
.tag {
  font: 600 0.75rem/1.4 var(--mono);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #ffcab9;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  flex: none;
}
.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  background: #263e68a6;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #38598b;
  color: var(--ivory);
  font-size: 0.9rem;
  font-weight: 680;
  gap: 8px;
  text-align: center;
}
.button:hover:not(:disabled) {
  background: #486b9d;
  border-color: #c8ddf481;
}
.button.primary {
  background: var(--ivory);
  border-color: var(--ivory);
  color: var(--ground);
}
.button.primary:hover:not(:disabled) {
  background: #f8dfcf;
  border-color: #f8dfcf;
}
.button.small {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 0.79rem;
}
.button.wide {
  width: 100%;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
.top-space {
  margin-top: 20px;
}
.text-button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #d9eaff;
  font-size: 0.85rem;
}
.text-button:hover {
  color: var(--ivory);
}
.form-note {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted);
}
.address {
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 0.86rem;
}
.skip {
  position: fixed;
  top: -100px;
  left: 10px;
  z-index: 100;
  padding: 12px;
  background: var(--ivory);
  color: var(--ground);
}
.skip:focus {
  top: 10px;
}
.loading {
  padding: 100px 30px;
  text-align: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-size: 1.12rem;
  letter-spacing: 0.2em;
  font-weight: 760;
}
.brand img {
  display: block;
}
.social {
  width: 38px;
  height: 40px;
  display: inline-grid;
  place-items: center;
}
.social img {
  width: 16px;
  height: 16px;
}
.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-wrap nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
}
.nav-wrap nav a {
  font-size: 0.875rem;
  font-weight: 650;
  color: #dce7f7;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
@media (min-width: 851px) and (max-width: 1100px) {
  .nav-wrap {
    flex-wrap: wrap;
    padding-block: 12px;
  }
  .nav-wrap nav {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
  }
  .nav-actions {
    margin-left: auto;
  }
}
.nav-wrap nav a:hover,
.nav-wrap nav a[aria-current] {
  color: var(--coral);
}
.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.wallet-button {
  min-height: 40px;
  border: 0;
  background: transparent;
  font-size: 0.79rem;
  color: #e3ecf9;
  padding: 7px;
}
.wallet-button:hover {
  color: var(--coral);
}
#site-header {
  position: sticky;
  top: 0;
  z-index: 6;
  background: #263e68ed;
}
.footer-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 27px;
}
.footer-wrap > p {
  flex: 1;
  font-size: 0.86rem;
  color: var(--muted);
}
.footer-wrap > div {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.82rem;
}
#site-footer {
  background: var(--inset);
  border-top: 1px solid var(--line);
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: -76px;
  background: var(--ground);
}
.hero-art {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  animation: hero-drift 24s ease-in-out infinite alternate;
  transform-origin: 70% 50%;
}
.hero::before {
  position: absolute;
  z-index: -1;
  content: "";
  inset: 0;
  background:
    linear-gradient(
      90deg,
      #20385ff2,
      #263e68bc 32%,
      #263e682b 65%,
      transparent 83%
    ),
    linear-gradient(0deg, #263e68 0%, #263e6829 35%, transparent 57%);
}
@keyframes hero-drift {
  from {
    transform: scale(1.01);
  }
  to {
    transform: scale(1.1) translateX(-1%);
  }
}
.hero-inner {
  display: flex;
  align-items: center;
  min-height: clamp(630px, 79svh, 830px);
  padding-block: 160px 90px;
  position: relative;
}
.hero-copy {
  max-width: min(690px, 65%);
}
.hero h1 {
  font-size: clamp(4.5rem, 8.4vw, 8.3rem);
  line-height: 0.93;
  letter-spacing: -0.065em;
  margin-block: 19px 23px;
}
.hero h1 span {
  color: #d8e8ff;
}
.hero-copy > p:not(.eyebrow, .hero-note) {
  max-width: 455px;
  font-size: 1.08rem;
  line-height: 1.75;
}
.hero .actions {
  margin-top: 26px;
}
.hero .button {
  min-height: 51px;
  padding-inline: 22px;
}
.hero-note {
  font-size: 0.81rem;
  margin-top: 14px;
  color: #d6e4f7;
}
.hero-caption {
  position: absolute;
  right: 0;
  bottom: 58px;
  display: grid;
  gap: 5px;
  text-align: right;
}
.hero-caption .mono {
  color: #f5b9a3;
}
.hero-caption strong {
  font-size: 1.35rem;
}
.hero-caption > span:last-child {
  font: 600 0.65rem var(--mono);
  letter-spacing: 0.09em;
  color: #d2e2f5;
}
.hero-readout {
  margin-block: 0 26px;
  padding: 8px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #2b4672eb;
}
.hero-readout > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 23px;
  border-right: 1px solid var(--line);
}
.hero-readout strong {
  font-size: 1.7rem;
  font-weight: 700;
}
.hero-readout span {
  font-size: 0.86rem;
  color: #dce8f7;
}
.hero-readout > a {
  display: flex;
  align-items: center;
  padding: 10px 24px;
  font-size: 0.86rem;
  color: #f1c4b0;
}
.section {
  padding-block: clamp(58px, 7vw, 112px);
  scroll-margin-top: 90px;
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.75fr);
  gap: 35px;
  align-items: end;
  margin-bottom: 32px;
}
.section-head h2 {
  margin-top: 13px;
}
.section-head > p {
  max-width: 410px;
  font-size: 1rem;
}
.section-head.compact h2 {
  font-size: 2rem;
}
.section-copy {
  max-width: 430px;
  margin-top: 20px;
}
.gameplay-scene {
  position: relative;
  display: block;
  isolation: isolate;
  aspect-ratio: 2.2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--inset);
}
.gameplay-scene > img:first-child {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gameplay-scene .scene-station {
  position: absolute;
  width: 23%;
  left: 8%;
  top: 24%;
}
.gameplay-scene .scene-player {
  position: absolute;
  width: 17%;
  left: 38%;
  top: 45%;
  transform: rotate(-13deg);
  filter: drop-shadow(0 10px 15px #263e68);
}
.gameplay-scene .scene-enemy {
  position: absolute;
  width: 17%;
  left: 65%;
  top: 35%;
  transform: rotate(170deg);
}
.scene-label {
  position: absolute;
  left: 22px;
  top: 18px;
  color: #e6f0ff;
}
.scene-play {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 22px;
  background: #fff6e5;
  color: var(--ground);
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 700;
}
.operation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 29px;
}
.operation-grid article {
  display: grid;
  gap: 10px;
  align-content: start;
}
.mini-icon {
  font-size: 1.6rem;
  color: var(--coral);
}
.operation-grid p {
  font-size: 0.92rem;
}
.fleet-section {
  background: linear-gradient(145deg, #3d5d8f, #2c4874 75%);
}
.fleet-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.8fr);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.ship-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: 40px 25px;
  background: radial-gradient(ellipse, #7399c6, #456a9d 60%, #304e7a);
}
.ship-stage::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(#c3dcf425 1px, transparent 1px),
    linear-gradient(90deg, #c3dcf425 1px, transparent 1px);
  background-size: 29px 29px;
  mask-image: radial-gradient(ellipse, #263e68, transparent 88%);
}
.ship-stage > img {
  width: min(100%, 490px);
  height: 255px;
  object-fit: contain;
  filter: drop-shadow(0 22px 21px #20385fac);
}
.stage-label {
  position: absolute;
  inset: 17px 18px auto;
  display: flex;
  justify-content: space-between;
}
.feature-detail {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 32px;
  background: #263f69;
}
.feature-detail h3 {
  font-size: 2.5rem;
}
.feature-detail .button {
  justify-self: start;
}
.specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}
.specs > div {
  padding: 9px 5px;
  background: #314f7c;
  border-radius: 4px;
}
.specs dt {
  font-size: 0.74rem;
  color: #d1e1f6;
}
.specs dd {
  font: 650 0.95rem var(--mono);
  margin: 5px 0 0;
}
.specs dd small {
  font-size: 0.7rem;
  color: #c5d7ed;
}
.ship-choices {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.ship-choices button {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  background: #2c4774;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px;
}
.ship-choices img {
  width: 140px;
  height: 68px;
  object-fit: contain;
}
.ship-choices span {
  font-size: 0.83rem;
  font-weight: 650;
}
.ship-choices button:hover {
  background: #406493;
}
.ship-choices button[aria-pressed="true"] {
  border-color: var(--coral);
  background: #456a9d;
}
.commander-section {
  background:
    radial-gradient(ellipse at 20% 50%, #5479ab, transparent 55%), #293f68;
}
.commander-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 55px;
  align-items: center;
}
.commander-art {
  display: grid;
  place-items: center;
  gap: 15px;
}
.commander-art img {
  width: 100%;
  height: 340px;
  object-fit: contain;
  filter: drop-shadow(0 25px 20px #20385fba);
}
.commander-art .mono {
  color: #cddff4;
}
.commander-layout h2 {
  margin-top: 14px;
}
.data-list {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px 20px;
  margin-block: 21px;
  font-size: 0.9rem;
}
.data-list dt {
  color: #c6d8f0;
}
.data-list dd {
  margin: 0;
  text-align: right;
  font-weight: 650;
}
.sector-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.sector-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 11px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 25px;
  background: linear-gradient(155deg, #45699b, #304d79);
}
.sector-card > .mono {
  color: #d7e8fa;
}
.sector-card h3 {
  font-size: 1.7rem;
}
.sector-card p {
  font-size: 0.92rem;
}
.sector-card.sector-halo {
  background: linear-gradient(145deg, #536e9a, #304d79);
}
.sector-card.sector-relay {
  background: linear-gradient(145deg, #5b6890, #304d79);
}
.sector-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 17px;
  font-size: 0.8rem;
  color: #e9eff9;
  padding-block: 14px 7px;
  border-top: 1px solid var(--line);
  margin-top: 10px;
}
.sector-card .tag {
  justify-self: start;
}
.outpost-strip,
.launch-strip {
  background: #3b5d8f;
  border-block: 1px solid var(--line);
}
.outpost-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding-block: 45px;
}
.outpost-inner h2 {
  margin-block: 11px;
}
.outpost-inner .button {
  flex: none;
}
.launch-strip {
  background: #304e7a;
}
.faq {
  max-width: 820px;
}
.faq h2 {
  margin-block: 12px 30px;
}
.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--coral);
  font-size: 1.25rem;
}
.faq details[open] summary::after {
  content: "−";
}
.faq details p {
  padding: 0 15px 17px 0;
  font-size: 0.96rem;
}
.page {
  min-height: 65vh;
  padding-block: 48px 78px;
}
.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 29px;
}
.page-heading h1 {
  margin-block: 10px 12px;
}
.page-heading p:not(.eyebrow) {
  max-width: 680px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  min-width: 0;
  overflow: hidden;
}
.pad {
  padding: clamp(15px, 2.2vw, 27px);
}
.panel h2 {
  font-size: 1.7rem;
}
.panel h3 {
  font-size: 1.25rem;
}
.hangar-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr) minmax(
      240px,
      0.9fr
    );
  gap: 12px;
}
.hangar-roster {
  display: grid;
  gap: 6px;
  align-content: start;
}
.hangar-roster button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #304e7a;
  padding: 8px;
  text-align: left;
}
.hangar-roster button[aria-pressed="true"] {
  background: #4a6fa5;
  border-color: var(--coral);
}
.hangar-roster img {
  width: 74px;
  height: 37px;
  object-fit: contain;
}
.hangar-roster span {
  display: grid;
  gap: 4px;
}
.hangar-roster strong {
  font-size: 0.88rem;
}
.hangar-roster small {
  font-size: 0.75rem;
  color: #d4e3f4;
}
.hangar-stage {
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.hangar-stage > img {
  width: 100%;
  max-height: 280px;
}
.hangar-stage h2 {
  margin-block: 8px 11px;
  font-size: 2.5rem;
}
.hangar-stage p:not(.eyebrow) {
  font-size: 0.9rem;
}
.hangar-stage > #hangar-description {
  width: 100%;
  padding-top: 20px;
}
.livery-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.livery-choices + .form-note {
  margin-top: 14px;
}
.missions-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.5fr);
  align-items: start;
  gap: 13px;
}
.pilot-summary {
  display: grid;
  gap: 15px;
}
.pilot-summary h2 {
  font-size: 1.7rem;
  overflow-wrap: anywhere;
}
.pilot-summary > strong {
  font-size: 1.25rem;
}
.mission-list {
  display: grid;
  gap: 10px;
}
.mission-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 22px;
}
.mission-item > div:first-child {
  display: grid;
  gap: 7px;
}
.mission-item p {
  font-size: 0.9rem;
}
.mission-claim {
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 12px;
}
.mission-claim > strong {
  font-size: 0.84rem;
  color: #ffd1bf;
}
.mission-item .eyebrow {
  font-size: 0.68rem;
}
progress {
  width: 100%;
  height: 6px;
  border: 0;
  accent-color: #aac9ec;
  background: #4a6fa5;
}
progress::-webkit-progress-bar {
  background: #4a6fa5;
}
progress::-webkit-progress-value {
  background: #aac9ec;
}
.resource-telemetry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.resource-telemetry > div {
  display: grid;
  gap: 6px;
}
.resource-telemetry span {
  font-size: 0.86rem;
  color: #d1e0f5;
}
.resource-telemetry strong {
  font-size: 1.6rem;
  font-weight: 690;
  font-variant-numeric: tabular-nums;
}
.mining-grid,
.guide-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.guide-grid .panel p {
  font-size: 0.97rem;
}
.deposit-list {
  display: grid;
  margin-top: 19px;
  gap: 7px;
}
.deposit-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-block: 10px;
}
.deposit-list a > span:nth-child(2) {
  display: grid;
  gap: 5px;
  flex: 1;
}
.deposit-list img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}
.deposit-list strong {
  font-size: 0.84rem;
}
.deposit-list small,
.deposit-list a > span:last-child {
  font-size: 0.75rem;
  color: #d6e6f7;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
}
th,
td {
  padding: 17px 21px;
  border-bottom: 1px solid var(--line);
}
thead {
  background: #3b5c8d;
}
tbody th {
  font-weight: 650;
}
label {
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
  color: #d7e5f7;
}
input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--inset);
  padding: 10px 12px;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%23fff6e5' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}
.guide-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px 20px;
  font-size: 0.95rem;
  line-height: 1.55;
}
.guide-controls dt {
  font-weight: 700;
}
.guide-controls dd {
  margin: 0;
  color: #dce7f7;
}
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  z-index: 80;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  max-width: min(540px, calc(100% - 24px));
  padding: 13px 19px;
  border: 1px solid #c6dcf47a;
  background: #20385fee;
  border-radius: 8px;
  color: var(--ivory);
  font-size: 0.9rem;
  box-shadow: 0 8px 22px #20385f80;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  width: min(1100px, calc(100% - 30px));
  max-height: calc(100dvh - 30px);
  overflow: auto;
  margin: auto;
  padding: 25px;
  border: 1px solid #bdd6f483;
  border-radius: 10px;
  background: #2b4773;
  color: var(--ivory);
  box-shadow: 0 20px 70px #20385f99;
}
dialog::backdrop {
  background: #20385fc4;
  backdrop-filter: blur(5px);
}
dialog h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  margin-block: 9px 13px;
}
.dialog-close {
  position: sticky;
  top: 0;
  z-index: 2;
  display: block;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #3e6092;
  padding: 8px 12px;
  font-size: 0.8rem;
  margin-bottom: 13px;
}
.chat-messages {
  display: grid;
  gap: 8px;
  margin-block: 20px;
  max-height: 240px;
  overflow: auto;
}
.chat-messages article {
  border-top: 1px solid var(--line);
  padding: 9px 0;
}
.chat-messages strong {
  font-size: 0.8rem;
  color: #ffcab9;
}
.chat-messages p {
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
.game-document {
  overflow: hidden;
  background: var(--ground);
}
#game {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--ground);
}
#game:fullscreen {
  width: 100%;
  height: 100%;
}
#arena {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}
#game-ui {
  position: absolute;
  inset: 0;
  pointer-events: none;
  --gap: clamp(9px, 1.4vw, 23px);
  --head: 57px;
}
.flight-bar {
  position: absolute;
  inset: 0 0 auto;
  height: var(--head);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px var(--gap);
  background: #263e68ed;
  pointer-events: auto;
  border-bottom: 1px solid var(--line);
}
.game-brand {
  font-size: 0.99rem;
}
.game-label {
  color: #c6d9f3;
  font-size: 0.65rem;
}
.flight-options {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: auto;
}
.hud {
  border: 1px solid #aec9ea63;
  border-radius: 7px;
  background: #263e68ed;
  box-shadow: 0 7px 20px #20385f45;
  pointer-events: auto;
}
.pilot-hud {
  position: absolute;
  top: calc(var(--head) + var(--gap));
  left: var(--gap);
  width: 225px;
  padding: 12px 13px;
}
.pilot-hud .eyebrow {
  font-size: 0.64rem;
}
.pilot-hud > strong {
  display: block;
  margin-block: 6px 3px;
  font-size: 0.99rem;
  overflow-wrap: anywhere;
}
.pilot-hull {
  font-size: 0.74rem;
  color: #d0dff4;
  margin-bottom: 10px;
}
.vital {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 8px;
  font-size: 0.71rem;
  margin-top: 7px;
}
.vital > strong {
  font: 600 0.72rem var(--mono);
}
.vital meter {
  grid-column: 1/-1;
  width: 100%;
  height: 6px;
  border: 0;
  background: transparent;
}
.vital meter::-webkit-meter-bar {
  height: 4px;
  border: 0;
  border-radius: 0;
  background: #4a6fa5;
}
.vital meter::-webkit-meter-optimum-value {
  background: #aac9ee;
}
.vital.hull meter::-webkit-meter-optimum-value {
  background: var(--coral);
}
.vital.cargo meter::-webkit-meter-optimum-value {
  background: #fff0d5;
}
.vital meter::-moz-meter-bar {
  background: #aac9ee;
}
.sector-hud {
  position: absolute;
  top: calc(var(--head) + var(--gap));
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  padding: 8px 16px;
  background: #263e68b3;
  border-radius: 5px;
}
.sector-hud > strong {
  display: block;
  font-size: 1.06rem;
  margin: 3px 0;
}
.sector-hud .mono {
  font-size: 0.64rem;
  color: #f5bfae;
}
.sector-hud > span {
  font: 600 0.62rem var(--mono);
  color: #d6e5f9;
}
.credits-hud {
  position: absolute;
  top: calc(var(--head) + var(--gap));
  right: var(--gap);
  padding: 11px 15px;
  text-align: right;
  min-width: 170px;
}
.credits-hud > span {
  font-size: 0.7rem;
  color: #d2e1f4;
}
.credits-hud > strong {
  display: block;
  font: 650 1.35rem var(--mono);
  margin-top: 4px;
}
.credits-hud p {
  font-size: 0.65rem;
  margin-top: 4px;
  color: #bfd5ef;
}
.flight-nav {
  position: absolute;
  top: calc(var(--head) + 121px);
  right: var(--gap);
  display: grid;
  gap: 5px;
  padding: 6px;
  background: #263e68cf;
  border: 1px solid var(--line);
  border-radius: 7px;
  pointer-events: auto;
}
.flight-nav button {
  display: grid;
  justify-items: center;
  gap: 3px;
  width: 62px;
  min-height: 57px;
  padding: 6px 3px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #d9e8fb;
  font-size: 0.67rem;
}
.flight-nav button:hover {
  background: #44699b;
  color: var(--ivory);
}
.flight-nav button > span {
  font-size: 1.25rem;
  line-height: 1;
}
.objective-hud {
  position: absolute;
  top: calc(var(--head) + 210px);
  left: var(--gap);
  width: 225px;
  padding: 12px 13px;
}
.objective-hud .eyebrow {
  font-size: 0.64rem;
}
.objective-hud > strong {
  display: block;
  font-size: 0.91rem;
  margin-block: 7px;
}
.objective-hud > p:not(.eyebrow) {
  font-size: 0.77rem;
  line-height: 1.5;
}
.objective-hud .text-button {
  font-size: 0.72rem;
  margin-top: 3px;
}
.radar-hud {
  position: absolute;
  left: var(--gap);
  bottom: var(--gap);
  width: 190px;
  padding: 8px;
}
.radar-hud > div:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}
.radar-hud .mono {
  font-size: 0.57rem;
  letter-spacing: 0.06em;
}
.radar-hud svg {
  display: block;
  width: 100%;
  background: #2c4a78;
}
.radar-grid,
.radar-safe {
  fill: none;
  stroke: #a4c3e66b;
  stroke-width: 2;
}
.radar-ore {
  fill: #a7d5f4;
}
.radar-enemy {
  fill: var(--coral);
}
.radar-lock {
  fill: #e99b85;
  stroke: #fff6e5;
  stroke-width: 5;
}
.radar-ship {
  fill: #fff6e5;
  stroke: #263e68;
  stroke-width: 3;
}
.radar-hud > p {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  font-size: 0.61rem;
  padding-top: 5px;
}
.radar-hud > p span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ivory);
  margin-right: 3px;
}
.radar-hud > p span:nth-child(2)::before {
  background: #a7d5f4;
}
.radar-hud > p span:nth-child(3)::before {
  background: var(--coral);
}
.flight-controls {
  position: absolute;
  bottom: var(--gap);
  left: 50%;
  transform: translateX(-50%);
  width: min(590px, calc(100% - 450px));
  padding: 10px 12px;
}
.target-readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
}
.target-readout > span {
  font: 600 0.67rem var(--mono);
  color: #f2bba8;
  white-space: nowrap;
}
.hotbar {
  display: flex;
  gap: 5px;
  margin-top: 8px;
}
.hotbar button {
  display: grid;
  gap: 3px;
  align-content: center;
  justify-items: center;
  min-height: 51px;
  flex: 1;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #355886;
  font-size: 0.72rem;
}
.hotbar button.primary {
  background: #fff6e5;
  color: #263e68;
  border-color: #fff6e5;
}
.hotbar button:not(:disabled):hover {
  background: #5278a9;
  color: #fff6e5;
}
.hotbar kbd {
  font: 600 0.59rem var(--mono);
  opacity: 0.8;
}
.flight-controls > p {
  font-size: 0.66rem;
  color: #d0e0f6;
  margin-top: 6px;
  text-align: center;
}
.connection-overlay {
  position: absolute;
  z-index: 10;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(460px, calc(100% - 25px));
  background: #263e68f5;
  border: 1px solid var(--line);
  padding: 25px;
  border-radius: 9px;
  pointer-events: auto;
  box-shadow: 0 15px 45px #20385fa0;
}
.connection-overlay h2 {
  font-size: 1.7rem;
}
.connection-overlay p {
  margin-block: 14px;
  font-size: 0.9rem;
}
.game-ship-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin-top: 23px;
}
.game-ship-grid > button {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 6px;
  padding: 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #304e7a;
  min-width: 0;
}
.game-ship-grid > button[aria-pressed="true"] {
  background: #4a6fa5;
  border-color: var(--coral);
}
.game-ship-grid img {
  width: 100%;
  height: 75px;
  object-fit: contain;
}
.game-ship-grid strong {
  font-size: 0.9rem;
}
.game-ship-grid span {
  font-size: 0.75rem;
  color: #dfebfa;
}
.game-ship-grid small {
  font-size: 0.69rem;
  color: #d1e2f6;
}
.touch-pad {
  display: none;
}
.touch-pad button {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #355886e8;
  font-size: 1.2rem;
  touch-action: none;
}
@media (max-width: 1100px) {
  .nav-wrap {
    gap: 12px;
  }
  .nav-wrap nav {
    gap: 14px;
  }
  .nav-actions {
    gap: 4px;
  }
  .wallet-button {
    font-size: 0.72rem;
  }
  .brand {
    font-size: 0.99rem;
  }
  .flight-controls {
    width: min(530px, calc(100% - 310px));
    left: auto;
    right: var(--gap);
    transform: none;
  }
  .game-ship-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .objective-hud,
  .pilot-hud {
    width: 205px;
  }
  .hangar-grid {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  #hangar-console {
    grid-column: 1/-1;
  }
  .nav-actions > .social {
    display: none;
  }
}
@media (max-width: 850px) {
  .shell {
    width: calc(100% - 36px);
  }
  .nav-wrap {
    flex-wrap: wrap;
    gap: 4px 10px;
    padding-top: 8px;
    min-height: 103px;
  }
  .nav-wrap nav {
    order: 3;
    flex-basis: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .nav-wrap nav a {
    min-height: 39px;
  }
  .hero {
    margin-top: -103px;
  }
  .hero-inner {
    min-height: 635px;
    padding-top: 155px;
  }
  .hero-copy {
    max-width: 75%;
  }
  .hero h1 {
    font-size: clamp(3.5rem, 10vw, 6rem);
  }
  .hero-readout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-readout > a {
    display: none;
  }
  .hero-readout > div:last-of-type {
    border: 0;
  }
  .hero-readout > div {
    padding-inline: 14px;
  }
  .hero-caption {
    display: none;
  }
  .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .section-head > p {
    max-width: 650px;
  }
  .fleet-feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  }
  .feature-detail {
    padding: 21px;
  }
  .specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sector-card {
    padding: 17px;
  }
  .commander-layout {
    gap: 25px;
  }
  .pilot-hud {
    width: 180px;
    padding: 9px 10px;
  }
  .credits-hud {
    min-width: 132px;
    padding: 9px 10px;
  }
  .credits-hud p {
    display: none;
  }
  .game-label {
    display: none;
  }
  .sector-hud {
    top: calc(var(--head) + 14px);
  }
  .objective-hud {
    display: none;
  }
  .flight-nav {
    top: calc(var(--head) + 100px);
  }
  .flight-controls {
    width: calc(100% - 235px);
  }
  .radar-hud {
    width: 180px;
  }
  .game-ship-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .shell {
    width: calc(100% - 28px);
  }
  .brand {
    letter-spacing: 0.16em;
    gap: 7px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .wallet-button {
    font-size: 0.71rem;
    padding: 5px;
  }
  .nav-actions .button {
    padding: 9px 12px;
    min-height: 40px;
    font-size: 0.78rem;
  }
  .hero-inner {
    min-height: 650px;
    align-items: end;
    padding: 265px 0 40px;
  }
  .hero-art {
    object-position: 68% 35%;
  }
  .hero::before {
    background: linear-gradient(
      0deg,
      #263e68 5%,
      #263e68ed 34%,
      #263e6859 70%,
      #263e6820
    );
  }
  .hero-copy {
    max-width: 100%;
  }
  .hero h1 {
    font-size: clamp(3.4rem, 13.7vw, 5.7rem);
    margin-block: 14px 18px;
  }
  .hero-copy > p:not(.eyebrow, .hero-note) {
    font-size: 1rem;
    max-width: 390px;
  }
  .hero .eyebrow {
    font-size: 0.67rem;
  }
  .hero-note {
    font-size: 0.72rem;
  }
  .hero .button {
    min-height: 46px;
    padding-inline: 15px;
    font-size: 0.83rem;
  }
  .hero-readout {
    margin-bottom: 16px;
  }
  .hero-readout > div {
    display: grid;
    gap: 3px;
    align-content: center;
    padding: 8px 10px;
  }
  .hero-readout strong {
    font-size: 1.45rem;
  }
  .hero-readout span {
    font-size: 0.71rem;
  }
  .operation-grid,
  .sector-cards,
  .commander-layout,
  .mining-grid,
  .guide-grid,
  .service-grid,
  .missions-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .operation-grid {
    gap: 19px;
  }
  .operation-grid article {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 6px 10px;
  }
  .operation-grid article p {
    grid-column: 2;
  }
  .operation-grid .mini-icon {
    grid-row: 1/3;
  }
  .gameplay-scene {
    aspect-ratio: 1.5;
  }
  .scene-play {
    bottom: 13px;
    padding: 10px 15px;
    white-space: nowrap;
    font-size: 0.8rem;
  }
  .scene-label {
    left: 12px;
    top: 11px;
    font-size: 0.6rem;
  }
  .gameplay-scene .scene-station {
    width: 30%;
    left: 5%;
    top: 32%;
  }
  .gameplay-scene .scene-player {
    width: 23%;
    top: 40%;
  }
  .gameplay-scene .scene-enemy {
    width: 23%;
    left: 69%;
    top: 34%;
  }
  .fleet-feature {
    grid-template-columns: minmax(0, 1fr);
  }
  .ship-stage {
    min-height: 235px;
  }
  .ship-stage > img {
    height: 180px;
  }
  .feature-detail {
    gap: 12px;
  }
  .specs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .ship-choices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ship-choices img {
    height: 52px;
  }
  .ship-choices span {
    font-size: 0.73rem;
  }
  .commander-art img {
    height: 240px;
  }
  .commander-layout .data-list {
    max-width: 450px;
  }
  .outpost-inner {
    align-items: start;
    flex-direction: column;
  }
  .footer-wrap {
    flex-wrap: wrap;
    gap: 15px;
  }
  .footer-wrap > p {
    font-size: 0.79rem;
  }
  .footer-wrap > div {
    width: 100%;
    gap: 21px;
  }
  .page {
    padding-block: 29px 48px;
  }
  .page-heading {
    align-items: start;
    flex-direction: column;
  }
  .page-heading h1 {
    font-size: clamp(2.8rem, 11vw, 4.5rem);
  }
  .hangar-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hangar-roster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hangar-roster img {
    width: 60px;
  }
  .hangar-roster button {
    gap: 5px;
  }
  .hangar-roster strong {
    font-size: 0.78rem;
  }
  .hangar-roster small {
    font-size: 0.66rem;
  }
  .hangar-stage {
    padding-block: 25px;
  }
  #hangar-console {
    grid-column: auto;
  }
  .resource-telemetry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mission-item {
    padding: 16px;
    gap: 13px;
  }
  .mission-item h3 {
    font-size: 1.15rem;
  }
  .mission-item p {
    font-size: 0.84rem;
  }
  .mission-claim .button {
    font-size: 0.75rem;
    padding-inline: 10px;
  }
  .guide-controls {
    font-size: 0.88rem;
    gap: 10px 15px;
  }
  .deposit-list a > span:last-child {
    display: none;
  }
  th,
  td {
    padding: 13px 14px;
  }
  dialog {
    padding: 17px;
    width: calc(100% - 18px);
  }
  .game-ship-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .game-document #toast {
    bottom: 155px;
  }
  #game-ui {
    --head: 51px;
    --gap: 9px;
  }
  .flight-bar {
    gap: 9px;
  }
  .game-brand span {
    display: none;
  }
  .flight-options {
    gap: 4px;
  }
  .flight-options .button {
    min-height: 32px;
    padding: 6px 8px;
    font-size: 0.68rem;
  }
  #game-wallet {
    max-width: 115px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .pilot-hud {
    top: calc(var(--head) + 8px);
    width: 161px;
    padding: 8px;
  }
  .pilot-hud > .eyebrow {
    display: none;
  }
  .pilot-hud > strong {
    font-size: 0.78rem;
    margin-top: 0;
  }
  .pilot-hull {
    font-size: 0.66rem;
    margin-bottom: 6px;
  }
  .vital {
    font-size: 0.61rem;
    margin-top: 5px;
  }
  .vital > strong {
    font-size: 0.62rem;
  }
  .credits-hud {
    top: calc(var(--head) + 8px);
    right: 9px;
    min-width: 116px;
    padding: 9px;
  }
  .credits-hud > strong {
    font-size: 1.08rem;
  }
  .credits-hud > span {
    font-size: 0.62rem;
  }
  .sector-hud {
    top: calc(var(--head) + 76px);
    left: auto;
    right: 9px;
    transform: none;
    max-width: 126px;
    padding: 6px 8px;
  }
  .sector-hud > strong {
    font-size: 0.8rem;
  }
  .sector-hud .mono {
    font-size: 0.58rem;
  }
  .sector-hud > span {
    font-size: 0.49rem;
  }
  .flight-nav {
    top: calc(var(--head) + 149px);
    right: 8px;
    padding: 4px;
    gap: 1px;
  }
  .flight-nav button {
    width: 47px;
    min-height: 43px;
    font-size: 0.56rem;
  }
  .flight-nav button > span {
    font-size: 1.05rem;
  }
  .flight-controls {
    width: calc(100% - 18px);
    bottom: 8px;
    right: 9px;
    padding: 8px;
  }
  .target-readout {
    font-size: 0.69rem;
  }
  .target-readout > span {
    font-size: 0.57rem;
  }
  .hotbar button {
    min-height: 48px;
    padding: 5px;
    font-size: 0.63rem;
  }
  .hotbar kbd {
    font-size: 0.5rem;
  }
  .flight-controls > p {
    font-size: 0.59rem;
    margin-top: 5px;
  }
  .radar-hud {
    display: none;
  }
  .touch-pad {
    display: grid;
    grid-template-columns: repeat(3, 40px);
    grid-template-rows: repeat(2, 40px);
    gap: 3px;
    position: absolute;
    left: 9px;
    bottom: 139px;
  }
  .touch-pad button {
    width: 40px;
    height: 40px;
  }
  .touch-pad button:first-child {
    grid-column: 2;
  }
  .touch-pad button:not(:first-child) {
    grid-row: 2;
  }
}
@media (hover: hover) and (pointer: fine) {
  .touch-pad {
    display: none;
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  .radar-hud,
  .objective-hud {
    display: none;
  }
  .pilot-hud {
    width: 174px;
  }
  .credits-hud {
    top: calc(var(--head) + 8px);
    right: 85px;
  }
  .sector-hud {
    top: calc(var(--head) + 10px);
  }
  .flight-controls {
    width: min(580px, calc(100% - 210px));
    right: 12px;
    left: auto;
    transform: none;
  }
  .flight-nav {
    top: calc(var(--head) + 11px);
    right: 8px;
  }
  .flight-nav button {
    width: 48px;
    min-height: 41px;
    font-size: 0.59rem;
  }
  .touch-pad {
    bottom: 12px;
  }
  .flight-controls > p {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
