[v-cloak] {
    display: none;
}

.coin-container {
    perspective: 1000px;
    margin: 4rem auto;
}

.coin-inner {
    width: 200px;
    height: 200px;
    margin: auto;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.4, 0.0, 0.2, 1);
    cursor: pointer;
    will-change: transform;
    outline: none;
    border: none;
    background: transparent;
    display: flex;
}

.coin-inner:hover {
    filter: brightness(1.1);
}

.coin-inner:focus-visible {
    outline: 3px solid #3b82f6;
    outline-offset: 4px;
    border-radius: 50%;
}

.coin-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 0 0 8px rgba(255, 255, 255, 0.4),
        inset 0 0 0 20px rgba(0, 0, 0, 0.1),
        0 8px 24px rgba(0, 0, 0, 0.3);
}

.coin-face.front {
    background: radial-gradient(circle at 30% 30%, #60a5fa, #3b82f6, #1e3a8a);
}

.coin-face.back {
    background: radial-gradient(circle at 30% 30%, #f87171, #ef4444, #b91c1c);
    transform: rotateY(180deg);
}

.coin-face::after {
    content: "";
    position: absolute;
    top: 15%;
    left: 25%;
    width: 40%;
    height: 40%;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    filter: blur(15px);
}

.coin-icon {
    font-size: 4rem;
    color: #fff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    }
    50% {
        filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.7)) brightness(1.2);
    }
}

.coin-face.glowing {
    animation: glow 1s ease-out;
}

.result-display {
    font-size: 2rem;
    font-weight: bold;
    color: #1f2937;
    text-align: center;
    margin-top: 2rem;
    animation: slideUp 0.5s ease-out;
}

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

.stats-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    font-size: 0.875rem;
    color: #6b7280;
}

@media (max-width: 640px) {
    .coin-inner {
        width: 150px;
        height: 150px;
    }
    
    .coin-icon {
        font-size: 3rem;
    }
}
