:root {
    --primary: #ffd700;
    --dark-bg: #121212;
    --card-bg: #1e1e1e;
    --text: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--dark-bg);
    background-image: radial-gradient(circle at 50% 50%, #2a2a2a 0%, #121212 100%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Prevent scroll when scratching */
}

.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;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.highlight {
    color: var(--primary);
}

.sub-headline {
    color: #888;
    margin-bottom: 30px;
}

.scratch-container {
    position: relative;
    width: 300px;
    height: 150px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
    /* Make it unselectable to prevent glitches */
    user-select: none;
}

.prize-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.prize-content {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.prize-content h3 {
    font-size: 1rem;
    color: var(--primary);
}

.prize-content .amount {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
}

.prize-content .small {
    font-size: 0.8rem;
    opacity: 0.8;
}

canvas {
    position: relative;
    z-index: 2;
    cursor: crosshair;
}

.instructions {
    color: #666;
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Modal specific for scratch */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    animation: zoomIn 0.3s ease-out;
}

.modal-content {
    background: #222;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid var(--primary);
    width: 90%;
    max-width: 350px;
}

.win-amount .value {
    color: var(--primary);
}

.cta-button {
    background: var(--primary);
    color: #000;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    margin-top: 20px;
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}