/* ORIGINAL CSS: css/icons.css */
/*!
 * Bootstrap Icons 1.13.1 — local SVG masks for the SK interface.
 * Copyright (c) 2019-2024 The Bootstrap Authors; MIT license.
 * SVG sources and license: ../assets/icons/README.md and LICENSE.txt.
 * SVG masks keep existing .bi bi-* markup, sizes, colors and animations.
 */
.bi {
  display: inline-block;
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  font-style: normal;
  line-height: 1;
  vertical-align: -.125em;
}
.bi::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-color: currentColor;
  -webkit-mask: var(--sk-icon) center / contain no-repeat;
  mask: var(--sk-icon) center / contain no-repeat;
  forced-color-adjust: none;
}
.bi-arrow-clockwise { --sk-icon: url("../assets/icons/arrow-clockwise.svg"); }
.bi-arrow-down-right { --sk-icon: url("../assets/icons/arrow-down-right.svg"); }
.bi-arrow-left { --sk-icon: url("../assets/icons/arrow-left.svg"); }
.bi-arrow-repeat { --sk-icon: url("../assets/icons/arrow-repeat.svg"); }
.bi-arrow-right { --sk-icon: url("../assets/icons/arrow-right.svg"); }
.bi-arrow-up-right { --sk-icon: url("../assets/icons/arrow-up-right.svg"); }
.bi-bar-chart-fill { --sk-icon: url("../assets/icons/bar-chart-fill.svg"); }
.bi-bell { --sk-icon: url("../assets/icons/bell.svg"); }
.bi-box-arrow-up-right { --sk-icon: url("../assets/icons/box-arrow-up-right.svg"); }
.bi-broadcast { --sk-icon: url("../assets/icons/broadcast.svg"); }
.bi-bug-fill { --sk-icon: url("../assets/icons/bug-fill.svg"); }
.bi-caret-right-fill { --sk-icon: url("../assets/icons/caret-right-fill.svg"); }
.bi-check2 { --sk-icon: url("../assets/icons/check2.svg"); }
.bi-chevron-double-up { --sk-icon: url("../assets/icons/chevron-double-up.svg"); }
.bi-clock-history { --sk-icon: url("../assets/icons/clock-history.svg"); }
.bi-copy { --sk-icon: url("../assets/icons/copy.svg"); }
.bi-crosshair { --sk-icon: url("../assets/icons/crosshair.svg"); }
.bi-discord { --sk-icon: url("../assets/icons/discord.svg"); }
.bi-gem { --sk-icon: url("../assets/icons/gem.svg"); }
.bi-grid-fill { --sk-icon: url("../assets/icons/grid-fill.svg"); }
.bi-heart-pulse-fill { --sk-icon: url("../assets/icons/heart-pulse-fill.svg"); }
.bi-hourglass-split { --sk-icon: url("../assets/icons/hourglass-split.svg"); }
.bi-lightning-charge-fill { --sk-icon: url("../assets/icons/lightning-charge-fill.svg"); }
.bi-link-45deg { --sk-icon: url("../assets/icons/link-45deg.svg"); }
.bi-list { --sk-icon: url("../assets/icons/list.svg"); }
.bi-lock-fill { --sk-icon: url("../assets/icons/lock-fill.svg"); }
.bi-moon-stars { --sk-icon: url("../assets/icons/moon-stars.svg"); }
.bi-pause-circle { --sk-icon: url("../assets/icons/pause-circle.svg"); }
.bi-people { --sk-icon: url("../assets/icons/people.svg"); }
.bi-people-fill { --sk-icon: url("../assets/icons/people-fill.svg"); }
.bi-person-check { --sk-icon: url("../assets/icons/person-check.svg"); }
.bi-person-fill { --sk-icon: url("../assets/icons/person-fill.svg"); }
.bi-play-circle { --sk-icon: url("../assets/icons/play-circle.svg"); }
.bi-play-fill { --sk-icon: url("../assets/icons/play-fill.svg"); }
.bi-plus-lg { --sk-icon: url("../assets/icons/plus-lg.svg"); }
.bi-puzzle-fill { --sk-icon: url("../assets/icons/puzzle-fill.svg"); }
.bi-radar { --sk-icon: url("../assets/icons/radar.svg"); }
.bi-rocket-takeoff { --sk-icon: url("../assets/icons/rocket-takeoff.svg"); }
.bi-search { --sk-icon: url("../assets/icons/search.svg"); }
.bi-send-fill { --sk-icon: url("../assets/icons/send-fill.svg"); }
.bi-shield-fill { --sk-icon: url("../assets/icons/shield-fill.svg"); }
.bi-shield-lock { --sk-icon: url("../assets/icons/shield-lock.svg"); }
.bi-sliders2 { --sk-icon: url("../assets/icons/sliders2.svg"); }
.bi-stars { --sk-icon: url("../assets/icons/stars.svg"); }
.bi-stop-circle { --sk-icon: url("../assets/icons/stop-circle.svg"); }
.bi-sun { --sk-icon: url("../assets/icons/sun.svg"); }
.bi-trophy-fill { --sk-icon: url("../assets/icons/trophy-fill.svg"); }
.bi-unlock-fill { --sk-icon: url("../assets/icons/unlock-fill.svg"); }
.bi-x-lg { --sk-icon: url("../assets/icons/x-lg.svg"); }


/* ORIGINAL CSS: css/style.css */
/* Theme: change these variables to restyle the whole site. */
:root {
  color-scheme: light;
  --bg: #f3f7fd;
  --surface: #ffffff;
  --surface-muted: #f6f9fe;
  --tint: #edf4ff;
  --tint-strong: #dceaff;
  --line: #dde6f2;
  --line-strong: #c7d5e9;
  --text: #0f1f38;
  --text-soft: #3b4b66;
  --muted: #687891;
  --faint: #9aa8bd;
  --accent: #1f6feb;
  --accent-strong: #1559c7;
  --accent-soft: #e8f1ff;
  --on-accent: #ffffff;
  --ok: #12805a;
  --ok-soft: #e7f6ef;
  --danger: #c4314b;
  --danger-soft: #fdecef;
  --warn: #8a5300;
  --warn-soft: #fff6e6;
  --warn-line: #f1d39d;
  --shadow: 0 1px 2px rgb(15 31 56 / 6%), 0 8px 24px rgb(15 31 56 / 6%);
  --radius: 6px;
  --gutter: 2.5%;
  --font-display: 'Chakra Petch', sans-serif;
  --font-body: Inter, Arial, sans-serif;
}

/* Base */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px var(--font-body);
}

[hidden] { display: none !important; }

button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }

button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

a { color: inherit; text-decoration: none; }
button, a { transition: background .18s, color .18s, border-color .18s; }
button:hover { color: var(--accent); }

:is(button, a, input, select):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

select {
  padding: 4px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 10px;
}

input[type=checkbox] { accent-color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-soft);
  font: 600 11px var(--font-display);
  letter-spacing: 1px;
  white-space: nowrap;
}

.btn:hover { border-color: var(--accent); color: var(--accent); }

.btn-primary {
  flex: 1;
  padding: 13px;
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12px;
}

.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); }

.btn-outline { padding: 12px 17px; }

/* Decorative background */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 55%, #dbe8ff 0, transparent 60%),
    radial-gradient(ellipse at 85% 10%, #e9f1ff 0, transparent 50%),
    var(--bg);
}

.planet {
  position: absolute;
  top: 80px;
  left: -450px;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle at 70% 30%, #fff 0 35%, #e6efff 62%, #cfe0fb 84%, #b7cff5 86%, transparent 87%);
  opacity: .55;
}

.orbit {
  position: absolute;
  top: 430px;
  left: -20%;
  width: 130%;
  height: 500px;
  border: 1px solid rgb(31 111 235 / 12%);
  border-radius: 50%;
  transform: rotate(-23deg);
}

/* Header */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 90px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 90%);
}

.brand {
  display: block;
  flex-shrink: 0;
  text-align: center;
  direction: ltr;
}

.brand-name {
  display: block;
  color: var(--accent);
  font: italic 700 28px var(--font-display);
  letter-spacing: 1.5px;
  white-space: nowrap;
}

.brand-sub {
  display: block;
  color: var(--muted);
  font: 9px var(--font-body);
  letter-spacing: 2.5px;
}

.header-center {
  flex: 1;
  min-width: 0;
  max-width: 1050px;
}

.compact-status {
  display: flex;
  justify-content: space-between;
  padding: 0 0 5px;
  color: var(--muted);
  font: 9px var(--font-display);
  letter-spacing: 1.3px;
}

.compact-status b { color: var(--text); }

.navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.regions {
  display: flex;
  gap: 12px;
  direction: ltr;
}

.regions button {
  padding: 9px 15px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font: 600 14px var(--font-display);
}

.regions button.active { border-color: var(--accent); color: var(--accent); }

.regions span {
  margin-inline-start: 12px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-muted);
  color: var(--text-soft);
  font-size: 11px;
}

.language-picker {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 7px;
  margin-inline: auto 25px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--accent);
}

.language-picker select {
  min-width: 85px;
  padding: 2px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: 12px var(--font-display);
  cursor: pointer;
}

.refresh {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font: 9px var(--font-display);
  white-space: nowrap;
}

.refresh button { color: var(--text-soft); font-size: 20px; }
.refresh button:disabled i { display: inline-block; animation: spin 1s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

.header-right {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 20px;
}

.connection {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font: 11px var(--font-display);
  letter-spacing: 1px;
  white-space: nowrap;
}

.connection::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.connection[data-state=live] { color: var(--accent); }
.connection[data-state=live]::before { box-shadow: 0 0 0 3px var(--accent-soft); }
.connection[data-state=offline] { color: var(--danger); }

/* Main layout */

main { padding: 0 var(--gutter); }

.error {
  margin-top: 15px;
  padding: 12px 16px;
  border: 1px solid var(--warn-line);
  border-radius: var(--radius);
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 12px;
}

.modes {
  display: flex;
  gap: 15px;
  padding: 14px 0 15px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.modes button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font: 500 12px var(--font-display);
  white-space: nowrap;
}

.modes button.active {
  border-bottom-color: var(--accent);
  background: linear-gradient(0deg, var(--accent-soft), transparent);
  color: var(--accent);
}

.modes .share-room {
  margin-inline-start: 15px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
}

.modes .share-room:hover { background: var(--accent-soft); }

.workspace {
  display: grid;
  grid-template-columns: 29% 1fr;
  gap: 28px;
  min-height: 620px;
  margin-bottom: 38px;
}

/* Room list */

.list-tools {
  display: flex;
  align-items: center;
  gap: 9px;
}

.search {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 16px;
}

.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: none;
  color: var(--text);
  font-size: 12px;
}

.open-only {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-soft);
  font-size: 10px;
  white-space: nowrap;
}

.list-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 10px;
  color: var(--muted);
  font: 10px var(--font-display);
  letter-spacing: 1.2px;
}

.rooms {
  min-height: 300px;
  max-height: calc(100vh - 235px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.room {
  position: relative;
  display: block;
  width: 100%;
  padding: 22px 14px 23px;
  border-bottom: 1px solid var(--line);
  text-align: start;
}

.room:last-child { border-bottom: 0; }
.room:hover { background: var(--tint); }
.room.selected { background: linear-gradient(90deg, var(--tint-strong), transparent); }

.room.selected::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 19px;
  bottom: 19px;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
}

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

.room h3 {
  margin: 0 0 10px;
  color: var(--text);
  font: 600 20px var(--font-display);
  letter-spacing: .6px;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  unicode-bidi: plaintext;
}

.age {
  align-self: flex-start;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--text-soft);
  font: 10px var(--font-display);
  white-space: nowrap;
}

.room-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.mode-label { color: var(--muted); font-size: 10px; }

.player-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
  font: 12px var(--font-display);
  letter-spacing: 1px;
  white-space: nowrap;
}

.room-clans {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 11px;
}

.clan-hint { color: var(--muted); font: 9px var(--font-display); }

.badge {
  display: inline-block;
  margin-inline-start: 7px;
  padding: 3px 6px;
  border: 1px solid;
  border-radius: 4px;
  font: 600 9px var(--font-display);
  letter-spacing: .5px;
}

.badge-open { border-color: rgb(18 128 90 / 25%); background: var(--ok-soft); color: var(--ok); }
.badge-closed { border-color: rgb(196 49 75 / 25%); background: var(--danger-soft); color: var(--danger); }
.badge-archived { border-color: var(--line-strong); background: var(--surface-muted); color: var(--muted); }
.room .badge-open::before { content: '● '; }

/* Clan colors come from config.js. Text and borders are darkened so light
   colors (white, yellow…) stay readable on the white theme. */
.clan-badge, .clan-names { --clan-ink: color-mix(in srgb, var(--clan) 50%, #0b1a33); }

.clan-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 8px;
  border: 1px solid color-mix(in srgb, var(--clan) 70%, #8796ad);
  border-radius: 4px;
  background: color-mix(in srgb, var(--clan) 14%, #fff);
  color: var(--clan-ink);
  font: 600 12px var(--font-display);
  letter-spacing: .5px;
  white-space: nowrap;
  direction: ltr;
}

/* Room detail */

.detail {
  display: flex;
  flex-direction: column;
  align-self: start;
  min-width: 0;
  min-height: 570px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.welcome {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 570px;
  text-align: center;
}

.radar {
  position: relative;
  display: grid;
  place-items: center;
  width: 135px;
  height: 135px;
  margin-bottom: 30px;
  border: 1px solid rgb(31 111 235 / 25%);
  border-radius: 50%;
  background: radial-gradient(circle, transparent 44%, rgb(31 111 235 / 8%) 45%, transparent 47%);
  color: var(--accent);
  font-size: 48px;
}

.radar::before, .radar::after {
  content: '';
  position: absolute;
  background: rgb(31 111 235 / 14%);
}

.radar::before { width: 165px; height: 1px; }
.radar::after { width: 1px; height: 165px; }
.radar i { position: relative; }

.eyebrow {
  color: var(--accent);
  font: 600 10px var(--font-display);
  letter-spacing: 2.2px;
}

.welcome h2 { margin: 12px 0; font: 500 27px var(--font-display); }
.welcome p { color: var(--muted); font-size: 12px; line-height: 1.8; }

.coordinates {
  margin-top: 35px;
  color: var(--faint);
  font: 9px var(--font-display);
  letter-spacing: 2px;
}

.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin: 0 22px;
  padding: 25px 0 20px;
  border-bottom: 1px solid var(--line);
}

.detail-head h2 {
  margin: 0 0 10px;
  font: 700 24px var(--font-display);
  letter-spacing: 1px;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  unicode-bidi: plaintext;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font: 11px var(--font-display);
}

.detail-counters {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.detail-counters span {
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--text-soft);
  font: 600 11px var(--font-display);
}

.room-access-note {
  margin: 15px 26px 0;
  color: var(--warn);
  font-size: 11px;
  line-height: 1.6;
}

.players-area { flex: 1; padding: 0 26px 18px; }

.section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 25px 0 19px;
  font: 700 14px var(--font-display);
  letter-spacing: .7px;
}

.section-title i { color: var(--accent); font-size: 11px; }

.notice {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.7;
}

.score-leader {
  margin-bottom: 12px;
  color: var(--accent);
  font: 600 12px var(--font-display);
}

.score-leader span {
  margin-inline-start: 12px;
  color: var(--text-soft);
  font-size: 10px;
}

.distribution {
  display: flex;
  gap: 2px;
  width: 100%;
  height: 23px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface-muted);
  direction: ltr;
}

.distribution > div {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 3px;
  overflow: hidden;
  background: color-mix(in srgb, var(--clan) 75%, #1b2c4d);
}

.distribution span {
  padding: 0 6px;
  color: #fff;
  font: 700 10px var(--font-display);
  text-shadow: 0 1px 2px rgb(0 0 0 / 60%);
  white-space: nowrap;
}

.score-caption { margin: 10px 0 0; color: var(--muted); font-size: 10px; }

.clan-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 28px;
}

.clan-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.7;
}

.clan-names {
  padding-top: 2px;
  color: var(--clan-ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.separator { opacity: .5; }

.untagged {
  color: var(--text);
  font-size: 13px;
  line-height: 2;
  letter-spacing: .3px;
  overflow-wrap: anywhere;
}

.data-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.actions {
  display: flex;
  gap: 10px;
  padding: 15px 24px 24px;
}

.actions .btn { min-width: 110px; }
.actions .data-note { flex: 1; align-self: center; margin: 0; }

.empty {
  padding: 40px 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

/* Footer */

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font: 9px var(--font-display);
  letter-spacing: .8px;
}

footer i { color: var(--accent); }
.footer-dim { color: var(--faint); }
.owner strong { color: var(--accent); }

/* Dialogs */

dialog {
  width: min(490px, calc(100vw - 30px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 80px rgb(15 31 56 / 25%);
}

dialog::backdrop {
  background: rgb(15 31 56 / 35%);
  backdrop-filter: none;
}

.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.dialog-heading h2 {
  margin: 0;
  font: 700 20px var(--font-display);
  text-transform: uppercase;
}

.dialog-heading button { color: var(--muted); font-size: 20px; }

.dialog-body { padding: 24px; }
.dialog-body > :first-child { margin-top: 0; }
.dialog-body label { color: var(--text-soft); font-size: 11px; }
.dialog-body p { color: var(--muted); font-size: 11px; line-height: 1.7; }
.dialog-body .dialog-status { color: var(--accent-strong); font-weight: 600; }
.dialog-status:empty { display: none; }

.share-input {
  display: flex;
  margin-top: 9px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.share-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.share-input input {
  width: 100%;
  min-width: 0;
  padding: 14px;
  border: 0;
  outline: none;
  background: var(--surface-muted);
  color: var(--text);
  font-size: 12px;
  direction: ltr;
  text-align: left;
}

.share-input button {
  flex-shrink: 0;
  padding: 10px 12px;
  white-space: nowrap;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 700;
}

.share-input button:hover { background: var(--accent-strong); color: var(--on-accent); }
.share-input button:disabled { opacity: .5; cursor: wait; }

/* Download banner */

.download-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 18px;
  padding: 28px 34px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(120deg, var(--accent-strong) 0%, var(--accent) 45%, #4f95f7 100%);
  color: var(--on-accent);
  box-shadow: 0 12px 32px rgb(31 111 235 / 28%);
}

/* Radar rings in the background. */
.download-banner::before, .download-banner::after {
  content: '';
  position: absolute;
  top: 50%;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 50%;
  pointer-events: none;
}

.download-banner::before { inset-inline-end: -60px; width: 320px; height: 320px; margin-top: -160px; }
.download-banner::after { inset-inline-end: 20px; width: 160px; height: 160px; margin-top: -80px; }

.banner-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: rgb(255 255 255 / 16%);
  font-size: 38px;
}

.banner-text { position: relative; flex: 1; min-width: 0; }

.banner-kicker {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgb(255 255 255 / 18%);
  font: 700 10px var(--font-display);
  letter-spacing: 2px;
}

.banner-title { margin: 10px 0 6px; font: 700 28px var(--font-display); line-height: 1.15; }
.banner-text p { margin: 0; font-size: 14px; line-height: 1.5; opacity: .92; }

.banner-actions {
  position: relative;
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 30px;
  border-radius: 12px;
  background: #fff;
  color: var(--accent-strong);
  font: 700 17px var(--font-display);
  letter-spacing: .5px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgb(8 34 84 / 28%);
  transition: transform .18s, box-shadow .18s;
}

.btn-download i { font-size: 20px; }
.btn-download:hover { color: var(--accent-strong); transform: translateY(-2px); box-shadow: 0 12px 26px rgb(8 34 84 / 34%); }
.btn-download:disabled { cursor: wait; opacity: .75; transform: none; }

.zip-pill {
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--accent-soft);
  font-size: 11px;
  letter-spacing: 1px;
}

.banner-status { margin: 0; font-size: 12px; font-weight: 600; }
.banner-status:empty { display: none; }

.banner-help {
  color: var(--on-accent);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: .9;
}

.banner-help:hover { color: var(--on-accent); opacity: 1; }
.download-banner :focus-visible { outline-color: #fff; }

/* Download dialog */

.btn-block { width: 100%; padding: 14px; font-size: 13px; }

.steps-title {
  margin: 22px 0 10px;
  font: 700 13px var(--font-display);
  letter-spacing: .7px;
  text-transform: uppercase;
}

.steps {
  margin: 0;
  padding-inline-start: 20px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.7;
}

.steps li + li { margin-top: 6px; }
.steps li::marker { color: var(--accent); font-weight: 700; }

code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font: .95em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  direction: ltr;
  unicode-bidi: isolate;
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.source-link:hover { text-decoration: underline; }

#leaderboardDialog { width: min(760px, calc(100vw - 24px)); max-height: 85vh; }
#leaderboardContent { padding: 0 24px 24px; }

.leaderboard-room { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }

.leaderboard-scroll {
  max-height: 50vh;
  margin-top: 18px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.leaderboard-table { width: 100%; border-collapse: collapse; font-size: 13px; }

.leaderboard-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11px;
}

.leaderboard-table :is(th, td) {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: start;
}

.leaderboard-table td:nth-child(2) { max-width: 340px; overflow-wrap: anywhere; }
.leaderboard-table td:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.leaderboard-table tbody tr:nth-child(-n+3) { background: #f4f8ff; }

/* The site name is Latin text: keep it in reading order inside Arabic text. */
[data-site-name], .eyebrow { direction: ltr; unicode-bidi: isolate; }
[dir=rtl] .section-title i { transform: scaleX(-1); }

/* Arabic letters must not be spaced apart. */
[dir=rtl] :is(.section-title, .detail-meta, .score-leader, .data-note, .compact-status, .list-caption,
  .connection, .badge, .btn, .modes button, .clan-hint, .age, .steps-title, .banner-kicker,
  .btn-download, footer) {
  letter-spacing: normal;
}

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

/* Responsive */

@media (min-width: 1600px) {
  .workspace { min-height: 650px; }
}

/* The header breakpoints keep every part on one line with 4-digit player
   counts; check them when adding something to the header. */
@media (max-width: 1340px) {
  .header-right .btn-outline { display: none; }
}

@media (max-width: 1280px) {
  header { gap: 18px; }
  .header-right { gap: 12px; }
  .regions { gap: 0; }
  .regions button { padding: 9px 10px; }
  .compact-status { justify-content: flex-end; }
  .compact-status > span:first-child { display: none; }
  .language-picker { margin-inline-end: 10px; padding: 6px; }
  .language-picker select { min-width: 74px; }
  #updated { display: none; }
}

/* Two-row header: logo and actions on top, regions and language below. */
@media (max-width: 1100px) {
  header {
    flex-wrap: wrap;
    gap: 12px;
    height: auto;
    min-height: 85px;
    padding-top: 14px;
    padding-bottom: 10px;
  }

  .header-center {
    display: flex;
    flex-basis: 100%;
    align-items: center;
    gap: 16px;
    max-width: none;
    order: 3;
  }

  .navigation { flex: 1; }
  .compact-status { padding: 0; white-space: nowrap; }
  .header-right { margin-inline-start: auto; }
  #updated { display: inline; }
}

@media (max-width: 1000px) {
  .download-banner { gap: 20px; padding: 24px; }
  .banner-title { font-size: 24px; }
  .workspace { grid-template-columns: 34% 1fr; gap: 18px; }
  .list-tools { flex-wrap: wrap; }
  .search { flex-basis: 100%; }
  .detail-head { flex-wrap: wrap; }
  .clan-row { flex-wrap: wrap; gap: 7px; }
  .modes { gap: 3px; }
  .room h3 { font-size: 17px; }
}

@media (max-width: 850px) {
  .brand-sub { font-size: 7px; }
  .rooms { max-height: 420px; }
}

/* Status line above the region tabs instead of beside them. */
@media (max-width: 760px) {
  .download-banner { flex-direction: column; align-items: stretch; gap: 16px; padding: 24px 18px; text-align: center; }
  .banner-icon { display: none; }
  .banner-actions { align-items: stretch; }
  .btn-download { justify-content: center; }
  .header-center { display: block; }
  .compact-status { justify-content: flex-start; margin-bottom: 5px; }
  .navigation { flex-wrap: wrap; gap: 5px; }
}

@media (max-width: 650px) {
  .brand-name { font-size: 22px; }
  .connection { font-size: 8px; }
  .modes .share-room { margin-inline-start: 6px; }
  .workspace { grid-template-columns: 1fr; }
  .list-tools { flex-wrap: nowrap; }
  .search { flex-basis: auto; }
  .rooms { min-height: 180px; }
  .room { padding: 18px 12px; }
  .room-bottom { flex-direction: row; align-items: center; }
  .detail, .welcome { min-height: 370px; }
  .detail-head { margin: 0 16px; }
  .detail-head h2 { font-size: 21px; }
  .players-area { padding: 0 17px 12px; }
  .clan-row { flex-wrap: nowrap; }
  .clan-names, .untagged { font-size: 12px; }
  .actions { padding: 12px 17px 20px; }
  .dialog-heading { padding: 16px; }
  .dialog-heading h2 { font-size: 18px; }
  .dialog-body { padding: 18px; }
}

@media (max-width: 560px) {
  .banner-title { font-size: 21px; }
  .banner-text p { font-size: 13px; }
  .btn-download { padding: 15px 16px; font-size: 15px; }
  .brand-sub { letter-spacing: 1.8px; }
  .compact-status { font-size: 8px; }
  .regions button { padding: 9px 4px; font-size: 12px; }
  .regions span { margin-inline-start: 4px; padding: 2px 5px; }
  .language-picker { margin-inline-end: 0; }
  .language-picker select { min-width: 68px; font-size: 11px; }
  #updated { display: none; }
  .rooms { max-height: 350px; }
  .actions { flex-wrap: wrap; }
  .actions .btn { flex: 1; min-width: 0; }
  .actions .btn-primary { flex-basis: 100%; order: -1; }
  footer { flex-direction: column; gap: 10px; }
  #leaderboardContent { padding: 0 12px 16px; }
  .leaderboard-table { font-size: 12px; }
  .leaderboard-table :is(th, td) { padding: 10px 6px; }
}


/* ORIGINAL CSS: css/appearance.css */
/* SK Storm — shared appearance for the uploaded server browser. */
:root,
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #edf5ff;
  --surface: #fff;
  --surface-muted: #f5f9ff;
  --tint: #edf5ff;
  --tint-strong: #ddecff;
  --line: #d8e5f4;
  --line-strong: #b9cfe7;
  --text: #172f4d;
  --text-soft: #3b5978;
  --muted: #58728e;
  --faint: #657f99;
  --accent: #176bc3;
  --accent-strong: #1156a2;
  --accent-soft: #e4f0ff;
  --on-accent: #fff;
  --ok: #0c7e5c;
  --ok-soft: #e3f5ed;
  --danger: #b93350;
  --danger-soft: #fff0f3;
  --warn: #895305;
  --warn-soft: #fff7e9;
  --warn-line: #eace9b;
  --shadow: 0 3px 8px #24518105, 0 16px 45px #24518108;
  --radius: 14px;
  --gutter: max(24px, calc((100vw - 1500px) / 2));
  --header-fill: #f7fbffe8;
  --storm-wash: #c8e1fb;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #080f1b;
  --surface: #101b2c;
  --surface-muted: #142237;
  --tint: #152841;
  --tint-strong: #19385b;
  --line: #23354d;
  --line-strong: #365372;
  --text: #e5effb;
  --text-soft: #bfd1e5;
  --muted: #9aafc7;
  --faint: #90a8c2;
  --accent: #71baff;
  --accent-strong: #a4d3ff;
  --accent-soft: #183656;
  --on-accent: #081a2c;
  --ok: #7dd9b5;
  --ok-soft: #143c32;
  --danger: #ffa8b9;
  --danger-soft: #402432;
  --warn: #efc57e;
  --warn-soft: #392f21;
  --warn-line: #655236;
  --shadow: 0 4px 10px #0001, 0 18px 48px #0002;
  --header-fill: #0b1523e8;
  --storm-wash: #122d4d;
}

html { scroll-behavior: smooth; }
body { min-width: 300px; min-height: 100vh; -webkit-font-smoothing: antialiased; }
body, header, .detail, .room, dialog, .btn, .search, .download-banner {
  transition: background-color .2s, border-color .2s, color .2s;
}
button, a, input, select { touch-action: manipulation; }
select { border-radius: 9px; }
button:disabled { cursor: wait; }

.backdrop {
  background: radial-gradient(ellipse at 12% 15%, var(--storm-wash), transparent 52%), var(--bg);
}
.planet { display: none; }
.orbit {
  top: 110px;
  inset-inline-start: 30%;
  width: 1100px;
  height: 900px;
  border-color: color-mix(in srgb, var(--accent) 10%, transparent);
  opacity: .35;
}
header {
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
  min-height: 100px;
  height: auto;
  gap: 18px 26px;
  padding-block: 20px;
  background: var(--header-fill);
  border-color: var(--line);
  backdrop-filter: none;
}
.brand { display: flex; align-items: center; gap: 12px; text-align: start; }
.brand > img, .brand-logo, .brand-emblem { width: 50px; height: 50px; object-fit: contain; border: 1px solid #3e6a9566; border-radius: 15px; background: #030c17; }
.brand-name { color: var(--text); font-size: 28px; font-style: normal; letter-spacing: 3px; line-height: 1.05; }
.brand-sub { color: var(--muted); font-size: 8px; letter-spacing: 1.7px; margin-top: 7px; }
.header-center { min-width: 360px; max-width: 840px; }
.compact-status { font-size: 9px; letter-spacing: 1px; margin-bottom: 3px; }
.header-right { flex-wrap: wrap; gap: 12px; }
.connection { font-size: 9px; letter-spacing: .6px; }
.navigation { gap: 14px; }
.regions { gap: 5px; }
.regions button { padding: 8px 11px; border: 1px solid transparent; border-radius: 999px; font-size: 12px; }
.regions button.active { border-color: var(--line-strong); background: var(--accent-soft); color: var(--accent); }
.regions span { padding: 2px 6px; margin-inline-start: 7px; border-radius: 999px; font-size: 10px; }
.language-picker { padding: 7px 10px; border-radius: 999px; margin-inline: auto 2px; }
.language-picker select { min-width: 71px; font-size: 11px; }
.refresh { gap: 8px; }
.refresh button { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); font-size: 16px; }
.btn { border-radius: 999px; padding: 11px 16px; letter-spacing: .6px; }
.btn-primary { border-radius: 13px; }
.btn-outline { background: var(--surface); }

.appearance-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.appearance-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.appearance-controls button:hover { border-color: var(--accent); color: var(--accent); }
.appearance-controls button[aria-pressed='true'] { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.appearance-controls button i { font-size: 13px; }

main { padding-top: 24px; }
.identity-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(250px, .85fr);
  align-items: center;
  gap: 16px;
  min-height: 310px;
  padding: 30px 44px;
  overflow: hidden;
  border: 1px solid #315a82;
  border-radius: 28px;
  background: #020a16;
  color: #eaf4ff;
  box-shadow: 0 18px 45px #09284c19;
}
.identity-hero::before {
  content: '';
  position: absolute;
  inset: -40px;
  z-index: -2;
  background: linear-gradient(90deg, #030b19 5%, #030b19e8 38%, #020b1a33 100%), url('../assets/sk-emblem-poster.png') 88% 46% / 650px auto no-repeat;
  opacity: .65;
  filter: blur(4px);
}
.identity-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 70% 70%, #0d4d8e22, transparent 55%), linear-gradient(150deg, transparent 55%, #54a9f20a 55%, #54a9f20a 55.4%, transparent 55.4%);
}
.identity-copy { position: relative; z-index: 2; max-width: 610px; }
.identity-copy .eyebrow { color: #8ac5ff; letter-spacing: 2.8px; font-size: 10px; }
.identity-copy h1 { margin: 16px 0 13px; max-width: 560px; color: #f2f8ff; font: 700 clamp(30px, 3.3vw, 48px)/1.1 var(--font-display); letter-spacing: -.8px; }
.identity-copy h1 span { color: #7cc3ff; }
.identity-copy p { max-width: 490px; margin: 0; color: #a7c1dd; font-size: 12px; line-height: 1.9; }
.identity-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.identity-actions .btn { background: #e6f3ff; border-color: #e6f3ff; color: #164d7d; padding: 11px 16px; }
.identity-actions .btn:hover { background: #cfe8ff; border-color: #cfe8ff; color: #0d395e; }
.identity-actions .btn + .btn { background: #0d223a; border-color: #315577; color: #b5d5f5; }
.identity-actions .btn + .btn:hover { background: #183955; color: #d9edff; }
.identity-art { position: relative; display: flex; align-items: center; justify-content: center; justify-self: center; width: min(100%, 265px); aspect-ratio: 1; }
.identity-art::before { content: ''; position: absolute; inset: 10%; border-radius: 50%; box-shadow: 0 0 65px 35px #1a6dbf19; }
.identity-art::after { content: ''; position: absolute; inset: -4%; border: 1px solid #64b7ff17; border-radius: 32%; transform: rotate(18deg); pointer-events: none; }
.identity-art img[data-brand-media] { position: relative; display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 24%; background: #000; box-shadow: 0 14px 50px #0005; }
.identity-badge { position: absolute; right: -2px; bottom: -1px; z-index: 3; padding: 7px 12px; border: 1px solid #315577; border-radius: 999px; background: #0b2038; color: #b6d9fc; font: 500 9px var(--font-display); letter-spacing: 1px; }
.identity-badge::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-inline-end: 6px; border-radius: 50%; background: #80bfff; box-shadow: 0 0 8px #80bfff80; }
:root[data-theme='light'] .identity-hero { border-color: #204f7b; box-shadow: 0 18px 45px #154b7d15; }

.modes { gap: 7px; margin: 22px 0; padding: 7px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); }
.modes button { padding: 10px 17px; border-radius: 999px; border: 1px solid transparent; font-size: 12px; }
.modes button.active { border-color: var(--line-strong); background: var(--accent-soft); color: var(--accent); }
.modes .share-room { margin-inline-start: auto; border-color: var(--line-strong); }
.workspace { grid-template-columns: minmax(280px, .72fr) minmax(0, 1.7fr); gap: 24px; min-height: 600px; margin-bottom: 32px; }
.list-panel { min-width: 0; }
.list-tools { gap: 10px; }
.search { min-height: 43px; padding: 10px 14px; border-radius: 999px; box-shadow: var(--shadow); }
.search input { font-size: 12px; }
.open-only { font-size: 11px; }
.list-caption { margin: 19px 4px 12px; font-size: 10px; }
.list-caption select { border-radius: 999px; padding: 6px 9px; font-size: 10px; }
.rooms { min-height: 300px; max-height: 680px; padding: 2px 5px 4px 1px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.room { margin-bottom: 10px; padding: 21px 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.room:last-child { border-bottom: 1px solid var(--line); }
.room:hover { border-color: var(--line-strong); background: var(--surface-muted); }
.room.selected { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); background: linear-gradient(120deg, var(--tint-strong), var(--surface)); }
.room.selected::before { inset-inline-start: 0; top: 25px; bottom: 25px; width: 3px; border-radius: 3px; }
.room h3 { font-size: 19px; letter-spacing: .2px; margin-bottom: 10px; }
.room-bottom { gap: 8px; }
.age, .badge { border-radius: 999px; }
.age { padding: 4px 8px; }
.mode-label { font-size: 11px; }
.clan-hint { font-size: 10px; }
.clan-badge { border-radius: 7px; }
.detail { min-height: 600px; border-radius: 24px; }
.welcome { min-height: 600px; padding: 30px; }
.radar { background: radial-gradient(circle, transparent 44%, color-mix(in srgb, var(--accent) 10%, transparent) 45%, transparent 47%); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.radar::before, .radar::after { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.coordinates { color: var(--faint); font-size: 9px; }
.detail-head { margin-inline: 26px; padding-block: 28px 22px; }
.detail-head h2 { font-size: 26px; letter-spacing: .3px; }
.detail-counters span { padding: 6px 10px; border-radius: 999px; }
.notice { border-radius: 14px; }
.distribution { height: 25px; border-radius: 9px; }
.actions .btn-primary { flex: 1; }
.data-note, .score-caption { line-height: 1.8; }

.download-banner { gap: 20px; padding: 23px 28px; margin-block: 22px 0; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.download-banner::before, .download-banner::after { border-color: color-mix(in srgb, var(--accent) 10%, transparent); }
.banner-icon { width: 55px; height: 55px; border-radius: 17px; background: var(--accent-soft); color: var(--accent); font-size: 27px; }
.banner-kicker { background: var(--accent-soft); color: var(--accent); font-size: 9px; letter-spacing: 1.3px; }
.banner-title { font-size: 22px; margin-block: 9px 5px; }
.banner-text p { color: var(--muted); font-size: 11px; line-height: 1.8; }
.btn-download { padding: 12px 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; box-shadow: none; }
.btn-download:hover { color: var(--accent-strong); box-shadow: none; }
.btn-download i { font-size: 16px; }
.zip-pill { background: var(--surface); color: var(--text-soft); }
.banner-help, .banner-help:hover { color: var(--muted); font-size: 10px; }
.banner-status { color: var(--accent); font-size: 10px; }
.download-banner :focus-visible { outline-color: var(--accent); }
footer { padding-block: 23px; background: var(--header-fill); }
.footer-dim { color: var(--muted); }
dialog { max-height: min(85vh, 780px); border-radius: 24px; box-shadow: 0 26px 90px #0005; }
dialog::backdrop { background: #020a17b3; backdrop-filter: none; }
.dialog-heading { padding: 22px 25px; }
.dialog-heading h2 { font-size: 20px; letter-spacing: .3px; }
.dialog-heading button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-muted); font-size: 15px; }
.share-input { border-radius: 12px; }
.leaderboard-scroll { border-radius: 14px; }
.leaderboard-table tbody tr:nth-child(-n+3) { background: var(--tint); }
:root[data-theme='dark'] .clan-badge,
:root[data-theme='dark'] .clan-names { --clan-ink: color-mix(in srgb, var(--clan) 32%, #d7edff); }
:root[data-theme='dark'] .clan-badge { background: color-mix(in srgb, var(--clan) 10%, var(--surface)); border-color: color-mix(in srgb, var(--clan) 35%, #617b96); }
:root[data-theme='dark'] .badge-open { border-color: #417e6a; }
:root[data-theme='dark'] .badge-closed { border-color: #835062; }

@media (min-width: 1600px) {
  .identity-hero { min-height: 335px; padding-inline: 52px; }
  .identity-art { width: 280px; }
}
@media (max-width: 1400px) {
  header { gap: 17px 20px; }
  .header-right { gap: 9px; }
  .appearance-controls button { font-size: 10px; padding-inline: 9px; }
  .header-center { min-width: 320px; }
  .connection { display: none; }
}
@media (max-width: 1100px) {
  header { padding-block: 17px 13px; }
  .header-center { min-width: 0; }
  .header-right { margin-inline-start: auto; }
  .header-right .connection { display: inline-flex; }
  .identity-hero { padding: 28px 32px; grid-template-columns: 1fr 240px; }
  .identity-art { width: 225px; }
  .workspace { gap: 20px; grid-template-columns: minmax(270px, .85fr) minmax(0, 1.5fr); }
  .room h3 { font-size: 18px; }
  .modes { gap: 4px; }
  .modes button { padding-inline: 13px; }
}
@media (max-width: 850px) {
  :root { --gutter: 22px; }
  .identity-hero { gap: 12px; padding: 28px; grid-template-columns: minmax(0, 1fr) 220px; }
  .identity-art { width: 205px; }
  .identity-copy h1 { font-size: 34px; }
  .identity-copy p { font-size: 11px; }
  .workspace { grid-template-columns: minmax(240px, .9fr) minmax(0, 1.2fr); gap: 18px; }
  .room { padding: 18px 15px; }
  .detail-head { margin-inline: 20px; }
  .players-area { padding-inline: 20px; }
  .modes { border-radius: 18px; }
  .modes button { padding-inline: 11px; font-size: 11px; }
}
@media (max-width: 650px) {
  :root { --gutter: 18px; }
  header { gap: 16px; padding-top: 16px; }
  .brand { gap: 9px; }
  .brand > img, .brand-logo, .brand-emblem { width: 43px; height: 43px; border-radius: 13px; }
  .brand-name { font-size: 25px; }
  .brand-sub { font-size: 7px; letter-spacing: 1px; }
  .header-right .connection { display: none; }
  .header-right { flex-shrink: 1; min-width: 0; }
  .appearance-controls { gap: 5px; justify-content: flex-end; }
  .appearance-controls button { font-size: 10px; padding-inline: 9px; min-height: 34px; }
  .appearance-controls button i { font-size: 12px; }
  .header-center { margin-top: 0; }
  .navigation { gap: 6px; }
  .language-picker { margin-inline-start: auto; }
  .regions button { padding: 8px 9px; font-size: 12px; }
  .regions span { margin-inline-start: 5px; padding-inline: 6px; }
  .refresh { margin-inline-start: 0; }
  .compact-status { margin-bottom: 8px; font-size: 9px; }
  .identity-hero { min-height: 0; gap: 26px; grid-template-columns: 1fr; padding: 30px 25px 25px; border-radius: 24px; text-align: center; }
  .identity-hero::before { background-position: center, center 75%; background-size: auto, 600px; opacity: .4; }
  .identity-copy { max-width: 100%; }
  .identity-copy h1 { margin: 14px auto 11px; max-width: 440px; font-size: 35px; }
  .identity-copy p { margin-inline: auto; max-width: 400px; font-size: 11px; }
  .identity-actions { justify-content: center; margin-top: 21px; gap: 8px; }
  .identity-actions .btn { padding: 10px 14px; font-size: 10px; }
  .identity-art { width: 205px; }
  .identity-badge { inset-inline-end: -7px; bottom: -3px; font-size: 8px; }
  .workspace { grid-template-columns: 1fr; gap: 22px; }
  .modes { margin-block: 20px; gap: 4px; padding: 6px; }
  .modes button { padding: 9px 12px; }
  .modes .share-room { margin-inline-start: 2px; }
  .rooms { min-height: 180px; max-height: 440px; }
  .room { padding: 19px 17px; border-radius: 18px; }
  .room h3 { font-size: 19px; }
  .room-bottom { flex-direction: row; }
  .list-tools { flex-wrap: nowrap; }
  .search { flex-basis: auto; }
  .detail { border-radius: 22px; min-height: 400px; }
  .welcome { min-height: 400px; padding: 25px; }
  .detail-head { margin-inline: 20px; padding-block: 23px 20px; }
  .detail-head h2 { font-size: 23px; }
  .players-area { padding-inline: 20px; }
  .actions { padding-inline: 20px; }
  .clan-row { flex-wrap: wrap; }
  .download-banner { padding: 22px; gap: 17px; }
  .banner-title { font-size: 22px; }
  .banner-actions { align-items: center; }
  .btn-download { justify-content: center; padding: 12px 18px; }
  .banner-text p { font-size: 11px; }
  .dialog-heading { padding: 19px; }
}
@media (max-width: 430px) {
  :root { --gutter: 14px; }
  header { gap: 13px 8px; }
  .brand > img, .brand-logo, .brand-emblem { width: 37px; height: 37px; border-radius: 11px; }
  .brand { gap: 7px; }
  .brand-name { font-size: 22px; letter-spacing: 2px; }
  .brand-sub { font-size: 6px; letter-spacing: .6px; }
  .appearance-controls { max-width: 182px; gap: 5px; }
  .appearance-controls button { font-size: 9px; padding: 7px 8px; gap: 5px; min-height: 32px; }
  .appearance-controls button i { font-size: 11px; }
  .regions { gap: 2px; }
  .regions button { padding: 8px 5px; font-size: 11px; }
  .regions span { padding-inline: 4px; margin-inline-start: 3px; font-size: 9px; }
  .language-picker { padding: 6px; }
  .language-picker select { min-width: 61px; font-size: 10px; }
  .refresh button { width: 28px; height: 28px; font-size: 14px; }
  .navigation { gap: 5px; }
  main { padding-top: 18px; }
  .identity-hero { padding: 27px 19px 24px; gap: 25px; border-radius: 23px; }
  .identity-copy .eyebrow { font-size: 8px; letter-spacing: 2px; }
  .identity-copy h1 { font-size: 31px; letter-spacing: -.4px; }
  .identity-copy p { font-size: 11px; }
  .identity-art { width: 190px; }
  .modes { border-radius: 16px; }
  .modes button { padding: 9px 11px; font-size: 10px; }
  .list-caption { font-size: 9px; letter-spacing: .7px; }
  .open-only { font-size: 10px; }
  .room h3 { font-size: 18px; }
  .room-bottom { flex-wrap: wrap; gap: 9px; }
  .room { padding: 18px 15px; }
  .player-count { font-size: 11px; }
  .detail-head { margin-inline: 17px; }
  .players-area { padding-inline: 17px; }
  .detail-meta { font-size: 10px; }
  .clan-names { font-size: 12px; }
  .welcome h2 { font-size: 25px; }
  .coordinates { letter-spacing: 1px; }
}

:root[data-animation='off'] *,
:root[data-animation='off'] *::before,
:root[data-animation='off'] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
:root[data-animation='off'] { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Identity copy and caption follow the same rounded storm frame. */
.identity-copy .identity-badge { position: static; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; color: #a8d6ff; font-size: 9px; letter-spacing: 1.7px; }
.identity-copy .identity-badge::before { display: none; }
.identity-copy .identity-badge i { font-size: 11px; }
.identity-actions .btn { flex: 0 0 auto; }
.identity-download { display: inline-flex; align-items: center; gap: 7px; padding: 9px 2px; color: #a6c6e5; font-size: 10px; text-decoration: underline; text-underline-offset: 4px; }
.identity-download:hover { color: #e1f1ff; }
.identity-art-caption { position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%); color: #8eaeca; font: 500 7px var(--font-display); letter-spacing: 1.5px; white-space: nowrap; }
#heroDownloadStatus { margin-top: 12px; color: #b6d7f6; font-size: 10px; }
:root[data-theme='light'] { --faint: #58728e; }
@media (max-width: 650px) { .identity-art { margin-bottom: 15px; } .identity-copy .identity-badge { font-size: 8px; letter-spacing: 1.2px; } .identity-download { padding: 8px 4px; } }
@media (max-width: 430px) { .identity-art-caption { font-size: 6px; letter-spacing: 1.1px; } }
.identity-art-caption { bottom: -22px; padding: 6px 10px; border: 1px solid #294967; border-radius: 999px; background: #091a2c; color: #a3c4e4; }
#heroDownloadStatus:empty { display: none; margin: 0; }

/* Mode buttons are independent toggles; player search shows its coverage. */
.modes button[data-mode].active::after { content: '✓'; margin-inline-start: 5px; font: 700 11px var(--font-body); }
.mode-help { margin: -9px 7px 22px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.search-status { margin: 10px 4px 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.player-match { display: flex; align-items: flex-start; gap: 6px; margin-top: 12px; color: var(--accent); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.player-match i { flex-shrink: 0; }
.player-match span { min-width: 0; }
@media (max-width: 650px) { .mode-help { margin-block: -7px 19px; font-size: 10px; } }


/* ORIGINAL CSS: css/sk-emblem-preferences.css */
/* SK crest choices: compact, theme-aware and keyboard accessible. */
.sk-emblem-preferences{margin:14px 0 21px;padding:18px;border:1px solid var(--sk2-edge-soft,rgba(120,190,230,.22));border-radius:16px;background:rgba(41,99,155,.05)}
.sk-emblem-preferences h3{margin:0 0 6px}
.sk-emblem-preferences .preferences-description{margin:0 0 14px}
.sk-emblem-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.sk-emblem-option{display:grid;align-content:center;justify-items:center;gap:8px;padding:12px 9px;min-width:0;color:var(--text,#d8ecff);border-radius:13px;border:1px solid rgba(139,184,224,.35);background:rgba(27,68,103,.14);cursor:pointer;font:inherit;transition:border-color .2s,background-color .2s}
.sk-emblem-option img{display:block;width:clamp(50px,7vw,85px);height:clamp(50px,7vw,85px);object-fit:contain;filter:drop-shadow(0 5px 12px rgba(20,103,167,.17))}
.sk-emblem-option span{font-size:13px;font-weight:700}
.sk-emblem-option:hover,.sk-emblem-option[aria-pressed="true"]{border-color:var(--accent,#76d6ff);background:rgba(55,133,195,.18)}
.sk-emblem-option[aria-pressed="true"]{outline:2px solid rgba(105,211,255,.3);outline-offset:1px}
.sk-emblem-option:focus-visible{outline:3px solid var(--accent,#65d9ff);outline-offset:3px}
@media(max-width:430px){.sk-emblem-grid{gap:7px}.sk-emblem-preferences{padding:11px}.sk-emblem-option{padding:11px 5px}.sk-emblem-option span{font-size:12px}}
@media(prefers-reduced-motion:reduce){.sk-emblem-option{transition:none}}


/* ORIGINAL CSS: css/themes.css */
/* Shared color themes. Light/dark and animation remain independent choices. */
:root {
  --emblem-filter: hue-rotate(0deg);
  --storm-image-filter: hue-rotate(0deg);
  --hero-bg: #020a16;
  --hero-ink: #eef7ff;
  --hero-soft: #b1cee9;
  --hero-accent: #8ac5ff;
  --hero-line: #315a82;
}
:root[data-palette='blue'] { --emblem-filter: hue-rotate(0deg); --storm-image-filter: hue-rotate(0deg); }
:root[data-palette='purple'] { --emblem-filter: hue-rotate(56deg); --storm-image-filter: hue-rotate(56deg); --hero-bg: #0d061c; --hero-soft: #cbb9e9; --hero-accent: #cfadff; --hero-line: #624484; }
:root[data-palette='yellow'] { --emblem-filter: hue-rotate(184deg) saturate(1.15); --storm-image-filter: hue-rotate(184deg) saturate(1.15); --hero-bg: #140e03; --hero-soft: #dbcba5; --hero-accent: #ffdc7b; --hero-line: #786131; }
:root[data-palette='mint'] { --emblem-filter: hue-rotate(-64deg); --storm-image-filter: hue-rotate(-64deg); --hero-bg: #031511; --hero-soft: #afd8cd; --hero-accent: #8ce8cb; --hero-line: #32685c; }
:root[data-palette='rose'] { --emblem-filter: hue-rotate(102deg); --storm-image-filter: hue-rotate(102deg); --hero-bg: #180713; --hero-soft: #e0b7d1; --hero-accent: #ffb0dd; --hero-line: #78405f; }
:root[data-palette='red'] { --emblem-filter: hue-rotate(150deg) saturate(1.3); --storm-image-filter: hue-rotate(150deg) saturate(1.3); --hero-bg: #1b0708; --hero-ink: #fff0ee; --hero-soft: #e6b5af; --hero-accent: #ff9a94; --hero-line: #843f3c; }
:root[data-palette='black'] {
  --emblem-filter: grayscale(1);
  --storm-image-filter: grayscale(1);
  --hero-bg: #08090b;
  --hero-ink: #f2f3f5;
  --hero-soft: #b9bdc7;
  --hero-accent: #e1e4ea;
  --hero-line: #474a55;
}

:root[data-palette='purple']:not([data-theme='dark']) {
  --bg: #f5f0ff; --surface: #fff; --surface-muted: #faf7ff; --tint: #f2eaff; --tint-strong: #e7d9fb;
  --line: #e0d5ed; --line-strong: #c9b4df; --text: #342345; --text-soft: #5b426f; --muted: #705a82; --faint: #705a82;
  --accent: #7944b4; --accent-strong: #61308f; --accent-soft: #efe3ff; --on-accent: #fff;
  --header-fill: #fcf9ffe8; --storm-wash: #e7d6fa; --shadow: 0 3px 8px #5a2b8105, 0 16px 45px #5a2b8108;
}
:root[data-palette='yellow']:not([data-theme='dark']) {
  --bg: #fffae8; --surface: #fffef9; --surface-muted: #fffbef; --tint: #fff7dd; --tint-strong: #f7e8b7;
  --line: #eaddb7; --line-strong: #cfb574; --text: #46361a; --text-soft: #69532d; --muted: #796239; --faint: #796239;
  --accent: #8a6005; --accent-strong: #6e4b00; --accent-soft: #fff0bd; --on-accent: #fff;
  --header-fill: #fffdf4e8; --storm-wash: #f6e5ae; --shadow: 0 3px 8px #79541805, 0 16px 45px #79541808;
}
:root[data-palette='mint']:not([data-theme='dark']) {
  --bg: #edf9f4; --surface: #fcfffd; --surface-muted: #f1fcf7; --tint: #e8f8f0; --tint-strong: #cfecdf;
  --line: #cfe5da; --line-strong: #a4cab9; --text: #193d32; --text-soft: #3a6052; --muted: #527465; --faint: #527465;
  --accent: #217959; --accent-strong: #155d44; --accent-soft: #dbf3e7; --on-accent: #fff;
  --header-fill: #f7fffbe8; --storm-wash: #caecdc; --shadow: 0 3px 8px #245d4705, 0 16px 45px #245d4708;
}
:root[data-palette='rose']:not([data-theme='dark']) {
  --bg: #fff0f6; --surface: #fff; --surface-muted: #fff6fa; --tint: #ffecf4; --tint-strong: #f8d6e7;
  --line: #efd4e0; --line-strong: #d9adbf; --text: #4c263b; --text-soft: #70455b; --muted: #845c71; --faint: #845c71;
  --accent: #a23c70; --accent-strong: #842a58; --accent-soft: #ffe0ef; --on-accent: #fff;
  --header-fill: #fff9fce8; --storm-wash: #f4d2e4; --shadow: 0 3px 8px #812b5605, 0 16px 45px #812b5608;
}
:root[data-palette='red']:not([data-theme='dark']) {
  --bg: #fff2ef; --surface: #fff; --surface-muted: #fff7f5; --tint: #ffebe7; --tint-strong: #f8d4cd;
  --line: #eed2cb; --line-strong: #d9aaa0; --text: #4c2420; --text-soft: #70443c; --muted: #83594f; --faint: #83594f;
  --accent: #b33128; --accent-strong: #90231c; --accent-soft: #ffdfd9; --on-accent: #fff;
  --header-fill: #fff9f7e8; --storm-wash: #f6d0c7; --shadow: 0 3px 8px #812c2305, 0 16px 45px #812c2308;
}
:root[data-palette='black']:not([data-theme='dark']) {
  --bg: #e9eaec; --surface: #fff; --surface-muted: #f4f4f6; --tint: #ececf0; --tint-strong: #d9dbe0;
  --line: #d2d4da; --line-strong: #a8acb8; --text: #17191e; --text-soft: #353943; --muted: #505665; --faint: #505665;
  --accent: #3b424f; --accent-strong: #232932; --accent-soft: #e1e4e9; --on-accent: #fff;
  --header-fill: #fafafce8; --storm-wash: #cdd1d8;
  --hero-bg: #e5e7eb; --hero-ink: #181c23; --hero-soft: #404752; --hero-accent: #3a414d; --hero-line: #b5bac5;
  --art-core: #252a32; --art-halo: #cbd0d9;
}
:root[data-palette='purple'][data-theme='dark'] {
  --bg: #130f20; --surface: #1e172f; --surface-muted: #281d3e; --tint: #2c2046; --tint-strong: #392857;
  --line: #3c2d51; --line-strong: #61477b; --text: #f0e8fb; --text-soft: #d4c2e7; --muted: #b9a3ce; --faint: #b9a3ce;
  --accent: #c6a0fa; --accent-strong: #dec1ff; --accent-soft: #392652; --on-accent: #21112f;
  --header-fill: #181123e8; --storm-wash: #38234f;
}
:root[data-palette='yellow'][data-theme='dark'] {
  --bg: #19160e; --surface: #262115; --surface-muted: #302919; --tint: #342c19; --tint-strong: #45391c;
  --line: #493c24; --line-strong: #746038; --text: #fff4d8; --text-soft: #e0ceaa; --muted: #c3af86; --faint: #c3af86;
  --accent: #f1cb68; --accent-strong: #ffe4a1; --accent-soft: #493817; --on-accent: #241c08;
  --header-fill: #201b10e8; --storm-wash: #43351b;
}
:root[data-palette='mint'][data-theme='dark'] {
  --bg: #0b1917; --surface: #112923; --surface-muted: #17352d; --tint: #193c31; --tint-strong: #214c3d;
  --line: #284c40; --line-strong: #40725f; --text: #e3f8ed; --text-soft: #b9ddcc; --muted: #98bfab; --faint: #98bfab;
  --accent: #82d9b2; --accent-strong: #b4efd0; --accent-soft: #204b37; --on-accent: #0e291b;
  --header-fill: #0d211be8; --storm-wash: #204333;
}
:root[data-palette='rose'][data-theme='dark'] {
  --bg: #20101a; --surface: #2d1826; --surface-muted: #3b2031; --tint: #402235; --tint-strong: #542b43;
  --line: #563047; --line-strong: #7d4767; --text: #fce8f3; --text-soft: #e7bfd5; --muted: #c7a0b7; --faint: #c7a0b7;
  --accent: #f4a4cf; --accent-strong: #ffd0e9; --accent-soft: #54273f; --on-accent: #321225;
  --header-fill: #27131fe8; --storm-wash: #492238;
}
:root[data-palette='red'][data-theme='dark'] {
  --bg: #1e0e0d; --surface: #2e1815; --surface-muted: #3d211c; --tint: #43241e; --tint-strong: #572d26;
  --line: #58332b; --line-strong: #824b3f; --text: #ffeae4; --text-soft: #e9c1b6; --muted: #cda397; --faint: #cda397;
  --accent: #ff9a8e; --accent-strong: #ffc7bc; --accent-soft: #592a22; --on-accent: #35130e;
  --header-fill: #26120fe8; --storm-wash: #4d261f; --shadow: 0 4px 10px #0001, 0 18px 48px #0002;
}
:root[data-palette='black'][data-theme='dark'] {
  --bg: #07080a; --surface: #121318; --surface-muted: #1c1e24; --tint: #23252d; --tint-strong: #2d303b;
  --line: #2c3038; --line-strong: #4d525f; --text: #f3f4f6; --text-soft: #d2d5df; --muted: #b0b4c0; --faint: #b0b4c0;
  --accent: #e1e4ea; --accent-strong: #fff; --accent-soft: #2d313c; --on-accent: #13161d;
  --header-fill: #101116e8; --storm-wash: #262a34;
}

/* Light skies use the same palette as the page, with a colored lightning core. */
:root:not([data-theme='dark']) {
  --hero-bg: #e6f2ff; --hero-ink: #15395c; --hero-soft: #3e607f; --hero-accent: #1766b5; --hero-line: #b2cde7;
  --art-core: #164775; --art-halo: #c1e1ff;
}
:root[data-palette='purple']:not([data-theme='dark']) {
  --hero-bg: #eee4ff; --hero-ink: #39254f; --hero-soft: #654773; --hero-accent: #713bb1; --hero-line: #ccb7e5;
  --art-core: #4f2d79; --art-halo: #dfc7ff;
}
:root[data-palette='yellow']:not([data-theme='dark']) {
  --hero-bg: #fff2cc; --hero-ink: #4c3816; --hero-soft: #705424; --hero-accent: #815707; --hero-line: #ddc17e;
  --art-core: #65480b; --art-halo: #ffe9a5;
}
:root[data-palette='mint']:not([data-theme='dark']) {
  --hero-bg: #ddf5eb; --hero-ink: #193e32; --hero-soft: #3f6557; --hero-accent: #1f7357; --hero-line: #a8cdbd;
  --art-core: #145943; --art-halo: #a9e5d0;
}
:root[data-palette='rose']:not([data-theme='dark']) {
  --hero-bg: #ffe5f1; --hero-ink: #542b41; --hero-soft: #73435c; --hero-accent: #9b386b; --hero-line: #ddb4c9;
  --art-core: #743154; --art-halo: #f7bede;
}
:root[data-palette='red']:not([data-theme='dark']) {
  --hero-bg: #ffe6e1; --hero-ink: #562b23; --hero-soft: #784c43; --hero-accent: #a83227; --hero-line: #deb1a7;
  --art-core: #7b3129; --art-halo: #f3bcb1;
}

/* The custom accent is adjusted for readability in the current color mode. */
:root[data-custom-color='on']:not([data-theme='dark']) {
  --accent: var(--custom-accent);
  --accent-strong: color-mix(in srgb, var(--custom-accent) 80%, black);
  --accent-soft: color-mix(in srgb, var(--surface-muted) 92%, var(--custom-accent));
  --on-accent: #fff;
  --hero-accent: var(--custom-accent);
  --art-halo: color-mix(in srgb, var(--custom-accent) 25%, var(--hero-bg));
}
:root[data-custom-color='on'][data-theme='dark'] {
  --accent: var(--custom-accent);
  --accent-strong: color-mix(in srgb, var(--custom-accent) 84%, white);
  --accent-soft: color-mix(in srgb, var(--surface-muted) 92%, var(--custom-accent));
  --on-accent: #090a0d;
  --hero-accent: var(--custom-accent);
}

/* Palette aliases also cover small utility panels shared by Fleet tools. */
:root { --panel: var(--surface); --panel-soft: var(--surface-muted); }
[data-brand-media], .brand-symbol { filter: var(--emblem-filter); }
.identity-hero { background-color: var(--hero-bg); border-color: var(--hero-line); }
.identity-hero::before { filter: blur(4px) var(--storm-image-filter); }
.identity-copy h1 { color: var(--hero-ink); }
.identity-copy p { color: var(--hero-soft); }
.identity-copy .identity-badge, .identity-copy .eyebrow { color: var(--hero-accent); border-color: var(--hero-line); background: color-mix(in srgb, var(--hero-bg) 86%, var(--hero-accent)); }
.identity-art-caption { color: var(--hero-soft); border-color: var(--hero-line); background: var(--hero-bg); }
.identity-art::after { border-color: color-mix(in srgb, var(--hero-accent) 18%, transparent); }
.identity-art::before { box-shadow: 0 0 65px 35px color-mix(in srgb, var(--hero-accent) 10%, transparent); }
.identity-download { color: var(--hero-soft); }
.identity-download:hover { color: var(--hero-ink); }
.identity-actions .btn { background: var(--hero-accent); border-color: var(--hero-accent); color: var(--hero-bg); }
.identity-actions .btn:hover { background: color-mix(in srgb, var(--hero-accent) 85%, white); border-color: var(--hero-accent); color: var(--hero-bg); }
.identity-actions .btn + .btn { background: var(--hero-bg); border-color: var(--hero-line); color: var(--hero-soft); }
.identity-actions .btn + .btn:hover { background: color-mix(in srgb, var(--hero-bg) 90%, var(--hero-accent)); color: var(--hero-ink); }

.preferences-dialog { width: min(680px, calc(100vw - 30px)); padding: 0; border: 1px solid var(--line-strong); border-radius: 24px; background: var(--surface); color: var(--text); box-shadow: 0 22px 90px #0004; }
.preferences-dialog::backdrop { background: #07132180; backdrop-filter: none; }
.preferences-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 26px 21px; border-bottom: 1px solid var(--line); }
.preferences-heading h2 { margin: 0; font-size: 22px; color: var(--text); }
.preferences-close { display: grid; place-items: center; width: 35px; height: 35px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-muted); color: var(--text-soft); font: 25px/1 Arial, sans-serif; }
.preferences-close:hover { color: var(--accent); border-color: var(--accent); }
.preferences-content { padding: 25px 26px; }
.preferences-content h3 { font-size: 16px; margin: 0 0 9px; color: var(--text); }
.preferences-description { color: var(--muted); font-size: 13px; margin: 0 0 21px; line-height: 1.7; }
.palette-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.palette-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 11px 11px 14px; min-width: 0; text-align: start; background: var(--surface-muted); color: var(--text-soft); border: 1px solid var(--line); border-radius: 16px; }
.palette-card:hover { border-color: var(--accent); color: var(--text); }
.palette-card[aria-pressed='true'] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.palette-preview { display: grid; place-items: center; width: 100%; height: 83px; overflow: hidden; border-radius: 10px; background: #071426; color: #94caff; }
.palette-preview > span { font: 62px/1 Arial, sans-serif; text-shadow: 0 0 12px currentColor; transform: rotate(8deg); }
.palette-blue { background: radial-gradient(ellipse at 50% 80%, #174c81, #051020 75%); color: #8ac5ff; }
.palette-purple { background: radial-gradient(ellipse at 50% 80%, #553176, #13091f 75%); color: #cfadff; }
.palette-yellow { background: radial-gradient(ellipse at 50% 80%, #68501c, #171004 75%); color: #ffdc7b; }
.palette-mint { background: radial-gradient(ellipse at 50% 80%, #1e6551, #061911 75%); color: #8ce8cb; }
.palette-rose { background: radial-gradient(ellipse at 50% 80%, #742952, #1c0714 75%); color: #ffb0dd; }
.palette-red { background: radial-gradient(ellipse at 50% 80%, #7b2923, #1b0708 75%); color: #ff9a94; }
.palette-black { background: radial-gradient(ellipse at 50% 80%, #3a3f49, #07080a 75%); color: #f0f2f5; }
.palette-name { font-size: 12px; font-weight: 600; line-height: 1.5; padding-inline-end: 13px; }
.palette-selected { position: absolute; inset-inline-end: 10px; bottom: 16px; color: var(--accent); font-size: 12px; font-weight: 700; }
.preferences-saved { margin: 20px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
@media (max-width: 520px) { .preferences-heading { padding: 20px; } .preferences-content { padding: 21px 20px; } .palette-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .palette-preview { height: 75px; } .palette-name { font-size: 11px; } }

.home-live-controls{display:flex;gap:6px;align-items:center}.home-live-controls button,.home-preferences{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--line-strong);border-radius:50%;background:var(--surface);color:var(--muted);font-size:16px}.home-live-controls button[aria-pressed='true']{color:var(--accent);background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 45%,var(--line))}.home-live-controls button:hover,.home-preferences:hover{color:var(--accent);border-color:var(--accent)}.radar-toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,12px);background:var(--surface);color:var(--text);border:1px solid var(--line-strong);padding:13px 18px;border-radius:12px;box-shadow:var(--shadow);font-size:12px;z-index:100;opacity:0;pointer-events:none;max-width:calc(100vw - 30px);transition:opacity .2s,transform .2s}.radar-toast.visible{opacity:1;transform:translate(-50%,0)}

/* One storm atmosphere joins the page, hero, and emblem in every palette. */
.backdrop {
  background: radial-gradient(ellipse at 83% 4%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 43%),
    radial-gradient(ellipse at 5% 36%, var(--storm-wash), transparent 56%), var(--bg);
}
.identity-hero {
  color: var(--hero-ink);
  border-color: var(--hero-line);
  background: radial-gradient(ellipse at 84% 44%, color-mix(in srgb, var(--hero-accent) 12%, transparent), transparent 58%), var(--hero-bg);
  box-shadow: 0 20px 60px color-mix(in srgb, var(--accent) 10%, transparent);
}
.identity-hero::before {
  background: url('../assets/sk-emblem-poster.png') 96% 48% / 620px auto no-repeat;
  mask-image: linear-gradient(90deg, transparent 28%, #000 85%);
  filter: blur(9px) var(--storm-image-filter);
  mix-blend-mode: screen;
  opacity: .28;
}
.identity-hero::after {
  background: radial-gradient(ellipse at 73% 75%, color-mix(in srgb, var(--hero-accent) 12%, transparent), transparent 60%),
    linear-gradient(145deg, transparent 52%, color-mix(in srgb, var(--hero-accent) 6%, transparent) 52%, transparent 52.4%);
}
.identity-art { isolation: isolate; border-radius: 50%; }
.identity-art img[data-brand-media] {
  filter: var(--emblem-filter) brightness(1.12) saturate(1.08);
  mix-blend-mode: screen;
  background: transparent;
  box-shadow: none;
}
.identity-art::before {
  inset: 5%;
  background: radial-gradient(circle, color-mix(in srgb, var(--hero-accent) 20%, transparent), transparent 70%);
  box-shadow: 0 0 52px 23px color-mix(in srgb, var(--hero-accent) 17%, transparent);
}
.identity-art::after { border-radius: 50%; border-color: color-mix(in srgb, var(--hero-accent) 24%, transparent); }
:root:not([data-theme='dark']) .identity-hero { border-color: var(--hero-line); }
:root:not([data-theme='dark']) .identity-hero::before {
  background: radial-gradient(ellipse at 76% 44%, var(--art-halo), transparent 65%);
  mask-image: none; filter: blur(22px); mix-blend-mode: normal; opacity: .8;
}
:root:not([data-theme='dark']) .identity-art {
  background: radial-gradient(circle, var(--art-core) 25%, color-mix(in srgb, var(--art-core) 72%, var(--art-halo)) 43%, var(--art-halo) 60%, transparent 73%);
}
:root:not([data-theme='dark']) .identity-art img[data-brand-media] {
  filter: var(--emblem-filter) brightness(1.3) saturate(1.25);
  border-radius: 50%;
}
:root:not([data-theme='dark']) .identity-art::before {
  inset: 3%;
  background: transparent;
  box-shadow: 0 0 55px 25px color-mix(in srgb, var(--hero-accent) 18%, transparent), inset 0 0 35px var(--art-halo);
}
:root:not([data-theme='dark']) .identity-art::after {
  inset: -4%; border-color: color-mix(in srgb, var(--hero-accent) 30%, transparent);
  box-shadow: 0 0 15px color-mix(in srgb, var(--hero-accent) 10%, transparent);
}
:root:not([data-theme='dark']) .brand > img {
  background: radial-gradient(circle, var(--art-core), var(--art-halo));
  border-color: var(--line-strong);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 12%, transparent);
}
.identity-actions .btn { color: var(--on-accent); }
:root:not([data-theme='dark']) .identity-actions .btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); }
:root:not([data-theme='dark']) .identity-actions .btn + .btn {
  background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--hero-ink);
}
:root:not([data-theme='dark']) .identity-actions .btn + .btn:hover { background: var(--surface); border-color: var(--hero-accent); color: var(--hero-ink); }
:root:not([data-theme='dark']) .identity-copy .identity-badge { background: color-mix(in srgb, var(--surface) 66%, transparent); }
:root:not([data-theme='dark']) .identity-art-caption { background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--hero-ink); }
body.fleet-body {
  background: radial-gradient(ellipse at 84% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 55%),
    radial-gradient(ellipse at 8% 45%, color-mix(in srgb, var(--storm-wash) 48%, transparent), transparent 60%), var(--bg);
}


/* ORIGINAL CSS: css/typography.css */
/* Local SIL Open Font License faces: Exo 2, Audiowide, Oxanium and Sora.
   Each role has its own readable face; interface icons use SVG assets. */
@font-face {
  font-family: 'SK Text';
  src: url('../assets/fonts/exo2.otf') format('opentype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'SK Display';
  src: url('../assets/fonts/audiowide.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'SK Room';
  src: url('../assets/fonts/oxanium.ttf') format('truetype');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'SK Player';
  src: url('../assets/fonts/sora.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --font-body: 'SK Text', Tahoma, Arial, sans-serif;
  --font-display: 'SK Display', 'SK Text', Tahoma, Arial, sans-serif;
  --font-room: 'SK Room', 'SK Text', Tahoma, Arial, sans-serif;
  --font-player: 'SK Player', Tahoma, Arial, sans-serif;
  --font-hero: 'SK Room', 'SK Display', Tahoma, Arial, sans-serif;
}

body {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: .15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, select, textarea, label, .btn, .button {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: .3px;
}

h1, h2, h3, h4, h5, .brand-name, .identity-copy h1,
.room h3, .detail-head h2, .welcome h2, .banner-title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .7px;
}

h1, .identity-copy h1 { letter-spacing: 1.1px; }
.identity-hero .identity-copy h1 {
  font-family: var(--font-hero);
  font-weight: 760;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.06;
  letter-spacing: -.045em;
  text-wrap: balance;
  text-shadow: 0 3px 18px color-mix(in srgb, var(--hero-accent) 17%, transparent);
}
.brand-name { letter-spacing: 1.5px; }

.brand-sub, .compact-status, .refresh, .refresh button,
.connection, .regions button, .language-picker select,
.modes button, .list-caption, .list-caption select,
.open-only, .mode-label, .age, .badge, .clan-hint,
.clan-badge, .detail-meta, .detail-counters,
.section-title, .data-note, .score-caption, .player-count,
.player-score, .score-leader, .clan-names, .search-status,
.player-match, .mode-help, .identity-badge, .identity-download,
.appearance-controls button, .appearance-toggle,
.field-label, .field-hint, .form-label, .form-hint,
.setting-row, .settings-footer, .nav-item, .nav-caption,
.room-label, .room-meta, .host-label, .host-note,
.status-label, .moderation-table, .moderation-table button {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .3px;
}

.regions button, .modes button, .btn, .button,
.appearance-controls button, input, select, textarea {
  font-size: 13px;
}

input, select, textarea { letter-spacing: .15px; }
.player-score, .score-leader, .detail-counters { font-variant-numeric: tabular-nums; }

/* Keep code, player symbols, and the game's private-use ship glyphs intact. */
code, pre, kbd, .code-editor, .code-output {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0;
}

@media (max-width: 650px) {
  .brand-sub { font-size: 10px; letter-spacing: .8px; }
  .appearance-controls button, .modes button, .regions button,
  .language-picker select, .refresh button { font-size: 12px; }
  .identity-copy h1 { letter-spacing: .6px; }
}

/* Orbit, Vector and Clear preserve separate UI, room and pilot roles. */
:root[data-typography='vector'] {
  --font-body: 'SK Player', Tahoma, Arial, sans-serif;
  --font-room: 'SK Text', Tahoma, Arial, sans-serif;
  --font-player: 'SK Room', Tahoma, Arial, sans-serif;
  --font-hero: 'SK Display', 'SK Room', Tahoma, Arial, sans-serif;
}
:root[data-typography='clear'] {
  --font-body: Arial, Tahoma, sans-serif;
  --font-room: 'SK Player', Tahoma, Arial, sans-serif;
  --font-player: 'SK Text', Tahoma, Arial, sans-serif;
  --font-hero: var(--font-room);
}
.room h3, .detail-head h2, .hosted-card h2, #consoleTitle,
.active-player-room, .leaderboard-room, .room-name {
  font-family: var(--font-room);
  font-weight: 600;
  letter-spacing: .25px;
  color: var(--text);
}
.room h3 { line-height: 1.35; }
.clan-names bdi, .untagged bdi, .player-match bdi,
.active-player-name bdi, .leaderboard-table td:nth-child(2) bdi,
.moderation-table td:first-child bdi, #roomPlayers td:first-child bdi,
.player-name, [data-player-name], .system-player-name {
  font-family: var(--font-player);
  font-weight: 500;
  letter-spacing: .1px;
  line-height: 1.6;
}
:root[data-theme='dark'] .room h3, :root[data-theme='dark'] .detail-head h2 { font-weight: 550; }
:root:not([data-theme='dark']) .active-player-name { color: var(--text); }
/* Do not apply typography to private-use ship/icon glyph elements. */
.type-set-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-top: 14px; }
.type-set-card { min-width: 0; padding: 14px 12px; text-align: start; border: 1px solid var(--line); border-radius: 14px; color: var(--text); background: var(--surface-muted); }
.type-set-card:hover { border-color: var(--accent); }
.type-set-card[aria-pressed='true'] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.type-set-card strong { display: block; font-size: 13px; color: var(--text); }
.type-set-card .type-set-room { display: block; margin-top: 12px; font: 600 15px/1.4 var(--font-room); }
.type-set-card .type-set-player { display: block; margin-top: 5px; font: 500 11px/1.7 var(--font-player); color: var(--text-soft); }
.type-set-card[data-typography-choice='orbit'] { --font-room: 'SK Room', sans-serif; --font-player: 'SK Player', sans-serif; }
.type-set-card[data-typography-choice='vector'] { --font-room: 'SK Text', sans-serif; --font-player: 'SK Room', sans-serif; }
.type-set-card[data-typography-choice='clear'] { --font-room: 'SK Player', sans-serif; --font-player: 'SK Text', sans-serif; }
.preferences-content .typography-heading { margin-top: 28px; }
@media (max-width: 520px) { .type-set-grid { grid-template-columns: 1fr; } .type-set-card { display: grid; grid-template-columns: 65px 1fr; column-gap: 10px; align-items: center; } .type-set-card .type-set-room { margin-top: 0; } .type-set-card .type-set-player { grid-column: 2; margin-top: 3px; } }


/* ORIGINAL CSS: css/players.css */
/* Live roster drawer and the game's canonical vanilla ship silhouettes. */
@font-face {
  font-family: 'SK Vanilla Ships';
  src: url('../fleet/assets/starblast-vanilla-ships.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: block;
}
.player-ship-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--accent);
  font: 25px/1 'SK Vanilla Ships' !important;
  letter-spacing: 0;
  vertical-align: middle;
}
.leaderboard-rank {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 32px;
  font-variant-numeric: tabular-nums;
}
.leaderboard-rank-number { min-width: 17px; }
.leaderboard-updated { display: inline-flex; align-items: center; gap: 6px; }
.leaderboard-updated i { color: var(--ok); }
.active-players-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-shrink: 0;
  margin-inline: auto 18px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-soft);
  font: 12px var(--font-body);
}
.active-players-toggle:hover,
.active-players-toggle[aria-expanded='true'] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
#activePlayersCount { padding: 2px 6px; border-radius: 4px; background: var(--tint); color: var(--accent); font-size: 11px; font-variant-numeric: tabular-nums; }
.players-sidebar {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(420px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  border-inline-start: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  box-shadow: -12px 0 64px rgb(0 0 0 / 18%);
  overflow: hidden;
}
.players-sidebar[open] { display: flex; flex-direction: column; }
.players-sidebar::backdrop { background: rgb(3 10 22 / 40%); backdrop-filter: none; }
.players-sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 24px 12px; }
.players-sidebar-kicker { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: 2px; }
.players-sidebar-head h2 { margin: 8px 0 0; color: var(--text); font: 20px var(--font-display); }
.players-sidebar-close { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.players-sidebar-close:hover { background: var(--accent-soft); color: var(--accent); }
.players-sidebar-scope { margin: 0; padding: 0 24px 16px; color: var(--text-soft); font-size: 12px; }
.players-sidebar-search { display: flex; align-items: center; gap: 10px; margin: 0 24px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-muted); color: var(--muted); }
.players-sidebar-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.players-sidebar-search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 13px var(--font-body); }
.players-sidebar-search input:focus-visible { outline: 0; }
.players-sidebar-search input::placeholder { color: var(--muted); }
.players-sidebar-clans { display: flex; flex-wrap: wrap; flex-shrink: 0; gap: 7px; max-height: min(160px, 22dvh); overflow: auto; overscroll-behavior: contain; margin: 14px 24px 0; padding: 2px 2px 5px; scrollbar-color: var(--line-strong) transparent; }
.players-clan-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; max-width: 100%; padding: 6px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-muted); color: var(--text-soft); font: 11px var(--font-body); cursor: pointer; }
.players-clan-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.players-clan-chip > b { flex-shrink: 0; font-size: 10px; font-variant-numeric: tabular-nums; color: var(--muted); }
.players-clan-chip:hover { border-color: var(--accent); color: var(--text); }
.players-clan-chip[aria-pressed='true'] { border-color: var(--accent); background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
.players-clan-chip[aria-pressed='true'] > b { color: var(--accent); }
.players-clan-chip[data-player-clan]:not([data-player-clan='']) > span::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-inline-end: 5px; border-radius: 50%; background: var(--clan, var(--accent)); vertical-align: .1em; }
.players-sidebar-summary { margin: 0; padding: 16px 24px 12px; color: var(--muted); font-size: 11px; border-bottom: 1px solid var(--line); }
.players-sidebar-list { position: relative; flex: 1; min-height: 0; overflow: auto; overflow-anchor: none; overscroll-behavior: contain; scrollbar-color: var(--line-strong) transparent; }
.active-player-row { display: flex; align-items: center; width: 100%; gap: 11px; padding: 14px 20px; border-bottom: 1px solid var(--line); text-align: left; color: var(--text); }
.active-player-row:hover { background: var(--accent-soft); color: var(--text); }
.active-player-row:focus-visible { outline-offset: -3px; }
.active-player-avatar { display: grid; place-items: center; width: 38px; height: 42px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-muted); color: var(--accent); font-size: 18px; }
.active-player-copy { flex: 1; min-width: 0; }
.active-player-name { display: flex; align-items: center; gap: 6px; color: var(--text); font-size: 13px; font-weight: 700; }
.active-player-name > bdi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.active-player-clan { padding: 2px 4px; border: 1px solid var(--line); border-radius: 4px; color: var(--text-soft); font-size: 9px; font-weight: 400; white-space: nowrap; }
.active-player-room { display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-soft); font-size: 11px; }
.active-player-stamp { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; color: var(--ok); font-size: 10px; }
.active-player-stamp::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.active-player-stamp.is-stale { color: var(--muted); }
.active-player-score { color: var(--text); font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; }
.active-player-score small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.active-player-arrow { color: var(--faint); font-size: 11px; }
.active-players-empty { display: grid; justify-items: center; align-content: center; gap: 12px; min-height: 240px; padding: 28px; color: var(--muted); text-align: center; }
.active-players-empty > i { color: var(--accent); font-size: 32px; }
.active-players-empty p { margin: 0; font-size: 13px; }
.players-sidebar-foot { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.players-sidebar-foot i { color: var(--accent); }
@media (max-width: 850px) { .active-players-toggle { margin-inline: auto 10px; } }
@media (max-width: 560px) {
  .active-players-toggle { min-height: 34px; padding: 6px 8px; gap: 5px; margin-inline: auto 8px; }
  .active-players-toggle > .active-players-label { display: none; }
  .leaderboard-rank { gap: 4px; }
  .leaderboard-rank .player-ship-icon { width: 25px; height: 28px; font-size: 22px !important; }
  .players-sidebar-head { padding-top: 22px; }
}


/* ORIGINAL CSS: css/finder.css */
/* The in-room finder follows the selected palette in both light and dark. */
.system-player-finder {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  margin-bottom: 7px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface-muted);
  color: var(--muted);
}
.system-player-finder:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.system-player-finder label { display: flex; align-items: center; color: var(--accent); }
.system-player-finder .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.system-player-finder input {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
}
.system-player-finder input:focus-visible { outline: 0; }
.system-player-finder input::placeholder { color: var(--muted); opacity: 1; }
.system-player-finder > button {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
}
.system-player-finder > button[hidden] { display: none; }
.system-player-finder > button:hover { color: var(--accent); background: var(--accent-soft); }
.system-player-search-status {
  min-height: 18px;
  margin: 0 0 22px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.6;
}
.system-player-results { margin-top: 22px; border-top: 1px solid var(--line); }
.system-player-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.system-player-ship {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 39px;
  height: 39px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-muted);
  color: var(--accent);
}
.system-player-identity { flex: 1; min-width: 0; }
.system-player-name {
  display: block;
  overflow-wrap: anywhere;
  color: var(--text);
  font-family: var(--font-player, var(--font-body));
  font-size: 14px;
  line-height: 1.6;
}
.system-player-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 5px; font-size: 10px; }
.system-player-clan { padding: 2px 5px; border: 1px solid var(--line); border-radius: 4px; color: var(--text-soft); }
.finder-presence { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.finder-presence::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.finder-presence.is-live { color: var(--ok); }
.finder-similar { color: var(--accent); }
.system-player-points { flex-shrink: 0; color: var(--text); text-align: end; font-variant-numeric: tabular-nums; }
.system-player-points b { font-size: 13px; font-weight: 600; }
.system-player-points small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.system-player-empty { display: grid; justify-items: center; gap: 9px; padding: 34px 15px; color: var(--muted); text-align: center; }
.system-player-empty > i { color: var(--accent); font-size: 25px; }
.system-player-empty > p { margin: 0; font-size: 12px; }
.leaderboard-query { margin: 0 26px 10px; color: var(--accent); font-size: 12px; }
@media (max-width: 560px) {
  .system-player-finder { padding: 10px; gap: 8px; }
  .system-player-finder input { font-size: 12px; }
  .system-player-result { gap: 9px; }
  .system-player-name { font-size: 13px; }
}


/* ORIGINAL CSS: css/team-view.css */
/* Native SVG Teammode map: no Canvas, no JavaScript render loop. */
#leaderboardDialog.team-spectator-dialog {
  width: min(1280px, calc(100vw - 36px));
  max-width: calc(100vw - 36px);
  max-height: min(92dvh, 1000px);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  overflow: auto;
  --team-lightness: 25%;
  --team-saturation: 78%;
}
:root[data-theme='dark'] #leaderboardDialog.team-spectator-dialog { --team-lightness: 65%; --team-saturation: 95%; }
.team-spectator-dialog > .dialog-heading {
  position: sticky;
  top: 0;
  z-index: 4;
  padding: 23px 25px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.team-spectator-dialog #leaderboardTitle {
  margin: 0;
  font-family: var(--font-room, var(--font-display));
  font-size: clamp(15px, 2.2vw, 21px);
  font-weight: 650;
  letter-spacing: 1px;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.team-spectator-dialog .dialog-heading > button { flex-shrink: 0; }
.team-spectator { padding: 0; }
.spectator-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 15px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 11px var(--font-body);
}
.spectator-metadata-age { display: inline-block; margin-right: 14px; color: var(--muted); }
.spectator-live { display: flex; align-items: center; gap: 7px; }
.spectator-live > i { color: var(--ok); }
.spectator-live.is-stale > i { color: var(--muted); }
.spectator-search { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 24px; border-bottom: 1px solid var(--line); color: var(--accent); font-size: 12px; }
.spectator-layout { display: grid; grid-template-columns: minmax(270px, .9fr) minmax(570px, 1.45fr); align-items: start; }
.spectator-map-panel { min-width: 0; padding: 17px 15px 14px; border-right: 1px solid var(--line); background: var(--surface); }
.spectator-map-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px 13px; color: var(--muted); font: 10px var(--font-body); text-transform: uppercase; letter-spacing: 1px; }
.spectator-map-heading > span { display: inline-flex; align-items: center; gap: 7px; }
.spectator-map-heading > span > i { color: var(--accent); }
.spectator-map-heading > b { color: var(--text-soft); font-size: 11px; font-variant-numeric: tabular-nums; }
.spectator-map { position: relative; width: 100%; aspect-ratio: 1; border: 1px solid #30445b; border-radius: 12px; overflow: hidden; background: #040810; contain: paint; box-shadow: 0 10px 25px #0002; }
.spectator-map > svg { display: block; width: 100%; height: 100%; }
.spectator-map > .team-map-svg { display:block; width:100%; height:100%; }
.team-map-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 0 0 10px; }
.team-map-tools > button { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface-muted); color: var(--muted); font: 11px var(--font-body); cursor: pointer; }
.team-map-tools > button[aria-pressed='true'] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.team-map-tools > [data-map-rocks] { min-width: 53px; }
.team-map-fullscreen { margin-inline-start: auto; }
.team-map-rock-note { color: var(--muted); }
.team-map-fullscreen > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.team-map-fullscreen > .team-map-exit, .team-map-fullscreen[aria-pressed='true'] > .team-map-enter { display: none; }
.team-map-fullscreen[aria-pressed='true'] > .team-map-exit { display: inline-flex; }

/* Keep the same map and stream mounted while enlarging the panel. The dialog
   provides the same view inside browsers and embeds that restrict fullscreen. */
#leaderboardDialog.team-spectator-dialog[data-team-map-expanded] {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
}
[data-team-map-expanded] > .dialog-heading,
[data-team-map-expanded] .team-spectator > :not(.spectator-layout),
[data-team-map-expanded] .spectator-layout > :not(.spectator-map-panel) { display: none; }
[data-team-map-expanded] > #leaderboardContent { padding: 0; }
[data-team-map-expanded] .spectator-layout { display: block; }
:is([data-team-map-expanded] .spectator-map-panel, .spectator-map-panel:fullscreen) {
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(12px, 2.5vmin, 28px);
  border: 0;
  overflow: auto;
  --team-map-expanded-width: max(160px, calc(100vh - 11rem));
  --team-map-expanded-width: max(160px, calc(100dvh - 11rem));
}
:is([data-team-map-expanded] .spectator-map-panel, .spectator-map-panel:fullscreen) > * {
  width: min(100%, max(300px, var(--team-map-expanded-width)));
  max-width: none;
  margin-inline: auto;
}
:is([data-team-map-expanded] .spectator-map-panel, .spectator-map-panel:fullscreen) > .spectator-map {
  width: min(100%, var(--team-map-expanded-width));
}
.team-map-field { fill: #05080d; stroke: #283344; stroke-width: 1; }
.team-map-axis { fill: none; stroke: #253241; stroke-width: .65; stroke-dasharray: 1 9; opacity: .65; }
.team-map-pilot { color:hsl(var(--team-hue) 95% 65%); transition:opacity 120ms ease; outline:none; cursor:pointer; }
.team-map-pilot .team-map-dot { display:none;fill:currentColor; }
.team-map-svg[data-marker='dots'] .team-map-pilot .team-map-cross { display:none; }
.team-map-svg[data-marker='dots'] .team-map-pilot .team-map-dot { display:block; }
.team-map-pilot .team-map-focus { fill:transparent;stroke:white;stroke-width:1.3;opacity:0; }
.team-map-pilot:is(:hover,:focus,.is-map-selected) .team-map-focus { opacity:1; }
.team-map-pilot.is-map-selected .team-map-cross { stroke:#fff;stroke-width:2.8; }
.team-map-rocks { fill:#6f8498;stroke:#aab8ca;stroke-width:.22;opacity:.72;pointer-events:none; }
.team-map-svg-label { fill:#9eb3c4;font:700 9px var(--font-body,system-ui);letter-spacing:1px;pointer-events:none; }
.team-map-native-label { margin-inline:auto;padding:5px 7px;border-radius:6px;color:var(--text-soft);background:var(--surface-muted);font:600 10px var(--font-body);letter-spacing:.04em; }
:root[data-animation='off'] .team-map-pilot { transition:none!important; }
.team-map-cross { fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; }
.team-map-pilot:hover .team-map-cross, .team-map-pilot:focus .team-map-cross { stroke: #fff; stroke-width: 3.2; }
.team-map-base { color: hsl(var(--team-hue) 95% 67%); }
.team-map-base > rect { fill: #09111d; stroke: currentColor; stroke-width: 1.8; }
.team-map-base > path { fill: none; stroke: currentColor; stroke-width: 2; }
.team-map-waiting { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; color: var(--muted); font-size: 12px; text-align: center; }
.team-map-waiting > i { color: var(--accent); font-size: 30px; }
.team-map-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 14px 4px 0; }
.team-map-legend > span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
.team-map-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: hsl(var(--team-hue) var(--team-saturation) var(--team-lightness)); }
.team-map-legend b { margin-left: 2px; color: var(--text-soft); font-weight: 600; font-variant-numeric: tabular-nums; }
.team-map-note { margin: 12px 4px 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.team-map-selection { min-height: 33px; margin: 10px 0 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-muted); color: var(--text-soft); font: 11px/1.5 var(--font-body); overflow-wrap: anywhere; }
.spectator-teams { display: grid; grid-template-columns: repeat(var(--team-count), minmax(190px, 1fr)); min-width: 0; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.spectator-team { min-width: 0; padding: 14px 12px 10px; color: var(--text); border-left: 1px solid var(--line); border-top: 2px solid hsl(var(--team-hue) var(--team-saturation) var(--team-lightness)); background: var(--surface); }
.spectator-team:first-child { border-left: 0; }
.team-column-heading { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 30px; margin-bottom: 6px; }
.team-column-heading h3 { margin: 0; color: hsl(var(--team-hue) var(--team-saturation) var(--team-lightness)); font-family: var(--font-room, var(--font-display)); font-size: 17px; font-weight: 650; line-height: 1.3; letter-spacing: 1px; text-transform: uppercase; }
.team-join-state { font-size: 13px; }
.team-join-state.is-open { color: var(--ok); }
.team-join-state.is-locked { color: #c53b56; }
:root[data-theme='dark'] .team-join-state.is-locked { color: #ff6c87; }
.team-faction { margin: 0 0 15px; min-height: 14px; color: var(--muted); font-size: 9px; line-height: 1.4; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-metrics { margin: 12px 0 0; padding: 7px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.team-metric { position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; min-height: 29px; padding: 5px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 62%, transparent); }
.team-metric:last-child { border-bottom: 0; }
.team-metric > span:first-child { display: flex; align-items: center; gap: 7px; color: var(--text-soft); font-family: var(--font-body); font-size: 10px; font-weight: 650; letter-spacing: .4px; text-transform: uppercase; }
.team-metric > span:first-child > i { color: var(--muted); font-size: 11px; }
.team-metric > strong { color: var(--text); font-family: var(--font-body); font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; }
.team-metric:last-child > strong { color: hsl(var(--team-hue) var(--team-saturation) var(--team-lightness)); font-size: 17px; }
.team-level-meter { display: flex; gap: 3px; width: 100%; }
.team-level-meter > i { flex: 1; height: 3px; border-radius: 1px; background: var(--line); }
.team-level-meter > .filled { background: hsl(var(--team-hue) var(--team-saturation) var(--team-lightness)); }
.team-roster-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 9px; color: var(--muted); font-size: 9px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }
.team-roster-heading b { color: var(--text-soft); font-size: 10px; font-weight: 500; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.team-roster { list-style: none; max-height: min(45vh, 420px); overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; overscroll-behavior: contain; margin: 0; padding: 0; }
.team-player { min-height: 33px; padding: 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent); }
.team-player:last-child { border-bottom: 0; }
.team-player-select { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 35px; padding: 5px 3px; border: 0; border-radius: 5px; text-align: start; color: inherit; background: transparent; cursor: pointer; }
.team-player-select:hover, .team-player-select.is-map-selected { background: var(--accent-soft); }
.team-player-select:focus-visible, .team-map-tools > button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.team-player-name { display: flex; align-items: center; flex-wrap: nowrap; gap: 5px; flex: 1; min-width: 0; color: var(--text); font-family: var(--font-player, var(--font-body)); font-size: 11px; font-weight: 600; line-height: 1.5; }
.team-player-name > bdi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-player-ecp { flex-shrink: 0; color: var(--text-soft); font-size: 9px; }
.team-player-clan { display: none; }
.team-player-score { flex-shrink: 0; color: var(--text-soft); font-size: 11px; font-family: var(--font-body); font-weight: 600; font-variant-numeric: tabular-nums; }
.team-player-ship { display: grid; place-items: center; flex-shrink: 0; width: 23px; }
.team-player-ship .player-ship-icon { width: 23px; height: 25px; color: var(--text-soft); font-size: 20px !important; }
.team-player.is-respawning .team-player-name { color: var(--muted); }
.team-player.is-respawning .team-player-ship { opacity: .5; }
.team-player.is-search-muted, .team-map-pilot.is-search-muted { opacity: .24; }
.team-roster-empty { padding: 20px 0; color: var(--muted); font-size: 11px; line-height: 1.6; text-align: center; }
.team-data-waiting { padding: 45px 25px; color: var(--muted); font-size: 13px; }
.spectator-unassigned { padding: 16px 24px; border-top: 1px solid var(--line); background: var(--surface-muted); }
.spectator-unassigned > h3 { display: flex; gap: 8px; margin: 0 0 10px; font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--text-soft); }
.spectator-unassigned > h3 > span { color: var(--muted); font-weight: 400; }
.spectator-unassigned .team-roster { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 22px; max-height: 160px; }
.spectator-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 15px 24px; border-top: 1px solid var(--line); color: var(--muted); font: 10px var(--font-body); }
.spectator-footer > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.spectator-footer i { color: var(--accent); }
@media (max-width: 1000px) {
  .spectator-layout { grid-template-columns: minmax(230px, .8fr) minmax(510px, 1.5fr); }
  .spectator-teams { grid-template-columns: repeat(var(--team-count), minmax(170px, 1fr)); }
  .spectator-team { padding-inline: 9px; }
  .team-column-heading h3 { font-size: 17px; letter-spacing: 1px; }
}
@media (max-width: 780px) {
  #leaderboardDialog.team-spectator-dialog { width: calc(100vw - 22px); max-width: calc(100vw - 22px); border-radius: 16px; }
  .spectator-layout { grid-template-columns: 1fr; }
  .spectator-map-panel { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px; }
  .spectator-map { max-width: 440px; margin: 0 auto; }
  .spectator-map-heading, .team-map-tools, .team-map-legend, .team-map-note, .team-map-selection { max-width: 440px; margin-inline: auto; }
  .spectator-teams { grid-template-columns: repeat(var(--team-count), minmax(190px, 1fr)); }
  .team-roster { max-height: 280px; }
  .team-spectator-dialog > .dialog-heading { padding: 19px 18px; }
  .spectator-toolbar, .spectator-search, .spectator-footer { padding-inline: 18px; }
}
@media (max-width: 440px) {
  .team-spectator-dialog #leaderboardTitle { font-size: 15px; }
  .spectator-toolbar { font-size: 10px; }
  .team-column-heading h3 { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .team-map-pilot { transition: none; }
}


/* ORIGINAL CSS: css/leaderboard.css */
/* Compact Survival clan filters; button motion follows the shared UI effects. */
.leaderboard-clan-filters { display: grid; gap: 9px; padding: 14px 0 12px; margin: 4px 0 10px; border-block: 1px solid var(--line); }
.leaderboard-filter-label { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.leaderboard-clan-buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.leaderboard-clan-chip { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 33px; padding: 6px 11px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface-muted); color: var(--text-soft); font: 600 12px/1.4 var(--font-body); cursor: pointer; }
.leaderboard-clan-chip > span { white-space: nowrap; }
.leaderboard-clan-chip > b { min-width: 18px; padding: 1px 5px; border-radius: 7px; background: var(--surface); color: var(--muted); font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
.leaderboard-clan-chip[style]::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--clan); flex: 0 0 auto; }
.leaderboard-clan-chip[aria-pressed='true'] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.leaderboard-clan-chip[aria-pressed='true'] > b { color: var(--accent); }
.leaderboard-clan-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.leaderboard-player-summary { font-variant-numeric: tabular-nums; }
#leaderboardDialog.survival-leaderboard-dialog .leaderboard-table tbody tr { background: transparent; }
#leaderboardDialog.survival-leaderboard-dialog .leaderboard-table tbody tr:is([data-rank='1'], [data-rank='2'], [data-rank='3']) { background: var(--accent-soft); }
@media (max-width: 520px) { .leaderboard-clan-buttons { gap: 6px; } .leaderboard-clan-chip { min-height: 35px; padding-inline: 10px; } }


/* ORIGINAL CSS: css/member-mode.css */
.member-mode-toggle { gap: 8px; white-space: nowrap; min-height: 36px; background: var(--surface); }
.member-mode-toggle[aria-pressed='true'] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.member-mode-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -7px 0 19px; }
.member-mode-filters > span { margin-inline-end: 4px; color: var(--muted); font-size: 12px; }
.member-mode-filters > button { border: 1px solid var(--line-strong); color: var(--text-soft); background: var(--surface); border-radius: 999px; padding: 7px 12px; font-size: 12px; }
.member-mode-filters > button[aria-pressed='true'] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.member-mode-dialog { width: min(550px, calc(100vw - 24px)); }
.member-mode-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.member-relations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-block-start: 18px; }
.member-relations section { border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-width: 0; background: var(--surface-muted); }
.member-relations h3 { font-size: 14px; margin: 0 0 8px; }
.member-relations ul { list-style: none; padding: 0; margin: 0; }
.member-relations li { padding-block: 5px; font-size: 12px; overflow-wrap: anywhere; }
.member-relations li bdi { color: var(--accent); font-weight: 700; }
.clan-relation { display: inline-block; padding: 2px 6px; border: 1px solid currentColor; border-radius: 999px; font: 650 10px/1.2 var(--font-body); vertical-align: middle; white-space: nowrap; }
.clan-relation-ally { color: var(--ok); }
.clan-relation-enemy { color: var(--danger); }
.member-mode-filters[hidden], .member-mode-actions [hidden], .member-relations[hidden] { display: none; }
@media (max-width: 620px) { .member-mode-toggle { font-size: 11px; padding: 7px 10px; white-space: normal; } }


/* ORIGINAL CSS: css/effects.css */
/* Shared SK artwork and interaction effects. Local static artwork is painted
   once; the optional glow animates opacity only while the page is visible. */
body { isolation: isolate; background: var(--bg); }
body.fleet-body { background: var(--bg); }
.backdrop { display: none; }
body header { backdrop-filter: none; -webkit-backdrop-filter: none; }
:is(dialog, .preferences-dialog, #shipDialog)::backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; }
.sk-scene-background { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; contain: strict; background: radial-gradient(ellipse at 84% 6%, color-mix(in srgb, var(--accent) 17%, transparent), transparent 58%), radial-gradient(ellipse at 0% 70%, var(--storm-wash), transparent 65%), var(--bg); }
.sk-scene-art, .sk-scene-photo, .sk-scene-pulse { position: absolute; inset: 0; pointer-events: none; }
.sk-scene-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .37; }
.sk-scene-image:not([src]) { display: none; }
:root[data-theme='dark'] .sk-scene-image { opacity: .55; }
:root[data-background-photo='on'] :is(.sk-scene-art, .sk-scene-photo) { display: none; }
:root[data-background-photo='on'] .sk-scene-background::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 15%, var(--bg) 100%); }
:root[data-background-photo='on'][data-palette='black'] .sk-scene-image { filter: grayscale(1); }
:root[data-background-photo='on'] .identity-hero {
  background: linear-gradient(105deg, var(--hero-bg) 5%, color-mix(in srgb, var(--hero-bg) 91%, transparent) 39%, color-mix(in srgb, var(--hero-bg) 24%, transparent) 100%);
}
:root[data-background-photo='on'] .identity-hero::before { display: none; }
:root[data-background='on'] .sk-scene-art { background: var(--accent); opacity: .04; }
:root[data-background='on'] .sk-scene-photo { background: var(--accent); -webkit-mask: url('../assets/sk-emblem-poster.png') right -85px top 50px / min(90vmin, 820px) auto no-repeat; mask: url('../assets/sk-emblem-poster.png') right -85px top 50px / min(90vmin, 820px) auto no-repeat; mask-mode: luminance; opacity: .17; }
.sk-scene-pulse { inset: -70px auto auto -110px; width: min(680px, 80vw); height: min(680px, 80vw); border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 19%, transparent), transparent 70%); opacity: .28; }
:root[data-background-motion='on'] .sk-scene-pulse { animation: sk-storm-light 9s ease-in-out infinite alternate; }
:root[data-theme='dark'] .sk-scene-art { opacity: .42; }
:root[data-theme='dark'] .sk-scene-photo { opacity: .24; }
:root[data-background='off'] .sk-scene-background { display: none; }
:root[data-background='off'] .identity-hero::before { background-image: none; }
@keyframes sk-storm-light { from { opacity: .2; } to { opacity: .65; } }

/* Buttons keep their existing theme and state colors. No event listeners,
   per-frame drawing, or transition:transform .16s cubic-bezier(.2,0,0,1),opacity .16s ease{ transition:transform .16s cubic-bezier(.2,0,0,1),opacity .16s ease; }
@media (hover: hover) and (pointer: fine) {
  :is(button, a.btn, [role='button'], .fleet-sidebar nav a):not(.team-map-pilot):not(:disabled):not([aria-disabled='true']):hover { translate: 0 -1px; box-shadow: 0 3px 10px color-mix(in srgb, var(--accent) 13%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent); }
}
:is(button, a.btn, [role='button'], .fleet-sidebar nav a):not(.team-map-pilot):not(:disabled):not([aria-disabled='true']):active { translate: 0 0; scale: .98; box-shadow: inset 0 2px 5px #0002; }
:is(button, a.btn, [role='button'], .fleet-sidebar nav a):not(.team-map-pilot):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
:where(button, a.btn, [role='button'])[aria-pressed='true'] { outline-color: var(--accent); }
.background-preferences { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.background-setting { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.background-setting h3 { margin: 0 0 9px; }
.background-setting .preferences-description { margin: 0; max-width: 390px; }
.background-setting-toggle { min-width: 64px; flex: 0 0 auto; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-muted); color: var(--muted); font-weight: 600; }
.background-setting-toggle[aria-pressed='true'] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.background-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.background-preset {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  padding: 7px 7px 10px;
  text-align: start;
  color: var(--text);
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.background-preset[aria-pressed='true'], .background-upload-actions button[aria-pressed='true'] { border-color: var(--accent); background: var(--accent-soft); }
.background-preview { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 7px; background: #0a1122; }
.background-preview-storm { background: #131c30 url('../assets/sk-emblem-poster.png') center / contain no-repeat; }
.background-preset > span:not(.background-preview) { font-size: 12px; font-weight: 650; }
.background-preset small { color: var(--muted); font-size: 9px; line-height: 1.35; }
.background-upload { display: grid; gap: 8px; margin-block-start: 16px; }
.background-upload label, .custom-accent-setting label { font-weight: 650; color: var(--text); }
.background-upload input { max-width: 100%; color: var(--text-soft); }
.background-upload input::file-selector-button {
  padding: 8px 10px;
  margin-inline-end: 8px;
  font: inherit;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  cursor: pointer;
}
.background-upload .preferences-description { margin: 0; font-size: 12px; }
.background-upload-actions, .custom-accent-setting { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.background-upload-actions[hidden], .custom-accent-setting [hidden], .background-upload-status:empty { display: none; }
.background-upload-status { margin: 0; color: var(--accent); font-size: 12px; }
.custom-accent-setting { margin-block-start: 16px; }
.custom-accent-setting input { width: 46px; height: 34px; padding: 2px 4px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); cursor: pointer; }
@media (max-width: 600px) {
  :root[data-background='on'] .sk-scene-photo { -webkit-mask-position: right -140px top 60px; mask-position: right -140px top 60px; }
  .background-setting { gap: 14px; }
  .background-setting .preferences-description { font-size: 11px; }
  .background-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
:root[data-animation='off'] :is(button, a.btn, [role='button'], .fleet-sidebar nav a):not(.team-map-pilot) { translate: none; scale: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .sk-scene-pulse { animation: none !important; }
  :is(button, a.btn, [role='button'], .fleet-sidebar nav a):not(.team-map-pilot) { translate: none !important; scale: none !important; transition: none !important; }
}


/* ORIGINAL CSS: css/game-status.css */
.game-status-toggle {
  position: fixed;
  z-index: 5;
  inset-inline-end: max(12px, env(safe-area-inset-right));
  inset-block-end: max(14px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  text-align: start;
  font-size: 12px;
  line-height: 1.25;
  --status-tone: var(--muted);
}

.game-status-toggle:hover { border-color: var(--accent); }
.game-status-toggle[data-state='reachable'] { --status-tone: var(--ok); }
.game-status-toggle:is([data-state='partial'], [data-state='stale']) { --status-tone: var(--warn); }
.game-status-toggle[data-state='unavailable'] { --status-tone: var(--danger); }
.game-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-tone);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--status-tone) 16%, transparent);
}
.game-status-toggle strong { display: block; color: var(--status-tone); }
.game-status-dialog { max-height: calc(100dvh - 24px); }
.game-status-dialog dt { color: var(--muted); }
.game-status-dialog dd { margin: 0; font-weight: 600; }
.game-status-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  margin: 14px 0 0;
}
.game-status-regions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
  margin: 18px 0;
}
.game-status-regions > div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-muted);
}
.game-status-regions dd { margin-top: 4px; font-size: 12px; }
#gameStatusRefresh:disabled { opacity: .6; cursor: wait; }

@media (max-width: 560px) {
  body:has(.game-status-toggle) > footer { padding-bottom: 68px; }
}


/* ORIGINAL CSS: css/sk-visual-v2.css */
/*
  SK // THUNDERFORGE DESIGN SYSTEM
  Responsive visual layer for Starblast Radar + Fleet Tools.
  All new colors derive from existing saved palette/theme tokens.
  No network fonts, blur filters, layout JS or continuous animation.
*/
:root{
  --sk2-edge:color-mix(in srgb,var(--accent) 33%,var(--line));
  --sk2-edge-soft:color-mix(in srgb,var(--line-strong) 73%,transparent);
  --sk2-metal:color-mix(in srgb,var(--surface) 89%,var(--bg));
  --sk2-metal-deep:color-mix(in srgb,var(--surface-muted) 84%,var(--surface));
  --sk2-metal-hi:color-mix(in srgb,var(--surface) 74%,var(--accent-soft));
  --sk2-accent-halo:color-mix(in srgb,var(--accent) 11%,transparent);
  --sk2-elevation:0 2px 5px rgba(0,0,0,.04),0 15px 36px rgba(0,0,0,.09);
  --sk2-type-display:'SK Room','SK Player',system-ui,sans-serif;
  --sk2-type-body:'SK Player','SK Text',system-ui,sans-serif;
  --sk2-type-label:'SK Room','SK Text',system-ui,sans-serif;
}
:root[data-theme='dark']{
  --sk2-metal:color-mix(in srgb,var(--surface) 75%,#050a14);
  --sk2-metal-deep:color-mix(in srgb,var(--surface-muted) 67%,#060b16);
  --sk2-metal-hi:color-mix(in srgb,var(--surface) 82%,var(--accent-soft));
  --sk2-elevation:0 2px 6px rgba(0,0,0,.17),0 19px 42px rgba(0,0,0,.25);
}
:root[data-typography='orbit']{
  --font-body:'SK Player',system-ui,sans-serif;
  --font-display:'SK Room','SK Player',system-ui,sans-serif;
  --font-hero:'SK Room','SK Player',system-ui,sans-serif;
  --sk2-type-display:'SK Room','SK Player',system-ui,sans-serif;
  --sk2-type-body:'SK Player',system-ui,sans-serif;
}
:root[data-typography='vector']{
  --font-body:'SK Text',system-ui,sans-serif;
  --font-display:'SK Display','SK Room',system-ui,sans-serif;
  --font-hero:'SK Display','SK Room',system-ui,sans-serif;
  --sk2-type-display:'SK Display','SK Room',system-ui,sans-serif;
  --sk2-type-body:'SK Text','SK Player',system-ui,sans-serif;
}
:root[data-typography='clear']{
  --font-body:'SK Player',system-ui,sans-serif;
  --font-display:'SK Player',system-ui,sans-serif;
  --font-hero:'SK Player',system-ui,sans-serif;
  --sk2-type-display:'SK Player',system-ui,sans-serif;
  --sk2-type-body:'SK Player',system-ui,sans-serif;
}
body{font-family:var(--sk2-type-body);line-height:1.5}
button,input,select,textarea{font-family:var(--sk2-type-body)}
:is(button,a,input,select,textarea,[tabindex]):focus-visible{
  outline:2px solid var(--accent)!important;
  outline-offset:3px;
}
button:not(:disabled),a{ -webkit-tap-highlight-color:transparent }
.sk2-svg{width:19px;height:19px;display:inline-block;vertical-align:middle;flex:none;stroke:currentColor;fill:none}
.sk2-svg.sk2-lg{width:23px;height:23px}
.sk2-glyph{display:inline-flex;align-items:center;justify-content:center;
  width:30px;height:30px;flex:none;color:var(--accent);
  border:1px solid var(--sk2-edge-soft);border-radius:9px;
  background:linear-gradient(150deg,var(--accent-soft),var(--sk2-metal-deep));}
.sk2-glyph .sk2-svg{width:18px;height:18px}
.sk2-dot{display:inline-block;width:7px;height:7px;border-radius:2px;transform:rotate(45deg);
  background:var(--accent);box-shadow:0 0 11px var(--sk2-accent-halo)}
/* A refined application masthead shared across Radar & Fleet */
body:not(.fleet-body)>header{
  background:var(--header-fill);
  border-bottom:1px solid var(--sk2-edge-soft);
  box-shadow:0 5px 24px rgba(0,0,0,.06);
}
.brand-symbol{border-radius:12px!important;border:1px solid var(--sk2-edge-soft);
  box-shadow:0 0 0 3px var(--sk2-accent-halo),0 8px 22px rgba(0,0,0,.17)}
.brand-name{font-family:var(--sk2-type-display);font-size:clamp(24px,2.6vw,32px)!important;font-weight:750!important;
  letter-spacing:.015em!important;line-height:1.04}
.brand-sub{font-family:var(--sk2-type-label);font-size:10px!important;
  font-weight:650;letter-spacing:.13em!important;color:var(--accent)!important}
.appearance-controls button,.home-live-controls button,.home-preferences{
  border-radius:11px!important;min-height:37px;
  border:1px solid var(--sk2-edge-soft)!important;
  background:var(--sk2-metal)!important;color:var(--text-soft)!important;
  box-shadow:inset 0 1px 0 color-mix(in srgb,var(--text) 5%,transparent);
}
.appearance-controls button:hover,.home-live-controls button:hover,.home-preferences:hover{
  border-color:var(--accent)!important;color:var(--accent)!important}
.appearance-controls button[aria-pressed='true']{
  background:var(--accent-soft)!important;border-color:var(--sk2-edge)!important;color:var(--accent)!important}
.btn,.button{border-radius:11px;transition:background .16s ease,color .16s ease,border-color .16s ease,transform .16s ease}
.btn-primary,button.btn-primary{background:linear-gradient(110deg,var(--accent),var(--accent-strong))!important;
  color:var(--on-accent)!important;border-color:var(--accent-strong)!important;
  box-shadow:0 8px 24px var(--sk2-accent-halo),inset 0 1px 0 rgba(255,255,255,.12);}
.btn-primary:hover:not(:disabled){filter:brightness(1.07)}
/* Dashboard hero. Retains existing, opt-in artwork and content. */
.identity-hero{
  position:relative;isolation:isolate;overflow:hidden;
  border:1px solid var(--sk2-edge)!important;border-radius:22px!important;
  background:linear-gradient(121deg,var(--hero-bg),color-mix(in srgb,var(--hero-bg) 81%,var(--hero-line)))!important;
  box-shadow:var(--sk2-elevation),inset 0 0 0 1px color-mix(in srgb,var(--hero-accent) 13%,transparent);}
.identity-hero:before{
  content:"";position:absolute;z-index:-1;inset:0;
  background:radial-gradient(ellipse at 80% 40%,color-mix(in srgb,var(--hero-accent) 16%,transparent),transparent 48%),
  linear-gradient(125deg,transparent 57%,color-mix(in srgb,var(--hero-accent) 8%,transparent) 57.1%,transparent 57.5%,
      transparent 79%,color-mix(in srgb,var(--hero-accent) 5%,transparent) 79.2%,transparent 79.6%);
  pointer-events:none;}
.identity-hero .identity-badge{
  border:1px solid color-mix(in srgb,var(--hero-accent) 43%,transparent);
  padding:8px 12px;border-radius:8px;background:color-mix(in srgb,var(--hero-bg) 70%,transparent);
  font-family:var(--sk2-type-label);font-weight:700;letter-spacing:.14em!important;}
.identity-hero .identity-copy h1{
  font-family:var(--sk2-type-display);font-weight:760!important;letter-spacing:-.027em!important;
  line-height:1.02;max-width:710px;}
.identity-hero .identity-copy p{font-size:clamp(13px,1.35vw,15px);line-height:1.8}
.identity-hero .identity-art img{filter:drop-shadow(0 0 25px color-mix(in srgb,var(--hero-accent) 16%,transparent))}
.identity-actions .btn{min-height:44px;display:inline-flex;align-items:center;gap:10px;font-weight:650}
.identity-download{border-bottom:1px solid color-mix(in srgb,var(--hero-accent) 45%,transparent);text-decoration:none}
.regions{padding:4px;border:1px solid var(--sk2-edge-soft);border-radius:11px;
  background:var(--sk2-metal-deep);gap:3px}
.regions button{border-radius:8px!important;font-family:var(--sk2-type-label);font-weight:750}
.regions button.active,.regions button[aria-pressed='true']{background:var(--accent-soft)!important;box-shadow:inset 0 0 0 1px var(--sk2-edge)}
.modes,.mode-tabs{border-color:var(--sk2-edge-soft)}
.modes button,.mode-tabs button{font-family:var(--sk2-type-label);font-weight:700;letter-spacing:.04em}
.modes button.active,.mode-tabs button.active{border-color:var(--sk2-edge);color:var(--accent)}
.list-panel,.detail,.room,.room-card,.leaderboard,.leaderboard-card,
.team-view,.team-card,.player-card,.stat-card,.members-panel,.clan-card{
  border-color:var(--sk2-edge-soft)!important;
  border-radius:14px!important;
  box-shadow:0 6px 18px rgba(0,0,0,.045);
}
.list-panel,.detail,.leaderboard,.team-view,.members-panel{
  background:var(--sk2-metal)!important}
.room,.room-card,.team-card,.player-card,.clan-card,.stat-card{
  background:linear-gradient(145deg,var(--sk2-metal),var(--sk2-metal-deep))!important}
.room:hover,.room-card:hover,.team-card:hover,.player-card:hover,.clan-card:hover{
  border-color:var(--sk2-edge)!important}
.room h3,.detail h2,.section-title,.list-caption,.team-card h3,.leaderboard h2{
  font-family:var(--sk2-type-display)!important;font-weight:700!important}
.open-only,.room-meta,.age,.mode-label{font-family:var(--sk2-type-label)}
/* Fleet command center / navigation */
.fleet-body{
  background:var(--bg);
  --sk2-glow-sm:0 0 0 1px color-mix(in srgb,var(--accent) 6%,transparent),
                 0 18px 38px rgba(0,0,0,.10);
}
.fleet-sidebar{
  width:242px!important;
  padding:25px 15px 20px!important;
  background:linear-gradient(166deg,var(--sk2-metal),var(--sk2-metal-deep))!important;
  border-right:1px solid var(--sk2-edge-soft)!important;}
.fleet-sidebar:before{content:"";position:absolute;inset:0 auto 0 0;width:3px;
 background:linear-gradient(180deg,var(--accent),transparent 66%);opacity:.74;pointer-events:none}
.fleet-sidebar .brand{padding:7px 4px;margin:0 7px 42px!important;gap:13px}
.fleet-sidebar .brand-symbol{width:47px;height:47px}
.fleet-nav-caption{
  color:var(--muted)!important;font-family:var(--sk2-type-label)!important;
  font-size:10px!important;font-weight:700;letter-spacing:.2em!important;
  margin:0 13px 15px!important}
.fleet-sidebar nav{gap:7px!important}
.fleet-sidebar nav a{
  display:flex;gap:11px!important;min-height:50px;
  padding:8px 10px!important;border-radius:12px!important;
  color:var(--text-soft)!important;font-family:var(--sk2-type-body);font-weight:610;
  border:1px solid transparent;position:relative}
.fleet-sidebar nav a .sk2-glyph{
  width:33px;height:33px;border-radius:9px;
  background:var(--sk2-metal-deep);border-color:var(--sk2-edge-soft);color:var(--muted)}
.fleet-sidebar nav a .sk2-glyph .sk2-svg{width:18px;height:18px}
.fleet-sidebar nav a:hover{background:var(--accent-soft)!important;color:var(--accent)!important;border-color:var(--sk2-edge-soft)}
.fleet-sidebar nav a.active{
  background:linear-gradient(115deg,var(--accent-soft),var(--sk2-metal-hi))!important;
  border-color:var(--sk2-edge)!important;color:var(--text)!important;
  box-shadow:inset 3px 0 0 var(--accent),0 8px 17px rgba(0,0,0,.07)}
.fleet-sidebar nav a.active .sk2-glyph{color:var(--accent);background:var(--accent-soft);border-color:var(--sk2-edge)}
.fleet-sidebar nav a>span[id='hostedCount']{
  margin-inline-start:auto;border-color:var(--sk2-edge)!important;
  font-family:var(--sk2-type-label);font-weight:800;color:var(--accent)!important;
  padding:3px 8px!important;border-radius:7px!important;
  background:var(--accent-soft)!important}
.fleet-sidebar-end{border-top:1px solid var(--sk2-edge-soft);padding-top:18px!important}
.fleet-sidebar-end a,.fleet-sidebar-end button{min-height:42px!important;padding:9px 10px!important}
.fleet-sidebar-end i{width:20px;display:inline-flex;justify-content:center}
.fleet-shell{margin-inline-start:242px!important;min-height:100vh}
.fleet-header{
  min-height:84px!important;
  background:linear-gradient(110deg,var(--header-fill),var(--sk2-metal))!important;
  border-bottom:1px solid var(--sk2-edge-soft)!important;
  padding-inline:clamp(18px,3vw,42px)!important}
.fleet-location{font-family:var(--sk2-type-label);font-size:12px!important;letter-spacing:.035em}
.fleet-location strong{font-family:var(--sk2-type-display);font-weight:700!important;font-size:13px;color:var(--text)!important}
.fleet-divider{color:var(--accent)!important}
.fleet-main{max-width:1560px!important;padding:28px clamp(18px,3vw,42px) 0!important;position:relative}
.fleet-main:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(ellipse at 80% 0,color-mix(in srgb,var(--accent) 7%,transparent),transparent 54%)}
.fleet-status{
  margin-bottom:18px!important;min-height:52px;padding:11px 15px;
  border:1px solid var(--sk2-edge-soft);border-radius:11px;
  background:linear-gradient(90deg,var(--sk2-metal),var(--sk2-metal-deep));
  color:var(--text-soft)!important;font-family:var(--sk2-type-label);
  box-shadow:0 3px 12px rgba(0,0,0,.03)}
.fleet-status-dot{width:8px!important;height:8px!important;box-shadow:0 0 0 3px var(--accent-soft)}
.fleet-status.ready{border-color:color-mix(in srgb,var(--ok) 30%,var(--line))!important}
.fleet-recheck{border:1px solid var(--sk2-edge-soft)!important;border-radius:9px;min-height:33px}
.fleet-footer{border-color:var(--sk2-edge-soft)!important;font-family:var(--sk2-type-label);
  font-weight:620;letter-spacing:.03em}
.fleet-footer a{color:var(--accent)}
/* Fleet cards, controls, modding dashboard */
.fleet-ship-card,.fleet-access-account,.fleet-access-user,
.skd-layout .skd-card,.fleet-clan-card,.fleet-access-panel,
#shipDialog,.ship-stat,.ship-search input,.ship-search select{
  border-color:var(--sk2-edge-soft)!important}
.fleet-ship-card{
  min-height:204px;position:relative;overflow:hidden;
  background:linear-gradient(152deg,var(--sk2-metal),var(--sk2-metal-deep))!important;
  border-radius:15px!important;box-shadow:var(--sk2-elevation);
  transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease}
.fleet-ship-card:before{content:"";position:absolute;top:12px;right:12px;width:36px;height:1px;
  background:var(--accent);opacity:.52;box-shadow:0 5px 0 var(--sk2-edge-soft)}
.fleet-ship-card .ship-glyph{
  color:var(--accent)!important;
  text-shadow:0 0 24px var(--sk2-accent-halo);
  font-size:clamp(55px,6vw,77px)!important;
  line-height:105px!important}
.fleet-ship-card strong{font-family:var(--sk2-type-display)!important;font-size:15px!important;font-weight:700!important}
.fleet-ship-card small{font-family:var(--sk2-type-label);font-size:11px!important}
.fleet-ship-card:hover{border-color:var(--sk2-edge)!important;transform:translateY(-2px);box-shadow:0 16px 30px rgba(0,0,0,.12)}
.ship-search input,.ship-search select{background:var(--sk2-metal)!important;min-height:49px!important}
#shipDialog{border-radius:19px!important;background:var(--sk2-metal)!important}
.skd-layout{--storm-accent:var(--accent)!important;--storm-accent-strong:var(--accent-strong)!important;
  --storm-shadow:var(--sk2-elevation)!important}
.skd-layout .skd-heading{
  min-height:174px;position:relative;padding:24px clamp(19px,2.5vw,35px)!important;
  background:linear-gradient(116deg,var(--sk2-metal),var(--sk2-metal-deep))!important;
  border:1px solid var(--sk2-edge)!important;border-inline-start:3px solid var(--accent)!important;
  border-radius:17px!important;box-shadow:var(--sk2-elevation)!important}
.skd-layout .skd-heading:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(circle at 76% 45%,var(--sk2-accent-halo),transparent 39%)}
.skd-layout .skd-heading h1{
  font-family:var(--sk2-type-display)!important;
  font-size:clamp(29px,3.8vw,47px)!important;
  letter-spacing:-.017em!important;font-weight:780!important;
  color:var(--text)!important;line-height:1.05!important;margin:13px 0 11px!important}
.skd-layout .skd-heading h1::first-letter{color:var(--accent)!important}
.skd-layout .skd-overline,.skd-layout .skd-section{
  color:var(--accent)!important;font-family:var(--sk2-type-label)!important;
  letter-spacing:.075em!important;font-size:12px!important;font-weight:750!important}
.skd-layout .skd-heading p:last-child{color:var(--text-soft)!important;
  font-family:var(--sk2-type-body)!important;font-size:12px!important;line-height:1.8!important}
.skd-layout .skd-seal{
  border:1px solid var(--sk2-edge)!important;border-radius:12px!important;
  background:color-mix(in srgb,var(--surface) 90%,#000)!important;
  padding:4px!important;width:clamp(156px,19vw,225px)!important;
  box-shadow:0 0 0 3px var(--sk2-accent-halo),inset 0 0 15px var(--sk2-accent-halo)!important}
.skd-layout .skd-main-grid{gap:17px!important}
.skd-layout .skd-card{padding:clamp(21px,2.5vw,32px)!important;
  background:linear-gradient(145deg,var(--sk2-metal),var(--sk2-metal-deep))!important;
  border:1px solid var(--sk2-edge-soft)!important;
  border-radius:17px!important;box-shadow:var(--sk2-elevation)!important}
.skd-layout .skd-card .skd-section{
  border-bottom:1px solid var(--sk2-edge-soft)!important;margin-bottom:21px!important}
.skd-layout .skd-form{gap:21px!important}
.skd-layout .skd-form label{font-size:12px!important;font-weight:650!important;color:var(--text-soft)!important}
.skd-layout .skd-form input:not([type='checkbox']),.skd-layout .skd-form select,
.skd-layout .skd-controls input,.skd-layout .skd-controls select{
  min-height:49px!important;
  color:var(--text)!important;background:var(--surface-muted)!important;
  border:1px solid var(--sk2-edge-soft)!important;border-radius:10px!important;
  font-family:var(--sk2-type-body)!important}
.skd-layout .skd-form input:focus-visible,.skd-layout .skd-form select:focus-visible{
  border-color:var(--accent)!important;box-shadow:0 0 0 3px var(--sk2-accent-halo)!important}
.skd-layout .skd-primary{
  min-height:55px!important;border-radius:10px!important;
  color:var(--on-accent)!important;
  background:linear-gradient(102deg,var(--accent),var(--accent-strong))!important;
  border:1px solid var(--accent-strong)!important;
  font-family:var(--sk2-type-label)!important;font-weight:800!important;
  letter-spacing:.085em!important;
  box-shadow:0 6px 23px var(--sk2-accent-halo),inset 0 1px 0 rgba(255,255,255,.15)!important}
.skd-layout .skd-primary:disabled{opacity:.57!important;filter:grayscale(.3)!important;box-shadow:none!important;cursor:not-allowed!important}
.skd-layout .skd-spec{
  background:radial-gradient(ellipse at 50% 32%,var(--sk2-accent-halo),transparent 56%),
     linear-gradient(145deg,var(--sk2-metal),var(--sk2-metal-deep))!important}
.skd-layout .skd-lightning{
  position:relative;
  border:1px solid var(--sk2-edge-soft);
  border-radius:50%;width:134px!important;height:134px!important;
  background:radial-gradient(circle,var(--sk2-accent-halo),transparent 68%);
  margin:7px auto 21px!important}
.skd-layout .skd-lightning:before{content:"";position:absolute;inset:11px;border-radius:50%;
  border:1px dashed var(--sk2-edge);opacity:.75;pointer-events:none}
.skd-layout .skd-lightning svg{width:87px!important;height:98px!important}
.skd-layout .skd-lightning svg path:first-child{fill:var(--accent)!important;stroke:var(--accent-strong)!important}
.skd-layout .skd-lightning svg path:nth-child(2){fill:var(--on-accent)!important;opacity:.23!important}
.skd-layout .skd-spec h2{
  font-family:var(--sk2-type-display)!important;font-size:24px!important;
  font-weight:740!important;line-height:1.17!important;color:var(--text)!important}
.skd-layout .skd-spec p{color:var(--text-soft)!important;
  font-family:var(--sk2-type-body)!important;font-size:12px!important;line-height:1.75!important}
.skd-layout .skd-chips{gap:7px}
.skd-layout .skd-chips span{border:1px solid var(--sk2-edge-soft)!important;
  background:var(--accent-soft)!important;color:var(--accent)!important;
  border-radius:7px!important;font-family:var(--sk2-type-label)!important}
.skd-layout .skd-room-entry{background:var(--sk2-metal-deep)!important;
  border-color:var(--sk2-edge-soft)!important;border-radius:10px!important}
.skd-layout .skd-room-entry.active{border-color:var(--sk2-edge)!important;
  box-shadow:inset 3px 0 0 var(--accent)}
.skd-layout .skd-console-title h2{font-family:var(--sk2-type-display)!important;font-weight:700!important}
.skd-layout .skd-info-banner{color:var(--text-soft)!important}
.skd-layout .skd-action{font-family:var(--sk2-type-label);font-weight:670}
.skd-layout .skd-playerscroll th{background:var(--sk2-metal-deep)!important}
.skd-layout .skd-empty strong{font-family:var(--sk2-type-display);font-size:22px}
.fleet-access-panel,.fleet-access-user,.fleet-clan-card{
  background:linear-gradient(140deg,var(--sk2-metal),var(--sk2-metal-deep))!important;
  border-radius:14px!important}
/* Preferences become a real theme gallery / typography sampler. */
.preferences-heading{border-bottom:1px solid var(--sk2-edge-soft)!important}
.preferences-heading h2,.preferences-content h3{font-family:var(--sk2-type-display)!important;font-weight:730!important;
  letter-spacing:.015em!important}
.preferences-content{color:var(--text)}
.palette-grid{gap:11px!important}
.palette-card,.background-preset,.type-set-card{
  background:linear-gradient(153deg,var(--sk2-metal),var(--sk2-metal-deep))!important;
  border:1px solid var(--sk2-edge-soft)!important;border-radius:13px!important;
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.palette-card{padding:10px!important}
.palette-card:hover,.type-set-card:hover,.background-preset:hover{
  transform:translateY(-2px);
  border-color:var(--accent)!important;box-shadow:0 8px 18px rgba(0,0,0,.09)}
.palette-card[aria-pressed='true'],.type-set-card[aria-pressed='true'],.background-preset[aria-pressed='true']{
  border-color:var(--accent)!important;box-shadow:0 0 0 2px var(--sk2-accent-halo),0 9px 23px rgba(0,0,0,.07)}
.palette-preview{border-radius:9px!important}
.palette-preview span{font-family:var(--sk2-type-display)!important;font-size:36px!important}
.palette-name{font-family:var(--sk2-type-label);font-weight:720!important}
.type-set-card{min-height:110px!important;padding:13px!important}
.type-set-card strong{font-size:15px!important;font-weight:790!important;color:var(--accent)}
.type-set-card .type-set-room{font-size:17px!important}
.type-set-card .type-set-player{font-size:12px!important}
[data-typography='orbit'] .type-set-card[data-typography-choice='orbit'] strong{font-family:'SK Room'!important}
.type-set-card[data-typography-choice='orbit'] :is(strong,.type-set-room){font-family:'SK Room'!important}
.type-set-card[data-typography-choice='vector'] :is(strong,.type-set-room){font-family:'SK Display'!important}
.type-set-card[data-typography-choice='clear'] :is(strong,.type-set-room){font-family:'SK Player'!important}
.background-preset img{border-radius:8px}
.preferences-close{border-radius:9px!important}
.preferences-saved{border-top:1px solid var(--sk2-edge-soft)}
/* Mobile and accessibility */
@media(min-width:1550px){
 .fleet-main{padding-inline:55px!important}
 .fleet-header{padding-inline:55px!important}
}
@media(max-width:1120px){
 .fleet-sidebar{width:208px!important}
 .fleet-shell{margin-inline-start:208px!important}
 .fleet-main{padding-inline:20px!important}
 .fleet-header{padding-inline:20px!important}
 .skd-layout .skd-spec h2{font-size:22px!important}
}
@media(max-width:760px){
 .fleet-sidebar{width:240px!important;transform:translateX(-100%)}
 .fleet-sidebar.open{transform:translateX(0)}
 .fleet-shell{margin-inline-start:0!important}
 .fleet-header{min-height:65px!important}
 .fleet-main{padding:18px 14px 0!important}
 .fleet-status{padding:10px 12px!important}
 .fleet-ship-card{min-height:180px}
 .skd-layout .skd-heading{padding:20px!important}
 .skd-layout .skd-card{padding:20px!important}
 .identity-hero{border-radius:17px!important}
}
@media(max-width:420px){
 .skd-layout .skd-heading{gap:11px!important}
 .skd-layout .skd-heading h1{font-size:30px!important}
 .skd-layout .skd-seal{width:156px!important}
 .skd-layout .skd-spec h2{font-size:21px!important}
 .palette-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .fleet-header{padding-inline:14px!important}
 .fleet-main{padding-inline:12px!important}
}
@media(hover:none){
 .fleet-ship-card:hover,.palette-card:hover,.type-set-card:hover,.background-preset:hover{
   transform:none!important}
}
@media(prefers-reduced-motion:reduce){
 .fleet-body :is(.fleet-ship-card,.palette-card,.background-preset,.type-set-card){transition:none!important}
}
html[data-animation='off'] :is(.fleet-ship-card,.palette-card,.background-preset,.type-set-card){
 transition:none!important}
/* Additional local OFL fonts / 5 fully working typography profiles. */
@font-face{font-family:'SK Grotesk';src:url('../assets/fonts/space-grotesk-variable.ttf') format('truetype');font-weight:300 700;font-style:normal;font-display:swap}
@font-face{font-family:'SK Tactical';src:url('../assets/fonts/rajdhani-medium.ttf') format('truetype');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:'SK Tactical';src:url('../assets/fonts/rajdhani-bold.ttf') format('truetype');font-weight:700;font-style:normal;font-display:swap}
:root[data-typography='hyperdrive']{
 --font-body:'SK Grotesk','SK Player',system-ui,sans-serif;
 --font-display:'SK Tactical','SK Room',system-ui,sans-serif;
 --font-hero:'SK Tactical','SK Room',system-ui,sans-serif;
 --sk2-type-body:'SK Grotesk','SK Player',system-ui,sans-serif;
 --sk2-type-display:'SK Tactical','SK Room',system-ui,sans-serif;
 --sk2-type-label:'SK Tactical','SK Room',system-ui,sans-serif
}
:root[data-typography='nebula']{
 --font-body:'SK Tactical','SK Player',system-ui,sans-serif;
 --font-display:'SK Grotesk','SK Room',system-ui,sans-serif;
 --font-hero:'SK Grotesk','SK Room',system-ui,sans-serif;
 --sk2-type-body:'SK Tactical','SK Player',system-ui,sans-serif;
 --sk2-type-display:'SK Grotesk','SK Room',system-ui,sans-serif;
 --sk2-type-label:'SK Tactical','SK Room',system-ui,sans-serif
}
.type-set-card[data-typography-choice='hyperdrive'] :is(strong,.type-set-room){font-family:'SK Tactical'!important}
.type-set-card[data-typography-choice='hyperdrive'] .type-set-player{font-family:'SK Grotesk'!important}
.type-set-card[data-typography-choice='nebula'] :is(strong,.type-set-room){font-family:'SK Grotesk'!important}
.type-set-card[data-typography-choice='nebula'] .type-set-player{font-family:'SK Tactical'!important}
.fleet-sidebar nav a>.sk2-glyph,
.fleet-sidebar-end .sk2-glyph{margin-inline-start:0!important;padding:0!important;border-radius:9px!important}
.fleet-sidebar nav a>.sk2-glyph .sk2-svg{width:19px;height:19px}
.palette-preview .sk2-svg{width:35px;height:44px;stroke-width:1.2;filter:drop-shadow(0 0 13px currentColor)}
.skd-layout .skd-primary>.sk2-svg{width:17px;height:17px;margin-inline-end:7px}
.identity-badge .sk2-svg{width:16px;height:16px}
/* Keep the Preferences dialog readable throughout theme/font transitions. */
#preferencesDialog{
  background:var(--surface)!important;
  color:var(--text)!important;
  border:1px solid var(--sk2-edge-soft)!important;
  box-shadow:0 22px 72px rgba(0,0,0,.28)!important;
}
#preferencesDialog .preferences-heading,
#preferencesDialog .preferences-content{
  color:var(--text)!important;
  background:transparent!important;
}
#preferencesDialog :is(.preferences-heading h2,.preferences-content h3,.typography-heading){
  color:var(--text)!important;
}
#preferencesDialog :is(.preferences-description,.preferences-saved){
  color:var(--text-soft)!important;
}
#preferencesDialog :is(.palette-card,.background-preset,.type-set-card){
  color:var(--text)!important;
  background:var(--surface-muted)!important;
  border-color:var(--sk2-edge-soft)!important;
}
#preferencesDialog :is(.palette-card,.background-preset,.type-set-card)[aria-pressed='true']{
  border-color:var(--accent)!important;
  box-shadow:0 0 0 2px var(--sk2-accent-halo)!important;
}
#preferencesDialog .type-set-card :is(strong,.type-set-room){
  color:var(--text)!important;
  opacity:1!important;
}
#preferencesDialog .type-set-card .type-set-player,
#preferencesDialog .palette-name{
  color:var(--text-soft)!important;
  opacity:1!important;
}
#preferencesDialog .type-set-card{min-height:112px!important}
#preferencesDialog .type-set-room{font-size:15px!important;line-height:1.3!important}
#preferencesDialog .preferences-close{color:var(--text-soft)!important}
html[data-theme='light'] #preferencesDialog{color-scheme:light}
html[data-theme='dark'] #preferencesDialog{color-scheme:dark}
/* Preferences follows active theme tokens. */


/* ORIGINAL CSS: css/sk-heritage-themes.css */
/*
  SK NATIONAL HERITAGE COLLECTION | 4 selectable palettes, 8 modes.
  Optional, original self-hosted vector motifs. Does not change hosting or permissions.
*/
:root[data-palette='egypt']{
 --heritage-art:url('../assets/theme-art/egypt.svg');
 --emblem-filter:hue-rotate(175deg) saturate(1.05);
 --storm-image-filter:hue-rotate(184deg) sepia(.24);
}
:root[data-palette='turkey']{
 --heritage-art:url('../assets/theme-art/turkey.svg');
 --emblem-filter:hue-rotate(147deg) saturate(1.10);
 --storm-image-filter:hue-rotate(155deg) saturate(.94);
}
:root[data-palette='france']{
 --heritage-art:url('../assets/theme-art/france.svg');
 --emblem-filter:hue-rotate(38deg) saturate(1.1);
 --storm-image-filter:hue-rotate(57deg) saturate(.95);
}
:root[data-palette='russia']{
 --heritage-art:url('../assets/theme-art/russia.svg');
 --emblem-filter:hue-rotate(-15deg) saturate(1.13);
 --storm-image-filter:hue-rotate(-15deg) saturate(1.06);
}
/* Egyptian Pyramids | Nile lapis, sandstone, gilded architecture. */
:root[data-palette='egypt']:not([data-theme='dark']){
 --bg:#f8eddb;--surface:#fffaf2;--surface-muted:#f4e5cf;
 --tint:#f2e2c3;--tint-strong:#e6c99c;--line:#dfc79f;--line-strong:#b7955c;
 --text:#402f20;--text-soft:#66513b;--muted:#775e45;--faint:#775e45;
 --accent:#86520c;--accent-strong:#6e4008;--accent-soft:#f5d7a1;--on-accent:#fff;
 --header-fill:#fff6e9ef;--storm-wash:#ead6b5;
 --hero-bg:#f3dcaf;--hero-ink:#432912;--hero-soft:#6d4d2c;
 --hero-accent:#775018;--hero-line:#cfaa6b;--art-core:#8b6131;--art-halo:#f3e1b6;
}
:root[data-palette='egypt'][data-theme='dark']{
 --bg:#161b22;--surface:#25232a;--surface-muted:#302a2a;
 --tint:#332f2c;--tint-strong:#493b2e;--line:#574532;--line-strong:#88683c;
 --text:#ffedcc;--text-soft:#e8d1a9;--muted:#cbb286;--faint:#cbb286;
 --accent:#f6cc76;--accent-strong:#ffe3a9;--accent-soft:#4f3a22;--on-accent:#39240c;
 --header-fill:#1b1c24f0;--storm-wash:#493423;
 --hero-bg:#1b1f2c;--hero-ink:#fff0d0;--hero-soft:#e5c89a;
 --hero-accent:#f4cd83;--hero-line:#796346;
}
/* Turkish Crescent | Bosphorus turquoise, Ottoman red, warm copper. */
:root[data-palette='turkey']:not([data-theme='dark']){
 --bg:#eaf5f2;--surface:#f9fffb;--surface-muted:#e7f1ed;
 --tint:#ddf0e9;--tint-strong:#bde2d9;--line:#b5d6cf;--line-strong:#81aeaa;
 --text:#153a3a;--text-soft:#37615e;--muted:#527873;--faint:#527873;
 --accent:#af3638;--accent-strong:#8d2528;--accent-soft:#fbe5dc;--on-accent:#fff;
 --header-fill:#f7fffbed;--storm-wash:#b2dbd4;
 --hero-bg:#deeee9;--hero-ink:#173a3d;--hero-soft:#3d6462;
 --hero-accent:#a43132;--hero-line:#9dcac4;--art-core:#194e59;--art-halo:#d4f2eb;
}
:root[data-palette='turkey'][data-theme='dark']{
 --bg:#081a25;--surface:#102b32;--surface-muted:#15363d;
 --tint:#183c45;--tint-strong:#22525b;--line:#32545b;--line-strong:#56858a;
 --text:#e2f7f4;--text-soft:#bedfda;--muted:#96c0be;--faint:#96c0be;
 --accent:#f89180;--accent-strong:#ffc4ad;--accent-soft:#502a31;--on-accent:#351b1c;
 --header-fill:#0b2029ed;--storm-wash:#17404a;
 --hero-bg:#0e2636;--hero-ink:#e8f9f6;--hero-soft:#b1dad9;
 --hero-accent:#ffc39d;--hero-line:#4b777d;
}
/* French Royal | midnight indigo, gilded Parisian Art Deco. */
:root[data-palette='france']:not([data-theme='dark']){
 --bg:#f3f1f4;--surface:#fffdfb;--surface-muted:#f3eef1;
 --tint:#ebe6ed;--tint-strong:#ded2df;--line:#d8cbd6;--line-strong:#b7a6b7;
 --text:#292b49;--text-soft:#55516c;--muted:#716b80;--faint:#716b80;
 --accent:#68436e;--accent-strong:#4c2b53;--accent-soft:#f0deef;--on-accent:#fff;
 --header-fill:#fffafdf0;--storm-wash:#ded4e5;
 --hero-bg:#e9e6f1;--hero-ink:#2e2a4c;--hero-soft:#59506d;
 --hero-accent:#65406e;--hero-line:#c7b5cf;--art-core:#303966;--art-halo:#e3ddeb;
}
:root[data-palette='france'][data-theme='dark']{
 --bg:#14172c;--surface:#21243c;--surface-muted:#2b2b46;
 --tint:#35314c;--tint-strong:#49415d;--line:#4b455b;--line-strong:#81708b;
 --text:#fff2e0;--text-soft:#dfd1da;--muted:#bfb0c0;--faint:#bfb0c0;
 --accent:#f4d19b;--accent-strong:#ffe7bc;--accent-soft:#504036;--on-accent:#33271d;
 --header-fill:#171a31ee;--storm-wash:#38334e;
 --hero-bg:#171a34;--hero-ink:#fff4e8;--hero-soft:#dfcbd7;
 --hero-accent:#f3d2a7;--hero-line:#74617a;
}
/* Russian Frost | glacier, winter cobalt and luminous crystal. */
:root[data-palette='russia']:not([data-theme='dark']){
 --bg:#ecf4fa;--surface:#fbfdff;--surface-muted:#e9f2fb;
 --tint:#daeafa;--tint-strong:#c7dcf0;--line:#c9d9e9;--line-strong:#9bb8d2;
 --text:#20375d;--text-soft:#4b6481;--muted:#688099;--faint:#688099;
 --accent:#315b99;--accent-strong:#21487e;--accent-soft:#dceaff;--on-accent:#fff;
 --header-fill:#f9fcfff0;--storm-wash:#bfd7ee;
 --hero-bg:#e3f0fa;--hero-ink:#183c67;--hero-soft:#4e6c86;
 --hero-accent:#2c5893;--hero-line:#aec7de;--art-core:#32618f;--art-halo:#d4ecff;
}
:root[data-palette='russia'][data-theme='dark']{
 --bg:#090f29;--surface:#141e3c;--surface-muted:#1b2a49;
 --tint:#1e3050;--tint-strong:#2a3c61;--line:#2c4268;--line-strong:#53749d;
 --text:#edf8ff;--text-soft:#c8e3f7;--muted:#a4c7e7;--faint:#a4c7e7;
 --accent:#9cdbff;--accent-strong:#c6f0ff;--accent-soft:#1a4668;--on-accent:#0a2b43;
 --header-fill:#0b1530ee;--storm-wash:#1e3d69;
 --hero-bg:#0c1d3c;--hero-ink:#f1faff;--hero-soft:#c0dff7;
 --hero-accent:#a0ddff;--hero-line:#456a95;
}
/* Brand-wide heritage motifs: art lives in headings; content stays readable. */
:root:is([data-palette='egypt'],[data-palette='turkey'],[data-palette='france'],[data-palette='russia']) .identity-hero{
 background:linear-gradient(100deg,var(--hero-bg) 0%,
   color-mix(in srgb,var(--hero-bg) 96%,transparent) 42%,
   color-mix(in srgb,var(--hero-bg) 60%,transparent) 100%),
   var(--heritage-art) right center / min(58vw,600px) auto no-repeat,
   var(--hero-bg)!important;
 border-color:var(--hero-line)!important;
}
:root:is([data-palette='egypt'],[data-palette='turkey'],[data-palette='france'],[data-palette='russia']) .identity-hero::before{
 background:none!important;opacity:0!important;
}
:root:is([data-palette='egypt'],[data-palette='turkey'],[data-palette='france'],[data-palette='russia']) .identity-hero::after{
 background:radial-gradient(circle at 77% 50%,var(--hero-line),transparent 48%)!important;
 opacity:.11!important;
 pointer-events:none!important;
}
:root:is([data-palette='egypt'],[data-palette='turkey'],[data-palette='france'],[data-palette='russia']) .skd-layout .skd-heading{
 background:linear-gradient(105deg,var(--sk2-metal) 0%,
    color-mix(in srgb,var(--sk2-metal) 97%,transparent) 43%,
    color-mix(in srgb,var(--sk2-metal) 57%,transparent) 100%),
    var(--heritage-art) right center / 430px auto no-repeat,
    var(--sk2-metal)!important;
 border-inline-start:3px solid var(--accent)!important;
}
:root:is([data-palette='egypt'],[data-palette='turkey'],[data-palette='france'],[data-palette='russia']) .skd-layout .skd-heading::after{
 background:none!important;
}
:root:is([data-palette='egypt'],[data-palette='turkey'],[data-palette='france'],[data-palette='russia']) .skd-layout .skd-heading h1{
 color:var(--text)!important;
 text-shadow:0 3px 26px var(--sk2-accent-halo);
}
:root:is([data-palette='egypt'],[data-palette='turkey'],[data-palette='france'],[data-palette='russia']) .fleet-sidebar nav a.active{
 box-shadow:inset 3px 0 0 var(--accent),0 8px 21px var(--sk2-accent-halo)!important;
}
:root:is([data-palette='egypt'],[data-palette='turkey'],[data-palette='france'],[data-palette='russia']) .fleet-body .skd-spec{
 border-color:color-mix(in srgb,var(--accent) 26%,var(--line))!important;
}
:root:is([data-palette='egypt'],[data-palette='turkey'],[data-palette='france'],[data-palette='russia']) .palette-preview[class*='palette-'] img{
 display:block;width:100%;height:100%;object-fit:cover;
 transition:transform .2s ease;
}
#preferencesDialog .palette-preview.palette-egypt{background:linear-gradient(135deg,#483031,#c28b50);color:#ffe1a3}
#preferencesDialog .palette-preview.palette-turkey{background:linear-gradient(135deg,#092a37,#a54640);color:#f7dca2}
#preferencesDialog .palette-preview.palette-france{background:linear-gradient(135deg,#152449,#77516d);color:#f7dfae}
#preferencesDialog .palette-preview.palette-russia{background:linear-gradient(135deg,#102044,#3669a0);color:#c9edff}
#preferencesDialog .palette-card:where(:hover,:focus-visible) .palette-preview img{transform:scale(1.045)}
#preferencesDialog .palette-card[data-palette-choice='egypt'] .palette-name::before{content:'✦ ';color:#f2c77d}
#preferencesDialog .palette-card[data-palette-choice='turkey'] .palette-name::before{content:'☾ ';color:#e87c6a}
#preferencesDialog .palette-card[data-palette-choice='france'] .palette-name::before{content:'✧ ';color:#f3d1a1}
#preferencesDialog .palette-card[data-palette-choice='russia'] .palette-name::before{content:'❄ ';color:#a0dfff}
@media(max-width:760px){
 :root:is([data-palette='egypt'],[data-palette='turkey'],[data-palette='france'],[data-palette='russia']) .identity-hero{
   background:linear-gradient(100deg,var(--hero-bg) 0%,color-mix(in srgb,var(--hero-bg) 87%,transparent) 100%),
    var(--heritage-art) right top / 80% auto no-repeat,var(--hero-bg)!important;
 }
 :root:is([data-palette='egypt'],[data-palette='turkey'],[data-palette='france'],[data-palette='russia']) .skd-layout .skd-heading{
   background:linear-gradient(112deg,var(--sk2-metal),color-mix(in srgb,var(--sk2-metal) 90%,transparent)),
    var(--heritage-art) right top / 270px auto no-repeat,var(--sk2-metal)!important;
 }
}

/* Real scene layer: blurred cultural backdrops remain behind readable content. */
:root:is([data-palette='egypt'],[data-palette='turkey'],[data-palette='france'],[data-palette='russia'])
  .sk-scene-background {
  background:radial-gradient(ellipse at 90% 11%,color-mix(in srgb,var(--accent) 18%,transparent),transparent 60%),
    linear-gradient(145deg,var(--bg),var(--storm-wash),var(--bg));
}
:root:is([data-palette='egypt'],[data-palette='turkey'],[data-palette='france'],[data-palette='russia'])[data-background='on']:not([data-background-photo='on'])
  .sk-scene-background::before {
  content:"";position:absolute;inset:-9%;pointer-events:none;
  background:var(--heritage-backdrop,var(--heritage-art)) 60% center / cover no-repeat;
  /* The blur is baked into a lightweight image, avoiding a full-screen filter repaint. */
  filter:none;transform:scale(1.02);opacity:.47;
}
:root:is([data-palette='egypt'],[data-palette='turkey'],[data-palette='france'],[data-palette='russia'])[data-background='on']:not([data-background-photo='on'])
  .sk-scene-background::after {
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,color-mix(in srgb,var(--bg) 15%,transparent),
    color-mix(in srgb,var(--bg) 48%,transparent) 35%,var(--bg) 105%);
}
:root:is([data-palette='egypt'],[data-palette='turkey'],[data-palette='france'],[data-palette='russia'])[data-theme='dark'][data-background='on']:not([data-background-photo='on'])
  .sk-scene-background::before {opacity:.65}
:root:is([data-palette='egypt'],[data-palette='turkey'],[data-palette='france'],[data-palette='russia'])[data-background='on']:not([data-background-photo='on'])
  .sk-scene-art {opacity:.04}
:root:is([data-palette='egypt'],[data-palette='turkey'],[data-palette='france'],[data-palette='russia'])[data-background='on']:not([data-background-photo='on'])
  .sk-scene-photo {opacity:.03}
:root:is([data-palette='egypt'],[data-palette='turkey'],[data-palette='france'],[data-palette='russia'])
  .identity-hero {
  background:linear-gradient(90deg,var(--hero-bg) 0%,color-mix(in srgb,var(--hero-bg) 96%,transparent) 35%,
    color-mix(in srgb,var(--hero-bg) 42%,transparent) 72%,color-mix(in srgb,var(--hero-bg) 19%,transparent) 100%),
    var(--heritage-art) right center / cover no-repeat!important;
}
:root:is([data-palette='egypt'],[data-palette='turkey'],[data-palette='france'],[data-palette='russia'])
  .skd-layout .skd-heading {
  background:linear-gradient(100deg,var(--sk2-metal) 0%,color-mix(in srgb,var(--sk2-metal) 95%,transparent) 39%,
    color-mix(in srgb,var(--sk2-metal) 31%,transparent) 100%),
    var(--heritage-art) right center / cover no-repeat!important;
}
@media(max-width:760px) {
  :root:is([data-palette='egypt'],[data-palette='turkey'],[data-palette='france'],[data-palette='russia']) .identity-hero {
    background:linear-gradient(90deg,var(--hero-bg) 0%,color-mix(in srgb,var(--hero-bg) 88%,transparent) 65%,
      color-mix(in srgb,var(--hero-bg) 60%,transparent) 100%),
      var(--heritage-art) 64% center / cover no-repeat!important;
  }
  :root:is([data-palette='egypt'],[data-palette='turkey'],[data-palette='france'],[data-palette='russia'])
    .skd-layout .skd-heading {
    background:linear-gradient(100deg,var(--sk2-metal),color-mix(in srgb,var(--sk2-metal) 75%,transparent)),
      var(--heritage-art) 70% center / cover no-repeat!important;
  }
}

@media(prefers-reduced-motion:reduce){
 #preferencesDialog .palette-preview img{transition:none!important}
}


/* ORIGINAL CSS: css/owner-presence.css */
/* Owner sidebar: hidden until authenticated and authorized by the server. */
.owner-presence-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:37px;padding:8px 11px;border:1px solid var(--line-strong);border-radius:11px;background:var(--surface);color:var(--text);font:650 12px var(--font-body)}
.owner-presence-toggle b{background:var(--accent-soft);color:var(--accent);border-radius:7px;min-width:20px;padding:2px 5px;font-size:11px;text-align:center}
.owner-presence-toggle:hover,.owner-presence-toggle[aria-expanded='true']{border-color:var(--accent);color:var(--accent)}
.owner-presence-panel{position:fixed;z-index:150;inset:78px 18px 18px auto;width:min(385px,calc(100vw - 28px));max-height:calc(100dvh - 96px);display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--line-strong);border-radius:19px;background:var(--surface);color:var(--text);box-shadow:0 22px 85px #0004}
.owner-presence-panel[hidden],.owner-presence-toggle[hidden]{display:none!important}
.owner-presence-head{display:flex;align-items:start;justify-content:space-between;gap:12px;padding:19px 20px;border-bottom:1px solid var(--line);background:var(--surface-muted)}
.owner-presence-head h2{margin:0 0 4px;font-size:18px;font-weight:800}
.owner-presence-head p{margin:0;color:var(--muted);font-size:12px}
.owner-presence-close{height:31px;width:31px;border-radius:8px;background:var(--surface);border:1px solid var(--line);color:var(--muted);font-size:21px;line-height:1}
.owner-presence-stats{padding:13px 20px;display:flex;gap:9px;border-bottom:1px solid var(--line)}
.owner-presence-stats span{flex:1;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--surface-muted);font-size:12px;color:var(--muted)}
.owner-presence-stats strong{display:block;color:var(--accent);font-size:21px}
.owner-presence-list{padding:8px 13px 16px;overflow-y:auto;overscroll-behavior:contain}
.owner-presence-person{display:flex;gap:11px;align-items:center;margin:7px 0;padding:12px 10px;border:1px solid var(--line);background:var(--surface-muted);border-radius:12px}
.owner-presence-avatar{display:grid;place-items:center;width:35px;height:35px;flex:none;border-radius:11px;background:var(--accent-soft);color:var(--accent)}
.owner-presence-info{min-width:0;flex:1}
.owner-presence-info strong{display:block;font-size:13px;overflow-wrap:anywhere}
.owner-presence-info small{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.owner-presence-state{font-size:10px;white-space:nowrap;border-radius:8px;color:var(--muted);background:var(--surface);border:1px solid var(--line);padding:4px 7px}
.owner-presence-state[data-state='active']{color:var(--ok);border-color:color-mix(in srgb,var(--ok) 30%,var(--line))}
.owner-presence-status{margin:0;padding:12px 20px 17px;color:var(--muted);font-size:11px;border-top:1px solid var(--line)}
.owner-presence-notice{font-size:10px!important;color:var(--muted)!important}
@media(max-width:760px){.owner-presence-panel{inset:66px 10px 10px auto;max-height:calc(100dvh - 76px)}.owner-presence-toggle span{display:none}}


/* ORIGINAL CSS: css/sk-performance.css */
/* Preserve all interactive features; skip offscreen card painting and layout. */
@supports (content-visibility: auto) {
  #rooms > .room-explorer-card[data-live-key],
  .fleet-clan-list > li,
  .fleet-ship-grid > .fleet-ship-card,
  #playersSidebarList > .active-player-row,
  #ownerPresenceList > .owner-presence-person {
    content-visibility: auto;
    contain-intrinsic-size: auto 150px;
  }
  #rooms > .room-explorer-card[data-live-key] { contain-intrinsic-size: auto 122px; }
  .fleet-clan-list > li { contain-intrinsic-size: auto 78px; }
  .fleet-ship-grid > .fleet-ship-card { contain-intrinsic-size: auto 176px; }
  #ownerPresenceList > .owner-presence-person { contain-intrinsic-size: auto 66px; }
}
:root[data-palette='egypt'] { --heritage-backdrop:url('../assets/theme-art/egypt-soft.webp'); }
:root[data-palette='turkey'] { --heritage-backdrop:url('../assets/theme-art/turkey-soft.webp'); }
:root[data-palette='france'] { --heritage-backdrop:url('../assets/theme-art/france-soft.webp'); }
:root[data-palette='russia'] { --heritage-backdrop:url('../assets/theme-art/russia-soft.webp'); }


/* Active player totals for clan relations; show only in verified member mode. */
.member-relation-totals,.leaderboard-relation-totals{
 display:flex;flex-wrap:wrap;align-items:center;gap:8px;
}
.member-relation-totals{margin-inline-start:auto}
.member-relation-total{
 display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line-strong);
 border-radius:10px;padding:7px 10px;font:650 12px/1.3 var(--font-body);
 background:var(--surface);color:var(--text-soft);white-space:nowrap;
}
.member-relation-total strong{
 color:var(--text);font-size:15px;font-variant-numeric:tabular-nums;
 margin-inline-start:3px;min-width:14px;text-align:center;
}
.member-relation-total.is-allied{border-color:color-mix(in srgb,var(--ok) 34%,var(--line-strong))}
.member-relation-total.is-allied strong{color:var(--ok)}
.member-relation-total.is-enemy{border-color:color-mix(in srgb,var(--danger) 34%,var(--line-strong))}
.member-relation-total.is-enemy strong{color:var(--danger)}
.leaderboard-relation-totals{margin:10px 0 12px}
/* Per-room relation counts stay anchored to the currently selected room title. */
.detail-room-relations{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:13px}
.detail-room-relations[hidden]{display:none}
.detail-room-relations .member-relation-total{padding:6px 10px;font-size:11px}
@media(max-width:670px){
 .member-relation-totals{margin-inline-start:0;flex-basis:100%}
 .member-relation-total{font-size:11px;padding:6px 9px}
}

/* Duel creation: small Discord entrypoint and explicit in-game shortcut hint. */
.skd-host-quicklinks{display:flex;flex-wrap:wrap;align-items:center;gap:10px;justify-content:space-between;margin:10px 0 2px;font-size:12px;color:var(--muted)}
.skd-discord-link{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid #9aa3ff;border-radius:10px;background:#5865f2;color:#fff!important;font-size:12px;font-weight:750;text-decoration:none;transition:filter .12s ease}
.skd-discord-link:hover,.skd-discord-link:focus-visible{filter:brightness(1.14);outline-offset:3px}
.skd-discord-link kbd{display:inline-grid;place-items:center;min-width:22px;padding:2px 5px;border-radius:5px;background:#fff2;color:#fff;font-size:11px}
@media (prefers-reduced-motion:reduce){.skd-discord-link{transition:none}}


/* ORIGINAL CSS: css/sk-vanguard.css */
/*
SK VANGUARD — unified interface system, v1.
A tactical navigation desk rather than a heavy poster.
Every important surface derives from existing light/dark/palette tokens.
No animated gradients, backdrops, filters or expensive 3D effects.
*/
:root{
 --v-paper:var(--surface);
 --v-raised:color-mix(in srgb,var(--surface) 87%,var(--bg));
 --v-inset:color-mix(in srgb,var(--bg) 55%,var(--surface));
 --v-ink:var(--text);
 --v-quiet:var(--text-soft);
 --v-border:color-mix(in srgb,var(--line-strong) 85%,var(--accent) 15%);
 --v-flair:color-mix(in srgb,var(--accent) 11%,transparent);
 --v-halo:color-mix(in srgb,var(--accent) 22%,transparent);
 --v-radius:17px;
 --v-radius-sm:11px;
 --v-shadow:0 14px 38px rgba(0,0,0,.045);
 --v-hero:var(--surface);
 --v-hero-2:color-mix(in srgb,var(--surface) 82%,var(--accent-soft));
 --v-radar-bg:#07111c;
 --v-radar-grid:#1a3045;
}
:root[data-theme='dark']{
 --v-raised:color-mix(in srgb,var(--surface) 87%,#050810);
 --v-inset:color-mix(in srgb,var(--surface) 68%,#050810);
 --v-border:color-mix(in srgb,var(--line-strong) 68%,transparent);
 --v-shadow:0 12px 32px rgba(0,0,0,.17);
 --v-hero-2:color-mix(in srgb,var(--surface) 89%,var(--accent) 11%);
}
:root,body{scroll-behavior:auto}
body{background:var(--bg)!important;color:var(--v-ink);font-family:var(--font-body),system-ui,sans-serif}
:root[data-typography='orbit'] body, :root[data-typography='orbit'] .room{
  letter-spacing:normal}
:root[data-typography='orbit'] .identity-copy h1{font-family:'SK Display','SK Player',system-ui,sans-serif}
:root[data-typography='clear'] .identity-copy h1{font-family:'SK Player',system-ui,sans-serif}
:root[data-background-motion='on'] .sk-scene-pulse,
:root[data-background-motion='on'] .sk-scene-art{animation:none!important;transform:none!important}
.sk-scene-background{opacity:.16!important;filter:none!important}
:root[data-background='off'] .sk-scene-background{opacity:0!important}
:root[data-background-photo='on'] .sk-scene-background{opacity:.23!important}
body::before,body::after{animation:none!important}
body:not(.fleet-body)>.backdrop{opacity:.15!important}
:is(.identity-hero,.room,.room-card,.list-panel,.detail,.spectator-map-panel,.spectator-team,.fleet-main,.fleet-panel)::before{
  animation:none!important
}
/* Global app shell */
body:not(.fleet-body)>header{
  min-height:76px!important;
  padding-block:9px!important;
  border-bottom:1px solid var(--v-border)!important;
  background:color-mix(in srgb,var(--v-paper) 95%,var(--bg))!important;
  box-shadow:0 2px 10px rgba(0,0,0,.035)!important;
  backdrop-filter:none!important;
}
.header-left,.header-right{gap:12px}
.brand{gap:11px!important}
.brand-name{font:750 27px/1 var(--font-display)!important;letter-spacing:-.01em!important;color:var(--text)!important}
.brand-sub{font:650 10px/1.3 var(--font-body)!important;letter-spacing:.16em!important;color:var(--muted)!important}
.brand-symbol{
 width:47px!important;height:47px!important;flex:none;
 background:var(--v-raised)!important;
 border:1px solid var(--v-border)!important;border-radius:14px!important;
 box-shadow:none!important;object-fit:contain!important;padding:5px;
 filter:none!important
}
:root[data-emblem='vanguard'] .brand-symbol{
 background:var(--accent)!important;
 border:1px solid var(--accent-strong)!important;
 padding:5px!important;
 -webkit-mask:none!important;mask:none!important;
 border-radius:11px!important
}
.regions{padding:4px!important;background:var(--v-raised)!important;border-color:var(--v-border)!important}
.regions button{font:700 12px var(--font-body)!important}
.header-right button{box-shadow:none!important}
.home-preferences,.home-live-controls button,.appearance-controls button{
 background:var(--v-raised)!important;border-color:var(--v-border)!important;
 color:var(--text-soft)!important;border-radius:10px!important;
}
.btn,.button,.modes button,.room,.room-card{transition:border-color .14s,color .14s,background-color .14s!important}
.btn-primary,button.btn-primary{
 border:1px solid var(--accent-strong)!important;
 background:var(--accent)!important;color:var(--on-accent)!important;
 box-shadow:none!important
}
.btn-primary:hover:not(:disabled){filter:none!important;opacity:.9}
.btn{border-radius:10px!important;letter-spacing:normal!important;font-size:12px}
main{position:relative;z-index:1}
/* A compact, legible mission brief, not a 900-KB advertising poster. */
.identity-hero{
 position:relative;isolation:isolate;overflow:hidden;
 min-height:290px!important;
 padding:36px 46px!important;
 grid-template-columns:minmax(0,1fr) minmax(200px,270px)!important;
 gap:22px!important;
 background:linear-gradient(115deg,var(--v-hero) 5%,var(--v-hero-2) 100%)!important;
 border:1px solid var(--v-border)!important;
 border-radius:20px!important;box-shadow:var(--v-shadow)!important;
 color:var(--v-ink)!important
}
.identity-hero::before{
 content:"";position:absolute!important;inset:0!important;z-index:-1;
 pointer-events:none;opacity:1!important;
 background:
  linear-gradient(90deg,transparent 0 52%,color-mix(in srgb,var(--accent) 7%,transparent) 52.1%,transparent 52.2%),
  repeating-linear-gradient(0deg,transparent 0 43px,color-mix(in srgb,var(--accent) 5%,transparent) 44px 45px),
  repeating-linear-gradient(90deg,transparent 0 43px,color-mix(in srgb,var(--accent) 5%,transparent) 44px 45px)!important;
 transform:none!important
}
.identity-hero::after{content:"";position:absolute;inset:auto 0 0 0;height:4px;background:linear-gradient(90deg,var(--accent),transparent 70%);opacity:.62;pointer-events:none;transform:none!important}
.identity-copy{position:relative;z-index:1;max-width:760px;display:flex;flex-direction:column;align-items:flex-start;gap:0}
.identity-hero .identity-badge{
 display:inline-flex;align-items:center;gap:8px;padding:6px 11px!important;
 font:750 10px/1.4 var(--font-body)!important;letter-spacing:.13em!important;
 color:var(--accent)!important;
 background:var(--v-flair)!important;border:1px solid var(--v-border)!important;border-radius:30px!important;
 box-shadow:none!important
}
.identity-hero .identity-badge svg{width:14px;height:14px}
.identity-copy h1{
 max-width:760px;margin:15px 0 10px!important;
 font-weight:800!important;line-height:1.06!important;
 font-size:clamp(31px,3.5vw,49px)!important;
 letter-spacing:-.035em!important;color:var(--v-ink)!important;
 text-shadow:none!important
}
.identity-copy p{
 margin:0!important;max-width:540px;
 font:450 14px/1.65 var(--font-body)!important;
 color:var(--v-quiet)!important;text-shadow:none!important
}
.identity-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:21px!important}
.identity-actions .btn{min-height:40px!important;padding:9px 14px!important;white-space:nowrap}
.identity-download{border:0!important;color:var(--text-soft)!important;padding:9px 11px}
.identity-download:hover{color:var(--accent)!important}
.identity-art{
 position:relative;isolation:isolate;display:grid!important;place-items:center;
 width:min(100%,252px)!important;aspect-ratio:1;margin:auto;
 border-radius:50%!important;background:var(--v-flair);
 box-shadow:inset 0 0 0 1px var(--v-border)!important;
 overflow:visible
}
.identity-art::before{
 content:"";position:absolute;inset:11%;border:1px dashed color-mix(in srgb,var(--accent) 35%,var(--line))!important;
 border-radius:50%;box-shadow:none!important;transform:none!important;opacity:1!important
}
.identity-art::after{
 content:"";position:absolute;inset:-10%;border:1px solid color-mix(in srgb,var(--accent) 30%,transparent)!important;
 border-radius:50%!important;transform:none!important;opacity:.9!important
}
.identity-art img[data-brand-media]{
 position:relative!important;z-index:2;width:74%!important;height:74%!important;
 object-fit:contain;aspect-ratio:1;padding:0!important;
 border:0!important;border-radius:0!important;
 background:transparent!important;box-shadow:none!important;
 filter:none!important;animation:none!important
}
:root[data-emblem='vanguard'] .identity-art img[data-brand-media]{
 background:var(--accent)!important;
 -webkit-mask:url('/assets/sk-vanguard-mark.svg') center/contain no-repeat;
 mask:url('/assets/sk-vanguard-mark.svg') center/contain no-repeat
}
/* Server browsing is the primary job, so keep it high in the viewport. */
.modes{margin-top:16px!important;margin-bottom:12px!important;min-height:51px!important;
 border:1px solid var(--v-border)!important;border-radius:14px!important;
 background:var(--v-paper)!important;box-shadow:var(--v-shadow)!important}
.modes button{color:var(--text-soft)!important;border-radius:10px!important;font-size:12px!important}
.modes button.active{color:var(--accent)!important;background:var(--v-flair)!important}
.workspace{gap:17px!important}
.list-panel,.detail{
 background:var(--v-paper)!important;
 border:1px solid var(--v-border)!important;
 border-radius:15px!important;box-shadow:var(--v-shadow)!important
}
.list-tools .search, .search, #search,.open-only,
.list-caption select{border-color:var(--v-border)!important}
.room,.room-card{
 border:1px solid var(--v-border)!important;
 background:var(--v-raised)!important;
 border-radius:12px!important;box-shadow:none!important;
}
.room:hover,.room.selected{border-color:var(--accent)!important;background:var(--v-flair)!important}
.room h3{color:var(--text)!important;font-weight:800!important}
.room .mode-label,.room .age,.room .room-clans{color:var(--text-soft)!important}
.room .badge-open{background:var(--ok-soft)!important;color:var(--ok)!important}
.list-caption,.section-title,.detail-head{color:var(--text)!important}
#rooms>.room{contain:layout style paint}
#rooms>.room:focus-visible{outline:2px solid var(--accent)}
/* Observer: map is a functional instrument, not a decorative galaxy. */
#leaderboardDialog.team-spectator-dialog{
 background:var(--v-paper)!important;color:var(--text)!important;
 border:1px solid var(--v-border)!important;box-shadow:0 24px 80px rgba(0,0,0,.25)!important;
}
.team-spectator{color:var(--text)!important}
.spectator-layout{gap:16px!important;grid-template-columns:minmax(385px,42%) minmax(0,1fr)!important}
.spectator-toolbar,.spectator-footer{
 background:transparent!important;color:var(--text-soft)!important;border-color:var(--v-border)!important
}
.spectator-map-panel{
 background:var(--v-raised)!important;border:1px solid var(--v-border)!important;
 border-radius:14px!important;padding:13px!important;box-shadow:none!important
}
.spectator-map-heading{color:var(--text)!important}
.team-map-tools button{background:var(--v-paper)!important;color:var(--text-soft)!important;border:1px solid var(--v-border)!important;border-radius:8px!important}
.team-map-tools button[aria-pressed='true']{color:var(--accent)!important;background:var(--v-flair)!important;border-color:var(--accent)!important}
.spectator-map{background:var(--v-radar-bg)!important;border:1px solid var(--v-border)!important;border-radius:10px!important}
.spectator-map canvas{border-radius:9px}
.team-map-selection{background:var(--v-paper)!important;border-color:var(--v-border)!important;color:var(--text-soft)!important;border-radius:9px!important}
.team-map-note{color:var(--text-soft)!important;font-size:11px!important}
.team-map-legend{color:var(--text)!important}
.spectator-teams{gap:9px!important}
.spectator-team{padding:12px!important;min-width:0;background:var(--v-raised)!important;border:1px solid var(--v-border)!important;border-radius:13px!important;box-shadow:none!important}
.team-column-heading{border-color:var(--v-border)!important}
.team-column-heading h3{font-weight:800!important}
.team-faction,.team-roster-heading,.team-metric span{color:var(--text-soft)!important}
.team-metric,.team-roster li{border-color:var(--v-border)!important}
.team-player-select{border-radius:7px!important}
.team-player-select:hover,.team-player-select:focus-visible{background:var(--v-flair)!important}
.team-roster-empty{color:var(--muted)!important}
.leaderboard-room,.leaderboard-updated,.data-note{color:var(--text-soft)}
/* Fleet shares the same surface, type scale, borders and accents. */
.fleet-body{background:var(--bg)!important}
.fleet-sidebar{background:var(--v-paper)!important;border-right:1px solid var(--v-border)!important;box-shadow:none!important}
.fleet-sidebar .brand{color:var(--text)!important}
.fleet-sidebar nav a{border-radius:10px!important;color:var(--text-soft)!important}
.fleet-sidebar nav a.active,.fleet-sidebar nav a:hover{color:var(--accent)!important;background:var(--v-flair)!important}
.fleet-body .fleet-panel,.fleet-body .fleet-card,.fleet-body .fleet-section,.fleet-body .fleet-header{
 border-color:var(--v-border)!important;border-radius:var(--v-radius-sm)!important;
 box-shadow:none!important}
.sk-exclusions{background:var(--v-raised)!important;border-color:var(--v-border)!important}
.sk-exclusion-form input,.sk-exclusion-form select{background:var(--v-paper)!important;color:var(--text)!important}
/* Emblem picker is the same palette, including historic marks. */
.sk-emblem-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.sk-emblem-preferences{background:var(--v-raised)!important;border-color:var(--v-border)!important}
.sk-emblem-option{color:var(--text)!important;background:var(--v-paper)!important;border-color:var(--v-border)!important}
.sk-emblem-option[aria-pressed='true']{background:var(--v-flair)!important;border-color:var(--accent)!important;outline:0!important}
.sk-emblem-option[data-emblem-choice='vanguard'] img{
 background:var(--accent)!important;
 -webkit-mask:url('/assets/sk-vanguard-mark.svg') center/contain no-repeat;
 mask:url('/assets/sk-vanguard-mark.svg') center/contain no-repeat
}
/* On weak devices, less scrolling work and reduced texture complexity. */
@supports(content-visibility:auto){
 .spectator-team,.fleet-ship-card,.fleet-clan-list li{content-visibility:auto;contain-intrinsic-size:auto 280px}
}
@media(max-width:1100px){
 .identity-hero{grid-template-columns:minmax(0,1fr) 225px!important;padding:29px 28px!important}
 .identity-art{width:min(100%,215px)!important}
 .spectator-layout{grid-template-columns:minmax(320px,40%) minmax(0,1fr)!important}
}
@media(max-width:780px){
 .identity-hero{grid-template-columns:1fr!important;text-align:left!important;padding:25px!important}
 .identity-copy{text-align:left!important;align-items:flex-start}
 .identity-art{width:160px!important;grid-row:1;margin:0!important}
 .identity-copy h1{font-size:clamp(30px,7vw,43px)!important}
 .identity-actions{justify-content:flex-start!important}
 .spectator-layout{grid-template-columns:minmax(0,1fr)!important}
 .spectator-map-panel{max-width:640px}
 .sk-emblem-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:540px){
 .identity-hero{padding:21px!important;border-radius:15px!important;gap:13px!important}
 .identity-art{width:124px!important}
 .identity-copy h1{font-size:30px!important;margin:12px 0 9px!important}
 .identity-copy p{font-size:13px!important}
 .identity-actions{gap:6px;margin-top:15px!important}
 .identity-actions .btn{padding:8px 11px!important}
 .brand-symbol{width:40px!important;height:40px!important}
 .brand-name{font-size:24px!important}
 .brand-sub{font-size:8px!important}
 .spectator-map-panel{padding:8px!important}
 .spectator-team{padding:10px!important}
}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}
}


/* ORIGINAL CSS: css/sk-royal-brand.css */
/* Royal SK is the single official emblem. 11 palettes × light/dark.
   The original crest stays crisp, and the theme's accent supplies its glow. */
:root{
  --royal-hue: none;
  --royal-glow: color-mix(in srgb,var(--accent) 28%,transparent);
}
:root[data-palette="blue"]{--royal-hue:none}
:root[data-palette="purple"]{--royal-hue:hue-rotate(66deg) saturate(1.08)}
:root[data-palette="yellow"]{--royal-hue:hue-rotate(218deg) saturate(1.14)}
:root[data-palette="mint"]{--royal-hue:hue-rotate(-58deg) saturate(1.12)}
:root[data-palette="rose"]{--royal-hue:hue-rotate(126deg) saturate(1.13)}
:root[data-palette="red"]{--royal-hue:hue-rotate(160deg) saturate(1.16)}
:root[data-palette="black"]{--royal-hue:grayscale(.82) brightness(1.2)}
:root[data-palette="egypt"]{--royal-hue:hue-rotate(215deg) saturate(1.06)}
:root[data-palette="turkey"]{--royal-hue:hue-rotate(160deg) saturate(1.16)}
:root[data-palette="france"]{--royal-hue:hue-rotate(20deg)}
:root[data-palette="russia"]{--royal-hue:hue-rotate(-13deg)}
:root[data-emblem="royal"] img.brand-symbol {
  width:48px!important;height:48px!important;border-radius:14px!important;
  background:color-mix(in srgb,var(--surface) 90%,var(--accent) 10%)!important;
  padding:2px!important;
  border:1px solid var(--v-border,var(--line))!important;
  filter:var(--royal-hue)!important;
  object-fit:contain!important;
  -webkit-mask:none!important;mask:none!important;
}
:root[data-emblem="royal"] .identity-art {
  background:color-mix(in srgb,var(--surface) 70%,var(--accent) 30%)!important;
  box-shadow:inset 0 0 0 1px var(--v-border,var(--line)),0 0 25px var(--royal-glow)!important;
}
:root[data-emblem="royal"] .identity-art img[data-brand-media] {
  display:block;width:92%!important;height:92%!important;
  padding:0!important;border:0!important;
  background:transparent!important;filter:var(--royal-hue)!important;
  -webkit-mask:none!important;mask:none!important;
}
:root[data-emblem="royal"] .identity-art::before{
  border-color:color-mix(in srgb,var(--accent) 38%,transparent)!important;
}
.sk-emblem-preferences{
  background:var(--v-raised,var(--surface))!important;
  border:1px solid var(--v-border,var(--line))!important;
  border-radius:14px!important;
}
.sk-official-emblem{display:flex;gap:14px;align-items:center}
.sk-official-emblem img{
  width:66px;height:66px;border-radius:14px;object-fit:contain;
  background:color-mix(in srgb,var(--surface) 80%,var(--accent) 20%);
  filter:var(--royal-hue)
}
.sk-official-emblem strong{font-size:15px;color:var(--text)}
.sk-official-emblem p{margin:5px 0 0}
.sk-emblem-grid,.sk-emblem-option{display:none!important}
@media(max-width:540px){
  :root[data-emblem="royal"] img.brand-symbol{width:42px!important;height:42px!important}
  .sk-official-emblem img{width:55px;height:55px}
}
/* A compact reference-like radar: no fake decorative asteroid field. */
.spectator-map-panel.sk-reference-map-panel{background:var(--v-raised,var(--surface))!important}
.spectator-map-panel.sk-reference-map-panel .spectator-map{
  background:#0b1019!important;border-radius:9px!important;
}
.spectator-map-panel.sk-reference-map-panel .team-map-tools button{
  min-width:52px;font-size:11px!important;
}
.spectator-map-panel.sk-reference-map-panel .team-map-tools button:disabled{
  opacity:.5!important;cursor:not-allowed!important;
}
.spectator-map-panel.sk-reference-map-panel .team-map-note {
  line-height:1.5!important;
}


/* ORIGINAL CSS: css/sk-natural-logo.css */
/* SK royal logo: natural metallic crest, not an app-style icon.
   All 11 palettes share the original blue/steel artwork; the surrounding
   orbit uses theme accents without recoloring the user's source image. */
:root {
  --sk-logo-halo:color-mix(in srgb,var(--accent) 26%,transparent);
  --sk-logo-orbit:color-mix(in srgb,var(--accent) 36%,transparent);
}
:root[data-emblem="royal"] img.brand-symbol,
:root[data-emblem="royal"] .fleet-sidebar img.brand-symbol {
  box-sizing:content-box!important;
  width:55px!important;height:55px!important;max-width:55px!important;
  display:block!important;flex:none!important;object-fit:contain!important;
  background:transparent!important;border:0!important;padding:0!important;
  border-radius:0!important;outline:0!important;box-shadow:none!important;
  filter:none!important;-webkit-mask:none!important;mask:none!important;
}
:root[data-emblem="royal"] .identity-hero {
  isolation:isolate;
}
:root[data-emblem="royal"] .identity-art {
  width:min(100%,290px)!important;
  height:auto!important;min-height:0!important;aspect-ratio:1!important;
  margin:auto!important;padding:0!important;
  overflow:visible!important;
  background:none!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;filter:none!important;
}
:root[data-emblem="royal"] .identity-art::before {
  content:"";position:absolute!important;inset:12% -8%!important;
  opacity:.5!important;pointer-events:none!important;
  border:1px solid var(--sk-logo-orbit)!important;
  border-radius:50%!important;
  transform:rotate(-23deg) scale(1.08,.73);
  background:transparent!important;box-shadow:none!important;
  animation:none!important;
}
:root[data-emblem="royal"] .identity-art::after {
  content:"";position:absolute!important;inset:21% 2%!important;
  opacity:.28!important;pointer-events:none!important;
  border:1px solid var(--sk-logo-orbit)!important;
  border-radius:50%!important;
  transform:rotate(23deg) scale(1.11,.76);
  background:transparent!important;box-shadow:none!important;
  animation:none!important;
}
:root[data-emblem="royal"] .identity-art img[data-brand-media] {
  display:block!important;position:relative!important;z-index:3!important;
  width:100%!important;height:100%!important;aspect-ratio:1!important;
  max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;object-position:center!important;
  background:transparent!important;border:0!important;border-radius:0!important;
  padding:0!important;margin:0!important;
  filter:none!important;-webkit-mask:none!important;mask:none!important;
  box-shadow:none!important;transform:none;animation:none!important;
}
:root[data-emblem="royal"] .identity-art img[data-brand-media]:hover {
  transform:none!important
}
:root[data-emblem="royal"] .sk-official-emblem img {
  width:68px!important;height:68px!important;
  object-fit:contain!important;background:transparent!important;
  border:0!important;border-radius:0!important;
  padding:0!important;filter:none!important;box-shadow:none!important;
}
:root[data-emblem="royal"] .sk-official-emblem {
  border:0!important;padding:0!important;background:transparent!important;
}
@media(max-width:1100px){
  :root[data-emblem="royal"] .identity-art {width:min(100%,244px)!important}
}
@media(max-width:780px){
  :root[data-emblem="royal"] .identity-art {width:min(100%,178px)!important;margin:0!important}
}
@media(max-width:540px){
  :root[data-emblem="royal"] .brand-symbol,
  :root[data-emblem="royal"] .fleet-sidebar .brand-symbol {
    width:43px!important;height:43px!important;max-width:43px!important
  }
  :root[data-emblem="royal"] .identity-art {width:min(100%,142px)!important}
}
@media(prefers-reduced-motion:reduce){
  :root[data-emblem="royal"] .identity-art::before,
  :root[data-emblem="royal"] .identity-art::after{animation:none!important}
}


/* ORIGINAL CSS: css/sk-emblem-effects.css */
/* SK Royal crest: purely composited transform/opacity motion.
 * Animates ONLY in user-selected Animated mode; Still/reduced-motion are static.
 * No filters, animated raster decoding, timers, layout or Canvas work.
 */
@keyframes sk-crest-float {
  0%,100% { transform:translate3d(0,0,0) scale(1); }
  50% { transform:translate3d(0,-7px,0) scale(1.02); }
}
@keyframes sk-crest-orbit-a {
  from { transform:rotate(-23deg) scale(1.08,.73); }
  to { transform:rotate(337deg) scale(1.08,.73); }
}
@keyframes sk-crest-orbit-b {
  from { transform:rotate(23deg) scale(1.11,.76); }
  to { transform:rotate(-337deg) scale(1.11,.76); }
}
@keyframes sk-crest-orbit-pulse {
  0%,100% { opacity:.18; }
  50% { opacity:.46; }
}
:root[data-emblem="royal"][data-animation="on"] .identity-art img[data-brand-media] {
  animation:sk-crest-float 7.5s ease-in-out infinite!important;
  will-change:transform;
}
:root[data-emblem="royal"][data-animation="on"] .identity-art::before {
  animation:sk-crest-orbit-a 30s linear infinite!important;
}
:root[data-emblem="royal"][data-animation="on"] .identity-art::after {
  animation:sk-crest-orbit-b 35s linear infinite,sk-crest-orbit-pulse 6.5s ease-in-out infinite!important;
}
:root[data-emblem="royal"][data-animation="on"] img.brand-symbol {
  transition:transform .22s ease!important;
}
:root[data-emblem="royal"][data-animation="on"] .brand:hover img.brand-symbol {
  transform:translate3d(0,-2px,0) scale(1.05)!important;
}
:root[data-emblem="royal"][data-animation="off"] .identity-art img[data-brand-media],
:root[data-emblem="royal"][data-animation="off"] .identity-art::before,
:root[data-emblem="royal"][data-animation="off"] .identity-art::after {
  animation:none!important;
  will-change:auto!important;
}
.team-map-attribution {
  display:flex;flex-wrap:wrap;align-items:center;gap:8px;
  font-size:10px;opacity:.75;margin-top:5px;
}
.team-map-attribution a {color:var(--text-soft);text-decoration:underline;text-underline-offset:2px}
.team-map-attribution a:hover {color:var(--accent)}
@media (prefers-reduced-motion:reduce) {
  :root[data-emblem="royal"] .identity-art img[data-brand-media],
  :root[data-emblem="royal"] .identity-art::before,
  :root[data-emblem="royal"] .identity-art::after,
  :root[data-emblem="royal"] img.brand-symbol {
    animation:none!important;transition:none!important;will-change:auto!important;
  }
  :root[data-emblem="royal"] .brand:hover img.brand-symbol {transform:none!important}
}


/* ORIGINAL CSS: css/sk-premium-motion.css */
/* SK / Aurora Motion System v1
 * Design tokens come from the currently selected theme.
 * Transform and opacity are the only animated CSS properties.
 * Never animates a full-screen background, text filter, rock layer, or Canvas.
 * Opt-in: data-animation="on" on the root only.
 */
:root{
  --sk-motion-accent:color-mix(in srgb,var(--accent) 67%,white 33%);
  --sk-motion-soft:color-mix(in srgb,var(--accent) 19%,transparent);
  --sk-motion-line:color-mix(in srgb,var(--accent) 42%,transparent);
}
@keyframes sk-motion-hero-sweep{
  0%,18%{opacity:0;transform:translate3d(-145%,0,0) skewX(-22deg)}
  24%{opacity:.14}
  42%{opacity:0;transform:translate3d(355%,0,0) skewX(-22deg)}
  100%{opacity:0;transform:translate3d(355%,0,0) skewX(-22deg)}
}
@keyframes sk-motion-aurora{
  0%,100%{opacity:.16;transform:translate3d(-3%,0,0) scale(.94)}
  50%{opacity:.42;transform:translate3d(4%,-3%,0) scale(1.06)}
}
@keyframes sk-motion-glint{
  0%,100%{opacity:.14;transform:translate3d(0,0,0)}
  50%{opacity:.49;transform:translate3d(0,-3px,0)}
}
@keyframes sk-motion-rise{
  from{opacity:.35;transform:translate3d(0,8px,0)}
  to{opacity:1;transform:translate3d(0,0,0)}
}
@keyframes sk-motion-emblem-aura{
  0%,100%{opacity:.28;transform:scale(.96)}
  50%{opacity:.59;transform:scale(1.04)}
}
:root[data-animation='on'] .identity-hero{
  isolation:isolate;
}
:root[data-animation='on'] .identity-hero::after{
  content:"";position:absolute;z-index:0;pointer-events:none;
  width:32%;height:190%;left:0;top:-45%;
  background:linear-gradient(90deg,transparent 5%,color-mix(in srgb,var(--hero-accent,var(--accent)) 38%,transparent) 49%,transparent 95%);
  opacity:0;transform:translate3d(-145%,0,0) skewX(-22deg);
  animation:sk-motion-hero-sweep 14s ease-in-out infinite;
}
:root[data-animation='on'] .identity-hero .identity-copy,
:root[data-animation='on'] .identity-hero .identity-art{
  position:relative;z-index:1;
}
:root[data-animation='on'] .identity-art{
  isolation:isolate;
}
:root[data-animation='on'] .identity-art::before{
  box-shadow:0 0 0 1px var(--sk-motion-soft),0 0 22px var(--sk-motion-soft)!important;
}
:root[data-animation='on'] .identity-art::after{
  border-style:dashed!important;border-width:1px!important;
}
:root[data-animation='on'] .identity-copy .identity-badge{
  transition:transform .22s ease,border-color .22s ease!important;
}
:root[data-animation='on'] .identity-copy .identity-badge:hover{
  transform:translate3d(0,-2px,0);border-color:var(--accent)!important;
}
:root[data-animation='on'] .identity-actions .btn{
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease!important;
}
:root[data-animation='on'] .identity-actions .btn:hover{
  transform:translate3d(0,-2px,0);
  box-shadow:0 6px 20px var(--sk-motion-soft);
}
:root[data-animation='on'] .identity-hero .identity-art img{
  backface-visibility:hidden;
}
:root[data-animation='on'] .header-right .appearance-controls button,
:root[data-animation='on'] .home-live-controls button,
:root[data-animation='on'] .home-preferences{
  transition:transform .18s ease,border-color .18s ease!important;
}
:root[data-animation='on'] .header-right button:hover{
  transform:translate3d(0,-1px,0);
}
/* Server browser: lightweight hover polish; no animation on repeated data renders. */
:root[data-animation='on'] :is(.room,.room-card,.detail,.list-panel,.spectator-team){
  transition:transform .20s ease,border-color .20s ease,box-shadow .20s ease!important;
}
:root[data-animation='on'] :is(.room,.room-card):hover{
  transform:translate3d(2px,-2px,0)!important;
  box-shadow:0 8px 20px rgba(0,0,0,.10),0 0 0 1px var(--sk-motion-line)!important;
}
:root[data-animation='on'] .detail:hover{
  box-shadow:0 8px 22px rgba(0,0,0,.09),inset 0 0 0 1px var(--sk-motion-line)!important;
}
:root[data-animation='on'] :is(.modes,.regions,.member-mode-filters) button{
  transition:transform .18s ease,border-color .18s ease!important;
}
:root[data-animation='on'] :is(.modes,.regions,.member-mode-filters) button:not(:disabled):hover{
  transform:translate3d(0,-2px,0);
}
:root[data-animation='on'] :is(.modes,.regions) button[aria-pressed='true']{
  box-shadow:inset 0 -2px 0 var(--accent)!important;
}
/* Spectator dialog: appears once; SVG markers move by CSS, not Canvas frames. */
:root[data-animation='on'] #leaderboardDialog[open]{
  animation:sk-motion-rise .30s ease-out both;
}
:root[data-animation='on'] .team-map-pilot{
  transition:opacity .12s ease!important;
}
:root[data-animation='on'] .spectator-team:hover{
  border-top-color:var(--accent)!important;
}
:root[data-animation='on'] .team-map-tools button:not(:disabled):hover{
  transform:translate3d(0,-1px,0);
}
:root[data-animation='on'] .team-map-base rect{
  transition:stroke-width .18s ease,opacity .18s ease;
}
/* Fleet Tools, hosted room controls, ship explorer, clan settings, and overlays. */
:root[data-animation='on'] .fleet-sidebar nav a,
:root[data-animation='on'] .fleet-sidebar-end a,
:root[data-animation='on'] .fleet-sidebar-end button{
  transition:transform .18s ease,border-color .18s ease,background-color .18s ease!important;
}
:root[data-animation='on'] .fleet-sidebar nav a:hover,
:root[data-animation='on'] .fleet-sidebar-end a:hover,
:root[data-animation='on'] .fleet-sidebar-end button:hover{
  transform:translate3d(2px,-1px,0);
}
:root[data-animation='on'] .fleet-main :is(.fleet-status,.fleet-panel,.fleet-card,.host-room-card,.room-console,.fleet-section,.sk-duel-card){
  transition:border-color .2s ease,box-shadow .2s ease!important;
}
:root[data-animation='on'] .fleet-main :is(.fleet-panel,.fleet-card,.host-room-card,.sk-duel-card):hover{
  box-shadow:0 8px 24px rgba(0,0,0,.09),inset 0 0 0 1px var(--sk-motion-soft);
}
:root[data-animation='on'] .fleet-main :is(button,.btn):not(:disabled):hover{
  transform:translate3d(0,-1px,0);
}
:root[data-animation='on'] .fleet-toast:not(:empty),
:root[data-animation='on'] .owner-presence-panel:not([hidden]),
:root[data-animation='on'] .preferences-dialog[open],
:root[data-animation='on'] #shipDialog[open]{
  animation:sk-motion-rise .28s ease-out both;
}
:root[data-animation='on'] :is(.sk2-glyph,.player-ship-icon,.team-player-ship){
  transition:transform .20s ease!important;
}
:root[data-animation='on'] :is(.fleet-sidebar nav a,.team-player-select):hover :is(.sk2-glyph,.player-ship-icon,.team-player-ship){
  transform:translate3d(0,-2px,0) scale(1.04);
}
:root[data-animation='on'] :is(.btn-primary,.fleet-recheck):not(:disabled){
  transition:transform .2s ease,box-shadow .2s ease!important;
}
:root[data-animation='on'] :is(.btn-primary,.fleet-recheck):not(:disabled):hover{
  transform:translate3d(0,-2px,0);
  box-shadow:0 9px 25px var(--sk-motion-soft)!important;
}
/* In Still and reduced-motion: no newly introduced decoration. */
:root[data-animation='off'] .identity-hero::after{content:none!important}
:root[data-animation='off'] .team-map-pilot{transition:none!important}
@media (hover:none){
  :root[data-animation='on'] :is(.room,.room-card,.detail,.fleet-sidebar nav a):hover{
    transform:none!important;
  }
}
@media (prefers-reduced-motion:reduce){
  :root[data-animation='on'] .identity-hero::after{content:none!important}
  :root[data-animation='on'] :is(.identity-hero,.identity-art,.identity-copy,.identity-badge,
    .identity-actions .btn,.room,.room-card,.detail,.list-panel,.spectator-team,
    .team-map-pilot,.fleet-sidebar nav a,.fleet-sidebar-end a,.fleet-main button,
    .fleet-card,.fleet-toast,.preferences-dialog,#leaderboardDialog[open]){
    animation:none!important;transition:none!important;
  }
}


/* ORIGINAL CSS: css/sk-customization.css */
/* SK customization system: all accents from current theme, no idle JavaScript loops. */
@font-face {
  font-family:'SK Space Grotesk';
  src:url('../assets/fonts/space-grotesk-variable.ttf') format('truetype');
  font-style:normal;font-weight:300 700;font-display:swap;
}
@font-face {
  font-family:'SK Rajdhani';
  src:url('../assets/fonts/rajdhani-medium.ttf') format('truetype');
  font-style:normal;font-weight:500;font-display:swap;
}
@font-face {
  font-family:'SK Rajdhani';
  src:url('../assets/fonts/rajdhani-bold.ttf') format('truetype');
  font-style:normal;font-weight:700;font-display:swap;
}
/* Signature: structured gaming headlines, legible dashboard, distinct pilots. */
:root[data-typography='signature'] {
  --font-body:'SK Space Grotesk','SK Player',Tahoma,sans-serif;
  --font-display:'SK Room','SK Rajdhani',Tahoma,sans-serif;
  --font-hero:'SK Room','SK Rajdhani',Tahoma,sans-serif;
  --font-room:'SK Room','SK Space Grotesk',Tahoma,sans-serif;
  --font-player:'SK Player','SK Space Grotesk',Tahoma,sans-serif;
  --sk2-type-display:'SK Room','SK Rajdhani',Tahoma,sans-serif;
  --sk2-type-body:'SK Space Grotesk','SK Player',Tahoma,sans-serif;
  --sk2-type-label:'SK Rajdhani','SK Room',Tahoma,sans-serif;
}
:root[data-typography='signature'] .identity-hero h1 {
  font-family:var(--sk2-type-display)!important;
  font-weight:700;letter-spacing:-.015em!important;
}
:root[data-typography='signature'] :is(.brand-name,.fleet-location strong,.skd-heading h1){
  font-family:var(--sk2-type-display)!important;font-weight:700;letter-spacing:.025em!important;
}
:root[data-typography='signature'] :is(.regions button,.modes button,.room h3,.room-name,.detail-head h2,.hosted-card h2){
  font-family:var(--font-room)!important;
}
.type-set-card[data-typography-choice='signature']{
  --font-room:'SK Room',Tahoma,sans-serif;
  --font-player:'SK Player',Tahoma,sans-serif;
}
:root[data-sk-custom-font='on'] {
  --font-body:'SK Uploaded Font',Tahoma,Arial,sans-serif!important;
  --font-display:'SK Uploaded Font',Tahoma,Arial,sans-serif!important;
  --font-hero:'SK Uploaded Font',Tahoma,Arial,sans-serif!important;
  --font-room:'SK Uploaded Font',Tahoma,Arial,sans-serif!important;
  --font-player:'SK Uploaded Font',Tahoma,Arial,sans-serif!important;
  --sk2-type-display:'SK Uploaded Font',Tahoma,Arial,sans-serif!important;
  --sk2-type-body:'SK Uploaded Font',Tahoma,Arial,sans-serif!important;
  --sk2-type-label:'SK Uploaded Font',Tahoma,Arial,sans-serif!important;
}
:root[data-sk-custom-font='on'] :is(.room h3,.room-name,.detail-head h2,.brand-name,.identity-hero h1,.fleet-location strong,.skd-heading h1,.app .hero h1){
  font-family:'SK Uploaded Font',Tahoma,Arial,sans-serif!important;
}
:root[data-sk-custom-font='on'] :is(.app,.app button,.app input,.app .bubble,.app .meta){
  font-family:'SK Uploaded Font',Tahoma,Arial,sans-serif!important;
}
:root[data-typography='signature'] .app {font-family:'SK Space Grotesk','SK Player',Tahoma,sans-serif}
:root[data-typography='signature'] .app h1 {font-family:'SK Room','SK Rajdhani',Tahoma,sans-serif}
:root[data-typography='signature'] .app button,
:root[data-typography='signature'] .app input {font-family:'SK Space Grotesk',Tahoma,sans-serif}
/* Decorated surfaces retain their own layout and interactions. */
.sk-customizable-banner {
  position:relative;isolation:isolate;overflow:hidden;
  --sk-banner-accent:var(--hero-accent,var(--accent,#9de5ff));
  --sk-banner-ink:color-mix(in srgb,var(--sk-banner-accent) 69%,transparent);
}
.app > .hero.sk-customizable-banner {--sk-banner-accent:var(--aqua,#9de5ff)}
.sk-customizable-banner > :not(.sk-tactical-lines):not(.sk-personal-banner) {
  position:relative;z-index:1;
}
.sk-personal-banner {
  position:absolute;inset:0;z-index:0;pointer-events:none;
  background-size:cover;background-position:center;background-repeat:no-repeat;
  opacity:0;transition:opacity .24s ease;
}
.sk-personal-banner::after {content:'';position:absolute;inset:0;background:linear-gradient(95deg,color-mix(in srgb,var(--hero-bg,var(--surface,#14243e)) 86%,transparent),color-mix(in srgb,var(--hero-bg,var(--surface,#14243e)) 38%,transparent))}
:root[data-sk-user-banner='on'] .sk-personal-banner {opacity:1}
.sk-tactical-lines {
  position:absolute;inset:0;z-index:2;
  overflow:hidden;border-radius:inherit;
  pointer-events:none;user-select:none;
  opacity:1;
}
:root[data-sk-banner-lines='off'] .sk-tactical-lines {display:none!important}
.sk-tactical-lines::before {
  content:'';position:absolute;inset:3px;border:1px solid color-mix(in srgb,var(--sk-banner-accent) 27%,transparent);
  clip-path:polygon(0 0,32% 0,32% 2px,68% 2px,68% 0,100% 0,100% 100%,0 100%);
}
.sk-tactical-lines::after {
  content:'';position:absolute;inset:11px;
  border:1px dashed color-mix(in srgb,var(--sk-banner-accent) 17%,transparent);
  border-radius:inherit;opacity:.75;
}
.sk-trace {position:absolute;display:block;background:var(--sk-banner-ink);pointer-events:none;opacity:.7}
.sk-trace-top{top:0;left:5%;width:64%;height:2px;transform-origin:left center;
  background:linear-gradient(90deg,transparent,var(--sk-banner-accent),transparent)}
.sk-trace-bottom{bottom:0;right:7%;width:50%;height:2px;transform-origin:right center;
  background:linear-gradient(90deg,transparent,var(--sk-banner-accent),transparent)}
.sk-trace-left{left:0;top:13%;height:62%;width:2px;transform-origin:top center;
  background:linear-gradient(transparent,var(--sk-banner-accent),transparent)}
.sk-trace-right{right:0;bottom:8%;height:73%;width:2px;transform-origin:bottom center;
  background:linear-gradient(transparent,var(--sk-banner-accent),transparent)}
.sk-trace-scan{top:26%;left:-28%;height:1px;width:52%;opacity:.24;
  transform:rotate(-24deg);background:linear-gradient(90deg,transparent,var(--sk-banner-accent),transparent)}
.sk-trace-cross{top:12%;right:8%;width:68px;height:68px;opacity:.25;background:
  linear-gradient(90deg,transparent 48%,var(--sk-banner-accent) 49%,var(--sk-banner-accent) 51%,transparent 52%),
  linear-gradient(transparent 48%,var(--sk-banner-accent) 49%,var(--sk-banner-accent) 51%,transparent 52%)}
.sk-trace-corner{width:65px;height:34px;right:7px;bottom:7px;opacity:.9;
  background:none;border-right:2px solid var(--sk-banner-accent);border-bottom:2px solid var(--sk-banner-accent);
  border-bottom-right-radius:6px}
:root[data-animation='on'][data-sk-banner-lines='on'] .sk-trace-top {
  animation:sk-trace-x 5.9s ease-in-out infinite alternate}
:root[data-animation='on'][data-sk-banner-lines='on'] .sk-trace-bottom {
  animation:sk-trace-x 7.1s ease-in-out infinite alternate-reverse}
:root[data-animation='on'][data-sk-banner-lines='on'] .sk-trace-left {
  animation:sk-trace-y 6.8s ease-in-out infinite alternate}
:root[data-animation='on'][data-sk-banner-lines='on'] .sk-trace-right {
  animation:sk-trace-y 6.2s ease-in-out infinite alternate-reverse}
:root[data-animation='on'][data-sk-banner-lines='on'] .sk-trace-cross {
  animation:sk-trace-beacon 8s ease-in-out infinite}
:root[data-animation='on'][data-sk-banner-lines='on'] .sk-trace-scan {
  animation:sk-trace-sweep 12s ease-in-out infinite}
@keyframes sk-trace-x {from{transform:scaleX(.33);opacity:.28}to{transform:scaleX(1);opacity:.93}}
@keyframes sk-trace-y {from{transform:scaleY(.26);opacity:.26}to{transform:scaleY(1);opacity:.88}}
@keyframes sk-trace-beacon {0%,100%{transform:rotate(0);opacity:.18}50%{transform:rotate(90deg);opacity:.45}}
@keyframes sk-trace-sweep {0%,35%{transform:translateX(0) rotate(-24deg);opacity:0}52%{opacity:.37}75%,100%{transform:translateX(300%) rotate(-24deg);opacity:0}}
/* One DOM node per actual pointer action, removed after its 440 ms animation. */
.sk-click-burst {
  position:fixed!important;z-index:2147483600!important;width:38px;height:38px;
  left:0;top:0;margin:-19px 0 0 -19px;pointer-events:none!important;
  border:1.5px solid var(--accent,#9de5ff);border-radius:50%;
  box-shadow:0 0 0 2px color-mix(in srgb,var(--accent,#9de5ff) 22%,transparent);
  animation:sk-click-flare .44s cubic-bezier(.12,.62,.22,1) both;
}
.sk-click-burst::before,.sk-click-burst::after{
  content:'';position:absolute;inset:-11px;border-radius:50%;
  border:1px dashed var(--accent,#9de5ff);opacity:.65
}
.sk-click-burst::after{
  inset:7px;border-style:solid;opacity:.8;
  background:radial-gradient(circle,var(--accent,#9de5ff),transparent 60%);
}
@keyframes sk-click-flare{
  from{transform:scale(.25);opacity:.95}
  65%{opacity:.68}
  to{transform:scale(1.5);opacity:0}
}
:root[data-sk-click-effects='off'] .sk-click-burst {display:none!important}
/* Extra controls in the same preferences dialog as the existing themes. */
.sk-customization-settings{
  margin-top:27px;padding:19px;border:1px solid var(--line,rgba(150,180,200,.3));
  border-radius:17px;background:var(--surface-muted,rgba(255,255,255,.035));
  color:var(--text,#e9f1ff);
}
.sk-customization-settings h3 {margin:0 0 6px;font-size:17px}
.sk-customization-settings .preferences-description{margin:5px 0 14px}
.sk-setting-row{display:flex;gap:14px;align-items:center;justify-content:space-between;
  padding:13px 0;border-bottom:1px solid var(--line,rgba(150,180,200,.22))}
.sk-setting-row strong,.sk-setting-upload>strong {display:block;font-size:13px}
.sk-setting-row small,.sk-setting-upload small{display:block;margin-top:4px;color:var(--text-soft,#a7bacf);font-size:11px;line-height:1.5}
.sk-setting-row button,.sk-upload-actions button,.sk-setting-upload label{
  border:1px solid var(--line-strong,var(--line,#46617b));border-radius:10px;
  padding:8px 12px;background:var(--surface,#162339);color:var(--text,#e9f1ff);
  font-weight:700;cursor:pointer;font-size:12px
}
.sk-setting-row button[aria-pressed='true'],.sk-upload-actions button[aria-pressed='true']{
  background:var(--accent-soft,rgba(90,150,255,.16));border-color:var(--accent,#9de5ff);color:var(--accent,#9de5ff)}
.sk-setting-upload{padding:16px 0 4px;border-bottom:1px solid var(--line,rgba(150,180,200,.22))}
.sk-setting-upload:last-child{border-bottom:0}
.sk-setting-upload label{display:inline-flex;margin:12px 0 5px}
.sk-setting-upload input[type='file']{display:block;width:100%;max-width:100%;font-size:11px;color:var(--text-soft,#a7bacf)}
.sk-setting-upload input[type='file']::file-selector-button{display:none}
.sk-upload-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.sk-upload-status{min-height:1.3em;font-size:12px;color:var(--text-soft,#a7bacf)}
@media(max-width:520px){
  .sk-customization-settings{padding:13px}
  .sk-setting-row{align-items:flex-start}
  .sk-trace-cross{width:38px;height:38px}
}
@media(prefers-reduced-motion:reduce){
  .sk-trace,.sk-click-burst{animation:none!important}
  .sk-click-burst{display:none!important}
  .sk-personal-banner{transition:none!important}
}
:root[data-animation='off'] .sk-trace,
:root[data-animation='off'] .sk-click-burst{animation:none!important}


/* ORIGINAL CSS: css/sk-refinements.css */
/* SK // POLISH 2026-11-23 — no work on the render-critical map per frame. */
.team-map-pilot {transition:opacity .1s ease!important}
.team-map-pilot .team-map-ship{
  font: 16px/1 'SK Vanilla Ships'!important;
  fill:currentColor;stroke:rgba(2,8,15,.72);stroke-width:.7;
  paint-order:stroke fill;pointer-events:none;
}
.team-map-svg[data-marker='ships'] .team-map-pilot:has(.team-map-ship) :is(.team-map-dot,.team-map-cross){display:none}
.team-map-svg:not([data-marker='ships']) .team-map-pilot .team-map-ship {display:none}
.team-map-svg[data-marker='ships'] .team-map-pilot:not(:has(.team-map-ship)) .team-map-cross{display:block}
.team-map-svg[data-marker='ships'] .team-map-pilot:not(:has(.team-map-ship)) .team-map-dot{display:none}
.team-map-svg[data-marker='ships'] .team-map-pilot .team-map-focus{stroke:rgba(255,255,255,.8);stroke-width:1.15}
.team-map-pilot:is(:hover,:focus-visible,.is-map-selected) .team-map-ship{stroke:#eaf7ff;stroke-width:1.2}
/* Theme identity: more separation among layers without high-contrast blocks. */
:root {
  --sk-panel-edge:color-mix(in srgb,var(--accent) 13%,var(--line));
  --sk-raised:color-mix(in srgb,var(--surface) 93%,var(--accent-soft));
  --sk-soft-surface:color-mix(in srgb,var(--surface-muted) 96%,var(--surface));
}
:root[data-theme='dark'] {
  --sk-panel-edge:color-mix(in srgb,var(--accent) 13%,var(--line));
  --sk-raised:color-mix(in srgb,var(--surface) 94%,var(--accent-soft));
  --sk-soft-surface:color-mix(in srgb,var(--surface-muted) 93%,var(--surface));
}
:is(.list-panel,.detail,.spectator-team,.skd-card,.fleet-panel,.fleet-card,.preferences-dialog){
  border-color:var(--sk-panel-edge)!important;
}
:is(.list-panel,.detail,.spectator-team,.fleet-panel,.fleet-card) {
  background:var(--sk-raised)!important;
}
.room,.room-card,.team-player-select,.skd-info-banner,.moderation-table{
  background:var(--sk-soft-surface);
}
.room:hover,.room.selected{border-color:color-mix(in srgb,var(--accent) 50%,var(--line))!important}
:root[data-theme='dark'] :is(.spectator-team,.list-panel,.detail){
  box-shadow:inset 0 1px 0 color-mix(in srgb,var(--text) 3%,transparent);
}
:root[data-theme='dark'] :is(.spectator-team,.detail) :is(p,small,.team-player-score,.team-metric span){
  color:var(--text-soft);
}
/* New restrained HUD flare: purposeful edge sweeps, not a heavy particle field. */
.sk-customizable-banner{--sk-signal:var(--hero-accent,var(--accent,#9de5ff))}
:root[data-sk-banner-lines='on'] .sk-tactical-lines::before {
  border:1px solid color-mix(in srgb,var(--sk-signal) 44%,transparent);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--sk-signal) 6%,transparent);
}
:root[data-sk-banner-lines='on'] .sk-tactical-lines::after {
  background:linear-gradient(90deg,transparent 0 12%,color-mix(in srgb,var(--sk-signal) 22%,transparent) 15%,transparent 25% 75%,color-mix(in srgb,var(--sk-signal) 21%,transparent) 83%,transparent 87%);
  background-size:175% 100%;
  border-color:color-mix(in srgb,var(--sk-signal) 25%,transparent);
}
:root[data-animation='on'][data-sk-banner-lines='on'] .sk-tactical-lines::after{
  animation:sk-edge-current 9s linear infinite;
}
:root[data-animation='on'][data-sk-banner-lines='on'] .sk-trace-corner{
  animation:sk-corner-light 5.8s ease-in-out infinite;
}
:root[data-animation='on'][data-sk-banner-lines='on'] .sk-trace-cross{
  animation:sk-cross-signal 12s ease-in-out infinite;
}
.skd-seal{position:relative;isolation:isolate}
.skd-seal::before,.skd-seal::after{
  content:'';position:absolute;inset:-5px;border-radius:14px;
  border:1px solid color-mix(in srgb,var(--accent) 55%,transparent);
  pointer-events:none;z-index:2
}
.skd-seal::after{inset:-11px;border-style:dashed;opacity:.3}
:root[data-animation='on'][data-sk-banner-lines='on'] .skd-seal::after{
  animation:sk-seal-drift 22s linear infinite;
}
:root[data-sk-banner-lines='off'] .skd-seal::before,
:root[data-sk-banner-lines='off'] .skd-seal::after {display:none!important}
:root[data-animation='on'][data-sk-click-effects='on'] .sk-click-burst{
  border-width:2px;
  background:repeating-conic-gradient(from 0deg,transparent 0deg 35deg,
    color-mix(in srgb,var(--accent) 44%,transparent) 39deg 40deg,transparent 42deg 90deg);
  box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 7%,transparent);
}
:root[data-animation='on'][data-sk-click-effects='on'] .sk-click-burst::after{
  background:radial-gradient(circle,color-mix(in srgb,var(--accent) 55%,white) 0 9%,
    transparent 11% 40%,color-mix(in srgb,var(--accent) 26%,transparent) 41% 45%,transparent 46%);
}
@keyframes sk-edge-current {
  0%{background-position:165% 0;opacity:.35}
  55%{opacity:.8}
  100%{background-position:-75% 0;opacity:.35}
}
@keyframes sk-corner-light{
  0%,100%{opacity:.35;transform:translate3d(0,0,0)}
  50%{opacity:.95;transform:translate3d(-4px,-4px,0)}
}
@keyframes sk-cross-signal{
  0%,100%{opacity:.2;transform:rotate(0) scale(.92)}
  45%{opacity:.55;transform:rotate(90deg) scale(1.12)}
}
@keyframes sk-seal-drift{from{transform:rotate(0)}to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce) {
 .sk-tactical-lines::before,.sk-tactical-lines::after,.skd-seal::after{animation:none!important}
}
:root[data-animation='off'] .sk-tactical-lines::before,
:root[data-animation='off'] .sk-tactical-lines::after,
:root[data-animation='off'] .skd-seal::after{animation:none!important}


/* ORIGINAL CSS: css/sk-elegance.css */
/* SK | PRIME DEFAULT v2: clarity first, restrained motion and matching surfaces.
   Shared on Radar, Fleet and private chat. Tokens follow all eleven palettes. */
:root {
  --sk-frame:color-mix(in srgb,var(--line) 46%,var(--surface) 54%);
  --sk-frame-active:color-mix(in srgb,var(--accent) 27%,var(--line) 73%);
  --sk-frame-hover:color-mix(in srgb,var(--accent) 38%,var(--line) 62%);
  --sk-surface-card:color-mix(in srgb,var(--surface) 96%,var(--bg) 4%);
  --sk-surface-room:color-mix(in srgb,var(--surface-muted) 90%,var(--surface) 10%);
  --sk-surface-input:color-mix(in srgb,var(--surface-muted) 93%,var(--surface) 7%);
  --sk-focus-ring:color-mix(in srgb,var(--accent) 40%,transparent);
}
:root[data-theme='dark'] {
  --sk-frame:color-mix(in srgb,var(--line) 41%,var(--surface) 59%);
  --sk-frame-active:color-mix(in srgb,var(--accent) 27%,var(--line) 73%);
  --sk-frame-hover:color-mix(in srgb,var(--accent) 33%,var(--line) 67%);
  --sk-surface-card:color-mix(in srgb,var(--surface) 94%,var(--bg) 6%);
  --sk-surface-room:color-mix(in srgb,var(--surface-muted) 86%,var(--surface) 14%);
}
:is(.list-panel,.detail,.spectator-team,.spectator-map-panel,.fleet-panel,.fleet-card,.skd-card,.host-room-card,.preferences-dialog,.chat-card) {
  border:1px solid var(--sk-frame)!important;
  border-radius:16px;
  background:var(--sk-surface-card)!important;
  box-shadow:0 5px 22px rgba(0,0,0,.045)!important;
}
:is(.room,.room-card,.team-player-select,.skd-room-entry,.skd-info-banner,.moderation-table,.chat-card .bubble) {
  border-color:var(--sk-frame)!important;
  border-style:solid!important;
  background:var(--sk-surface-room);
}
.room,.room-card {border-radius:12px!important}
.room:hover,.room-card:hover {
  border-color:var(--sk-frame-hover)!important;
  box-shadow:0 3px 9px rgba(0,0,0,.055)!important;
}
.room.selected,.room[aria-pressed='true'] {
  border-color:var(--sk-frame-active)!important;
  background:color-mix(in srgb,var(--sk-surface-room) 93%,var(--accent-soft) 7%)!important;
  box-shadow:inset 3px 0 0 color-mix(in srgb,var(--accent) 64%,transparent)!important;
}
/* Remove stray emphasis around adjacent Serverlist panels and live cards.
   Preserve an obvious outline for keyboard navigation. */
:is(.list-panel,.detail,.room,.room-card,.spectator-team,.fleet-panel,.skd-card) {
  outline-color:var(--accent);outline-offset:2px;
}
:is(.list-panel,.detail,.spectator-team,.fleet-panel,.skd-card,.room) {
  border-style:solid!important;
}
:is(#roomPlayerSearch,.system-player-finder input,.rooms-search input,
    .skd-form input,.skd-form select,.skd-controls input,.skd-controls select) {
  background:var(--sk-surface-input)!important;
  border-color:var(--sk-frame)!important;
}
:is(#roomPlayerSearch,.system-player-finder input,.rooms-search input,
    .skd-form input,.skd-controls input):focus-visible {
  border-color:var(--sk-frame-hover)!important;
  box-shadow:0 0 0 2px var(--sk-focus-ring);
}
:root[data-theme='dark'] :is(.detail,.list-panel,.spectator-team,.skd-card,.fleet-panel) {
  box-shadow:inset 0 1px 0 color-mix(in srgb,var(--text) 2.5%,transparent)!important;
}
/* Labels stay legible, but semantic green/red is intentionally reserved for statuses. */
:is(.room,.detail,.spectator-team,.fleet-panel) :is(p,small,.team-player-score) {
  text-shadow:none;
}
.detail-room-relations .member-relation-total,
.leaderboard-relation-totals .member-relation-total {
  gap:7px;padding:7px 12px;border-radius:10px;
  border:1px solid var(--sk-frame)!important;
  background:var(--sk-surface-room)!important;
  font-weight:650;letter-spacing:0;
}
.detail-room-relations .member-relation-total strong,
.leaderboard-relation-totals .member-relation-total strong {
  font-size:13px;min-width:12px;margin-inline-start:4px;
}
.detail-room-relations .member-relation-total.is-allied,
.leaderboard-relation-totals .member-relation-total.is-allied {
  border-color:color-mix(in srgb,var(--ok) 24%,var(--sk-frame))!important;
}
.detail-room-relations .member-relation-total.is-enemy,
.leaderboard-relation-totals .member-relation-total.is-enemy {
  border-color:color-mix(in srgb,var(--danger) 24%,var(--sk-frame))!important;
}
/* The original SK crest is pre-tinted and compressed at build time.
   No repaint-heavy hue filter is applied during its motion. */
:root[data-emblem='royal'] :is(img.brand-symbol,.identity-art img[data-brand-media],.sk-official-emblem img) {
  filter:none!important;
}
:root[data-emblem='royal'] .identity-art::before,
:root[data-emblem='royal'] .identity-art::after {
  border-color:color-mix(in srgb,var(--accent) 31%,transparent)!important;
}
:root[data-emblem='royal'] .identity-art img[data-brand-media]{
  image-rendering:auto;
}
/* Tactical banner: keep the crisp border and only a pair of small
   transform/opacity animations (no animated gradient backgrounds). */
:root[data-animation='on'][data-sk-banner-lines='on'] .sk-tactical-lines::after {
  animation:none!important;
  background:none!important;
  border-style:solid;
  opacity:.36;
}
:root[data-animation='on'][data-sk-banner-lines='on'] :is(.sk-trace-left,.sk-trace-right,.sk-trace-bottom,.sk-trace-cross,.sk-trace-scan){
  animation:none!important;
}
:root[data-animation='on'][data-sk-banner-lines='on'] .sk-trace-top {
  animation:sk-prime-trace 7.5s ease-in-out infinite alternate!important;
}
:root[data-animation='on'][data-sk-banner-lines='on'] .sk-trace-corner {
  animation:sk-prime-corner 9s ease-in-out infinite!important;
}
:root[data-animation='on'][data-sk-banner-lines='on'] .skd-seal::after {
  animation:none!important;opacity:.3;
}
:root[data-animation='on'] .identity-hero::after {
  animation-duration:19s;opacity:.08;
}
:root[data-animation='on'] .sk-click-burst {
  box-shadow:none!important;
  animation-duration:.38s!important;
}
:root[data-animation='on'] .sk-click-burst::before {
  border-style:solid;opacity:.38;
}
@keyframes sk-prime-trace {
  from{transform:scaleX(.38);opacity:.28}
  to{transform:scaleX(.96);opacity:.8}
}
@keyframes sk-prime-corner {
  0%,100%{transform:translate3d(0,0,0);opacity:.58}
  50%{transform:translate3d(-2px,-2px,0);opacity:.82}
}
/* Critical: stopped CSS animations don't fire animationend.
   JS also removes each burst and clears them immediately on Still. */
:root[data-animation='off'] .sk-click-burst,
:root[data-sk-click-effects='off'] .sk-click-burst,
:root[data-sk-motion-tier='lite'] [data-sk-click-effects='off'] .sk-click-burst {
  display:none!important;animation:none!important;
}
/* Reduced device tier (<= 4 cores, <= 4GB, Save-Data or phone width).
   Animated mode remains responsive with deliberate micro-interactions,
   but avoids unnecessary perpetual paints. */
:root[data-sk-motion-tier='lite'][data-animation='on'] .identity-hero::after,
:root[data-sk-motion-tier='lite'][data-animation='on'] .identity-art::before,
:root[data-sk-motion-tier='lite'][data-animation='on'] .identity-art::after,
:root[data-sk-motion-tier='lite'][data-animation='on'] .skd-seal::after,
:root[data-sk-motion-tier='lite'][data-animation='on'] .sk-trace-corner,
:root[data-sk-motion-tier='lite'][data-animation='on'] .sk-trace-cross,
:root[data-sk-motion-tier='lite'][data-animation='on'] .sk-tactical-lines::after {
  animation:none!important;
}
:root[data-sk-motion-tier='lite'][data-animation='on'] .sk-trace-top {
  animation:sk-prime-trace 12s ease-in-out infinite alternate!important;
}
:root[data-sk-motion-tier='lite'][data-animation='on'] .identity-art img[data-brand-media] {
  animation:none!important;will-change:auto!important;
}
:root[data-sk-motion-tier='lite'][data-animation='on'] :is(.room,.room-card,.detail,.skd-card,.fleet-card){
  transition:border-color .16s ease,background-color .16s ease!important;
}
:root[data-sk-motion-tier='lite'][data-animation='on'] :is(.room,.room-card):hover{
  transform:none!important;box-shadow:none!important;
}
:root[data-sk-motion-tier='lite'][data-animation='on'] :is(.sk-click-burst,.sk-click-burst::after){
  box-shadow:none!important;
}
@media(max-width:700px){
  :is(.list-panel,.detail,.fleet-panel,.skd-card,.chat-card){border-radius:13px}
}
@media(prefers-reduced-motion:reduce){
  :root .sk-trace,.sk-click-burst,.identity-art img[data-brand-media],.skd-seal::after {
    animation:none!important;transition:none!important;
  }
  :root .sk-click-burst {display:none!important}
}
/* Provide fallback for clients lacking color-mix and ensure no decorative
   edge treatment hides the user's native focus indicator. */
:focus-visible{outline-offset:3px}


/* ORIGINAL CSS: css/sk-unified-preferences.css */
/* SK command deck — one coherent design across 11 palettes, light and dark.
   Overrides the legacy fixed-navy dialog, retains functionality and contrast. */
@font-face {
  font-family:'SK Prime';
  src:url('../assets/fonts/oxanium.ttf') format('truetype');
  font-style:normal;
  font-weight:200 800;
  font-display:swap;
}
/* One official epic font. Uploaded custom fonts still override these tokens. */
:root:not([data-sk-custom-font='on']){
  --font-body:'SK Prime',Tahoma,Arial,sans-serif!important;
  --font-display:'SK Prime',Tahoma,Arial,sans-serif!important;
  --font-hero:'SK Prime',Tahoma,Arial,sans-serif!important;
  --font-room:'SK Prime',Tahoma,Arial,sans-serif!important;
  --font-player:'SK Prime',Tahoma,Arial,sans-serif!important;
  --sk2-type-body:'SK Prime',Tahoma,Arial,sans-serif!important;
  --sk2-type-display:'SK Prime',Tahoma,Arial,sans-serif!important;
  --sk2-type-label:'SK Prime',Tahoma,Arial,sans-serif!important;
}
:root:not([data-sk-custom-font='on']) :is(
  body,button,input,select,textarea,label,
  .app,.app .hero h1,.app .chat-card,.app .meta,.app .brand,
  .brand-name,.brand-sub,.identity-copy h1,.identity-badge,
  .room h3,.room-name,.detail-head h2,.team-player-name,.team-column-heading h3,
  .fleet-location strong,.fleet-main h1,.fleet-main h2,.fleet-main h3,
  .skd-heading h1,.skd-card h2,.skd-action,.skd-overline,
  .preferences-heading h2,.preferences-content h3
) {font-family:'SK Prime',Tahoma,Arial,sans-serif!important}
:root:not([data-sk-custom-font='on']) :is(
 .identity-copy h1,.brand-name,.skd-heading h1,.fleet-main h1,
 .detail-head h2,.preferences-heading h2
){font-weight:800!important;letter-spacing:-.018em!important}
:root:not([data-sk-custom-font='on']) :is(
  .room h3,.room-name,.fleet-main h2,.skd-card h2
){font-weight:700!important;letter-spacing:.005em!important}
:root:not([data-sk-custom-font='on']) :is(
  button,input,select,textarea,.regions button,.modes button,.preferences-description
){letter-spacing:.005em}
/* The dialog inherits the surface of the active theme, not fixed Navy values.
   Palette changes are live because the variables resolve on :root. */
#preferencesDialog {
  --pref-bg:var(--surface);
  --pref-raised:color-mix(in srgb,var(--surface) 90%,var(--text) 10%);
  --pref-elevated:color-mix(in srgb,var(--surface) 84%,var(--text) 16%);
  --pref-header:color-mix(in srgb,var(--surface) 88%,var(--tint,var(--accent-soft)) 12%);
  --pref-border:color-mix(in srgb,var(--line) 66%,var(--surface) 34%);
  --pref-edge:color-mix(in srgb,var(--line-strong) 55%,var(--surface) 45%);
  --pref-selected:color-mix(in srgb,var(--surface) 86%,var(--accent) 14%);
  color:var(--text)!important;
  color-scheme:normal!important;
  background:var(--pref-bg)!important;
  border:1px solid var(--pref-edge)!important;
  border-radius:20px!important;
  box-shadow:0 18px 55px rgba(0,0,0,.22)!important;
  width:min(720px,calc(100vw - 28px))!important;
  max-height:min(87dvh,860px)!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:var(--pref-edge) transparent;
  padding:0!important;
}
:root[data-theme='light'] #preferencesDialog{color-scheme:light!important}
:root[data-theme='dark'] #preferencesDialog{color-scheme:dark!important}
#preferencesDialog::backdrop{
  background:rgba(3,7,13,.63)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
#preferencesDialog .preferences-heading{
  position:sticky;
  top:0;
  z-index:3;
  background:var(--pref-header)!important;
  color:var(--text)!important;
  border-bottom:1px solid var(--pref-border)!important;
  padding:21px 27px!important;
}
#preferencesDialog .preferences-heading h2{
  color:var(--text)!important;
  font-weight:800!important;
  font-size:24px!important;
  line-height:1.2!important;
  letter-spacing:-.025em!important;
}
#preferencesDialog .preferences-content{
  background:transparent!important;
  color:var(--text)!important;
  padding:23px 27px 28px!important;
  min-width:0;
}
#preferencesDialog .preferences-content h3{
  color:var(--text)!important;
  font-size:16px!important;
  line-height:1.35;
  font-weight:750!important;
}
#preferencesDialog :is(.preferences-description,.preferences-saved,.background-preset small,
  .palette-name,.sk-setting-row small,.sk-setting-upload small){
  color:var(--text-soft)!important;
  opacity:1!important;
}
#preferencesDialog :is(.preferences-description,.preferences-saved){
  line-height:1.55!important;
}
#preferencesDialog :is(.background-preferences,.background-setting,.background-upload){
  color:var(--text)!important;
}
#preferencesDialog .background-preferences{
  border-bottom-color:var(--pref-border)!important;
  margin-bottom:19px!important;
  padding-bottom:21px!important;
}
#preferencesDialog :is(.palette-card,.background-preset) {
  background:var(--pref-raised)!important;
  border:1px solid var(--pref-border)!important;
  color:var(--text)!important;
  border-radius:12px!important;
  box-shadow:none!important;
  /* Theme colors switch together immediately; fading the card while text flips causes transient unreadable labels. */
  transition:none!important;
}
#preferencesDialog :is(.palette-card,.background-preset):hover{
  background:var(--pref-elevated)!important;
  border-color:var(--pref-edge)!important;
  transform:none!important;
  box-shadow:none!important;
}
#preferencesDialog :is(.palette-card,.background-preset)[aria-pressed='true']{
  color:var(--text)!important;
  background:var(--pref-selected)!important;
  border-color:color-mix(in srgb,var(--accent) 56%,var(--pref-border))!important;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 12%,transparent)!important;
}
#preferencesDialog :is(.palette-card,.background-preset):focus-visible{
  outline:2px solid var(--accent)!important;
  outline-offset:2px!important;
}
#preferencesDialog .background-preset > span:not(.background-preview),
#preferencesDialog .palette-name{
  color:var(--text)!important;
  font-weight:700!important;
  line-height:1.4;
}
#preferencesDialog .palette-card[aria-pressed='true'] .palette-selected{
  color:var(--accent)!important;
}
#preferencesDialog :is(.background-preview,.palette-preview){
  border-radius:8px;
  overflow:hidden;
}
#preferencesDialog .background-preset[aria-pressed='true'] .background-preview{
  outline:1px solid color-mix(in srgb,var(--accent) 40%,transparent);
  outline-offset:1px;
}
#preferencesDialog .background-setting-toggle,
#preferencesDialog :is(.background-upload-actions,.custom-accent-setting) button,
#preferencesDialog :is(.sk-setting-row,.sk-upload-actions) button,
#preferencesDialog .sk-setting-upload label{
  color:var(--text)!important;
  background:var(--pref-raised)!important;
  border:1px solid var(--pref-edge)!important;
  box-shadow:none!important;
}
#preferencesDialog .background-setting-toggle[aria-pressed='true'],
#preferencesDialog .sk-setting-row button[aria-pressed='true'],
#preferencesDialog .sk-upload-actions button[aria-pressed='true']{
  color:var(--accent)!important;
  background:var(--pref-selected)!important;
  border-color:var(--accent)!important;
}
#preferencesDialog :is(.background-upload input[type='file'],.sk-setting-upload input[type='file']){
  color:var(--text-soft)!important;
  background:transparent!important;
  accent-color:var(--accent);
}
#preferencesDialog :is(.background-upload input,.sk-setting-upload input)::file-selector-button{
  color:var(--text)!important;
  background:var(--pref-raised)!important;
  border:1px solid var(--pref-edge)!important;
  border-radius:9px;
  cursor:pointer;
}
#preferencesDialog .custom-accent-setting{
  border:1px solid var(--pref-border);
  border-radius:12px;
  padding:13px;
  background:var(--pref-raised);
  gap:12px;
}
#preferencesDialog .custom-accent-setting label{
  color:var(--text)!important;
}
#preferencesDialog .custom-accent-setting input{
  background:var(--pref-bg);
  border-color:var(--pref-edge);
}
#preferencesDialog .preferences-close{
  width:38px;height:38px;
  background:var(--pref-raised)!important;
  color:var(--text)!important;
  border:1px solid var(--pref-edge)!important;
  border-radius:11px!important;
  line-height:1;
}
#preferencesDialog .preferences-close:hover{
  color:var(--accent)!important;
  border-color:var(--accent)!important;
  background:var(--pref-selected)!important;
}
#preferencesDialog .sk-emblem-preferences{
  border:1px solid var(--pref-border)!important;
  background:var(--pref-raised)!important;
  border-radius:13px!important;
  padding:12px 16px!important;
  margin:0 0 22px!important;
}
#preferencesDialog .sk-official-emblem strong{color:var(--text)!important;font-size:15px!important}
#preferencesDialog .sk-official-emblem img{width:61px!important;height:61px!important;object-fit:contain!important}
#preferencesDialog .sk-official-emblem .preferences-description{margin:4px 0 0!important}
#preferencesDialog .sk-customization-settings{
  color:var(--text)!important;
  background:var(--pref-raised)!important;
  border:1px solid var(--pref-border)!important;
  border-radius:14px!important;
  margin-top:25px!important;
}
#preferencesDialog .sk-setting-row,
#preferencesDialog .sk-setting-upload{
  border-bottom-color:var(--pref-border)!important;
}
#preferencesDialog .sk-setting-row>div{min-width:0}
#preferencesDialog .sk-customization-settings h3,
#preferencesDialog .sk-setting-row strong,
#preferencesDialog .sk-setting-upload>strong{
  color:var(--text)!important;
}
#preferencesDialog .sk-upload-status,
#preferencesDialog .background-upload-status{color:var(--accent)!important}
#preferencesDialog [hidden]{display:none!important}
@media(max-width:640px){
  #preferencesDialog{width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;border-radius:15px!important}
  #preferencesDialog .preferences-heading{padding:15px 17px!important}
  #preferencesDialog .preferences-content{padding:17px!important}
  #preferencesDialog .preferences-heading h2{font-size:21px!important}
  #preferencesDialog .palette-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  #preferencesDialog .background-presets{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #preferencesDialog :is(.palette-card,.background-preset){min-width:0}
  #preferencesDialog .sk-emblem-preferences{padding:10px!important}
}
@media(prefers-reduced-motion:reduce){
  #preferencesDialog :is(.background-preset,.palette-card,.preferences-close){transition:none!important}
}


/* ORIGINAL CSS: css/sk-member-players.css */
/* Separate member-only player directory; inherits every SK theme automatically. */
.fleet-sidebar nav a[hidden],#memberPlayersLink[hidden]{display:none!important}
.sk-member-players{max-width:1080px;color:var(--text)}
.sk-member-players-header{display:flex;align-items:start;justify-content:space-between;gap:20px;margin-bottom:25px}
.sk-member-players-header h1{font-size:clamp(29px,3vw,39px);font-weight:800;margin:5px 0 10px}
.sk-member-players-header p:not(.fleet-kicker){max-width:670px;font-size:13px;line-height:1.75;color:var(--text-soft)}
.sk-member-player-tabs{display:flex;gap:12px;margin:22px 0 16px;flex-wrap:wrap}
.sk-member-player-tabs button{border:1px solid var(--line);border-radius:13px;padding:13px 18px;min-width:150px;background:var(--surface);color:var(--text-soft);font-size:14px;font-weight:750;display:flex;align-items:center;justify-content:space-between;gap:20px}
.sk-member-player-tabs button[aria-selected=true]{border-color:color-mix(in srgb,var(--accent) 60%,var(--line));background:var(--accent-soft);color:var(--text);box-shadow:inset 0 -2px var(--accent)}
.sk-member-player-tabs button b{border:1px solid var(--line-strong);border-radius:99px;padding:2px 8px;color:var(--text);background:var(--surface-muted);font-size:11px}
.sk-member-players-panel{border:1px solid var(--line);border-radius:19px;background:var(--surface);padding:23px;box-shadow:0 7px 23px rgba(0,0,0,.055)}
.sk-member-players-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:17px}
.sk-member-players-toolbar h2{font-size:22px;font-weight:750;margin:0}
.sk-member-player-search{display:flex;align-items:center;gap:9px;min-width:170px;flex:0 1 330px;background:var(--surface-muted);border:1px solid var(--line);border-radius:11px;padding:0 12px;color:var(--muted)}
.sk-member-player-search input{min-width:0;flex:1;width:100%;background:none;color:var(--text);border:0;min-height:43px;font:inherit;font-size:12px;outline:none}
.sk-member-player-search:focus-within{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}
.sk-member-player-entries{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:7px;max-height:520px;overflow-y:auto}
.sk-member-player-entry{display:flex;gap:14px;align-items:center;min-height:56px;background:var(--surface-muted);border:1px solid var(--line);border-radius:10px;padding:9px 13px;min-width:0}
.sk-member-player-entry>small{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}
.sk-member-player-name{flex:1;min-width:0;overflow-wrap:anywhere;font-size:13px;font-weight:650;color:var(--text)}
.sk-member-player-actions{display:flex;gap:7px;flex-wrap:wrap}
.sk-member-player-actions button{border:1px solid var(--line-strong);border-radius:9px;padding:8px 10px;color:var(--text-soft);font-size:11px;background:var(--surface)}
.sk-member-player-actions button:hover{border-color:var(--accent);color:var(--accent)}
.sk-member-player-actions button.is-remove:hover{color:var(--danger);border-color:var(--danger)}
.sk-member-player-empty{padding:30px 15px;margin:0;text-align:center;color:var(--text-soft);font-size:13px}
.sk-member-player-editor{border-top:1px solid var(--line);margin-top:20px;padding-top:19px}
.sk-member-player-editor h3{margin:0 0 12px;font-size:15px}
.sk-member-player-editor label{display:block;margin:0 0 8px;color:var(--text-soft);font-size:12px}
.sk-member-player-editor form>div{display:flex;gap:10px;flex-wrap:wrap}
.sk-member-player-editor input{flex:1;min-width:190px;border:1px solid var(--line-strong);border-radius:10px;background:var(--surface-muted);color:var(--text);padding:10px 12px;font-size:13px}
.sk-member-player-editor p,.sk-member-player-privacy{font-size:11px;line-height:1.7;color:var(--text-soft)}
.sk-member-player-feedback{min-height:19px;color:var(--accent);font-size:12px;margin-top:13px}
.sk-member-player-privacy{display:flex;align-items:center;gap:9px;margin-top:15px}
.sk-member-player-privacy i{color:var(--accent)}
.sk-member-players [hidden]{display:none!important}
@media(max-width:630px){.sk-member-players-header{flex-wrap:wrap}.sk-member-players-panel{padding:14px}.sk-member-player-tabs button{flex:1;min-width:120px}.sk-member-player-entry{align-items:flex-start}.sk-member-player-actions{flex-direction:column}.sk-member-players-toolbar{display:block}.sk-member-player-search{margin-top:14px}}


/* ORIGINAL CSS: css/sk-room-explorer.css */
/* SK Radar quick discovery controls, aligned with current theme tokens. */
.room-explorer-controls{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:8px 1px 13px}
.room-explorer-controls button{border:1px solid var(--line);background:var(--surface-muted);color:var(--text-soft);border-radius:9px;padding:7px 9px;font-size:11px;font-weight:700;line-height:1.35;min-height:33px;transition:background-color .12s ease,border-color .12s ease}
.room-explorer-controls button:hover{border-color:var(--line-strong);color:var(--text)}
.room-explorer-controls button[aria-pressed=true]{background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 43%,var(--line));color:var(--accent)}
.room-explorer-controls :is(button:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
#savedRoomsToggle{display:inline-flex;align-items:center;gap:6px}
#savedRoomsToggle i{color:var(--accent);font-size:11px}
#savedRoomsToggle b{font-variant-numeric:tabular-nums;font-size:10px;border:1px solid var(--line);border-radius:10px;min-width:19px;padding:1px 3px;text-align:center}
#roomQuickFilters{display:flex;flex-wrap:wrap;gap:5px;align-items:center}
.room-explorer-card{position:relative;min-width:0;contain:layout style paint}
.room-explorer-card>.room{display:block;width:100%;padding-right:47px!important;min-height:103px;margin-bottom:10px}
.room-explorer-card .room-top h3{overflow-wrap:anywhere;padding-inline-end:1px}
.room-star{position:absolute;top:11px;right:10px;width:31px;height:31px;display:grid;place-items:center;border:1px solid var(--line);border-radius:9px;background:var(--surface-muted);color:var(--text-soft);font-size:14px;z-index:1}
.room-star:hover,.room-star:focus-visible{color:var(--accent);border-color:var(--accent);background:var(--accent-soft)}
.room-star.is-starred{color:var(--accent);background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 42%,var(--line))}
.room-star:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
:root[data-animation=off] .room-star,:root[data-sk-motion-tier=lite] .room-star{transition:none!important}
@media(max-width:600px){.room-explorer-controls{gap:6px}.room-explorer-controls button{font-size:10px;padding:7px 8px}.room-star{top:8px;right:8px;width:29px;height:29px}.room-explorer-card>.room{padding-right:43px!important}}


/* ORIGINAL CSS: css/sk-training-float.css */
.sk-training-float{position:fixed;bottom:clamp(12px,2.5vw,30px);right:clamp(12px,2.5vw,30px);z-index:1400;color:var(--text,#edf3fa);font-family:'SK Prime',Oxanium,system-ui,sans-serif}
.sk-training-float[hidden],.sk-training-float-menu[hidden]{display:none!important}
.sk-training-float-trigger{display:flex;align-items:center;gap:12px;background:var(--surface,#0c1728);color:var(--text,#f2f5fa);border:1px solid var(--accent,#a2b4cf);border-radius:40px;padding:7px 15px 7px 8px;min-height:54px;text-align:left;box-shadow:0 12px 30px rgba(0,0,0,.26);cursor:pointer}
.sk-training-float-trigger b,.sk-training-float-trigger small{display:block}.sk-training-float-trigger b{font-size:11px;letter-spacing:.1em}.sk-training-float-trigger small{font-size:9px;letter-spacing:.1em;color:var(--accent,#ddb766)}.sk-training-crown{font-size:25px;color:var(--accent,#ddb766);background:var(--accent-soft,rgba(177,153,99,.18));width:36px;height:36px;display:grid;place-items:center;border-radius:50%}
.sk-training-float-menu{position:absolute;right:0;bottom:calc(100% + 12px);background:var(--surface,#0d1a2b);border:1px solid var(--line,rgba(157,177,194,.24));border-radius:14px;box-shadow:0 18px 48px rgba(0,0,0,.3);padding:17px;width:min(350px,calc(100vw - 26px));color:var(--text,#eff5fa);-webkit-backdrop-filter:none;backdrop-filter:none}
.sk-training-float-menu header{display:flex;justify-content:space-between;align-items:center;color:var(--accent,#ddb766);font-size:10px;font-weight:800;letter-spacing:.13em;border-bottom:1px solid var(--line,rgba(145,166,190,.22));padding:0 0 12px}
.sk-training-float-close{font:22px system-ui;border:1px solid var(--line,rgba(135,155,176,.3));background:transparent;border-radius:6px;color:inherit;line-height:1;width:28px;height:28px;cursor:pointer}
.sk-training-float-menu>strong{display:block;font-size:19px;margin:14px 0 3px}.sk-training-float-menu>p{font-size:11px;line-height:1.55;color:var(--text-secondary,var(--muted,#aab9ca))}
.sk-training-launch{display:block;background:var(--accent,#ddb766);color:var(--surface,#0a1727)!important;font-weight:800;text-decoration:none!important;padding:12px;border-radius:7px;font-size:11px;text-align:center}
.sk-training-room-links{display:grid;gap:6px;max-height:170px;overflow:auto}.sk-training-room-link{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:9px;border:1px solid var(--line,rgba(155,180,205,.2));border-radius:7px;color:var(--text,#f0f5fa);font-size:11px;text-decoration:none}.sk-training-room-link small{color:var(--accent,#ddb766);font-size:10px;white-space:nowrap}
.sk-training-fleet-link{display:block;color:var(--accent,#ddb766);margin-top:12px;font-size:10px;font-weight:800}.sk-training-access-label{display:block;opacity:.65;font-size:9px;margin-top:14px;letter-spacing:.12em}
.sk-training-float button:focus-visible,.sk-training-float a:focus-visible{outline:2px solid var(--accent,#ddb766);outline-offset:3px}
@media(max-width:580px){.sk-training-float{bottom:10px;right:10px}.sk-training-float-trigger{min-height:47px}.sk-training-float-menu{bottom:calc(100% + 8px);max-height:74vh;overflow:auto}}
@media(prefers-reduced-motion:reduce){.sk-training-float *{animation:none!important;transition:none!important}}

.sk-academy-panel{color:var(--text,#e8eef3);text-align:start}
.academy-panel-title,.academy-actions,.academy-host,.academy-room-row{display:flex;gap:.65rem;align-items:center;flex-wrap:wrap}
.academy-panel-title{justify-content:space-between}.sk-academy-panel :is(h1,h2,h3,p){margin:0}
.sk-academy-panel h2{font-size:1.3rem}.sk-academy-panel h3{font-size:.96rem}
.academy-actions{margin-top:1rem}.academy-actions a,.academy-feedback a{color:var(--accent,#83d6de);font-size:.85rem}
.sk-academy-panel button,.sk-academy-panel select{font:inherit;color:inherit;border:1px solid var(--line,#64748b);background:var(--surface,#102032);border-radius:.5rem;padding:.45rem .7rem;cursor:pointer}
.sk-academy-panel .academy-primary{color:var(--on-accent,#fff);background:var(--accent,#82d9de);font-weight:750;padding:.7rem .85rem}
.sk-academy-panel button:disabled{opacity:.58;cursor:default}.academy-feedback:empty{display:none}.sk-academy-panel .academy-feedback{padding-top:.45rem;font-size:.85rem}
.academy-rooms,.academy-key-grid{margin-top:1.3rem;padding-top:1rem;border-top:1px solid var(--line,#596675)}
.academy-rooms .sk-training-room-status{font-size:.86rem;margin:.35rem 0;color:var(--text-secondary,var(--muted,currentColor))}
.academy-host{margin-top:.6rem}.academy-room-row>a{flex:1;min-width:0}.academy-room-row .room-name{overflow-wrap:anywhere}
.academy-key-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.1rem}.academy-keys ul{list-style:none;margin:.6rem 0 0;padding:0}
.academy-keys li{display:flex;gap:.55rem;align-items:baseline;margin:.45rem 0;line-height:1.35}
.academy-keys kbd{flex:0 0 1.65rem;display:inline-grid;place-items:center;font:600 .75rem ui-monospace,monospace;min-height:1.5rem;border:1px solid var(--line,#657383);border-radius:.35rem;color:var(--accent,#9adddf)}
.academy-keys b{font-size:.88rem}.academy-keys small{display:block;margin-top:.1rem;font-size:.8rem;color:var(--text-secondary,var(--muted,currentColor))}
.sk-training-float-menu{max-height:min(75vh,42rem);overflow:auto;overscroll-behavior:contain}.is-compact .academy-key-grid{gap:.55rem}.is-compact .academy-keys b{font-size:.75rem}.is-compact .academy-keys kbd{min-height:1.3rem;flex-basis:1.3rem}
.sk-academy-panel :focus-visible{outline:2px solid var(--accent);outline-offset:2px}


/* ORIGINAL CSS: css/sk-language.css */
/* SK unified language option. Inherits light/dark, national themes, custom color,
   typography settings and motion-reduction preferences without animations. */
.sk-language-control {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  gap:7px;
  min-height:36px;
  max-width:100%;
  border:1px solid var(--stroke,var(--border,rgba(165,185,219,.35)));
  border-radius:12px;
  background:var(--card,var(--surface,rgba(12,21,39,.65)));
  color:var(--text,var(--foreground,inherit));
  padding:4px 8px;
  font-size:12px;
  line-height:1.3;
  box-sizing:border-box;
  direction:ltr;
  unicode-bidi:isolate;
  z-index:15;
}
.sk-language-control .sk-language-icon {font-size:16px;line-height:1;flex:none;}
.sk-language-control .sk-language-label {font-size:12px;font-weight:650;white-space:nowrap;color:inherit;}
.sk-language-control select {
  color:inherit;
  font:inherit;
  font-weight:650;
  min-width:96px;
  max-width:125px;
  min-height:27px;
  border:0;
  background:transparent;
  padding:2px 1px;
  text-overflow:ellipsis;
  cursor:pointer;
  color-scheme:normal;
}
.sk-language-control select:focus-visible {outline:2px solid var(--accent,#88d9ff);outline-offset:3px;border-radius:4px;}
.sk-language-control option {background:#18243a;color:#fff;}
html[data-theme="light"] .sk-language-control,
html[data-sk-theme="light"] .sk-language-control {
  background:var(--card,var(--surface,rgba(249,251,255,.93)));
  color:var(--text,#12203b);
}
html[dir="rtl"] body {text-align:start;}
html[dir="rtl"] .sk-language-control {direction:ltr;text-align:left;}
html[dir="rtl"] input[type="url"],html[dir="rtl"] input[inputmode="url"],
html[dir="rtl"] #arenaCanvas,html[dir="rtl"] .arena-stage,
html[dir="rtl"] .touch-controls,html[dir="rtl"] .dpad,
html[dir="rtl"] .when,html[dir="rtl"] .room-id {
  direction:ltr;
}
html[dir="rtl"] .bubble .body,html[dir="rtl"] #messageInput,
html[dir="rtl"] .room-name,html[dir="rtl"] .player-name {
  direction:auto;
  unicode-bidi:plaintext;
}
html[dir="rtl"] .fleet-location,
html[dir="rtl"] .skd-heading,
html[dir="rtl"] .training-section,
html[dir="rtl"] .preferences-dialog {text-align:start;}
@media(max-width:850px){
  .sk-language-control {padding:3px 6px;gap:4px;min-height:32px;}
  .sk-language-control .sk-language-label {position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
  .sk-language-control select {min-width:80px;max-width:108px;font-size:11px;}
}
@media(max-width:450px){
  .sk-language-control {min-height:30px;border-radius:9px;}
  .sk-language-control select {min-width:76px;max-width:91px;}
  .sk-language-control .sk-language-icon {font-size:13px;}
  .fleet-header .sk-language-control {margin-inline-start:2px;}
  .topbar .sk-language-control {margin-inline-start:auto;}
}
@media(prefers-reduced-motion:reduce){
  .sk-language-control,.sk-language-control *{transition:none!important;animation:none!important;}
}

.sk-language-preferences {
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:12px 14px;margin-bottom:15px;border:1px solid var(--stroke,rgba(160,175,205,.3));
  border-radius:12px;background:var(--surface,rgba(110,135,170,.09));
}
.sk-language-preferences label {font-weight:700;white-space:nowrap;}
.sk-language-preferences select {
  min-width:128px;max-width:210px;padding:8px;border-radius:8px;
  background:var(--card,#17243a);color:var(--text,#f5f8ff);
  border:1px solid var(--border,rgba(160,175,205,.35));
}
html[data-theme="light"] .sk-language-preferences select {background:#fff;color:#152032;}
@media(max-width:460px) {
  .sk-language-preferences {gap:8px;flex-wrap:wrap;}
  .sk-language-preferences select {min-width:110px;flex:1;}
}

/* The Training header previously had exactly three flex items. A fourth item
   requires a two-column mobile layout, not a wider viewport. */
@media(max-width:600px) {
  .academy-shell .topbar {
    box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:auto auto;gap:5px 8px;
    height:auto;min-height:70px;padding:7px 0;
  }
  .academy-shell .topbar .back-link {grid-column:1;grid-row:1;justify-self:start;}
  .academy-shell .topbar .brand {grid-column:1;grid-row:2;min-width:0;gap:5px;}
  .academy-shell .topbar .brand strong {font-size:12px;}
  .academy-shell .topbar .brand small {font-size:8px;letter-spacing:.08em;}
  .academy-shell .topbar .brand-crown {font-size:23px;}
  .academy-shell .topbar .sk-language-control {
    grid-column:2;grid-row:1/span 2;justify-self:end;
    margin-inline:0;max-width:112px;
  }
  .academy-shell .topbar .sk-language-control select {min-width:76px;max-width:92px;}
}

/* Floating public controls: separate from the authenticated training panel. */
.sk-public-tools-dock{position:fixed;bottom:max(14px,env(safe-area-inset-bottom));left:max(14px,env(safe-area-inset-left));z-index:1350;display:flex;align-items:center;gap:7px;max-width:calc(100vw - 28px);direction:ltr}
.sk-public-tools-dock .sk-language-control{background:var(--surface,#101d30);border-color:var(--line,#56687f);color:var(--text,#edf5ff);box-shadow:0 5px 18px #0002;min-height:44px}
.sk-public-tools-dock .sk-map-shortcut{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 11px;box-sizing:border-box;border:1px solid var(--line,#56687f);border-radius:12px;background:var(--surface,#101d30);color:var(--text,#edf5ff);font-size:12px;font-weight:650;text-decoration:none;white-space:nowrap;box-shadow:0 5px 18px #0002}
.sk-map-shortcut>span:first-child{color:var(--accent,#79d9ff);font-size:22px;line-height:1}
.sk-map-shortcut:focus-visible{outline:2px solid var(--accent,#79d9ff);outline-offset:3px}
.sk-public-tools-dock:has(+ .sk-training-float) {isolation:isolate}
.sk-team-map-picker{box-sizing:border-box;width:min(520px,calc(100vw - 28px));max-height:80dvh;overflow:auto;padding:18px;border:1px solid var(--line,#56687f);border-radius:16px;background:var(--surface,#101d30);color:var(--text,#edf5ff)}
.sk-team-map-picker::backdrop{background:#08101caa}
.sk-team-map-picker h2{font-size:18px;margin:0}
.sk-team-map-picker-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.sk-team-map-picker-list{display:grid;gap:8px}
.sk-team-map-picker-list button{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:start;min-width:0;padding:12px;border:1px solid var(--line,#56687f);border-radius:10px;background:var(--surface-muted,var(--surface,#101d30));color:inherit;cursor:pointer}
.sk-team-map-picker-list button bdi{overflow-wrap:anywhere}
.sk-team-map-picker-list button small{flex-shrink:0;color:var(--muted,#a6b5c9)}
.sk-team-map-picker button:focus-visible{outline:2px solid var(--accent,#79d9ff);outline-offset:2px}
/* Match the actual fixed sidebar to the logical inline-start margin. */
html[dir="rtl"] .fleet-body .fleet-sidebar{left:auto!important;right:0!important;border-right:0!important;border-left:1px solid var(--line,var(--v-border,#56687f))!important}
html[dir="rtl"] .fleet-body .fleet-sidebar::before{left:auto;right:0}
html[dir="rtl"] .fleet-body .fleet-sidebar nav a.active{box-shadow:inset -3px 0 0 var(--accent),0 8px 17px rgba(0,0,0,.07)}
html[dir="rtl"] .fleet-body .fleet-shell{min-width:0;margin-left:0!important}
html[dir="rtl"] .fleet-body :is(.fleet-main,.skd-layout,.skd-main-grid,.skd-room-grid,.skd-card,.skd-heading){min-width:0;box-sizing:border-box}
html[dir="rtl"] .fleet-body :is(.fleet-main,.skd-layout,.skd-card,.skd-heading){overflow-wrap:anywhere}
html[dir="rtl"] .fleet-body .fleet-sidebar nav a .sk2-glyph{flex-shrink:0;margin-inline-start:0}
html[dir="rtl"] .fleet-body .fleet-sidebar nav a>span[id='hostedCount']{margin-inline-start:auto}
html[dir="rtl"] .fleet-body input[name="name"]{unicode-bidi:plaintext}
html[dir="rtl"] .fleet-body :is(.skd-heading,.skd-section,.fleet-nav-caption){letter-spacing:0!important}
html[dir="rtl"] .fleet-body .fleet-toast{left:50%}
html[dir="rtl"] :is(.team-map-svg,.spectator-map){direction:ltr}
html[dir="rtl"] .sk-public-tools-dock .sk-map-shortcut-label{direction:rtl}
@media(max-width:760px){
 html[dir="rtl"] .fleet-body .fleet-sidebar{transform:translateX(100%)}
 html[dir="rtl"] .fleet-body .fleet-sidebar.open{transform:translateX(0)}
 html[dir="rtl"] .fleet-body .fleet-shell{margin-right:0!important}
}
@media(max-width:580px){
 .sk-public-tools-dock{bottom:max(10px,env(safe-area-inset-bottom));left:10px;gap:5px}
 .sk-public-tools-dock .sk-map-shortcut-label{display:none}
 .sk-public-tools-dock .sk-map-shortcut{min-width:42px;padding:7px}
 .sk-public-tools-dock .sk-language-control{min-height:42px;padding:3px 5px}
 .sk-public-tools-dock .sk-language-control select{min-width:64px;max-width:88px}
 .sk-public-tools-dock .sk-language-control .sk-language-icon{font-size:13px}
}
/* Lightweight radar-only motion: one decorative layer; no layout animation or
   per-room infinite animation. Still and reduced-motion disable everything. */
@keyframes sk-radar-drift-v2{0%,100%{transform:translate3d(-18%,0,0) skewX(-15deg);opacity:0}20%,75%{opacity:.30}95%{transform:translate3d(118%,0,0) skewX(-15deg);opacity:0}}
@keyframes sk-radar-entry-v2{from{opacity:.55;transform:translate3d(0,6px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
@keyframes sk-radar-breath-v2{0%,100%{opacity:.6;transform:scale(.94)}50%{opacity:.95;transform:scale(1.06)}}
@media(prefers-reduced-motion:no-preference){
 html[data-animation="on"] body:not(.fleet-body) .identity-hero{position:relative;isolation:isolate}
 html[data-animation="on"] body:not(.fleet-body) .identity-hero::after{content:"";position:absolute;inset:0 auto 0 -10%;width:24%;max-width:190px;background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--accent,#78d5ff) 20%,transparent),transparent);pointer-events:none;z-index:-1;animation:sk-radar-drift-v2 10s ease-in-out infinite}
 html[data-animation="on"] body:not(.fleet-body) .identity-copy{animation:sk-radar-entry-v2 .42s ease-out both}
 html[data-animation="on"] body:not(.fleet-body) .compact-status b{transition:color .2s ease}
 html[data-animation="on"] body:not(.fleet-body) .sk-map-shortcut>span:first-child{animation:sk-radar-breath-v2 3.2s ease-in-out infinite}
 html[data-animation="on"][data-sk-motion-tier="low"] .identity-hero::after,
 html[data-animation="on"][data-sk-motion-tier="low"] .sk-map-shortcut>span:first-child{animation:none}
}
html[data-animation="off"] .identity-hero::after,html[data-animation="off"] .identity-copy,html[data-animation="off"] .sk-map-shortcut>span:first-child{animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){.identity-hero::after,.identity-copy,.sk-map-shortcut>span:first-child{animation:none!important;transition:none!important}}

.sk-float-map-link{display:flex;align-items:center;gap:8px;margin-bottom:12px;padding:10px 12px;border:1px solid var(--line,#65738a);border-radius:9px;color:var(--text,#eef5ff);text-decoration:none;font-weight:700;background:var(--accent-soft,transparent)}
.sk-float-map-link:focus-visible{outline:2px solid var(--accent,#79d9ff);outline-offset:2px}
.sk-public-tools-dock{isolation:isolate}
html[data-animation="on"][data-sk-motion-tier="lite"] .identity-hero::after,
html[data-animation="on"][data-sk-motion-tier="lite"] .sk-map-shortcut>span:first-child{animation:none}
@media(max-width:580px){.sk-training-float-menu{max-height:calc(100dvh - 90px)}}
body:has(.sk-public-tools-dock) .fleet-main{padding-bottom:84px!important}
html[dir="rtl"] .fleet-body .fleet-sidebar .brand{direction:ltr}

html[data-animation="on"] body:not(.fleet-body) .identity-hero{overflow:hidden}
.sk-team-map-picker .btn{min-width:36px;min-height:36px}
.sk-public-tools-dock .sk-language-control .sk-language-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:370px){.sk-training-float-trigger{gap:5px;padding:5px 8px}.sk-training-float-trigger small{display:none}.sk-training-crown{width:28px;height:28px}.sk-training-float-trigger b{font-size:10px}}

/* Keep dock controls clear of the fixed Fleet navigation in both directions. */
@media(min-width:1121px){
 html:not([dir="rtl"]) .fleet-body .sk-public-tools-dock{left:256px}
 html[dir="rtl"] .fleet-body .sk-training-float{right:256px}
}
@media(min-width:761px) and (max-width:1120px){
 html:not([dir="rtl"]) .fleet-body .sk-public-tools-dock{left:222px}
 html[dir="rtl"] .fleet-body .sk-training-float{right:222px}
}
@media(max-width:760px){
 .fleet-body .fleet-sidebar.open{z-index:1500}
}
body:has(.sk-public-tools-dock):not(.fleet-body) > main{padding-bottom:78px}


/* ORIGINAL CSS: css/sk-aurora.css */
/* SK Aurora tactical glass. Uses theme tokens; never obscures text with FX. */
:root[data-theme="dark"]{
 --sk-glass-panel:rgba(10,16,28,.40);
 --sk-glass-card:rgba(10,16,28,.38);
 --sk-glass-raised:rgba(10,16,28,.52);
 --sk-glass-edge:color-mix(in srgb,var(--accent,#76b8ff) 28%,transparent);
 --sk-glass-field:rgba(4,12,24,.26);
 --sk-glass-text:#f3f7ff;
}
:root[data-theme="light"]{
 --sk-glass-panel:rgba(246,250,255,.58);
 --sk-glass-card:rgba(249,252,255,.47);
 --sk-glass-raised:rgba(246,250,255,.72);
 --sk-glass-edge:color-mix(in srgb,var(--accent,#345c93) 26%,transparent);
 --sk-glass-field:rgba(215,229,247,.30);
 --sk-glass-text:#10233c;
}
:root :is(.list-panel,.detail,.identity-hero,.fleet-panel,.skd-card,.skd-heading,.fleet-card,.host-room-card,.fleet-header,.chat-card,.spectator-map-panel,.spectator-team,.preferences-dialog,.leaderboard-dialog,dialog){
 background:var(--sk-glass-panel)!important;
 border-color:var(--sk-glass-edge)!important;
 box-shadow:0 10px 28px rgba(0,0,0,.08),inset 0 1px 0 color-mix(in srgb,var(--accent) 8%,transparent)!important;
}
:root :is(.room,.room-card,.clan-row,.clan-list,.untagged,.system-player-result,.system-player-finder,.team-player-select,.team-map-selection,.skd-room-entry,.skd-info-banner,.moderation-table,.theme-card,.palette-card,.background-preset,.preferences-section,.preferences-content,.preferences-footer,.leaderboard-relation-totals,.team-metrics,.team-roster,.skd-stat,.fleet-ship-card,.fleet-status,.detail-head){
 background:var(--sk-glass-card)!important;
 border-color:var(--sk-glass-edge)!important;
}
:root :is(.search,.system-player-finder input,#roomPlayerSearch,.rooms-search input,select:not(.sk-language-control select),.fleet-body input,dialog input:not([type=checkbox]):not([type=radio]):not([type=color])){
 background-color:var(--sk-glass-raised)!important;border-color:var(--sk-glass-edge)!important;
}
:root :is(.room,.room-card):is(:hover,.selected,[aria-pressed="true"]),
:root :is(.team-player-select,.system-player-result,.leaderboard-table tr):hover{
 background:color-mix(in srgb,var(--sk-glass-raised) 84%,var(--accent) 16%)!important;
 border-color:color-mix(in srgb,var(--accent) 68%,transparent)!important;
}
:root :is(.room h3,.detail-head h2,.section-title,.leaderboard-table td,.team-player-name,.fleet-body .skd-heading h1){color:var(--text,var(--sk-glass-text))!important}
:root .fleet-sidebar{background:var(--sk-glass-raised)!important;border-color:var(--sk-glass-edge)!important}
:root .preferences-dialog, :root .leaderboard-dialog, :root dialog[open]{background:var(--sk-glass-raised)!important}
:root dialog::backdrop{background:rgba(3,8,17,.52)!important}
:root[data-theme="light"] dialog::backdrop{background:rgba(34,55,82,.24)!important}
@supports(backdrop-filter:none){
 /* Blur only the top-level panels, not hundreds of nested player/room rows. */
 :root:not([data-sk-motion-tier="lite"]) :is(.list-panel,.detail,.identity-hero,.fleet-sidebar,.fleet-header,dialog[open],.chat-card){
  backdrop-filter:none!important;
 }
}
:root[data-sk-motion-tier="lite"] :is(.list-panel,.detail,.identity-hero,.fleet-sidebar,.fleet-header,dialog[open],.chat-card){backdrop-filter:none!important}
:root .spectator-map,.spectator-map-panel,.team-map-field{background:var(--sk-glass-field)!important}
:root .spectator-map{position:relative!important;isolation:isolate;box-shadow:inset 0 0 25px color-mix(in srgb,var(--accent) 9%,transparent)!important;border:1px solid var(--sk-glass-edge)!important}
:root .spectator-map .team-map-field{fill:var(--sk-glass-field)!important;stroke:var(--sk-glass-edge)!important}
:root .team-map-axis{stroke:color-mix(in srgb,var(--accent) 38%,transparent)!important}
:root .team-map-base>rect{fill:var(--sk-glass-raised)!important}
:root .team-map-rocks{fill:color-mix(in srgb,var(--text-soft) 48%,transparent);stroke:var(--sk-glass-edge);opacity:.65}
:root .team-map-tools>button{background:var(--sk-glass-card)!important;border-color:var(--sk-glass-edge)!important;color:var(--text)!important}
:root .team-map-tools>button[aria-pressed="true"]{background:var(--accent-soft)!important;border-color:var(--accent)!important;color:var(--accent)!important}
:root .team-map-svg-label{fill:var(--text-soft)!important}
:root .spectator-map>canvas.sk-tactical-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:auto;display:block;touch-action:manipulation}
:root .spectator-map:has(.team-map-svg:not([data-canvas-active]))>canvas{pointer-events:none;display:none}
:root .team-map-svg[data-canvas-active] .team-map-pilots{opacity:0;pointer-events:none}
:root .team-map-svg[data-canvas-active] .team-map-pilot:focus-visible .team-map-focus{opacity:1}
:root .team-map-waiting{z-index:3;pointer-events:none}
:root .spectator-team{border-top:2px solid hsl(var(--team-hue) 75% 58%)!important}
:root .leaderboard-table{background:transparent!important}
:root .leaderboard-table :is(th,td){background:transparent!important;border-color:var(--sk-glass-edge)!important}
:root .leaderboard-table th{background:var(--sk-glass-raised)!important}
:root .leaderboard-table tbody tr{background:var(--sk-glass-card)!important}
:root .leaderboard-rank-number{min-width:24px;min-height:24px;display:inline-grid;place-items:center;border:1px solid var(--sk-glass-edge);border-radius:7px;font-variant-numeric:tabular-nums}
:root tr[data-rank="1"] .leaderboard-rank-number{background:rgba(240,183,74,.17)!important;color:var(--text)!important;border-color:#c5a157}
:root tr[data-rank="2"] .leaderboard-rank-number{border-color:#9daec4}
:root tr[data-rank="3"] .leaderboard-rank-number{border-color:#c3886d}
:root button[data-room-relation]{cursor:pointer;min-height:32px;gap:6px;touch-action:manipulation;font:inherit}
:root button[data-room-relation]:disabled{cursor:not-allowed;opacity:.65}
:root button[data-room-relation][aria-pressed="true"]{box-shadow:inset 0 0 0 1px currentColor,0 0 10px color-mix(in srgb,currentColor 16%,transparent)!important}
:root button[data-room-relation]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
:root .relation-view-caption{font-size:11px;color:var(--muted);margin-block:10px 6px}
:root .relation-reset[hidden]{display:none!important}
:root .system-player-result:has(.clan-relation-ally){border-inline-start:2px solid #55c9a0!important}
:root .system-player-result:has(.clan-relation-enemy){border-inline-start:2px solid #f77a89!important}
/* One composited energy layer and one static grid. No per-card paint loop. */
.sk-aurora-layer{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;contain:strict;isolation:isolate;opacity:.70}
.sk-aurora-layer::before{content:"";position:absolute;inset:-35%;background:repeating-linear-gradient(122deg,transparent 0 100px,rgba(96,171,255,.12) 101px,transparent 103px 230px),linear-gradient(105deg,transparent 15%,rgba(83,159,255,.17) 33%,rgba(151,103,255,.19) 44%,rgba(54,218,190,.13) 55%,rgba(239,124,171,.10) 69%,transparent 85%);transform:translate3d(-7%,3%,0) rotate(-8deg);opacity:.62}
.sk-aurora-layer::after{content:"";position:absolute;inset:0;background-image:linear-gradient(90deg,rgba(116,154,206,.065) 1px,transparent 1px),linear-gradient(rgba(116,154,206,.065) 1px,transparent 1px);background-size:70px 70px;mask-image:linear-gradient(120deg,transparent,#000 36%,#000 72%,transparent)}
:root[data-theme="light"] .sk-aurora-layer{opacity:.38}
:root[data-theme="light"] .sk-aurora-layer::before{opacity:.60}
@keyframes sk-aurora-drift{0%,100%{transform:translate3d(-8%,4%,0) rotate(-8deg);opacity:.45}50%{transform:translate3d(9%,-4%,0) rotate(-8deg);opacity:.84}}
@media(prefers-reduced-motion:no-preference){
 :root[data-animation="on"]:not([data-sk-motion-tier="lite"]) .sk-aurora-layer::before{animation:sk-aurora-drift 18s ease-in-out infinite;will-change:transform,opacity}
 :root[data-animation="on"] :is(.btn,.room,.room-card,.team-map-tools>button,.member-relation-total,.fleet-sidebar nav a){transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease!important}
}
:root[data-animation="off"] .sk-aurora-layer::before,:root[data-sk-motion-tier="lite"] .sk-aurora-layer::before{animation:none!important;will-change:auto}
@media(prefers-reduced-motion:reduce){.sk-aurora-layer::before{animation:none!important;will-change:auto}}
:root .sk-public-tools-dock{z-index:1350}
@media(max-width:760px){
 :root :is(.list-panel,.detail,.identity-hero,.fleet-sidebar,.fleet-header,dialog[open],.chat-card){backdrop-filter:none!important}
 .sk-aurora-layer{opacity:.42}
 .sk-aurora-layer::before{animation:none!important;will-change:auto}
}

/* Modal readability takes precedence over decorative glass. */
:root {--accent-border:color-mix(in srgb,var(--accent) 65%,var(--line));}
:root[data-theme="dark"] :is(dialog[open],.players-sidebar[open],.preferences-dialog[open],#leaderboardDialog[open]){background:rgba(10,15,26,.94)!important;color:var(--text)!important;border:1px solid var(--accent-border)!important;backdrop-filter:none!important;}
:root[data-theme="light"] :is(dialog[open],.players-sidebar[open],.preferences-dialog[open],#leaderboardDialog[open]){background:rgba(248,250,253,.97)!important;color:var(--text)!important;border:1px solid var(--accent-border)!important;backdrop-filter:none!important;}
:root :is(dialog,.players-sidebar,.preferences-dialog,#leaderboardDialog)::backdrop{background:rgba(4,7,15,.80)!important;backdrop-filter:none!important}
:root[data-sk-motion-tier="lite"] :is(dialog,.players-sidebar,.preferences-dialog,#leaderboardDialog)::backdrop{backdrop-filter:none!important}
:root :is(dialog,.players-sidebar) :is(.preferences-content,.preferences-footer,.team-roster,.team-metrics,.spectator-team,.spectator-map-panel){background:color-mix(in srgb,var(--surface) 90%,transparent)!important;}
:root #autoRefreshToggle[aria-pressed="false"]{background:rgba(245,158,11,.18)!important;border:1px solid #d99c39!important;color:var(--text)!important;box-shadow:0 0 0 2px rgba(245,158,11,.13)!important;}
:root #newSystemAlertToggle[aria-pressed="true"]{background:var(--accent-soft)!important;border:1px solid var(--accent)!important;color:var(--accent)!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 18%,transparent)!important;}
:root :is(#autoRefreshToggle,#newSystemAlertToggle){position:relative;}
:root #autoRefreshToggle[aria-pressed="false"]::after,:root #newSystemAlertToggle[aria-pressed="true"]::after{content:"";position:absolute;inset-block-start:4px;inset-inline-end:4px;width:6px;height:6px;border-radius:50%;background:var(--accent);border:1px solid var(--bg);}
:root #autoRefreshToggle[aria-pressed="false"]::after{background:#f59e0b;}
:root[data-palette="silver"][data-theme="dark"]{--bg:#0a1019;--surface:#111c2a;--surface-muted:#192838;--tint:#1e2b3a;--tint-strong:#263747;--line:#35495d;--line-strong:#6c8298;--text:#f1f6fb;--text-soft:#d8e2ec;--muted:#b2c3d4;--faint:#a8bbcd;--accent:#d8e2ec;--accent-strong:#f2f7fb;--accent-soft:#314356;--on-accent:#14212e;--hero-bg:#0a1019;--hero-accent:#d8e2ec;--hero-soft:#9fb3c8;--hero-line:#647b91;--header-fill:#101a25e8;--storm-wash:#253445;}
:root[data-palette="silver"][data-theme="light"]{--bg:#e7edf3;--surface:#f9fbfd;--surface-muted:#e9eff5;--tint:#dbe5ee;--tint-strong:#cddbe7;--line:#a8bbce;--line-strong:#72899f;--text:#162738;--text-soft:#2d455a;--muted:#465f74;--faint:#465f74;--accent:#405d76;--accent-strong:#304b62;--accent-soft:#d6e2ed;--on-accent:#fff;--hero-bg:#dbe5ee;--hero-ink:#162738;--hero-accent:#405d76;--hero-soft:#465f74;--hero-line:#8099ae;--header-fill:#f5f8fbe8;--storm-wash:#c9d7e5;}
.palette-silver{background:radial-gradient(ellipse at 55% 80%,#8da4bc,#253747 48%,#0a1019 80%);color:#d8e2ec;}
:root[data-background="on"][data-background-source="vector"] .sk-scene-background::before{content:"";position:absolute;inset:0;z-index:1;background:var(--accent);mask: url('../assets/backgrounds/vector.svg') center/cover no-repeat;opacity:.065;pointer-events:none;}
:root[data-background="off"] .sk-aurora-layer{display:none!important;}
.skd-active-duel{padding:18px;border:1px solid var(--accent-border);border-radius:12px;background:var(--surface-muted);}.skd-active-duel[hidden],.skd-form[hidden]{display:none!important;}

.sk-radar-static{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;}.team-map-svg{position:relative;z-index:1;}.team-map-svg[data-static-raster] :is([data-map-terrain],.team-map-axis,rect[fill="url(#sk-team-grid)"]){opacity:0!important;}.team-map-svg[data-static-raster] .team-map-field{fill:transparent!important;}

:root .spectator-map .team-map-svg[data-static-raster] .team-map-field{fill:transparent!important}

:root[data-background-source='vector'] .sk-scene-background::before{mask:none;background:repeating-linear-gradient(90deg,transparent 0 79px,var(--accent) 80px),repeating-linear-gradient(0deg,transparent 0 79px,var(--accent) 80px);opacity:.06}
@media(prefers-reduced-motion:no-preference){:root[data-animation='on']:not([data-sk-motion-tier='lite'])[data-background-source='obsidian'] .sk-scene-image{animation:sk-starfield-drift 80s ease-in-out infinite alternate;will-change:transform}}@keyframes sk-starfield-drift{from{transform:scale(1.02) translate(-.2%,0)}to{transform:scale(1.08) translate(.2%,-.5%)}}


/* ORIGINAL CSS: css/sk-fluid.css */
/* SK fluid rendering policy: one cheap ambient layer, no live blurred content panels. */
:root { --sk-fast-motion: transform .16s cubic-bezier(.2,0,0,1), opacity .16s ease; }
:root[data-theme] :is(.room,.room-card,.room-explorer-card,.active-player-row,.clan-row,.fleet-ship-card,.fleet-clan-list>li,.skd-room-entry,.palette-card,.background-preset,.system-player-result,.team-player-select){contain:layout style paint;box-shadow:none!important;transition:var(--sk-fast-motion)!important;}
:root :is(.list-panel,.detail,.identity-hero,.fleet-panel,.fleet-header,.fleet-sidebar,.chat-card,.spectator-map-panel,.spectator-team,.skd-card,.skd-heading,.fleet-card,.host-room-card){box-shadow:0 2px 8px #0001!important;}
:root :is(button,a,input,select,.btn,.member-relation-total,.fleet-sidebar nav a){transition:var(--sk-fast-motion)!important;}
:root :is(button,a,input,select):focus-visible{outline:2px solid var(--accent,#8cbcff);outline-offset:2px;}
:root[data-theme][data-animation] :is(.room-explorer-card,.room,.room-card,.fleet-ship-card):hover{transform:none!important;box-shadow:none!important;}
:root :is(.room-explorer-card,.room,.room-card,.fleet-ship-card) :is(img,svg){filter:none!important;}
:root :is(.players-sidebar,.preferences-dialog,.leaderboard-dialog,dialog[open]){contain:layout style paint;box-shadow:0 8px 20px #0003!important;}
:root[data-sk-motion-tier="full"]:not([data-sk-motion-suspended="true"]) dialog[open]::backdrop{backdrop-filter:none!important;}
/* A modal's backdrop is static: suspend the underlying artwork even in Smooth FX. */
:root[data-sk-motion-tier="full"] dialog[open]::backdrop{backdrop-filter:none!important;}
:root[data-sk-motion-tier="lite"] dialog[open]::backdrop{backdrop-filter:none!important;}
/* Do not promote every card to a GPU layer. A small static gradient is cheaper than a full viewport texture. */
.sk-aurora-layer::before{inset:0!important;transform:none!important;animation:none!important;will-change:auto!important;}
.sk-aurora-layer::after{mask-image:none!important;}
:root .sk-scene-image{animation:none!important;will-change:auto!important;}
:root .sk-scene-pulse{animation:none!important;will-change:auto!important;}
:root .sk-trace{animation:none!important;will-change:auto!important;}
:root :is(.identity-hero,.fleet-header,.hero) :is(.sk-trace,.sk-crest-orbit-a,.sk-crest-orbit-b){will-change:auto!important;}
:root[data-sk-motion-tier="lite"] :is(.sk-aurora-layer,.sk-trace,.sk-click-burst){display:none!important;}
:root[data-sk-motion-tier="lite"] *, :root[data-sk-motion-tier="lite"] *::before, :root[data-sk-motion-tier="lite"] *::after{animation:none!important;transition:none!important;will-change:auto!important;}
:root[data-sk-motion-suspended="true"] :is(.sk-aurora-layer,.sk-scene-background,.identity-hero,.fleet-header,.hero) *,
:root[data-sk-motion-suspended="true"] :is(.sk-aurora-layer,.sk-scene-background,.identity-hero,.fleet-header,.hero)::before,
:root[data-sk-motion-suspended="true"] :is(.sk-aurora-layer,.sk-scene-background,.identity-hero,.fleet-header,.hero)::after{animation-play-state:paused!important;will-change:auto!important;}
@media(prefers-reduced-motion:reduce){:root *, :root *::before, :root *::after{animation:none!important;transition:none!important;will-change:auto!important;} :root dialog[open]::backdrop{backdrop-filter:none!important;}}
.sk-motion-choice{display:flex;gap:8px;flex-wrap:wrap}.sk-motion-choice button{flex:1;min-height:36px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);cursor:pointer}.sk-motion-choice button[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft);color:var(--text);font-weight:700}

/* Keep heavyweight hero orbit and glow layers static in both modes. */
:root[data-emblem="royal"][data-animation="on"] .identity-art::before,:root[data-emblem="royal"][data-animation="on"] .identity-art::after{animation:none!important;will-change:auto!important;box-shadow:none!important;}
:root[data-animation="on"] .identity-hero::after{animation:none!important;will-change:auto!important;}
:root[data-sk-motion-tier="lite"][data-emblem="royal"][data-animation="on"] .identity-art img[data-brand-media]{animation:none!important;will-change:auto!important;}
:root[data-sk-motion-suspended="true"][data-emblem="royal"][data-animation="on"] .identity-art img[data-brand-media]{animation-play-state:paused!important;will-change:auto!important;}
:root[data-sk-motion-suspended="true"] .sk-aurora-layer::before,:root[data-sk-motion-suspended="true"] .sk-aurora-layer::after{animation-play-state:paused!important;}
:root[data-animation="off"] :is(button,a,input,select,.room,.room-card,.room-explorer-card,.active-player-row){transition:none!important;}

:root[data-theme][data-animation] :is(.list-panel,.detail,.identity-hero,.fleet-panel,.fleet-header,.fleet-sidebar,.chat-card,.spectator-map-panel,.spectator-team,.skd-card,.skd-heading,.fleet-card,.host-room-card):hover{box-shadow:0 2px 8px #0001!important;}
:root[data-sk-motion-tier="lite"][data-animation="on"] :is(.room,.room-card,.room-explorer-card,.active-player-row,.fleet-ship-card,button,a,input,select){transition:none!important;}


/* ORIGINAL CSS: css/sk-command-deck.css */

/* SK Command Deck — shared single-hue tokens, scoped new layout. */
:root{--brand-50:#fff1f2;--brand-100:#ffe4e6;--brand-200:#fecdd3;--brand-300:#fda4af;--brand-400:#fb7185;--brand-500:#f43f5e;--brand-600:#e11d48;--brand-700:#be123c;--brand-800:#9f1239;--brand-900:#881337;--brand-950:#4c0519}
:root[data-palette="purple"]{--brand-50:#f5f3ff;--brand-100:#ede9fe;--brand-200:#ddd6fe;--brand-300:#c4b5fd;--brand-400:#a78bfa;--brand-500:#8b5cf6;--brand-600:#7c3aed;--brand-700:#6d28d9;--brand-800:#5b21b6;--brand-900:#4c1d95;--brand-950:#2e1065}
:root[data-palette="yellow"]{--brand-50:#fffbeb;--brand-100:#fef3c7;--brand-200:#fde68a;--brand-300:#fcd34d;--brand-400:#fbbf24;--brand-500:#f59e0b;--brand-600:#d97706;--brand-700:#b45309;--brand-800:#92400e;--brand-900:#78350f;--brand-950:#451a03}
:root[data-theme="dark"]:is([data-palette="red"],[data-palette="purple"],[data-palette="yellow"]):not([data-custom-color="on"]){
--bg:#09090b;--surface:#111114;--surface-muted:#19191e;--tint:#222228;--tint-strong:#303037;--line:#303038;--line-strong:#52525b;--text:#fafafa;--text-soft:#d4d4d8;--muted:#a1a1aa;--faint:#a1a1aa;--accent:var(--brand-400);--accent-strong:var(--brand-300);--accent-soft:var(--brand-950);--on-accent:#09090b;--hero-bg:#111114;--hero-ink:#fafafa;--hero-soft:#d4d4d8;--hero-accent:var(--brand-400);--hero-line:#303038}
:root[data-theme="light"]:is([data-palette="red"],[data-palette="purple"],[data-palette="yellow"]):not([data-custom-color="on"]){
--bg:#f8fafc;--surface:#fff;--surface-muted:#f1f5f9;--tint:#f1f5f9;--tint-strong:#e2e8f0;--line:#dbe1e8;--line-strong:#94a3b8;--text:#18181b;--text-soft:#3f3f46;--muted:#52525b;--faint:#52525b;--accent:var(--brand-700);--accent-strong:var(--brand-800);--accent-soft:var(--brand-100);--on-accent:#fff;--hero-bg:#fff;--hero-ink:#18181b;--hero-soft:#3f3f46;--hero-accent:var(--brand-700);--hero-line:#dbe1e8}
.sk-command-deck{--deck-rail:224px;--deck-gap:clamp(12px,1.5vw,24px);--deck-radius:12px;--deck-dock:136px;min-width:0;background:var(--bg);color:var(--text)}
.sk-command-deck :is(.deck-shell,.deck-main,.deck-rail,.deck-header,.deck-overview,.deck-matrix,.deck-intel,.deck-card-actions){box-sizing:border-box;min-width:0;max-width:100%}
.sk-command-deck .deck-shell{display:grid;grid-template-columns:var(--deck-rail) minmax(0,1fr);gap:0;align-items:start;max-width:1800px;margin-inline:auto;min-height:100vh}
.sk-command-deck .deck-rail{position:sticky;top:0;max-height:100vh;overflow-y:auto;display:flex;flex-direction:column;gap:24px;padding:22px 14px;background:var(--surface);border-inline-end:1px solid var(--line);min-height:100vh;z-index:10}
.sk-command-deck .deck-identity .brand{display:flex;gap:10px;align-items:center;min-width:0;white-space:normal!important;width:100%;max-width:100%}
.sk-command-deck .deck-identity .brand-symbol{width:46px!important;height:46px!important;flex:none}
.sk-command-deck .deck-identity .brand-identity{min-width:0;overflow-wrap:anywhere}
.sk-command-deck .deck-credit{font-size:12px;color:var(--text-soft);line-height:1.5;margin:8px 0 0}
.sk-command-deck .deck-credit bdi{color:var(--accent);font-weight:700}
.sk-command-deck .deck-region-block h2,.sk-command-deck .deck-watch h2,.sk-command-deck .deck-hot h2{font-size:12px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);margin:0 0 10px}
.sk-command-deck #regions{display:grid!important;grid-template-columns:minmax(0,1fr);gap:8px!important;width:100%;padding:0!important;border:0!important;border-radius:0!important;background:none!important}
.sk-command-deck #regions button{position:relative;display:flex!important;justify-content:space-between;gap:6px;align-items:center;min-width:0;min-height:46px!important;padding:10px 10px 13px!important;border:1px solid var(--line)!important;border-radius:9px!important;color:var(--text);background:var(--surface-muted)!important;overflow:hidden}
.sk-command-deck #regions button span{font-size:11px!important;white-space:nowrap;margin:0!important}
.sk-command-deck #regions button::after{content:"";position:absolute;bottom:0;inset-inline-start:0;width:var(--deck-load,0%);height:3px;background:var(--accent);opacity:.75;pointer-events:none}
.sk-command-deck #regions button.active{border-color:var(--accent)!important;color:var(--accent)!important;background:var(--accent-soft)!important}
.sk-command-deck .deck-controls>summary{font-size:12px;font-weight:700;color:var(--muted);cursor:pointer;padding:6px 0}
.sk-command-deck .deck-controls-content{display:grid;gap:8px;min-width:0;padding-top:8px}
.sk-command-deck .deck-controls-content :is(.appearance-controls,.home-live-controls){display:flex!important;flex-wrap:wrap!important;gap:6px!important;max-width:100%}
.sk-command-deck .deck-controls-content :is(button,.btn){min-width:0;max-width:100%;min-height:40px!important;border-radius:8px!important;white-space:normal!important;flex:1 1 auto}
.sk-command-deck .deck-controls-content .home-preferences{width:100%;position:static!important}
.sk-command-deck .deck-controls-content .member-mode-toggle{width:100%}
.sk-command-deck #deckLanguage .sk-public-tools-dock{position:static!important;inset:auto!important;transform:none!important;width:100%;max-width:100%;z-index:auto}
.sk-command-deck #deckLanguage .sk-language-control{position:static!important;inset:auto!important;display:flex!important;max-width:100%;flex-wrap:wrap;transform:none!important}
.sk-command-deck #deckLanguage select{min-width:0;max-width:100%}
.sk-command-deck .deck-main{width:100%;margin:0!important;padding:var(--deck-gap)!important;display:grid;gap:var(--deck-gap)}
.sk-command-deck .deck-header{position:static!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,auto);gap:12px!important;align-items:center;width:100%;height:auto!important;min-height:0!important;padding:0 0 14px!important;background:none!important;border:0!important;border-bottom:1px solid var(--line)!important;box-shadow:none!important}
.sk-command-deck .deck-heading{min-width:0}
.sk-command-deck .deck-eyebrow{font-size:11px;font-weight:700;letter-spacing:.13em;color:var(--accent)}
.sk-command-deck .deck-heading h1{font-size:clamp(23px,2.7vw,38px);line-height:1.12;margin:6px 0;letter-spacing:-.035em;color:var(--text);overflow-wrap:anywhere}
.sk-command-deck .deck-telemetry,.sk-command-deck .deck-ctas{display:flex!important;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.sk-command-deck .deck-telemetry{justify-content:flex-end}
.sk-command-deck .deck-telemetry :is(.compact-status,.connection,.refresh){position:static!important;display:flex!important;flex-wrap:wrap;max-width:100%;min-width:0;gap:5px}
.sk-command-deck .deck-telemetry .game-status-toggle{position:static!important;inset:auto!important;transform:none!important;min-height:36px!important;max-width:100%;white-space:normal!important}
.sk-command-deck .deck-ctas{grid-column:1/-1;justify-content:flex-start}
.sk-command-deck .deck-ctas :is(button,a){border:1px solid var(--line)!important;background:var(--surface-muted)!important;color:var(--text)!important;border-radius:8px!important;min-height:42px!important;max-width:100%;padding:8px 12px!important;white-space:normal!important;display:inline-flex;align-items:center;gap:7px}
.sk-command-deck .deck-ctas #shareRoom{background:var(--accent)!important;border-color:var(--accent)!important;color:var(--on-accent,#fff)!important}
.sk-command-deck .deck-overview{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:12px}
.sk-command-deck :is(.deck-mission,.deck-watch,.deck-hot){padding:14px;border:1px solid var(--line);background:var(--surface);border-radius:var(--deck-radius);min-width:0}
.sk-command-deck .deck-mission summary{font-weight:700;cursor:pointer;color:var(--text);line-height:1.4}
.sk-command-deck .deck-mission p{font-size:13px;line-height:1.6;margin:8px 0 0;color:var(--text-soft)}
.sk-command-deck .deck-mini-list{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.sk-command-deck .deck-mini-list button{min-width:0;max-width:100%;overflow-wrap:anywhere;display:grid;gap:4px;padding:8px;border:1px solid var(--line);border-radius:7px;background:var(--surface-muted);color:var(--text);text-align:start}
.sk-command-deck .deck-hot[hidden]{display:none!important}
.sk-command-deck .deck-matrix{display:grid;gap:10px}
.sk-command-deck .deck-filterbar{min-width:0;display:grid;gap:8px}
.sk-command-deck #modes{display:flex!important;flex-wrap:wrap!important;gap:6px!important;padding:0!important;margin:0!important;min-height:0!important;height:auto!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.sk-command-deck #modes button{min-width:0;flex:0 1 auto;min-height:40px!important;max-width:100%;white-space:normal!important;padding:8px 12px!important;border-radius:8px!important;border:1px solid var(--line)!important;background:var(--surface)!important;color:var(--text-soft)!important}
.sk-command-deck #modes button.active{border-color:var(--accent)!important;background:var(--accent-soft)!important;color:var(--accent)!important}
.sk-command-deck .list-panel{display:grid!important;gap:8px;min-width:0;width:100%;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
.sk-command-deck :is(.list-tools,.room-explorer-controls,.list-caption){min-width:0;flex-wrap:wrap!important;gap:8px!important;margin:0!important}
.sk-command-deck :is(.search,.search input){min-width:0;max-width:100%}
.sk-command-deck #rooms{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr))!important;align-content:start;gap:12px!important;max-height:none!important;height:auto!important;min-height:0!important;overflow:visible!important;padding:0!important;margin:0!important;border:0!important;background:none!important;box-shadow:none!important}
.sk-command-deck #rooms>.empty{grid-column:1/-1}
.sk-command-deck #rooms .room-explorer-card{position:relative;display:flex;flex-direction:column;min-width:0;max-width:100%;border:1px solid var(--line);border-radius:var(--deck-radius);background:var(--surface);overflow:hidden;contain:layout style paint;content-visibility:auto;contain-intrinsic-size:auto 220px}
.sk-command-deck #rooms .room-explorer-card::before{content:"";height:3px;background:var(--accent);opacity:.6;display:block;flex:none}
.sk-command-deck #rooms .room-explorer-card>.room{min-width:0;max-width:100%;width:100%;flex:1;display:grid!important;gap:8px;min-height:154px!important;margin:0!important;padding:12px 44px 12px 12px!important;text-align:start;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important}
:root[dir="rtl"] .sk-command-deck #rooms .room-explorer-card>.room{padding:12px 12px 12px 44px!important}
.sk-command-deck #rooms .room-explorer-card:focus-within{outline:2px solid var(--accent);outline-offset:-2px}
.sk-command-deck #rooms .room.selected{background:var(--accent-soft)!important}
.sk-command-deck #rooms .room-top,.sk-command-deck #rooms .room-bottom{min-width:0;flex-wrap:wrap;gap:6px;align-items:center}
.sk-command-deck #rooms .room-top h3{font-size:16px;line-height:1.25;min-width:0;max-width:100%;white-space:normal!important;overflow-wrap:anywhere}
.sk-command-deck #rooms .room-clans{min-width:0;max-width:100%;flex-wrap:wrap;overflow-wrap:anywhere}
.sk-command-deck #rooms .room-star{position:absolute;inset-inline-end:7px;left:auto;right:auto;inset-inline-end:7px;top:9px;width:34px;height:34px;border-radius:8px;z-index:2}
.sk-command-deck .deck-capacity{display:grid;gap:4px;color:var(--muted);font-size:12px}
.sk-command-deck .deck-capacity meter{width:100%;height:8px;accent-color:var(--accent)}
.sk-command-deck .deck-relations{display:flex;gap:6px;flex-wrap:wrap;font-size:11px}
.sk-command-deck .deck-relations span{padding:3px 7px;border:1px solid var(--line);border-radius:6px;color:var(--text);background:var(--surface-muted)}
.sk-command-deck .deck-ally b{color:#34d399}.sk-command-deck .deck-rival b{color:#fb7185}
:root[data-theme="light"] .sk-command-deck .deck-ally b{color:#047857}
:root[data-theme="light"] .sk-command-deck .deck-rival b{color:#be123c}
.sk-command-deck .deck-card-actions{display:flex;flex-wrap:wrap;gap:6px;border-top:1px solid var(--line);padding:9px;margin-top:auto}
.sk-command-deck .deck-card-actions .btn{min-width:0;max-width:100%;flex:1 1 110px;min-height:42px!important;justify-content:center;white-space:normal!important;border-radius:7px!important;line-height:1.3}
.sk-command-deck .deck-footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;border-top:1px solid var(--line);padding-top:14px;color:var(--muted);font-size:12px}
.sk-command-deck :is(button,.btn):focus-visible{outline:2px solid var(--accent)!important;outline-offset:2px}
.sk-command-deck :is(button,.btn):not(:disabled):hover{border-color:var(--accent)!important}
.sk-command-deck :is(button,.btn)>:is(i.bi,svg.sk2-svg){font-size:1.05em!important;width:1.2em;height:1.2em;line-height:1!important;flex:none;vertical-align:middle}
.sk-command-deck :is(.deck-rail,.deck-header,.deck-mission,.deck-watch,.deck-hot,.room-explorer-card,.deck-intel,dialog[open]){backdrop-filter:none!important;box-shadow:none!important}
.sk-command-deck dialog::backdrop{backdrop-filter:none!important;background:#0009}
.sk-command-deck #deckIntelDialog{position:fixed!important;inset:0 0 0 auto!important;margin:0!important;width:min(620px,100vw)!important;max-width:100%!important;height:100vh!important;max-height:100vh!important;padding:0!important;border:0!important;border-inline-start:1px solid var(--line)!important;border-radius:0!important;background:var(--surface)!important;overflow:auto!important;overscroll-behavior:contain}
:root[dir="rtl"] .sk-command-deck #deckIntelDialog{inset:0 auto 0 0!important}
.sk-command-deck #deckIntelDialog[open]{display:block!important}
.sk-command-deck #deckIntelDialog:not([open]){display:none!important}
.sk-command-deck .deck-intel-top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--surface);z-index:3}
.sk-command-deck .deck-intel-top h2{font-size:14px;margin:0;color:var(--accent)}
.sk-command-deck .deck-intel-top button{width:44px;height:44px;border:1px solid var(--line);border-radius:8px;background:var(--surface-muted)}
.sk-command-deck #detail{width:100%;min-width:0;max-width:100%;min-height:0!important;padding:14px!important;border:0!important;box-shadow:none!important;overflow-wrap:anywhere}
.sk-command-deck #detail :is(.detail-head,.actions,.detail-counters){flex-wrap:wrap!important;min-width:0}
.sk-command-deck #detail :is(input,select,button,a){max-width:100%}
:root[data-animation="on"]:not([data-sk-motion-tier="lite"]) .sk-command-deck #deckIntelDialog[open]{animation:deck-enter .18s ease-out}
@keyframes deck-enter{from{opacity:.5;transform:translateX(18px)}to{opacity:1;transform:translateX(0)}}
@media(max-width:1100px){.sk-command-deck .deck-header{grid-template-columns:minmax(0,1fr)!important}.sk-command-deck .deck-telemetry{justify-content:flex-start}}
@media(max-width:800px){
.sk-command-deck .deck-shell{display:block;padding-bottom:var(--deck-dock)}
.sk-command-deck .deck-rail{position:fixed;inset:auto 0 0;min-height:0;max-height:min(70vh,500px);padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px));gap:6px;border-inline-end:0;border-top:1px solid var(--line);overflow:auto;z-index:30}
.sk-command-deck .deck-identity{display:none}
.sk-command-deck .deck-region-block h2{display:none}
.sk-command-deck #regions{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px!important}
.sk-command-deck #regions button{min-height:44px!important;padding:6px 8px 9px!important}
.sk-command-deck .deck-controls>summary{padding:8px 0;text-align:center;min-height:32px}
.sk-command-deck .deck-controls-content{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 0 8px}
.sk-command-deck #deckLanguage{grid-column:1/-1}
.sk-command-deck .deck-overview{grid-template-columns:minmax(0,1fr)}
.sk-command-deck #modes button{flex:1 1 91px;min-height:44px!important}
.sk-command-deck #deckIntelDialog{inset:auto 0 0!important;width:100%!important;height:min(85vh,800px)!important;max-height:85vh!important;border-radius:16px 16px 0 0!important;border:1px solid var(--line)!important}
:root[dir="rtl"] .sk-command-deck #deckIntelDialog{inset:auto 0 0!important}
:root[data-animation="on"]:not([data-sk-motion-tier="lite"]) .sk-command-deck #deckIntelDialog[open]{animation:deck-sheet .18s ease-out}
@keyframes deck-sheet{from{opacity:.5;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
}
@media(max-width:420px){.sk-command-deck .deck-main{padding:10px!important;gap:10px}.sk-command-deck .deck-ctas>*{flex:1 1 100px}.sk-command-deck .deck-telemetry>*{max-width:100%}.sk-command-deck #rooms .room-star{width:40px;height:40px}.sk-command-deck #rooms .room-explorer-card>.room{padding-inline-end:50px!important}.sk-command-deck .deck-card-actions .btn{min-height:44px!important}}
@media(prefers-reduced-motion:reduce){.sk-command-deck #deckIntelDialog[open]{animation:none!important;transition:none!important}}

:root[data-sk-motion-tier="full"] .sk-command-deck dialog[open]::backdrop{backdrop-filter:none!important}
@media(max-width:800px){
.sk-command-deck{--deck-dock:154px}
.sk-command-deck .deck-identity{display:flex;align-items:center;justify-content:space-between;gap:8px}
.sk-command-deck .deck-identity .brand{width:auto!important;flex:1;min-width:0}
.sk-command-deck .deck-identity .brand-symbol{width:28px!important;height:28px!important}
.sk-command-deck .deck-identity .brand-sub{display:none}
.sk-command-deck .deck-identity .brand-name{font-size:12px!important}
.sk-command-deck .deck-identity .deck-credit{margin:0;font-size:10px;max-width:45%;overflow-wrap:anywhere}
}

/* Clean Radar: retain the exact Command Deck color tokens. */
.sk-command-deck .deck-main{gap:12px}
.sk-command-deck .deck-header{gap:8px!important;padding-block-end:10px!important}
.sk-command-deck .deck-heading h1{font-size:clamp(22px,2.1vw,30px);margin:0;line-height:1.2}
.sk-command-deck .deck-subtitle{font-size:12px;line-height:1.45;margin:4px 0 0;color:var(--muted)}
.sk-command-deck .deck-telemetry .compact-status{display:inline-flex!important;align-items:center;gap:4px;background:none!important;border:0!important;padding:0!important}
.sk-command-deck .deck-telemetry .connection{display:inline-flex!important;align-items:center;gap:5px;text-transform:none!important;white-space:nowrap!important}
.sk-command-deck .deck-telemetry .connection[data-state="live"]{color:#34d399!important}
:root[data-theme="light"] .sk-command-deck .deck-telemetry .connection[data-state="live"]{color:#047857!important}
.sk-command-deck .deck-ctas{gap:6px}
.sk-command-deck .deck-ctas :is(a,button){min-height:36px!important;padding:6px 10px!important;font-size:12px!important}
.sk-command-deck #deckWatchSection[hidden],.sk-command-deck #deckHotSection[hidden]{display:none!important}
.sk-command-deck :is(.deck-watch,.deck-hot){display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;padding:0;border:0;background:none;border-radius:0}
.sk-command-deck :is(.deck-watch,.deck-hot) h2{margin:0;text-transform:none;letter-spacing:0;font-size:12px;white-space:nowrap}
.sk-command-deck .deck-mini-list{flex:1 1 180px;min-width:0}
.sk-command-deck .deck-mini-list button{padding:5px 8px;font-size:12px;min-height:32px}
.sk-command-deck .deck-about{width:min(440px,calc(100% - 24px));max-width:calc(100% - 24px);padding:0!important;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:12px;box-shadow:none!important}
.sk-command-deck .deck-about .dialog-body{padding:14px 18px;line-height:1.6;overflow-wrap:anywhere}
.sk-command-deck .deck-about .dialog-body p{margin:0 0 10px}
.sk-command-deck .deck-about .dialog-body p:last-child{margin:0}
.sk-command-deck :is(.deck-filterbar,.list-panel,.list-tools,.room-explorer-controls,.list-caption,#roomQuickFilters){min-width:0!important;max-width:100%;box-sizing:border-box;border:0!important;box-shadow:none!important;background:none!important}
.sk-command-deck :is(.list-tools,.room-explorer-controls,.list-caption,#roomQuickFilters){display:flex!important;flex-wrap:wrap!important;align-items:center;gap:6px 10px!important;padding:0!important;margin:0!important;overflow:visible!important}
.sk-command-deck .list-tools .search{flex:1 1 220px!important;min-width:0!important;width:auto!important;max-width:100%!important;box-sizing:border-box}
.sk-command-deck .list-tools .search input{flex:1 1 0!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box}
.sk-command-deck .list-tools .open-only{display:inline-flex!important;flex:0 0 auto!important;align-items:center;gap:6px;min-width:0!important;width:auto!important;max-width:100%!important;white-space:nowrap!important;overflow:visible!important;min-height:36px;padding:4px 8px!important;margin:0!important}
.sk-command-deck .open-only input{flex:none!important;width:auto!important;min-width:0!important;margin:0}
.sk-command-deck #roomQuickFilters{flex:0 1 auto!important}
.sk-command-deck .room-explorer-controls button{white-space:normal!important;max-width:100%;min-height:36px!important}
.sk-command-deck #rooms{grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr))!important;gap:10px!important}
.sk-command-deck #rooms .room-explorer-card{contain-intrinsic-size:auto 160px;align-self:stretch}
.sk-command-deck #rooms .room-explorer-card::before{height:2px}
.sk-command-deck #rooms .room-explorer-card>.room{display:flex!important;flex-direction:column;align-items:stretch!important;justify-content:flex-start!important;text-align:start!important;gap:7px;min-height:104px!important;padding:10px 12px 8px!important}
.sk-command-deck #rooms .room-top{display:flex!important;align-items:center;justify-content:space-between!important;flex-wrap:nowrap!important;gap:6px;min-height:28px;padding-inline-end:33px;text-align:start!important}
.sk-command-deck #rooms .room-top h3{flex:1 1 auto;text-align:start!important;margin:0!important;font-size:15px;line-height:1.25}
.sk-command-deck #rooms .room-top .age{flex:none;white-space:nowrap;margin:0!important;padding:3px 6px;border-radius:5px;background:var(--surface-muted);color:var(--muted);font-size:11px!important}
.sk-command-deck #rooms .room-star{top:8px;width:30px;height:30px;min-width:30px;min-height:30px;inset-inline-end:7px}
.sk-command-deck #rooms .room-bottom{display:flex!important;flex-wrap:wrap;justify-content:flex-start!important;align-items:center;gap:5px 8px!important;text-align:start!important;margin:0!important;font-size:12px;line-height:1.4}
.sk-command-deck #rooms .room-bottom .mode-label{display:inline!important;min-width:0;overflow-wrap:anywhere;margin:0!important;text-align:start!important;font-size:12px!important}
.sk-command-deck #rooms .room-bottom .player-count{display:inline-flex!important;align-items:center;gap:3px;flex:none;white-space:nowrap;margin-inline-start:auto!important;text-align:start!important;font-size:12px!important}
.sk-command-deck #rooms .deck-status{display:inline-flex;align-items:center;white-space:nowrap;font-size:10px;font-weight:700;line-height:1.3;padding:3px 6px;border-radius:5px;background:var(--surface-muted);color:var(--text-soft);border:1px solid var(--line)}
.sk-command-deck #rooms .deck-status-open{color:#86efac;background:#14532d44;border-color:#166534}
.sk-command-deck #rooms .deck-status-active{color:#fcd34d;background:#78350f33;border-color:#854d0e}
:root[data-theme="light"] .sk-command-deck #rooms .deck-status-open{color:#166534;background:#dcfce7;border-color:#bbf7d0}
:root[data-theme="light"] .sk-command-deck #rooms .deck-status-active{color:#92400e;background:#fef3c7;border-color:#fde68a}
.sk-command-deck #rooms .room-clans{display:flex!important;align-items:center;justify-content:flex-start!important;gap:4px 6px;min-height:20px;text-align:start!important;margin:0!important;padding:0!important}
.sk-command-deck #rooms .room-clans .clan-hint{margin:0!important;text-align:start!important;font-size:11px}
.sk-command-deck #rooms .deck-relations{display:inline-flex;flex-wrap:wrap}
.sk-command-deck .deck-card-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:8px 10px;border-top:1px solid var(--line)}
.sk-command-deck .deck-card-actions .btn{width:100%;min-height:37px!important;display:inline-flex;align-items:center;justify-content:center;gap:5px;font-size:12px!important;margin:0!important;padding:6px!important;text-align:center!important}
.sk-command-deck .deck-card-actions .btn-primary{background:var(--accent)!important;color:var(--on-accent)!important;border-color:var(--accent)!important}
.sk-command-deck .deck-card-actions .btn:disabled{opacity:.5;cursor:not-allowed}
.sk-command-deck .deck-footer{font-size:11px;line-height:1.55}
.sk-command-deck .deck-footer>span:first-child{flex:1 1 300px;min-width:0}
@media(max-width:800px){.sk-command-deck .deck-ctas :is(a,button),.sk-command-deck .room-explorer-controls button,.sk-command-deck .deck-card-actions .btn{min-height:44px!important}.sk-command-deck .list-tools .search{flex:1 1 160px!important}.sk-command-deck #rooms .room-top{padding-inline-end:37px}.sk-command-deck #rooms .room-star{width:34px;height:34px;min-width:34px;min-height:34px}.sk-command-deck .deck-ctas>*{flex:0 1 auto!important}}
@media(max-width:420px){.sk-command-deck #rooms .room-explorer-card>.room{padding:10px 10px 8px!important}.sk-command-deck .list-tools .open-only{flex:0 0 auto!important}.sk-command-deck .deck-ctas>*{flex:1 1 100px!important}}

/* Keep main alongside rail; remove inherited row sizing from the previous UI. */
@media(min-width:801px){
.sk-command-deck .deck-shell{display:grid!important;grid-template-columns:var(--deck-rail) minmax(0,1fr)!important;align-items:start}
.sk-command-deck .deck-shell>.deck-rail{grid-column:1;grid-row:1}
.sk-command-deck .deck-shell>.deck-main{grid-column:2;grid-row:1;min-width:0!important;width:100%!important}
}
.sk-command-deck #modes{overflow:visible!important;min-width:0!important;max-width:100%!important;justify-content:flex-start!important}
.sk-command-deck #modes button{flex:0 1 auto!important;width:auto!important;min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere}
.sk-command-deck #rooms .room-bottom{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;min-height:24px!important;height:auto!important}
.sk-command-deck #rooms .room-bottom .mode-label{width:auto!important;max-width:100%;white-space:normal!important;line-height:1.3!important}
.sk-command-deck #rooms .room-bottom .player-count{width:auto!important;min-width:0!important;line-height:1.3!important;justify-self:end}
@media(max-width:800px){.sk-command-deck #modes button{flex:1 1 104px!important}}


/* ORIGINAL CSS: css/sk-unified-ui.css */

/* One shared visual system for radar, fleet and preferences. */
:root{--accent-primary:var(--accent);--surface-card:rgba(14,15,22,.88);--surface-rail:rgba(17,17,20,.94);--surface-control:var(--surface-muted);--border-subtle:var(--line);--radius-md:8px;--control-height:38px;--ui-space:8px;--scene-dim:.42;--scene-vignette:.24}
:root[data-theme="light"]{--surface-card:rgba(255,255,255,.94);--surface-rail:rgba(248,250,252,.96);--scene-dim:.64;--scene-vignette:.18}
:root[data-sk-dimmer="subtle"]{--scene-dim:.76}
:root[data-sk-dimmer="vivid"]{--scene-dim:.12}
:root[data-theme="light"][data-sk-dimmer="subtle"]{--scene-dim:.84}
:root[data-theme="light"][data-sk-dimmer="vivid"]{--scene-dim:.42}
body:is(.sk-command-deck,.sk-unified-fleet){isolation:isolate;background:var(--bg)!important;min-height:100vh}
body:is(.sk-command-deck,.sk-unified-fleet) #skSceneBackground{position:fixed!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;z-index:-1!important;contain:strict;overflow:hidden;opacity:1!important;filter:none!important;transform:none!important;pointer-events:none}
body:is(.sk-command-deck,.sk-unified-fleet) #skSceneBackground .sk-scene-image{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center!important;opacity:1!important;transform:none!important;animation:none!important;filter:none!important}
body:is(.sk-command-deck,.sk-unified-fleet) #skSceneBackground::after{content:""!important;position:absolute!important;inset:0!important;background:linear-gradient(0deg, color-mix(in srgb,var(--bg) calc(var(--scene-dim)*100%),transparent),color-mix(in srgb,var(--bg) calc(var(--scene-dim)*100%),transparent)),radial-gradient(ellipse at center,transparent 28%,color-mix(in srgb,var(--bg) calc(var(--scene-vignette)*100%),transparent))!important;opacity:1!important;pointer-events:none}
body:is(.sk-command-deck,.sk-unified-fleet) .sk-scene-pulse{display:none!important}
:root[data-background="off"] body:is(.sk-command-deck,.sk-unified-fleet) #skSceneBackground{display:none!important}
body:is(.sk-command-deck,.sk-unified-fleet) :is(.deck-shell,.deck-main,.fleet-shell,.fleet-main,#fleetPage){background:transparent!important}
body:is(.sk-command-deck,.sk-unified-fleet) :is(.deck-main,.fleet-main)::before{background:none!important}
.sk-command-deck{--deck-rail:260px}
.sk-command-deck .deck-rail,.sk-unified-fleet .fleet-sidebar{background:var(--surface-rail)!important;border-inline-end:1px solid var(--border-subtle)!important;box-shadow:none!important;backdrop-filter:none!important}
.sk-command-deck .deck-rail{padding:20px 16px!important;gap:18px!important}
.sk-command-deck .deck-identity .brand{gap:9px!important;padding:0!important}
.sk-command-deck .deck-identity .brand-name{font-size:16px!important;line-height:1.2!important;letter-spacing:-.02em!important}
.sk-command-deck .deck-identity .brand-sub{font-size:10px!important}
.sk-command-deck .deck-identity .deck-credit,.rail-fleet-credit{display:inline-flex;align-items:center;gap:4px;font-size:11px!important;line-height:1.4;padding:4px 8px;border:1px solid var(--border-subtle);border-radius:var(--radius-md);background:var(--surface-control);margin:9px 0 0!important;color:var(--text-soft)}
.rail-fleet-credit bdi{color:var(--accent-primary)}
.sk-command-deck #regions button{height:44px!important;min-height:44px!important;padding:8px 10px 11px!important;border-radius:var(--radius-md)!important;background:var(--surface-control)!important}
.sk-command-deck #regions button.active{border-color:var(--accent-primary)!important;background:var(--accent-soft)!important}
.sk-command-deck #regions button::after{height:3px}
.sk-command-deck .deck-controls-content{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important}
.sk-command-deck .deck-controls-content :is(.home-live-controls,.appearance-controls){display:contents!important}
.sk-command-deck .deck-controls-content :is(#refresh,#newSystemAlertToggle,#themeToggle,#animationToggle,#preferencesButton){position:static!important;inset:auto!important;width:100%!important;max-width:100%;height:var(--control-height)!important;min-height:var(--control-height)!important;min-width:0!important;display:flex!important;align-items:center;justify-content:center;gap:5px!important;padding:4px 5px!important;white-space:nowrap!important;font-size:12px!important;line-height:1.2!important;border:1px solid var(--border-subtle)!important;border-radius:var(--radius-md)!important;background:var(--surface-control)!important;color:var(--text)!important;box-shadow:none!important}
.sk-command-deck .deck-controls-content #autoRefreshToggle[hidden]{display:none!important}
.sk-command-deck .deck-controls-content #preferencesButton{grid-column:1/-1}
.sk-command-deck .deck-controls-content :is(button)[aria-pressed="true"]{border-color:var(--accent-primary)!important}
.sk-command-deck .rail-state{font-size:9px;color:var(--muted);font-weight:700}
.sk-command-deck #newSystemAlertToggle[aria-pressed="true"] .rail-state{color:var(--accent-primary)}
.sk-command-deck .rail-clan-card{grid-column:1/-1;display:grid;gap:5px;padding:8px;border:1px solid var(--border-subtle);background:var(--surface-card);border-radius:var(--radius-md);min-width:0}
.sk-command-deck .rail-clan-card :is(#memberModeToggle,#activePlayersToggle){position:static!important;display:flex!important;align-items:center;justify-content:flex-start;gap:7px!important;width:100%!important;min-width:0!important;min-height:38px!important;border:1px solid transparent!important;border-radius:var(--radius-md)!important;background:none!important;padding:6px!important;white-space:normal!important;font-size:12px!important;color:var(--text)!important;box-shadow:none!important}
.sk-command-deck #activePlayersCount{margin-inline-start:auto}
.sk-command-deck #memberModeToggle::after{content:"OFF";font-size:10px;color:var(--muted);margin-inline-start:auto}
.sk-command-deck #memberModeToggle[aria-pressed="true"]::after{content:"ON";color:var(--accent-primary)}
.sk-command-deck .rail-clan-card #memberModeToggle[aria-pressed="true"]{background:var(--accent-soft)!important;border-color:var(--accent-primary)!important}
.sk-command-deck #deckLanguage{grid-column:1/-1}
.sk-command-deck #deckLanguage :is(.sk-public-tools-dock,.sk-language-control,select){width:100%!important;max-width:100%!important;box-sizing:border-box}
.sk-command-deck #deckLanguage select{height:38px!important;border:1px solid var(--border-subtle)!important;border-radius:var(--radius-md)!important;background:var(--surface-control)!important;color:var(--text)!important}
.sk-command-deck #rooms .room-explorer-card{background:var(--surface-card)!important;border-color:var(--border-subtle)!important;backdrop-filter:none!important}
:root[data-sk-highlights="off"] .sk-command-deck :is(#rooms,#detail) :is(.clan-relation,.deck-relations){display:none!important}
.sk-unified-fleet .fleet-sidebar .brand{margin:0 0 8px!important;padding:0!important}
.sk-unified-fleet .fleet-nav-caption{margin:18px 0 8px!important;font-size:11px!important}
.sk-unified-fleet .fleet-sidebar nav a,.sk-unified-fleet .fleet-sidebar-end :is(a,button){min-height:38px!important;border:1px solid var(--border-subtle)!important;border-radius:var(--radius-md)!important;background:var(--surface-control)!important;color:var(--text)!important;box-shadow:none!important}
.sk-unified-fleet .fleet-sidebar nav a.active{border-color:var(--accent-primary)!important;background:var(--accent-soft)!important;color:var(--accent-primary)!important}
.sk-unified-fleet .fleet-header{background:var(--surface-rail)!important;border-color:var(--border-subtle)!important;backdrop-filter:none!important;box-shadow:none!important}
.sk-unified-fleet .fleet-main{padding:clamp(10px,1.5vw,24px)!important;min-width:0;max-width:1800px!important}
.sk-unified-fleet :is(.fleet-panel,.fleet-card,.host-room-card,.skd-card,.skd-panel,.fleet-status,.ship-card,.hosted-room,.fleet-access-card,.fleet-hero,.hero,.skd-hero){background:var(--surface-card)!important;border:1px solid var(--border-subtle)!important;border-radius:var(--radius-md)!important;box-shadow:none!important;backdrop-filter:none!important;text-align:start}
.sk-unified-fleet :is(.fleet-grid,.ship-grid,.hosted-grid){min-width:0;max-width:100%;gap:10px!important}
.sk-unified-fleet :is(.fleet-header,.fleet-location,.fleet-status,.fleet-status-content){min-width:0;max-width:100%;flex-wrap:wrap}
.sk-unified-fleet :is(.fleet-header,.fleet-main) button{max-width:100%}
#preferencesDialog{width:min(560px,calc(100vw - 20px))!important;max-width:calc(100vw - 20px)!important;max-height:calc(100vh - 20px)!important;border:1px solid var(--border-subtle)!important;border-radius:12px!important;background:var(--surface)!important;box-shadow:none!important;backdrop-filter:none!important;padding:0!important;overflow:auto!important}
#preferencesDialog::backdrop{background:#0009!important;backdrop-filter:none!important}
#preferencesDialog .preferences-heading{position:sticky;top:0;z-index:2;background:var(--surface)!important;padding:14px 18px!important;border-bottom:1px solid var(--border-subtle)!important}
#preferencesDialog .preferences-content{padding:8px 18px!important;overflow:visible!important;max-height:none!important;min-width:0}
#preferencesDialog .unified-settings{display:grid;gap:0;min-width:0}
#preferencesDialog .unified-setting-section{border:0;background:none;padding:8px 0 12px;border-bottom:1px solid var(--border-subtle)}
#preferencesDialog .unified-setting-section h3{margin:3px 0 6px!important;font-size:12px!important;color:var(--accent-primary)!important;text-transform:none!important;letter-spacing:.02em!important}
#preferencesDialog .unified-setting-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(94px,auto);align-items:center;gap:12px;padding:9px 0;min-width:0}
#preferencesDialog .unified-setting-row strong{display:block;color:var(--text);font-size:13px;line-height:1.3}
#preferencesDialog .unified-setting-row small{display:block;color:var(--muted);font-size:11px;line-height:1.45;margin-top:3px;overflow-wrap:anywhere}
#preferencesDialog .unified-setting-control{min-width:0;max-width:100%;justify-self:end}
#preferencesDialog .unified-setting-control :is(select,button){min-height:36px!important;max-width:100%;border:1px solid var(--border-subtle)!important;border-radius:var(--radius-md)!important;background:var(--surface-control)!important;color:var(--text)!important;padding:5px 9px!important;font-size:12px!important}
#preferencesDialog .unified-switch{min-width:66px;text-align:center}
#preferencesDialog .unified-switch[aria-pressed="true"],#preferencesDialog .unified-setting-control button[aria-pressed="true"]{border-color:var(--accent-primary)!important;background:var(--accent-soft)!important;color:var(--accent-primary)!important}
#preferencesDialog .sk-motion-choice{display:flex;gap:3px;flex-wrap:wrap;justify-content:flex-end}
#preferencesDialog .unified-advanced{padding:12px 0;border-bottom:1px solid var(--border-subtle);min-width:0}
#preferencesDialog .unified-advanced summary{cursor:pointer;font-size:13px;font-weight:600;color:var(--text)}
#preferencesDialog .unified-advanced-content{padding-top:10px;min-width:0}
#preferencesDialog .unified-status{font-size:11px;color:var(--muted);margin:8px 0}
#preferencesDialog .unified-settings-footer{position:sticky;bottom:0;z-index:3;display:flex;justify-content:space-between;gap:10px;background:var(--surface);border-top:1px solid var(--border-subtle);padding:12px 18px}
#preferencesDialog .unified-settings-footer button{min-height:38px;padding:7px 14px;border:1px solid var(--border-subtle);border-radius:var(--radius-md);background:var(--surface-control);color:var(--text)}
#preferencesDialog .unified-settings-footer #unifiedDone{background:var(--accent-primary)!important;color:var(--on-accent)!important;border-color:var(--accent-primary)!important}
#preferencesDialog :is(button,select):focus-visible{outline:2px solid var(--accent-primary);outline-offset:2px}
@media(min-width:801px){.sk-command-deck .deck-rail{height:100vh;min-height:0;max-height:100vh}.sk-command-deck .deck-controls{flex:1}.sk-command-deck .deck-controls-content #deckLanguage{margin-top:4px}}
@media(max-width:800px){.sk-command-deck .deck-rail{padding:8px 10px!important;gap:6px!important}.sk-command-deck .deck-controls-content :is(#refresh,#newSystemAlertToggle,#themeToggle,#animationToggle,#preferencesButton){height:44px!important;min-height:44px!important}.sk-command-deck .deck-identity .brand-name{font-size:12px!important}.sk-command-deck .deck-identity .deck-credit{padding:3px 5px;margin:0!important}.sk-unified-fleet .fleet-main{padding:12px!important}.sk-unified-fleet .fleet-header{min-width:0}}
@media(max-width:420px){#preferencesDialog .preferences-content{padding:6px 12px!important}#preferencesDialog .unified-setting-row{gap:6px;grid-template-columns:minmax(0,1fr) minmax(80px,auto)}#preferencesDialog .unified-setting-control{max-width:132px}#preferencesDialog .unified-setting-control :is(select,button){min-height:40px!important}#preferencesDialog .unified-setting-control .sk-motion-choice button{padding:4px!important}#preferencesDialog .unified-settings-footer{padding:10px 12px}}

/* Chromium 100 / Electron 18 compatible vignette: no color-mix dependency. */
:root{--scene-rgb:9,9,11}
:root[data-theme="light"]{--scene-rgb:248,250,252}
body:is(.sk-command-deck,.sk-unified-fleet) #skSceneBackground::after{background:linear-gradient(rgba(var(--scene-rgb),var(--scene-dim)),rgba(var(--scene-rgb),var(--scene-dim))),radial-gradient(ellipse at center,transparent 28%,rgba(var(--scene-rgb),var(--scene-vignette)))!important}
@media(min-width:1121px){.sk-unified-fleet .fleet-sidebar{width:260px!important;box-sizing:border-box;padding:20px 16px!important}.sk-unified-fleet .fleet-shell{margin-inline-start:260px!important;min-width:0}}


/* ORIGINAL CSS: css/sk-intel-polish.css */

/* Shared lightweight polish; existing background, tokens and room grid unchanged. */
.polish-icon{display:inline-block!important;flex:0 0 16px;width:16px!important;height:16px!important;vertical-align:middle;overflow:visible;fill:none;stroke:currentColor}
.sk-command-deck :is(#preferencesButton,#deckAboutButton)::before,.sk-command-deck :is(#preferencesButton,#deckAboutButton)::after{content:none!important;display:none!important}
.sk-command-deck .polish-creator{position:static!important;display:flex!important;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 22px;padding:12px 0!important;min-width:0;max-width:100%;height:auto!important;text-align:start}
.sk-command-deck .polish-creator>p{flex:1 1 320px;min-width:0;margin:0!important;font-size:12px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere;position:static!important}
.sk-command-deck .polish-contact{display:flex;flex:0 1 auto;flex-direction:column;align-items:flex-start;gap:6px;min-width:0;max-width:100%}
.sk-command-deck .polish-credit{display:block;position:static!important;max-width:100%;white-space:normal!important;font-size:12px;color:var(--text-soft);overflow-wrap:anywhere}
.polish-dm{display:inline-flex;align-items:center;gap:7px;flex-wrap:wrap;max-width:100%;min-height:36px;padding:6px 10px;border:1px solid var(--border-subtle,var(--line));background:var(--surface-control,var(--surface-muted));color:var(--text);border-radius:8px;font:inherit;font-size:12px;cursor:pointer;position:relative}
.polish-dm .dm-handle{font-weight:600;color:var(--accent);overflow-wrap:anywhere}
.polish-dm[data-copy-state="success"]{border-color:#34d399}
.polish-dm .copy-feedback{font-size:11px;color:var(--text-soft)}
.polish-dm [hidden],.polish-relations[hidden]{display:none!important}
.polish-about-contact{border-top:1px solid var(--line);margin-top:14px;padding-top:14px;display:grid;gap:6px;justify-items:start}
.sk-copy-field{position:fixed!important;inset:0 auto auto 0!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;padding:0!important;border:0!important}
.polish-relations{min-width:0;max-width:100%;display:grid;gap:5px}
.deck-header>.polish-relations{grid-column:1/-1}
.polish-relation-buttons{display:flex;flex-wrap:wrap;gap:6px}
.polish-relation{--relation:#34d399;display:flex!important;align-items:center;gap:6px;padding:6px 9px!important;min-width:0;min-height:36px;max-width:100%;border:1px solid var(--relation)!important;background:#12382d70!important;color:var(--text)!important;border-radius:8px!important;font-size:12px!important;text-align:start}
.polish-relation.is-enemy{--relation:#fb7185;background:#4c152770!important}
.polish-relation .polish-icon,.polish-relation b{color:var(--relation)}
.polish-relation b{margin-inline-start:auto;font-variant-numeric:tabular-nums}
.polish-relation i{width:5px;height:5px;flex:0 0 5px;background:var(--relation);border-radius:50%}
.polish-relation[aria-pressed=true]{outline:1px solid var(--relation);outline-offset:1px}
.polish-coverage{font-size:10px;color:var(--muted);overflow-wrap:anywhere}
.rail-clan-card .polish-relation-buttons{display:grid;grid-template-columns:minmax(0,1fr)}
:root[data-theme=light] .polish-relation{--relation:#047857;background:#dcfce7!important}
:root[data-theme=light] .polish-relation.is-enemy{--relation:#be123c;background:#ffe4e6!important}
.sk-command-deck #deckIntelDialog{width:min(720px,100vw)!important}
.sk-command-deck #detail{display:flex!important;flex-direction:column;gap:14px;min-width:0}
.sk-command-deck #detail .polish-match-head{display:flex!important;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:10px;text-align:start;padding:0!important;border:0!important}
.polish-match-head>div:first-child{min-width:0;flex:1 1 280px}
.polish-match-head h2{font-size:clamp(20px,3vw,29px)!important;line-height:1.2;margin:0 0 8px!important;overflow-wrap:anywhere}
.polish-match-head .detail-meta,.polish-match-head .detail-counters{display:flex!important;gap:5px;flex-wrap:wrap;align-items:center;min-width:0}
.polish-match-head :is(.detail-meta,.detail-counters)>span{font-size:11px!important;padding:4px 7px!important;border:1px solid var(--line);border-radius:6px;background:var(--surface-muted);line-height:1.3;max-width:100%;overflow-wrap:anywhere}
.polish-match-head .detail-meta .deck-status-open{color:#86efac}
:root[data-theme=light] .polish-match-head .detail-meta .deck-status-open{color:#166534}
.sk-command-deck #detail .players-area{min-width:0;max-width:100%;padding:0!important;overflow:visible!important;flex:1}
.sk-command-deck #detail .system-player-finder{min-width:0;max-width:100%;display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:8px;background:var(--surface-muted);padding:4px 8px}
.sk-command-deck #detail .system-player-finder input{flex:1;min-width:0;width:100%;background:transparent}
.sk-command-deck #detail .section-title{font-size:13px!important;margin:16px 0 8px!important;text-align:start;line-height:1.4}
.polish-dominance{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:8px;min-width:0}
.polish-dominance-card,.polish-roster{border:1px solid var(--line);border-radius:10px;background:var(--surface-card);padding:10px;min-width:0;text-align:start;overflow:hidden}
.polish-score-head,.polish-score-meta,.polish-roster-head{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}
.polish-score-head strong{margin-inline-start:auto;font-size:16px;font-variant-numeric:tabular-nums}
.polish-score-head strong small{font-size:10px;color:var(--muted)}
.polish-rank{color:var(--accent);font-size:11px;font-weight:700}
.polish-score-meta{justify-content:space-between;font-size:11px;color:var(--muted);margin:9px 0 5px}
.polish-score-meta b{color:var(--text)}
.polish-progress{height:5px;border-radius:3px;background:var(--line);overflow:hidden}
.polish-progress span{display:block;width:100%;height:100%;background:var(--accent);transform-origin:left center;border-radius:3px}
:root[dir=rtl] .polish-progress span{transform-origin:right center}
.sk-command-deck #detail .clan-list{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:8px!important;min-width:0}
.polish-roster-head{justify-content:space-between;margin-bottom:8px;color:var(--muted);font-size:11px}
.polish-pilots{display:flex;flex-wrap:wrap;align-items:flex-start;gap:5px;min-width:0;max-width:100%}
.polish-pilot{display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px;max-width:100%;min-width:0;border:1px solid var(--line);background:var(--surface-muted);border-radius:6px;padding:4px 7px;font-size:12px;line-height:1.4;color:var(--text);overflow-wrap:anywhere}
.polish-pilot bdi{min-width:0;max-width:100%;overflow-wrap:anywhere}
.polish-untagged{padding:0!important;background:transparent!important}
.polish-show-all{margin-top:8px}
.sk-command-deck #detail .polish-match-actions{position:sticky!important;bottom:0;z-index:4;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:10px 0!important;margin-top:auto;background:var(--surface);border-top:1px solid var(--line);min-width:0}
.sk-command-deck #detail .polish-match-actions .btn{min-width:0;min-height:40px!important;white-space:normal!important;font-size:12px!important;justify-content:center;text-align:center;overflow-wrap:anywhere}
.sk-command-deck #detail .polish-match-actions .btn-primary{background:var(--accent)!important;color:var(--on-accent)!important}
@media(max-width:800px){.sk-command-deck #deckIntelDialog{width:100%!important}.polish-contact{flex:1 1 100%}.polish-relation{min-height:40px}.sk-command-deck #detail .polish-match-actions .btn{min-height:44px!important}}
@media(max-width:420px){.sk-command-deck #detail .polish-match-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.sk-command-deck #detail .polish-match-actions [data-action=leaderboard]{grid-column:1/-1}}
/* Only explicit motion mode, full motion tier, and no system reduction. No infinite decorative loops. */
@media(prefers-reduced-motion:no-preference){
:root[data-animation=on]:not([data-sk-motion-tier=lite]):not([data-sk-motion-suspended=true]) .sk-command-deck :is(.room-explorer-card,#regions button,.polish-relation,.polish-dm,.deck-ctas button,.deck-controls-content button){transition:transform .18s cubic-bezier(.16,1,.3,1),opacity .18s ease,border-color .18s ease}
:root[data-animation=on]:not([data-sk-motion-tier=lite]):not([data-sk-motion-suspended=true]) .sk-command-deck :is(.room-explorer-card,#regions button):hover{transform:translateY(-2px);border-color:var(--accent)!important}
:root[data-animation=on]:not([data-sk-motion-tier=lite]):not([data-sk-motion-suspended=true]) .sk-command-deck :is(button,.btn):active{transform:scale(.98)}
:root[data-animation=on]:not([data-sk-motion-tier=lite]):not([data-sk-motion-suspended=true]) .sk-command-deck .polish-progress span{transition:transform .18s ease-out}
:root[data-animation=on]:not([data-sk-motion-tier=lite]):not([data-sk-motion-suspended=true]) .sk-command-deck #rooms.polish-enter>.room-explorer-card{animation:polish-in .18s cubic-bezier(.16,1,.3,1) both}
:root[data-animation=on]:not([data-sk-motion-tier=lite]):not([data-sk-motion-suspended=true]) .sk-command-deck #rooms.polish-enter>.room-explorer-card:nth-child(3n+2){animation-delay:24ms}
:root[data-animation=on]:not([data-sk-motion-tier=lite]):not([data-sk-motion-suspended=true]) .sk-command-deck #rooms.polish-enter>.room-explorer-card:nth-child(3n){animation-delay:48ms}
:root[data-animation=on]:not([data-sk-motion-tier=lite]):not([data-sk-motion-suspended=true]) .sk-command-deck :is(#deckAboutDialog,#leaderboardDialog)[open]{animation:polish-modal .18s ease-out both}
}
@keyframes polish-in{from{opacity:.55;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@keyframes polish-modal{from{opacity:0;transform:scale(.985)}to{opacity:1;transform:scale(1)}}
:root[data-animation=off] .sk-command-deck :is(.room-explorer-card,.polish-progress span,.polish-relation,#regions button,dialog,button,.btn),:root[data-sk-motion-tier=lite] .sk-command-deck :is(.room-explorer-card,.polish-progress span,.polish-relation,#regions button,dialog,button,.btn){animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){.sk-command-deck :is(.room-explorer-card,.polish-progress span,.polish-relation,#regions button,dialog,button,.btn){animation:none!important;transition:none!important}}

.sk-command-deck #regions button::after{width:100%!important;transform:scaleX(var(--polish-load,0));transform-origin:left center}
:root[dir=rtl] .sk-command-deck #regions button::after{transform-origin:right center}
@media(prefers-reduced-motion:no-preference){
:root[data-animation=on]:not([data-sk-motion-tier=lite]):not([data-sk-motion-suspended=true]) .sk-command-deck #regions button::after{transition:transform .18s ease-out}
:root[data-animation=on]:not([data-sk-motion-tier=lite]):not([data-sk-motion-suspended=true]) .sk-command-deck .polish-relation[aria-pressed=true]{box-shadow:0 0 7px color-mix(in srgb,var(--relation) 18%,transparent)}
:root[data-animation=on]:not([data-sk-motion-tier=lite]):not([data-sk-motion-suspended=true]) .sk-command-deck #connection[data-state=live]::before{animation:polish-status .7s ease-out 2}
}
@keyframes polish-status{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.65;transform:scale(1.2)}}
:root[data-animation=off] .sk-command-deck #regions button::after,:root[data-sk-motion-tier=lite] .sk-command-deck #regions button::after{transition:none!important}


/* ORIGINAL CSS: css/sk-fire-red.css */

/* Fire Red: final shared brand layer, loaded after previous theme modules. */
:root,:root[data-palette],:root[data-theme=dark][data-palette]:where(:not([data-custom-color=on])){
 --brand-50:#fff1f1;--brand-100:#ffe0e2;--brand-200:#ffc5c9;--brand-300:#ff999f;--brand-400:#ff606b;--brand-500:#ff2e3b;--brand-600:#dc2030;--brand-700:#b91b28;--brand-800:#991923;--brand-900:#801821;--brand-950:#480b12;
 --bg-base:#090809;--surface-panel:rgba(18,14,16,.90);--surface-card:rgba(24,18,20,.92);--border-subtle:rgba(255,255,255,.08);--border-accent:rgba(255,46,59,.45);
 --accent-primary:#ff2e3b;--accent-hover:#ff4d58;--accent-soft:rgba(255,46,59,.14);--text-primary:#f8fafc;--text-secondary:#a1a1aa;--fire-glow:0 0 18px rgba(255,46,59,.32);
 --bg:var(--bg-base);--surface:#120e10;--surface-muted:#20191b;--surface-rail:var(--surface-panel);--surface-control:#20191b;--tint:#291c20;--tint-strong:#39252a;--line:var(--border-subtle);--line-strong:#55434a;--text:var(--text-primary);--text-soft:#d4d4d8;--muted:var(--text-secondary);--faint:var(--text-secondary);--accent:var(--accent-primary);--accent-strong:var(--accent-hover);--on-accent:#090809;--hero-bg:#120e10;--hero-ink:var(--text);--hero-soft:var(--text-soft);--hero-accent:var(--accent);--hero-line:var(--line);--scene-rgb:9,8,9;
}
:root[data-theme=light][data-palette]:where(:not([data-custom-color=on])){
 --bg-base:#f8fafc;--surface-panel:rgba(255,255,255,.96);--surface-card:rgba(255,255,255,.94);--border-subtle:#e3d9dc;--border-accent:#b91b28;--accent-primary:#b91b28;--accent-hover:#991923;--accent-soft:#ffe0e2;--text-primary:#21171a;--text-secondary:#62545a;
 --bg:var(--bg-base);--surface:#fff;--surface-muted:#f8f0f2;--surface-rail:var(--surface-panel);--surface-control:#f8f0f2;--tint:#f8f0f2;--tint-strong:#f0e0e4;--line:var(--border-subtle);--line-strong:#ac969d;--text:var(--text-primary);--text-soft:#45373e;--muted:var(--text-secondary);--faint:var(--text-secondary);--accent:var(--accent-primary);--accent-strong:var(--accent-hover);--on-accent:#fff;--hero-bg:#fff;--hero-ink:var(--text);--hero-soft:var(--text-soft);--hero-accent:var(--accent);--hero-line:var(--line);--scene-rgb:248,250,252
}
/* Semantic status and actual clan tag colors remain meaningful. */
html[data-palette] body :is(.btn-primary,.fleet-discord-connect,#unifiedDone,#shareRoom,#detail .polish-match-actions .btn-primary,.deck-card-actions .btn-primary){background:var(--accent-primary)!important;background-image:none!important;color:var(--on-accent)!important;border-color:var(--accent-primary)!important;box-shadow:none!important}
html[data-palette] body :is(.btn-primary,.fleet-discord-connect,#unifiedDone,#shareRoom):hover{background:var(--accent-hover)!important;border-color:var(--accent-hover)!important;color:var(--on-accent)!important}
html[data-palette] body :is(#regions button.active,#modes button.active,.fleet-sidebar nav a.active,.unified-switch[aria-pressed=true],.polish-relation[aria-pressed=true]){background:var(--accent-soft)!important;border-color:var(--accent-primary)!important;color:var(--text)!important}
html[data-palette] body :is(.palette-grid,.custom-accent-setting)[hidden],html[data-palette] #preferencesDialog [hidden],.fire-quick [hidden],.member-mode-actions [hidden]{display:none!important}
.sk-command-deck .deck-main{gap:12px}
.sk-command-deck .fire-quick{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0}
.fire-preview-quick{font-size:12px;min-height:36px;max-width:100%;white-space:normal}
[data-preview-toggle][aria-pressed=true]{border:1px solid var(--accent)!important;background:var(--accent-soft)!important}
.fire-preview-explainer,.fire-sample{font-size:11px;color:var(--muted);line-height:1.4}
.polish-relations[data-preview=true] .polish-coverage{color:var(--text-soft);font-weight:600}
.polish-relation.is-ally{--relation:#10b981;background:rgba(16,185,129,.12)!important}
.polish-relation.is-enemy{--relation:#f97316;background:rgba(249,115,22,.12)!important}
:root[data-theme=light] .polish-relation.is-ally{--relation:#047857;background:#dcfce7!important}
:root[data-theme=light] .polish-relation.is-enemy{--relation:#9a3412;background:#ffedd5!important}
html[data-palette] body .polish-relation[aria-pressed=true]{outline:2px solid var(--relation);border-color:var(--relation)!important}
.sk-command-deck #detail .clan-list{grid-template-columns:minmax(0,1fr)!important}
.sk-command-deck #detail .polish-roster{display:grid;grid-template-columns:minmax(95px,auto) minmax(0,1fr);align-items:start;gap:12px;padding:10px 12px}
.sk-command-deck #detail .polish-roster-head{justify-content:flex-start;flex-direction:column;align-items:flex-start;margin:0}
.sk-command-deck #detail .polish-pilot{white-space:normal;overflow-wrap:anywhere;text-align:start}
.sk-command-deck #detail .polish-match-head{padding-top:20px!important}
.sk-command-deck #deckIntelDialog .deck-intel-top{padding:20px 16px 12px!important;min-height:68px;box-sizing:border-box}
.sk-command-deck #deckIntelDialog .deck-intel-top h2{margin:0;line-height:1.4}
.sk-command-deck #deckIntelDialog .deck-intel-top button{flex:none}
#preferencesDialog[open]{display:flex!important;flex-direction:column;overflow:hidden!important;max-height:calc(100vh - 24px)!important}
#preferencesDialog .preferences-heading{position:static!important;flex:none;padding:20px 18px 14px!important;min-height:60px;box-sizing:border-box}
#preferencesDialog .preferences-content{flex:1 1 auto;min-height:0;overflow:auto!important;overscroll-behavior:contain;padding:14px 18px 10px!important;scroll-padding-top:12px}
#preferencesDialog .unified-settings-footer{position:static!important;flex:none}
#preferencesDialog .unified-setting-section:first-child{padding-top:0}
#preferencesDialog .preferences-heading h2{margin:0;line-height:1.4}
#preferencesDialog .preferences-close{flex:none}
.sk-command-deck .polish-progress span{background:var(--accent-primary)}
@media(max-width:800px){.sk-command-deck #deckIntelDialog .deck-intel-top{padding:20px 12px 10px!important}.sk-command-deck #detail .polish-match-head{padding-top:16px!important}}
@media(max-width:420px){.sk-command-deck #detail .polish-roster{grid-template-columns:minmax(0,1fr);gap:6px}.sk-command-deck #detail .polish-roster-head{flex-direction:row;align-items:center}.fire-quick .polish-dm{min-height:44px}#preferencesDialog .preferences-content{padding:12px!important}}
@media(prefers-reduced-motion:no-preference){
 :root[data-animation=on]:not([data-sk-motion-tier=lite]):not([data-sk-motion-suspended=true]) .sk-command-deck :is(.room-explorer-card,#regions button,.polish-dm,.polish-relation,.deck-ctas button,.deck-controls-content button){transition:transform .2s cubic-bezier(.22,1,.36,1),opacity .2s cubic-bezier(.22,1,.36,1),border-color .2s ease}
 :root[data-animation=on]:not([data-sk-motion-tier=lite]):not([data-sk-motion-suspended=true]) .sk-command-deck .room-explorer-card:hover{transform:translateY(-2px);border-color:var(--border-accent)!important;box-shadow:0 0 9px rgba(255,46,59,.16)!important}
 :root[data-animation=on]:not([data-sk-motion-tier=lite]):not([data-sk-motion-suspended=true]) .sk-command-deck #regions button::after{transition:transform .2s cubic-bezier(.22,1,.36,1)}
 :root[data-animation=on]:not([data-sk-motion-tier=lite]):not([data-sk-motion-suspended=true]) .sk-command-deck #rooms.polish-enter>.room-explorer-card{animation-timing-function:cubic-bezier(.22,1,.36,1);animation-duration:.2s}
 :root[data-animation=on]:not([data-sk-motion-tier=lite]):not([data-sk-motion-suspended=true]) .sk-command-deck .polish-relation[aria-pressed=true] i{animation:polish-status .9s ease-in-out 2}
 :root[data-animation=on]:not([data-sk-motion-tier=lite]):not([data-sk-motion-suspended=true]) .polish-dm[data-copy-state=success]{animation:fire-copy .2s cubic-bezier(.22,1,.36,1)}
 :root[data-animation=on]:not([data-sk-motion-tier=lite]):not([data-sk-motion-suspended=true]) dialog[open]{animation-timing-function:cubic-bezier(.22,1,.36,1)}
}
@keyframes fire-copy{0%{transform:scale(.98);opacity:.8}100%{transform:scale(1);opacity:1}}
:root[data-animation=off] :is(.polish-relation i,.polish-dm,#regions button::after),:root[data-sk-motion-tier=lite] :is(.polish-relation i,.polish-dm,#regions button::after){animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){.polish-relation i,.polish-dm,#regions button::after{animation:none!important;transition:none!important}}


/* ORIGINAL CSS: css/sk-ergonomic.css */

/* 85/10/5: neutral surfaces, semantic telemetry, restrained Fire Red focus. */
:root[data-palette],:root[data-theme=dark][data-palette]:where(:not([data-custom-color=on])){
 --bg-canvas:#0b0e14;--surface-1:rgba(18,22,30,.92);--surface-2:rgba(25,31,42,.94);--surface-3:#202736;
 --border-subtle:rgba(255,255,255,.07);--border-accent:rgba(225,29,72,.35);
 --accent-primary:#e11d48;--accent-hover:#f43f5e;--accent-soft:rgba(225,29,72,.14);--text-primary:#f1f5f9;--text-secondary:#94a3b8;
 --bg-base:var(--bg-canvas);--bg:var(--bg-canvas);--surface:#12161e;--surface-panel:var(--surface-1);--surface-rail:var(--surface-1);--surface-card:var(--surface-2);--surface-muted:var(--surface-3);--surface-control:var(--surface-3);--tint:var(--surface-3);--tint-strong:#303b4e;--line:var(--border-subtle);--line-strong:#45536a;--accent:var(--accent-primary);--accent-strong:var(--accent-hover);--on-accent:#fff;--text:var(--text-primary);--text-soft:#cbd5e1;--muted:var(--text-secondary);--faint:var(--text-secondary);--hero-bg:#12161e;--hero-ink:var(--text);--hero-soft:var(--text-soft);--hero-accent:var(--accent);--hero-line:var(--line);--scene-rgb:11,14,20;--scroll-thumb:#46546a;--neutral-progress:#64748b;
 --brand-400:#fb7185;--brand-500:#e11d48;--brand-600:#be123c;
}
:root[data-theme=light][data-palette]:where(:not([data-custom-color=on])){
 --bg-canvas:#f1f5f9;--surface-1:rgba(255,255,255,.96);--surface-2:rgba(255,255,255,.97);--surface-3:#e8edf4;--border-subtle:#dce3ec;--border-accent:#d19ca9;
 --accent-primary:#be123c;--accent-hover:#9f1239;--accent-soft:#fce7ed;--text-primary:#172033;--text-secondary:#526177;--bg-base:var(--bg-canvas);--bg:var(--bg-canvas);--surface:#fff;--surface-panel:var(--surface-1);--surface-rail:var(--surface-1);--surface-card:var(--surface-2);--surface-control:var(--surface-3);--surface-muted:var(--surface-3);--tint:var(--surface-3);--tint-strong:#dbe3ef;--line:var(--border-subtle);--line-strong:#94a3b8;--accent:var(--accent-primary);--accent-strong:var(--accent-hover);--on-accent:#fff;--text:var(--text-primary);--text-soft:#334155;--muted:var(--text-secondary);--faint:var(--text-secondary);--hero-bg:#fff;--hero-ink:var(--text);--hero-soft:var(--text-soft);--hero-accent:var(--accent);--hero-line:var(--line);--scene-rgb:241,245,249;--scroll-thumb:#94a3b8;--neutral-progress:#64748b;
}
html[data-palette] body :is(dialog,.deck-rail,.fleet-sidebar,.fleet-panel,.fleet-card,.room-explorer-card,.polish-dominance-card,.polish-roster,.search,.system-player-finder,input,select,textarea,.rail-clan-card){border-color:var(--border-subtle)!important}
html[data-palette] body :is(dialog,.deck-rail,.fleet-sidebar){background:var(--surface-1)!important;backdrop-filter:none!important}
html[data-palette] body #deckIntelDialog{background:var(--surface)!important;border:0!important;border-inline-start:1px solid var(--border-subtle)!important;box-shadow:-12px 0 32px rgba(0,0,0,.55)!important;overscroll-behavior:contain}
html[data-palette] body :is(.deck-intel-top,.preferences-heading,.unified-settings-footer){background:var(--surface)!important;border-color:var(--border-subtle)!important}
html[data-palette] body #rooms .room-explorer-card{background:var(--surface-2)!important;border:1px solid var(--border-subtle)!important;box-shadow:none!important}
html[data-palette] body #rooms .room-explorer-card::before{display:none!important}
html[data-palette] body #rooms .room-explorer-card:hover{border-color:var(--border-accent)!important;box-shadow:none!important}
html[data-palette] body #rooms .room.selected{background:var(--surface-3)!important}
html[data-palette] body .deck-card-actions{border:0!important;padding-top:2px}
html[data-palette] body :is(.btn,button):not(.btn-primary):not(#shareRoom):not(.active):not([aria-pressed=true]):not(.polish-relation):hover{border-color:var(--line-strong)!important}
html[data-palette] body :is(input,select,textarea):focus{border-color:var(--border-subtle)!important;box-shadow:none!important}
html[data-palette] body :is(input,select,textarea,button,a):focus-visible{outline:2px solid var(--accent-primary)!important;outline-offset:2px}
html[data-palette] body :is(.btn,button):not(.btn-primary):not(#shareRoom):not(.active):not([aria-pressed=true]):not(.polish-relation):is(.polish-dm,.fire-preview-quick,.polish-pilot){background:var(--surface-3)!important;color:var(--text)!important;border-color:var(--border-subtle)!important}
html[data-palette] body .deck-ctas #shareRoom{background:var(--surface-3)!important;color:var(--text)!important;border-color:var(--border-subtle)!important}
html[data-palette] body .deck-ctas #shareRoom:hover{background:var(--tint-strong)!important;color:var(--text)!important;border-color:var(--line-strong)!important}
html[data-palette] body .polish-relation.is-ally{--relation:#34d399;background:rgba(16,185,129,.12)!important;border:1px solid rgba(16,185,129,.28)!important;color:#34d399!important;box-shadow:none!important}
html[data-palette] body .polish-relation.is-enemy{--relation:#fb923c;background:rgba(249,115,22,.12)!important;border:1px solid rgba(249,115,22,.28)!important;color:#fb923c!important;box-shadow:none!important}
html[data-theme=light][data-palette] body .polish-relation.is-ally{--relation:#047857;color:#047857!important}
html[data-theme=light][data-palette] body .polish-relation.is-enemy{--relation:#9a3412;color:#9a3412!important}
html[data-palette] body .polish-relation[aria-pressed=true]{outline:1px solid var(--relation)!important;outline-offset:2px}
html[data-palette] body .polish-relations [hidden],html[data-palette] body .erg-sample-badge[hidden]{display:none!important}
.sk-command-deck .deck-header{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:12px 16px!important;padding-block-end:14px!important;align-items:center}
.sk-command-deck .erg-heading{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;min-width:0}
.sk-command-deck .erg-heading .deck-heading{flex:0 1 auto;min-width:0}
.sk-command-deck .erg-heading .polish-dm{flex:0 1 auto;max-width:100%}
.sk-command-deck .erg-actions{display:flex;grid-column:1/-1;align-items:center;flex-wrap:wrap;gap:8px 12px;min-width:0}
.sk-command-deck .erg-actions :is(.deck-ctas,.polish-relations,.fire-quick){display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0;max-width:100%;grid-column:auto}
.sk-command-deck .erg-actions .polish-relations[hidden]{display:none!important}
.sk-command-deck .erg-actions .polish-coverage{font-size:10px;max-width:100%}
.sk-command-deck .erg-sample-badge{font-size:11px;color:var(--text-soft);background:var(--surface-3);border-radius:6px;padding:4px 7px;white-space:normal}
.sk-command-deck .deck-telemetry{justify-content:flex-end}
.sk-command-deck .deck-header .polish-dm .dm-handle{color:var(--text-soft)}
.sk-command-deck .deck-rail #regions button:not(.active)::after{background:var(--neutral-progress)}
.sk-command-deck .deck-rail #regions button.active::after{background:var(--accent-primary)}
.sk-command-deck .deck-rail #memberModeToggle[aria-pressed=true]{border-color:var(--border-subtle)!important;background:var(--accent-soft)!important}
.sk-command-deck .deck-rail .rail-clan-card{background:transparent!important;padding:5px!important}
.sk-command-deck #detail .system-player-finder{background:var(--surface-3)!important;border:1px solid var(--border-subtle)!important;box-shadow:none!important}
.sk-command-deck #detail .system-player-finder:focus-within{outline:2px solid var(--accent-primary);outline-offset:2px}
.sk-command-deck #detail .system-player-finder input{background:transparent!important;border:0!important;outline:none!important;box-shadow:none!important}
.sk-command-deck #detail .polish-dominance{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.sk-command-deck #detail .polish-dominance-card{background:var(--surface-2)!important;border:1px solid var(--border-subtle)!important;box-shadow:none!important;padding:12px}
.sk-command-deck #detail .polish-dominance-card .polish-rank{color:var(--text-secondary)}
.sk-command-deck #detail .polish-dominance-card .polish-progress span{background:var(--neutral-progress)!important}
.sk-command-deck #detail .polish-dominance-card[data-rank="1"] .polish-progress span{background:var(--accent-primary)!important}
.sk-command-deck #detail .polish-dominance-card[data-rank="1"] .polish-rank{color:var(--accent-hover)}
.sk-command-deck #detail .polish-roster{background:none!important;border:0!important;border-bottom:1px solid var(--border-subtle)!important;border-radius:0;padding:12px 0}
html[data-palette] body #detail button.polish-pilot{background:var(--surface-3)!important;border:0!important;box-shadow:none!important;padding:5px 10px;border-radius:6px;color:var(--text)!important}
.sk-command-deck #detail .polish-pilots{gap:7px}
.sk-command-deck #detail .polish-match-actions{box-shadow:none!important;border-color:var(--border-subtle)!important}
.sk-command-deck #detail .polish-match-head{padding-block-start:12px!important}
.sk-command-deck #detail .polish-match-head :is(.detail-meta,.detail-counters)>span{border:0!important}
html{scrollbar-width:thin;scrollbar-color:var(--scroll-thumb) var(--bg-canvas)}
html.sk-modal-open,html.sk-modal-open body{overflow:hidden!important;overscroll-behavior:none}
html.sk-modal-open .deck-rail{overflow:hidden!important}
html.sk-modal-open #deckIntelDialog[open]{overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:thin}
html.sk-modal-open #preferencesDialog[open]{overflow:hidden!important}
html.sk-modal-open #preferencesDialog .preferences-content{overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:thin}
html.sk-modal-open #deckIntelDialog[open]:not(:last-child){overscroll-behavior:contain}
::-webkit-scrollbar{width:6px;height:6px}
::-webkit-scrollbar-track{background:var(--bg-canvas)}
::-webkit-scrollbar-thumb{background:var(--scroll-thumb);border-radius:8px}
@media(max-width:1100px){.sk-command-deck .deck-header{grid-template-columns:minmax(0,1fr)!important}.sk-command-deck .deck-telemetry{justify-content:flex-start}}
@media(max-width:650px){.sk-command-deck #detail .polish-dominance{grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr))}.sk-command-deck .erg-actions>*{max-width:100%}.sk-command-deck .erg-heading{gap:8px}.sk-command-deck .deck-header{gap:8px!important}}
@media(prefers-reduced-motion:no-preference){
 :root[data-animation=on]:not([data-sk-motion-tier=lite]):not([data-sk-motion-suspended=true]) .sk-command-deck :is(.room-explorer-card,#regions button,.polish-dm,.polish-relation,.deck-ctas button,.deck-controls-content button){transition:transform .18s cubic-bezier(.22,1,.36,1),opacity .18s cubic-bezier(.22,1,.36,1)}
 :root[data-animation=on]:not([data-sk-motion-tier=lite]):not([data-sk-motion-suspended=true]) .sk-command-deck #deckIntelDialog[open]{animation-duration:.18s;animation-timing-function:cubic-bezier(.22,1,.36,1)}
 :root[data-animation=on]:not([data-sk-motion-tier=lite]):not([data-sk-motion-suspended=true]) .polish-dm[data-copy-state=success]{animation-duration:.18s}
}

/* Only the frontmost dialog scrolls; keep its parent drawer position intact. */
html.sk-modal-open dialog.sk-modal-under,html.sk-modal-open dialog.sk-modal-under .preferences-content{overflow:hidden!important}
html.sk-modal-open .fleet-sidebar{overflow:hidden!important}
.sk-command-deck #detail .polish-match-head{padding-block-start:20px!important}

/* Neutralize legacy Aurora border tokens and modal transition conflicts. */
:root[data-palette][data-theme=dark],:root[data-palette][data-theme=light]{--accent-border:var(--border-subtle)}
:root[data-palette][data-theme] body #deckIntelDialog[open]{border:0!important;border-inline-start:1px solid var(--border-subtle)!important;transition:none!important}
:root[data-palette][data-theme] body dialog[open]{border-color:var(--border-subtle)!important}
:root[data-palette][data-theme] body dialog[open]::backdrop{backdrop-filter:none!important}
html.sk-modal-open body #deckIntelDialog[open].sk-modal-under{overflow:hidden!important}
@media(max-width:800px){:root[data-palette][data-theme] body #deckIntelDialog[open]{border-inline-start:0!important;border-top:1px solid var(--border-subtle)!important}}


/* ORIGINAL CSS: css/sk-ocean.css */

/* Shared slate foundation; only the accent changes between presets. */
:root[data-theme][data-palette]{
 --bg-canvas:#0b0f17;--surface-1:rgba(16,22,33,.92);--surface-2:rgba(22,30,44,.94);--surface-3:#1d2738;--border-subtle:rgba(255,255,255,.07);
 --text-primary:#f1f5f9;--text-secondary:#94a3b8;--bg:var(--bg-canvas);--bg-base:var(--bg-canvas);--surface:#101621;--surface-panel:var(--surface-1);--surface-rail:var(--surface-1);--surface-card:var(--surface-2);--surface-muted:var(--surface-3);--surface-control:var(--surface-3);--tint:var(--surface-3);--tint-strong:#303e52;--line:var(--border-subtle);--line-strong:#45536a;--accent-border:var(--border-subtle);--text:var(--text-primary);--muted:var(--text-secondary);--faint:var(--text-secondary);--text-soft:#cbd5e1;--hero-bg:var(--surface);--hero-ink:var(--text);--hero-soft:var(--text-soft);--hero-line:var(--line);--scene-rgb:11,15,23;
 --accent:var(--accent-primary);--accent-strong:var(--accent-hover);--hero-accent:var(--accent);--neutral-progress:#64748b;
}
:root[data-theme=dark][data-palette=blue]{--accent-primary:#0ea5e9;--accent-hover:#38bdf8;--accent-secondary:#14b8a6;--accent-soft:rgba(14,165,233,.14);--border-accent:rgba(14,165,233,.35);--on-accent:#0b0f17;--brand-400:#38bdf8;--brand-500:#0ea5e9;--brand-600:#0284c7}
:root[data-theme=dark][data-palette=red]{--accent-primary:#e11d48;--accent-hover:#f43f5e;--accent-secondary:#fb7185;--accent-soft:rgba(225,29,72,.14);--border-accent:rgba(225,29,72,.35);--on-accent:#fff;--brand-400:#fb7185;--brand-500:#e11d48;--brand-600:#be123c}
:root[data-theme=dark][data-palette=purple]{--accent-primary:#8b5cf6;--accent-hover:#a78bfa;--accent-secondary:#c4b5fd;--accent-soft:rgba(139,92,246,.14);--border-accent:rgba(139,92,246,.35);--on-accent:#0b0f17;--brand-400:#a78bfa;--brand-500:#8b5cf6;--brand-600:#7c3aed}
:root[data-theme=light][data-palette]{--bg-canvas:#f1f5f9;--surface-1:rgba(255,255,255,.96);--surface-2:rgba(255,255,255,.97);--surface-3:#e8edf4;--border-subtle:#dce3ec;--text-primary:#172033;--text-secondary:#526177;--surface:#fff;--text-soft:#334155;--tint-strong:#dbe3ef;--line-strong:#94a3b8;--scene-rgb:241,245,249;--on-accent:#fff}
:root[data-theme=light][data-palette=blue]{--accent-primary:#0369a1;--accent-hover:#075985;--accent-secondary:#0f766e;--accent-soft:#e0f2fe;--border-accent:#7dd3fc}
:root[data-theme=light][data-palette=red]{--accent-primary:#be123c;--accent-hover:#9f1239;--accent-secondary:#be123c;--accent-soft:#fce7ed;--border-accent:#d19ca9}
:root[data-theme=light][data-palette=purple]{--accent-primary:#6d28d9;--accent-hover:#5b21b6;--accent-secondary:#7c3aed;--accent-soft:#ede9fe;--border-accent:#c4b5fd}
#preferencesDialog #unifiedAccent{display:flex;flex-wrap:wrap;gap:5px;justify-content:flex-end;max-width:250px}
#preferencesDialog #unifiedAccent button{min-height:36px!important;white-space:normal!important;text-align:start;font-size:11px!important}
#preferencesDialog #unifiedAccent button::before{content:"";display:inline-block;width:9px;height:9px;border-radius:50%;margin-inline-end:5px;background:var(--swatch)}
#unifiedAccent [data-accent-choice=blue]{--swatch:#0ea5e9}#unifiedAccent [data-accent-choice=red]{--swatch:#e11d48}#unifiedAccent [data-accent-choice=purple]{--swatch:#8b5cf6}
#preferencesDialog #unifiedAccent button[aria-pressed=true]{outline:1px solid var(--accent);background:var(--accent-soft)!important}
:root[data-theme][data-palette] body #deckIntelDialog[open]{position:fixed!important;inset:0!important;margin:auto!important;width:min(780px,calc(100vw - 32px))!important;max-width:calc(100vw - 32px)!important;height:auto!important;max-height:calc(100vh - 40px)!important;border:1px solid var(--border-subtle)!important;border-radius:16px!important;box-shadow:0 18px 50px #0007!important;overflow:hidden!important;display:flex!important;flex-direction:column;box-sizing:border-box}
:root[data-theme][data-palette] body #deckIntelDialog .deck-intel-top{position:relative!important;flex:0 0 auto;padding:20px 22px 12px!important;border-top:2px solid var(--accent-secondary)!important;min-height:64px}
:root[data-theme][data-palette] body #deckIntelDialog .deck-intel-top h2{color:var(--text-soft)!important;font-size:14px!important}
:root[data-theme][data-palette] body #deckIntelDialog #detail{flex:1 1 auto;min-height:0;overflow:hidden!important;display:flex!important;flex-direction:column;gap:0!important;padding:0 22px!important}
.sk-command-deck #detail .polish-match-head{flex:0 0 auto;padding:16px 0!important;gap:12px}
.sk-command-deck #detail .polish-match-head h2{font-size:clamp(23px,4vw,32px)!important}
:root[data-theme][data-palette] body #detail .players-area{flex:1 1 auto;min-height:0;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;padding:0 2px 16px!important}
.sk-command-deck #detail .match-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;background:var(--surface-3);border-radius:9px;padding:4px;margin:12px 0}
.sk-command-deck #detail .match-tabs button{min-width:0;min-height:38px;white-space:normal;overflow-wrap:anywhere;background:transparent;border:1px solid transparent;color:var(--text-soft);border-radius:6px;font-size:12px;padding:6px}
.sk-command-deck #detail .match-tabs button[aria-pressed=true]{background:var(--surface)!important;border-color:var(--border-subtle)!important;color:var(--text)!important;font-weight:600}
.sk-command-deck #detail .section-title{font-size:14px!important;text-transform:none!important;letter-spacing:0!important;color:var(--text-soft)!important;margin:16px 0 10px!important}
.sk-command-deck #detail .polish-dominance{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px}
.sk-command-deck #detail .polish-dominance-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 14px;align-items:center;padding:12px!important}
.sk-command-deck #detail .polish-score-head{min-width:0;gap:10px}
.sk-command-deck #detail .polish-score-head strong{margin-inline-start:auto;white-space:nowrap;font-size:16px}
.sk-command-deck #detail .polish-score-meta{margin:0;justify-content:flex-end;gap:12px;white-space:nowrap}
.sk-command-deck #detail .polish-progress{grid-column:1/-1;height:5px}
.sk-command-deck #detail .polish-dominance-card[data-rank="1"] .polish-progress span{background:var(--accent-secondary)!important}
.sk-command-deck #detail .polish-dominance-card[data-rank="1"] .polish-rank{color:var(--accent-secondary)!important}
.sk-command-deck #detail .polish-roster{background:var(--surface-2)!important;border:0!important;border-radius:10px!important;padding:12px!important}
.sk-command-deck #detail .polish-pilot{padding:6px 12px!important}
.sk-command-deck #detail .polish-pilot[data-relation=ally]{color:#34d399!important;background:rgba(16,185,129,.13)!important}
.sk-command-deck #detail .polish-pilot[data-relation=enemy]{color:#fb923c!important;background:rgba(249,115,22,.13)!important}
:root[data-theme=light] .sk-command-deck #detail .polish-pilot[data-relation=ally]{color:#047857!important}
:root[data-theme=light] .sk-command-deck #detail .polish-pilot[data-relation=enemy]{color:#9a3412!important}
.sk-command-deck #detail .match-sync,.sk-command-deck #detail .match-preview{display:inline-block;background:var(--surface-3);border-radius:6px;padding:5px 9px;color:var(--text-soft);font-size:12px;margin:5px 0}
:root[data-theme][data-palette] body #detail .polish-match-actions{position:relative!important;flex:0 0 auto;bottom:auto;padding:12px 0 16px!important;margin:0!important}
html.sk-modal-open body #deckIntelDialog[open].sk-modal-under .players-area{overflow:hidden!important}
@media(max-width:800px){:root[data-theme][data-palette] body #deckIntelDialog[open]{inset:auto 0 0!important;margin:0!important;width:100%!important;max-width:100%!important;height:100vh!important;max-height:100vh!important;border-radius:16px 16px 0 0!important}
:root[data-theme][data-palette] body #deckIntelDialog #detail{padding:0 12px!important}
:root[data-theme][data-palette] body #deckIntelDialog .deck-intel-top{padding:16px 12px 10px!important}
.sk-command-deck #detail .polish-dominance-card{grid-template-columns:minmax(0,1fr);gap:6px}
.sk-command-deck #detail .polish-score-meta{justify-content:space-between}
}
@media(max-width:420px){#preferencesDialog #unifiedAccent{max-width:130px}#preferencesDialog #unifiedAccent button{flex:1 1 100%}}
@media(prefers-reduced-motion:no-preference){:root[data-animation=on]:not([data-sk-motion-tier=lite]):not([data-sk-motion-suspended=true]) body #deckIntelDialog[open]{animation:match-enter .18s cubic-bezier(.22,1,.36,1) both}}
@keyframes match-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}

/* Dark text on luminous sapphire/violet, and accessible stronger light-mode tones. */
:root[data-theme=dark][data-palette=purple]{--on-accent:#030509}
:root[data-theme][data-palette] body .polish-dm[data-copy-state=success]{border-color:#34d399!important}
:root[data-theme][data-palette] body #detail .system-player-finder input:focus-visible{outline:none!important}
:root[data-theme][data-palette] body #detail .system-player-finder:focus-within{outline:2px solid var(--accent-primary);outline-offset:2px}
@media(max-width:800px){@supports(height:100dvh){:root[data-theme][data-palette] body #deckIntelDialog[open]{height:100dvh!important;max-height:100dvh!important}}}


/* ORIGINAL CSS: css/sk-final.css */

/* Final Ocean release: neutral layout, compact status, one scroll region per modal. */
.sk-command-deck #detail,.sk-command-deck #detail *,.sk-command-deck #leaderboardDialog,.sk-command-deck #leaderboardDialog *{box-sizing:border-box;min-width:0}
.sk-command-deck #detail .polish-dominance-card{max-width:100%;grid-template-columns:minmax(0,1fr) minmax(0,auto);overflow:visible}
.sk-command-deck #detail .polish-score-head,.sk-command-deck #detail .polish-score-meta{flex-wrap:wrap;white-space:normal}
.sk-command-deck #detail .polish-score-head strong{white-space:normal;overflow-wrap:anywhere;text-align:end}
.sk-command-deck #detail .polish-pilots{padding:3px 0 8px;gap:8px;max-width:100%}
.sk-command-deck #detail .polish-pilot{max-width:100%;overflow-wrap:anywhere;white-space:normal}
.sk-command-deck #detail .players-area{padding-inline:3px 8px!important}
.sk-command-deck .sample-pilot-label{font-size:9px;color:var(--text-soft);font-weight:400}
.sk-command-deck #selectedRoomRelations{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:10px}
.sk-command-deck #selectedRoomRelations[hidden]{display:none!important}
.sk-command-deck .member-relation-total{min-height:34px;border-radius:7px!important;gap:7px;padding:6px 9px!important;border:1px solid var(--border-subtle)!important;background:var(--surface-3)!important}
.sk-command-deck .member-relation-total.is-allied{color:#34d399!important;background:rgba(16,185,129,.13)!important;border-color:rgba(16,185,129,.28)!important}
.sk-command-deck .member-relation-total.is-enemy{color:#fb923c!important;background:rgba(249,115,22,.13)!important;border-color:rgba(249,115,22,.28)!important}
:root[data-theme=light] .sk-command-deck .member-relation-total.is-allied{color:#047857!important}
:root[data-theme=light] .sk-command-deck .member-relation-total.is-enemy{color:#9a3412!important}
.sk-command-deck .member-relation-total[aria-pressed=true]{outline:2px solid currentColor;outline-offset:1px}
.sk-command-deck .deck-rail #autoRefreshToggle,.sk-command-deck .deck-rail #gameStatusToggle{grid-column:1/-1;display:flex!important;position:static!important;align-items:center;justify-content:flex-start;gap:7px;width:100%!important;min-height:38px!important;height:auto!important;padding:7px 9px!important;font-size:11px!important;white-space:normal!important;background:var(--surface-3)!important;color:var(--text-soft)!important;border:1px solid var(--border-subtle)!important;border-radius:8px!important;box-shadow:none!important}
.sk-command-deck .deck-rail #autoRefreshToggle .rail-state{margin-inline-start:auto}
.sk-command-deck .deck-rail #autoRefreshToggle[aria-pressed=true] .rail-state{color:var(--accent-secondary);font-weight:700}
.sk-command-deck .deck-rail #gameStatusToggle .game-status-dot{margin-inline-start:auto}
.sk-command-deck .deck-rail #gameStatusBadge{font-size:11px;white-space:normal}
.polish-dm .discord-mark{fill:currentColor!important;stroke:none!important}
.polish-dm .dm-handle{min-width:0;white-space:normal;overflow-wrap:anywhere;font-size:11px;line-height:1.4}
.polish-dm[data-copy-state=success] .dm-handle{display:none}
.polish-dm[data-copy-state=success] [data-copy-feedback]{color:var(--accent-secondary);font-weight:600}
.sk-command-deck .erg-heading .polish-dm{max-width:min(100%,390px)}
:root[data-theme][data-palette] body #radarToast{position:fixed!important;inset:auto 20px 20px auto!important;left:auto!important;top:auto!important;right:20px!important;bottom:20px!important;margin:0!important;width:max-content!important;max-width:calc(100vw - 40px)!important;z-index:9999!important;pointer-events:none!important;transform:translateY(8px)!important;opacity:0;background:var(--surface)!important;color:var(--text)!important;border:1px solid var(--border-subtle)!important;box-shadow:0 6px 20px #0004;border-radius:9px;padding:10px 14px!important}
:root[data-theme][data-palette] body #radarToast.visible{transform:translateY(0)!important;opacity:1}
@media(prefers-reduced-motion:no-preference){:root[data-animation=on]:not([data-sk-motion-tier=lite]) body #radarToast{transition:transform .18s cubic-bezier(.22,1,.36,1),opacity .18s ease!important}}
:root[data-animation=off] body #radarToast,:root[data-sk-motion-tier=lite] body #radarToast{transition:none!important}
@media(prefers-reduced-motion:reduce){body #radarToast{transition:none!important}}
/* Survival and team leaderboard use a single scroll owner; the header stays outside it. */
:root[data-theme][data-palette] body #leaderboardDialog[open]{display:flex!important;flex-direction:column;overflow:hidden!important;width:min(850px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;max-height:calc(100vh - 24px)!important;height:auto!important;padding:0!important;border:1px solid var(--border-subtle)!important;border-radius:16px!important;background:var(--surface)!important;box-shadow:0 18px 50px #0007!important}
:root[data-theme][data-palette] body #leaderboardDialog>.dialog-heading{position:relative!important;flex:0 0 auto;min-height:64px;padding:18px 20px!important;background:var(--surface)!important;border-bottom:1px solid var(--border-subtle)!important;z-index:6}
#leaderboardTitle{color:var(--text)!important;text-transform:none!important;letter-spacing:0!important;font-size:19px!important}
:root[data-theme][data-palette] body #leaderboardContent{flex:1 1 auto;min-height:0;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;padding:14px 20px 20px!important}
#leaderboardDialog .leaderboard-room{font-size:25px!important;line-height:1.25;margin:0 0 5px!important;color:var(--text);overflow-wrap:anywhere}
#leaderboardDialog .leaderboard-updated,#leaderboardDialog .leaderboard-player-summary{margin:5px 0 12px!important;color:var(--muted)}
#leaderboardDialog .leaderboard-clan-buttons{display:flex!important;flex-wrap:wrap!important;overflow:visible!important;gap:6px}
#leaderboardDialog .leaderboard-clan-filters{border:0!important;background:none!important;padding:0!important}
#leaderboardDialog .final-podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:14px 0}
#leaderboardDialog .final-podium:empty{display:none}
#leaderboardDialog .final-podium-card{display:flex;flex-direction:column;align-items:flex-start;gap:7px;background:var(--surface-2);border:1px solid var(--border-subtle);border-radius:12px;padding:13px;overflow-wrap:anywhere}
#leaderboardDialog .final-medal{font-size:12px;color:var(--text-secondary);font-weight:700}
#leaderboardDialog [data-rank="1"] .final-medal{color:var(--accent-secondary)}
#leaderboardDialog .final-podium-name{font-size:14px;font-weight:600;color:var(--text);max-width:100%;overflow-wrap:anywhere}
#leaderboardDialog .final-podium-card strong{font-size:18px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
#leaderboardDialog .final-podium-card strong small{font-size:10px;color:var(--muted)}
#leaderboardDialog .final-clan-chip{font-size:11px;border-radius:5px;padding:4px 7px;background:var(--surface-3);color:var(--muted)}
#leaderboardDialog .final-podium-ship{min-height:25px}
#leaderboardDialog .leaderboard-scroll{overflow:visible!important;max-height:none!important;border:0!important}
#leaderboardDialog .leaderboard-table{width:100%!important;min-width:0!important;table-layout:fixed;border-collapse:separate;border-spacing:0}
#leaderboardDialog .leaderboard-table thead{position:static!important}
#leaderboardDialog .leaderboard-table th{position:sticky!important;top:0!important;z-index:5!important;background:var(--surface)!important;color:var(--text-soft)!important;white-space:normal;line-height:1.4;text-align:start;padding:10px 7px!important}
#leaderboardDialog .leaderboard-table td{padding:10px 7px!important;white-space:normal!important;overflow-wrap:anywhere;vertical-align:middle}
#leaderboardDialog .leaderboard-table th:nth-child(1){width:12%}#leaderboardDialog .leaderboard-table th:nth-child(2){width:43%}#leaderboardDialog .leaderboard-table th:nth-child(3){width:20%}#leaderboardDialog .leaderboard-table th:nth-child(4){width:25%}
#leaderboardDialog .leaderboard-table td:last-child,#leaderboardDialog .leaderboard-table th:last-child{text-align:end}
#leaderboardDialog .final-ranked-player{display:flex;align-items:center;flex-wrap:wrap;gap:5px;overflow-wrap:anywhere}
#leaderboardDialog .final-ranked-player bdi{max-width:100%;overflow-wrap:anywhere}
/* Team renderer retains map canvas, SVG, keys, controls, and existing data feed. */
:root[data-theme][data-palette] body #leaderboardDialog.team-spectator-dialog[open]{width:min(1280px,calc(100vw - 24px))!important}
#leaderboardDialog .final-team-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;padding:8px 0 14px}
#leaderboardDialog .final-team-header h3{font-size:25px;margin:0 0 5px;line-height:1.3;overflow-wrap:anywhere;color:var(--text)}
#leaderboardDialog .final-team-header span{font-size:12px;color:var(--muted)}
#leaderboardDialog .final-team-actions{display:flex;flex-wrap:wrap;gap:6px}
#leaderboardDialog .spectator-toolbar{padding:0 0 9px!important;border:0!important;font-size:12px}
#leaderboardDialog .final-team-dominance{padding:10px 12px;background:var(--surface-2);border-radius:10px;margin-bottom:14px}
#leaderboardDialog .final-team-share-label{font-size:12px;color:var(--text-soft);margin-bottom:7px}
#leaderboardDialog .final-team-share{display:flex;height:8px;gap:2px;border-radius:8px;overflow:hidden;background:var(--surface-3)}
#leaderboardDialog .final-team-share span{flex-basis:0;background:hsl(var(--team-hue) 75% 57%)}
#leaderboardDialog .final-team-share-legend{display:flex;flex-wrap:wrap;gap:5px 14px;margin-top:7px;font-size:11px}
#leaderboardDialog .final-team-share-legend span{color:hsl(var(--team-hue) 70% 70%)}
:root[data-theme=light] #leaderboardDialog .final-team-share-legend span{color:hsl(var(--team-hue) 75% 29%)}
:root[data-theme][data-palette] body #leaderboardDialog .spectator-layout{display:grid!important;grid-template-columns:minmax(0,42fr) minmax(0,58fr)!important;gap:12px!important;align-items:start}
:root[data-theme][data-palette] body #leaderboardDialog .spectator-map-panel{min-width:0;padding:12px!important;background:var(--surface-2)!important;border:1px solid var(--border-subtle)!important;border-radius:14px!important;overflow:visible!important}
:root[data-theme][data-palette] body #leaderboardDialog .spectator-teams{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;overflow:visible!important}
:root[data-theme][data-palette] body #leaderboardDialog .spectator-team{min-width:0;padding:12px!important;background:var(--surface-2)!important;border:1px solid var(--border-subtle)!important;border-inline-start:3px solid hsl(var(--team-hue) 75% 58%)!important;border-radius:12px!important;overflow:visible!important}
#leaderboardDialog .team-column-heading{justify-content:flex-start!important;flex-wrap:wrap;gap:7px}
#leaderboardDialog .final-team-score{margin-inline-start:auto;font-size:13px;font-variant-numeric:tabular-nums;color:var(--text-soft);overflow-wrap:anywhere}
#leaderboardDialog .team-metrics{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important}
#leaderboardDialog .team-metric{background:var(--surface-3)!important;border:0!important;border-radius:7px!important;min-width:0}
#leaderboardDialog .team-roster{overflow:visible!important;max-height:none!important}
#leaderboardDialog .team-player-select{display:grid!important;grid-template-columns:30px minmax(0,1fr) minmax(0,auto)!important;grid-template-areas:"ship name score";gap:6px!important;align-items:center;text-align:start!important}
#leaderboardDialog .team-player-name{grid-area:name;flex-wrap:wrap!important;white-space:normal!important;overflow-wrap:anywhere}
#leaderboardDialog .team-player-name bdi{white-space:normal!important;overflow-wrap:anywhere}
#leaderboardDialog .team-player-ship{grid-area:ship}#leaderboardDialog .team-player-score{grid-area:score;white-space:normal!important;overflow-wrap:anywhere;text-align:end}
:root[data-theme][data-palette] body #leaderboardDialog[data-team-map-expanded][open]{inset:0!important;margin:0!important;width:100%!important;max-width:100%!important;height:100%!important;max-height:100%!important;border-radius:0!important}
:root[data-theme][data-palette] body #leaderboardDialog[data-team-map-expanded] .spectator-layout{display:block!important}
:root[data-theme][data-palette] body #leaderboardDialog[data-team-map-expanded] .spectator-teams{display:none!important}
:root[data-theme][data-palette] body #leaderboardDialog[data-team-map-expanded] .spectator-map-panel{min-height:0!important}
:root[data-theme][data-palette] body #leaderboardDialog[data-team-map-expanded] #leaderboardContent{padding:0!important}
:root[data-theme][data-palette] body #leaderboardDialog.sk-modal-under #leaderboardContent{overflow:hidden!important}
@media(max-width:800px){
:root[data-theme][data-palette] body #leaderboardDialog[open]{width:calc(100vw - 12px)!important;max-width:calc(100vw - 12px)!important}
:root[data-theme][data-palette] body #leaderboardContent{padding:10px 12px 14px!important}
:root[data-theme][data-palette] body #leaderboardDialog .spectator-layout{grid-template-columns:minmax(0,1fr)!important}
.sk-command-deck #detail .polish-dominance-card{grid-template-columns:minmax(0,1fr)!important}
.sk-command-deck #detail .polish-score-meta{justify-content:space-between}
}
@media(max-width:420px){#leaderboardDialog .final-podium{gap:5px}#leaderboardDialog .final-podium-card{padding:7px;gap:5px}#leaderboardDialog .final-podium-card strong{font-size:13px}#leaderboardDialog .final-podium-name{font-size:12px}#leaderboardDialog .leaderboard-table td,#leaderboardDialog .leaderboard-table th{padding:8px 3px!important;font-size:11px!important}}


/* ORIGINAL CSS: css/sk-team-ledger.css */

/* Team-only reference ledger. Existing map rendering, stream and data keys stay intact. */
:root[data-theme][data-palette] body #leaderboardDialog.team-spectator-dialog[open]{width:min(1440px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important}
:root[data-theme][data-palette] body #leaderboardDialog.team-spectator-dialog>.dialog-heading{display:none!important}
:root[data-theme][data-palette] body #leaderboardDialog.team-spectator-dialog #leaderboardContent{padding:14px!important}
#leaderboardDialog.team-spectator-dialog .ledger-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:var(--surface-2);border:1px solid var(--border-subtle);border-radius:12px;padding:13px 15px;margin:0 0 12px}
#leaderboardDialog.team-spectator-dialog .ledger-heading{flex:1 1 320px;min-width:0}
#leaderboardDialog.team-spectator-dialog .ledger-heading h3{margin:0 0 7px;color:var(--text-primary);font-size:clamp(17px,2vw,23px);line-height:1.3;overflow-wrap:anywhere}
#leaderboardDialog.team-spectator-dialog .ledger-meta,#leaderboardDialog.team-spectator-dialog .ledger-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
#leaderboardDialog.team-spectator-dialog .ledger-meta>span{background:var(--surface-3);padding:4px 7px;border-radius:5px;font-size:10px;color:var(--text-secondary);font-variant-numeric:tabular-nums}
#leaderboardDialog.team-spectator-dialog .ledger-actions .btn{display:inline-flex;align-items:center;justify-content:center;min-height:36px;white-space:normal}
#leaderboardDialog.team-spectator-dialog .ledger-close{padding:7px;min-width:36px}
:root[data-theme][data-palette] body #leaderboardDialog.team-spectator-dialog .spectator-layout{grid-template-columns:minmax(0,46fr) minmax(0,54fr)!important;align-items:start;gap:10px!important}
:root[data-theme][data-palette] body #leaderboardDialog.team-spectator-dialog .spectator-map-panel{padding:10px!important;border-radius:12px!important}
#leaderboardDialog.team-spectator-dialog .spectator-map{width:100%!important;max-width:none!important;aspect-ratio:1/1!important;height:auto!important;background:#0d1118!important;border:1px solid var(--border-subtle)!important;border-radius:12px!important;box-shadow:none!important}
#leaderboardDialog.team-spectator-dialog .spectator-map-heading{padding:0 1px 8px;font-size:11px;letter-spacing:0;text-transform:none}
#leaderboardDialog.team-spectator-dialog .team-map-tools{gap:4px;margin-bottom:8px}
#leaderboardDialog.team-spectator-dialog .team-map-tools>button{padding:5px 8px;min-height:29px}
:root[data-theme][data-palette] body #leaderboardDialog.team-spectator-dialog .spectator-teams{grid-template-columns:repeat(var(--team-count,3),minmax(0,1fr))!important;gap:0!important;background:var(--surface-1)!important;border:1px solid var(--border-subtle);border-radius:12px;overflow:visible!important;align-items:stretch}
:root[data-theme][data-palette] body #leaderboardDialog.team-spectator-dialog .spectator-team{padding:10px 7px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
:root[data-theme][data-palette] body #leaderboardDialog.team-spectator-dialog .spectator-team+.spectator-team{border-inline-start:1px solid var(--border-subtle)!important}
#leaderboardDialog.team-spectator-dialog .team-column-heading{justify-content:center!important;flex-wrap:wrap;gap:5px;min-height:34px;border-bottom:2px solid hsl(var(--team-hue) 75% 54%);padding-bottom:8px;margin-bottom:5px}
#leaderboardDialog.team-spectator-dialog .team-column-heading h3{font-size:14px!important;letter-spacing:0!important;text-transform:none!important;text-align:center;overflow-wrap:anywhere}
#leaderboardDialog.team-spectator-dialog .team-join-state{display:inline-flex;align-items:center;flex:none}
#leaderboardDialog.team-spectator-dialog .team-faction{font-size:10px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0 0 5px}
#leaderboardDialog.team-spectator-dialog .team-metrics{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:0!important;border-top:0!important;border-bottom:1px solid var(--border-subtle)!important;padding:3px 0 7px!important;margin:0!important}
#leaderboardDialog.team-spectator-dialog .team-metric{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,auto);align-items:baseline;gap:5px;min-height:25px;padding:4px 2px!important;background:none!important;border:0!important;border-radius:0!important}
#leaderboardDialog.team-spectator-dialog .team-metric>span:first-child{font-size:10px!important;font-weight:500;letter-spacing:0!important;text-transform:none!important;overflow-wrap:anywhere;color:var(--text-secondary)}
#leaderboardDialog.team-spectator-dialog .team-metric>strong{font-size:12px!important;font-variant-numeric:tabular-nums;white-space:normal;overflow-wrap:anywhere;text-align:end;color:var(--text-primary)!important}
#leaderboardDialog.team-spectator-dialog .team-roster-heading{margin:8px 2px 5px;font-size:10px;text-transform:none;letter-spacing:0}
#leaderboardDialog.team-spectator-dialog .team-roster{max-height:none!important;overflow:visible!important}
#leaderboardDialog.team-spectator-dialog .team-player{min-width:0;margin:0 0 1px}
#leaderboardDialog.team-spectator-dialog .team-player-select{grid-template-columns:minmax(0,1fr) minmax(0,auto) 16px!important;grid-template-areas:"name score ship"!important;gap:4px!important;min-height:29px!important;padding:5px 5px!important;border-radius:6px!important}
#leaderboardDialog.team-spectator-dialog .team-player-name{display:flex!important;flex-wrap:nowrap!important;gap:3px!important;min-width:0;white-space:nowrap!important;font-size:11px!important}
#leaderboardDialog.team-spectator-dialog .team-player-name bdi{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap!important}
#leaderboardDialog.team-spectator-dialog .team-player-score{font-size:10px!important;font-variant-numeric:tabular-nums;white-space:nowrap!important;overflow:visible!important;text-align:end}
#leaderboardDialog.team-spectator-dialog .team-player-ecp{display:flex;align-items:center;flex:0 0 12px}
#leaderboardDialog.team-spectator-dialog .team-player-ship{width:16px;height:16px;color:hsl(var(--team-hue) var(--team-saturation) var(--team-lightness));flex:none}
#leaderboardDialog.team-spectator-dialog .team-player-ship .player-ship-icon{width:16px!important;height:16px!important;font-family:var(--font-ship,'Starblast Ships'),sans-serif;font-size:16px!important;line-height:16px!important;color:inherit!important}
#leaderboardDialog.team-spectator-dialog .team-player[data-relation=ally] .team-player-select{background:rgba(16,185,129,.12)}
#leaderboardDialog.team-spectator-dialog .team-player[data-relation=enemy] .team-player-select{background:rgba(249,115,22,.12)}
#leaderboardDialog.team-spectator-dialog .ledger-relation-dot{width:5px;height:5px;flex:0 0 5px;border-radius:50%;background:#34d399}
#leaderboardDialog.team-spectator-dialog .team-player[data-relation=enemy] .ledger-relation-dot{background:#fb923c}
#leaderboardDialog.team-spectator-dialog .team-player-select:is(:hover,:focus-visible,.is-map-selected){outline:1px solid var(--accent-primary);outline-offset:-1px;background:var(--accent-soft)}
#leaderboardDialog.team-spectator-dialog .spectator-unassigned .team-player-select{grid-template-columns:minmax(0,1fr) auto 16px!important}
:root[data-theme][data-palette] body #leaderboardDialog.team-spectator-dialog[data-team-map-expanded] .spectator-layout{display:block!important}
:root[data-theme][data-palette] body #leaderboardDialog.team-spectator-dialog[data-team-map-expanded] .spectator-map{width:min(100%,var(--team-map-expanded-width))!important}
@media(max-width:959px){
:root[data-theme][data-palette] body #leaderboardDialog.team-spectator-dialog .spectator-layout{grid-template-columns:minmax(0,1fr)!important}
#leaderboardDialog.team-spectator-dialog .spectator-map{max-width:650px!important;margin-inline:auto}
}
@media(max-width:560px){
:root[data-theme][data-palette] body #leaderboardDialog.team-spectator-dialog .spectator-teams{grid-template-columns:minmax(0,1fr)!important}
:root[data-theme][data-palette] body #leaderboardDialog.team-spectator-dialog .spectator-team+.spectator-team{border-inline-start:0!important;border-top:1px solid var(--border-subtle)!important}
#leaderboardDialog.team-spectator-dialog .team-player-select{padding:5px 8px!important;min-height:34px!important}
#leaderboardDialog.team-spectator-dialog .team-player-name,#leaderboardDialog.team-spectator-dialog .team-player-score{font-size:12px!important}
#leaderboardDialog.team-spectator-dialog .ledger-heading{flex-basis:100%}
}

/* Use the bundled game font, not a guessed family name. */
#leaderboardDialog.team-spectator-dialog .team-player-ship .player-ship-icon{font-family:'SK Vanilla Ships'!important;font-weight:normal!important;display:inline-grid;place-items:center;background:none!important;border:0!important;box-shadow:none!important}
#leaderboardDialog.team-spectator-dialog .team-player-ecp{background:none!important;border:0!important;box-shadow:none!important}


/* ORIGINAL CSS: css/sk-direct-live.css */
/* Direct spectating: one dialog, one scroll owner. */
#leaderboardDialog .spectate-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 14px;border-bottom:1px solid var(--border-subtle);flex:none;background:var(--surface)}
#spectateConnection{font-size:11px;font-weight:700;border-radius:6px;padding:5px 8px;color:var(--text-soft);background:var(--surface-3);font-variant-numeric:tabular-nums}
#spectateConnection[data-state=live]{color:#34d399;background:rgba(16,185,129,.12)}
#spectateConnection[data-state=stale]{color:#fb923c;background:rgba(249,115,22,.12)}
:root[data-theme=light] #spectateConnection[data-state=live]{color:#047857}
:root[data-theme=light] #spectateConnection[data-state=stale]{color:#9a3412}
#spectateSearch{flex:1 1 180px;min-width:0;max-width:100%;min-height:36px;padding:7px 10px;border:1px solid var(--border-subtle);border-radius:7px;background:var(--surface-3);color:var(--text)}
.spectate-actions{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}
#leaderboardDialog .polish-dominance{display:grid;grid-template-columns:1fr;gap:6px}
#leaderboardDialog .polish-dominance-card{padding:10px;background:var(--surface-2);min-width:0;border-radius:8px}
#leaderboardDialog .polish-score-head,#leaderboardDialog .polish-score-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px}
#leaderboardDialog .polish-progress{height:4px;background:var(--surface-3);border-radius:4px;overflow:hidden}
#leaderboardDialog .polish-progress span{display:block;height:100%;background:var(--neutral-progress);transform-origin:left center}
#leaderboardDialog .polish-dominance-card[data-rank="1"] .polish-progress span{background:var(--accent-secondary)}

#leaderboardDialog.team-spectator-dialog .spectator-map-panel{height:auto!important;max-height:none!important;overflow:visible!important;padding-bottom:16px!important}
#leaderboardDialog.team-spectator-dialog .team-map-note,#leaderboardDialog.team-spectator-dialog .team-map-rock-note,#leaderboardDialog.team-spectator-dialog .team-map-attribution{max-width:100%!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere;line-height:1.6!important;height:auto!important}
#leaderboardDialog.team-spectator-dialog .team-map-attribution{display:flex;flex-wrap:wrap;gap:5px 12px;padding-bottom:5px}

/* Tactical polish: one scroll region, compact controls and unclipped map footer. */
#spectateConnection[data-state=live]::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;margin-inline-end:6px;vertical-align:1px}
#spectateConnection[data-state=syncing]{color:var(--text-secondary)}
#leaderboardDialog.team-spectator-dialog .ledger-header{gap:14px;padding:14px 16px}
#leaderboardDialog.team-spectator-dialog .ledger-meta{row-gap:6px}
#leaderboardDialog.team-spectator-dialog .team-map-tools{display:flex;flex-wrap:wrap;align-items:center;gap:5px}
#leaderboardDialog.team-spectator-dialog .team-map-tools button{border:1px solid var(--border-subtle);background:var(--surface-3);border-radius:7px;min-height:34px;color:var(--text)}
#leaderboardDialog.team-spectator-dialog .team-map-tools button[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent-primary);color:var(--text)}
#leaderboardDialog.team-spectator-dialog .team-map-tools button:focus-visible,#leaderboardDialog.team-spectator-dialog .team-player-select:focus-visible{outline:2px solid var(--accent-primary);outline-offset:2px}
#leaderboardDialog.team-spectator-dialog .team-player-select.is-map-selected{background:var(--accent-soft)!important;outline:1px solid var(--accent-primary);outline-offset:-1px}
#leaderboardDialog.team-spectator-dialog .team-map-note,#leaderboardDialog.team-spectator-dialog .team-map-selection{white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere;line-height:1.6!important;max-height:none!important}
#leaderboardDialog.team-spectator-dialog .team-map-attribution{padding:2px 0 8px;row-gap:6px}
#leaderboardDialog.team-spectator-dialog .spectator-map-panel{padding-bottom:18px!important}
@media(max-width:560px){#leaderboardDialog.team-spectator-dialog .ledger-header{padding:12px}#leaderboardDialog.team-spectator-dialog .ledger-actions{width:100%}#leaderboardDialog.team-spectator-dialog .ledger-actions .btn:not(.ledger-close){flex:1 1 auto}}


/* ORIGINAL CSS: css/sk-flagship.css */
/* Flagship customization: all added motion is opt-in via the existing Still control. */
:root{--sk-font-scale:1;--sk-panel-contrast:.2;--sk-ally:#34d399;--sk-enemy:#fb923c;--sk-target:#f1f5f9}
:root[data-theme=dark][data-sk-surface=midnight][data-palette]{--bg-canvas:#080b10;--surface:#0e121a;--surface-1:rgba(14,18,26,.96);--surface-2:rgba(19,25,36,.96);--surface-3:#172131}
:root[data-theme=dark][data-sk-surface=cyber][data-palette]{--bg-canvas:#101725;--surface:#182336;--surface-1:rgba(24,35,54,.95);--surface-2:rgba(30,43,64,.96);--surface-3:#28374f}
:root[data-theme][data-palette][data-custom-color=on]{--accent-primary:var(--custom-accent);--accent-hover:var(--custom-accent);--accent-secondary:var(--custom-accent);--accent:var(--custom-accent);--accent-soft:color-mix(in srgb,var(--custom-accent) 14%,transparent);--border-accent:color-mix(in srgb,var(--custom-accent) 35%,transparent);--brand-400:var(--custom-accent);--brand-500:var(--custom-accent);--brand-600:var(--custom-accent)}
:root[data-sk-surface][data-theme][data-palette] .room{border-color:color-mix(in srgb,var(--text-primary) calc(var(--sk-panel-contrast)*22%),var(--border-subtle))!important}
:root[data-sk-density=compact] .room{padding-block:8px!important}
:root[data-sk-density=compact] .team-player-select{min-height:25px!important;padding-block:3px!important}
:root[data-sk-density=compact] .leaderboard-table td{padding-block:5px!important}
:root[data-sk-surface] .room,:root[data-sk-surface] #leaderboardDialog,:root[data-sk-surface] #preferencesDialog{font-size:calc(13px * var(--sk-font-scale))}
:root[data-sk-surface] .team-player-name,:root[data-sk-surface] .team-player-score{font-size:calc(11px * var(--sk-font-scale))!important}
:root[data-sk-surface] .team-player[data-relation=ally] .ledger-relation-dot{background:var(--sk-ally)!important}
:root[data-sk-surface] .team-player[data-relation=enemy] .ledger-relation-dot{background:var(--sk-enemy)!important}
:root[data-sk-surface] .team-player[data-relation=ally] .team-player-select{background:color-mix(in srgb,var(--sk-ally) 12%,transparent)!important}
:root[data-sk-surface] .team-player[data-relation=enemy] .team-player-select{background:color-mix(in srgb,var(--sk-enemy) 12%,transparent)!important}
.flagship-tabs{display:flex;flex-wrap:wrap;gap:5px;padding:5px;background:var(--surface-3);border-radius:10px;margin-bottom:12px}
.flagship-tabs button{flex:1 1 100px;min-width:0;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--text);padding:9px 7px;font-size:12px;line-height:1.35}
.flagship-tabs button[aria-selected=true]{background:var(--surface);border-color:var(--accent);color:var(--text);font-weight:700}
.flagship-page[hidden]{display:none!important}
.flagship-page{min-width:0}
.flagship-fields{display:grid;gap:2px;padding:4px 10px 12px;border:1px solid var(--border-subtle);border-radius:10px;margin:10px 0}
.flagship-field{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(35px,145px);gap:8px;align-items:center;padding:10px 0;border-bottom:1px solid var(--border-subtle);font-size:13px;line-height:1.4;color:var(--text)}
.flagship-field:last-child{border:0}
.flagship-field input,.flagship-field select{grid-column:3;max-width:100%;min-width:0;accent-color:var(--accent);color:var(--text)}
.flagship-field select{padding:7px;background:var(--surface-3);border:1px solid var(--border-subtle);border-radius:6px}
.flagship-field input[type=color]{width:42px;height:32px;justify-self:end;border:0;background:none}
.flagship-field input[type=checkbox]{width:19px;height:19px;justify-self:end}
.flagship-field output{font-size:11px;color:var(--text-soft);font-variant-numeric:tabular-nums}
.flagship-backup{display:grid;gap:10px;padding:12px 0}.flagship-status{overflow-wrap:anywhere}
.flagship-rank{display:inline-flex;min-width:32px;justify-content:center;font-weight:700;font-variant-numeric:tabular-nums;padding:4px 6px;border-radius:6px;color:var(--text)}
.leaderboard-table tr[data-rank="1"] .flagship-rank{background:#d9b34b26;color:#e5b949}
.leaderboard-table tr[data-rank="2"] .flagship-rank{background:#94a3b826;color:#cbd5e1}
.leaderboard-table tr[data-rank="3"] .flagship-rank{background:#d1875526;color:#dba77c}
:root[data-theme=light] .leaderboard-table tr[data-rank="1"] .flagship-rank{color:#825b00}
:root[data-theme=light] .leaderboard-table tr[data-rank="2"] .flagship-rank{color:#475569}
:root[data-theme=light] .leaderboard-table tr[data-rank="3"] .flagship-rank{color:#87451c}
@keyframes flagshipCardReveal{from{opacity:.15;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@keyframes flagshipModalReveal{from{opacity:.1;transform:translateY(12px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes flagshipSonar{0%{opacity:.9;transform:scale(1)}80%,100%{opacity:0;transform:scale(2.8)}}
@media(prefers-reduced-motion:no-preference){
 :root[data-animation=on][data-sk-springs=on]:not([data-sk-effects=off]) dialog[open]{animation:flagshipModalReveal var(--sk-motion-duration,240ms) cubic-bezier(.16,1,.3,1) both!important}
 :root[data-animation=on][data-sk-entrance=on]:not([data-sk-effects=off]) .room,:root[data-animation=on][data-sk-entrance=on]:not([data-sk-effects=off]) .flagship-page:not([hidden]){animation:flagshipCardReveal var(--sk-motion-duration,240ms) cubic-bezier(.16,1,.3,1) both}
 :root[data-animation=on][data-sk-effects=vivid][data-sk-hover-glow=on] .room:hover{transform:translateY(-2px);outline:1px solid var(--accent-primary)}
 :root[data-animation=on]:not([data-sk-effects=off]) button:active{transform:scale(.97)}
 :root[data-animation=on][data-sk-effects=vivid] #spectateConnection[data-state=live]::before{animation:flagshipSonar 1.8s ease-out infinite}
}
:root[data-sk-effects=off] .room,:root[data-sk-effects=off] .flagship-page,:root[data-sk-effects=off] #spectateConnection::before{animation:none!important;transition:none!important}
.flagship-tabs button:focus-visible,.flagship-field :is(input,select):focus-visible,.flagship-backup button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:420px){.flagship-field{grid-template-columns:minmax(0,1fr) 32px minmax(80px,110px);font-size:12px}.flagship-tabs button{flex-basis:85px}.flagship-fields{padding-inline:7px}}

:root[data-sk-surface=emerald][data-theme=dark][data-palette]{--bg-canvas:#081711;--surface:#10231c;--surface-1:rgba(16,35,28,.96);--surface-2:rgba(24,46,38,.96);--surface-3:#203d32}
:root[data-sk-density=spacious] .room{padding-block:18px!important}
:root[data-sk-density=spacious] .team-player-select{padding-block:9px!important}
:root[data-sk-surface] body :is(.room-explorer-card,.nodes-card,.fleet-card,.flagship-fields){border-radius:var(--sk-card-radius,10px)!important}
:root[data-sk-surface] .room{border-radius:var(--sk-card-radius,10px)!important}
@keyframes flagshipAmbient{0%,100%{transform:translateX(-4%) scale(1)}50%{transform:translateX(4%) scale(1.05)}}
@media(prefers-reduced-motion:no-preference){:root[data-animation=on][data-sk-effects=vivid][data-sk-ambient=on]:not([data-sk-motion-tier=lite]) .deck-main::before{content:"";position:fixed;inset:0;pointer-events:none;background:radial-gradient(ellipse at 65% 15%,rgba(14,165,233,.1),transparent 60%);z-index:-1;animation:flagshipAmbient 14s ease-in-out infinite}
:root[data-animation=on][data-sk-effects=vivid][data-sk-entrance=on] .nodes-card{animation:flagshipCardReveal var(--sk-motion-duration,240ms) cubic-bezier(.16,1,.3,1) both}
}
:root[data-sk-effects=off] dialog[open]{animation:none!important}

/* Bounded reveal and pointer effects; no full-screen blur. */
@keyframes releaseReveal{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(prefers-reduced-motion:no-preference){
:root[data-animation=on]:not([data-sk-effects=off])[data-sk-entrance=on] .release-reveal{animation:releaseReveal var(--sk-motion-duration,240ms) cubic-bezier(.16,1,.3,1) var(--release-delay,0ms) both!important}
:root[data-animation=on][data-sk-effects=vivid][data-sk-hover-glow=on] :is(.room,.nodes-card,.deck-card-actions .btn-primary){position:relative;transition:transform .18s cubic-bezier(.16,1,.3,1)}
:root[data-animation=on][data-sk-effects=vivid][data-sk-hover-glow=on] .release-spotlight::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at var(--spot-x,50%) var(--spot-y,0%),rgba(56,189,248,.14),transparent 120px);opacity:.9}
:root[data-animation=on][data-sk-effects=vivid][data-sk-hover-glow=on] :is(.room,.nodes-card,.deck-card-actions .btn-primary):hover{transform:translateY(-3px)}
:root[data-animation=on][data-sk-effects=vivid] :is(.room,.nodes-card,.deck-card-actions .btn-primary):active{transform:scale(.97)}
}
:root[data-sk-effects=off] .release-reveal,:root[data-animation=off] .release-reveal{animation:none!important;opacity:1!important;transform:none!important}

/* Single authoritative accent for legacy aliases across every preset. */
:root[data-theme][data-palette][data-custom-color]{--accent:var(--accent-primary);--accent-strong:var(--accent-hover);--hero-accent:var(--accent-primary)}

#unifiedAccent [data-accent-choice=custom]{--swatch:var(--accent-primary)}
#unifiedAccent .flagship-accent-picker{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-basis:100%;font-size:11px;color:var(--text-secondary)}
#unifiedAccent .flagship-accent-picker input{width:38px;height:28px;padding:0;border:1px solid var(--border-subtle);background:transparent;border-radius:5px}
#preferencesDialog input[type=range]{accent-color:var(--accent-primary)}
#preferencesDialog .btn-primary,.sk-command-deck .room .btn-primary{color:var(--accent-contrast)!important}

/* Arabic layout: native reading order, isolated technical values, fixed game axes. */
:root[lang=ar] body,:root[lang=ar] button,:root[lang=ar] input,:root[lang=ar] select,:root[lang=ar] textarea{font-family:Tahoma,"Segoe UI",Arial,sans-serif!important;letter-spacing:normal!important}
:root[dir=rtl] .flagship-field,:root[dir=rtl] .unified-setting-row{text-align:start;min-width:0}
:root[dir=rtl] .flagship-field>span,:root[dir=rtl] .unified-setting-row strong,:root[dir=rtl] .nodes-metrics dt{white-space:normal;overflow-wrap:anywhere}
:root[dir=rtl] :is(.nodes-address,.nodes-metrics dd,.flagship-field output,.team-map canvas,.team-map-grid,.team-map-stage,#spectateConnection,.room-name,.player-name,.team-player-name,.skd-roster-name){unicode-bidi:isolate}
:root[dir=rtl] :is(.nodes-address,.flagship-field output,.team-map canvas,.team-map-grid,.team-map-stage){direction:ltr}
:root[dir=rtl] .flagship-field select{direction:rtl;text-align:start}
:root[dir=rtl] :is(.bi-arrow-right,.bi-arrow-left,.bi-chevron-right,.bi-chevron-left,.bi-arrow-up-right){transform:scaleX(-1)}
:root[dir=rtl] .flagship-field{grid-template-columns:minmax(0,1fr) auto minmax(35px,145px)}
@media(max-width:420px){:root[dir=rtl] .flagship-field{grid-template-columns:minmax(0,1fr) 30px minmax(65px,105px)}}

.ui-technical,[dir=rtl] .nodes-address,[dir=rtl] .flagship-field output{direction:ltr;unicode-bidi:isolate;white-space:nowrap;font-variant-numeric:tabular-nums}
[dir=rtl] .flagship-field>span{line-height:1.45}

/* Readable filter controls regardless of selected accent or wallpaper. */
html[data-palette] body.sk-command-deck :is(#modes [data-mode],#roomQuickFilters [data-room-view],#memberModeFilters [data-clan-relation],#savedRoomsToggle)[aria-pressed=true]{background:var(--accent-primary)!important;color:var(--accent-contrast)!important;border-color:var(--accent-primary)!important;font-weight:650;box-shadow:none}
html[data-palette] body.sk-command-deck :is(#modes [data-mode],#roomQuickFilters [data-room-view],#memberModeFilters [data-clan-relation],#savedRoomsToggle)[aria-pressed=true] :is(span,b,i){color:inherit!important}
:root[data-theme=dark][data-background=on][data-background-source=custom] .sk-command-deck :is(.deck-filterbar,.list-panel,.list-tools,.room-explorer-controls,#rooms .room-explorer-card,#rooms .room,#rooms .empty,.search,.deck-footer){background:rgba(11,16,27,.86)!important;color:#f8fafc}
:root[data-theme=light][data-background=on][data-background-source=custom] .sk-command-deck :is(.deck-filterbar,.list-panel,.list-tools,.room-explorer-controls,#rooms .room-explorer-card,#rooms .room,#rooms .empty,.search,.deck-footer){background:rgba(248,250,252,.94)!important;color:#0f172a}
:root[data-background=on][data-background-source=custom] .sk-command-deck .search input{background:transparent!important;color:inherit!important}
.sk-command-deck .deck-main{padding-block-end:calc(1.5rem + env(safe-area-inset-bottom,0px))!important;min-height:0;overflow:visible}
.sk-command-deck .deck-footer.polish-creator{padding-block-end:1.5rem!important;flex-shrink:0;overflow:visible!important;align-items:flex-start}
.sk-command-deck .deck-footer :is(.polish-contact,.polish-dm,.dm-handle,.polish-credit){min-width:0;max-width:100%;white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere;flex-wrap:wrap;line-height:1.5;height:auto!important}
.sk-command-deck .deck-footer .polish-contact{display:flex;flex-wrap:wrap;gap:8px}
.custom-datacenter,.custom-unconfirmed{font-size:11px;line-height:1.5;margin:5px 0;color:var(--text-secondary,var(--muted));overflow-wrap:anywhere}.custom-region-label{font-size:11px;color:var(--text-primary,var(--text));padding:3px 6px;border:1px solid var(--accent-border);border-radius:5px}
#rooms .empty [data-share-custom]{margin-block-start:8px;min-height:36px}

.custom-publication{display:block;width:fit-content;max-width:100%;margin-block-start:6px;padding:4px 7px;border-radius:5px;font-size:11px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;background:#263449;color:#f8fafc;text-align:start}.custom-publication[data-state=accepted]{background:#065f46;color:#fff}.custom-publication[data-state=local]{background:#78350f;color:#fff}#shareStatus{white-space:normal;overflow-wrap:anywhere;line-height:1.5}

/* Slovak labels use a local Latin-extended font stack and wrapping, not ellipses. */
:root[lang=sk] :is(button,select,input,textarea,.flagship-field,.unified-setting-row,.deck-footer,.sk-language-control){font-family:"Segoe UI",Arial,system-ui,sans-serif;letter-spacing:normal;line-height:1.4}
:root[lang=sk] :is(.flagship-tab,.flagship-field>span,.unified-setting-row strong,.unified-setting-row small,.custom-publication,.deck-footer){min-width:0;overflow-wrap:anywhere;white-space:normal}
:root[lang=sk] .flagship-tabs{flex-wrap:wrap;grid-template-columns:repeat(auto-fit,minmax(100px,1fr))}
:root[lang=sk] .flagship-field{grid-template-columns:minmax(0,1fr) auto minmax(0,145px)}
:root[lang=sk] .flagship-field select{max-width:100%;min-width:0;font-size:12px}
:root[lang=sk] :is(#roomQuickFilters,#modes,#memberModeFilters){flex-wrap:wrap}
:root[lang=sk] :is(#roomQuickFilters,#modes,#memberModeFilters) button{min-width:0;height:auto;min-height:30px;white-space:normal;overflow-wrap:anywhere}
:root[lang=sk] .unified-setting-control{min-width:0;max-width:100%}
@media(max-width:420px){:root[lang=sk] .flagship-field{grid-template-columns:minmax(0,1fr) auto minmax(0,105px)}:root[lang=sk] .unified-setting-row{gap:8px;grid-template-columns:minmax(0,1fr) minmax(0,110px)}:root[lang=sk] .flagship-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Multiscript UI: local fonts only; preserve technical values and game coordinates. */
:root:is([lang=hi],[lang=bn],[lang=ur],[lang=zh-CN],[lang=ja],[lang=ko]) :is(button,select,input,textarea,.flagship-field,.unified-setting-row,.deck-footer){font-family:"Nirmala UI","Mangal","Vrinda","Urdu Typesetting","Microsoft YaHei","Yu Gothic","Meiryo","Malgun Gothic","Segoe UI",system-ui,sans-serif;letter-spacing:normal;line-height:1.55}
:root:is([lang=es],[lang=es-419],[lang=pt-BR],[lang=hi],[lang=bn],[lang=ur],[lang=de],[lang=id],[lang=pl],[lang=it],[lang=zh-CN],[lang=ja],[lang=ko]) :is(.flagship-tabs,.flagship-field>span,.unified-setting-row strong,.unified-setting-row small,.custom-publication,.deck-footer){min-width:0;overflow-wrap:anywhere;white-space:normal}
:root:is([lang=es],[lang=es-419],[lang=pt-BR],[lang=hi],[lang=bn],[lang=ur],[lang=de],[lang=id],[lang=pl],[lang=it],[lang=zh-CN],[lang=ja],[lang=ko]) .flagship-field{grid-template-columns:minmax(0,1fr) auto minmax(0,145px)}
:root:is([lang=es],[lang=es-419],[lang=pt-BR],[lang=hi],[lang=bn],[lang=ur],[lang=de],[lang=id],[lang=pl],[lang=it],[lang=zh-CN],[lang=ja],[lang=ko]) :is(#modes,#roomQuickFilters,#memberModeFilters){flex-wrap:wrap}
:root:is([lang=es],[lang=es-419],[lang=pt-BR],[lang=hi],[lang=bn],[lang=ur],[lang=de],[lang=id],[lang=pl],[lang=it],[lang=zh-CN],[lang=ja],[lang=ko]) .flagship-field select{min-width:0;max-width:100%;font-size:12px}
.sk-language-control select{min-width:0;max-width:100%}
@media(max-width:420px){:root:is([lang=es],[lang=es-419],[lang=pt-BR],[lang=hi],[lang=bn],[lang=ur],[lang=de],[lang=id],[lang=pl],[lang=it],[lang=zh-CN],[lang=ja],[lang=ko]) .flagship-field{grid-template-columns:minmax(0,1fr) auto minmax(0,105px)}}

/* Flag selector: body-portalled listbox escapes sidebar overflow and stacking contexts. */
:root .sk-language-control [hidden],:root .sk-language-menu[hidden]{display:none!important}
:root .sk-language-control{direction:inherit;text-align:start;min-width:0}
:root .sk-language-control .sk-language-icon{display:flex;align-items:center}
:root .sk-locale-flag{display:block;width:20px;height:14px;flex:0 0 20px;border-radius:3px;outline:1px solid rgba(255,255,255,.15);outline-offset:-1px;overflow:hidden}
:root[data-theme=light] .sk-locale-flag{outline-color:rgba(0,0,0,.22)}
:root .sk-language-trigger{display:flex;align-items:center;gap:10px;min-width:0;max-width:100%;min-height:38px;padding:7px 8px;background:var(--surface-control,var(--surface,#101d30));color:var(--text,#edf5ff);border:1.5px solid var(--border-subtle,var(--line,#56687f));border-radius:var(--card-radius,9px);font:inherit;cursor:pointer;text-align:start;box-sizing:border-box}
:root #deckLanguage .sk-language-trigger{flex:1 1 100%;width:100%}
:root .sk-language-current{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
:root .sk-language-native{min-width:0;overflow-wrap:anywhere;white-space:normal;line-height:1.35;font-weight:650}
:root .sk-language-code{font-size:10px;font-weight:650;white-space:nowrap;flex:none;direction:ltr;opacity:.85}
:root .sk-language-chevron{flex:none;font-size:14px}
:root .sk-language-trigger:is(:focus-visible,[aria-expanded=true]){outline:2px solid var(--accent-primary,#0ea5e9);outline-offset:2px}
:root .sk-language-menu{position:fixed;z-index:1600;box-sizing:border-box;max-height:280px;overflow:auto;touch-action:pan-y;overscroll-behavior:contain;scrollbar-width:thin;padding:4px;background:var(--bg-elevated,var(--surface,#101827));color:var(--text,#f8fafc);border:1px solid var(--accent-primary,#0ea5e9);border-radius:var(--card-radius,10px);box-shadow:0 10px 28px #0006;font:12px/1.4 "Segoe UI",Arial,system-ui,sans-serif;isolation:isolate}
:root[data-theme=light] .sk-language-menu{background:#f8fafc;color:#0f172a}
:root .sk-language-option{display:flex;align-items:center;gap:10px;min-height:38px;padding:7px 8px;box-sizing:border-box;border:1px solid transparent;border-radius:6px;cursor:pointer;text-align:start}
:root .sk-language-option .sk-language-native{flex:1}
:root .sk-language-check{visibility:hidden;flex:none;width:12px;font-weight:700}
:root .sk-language-option[aria-selected=true]{background:var(--accent-primary,#0ea5e9);color:var(--accent-contrast,#041019)}
:root .sk-language-option[aria-selected=true] .sk-language-check{visibility:visible}
:root .sk-language-option:is(:hover,.is-active){border-color:var(--accent-primary,#0ea5e9);box-shadow:inset 0 0 0 1px currentColor}
:root .sk-language-menu:not([hidden]){animation:sk-language-open 120ms ease-out}
@keyframes sk-language-open{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){:root .sk-language-menu:not([hidden]){animation:none}}
:root:is([data-motion=still],[data-sk-motion=still],[data-motion=off],[data-motion=lite]) .sk-language-menu{animation:none!important}
@media(max-width:480px){:root .sk-language-trigger{gap:5px;padding:6px;max-width:100%}:root .sk-language-control{max-width:calc(100vw - 28px)}}

:root:is([data-animation=off],[data-sk-motion-tier=lite],[data-sk-motion-suspended=true]) .sk-language-menu{animation:none!important}


/* ORIGINAL CSS: css/sk-server-nodes.css */
.nodes-toggle{display:inline-flex;align-items:center;gap:6px;white-space:normal}
.nodes-dot{width:7px;height:7px;border-radius:50%;background:#94a3b8;flex:none}
.nodes-toggle[data-state=live] .nodes-dot{background:#34d399}
.nodes-toggle[data-state=stale] .nodes-dot{background:#fb923c}
.nodes-panel[hidden]{display:none!important}
.nodes-panel{background:var(--surface-1);border:1px solid var(--border-subtle);border-radius:12px;padding:14px;margin-block:12px;min-width:0}
.nodes-heading,.nodes-card-title,.nodes-load{display:flex;align-items:center;justify-content:space-between;gap:8px}
.nodes-heading h2{font-size:17px;margin:0;color:var(--text)}
.nodes-muted{color:var(--text-secondary);font-size:11px;line-height:1.5;margin:5px 0}
.nodes-filters{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0}
.nodes-filter-group{display:flex;flex-wrap:wrap;gap:4px}
.nodes-filter-group .btn{font-size:11px;min-height:30px;padding:4px 8px}
.nodes-filter-group .btn[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent-primary)}
.nodes-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:9px}
.nodes-card{min-width:0;background:var(--surface-2);border:1px solid var(--border-subtle);border-radius:10px;padding:12px}
.nodes-card-title{align-items:start}.nodes-card-title>div{min-width:0}.nodes-card h3{font-size:13px;margin:0;overflow-wrap:anywhere;color:var(--text)}
.nodes-type,.nodes-restart{font-size:10px;white-space:nowrap;border-radius:5px;padding:4px 6px;background:var(--surface-3);color:var(--text-soft)}
.nodes-restart{display:inline-block;margin-top:6px;color:#fb923c}
.nodes-address{display:block;font-size:11px;color:var(--text-secondary);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin-top:8px}
.nodes-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:10px 0}
.nodes-metrics dt{font-size:10px;color:var(--text-secondary);overflow-wrap:anywhere}.nodes-metrics dd{font-size:15px;font-variant-numeric:tabular-nums;font-weight:700;margin:4px 0;color:var(--text)}
.nodes-load{font-size:11px;color:var(--text-secondary);font-variant-numeric:tabular-nums}
.nodes-card progress{width:100%;height:6px;accent-color:var(--accent-secondary);display:block;margin:7px 0}
.nodes-card progress[data-load=high]{accent-color:#fb923c}
.nodes-location{display:inline-block;max-width:100%;font-size:10px;line-height:1.5;color:var(--text-secondary);background:var(--surface-3);padding:3px 6px;border-radius:5px;white-space:normal;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.room>.nodes-location{grid-column:1/-1;justify-self:start}
.nodes-footnote{margin-top:12px}
@keyframes nodesReveal{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:no-preference){:root[data-animation=on]:not([data-sk-effects=off]):not([data-sk-motion-tier=lite]) .nodes-panel:not([hidden]){animation:nodesReveal .2s cubic-bezier(.16,1,.3,1) both}}

.nodes-location[data-load=normal]::before,.nodes-location[data-load=high]::before{content:'';display:inline-block;width:5px;height:5px;background:#34d399;border-radius:50%;margin-inline-end:5px;vertical-align:1px}.nodes-location[data-load=high]::before{background:#fb923c}


/* ORIGINAL CSS: css/sk-hot-zones.css */
.sk-command-deck .hot-zones-toggle{align-self:center;border:1px solid var(--accent-primary,var(--line));font-size:12px;white-space:nowrap}
.sk-command-deck .hot-zones-toggle[hidden]{display:none!important}
.sk-command-deck dialog.hot-zones-drawer{position:fixed;inset-block:0;inset-inline-start:auto;inset-inline-end:0;margin:0;width:min(390px,100%);max-width:100%;height:100dvh;max-height:100%;border:1px solid var(--line);border-radius:16px 0 0 16px;padding:18px;background:var(--surface);color:var(--text);overflow:auto;box-sizing:border-box}
:root[dir=rtl] .sk-command-deck dialog.hot-zones-drawer{border-radius:0 16px 16px 0;--hot-offset:-100%}
:root[data-theme=dark] .sk-command-deck dialog.hot-zones-drawer{background:rgba(13,19,33,.98);border-color:rgba(255,255,255,.09)}
.sk-command-deck dialog.hot-zones-drawer::backdrop{background:rgba(0,0,0,.38)}
.sk-command-deck .hot-zones-header{position:static;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 0 14px;background:none;border:0}
.hot-zones-header h2{font-size:18px;margin:0}
.hot-zones-list{display:grid;gap:10px}
.hot-zones-list>button{display:grid;gap:8px;text-align:start;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2,var(--surface));color:var(--text)}
.hot-zones-list>button:is(:hover,:focus-visible){border-color:var(--accent-primary,var(--line))}
.hot-heat{display:block;height:4px;border-radius:4px;background:#ef7188;overflow:hidden}
.hot-heat>span{display:block;height:100%;background:#24cba0}
@keyframes hot-slide-in{from{transform:translateX(var(--hot-offset,100%));opacity:0}to{transform:translateX(0);opacity:1}}
:root[data-animation=on]:not([data-sk-motion-tier=lite]):not([data-sk-motion-tier=off]):not([data-sk-motion-suspended=true]) .hot-zones-drawer[open]{animation:hot-slide-in 220ms cubic-bezier(.22,1,.36,1)}
.sk-command-deck .deck-filterbar{display:flex!important;flex-wrap:wrap;align-items:center;gap:8px!important}
.sk-command-deck .deck-filterbar .member-mode-filters:not([hidden]){display:inline-flex;flex-wrap:wrap;gap:2px;padding:3px;border:1px solid var(--line);border-radius:9px;background:var(--surface)}
.sk-command-deck .member-mode-filters .relation-caption{display:none}
.sk-command-deck .member-mode-filters button{border:1px solid transparent;border-radius:6px!important;padding:5px 9px;min-height:30px}
.sk-command-deck .member-mode-filters button[aria-pressed=true]{border-color:var(--accent-primary,var(--line))}
.sk-command-deck .room-clans .clan-badge[data-clan-tone=enemy]{--clan:#ef91a4!important}
.sk-command-deck .room-clans .clan-badge[data-clan-tone=ally]{--clan:#24cba0!important}
.sk-command-deck .room-clans .deck-relations{display:inline-flex;flex-wrap:wrap;gap:4px}
.sk-command-deck .deck-controls-content{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
.sk-command-deck .deck-controls-content :is(.home-live-controls,.appearance-controls){display:contents!important}
.sk-command-deck .deck-controls-content>#preferencesButton,.sk-command-deck .deck-controls-content>.rail-clan-card,.sk-command-deck .deck-controls-content>#deckLanguage,.sk-command-deck .deck-controls-content>#gameStatusToggle{grid-column:1/-1}
.sk-command-deck #autoRefreshToggle{grid-column:1/-1;grid-row:1}
.sk-command-deck #newSystemAlertToggle{grid-column:1;grid-row:2}
.sk-command-deck #themeToggle{grid-column:2;grid-row:2}
.sk-command-deck #refresh{grid-column:1;grid-row:3}
.sk-command-deck #animationToggle{grid-column:2;grid-row:3}
.sk-command-deck .deck-controls-content :is(#refresh,#animationToggle,#autoRefreshToggle,#newSystemAlertToggle,#themeToggle,#preferencesButton){min-height:36px!important;height:36px;display:flex;align-items:center;justify-content:center;gap:5px;border:1px solid var(--line);box-shadow:inset 0 1px rgba(255,255,255,.06)!important;font-size:12px}
.sk-command-deck .deck-controls-content button[aria-pressed=true]{border-color:var(--accent-primary,var(--line))}
.sk-command-deck .hot-room-focus{outline:2px solid var(--accent-primary,#0ea5e9);outline-offset:-2px}
@keyframes sk-refresh-turn{to{transform:rotate(360deg)}}
:root[data-animation=on]:not([data-sk-motion-tier=lite]):not([data-sk-motion-tier=off]):not([data-sk-motion-suspended=true]) #refresh:disabled i{animation:sk-refresh-turn .85s linear infinite}
:root[data-animation=on]:not([data-sk-motion-tier=lite]):not([data-sk-motion-tier=off]) .deck-controls-content button:active{transform:scale(.98)}
@media(prefers-reduced-motion:reduce){.hot-zones-drawer,#refresh i{animation:none!important}.deck-controls-content button:active{transform:none!important}}

.sk-command-deck .rank-emblem{display:inline-flex;gap:6px;align-items:center;white-space:nowrap}
.ecp-slot{display:inline-flex;align-items:center;vertical-align:middle;flex:0 0 52px}
.ecp-emblem{width:52px;height:23px;display:block;overflow:visible}
:root[data-animation=on]:not([data-sk-motion-tier=lite]):not([data-sk-motion-tier=off]):not([data-sk-motion-suspended=true]):not([data-sk-effects=off]) .sk-command-deck dialog.hot-zones-drawer[open]{animation:hot-slide-in 220ms cubic-bezier(.22,1,.36,1) both!important}
:root[data-sk-effects=off] .hot-zones-drawer,:root[data-sk-motion-tier=lite] .hot-zones-drawer,:root[data-sk-motion-tier=off] .hot-zones-drawer,:root[data-sk-effects=off] #refresh i,:root[data-sk-motion-tier=lite] #refresh i{animation:none!important}
@media(prefers-reduced-motion:reduce){.sk-command-deck dialog.hot-zones-drawer[open]{animation:none!important}}

.ecp-slot,.ecp-emblem{width:52px;height:23px;aspect-ratio:50/23;min-width:52px;flex-shrink:0;overflow:visible;filter:none!important;backdrop-filter:none!important;box-shadow:none!important;animation:none!important}


/* ORIGINAL CSS: css/sk-orbital.css */
/* Orbital Tactical Command: shared accent tokens; no animated shadows or filters. */
:root {
 --orbital-bg:#060913;--orbital-panel:rgba(12,18,32,.88);--orbital-raised:#182336;
 --orbital-line:rgba(255,255,255,.12);--orbital-text:#e6eef9;--orbital-muted:#a9bad0;
 --orbital-ally:#56e0b4;--orbital-enemy:#fda4af;--orbital-neutral:#bccadd;--orbital-amber:#f4ce7d;
 --accent-secondary:#6ee7df;--aurora-gradient:linear-gradient(110deg,transparent,var(--accent-secondary),var(--accent-primary),transparent);
 --orbital-ease:cubic-bezier(.22,1,.36,1);
}
:root[data-accent=purple]{--accent-secondary:#e9a8ff}
:root[data-accent=red]{--accent-secondary:#ffab70}
:root[data-accent=custom]{--accent-secondary:var(--accent-hover)}
:root[data-theme=light]{--orbital-bg:#edf2f8;--orbital-panel:rgba(255,255,255,.96);--orbital-raised:#e5edf5;--orbital-line:#c2cfde;--orbital-text:#172439;--orbital-muted:#41536b;--orbital-ally:#06734d;--orbital-enemy:#aa2445;--orbital-neutral:#41536b;--orbital-amber:#805300}
html[data-palette] body :is(.deck-rail,.fleet-sidebar,.fleet-panel,.fleet-card,.nodes-card,dialog:not(.hot-zones-drawer)){border-color:var(--orbital-line)!important}
html[data-palette] body :is(dialog,.deck-rail,.fleet-sidebar,.fleet-panel,.fleet-card,.nodes-card){scrollbar-color:var(--accent-border) var(--orbital-bg)}
:root[data-theme=dark][data-sk-surface=tactical][data-background-source=default] body{background-color:var(--orbital-bg)}
html[data-palette] body.sk-command-deck #rooms .room-explorer-card{position:relative;isolation:isolate;contain:layout style paint;background:linear-gradient(155deg,var(--orbital-raised),transparent 46%),var(--orbital-panel)!important;border:1px solid var(--orbital-line)!important;color:var(--orbital-text);box-shadow:none!important}
html[data-palette] body.sk-command-deck #rooms .room-explorer-card[data-orbital-status=open]{border-color:color-mix(in srgb,var(--orbital-ally) 35%,var(--orbital-line))!important}
html[data-palette] body.sk-command-deck #rooms .room-explorer-card[data-orbital-status=active]{border-color:color-mix(in srgb,var(--orbital-amber) 35%,var(--orbital-line))!important}
html[data-palette] body.sk-command-deck #rooms .room-explorer-card:is(:hover,:focus-within){border-color:var(--accent-primary)!important}
html[data-palette] body.sk-command-deck #rooms .room-explorer-card::before{content:"";display:block!important;flex:none;height:1px;background:linear-gradient(90deg,transparent,var(--accent-secondary),var(--accent-primary),transparent);opacity:.65;pointer-events:none}
html[data-palette] body.sk-command-deck #rooms .room-explorer-card>.room{padding:12px 12px 9px!important;gap:9px!important;background:transparent!important;color:var(--orbital-text);transform:none!important;outline:0!important}
.sk-command-deck #rooms .room-top{min-height:30px;padding-inline-end:34px}
.sk-command-deck #rooms .room-top h3{color:var(--orbital-text);font-weight:750;font-size:15px;text-transform:uppercase;letter-spacing:.015em}
.sk-command-deck #rooms .room-top .age{font-variant-numeric:tabular-nums;color:var(--orbital-muted);border:1px solid var(--orbital-line);background:var(--orbital-bg)}
.sk-command-deck #rooms .room-star{border:1px solid var(--orbital-line)!important;background:var(--orbital-raised)!important;color:var(--orbital-muted)!important;top:10px}
.sk-command-deck #rooms .room-star[aria-pressed=true]{color:var(--orbital-amber)!important;border-color:var(--orbital-amber)!important}
.sk-command-deck #rooms .room-bottom{padding:6px 8px!important;border:1px solid var(--orbital-line);border-radius:7px;background:var(--orbital-bg);color:var(--orbital-muted);box-sizing:border-box}
.sk-command-deck #rooms .room-bottom :is(.mode-label,.player-count){color:var(--orbital-muted)!important}
.sk-command-deck #rooms .deck-status-open{color:var(--orbital-ally)!important;border-color:var(--orbital-ally)!important}
.sk-command-deck #rooms .deck-status-active{color:var(--orbital-amber)!important;border-color:var(--orbital-amber)!important}
.sk-command-deck :is(.player-count,.age,.clan-badge b,.deck-relations b,.polish-relations b,.hot-zones-toggle b,.leaderboard-table td,.final-podium strong,.team-player-score){font-variant-numeric:tabular-nums}
.sk-command-deck #rooms .room-clans{display:flex!important;flex-wrap:wrap;align-items:center;gap:5px!important;min-width:0}
html[data-palette] .sk-command-deck #rooms .room-clans .clan-badge[data-clan-tone]{color:var(--clan)!important;background:color-mix(in srgb,var(--clan) 9%,var(--orbital-bg))!important;border:1px solid color-mix(in srgb,var(--clan) 55%,var(--orbital-line))!important;border-radius:6px;padding:4px 6px}
.sk-command-deck :is(#rooms,#deckHot) .deck-relations{display:flex!important;flex-wrap:wrap;align-items:center;gap:5px;flex:1 1 100%;width:100%}
.sk-command-deck :is(#rooms,#deckHot) .deck-relations>.deck-ally{color:var(--orbital-ally)!important;border-color:color-mix(in srgb,var(--orbital-ally) 50%,var(--orbital-line))!important;background:var(--orbital-bg)!important}
.sk-command-deck :is(#rooms,#deckHot) .deck-relations>.deck-rival{color:var(--orbital-enemy)!important;border-color:color-mix(in srgb,var(--orbital-enemy) 50%,var(--orbital-line))!important;background:var(--orbital-bg)!important}
.sk-command-deck :is(#rooms,#deckHot) .deck-relations .orbital-force{display:block;flex:1 1 100%;height:2px!important;min-height:0!important;padding:0!important;border:0!important;border-radius:2px;background:var(--orbital-enemy)!important;overflow:hidden}
.sk-command-deck :is(#rooms,#deckHot) .orbital-force>span{display:block;height:100%;padding:0!important;border:0!important;border-radius:0;background:var(--orbital-ally)!important}
html[data-palette] body.sk-command-deck .deck-card-actions{padding:7px 12px 11px!important;gap:8px}
.sk-command-deck :is(.deck-card-actions .btn,.deck-controls-content button,.hot-zones-toggle,.polish-relation,#deckHot>button,.member-mode-filters button){border:1px solid var(--orbital-line)!important;box-shadow:inset 0 1px rgba(255,255,255,.08)!important;color:var(--orbital-text);background:linear-gradient(145deg,var(--orbital-raised),var(--orbital-panel))!important}
.sk-command-deck :is(.deck-card-actions .btn-primary,#shareRoom,.member-mode-filters button[aria-pressed=true]){background:var(--accent-primary)!important;color:var(--on-accent)!important;border-color:var(--accent-primary)!important}
.sk-command-deck :is(.deck-controls-content button[aria-pressed=true],.hot-zones-toggle[aria-expanded=true],#deckHot>button:hover){border-color:var(--accent-primary)!important}
.sk-command-deck :is(.deck-card-actions .btn,.deck-controls-content button,.hot-zones-toggle,.member-mode-filters button):focus-visible{outline:2px solid var(--accent-primary);outline-offset:2px}
.sk-command-deck .deck-controls-content :is(#refresh,#animationToggle,#autoRefreshToggle,#newSystemAlertToggle,#themeToggle,#preferencesButton){box-sizing:border-box;height:36px;min-height:36px!important}
html[data-palette] body.sk-command-deck dialog.hot-zones-drawer{background:var(--orbital-panel)!important;border-color:var(--orbital-line)!important;color:var(--orbital-text)}
.sk-command-deck .hot-zones-header{border-bottom:1px solid var(--orbital-line);margin-bottom:12px}
.sk-command-deck .hot-zones-list>button{position:relative;padding:13px 12px;gap:9px;border-radius:9px;overflow:hidden}
.sk-command-deck .member-mode-filters:not([hidden]){background:var(--orbital-bg);border-color:var(--orbital-line)!important}
.sk-command-deck .polish-relations .is-ally{color:var(--orbital-ally)!important}
.sk-command-deck .polish-relations .is-enemy{color:var(--orbital-enemy)!important}
.sk-command-deck .rank-emblem{gap:7px;min-width:max-content;overflow:visible}
.sk-command-deck .ecp-slot{position:relative;width:52px;height:23px;min-width:52px;flex:0 0 52px;overflow:visible;box-sizing:border-box;align-items:center;justify-content:center}
.sk-command-deck .ecp-emblem{display:block;width:52px!important;height:23px!important;max-width:none!important;max-height:none!important;overflow:visible!important}
.sk-command-deck .leaderboard-table td:first-child{min-width:72px;overflow:visible!important}
.sk-command-deck .final-podium-card>.ecp-slot{margin-inline:auto}
.sk-command-deck .team-player-name .ecp-slot{width:52px;height:23px}
@media(max-width:420px){.sk-command-deck #rooms .room-bottom{padding-inline:5px!important;gap:4px!important}.sk-command-deck .leaderboard-table td:first-child{min-width:68px}}
/* Bounded effects only; one ambient sweep, transient card/button sheen, no global will-change. */
@media (prefers-reduced-motion:no-preference){
 html[data-animation=on][data-sk-motion-tier=full]:not([data-sk-effects=off]):not([data-sk-motion-suspended=true]) .sk-command-deck :is(.deck-card-actions .btn-primary,#shareRoom,.member-mode-filters button[aria-pressed=true],.hot-zones-toggle,#deckHot>button){position:relative;overflow:hidden;transition:transform 180ms var(--orbital-ease),opacity 180ms var(--orbital-ease)}
}

@media(prefers-reduced-motion:no-preference){
}
html:is([data-animation=off],[data-sk-motion-tier=lite],[data-sk-motion-tier=off],[data-sk-effects=off],[data-sk-motion-suspended=true]) .sk-command-deck :is(.polish-relation i,.deck-status-open,.nodes-dot,.game-status-dot){animation:none!important}


/* ORIGINAL CSS: css/sk-featherweight.css */
/* Static tactical surfaces. Keep gameplay/radar canvas motion independent. */
:root{--orbital-bg:#0b1220;--orbital-panel:#10192b;--orbital-raised:#162238;--orbital-line:rgba(255,255,255,.09)}
:root[data-theme=light]{--orbital-bg:#edf2f8;--orbital-panel:#fff;--orbital-raised:#e5edf5;--orbital-line:#c2cfde}
html[data-palette] body :is(.deck-main,.deck-rail,.fleet-sidebar,.fleet-panel,.fleet-card,.room-explorer-card,.deck-ctas,.hot-zones-drawer,.member-mode-filters,.deck-controls-content,dialog){backdrop-filter:none!important;box-shadow:none!important}
html[data-palette] body :is(.deck-main,.deck-rail,.fleet-sidebar,.fleet-panel,.fleet-card,.room-explorer-card,.deck-ctas,.hot-zones-drawer,.member-mode-filters,.deck-controls-content,dialog)::before,html[data-palette] body :is(.deck-main,.deck-rail,.fleet-sidebar,.fleet-panel,.fleet-card,.room-explorer-card,.deck-ctas,.hot-zones-drawer,.member-mode-filters,.deck-controls-content,dialog)::after{animation:none!important;filter:none!important;box-shadow:none!important}
html[data-palette] body :is(.sk-aurora-layer,.sk-scene-image){animation:none!important}
html[data-palette] body .sk-aurora-layer{display:none!important}
html[data-palette] body .sk-scene-image{animation:none!important;transform:none!important}
html[data-palette] body .deck-main::before{display:none!important}
html[data-palette] body :is(.room-explorer-card,.room,.deck-ctas button,.deck-ctas a,.deck-controls-content button,.hot-zones-toggle,#deckHot>button,.member-mode-filters button,.deck-card-actions .btn,.polish-relation,.nodes-dot,.game-status-dot,.deck-status,.deck-telemetry,.ecp-slot){animation:none!important;box-shadow:none!important;transition:none!important}
html[data-palette] body :is(.room,.deck-ctas button,.deck-controls-content button,.hot-zones-toggle,#deckHot>button,.member-mode-filters button,.deck-card-actions .btn,.polish-relation,.deck-telemetry,.ecp-slot)::after{animation:none!important;filter:none!important;box-shadow:none!important}
html[data-palette] body :is(.deck-telemetry,.ecp-slot,.deck-card-actions .btn,.room)::after{content:none!important}
html[data-palette] body.sk-command-deck #rooms .room-explorer-card{background:var(--orbital-panel)!important;contain:layout style paint;content-visibility:auto;contain-intrinsic-size:auto 165px}
html[data-palette] body.sk-command-deck #rooms .room-explorer-card:is(:hover,:focus-within){background:var(--orbital-raised)!important}
html[data-palette] body.sk-command-deck #rooms .room-explorer-card::before{background:var(--orbital-line);opacity:1}
html[data-palette] body.sk-command-deck #rooms .room-explorer-card[data-sk-present=true]::before{background:var(--accent-primary);opacity:1}
html[data-palette] body.sk-command-deck #rooms .room-explorer-card>.room{padding:9px 10px 6px!important;gap:6px!important;min-height:0!important}
html[data-palette] body.sk-command-deck .deck-card-actions{padding:4px 10px 8px!important}
html[data-palette] body.sk-command-deck #rooms .custom-datacenter{display:none!important}
html[data-palette] body :is(.clan-badge,.leaderboard-clan-chip[style],.active-player-clan,.players-clan-chip[style],.team-clan-jewel){--clan-ink:var(--clan-jewel,var(--clan));color:var(--clan-ink)!important;background:color-mix(in srgb,var(--clan-ink) 12%,var(--orbital-bg))!important;border:1px solid color-mix(in srgb,var(--clan-ink) 58%,var(--orbital-line))!important;border-radius:5px;padding:3px 6px;font-weight:600}
html[data-theme=light][data-palette] body :is(.clan-badge,.leaderboard-clan-chip[style],.active-player-clan,.players-clan-chip[style],.team-clan-jewel){--clan-ink:var(--clan-jewel-light,var(--clan))}
html[data-palette] body.sk-command-deck #rooms .room-clans .clan-badge[data-clan-tone]{--clan:var(--clan-ink)!important;color:var(--clan-ink)!important;border-color:color-mix(in srgb,var(--clan-ink) 58%,var(--orbital-line))!important;background:color-mix(in srgb,var(--clan-ink) 12%,var(--orbital-bg))!important}
html[data-palette] body :is(.clan-badge,.leaderboard-clan-chip,.players-clan-chip) b{color:inherit!important}
html[data-palette] body :is(.leaderboard-clan-chip,.players-clan-chip)[aria-pressed=true]{outline:1px solid var(--accent-primary);outline-offset:1px}
.hot-clans{display:flex;flex-wrap:wrap;gap:4px}
.sk-command-deck .ecp-slot,.sk-command-deck .team-player-name .ecp-slot{width:52px!important;height:23px!important;min-width:52px!important;flex:0 0 52px!important;overflow:visible}
.sk-command-deck .ecp-emblem{width:52px!important;height:23px!important;overflow:visible!important;max-width:none!important;max-height:none!important}
.sk-command-deck .leaderboard-table td:first-child{min-width:90px;overflow:visible!important}
.sk-command-deck .team-player-name{min-width:0;flex-wrap:wrap}
.team-clan-jewel{font-size:10px;white-space:nowrap}
@media(prefers-reduced-motion:no-preference){
 html[data-animation=on][data-sk-motion-tier=full]:not([data-sk-effects=off]):not([data-sk-motion-suspended=true]) body :is(.room-explorer-card,.deck-card-actions .btn,.deck-ctas button,.deck-controls-content button,.hot-zones-toggle,#deckHot>button,.member-mode-filters button){transition:transform 160ms cubic-bezier(.22,1,.36,1),opacity 160ms cubic-bezier(.22,1,.36,1)!important}
 html[data-animation=on][data-sk-motion-tier=full]:not([data-sk-effects=off]):not([data-sk-motion-suspended=true]) body :is(.room-explorer-card,.deck-card-actions .btn,.deck-ctas button,.deck-controls-content button,.hot-zones-toggle,#deckHot>button,.member-mode-filters button):hover{transform:translateY(-2px)}
 html[data-animation=on][data-sk-motion-tier=full]:not([data-sk-effects=off]):not([data-sk-motion-suspended=true]) body :is(.deck-card-actions .btn,.deck-ctas button,.deck-controls-content button,.hot-zones-toggle,#deckHot>button,.member-mode-filters button):active{transform:scale(.98)}
 html[data-animation=on][data-sk-motion-tier=full]:not([data-sk-effects=off]):not([data-sk-motion-suspended=true]) body.sk-command-deck dialog.hot-zones-drawer[open]{animation:hot-slide-in 160ms cubic-bezier(.22,1,.36,1) both!important}
}
html:is([data-animation=off],[data-sk-motion-tier=lite],[data-sk-motion-tier=off],[data-sk-effects=off]) body :is(.room-explorer-card,.deck-card-actions .btn,.deck-ctas button,.deck-controls-content button,.hot-zones-toggle,#deckHot>button,.member-mode-filters button){transform:none!important;transition:none!important}

html[data-palette] body .sk-aurora-layer::before,html[data-palette] body .sk-aurora-layer::after{animation:none!important}
html[data-palette] body :is(.polish-relation i,.nodes-dot,.game-status-dot,.deck-status,.deck-rail,.deck-telemetry,.deck-header,.deck-controls-content,.member-mode-filters,.hot-zones-list) :not(canvas){animation-iteration-count:1!important}
html[data-palette] body :is(.deck-rail,.deck-header,.hot-zones-list,.deck-controls-content,.member-mode-filters,.deck-ctas) :is(button,a,span,i)::before,html[data-palette] body :is(.deck-rail,.deck-header,.hot-zones-list,.deck-controls-content,.member-mode-filters,.deck-ctas) :is(button,a,span,i)::after{animation:none!important;box-shadow:none!important}

:root[data-theme=dark]{--orbital-bg:#060913;--orbital-panel:#0d1424;--orbital-raised:#131d33}
.sk-command-deck .ecp-badge-img{display:block;width:50px;height:23px;min-width:50px;max-width:none;object-fit:contain;filter:none!important;box-shadow:none!important;animation:none!important;pointer-events:auto;user-select:none;-webkit-user-drag:element}
.sk-command-deck .leaderboard-table td:first-child{min-width:108px}
.sk-command-deck .deck-status-end{color:var(--orbital-enemy)!important;border:1px solid var(--orbital-enemy);background:var(--orbital-bg)!important}
html[data-palette] body :is(.clan-badge,.leaderboard-clan-chip[style],.active-player-clan,.players-clan-chip[style],.team-clan-jewel){border-color:var(--clan-exact,var(--clan-ink))!important;background:color-mix(in srgb,var(--clan-exact,var(--clan-ink)) 12%,var(--orbital-bg))!important}
html[data-palette] body.sk-command-deck #rooms .room-clans .clan-badge[data-clan-tone]{border-color:var(--clan-exact,var(--clan-ink))!important;background:color-mix(in srgb,var(--clan-exact,var(--clan-ink)) 12%,var(--orbital-bg))!important}
.sk-command-deck .deck-main{padding-block-end:calc(var(--fixed-footer-height,68px) + var(--deck-gap) + var(--footer-dock,0px))!important}
.sk-command-deck .deck-footer.polish-creator{position:fixed!important;inset-block-end:0;inset-inline-start:var(--footer-start,var(--deck-rail));inset-inline-end:var(--footer-end,0px);z-index:40;box-sizing:border-box;margin:0!important;padding:8px 14px!important;background:var(--orbital-panel)!important;align-items:center;gap:6px;min-height:68px;border-top:1px solid var(--orbital-line);max-width:none}
.sk-command-deck .deck-footer p{margin:0;flex:1 1 260px}
@media(max-width:800px){.sk-command-deck .deck-footer.polish-creator{inset-inline:0;inset-block-end:0;min-height:0;font-size:10px;padding:5px 8px!important}.sk-command-deck .deck-rail{bottom:var(--fixed-footer-height,68px)!important}}

/* Compact mobile footer, with the existing mobile control dock above it. */
@media(max-width:800px){
 html[data-palette] body.sk-command-deck .deck-footer.polish-creator{display:grid!important;grid-template-columns:minmax(0,1fr);grid-auto-rows:auto;align-content:start;align-items:center;gap:3px!important;inset:auto 0 0!important;width:100%;height:auto!important;min-height:0!important;padding:6px 9px!important}
 html[data-palette] body.sk-command-deck .deck-footer.polish-creator>p{flex:none!important;font-size:10px;line-height:1.25;margin:0!important}
 html[data-palette] body.sk-command-deck .deck-footer .polish-contact{display:flex!important;flex:none!important;flex-direction:row!important;flex-wrap:wrap;align-items:center!important;gap:3px 8px!important}
 html[data-palette] body.sk-command-deck .deck-footer .polish-credit{font-size:10px;line-height:1.2}
 html[data-palette] body.sk-command-deck .deck-footer .polish-dm{min-height:24px;padding:3px 6px;gap:4px;font-size:10px}
 html[data-palette] body.sk-command-deck .deck-footer .dm-handle{font-size:10px;line-height:1.2}
 html[data-palette] body.sk-command-deck .deck-rail{inset:auto 0 var(--fixed-footer-height,68px)!important}
}

/* Dedicated rank slot: intrinsic width includes rank, gap, badge and trailing clearance. */
.sk-command-deck .rank-emblem{display:inline-flex;align-items:center;gap:6px;min-width:max-content;white-space:nowrap}
#leaderboardDialog .leaderboard-table .ecp-rank-cell{white-space:nowrap!important;overflow:visible!important;padding-inline-end:8px!important}
.sk-command-deck .rank-emblem .flagship-rank{flex:0 0 auto}
.sk-command-deck .rank-emblem .ecp-slot{width:52px!important;min-width:52px!important;flex:0 0 52px!important;margin-inline-end:8px}
.sk-command-deck .ecp-slot img.ecp-badge-img{width:50px!important;height:23px!important;min-width:50px!important;max-width:50px!important;flex:0 0 50px;object-fit:contain;display:block}
.sk-command-deck .final-ranked-player{min-width:0}

#leaderboardDialog .leaderboard-table th:nth-child(1){width:116px!important;box-sizing:border-box}
#leaderboardDialog .leaderboard-table th:nth-child(2){width:auto!important}
#leaderboardDialog .leaderboard-table th:nth-child(3){width:20%!important}
#leaderboardDialog .leaderboard-table th:nth-child(4){width:23%!important}
@media(max-width:520px){#leaderboardDialog .leaderboard-scroll{overflow-x:auto!important}#leaderboardDialog .leaderboard-table{min-width:440px!important}}

/* Clear keyboard navigation, without animated shadow or outline. */
html[data-palette] body.sk-command-deck :is(.room-star,.deck-card-actions .btn,.deck-controls-content button,.hot-zones-toggle,.member-mode-filters button,#search):focus-visible{outline:2px solid var(--accent-primary)!important;outline-offset:2px}
.sk-command-deck .leaderboard-scroll{overscroll-behavior-inline:contain}
@media (prefers-reduced-motion:reduce){.sk-command-deck :is(.ecp-slot,.ecp-badge-img){animation:none!important;transition:none!important}}

/* Survival pilot inspector: one lightweight modal, no live rendering loop. */
#leaderboardDialog .final-ranked-player{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
#leaderboardDialog .pilot-inspector-trigger{display:inline-grid;place-items:center;flex:0 0 26px;width:26px;height:26px;border:1px solid var(--line);border-radius:7px;background:var(--surface-2);color:var(--text);font:700 15px/1 inherit;cursor:pointer;padding:0}
#leaderboardDialog .pilot-inspector-trigger:is(:hover,:focus-visible){border-color:var(--accent-primary);color:var(--accent-primary);outline-offset:2px}
#playerInspector{box-sizing:border-box;width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:18px;background:var(--surface,#10192b);color:var(--text,#e5edf7);border:1px solid var(--line,#43546c);border-radius:12px;box-shadow:none;animation:none;backdrop-filter:none}
#playerInspector::backdrop{background:#020617a0;backdrop-filter:none}
.pilot-inspector-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}
.pilot-inspector-header h2{font-size:18px;margin:0}
.pilot-inspector-close{font:inherit;font-size:24px;line-height:1;width:32px;height:32px;border:1px solid var(--line);border-radius:7px;background:var(--surface-2);color:var(--text);cursor:pointer}
.pilot-inspector-name{display:grid;gap:5px;overflow-wrap:anywhere;margin-bottom:12px}
.pilot-inspector-name>span,.pilot-inspector-visuals section>span,.pilot-inspector-note,.player-inspector dt{color:var(--muted);font-size:12px}
.pilot-inspector-name bdi{font-weight:700;font-size:18px}
.pilot-inspector-visuals{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pilot-inspector-visuals section{border:1px solid var(--line);border-radius:8px;display:grid;justify-items:center;align-content:center;gap:8px;min-width:0;padding:12px 6px;text-align:center;background:var(--surface-2)}
.pilot-inspector-visuals strong{font-size:12px;overflow-wrap:anywhere}
.pilot-inspector-ship,.pilot-inspector-badge{min-height:76px;display:grid;place-items:center;max-width:100%}
#playerInspector .pilot-inspector-ship .player-ship-icon{font-size:62px!important;width:auto!important;height:auto!important;line-height:1!important;color:var(--pilot-color,var(--muted))!important}
#playerInspector .pilot-inspector-badge .ecp-slot{width:150px!important;height:69px!important;min-width:0!important;max-width:100%;margin:0;flex:none!important}
#playerInspector .pilot-inspector-badge .ecp-badge-img{width:150px!important;height:auto!important;max-width:100%!important;min-width:0!important;aspect-ratio:150/69;object-fit:contain}
#playerInspector dl{display:grid;gap:10px;margin:16px 0}
#playerInspector dl>div{display:flex;justify-content:space-between;align-items:center;gap:12px}
#playerInspector dd{display:flex;align-items:center;gap:6px;margin:0;font-size:13px;font-weight:600}
.pilot-color-chip{display:inline-block;width:17px;height:17px;border-radius:50%;border:1px solid var(--line)}
.pilot-inspector-note{margin:0}
@media(max-width:360px){.pilot-inspector-visuals{grid-template-columns:1fr}}

/* The inspector uses the native 3x PNG, not the compact rank-cell flex basis. */
html[data-palette] body #playerInspector[open]{animation:none!important;transform:none!important;box-shadow:none!important;backdrop-filter:none!important}
#playerInspector .pilot-inspector-badge .ecp-slot{display:grid;place-items:center;aspect-ratio:150/69;width:150px!important;height:auto!important;min-height:0;min-width:0!important;max-width:100%;overflow:hidden}
#playerInspector .pilot-inspector-badge .ecp-slot img.ecp-badge-img{flex:none!important;display:block;width:100%!important;height:auto!important;min-width:0!important;max-width:150px!important;aspect-ratio:150/69}
#leaderboardDialog .pilot-inspector-trigger{font-family:inherit;font-size:15px;font-weight:700;line-height:1}

/* Keep the pilot inspector physically to the right of the score in every locale. */
#leaderboardDialog .pilot-score-actions{display:flex;direction:ltr;align-items:center;justify-content:flex-end;gap:8px;white-space:nowrap}
#leaderboardDialog .pilot-score-value{font-variant-numeric:tabular-nums;min-width:0;overflow:hidden;text-overflow:ellipsis}
#leaderboardDialog .pilot-score-actions .pilot-inspector-trigger{flex:0 0 26px}
@media(max-width:520px){#leaderboardDialog.survival-leaderboard-dialog .leaderboard-table{min-width:500px!important}}

/* The room title stays outside the only vertical scrolling region. */
#leaderboardDialog>#leaderboardRoomTitle:not([hidden]){flex:0 0 auto;position:relative;z-index:6;background:var(--surface);margin:0!important;padding:10px 20px;border-bottom:1px solid var(--border-subtle)}
#leaderboardDialog>#leaderboardRoomTitle[hidden]{display:none!important}
@media(max-width:520px){
 #leaderboardDialog>#leaderboardRoomTitle:not([hidden]){font-size:20px!important;padding:8px 12px}
 :root[data-theme][data-palette] body #leaderboardDialog.survival-leaderboard-dialog #leaderboardContent{overflow-x:auto!important}
 #leaderboardDialog.survival-leaderboard-dialog .leaderboard-scroll{overflow:visible!important}
}

