/* ── Staff Page — LUMINA FORGE ── */

:root {
  --staff-gold: #f1c40f;
  --staff-gold-light: #ffd700;
  --staff-gold-dark: #b5900a;
  --staff-gold-highlight: #fffebd;
  --staff-bg: #000;
  --staff-card-bg: #1a1a1a;
  --staff-card-bg-dark: #0a0a0a;
}

@font-face {
  font-family: 'MinecraftTen';
  src: url('../fonts/MinecraftTen-VGORe.ttf') format('truetype');
  font-display: swap;
}

/* ── Hero ── */
.staff-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--staff-gold);
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.82), rgba(241, 196, 15, 0.22)),
    url('../images/01-gif.gif') center / cover no-repeat;
  overflow: hidden;
}

.staff-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 40px,
    rgba(0, 0, 0, 0.04) 40px,
    rgba(0, 0, 0, 0.04) 41px
  );
  pointer-events: none;
}

.staff-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(241, 196, 15, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.staff-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.staff-hero-badge {
  display: inline-block;
  font-family: 'MinecraftTen', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #000;
  background: rgba(241, 196, 15, 0.92);
  border: 2px solid #000;
  padding: 0.3rem 0.85rem;
  margin-bottom: 1rem;
  box-shadow:
    inset -2px -2px 0 var(--staff-gold-dark),
    inset 2px 2px 0 var(--staff-gold-highlight),
    2px 2px 0 rgba(0, 0, 0, 0.5);
}

.staff-hero h1 {
  font-family: 'MinecraftTen', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin: 0;
  letter-spacing: 2px;
}

.staff-hero h1.text-minecraft-glow {
  color: var(--staff-gold);
  text-shadow:
    0 0 10px rgba(241, 196, 15, 0.55),
    0 0 24px rgba(241, 196, 15, 0.3),
    2px 2px 4px rgba(0, 0, 0, 0.85);
}

.staff-hero p {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.85);
  margin: 0.75rem 0 0;
  line-height: 1.6;
}

/* ── Main section ── */
.staff-section {
  padding: 4rem 2rem;
  background-color: var(--staff-bg);
}

.staff-section .era-divider {
  margin: 3.5rem 0 2.5rem;
}

/* ── Category dividers (era-divider pattern) ── */
.staff-category-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 3.5rem 0 2rem;
  width: 100%;
}

.staff-category-divider .era-title,
.staff-category-divider-title {
  font-family: 'MinecraftTen', sans-serif;
  font-size: 1.5rem;
  color: #000;
  background: var(--staff-gold);
  padding: 0.4rem 1.5rem;
  border: 3px solid #000;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow:
    inset -3px -3px 0 var(--staff-gold-dark),
    inset 3px 3px 0 var(--staff-gold-highlight),
    3px 3px 0 rgba(0, 0, 0, 0.5);
}

.staff-category-divider .era-line,
.staff-category-divider-line {
  flex: 1;
  height: 3px;
  background: linear-gradient(to right, var(--staff-gold), transparent);
  border-radius: 2px;
}

/* ── Categories & grid ── */
.staff-category {
  margin-bottom: 4rem;
  transition: opacity 0.35s ease, max-height 0.4s ease;
}

.staff-category.hidden {
  display: none;
}

.staff-category-title {
  color: var(--staff-gold);
  font-family: 'MinecraftTen', sans-serif;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--staff-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 350px));
  gap: 2rem;
  margin-bottom: 3rem;
  justify-content: center;
}

/* ── Staff cards ── */
.staff-card {
  background: linear-gradient(135deg, var(--staff-card-bg), var(--staff-card-bg-dark));
  border: 3px solid #000;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
  position: relative;
  overflow: hidden;
  max-width: 350px;
  width: 100%;
  margin: 0 auto;
  cursor: pointer;
  transform-style: preserve-3d;
  box-shadow:
    inset -3px -3px 0 rgba(255, 255, 255, 0.06),
    inset 3px 3px 0 rgba(0, 0, 0, 0.45),
    0 0 0 2px var(--staff-gold),
    4px 4px 0 rgba(0, 0, 0, 0.55);
}

