/* ==========================================================================
   ESTILOS GENERALES Y BASE
   ========================================================================== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #04080c;
    color: #fff;
    font-family: 'Chakra Petch', 'Courier New', monospace;
}

/* ==========================================================================
   HEADER Y NAVEGACIÓN
   ========================================================================== */
.logo-header{
    width:100%;
    text-align:center;
    padding:8px 0;
}

/* ==========================================================================
   ESTILOS DE LA PORTADA PRINCIPAL (ARCADE HALL)
   ========================================================================== */
.game-container { 
    max-width: 1020px; 
    margin: 0 auto; 
    padding: 0 15px 30px 15px; 
}

.arcade-intro-box {
    text-align: center;
    margin: 25px 0;
}

.arcade-main-title {
    color: #ff7b00;
    font-size: 2.2rem;
    letter-spacing: 4px;
    text-shadow: 0 0 10px rgba(255, 123, 0, 0.5);
    margin: 0 0 5px 0;
    font-weight: 900;
}

.arcade-sub-title {
    color: #00000000;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    margin: 0;
}

.arcade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.game-card {
    background: rgba(5, 12, 20, 0.95);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-card.blue-glow { border: 2px solid #00b7ff; box-shadow: 0 0 15px rgba(0, 183, 255, 0.15); }
.game-card.blue-glow:hover { box-shadow: 0 0 25px rgba(0, 183, 255, 0.4); }

.game-card.red-glow { border: 2px solid #ff0064; box-shadow: 0 0 15px rgba(255, 0, 100, 0.15); }
.game-card.red-glow:hover { box-shadow: 0 0 25px rgba(255, 0, 100, 0.4); }

.game-card.green-glow { border: 1px dashed #39ff14; opacity: 0.7; }

.card-status {
    position: absolute;
    top: 10px;
    right: 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
}
.status-online { background: rgba(57, 255, 20, 0.2); color: #39ff14; border: 1px solid #39ff14; }
.status-dev { background: rgba(255, 123, 0, 0.2); color: #ff7b00; border: 1px solid #ff7b00; }

.card-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.card-title {
    color: #fff;
    font-size: 1.2rem;
    margin: 5px 0 10px 0;
    letter-spacing: 1px;
    font-weight: 700;
}

/* ── Estilo integrado para el contador de veces jugado ── */
.card-partidas { 
  font-size: 0.58rem; 
  color: #ffffff; 
  font-weight: 700;
  font-family: 'Courier New', monospace; 
  margin-top: -2px; 
  margin-bottom: 4px; 
  letter-spacing: 0.05em; 
  text-align: center;
}


.card-desc {
    font-family: 'Courier New', monospace;
    color: #ffffff;
    font-size: 0.75rem;
    line-height: 1.4;
    flex-grow: 1;
    margin-bottom: 15px;
}

.card-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tag {
    background: #020508;
    color: #00b7ff;
    border: 1px solid rgba(0, 183, 255, 0.3);
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: bold;
}

.btn-play {
    width: 100%;
    background: #00b7ff;
    color: #ff0064;
    font-weight: bold;
    font-size: 0.90rem;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
    letter-spacing: 1px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    display: block;
}

.btn-play:hover {
    background: #39ff14;
    box-shadow: 0 0 10px #39ff14;
}

.btn-play.btn-red { background: #ff0064; color: #fff; }
.btn-play.btn-red:hover { background: #ff7b00; color: #000; box-shadow: 0 0 10px #ff7b00; }

.btn-play.btn-disabled { background: #222; color: #666; cursor: not-allowed; border: none; }

/* ── Catálogo en mobile: 4 tarjetas por fila, compactas ── */
@media (max-width: 600px) {
    .arcade-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    .game-card {
        padding: 8px 4px 6px;
        border-radius: 6px;
    }
    .card-status {
        top: 4px;
        right: 4px;
        font-size: 0.42rem;
        padding: 1px 3px;
    }
    .card-icon {
        font-size: 1.3rem;
        margin-bottom: 4px;
    }
    .card-title {
        font-size: 0.6rem;
        line-height: 1.2;
        margin: 2px 0 6px 0;
        letter-spacing: 0;
    }
    .card-partidas {
      color: #ffffff; 
        font-size: 0.48rem;
        margin-bottom: 2px;
    }
    .card-desc {
        display: none;
    }
    .card-tags {
        display: none;
    }
    .btn-play {
        font-size: 0.55rem;
        padding: 5px 2px;
    }
}

/* ==========================================================================
   LOBBY DE COMUNIDAD Y FOOTER
   ========================================================================== */
.community-lobby {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.lobby-box {
    background: #020508;
    border: 1px solid rgba(255, 123, 0, 0.3);
    border-radius: 6px;
    padding: 15px;
    text-align: center;
}

.lobby-box h3 {
    color: #ff7b00;
    font-size: 0.9rem;
    margin-top: 0;
}

.lobby-box p {
    color: #888;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    margin-bottom: 12px;
}

.side-action-btn {
    background: #03070d;
    border: 1px solid #00b7ff;
    color: #00b7ff;
    border-radius: 4px;
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.side-action-btn:hover {
    background: #00b7ff;
    color: #000;
    box-shadow: 0 0 10px #00b7ff;
}

/* Degradado Neón para el texto general del footer que NO sea 107D */
.site-footer p,
.site-footer strong,
.site-footer .copyright {
    background: linear-gradient(90deg, #00b7ff 0%, #39ff14 50%, #ff7b00 100%) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 0 4px rgba(57, 255, 20, 0.5));
}

/* ==========================================================================
   SECCIÓN INTRODUCCIÓN / MANIFIESTO
   ========================================================================== */
.nowey-manifesto {
    background: rgba(5, 12, 20, 0.95);
    border: 1px solid rgba(0, 183, 255, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.manifesto-header h2 {
  font-family: 'Chakra Petch', 'Courier New', monospace;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 2px;
  margin: 0 0 20px 0;
  text-align: center;
  border-bottom: 1px dashed rgba(57, 255, 20, 0.3);
  padding-bottom: 10px;

  background: linear-gradient(90deg, #00b7ff 0%, #39ff14 50%, #ff7b00 100%) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 0 5px rgba(57, 255, 20, 0.5));
}

.manifesto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.manifesto-item {
    background: #020508;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid #00b7ff;
    padding: 15px;
    border-radius: 4px;
}

.manifesto-tag {
    font-size: 0.65rem;
    color: #ff7b00;
    font-weight: bold;
    letter-spacing: 1px;
}

.manifesto-item h3 {
    color: #fff;
    font-size: 1rem;
    margin: 5px 0 10px 0;
}

.manifesto-item p {
    font-family: 'Courier New', monospace;
    color: #aaa;
    font-size: 0.75rem;
    line-height: 1.5;
    margin: 0;
}

.manifesto-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    border-top: 1px solid rgba(0, 183, 255, 0.15);
    padding-top: 15px;
}

.target-box {
    background: #020508;
    padding: 12px 15px;
    border-radius: 4px;
    border: 1px solid rgba(0, 183, 255, 0.2);
}

.target-box.highlight {
    border-color: rgba(255, 123, 0, 0.4);
}

.target-box strong {
    display: block;
    color: #00b7ff;
    font-size: 0.8rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.target-box.highlight strong {
    color: #ff7b00;
}

.target-box p {
    font-family: 'Courier New', monospace;
    color: #ccc;
    font-size: 0.75rem;
    margin: 0;
    line-height: 1.4;
}

/* ==========================================================================
   ESTILO OFICIAL MARCA 107D (CYAN / AZUL GLOW)
   ========================================================================== */
.brand-107d,
a.brand-107d {
    font-family: 'Chakra Petch', 'Courier New', monospace !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    display: inline-block;
    
    background: linear-gradient(135deg, #00d2ff 0%, #0072ff 100%) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    
    filter: drop-shadow(0 0 6px rgba(0, 210, 255, 0.8)) !important;
    transition: all 0.3s ease;
}

/* ==========================================================================
   MEDIDA ESTÁNDAR DE BANNERS
   ========================================================================== */
.logo-header img {
    max-width: 280px;
    width: 100%;
    height: auto;
    display: inline-block;
}

/* ==========================================================================
   LOGO DE FONDO (MARCA DE AGUA)
   ========================================================================== */
.mesa-logo-fondo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 78%;
    max-width: 360px;
    height: auto;
    opacity: 0.10;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}
