.loteria-page {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    padding: 5px 10px;
    flex-direction: column;
    align-items: center;
}

.lobby-navbar .container-fluid {
    padding: 0px;
    padding-right: 0px !important;
    padding-left: 0px !important;
}

#btn_logout {
    display: inline-flex !important;
    align-items: center;
}

.navbar-brand {
    margin: 0px;
}

/* 2-Line Header Navigation Styles */
.header-game-nav {
    width: 100%;
    margin-top: 2px;
}

.header-nav-btn {
    height: 42px;
    border-radius: 12px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    border: 1.5px solid #6c757d !important;
}

.header-nav-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
}

.header-nav-btn:active {
    transform: translateY(0) scale(0.98);
}

.header-nav-icon {
    height: 24px;
    width: auto;
    object-fit: contain;
}

.header-nav-i {
    font-size: 1.25rem;
}

/* Theme specifics for header buttons */

@media (min-width: 768px) {
    .header-nav-btn {
        height: 46px;
        font-size: 0.95rem !important;
    }

    .header-nav-icon {
        height: 28px;
    }
}

/* Marquee Ticker Styles (Decoupled from loteria.css) */
.cilinder-information {
    width: 100%;
    height: 38px;
    background: transparent;
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-bottom: 0.35rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    contain: layout paint;
}

body.dark .cilinder-information {
    background: #0b101d;
    border-color: rgba(255, 193, 7, 0.15);
}

body.light .cilinder-information {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

.ticker-wrapper {
    display: flex;
    width: max-content;
    animation: ticker-scroll 80s linear infinite;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.ticker-wrapper:hover {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .ticker-wrapper {
        animation-play-state: paused;
    }
}

@keyframes ticker-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 1.5rem;
    color: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.ticker-divider {
    color: rgba(255, 193, 7, 0.6);
    font-size: 1rem;
}

.ticker-badge {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 8px;
    display: inline-block;
    letter-spacing: 0.5px;
}

.ticker-badge.gold {
    background: linear-gradient(135deg, #ffb300, #ff8f00);
    color: #000;
    box-shadow: 0 2px 6px rgba(255, 179, 0, 0.3);
}

.ticker-badge.blue {
    background: linear-gradient(135deg, #00b0ff, #0081cb);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 176, 255, 0.3);
}

.ticker-badge.green {
    background: linear-gradient(135deg, #00e676, #00b348);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 230, 118, 0.3);
}

.ticker-badge.orange {
    background: linear-gradient(135deg, #ff8800, #ff5500);
    color: #fff;
    box-shadow: 0 2px 6px rgba(255, 136, 0, 0.3);
}

/* Swiper Container & Wrapper Styles */
.lobby-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 0.75rem auto;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 6px;
    border-radius: 16px;
}

body.light .lobby-hero {
    border-color: rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.02);
}

.lobby-selector {
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.lobby-swiper-container {
    width: 100%;
    position: relative;
    padding: 0 !important;
    overflow: hidden;
}

.lobby-swiper {
    width: 100%;
    overflow: hidden;
}

.lobby-swiper .swiper-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
}

.lobby-swiper .swiper-slide {
    width: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

/* Lobby Capsule Button Styles */
.lobby-btn {
    height: 48px !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1.5px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
    opacity: 0.7 !important;
    transition: all 0.2s ease !important;
    cursor: pointer;
    outline: none;
}

body.dark .lobby-btn {
    background: rgba(15, 22, 36, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.lobby-btn:hover,
.lobby-btn.is-active {
    opacity: 1 !important;
    transform: translateY(-2px) !important;
}

/* Deportes (Red/Sport theme) */
.lobby-btn[data-game-id="deportes"] {
    border-color: rgba(239, 68, 68, 0.2) !important;
}

.lobby-btn[data-game-id="deportes"].is-active {
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%) !important;
    border-color: #ef4444 !important;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.15) !important;
}

body.dark .lobby-btn[data-game-id="deportes"].is-active {
    background: linear-gradient(135deg,
            rgba(30, 15, 15, 0.9) 0%,
            rgba(20, 8, 8, 0.95) 100%) !important;
    border-color: #ef4444 !important;
}

/* Triple de Oro (ID 1) - Gold theme */
.lobby-btn[data-game-id="1"] {
    border-color: rgba(251, 191, 36, 0.2) !important;
}

.lobby-btn[data-game-id="1"].is-active {
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%) !important;
    border-color: #fbbf24 !important;
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.15) !important;
}

body.dark .lobby-btn[data-game-id="1"].is-active {
    background: linear-gradient(135deg,
            rgba(30, 24, 15, 0.9) 0%,
            rgba(20, 15, 8, 0.95) 100%) !important;
    border-color: #fbbf24 !important;
}

/* Foca Millonaria (ID 3) - Blue theme */
.lobby-btn[data-game-id="3"] {
    border-color: rgba(59, 130, 246, 0.2) !important;
}

.lobby-btn[data-game-id="3"].is-active {
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%) !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15) !important;
}

body.dark .lobby-btn[data-game-id="3"].is-active {
    background: linear-gradient(135deg,
            rgba(15, 24, 30, 0.9) 0%,
            rgba(8, 15, 20, 0.95) 100%) !important;
    border-color: #3b82f6 !important;
}

/* Zoologico (ID 2) - Green theme */
.lobby-btn[data-game-id="2"] {
    border-color: rgba(16, 185, 129, 0.2) !important;
}

.lobby-btn[data-game-id="2"].is-active {
    background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%) !important;
    border-color: #10b981 !important;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.15) !important;
}

body.dark .lobby-btn[data-game-id="2"].is-active {
    background: linear-gradient(135deg,
            rgba(15, 30, 24, 0.9) 0%,
            rgba(8, 20, 15, 0.95) 100%) !important;
    border-color: #10b981 !important;
}

.lobby-btn-icon {
    max-width: 90% !important;
    max-height: 80% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

@media (min-width: 768px) {
    .lobby-btn {
        width: 130px !important;
        height: 54px !important;
        border-radius: 14px !important;
    }

    #lobby-games-selector .dropdown-menu .dropdown-item {
        font-weight: 600;
        font-size: 14px;
        width: 250px;
        color: #212529;
    }

    #lobby-currency-selector .dropdown-menu .dropdown-item {
        font-weight: 600;
        font-size: 14px;
        width: auto;
        color: #212529;
        white-space: nowrap;
    }
}

