@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Outfit:wght@400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

:root {
  --red: #ef4444;
  --red-bright: #f87171;
  --red-dark: #b91c1c;
  --red-darker: #991b1b;
  --red-box: #dc2626;
  --white: #ffffff;
  --black: #171717;
  --gray: #525252;
  --gray-light: #e5e5e5;
  --gray-card: #f5f5f5;
  --rules-bg: #1a1a1a;
  --rules-text: #d4d4d4;
  --font-pixel: 'Press Start 2P', cursive;
  --font-body: 'Outfit', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========== Topbar ========== */
.topbar {
  background: #111111;
  padding: 0 1.5rem;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 4px 20px rgba(0,0,0,0.5);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.topbar-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
  letter-spacing: 0.01em;
}

.topbar-link i {
  font-size: 0.75rem;
  opacity: 0.9;
}

.topbar-link:hover {
  background: rgba(255,255,255,0.07);
  color: var(--white);
}

.topbar-link:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.topbar-link-active {
  background: var(--red);
  color: var(--white);
}

.topbar-link-active:hover {
  background: var(--red-dark);
  color: var(--white);
}

.menu-toggle {
  display: none;
  justify-self: end;
  flex-direction: column;
  gap: 5px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ========== Wave ========== */
.wave-wrap {
  background: var(--red);
  line-height: 0;
  display: block;
}

.wave {
  display: block;
  width: 100%;
  height: 70px;
  fill: var(--white);
}

/* ========== Hero ========== */
.hero {
  background: var(--red);
  padding: 5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  min-width: 150px;
  max-width: 190px;
  position: relative;
  text-decoration: none;
  color: var(--white);
}

.hero-cta-play {
  cursor: pointer;
}

.hero-cta-icon-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.hero-cta:hover .hero-cta-icon-wrap,
.hero-cta-play:hover .hero-cta-icon-wrap {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  background: rgba(0,0,0,0.3);
}

.hero-cta-icon {
  font-size: 1.6rem;
  color: var(--white);
}

.hero-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--white);
  color: var(--red-dark);
  font-family: var(--font-pixel);
  font-size: 0.42rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  font-weight: 700;
}

.hero-cta-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-align: center;
}

.hero-cta-title {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: var(--white);
  line-height: 1.5;
}

.hero-cta-hint {
  font-family: var(--font-pixel);
  font-size: 0.33rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}

.hero-cta-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hero-cta-btn:focus-visible {
  outline: 2px solid rgba(255,255,255,0.9);
  outline-offset: 2px;
}

.hero-cta-play.copied .hero-cta-icon-wrap {
  outline: 2px solid rgba(255,255,255,0.8);
  outline-offset: 3px;
}

/* Logo midden */
.hero-logo-wrap {
  text-align: center;
}

.hero-logo {
  font-family: var(--font-pixel);
  font-size: clamp(1.1rem, 3.5vw, 1.9rem);
  color: var(--white);
  margin: 0;
  line-height: 1.4;
  text-shadow:
    2px 2px 0 var(--red-darker),
    4px 4px 0 var(--red-darker),
    6px 6px 14px rgba(0,0,0,0.45);
}

.hero-logo-sub {
  font-family: var(--font-pixel);
  font-size: 0.4rem;
  color: rgba(255,255,255,0.85);
  margin: 0.4rem 0 0;
  letter-spacing: 0.12em;
}

/* ========== Welcome ========== */
.welcome {
  background: var(--white);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--gray-light);
}

.welcome-title {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--black);
  text-align: center;
  max-width: 740px;
  margin: 0 auto 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.welcome-text {
  font-size: 1rem;
  color: var(--gray);
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ========== Featured cards ========== */
.featured {
  background: var(--white);
  padding: 3rem 0 4rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.1);
  border-color: var(--red);
}

.feature-card-image {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card-image-1 {
  background: linear-gradient(135deg, var(--red-darker) 0%, var(--red) 100%);
}

.feature-card-image-2 {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red-box) 100%);
}

.feature-card-icon {
  font-size: 3.5rem;
  color: rgba(255,255,255,0.18);
}

.feature-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.feature-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.feature-card-body p {
  font-size: 0.9rem;
  color: var(--gray);
  margin: 0 0 0.85rem;
  line-height: 1.6;
}

.feature-card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.feature-card-link:hover {
  text-decoration: underline;
}

.feature-card-link i {
  font-size: 0.75rem;
  transition: transform 0.18s;
}

