body {
    text-align: center;
    font-family: Arial, sans-serif;
    background: #1047b6;
    color: #ffffff;
    margin: 0;
    padding: 20px;
}

button {
    font-size: 1.3em;
    padding: 12px 24px;
    margin: 10px;
    border: none;
    border-radius: 8px;
    background: #000000;
    color: rgb(255, 255, 255);
    cursor: pointer;
    transition: all 0.28s ease;
}

button:hover {
    background: #242424;
}

button:active {
    scale: .85;
}

button:disabled {  
    background: #444;
    cursor: not-allowed;
    opacity: 0.5;
}

.game-area {  
    display: flex;
    justify-content: center;
    gap: 80px;  
    margin: 40px 0;
}

.hand-container {
    text-align: center;
}

.label {  
    font-size: 1.6em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffffff;
    opacity: 0;  
    transition: opacity 0.5s ease;  
}

.label.visible {
    opacity: 1; 
}

#p_choice, #c_choice { 
    width: 200px;
    height: 200px;
    background: rgba(0,0,0,0.3);  
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

#score { 
    font-size: 1.2em;
    margin-top: 20px;
}

@keyframes shake {  
    25%      { transform: translateY(-15px); }
    50%      { transform: translateY(15px); }
}

.shaking {
    animation: shake .48s infinite; 
}

#result { 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 8vw;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 20px black;
    pointer-events: none;
    z-index: 10;
}

#result.win  { color: #00ff00; }
#result.lose { color: #ff0000; }
#result.tie  { color: #ffff00; }

#result.show {
    display: flex;
    animation: fadeOut 0.6s forwards .8s;  
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(1.2);
    }
}

.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
    display: none;
}

.confetti {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    opacity: 0.9;
    animation: fall linear forwards;
}

@keyframes fall {
    0%   { transform: translateY(-100vh) rotate(0deg); }
    100% { transform: translateY(100vh) rotate(720deg); }
}