/* Modo evento del minijuego */
#juego-evento { text-align: center; }

#juego-evento p { margin: 0 0 12px; }

.evt-nombre {
    font-size: 20px;               /* >=16px evita el zoom automático en iOS */
    text-align: center;
    width: 100%;
    max-width: 300px;
    padding: 10px;
    border: 1px solid #bbb;
    border-radius: 6px;
    margin-bottom: 6px;
}

.evt-ventana { font-weight: bold; min-height: 24px; margin: 10px 0; }
.evt-error   { color: #b3261e; min-height: 20px; margin-top: 8px; }

.evt-timer { font-size: 64px; line-height: 1.1; margin: 0; font-variant-numeric: tabular-nums; }

.evt-equipos {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 14px;
}

.evt-equipos img {
    width: 140px;
    max-width: 40vw;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;    /* sin retardo ni zoom por doble toque */
}

.evt-equipos img:active { transform: scale(.94); }

.evt-puntos { font-size: 96px; font-weight: bold; line-height: 1.05; margin: 10px 0 0; font-variant-numeric: tabular-nums; }
.evt-clics  { font-size: 20px; margin: 0 0 18px; }

.evt-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 10px; }
.evt-tabs button {
    border: 1px solid #bbb;
    background: #fff;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 14px;
}
.evt-tabs button.activa { background: #2b2b2b; color: #fff; border-color: #2b2b2b; }

.evt-lista { max-height: 45vh; overflow-y: auto; text-align: left; margin-bottom: 14px; }
.evt-fila  { display: flex; gap: 8px; align-items: baseline; padding: 6px 8px; border-bottom: 1px solid #eee; }
.evt-fila .pos { width: 2.2em; font-weight: bold; text-align: center; }
.evt-fila .voto { width: 2.4em; text-align: center; font-size: 18px; line-height: 1; }
.evt-fila .nom { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evt-fila .nom small { color: #888; }
.evt-fila .pts { font-weight: bold; }
.evt-fila.yo   { background: #fff3cd; }

.evt-penyas { max-width: 400px; margin: 0 auto 14px; text-align: left; }
.evt-barra  { background: #ddd; height: 20px; }
.evt-barra div { height: 100%; }

/* Cuenta atrás grande de "¡Preparados!" */
.evt-cuenta { font-size: 84px; font-weight: bold; line-height: 1; color: #d50000; min-height: 0; font-variant-numeric: tabular-nums; }
.evt-cuenta:empty { display: none; }

/* Botones principales: EMPEZAR A JUGAR / VOLVER A JUGAR */
.evt-btn-grande {
    display: block;
    width: 100%;
    max-width: 340px;
    margin: 16px auto;
    padding: 24px 12px;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.1;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(180deg, #2eea6b 0%, #00b34a 100%);
    border: 0;
    border-radius: 18px;
    box-shadow: 0 7px 0 #007a33, 0 12px 22px rgba(0, 0, 0, .35);
    text-shadow: 0 2px 2px rgba(0, 0, 0, .35);
    cursor: pointer;
    animation: evt-pulso 1s ease-in-out infinite;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}
.evt-btn-grande:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 2px 0 #007a33; animation: none; }
.evt-btn-grande:disabled {
    animation: none;
    background: #b0b0b0;
    box-shadow: 0 7px 0 #7d7d7d;
    text-shadow: none;
    cursor: not-allowed;
}
@keyframes evt-pulso {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}

/* Sin zoom por doble toque ni selección de texto mientras se juega */
#minijuego, #minijuego *, #juego-pagina, #juego-pagina * {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
#juego-evento {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
#juego-evento input {
    -webkit-user-select: text;
    user-select: text;
}
