/* 3D Coin Flip Styling */

:root {
    --secondary: #03DAC6;
    --gold: #FFD700;
    --coin-size: 140px;
}

body {
    background: radial-gradient(circle at center, #162447 0%, #0A192F 100%);
    overflow-x: hidden;
}

/* Prediction Buttons */
.predict-btn.active {
    background-color: rgba(3, 218, 198, 0.15);
    border-color: var(--secondary);
    box-shadow: 0 0 20px rgba(3, 218, 198, 0.2);
    transform: scale(1.05);
}

/* Skin Selector Buttons */
.skin-btn.active {
    border-color: var(--secondary);
    background-color: rgba(3, 218, 198, 0.1);
    box-shadow: 0 0 15px rgba(3, 218, 198, 0.3);
}

/* Coin Container (Handles the Jump) */
.coin-container {
    perspective: 1000px;
    width: var(--coin-size);
    height: var(--coin-size);
    z-index: 10;
}

@keyframes coin-jump {
    0% { transform: translateY(0); }
    50% { transform: translateY(-160px); }
    100% { transform: translateY(0); }
}

.is-jumping {
    animation: coin-jump 1.5s cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

/* Coin (Handles the Rotation) */
.coin {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.side {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    backface-visibility: hidden;
    border: 8px solid #B8860B;
    background: linear-gradient(135deg, #FFD700 0%, #DAA520 50%, #8B6508 100%);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2), 0 0 15px rgba(255,215,0,0.3);
}

/* Specific Skins */
.skin-gold .coin-icon { color: #8B6508 !important; }

.skin-bitcoin .side {
    border-color: #E2761B;
    background: linear-gradient(135deg, #F7931A 0%, #E2761B 100%);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.3), 0 0 20px rgba(247,147,26,0.4);
}
.skin-bitcoin .coin-icon { color: white !important; }

.skin-heart .side {
    border-color: #D81B60;
    background: linear-gradient(135deg, #FF4081 0%, #D81B60 100%);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2), 0 0 20px rgba(255,64,129,0.4);
}
.skin-heart .coin-icon { color: white !important; }

.skin-cat .side {
    border-color: #424242;
    background: linear-gradient(135deg, #757575 0%, #424242 100%);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.3), 0 0 20px rgba(117,117,117,0.4);
}
.skin-cat .coin-icon { color: #FFCCBC !important; }

.skin-star .side {
    border-color: #4B0082;
    background: linear-gradient(135deg, #6A5ACD 0%, #483D8B 50%, #191970 100%);
    box-shadow: inset 0 0 25px rgba(255,255,255,0.2), 0 0 20px rgba(106,90,205,0.5);
}
.skin-star .coin-icon { color: #E0E0FF !important; text-shadow: 0 0 10px rgba(255,255,255,0.8); }

.skin-dog .side {
    border-color: #A0522D;
    background: linear-gradient(135deg, #D2691E 0%, #CD853F 50%, #8B4513 100%);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.3), 0 0 20px rgba(210,105,30,0.4);
}
.skin-dog .coin-icon { color: #FFE4B5 !important; }

.front {
    z-index: 2;
}

.back {
    transform: rotateY(180deg);
}

/* Coin Edge (Thickness) */
.coin::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #8B6508;
    transform: translateZ(-4px);
}

@keyframes answer-pop {
    0% { opacity: 0; transform: scale(0.8) translateY(20px); filter: blur(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

.answer-visible {
    animation: answer-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Win Badge Animation */
@keyframes badge-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
#win-badge {
    animation: badge-bounce 0.5s ease-in-out infinite;
}

/* Scenario Selector Buttons */
.scenario-btn.active {
    background-color: var(--secondary);
    color: #0A192F;
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(3, 218, 198, 0.4);
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    :root {
        --coin-size: 120px;
    }
}