.feature-card-link:hover i {
  transform: translateX(3px);
}

/* ========== Secties ========== */
.section {
  padding: 4rem 0;
  background: var(--white);
}

.section-alt {
  background: var(--gray-card);
}

/* Page header (subpages) */
.page-header {
  background: var(--red);
  padding: 3.5rem 0 2.75rem;
  text-align: center;
}

.page-header-title {
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--white);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.page-header-sub {
  margin: 0;
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* Gamemodes – donker thema */
.gamemodes-section {
  background: var(--black);
}

.gamemodes-section .section-title {
  color: var(--white);
}

.gamemodes-section .section-title::after {
  background: var(--red);
}

.gamemodes-section .section-intro {
  color: rgba(255,255,255,0.55);
}

.gamemodes-section .card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

.gamemodes-section .card:hover {
  border-color: var(--red);
  box-shadow: 0 4px 24px rgba(239,68,68,0.18);
  background: rgba(255,255,255,0.06);
}

.gamemodes-section .card h3 {
  color: var(--white);
}

.gamemodes-section .card p {
  color: rgba(255,255,255,0.55);
}

.gamemodes-section .card-icon {
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3);
}

.gamemodes-section .card-icon i {
  color: var(--red-bright);
}

.section-title {
  font-family: var(--font-body);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--black);
  text-align: center;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.section-title::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: var(--red);
  margin: 0.55rem auto 0;
  border-radius: 2px;
}

.section-intro {
  text-align: center;
  max-width: 560px;
  margin: 1rem auto 2.5rem;
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.7;
}

.vote-actions {
  text-align: center;
  margin: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  background: var(--red);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.gamemodes-section .card-link:hover h3 {
  color: var(--white);
}

.card-coming-soon {
  border-style: dashed;
  opacity: 0.6;
  cursor: default;
}

.card-coming-soon:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--gray-light);
}

.gamemodes-section .card-coming-soon {
  border-color: rgba(255,255,255,0.15);
}

.gamemodes-section .card-coming-soon:hover {
  border-color: rgba(255,255,255,0.15);
  box-shadow: none;
  background: rgba(255,255,255,0.04);
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--red);
  box-shadow: 0 4px 18px rgba(239,68,68,0.12);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon i {
  font-size: 1.15rem;
  color: var(--red);
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  margin: 0 0 0.5rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--gray);
  margin: 0;
  line-height: 1.6;
}

/* ========== Regels ========== */
.rules-section {
  padding: 4.5rem 0;
  background: var(--rules-bg);
}

.rules-section-title {
  font-family: var(--font-body);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--white);
  text-align: center;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.rules-section-title::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: var(--red);
  margin: 0.55rem auto 2.5rem;
  border-radius: 2px;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.rules-block {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
}

.rules-block-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rules-block-title i {
  color: var(--red);
  font-size: 0.85rem;
}

.rules-section .rules-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--rules-text);
}

.rules-section .rules-list li {
  margin-bottom: 0.55rem;
  line-height: 1.55;
  font-size: 0.88rem;
}

.rules-section .rules-list li::marker {
  color: var(--red);
  font-weight: 700;
}

@media (max-width: 700px) {
  .rules-grid {
    grid-template-columns: 1fr;
  }

  .rules-block {
    padding: 1.25rem 1.35rem;
  }
}