/* Frame Viewport Shell */
.lobby-frame-shell {
    padding: 0.25rem;
    border: 1px solid rgba(255, 193, 7, 0.14);
    border-radius: 6px;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.02),
            rgba(255, 255, 255, 0.01));
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: 100vw;
}

body.light .lobby-frame-shell {
    border-color: rgba(0, 0, 0, 0.08);
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.lobby-frame-container {
    min-height: 500px;
    height: min(78vh, 800px);
    overflow: hidden;
    border-radius: 5px;
    background: #0a0f1c;
    position: relative;
}

body.light .lobby-frame-container {
    background: #f3f4f6;
}

.lobby-frame-container iframe {
    border-radius: inherit;
}

/* ==========================================================================
   MINIMALIST POS MASTER LOCKSCREEN & AUTHENTICATION CARD
   ========================================================================== */
.pos-top-bar {
    position: sticky !important;
    top: 0 !important;
    z-index: 1070 !important;
}

.pos-master-lockscreen {
    position: fixed !important;
    top: 44px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: calc(100dvh - 44px) !important;
    background: radial-gradient(circle at 50% 30%, #0d1527 0%, #050811 100%) !important;
    z-index: 1060 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.pos-master-lockscreen.d-none,
#posGuestLockOverlay.d-none,
body.user-logged .pos-master-lockscreen,
body.user-logged #posGuestLockOverlay {
    display: none !important;
}

@media (max-width: 576px) {
    .pos-master-lockscreen {
        top: 40px !important;
        height: calc(100dvh - 40px) !important;
        padding: 0.75rem 0.5rem !important;
    }
}

/* Bloqueo estricto: Ningún juego, pestaña o barra móvil visible para invitados */
body.user-guest .pos-categories-nav,
body.user-guest .pos-mobile-ticket-bar,
body.user-guest #posNativeContainer,
body.user-guest #posTriplesContainer,
body.user-guest #posIframeContainer,
body.user-guest .pos-parley-bottom-bar,
#posGuestLockOverlay:not(.d-none) ~ #posNativeContainer,
#posGuestLockOverlay:not(.d-none) ~ #posTriplesContainer,
#posGuestLockOverlay:not(.d-none) ~ #posIframeContainer,
#posGuestLockOverlay:not(.d-none) ~ * .pos-mobile-ticket-bar,
#posGuestLockOverlay:not(.d-none) ~ .pos-parley-bottom-bar {
    display: none !important;
}

/* Visibilidad garantizada para contenedores activos cuando no tienen d-none */
#posNativeContainer:not(.d-none),
#posTriplesContainer:not(.d-none),
#posIframeContainer:not(.d-none) {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: var(--pos-bg) !important;
}

