:root {
  color-scheme: dark;
  --cabinet: #171917;
  --cabinet-edge: #34372f;
  --screen: #0a100d;
  --screen-soft: #101b15;
  --line: rgba(166, 143, 91, 0.34);
  --green: #9fbe77;
  --red: #c7604f;
  --amber: #c79b4b;
  --cyan: #98aaa0;
  --cream: #d9cfb0;
  --ink: #ece5d0;
  --muted: #918d7f;
  --metal: #252923;
  --olive: #3d4a33;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(159, 190, 119, 0.12), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(199, 155, 75, 0.1), transparent 24%),
    linear-gradient(180deg, #1a1d19 0%, #10110f 48%, #060706 100%);
}

button,
a {
  font: inherit;
}

button,
a,
.server-card,
.leaderboard-list li[data-steam-hash] {
  transition:
    border-color 140ms ease,
    background-color 140ms ease,
    box-shadow 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

.arcade {
  width: min(1220px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 20px 0 34px;
}

.cabinet {
  border: 6px solid var(--cabinet-edge);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 16%, transparent 84%, rgba(255, 255, 255, 0.04)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 18px),
    var(--cabinet);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.marquee {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 118px;
  padding: 22px clamp(18px, 4vw, 44px);
  border-bottom: 4px solid #0b0d0b;
  background:
    linear-gradient(180deg, rgba(75, 82, 67, 0.96), rgba(31, 35, 30, 0.98) 56%, rgba(16, 18, 16, 0.98)),
    linear-gradient(90deg, rgba(199, 155, 75, 0.2), transparent 38%, rgba(159, 190, 119, 0.12));
  color: var(--cream);
  text-transform: uppercase;
}

.marquee-lights {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(199, 155, 75, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.marquee-lights::before {
  content: "";
  position: absolute;
  inset: 8px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 10px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.18));
  opacity: 0.72;
}

.marquee-home {
  position: relative;
  z-index: 1;
  display: block;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 7px 9px;
  color: inherit;
  text-decoration: none;
}

.marquee-home:hover,
.marquee-home:focus-visible {
  border-color: rgba(199, 155, 75, 0.62);
  background: rgba(5, 9, 7, 0.26);
  box-shadow:
    0 0 22px rgba(199, 155, 75, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  outline: none;
}

.marquee-home:hover h1,
.marquee-home:focus-visible h1 {
  color: #fff0c4;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.62),
    0 0 24px rgba(199, 155, 75, 0.26);
}

.kicker,
h1,
h2,
p {
  margin: 0;
}

.kicker {
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  color: var(--amber);
}

h1 {
  margin-top: 6px;
  color: #f0e6ca;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.62),
    0 0 18px rgba(159, 190, 119, 0.14);
}

.signal {
  position: relative;
  z-index: 1;
  min-width: 104px;
  border: 1px solid rgba(199, 155, 75, 0.62);
  border-radius: 4px;
  padding: 10px 14px;
  background:
    linear-gradient(180deg, rgba(199, 155, 75, 0.22), rgba(22, 24, 21, 0.66));
  color: var(--cream);
  font-weight: 900;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.42);
}

.screen {
  position: relative;
  padding: clamp(14px, 3vw, 30px);
  background:
    linear-gradient(90deg, #0f100e, #262a23 10%, #151814 50%, #262a23 90%, #0f100e);
}

.screen::before {
  content: "";
  position: absolute;
  inset: clamp(10px, 2.2vw, 22px);
  border: 3px solid #050907;
  border-radius: 8px;
  pointer-events: none;
}

.screen-glass {
  position: absolute;
  inset: clamp(18px, 3.4vw, 38px);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 50%, rgba(0, 0, 0, 0.08) 50%),
    linear-gradient(90deg, rgba(255, 0, 0, 0.025), rgba(0, 255, 120, 0.02), rgba(0, 120, 255, 0.025));
  background-size: 100% 4px, 6px 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.72;
}

.screen-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 16px;
  min-height: 430px;
  padding: clamp(14px, 2.8vw, 28px);
  border-radius: 6px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(31, 46, 36, 0.94), rgba(8, 15, 11, 0.98)),
    var(--screen);
  box-shadow: inset 0 0 38px rgba(159, 190, 119, 0.08);
}

.primary-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid rgba(199, 155, 75, 0.28);
  border-radius: 6px;
  padding: 7px;
  background: rgba(5, 9, 7, 0.82);
}