/* ========== Staff ========== */
.page-staff {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.staff-loading {
  text-align: center;
  color: var(--gray);
  font-weight: 500;
  padding: 2rem 0;
}

.staff-loading i {
  margin-right: 0.5rem;
  color: var(--red);
}

.staff-error {
  text-align: center;
  color: var(--red-dark);
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

.staff-stale {
  text-align: center;
  color: #a16207;
  background: rgba(234,179,8,0.12);
  border: 1px solid rgba(234,179,8,0.35);
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  max-width: 520px;
  margin: 0 auto 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.staff-stale i {
  margin-right: 0.45rem;
}

.staff-empty {
  text-align: center;
  color: var(--gray);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

.staff-empty code {
  background: rgba(0,0,0,0.06);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.staff-rank {
  margin-bottom: 2.5rem;
}

.staff-rank:last-child {
  margin-bottom: 0;
}

.staff-rank-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--black);
  text-align: center;
  margin: 0 0 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.staff-rank-title::after {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  background: var(--red);
  margin: 0.45rem auto 0;
  border-radius: 2px;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.staff-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  padding: 1.5rem 1rem 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}

.staff-card:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.staff-card:hover {
  border-color: var(--red);
  box-shadow: 0 4px 16px rgba(239,68,68,0.1);
  transform: translateY(-2px);
}

.staff-avatar {
  height: 100px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0 auto 0.75rem;
  overflow: hidden;
}

.staff-avatar img {
  height: 100px;
  width: auto;
  object-fit: contain;
  image-rendering: pixelated;
}

.staff-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  margin: 0 0 0.35rem;
}

.staff-card__minecraft {
  font-family: var(--font-pixel);
  font-size: 0.48rem;
  color: var(--gray);
  margin: 0;
  line-height: 1.6;
  letter-spacing: 0.02em;
  word-break: break-word;
}

/* Staff detail modal */
.staff-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.staff-modal[hidden] {
  display: none;
}

.staff-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}

.staff-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 16px;
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  text-align: center;
  animation: staffModalIn 0.22s ease-out;
}

@keyframes staffModalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.staff-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  background: var(--white);
  color: var(--gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.staff-modal-close:hover {
  background: var(--gray-card);
  color: var(--black);
  border-color: var(--gray);
}

.staff-modal-avatars {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 200px;
  margin-bottom: 1rem;
}

.staff-modal-skin {
  height: 200px;
  width: auto;
  object-fit: contain;
  image-rendering: pixelated;
}

.staff-modal-discord {
  position: absolute;
  right: calc(50% - 100px);
  bottom: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  background: var(--gray-card);
}

.staff-modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--black);
  margin: 0 0 0.25rem;
}

.staff-modal-rank {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.5rem;
}

.staff-modal-mc {
  font-family: var(--font-pixel);
  font-size: 0.52rem;
  color: var(--gray);
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

.staff-modal-meta {
  margin: 0 0 1.25rem;
  text-align: left;
}

.staff-modal-meta-item {
  background: var(--gray-card);
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.staff-modal-meta-item dt {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.staff-modal-meta-item dt i {
  color: #5865f2;
}

.staff-modal-meta-item dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--black);
}

.staff-modal-bio-wrap {
  text-align: left;
  background: var(--gray-card);
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}

.staff-modal-bio-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
}

.staff-modal-bio {
  margin: 0;
  font-size: 0.92rem;
  color: var(--black);
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 480px) {
  .staff-modal-dialog {
    padding: 1.75rem 1.25rem 1.5rem;
  }

  .staff-modal-discord {
    right: 0.5rem;
    width: 60px;
    height: 60px;
  }
}

/* ========== Punishments (/bans/) ========== */
.page-punishments {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.pun-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.pun-search {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  min-width: 220px;
  max-width: 420px;
}

.pun-search-input {
  flex: 1;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.pun-search-input:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
  border-color: var(--red);
}

.pun-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.18s;
}

.pun-search-btn:hover {
  background: var(--red-dark);
}

.pun-updated {
  margin: 0;
  font-size: 0.8rem;
  color: var(--gray);
}

.pun-stats {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
}

.pun-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.pun-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pun-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  background: var(--white);
  color: var(--gray);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.pun-tab:hover {
  border-color: var(--red);
  color: var(--black);
}

.pun-tab-active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.pun-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray);
  cursor: pointer;
  user-select: none;
}

.pun-status-row:hover {
  background: transparent;
}

.pun-status-cell {
  text-align: center;
  padding: 2rem 1rem !important;
  color: var(--gray);
}

.pun-status-loading i {
  color: var(--red);
  margin-right: 0.4rem;
}

.pun-status-error {
  color: var(--red-dark);
  background: rgba(239,68,68,0.08);
}

.pun-status-card {
  text-align: center;
  color: var(--gray);
  padding: 2rem 1rem;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.pun-status-card.pun-status-error {
  color: var(--red-dark);
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.25);
}

.pun-table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 12px;
}

.pun-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.pun-table thead {
  background: #111111;
  color: var(--white);
}

.pun-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.pun-table td {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--gray-light);
  vertical-align: middle;
}

.pun-table tbody tr:hover {
  background: rgba(239,68,68,0.04);
}

.pun-player-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--black);
  text-align: left;
}

.pun-player-btn:hover {
  color: var(--red);
}

