/* Reset, typography and the primitives shared by the hangar, the arena and
   the dialogs: buttons, eyebrows, status dots, keycaps and spec bars. */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-synthesis: none;
  color: var(--ink);
  background: var(--space);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .play-button, .match-stats strong, .xp-heading strong,
.dust-wallet strong, .fleet-wallet strong {
  font-family: var(--font-display);
  font-feature-settings: 'ss01';
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { border: 0; color: inherit; cursor: pointer; transition: background .2s, border-color .2s, color .2s, box-shadow .2s, opacity .2s; }
button:disabled { cursor: default; }
button:active:not(:disabled) { transform: translateY(1px); }
button, a, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; }
[hidden] { display: none !important; }
::selection { background: #4087ba; color: #fff; }

/* --- Shared primitives ------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--label-md);
  letter-spacing: 2.3px;
  color: #92adc7;
}

.live-dot {
  flex-shrink: 0;
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #78ddb5;
  box-shadow: 0 0 8px #5ddaad55;
}
.offline { background: #edb480 !important; box-shadow: none !important; }

.dust-wallet { display: grid; }
.dust-wallet strong { font-size: 18px; font-weight: 500; }
.dust-wallet > span:last-child { font-size: var(--label-sm); letter-spacing: 1.5px; color: var(--muted); }
.dust-text { color: var(--gold); }

.play-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 59px;
  margin-top: 16px;
  padding: 0 23px;
  border: 1px solid #b3e8ff;
  border-radius: 4px;
  background: linear-gradient(110deg, #76c5f4, #a3ddf8);
  box-shadow: 0 4px 28px #53a8e21f;
  color: #092136;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 5px;
  transition: filter .16s ease, box-shadow .16s ease;
}
.play-button:hover:not(:disabled) { filter: brightness(1.1) saturate(1.08); box-shadow: 0 0 40px #71cfff35; }
.play-button:disabled { opacity: .4; }
.play-button.compact { letter-spacing: 2px; }

.text-button {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 8px 0;
  background: transparent;
  color: #a0d4f2;
  font-size: var(--label-md);
  letter-spacing: 1.1px;
}
.text-button::after {
  content: '';
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: .45;
  transition: width .2s, opacity .2s;
}
.text-button:hover { color: #e3f5ff; }
.text-button:hover::after { width: 30px; opacity: .9; }


.icon-button {
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: #9cacc0;
  font-size: 16px;
}
.icon-button:hover, .icon-button.enabled { border-color: #7ad1f3; color: #d9f6ff; }

kbd {
  padding: 3px 4px;
  border: 1px solid #6e87984a;
  border-radius: 3px;
  font-family: inherit;
  font-size: var(--label-sm);
  font-weight: 400;
  line-height: 1;
  color: #a7bacd;
}

.inline-error { margin-top: 8px; color: #ffae9e; font-size: 11px; }
.inline-error:empty { display: none; }
.load-note { color: #8ca6be; font-size: 11px; }

.ship-specs { display: grid; gap: 13px; }
.spec { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 15px; }
.spec > span { font-size: var(--label-sm); letter-spacing: 1px; color: #849bb4; }
.spec-track { height: 3px; border-radius: 4px; background: #7897b726; }
.spec-track i { display: block; height: 100%; border-radius: 4px; background: #afcfe6; }

.bot-tag {
  margin-left: 5px;
  padding: 1px 3px;
  border: 1px solid #8095ad33;
  border-radius: 2px;
  font-size: 7px;
  color: #7d91a9;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Small icon + label button: SETTINGS in the hangar corner and in flight control. */
.corner-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #07101cb3;
  font-family: var(--font-display);
  font-size: var(--label-sm);
  font-weight: 500;
  letter-spacing: 1.4px;
  color: #a9c6dd;
}
.corner-button:hover { border-color: #7ad1f3; color: #e3f5ff; }
.corner-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