/* Shine sweep */
.staff-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(105deg, transparent, rgba(241, 196, 15, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
  z-index: 2;
}

/* Hover glow overlay */
.staff-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  opacity: 0;
  background: radial-gradient(ellipse at center, rgba(241, 196, 15, 0.14) 0%, transparent 70%);
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.staff-card:hover::before {
  left: 130%;
}

.staff-card:hover::after {
  opacity: 1;
}

.staff-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: #000;
  background: linear-gradient(135deg, #222, #111);
  box-shadow:
    inset -3px -3px 0 rgba(255, 255, 255, 0.08),
    inset 3px 3px 0 rgba(0, 0, 0, 0.4),
    0 0 0 2px var(--staff-gold-light),
    0 8px 24px rgba(241, 196, 15, 0.35),
    0 20px 60px rgba(0, 0, 0, 0.5),
    6px 6px 0 rgba(0, 0, 0, 0.45);
}

.staff-card:active {
  transform: translateY(-2px) scale(0.99);
  transition: transform 0.1s ease;
  box-shadow:
    inset 3px 3px 0 rgba(0, 0, 0, 0.35),
    inset -2px -2px 0 rgba(255, 255, 255, 0.04),
    0 0 0 2px var(--staff-gold),
    2px 2px 0 rgba(0, 0, 0, 0.5);
}

.staff-view-hint {
  display: block;
  margin-top: 0.85rem;
  font-family: 'MinecraftTen', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(241, 196, 15, 0.55);
  transition: color 0.25s ease, opacity 0.25s ease;
  position: relative;
  z-index: 3;
}

.staff-card:hover .staff-view-hint {
  color: var(--staff-gold-light);
}

/* ── Avatar, name, role, stats ── */
.staff-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: bold;
  color: #000;
  box-shadow:
    0 0 20px rgba(241, 196, 15, 0.5),
    inset -2px -2px 0 rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 3;
  object-fit: cover;
  border: 3px solid var(--staff-gold);
}

.staff-avatar.emoji {
  background: linear-gradient(135deg, var(--staff-gold), var(--staff-gold-light));
}

.staff-name {
  color: var(--staff-gold);
  font-family: 'MinecraftTen', sans-serif;
  font-size: 1.3rem;
  font-weight: bold;
  margin: 1rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 3;
}

.staff-role {
  display: inline-block;
  color: #000;
  background: var(--staff-gold);
  font-size: 0.75rem;
  font-weight: bold;
  font-family: 'MinecraftTen', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1rem;
  border: 2px solid #000;
  position: relative;
  z-index: 3;
  box-shadow:
    inset -2px -2px 0 var(--staff-gold-dark),
    inset 2px 2px 0 var(--staff-gold-highlight),
    2px 2px 0 rgba(0, 0, 0, 0.4);
}

.staff-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(241, 196, 15, 0.3);
  position: relative;
  z-index: 3;
}

.stat {
  flex: 1;
}

.stat-value {
  color: var(--staff-gold);
  font-family: 'MinecraftTen', sans-serif;
  font-size: 1.2rem;
  font-weight: bold;
}

.stat-label {
  color: #666;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Filters (btn-minecraft-3d-sm style) ── */
.staff-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-family: 'MinecraftTen', sans-serif;
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--staff-gold) !important;
  background: #1a1a1a;
  border: 2px solid #000;
  padding: 0.45rem 1.4rem;
  cursor: pointer;
  position: relative;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease, color 0.15s ease;
  box-shadow:
    inset -2px -2px 0 rgba(0, 0, 0, 0.5),
    inset 2px 2px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px var(--staff-gold),
    2px 2px 0 rgba(0, 0, 0, 0.45);
}

.filter-btn:hover {
  background: #252525;
  color: var(--staff-gold-light) !important;
  transform: translateY(-1px);
  box-shadow:
    inset -2px -2px 0 rgba(0, 0, 0, 0.45),
    inset 2px 2px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px var(--staff-gold-light),
    3px 3px 0 rgba(0, 0, 0, 0.45);
}

.filter-btn:active {
  transform: translateY(1px);
  box-shadow:
    inset 2px 2px 0 rgba(0, 0, 0, 0.45),
    inset -2px -2px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px var(--staff-gold),
    1px 1px 0 rgba(0, 0, 0, 0.45);
}

.filter-btn.active {
  color: #000 !important;
  background: var(--staff-gold);
  box-shadow:
    inset -2px -2px 0 var(--staff-gold-dark),
    inset 2px 2px 0 var(--staff-gold-highlight),
    2px 2px 0 rgba(0, 0, 0, 0.45);
}

