:root {
    --gold: #d4af37;
    --dark-bg: #050505;
    --card-bg: #151515;
    --modal-bg: rgba(5, 5, 5, 0.95);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.main-container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.gold {
    color: var(--gold);
}

.sub-headline {
    color: #888;
    margin-bottom: 40px;
}

.card-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.scene {
    width: 100px;
    height: 150px;
    perspective: 600px;
}

.card {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.card.is-flipped {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--gold);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.card-front {
    background: linear-gradient(135deg, #111, #222);
    font-size: 3rem;
    color: var(--gold);
    /* Pattern */
    background-image: repeating-linear-gradient(45deg, rgba(212, 175, 55, 0.1) 0, rgba(212, 175, 55, 0.1) 1px, transparent 0, transparent 50%);
    background-size: 10px 10px;
}

.card-back {
    background: var(--gold);
    color: #000;
    transform: rotateY(180deg);
    text-align: center;
}

.prize-text {
    font-weight: 900;
    font-size: 1.2rem;
    line-height: 1.2;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-bg);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
    animation: fadeUp 0.5s;
}

.modal-content {
    background: #111;
    padding: 40px;
    border: 2px solid var(--gold);
    border-radius: 15px;
    text-align: center;
    max-width: 90%;
    width: 350px;
}

.crown-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.win-amount {
    font-size: 4rem;
    font-weight: 900;
    color: var(--gold);
    margin: 10px 0;
}

.cta-button {
    background: var(--gold);
    color: #000;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 900;
    display: inline-block;
    margin-top: 20px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}