.primary-tabs button {
  min-height: 44px;
  border: 1px solid rgba(152, 170, 160, 0.24);
  border-radius: 4px;
  padding: 9px 12px;
  background:
    linear-gradient(180deg, rgba(54, 62, 49, 0.88), rgba(21, 25, 20, 0.92));
  color: var(--cyan);
  font-weight: 900;
  text-transform: uppercase;
}

.primary-tabs button:hover,
.primary-tabs button:focus-visible {
  border-color: rgba(199, 155, 75, 0.58);
  color: var(--cream);
  outline: none;
  box-shadow: inset 0 -2px 0 rgba(199, 155, 75, 0.24);
}

.primary-tabs button:active {
  transform: translateY(1px);
}

.primary-tabs button[aria-selected="true"] {
  border-color: rgba(199, 155, 75, 0.72);
  background:
    linear-gradient(180deg, rgba(78, 91, 61, 0.94), rgba(40, 48, 34, 0.96));
  color: var(--cream);
  box-shadow: inset 0 -2px 0 rgba(199, 155, 75, 0.46);
}

.tab-panel {
  min-width: 0;
}

.tab-panel[hidden] {
  display: none;
}

.home-panel {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(16px, 2.4vw, 24px);
  background:
    linear-gradient(180deg, rgba(24, 31, 25, 0.92), rgba(5, 13, 11, 0.9)),
    rgba(4, 13, 11, 0.72);
}

.home-heading h2 {
  margin-top: 4px;
  max-width: 820px;
  color: var(--amber);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: 0;
}

.home-copy {
  display: grid;
  gap: 14px;
  max-width: 82ch;
}

.home-copy p {
  color: var(--ink);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  line-height: 1.58;
}

.home-principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 10px;
}

.home-principles section {
  min-width: 0;
  border: 1px solid rgba(166, 143, 91, 0.28);
  border-radius: 6px;
  padding: 14px;
  background: rgba(3, 10, 9, 0.68);
}

.home-principles strong {
  color: var(--cream);
}

.home-principles p {
  margin-top: 8px;
  color: var(--cyan);
  line-height: 1.46;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.panel-heading {
  margin-bottom: 12px;
}

.panel-heading-with-action {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.panel-heading h2 {
  margin-top: 2px;
  color: var(--amber);
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0;
}

.server-attract,
.player-panel,
.ops-panel {
  min-width: 0;
}

.server-attract {
  display: grid;
  gap: 8px;
}

.server-card,
.player-panel,
.ops-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(4, 13, 11, 0.72);
}

.server-card {
  display: grid;
  gap: 0;
  min-height: 88px;
  overflow: hidden;
}

.server-card:hover {
  border-color: rgba(199, 155, 75, 0.48);
  background: rgba(9, 20, 14, 0.8);
  box-shadow: inset 0 0 24px rgba(159, 190, 119, 0.08);
}

.server-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(88px, auto);
  gap: 16px;
  align-items: center;
  width: 100%;
  border: 0;
  padding: 14px 16px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.server-summary:hover,
.server-summary:focus-visible {
  background: rgba(159, 190, 119, 0.06);
  outline: none;
}

.server-summary:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(199, 155, 75, 0.62);
}

.server-title {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.status-lamp {
  width: 12px;
  height: 12px;
  margin-top: 0;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 18px rgba(255, 79, 88, 0.72);
}

.server-card[data-status="online"] .status-lamp {
  background: var(--green);
  box-shadow: 0 0 22px rgba(111, 255, 198, 0.78);
  animation: status-pulse 1.8s ease-in-out infinite;
}

.server-card[data-status="warming"] .status-lamp {
  background: var(--amber);
  box-shadow: 0 0 20px rgba(255, 209, 102, 0.72);
}

.server-expanded {
  border-top: 1px solid rgba(166, 143, 91, 0.24);
  padding: 12px 16px 14px;
  background: rgba(0, 0, 0, 0.16);
}

.server-expanded[hidden] {
  display: none;
}

.server-expanded-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(140px, 0.65fr) minmax(220px, 1fr);
  gap: 14px;
  align-items: start;
}

