:root {
  color-scheme: dark;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #10141c;
  color: #f3f6fa;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #10141c;
}

#rts-canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
}

#rts-canvas:focus-visible {
  outline: 3px solid #f4cf55;
  outline-offset: -3px;
}

#loader {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 35%, #253247, #10141c 65%);
}

#loader.ready {
  display: none;
}

.loader-card {
  width: min(560px, calc(100vw - 48px));
  padding: 28px;
  border: 1px solid #52647d;
  border-radius: 8px;
  background: #171e29;
  box-shadow: 0 16px 60px rgb(0 0 0 / 45%);
}

.loader-card h1 {
  margin-top: 0;
  letter-spacing: 0.04em;
}

#loader-stage {
  color: #f4cf55;
  font-weight: 700;
}

.loader-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}

button {
  min-height: 42px;
  padding: 8px 14px;
  border: 2px solid #8297b5;
  border-radius: 4px;
  color: #fff;
  background: #26344a;
  font: inherit;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #f4cf55;
  outline-offset: 3px;
}

a {
  color: #9ed2ff;
}

.diagnostic-line,
.legal {
  color: #bdc7d5;
  font-size: 0.9rem;
}

#desktop-warning {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  padding: 10px 18px;
  color: #fff;
  background: #7b260f;
  text-align: center;
  font-weight: 700;
}

#desktop-warning[data-severity="hint"] {
  padding: 6px 18px;
  background: #5a4a12;
  font-weight: 500;
}
