/**
 * Full-screen check-in celebration + cooldown modal (all regular gym detail pages).
 */

/* Blocks all clicks, touches, and scroll while celebration runs (8s). */
#celebration-lock-overlay.gf-checkin-celebration-lock {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    background: transparent;
    pointer-events: auto;
    touch-action: none;
}

body.gf-checkin-celebrating {
    overflow: hidden;
    touch-action: none;
}

.gf-checkin-celebration-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.gf-checkin-star-overlay-3d {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 33vmin;
    height: 33vmin;
    transform-origin: center center;
    animation: gf-checkin-star-celebrate 8s ease-in-out forwards;
    pointer-events: none;
}

.gf-checkin-star-overlay-3d__icon {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 28px rgba(248, 250, 252, 0.95))
        drop-shadow(0 0 56px rgba(148, 163, 184, 0.92))
        drop-shadow(0 0 88px rgba(100, 116, 139, 0.65))
        drop-shadow(0 12px 24px rgba(15, 23, 42, 0.45));
}

/* Hide the small in-page star under the check-in button during celebration */
body.gf-checkin-celebrating .gf-detail-sidebar .star-rating.silver {
    visibility: hidden;
}

/* 6-hour check-in cooldown — spam warning modal */
.gf-check-in-spam-layer {
    position: fixed;
    inset: 0;
    z-index: 13050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(1rem, env(safe-area-inset-top, 0px)) 1rem max(1rem, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.gf-check-in-spam-layer.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.gf-check-in-spam-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(4px);
}

.gf-check-in-spam-modal {
    position: relative;
    z-index: 1;
    width: min(22rem, calc(100vw - 2rem));
    padding: 1.25rem 1.35rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.98);
    color: #f8fafc;
    text-align: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.94);
    transition: transform 0.22s ease;
}

.gf-check-in-spam-layer.is-visible .gf-check-in-spam-modal {
    transform: scale(1);
}

.gf-check-in-spam-line {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 600;
}

.gf-check-in-spam-line--bold {
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

@keyframes gf-checkin-star-celebrate {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    10% {
        transform: scale(1.2);
        opacity: 1;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    70% {
        transform: scale(1.1);
        opacity: 1;
    }
    90% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}
