/* ==========================================================================
   /staff — the team page (staff.php)
   Each card and section gets its rank colour as --c; game pills as --rc.
   ========================================================================== */

.st-page {
  --st-panel: rgba(12, 10, 20, 0.82);
  --st-line: rgba(255, 255, 255, 0.08);
  --st-dim: rgba(255, 255, 255, 0.62);
  --st-purple: #9359ff;
  color: #fff;
  padding-bottom: 40px;
}

/* ---------- Hero ---------- */
.st-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 46px;
  text-align: center;
  background: linear-gradient(180deg, rgba(8, 6, 14, 0.85), rgba(8, 6, 14, 0.35));
  border-bottom: 1px solid var(--st-line);
}

.st-orbs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  pointer-events: none;
  animation: st-drift 18s ease-in-out infinite alternate;
}

.st-orbs span:nth-child(1) { width: 420px; height: 420px; left: -120px; top: -160px; background: #9359ff; }
.st-orbs span:nth-child(2) { width: 360px; height: 360px; right: -100px; top: -60px; background: #ff3b4e; animation-delay: -6s; }
.st-orbs span:nth-child(3) { width: 300px; height: 300px; left: 40%; bottom: -220px; background: #3b82ff; animation-delay: -12s; }

.st-hero .container { position: relative; }

.st-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(147, 89, 255, 0.45);
  background: rgba(147, 89, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9b3ff;
}

.st-h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.6);
}

.st-h1 span {
  background: linear-gradient(100deg, #b794ff, #9359ff 40%, #ff5470);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.st-lede {
  max-width: 640px;
  margin: 0 auto;
  color: var(--st-dim);
  font-size: 1.08rem;
}

.st-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.st-stat {
  min-width: 118px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--st-line);
  backdrop-filter: blur(8px);
}

.st-stat b {
  display: block;
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.1;
}

.st-stat span {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--st-dim);
}

.st-stat-live span i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: #23d160;
  box-shadow: 0 0 10px #23d160;
  animation: st-pulse 2s ease-in-out infinite;
}

/* ---------- Toolbar ---------- */
.st-toolbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 26px 0 8px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(10, 8, 18, 0.88);
  border: 1px solid var(--st-line);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.st-search {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0 14px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--st-line);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.st-search:focus-within {
  border-color: rgba(147, 89, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(147, 89, 255, 0.18);
}

.st-search i { color: var(--st-dim); }

.st-search input {
  flex: 1;
  min-width: 0;
  height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 0.95rem;
}

.st-search input::placeholder { color: rgba(255, 255, 255, 0.4); }

.st-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.st-filters button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1px solid var(--st-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--st-dim);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.st-filters button span {
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
}

.st-filters button:hover { color: #fff; border-color: rgba(147, 89, 255, 0.45); }

.st-filters button.on {
  color: #fff;
  border-color: rgba(147, 89, 255, 0.8);
  background: linear-gradient(135deg, rgba(147, 89, 255, 0.35), rgba(147, 89, 255, 0.12));
  box-shadow: 0 0 18px rgba(147, 89, 255, 0.25);
}

/* ---------- Rank sections ---------- */
.st-tier {
  margin-top: 34px;
  animation: st-rise 0.5s ease both;
}

.st-tier-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.st-tier-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--c), transparent);
  opacity: 0.55;
}

.st-tier-ic {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--c) 30%, transparent);
}

.st-tier-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.st-tier-count {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent);
}

.st-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.st-grid-lead {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* ---------- Cards ---------- */
.st-card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 16px 16px;
  border-radius: 18px;
  background: var(--st-panel);
  border: 1px solid color-mix(in srgb, var(--c) 28%, var(--st-line));
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.st-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--c), transparent);
}

.st-spot {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(260px circle at var(--mx) var(--my), color-mix(in srgb, var(--c) 22%, transparent), transparent 70%);
  opacity: 0.55;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.st-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--c) 70%, transparent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 30px color-mix(in srgb, var(--c) 22%, transparent);
}

.st-card:hover .st-spot { opacity: 1; }

.st-av {
  position: relative;
  width: 82px;
  height: 82px;
  margin-bottom: 12px;
  padding: 3px;
  border-radius: 50%;
  isolation: isolate;
}

/* The ring is its own layer, so leadership's can turn without turning the photo or dot. */
.st-av::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--c), color-mix(in srgb, var(--c) 20%, #000), var(--c));
}

