:root {
  color-scheme: dark;
  --bg: #070a16;
  --bg-deep: #040610;
  --panel: rgba(17, 23, 43, .92);
  --panel-solid: #11172b;
  --panel-raised: #171f39;
  --panel-hover: #1b2646;
  --field: #0d1327;
  --border: rgba(187, 199, 255, .12);
  --border-strong: rgba(170, 185, 255, .25);
  --text: #f8f9ff;
  --text-soft: #c8d0e8;
  --muted: #8993af;
  --purple: #8c7cf3;
  --purple-strong: #6c61d7;
  --blue: #6e95ff;
  --cyan: #6fd7ef;
  --green: #5bdaa5;
  --amber: #f2bd6b;
  --red: #ff748b;
  --shadow: 0 22px 62px rgba(0, 0, 0, .32);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Nunito", "M PLUS Rounded 1c", "Hiragino Sans", "Yu Gothic UI", system-ui, sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #eef3fc;
  --bg-deep: #e6ecf8;
  --panel: rgba(255, 255, 255, .91);
  --panel-solid: #fff;
  --panel-raised: #f6f8fd;
  --panel-hover: #eef3fc;
  --field: #f4f7fc;
  --border: rgba(43, 61, 105, .12);
  --border-strong: rgba(85, 102, 186, .24);
  --text: #19233c;
  --text-soft: #53617e;
  --muted: #77829b;
  --purple: #6756d2;
  --purple-strong: #5748bd;
  --blue: #426ecc;
  --cyan: #267fa4;
  --green: #21855f;
  --amber: #a66514;
  --red: #c9435e;
  --shadow: 0 18px 46px rgba(45, 61, 101, .12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; min-height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -8%, rgba(110, 149, 255, .15), transparent 34rem),
    radial-gradient(circle at 90% 88%, rgba(140, 124, 243, .13), transparent 37rem),
    linear-gradient(145deg, var(--bg-deep), var(--bg) 50%, #0a1022);
  font-family: var(--font);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 12% -8%, rgba(66, 110, 204, .1), transparent 34rem),
    radial-gradient(circle at 90% 88%, rgba(103, 86, 210, .08), transparent 37rem),
    linear-gradient(145deg, #f9fbff, var(--bg) 54%, #e6edf9);
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .24;
  background-image:
    linear-gradient(rgba(186, 198, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(186, 198, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

html[data-theme="light"] body::before {
  opacity: .2;
  background-image:
    linear-gradient(rgba(52, 71, 117, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 71, 117, .08) 1px, transparent 1px);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
svg {
  width: 1.35em;
  height: 1.35em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(140, 124, 243, .55);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 9px;
  color: #fff;
  background: var(--purple-strong);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: 98px;
  color: #fff;
  background:
    radial-gradient(circle at 18% -150%, rgba(126, 177, 255, .45), transparent 43%),
    radial-gradient(circle at 78% -160%, rgba(150, 119, 255, .35), transparent 42%),
    linear-gradient(105deg, #202b58, #343676 52%, #263d78);
  box-shadow: 0 13px 38px rgba(2, 6, 22, .38);
  backdrop-filter: blur(20px);
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  opacity: .72;
  background: linear-gradient(90deg, transparent, #76c8ff 27%, #ab9cff 51%, #73cdeb 76%, transparent);
}

.site-header-inner {
  display: grid;
  width: min(calc(100% - 44px), 1480px);
  min-height: 98px;
  margin: 0 auto;
  align-items: center;
  grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
  gap: 28px;
}

.brand {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 13px;
}

.brand img {
  width: 58px;
  height: 58px;
  border: 2px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(8, 12, 48, .34);
  object-fit: cover;
}

.brand > span { display: grid; line-height: 1.05; }
.brand strong { font-size: 1.12rem; font-weight: 900; }
.brand small {
  margin-top: 5px;
  color: rgba(255, 255, 255, .7);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.status-nav {
  display: flex;
  align-self: stretch;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.status-nav a {
  position: relative;
  display: grid;
  width: 96px;
  min-height: 78px;
  padding: 8px 6px 7px;
  place-items: center;
  align-content: center;
  gap: 6px;
  border-radius: 12px;
  color: rgba(255, 255, 255, .7);
  font-size: .72rem;
  font-weight: 900;
  transition: color .2s, background .25s, transform .4s var(--ease);
}

.status-nav a::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 3px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 13px rgba(255, 255, 255, .55);
  opacity: 0;
  transform: scaleX(.35);
  transition: opacity .2s, transform .35s var(--ease);
}

.status-nav a:hover,
.status-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(7, 12, 39, .2);
  transform: translateY(-2px);
}
.status-nav a[aria-current="page"]::after { opacity: 1; transform: scaleX(1); }

.nav-icon {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 50%;
  color: #fff;
  background: rgba(8, 12, 42, .26);
  box-shadow: inset 0 1px rgba(255, 255, 255, .12);
  transition: color .25s, background .25s, box-shadow .25s, transform .4s var(--ease);
}

.status-nav a:hover .nav-icon,
.status-nav a[aria-current="page"] .nav-icon {
  color: #3f4e9d;
  background: #fff;
  box-shadow: 0 8px 22px rgba(7, 11, 41, .29), 0 0 0 4px rgba(255, 255, 255, .12);
  transform: scale(1.04);
}

.header-actions { display: flex; align-items: center; justify-content: flex-end; }
.theme-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 11px;
  color: #fff;
  background: rgba(7, 12, 39, .25);
  cursor: pointer;
  transition: background .2s, transform .4s var(--ease);
}
.theme-toggle:hover { background: rgba(255, 255, 255, .13); transform: translateY(-2px); }
.theme-toggle svg { width: 21px; height: 21px; }

.page {
  width: min(calc(100% - 44px), 1480px);
  margin: 0 auto;
  padding: 28px 0 68px;
}

.activity-hero,
.status-hero {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 196px;
  padding: 34px 42px;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  border: 1px solid rgba(190, 205, 255, .16);
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 81% 8%, rgba(106, 216, 239, .2), transparent 22rem),
    radial-gradient(circle at 40% 135%, rgba(140, 124, 243, .34), transparent 30rem),
    linear-gradient(118deg, #253568, #3c3d82 56%, #25325c);
  box-shadow: var(--shadow);
}

.activity-hero::before,
.status-hero::before {
  content: "";
  position: absolute;
  top: -72%;
  right: -3%;
  width: 410px;
  height: 410px;
  border: 66px solid rgba(255, 255, 255, .035);
  border-radius: 50%;
}

.activity-hero::after,
.status-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .17;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .72) 1px, transparent 1.5px);
  background-position: 6px 9px;
  background-size: 86px 71px;
  mask-image: linear-gradient(90deg, transparent, #000 52%, #000);
}

.hero-copy,
.hero-snapshot,
.hero-count,
.match-summary { position: relative; z-index: 1; }

.eyebrow {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, .72);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.65rem);
  font-weight: 900;
  letter-spacing: -.048em;
  line-height: .94;
}

.hero-copy > p:last-child {
  max-width: 690px;
  margin: 17px 0 0;
  color: rgba(255, 255, 255, .77);
  font-size: .96rem;
  font-weight: 650;
  line-height: 1.55;
}

.hero-snapshot {
  display: grid;
  min-width: 390px;
  padding: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  background: rgba(6, 10, 33, .27);
  box-shadow: inset 0 1px rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px);
}

.hero-snapshot > span {
  display: grid;
  min-height: 78px;
  place-items: center;
  align-content: center;
  gap: 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .045);
}
.hero-snapshot strong { font-size: 1.72rem; font-variant-numeric: tabular-nums; line-height: 1; }
.hero-snapshot small,
.hero-count small,
.match-summary small { color: rgba(255, 255, 255, .68); font-size: .6rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }

.compact-hero { min-height: 174px; }
.compact-hero .hero-copy h1 { font-size: clamp(2.45rem, 4.4vw, 3.9rem); }
.hero-count,
.match-summary {
  display: flex;
  min-width: 154px;
  min-height: 90px;
  padding: 17px 21px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 13px;
  background: rgba(6, 10, 33, .27);
  box-shadow: inset 0 1px rgba(255, 255, 255, .08);
}
.hero-count { flex-direction: column; gap: 6px; }
.hero-count strong,
.match-summary strong { font-size: 1.9rem; font-variant-numeric: tabular-nums; line-height: 1; }
.match-summary { gap: 20px; }
.match-summary > span { display: grid; min-width: 54px; justify-items: center; gap: 6px; }
.match-summary > i { width: 1px; height: 44px; background: rgba(255, 255, 255, .2); }

.dashboard-grid {
  display: grid;
  margin-top: 18px;
  align-items: start;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, .72fr);
  gap: 18px;
}