.pos-auth-card {
    width: 100%;
    max-width: 440px;
    background: linear-gradient(165deg, #0f172a 0%, #080d1a 100%);
    border: 1.5px solid rgba(251, 144, 33, 0.4);
    border-radius: 20px;
    padding: 1.85rem 1.75rem;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(251, 144, 33, 0.15);
    animation: posCardFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
    z-index: 10;
}

@keyframes posCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pos-brand-emblem {
    width: 62px;
    height: 62px;
    background: radial-gradient(circle, rgba(251, 144, 33, 0.25) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 2px solid rgba(251, 144, 33, 0.6);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(251, 144, 33, 0.3);
    position: relative;
}

.pos-emblem-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.pos-auth-brand-title {
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #ffffff;
    margin: 0.35rem 0 0.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.pos-auth-badge {
    background: linear-gradient(135deg, #fb9021, #f59e0b);
    color: #0b0f19;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    letter-spacing: 1px;
    vertical-align: middle;
}

.pos-auth-tagline {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.pos-clock-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.82rem;
    color: #f1f5f9;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
}

.pos-tz-chip {
    background: rgba(251, 144, 33, 0.25);
    color: #fb9021;
    font-size: 0.68rem;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 0.35rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

/* Official Certification & Integration Badges (PI-Ganemos) */
.pos-cert-bar {
    background: rgba(3, 7, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 0.35rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.pos-cert-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    font-family: 'Outfit', sans-serif;
}

.pos-badge-s2s {
    font-size: 0.68rem;
    font-weight: 700;
    color: #fb923c;
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid #f97316;
    padding: 0.18rem 0.55rem;
    border-radius: 12px;
    letter-spacing: 0.3px;
    line-height: 1.2;
    display: inline-block;
}

.pos-badge-cnl {
    font-size: 0.68rem;
    font-weight: 700;
    color: #facc15;
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.75);
    padding: 0.18rem 0.65rem;
    border-radius: 12px;
    letter-spacing: 0.4px;
    line-height: 1.2;
    display: inline-block;
}

/* Background Canvas & Ambient Lighting */
.pos-auth-bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    z-index: 1;
}

.pos-auth-backdrop-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 620px;
    height: 620px;
    max-width: 92vw;
    max-height: 92vh;
    background: radial-gradient(circle, rgba(251, 144, 33, 0.08) 0%, rgba(16, 185, 129, 0.03) 45%, transparent 70%);
    pointer-events: none;
    z-index: 2;
    filter: blur(40px);
}

/* Auth Alert */
.pos-auth-alert {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 10px;
    padding: 0.6rem 0.85rem;
    font-size: 0.82rem;
    color: #fca5a5;
    display: flex;
    align-items: center;
    animation: posShake 0.4s ease-in-out;
}

@keyframes posShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* Auth Form Controls */
.pos-input-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 0.3rem;
    display: block;
    text-align: left;
}

.pos-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.pos-input-icon {
    position: absolute;
    left: 12px;
    color: #fb9021;
    font-size: 1rem;
    pointer-events: none;
    z-index: 5;
}

.pos-form-control {
    width: 100%;
    background: #0b101d !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 0.65rem 0.85rem 0.65rem 2.45rem !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

.pos-form-control::placeholder {
    color: #64748b !important;
    font-weight: 400 !important;
}

.pos-form-control:focus {
    border-color: #fb9021 !important;
    box-shadow: 0 0 0 3px rgba(251, 144, 33, 0.25) !important;
    background: #0f172a !important;
}

.pos-btn-toggle-pass {
    position: absolute;
    right: 6px;
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 6px 10px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.15s ease;
    z-index: 5;
}

.pos-btn-toggle-pass:hover {
    color: #fb9021;
}

/* Submit Button */
.btn-pos-submit {
    background: linear-gradient(135deg, #fb9021 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.6px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(251, 144, 33, 0.4) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 1rem !important;
}

.btn-pos-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #f97316 0%, #c2410c 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(251, 144, 33, 0.5) !important;
    color: #ffffff !important;
}

.btn-pos-submit:active:not(:disabled) {
    transform: translateY(0) !important;
}

.btn-pos-submit:disabled {
    opacity: 0.75 !important;
    cursor: not-allowed !important;
}

.pos-auth-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.85rem;
}

.pos-footer-security {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 500;
}

@media (max-width: 480px) {
    .pos-auth-card {
        padding: 1.35rem 1.15rem;
        border-radius: 16px;
    }
    .pos-auth-brand-title {
        font-size: 1.35rem;
    }
    .pos-connections-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* Auth blocker styles (Legacy Iframe) */
.guest-blocker-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 16, 29, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    z-index: 100;
}

.glass-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-width: 320px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.lock-icon-container {
    width: 70px;
    height: 70px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.auth-title {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
    font-family: "Outfit", sans-serif;
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    line-height: 1.45;
}

.btn-login-action {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    color: #0b101d;
    font-weight: 700;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-login-action:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.lotto-images {
    width: 25%;
}

@media (min-width: 769px) {
    .loteria-page {
        max-width: 100% !important;
        margin: 0 auto;
        padding: 4px 15px;
    }

    /* Center the selector buttons on desktop */
    .lobby-swiper .swiper-wrapper {
        justify-content: center !important;
    }

    /* Make buttons larger and give them elegant margins on desktop */
    .lobby-btn {
        width: 270px !important;
        height: 56px !important;
        border-radius: 14px !important;
        margin: 0 0px !important;
    }

    .cilinder-information {
        width: 100%;
    }

    /* Desktop hover animations and glowing shadows */
    .lobby-btn:hover {
        transform: translateY(-4px) !important;
        opacity: 1 !important;
    }

    .lobby-btn[data-game-id="deportes"]:hover {
        box-shadow: 0 10px 25px rgba(239, 68, 68, 0.25) !important;
    }

    .lobby-btn[data-game-id="1"]:hover {
        box-shadow: 0 10px 25px rgba(251, 191, 36, 0.25) !important;
    }

    .lobby-btn[data-game-id="3"]:hover {
        box-shadow: 0 10px 25px rgba(59, 130, 246, 0.25) !important;
    }

    .lobby-btn[data-game-id="2"]:hover {
        box-shadow: 0 10px 25px rgba(16, 185, 129, 0.25) !important;
    }

    /* Taller iframe container for a better desktop gaming console experience */
    .lobby-frame-container {
        height: 93vh !important;
    }

    /* Polish marquee details on desktop */
    .cilinder-information {
        height: 44px;
        margin-bottom: 0.25rem;
    }

    .ticker-item {
        font-size: 0.95rem;
    }
}

/* Custom Games Selector Dropdown Styles */
#headerGameDropdownBtn {
    transition: all 0.2s ease-in-out;
}

#headerGameDropdownBtn:hover,
#headerGameDropdownBtn.show {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #6a737b !important;
}

#headerGameDropdownBtn:hover i,
#headerGameDropdownBtn.show i {
    color: #000000 !important;
}

#headerGameDropdownBtn.dropdown-toggle::after {
    display: inline-block !important;
    margin-left: 0.45em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    transition: transform 0.2s ease;
}

