/* Anna & Lukas – RSVP-Extras
   Gleiche Palette wie das Formular (F8F4EF, E9D5C6, C88463, 5A4439). */

/* ---------- Rubbellos ---------- */
html.hrx-rubbeln,
html.hrx-rubbeln body {
    overflow: hidden; /* Seite dahinter nicht scrollen */
}

.hrx-abdeckung {
    position: fixed;
    inset: 0;
    z-index: 99995;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: radial-gradient(ellipse at center, #6b5446 0%, #3b2c24 100%);
    transition: opacity 0.8s ease;
    touch-action: none;          /* Wischen auf der Abdeckung scrollt nicht die Seite dahinter */
    overscroll-behavior: contain;
}

.hrx-abdeckung.hrx-weg {
    opacity: 0;
    pointer-events: none;
}

.hrx-karte {
    width: 100%;
    max-width: 480px;
    margin: 0;
    padding: 26px 22px 20px;
    box-sizing: border-box;
    background: #F8F4EF;
    color: #5A4439;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
    text-align: center;
    font-family: inherit;
    animation: hrx-rein 0.5s ease both;
}

.hrx-namen {
    margin: 0 0 6px;
    font-size: 15px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #C88463;
}

.hrx-titel {
    margin: 0 0 16px;
    font-size: 18px;
    letter-spacing: 0.3px;
    transition: opacity 0.4s ease;
}

.hrx-feld {
    position: relative;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    background: #E9D5C6;
    user-select: none;
    -webkit-user-select: none;
}

.hrx-gewinn {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.hrx-datum {
    font-size: 40px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #5A4439;
    line-height: 1.1;
}

.hrx-text {
    font-size: 19px;
    color: #C88463;
}

.hrx-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: grab;
    touch-action: none; /* beim Rubbeln nicht die Seite scrollen */
    transition: opacity 0.6s ease;
}

.hrx-aufgedeckt .hrx-canvas {
    opacity: 0;
    pointer-events: none;
}

.hrx-aufgedeckt .hrx-gewinn {
    animation: hrx-puls 0.7s ease 0.2s both;
}

.hrx-skip {
    margin-top: 12px;
    padding: 6px 10px;
    background: none;
    border: none;
    color: #5A4439;
    opacity: 0.7;
    font-size: 14px;
    font-family: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.hrx-skip:hover,
.hrx-skip:focus-visible {
    opacity: 1;
}

.hrx-konfetti {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99998;
}

@keyframes hrx-rein {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
}

@keyframes hrx-puls {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.12); }
    100% { transform: scale(1); }
}

@media (max-width: 480px) {
    .hrx-karte {
        padding: 22px 16px 16px;
    }
    .hrx-datum {
        font-size: 34px;
    }
}

/* ---------- Flüchtender Absage-Knopf ---------- */
.hrsvp-radio.hrx-flucht {
    position: relative;
    z-index: 2;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hrx-blase {
    margin: 10px 0 0;
    min-height: 1.4em;
    font-size: 15px;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.hrx-blase-zeigen {
    animation: hrx-blase 0.4s ease both;
}

@keyframes hrx-blase {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hrx-karte,
    .hrx-aufgedeckt .hrx-gewinn,
    .hrx-blase-zeigen {
        animation: none;
    }
}

/* Platz unter der Zeile, damit der Knopf beim Hüpfen nichts verdeckt */
.hrsvp-radio-row.hrx-platz {
    padding-bottom: 52px;
    transition: padding 0.3s ease;
}

/* Fliegendes Datum auf dem Weg zum Countdown */
.hrx-flieger {
    position: fixed;
    inset: auto;
    z-index: 99997;
    pointer-events: none;
    transform-origin: center center;
    will-change: transform, opacity;
}

.hrx-flieger .hrx-datum,
.hrx-flieger .hrx-text {
    transition: color 0.6s ease, text-shadow 0.6s ease;
}

.hrx-flieger.hrx-hell .hrx-datum,
.hrx-flieger.hrx-hell .hrx-text {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ---------- Zusage-Zähler ---------- */
.hrx-zaehler {
    margin: 0 0 18px;
    text-align: center;
    font-size: 17px;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.hrx-zaehler strong {
    color: #ffd9c2;
}
