/* ==========================================================================
   Sample Secret Santa match (KAN-785): components/secret_santa_reveal_card.html, on the landing page band and
   the /secret-santa hero. A cream card on green; the mustard seal is a tactile button, and the card turns over
   (rotateY, 700 ms) to the match. Both faces share one grid cell, so the card is as tall as its taller face.
   ========================================================================== */

.ss-reveal {
    --ss-reveal-cream: var(--hzl-cream, #ede6dc);
    --ss-reveal-maroon: var(--hzl-maroon, #561023);
    --ss-reveal-mustard: var(--hzl-chartreuse, #d5c800);
    --ss-reveal-shadow: #0f3a2e;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    perspective: 1400px;
}
.ss-reveal-inner {
    display: grid;
    transform-style: preserve-3d;
    transition: transform 700ms cubic-bezier(.22, 1, .36, 1);
}
.ss-reveal.is-open .ss-reveal-inner { transform: rotateY(180deg); }
.ss-reveal-face {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 380px;
    padding: 30px 26px;
    background: var(--ss-reveal-cream);
    color: var(--ss-reveal-maroon);
    text-align: center;
    box-shadow: 7px 8px 0 var(--ss-reveal-shadow);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.ss-reveal-face--back { transform: rotateY(180deg); }
.ss-reveal-face p { margin: 0; }
.ss-reveal-kicker { font: 400 11px/1.4 var(--font-mono, 'DM Mono', monospace); letter-spacing: .1em; text-transform: uppercase; }
.ss-reveal-foot { font: 400 12px/1.5 var(--font-body, 'DM Sans', sans-serif); opacity: .85; }

/* The seal: the one button on the front */
.ss-reveal-seal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 280px;
    padding: 28px 18px 24px;
    border: 0;
    border-radius: 0;
    background: var(--ss-reveal-mustard);
    color: var(--ss-reveal-maroon);
    cursor: pointer;
    font: inherit;
}
/* The landing page does not load tokens/base.css, so the mask settings of .hzl-motif are repeated here */
.ss-reveal-seal .hzl-motif {
    display: block; width: 40px; height: 42px; background-color: var(--ss-reveal-maroon);
    -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
}
.ss-reveal-seal strong { font: 400 32px/1.1 var(--font-accent, 'Cormorant Garamond', serif); }
.ss-reveal-seal span { font: 400 13px/1.4 var(--font-body, 'DM Sans', sans-serif); }
.ss-reveal-seal:focus-visible { outline: 2px solid var(--ss-reveal-maroon); outline-offset: 4px; }

/* The match */
.ss-reveal-name { font: 400 clamp(36px, 4vw, 46px)/1.08 var(--font-accent, 'Cormorant Garamond', serif); }
.ss-reveal-note { max-width: 260px; font: italic 400 19px/1.35 var(--font-accent, 'Cormorant Garamond', serif); }
.ss-reveal-list { max-width: 280px; padding: 12px 14px; background: rgba(86, 16, 35, .07); font: 400 14px/1.5 var(--font-body, 'DM Sans', sans-serif); }
.ss-reveal-list span { display: block; margin-bottom: 2px; font: 400 10px/1.4 var(--font-mono, 'DM Mono', monospace); letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.ss-reveal-again {
    padding: 6px 2px;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
    font: 400 13px/1.3 var(--font-body, 'DM Sans', sans-serif);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.ss-reveal-again:focus-visible { outline: 2px solid var(--ss-reveal-maroon); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
    .ss-reveal-inner { transition-duration: 1ms; }
}
@media (max-width: 600px) {
    .ss-reveal-face { min-height: 340px; padding: 26px 20px; }
}
