body {
   background-color: #111; 
    background-image: 
        radial-gradient(rgba(212, 175, 55, 0.02) 1px, transparent 1px), 
        radial-gradient(rgba(255, 255, 255, 0.008) 1px, transparent 1px);  
    background-size: 10px 10px;
    background-blend-mode: screen;
    background-repeat: repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: 'Arial', sans-serif;
    color: white;
    font-family: 'Russo One', sans-serif;
}

.game-container {
    display: flex;
    gap: 40px;
    padding: 55px;
    background-image: url(/JUEGOS/img/background-roulette\ table.jpg);
    border-radius: 20px;
    border: 3px solid #c5b358;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

#rouletteContainer {
    position: relative;
    width: 500px;
}

#rouletteWheel {
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(0,0,0,0.7);
}

.professional-arrow {
    position: absolute;
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 40px;
    height: 110px;
    background: linear-gradient(45deg, #e28102, #e95702);
    clip-path: polygon(50% 0%, 70% 100%, 30% 100%);
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    border: 2px solid #fff;
}

.professional-arrow::after {
    content: '';
    position: absolute;
    top: 80px;
    left: 50%;
    width: 10px;
    height: 50px;
    background: linear-gradient(45deg, #e28102, #e28102);
    transform: translateX(-50%);
    border-radius: 3px;
}

.betting-table {
    width: 600px;
    background-color: transparent;
    padding: 20px;
    border-radius: 15px;
    position: relative;
}

.chip-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.chip {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s;
    border: none;
    background: none !important;
}

.chip img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

.chip.selected {
    transform: scale(1.2);
    filter: brightness(1.1) drop-shadow(0 0 15px gold);
}

.chip::after {
    content: attr(data-value);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 1px 1px 3px black;
    font-family: 'Russo One', sans-serif;
}

.custom-bet {
    background: #333; 
    padding: 0px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    border: 2px solid #c5b358; 
    transition: all 0.3s ease;
}

.custom-bet:hover {
    box-shadow: 0 0 6px #c5b358, 0 0 12px #c5b358;
    border-color: #e0c770; 
}

.custom-bet input {
    width: 90px;
    background: #333 !important; 
    border: none;
    color: #ecf0f1 !important; 
    text-align: center;
    font-size: 20px;
    border-radius: 15px;
    padding: 8px;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-bottom: 10px;
}

.number-cell {
    height: 45px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    font-weight: bold;
    font-size: 14px;
    color: white;
}

.number-cell.red { background: #c62828 !important; }
.number-cell.black { background: #1a1a1a !important; }
.number-cell.green { background: #009B00 !important; }

.outside-bets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.bet-section {
    padding: 10px;
    border: 2px solid #c5b358;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.bet-section:hover {
    background: rgba(197, 179, 88, 0.2);
}

.controls {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-direction: column;
    align-items: center;
}

#spinButton {
    position: absolute;
    top: 715px;
    left: 150px;
    padding: 15px 30px;
    font-size: 18px;
    cursor: pointer;
    background: linear-gradient(45deg, #c62828, #FF5722);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    width: 200px;
    transition: all 0.3s ease;
}

#spinButton:hover {
    text-shadow: 0 0 3px #ff7043, 0 0 6px #ff7043;
    transform: translateY(-1px);
}

.balance-box {
    position: absolute;
    top: 650px;
    left: 135px;
    background: #333;
    padding: 15px 30px;
    min-width: 180px;
    width: auto; 
    white-space: nowrap; 
    box-sizing: border-box;
    border-radius: 25px;
    text-align: center;
    font-size: 18px;
    border: 2px solid #c5b358;
}

#balance {
    display: inline-block;
    min-width: 60px; 
    text-align: left;
}

.recharge-button {
    display: none;
    position: absolute;
    top: 650px;
    left: -50px;
    padding: 4px 20px;
    font-size: 18px;
    cursor: pointer;
    background: linear-gradient(45deg, #1a1a1a, #444);
    color: #c5b358;
    border: 2px solid #c5b358;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    width: 180px;
    transition: all 0.3s ease;
}

.recharge-button:hover {
    text-shadow: 0 0 3px #c5b358, 0 0 6px #c5b358;
    transform: translateY(-1px);
}

.cancel-button {
    position: absolute;
    top: 715px;
    left: -53px;
    padding: 4px 10px;
    font-size: 18px;
    cursor: pointer;
    background: linear-gradient(45deg, #FF5722, #c62828);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    width: 200px;
    transition: all 0.3s ease;
    opacity: 0; 
    pointer-events: none; 
}

.cancel-button:hover {
    text-shadow: 0 0 3px #ff7043, 0 0 6px #ff7043;
    transform: translateY(-1px);
}

.cancel-button.active {
    opacity: 1;
    pointer-events: auto; 
    animation: buttonAppear 0.3s ease;
}

@keyframes buttonAppear {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.chip-on-table {
    position: absolute;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-repeat: no-repeat;
    border: 2px solid #ffffff00;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transform: translate(-50%, -50%);
}

.chip-on-table::after {
    content: attr(data-value);
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%); 
    color: white;
    font-size: 12px !important;
    font-weight: bold;
    text-shadow: 1px 1px 3px black;
    font-family: 'Russo One', sans-serif;
    pointer-events: none; 
}

.custom-bet input::placeholder {
    color: #c5b358 !important;
    opacity: 0.7;
}

.custom-bet input {
    color: #c5b358 !important;
    font-size: 14px;
}

#spinButton, 
.balance-box, 
.bet-section, 
.number-cell,
#result {
    font-family: 'Russo One', sans-serif !important;
    letter-spacing: 0.5px;
}

.number-cell {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

#rouletteWheel {
    filter: drop-shadow(0 0 8px rgba(197, 179, 88, 0.3));
}

#rouletteContainer canvas{
    background-color: rgb(255, 174, 0);
}

a:hover{
    color: #009B00;
}

header {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.result-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 99999;
    transform: translate(-50%, -50%);
    padding: 25px 40px;
    border-radius: 15px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 0 25px rgba(0,0,0,0.5);
    animation: popup 1s ease-out;
    backdrop-filter: blur(5px);
    border: 3px solid white;
}

@keyframes popup {
    0% { transform: translate(-50%, -50%) scale(0); }
    80% { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.win {
    background: rgba(40, 167, 69, 0.95);
    color: #fff;
}

.lose {
    background: rgba(220, 53, 69, 0.95);
    color: #fff;
}

@keyframes deny-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes deny-flash {
    0%, 100% { border-color: #c5b358; }
    50% { border-color: #ff0000; }
}

.deny-animation {
    animation: deny-shake 0.4s ease, deny-flash 0.4s ease;
    position: relative;
}

.bet-section.deny-animation,
.number-cell.deny-animation {
    animation: deny-shake 0.4s ease, deny-flash 0.4s ease;
}

.conflict-popup {
    animation: popup 0.5s ease-out;
    background: rgba(255, 193, 7, 0.95);
    color: #1a1a1a;
    border-color: #ff5722;
    font-size: 18px;
    padding: 15px 25px;
    z-index: 1001;
}

@keyframes popupExit {
    from { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    to { transform: translate(-50%, -50%) scale(0); opacity: 0; }
}

.close-message {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
}

.volver-fijo {
    position: fixed;
    top: 2vh;
    left: 2vw;
    z-index: 9999;
    pointer-events: auto;
}

.volver-fijo a {
    text-decoration: none;
    color: #c5b358 !important;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: none;
    border: none;
    padding: 0;
    display: inline;
}

.volver-fijo a:hover {
    text-shadow: 0 0 3px #c5b358, 0 0 6px #c5b358;
    transform: translateY(-1px);
}