/* ============================================================
   StarSMP — shared stylesheet
   Palette + type pulled directly from the server logo:
   gold/orange "STAR", blue "SMP", magenta "APPLY NOW" banner,
   deep night-sky background.
   ============================================================ */

:root {
  --night: #0b1220;
  --night-deep: #060912;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(255, 255, 255, 0.09);
  --panel-border-strong: rgba(255, 255, 255, 0.16);

  --star-gold: #ffcf4d;
  --star-gold-deep: #ff9a2e;
  --smp-blue: #5cc0ff;
  --smp-blue-deep: #1c6fc9;
  --nova-purple: #b347e8;
  --nova-pink: #ff5fa8;
  --nova-purple-deep: #7c2cb8;
  --nova-pink-deep: #c43e7e;

  --text: #eef2fa;
  --text-muted: #98a3c0;
  --text-faint: #5d6885;

  --maxw: 1120px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }

h1, h2, h3 { margin: 0 0 .6em; font-weight: 600; line-height: 1.25; }
p { margin: 0 0 1em; color: var(--text-muted); }
a { color: var(--smp-blue); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.pixel {
  font-family: 'Press Start 2P', monospace;
  letter-spacing: 0.5px;
}

.ui-font {
  font-family: 'Pixelify Sans', monospace;
  font-weight: 600;
}

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--smp-blue);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- starfield ---------- */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% -10%, #142038 0%, var(--night) 55%, var(--night-deep) 100%);
}
#starfield .star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  opacity: 0.6;
}
@media (prefers-reduced-motion: no-preference) {
  #starfield .star.twinkle {
    animation: twinkle 3.5s ease-in-out infinite;
  }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.95; }
}

main, header, footer { position: relative; z-index: 1; }

/* ---------- header / nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 9, 18, 0.78);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--panel-border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.brand img { width: 30px; height: 30px; border-radius: 5px; }
.brand span {
  font-size: 13px;
  color: var(--star-gold);
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links a {
  font-family: 'Pixelify Sans', monospace;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--smp-blue);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
#nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--panel-border-strong);
  border-radius: 6px;
  color: var(--text);
  width: 38px;
  height: 38px;
  font-size: 18px;
  cursor: pointer;
}

@media (max-width: 880px) {
  .nav-links { 
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--night-deep);
    border-bottom: 1px solid var(--panel-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 24px 20px;
    gap: 14px;
    display: none;
  }
  .nav-links.open { display: flex; }
  #nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .brand span { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: 'Pixelify Sans', monospace;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--nova-purple-deep), var(--nova-pink-deep));
  color: #fff;
  box-shadow: 0 6px 22px rgba(179, 71, 232, 0.28);
}
.btn-ghost {
  background: transparent;
  border: 2px solid var(--smp-blue-deep);
  color: var(--smp-blue);
  padding: 11px 24px;
}
.btn-ghost:hover { background: rgba(92, 192, 255, 0.08); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn i { font-size: 18px; }

/* ---------- minecraft-gui button (signature, used for in-game actions) ---------- */
.mc-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: #fff;
  text-shadow: 2px 2px 0 rgba(0,0,0,.5);
  background: #6b6b6b;
  border: none;
  border-radius: 0;
  padding: 12px 18px;
  cursor: pointer;
  box-shadow:
    inset 2px 2px 0 rgba(255,255,255,.35),
    inset -3px -3px 0 rgba(0,0,0,.45);
}
.mc-btn:hover { background: #7a7a7a; }
.mc-btn:active {
  box-shadow:
    inset -2px -2px 0 rgba(255,255,255,.25),
    inset 3px 3px 0 rgba(0,0,0,.45);
  transform: translateY(1px);
}

/* ---------- hero ---------- */
.hero {
  padding: 64px 0 40px;
  text-align: center;
}
.hero .eyebrow {
  font-family: 'Pixelify Sans', monospace;
  font-size: 13px;
  color: var(--smp-blue);
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}
.hero .logo-banner {
  max-width: 640px;
  margin: 0 auto 22px;
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  animation: banner-glow 3s ease-in-out infinite;
}
@keyframes banner-glow {
  0%, 100% { filter: brightness(1) drop-shadow(0 0 0px rgba(179,71,232,0)); }
  50% { filter: brightness(1.08) drop-shadow(0 0 18px rgba(179,71,232,0.5)); }
}
@media (prefers-reduced-motion: reduce) {
  .hero .logo-banner { animation: none; }
}
.hero .tagline {
  max-width: 560px;
  margin: 0 auto 30px;
  font-size: 17px;
  color: var(--text-muted);
}
.hero .ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

/* ---------- join panel ---------- */
.join-panel {
  max-width: 560px;
  margin: 46px auto 0;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 28px 26px;
  text-align: left;
}
.join-panel .label {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--star-gold);
  margin-bottom: 16px;
  display: block;
  letter-spacing: 1px;
}
.join-panel .steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  font-family: 'Pixelify Sans', monospace;
  font-size: 14px;
  color: var(--text);
}
.join-panel .steps li { display: flex; gap: 10px; align-items: flex-start; }
.join-panel .steps b { color: var(--star-gold); min-width: 20px; }
.join-panel .version {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'Pixelify Sans', monospace;
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--panel-border);
}

