@font-face {
  font-family: "Sora";
  src: url("/fonts/Sora-Bold.otf") format("opentype");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/fonts/Manrope-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/fonts/Manrope-SemiBold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #07070d;
  --panel: rgba(17, 17, 29, 0.76);
  --panel-solid: #11111c;
  --panel-soft: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(168, 85, 247, 0.35);
  --text: #f8fafc;
  --muted: #9ca3af;
  --muted-2: #667085;
  --purple: #a855f7;
  --purple-2: #7c3aed;
  --pink: #ec4899;
  --emerald: #34d399;
  --amber: #fbbf24;
  --rose: #fb7185;
  --blue: #60a5fa;
  --danger: #ef4444;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% -10%, rgba(124, 58, 237, 0.23), transparent 34rem),
    radial-gradient(circle at 95% 35%, rgba(236, 72, 153, 0.1), transparent 30rem),
    radial-gradient(circle at 50% 110%, rgba(52, 211, 153, 0.09), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

img {
  display: block;
  max-width: 100%;
}

[hidden],
.hidden {
  display: none !important;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(7, 7, 13, 0.55);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 7, 13, 0.88);
}

.header-inner {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Sora", sans-serif;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.35), rgba(52, 211, 153, 0.12));
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.18);
  color: #fff;
  font-size: 0.9rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 9px 13px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  transition: 150ms ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(168, 85, 247, 0.1);
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px 6px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.82rem;
  font-weight: 700;
}

.avatar {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.25);
  color: #d8b4fe;
  font-weight: 800;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 17px;
  border: 1px solid transparent;
  border-radius: 13px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 150ms ease, filter 150ms ease, border-color 150ms ease, background 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.4);
  opacity: 0.55;
  transform: none;
}

.button-primary {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 10px 35px rgba(168, 85, 247, 0.24);
  color: #fff;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.button-ghost {
  background: transparent;
  color: var(--muted);
}

.button-danger {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}

.page {
  min-height: 100vh;
  padding: 126px 0 108px;
}

.page-heading {
  max-width: 790px;
  margin: 0 auto 44px;
  text-align: center;
}

.eyebrow,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.08);
  color: #d8b4fe;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-title,
.hero-title {
  margin: 15px 0 14px;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.page-title {
  font-size: clamp(2.25rem, 6vw, 4rem);
}

.hero-title {
  max-width: 920px;
  font-size: clamp(3rem, 8vw, 6.4rem);
}

.gradient-text {
  background: linear-gradient(110deg, #fff 8%, #c084fc 50%, #34d399 100%);
  background-clip: text;
  color: transparent;
}

.page-subtitle,
.hero-subtitle {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero {
  display: flex;
  min-height: 650px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-subtitle {
  max-width: 690px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.server-address {
  min-height: 58px;
  padding-inline: 24px;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
}

.status-grid,
.stats-grid,
.rank-grid,
.command-grid,
.rules-grid {
  display: grid;
  gap: 18px;
}

.status-grid {
  width: min(820px, 100%);
  margin-top: 58px;
  grid-template-columns: repeat(3, 1fr);
}

.glass-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.glass-card::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.055);
  content: "";
  pointer-events: none;
}

.status-card {
  padding: 24px 18px;
  text-align: center;
}

.status-icon {
  margin-bottom: 8px;
  font-size: 1.45rem;
}

.status-value {
  min-height: 40px;
  font-family: "Sora", sans-serif;
  font-size: 1.7rem;
}

.status-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--muted-2);
}

.status-dot.online {
  background: var(--emerald);
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.85);
}

.status-dot.offline {
  background: var(--rose);
  box-shadow: 0 0 16px rgba(251, 113, 133, 0.55);
}

.search-box,
.field {
  width: 100%;
  border: 1px solid var(--line);
  outline: none;
  background: rgba(0, 0, 0, 0.28);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.search-box {
  max-width: 580px;
  height: 50px;
  margin: 0 auto 28px;
  padding: 0 18px;
  border-radius: 15px;
}

.field {
  min-height: 48px;
  padding: 11px 13px;
  border-radius: 13px;
}

textarea.field {
  min-height: 104px;
  resize: vertical;
}

.search-box:focus,
.field:focus {
  border-color: rgba(168, 85, 247, 0.65);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.11);
}

.field-label {
  display: block;
  margin-bottom: 7px;
  color: #d1d5db;
  font-size: 0.82rem;
  font-weight: 800;
}

.form-stack {
  display: grid;
  gap: 15px;
}