.pun-player-avatar {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.pun-reason {
  max-width: 280px;
}

.pun-server {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  background: var(--gray-card);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: lowercase;
}

.pun-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pun-badge-active {
  background: rgba(34,197,94,0.15);
  color: #15803d;
}

.pun-badge-expired {
  background: rgba(0,0,0,0.06);
  color: var(--gray);
}

.pun-badge-kick {
  background: rgba(59,130,246,0.12);
  color: #1d4ed8;
}

.pun-badge-type-ban { background: rgba(239,68,68,0.12); color: var(--red-dark); }
.pun-badge-type-mute { background: rgba(234,179,8,0.15); color: #a16207; }
.pun-badge-type-kick { background: rgba(59,130,246,0.12); color: #1d4ed8; }
.pun-badge-type-warning { background: rgba(249,115,22,0.12); color: #c2410c; }

.pun-cards {
  display: none;
}

.pun-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.pun-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.pun-card-reason {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--black);
  line-height: 1.5;
}

.pun-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  margin: 0;
}

.pun-card-meta dt {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pun-card-meta dd {
  margin: 0.1rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Player modal */
.pun-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.pun-modal[hidden] {
  display: none;
}

.pun-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
}

.pun-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  animation: staffModalIn 0.22s ease-out;
}

.pun-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  background: var(--white);
  color: var(--gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pun-modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-right: 2rem;
}

.pun-modal-avatar {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.pun-modal-title {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.pun-modal-counts {
  margin: 0;
  font-size: 0.85rem;
  color: var(--gray);
}

.pun-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pun-timeline-empty {
  text-align: center;
  color: var(--gray);
  margin: 0;
  padding: 1rem 0;
}

.pun-timeline-item {
  background: var(--gray-card);
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.pun-timeline-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.pun-timeline-reason {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.5;
}

.pun-timeline-meta {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: var(--gray);
}

.pun-timeline-meta li {
  margin-bottom: 0.2rem;
}

.pun-timeline-meta strong {
  color: var(--black);
  font-weight: 600;
}

@media (max-width: 768px) {
  .pun-table-wrap {
    display: none;
  }

  .pun-cards {
    display: block;
  }

  .pun-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .pun-tabs {
    justify-content: center;
  }
}

/* ========== FAQ ========== */
.faq-list {
  max-width: 620px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  overflow: hidden;
  transition: border-color 0.18s;
}

.faq-item[open] {
  border-color: var(--red);
}

.faq-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  color: var(--black);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  color: var(--red);
  font-size: 1.2rem;
  font-weight: 400;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin: 0;
  padding: 0.75rem 1.25rem 1rem;
  color: var(--gray);
  font-size: 0.9rem;
  border-top: 1px solid var(--gray-light);
  line-height: 1.7;
}

.faq-item a {
  color: var(--red);
  text-decoration: none;
}

.faq-item a:hover {
  text-decoration: underline;
}

/* ========== Footer ========== */
.footer {
  background: #111111;
  color: var(--white);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  margin: 0 0 1rem;
  color: rgba(255,255,255,0.9);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-nav a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.18s;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-copy {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* ========== Mobile menu ========== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 260px;
  height: 100vh;
  background: #111111;
  border-left: 1px solid rgba(255,255,255,0.07);
  padding: 5rem 1.25rem 1.5rem;
  z-index: 200;
  flex-direction: column;
  gap: 0.2rem;
  box-shadow: -6px 0 40px rgba(0,0,0,0.6);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 0.65rem 0.9rem;
  border-radius: 7px;
  transition: background 0.18s, color 0.18s;
}

.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: rgba(255,255,255,0.7);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.18s, color 0.18s;
}

.mobile-menu-close:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

.mobile-menu a i {
  width: 16px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--red-bright);
}

.mobile-menu a:hover {
  background: rgba(255,255,255,0.07);
  color: var(--white);
}

.mobile-menu a.mobile-link-active {
  background: var(--red);
  color: var(--white);
}

.mobile-menu a.mobile-link-active i {
  color: var(--white);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .topbar {
    justify-content: flex-end;
  }

  .topbar-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .hero-cta {
    max-width: 200px;
    justify-self: center;
  }

  .hero-logo {
    font-size: 1.2rem;
  }

  .wave {
    height: 48px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .rules-section-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3.5rem 0 2.5rem;
  }

  .hero-cta-title {
    font-size: 0.45rem;
  }

  .hero-cta-hint {
    font-size: 0.3rem;
  }

  .welcome-title {
    font-size: 1.35rem;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }
}