/* ---------- ip bar ---------- */
.ip-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px auto 0;
  max-width: 560px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 12px 18px;
  flex-wrap: wrap;
}
.ip-bar .ip-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--text-faint);
  letter-spacing: 0.5px;
}
.ip-bar code {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  word-break: break-all;
}
.ip-bar .mc-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: #fff;
  text-shadow: 2px 2px 0 rgba(0,0,0,.5);
  background: #6b6b6b;
  border: none;
  border-radius: 0;
  padding: 8px 14px;
  cursor: pointer;
  box-shadow:
    inset 2px 2px 0 rgba(255,255,255,.35),
    inset -3px -3px 0 rgba(0,0,0,.45);
}
.ip-bar .mc-btn:hover { background: #7a7a7a; }
.ip-bar .mc-btn:active {
  box-shadow:
    inset -2px -2px 0 rgba(255,255,255,.25),
    inset 3px 3px 0 rgba(0,0,0,.45);
  transform: translateY(1px);
}
.ip-bar .ip-version {
  font-size: 11px;
  color: var(--text-faint);
  font-family: 'Pixelify Sans', monospace;
}

/* ---------- explore strip ---------- */
.explore {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 50px 0 0;
}
.explore-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color .15s ease, transform .15s ease;
}
.explore-card:hover { border-color: var(--panel-border-strong); transform: translateY(-3px); }
.explore-card i { font-size: 22px; color: var(--star-gold); }
.explore-card h3 { font-size: 16px; margin: 12px 0 6px; }
.explore-card p { font-size: 14px; margin-bottom: 10px; }
.explore-card a { font-family: 'Pixelify Sans', monospace; font-size: 13px; font-weight: 600; }

@media (max-width: 720px) {
  .explore { grid-template-columns: 1fr; margin-top: 30px; }
  .explore-card { padding: 18px; }
}

/* ---------- page header (non-home pages) ---------- */
.page-head {
  padding: 56px 0 30px;
  text-align: center;
}
.page-head h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: 26px;
  color: var(--star-gold);
  text-shadow: 3px 3px 0 #5e1620;
}
.page-head p { max-width: 520px; margin: 0 auto; }

section { padding: 10px 0 70px; }