.filter-btn.active:hover {
  background: var(--staff-gold-light);
  color: #000 !important;
  box-shadow:
    inset -2px -2px 0 #cda20a,
    inset 2px 2px 0 #fffff0,
    2px 2px 0 rgba(0, 0, 0, 0.45);
}

.filter-btn.active:active {
  transform: translateY(1px);
  box-shadow:
    inset 2px 2px 0 #cda20a,
    inset -2px -2px 0 #fffff0,
    1px 1px 0 rgba(0, 0, 0, 0.45);
}

/* ── Team stats (glass-container + 3D border) ── */
.team-stats {
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 3px solid #000;
  border-radius: 12px;
  padding: 2rem;
  margin: 0 0 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
  box-shadow:
    inset -4px -4px 0 rgba(255, 255, 255, 0.06),
    inset 4px 4px 0 rgba(0, 0, 0, 0.4),
    0 0 0 2px var(--staff-gold),
    6px 6px 0 rgba(0, 0, 0, 0.45);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.team-stats:hover {
  box-shadow:
    inset -4px -4px 0 rgba(255, 255, 255, 0.08),
    inset 4px 4px 0 rgba(0, 0, 0, 0.35),
    0 0 0 2px var(--staff-gold-light),
    0 10px 40px rgba(241, 196, 15, 0.2),
    6px 6px 0 rgba(0, 0, 0, 0.45);
}

.team-stat {
  border-right: 2px solid rgba(241, 196, 15, 0.3);
  padding: 0 0.5rem;
}

.team-stat:last-child {
  border-right: none;
}

.team-stat-number {
  color: var(--staff-gold);
  font-family: 'MinecraftTen', sans-serif;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(241, 196, 15, 0.35);
}

.team-stat-label {
  color: #aaa;
  font-family: 'MinecraftTen', sans-serif;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* ── CTA strip ── */
.staff-cta {
  position: relative;
  padding: 3.5rem 2rem;
  text-align: center;
  background:
    linear-gradient(135deg, var(--staff-gold) 0%, var(--staff-gold-light) 40%, var(--staff-gold) 100%);
  overflow: hidden;
}

.staff-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 40px,
    rgba(0, 0, 0, 0.03) 40px,
    rgba(0, 0, 0, 0.03) 41px
  );
  pointer-events: none;
}

.staff-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.staff-cta h2 {
  font-family: 'MinecraftTen', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: #000;
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.25);
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
}

.staff-cta p {
  color: rgba(0, 0, 0, 0.75);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.staff-cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.staff-cta .btn-minecraft-3d,
.staff-cta .btn-minecraft-3d-sm {
  text-decoration: none;
}

/* ── Donators (season containers, S7 → S1) ── */
.staff-donators {
  position: relative;
  padding: 4rem 2rem 4.5rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(241, 196, 15, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, #080808 0%, #000 100%);
  border-top: 3px solid rgba(241, 196, 15, 0.28);
  overflow: hidden;
}

.staff-donators::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 48px,
    rgba(241, 196, 15, 0.02) 48px,
    rgba(241, 196, 15, 0.02) 49px
  );
  pointer-events: none;
}

.staff-donators-header {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.staff-donators-eyebrow {
  display: inline-block;
  font-family: 'MinecraftTen', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #000;
  background: rgba(241, 196, 15, 0.92);
  border: 2px solid #000;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1rem;
  box-shadow:
    inset -2px -2px 0 var(--staff-gold-dark),
    inset 2px 2px 0 var(--staff-gold-highlight),
    2px 2px 0 rgba(0, 0, 0, 0.5);
}

.staff-donators-title {
  font-family: 'MinecraftTen', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--staff-gold);
  margin: 0 0 0.75rem;
  letter-spacing: 1px;
}

.staff-donators-note {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.staff-donators-seasons {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
  max-width: 1100px;
  margin: 0 auto;
}

.staff-donators-season {
  padding: 1.75rem 1.5rem 1.5rem;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(241, 196, 15, 0.22);
  box-shadow:
    inset -2px -2px 0 rgba(0, 0, 0, 0.35),
    inset 2px 2px 0 rgba(255, 255, 255, 0.03);
}

.staff-donators-season-title {
  font-family: 'MinecraftTen', sans-serif;
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  color: var(--staff-gold);
  margin: 0 0 1.25rem;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #000;
}

.staff-donators-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.15rem;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1100px;
}