.overview-column { display: grid; gap: 18px; }
.status-panel {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(24, 31, 56, .95), var(--panel));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
html[data-theme="light"] .status-panel { background: linear-gradient(155deg, rgba(255, 255, 255, .98), rgba(246, 249, 255, .95)); }

.panel-heading {
  display: flex;
  min-height: 78px;
  padding: 16px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .018);
}
.panel-heading > span { display: grid; gap: 3px; }
.panel-heading small { color: var(--purple); font-size: .59rem; font-weight: 900; letter-spacing: .14em; }
.panel-heading strong { font-size: 1.18rem; font-weight: 900; }
.panel-heading > a {
  display: inline-flex;
  min-height: 36px;
  padding: 0 12px;
  align-items: center;
  gap: 8px;
  border-radius: 9px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, .045);
  font-size: .7rem;
  font-weight: 900;
  transition: color .2s, background .2s, transform .35s var(--ease);
}
.panel-heading > a:hover { color: #fff; background: var(--purple-strong); transform: translateX(3px); }

.panel-list {
  overflow: auto;
  max-height: 508px;
  padding: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.compact-list { max-height: 300px; }

.player-row,
.match-row {
  position: relative;
  display: flex;
  min-height: 74px;
  padding: 10px 12px;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
  transition: background .2s, transform .4s var(--ease);
}
.player-row + .player-row,
.match-row + .match-row { border-top: 1px solid var(--border); border-top-left-radius: 0; border-top-right-radius: 0; }
.player-row:hover,
.match-row:hover { background: var(--panel-hover); transform: translateX(4px); }

.player-row > img {
  width: 46px;
  height: 46px;
  flex: none;
  border: 2px solid var(--border-strong);
  border-radius: 11px;
  background: var(--field);
  object-fit: cover;
}
.activity-marker {
  position: absolute;
  top: 49px;
  left: 49px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--panel-solid);
  border-radius: 50%;
  background: var(--muted);
}
.activity-playing .activity-marker { background: var(--green); box-shadow: 0 0 10px rgba(91, 218, 165, .55); }
.activity-multiplayer .activity-marker { background: var(--blue); box-shadow: 0 0 10px rgba(110, 149, 255, .48); }
.activity-watching .activity-marker { background: var(--purple); }
.activity-away .activity-marker,
.activity-paused .activity-marker { background: var(--amber); }
.activity-creating .activity-marker { background: var(--cyan); }

.player-copy,
.match-row-copy { display: grid; overflow: hidden; min-width: 0; flex: 1; }
.player-name { display: flex; min-width: 0; align-items: baseline; gap: 9px; }
.player-name strong,
.match-row-copy strong { overflow: hidden; min-width: 0; font-size: .86rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.player-name small { flex: none; color: var(--green); font-size: .61rem; font-weight: 900; }
.activity-idle .player-name small,
.activity-away .player-name small { color: var(--muted); }
.activity-watching .player-name small { color: #bcb4ff; }
.activity-multiplayer .player-name small { color: #91b9ff; }
.activity-paused .player-name small { color: var(--amber); }

.activity-detail {
  display: flex;
  overflow: hidden;
  min-width: 0;
  margin-top: 5px;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: .68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.activity-detail svg { width: 14px; height: 14px; flex: none; color: var(--blue); }
.match-row-copy small { overflow: hidden; margin-top: 4px; color: var(--muted); font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.player-meta { display: grid; flex: none; justify-items: end; gap: 5px; }
.player-meta > small { color: var(--muted); font-size: .57rem; font-weight: 800; }

.client-pill,
.count-pill,
.room-status {
  display: inline-flex;
  min-height: 25px;
  padding: 0 9px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: .56rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.client-stable { color: #79eeb9; background: rgba(91, 218, 165, .11); box-shadow: inset 0 0 0 1px rgba(91, 218, 165, .18); }
.client-lazer { color: #bcb4ff; background: rgba(140, 124, 243, .12); box-shadow: inset 0 0 0 1px rgba(140, 124, 243, .18); }
.client-bot { color: #91b9ff; background: rgba(110, 149, 255, .11); box-shadow: inset 0 0 0 1px rgba(110, 149, 255, .18); }

.overview-metrics { display: grid; padding: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.overview-metrics article {
  display: flex;
  min-height: 94px;
  padding: 14px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--panel-raised);
}
.metric-icon {
  display: grid;
  width: 39px;
  height: 39px;
  flex: none;
  place-items: center;
  border-radius: 10px;
  color: #bcb4ff;
  background: rgba(140, 124, 243, .12);
  box-shadow: inset 0 0 0 1px rgba(140, 124, 243, .16);
  font-size: .72rem;
  font-weight: 900;
}
.metric-icon svg { width: 19px; height: 19px; }
.stable-icon { color: #79eeb9; background: rgba(91, 218, 165, .1); }
.lazer-icon { color: #91b9ff; background: rgba(110, 149, 255, .1); }
.overview-metrics article > span:last-child { display: grid; min-width: 0; }
.overview-metrics strong { font-size: 1.22rem; font-variant-numeric: tabular-nums; line-height: 1; }
.overview-metrics small { margin-top: 6px; color: var(--muted); font-size: .58rem; font-weight: 800; line-height: 1.3; }

.match-state { width: 10px; height: 10px; flex: none; border: 2px solid var(--muted); border-radius: 50%; }
.match-state.state-playing { border-color: var(--red); background: var(--red); box-shadow: 0 0 11px rgba(255, 116, 139, .52); animation: status-pulse 1.45s ease-in-out infinite; }
.match-state.state-ready { border-color: var(--green); background: var(--green); box-shadow: 0 0 10px rgba(91, 218, 165, .4); }
.match-state.state-waiting { border-color: var(--purple); background: var(--purple); box-shadow: 0 0 9px rgba(140, 124, 243, .35); }
.match-row-meta { display: grid; min-width: 48px; justify-items: end; }
.match-row-meta strong { font-size: .77rem; font-variant-numeric: tabular-nums; }
.match-row-meta small { max-width: 100px; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: .54rem; font-weight: 900; text-align: right; text-overflow: ellipsis; white-space: nowrap; }

.more-row {
  display: flex;
  min-height: 43px;
  margin: 5px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--purple);
  background: rgba(140, 124, 243, .08);
  font-size: .7rem;
  font-weight: 900;
}

.empty-state {
  display: grid;
  min-height: 190px;
  padding: 28px;
  place-items: center;
  align-content: center;
  color: var(--muted);
  text-align: center;
}
.empty-state > span { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid var(--border-strong); border-radius: 50%; color: var(--purple); font-size: 1.35rem; }
.empty-state strong { margin-top: 13px; color: var(--text); font-size: .9rem; }
.empty-state small { max-width: 300px; margin-top: 5px; font-size: .68rem; line-height: 1.5; }
.empty-state a { margin-top: 16px; padding: 9px 14px; border-radius: 8px; color: #fff; background: var(--purple-strong); font-size: .7rem; font-weight: 900; }
.small-empty { min-height: 150px; }
.compact-empty { min-height: 90px; }

.quick-links { margin-top: 18px; }
.service-grid { display: grid; padding: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.service-grid > a {
  display: grid;
  min-height: 92px;
  padding: 16px;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--panel-raised);
  transition: border-color .25s, background .25s, box-shadow .25s, transform .45s var(--ease);
}
.service-grid > a:hover { border-color: var(--border-strong); background: var(--panel-hover); box-shadow: 0 13px 30px rgba(0, 0, 0, .18); transform: translateY(-4px); }
.service-grid > a > span:nth-child(2) { display: grid; min-width: 0; }
.service-grid strong { font-size: .86rem; font-weight: 900; }
.service-grid small { overflow: hidden; margin-top: 4px; color: var(--muted); font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.service-grid b { color: var(--purple); font-size: 1.2rem; }
.service-icon { display: grid; width: 43px; height: 43px; flex: none; place-items: center; border-radius: 10px; color: #bcb4ff; background: rgba(140, 124, 243, .12); box-shadow: inset 0 0 0 1px rgba(140, 124, 243, .16); }

.player-page-grid {
  display: grid;
  margin-top: 18px;
  align-items: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.player-directory .panel-list { max-height: 650px; }
.count-pill { min-width: 31px; color: var(--text); background: var(--panel-raised); box-shadow: inset 0 0 0 1px var(--border); }
.bot-directory { grid-column: 1 / -1; }
.horizontal-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.horizontal-list .player-row + .player-row { border-top: 0; }

.match-grid { display: grid; margin-top: 18px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.room-card {
  display: flex;
  overflow: hidden;
  min-height: 248px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: linear-gradient(155deg, var(--panel-raised), var(--panel));
  box-shadow: 0 12px 34px rgba(0, 0, 0, .17);
  flex-direction: column;
  transition: border-color .25s, background .25s, box-shadow .25s, transform .5s var(--ease);
}
.room-card:hover { border-color: var(--border-strong); background: var(--panel-hover); box-shadow: var(--shadow); transform: translateY(-6px); }
.room-card > header { display: flex; min-height: 60px; padding: 14px 17px; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); }
.room-card > header > small { color: var(--muted); font-size: .65rem; font-weight: 800; }
.room-status { gap: 7px; color: var(--text-soft); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--border); }
.room-status i { width: 7px; height: 7px; border: 1px solid var(--muted); border-radius: 50%; }
.room-status.state-playing { color: #ff9bae; background: rgba(255, 116, 139, .1); box-shadow: inset 0 0 0 1px rgba(255, 116, 139, .2); }
.room-status.state-playing i { border-color: var(--red); background: var(--red); box-shadow: 0 0 8px rgba(255, 116, 139, .52); animation: status-pulse 1.45s ease-in-out infinite; }
.room-status.state-ready { color: #79eeb9; background: rgba(91, 218, 165, .1); box-shadow: inset 0 0 0 1px rgba(91, 218, 165, .2); }
.room-status.state-ready i { border-color: var(--green); background: var(--green); box-shadow: 0 0 8px rgba(91, 218, 165, .42); }
.room-status.state-waiting { color: #bcb4ff; background: rgba(140, 124, 243, .11); box-shadow: inset 0 0 0 1px rgba(140, 124, 243, .2); }
.room-status.state-waiting i { border-color: var(--purple); background: var(--purple); box-shadow: 0 0 8px rgba(140, 124, 243, .38); }
.room-copy { min-height: 110px; padding: 21px 19px; }
.room-copy h2 { margin: 0; font-size: 1.12rem; font-weight: 900; line-height: 1.25; }
.room-copy p { display: -webkit-box; overflow: hidden; margin: 10px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.room-state-detail { display: inline-flex; margin-top: 13px; color: var(--text-soft); font-size: .66rem; font-weight: 800; }
.room-card > footer { display: grid; margin-top: auto; padding: 15px 17px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border-top: 1px solid var(--border); background: rgba(0, 0, 0, .08); }
.room-card > footer > span { display: flex; min-width: 0; align-items: center; gap: 9px; }
.room-card > footer svg { width: 20px; height: 20px; flex: none; color: var(--purple); }
.room-card > footer span span { display: grid; overflow: hidden; min-width: 0; }
.room-card > footer small { color: var(--muted); font-size: .55rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.room-card > footer strong { overflow: hidden; margin-top: 2px; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.full-empty { margin-top: 18px; }
.full-empty .empty-state { min-height: 330px; }

@keyframes status-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.8); }
}

@media (max-width: 1120px) {
  .site-header-inner { grid-template-columns: auto 1fr auto; }
  .brand > span { display: none; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .overview-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .site-header { min-height: 86px; }
  .site-header-inner { width: min(calc(100% - 24px), 780px); min-height: 86px; gap: 10px; }
  .brand img { width: 48px; height: 48px; }
  .status-nav { gap: 2px; }
  .status-nav a { width: 70px; min-height: 66px; padding: 5px 3px; gap: 4px; font-size: .58rem; }
  .nav-icon { width: 35px; height: 35px; }
  .nav-icon svg { width: 18px; height: 18px; }
  .theme-toggle { width: 42px; height: 42px; }
  .page { width: min(calc(100% - 24px), 780px); padding-top: 16px; }
  .activity-hero,
  .status-hero { padding: 30px; align-items: flex-start; flex-direction: column; }
  .hero-snapshot { width: 100%; min-width: 0; }
  .overview-column,
  .player-page-grid { grid-template-columns: 1fr; }
  .bot-directory { grid-column: auto; }
  .service-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { padding-bottom: 80px; font-size: 14px; }
  .site-header {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 70px;
    background: rgba(20, 29, 58, .94);
    box-shadow: 0 -10px 30px rgba(2, 6, 20, .42);
    backdrop-filter: blur(22px);
  }
  .site-header::after { top: 0; bottom: auto; }
  .site-header-inner { display: flex; width: 100%; min-height: 70px; padding: 5px 10px; justify-content: center; gap: 3px; }
  .brand { display: none; }
  .status-nav { flex: 1; align-self: auto; }
  .status-nav a { width: min(27vw, 94px); min-height: 60px; border-radius: 10px; }
  .status-nav a::after { right: 15px; bottom: -1px; left: 15px; }
  .nav-icon { width: 32px; height: 32px; }
  .header-actions { flex: none; }
  .theme-toggle { width: 42px; height: 50px; border-color: transparent; background: transparent; }
  .page { width: 100%; padding: 10px 0 28px; }
  .activity-hero,
  .status-hero { min-height: 0; margin: 0 10px; padding: 25px 21px; gap: 22px; border-radius: 14px; }
  .hero-copy h1,
  .compact-hero .hero-copy h1 { font-size: 2.25rem; }
  .hero-copy > p:last-child { margin-top: 12px; font-size: .82rem; }
  .hero-snapshot { padding: 7px; gap: 5px; }
  .hero-snapshot > span { min-height: 66px; }
  .hero-snapshot strong { font-size: 1.35rem; }
  .hero-snapshot small { font-size: .5rem; }
  .hero-count,
  .match-summary { width: 100%; min-width: 0; min-height: 68px; align-self: stretch; }
  .hero-count { flex-direction: row; justify-content: flex-start; gap: 9px; }
  .dashboard-grid,
  .player-page-grid { margin-top: 10px; gap: 10px; }
  .overview-column { gap: 10px; }
  .status-panel { border-right: 0; border-left: 0; border-radius: 0; }
  .panel-heading { min-height: 70px; padding: 13px 15px; }
  .panel-heading strong { font-size: 1.04rem; }
  .panel-list { max-height: 390px; }
  .player-row { min-height: 72px; padding-inline: 10px; }
  .player-name { display: grid; gap: 1px; }
  .player-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .player-meta > small { display: none; }
  .overview-metrics { padding: 8px; gap: 7px; }
  .overview-metrics article { min-height: 82px; padding: 11px; gap: 9px; }
  .metric-icon { width: 34px; height: 34px; }
  .quick-links { margin-top: 10px; }
  .service-grid { padding: 10px; }
  .service-grid > a { min-height: 80px; padding: 13px; }
  .match-grid { margin: 10px; grid-template-columns: 1fr; gap: 10px; }
  .room-card { min-height: 235px; }
  .full-empty { margin: 10px 0 0; }
}

@media (max-width: 390px) {
  .status-nav a { width: 72px; }
  .overview-metrics { grid-template-columns: 1fr; }
  .hero-snapshot small { letter-spacing: .05em; }
}

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