* {
    box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

.scratch-card {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto 40px auto;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(ellipse at 50% 0%, #292929 0%, transparent 65%),
        linear-gradient(145deg, #080808, #181818 55%, #050505);
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
}

.scratch-card::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(212, 175, 90, .45);
    pointer-events: none;
    z-index: 3;
}

.gold-dust {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .65;
    background-image:
        radial-gradient(circle, #e9c77b 1px, transparent 1.5px),
        radial-gradient(circle, #a77c2b 1px, transparent 1.5px),
        radial-gradient(circle, #fff0b4 1px, transparent 1.5px);
    background-size: 47px 43px, 71px 67px, 97px 83px;
    background-position: 0 0, 23px 17px, 41px 29px;
    mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

.content {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 28px 20px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.eyebrow {
    color: #d6b46b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.scratch-title {
    margin: 0;
    padding: 12px;
    font-size: clamp(36px, 8vw, 62px);
    line-height: .95;
    font-weight: 900;
    letter-spacing: -2px;
    text-transform: uppercase;
    font-style: italic;
    background: linear-gradient(
        180deg,
        #fff5cc 0%,
        #e4c579 35%,
        #a87928 65%,
        #f8e5a5 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.scratch-area {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4/3;
    margin: 8px 0;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid #d6b46b;
    background: #f1e1b0;
    touch-action: none;
}

.prize {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #111;
    background:
        radial-gradient(circle at center, #fff7dc, #d7b665);
}

.prize-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 4px;
}

.prize strong {
    margin: 6px 0;
    font-size: clamp(46px, 10vw, 70px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -3px;
}

.prize-bottom {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

#scratchCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    z-index: 2;
}

.hint {
    margin: 12px 0;
    color: #8e8e8e;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scratch-card.revealed #scratchCanvas {
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s ease;
}

@media (max-width: 420px) {
    .hint {
        display: none;
    }
}