/* ---------- store ---------- */
.store-note {
  max-width: 560px;
  margin: 0 auto 40px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
}
.store-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.rank-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
}
.rank-card.featured { border: 2px solid var(--nova-purple-deep); }
.rank-card .slot-icon {
  width: 44px; height: 44px;
  background: #8b8b8b;
  border: 3px solid #1c1c1c;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.3), inset -2px -2px 0 rgba(0,0,0,.4);
  margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Press Start 2P', monospace;
  color: var(--star-gold);
  font-size: 14px;
}
.rank-card h3 { font-family: 'Pixelify Sans', monospace; font-size: 18px; color: var(--star-gold); }
.rank-card .price { font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.rank-card .price span { font-size: 13px; color: var(--text-faint); font-weight: 400; }
.rank-card ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.rank-card li { font-size: 13.5px; color: var(--text-muted); padding: 5px 0; display: flex; gap: 8px; }
.rank-card li i { color: var(--smp-blue); font-size: 15px; }

@media (max-width: 860px) {
  .store-grid { grid-template-columns: 1fr; }
}

/* ---------- teams / leaderboard ---------- */
.leaderboard {
  display: grid;
  gap: 12px;
}
.team-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-left: 4px solid var(--panel-border-strong);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.team-row .rank {
  font-family: 'Press Start 2P', monospace;
  font-size: 18px;
  color: var(--text-faint);
  text-align: center;
}
.team-row.gold { border-left-color: var(--star-gold); }
.team-row.gold .rank { color: var(--star-gold); }
.team-row.silver { border-left-color: #cfd6e4; }
.team-row.silver .rank { color: #cfd6e4; }
.team-row.bronze { border-left-color: #e3995c; }
.team-row.bronze .rank { color: #e3995c; }
.team-row .team-name {
  font-family: 'Pixelify Sans', monospace;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.team-row .players { font-size: 13.5px; color: var(--text-muted); }
.team-row .score {
  font-family: 'Pixelify Sans', monospace;
  font-weight: 700;
  font-size: 15px;
  color: var(--smp-blue);
  background: rgba(92, 192, 255, 0.12);
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .team-row { grid-template-columns: 40px 1fr; }
  .team-row .score { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
}

/* ---------- statistics ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.stat-card {
  display: flex;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.stat-card .stat-icon {
  font-size: 32px;
  color: var(--star-gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.stat-card .stat-body { flex: 1; }
.stat-card .stat-label {
  font-family: 'Pixelify Sans', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.stat-card .stat-value {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.stat-card .stat-value .stat-num {
  font-size: 28px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  color: var(--star-gold);
  letter-spacing: 0.5px;
}
.stat-card .stat-value .stat-num.green { color: #5be37b; }
.stat-card .stat-value .stat-num.red { color: #e35b5b; }
.stat-card .stat-detail {
  font-size: 13px;
  color: var(--text-faint);
}
.stat-card .stat-detail + .stat-detail { margin-top: 2px; }

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { padding: 18px; }
}

/* ---------- gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.gallery-item {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform .25s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-muted);
}
.gallery-empty {
  text-align: center;
  padding: 50px 20px;
  border: 1px dashed var(--panel-border-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
}

#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 30px;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 90vw; max-height: 80vh; border-radius: 6px; }
#lightbox .cap { color: var(--text-muted); text-align: center; margin-top: 12px; }
#lightbox-close {
  position: absolute;
  top: 22px; right: 26px;
  background: none; border: none;
  color: #fff; font-size: 26px; cursor: pointer;
}

/* ---------- online players section ---------- */
.online-players-section {
  margin-top: 30px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.online-players-header {
  font-family: 'Pixelify Sans', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.online-players-header i { font-size: 20px; color: var(--smp-blue); }
.online-count {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #5be37b;
  background: rgba(91,227,123,.12);
  padding: 2px 10px;
  border-radius: 999px;
  margin-left: auto;
}
.online-players-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.online-player-name {
  font-family: 'Pixelify Sans', monospace;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--panel-border);
}
.online-player-name.online { color: #5be37b; border-color: rgba(91,227,123,.2); background: rgba(91,227,123,.06); }
.online-loading, .online-empty {
  font-size: 13px;
  color: var(--text-faint);
  font-style: italic;
}

/* ---------- server status ---------- */
.server-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 5px 14px 5px 10px;
  margin-bottom: 14px;
  font-family: 'Pixelify Sans', monospace;
  font-size: 12px;
  color: var(--text-muted);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-faint);
  flex-shrink: 0;
}
.status-dot.online { background: #5be37b; box-shadow: 0 0 8px rgba(91,227,123,.5); }
.status-dot.offline { background: #e35b5b; box-shadow: 0 0 8px rgba(227,91,91,.4); }

/* ---------- season card ---------- */
.season-section { padding: 10px 0 20px; }
.season-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, rgba(179,71,232,.1), rgba(255,95,168,.05));
  border: 1px solid rgba(179,71,232,.2);
  border-radius: var(--radius);
  padding: 20px 24px;
  overflow: hidden;
}
.season-card .season-icon {
  font-size: 28px;
  color: var(--nova-purple);
  flex-shrink: 0;
  margin-top: 2px;
}
.season-card .season-title {
  font-family: 'Pixelify Sans', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.season-card .season-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.season-card .season-meta i { margin-right: 4px; vertical-align: middle; }

/* ---------- teams grid ---------- */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.team-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .15s ease, transform .15s ease;
}
.team-card:hover { border-color: var(--panel-border-strong); transform: translateY(-3px); }
.team-card .team-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--star-gold);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  line-height: 1.5;
}
.team-card .player-list { display: grid; gap: 12px; }
.team-card .player-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,.03);
  border-radius: 6px;
}
.team-card .player-entry .player-info { flex: 1; min-width: 0; }
.team-card .player-entry .name {
  font-family: 'Pixelify Sans', monospace;
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
  transition: color .2s ease;
}
.team-card .player-entry .name.online { color: #5be37b; }
.team-card .player-entry .name.offline { color: #e35b5b; }
.team-card .player-entry .name[data-tooltip] {
  position: relative;
  cursor: default;
}
.team-card .player-entry .name[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Pixelify Sans', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 5px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .08s ease;
  z-index: 10;
}
.team-card .player-entry .name.online[data-tooltip]::after {
  background: rgba(91,227,123,.15);
  color: #5be37b;
  box-shadow: 0 0 6px rgba(91,227,123,.12);
}
.team-card .player-entry .name.offline[data-tooltip]::after {
  background: rgba(227,91,91,.15);
  color: #e35b5b;
  box-shadow: 0 0 6px rgba(227,91,91,.12);
}
.team-card .player-entry .name[data-tooltip]:hover::after { opacity: 1; }
.team-card .player-entry .player-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.team-card .player-entry .stat {
  font-size: 11px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255,255,255,.04);
  padding: 2px 6px;
  border-radius: 4px;
  position: relative;
  cursor: default;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.team-card .player-entry .stat:hover {
  background: rgba(255,255,255,.08);
  transform: scale(1.15);
  box-shadow: 0 0 10px rgba(255,255,255,.08);
}
.team-card .player-entry .stat .emoji { font-size: 13px; line-height: 1; }
.team-card .player-entry .stat[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a2e;
  color: #eef2fa;
  font-family: 'Pixelify Sans', monospace;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 4px 14px rgba(0,0,0,.5);
  pointer-events: none;
  opacity: 0;
  transition: opacity .08s ease;
  z-index: 10;
}
.team-card .player-entry .stat[data-tooltip]:hover::after { opacity: 1; }
.team-card .player-entry .stat.penalty { color: #e35b5b; }
.team-card .player-entry .stat.penalty:hover { box-shadow: 0 0 10px rgba(227,91,91,.15); }
#starfield .star.cursor-star { will-change: transform; }

.stars-toggle {
  font-size: 16px !important;
  padding: 7px 10px !important;
  border-color: rgba(255,255,255,.15) !important;
  transition: border-color .15s ease, box-shadow .15s ease !important;
}
.stars-toggle.active {
  border-color: var(--star-gold) !important;
  box-shadow: 0 0 12px rgba(255,207,77,.2) !important;
  color: var(--star-gold) !important;
}
.stars-toggle i { font-size: 16px !important; }

/* ---------- stars dashboard panel ---------- */
.stars-panel {
  position: fixed;
  top: 72px;
  right: 24px;
  z-index: 30;
  background: rgba(11,18,32,.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--panel-border-strong);
  border-radius: var(--radius);
  width: 260px;
  padding: 16px 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.stars-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.stars-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.stars-panel-title {
  font-family: 'Pixelify Sans', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--star-gold);
  display: flex;
  align-items: center;
  gap: 6px;
}
.stars-panel-title i { font-size: 16px; }
.stars-panel-close {
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 18px;
  cursor: pointer;
  padding: 2px;
}
.stars-panel-close:hover { color: var(--text); }
.stars-panel-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stars-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: 'Pixelify Sans', monospace;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
}
.stars-row input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100px;
  height: 4px;
  background: var(--panel-border-strong);
  border-radius: 2px;
  outline: none;
  flex-shrink: 0;
}
.stars-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--smp-blue);
  border: 2px solid var(--night);
  box-shadow: 0 0 4px rgba(92,192,255,.4);
  cursor: pointer;
}
.stars-row input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 36px;
  height: 20px;
  background: var(--panel-border-strong);
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.stars-row input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-faint);
  transition: transform .15s ease, background .15s ease;
}
.stars-row input[type="checkbox"]:checked { background: rgba(92,192,255,.3); }
.stars-row input[type="checkbox"]:checked::after {
  transform: translateX(16px);
  background: var(--smp-blue);
}
.stars-val {
  color: var(--text);
  font-weight: 600;
  min-width: 24px;
  display: inline-block;
  text-align: right;
}

