/* =========================================================
   GOLOMETRO - STYLE CAESARS (OPTIMIZADO)
   ========================================================= */

/* =========================================================
   TIPOGRAFÍAS
   ========================================================= */
@font-face {
    font-family: 'MrEavesReg';
    src: url('../../assets/fonts/Emigre-MrEavesXLSanNarOT-Reg.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MrEavesUltra';
    src: url('../../assets/fonts/Emigre-MrEavesXLSanNarOT-Ultra.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* =========================================================
   CLASES GLOBALES / CONTENEDORES
   ========================================================= */
.gol-wrapper {
    border: 2px solid #FF6600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.10);
    background: rgba(255, 255, 255, 0.85); /* Equivale a #ffffffba */
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    padding: 28px;
    border-radius: 10px;
    font-family: 'MrEavesReg', Arial, sans-serif;
    position: relative;
    margin: auto;
}

/* Textos base dentro del contenedor */
.gol-wrapper p, 
.gol-wrapper label, 
.gol-wrapper li, 
.gol-wrapper span, 
.gol-wrapper input, 
.gol-wrapper select, 
.gol-wrapper textarea {
    font-family: 'MrEavesReg', Arial, sans-serif;
    color: #444;
}

/* Títulos base dentro del contenedor */
.gol-wrapper h1, 
.gol-wrapper h2, 
.gol-wrapper h3, 
.gol-wrapper h4 {
    text-align: center;
    font-family: 'MrEavesUltra', Arial, sans-serif;
    color: #222;
}

/* Títulos específicos */
.gol-title-lg {
    color: #FF6600 !important;
    font-size: 45px;
    margin: 0 0 22px 0;
    line-height: 1.05;
}
.gol-title-md {
    font-size: 45px;
    line-height: 1.05;
    margin: 0 0 10px 0;
    color: #222;
}
.gol-title-sm {
    color: #E56F2D !important;
    font-size: 32px;
    margin: 8px 0;
    line-height: 1.1;
}
.gol-text-center { text-align: center; }
.gol-mb-15 { margin-bottom: 15px; }
.gol-mb-20 { margin-bottom: 20px; }

/* =========================================================
   FORMULARIOS Y CAMPOS
   ========================================================= */
.gol-label {
    font-weight: bold;
    color: #222;
    display: block;
    margin-bottom: 6px;
    font-size: 21px;
}
.gol-label-sm {
    font-size: 19px;
    font-weight: 400;
}
.gol-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
}

.gol-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    background: #fff;
    color: #222;
    padding: 14px 12px;
    font-size: 20px;
}
.gol-input::placeholder { color: #777; font-size: 20px; }

/* Variante para campos de registro (más grandes) */
.gol-input-auth {
    padding: 16px;
    font-size: 30px;
    line-height: 1.2;
}
.gol-input-auth::placeholder { font-size: 20px; }

.gol-input-file {
    padding: 10px;
    font-size: 15px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* =========================================================
   BOTONES
   ========================================================= */
.btn-caesars {
    background: #FF6600;
    color: #fff;
    text-transform: uppercase;
    font-family: 'MrEavesUltra', Arial, sans-serif;
    font-weight: 400;
    border: none;
    border-radius: 8px;
    padding: 15px 18px;
    cursor: pointer;
    transition: transform 0.1s ease, background 0.3s ease, opacity 0.3s ease;
    font-size: 25px;
    letter-spacing: 0.2px;
    width: 100%;
    box-sizing: border-box;
    display: block;
    text-align: center;
    
    /* Evitar delay táctil y selección de texto */
    position: relative;
    z-index: 10;
    touch-action: manipulation;
    -webkit-touch-callout: none; 
    -webkit-user-select: none;   
    user-select: none;           
    -webkit-tap-highlight-color: transparent;
}
.btn-caesars:hover { background: #e65c00; }
.btn-caesars:active { transform: scale(0.98); }
.btn-caesars:disabled { opacity: 0.55; cursor: not-allowed; }

/* Variantes de botones */
.btn-black { background: #222; }
.btn-black:hover { background: #111; }
.btn-auth-submit { font-size: 30px; }
.btn-record-hold { min-height: 58px; padding: 16px 24px; }
.btn-stop-rec { outline: none !important; }

/* Enlaces de texto estilo botón (Auth Switch / Recover) */
.gol-auth-link {
    background: none;
    border: none;
    color: #000;
    text-decoration: none;
    font-weight: 400;
    cursor: pointer;
    padding: 0;
    margin: 0;
    font-size: 20px;
    font-family: 'MrEavesUltra', Arial, sans-serif;
    touch-action: manipulation;
}
.gol-auth-link:hover { color: #FF6600; }

/* =========================================================
   ESTADO VISUAL DEL JUEGO
   ========================================================= */
#step-ticket {
    max-width: 720px;
    margin: 0 auto;
}
#step-ticket p {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.4;
}
#ticket-live-status {
    min-height: 20px;
    font-size: 25px;
    font-weight: 400;
    margin-top: 8px;
}

/* Instrucciones */
.caesars-instrucciones {
    font-size: 20px;
    text-align: left;
    line-height: 1.55;
    margin: 0 auto 22px auto;
    color: #555;
    width: 100%;
    max-width: 420px;
}
.caesars-instrucciones-title {
    display: block;
    font-family: 'MrEavesUltra', Arial, sans-serif;
    font-size: 26px;
    line-height: 1.1;
    color: #222;
    margin-bottom: 10px;
}
.caesars-instrucciones ul { margin: 0 0 14px 20px; padding: 0; }
.caesars-instrucciones li { margin-bottom: 6px; }

/* Barra de decibeles */
#db-bar {
    background: linear-gradient(90deg, #FFCC00 0%, #FF6600 100%);
    border-radius: 10px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
    height: 10px;
    width: 0%;
    transition: width 0.1s linear;
}

/* =========================================================
   TRIVIA
   ========================================================= */
.trivia-btn, .t-btn {
    /* El !important bloquea los colores verde/rojo del JavaScript */
    background: #222 !important; 
    border: 2px solid transparent;
    margin-bottom: 12px;
    font-size: 21px;
    border-radius: 6px;
    color: #fff;
    -webkit-tap-highlight-color: transparent;
}
/* Para que se note un poco más oscuro al presionarlo o cuando se desactiva */
.t-btn:disabled {
    background: #111 !important;
    opacity: 0.9;
}

.trivia-actions {
    display: flex;
    gap: 14px;
    width: 100%;
    margin-top: 18px;
}
.btn-trivia-app {
    flex: 1;
    min-height: 56px;
    border-radius: 14px;
    font-size: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.btn-trivia-dark {
    background: #1f2126;
    color: #fff;
}

/* Forzar toques en Trivia móvil */
#step-trivia {
    position: relative;
    z-index: 999;
    pointer-events: auto;
    isolation: isolate;
}
#step-trivia button {
    touch-action: manipulation;
}

/* =========================================================
   PARTICIPACIONES DEL USUARIO (TABLA)
   ========================================================= */
.gol-participaciones-wrap {
    position: relative;
    width: 100%;
    max-width: 1720px;
    margin: 0 auto;
    background: rgba(233, 233, 233, 0.9);
    border-top: 4px solid #000;
    border-radius: 10px;
    overflow: hidden;
}
.gol-participaciones-head {
    padding: 18px 20px 0 20px;
    text-align: center;
}
.gol-participaciones-title {
    margin: 0;
    font-size: 58px;
    font-weight: 900;
    text-transform: uppercase;
    color: #000;
}
.gol-participaciones-body {
    padding: 34px 28px 0 28px;
}
.gol-participaciones-table {
    width: 100%;
    border-collapse: collapse;
}
.gol-participaciones-table thead th {
    padding: 20px 14px 18px;
    border-bottom: 1px solid #8f8f8f;
    color: #18263f;
    font-size: 18px;
    font-weight: 800;
}
.gol-participaciones-table tbody td {
    padding: 18px 14px;
    border-bottom: 1px solid #c9c9c9;
    font-size: 18px;
    text-align: center;
}
.gol-pts-cell { font-weight: 800; }
.gol-participaciones-empty {
    text-align: center;
    padding: 36px 12px;
    font-size: 25px;
}
.gol-participaciones-totalbar {
    background: #000;
    color: #fff;
    margin-top: 28px;
    padding: 18px 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 10px 0;
}
.gol-total-label, .gol-total-suffix { font-size: 22px; font-weight: 700; }
.gol-total-value { font-size: 44px; font-weight: 900; line-height: 1; }
.gol-btn-participar {
    margin-top: 15px;
    width: 50%;
    max-width: 300px;
}

/* =========================================================
   MODAL RECUPERAR CONTRASEÑA
   ========================================================= */
body.gol-modal-open { overflow: hidden; touch-action: none; }
.gol-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.gol-modal[aria-hidden="false"] { display: flex; }
.gol-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}
.gol-modal__dialog {
    position: relative;
    z-index: 2;
    width: min(92vw, 520px);
    background: #fff;
    border: 2px solid #FF6600;
    border-radius: 14px;
    padding: 26px 22px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}
.gol-modal__x {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 34px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #666;
}
.gol-modal__message {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 16px;
}
.gol-modal__message.is-success { background: #edf9f0; color: #1b6e2e; border: 1px solid #b8e0c0; }
.gol-modal__message.is-error { background: #fff2f2; color: #a02020; border: 1px solid #f0b7b7; }

/* =========================================================
   MENÚ LOGIN / LOGOUT
   ========================================================= */
.gol-menu-user { font-weight: 600; color: #222; }
.gol-menu-login, .gol-menu-logout {
    font-family: 'MrEavesUltra', Arial, sans-serif;
    color: #FF6600;
    text-decoration: none;
    letter-spacing: 1px;
}
.gol-menu-logout:hover { color: #000; }
.gol-menu-login { color: #000; }
.gol-menu-login:hover { color: #FF6600; }

/* =========================================================
   RESPONSIVE & MOBILE FIXES
   ========================================================= */
#mobile-video-block { display: none !important; }

/* Ocultar capas fantasmas limpiamente */
#step-recording[style*="display: none"],
#step-ticket[style*="display: none"] {
    display: none !important;
}

@media (max-width: 768px) {
    .gol-wrapper { padding: 20px; }
    .gol-input, .gol-input-auth { font-size: 18px; padding: 14px; }
    .gol-title-lg { font-size: 34px; }
    .gol-title-md { font-size: 24px; }
    .gol-title-sm { font-size: 18px; }
    .btn-caesars { font-size: 20px; }
    
    /* Tabla participaciones móvil */
    .gol-participaciones-title { font-size: 30px; }
    .gol-participaciones-table thead { display: none; }
    .gol-participaciones-table, 
    .gol-participaciones-table tbody, 
    .gol-participaciones-table tr, 
    .gol-participaciones-table td { display: block; width: 100%; }
    .gol-participaciones-table tr { margin-bottom: 14px; border: 1px solid #d8d8d8; border-radius: 10px; }
    .gol-participaciones-table tbody td::before {
        content: attr(data-label);
        display: block;
        font-size: 12px;
        font-weight: bold;
        color: #0f223f;
        text-transform: uppercase;
    }
}

@media (max-width: 480px) {
    .trivia-actions { flex-direction: column; }
}


/* =========================================================
   prueba de letras si login
   ========================================================= */

/* Forzar mismo tamaño de ganadores con y sin login */
.gol-ganadores,
.gol-ganadores * {
    box-sizing: border-box;
}

.gol-ganadores h1,
.gol-ganadores h2,
.gol-ganadores h3,
.gol-ganadores .title {
    font-size: 58px !important;
    line-height: 1 !important;
    font-family: 'MrEavesUltra', Arial, sans-serif !important;
    text-align: center !important;
}

.gol-ganadores p,
.gol-ganadores .proximamente,
.gol-ganadores .proximamente-text {
    font-size: 64px !important;
    line-height: 1 !important;
    font-family: 'MrEavesUltra', Arial, sans-serif !important;
    text-align: center !important;
}

body:not(.logged-in) .gol-ganadores,
body:not(.logged-in) .gol-ganadores * {
    transform: none !important;
    zoom: 1 !important;
}


/* =========================================================
  olvidaste la contraseña
   ========================================================= */

.gol-auth-recover-wrap {
    width: 100%;
    text-align: center !important;
    margin-top: 15px;
}

.gol-auth-recover-wrap a,
.gol-auth-recover-link {
    display: inline-block !important;
    width: auto !important;
    margin: 0 auto !important;
    text-align: center !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.gol-auth-recover-wrap .gol-btn {
    display: inline-block !important;
    font-size: 20px !important;
    font-family: 'Emigre-MrEavesXLSanNarOT-Ultra' !important;
    color: #000 !important;
    text-align: center !important;
    line-height: 1.2;
}