* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a2a3a, #0f1a24);
    transition: all 0.5s ease;
}

/* Header */
.top {
    background-color: #4E8D9C;
    padding: 15px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.top-text {
    color: #F2EAE0;
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    letter-spacing: 2px;
}

/* Buttons Container */
.opt {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
    margin: 20px 0;
}

/* Buttons */
.option-btn {
    width: clamp(120px, 28vw, 280px);
    height: clamp(120px, 28vw, 280px);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: clamp(1rem, 5vw, 2.5rem);
    font-weight: bold;
    background-color: #263B6A;
    border: 4px solid transparent;
    color: #EEFABD;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 10px;
}

.option-btn:hover {
    border: 4px solid #6984A9;
    background-color: #2f4880;
    transform: scale(1.02);
}

.option-btn:active {
    transform: scale(0.95);
}

/* Score Section */
.result-score {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.comp, .user {
    background: rgba(78, 141, 156, 0.2);
    padding: 15px 30px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    min-width: 120px;
}

.score-number {
    font-size: clamp(2.5rem, 12vw, 5rem);
    font-weight: bold;
    color: #EEFABD;
    line-height: 1;
}

.label-text {
    font-weight: 600;
    font-size: clamp(0.9rem, 4vw, 1.2rem);
    color: #F2EAE0;
    letter-spacing: 1px;
    margin-top: 8px;
}

/* Message Box */
.justBoxrole {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin: 20px 0;
}

.message {
    text-align: center;
    font-size: clamp(1rem, 5vw, 1.8rem);
    font-weight: 700;
    background-color: #4E8D9C;
    color: #1a2a3a;
    border-radius: 50px;
    border: 3px solid #F2EAE0;
    padding: 15px 25px;
    max-width: 90%;
    width: auto;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

/* Score-based background effects */
body {
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

/* Low lead (1-2 points ahead) — subtle green glow */
body.score-diff-low {
    background: linear-gradient(135deg, #1a2a3a, #1a3a2a);
    box-shadow: inset 0 0 50px rgba(0, 255, 0, 0.15);
}

/* Medium lead (3-4 points ahead) — noticeable green */
body.score-diff-medium {
    background: linear-gradient(135deg, #1a2a3a, #1a4a2a);
    box-shadow: inset 0 0 80px rgba(0, 255, 0, 0.35);
}

/* High lead (5-9 points ahead) — strong green */
body.score-diff-high {
    background: linear-gradient(135deg, #0a2a1a, #0a5a2a);
    box-shadow: inset 0 0 120px rgba(0, 255, 0, 0.65);
}

/* Extreme lead (10+ points ahead) — intense green + pulse */
body.score-diff-extreme {
    background: linear-gradient(135deg, #0a1a0a, #0a6a2a);
    box-shadow: inset 0 0 200px rgba(0, 255, 0, 0.95);
    animation: pulseGreen 1s ease-in-out infinite;
}

@keyframes pulseGreen {
    0% {
        box-shadow: inset 0 0 150px rgba(0, 255, 0, 0.7);
        background: linear-gradient(135deg, #0a1a0a, #0a6a2a);
    }
    50% {
        box-shadow: inset 0 0 300px rgba(0, 255, 0, 1);
        background: linear-gradient(135deg, #0a2a0a, #0a8a2a);
    }
    100% {
        box-shadow: inset 0 0 150px rgba(0, 255, 0, 0.7);
        background: linear-gradient(135deg, #0a1a0a, #0a6a2a);
    }
}

/* Domination Message */
.domination-message {
    text-align: center;
    font-size: clamp(1.2rem, 6vw, 2rem);
    font-weight: bold;
    margin-top: 20px;
    padding: 10px;
    display: none;
    animation: fadeInOut 0.5s ease;
}

.domination-message.show {
    display: block;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .opt {
        gap: 15px;
    }
    
    .option-btn {
        width: clamp(100px, 25vw, 150px);
        height: clamp(100px, 25vw, 150px);
        font-size: clamp(0.8rem, 4vw, 1.2rem);
    }
    
    .result-score {
        gap: 30px;
    }
    
    .comp, .user {
        padding: 10px 20px;
        min-width: 90px;
    }
    
    .score-number {
        font-size: clamp(1.8rem, 8vw, 3rem);
    }
    
    .message {
        font-size: clamp(0.9rem, 4vw, 1.2rem);
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .opt {
        gap: 10px;
    }
    
    .option-btn {
        width: 80px;
        height: 80px;
        font-size: 0.7rem;
        white-space: nowrap;
        padding: 0 5px;
    }
    
    .result-score {
        gap: 20px;
    }
    
    .comp, .user {
        padding: 8px 15px;
        min-width: 70px;
    }
    
    .score-number {
        font-size: 1.8rem;
    }
    
    .label-text {
        font-size: 0.8rem;
    }
    
    .message {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
}

@media (max-width: 360px) {
    .option-btn {
        width: 70px;
        height: 70px;
        font-size: 0.6rem;
    }
    
    .opt {
        gap: 8px;
    }
}