/* 새 버튼 알리미(feature-hints.js): 주황 점 + 처음 한 번 말풍선.
   점과 말풍선은 body 끝의 .fh-layer 안에 따로 두고 버튼 위치에 맞춰 놓는다(버튼 안을 건드리지 않는다). */
.fh-layer {
    position: fixed;
    inset: 0;
    z-index: 3010;
    pointer-events: none;
}

.fh-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 1.5px var(--bg);
}

.fh-dot[hidden] {
    display: none;
}

.fh-dot.pulse::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    animation: fh-pulse 1.6s ease-out infinite;
}

@keyframes fh-pulse {
    from { opacity: 0.9; transform: scale(0.6); }
    to { opacity: 0; transform: scale(1.6); }
}

.fh-tip {
    --fh-arrow: 24px;
    position: absolute;
    width: 264px;
    max-width: calc(100vw - 16px);
    box-sizing: border-box;
    padding: 12px 13px 11px;
    border-radius: 10px;
    background: var(--ink);
    color: var(--bg);
    font-size: 12.5px;
    line-height: 1.55;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
    pointer-events: auto;
    animation: fh-tip-in 0.18s ease-out;
}

.fh-cta[hidden],
.fh-tip[hidden] {
    display: none;
}

@keyframes fh-tip-in {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 1; transform: none; }
}

.fh-tip::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    background: var(--ink);
    transform: rotate(45deg);
}

.fh-tip[data-side="left"]::after { right: -4px; top: calc(var(--fh-arrow) - 4px); }
.fh-tip[data-side="right"]::after { left: -4px; top: calc(var(--fh-arrow) - 4px); }
.fh-tip[data-side="bottom"]::after { top: -4px; left: calc(var(--fh-arrow) - 4px); }
.fh-tip[data-side="top"]::after { bottom: -4px; left: calc(var(--fh-arrow) - 4px); }

.fh-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.fh-title {
    font-size: 13.5px;
    font-weight: 600;
}

.fh-chip {
    padding: 0 6px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
}

.fh-x {
    width: 20px;
    height: 20px;
    margin: -2px -4px 0 auto;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: color-mix(in srgb, var(--bg) 60%, transparent);
    font: inherit;
    font-size: 16px;
    line-height: 20px;
    cursor: pointer;
}

.fh-x:hover {
    color: var(--bg);
}

.fh-body {
    margin: 0;
    color: color-mix(in srgb, var(--bg) 78%, transparent);
}

.fh-acts {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 9px;
}

.fh-dismiss,
.fh-cta {
    height: 26px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.fh-dismiss {
    margin-left: -6px;
    background: transparent;
    color: color-mix(in srgb, var(--bg) 62%, transparent);
}

.fh-dismiss:hover {
    color: var(--bg);
}

.fh-cta {
    background: var(--bg);
    color: var(--ink);
    font-weight: 600;
}

.fh-cta:hover {
    background: color-mix(in srgb, var(--bg) 88%, var(--accent));
}

.fh-x:focus-visible,
.fh-dismiss:focus-visible,
.fh-cta:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .fh-dot.pulse::after {
        animation: none;
        opacity: 0.55;
        transform: scale(1.2);
    }

    .fh-tip {
        animation: none;
    }
}
