.tarot-discovery-reveal {
    position: absolute;
    z-index: 3;
    inset: 0;
    overflow: auto;
    isolation: isolate;
    overscroll-behavior: contain;
    background: radial-gradient(ellipse at 50% 52%, #282043, #141023 65%, #0c0a15);
    animation: discovery-darken .65s ease-out both;
}
.tarot-discovery-haze {
    position: absolute;
    z-index: -1;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.tarot-discovery-haze::before,
.tarot-discovery-haze::after {
    content: '';
    position: absolute;
    width: max(29rem, 83%);
    aspect-ratio: 640 / 310;
    background: url('https://m.universalclass.com/core/img/resources/animate/smoke/fog2.png') center / contain no-repeat;
    filter: sepia(.35) hue-rotate(200deg) saturate(1.8);
    opacity: .33;
    animation: discovery-smoke 2.8s .1s ease-out both;
}
.tarot-discovery-haze::before {
    left: -20%;
    bottom: -2%;
    --smoke-start: translate(-15%, 23%) scale(.85);
    --smoke-peak: translate(5%, -16%) scale(1.12);
    --smoke-end: translate(14%, -31%) scale(1.22);
}
.tarot-discovery-haze::after {
    right: -12%;
    top: 5%;
    --smoke-start: translate(19%, 18%) scale(.88) rotate(-12deg);
    --smoke-peak: translate(-5%, -4%) scale(1.12) rotate(-8deg);
    --smoke-end: translate(-16%, -15%) scale(1.21) rotate(-4deg);
    animation-delay: .4s;
}
.tarot-discovery-content {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: clamp(1rem, 3vw, 1.85rem);
    min-height: 100%;
    padding: 3rem clamp(1.15rem, 5vw, 3.1rem) 2rem;
}
.tarot-discovery-note {
    display: grid;
    grid-template-columns: minmax(7rem, 34%) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1rem, 4vw, 2.75rem);
    width: 100%;
    animation: discovery-enter .6s .97s ease-out both;
}
.tarot-discovery-portrait {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    background: radial-gradient(circle, #566fbc5c, #3a2f6830 45%, transparent 70%);
}
.tarot-discovery-portrait img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 .8rem #848cebac);
}
.tarot-discovery-note h2 {
    color: #e7c88f;
    font: 700 .83rem/1.3 var(--display);
    letter-spacing: .08em;
    text-transform: uppercase;
}
.tarot-discovery-note h2:focus { outline: none; }
.tarot-discovery-note .tarot-discovery-greeting {
    margin-top: .55rem;
    color: #fff1c8;
    font: 700 clamp(1.4rem, 3.6vw, 2.6rem)/1.12 var(--display);
    overflow-wrap: anywhere;
}
.tarot-discovery-greeting strong {
    display: block;
    margin-bottom: .2rem;
    color: #ffe0a0;
    font-size: 1.24em;
}
.tarot-discovery-note .tarot-discovery-message {
    max-width: 44ch;
    margin-top: .85rem;
    color: #e3d9eb;
    font-size: clamp(1rem, 2vw, 1.12rem);
    line-height: 1.5;
}
.tarot-discovery-content .tarot-discovery-continue {
    min-width: 8rem;
    border-radius: .65rem;
    font-weight: 700;
    animation: discovery-enter .5s 1.23s ease-out both;
}
.tarot-discovery-flight {
    position: absolute;
    z-index: 1;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.tarot-discovery-prize {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(.4rem, 2vw, 1rem);
    height: 100%;
    color: #ffda61;
    font: 700 clamp(3.4rem, 10vw, 6.7rem)/1 var(--display);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.045em;
    text-shadow: 0 3px .18em #211512, 0 0 .42em #ffaf4790;
    white-space: nowrap;
    animation: discovery-rise 2.25s .26s both;
}
.tarot-discovery-prize img {
    width: auto;
    height: 1.28em;
    filter: drop-shadow(0 0 .14em #ffc45991);
}
.tarot-discovery-flight.tarot-card-flight {
    position: fixed;
    z-index: 5;
}
.tarot-card-flight .tarot-discovery-prize {
    position: absolute;
    top: clamp(3rem, var(--tarot-prize-y), calc(100% - 1.5rem));
    left: clamp(3.25rem, var(--tarot-prize-x), calc(100% - 3.25rem));
    height: auto;
    gap: .4rem;
    font-size: clamp(1.4rem, 3vw, 2.05rem);
    animation: tarot-card-pop 1.7s both;
}

@keyframes discovery-darken { from { opacity: .4; } }
@keyframes discovery-smoke {
    from { opacity: 0; transform: var(--smoke-start); }
    45% { opacity: .83; transform: var(--smoke-peak); }
    to { opacity: .33; transform: var(--smoke-end); }
}
@keyframes discovery-enter { from { opacity: 0; transform: translateY(.8rem); } }
@keyframes discovery-rise {
    from { opacity: 0; transform: translateY(36%) scale(.8); animation-timing-function: cubic-bezier(.21,.61,.35,1); }
    17% { opacity: 1; transform: translateY(26%) scale(1.1); }
    37% { opacity: 1; transform: translateY(17%) scale(1); }
    73% { opacity: .95; }
    to { opacity: 0; visibility: hidden; transform: translateY(-67%) scale(.88); }
}
@keyframes tarot-card-pop {
    from { opacity: 0; transform: translate(-50%, -48%) scale(.55); }
    16% { opacity: 1; transform: translate(-50%, calc(-50% - 1rem)) scale(1.16); }
    32% { opacity: 1; transform: translate(-50%, calc(-50% - 1.8rem)) scale(1); }
    75% { opacity: .92; }
    to { opacity: 0; transform: translate(-50%, calc(-1 * var(--tarot-prize-y) - 100%)) scale(.85); }
}

@media (max-width: 38rem) {
    .tarot-discovery-note {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        text-align: center;
    }
    .tarot-discovery-portrait { width: clamp(5rem, 20vw, 7.25rem); }
    .tarot-discovery-haze::before { left: -40%; }
    .tarot-discovery-haze::after { right: -40%; }
}
@media (prefers-reduced-motion: reduce) {
    .tarot-discovery-flight:not(.tarot-card-flight) { position: static; overflow: visible; }
    .tarot-discovery-prize { font-size: 1.5rem; }
    .tarot-card-flight .tarot-discovery-prize { animation: none; transform: translate(-50%, -115%); }
}
:is(.reduced-motion, .client-reduced-motion, .a11y-reduce-motion, .a11y-pause-motion) .tarot-discovery-reveal,
:is(.reduced-motion, .client-reduced-motion, .a11y-reduce-motion, .a11y-pause-motion) .tarot-discovery-reveal *,
:is(.reduced-motion, .client-reduced-motion, .a11y-reduce-motion, .a11y-pause-motion) .tarot-discovery-haze::before,
:is(.reduced-motion, .client-reduced-motion, .a11y-reduce-motion, .a11y-pause-motion) .tarot-discovery-haze::after { animation: none; }
:is(.reduced-motion, .client-reduced-motion, .a11y-reduce-motion, .a11y-pause-motion) .tarot-discovery-flight:not(.tarot-card-flight) {
    position: static;
    overflow: visible;
}
:is(.reduced-motion, .client-reduced-motion, .a11y-reduce-motion, .a11y-pause-motion) .tarot-discovery-prize { font-size: 1.5rem; }
:is(.reduced-motion, .client-reduced-motion, .a11y-reduce-motion, .a11y-pause-motion) .tarot-card-flight .tarot-discovery-prize {
    animation: none;
    transform: translate(-50%, -115%);
}
