body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: 40px;
    position: relative;
    padding: 40px;
    box-sizing: border-box;
}

.container::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 4px solid #007bff;
    border-radius: 20px;
    pointer-events: none;
    animation: borderPulse 2s infinite;
}

.container::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
    bottom: 40px;
    border: 4px dashed rgba(0, 123, 255, 0.3);
    border-radius: 15px;
    pointer-events: none;
}

@keyframes borderPulse {
    0% { border-color: #007bff; }
    50% { border-color: #00ff88; }
    100% { border-color: #007bff; }
}

/* Corner decorations */
.container::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 4px solid transparent;
    border-radius: 20px;
    background: 
        linear-gradient(to right, #007bff 4px, transparent 4px) 0 0,
        linear-gradient(to right, #007bff 4px, transparent 4px) 0 100%,
        linear-gradient(to left, #007bff 4px, transparent 4px) 100% 0,
        linear-gradient(to left, #007bff 4px, transparent 4px) 100% 100%,
        linear-gradient(to bottom, #007bff 4px, transparent 4px) 0 0,
        linear-gradient(to bottom, #007bff 4px, transparent 4px) 100% 0,
        linear-gradient(to top, #007bff 4px, transparent 4px) 0 100%,
        linear-gradient(to top, #007bff 4px, transparent 4px) 100% 100%;
    background-repeat: no-repeat;
    background-size: 40px 40px;
    pointer-events: none;
    animation: cornerPulse 2s infinite;
}

@keyframes cornerPulse {
    0% { background-color: rgba(0, 123, 255, 0.1); }
    50% { background-color: rgba(0, 255, 136, 0.1); }
    100% { background-color: rgba(0, 123, 255, 0.1); }
}

#game-screen {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: auto;
    position: relative;
}

#victory-screen {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#number {
    font-size: 96px;
    font-weight: bold;
    text-align: center;
    width: 100%;
}

#incrementButton {
    padding: 20px 40px;
    font-size: 48px;
    cursor: pointer;
    text-align: center;
}

#incrementButton:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

#chance {
    font-size: 48px;
    margin-bottom: 20px;
}

#victory-screen h1 {
    font-size: 128px;
    color: #ffd700;
    margin-bottom: 40px;
}

#victory-screen p {
    font-size: 48px;
    margin-bottom: 60px;
}

#playAgainButton {
    padding: 30px 60px;
    font-size: 40px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 10px;
}

#playAgainButton:hover {
    background-color: #45a049;
}

.hidden {
    display: none;
}

/* Number colors */
.blue {
    color: #007bff;
}

.green {
    color: #28a745;
}

.yellow {
    color: #ffc107;
}

.orange {
    color: #fd7e14;
}

.red {
    color: #dc3545;
}

.dark-red {
    color: #8b0000;
}

.pink {
    color: #e83e8c;
}

.purple {
    color: #6f42c1;
}

.black {
    color: #000000;
}

#highScore {
    margin-top: 30px;
    font-size: 36px;
    color: #666;
}

#totalProbability {
    margin-top: 20px;
    font-size: 24px;
    color: #444;
    font-family: monospace;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

#game-screen.pulse-green {
    animation: pulseGreen 1s ease;
}

@keyframes pulseGreen {
    0% {
        background-color: rgba(255, 255, 255, 0.9);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    50% {
        background-color: rgba(40, 167, 69, 0.3);
        box-shadow: 0 10px 30px rgba(40, 167, 69, 0.5);
    }
    100% {
        background-color: rgba(255, 255, 255, 0.9);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
}