.game-container {
    position: relative;
    width: 100%;
    height: 100%;
}
body {
    background-color:rgba(30,30,30,1);
}

/* Section: History */
#historyContainer {
    margin-top: 20px;
}

.strip {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(90deg, #111 0%, #1a1a1a 100%);
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(255,255,255,0.1);
    scrollbar-width: thin;  
    scrollbar-color: #888 transparent;
    scroll-behavior: smooth;
}
  
.strip::-webkit-scrollbar { height: 8px; }
.strip::-webkit-scrollbar-track { background: transparent; }
.strip::-webkit-scrollbar-thumb { 
    background: #888; 
    border-radius: 4px;
}

.history-box {
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: bold;
    color: white;
    min-width: 60px;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 3px #fff, 0 0 6px rgba(255,255,255,0.5);

    display: inline-block;
    margin: 0 4px;
    transition: transform 0.2s, box-shadow 0.2s;
    opacity: 0;
    animation: slideIn 0.5s forwards;
}

.history-box:hover { box-shadow: 0 0 10px #fff, 0 0 20px rgba(255,255,255,0.5);}  
.history-box.low { background: linear-gradient(135deg, #3498db, #00bcd4); }
.history-box.mid {  background: linear-gradient(135deg, #f1c40f, #f39c12); }
.history-box.high {  background: linear-gradient(135deg, #e74c3c, #c0392b); }

@keyframes slideIn {
    to {
        opacity: 1;
    }
}

/* Section multiplier */
.multiplier-container {
    position: absolute;
    top: 150px;
    left: 50%;
    transform: translate(-50%,0);
    z-index: 20;        
}

#multiplier {
    display: inline-block;
    padding: 20px 40px;
    border-radius: 12px;
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    min-width: 140px;
    font-family: 'Orbitron', sans-serif;
  
    background: rgba(0,0,0,0.75);
    color: #fff;
    text-shadow: 0 0 6px #fff, 0 0 12px rgba(255,255,255,0.5);
    box-shadow: 0 0 15px rgba(0,255,0,0.4), 0 0 30px rgba(0,255,0,0.2);
  
    transition: transform 0.1s ease, box-shadow 0.1s ease, color 0.1s ease;
}

.hit { animation: hitBounce 0.2s ease; }
@keyframes hitBounce {
    0%   { transform: translateY(0); }
    30%  { transform: translateY(-10px); }
    60%  { transform: translateY(3px); }
    100% { transform: translateY(0); }
}
  
  /* Estado crash */
#multiplier.crashed {
    animation: none;
    background: #e74c3c;
    box-shadow: 0 0 15px #e74c3c, 0 0 30px rgba(231,76,60,0.7);
    color: #fff;
    margin-top: 150px;
    transform: scale(1.5) rotate(0deg);
}

#multiplier.normal {
    transform: scale(1);
    top: 0;
}
  

/* Section Bets Hud */
.hud {
    position: absolute;
    top: 150px;
    left: 20px;
    z-index: 15;
    background: rgba(0,0,0,0.5);
    padding: 10px 15px;
    border-radius: 10px;
    color: white;
    font-family: sans-serif;
    max-width: 400px;
    box-shadow: 0 0 10px rgba(0,0,0,0.7);
    text-align: center;
  }
  
#betsSummary td {
    font-size: 1.2rem;
    padding: 5px 10px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hud th, .hud td {
    padding: 5px 25px;
}

/* Section texts */
.game-title {
    top: 20px;              
    left: 50%;              
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;         
    color: #ffcc00;          
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7); 
    letter-spacing: 2px;     
    z-index: 20;             
    animation: glow 3s infinite alternate;
}
.title-mobile { display: none; }

@keyframes glow {
    0%, 100% { text-shadow: 0 0 2px #ffcc00, 0 0 5px #ffcc00; }
    50% { text-shadow: 0 0 4px #ffcc00, 0 0 8px #ff9900; }
  }
  

.success-text{
    color: limegreen;
    font-weight: bold;
}

/* Section connection overlay */
.connection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background: rgba(0, 0, 0, 0.85); 
    backdrop-filter: blur(4px);       
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    z-index: 50; 
    
    pointer-events: all;
  }
  
.connection-message {
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;
    color: #ffcc00;
    text-shadow: 0 0 10px #ffcc00, 0 0 20px rgba(255,204,0,0.5);
    
    padding: 20px 40px;
    border-radius: 12px;
    background: rgba(0,0,0,0.6);
    box-shadow: 0 0 15px #ffcc00, 0 0 30px rgba(255,204,0,0.5);
    
    animation: glow 1.5s infinite alternate;
}


@media (width <= 600px) {

    /* Game title */
    .title-desktop { display: none; }
    .title-mobile { 
        display: block;
        text-align: center;
    }

    #multiplier {
        font-size: 1.8rem;   /* Antes 3rem */
        padding: 12px 20px;  /* Menos volumen */
        min-width: 100px;
        border-radius: 8px;
    }

    /* History strip */
    .strip {
        padding: 4px 6px;
        gap: 4px;
        border-radius: 8px;
    }

    .history-box {
        padding: 4px 8px;
        font-size: 0.8rem;
    }

    .hud {
        display: none !important;
    }
    /* Overlay message */
    .connection-message {
        font-size: 24px;
        padding: 16px 24px;
        border-radius: 10px;
    }
}
