/* Starter tutorial coach spotlight — portaled to document.body */
.tutorial-guide-root {
    position: fixed;
    inset: 0;
    z-index: 26000;
    pointer-events: none;
}

.tutorial-guide-dim-fallback {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.72);
    pointer-events: none;
}

.tutorial-guide-shade {
    position: fixed;
    left: 0;
    right: 0;
    background: rgba(2, 6, 23, 0.72);
    pointer-events: none;
    z-index: 1;
}

.tutorial-guide-shade--top {
    top: 0;
    right: 0;
    left: 0;
}

.tutorial-guide-shade--left {
    right: auto;
}

.tutorial-guide-shade--right {
    right: 0;
    left: auto;
}

.tutorial-guide-shade--bottom {
    left: 0;
    right: 0;
    bottom: 0;
}

.tutorial-guide-hole-frame {
    position: fixed;
    border-radius: 10px;
    outline: 2px solid rgba(96, 165, 250, 0.95);
    box-shadow: 0 0 0 1px rgba(147, 197, 253, 0.35), 0 0 24px rgba(59, 130, 246, 0.35);
    pointer-events: none;
    z-index: 2;
    transition: top 0.15s ease, left 0.15s ease, width 0.15s ease, height 0.15s ease;
}

.tutorial-guide-popup {
    position: fixed;
    z-index: 3;
    pointer-events: auto;
    width: min(320px, calc(100vw - 24px));
    padding: 14px 16px 12px;
    border-radius: 12px;
    border: 1px solid rgba(96, 165, 250, 0.45);
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96));
    color: #e2e8f0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.tutorial-guide-popup--anchored {
    transform: none;
    max-width: min(320px, calc(100vw - 24px));
}

.tutorial-guide-popup--center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.tutorial-guide-popup-hint {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(148, 163, 184, 0.95);
    font-style: italic;
}

.tutorial-guide-popup--anchored::before {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(30, 41, 59, 0.98);
    border: 1px solid rgba(96, 165, 250, 0.45);
    transform: rotate(45deg);
}

.tutorial-guide-popup--right::before {
    left: -6px;
    top: 50%;
    margin-top: -5px;
    border-right: none;
    border-top: none;
}

.tutorial-guide-popup--left::before {
    right: -6px;
    top: 50%;
    margin-top: -5px;
    border-left: none;
    border-bottom: none;
}

.tutorial-guide-popup--below::before {
    top: -6px;
    left: 24px;
    border-bottom: none;
    border-right: none;
}

.tutorial-guide-popup--above::before {
    bottom: -6px;
    left: 24px;
    border-top: none;
    border-left: none;
}

.tutorial-guide-popup-step {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.95);
    margin-bottom: 6px;
}

.tutorial-guide-popup-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.25;
}

.tutorial-guide-popup-body {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(203, 213, 225, 0.95);
}

.tutorial-guide-popup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.tutorial-guide-btn {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid transparent;
}

.tutorial-guide-btn--primary {
    background: rgba(37, 99, 235, 0.85);
    border-color: rgba(96, 165, 250, 0.55);
    color: #eff6ff;
}

.tutorial-guide-btn--primary:hover {
    background: rgba(37, 99, 235, 1);
}

.tutorial-guide-btn--ghost {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.45);
    color: #cbd5e1;
}

.tutorial-guide-btn--ghost:hover {
    background: rgba(148, 163, 184, 0.12);
}

#tutorial-guide-portal {
    position: fixed;
    inset: 0;
    z-index: 26000;
    pointer-events: none;
}

/* Direct aura on exact target control */
.tutorial-guide-targeted {
    position: relative !important;
    z-index: 26010 !important;
    border-radius: 10px;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.95),
                0 0 16px rgba(59, 130, 246, 0.65),
                0 0 30px rgba(37, 99, 235, 0.45) !important;
    animation: tutorialGuidePulse 1.2s ease-in-out infinite;
}

@keyframes tutorialGuidePulse {
    0%, 100% {
        box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.95),
                    0 0 14px rgba(59, 130, 246, 0.55),
                    0 0 24px rgba(37, 99, 235, 0.35);
    }
    50% {
        box-shadow: 0 0 0 3px rgba(147, 197, 253, 1),
                    0 0 20px rgba(96, 165, 250, 0.8),
                    0 0 34px rgba(59, 130, 246, 0.55);
    }
}