.st-lead .st-av {
  width: 120px;
  height: 120px;
  padding: 4px;
}

.st-lead .st-av::before {
  animation: st-spin 6s linear infinite;
  box-shadow: 0 0 26px color-mix(in srgb, var(--c) 45%, transparent);
}

.st-av img,
.st-initials {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #0c0a14;
  background: #0c0a14;
}

.st-initials {
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--c);
}

.st-dot {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #0c0a14;
  background: #6b7280;
}

.st-lead .st-dot { right: 8px; bottom: 8px; width: 20px; height: 20px; }
.st-dot.st-online { background: #23d160; box-shadow: 0 0 10px #23d160; }
.st-dot.st-ingame { background: #4dabff; box-shadow: 0 0 10px #4dabff; }
.st-dot.st-away { background: #f5b014; }

.st-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
}

.st-name {
  max-width: 100%;
  margin: 10px 0 2px;
  overflow: hidden;
  font-size: 1.12rem;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.st-lead .st-name { font-size: 1.4rem; }

.st-status {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
}

.st-status.st-online { color: #4ade80; }
.st-status.st-ingame { color: #7cc2ff; }
.st-status.st-away { color: #fbbf24; }

/* ---------- Game pills + server tooltip ---------- */
.st-games {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.st-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 9px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid color-mix(in srgb, var(--rc) 40%, transparent);
  cursor: default;
  outline: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.st-pill i { color: var(--rc); }
.st-pill b { color: var(--rc); font-weight: 800; }
.st-pill-game { color: rgba(255, 255, 255, 0.6); }

.st-pill:hover,
.st-pill:focus {
  background: color-mix(in srgb, var(--rc) 14%, transparent);
  border-color: var(--rc);
}

.st-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: max-content;
  min-width: 190px;
  max-width: 280px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #121019;
  border: 1px solid rgba(147, 89, 255, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  pointer-events: none;
}

.st-pill:hover .st-tip,
.st-pill:focus .st-tip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.st-tip-head {
  margin-bottom: 2px;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.st-tip-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.8rem;
}

.st-tip-row em {
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

/* The card hides overflow for its glow; let a tooltip out while it's open. */
.st-card:has(.st-pill:hover),
.st-card:has(.st-pill:focus) { overflow: visible; z-index: 5; }

/* ---------- Buttons ---------- */
.st-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
}

.st-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 6px 12px;
  border-radius: 9px;
  border: 1px solid var(--st-line);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.st-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.st-btn:hover {
  color: #fff !important;
  border-color: var(--c);
  background: color-mix(in srgb, var(--c) 18%, transparent);
}

.st-copy.copied { border-color: #23d160; color: #4ade80 !important; }

/* ---------- Empty / no results / footer ---------- */
.st-empty,
.st-none {
  margin: 40px 0;
  padding: 50px 20px;
  border-radius: 18px;
  text-align: center;
  background: var(--st-panel);
  border: 1px dashed rgba(147, 89, 255, 0.35);
  color: var(--st-dim);
}

.st-empty i,
.st-none i { font-size: 2rem; color: var(--st-purple); margin-bottom: 10px; }
.st-empty h2 { color: #fff; font-weight: 900; }

.st-foot {
  margin: 34px 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.st-foot i { margin-right: 6px; color: var(--st-purple); }
.st-foot a { color: #c9b3ff; font-weight: 700; }

.st-hide { display: none !important; }

/* ---------- Motion ---------- */
@keyframes st-spin { to { transform: rotate(360deg); } }
@keyframes st-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes st-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes st-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 30px) scale(1.15); } }

@media (prefers-reduced-motion: reduce) {
  .st-orbs span, .st-lead .st-av::before,
  .st-stat-live span i, .st-tier { animation: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 575.98px) {
  .st-hero { padding: 44px 0 34px; }
  .st-stat { min-width: 0; flex: 1 1 40%; padding: 10px 12px; }
  .st-stat b { font-size: 1.4rem; }
  .st-toolbar { position: static; }
  .st-filters { width: 100%; }
  .st-filters button { flex: 1 1 auto; justify-content: center; padding: 0 10px; }
  .st-grid, .st-grid-lead { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .st-card { padding: 18px 10px 12px; }
  .st-av { width: 66px; height: 66px; }
  .st-lead .st-av { width: 84px; height: 84px; }
  .st-name, .st-lead .st-name { font-size: 1rem; }
  .st-pill-game { display: none; }
  .st-tip { min-width: 160px; }
}