.form-hint {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.command-grid,
.rules-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.command-card,
.rule-card {
  padding: 22px;
  transition: border-color 160ms ease, transform 160ms ease;
}

.command-card:hover,
.rule-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.command-card h2,
.rule-card h2 {
  margin: 0 0 8px;
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
}

.command-card p,
.rule-card p {
  margin: 0;
  color: var(--muted);
}

.command-code {
  display: inline-block;
  margin-top: 16px;
  padding: 5px 9px;
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 9px;
  background: rgba(52, 211, 153, 0.07);
  color: #6ee7b7;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
}

.rule-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.tag {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tag.high {
  border-color: rgba(251, 113, 133, 0.28);
  background: rgba(251, 113, 133, 0.08);
  color: #fda4af;
}

.tag.medium {
  border-color: rgba(251, 191, 36, 0.24);
  background: rgba(251, 191, 36, 0.07);
  color: #fde68a;
}

.tag.low {
  border-color: rgba(52, 211, 153, 0.24);
  background: rgba(52, 211, 153, 0.07);
  color: #6ee7b7;
}

.rank-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rank-card {
  min-height: 330px;
  padding: 22px;
}

.rank-card::before {
  position: absolute;
  top: -80px;
  right: -70px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--rank-color, var(--purple));
  content: "";
  filter: blur(75px);
  opacity: 0.22;
}

.rank-card h2 {
  position: relative;
  margin: 0 0 18px;
  font-family: "Sora", sans-serif;
  font-size: 1.1rem;
}

.rank-list {
  position: relative;
  display: grid;
  gap: 10px;
}

.rank-row {
  display: grid;
  grid-template-columns: 32px 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.25);
}

.rank-position {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.rank-row:first-child .rank-position {
  background: var(--amber);
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.3);
  color: #1c1917;
}

