:root {
  color-scheme: dark;
  --bg: #071019;
  --surface: #0d1924;
  --surface2: #122333;
  --line: #20364a;
  --text: #edf6fc;
  --muted: #91a7b8;
  --cyan: #46d8c7;
  --blue: #6ea8ff;
  --warning: #ffbd66;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 75% -10%, #123c4a 0, transparent 34%), var(--bg);
  color: var(--text);
  min-height: 100vh;
}
button,
select,
input {
  font: inherit;
}
header {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: #08131de8;
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 4;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #04151a;
  font-weight: 900;
  box-shadow: 0 8px 30px #46d8c730;
}
.brand small,
.brand strong {
  display: block;
}
.brand small,
.muted {
  color: var(--muted);
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}
.game-picker,
.updated {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  color: var(--muted);
}
select {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 7px 34px 7px 10px;
}
.pill {
  padding: 7px 11px;
  border: 1px solid #30796f;
  border-radius: 999px;
  color: var(--cyan);
  font-size: 13px;
}
.pill[data-status="not_available"] {
  color: var(--warning);
  border-color: #76582f;
}
.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
}
.shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 76px);
}
nav {
  border-right: 1px solid var(--line);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
nav button {
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 12px 15px;
  border-radius: 9px;
  cursor: pointer;
}
nav button:hover,
nav button.active {
  color: var(--text);
  background: var(--surface2);
}
nav button.active {
  box-shadow: inset 3px 0 var(--cyan);
}
main#content {
  padding: 34px;
  min-width: 0;
}
.hero {
  margin-bottom: 26px;
}
.eyebrow {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}
.hero h1 {
  font-size: 32px;
  margin: 7px 0;
}
.hero p:last-child {
  color: var(--muted);
  margin: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.metric,
.panel,
.unavailable,
.error-state {
  background: linear-gradient(145deg, #102130, #0b1721);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 12px 30px #0003;
}
.metric span,
.metric small {
  display: block;
  color: var(--muted);
}
.metric strong {
  display: block;
  font-size: 25px;
  margin: 9px 0;
}
.panel h2 {
  font-size: 17px;
  margin: 0 0 17px;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.panel-heading label {
  color: var(--muted);
  font-size: 12px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
th {
  text-align: left;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 12px 10px;
  border-bottom: 1px solid #192b3a;
  font-size: 13px;
}
tbody tr:hover {
  background: #142737;
}
.notice {
  padding: 11px;
  border-left: 3px solid var(--blue);
  background: #10283b;
  color: #b9cee0;
}
.loading,
.empty {
  padding: 35px;
  text-align: center;
  color: var(--muted);
}
.unavailable {
  max-width: 650px;
  border-color: #5e4d32;
}
.unavailable span {
  color: var(--warning);
  font-size: 12px;
}
.error,
.error-state {
  color: #ff8d8d;
}
.error-state button,
form button {
  border: 0;
  border-radius: 9px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  color: #06131a;
  font-weight: 800;
  padding: 11px 18px;
}
.login-body {
  display: grid;
  place-items: center;
  padding: 22px;
}
.login-card {
  width: min(420px, 100%);
  padding: 38px;
  background: #0b1823;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 25px 80px #0008;
}
.login-card h1 {
  margin: 14px 0 5px;
}
.login-card label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin: 18px 0;
}
.login-card input {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 12px;
  background: #07131d;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.login-card button {
  width: 100%;
}
.login-card small {
  display: block;
  color: var(--muted);
  margin-top: 24px;
  text-align: center;
}
@media (max-width: 900px) {
  header {
    height: auto;
    padding: 14px 18px;
    align-items: flex-start;
  }
  .updated {
    display: none;
  }
  .shell {
    grid-template-columns: 1fr;
  }
  nav {
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 8px 14px;
    flex-direction: row;
    overflow: auto;
  }
  nav button {
    white-space: nowrap;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  main#content {
    padding: 22px;
  }
  .brand small {
    display: none;
  }
}
@media (max-width: 560px) {
  header {
    gap: 14px;
  }
  .header-tools {
    gap: 7px;
  }
  .game-picker span,
  .pill,
  .ghost {
    font-size: 0;
  }
  .ghost:after {
    content: "退出";
    font-size: 12px;
  }
  .game-picker select {
    font-size: 13px;
    max-width: 130px;
  }
  .brand strong {
    font-size: 14px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metric {
    padding: 14px;
  }
  .metric strong {
    font-size: 20px;
  }
  .hero h1 {
    font-size: 26px;
  }
  .panel {
    padding: 14px;
  }
}