@media (max-width: 600px) {
  .stars-panel {
    right: 12px;
    left: 12px;
    width: auto;
    top: 66px;
  }
}
.team-card .player-entry .socials { display: flex; gap: 6px; }
.team-card .player-entry .social-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Pixelify Sans', monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
}
.team-card .player-entry .social-link.twitch { background: #9146ff; }
.team-card .player-entry .social-link.youtube { background: #ff0000; }
.team-card .player-entry .social-link.twitter { background: #1da1f2; }
.team-card .player-entry .social-link:hover { filter: brightness(1.2); }
.team-card .empty-players {
  font-size: 13px;
  color: var(--text-faint);
  text-align: center;
  padding: 12px 0;
  font-style: italic;
}

@media (max-width: 600px) {
  .teams-grid { grid-template-columns: 1fr; }
  .team-card { padding: 18px; }
  .team-card .player-entry { flex-direction: column; align-items: flex-start; gap: 8px; }
  .team-card .player-entry .socials { align-self: flex-start; }
}

/* ---------- apply page ---------- */
.apply-steps {
  display: grid;
  gap: 24px;
  max-width: 640px;
  margin: 0 auto;
}
.apply-step {
  display: flex;
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.apply-step-num {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--nova-purple-deep), var(--nova-pink-deep));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: #fff;
}
.apply-step h3 {
  font-family: 'Pixelify Sans', monospace;
  font-size: 16px;
  margin: 0 0 6px;
  color: var(--text);
}
.apply-step p { font-size: 14px; margin: 0 0 12px; }
.apply-step .btn { margin-top: 4px; }
.apply-note {
  display: flex;
  gap: 12px;
  background: rgba(92, 192, 255, .08);
  border: 1px solid rgba(92, 192, 255, .2);
  border-radius: var(--radius);
  padding: 16px 20px;
  max-width: 640px;
  margin: 30px auto 0;
  font-size: 14px;
}
.apply-note i { font-size: 22px; color: var(--smp-blue); flex-shrink: 0; margin-top: 2px; }
.apply-note p { margin: 0; }

/* ---------- 404 ---------- */
body.page-404 .main-404 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}
.creeper-face {
  display: grid;
  gap: 3px;
  width: 120px;
  margin: 0 auto;
}
.creeper-row { display: flex; gap: 3px; }
.creeper-row span {
  width: 12px;
  height: 12px;
  background: #5be37b;
  border: 1px solid #3a9e55;
  border-radius: 2px;
}
.creeper-row:nth-child(3) span:nth-child(2),
.creeper-row:nth-child(3) span:nth-child(3),
.creeper-row:nth-child(5) span:nth-child(2),
.creeper-row:nth-child(5) span:nth-child(3),
.creeper-row:nth-child(6) span:nth-child(2),
.creeper-row:nth-child(6) span:nth-child(3) { background: #111; border-color: #000; }
@keyframes creeper-blink {
  0%, 90%, 100% { background: #111; }
  95% { background: #5be37b; }
}
.creeper-row:nth-child(3) span:nth-child(2),
.creeper-row:nth-child(3) span:nth-child(3) {
  animation: creeper-blink 4s ease-in-out infinite;
}

/* ---------- glow animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Season card flowing glow */
  .season-card {
    animation: border-glow 5s ease-in-out infinite;
  }
  @keyframes border-glow {
    0%, 100% { box-shadow: 0 0 6px rgba(179,71,232,0.15), inset 0 0 6px rgba(179,71,232,0.05); }
    33% { box-shadow: 0 0 20px rgba(179,71,232,0.4), inset 0 0 10px rgba(179,71,232,0.08); }
    66% { box-shadow: 0 0 20px rgba(255,95,168,0.4), inset 0 0 10px rgba(255,95,168,0.08); }
  }

  /* Apply step number glow */
  .apply-step-num {
    animation: pulse-glow 3s ease-in-out infinite;
  }
  @keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 8px rgba(179,71,232,0.3); }
    50% { box-shadow: 0 0 22px rgba(179,71,232,0.7); }
  }

  /* Explore card icon glow */
  .explore-card i {
    animation: gold-glow 3.5s ease-in-out infinite;
  }
  @keyframes gold-glow {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(255,207,77,0.2)); }
    50% { filter: drop-shadow(0 0 14px rgba(255,207,77,0.7)); }
  }

  /* Primary button shimmer sweep */
  .btn-primary {
    position: relative;
    overflow: hidden;
  }
  .btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.12) 50%, transparent 100%);
    width: 60%;
    transform: skewX(-20deg) translateX(-200%);
    animation: shimmer 4s ease-in-out infinite;
  }
  @keyframes shimmer {
    0% { transform: skewX(-20deg) translateX(-200%); }
    50% { transform: skewX(-20deg) translateX(300%); }
    100% { transform: skewX(-20deg) translateX(300%); }
  }

  /* Team card name glow */
  .team-card .team-name {
    animation: text-glow 3s ease-in-out infinite;
  }
  @keyframes text-glow {
    0%, 100% { text-shadow: 0 0 4px rgba(255,207,77,0.2); }
    50% { text-shadow: 0 0 14px rgba(255,207,77,0.6); }
  }

  /* Server status dot pulse */
  .status-dot.online {
    animation: dot-pulse 2s ease-in-out infinite;
  }
  @keyframes dot-pulse {
    0%, 100% { box-shadow: 0 0 4px rgba(91,227,123,0.3); }
    50% { box-shadow: 0 0 12px rgba(91,227,123,0.7); }
  }
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--panel-border);
  padding: 36px 0;
  margin-top: 40px;
}
footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
footer.site .fdisc {
  font-size: 12.5px;
  color: var(--text-faint);
  max-width: 480px;
}
footer.site .flinks {
  display: flex;
  gap: 18px;
  font-family: 'Pixelify Sans', monospace;
  font-size: 13px;
}
footer.site .flinks a { color: var(--text-muted); }
footer.site .flinks a:hover { color: var(--text); }