.server-expanded-grid code,
.server-expanded-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--green);
  overflow-wrap: anywhere;
}

.server-daily-top {
  display: grid;
  gap: 6px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.server-daily-top li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) max-content;
  gap: 8px;
  align-items: center;
  color: var(--ink);
}

.server-daily-rank {
  color: var(--amber);
  font-weight: 900;
}

.server-daily-player {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-daily-score {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.server-daily-empty {
  grid-template-columns: 1fr;
  color: var(--muted);
}

@keyframes status-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 16px rgba(111, 255, 198, 0.54);
  }

  50% {
    transform: scale(1.18);
    box-shadow: 0 0 28px rgba(111, 255, 198, 0.82);
  }
}

.server-name {
  overflow-wrap: anywhere;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.server-region {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  font-size: 1rem;
  vertical-align: 0.08em;
}

.server-region[hidden] {
  display: none;
}

.server-map {
  margin-top: 5px;
  color: var(--cyan);
  overflow-wrap: anywhere;
  font-size: 0.92rem;
  font-weight: 800;
}

.server-map::before {
  content: "Map: ";
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.server-population {
  min-width: 88px;
  border-left: 1px solid rgba(166, 143, 91, 0.32);
  padding-left: 16px;
  text-align: right;
}

.server-population strong {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.1rem;
}

.connect-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 209, 102, 0.42);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 209, 102, 0.1);
}

.connect-block-global {
  margin: 0;
}

.connect-command {
  display: block;
  margin-top: 8px;
  color: var(--amber);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  overflow-wrap: anywhere;
  user-select: all;
  white-space: normal;
}

.before-connect {
  margin-bottom: 18px;
  border: 1px solid rgba(103, 216, 255, 0.26);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(103, 216, 255, 0.07);
}

.before-connect-global {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 0;
}

.before-connect h3 {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.before-connect ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
}

.before-connect li {
  color: var(--ink);
  line-height: 1.35;
}

.before-connect p {
  grid-column: 1 / -1;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.community-line a,
.before-connect a {
  color: var(--amber);
  font-weight: 900;
  text-decoration: none;
}

.community-line a:hover,
.before-connect a:hover {
  text-decoration: underline;
}

.network-button {
  min-width: 156px;
}

.scoreboard,
.balance-row,
.combat-row,
.profile-state,
.ops-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.scoreboard > div,
.balance-row > span,
.combat-row > span,
.profile-state > span,
.ops-grid > div {
  min-width: 0;
  padding: 14px;
  background: rgba(3, 10, 9, 0.88);
}

.label {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

strong {
  display: block;
  margin-top: 7px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.25;
}

.player-panel {
  padding: 18px;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 240px);
  gap: 14px;
  align-items: start;
}

.dashboard-main {
  min-width: 0;
}

.dashboard-sidebar {
  position: sticky;
  top: 12px;
  min-width: 0;
  border: 1px solid rgba(166, 143, 91, 0.32);
  border-radius: 6px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(35, 42, 31, 0.88), rgba(5, 13, 11, 0.82)),
    rgba(4, 13, 11, 0.72);
}

.dashboard-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.dashboard-state {
  border: 1px solid rgba(255, 209, 102, 0.44);
  border-radius: 8px;
  padding: 7px 9px;
  background: rgba(255, 209, 102, 0.11);
  color: var(--cream);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.player-panel h2 {
  color: var(--amber);
  font-size: 1.6rem;
  letter-spacing: 0;
}

.identity-stack {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}

.player-state {
  border: 1px solid rgba(103, 216, 255, 0.28);
  border-radius: 8px;
  padding: 14px;
  background: rgba(103, 216, 255, 0.08);
}

.wallet-identity {
  background: rgba(111, 255, 198, 0.07);
}

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

.wallet-address {
  display: block;
  width: 100%;
  margin-top: 8px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  user-select: all;
  white-space: normal;
}

.copy-button {
  min-height: 30px;
  border: 1px solid rgba(111, 255, 198, 0.42);
  border-radius: 8px;
  padding: 5px 9px;
  background: rgba(111, 255, 198, 0.08);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
}

.copy-button:not(:disabled):hover,
.copy-button:not(:disabled):focus-visible {
  border-color: rgba(111, 255, 198, 0.72);
  background: rgba(111, 255, 198, 0.14);
  color: var(--cream);
  outline: none;
  box-shadow: 0 0 16px rgba(111, 255, 198, 0.12);
}

.copy-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.balance-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.combat-row {
  grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.2fr);
  margin-top: 12px;
}

