.attendance-stamp-layer {
    position: fixed;
    inset: 0;
    z-index: 75;
    overflow: hidden;
    pointer-events: none;
}

.attendance-stamp {
    display: grid;
    place-items: center;
    width: 5.75rem;
    height: 5.75rem;
    border: .28rem solid #0ea5e9;
    border-radius: 9999px;
    color: #0ea5e9;
    background: rgba(255,255,255,.9);
    box-shadow:
        inset 0 0 0 .18rem rgba(14,165,233,.2),
        0 .9rem 2rem rgba(14,165,233,.24);
    font-family: 'Jua', 'Noto Sans KR', sans-serif;
    font-size: .86rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -.04em;
    text-align: center;
    transform: rotate(-9deg);
}

.attendance-stamp::before,
.attendance-stamp::after {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: .72rem;
    line-height: 1;
}

.attendance-stamp::before { content: '★ ★ ★'; top: .72rem; letter-spacing: .04em; }
.attendance-stamp::after { content: '★'; bottom: .62rem; }

.attendance-stamp__text {
    display: block;
    padding-top: .15rem;
    word-break: keep-all;
}

.attendance-stamp--flying {
    position: fixed;
    left: 0;
    top: 0;
    will-change: transform, opacity, filter;
}

.attendance-stamp--landed {
    position: absolute;
    left: 50%;
    top: 54%;
    width: min(82%, 3.2rem);
    height: min(82%, 3.2rem);
    border-width: .14rem;
    background: rgba(255,255,255,.62);
    box-shadow: inset 0 0 0 .08rem rgba(14,165,233,.18);
    font-size: clamp(.42rem, 1.7vw, .62rem);
    opacity: .92;
    transform: translate(-50%,-50%) rotate(-9deg);
    animation: attendanceStampSettle 420ms cubic-bezier(.2,1.35,.35,1) both;
}

.attendance-stamp--landed::before {
    top: 12%;
    font-size: .48em;
}

.attendance-stamp--landed::after {
    bottom: 9%;
    font-size: .52em;
}

.attendance-stamp--persistent {
    animation: none;
}

.attendance-date-today {
    outline: 2px solid #0ea5e9;
    outline-offset: 1px;
}

.attendance-stamp-impact {
    position: fixed;
    width: 0;
    height: 0;
    transform: translate(-50%,-50%);
}

.attendance-stamp-impact::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1.1rem;
    height: 1.1rem;
    border: .18rem solid rgba(251,113,133,.42);
    border-radius: 50%;
    background: rgba(255,228,230,.28);
    box-shadow: 0 0 1rem rgba(251,113,133,.34);
    animation: attendanceStampSoftPop 560ms ease-out both;
}

.attendance-stamp-confetti {
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color);
    font-family: system-ui, sans-serif;
    font-size: var(--size, .8rem);
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    opacity: 0;
    text-shadow: 0 .08rem .18rem rgba(190,24,93,.12);
    animation: attendanceStampConfetti 820ms cubic-bezier(.18,.8,.24,1) var(--delay, 0ms) both;
}

.attendance-stamp-target-pop {
    animation: attendanceTargetPop 540ms cubic-bezier(.2,1.35,.35,1);
}

@keyframes attendanceStampSettle {
    0% { opacity: 0; transform: translate(-50%,-50%) rotate(-4deg) scale(1.65); }
    58% { opacity: 1; transform: translate(-50%,-50%) rotate(-11deg) scale(.88); }
    100% { opacity: .92; transform: translate(-50%,-50%) rotate(-9deg) scale(1); }
}

@keyframes attendanceStampSoftPop {
    0% { opacity: .9; transform: translate(-50%,-50%) scale(.2); }
    100% { opacity: 0; transform: translate(-50%,-50%) scale(5.2); }
}

@keyframes attendanceStampConfetti {
    0% {
        opacity: 0;
        transform: translate(-50%,-50%) rotate(0deg) scale(.2);
    }
    18% { opacity: 1; }
    68% {
        opacity: 1;
        transform: translate(calc(-50% + var(--x-mid)), calc(-50% + var(--y-mid))) rotate(var(--rotate)) scale(1.15);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--rotate)) scale(.6);
    }
}

@keyframes attendanceTargetPop {
    0%, 100% { transform: scale(1); }
    42% { transform: scale(.9); }
    68% { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
    .attendance-stamp--landed,
    .attendance-stamp-impact::before,
    .attendance-stamp-confetti,
    .attendance-stamp-target-pop { animation: none !important; }
}