.staff-donator-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 168px;
  padding: 1.35rem 1rem 1.15rem;
  text-align: center;
  background: linear-gradient(160deg, rgba(30, 30, 30, 0.95) 0%, rgba(12, 12, 12, 0.98) 100%);
  border: 2px solid rgba(241, 196, 15, 0.4);
  box-shadow:
    inset -3px -3px 0 rgba(0, 0, 0, 0.45),
    inset 3px 3px 0 rgba(255, 255, 255, 0.04),
    0 6px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.staff-donator-card:hover {
  transform: translateY(-4px);
  border-color: rgba(241, 196, 15, 0.75);
  box-shadow:
    inset -3px -3px 0 rgba(0, 0, 0, 0.45),
    inset 3px 3px 0 rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(241, 196, 15, 0.12);
}

.staff-donator-head {
  width: 76px;
  height: 76px;
  border: 3px solid var(--staff-gold);
  border-radius: 10px;
  object-fit: cover;
  background: #1a1a1a;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  box-shadow:
    0 0 18px rgba(241, 196, 15, 0.35),
    inset -2px -2px 0 rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.staff-donator-card:hover .staff-donator-head {
  transform: scale(1.05);
  box-shadow:
    0 0 22px rgba(241, 196, 15, 0.5),
    inset -2px -2px 0 rgba(0, 0, 0, 0.25);
}

.staff-donator-name {
  font-family: 'MinecraftTen', sans-serif;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  line-height: 1.3;
  letter-spacing: 0.5px;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #000;
  word-break: break-word;
}

.staff-donator-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(241, 196, 15, 0.85);
}

.staff-donators-empty {
  grid-column: 1 / -1;
  padding: 2rem;
  text-align: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.4);
  border: 1px dashed rgba(241, 196, 15, 0.25);
  background: rgba(0, 0, 0, 0.35);
}

/* ── Modal ── */
.staff-modal {
  display: none;
  position: fixed;
  z-index: 10001;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.88);
  animation: staffFadeIn 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

@keyframes staffFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.staff-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.staff-modal .modal-panel {
  position: relative;
  width: min(600px, 100%);
  max-height: min(85vh, 900px);
}

.staff-modal .modal-content {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  border: 4px solid var(--staff-gold);
  border-radius: 20px;
  padding: 0;
  width: 100%;
  max-height: min(85vh, 900px);
  overflow: hidden;
  color: #fff;
  animation: staffSlideUp 0.4s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow:
    inset -4px -4px 0 rgba(255, 255, 255, 0.05),
    inset 4px 4px 0 rgba(0, 0, 0, 0.4),
    0 0 40px rgba(241, 196, 15, 0.2),
    8px 8px 0 rgba(0, 0, 0, 0.55);
}

@keyframes staffSlideUp {
  from {
    transform: translateY(60px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.staff-modal .modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.88);
  border: 2px solid var(--staff-gold);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--staff-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-weight: bold;
  z-index: 50;
  line-height: 1;
  padding: 0;
  transition: transform 0.1s ease, background 0.1s ease, box-shadow 0.1s ease;
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.9),
    0 4px 14px rgba(0, 0, 0, 0.55);
}

.staff-modal .modal-close:hover {
  background: #1a1a1a;
  color: var(--staff-gold-light);
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.9),
    0 0 12px rgba(241, 196, 15, 0.35),
    0 4px 14px rgba(0, 0, 0, 0.55);
  transform: scale(1.05);
}

.staff-modal .modal-close:active {
  transform: scale(0.95);
  background: #000;
}

.staff-modal .modal-header {
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--staff-gold);
  min-height: 220px;
  flex-shrink: 0;
}

.staff-modal .modal-header-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(241, 196, 15, 0.15), rgba(241, 196, 15, 0.05));
}

.staff-modal .modal-header-bg-img,
.staff-modal .modal-header-bg-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.staff-modal .modal-header-bg-video {
  pointer-events: none;
}

.staff-modal .modal-header.has-custom-bg {
  aspect-ratio: var(--header-bg-aspect, 2.5 / 1);
  min-height: 0;
}

.staff-modal .modal-header.has-custom-bg .modal-header-bg {
  background: none;
}