.profile-state {
  margin-bottom: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.player-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.dashboard-sidebar .player-actions {
  grid-template-columns: 1fr;
  margin-top: 10px;
}

.dashboard-sidebar .note {
  border-top: 1px solid rgba(166, 143, 91, 0.24);
  padding-top: 12px;
}

.profile-edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin-top: 12px;
}

.profile-edit label {
  min-width: 0;
}

.profile-edit input {
  width: 100%;
  min-height: 42px;
  margin-top: 6px;
  border: 1px solid rgba(103, 216, 255, 0.3);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(3, 10, 9, 0.9);
  color: var(--ink);
  font: inherit;
}

.profile-region-edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin-top: 12px;
}

.profile-region-edit[hidden] {
  display: none;
}

.profile-region-edit label {
  min-width: 0;
}

.profile-region-edit select {
  width: 100%;
  min-height: 42px;
  margin-top: 6px;
  border: 1px solid rgba(199, 155, 75, 0.42);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(3, 10, 9, 0.9);
  color: var(--ink);
  font: inherit;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(111, 255, 198, 0.42);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(111, 255, 198, 0.08);
  color: var(--green);
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
}

.button:not(:disabled):not([aria-disabled="true"]):hover,
.button:not(:disabled):not([aria-disabled="true"]):focus-visible {
  border-color: rgba(111, 255, 198, 0.76);
  background: rgba(111, 255, 198, 0.14);
  color: var(--cream);
  outline: none;
  box-shadow:
    0 0 18px rgba(111, 255, 198, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.button:not(:disabled):not([aria-disabled="true"]):active {
  transform: translateY(1px);
}

.button.primary {
  border-color: rgba(255, 209, 102, 0.55);
  background: rgba(255, 209, 102, 0.16);
  color: var(--cream);
}

.button.primary:not(:disabled):not([aria-disabled="true"]):hover,
.button.primary:not(:disabled):not([aria-disabled="true"]):focus-visible {
  border-color: rgba(255, 209, 102, 0.86);
  background: rgba(255, 209, 102, 0.22);
  box-shadow:
    0 0 20px rgba(255, 209, 102, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.community-button {
  border-color: rgba(103, 216, 255, 0.52);
  background: rgba(103, 216, 255, 0.12);
  color: var(--cyan);
}

.button:disabled,
.button[aria-disabled="true"],
.button.is-disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.button.is-steam-status {
  justify-content: center;
}

.button.is-identity-locked {
  border-color: rgba(199, 155, 75, 0.62);
  background: rgba(199, 155, 75, 0.12);
  color: var(--cream);
  opacity: 0.86;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.ticker {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(5, 13, 11, 0.9);
}

.ticker-label {
  color: var(--amber);
  font-weight: 900;
  text-transform: uppercase;
}

.ticker-window {
  min-width: 0;
  overflow: hidden;
}

.ticker-track {
  display: inline-flex;
  min-width: max-content;
  gap: 32px;
  color: var(--green);
  white-space: nowrap;
  animation: reward-marquee 24s linear infinite;
}

.ticker-track span {
  display: inline-block;
  min-width: max-content;
}

@keyframes reward-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 16px));
  }
}

@media (prefers-reduced-motion: reduce) {
  button,
  a,
  .server-card,
  .leaderboard-list li[data-steam-hash] {
    transition: none;
  }

  .server-card[data-status="online"] .status-lamp,
  .ticker-track {
    animation: none;
  }
}

.ticker-track {
  text-overflow: ellipsis;
}

.leaderboard-panel,
.faq-panel {
  position: relative;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  background: rgba(5, 13, 11, 0.9);
}

.tab-panel .leaderboard-panel {
  margin-top: 0;
}

.faq-panel {
  display: grid;
  gap: 14px;
  margin-top: 0;
}

.leaderboard-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.leaderboard-header h2 {
  margin-top: 2px;
  color: var(--amber);
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0;
}

.leaderboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.leaderboard-tabs button {
  min-height: 34px;
  border: 1px solid rgba(103, 216, 255, 0.3);
  border-radius: 8px;
  padding: 7px 10px;
  background: rgba(103, 216, 255, 0.08);
  color: var(--cyan);
  font-weight: 900;
}

.leaderboard-tabs button:hover,
.leaderboard-tabs button:focus-visible,
.leaderboard-scope-tabs button:hover,
.leaderboard-scope-tabs button:focus-visible {
  border-color: rgba(255, 209, 102, 0.62);
  color: var(--cream);
  outline: none;
  box-shadow: 0 0 14px rgba(199, 155, 75, 0.1);
}

.leaderboard-tabs button:active,
.leaderboard-scope-tabs button:active {
  transform: translateY(1px);
}

.leaderboard-tabs button[aria-selected="true"] {
  border-color: rgba(255, 209, 102, 0.68);
  background: rgba(255, 209, 102, 0.15);
  color: var(--cream);
}

.leaderboard-scope-row {
  display: grid;
  grid-template-columns: auto minmax(180px, 260px) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.leaderboard-scope-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.leaderboard-scope-tabs button {
  min-height: 34px;
  border: 1px solid rgba(199, 155, 75, 0.34);
  border-radius: 8px;
  padding: 7px 11px;
  background: rgba(199, 155, 75, 0.08);
  color: var(--amber);
  font-weight: 900;
}

.leaderboard-scope-tabs button[aria-selected="true"] {
  border-color: rgba(111, 255, 198, 0.48);
  background: rgba(111, 255, 198, 0.11);
  color: var(--green);
}

.leaderboard-server-control {
  min-width: 0;
}

.leaderboard-server-control[hidden] {
  display: none;
}

.leaderboard-server-control select {
  width: 100%;
  min-height: 36px;
  margin-top: 4px;
  border: 1px solid rgba(103, 216, 255, 0.3);
  border-radius: 8px;
  padding: 7px 9px;
  background: rgba(3, 10, 9, 0.9);
  color: var(--ink);
  font: inherit;
}

.leaderboard-scope-note {
  min-width: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.leaderboard-list {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.leaderboard-column-header {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 72px repeat(4, minmax(82px, auto));
  gap: 10px;
  margin-top: 14px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.leaderboard-column-header span:nth-child(n + 4) {
  text-align: right;
}

.leaderboard-list li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 72px repeat(4, minmax(82px, auto));
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(111, 255, 198, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(3, 10, 9, 0.78);
}

.leaderboard-list li[data-steam-hash] {
  cursor: pointer;
}

.leaderboard-list li[data-steam-hash]:hover,
.leaderboard-list li[data-steam-hash]:focus-visible {
  border-color: rgba(199, 155, 75, 0.58);
  outline: none;
  background: rgba(22, 34, 25, 0.86);
  box-shadow: inset 0 0 22px rgba(199, 155, 75, 0.08);
}

.leaderboard-rank {
  color: var(--amber);
  font-weight: 900;
  font-size: 1.15rem;
}

.leaderboard-player {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 900;
}

.leaderboard-region {
  color: var(--cream);
  font-size: 1.15rem;
  line-height: 1;
  text-align: center;
}

.leaderboard-stat {
  min-width: 0;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  text-align: right;
  white-space: nowrap;
}

.leaderboard-stat span {
  display: block;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.leaderboard-empty {
  grid-template-columns: 1fr !important;
  color: var(--muted);
}

.receipt-panel,
.leaderboard-player-detail {
  min-width: 0;
  margin-top: 12px;
  border: 1px solid rgba(166, 143, 91, 0.28);
  border-radius: 6px;
  padding: 14px;
  background: rgba(3, 10, 9, 0.72);
}

.leaderboard-player-detail[hidden] {
  display: none;
}

.receipt-panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.receipt-panel-heading h3 {
  margin: 2px 0 0;
  color: var(--amber);
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.receipt-help,
.receipt-meta {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.receipt-list {
  display: grid;
  gap: 8px;
}

.receipt-card {
  min-width: 0;
  border: 1px solid rgba(111, 255, 198, 0.18);
  border-radius: 6px;
  padding: 12px;
  background: rgba(4, 14, 11, 0.78);
}

.receipt-card[data-mismatch] {
  border-color: rgba(199, 155, 75, 0.48);
}

.receipt-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.receipt-title strong {
  margin-top: 0;
  color: var(--cream);
}

.receipt-title span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.receipt-meta {
  margin-top: 6px;
}

.receipt-stats,
.player-detail-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 10px;
  border: 1px solid rgba(166, 143, 91, 0.24);
  border-radius: 6px;
  background: rgba(166, 143, 91, 0.24);
}

.player-detail-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 10px;
}

.receipt-stats > span,
.player-detail-summary-grid > span {
  min-width: 0;
  padding: 10px;
  background: rgba(3, 10, 9, 0.88);
}

.receipt-stats strong,
.player-detail-summary-grid strong {
  font-size: 0.92rem;
}

.receipt-hash {
  display: block;
  margin-top: 10px;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
  user-select: all;
}

.receipt-empty {
  border: 1px solid rgba(166, 143, 91, 0.24);
  border-radius: 6px;
  padding: 12px;
  background: rgba(3, 10, 9, 0.7);
  color: var(--muted);
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 10px;
}

.faq-sections {
  display: grid;
  gap: 18px;
}

.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.faq-tabs button {
  min-height: 36px;
  border: 1px solid rgba(199, 155, 75, 0.34);
  border-radius: 8px;
  padding: 8px 12px;
  background: rgba(199, 155, 75, 0.08);
  color: var(--amber);
  font-weight: 900;
  text-transform: uppercase;
}

.faq-tabs button:hover,
.faq-tabs button:focus-visible {
  border-color: rgba(255, 209, 102, 0.68);
  color: var(--cream);
  outline: none;
  box-shadow: 0 0 14px rgba(199, 155, 75, 0.1);
}

.faq-tabs button[aria-selected="true"] {
  border-color: rgba(111, 255, 198, 0.48);
  background: rgba(111, 255, 198, 0.11);
  color: var(--green);
}

.faq-section {
  display: grid;
  gap: 10px;
}

.faq-section[hidden] {
  display: none;
}

.faq-section-heading {
  border-bottom: 1px solid rgba(166, 143, 91, 0.24);
  padding-bottom: 8px;
}

.faq-section-heading h3 {
  margin: 4px 0 0;
  color: var(--cream);
  font-size: 1.08rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.faq-list article {
  min-width: 0;
  border: 1px solid rgba(166, 143, 91, 0.28);
  border-radius: 6px;
  padding: 14px;
  background: rgba(3, 10, 9, 0.78);
}

.faq-list h3,
.faq-list h4 {
  margin: 0 0 8px;
  color: var(--amber);
  font-size: 1rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.faq-list p {
  color: var(--ink);
  line-height: 1.48;
}

.faq-list a {
  color: var(--amber);
  font-weight: 900;
  text-decoration: none;
}

.faq-list a:hover {
  text-decoration: underline;
}

.downloads-page {
  width: min(880px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 28px 0;
}

.download-panel {
  border: 6px solid var(--cabinet-edge);
  border-radius: 6px;
  padding: clamp(18px, 4vw, 34px);
  background:
    linear-gradient(180deg, rgba(16, 27, 21, 0.96), rgba(6, 9, 8, 0.98)),
    var(--screen);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.download-panel h1 {
  font-size: clamp(2rem, 7vw, 4.4rem);
}

.download-panel h2 {
  margin-top: 28px;
  color: var(--cream);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  letter-spacing: 0;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-color: rgba(111, 255, 198, 0.72);
  background:
    linear-gradient(180deg, rgba(111, 255, 198, 0.36), rgba(20, 148, 91, 0.92)),
    rgba(20, 148, 91, 0.88);
  color: #02110c;
  box-shadow: 0 0 24px rgba(111, 255, 198, 0.18);
}

.download-button:hover,
.download-button:focus-visible {
  border-color: rgba(191, 255, 223, 0.95);
  background:
    linear-gradient(180deg, rgba(191, 255, 223, 0.52), rgba(36, 190, 117, 0.95)),
    rgba(36, 190, 117, 0.92);
  color: #010806;
  box-shadow: 0 0 32px rgba(111, 255, 198, 0.28);
}

.download-panel p,
.download-panel dd,
.download-panel dt,
.download-panel li {
  margin-top: 12px;
  color: var(--ink);
  line-height: 1.5;
}

.download-warning {
  border: 1px solid rgba(255, 209, 102, 0.42);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 209, 102, 0.1);
  color: var(--cream);
  font-weight: 800;
}

.download-note {
  border-left: 3px solid rgba(199, 155, 75, 0.74);
  padding-left: 12px;
  color: var(--cream);
}

.download-panel ol,
.download-panel ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.download-panel code {
  color: var(--green);
}

.download-panel pre {
  overflow-x: auto;
  border: 1px solid rgba(111, 255, 198, 0.24);
  border-radius: 6px;
  padding: 12px;
  background: rgba(3, 10, 9, 0.88);
}

.download-panel pre code {
  color: var(--ink);
  white-space: pre;
}

.command-box {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.command-box span {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.command-box textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(111, 255, 198, 0.3);
  border-radius: 6px;
  padding: 11px 12px;
  resize: vertical;
  background: rgba(3, 10, 9, 0.9);
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre;
}

.command-box textarea:focus {
  border-color: rgba(111, 255, 198, 0.72);
  outline: none;
  box-shadow: 0 0 18px rgba(111, 255, 198, 0.16);
}

.download-panel a {
  color: var(--amber);
  font-weight: 900;
}

.download-panel dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 12px;
  margin: 18px 0 0;
}

.download-panel dt {
  color: var(--muted);
  text-transform: uppercase;
}

.download-panel dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.ops-panel {
  position: relative;
  margin-top: 14px;
  padding: 12px 14px;
}

.ops-panel summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 900;
}

.ops-grid {
  margin-top: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.loading-line {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(4, 13, 11, 0.72);
  color: var(--muted);
}

@media (max-width: 900px) {
  .arcade {
    width: min(100vw - 16px, 720px);
    padding-top: 10px;
  }

  .marquee {
    min-height: 116px;
    align-items: start;
    flex-direction: column;
  }

  .signal {
    min-width: 0;
  }

  .screen-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .server-card {
    min-height: 0;
  }

  .server-expanded-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
  }

  .dashboard-sidebar .player-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .before-connect-global {
    grid-template-columns: 1fr;
  }

  .scoreboard,
  .ops-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .cabinet {
    border-width: 4px;
  }

  .screen {
    padding: 10px;
  }

  .screen::before,
  .screen-glass {
    inset: 12px;
  }

  .screen-grid {
    padding: 12px;
  }

  .primary-tabs {
    grid-template-columns: 1fr;
  }

  .balance-row,
  .combat-row,
  .profile-state,
  .player-actions,
  .profile-edit,
  .profile-region-edit,
  .ticker,
  .server-card,
  .server-summary,
  .leaderboard-header,
  .leaderboard-column-header,
  .leaderboard-list li {
    grid-template-columns: 1fr;
  }

  .server-population {
    border-left: 0;
    border-top: 1px solid rgba(166, 143, 91, 0.32);
    padding: 10px 0 0;
    text-align: left;
  }

  .leaderboard-header {
    display: grid;
    align-items: start;
  }

  .leaderboard-scope-row {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar .player-actions {
    grid-template-columns: 1fr;
  }

  .receipt-title {
    display: grid;
  }

  .receipt-title span {
    text-align: left;
    white-space: normal;
  }

  .receipt-stats,
  .player-detail-summary-grid {
    grid-template-columns: 1fr;
  }

  .leaderboard-tabs {
    justify-content: start;
  }

  .leaderboard-stat {
    text-align: left;
  }

  .leaderboard-column-header {
    display: none;
  }

  .dashboard-title {
    display: grid;
  }

  .connect-block {
    grid-template-columns: 1fr;
  }

  .connect-command {
    font-size: 0.95rem;
  }
}
