/* Main Container - Fixed Width */
.drt-game-container {
    min-width: 320px; /* Never shrink below this */
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    font-family: 'Arial Black', 'Arial Bold', Arial, sans-serif;
    text-align: center;
    color: white;
    background-color: #111;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* Christmas Tree Lights */
.drt-christmas-tree {
    width: 120px;
   
    margin: 0 auto 20px;
    border: 2px solid #fff;
    border-radius: 10px;
    position: relative;
    background: #222;
}

/* Light Base Styles */
.drt-light {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin: 15px auto;
    background: #333;
    position: relative;
    transition: all 0.1s ease;
}

.drt-light.active {
    box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.7);
}

/* Specific Light Types */
.drt-pre-stage, 
.drt-stage {
    width: 20px;
    height: 20px;
    background: #300;
}

.drt-pre-stage.active, 
.drt-stage.active {
    background: #f00;
}

.drt-amber1, 
.drt-amber2, 
.drt-amber3 {
    background: #330;
}

.drt-amber1.active, 
.drt-amber2.active, 
.drt-amber3.active {
    background: #ff0;
}

.drt-green {
    background: #030;
}

.drt-green.active {
    background: #0f0;
    box-shadow: 0 0 30px 10px rgba(0, 255, 0, 0.8);
}

/* Text Elements */
.drt-instruction {
    font-size: 24px;
    margin: 15px 0;
    min-height: 40px;
    color: white !important;
    font-weight: bold;
    text-shadow: 
        1px 1px 3px rgba(0,0,0,0.8),
        0 0 5px rgba(0,0,0,0.5);
    letter-spacing: 1px;
    line-height: 1.3;
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    display: inline-block;
    text-transform: uppercase;
}

.drt-instruction.waiting-text {
    color: #FFFF00 !important;
    text-shadow: 
        1px 1px 3px rgba(0,0,0,0.8),
        0 0 10px rgba(255,255,0,0.5);
}

.drt-instruction.go-text {
    font-size: 32px !important;
    color: #00FF00 !important;
    text-shadow: 
        1px 1px 3px rgba(0,0,0,0.8),
        0 0 15px rgba(0,255,0,0.7);
    animation: pulse 0.8s infinite alternate;
}

.drt-instruction.foul-text {
    color: #FF0000 !important;
    text-shadow: 
        1px 1px 3px rgba(0,0,0,0.8),
        0 0 15px rgba(255,0,0,0.7);
}

/* Space hint text */
.drt-space-hint {
    font-size: 14px;
    color: #AAAAAA !important;
    margin-top: 6px;
    font-style: italic;
    text-transform: none;
    letter-spacing: normal;
    text-shadow: none;
    display: block;
}

/* Statistics Display */
.drt-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    border: 1px solid #444;
}

.drt-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    color: white;
}

.drt-stat-label {
    color: #aaa;
    text-align: left;
    font-size: 16px;
}

.drt-stat-value {
    font-family: 'Courier New', monospace;
    font-size: 20px;
    font-weight: bold;
    min-width: 100px;
    text-align: right;
}

/* Animations */
@keyframes pulse {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .drt-game-container {
        padding: 15px;
        min-width: 320px; /* Maintain minimum */
    }
    
    .drt-christmas-tree {
        height: 400px;
        width: 100px;
    }
    
    .drt-light {
        width: 25px;
        height: 25px;
        margin: 10px auto;
    }
    
    .drt-pre-stage, 
    .drt-stage {
        width: 16px;
        height: 16px;
    }
    
    .drt-instruction {
        font-size: 20px;
    }
    
    .drt-stat {
        font-size: 16px;
    }
    
    .drt-stat-value {
        font-size: 18px;
    }
}

/* Very small devices protection */
@media (max-width: 350px) {
    .drt-game-container {
        padding: 15px 10px;
        min-width: 320px !important; /* Force minimum */
    }
}

.drt-warning {
    color: #ff5555;
    font-weight: bold;
    margin-top: 15px;
    animation: shake 0.5s;
    text-shadow: 0 0 3px rgba(0,0,0,0.5);
}

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