.dropdown-menu.show {
    margin-top: 4px;
    border-radius: 10px;
    border: 1px solid #ffd167;
}

.triple-logo {
    background: #00a3ff;
    padding: 6px;
    border-radius: 9px;
    width: 35%;
}

#headerGameDropdownBtn.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Desktop Horizontal Game Navigation Bar Styles */
.header-desktop-games {
    margin-left: 1rem;
}

.lobby-desktop-btn {
    padding: 0.45rem 1.1rem !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    border: 1.5px solid rgba(108, 117, 125, 0.3) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1f2937 !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
}

body.dark .lobby-desktop-btn {
    background: rgba(30, 41, 59, 0.75) !important;
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.lobby-desktop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border-color: #fb9021 !important;
}

.lobby-desktop-btn.is-active,
.lobby-desktop-btn.active {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #fb9021 !important;
    box-shadow: 0 4px 14px rgba(251, 144, 33, 0.35) !important;
    transform: translateY(-1px);
}

body.dark .lobby-desktop-btn.is-active,
body.dark .lobby-desktop-btn.active {
    background: #1e293b !important;
    color: #ffffff !important;
    border-color: #fb9021 !important;
    box-shadow: 0 4px 14px rgba(251, 144, 33, 0.35) !important;
}

@media (max-width: 768px) {
    #lobby-games-selector .dropdown-menu.show {
        margin-top: 4px;
        width: 260px;
        max-width: calc(100vw - 20px);
        border-radius: 10px;
        border: 1px solid #ffd167;
    }

    #lobby-currency-selector .dropdown-menu.show {
        margin-top: 4px;
        width: auto !important;
        min-width: 120px !important;
        max-width: calc(100vw - 20px);
        border-radius: 10px;
        border: 1px solid #ffd167;
        left: 0 !important;
        right: auto !important;
    }
}

