.guide-ring,
.guide-hand,
.guide-bubble,
.guide-arrow {
    position: fixed;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease;
}
.guide-ring.on,
.guide-hand.on,
.guide-bubble.on,
.guide-arrow.on {
    opacity: 1;
}
body.exit-popup-open .guide-ring,
body.exit-popup-open .guide-hand,
body.exit-popup-open .guide-bubble,
body.exit-popup-open .guide-arrow {
    opacity: 0 !important;
}

body.guide-scroll-lock .om-body,
body.guide-scroll-lock .menu-grid,
body.guide-scroll-lock .categories {
    overflow: hidden;
}

.guide-arrow {
    width: 46px;
    height: 58px;
    z-index: 100000;
    background: #ff3b30;
    clip-path: polygon(
        50% 0%,
        100% 48%,
        72% 48%,
        72% 100%,
        28% 100%,
        28% 48%,
        0% 48%
    );
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));
    animation: guideTap 1.1s ease-in-out infinite;
}

.guide-emphasize {
    z-index: 9001 !important;
    transform-origin: top right;
    transform: scale(1.35);
    transition: transform 0.25s ease;
}

.guide-bubble .guide-img {
    display: block;
    margin: 16px auto 0;
    max-width: 100%;
    max-height: 300px;
    min-height: 60px;
    border-radius: 8px;
}

.guide-bubble .guide-img-wrap {
    position: relative;
    display: block;
    width: max-content;
    max-width: 100%;
    margin: 16px auto 0;
}
.guide-bubble .guide-img-wrap .guide-img {
    margin: 0;
}
.guide-barcode-marker {
    position: absolute;
    left: 67%;
    right: 1%;
    top: 74%;
    bottom: 2%;
    border: 5px dashed #ff2a2a;
    border-radius: 4px;
    box-shadow: 0 0 0 2px rgba(255, 42, 42, 0.15);
    pointer-events: none;
    animation: guideBarcodeBlink 0.9s ease-in-out infinite;
}
@keyframes guideBarcodeBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

.guide-ring {
    border: 3px dashed #e21820;
    border-radius: 12px;
    box-sizing: border-box;
    animation: guidePulse 1.1s ease-in-out infinite;
}
.guide-ring.grow {
    transition: opacity 0.18s ease, left 0.25s ease, top 0.25s ease,
        width 0.25s ease, height 0.25s ease;
}
@keyframes guidePulse {
    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(226, 24, 32, 0.12);
        border-color: #e21820;
    }
    50% {
        box-shadow: 0 0 0 9px rgba(226, 24, 32, 0.3);
        border-color: #ff6b6f;
    }
}

.guide-hand {
    width: 50px;
    height: 68px;
    z-index: 100000;
    background: url("../images/ui/cursor1.png") center / contain no-repeat;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    animation: guideTap 1.1s ease-in-out infinite;
}
@keyframes guideTap {
    0%,
    100% {
        transform: scale(var(--gscale, 1)) translateY(0);
    }
    50% {
        transform: scale(var(--gscale, 1)) translateY(7px);
    }
}
.guide-hand.point-down {
    animation-name: guideTapDown;
}
@keyframes guideTapDown {
    0%,
    100% {
        transform: scale(var(--gscale, 1)) scaleY(-1) translateY(0);
    }
    50% {
        transform: scale(var(--gscale, 1)) scaleY(-1) translateY(7px);
    }
}

.guide-bubble {
    background: #dcebfb;
    border: 3px solid #3b82f6;
    border-radius: 18px;
    padding: 22px 26px;
    font-size: 30px;
    line-height: 1.45;
    font-weight: 700;
    color: #1f2937;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
    text-align: center;
}
.guide-bubble.tappable {
    cursor: pointer;
}
.guide-bubble.tappable::after {
    content: "터치하여 계속";
    display: block;
    margin-top: 10px;
    text-align: right;
    font-size: 16px;
    font-weight: 700;
    color: #2563eb;
    opacity: 0.85;
}
.guide-bubble em,
.guide-bubble b {
    color: #1d4ed8;
    font-style: normal;
    font-weight: 800;
    font-size: 35px;
}

.guide-final-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 24px;
}
.guide-btn {
    min-width: 130px;
    padding: 14px 22px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    pointer-events: auto;
}
.guide-btn-restart {
    background: #e8820e;
    color: #fff;
    border: none;
}
.guide-btn-home {
    background: #fff;
    color: #333;
    border: 2px solid #d8d8d8;
}
