/* First-launch spotlight coach-mark (built by js/onboarding.js).
   Spotlight target = bottom-left power-up FAB, positioned at ~20% / 85%. */

#onboarding {
    position: fixed;
    inset: 0;
    z-index: 3000;
    overflow: hidden;
    animation: fadeIn 0.35s ease both;
}
#onboarding.ob-closing { animation: fadeOut 0.3s ease both; }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

/* Real game screenshot behind everything */
.ob-shot {
    position: absolute; inset: 0;
    background: url('../assets/onboard1.png') center/cover no-repeat;
}

/* Dim layer with a transparent "hole" over the power-up cluster */
.ob-spotlight {
    position: absolute; inset: 0;
    background: radial-gradient(circle 175px at 20% 90%,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0) 55%,
        rgba(8,8,22,0.80) 88%,
        rgba(8,8,22,0.92) 100%);
}

/* Pulsing attention ring centered on the spotlight */
.ob-ring {
    position: absolute;
    left: 20%; top: 90%;
    width: 240px; height: 240px;
    margin: -120px 0 0 -120px;
    border-radius: 50%;
    border: 3px solid var(--neon-cyan);
    box-shadow: 0 0 30px rgba(34,211,238,0.55);
    animation: obRing 1.8s ease-out infinite;
    pointer-events: none;
}
@keyframes obRing {
    0%   { transform: scale(0.7); opacity: 0.9; }
    70%  { transform: scale(1.15); opacity: 0; }
    100% { transform: scale(1.15); opacity: 0; }
}

/* Animated arrow pointing down-left toward the FAB */
.ob-arrow {
    position: absolute;
    left: 34%; top: 72%;
    width: 82px; height: 82px;
    color: var(--neon-cyan);
    filter: drop-shadow(0 0 14px rgba(34,211,238,0.8));
    animation: obArrow 1.2s var(--ease-out) infinite;
    pointer-events: none;
}
@keyframes obArrow {
    0%, 100% { transform: translate(10px, -10px); opacity: 0.65; }
    50%      { transform: translate(-6px, 6px);   opacity: 1; }
}

/* Caption sits in the upper, empty part of the screenshot */
.ob-caption {
    position: absolute;
    top: 16%; left: 0; right: 0;
    padding: 0 34px;
    text-align: center;
    animation: obPop 0.5s var(--ease-spring) 0.15s both;
}
.ob-badge {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px; font-weight: 800; letter-spacing: 2px;
    color: #fff; padding: 5px 12px; border-radius: 999px;
    background: linear-gradient(135deg, var(--neon-rose), var(--neon-purple));
    box-shadow: 0 6px 18px rgba(124,58,237,0.45);
    margin-bottom: 14px;
}
.ob-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700; font-size: 26px; letter-spacing: 0.5px;
    margin: 0;
    background: linear-gradient(90deg, var(--neon-violet), var(--neon-cyan));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 16px rgba(124,58,237,0.45));
}
.ob-desc {
    color: var(--text);
    font-size: 16px; line-height: 1.6; font-weight: 500;
    margin: 12px auto 0; max-width: 320px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.ob-desc b { color: var(--neon-cyan); font-weight: 700; }
@keyframes obPop {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* CTA lives under the caption (upper area) so it never covers the
   highlighted power-up cluster in the bottom-left corner. */
.ob-cta {
    width: auto;
    margin: 26px auto 0;
    padding: 16px 38px;
}