#lobby-currency-selector .dropdown-menu {
    min-width: 120px;
    width: auto;
    max-width: calc(100vw - 20px);
}

/* ==========================================================================
   BARRA INFERIOR FIJA A PIE DE PÁGINA (ZERO SCROLL, 2 BOTONES)
   ========================================================================== */
#posIframeContainer.lobby-frame-shell {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    width: 100% !important;
    margin-bottom: 0 !important;
    position: relative !important;
}

#posIframeContainer .lobby-frame-container {
    height: calc(100dvh - 128px) !important;
    min-height: 380px !important;
    margin-bottom: 56px !important; /* Espacio exacto para la barra inferior fija */
    border-radius: 6px !important;
    overflow: hidden !important;
}

@media (max-width: 991.98px) {
    #posIframeContainer .lobby-frame-container {
        height: calc(100dvh - 118px) !important;
        margin-bottom: 52px !important;
    }
}

.pos-parley-bottom-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 54px !important;
    z-index: 1040 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 6px 18px !important;
    background: #0f172a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.45) !important;
    box-sizing: border-box !important;
}

body.light .pos-parley-bottom-bar {
    background: #ffffff !important;
    border-top-color: rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.08) !important;
}

.pos-btn-parley-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.15s ease-in-out !important;
    border: 1px solid transparent !important;
    height: 38px !important;
}

/* Botón Izquierdo: Actualizar */
.pos-btn-parley-refresh {
    background: #1e293b !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    padding: 0 18px !important;
    font-size: 0.86rem !important;
}

.pos-btn-parley-refresh:hover {
    background: #334155 !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

body.light .pos-btn-parley-refresh {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

body.light .pos-btn-parley-refresh:hover {
    background: #e2e8f0 !important;
}

/* Botón Derecho: Imprimir Ticket en Verde */
.pos-btn-parley-print-green {
    background: #16a34a !important;
    color: #ffffff !important;
    border: 1px solid #15803d !important;
    padding: 0 24px !important;
    font-size: 0.90rem !important;
    box-shadow: 0 2px 10px rgba(22, 163, 74, 0.35) !important;
}

.pos-btn-parley-print-green:hover {
    background: #15803d !important;
    color: #ffffff !important;
    border-color: #166534 !important;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.55) !important;
    transform: translateY(-1px) !important;
}

.pos-btn-parley-print-green:active {
    transform: translateY(0) !important;
}

@media (max-width: 768px) {
    .pos-kbd-hint {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .pos-parley-bottom-bar {
        padding: 6px 10px !important;
        height: 50px !important;
    }
    .pos-btn-parley-action {
        height: 36px !important;
        font-size: 0.80rem !important;
    }
    .pos-btn-parley-refresh {
        padding: 0 12px !important;
    }
    .pos-btn-parley-print-green {
        padding: 0 15px !important;
    }
}

/* ==========================================================================
   POS CONTAINERS FLEX ARCHITECTURE (ANIMALITOS, TRIPLES, PARLEY IFRAME)
   ========================================================================== */
.pos-mode #posNativeContainer,
.pos-mode #posTriplesContainer,
.pos-mode #posIframeContainer {
    width: 100% !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    background: var(--pos-bg) !important;
}

.pos-mode #posNativeContainer.d-none,
.pos-mode #posTriplesContainer.d-none,
.pos-mode #posIframeContainer.d-none {
    display: none !important;
}

.pos-mode #posTriplesContainer #posTriplesWorkspace,
.pos-mode #posNativeContainer #posAnimalitosWorkspace {
    width: 100% !important;
    height: 100% !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    overflow: hidden !important;
}

.pos-mode #posIframeContainer #frame-container {
    width: 100% !important;
    height: 100% !important;
    flex: 1 1 auto !important;
    min-height: calc(100vh - 120px) !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    background: var(--pos-bg) !important;
}

.pos-mode #posIframeContainer iframe#frame {
    width: 100% !important;
    height: 100% !important;
    flex: 1 1 auto !important;
    min-height: calc(100vh - 120px) !important;
    border: none !important;
    background: var(--pos-bg) !important;
}