/* ---------- toast ---------- */
#toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--star-gold);
  color: #3a2400;
  font-family: 'Pixelify Sans', monospace;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 60;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- mobile overrides ---------- */
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .nav { padding: 12px 16px; }
  .hero { padding: 40px 0 30px; }
  .hero .tagline { font-size: 15px; margin-bottom: 22px; }
  .join-panel { padding: 20px 16px; margin-top: 30px; }
  .ip-bar { padding: 10px 14px; gap: 8px; }
  .ip-bar code { font-size: 13px; }
  .page-head { padding: 40px 0 20px; }
  .page-head h1 { font-size: 20px; text-shadow: 2px 2px 0 #5e1620; }
  .season-card { padding: 16px; flex-direction: column; gap: 10px; }
  .season-card .season-icon { font-size: 22px; }
  .season-card .season-title { font-size: 14px; }
  .season-card .season-meta { gap: 10px; font-size: 12px; flex-direction: column; }
  .apply-step { padding: 16px; gap: 14px; }
  .apply-step-num { width: 32px; height: 32px; font-size: 11px; }
  .apply-note { padding: 14px 16px; flex-direction: column; gap: 8px; }
  footer.site { padding: 24px 0; }
  footer.site .wrap { flex-direction: column; text-align: center; gap: 10px; }
  footer.site .fdisc { font-size: 11px; max-width: 100%; }
  .creeper-face { width: 80px; }
  .creeper-row span { width: 8px; height: 8px; }
  #lightbox { padding: 16px; }
  section { padding: 10px 0 40px; }
}