.admin-dashboard {
  width: min(100% - 2rem, 80rem);
  color: #e8edf5;
}

.dashboard-heading h1 {
  color: #f8fafc;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.dashboard-eyebrow {
  color: #e6b45e;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.dashboard-subtitle,
.dashboard-metric-note,
.dashboard-shortcut small,
.dashboard-footer {
  color: #9aa8bb;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.dashboard-metric {
  position: relative;
  display: flex;
  min-height: 12rem;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  padding: 1.25rem;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 100% 0, var(--metric-glow), transparent 58%),
    #171e29;
  color: #f8fafc;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.dashboard-metric:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--metric-glow) 65%, transparent);
  color: #fff;
}

.dashboard-metric-players {
  --metric-glow: rgb(70 143 255 / 24%);
}

.dashboard-metric-affiliates {
  --metric-glow: rgb(176 123 255 / 23%);
}

.dashboard-metric-posts {
  --metric-glow: rgb(230 180 94 / 23%);
}

.dashboard-metric-messages {
  --metric-glow: rgb(67 194 155 / 22%);
}

.dashboard-metric-portal {
  --metric-glow: rgb(67 194 155 / 22%);
}

.dashboard-metric-game {
  --metric-glow: rgb(255 111 97 / 22%);
}

.dashboard-metric-icon,
.dashboard-shortcut-icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 0.75rem;
  background: rgb(255 255 255 / 6%);
  color: #e6b45e;
  font-size: 1.25rem;
}

.dashboard-metric-label {
  margin-top: 1rem;
  color: #bdc8d7;
  font-size: 0.875rem;
}

.dashboard-metric-value {
  margin-top: 0.1rem;
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 750;
  letter-spacing: -0.05em;
  line-height: 1.15;
}

.dashboard-metric-note {
  margin-top: 0.45rem;
  font-size: 0.78rem;
}

.dashboard-panel {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 1rem;
  background: #171e29;
}

.dashboard-panel h2 {
  color: #f8fafc;
  font-weight: 650;
}

.dashboard-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.dashboard-shortcut {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid rgb(255 255 255 / 7%);
  border-radius: 0.75rem;
  background: #1d2735;
  color: #f1f5f9;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.dashboard-shortcut:hover {
  border-color: rgb(230 180 94 / 35%);
  background: #232f40;
  color: #fff;
}

.dashboard-shortcut > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 0.15rem;
}

.dashboard-shortcut strong {
  font-size: 0.92rem;
}

.dashboard-shortcut small {
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-shortcut-arrow {
  margin-left: auto;
  color: #e6b45e;
  font-size: 1.2rem;
}

.dashboard-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .admin-dashboard {
    width: min(100% - 1rem, 80rem);
  }

  .dashboard-metrics,
  .dashboard-shortcuts {
    grid-template-columns: 1fr;
  }

  .dashboard-metric {
    min-height: 10.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-metric,
  .dashboard-shortcut {
    transition: none;
  }

  .dashboard-metric:hover {
    transform: none;
  }
}
