/* Onboarding-Tour – Overlay, Spotlight, Tooltip-Karte */

html.ob-locked,
html.ob-locked body {
    overflow: hidden;
}

.ob-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 22, 0.72);
    z-index: 9998;
    pointer-events: auto;
}

/* Pulsierender Goldring um das Ziel-Element. Der Spotlight-Effekt selbst
   entsteht durch einen riesigen Box-Shadow, der den Rest des Viewports
   abdunkelt – das spart ein extra Overlay-Element und lässt Klicks auf
   den hervorgehobenen Button durch (pointer-events: none). */
.ob-spotlight {
    position: fixed;
    z-index: 9999;
    border-radius: 12px;
    background: transparent;
    box-shadow:
        0 0 0 4px rgba(201, 168, 76, 0.9),
        0 0 0 9999px rgba(10, 10, 22, 0.72);
    pointer-events: none;
    transition: top 0.18s ease, left 0.18s ease, width 0.18s ease, height 0.18s ease;
    animation: ob-pulse 2s ease-in-out infinite;
}

@keyframes ob-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.9),  0 0 0 9999px rgba(10, 10, 22, 0.72); }
    50%      { box-shadow: 0 0 0 6px rgba(240, 208, 128, 1.0), 0 0 0 9999px rgba(10, 10, 22, 0.72); }
}

.ob-card {
    position: fixed;
    z-index: 10000;
    width: min(420px, calc(100vw - 32px));
    background: #16213e;
    color: #e5e7eb;
    border: 1px solid #c9a84c;
    border-radius: 12px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(201, 168, 76, 0.2);
    padding: 18px 20px;
    font-family: inherit;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

/* ── Grimbolt-Avatar links in der Karte ───────────────────────────────── */
.ob-card-goblin {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 64px;
}
.ob-goblin-svg {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
    animation: ob-bob 2.4s ease-in-out infinite;
    transform-origin: 50% 80%;
}
@keyframes ob-bob {
    0%, 100% { transform: translateY(0)   rotate(-2deg); }
    50%      { transform: translateY(-3px) rotate(2deg); }
}
.ob-card-goblin-name {
    font-family: "Palatino Linotype", Palatino, Georgia, serif;
    font-size: 0.7rem;
    color: #c9a84c;
    letter-spacing: 0.05em;
    text-align: center;
}

.ob-card-content {
    flex: 1;
    min-width: 0;
}

.ob-card-step {
    font-size: 0.78rem;
    color: #c9a84c;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

/* ── Animierter Zeigefinger-Pointer am Spotlight ──────────────────────── */
.ob-pointer {
    position: fixed;
    z-index: 10001;
    width: 48px;
    height: 48px;
    pointer-events: none;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}
.ob-pointer-svg {
    width: 100%;
    height: 100%;
    animation: ob-poke 1s ease-in-out infinite;
}
@keyframes ob-poke {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(6px); }
}

.ob-card-title {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #f0d080;
    font-family: "Palatino Linotype", Palatino, Georgia, serif;
}

.ob-card-body {
    margin: 0 0 16px 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #d1d5db;
}

.ob-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ob-card-actions-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ob-card button {
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    font-family: inherit;
}

.ob-btn-skip {
    background: transparent;
    color: #9ca3af;
}
.ob-btn-skip:hover {
    color: #f3f4f6;
}

.ob-btn-secondary {
    background: transparent;
    color: #c9a84c;
    border-color: #c9a84c;
}
.ob-btn-secondary:hover {
    background: rgba(201, 168, 76, 0.1);
}

.ob-btn-primary {
    background: #c9a84c;
    color: #1a1a2e;
    font-weight: 600;
}
.ob-btn-primary:hover:not(:disabled) {
    background: #e0bb6a;
    box-shadow: 0 0 12px rgba(201, 168, 76, 0.45);
}
.ob-btn-primary:disabled {
    background: #4a4a4a;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
}

/* Hinweis statt Weiter-Button bei Klick-Steps */
.ob-action-hint {
    font-size: 0.78rem;
    color: #c9a84c;
    font-style: italic;
    padding: 6px 0;
    opacity: 0.9;
}

/* Banner, wenn ein Pop-up das Tour-Target verdeckt */
.ob-blocked-notice {
    margin: 4px 0 12px 0;
    padding: 10px 12px;
    background: rgba(252, 165, 165, 0.08);
    border: 1px solid rgba(252, 165, 165, 0.35);
    border-radius: 8px;
    color: #fecaca;
    font-size: 0.82rem;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.ob-blocked-icon {
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1;
    margin-top: 1px;
}

/* Marker-Glow für data-tour-Elemente während aktiver Tour (optional, dezent):
   Wenn das Element gerade Tour-Target ist, soll es leicht pulsieren.
   Wird vom JS NICHT zusätzlich getaggt – nur per :focus-within / hover.
   Stattdessen reicht das Spotlight zur Hervorhebung. */