.rank-name {
  overflow: hidden;
  font-size: 0.86rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-value {
  color: #e5e7eb;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.feed-layout {
  width: min(720px, 100%);
  margin-inline: auto;
}

.composer {
  padding: 18px;
  margin-bottom: 18px;
}

.composer-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.composer textarea {
  flex: 1;
}

.composer-actions,
.post-actions,
.comment-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.composer-actions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.file-input {
  max-width: 230px;
  color: var(--muted);
  font-size: 0.78rem;
}

.post-list {
  display: grid;
  gap: 16px;
}

.post-card {
  overflow: visible;
}

.post-card.boosted {
  border-color: rgba(251, 191, 36, 0.32);
  box-shadow: 0 22px 70px rgba(251, 191, 36, 0.08);
}

.boost-label {
  padding: 6px 14px;
  border-bottom: 1px solid rgba(251, 191, 36, 0.2);
  background: rgba(251, 191, 36, 0.08);
  color: #fde68a;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.post-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.post-author {
  min-width: 0;
  flex: 1;
}

.post-author strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-author time {
  color: var(--muted-2);
  font-size: 0.72rem;
}

.role-badge {
  margin-left: 6px;
  color: #c4b5fd;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.post-body {
  padding: 17px;
}

.post-copy {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.post-media {
  width: 100%;
  max-height: 560px;
  margin-top: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #050509;
  object-fit: contain;
}

.post-actions {
  justify-content: flex-start;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
}

.action-button {
  padding: 7px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
}

.action-button:hover,
.action-button.active {
  background: rgba(168, 85, 247, 0.09);
  color: #e9d5ff;
}

.post-admin-actions {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.comments {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.16);
}

.comment-list {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.comment {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.82rem;
}

.comment strong {
  color: #ddd6fe;
}

.comment-actions .field {
  min-height: 40px;
}

.profile-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
}

.profile-card {
  padding: 30px 22px;
  text-align: center;
}

.profile-avatar {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 126px;
  height: 126px;
  aspect-ratio: 1;
  margin: 0 auto 18px;
  overflow: hidden;
  border: 4px solid rgba(168, 85, 247, 0.18);
  border-radius: 50%;
  cursor: pointer;
  isolation: isolate;
}

.profile-avatar .avatar {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  font-size: 2.6rem;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.profile-card h1 {
  margin: 0 0 8px;
  font-family: "Sora", sans-serif;
  font-size: 1.55rem;
  overflow-wrap: anywhere;
}

.profile-admin-button {
  width: 100%;
  margin-top: 18px;
}

.admin-page-heading .chip {
  margin-right: 8px;
  margin-bottom: 4px;
  text-transform: none;
}

.admin-summary-grid {
  display: grid;
  margin-bottom: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-summary-card {
  padding: 20px;
}

.admin-summary-card span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-summary-card strong {
  display: block;
  margin-top: 6px;
  font-family: "Sora", sans-serif;
  font-size: 1.8rem;
}

.admin-player-toolbar {
  position: sticky;
  top: 86px;
  z-index: 20;
  display: grid;
  padding: 14px;
  grid-template-columns: minmax(220px, 1fr) minmax(190px, 240px) auto;
  align-items: center;
  gap: 12px;
}

.admin-player-toolbar .search-box {
  max-width: none;
  height: 48px;
  margin: 0;
}

.admin-player-toolbar .field {
  min-height: 48px;
}

.admin-select-all {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  color: #e5e7eb;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.admin-select-all input,
.admin-player-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--purple);
}

.admin-player-list-heading {
  display: flex;
  margin: 28px 0 13px;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.admin-player-list-heading h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.25rem;
}

.admin-player-list-heading span {
  color: var(--muted);
  font-size: 0.8rem;
}

.admin-player-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-player-card {
  padding: 17px;
  transition: border-color 150ms ease, background 150ms ease, opacity 150ms ease;
}

.admin-player-card.selected {
  border-color: rgba(168, 85, 247, 0.65);
  background: rgba(56, 30, 88, 0.82);
}

.admin-player-card.protected {
  border-color: rgba(251, 191, 36, 0.22);
}

.admin-player-select {
  display: grid;
  grid-template-columns: 20px 46px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  cursor: pointer;
}

.admin-player-card.protected .admin-player-select {
  cursor: not-allowed;
}

.admin-player-checkbox:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.admin-player-avatar {
  width: 46px;
  height: 46px;
}

.admin-player-identity {
  min-width: 0;
}

.admin-player-identity strong,
.admin-player-identity span {
  display: block;
}

.admin-player-identity strong {
  overflow: hidden;
  font-family: "Sora", sans-serif;
  font-size: 0.96rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-player-identity span {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 0.7rem;
}

.admin-player-badges {
  display: flex;
  grid-column: 2 / 4;
  flex-wrap: wrap;
  gap: 6px;
}

.protected-tag {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.08);
  color: #fde68a;
}

.admin-player-stats {
  display: grid;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-player-stats span {
  color: var(--muted);
  font-size: 0.75rem;
}

.admin-player-stats b {
  color: var(--text);
}

.admin-exclusion-reason {
  margin: 12px 0 0;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(251, 113, 133, 0.07);
  color: #fecdd3;
  font-size: 0.73rem;
}

.admin-selection-dock {
  position: fixed;
  right: 50%;
  bottom: 22px;
  z-index: 80;
  display: flex;
  width: min(680px, calc(100% - 32px));
  padding: 12px;
  transform: translateX(50%);
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 18px;
  background: #141321;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}

.admin-selection-dock > div {
  min-width: 0;
  flex: 1;
}

.admin-selection-dock strong,
.admin-selection-dock span {
  display: block;
}

.admin-selection-dock span {
  color: var(--muted);
  font-size: 0.72rem;
}

.has-admin-selection .page {
  padding-bottom: 150px;
}

.admin-action-modal {
  width: min(540px, 100%);
}

.admin-action-modal select {
  appearance: auto;
}

.admin-action-results {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.admin-action-results h3,
.admin-action-results p {
  margin: 0 0 9px;
}

.admin-result-list {
  display: grid;
  max-height: 220px;
  overflow-y: auto;
  gap: 7px;
}

.admin-result-item {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.76rem;
}

.admin-result-item strong,
.admin-result-item span {
  display: block;
}

.admin-result-item span {
  margin-top: 2px;
  color: var(--muted);
}

.admin-result-item.success {
  border-color: rgba(52, 211, 153, 0.22);
}

.admin-result-item.failure {
  border-color: rgba(251, 113, 133, 0.28);
}

.stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card {
  min-height: 135px;
  padding: 20px;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-family: "Sora", sans-serif;
  font-size: 1.65rem;
}

.section-title {
  margin: 38px 0 14px;
  font-family: "Sora", sans-serif;
  font-size: 1.25rem;
}

.notification-list {
  display: grid;
  gap: 9px;
}

.notification {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 0.84rem;
}

.notification strong {
  color: var(--text);
}

.empty-state,
.error-state,
.loading-state {
  padding: 50px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.empty-state h2,
.error-state h2 {
  margin-top: 0;
  color: var(--text);
  font-family: "Sora", sans-serif;
}

.spinner {
  display: inline-block;
  width: 26px;
  height: 26px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 750ms linear infinite;
}

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

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  padding: 18px;
  place-items: center;
  background: rgba(2, 2, 7, 0.74);
  backdrop-filter: blur(10px);
}

.modal {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100vh - 36px);
  padding: 26px;
  overflow-y: auto;
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 24px;
  background: rgba(16, 16, 27, 0.97);
  box-shadow: 0 32px 120px rgba(0, 0, 0, 0.7);
}

.modal h2 {
  margin: 0 0 7px;
  font-family: "Sora", sans-serif;
  font-size: 1.65rem;
}

.modal > p {
  margin: 0 0 22px;
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.auth-switch {
  margin-top: 17px;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}

.auth-switch button {
  border: 0;
  background: none;
  color: #c084fc;
  cursor: pointer;
  font-weight: 800;
}

.form-error {
  padding: 10px 12px;
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 11px;
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
  font-size: 0.8rem;
}

.toast-region {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 150;
  display: grid;
  width: min(360px, calc(100% - 32px));
  gap: 8px;
}

.toast {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(18, 18, 30, 0.96);
  box-shadow: var(--shadow);
  font-size: 0.84rem;
  animation: toast-in 180ms ease-out;
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.3);
  color: #fecaca;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
}

.mobile-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 45;
  display: none;
  height: 68px;
  align-items: stretch;
  justify-content: space-around;
  border-top: 1px solid var(--line);
  background: rgba(7, 7, 13, 0.9);
  backdrop-filter: blur(18px);
}

.mobile-nav a,
.mobile-nav button {
  display: flex;
  min-width: 68px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.mobile-nav .active {
  color: #d8b4fe;
}

.mobile-icon {
  font-size: 1.15rem;
}

@media (max-width: 920px) {
  body::before {
    display: none;
  }

  .site-header,
  .mobile-nav,
  .glass-card {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-header,
  .site-header.scrolled {
    background: rgba(7, 7, 13, 0.98);
  }

  .mobile-nav {
    background: rgba(7, 7, 13, 0.98);
  }

  .glass-card {
    background: rgba(17, 17, 29, 0.96);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.3);
  }

  .rank-card::before {
    filter: none;
    opacity: 0.07;
  }

  .post-card,
  .rank-card,
  .command-card,
  .rule-card,
  .stat-card,
  .admin-player-card {
    content-visibility: auto;
    contain-intrinsic-size: auto 280px;
  }

  .desktop-nav {
    display: none;
  }

  .rank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-shell {
    grid-template-columns: 1fr;
  }

  .profile-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    text-align: left;
  }

  .profile-avatar {
    width: 104px;
    height: 104px;
    margin: 0;
  }

  .admin-summary-grid,
  .admin-player-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-player-toolbar {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .admin-select-all {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .site-header .header-actions .user-pill,
  .site-header .header-actions .button-ghost {
    display: none;
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .page {
    padding-top: 106px;
  }

  .hero {
    min-height: 570px;
  }

  .status-grid,
  .rank-grid,
  .command-grid,
  .rules-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .status-grid {
    margin-top: 40px;
  }

  .status-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    text-align: left;
  }

  .status-icon {
    grid-row: 1 / 3;
    margin: 0;
  }

  .status-value {
    min-height: auto;
    font-size: 1.35rem;
  }

  .profile-card {
    display: block;
    text-align: center;
  }

  .profile-avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 16px;
  }

  .admin-page-heading .chip,
  .admin-page-heading .eyebrow {
    margin: 0 3px 8px;
  }

  .admin-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .admin-summary-card {
    padding: 15px;
  }

  .admin-summary-card strong {
    font-size: 1.45rem;
  }

  .admin-player-toolbar,
  .admin-player-list {
    grid-template-columns: 1fr;
  }

  .admin-select-all {
    grid-column: auto;
  }

  .admin-player-list-heading {
    align-items: start;
    flex-direction: column;
    gap: 3px;
  }

  .admin-selection-dock {
    right: 12px;
    bottom: 78px;
    left: 12px;
    width: auto;
    padding: 10px;
    transform: none;
  }

  .admin-selection-dock span {
    display: none;
  }

  .admin-selection-dock .button {
    min-height: 40px;
    padding-inline: 12px;
  }

  .rank-row {
    grid-template-columns: 30px 32px minmax(0, 1fr);
  }

  .rank-value {
    grid-column: 2 / 4;
    padding-left: 4px;
  }

  .mobile-nav {
    display: flex;
  }

  .toast-region {
    bottom: 82px;
  }

  .file-input {
    max-width: 170px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
