.copy-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.copy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-left: 18px;
}

.memorial-candle {
    position: relative;
    width: 15px;
    height: 27px;
    flex: none;
    margin-right: 1px;
    opacity: 0.76;
    filter: drop-shadow(0 0 7px rgba(255, 207, 109, 0.18));
    pointer-events: none;
}

.memorial-candle__wax {
    position: absolute;
    left: 4px;
    bottom: 1px;
    width: 7px;
    height: 15px;
    border-radius: 4px 4px 2px 2px;
    background: linear-gradient(90deg, rgba(236, 226, 198, 0.72), rgba(255, 250, 230, 0.94) 46%, rgba(207, 195, 167, 0.7));
    box-shadow: inset -1px 0 0 rgba(90, 70, 45, 0.11);
}

.memorial-candle__wick {
    position: absolute;
    left: 7px;
    bottom: 15px;
    width: 1px;
    height: 4px;
    border-radius: 1px;
    background: rgba(38, 29, 22, 0.82);
}

.memorial-candle__flame {
    position: absolute;
    left: 4px;
    bottom: 18px;
    width: 7px;
    height: 9px;
    border-radius: 55% 45% 58% 42% / 72% 68% 32% 28%;
    transform: rotate(4deg);
    transform-origin: 50% 100%;
    background: radial-gradient(circle at 52% 72%, #fff6c7 0 18%, #ffd066 38%, #f18d42 72%, transparent 74%);
    box-shadow: 0 0 6px rgba(255, 205, 92, 0.45), 0 0 12px rgba(255, 151, 72, 0.15);
    animation: candle-breathe 2.8s ease-in-out infinite;
}

.copy-button-label {
    display: inline-block;
}

.copy-count {
    min-width: 2ch;
    padding-left: 9px;
    border-left: 1px solid rgba(255, 250, 240, 0.22);
    color: rgba(255, 250, 240, 0.76);
    font-size: 0.68em;
    font-weight: 720;
    line-height: 1;
    letter-spacing: 0.025em;
    font-variant-numeric: tabular-nums lining-nums;
    text-align: left;
    transition: opacity 180ms ease;
}

.copy-count[data-state="loading"],
.copy-count[data-state="pending"] {
    opacity: 0.72;
}

.copy-count[data-state="offline"] {
    opacity: 0.64;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@keyframes candle-breathe {
    0%, 100% { transform: rotate(3deg) scale(0.97, 1); opacity: 0.88; }
    45% { transform: rotate(-2deg) scale(1.04, 0.96); opacity: 1; }
    70% { transform: rotate(1deg) scale(0.99, 1.03); opacity: 0.93; }
}

@media (max-width: 640px) {
    .copy-button { gap: 7px; padding-left: 15px; }
    .memorial-candle { transform: scale(0.92); margin-right: 0; }
    .copy-count { padding-left: 7px; }
}

@media (prefers-reduced-motion: reduce) {
    .memorial-candle__flame { animation: none; }
}
