.content-page h2,
.content-page h3 {
  letter-spacing: 0.04em;
}

.rules-type-perma h3 {
  color: #ff3366;
}

.rules-type-temp h3 {
  color: #40b0bf;
}

.rules-type-mute h3 {
  color: #5ee38f;
}

.rules-table-container {
  margin: 1.5rem auto;
  max-width: 1200px;
}

.table-title {
  font-family: 'VT323', var(--font-heading), monospace;
  color: #22a5e5;
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 15px rgba(34, 165, 229, 0.4);
}

.rules-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: linear-gradient(135deg, rgba(1, 17, 26, 0.95) 0%, rgba(0, 0, 0, 0.9) 100%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 0 0 2px rgba(34, 165, 229, 0.2),
    0 0 40px rgba(34, 165, 229, 0.1);
}

.rules-table thead {
  background: linear-gradient(135deg, #22a5e5 0%, #40b0bf 100%);
}

.rules-table thead th {
  padding: 1.2rem 1.5rem;
  font-family: 'VT323', var(--font-heading), monospace;
  font-size: 1.1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
  border: none;
  text-align: left;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.rules-table thead th:first-child {
  border-top-left-radius: 12px;
}

.rules-table thead th:last-child {
  border-top-right-radius: 12px;
  text-align: center;
  width: 200px;
}

.rules-table tbody tr {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(34, 165, 229, 0.15);
  position: relative;
}

.rules-table tbody tr:nth-child(even) {
  background: rgba(34, 165, 229, 0.03);
}

.rules-table tbody tr:hover {
  background: linear-gradient(135deg, rgba(34, 165, 229, 0.25) 0%, rgba(64, 176, 191, 0.15) 100%);
  transform: translateX(6px);
  box-shadow: -4px 0 0 0 #22a5e5, 0 2px 12px rgba(34, 165, 229, 0.25);
  border-color: rgba(34, 165, 229, 0.4);
  z-index: 1;
}

.rules-table tbody tr:last-child {
  border-bottom: none;
}

.rules-table tbody td {
  padding: 1rem 1.5rem;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1rem;
  border: none;
}

.rules-table tbody td:first-child {
  font-weight: 600;
  color: #22a5e5;
  text-shadow: 0 0 8px rgba(34, 165, 229, 0.3);
  font-size: 1.05rem;
}

.rules-table tbody td:last-child {
  text-align: center;
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 0.95rem;
}

/* Cores de punição */
.punishment-permanent {
  color: #ff3366 !important;
  text-shadow: 0 0 8px rgba(255, 51, 102, 0.4);
  font-weight: 700 !important;
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.1), rgba(255, 102, 102, 0.05));
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  display: inline-block;
}

.punishment-temporal {
  color: #40b0bf !important;
  text-shadow: 0 0 10px rgba(64, 176, 191, 0.5), 0 0 20px rgba(64, 176, 191, 0.2);
  font-weight: 600 !important;
  background: linear-gradient(135deg, rgba(64, 176, 191, 0.12), rgba(34, 165, 229, 0.08));
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  border-left: 3px solid #40b0bf;
  display: inline-block;
}

.punishment-mute {
  color: #5ee38f !important;
  text-shadow: 0 0 8px rgba(94, 227, 143, 0.35);
  font-weight: 600 !important;
  background: linear-gradient(135deg, rgba(94, 227, 143, 0.12), rgba(34, 165, 229, 0.08));
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  border-left: 3px solid #5ee38f;
  display: inline-block;
}

/* ===================== RESPONSIVO ===================== */

@media (max-width: 768px) {
  .rules-types {
    padding: 1rem;
  }

  .rules-types-grid {
    gap: 10px;
  }

  .rules-type-card h3 {
    font-size: 1.35rem;
  }

  .rules-type-card p {
    font-size: 0.9rem;
  }

  .table-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .rules-table thead th,
  .rules-table tbody td {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .rules-table thead th:last-child {
    width: 120px;
  }

  .rules-table tbody td:last-child {
    font-size: 0.85rem;
  }

  .rules-table tbody td:first-child {
    font-size: 0.95rem;
  }

  .punishment-permanent,
  .punishment-temporal,
  .punishment-mute {
    padding: 0.4rem 0.75rem !important;
  }
}

@media (max-width: 576px) {
  .rules-table-container {
    margin: 1rem 0;
  }

  .table-title {
    font-size: 1.25rem;
  }

  .rules-table {
    border-radius: 8px;
  }

  .rules-table thead th,
  .rules-table tbody td {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }

  .rules-table thead th:last-child {
    width: 100px;
  }

  .rules-table tbody td:last-child {
    font-size: 0.8rem;
  }

  .rules-table tbody td:first-child {
    font-size: 0.875rem;
  }

  .rules-table tbody tr:hover {
    transform: translateX(4px);
  }

  .punishment-permanent,
  .punishment-temporal,
  .punishment-mute {
    padding: 0.3rem 0.6rem !important;
    font-size: 0.8rem !important;
  }
}

/* iPad 768px–1024px */
@media (min-width: 768px) and (max-width: 1024px) {

  .rules-table thead th,
  .rules-table tbody td {
    padding: 0.9rem 1.2rem;
    font-size: 0.95rem;
  }

  .rules-table thead th:last-child {
    width: 140px;
  }
}

/* Ultra-small ≤360px */
@media (max-width: 360px) {
  .table-title {
    font-size: 1.1rem;
    letter-spacing: 0;
  }

  .rules-table thead th,
  .rules-table tbody td {
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
  }

  .rules-table thead th:last-child {
    width: 80px;
  }

  .rules-table tbody td:last-child {
    font-size: 0.72rem;
  }

  .rules-table tbody td:first-child {
    font-size: 0.78rem;
  }

  .rules-table tbody tr:hover {
    transform: translateX(2px);
  }

  .punishment-permanent,
  .punishment-temporal,
  .punishment-mute {
    padding: 0.25rem 0.4rem !important;
    font-size: 0.72rem !important;
  }
}