.staff-modal .modal-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.45) 55%,
    rgba(10, 10, 10, 0.92) 100%
  );
  pointer-events: none;
}

.staff-modal .modal-header.has-custom-bg .modal-header-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.25) 55%,
    rgba(10, 10, 10, 0.72) 100%
  );
}

.staff-modal .modal-header-content {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 1.25rem;
  align-items: flex-end;
  padding: 3.75rem 1.5rem 1.35rem;
  min-height: 220px;
}

.staff-modal .modal-header.has-custom-bg .modal-header-content {
  position: absolute;
  inset: auto 0 0 0;
  min-height: 0;
  padding: 0 1.25rem 1rem;
}

.staff-modal .modal-avatar-container {
  flex-shrink: 0;
}

.staff-modal .modal-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--staff-gold);
  object-fit: cover;
  display: block;
  box-shadow: 0 0 24px rgba(241, 196, 15, 0.4);
}

.staff-modal .modal-header.has-custom-bg .modal-avatar {
  width: 96px;
  height: 96px;
}

.staff-modal .modal-header-info {
  flex: 1;
  min-width: 0;
  padding-right: 2.5rem;
}

.staff-modal .modal-header.has-custom-bg .modal-header-info {
  display: none;
}

.staff-modal .modal-name {
  font-family: 'MinecraftTen', sans-serif;
  font-size: clamp(1.35rem, 4.5vw, 2rem);
  color: var(--staff-gold);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
  word-break: break-word;
}

.staff-modal .modal-role {
  display: inline-block;
  color: #000;
  background: var(--staff-gold);
  font-family: 'MinecraftTen', sans-serif;
  font-size: clamp(0.7rem, 2.8vw, 0.8rem);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.3rem 0.75rem;
  margin-bottom: 0;
  border: 2px solid #000;
  max-width: 100%;
  word-break: break-word;
  box-shadow:
    inset -2px -2px 0 var(--staff-gold-dark),
    inset 2px 2px 0 var(--staff-gold-highlight),
    2px 2px 0 rgba(0, 0, 0, 0.4);
}

.staff-modal .modal-role-badge {
  display: none;
}

.staff-modal .modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.staff-modal .modal-section {
  margin-bottom: 1.8rem;
}

.staff-modal .modal-section:last-child {
  margin-bottom: 0;
}

.staff-modal .modal-section-title {
  color: var(--staff-gold);
  font-family: 'MinecraftTen', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 1rem;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.staff-modal .modal-section-title::before {
  content: "";
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--staff-gold), var(--staff-gold-light));
  border-radius: 2px;
}

.staff-modal .modal-position {
  background: linear-gradient(135deg, rgba(241, 196, 15, 0.15), rgba(241, 196, 15, 0.05));
  padding: 1.2rem;
  border-radius: 8px;
  color: #e0e0e0;
  border-left: 4px solid var(--staff-gold);
  font-size: 0.95rem;
  line-height: 1.6;
}

.staff-modal .modal-quote {
  font-style: italic;
  color: #ccc;
  padding: 1.2rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(241, 196, 15, 0.08), rgba(241, 196, 15, 0.02));
  border-left: 4px solid var(--staff-gold);
  line-height: 1.8;
  font-size: 0.95rem;
}

.staff-modal .modal-socials {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.staff-modal .modal-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-family: 'MinecraftTen', sans-serif;
  font-size: 0.95rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #000 !important;
  background: var(--staff-gold);
  border: 2px solid #000;
  padding: 0.5rem 1.5rem;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  box-shadow:
    inset -2px -2px 0 var(--staff-gold-dark),
    inset 2px 2px 0 var(--staff-gold-highlight),
    2px 2px 0 rgba(0, 0, 0, 0.4);
}

.staff-modal .modal-social-link:hover {
  background: var(--staff-gold-light);
  box-shadow:
    inset -2px -2px 0 #cda20a,
    inset 2px 2px 0 #fffff0,
    2px 2px 0 rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
  color: #000 !important;
}

