/* --- Styles for Deal or No Deal UK Edition --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial Black', Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
}

.game-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.title {
    font-size: 3rem;
    color: #ffd700;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    margin-bottom: 10px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 3px 3px 6px rgba(0,0,0,0.7), 0 0 20px #ffd700; }
    to { text-shadow: 3px 3px 6px rgba(0,0,0,0.7), 0 0 30px #ffd700, 0 0 40px #ffd700; }
}

.subtitle {
    font-size: 1.2rem;
    color: #ccc;
}

.main-content {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 30px;
    margin-bottom: 30px;
}

.values-board {
    background: rgba(0,0,0,0.7);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid #ffd700;
}

.values-title {
    text-align: center;
    font-size: 1.3rem;
    color: #ffd700;
    margin-bottom: 15px;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.value-item {
    background: linear-gradient(45deg, #2a5298, #1e3c72);
    padding: 8px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 1px solid #4a90e2;
}

.value-item.eliminated {
    background: linear-gradient(45deg, #8b0000, #660000);
    opacity: 0.5;
    text-decoration: line-through;
    border-color: #cc0000;
}

.boxes-area {
    text-align: center;
}

.boxes-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    justify-items: center;
}

.box {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #8b4513, #d2691e);
    border: 3px solid #ffd700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.box:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 16px rgba(255,215,0,0.4);
}

.box.opened {
    background: linear-gradient(45deg, #333, #666);
    border-color: #999;
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.box.player-box {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    border-color: #fff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.player-info {
    background: rgba(0,0,0,0.7);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid #ffd700;
}

.round-info {
    text-align: center;
    margin-bottom: 20px;
}

.round-title {
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 10px;
}

.boxes-to-open {
    font-size: 1.2rem;
    color: #4a90e2;
}

.banker-section {
    background: rgba(0,0,0,0.9);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin: 30px 0;
    border: 3px solid #ffd700;
    display: none;
}

.banker-offer {
    font-size: 2.5rem;
    color: #00ff00;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.deal-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 20px;
}

.deal-btn, .no-deal-btn {
    padding: 15px 30px;
    font-size: 1.3rem;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.deal-btn {
    background: linear-gradient(45deg, #00cc00, #00ff00);
    color: #000;
}

.no-deal-btn {
    background: linear-gradient(45deg, #cc0000, #ff0000);
    color: white;
}

.deal-btn:hover, .no-deal-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.game-messages {
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 20px 0;
}

.final-section {
    background: rgba(0,0,0,0.9);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin: 30px 0;
    border: 3px solid #ffd700;
    display: none;
}

.final-amount {
    font-size: 3rem;
    color: #ffd700;
    margin: 20px 0;
}

.play-again-btn {
    background: linear-gradient(45deg, #4a90e2, #357abd);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.play-again-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(45deg, #357abd, #2968a3);
}

.swap-section {
    background: rgba(0,0,0,0.9);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin: 30px 0;
    border: 3px solid #ffd700;
    display: none;
}

.swap-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.swap-btn {
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.audience-reaction {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: bold;
    color: #ffd700;
    z-index: 1000;
    opacity: 0;
    transition: all 0.5s ease;
    pointer-events: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    animation: none;
}

.audience-reaction.audience-active {
    animation: audienceReact 2.5s ease-out;
}

@keyframes audienceReact {
    0% { 
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
        color: #ffd700;
    }
    20% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
        color: #ff6600;
    }
    40% { 
        transform: translate(-50%, -50%) scale(0.9);
        color: #ffd700;
    }
    60% { 
        transform: translate(-50%, -50%) scale(1.1);
        color: #00ff00;
    }
    80% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        color: #ffd700;
    }
    100% { 
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
}

.contestant-chatter {
    background: rgba(0,0,0,0.8);
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
    border-left: 4px solid #4a90e2;
    font-style: italic;
}

.start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.start-content {
    text-align: center;
    animation: fadeInUp 1.5s ease-out;
}

.logo-image {
    width: 400px;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    animation: pulse 3s infinite;
}

.start-title {
    font-size: 4rem;
    color: #ffd700;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    margin-bottom: 15px;
    animation: glow 2s ease-in-out infinite alternate;
}

.start-subtitle {
    font-size: 1.5rem;
    color: #ccc;
    margin-bottom: 40px;
}

.start-game-btn {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    border: none;
    padding: 20px 40px;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.start-game-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 12px 24px rgba(255,215,0,0.4);
}

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

@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .boxes-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .boxes-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .box {
        width: 60px;
        height: 60px;
        font-size: 0.9rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-image {
        width: 300px;
    }
    
    .start-title {
        font-size: 2.5rem;
    }
    
    .start-game-btn {
        padding: 15px 30px;
        font-size: 1.2rem;
    }
}