:root {
  /* ---- Gamer-Net brand tokens (dark = primary, matches brand kit exactly) ---- */
  --bg: #0a0a0d;          /* Void Black */
  --panel: #131317;       /* Surface */
  --panel-2: #1b1c21;     /* Gear Grey / Surface Alt */
  --line: #2a2b31;

  --text: #f2f4f5;        /* Fur White */
  --text-dim: #9ba0a6;

  --cyan: #2be7ff;        /* Visor Cyan */
  --cyan-deep: #0bafc9;   /* Deep Teal */
  --cyan-dim: rgba(43, 231, 255, 0.14);

  --danger: #ff6b6b;

  --rad: 16px;
  --rad-sm: 10px;
  --rad-btn: 8px;

  --font-display: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    --bg: #f2f4f5;
    --panel: #ffffff;
    --panel-2: #e7e9eb;
    --line: #dcdfe3;

    --text: #0a0a0d;
    --text-dim: #61666c;

    --cyan-dim: rgba(11, 174, 201, 0.12);

    color-scheme: light;
  }
}

:root[data-theme='light'] {
  --bg: #f2f4f5;
  --panel: #ffffff;
  --panel-2: #e7e9eb;
  --line: #dcdfe3;

  --text: #0a0a0d;
  --text-dim: #61666c;

  --cyan-dim: rgba(11, 174, 201, 0.12);

  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  transition: background 0.15s ease, color 0.15s ease;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.eyebrow-green { color: var(--cyan-deep); }

/* ---- topbar ---- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-right: 6px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: none;
}
.brand-icon img { width: 100%; height: 100%; object-fit: cover; }

.brand-text { display: flex; flex-direction: column; line-height: 1; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.01em;
}
.brand-name .dash { color: var(--cyan); }

.brand-sub {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  font-weight: 600;
  margin-top: 2px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}

.nav-pill {
  padding: 7px 13px;
  border-radius: var(--rad-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
}
.nav-pill:hover { color: var(--text); }
.nav-pill.active {
  color: var(--cyan-deep);
  background: var(--cyan-dim);
}

.topbar-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--panel);
}

.badge-muted { color: var(--text-dim); }

.badge-label {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--text-dim);
}

.badge-status {
  background: rgba(255, 107, 107, 0.12);
  border-color: transparent;
  color: var(--danger);
}
.badge-status.online {
  background: var(--cyan-dim);
  border-color: transparent;
  color: var(--cyan-deep);
}
.badge-status.online .badge-label { color: var(--cyan-deep); }

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: var(--rad-btn);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.theme-toggle:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.theme-toggle svg { width: 17px; height: 17px; }

/* ---- overview / hero area ---- */

.overview {
  max-width: 1400px;
  margin: 0 auto;
  padding: 36px 24px 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.connect-card {
  background:
    radial-gradient(ellipse at 15% -20%, var(--cyan-dim), transparent 60%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 18px 20px;
  max-width: 520px;
}

.connect-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.connect-row code {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  overflow-x: auto;
  white-space: nowrap;
}

.btn-outline {
  font-family: var(--font-display);
  background: transparent;
  border: 1px solid var(--cyan-deep);
  color: var(--cyan-deep);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: var(--rad-btn);
  cursor: pointer;
}
.btn-outline:hover { background: var(--cyan-dim); }

.connect-meta {
  display: flex;
  gap: 28px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.connect-meta-value {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
}
.connect-meta-value.mono {
  font-family: var(--font-mono);
  color: var(--cyan-deep);
  font-weight: 500;
}

/* ---- rates bar ---- */

.rates-bar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px 14px;
  flex-wrap: wrap;
}
.rates-bar .eyebrow { margin: 0; }

.chip {
  font-family: var(--font-display);
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.chip-mode {
  background: var(--cyan-dim);
  color: var(--cyan-deep);
  border: 1px solid color-mix(in srgb, var(--cyan-deep) 34%, transparent);
}
.chip-mode.pvp {
  background: rgba(255, 107, 107, 0.14);
  color: var(--danger);
  border: 1px solid rgba(255, 107, 107, 0.34);
}

.rate-item {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 400;
}
.rate-item b {
  color: var(--text);
  font-weight: 600;
  margin-left: 3px;
}

/* ---- stat grid ---- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 6px;
}

@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .rates-bar { flex-direction: column; align-items: flex-start; }
}

.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 18px;
}

.stat-value {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  color: var(--text);
}
.stat-value-dim { color: var(--text-dim); font-weight: 600; font-size: 0.7em; }

.stat-sub {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--text-dim);
}
.stat-sub b { color: var(--text); font-family: var(--font-mono); font-weight: 700; }

.stat-bar {
  margin-top: 12px;
  height: 6px;
  border-radius: 6px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.stat-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--cyan);
  border-radius: 6px;
  transition: width 0.6s ease;
}

/* ---- panels ---- */

.panel {
  max-width: 1400px;
  margin: 0 auto;
  padding: 44px 24px;
  border-top: 1px solid var(--line);
  background: none;
}

.panel-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.panel-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  margin: 0;
}

.panel-sub {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
}

.live-indicator {
  margin: 0 0 0 auto;
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 7px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--cyan) 70%, transparent);
  animation: pulse-ring 2.4s ease-out infinite;
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--cyan) 70%, transparent); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ---- player list (avatar-card grid) ---- */

.player-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.player-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 10px 13px;
}

.player-empty {
  grid-column: 1 / -1;
  justify-content: center !important;
  text-align: center;
  padding: 40px 18px !important;
  color: var(--text-dim);
}

.player-avatar {
  width: 38px;
  height: 38px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: #0a0a0d;
}

.player-info { min-width: 0; flex: 1; }
.player-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-meta { color: var(--text-dim); font-size: 11.5px; }

/* ---- join steps ---- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 20px;
  display: block;
}

.step-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--rad-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  background: var(--cyan-dim);
  color: var(--cyan-deep);
  border: 1px solid var(--line);
}

.step-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  margin: 14px 0 6px;
}
.step-body { margin: 0; color: var(--text-dim); font-size: 13.5px; }
.steps .connect-row { margin-top: 12px; }
.steps .connect-row code {
  font-size: 13px;
  font-weight: 600;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--rad-btn);
  padding: 6px 10px;
}

/* ---- community ---- */

.community-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 22px;
  border-radius: var(--rad);
  max-width: 400px;
}
.community-card:hover { border-color: color-mix(in srgb, var(--cyan) 45%, transparent); }

.community-card-title {
  font-family: var(--font-display);
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
}
.community-card-sub { color: var(--text-dim); font-size: 13px; }

/* ---- footer ---- */

.site-footer {
  max-width: 1400px;
  margin: 0 auto;
  padding: 22px 24px 48px;
  color: var(--text-dim);
  font-size: 12.5px;
  border-top: 1px solid var(--line);
}
.site-footer span:first-child {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
}
