    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    /* Paleta global de cores. Centralizada aqui para facilitar futuras customizações. */
    :root {
      --bg:        #0d0d0f; /* fundo geral da página */
      --surface:   #17171c; /* fundo dos cards e componentes elevados */
      --border:    #2a2a35; /* bordas sutis */
      --text:      #e0ddd8; /* texto principal */
      --muted:     #6b6a72; /* texto secundário / labels */
      --green:     #3ecf6e; /* indicador de servidor online */
      --red:       #e05252; /* indicador de servidor offline */
    }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: 'Segoe UI', system-ui, sans-serif;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .hero {
      width: 100%;
      padding: 48px 24px 32px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: radial-gradient(ellipse 80% 60% at 50% 0%, #1e1508 0%, transparent 70%);
    }

    .hero-logo {
      height: 120px;
      width: auto;
      object-fit: contain;
      filter: drop-shadow(0 4px 24px rgba(192, 131, 42, 0.35));
    }

    .hero-slogan {
      margin-top: 14px;
      color: var(--muted);
      font-size: 1.05rem;
      text-align: center;
    }

    /*
     * Container principal dos cards. Usa flexbox com wrap para centralizar os cards
     * independentemente de quantos existem, sem criar colunas vazias como no grid auto-fill.
     */
    .grid {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 24px;
      width: 100%;
      max-width: 1140px;
      padding: 16px 24px 10px;
    }

    /* Card individual de cada servidor. Largura fixa para garantir alinhamento consistente. */
    .card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 0 0 24px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 14px;
      position: relative;
      overflow: hidden;
      transition: transform 0.2s, box-shadow 0.2s;
      width: 300px;
      flex-shrink: 0;
      text-decoration: none;
      color: inherit;
    }

    /*
     * Pseudo-elemento responsável pelo efeito de borda colorida e brilho ao passar o mouse.
     * Implementado via ::before para não interferir no layout dos filhos do card.
     * A cor é definida pela variável --card-color, injetada inline via JavaScript.
     */
    .card::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 16px;
      box-shadow: 0 0 0 1.5px var(--card-color, #888) inset,
                  0 0 32px -8px var(--card-color, #888);
      opacity: 0;
      transition: opacity 0.3s;
    }

    .card:hover { transform: translateY(-4px); }
    .card:hover::before { opacity: 1; }

    /* Total player counter displayed between the hero and the card grid. */
    .total-counter {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--text);
      padding: 12px 0 0;
    }

    .total-counter .dot {
      flex-shrink: 0;
      width: 10px;
      height: 10px;
    }

    /* Full-bleed image header with name overlaid at the bottom. */
    .card .card-header {
      width: 98.5%;
      height: 160px;
      margin-top: 2px;
      position: relative;
      overflow: hidden;
      border-radius: 16px 16px 0 0;
      background: rgba(255, 255, 255, 0.03);
      flex-shrink: 0;
    }

    .card .card-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.3s;
    }

    .card:hover .card-img { transform: scale(1.04); }

    /* Gradient scrim so the name is always readable over any image. */
    .card .card-header::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to bottom, transparent 35%, rgba(0, 0, 0, 0.72) 100%);
      pointer-events: none;
    }

    .card .name {
      position: absolute;
      bottom: 10px;
      left: 0;
      right: 0;
      font-size: 1.3rem;
      font-weight: 700;
      font-family: "Roboto", sans-serif;
      font-optical-sizing: auto;
      font-style: normal;
      font-variation-settings:
        "wdth" 100;
      text-align: center;
      padding: 0 16px;
      color: #fff;
      text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
      z-index: 1;
    }

    .card .desc {
      font-size: 0.82rem;
      color: var(--muted);
      text-align: center;
      padding: 0 16px;
    }

    /* Indicador de status online/offline exibido como pílula. */
    .status {
      display: flex;
      align-items: center;
      gap: 7px;
      font-size: 0.8rem;
      font-weight: 600;
      padding: 4px 12px;
      border-radius: 20px;
      background: rgba(255,255,255,0.05);
    }

    .dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    /* O ponto verde pulsa continuamente para reforçar visualmente que o servidor está ativo. */
    .dot.online  { background: var(--green); box-shadow: 0 0 6px var(--green); animation: pulse 2s infinite; }
    .dot.offline { background: var(--red); }

    @keyframes pulse {
      0%, 100% { opacity: 1; }
      50%       { opacity: 0.45; }
    }

    /* Linha de estatísticas: jogadores online + recorde lado a lado. */
    .stats {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0;
      width: 100%;
      padding: 0 16px;
    }

    .stat {
      flex: 1;
      text-align: center;
    }

    .stat-count {
      font-size: 1.9rem;
      font-weight: 800;
      line-height: 1;
    }

    .stat-label {
      font-size: 0.72rem;
      color: var(--muted);
      margin-top: 3px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    /* Divisor vertical entre os blocos de stat. */
    .stat-sep {
      width: 1px;
      height: 36px;
      background: var(--border);
      flex-shrink: 0;
      margin: 0 8px;
    }

    /* ── Pre-launch countdown ── */

    /* "Coming Soon" variant of the status pill. */
    .status.status-pending {
      color: var(--muted);
      font-style: italic;
    }

    /* Wrapper that vertically stacks the "Starts in" label and the ticker. */
    .countdown-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      padding: 0 16px;
    }

    .cd-label {
      font-size: 0.68rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--muted);
    }

    /* The ticking time display. Uses tabular nums to prevent layout jitter. */
    .cd-ticker {
      font-size: 1.1rem;
      font-weight: 800;
      font-variant-numeric: tabular-nums;
      color: var(--card-color, var(--text));
      letter-spacing: 0.02em;
    }

    /* Individual number units inside the ticker. */
    .cd-num {
      display: inline-block;
    }

    /* Botão de acesso ao servidor. Herda a cor de destaque definida por --card-color. */
    .btn {
      display: inline-block;
      width: calc(100% - 32px);
      text-align: center;
      padding: 10px 20px;
      border-radius: 10px;
      font-size: 0.9rem;
      font-weight: 700;
      text-decoration: none;
      color: #fff;
      background: var(--card-color, #555);
      filter: brightness(0.85);
      transition: filter 0.2s, transform 0.15s;
      margin-top: auto;
    }

    .btn:hover { filter: brightness(1.1); transform: scale(1.02); }

    /*
     * Esqueleto de carregamento exibido enquanto os dados são buscados.
     * Replica a estrutura visual de um card real para evitar deslocamento de layout.
     */
    .skeleton {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 0 0 24px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 14px;
      width: 300px;
      overflow: hidden;
    }

    /* Elemento interno do skeleton com animação de shimmer (varredura horizontal de brilho). */
    .skel-block {
      background: linear-gradient(90deg, #1e1e26 25%, #25252f 50%, #1e1e26 75%);
      background-size: 200% 100%;
      animation: shimmer 1.4s infinite;
      border-radius: 8px;
    }

    @keyframes shimmer {
      0%   { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }

    /* Rodapé informativo fixado na base da página. */
    footer {
      padding: 20px;
      color: var(--muted);
      font-size: 0.75rem;
      margin-top: auto;
    }

    /* ─── Social bar ──────────────────────────────────────────────────────────── */

    /*
     * Barra vertical de ícones de redes sociais fixada no canto superior direito.
     * Os ícones são exibidos na mesma ordem em que aparecem em config.php.
     */
    .social-bar {
      position: fixed;
      top: 24px;
      right: 16px;
      z-index: 100;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .social-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 38px;
      height: 38px;
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid var(--border);
      color: var(--muted);
      text-decoration: none;
      transition: background 0.2s, color 0.2s, transform 0.15s, border-color 0.2s;
      backdrop-filter: blur(6px);
    }

    .social-btn:hover {
      background: rgba(255, 255, 255, 0.12);
      color: var(--text);
      border-color: var(--social-color, rgba(255, 255, 255, 0.18));
      box-shadow: 0 0 10px color-mix(in srgb, var(--social-color, transparent) 40%, transparent);
      transform: scale(1.1);
    }

    /* On very small screens, shrink and move the bar slightly inward */
    @media (max-width: 480px) {
      .social-bar {
        top: 12px;
        right: 8px;
        gap: 6px;
      }

      .social-btn {
        width: 32px;
        height: 32px;
        border-radius: 8px;
      }
    }
