.scratch-page.show {
    background: rgba(10, 12, 10, 0.58);
}

.scratch-card {
    width: min(100%, 430px);
    padding: clamp(12px, 4vw, 22px);
    border: 3px solid #151812;
    border-radius: 15px;
    color: #141810;
    background-color: #b3eb37;
    background-image: radial-gradient(rgba(28, 43, 11, 0.18) 1px, transparent 1.25px);
    background-size: 7px 7px;
    box-shadow: 0 0 0 2px #e4edce, 6px 7px 0 1px #111510, 0 23px 48px #101810a6;
    backdrop-filter: none;
}

.scratch-ticket-masthead {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0 8px;
    align-items: center;
    padding: 3px 0 6px;
    border-bottom: 2px solid #161a13;
    color: #233610;
    font-size: 11px;
    font-weight: 800;
}

.scratch-ticket-masthead .scratch-date {
    margin: 0;
    color: inherit;
    font-size: inherit;
}

.scratch-ticket-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 0 9px;
}

.scratch-ticket-heading h2 {
    margin: 0;
    color: #18200f;
    font-family: Impact, "Archivo Black", "Arial Black", sans-serif;
    font-size: clamp(43px, 13vw, 67px);
    font-style: italic;
    line-height: 1;
    letter-spacing: -0.055em;
}

.scratch-ticket-heading strong {
    flex-shrink: 0;
    padding: 3px 9px;
    border: 2px solid #151812;
    background: #ffe361;
    color: #151812;
    transform: rotate(-5deg);
    box-shadow: 2px 2px #151812;
    font-size: 12px;
}

.scratch-area {
    border: 3px solid #161a13;
    border-radius: 8px;
    background: #fbf3d7;
}

.scratch-reveal {
    border-radius: 0;
    color: #151812;
    background:
        radial-gradient(rgba(148, 116, 43, 0.18) 1px, transparent 1.2px) 0 0 / 7px 7px,
        #fbf3d7;
}

.scratch-fortune {
    min-width: 30px;
    padding: 0 6px;
    border: 2px solid #202616;
    border-radius: 4px;
    background: #ffe361;
    font-size: 18px;
    line-height: 1.35;
    transform: rotate(-5deg);
}

.scratch-desc {
    color: #19270f;
    font-size: clamp(13px, 4vw, 17px);
    font-weight: 800;
}

.scratch-quote {
    color: #3e4a2f;
    line-height: 1.45;
}

.scratch-hint {
    margin-top: 10px;
    color: #21300f;
    font-weight: 750;
}

.scratch-actions {
    padding-top: 10px;
    border-top: 2px dashed #537020;
}

.scratch-actions button {
    border: 2px solid #151812;
    border-radius: 5px;
    background: #1d2117;
    color: #f4fadf;
    font-weight: 750;
}

.scratch-actions button:hover {
    background: #394628;
}

.scratch-actions button:first-child {
    color: #161910;
    background: #ffe361;
}

.scratch-actions button:first-child:hover {
    background: #fff0a1;
}

.scratch-actions button:focus-visible,
#scratch-canvas:focus-visible,
.scratch-back:focus-visible {
    outline: 2px solid #3c30b8;
    outline-offset: 2px;
}

.scratch-back,
.scratch-back:hover {
    color: #263612;
    font-weight: 750;
}
