/* Game Instructions Box - Dark Theme */
.game-instructions-container {
    background: #0e062e;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 4px 12px rgba(14, 6, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    position: relative;
}

.game-instructions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    user-select: none;
}

.game-instructions-header h2 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-instructions-header .toggle-icon {
    font-size: 20px;
    color: #fff;
    transition: transform 0.3s ease;
}

.game-instructions-header.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.game-instructions-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
    opacity: 0;
}

.game-instructions-content.expanded {
    max-height: 800px;
    opacity: 1;
    padding-top: 16px;
    overflow-y: auto;
}

.game-instructions-content p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.game-instructions-content .bet-limits {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: space-around;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-instructions-content .bet-limit-item {
    text-align: center;
}

.game-instructions-content .bet-limit-item .label {
    font-size: 12px;
    color: #b0b0b0;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.game-instructions-content .bet-limit-item .value {
    font-size: 18px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* Responsive design */
@media (max-width: 768px) {
    .game-instructions-container {
        padding: 16px;
        margin-bottom: 20px;
    }
    
    .game-instructions-header h2 {
        font-size: 18px;
    }
    
    .game-instructions-content p {
        font-size: 14px;
    }
    
    .game-instructions-content .bet-limits {
        flex-direction: column;
        gap: 12px;
    }
    
    .game-instructions-content .bet-limit-item .value {
        font-size: 16px;
    }
}

/* Hover effects */
.game-instructions-container:hover {
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.9), 0 6px 16px rgba(14, 6, 46, 0.8);
}

.game-instructions-header:hover h2 {
    color: #FFD700;
    transition: color 0.3s ease;
}

.bet-limit-item:hover .value {
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
    transition: text-shadow 0.3s ease;
}

/* HTML Content Styling for Instructions */
.game-instructions-content .instructions-text h4 {
    color: #FFD700;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-instructions-content .instructions-text p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
    color: #e0e0e0;
}

.game-instructions-content .instructions-text ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.game-instructions-content .instructions-text ul li {
    padding: 8px 0 8px 24px;
    position: relative;
    font-size: 14px;
    line-height: 1.6;
    color: #d0d0d0;
}

.game-instructions-content .instructions-text ul li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #FFD700;
    font-weight: bold;
}

.game-instructions-content .instructions-text strong {
    color: #FFD700;
    font-weight: 700;
}

.game-instructions-content .instructions-text ol {
    padding-left: 20px;
    margin: 0 0 16px 0;
}

.game-instructions-content .instructions-text ol li {
    padding: 6px 0;
    color: #d0d0d0;
    font-size: 14px;
    line-height: 1.6;
}

/* Custom Scrollbar */
.game-instructions-content.expanded::-webkit-scrollbar {
    width: 8px;
}

.game-instructions-content.expanded::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.game-instructions-content.expanded::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 4px;
}

.game-instructions-content.expanded::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}