.staff-modal .modal-social-link:active {
  transform: translateY(1px);
  box-shadow:
    inset 2px 2px 0 #cda20a,
    inset -2px -2px 0 #fffff0,
    1px 1px 0 rgba(0, 0, 0, 0.4);
  color: #000 !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .staff-hero {
    min-height: 280px;
    padding: 2.5rem 1.25rem;
  }

  .staff-hero h1 {
    font-size: 2rem;
  }

  .staff-section {
    padding: 3rem 1.25rem;
  }

  .staff-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .staff-category-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .staff-category-divider {
    margin: 2.5rem 0 1.5rem;
    gap: 1rem;
  }

  .staff-category-divider .era-title,
  .staff-category-divider-title {
    font-size: 1.1rem;
    padding: 0.35rem 1rem;
  }

  .staff-filters {
    gap: 0.5rem;
    margin-bottom: 2rem;
  }

  .filter-btn {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }

  .team-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .team-stat {
    border-right: none;
    border-bottom: 2px solid rgba(241, 196, 15, 0.3);
    padding-bottom: 1rem;
  }

  .team-stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .staff-cta {
    padding: 2.5rem 1.25rem;
  }

  .staff-donators {
    padding: 3rem 1.25rem 3.5rem;
  }

  .staff-donators-seasons {
    gap: 2rem;
  }

  .staff-donators-season {
    padding: 1.35rem 1rem 1.15rem;
  }

  .staff-donators-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.9rem;
  }

  .staff-donator-card {
    min-height: 156px;
    padding: 1.1rem 0.85rem;
  }

  .staff-donator-head {
    width: 64px;
    height: 64px;
  }

  .staff-modal.active {
    align-items: flex-end;
    padding: 0;
  }

  .staff-modal .modal-panel {
    width: 100%;
    max-width: none;
    max-height: 92vh;
  }

  .staff-modal .modal-content {
    max-height: 92vh;
    border-radius: 18px 18px 0 0;
    border-bottom: none;
  }

  .staff-modal .modal-close {
    position: fixed;
    top: max(12px, env(safe-area-inset-top, 12px));
    right: max(12px, env(safe-area-inset-right, 12px));
    width: 46px;
    height: 46px;
    font-size: 1.6rem;
    z-index: 10002;
    background: rgba(0, 0, 0, 0.92);
    border-width: 2px;
    box-shadow:
      0 0 0 3px rgba(0, 0, 0, 0.75),
      0 4px 18px rgba(0, 0, 0, 0.65);
  }

  .staff-modal .modal-header {
    min-height: 200px;
  }

  .staff-modal .modal-header.has-custom-bg {
    min-height: 0;
  }

  .staff-modal .modal-header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
    padding: 3.25rem 1rem 1.15rem;
    min-height: 200px;
  }

  .staff-modal .modal-header.has-custom-bg .modal-header-content {
    position: absolute;
    inset: auto 0 0 0;
    min-height: 0;
    padding: 0 1rem 0.85rem;
    flex-direction: row;
    align-items: flex-end;
    text-align: left;
  }

  .staff-modal .modal-header-info {
    text-align: center;
    padding-right: 0;
    width: 100%;
  }

  .staff-modal .modal-avatar {
    width: 96px;
    height: 96px;
  }

  .staff-modal .modal-header.has-custom-bg .modal-avatar {
    width: 84px;
    height: 84px;
  }

  .staff-modal .modal-name {
    font-size: 1.45rem;
  }

  .staff-modal .modal-body {
    padding: 1.25rem 1rem 1.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .staff-modal .modal-section {
    margin-bottom: 1.35rem;
  }

  .staff-modal .modal-quote,
  .staff-modal .modal-position {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .staff-modal .modal-social-link {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .staff-modal .modal-header {
    min-height: 180px;
  }

  .staff-modal .modal-header.has-custom-bg {
    min-height: 0;
  }

  .staff-modal .modal-header-content {
    min-height: 180px;
    padding-top: 3rem;
  }

  .staff-modal .modal-header.has-custom-bg .modal-header-content {
    min-height: 0;
    padding-top: 0;
  }

  .staff-modal .modal-panel {
    max-height: 94vh;
  }

  .staff-modal .modal-content {
    max-height: 94vh;
  }

  .staff-modal .modal-close {
    top: max(10px, env(safe-area-inset-top, 10px));
    right: max(10px, env(safe-area-inset-right, 10px));
  }

  .staff-hero-badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.65rem;
  }

  .staff-card {
    padding: 1.25rem;
  }

  .staff-avatar {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
  }

  .staff-name {
    font-size: 1.1rem;
  }

  .team-stat-number {
    font-size: 1.6rem;
  }
}
