:root {
  color-scheme: dark;
  --bg: #07151d;
  --bg-deep: #051017;
  --surface: #0b2029;
  --surface-2: #102a33;
  --surface-3: #153640;
  --text: #f4f2ea;
  --muted: #91a8af;
  --line: #23434d;
  --line-soft: rgba(126, 163, 173, .17);
  --green: #42d39f;
  --green-dark: #1f936f;
  --amber: #f0bd59;
  --blue: #65aee0;
  --red: #ed7773;
  --shadow: 0 18px 48px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}
button, input { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
[hidden] { display: none !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 70px;
  padding: 0 clamp(18px, 4vw, 64px);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 42px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 16, 23, .96);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand img {
  width: 39px;
  height: 44px;
  object-fit: contain;
}
.brand span { display: grid; line-height: 1; }
.brand strong { font-size: 16px; }
.brand small {
  margin-top: 5px;
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
}
.primary-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}
.primary-nav a {
  position: relative;
  padding: 26px 0 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.primary-nav a:hover, .primary-nav a.is-active { color: var(--text); }
.primary-nav a.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--green);
}
.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-button, .online-button, .profile-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.icon-button {
  width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.online-button, .profile-button {
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.online-button { cursor: pointer; }
.icon-button:hover, .online-button:hover, .profile-button:hover {
  border-color: #3c6670;
  background: var(--surface-2);
}
.icon-button svg, .online-button svg, .profile-button svg,
.primary-action svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.online-button > svg { width: 14px; }
.online-button span, .profile-button span { font-size: 11px; font-weight: 700; }
.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(66, 211, 159, .1);
}
.online-popover {
  position: absolute;
  top: 58px;
  right: clamp(18px, 4vw, 64px);
  width: min(340px, calc(100vw - 36px));
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.popover-head {
  min-height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}
.popover-head strong { font-size: 12px; }
.popover-head span, .compact-player small { color: var(--muted); font-size: 10px; }
.compact-player-list { max-height: 300px; overflow: auto; }
.compact-player {
  min-height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.compact-player strong { font-size: 12px; }

.overview-band {
  min-height: 390px;
  padding: 46px clamp(20px, 7vw, 110px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr);
  align-items: center;
  gap: 64px;
  border-bottom: 1px solid var(--line);
  background: #081821;
}
.product-lockup {
  display: flex;
  align-items: center;
  gap: 34px;
  max-width: 800px;
}
.product-logo {
  width: 128px;
  height: 144px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .3));
}
.eyebrow {
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { letter-spacing: 0; }
.product-lockup h1 {
  margin: 8px 0 12px;
  font-size: 46px;
  line-height: 1.02;
}
.product-lockup p {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.overview-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.primary-action, .secondary-action {
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.primary-action {
  color: #041711;
  background: var(--green);
}
.primary-action:hover { background: #61dfb2; }
.secondary-action {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}
.secondary-action:hover { border-color: #46727c; background: var(--surface-2); }
.primary-action:disabled, .secondary-action:disabled {
  cursor: not-allowed;
  opacity: .45;
}
.server-summary {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.server-summary div {
  min-height: 94px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.server-summary dt {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.server-summary dd {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}

.rating-band, .players-band {
  padding: 62px clamp(20px, 7vw, 110px) 72px;
}
.rating-band {
  background: #0b1c23;
  border-bottom: 1px solid var(--line);
}
.players-band { background: var(--bg); }
.rating-band > *, .players-band > * {
  width: min(1280px, 100%);
  margin-right: auto;
  margin-left: auto;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}
.section-heading h2, .section-heading h3 { margin: 7px 0 0; }
.section-heading h2 { font-size: 28px; }
.section-heading h3 { font-size: 18px; }
.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.section-heading.compact { margin-bottom: 18px; }
.leaderboard-toolbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}
.leaderboard-toolbar > p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}
.leaderboard-switch {
  min-height: 38px;
  padding: 3px;
  display: inline-grid;
  grid-auto-flow: column;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, .12);
}
.leaderboard-tab {
  min-width: 112px;
  min-height: 30px;
  padding: 0 13px;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.leaderboard-tab span {
  margin-left: 7px;
  color: inherit;
  opacity: .72;
}
.leaderboard-tab:hover { color: var(--text); }
.leaderboard-tab.is-active {
  color: #06161b;
  background: var(--green);
}
.leaderboard-tab:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.rating-legend {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.rating-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
}
.legend-dot { width: 7px; height: 7px; border-radius: 50%; }
.legend-dot.commerce { background: var(--green); }
.legend-dot.engineering { background: var(--blue); }
.legend-dot.service { background: var(--amber); }
.legend-dot.raids { background: var(--red); }
.clans-leaderboard { border-top: 1px solid var(--line); }
.clan-board-head, .clan-board-row {
  display: grid;
  grid-template-columns: 52px minmax(230px, 1fr) repeat(4, 68px) 82px;
  gap: 14px;
  align-items: center;
}
.clan-board-head {
  min-height: 42px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.clan-board-row {
  width: 100%;
  min-height: 76px;
  padding: 0;
  border-top: 0;
  border-right: 0;
  border-bottom: 1px solid var(--line-soft);
  border-left: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
}
.clan-board-row:hover { background: rgba(255, 255, 255, .018); }
.leaderboard-player-row { cursor: pointer; }
.leaderboard-player-row:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}
.clan-rank { color: var(--muted); font-size: 17px; }
.clan-board-row.is-top .clan-rank { color: var(--amber); }
.clan-board-name {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.clan-board-name > div { min-width: 0; }
.clan-board-name strong { display: block; font-size: 13px; }
.clan-board-name small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.clan-tag {
  min-width: 48px;
  min-height: 29px;
  padding: 0 8px;
  border: 1px solid rgba(66, 211, 159, .38);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  background: rgba(66, 211, 159, .06);
  font-size: 9px;
  font-weight: 900;
}
.clan-tag.is-solo {
  border-color: rgba(101, 174, 224, .34);
  color: var(--blue);
  background: rgba(101, 174, 224, .06);
}
.rating-value { color: var(--muted); font-size: 11px; }
.rating-value.commerce { color: var(--green); }
.rating-value.engineering { color: var(--blue); }
.rating-value.service { color: var(--amber); }
.rating-value.raids { color: var(--red); }
.clan-score {
  justify-self: end;
  color: var(--text);
  font-size: 20px;
}

.player-search-island {
  min-height: 58px;
  margin-bottom: 18px;
  padding: 0 15px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .16);
}
.player-search-island:focus-within { border-color: var(--green-dark); }
.player-search-island > svg,
.search-clear svg,
.player-row > svg,
.public-player-head svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.player-search-island > svg { color: var(--muted); }
.player-search-island input {
  min-height: 56px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
}
.player-search-island input:focus { border: 0; box-shadow: none; }
.player-search-island input::-webkit-search-cancel-button { display: none; }
.player-search-island > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.search-clear {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.search-clear:hover { color: var(--text); }
.players-table { border-top: 1px solid var(--line); }
.player-row {
  width: 100%;
  min-height: 62px;
  padding: 0 4px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.player-row:hover { background: rgba(255, 255, 255, .018); }
.player-row:focus-visible { outline: 1px solid var(--green-dark); outline-offset: -1px; }
.player-row > svg { flex: 0 0 auto; color: var(--muted); }
.player-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.player-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}
.player-head { display: block; image-rendering: pixelated; }
.player-identity strong { font-size: 13px; }
.players-empty { padding: 22px 0; color: var(--muted); font-size: 11px; }

.modal-open { overflow: hidden; }
.public-player-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 22px;
  display: grid;
  place-items: center;
  background: rgba(1, 8, 12, .78);
  backdrop-filter: blur(8px);
}
.public-player-card {
  width: min(620px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.public-player-head {
  min-height: 78px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.public-player-head h2 { margin: 5px 0 0; font-size: 23px; }
.public-player-body {
  padding: 24px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 28px;
}
.public-player-portrait {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 14px;
}
.public-player-portrait canvas {
  width: 112px;
  height: 112px;
  border: 1px solid var(--line);
  background: var(--bg-deep);
  image-rendering: pixelated;
}
.public-player-stats {
  margin: 0;
  border-top: 1px solid var(--line);
}
.public-player-stats div {
  min-height: 66px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.public-player-stats dt {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.public-player-stats dd { margin: 0; font-size: 13px; font-weight: 800; }

.auth-view {
  min-height: calc(100vh - 70px);
  padding: 42px clamp(18px, 7vw, 110px) 76px;
  background: #081820;
}
.auth-intro {
  width: min(1060px, 100%);
  margin: 0 auto 26px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.auth-intro img { width: 62px; height: 70px; object-fit: contain; }
.auth-intro h1 { margin: 6px 0 4px; font-size: 30px; }
.auth-intro p { margin: 0; color: var(--muted); font-size: 12px; }
.auth-panel, .account {
  width: min(1060px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.auth-panel { width: min(460px, 100%); }
.tabs, .profile-tabs { display: flex; border-bottom: 1px solid var(--line); }
.tab {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}
.tab:hover, .tab.is-active { color: var(--text); }
.tab.is-active { border-bottom-color: var(--green); }
#auth-forms { padding: 26px; }
.form { display: none; }
.form.is-active { display: grid; gap: 16px; }
.form label { display: grid; gap: 7px; }
.form label > span, .withdraw-form label > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}
input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  outline: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-size: 12px;
}
input:focus { border-color: var(--green-dark); box-shadow: 0 0 0 3px rgba(66, 211, 159, .08); }
.notice {
  width: min(1060px, 100%);
  margin: 0 auto 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
}
.notice.error { border-color: rgba(237, 119, 115, .4); color: var(--red); }
.notice.success { border-color: rgba(66, 211, 159, .4); color: var(--green); }

.account {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  overflow: hidden;
}
.profile-sidebar {
  padding: 24px;
  border-right: 1px solid var(--line);
  background: #091b23;
  text-align: center;
}
.skin-stage {
  width: 150px;
  aspect-ratio: 2 / 3;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--bg-deep);
  overflow: hidden;
}
.skin-stage canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.profile-sidebar h2 { margin: 18px 0 4px; font-size: 19px; }
.profile-sidebar > p { margin: 0 0 11px; color: var(--muted); font-size: 10px; }
.player-presence {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}
.player-presence.is-online { border-color: rgba(66, 211, 159, .35); color: var(--green); }
.skin-download, .text-button {
  margin-top: 14px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
}
.text-button { border: 0; background: transparent; cursor: pointer; }
.profile-content { min-width: 0; }
.profile-view { display: none; padding: 28px; }
.profile-view.is-active { display: block; }
.stats-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.stats-strip div {
  min-height: 84px;
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-strip span, .currency-row small {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}
.stats-strip strong { font-size: 16px; }
.wallet-section { margin-top: 30px; }
.currency-row {
  display: grid;
  grid-template-columns: 1fr 210px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.currency-main, .currency-secondary { padding: 20px; }
.currency-secondary { border-left: 1px solid var(--line); }
.currency-main { display: flex; align-items: center; gap: 14px; }
.ore-glyph {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(66, 211, 159, .35);
  background: #2ab790;
  box-shadow: inset 0 0 0 10px #15272d;
}
.currency-main strong, .currency-secondary strong { display: block; font-size: 22px; }
.currency-main p, .currency-secondary span, .field-note,
.neutrality-section p { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.withdraw-form {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(180px, 260px) auto;
  align-items: end;
  gap: 10px;
}
.withdraw-form label { display: grid; gap: 7px; }

.clan-profile-head {
  padding-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}
.clan-profile-head > div:first-child { display: flex; align-items: center; gap: 14px; }
.clan-profile-head .clan-tag { min-width: 58px; min-height: 40px; font-size: 11px; }
.clan-profile-head h2 { margin: 5px 0 0; font-size: 22px; }
.clan-profile-score { text-align: right; }
.clan-profile-score small { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.clan-profile-score strong { display: block; margin-top: 4px; font-size: 29px; }
.clan-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.clan-metrics div { padding: 15px 12px; border-right: 1px solid var(--line-soft); }
.clan-metrics div:last-child { border-right: 0; }
.clan-metrics span { display: block; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.clan-metrics strong { display: block; margin-top: 6px; font-size: 16px; }
.neutrality-section {
  min-height: 108px;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.neutrality-section h3 { margin: 5px 0 0; font-size: 17px; }
.neutrality-state { display: grid; grid-template-columns: 9px auto; align-items: center; gap: 8px; text-align: right; }
.neutrality-state > span { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.neutrality-state.is-active > span { background: var(--green); box-shadow: 0 0 0 4px rgba(66, 211, 159, .1); }
.server-unavailable .status-dot { background: var(--red); box-shadow: 0 0 0 4px rgba(255, 103, 102, .1); }
.neutrality-state strong { font-size: 12px; }
.neutrality-state time { grid-column: 1 / -1; color: var(--muted); font-size: 9px; }
.clan-section { padding-top: 26px; }
.clan-section + .clan-section { margin-top: 22px; border-top: 1px solid var(--line); }
.clan-member-list, .clan-vehicle-list { border-top: 1px solid var(--line); }
.clan-member-row {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
}
.clan-member-row > div { display: flex; align-items: center; gap: 10px; }
.clan-member-score {
  color: var(--text);
  font-size: 14px;
}
.clan-member-row small, .clan-vehicle-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}
.clan-vehicle-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px 90px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 11px;
}
.clan-vehicle-row > span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.clan-vehicle-row > strong { justify-self: end; }

.settings-section { padding-bottom: 28px; }
.settings-section + .settings-section { padding-top: 28px; border-top: 1px solid var(--line); }
.file-field input { padding: 8px; }
.model-choice {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  gap: 10px;
}
.model-choice legend { margin-bottom: 8px; color: var(--muted); font-size: 10px; }
.model-choice label { display: block; }
.model-choice input { position: absolute; opacity: 0; pointer-events: none; }
.model-choice span {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 10px;
}
.model-choice input:checked + span { border-color: var(--green-dark); color: var(--green); background: rgba(66, 211, 159, .06); }

footer {
  min-height: 96px;
  padding: 20px clamp(18px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 32px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  color: var(--muted);
  font-size: 9px;
}
.footer-brand img { width: 34px; height: 38px; }

@media (max-width: 1080px) {
  .site-header { gap: 20px; }
  .primary-nav { display: none; }
  .overview-band { grid-template-columns: 1fr; gap: 36px; }
  .server-summary { width: min(650px, 100%); }
  .clan-board-head, .clan-board-row {
    grid-template-columns: 44px minmax(210px, 1fr) repeat(2, 62px) 76px;
  }
  .clan-board-head > :nth-child(5),
  .clan-board-head > :nth-child(6),
  .clan-board-row > :nth-child(5),
  .clan-board-row > :nth-child(6) { display: none; }
}

@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 62px; padding: 0 14px; }
  .brand span, .online-button > span:not(.status-dot), .profile-button span, .download-button { display: none; }
  .brand img { width: 34px; height: 39px; }
  .icon-button, .online-button, .profile-button { width: 38px; min-height: 38px; padding: 0; justify-content: center; }
  .overview-band { min-height: 0; padding: 34px 18px; }
  .product-lockup { align-items: flex-start; gap: 18px; }
  .product-logo { width: 76px; height: 86px; }
  .product-lockup h1 { font-size: 32px; }
  .product-lockup p { font-size: 13px; }
  .overview-actions { display: grid; grid-template-columns: 1fr; }
  .server-summary { grid-template-columns: 1fr 1fr; }
  .server-summary div { min-height: 82px; padding: 14px; }
  .rating-band, .players-band { padding: 44px 18px 52px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 8px; }
  .leaderboard-toolbar {
    padding: 12px 0;
    display: block;
  }
  .leaderboard-switch {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }
  .leaderboard-tab { min-width: 0; }
  .leaderboard-toolbar > p { margin-top: 10px; }
  .rating-legend { gap: 12px; overflow-x: auto; }
  .rating-legend span { white-space: nowrap; }
  .clan-board-head { display: none; }
  .clan-board-row {
    grid-template-columns: 34px minmax(0, 1fr) 64px;
    gap: 10px;
    min-height: 72px;
  }
  .clan-board-row > :nth-child(n+3):not(:last-child) { display: none; }
  .clan-score { font-size: 17px; }
  .player-search-island { grid-template-columns: 20px minmax(0, 1fr) 38px; }
  .player-search-island > span { display: none; }
  .player-row { padding: 0 4px; }
  .public-player-overlay { padding: 14px; }
  .public-player-body { grid-template-columns: 1fr; }
  .auth-view { padding: 28px 14px 54px; }
  .auth-intro img { width: 48px; height: 54px; }
  .auth-intro h1 { font-size: 25px; }
  .account { grid-template-columns: 1fr; }
  .profile-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .skin-stage { width: 120px; }
  .profile-tabs { overflow-x: auto; }
  .tab { padding: 0 15px; white-space: nowrap; }
  .profile-view { padding: 22px 16px; }
  .stats-strip, .currency-row { grid-template-columns: 1fr; }
  .currency-secondary { border-top: 1px solid var(--line); border-left: 0; }
  .withdraw-form { grid-template-columns: 1fr; }
  .clan-profile-head { align-items: flex-start; }
  .clan-profile-head .clan-tag { min-width: 48px; }
  .clan-metrics { grid-template-columns: 1fr 1fr; }
  .clan-metrics div { border-bottom: 1px solid var(--line-soft); }
  .neutrality-section { align-items: flex-start; }
  .clan-vehicle-row { grid-template-columns: minmax(0, 1fr) auto; }
  .clan-vehicle-row > span { display: none; }
  footer { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 440px) {
  .product-lockup { display: block; }
  .product-logo { margin-bottom: 16px; }
  .server-summary { grid-template-columns: 1fr; }
  .model-choice { display: grid; grid-template-columns: 1fr 1fr; }
  .model-choice span { width: 100%; justify-content: center; }
}
