/* style.css, part 6 of 13: the startup guide (src/guide.js).
   A contiguous range of the pre-M7 style.css, linked from index.html in
   source order so the cascade is unchanged; see src/tokens.css. */

/* ============================================================
   STARTUP GUIDE — first-run walkthrough (src/guide.js).
   The backdrop is four strips around the highlight, never a sheet over it,
   so the control being explained stays lit and usable.
   ============================================================ */
.guide-open-btn {
    margin-top: 0.6rem;
    min-height: 40px;
    padding: 0.4rem 0.9rem;
    border: 2px solid var(--icon-accent);
    border-radius: var(--radius-chip);
    background: var(--c-white);
    color: var(--accent-text);
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--dur-200) ease;
}
.guide-open-btn:hover {
    background: #ede0f7;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px var(--icon-shadow);
}

.guide-root {
    position: fixed;
    inset: 0;
    z-index: 2000;
    font-family: var(--font-ui);
    /* The root spans the screen only so its children can be positioned
       against it — it must never intercept a click, or the hole in the
       backdrop would not be a hole. The strips and the card opt back in. */
    pointer-events: none;
}
.guide-mask {
    position: fixed;
    pointer-events: auto;
    background: var(--scrim-color);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
}
.guide-ring {
    position: fixed;
    border-radius: var(--radius-dialog);
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7), 0 10px 30px var(--shadow-pink);
    pointer-events: none;
    animation: guide-pulse 1.8s ease-in-out infinite;
}
@keyframes guide-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7), 0 10px 30px var(--shadow-pink); }
    50%      { box-shadow: 0 0 0 7px rgba(255, 214, 233, 0.55), 0 10px 30px var(--shadow-pink); }
}

.guide-card {
    position: fixed;
    pointer-events: auto;
    padding: 1.15rem 1.25rem 1rem;
    background: var(--c-white);
    border: 2px solid #dfdce2;
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(140, 90, 140, 0.32);
    color: var(--text-primary);
}
.guide-progress {
    height: 5px;
    border-radius: var(--radius-chip);
    background: rgba(255, 143, 184, 0.2);
    overflow: hidden;
    margin-bottom: 0.7rem;
}
.guide-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--icon-accent), var(--accent-2));
    border-radius: var(--radius-chip);
    transition: width var(--dur-250) ease;
}
.guide-count {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.guide-title {
    font-family: var(--font-heading);
    /* --fs-mark (20 px), not the siblings' --fs-lg (17). This IS the tour's
       heading and dropping it 3 px is a visible restyle of the first thing a
       first-time visitor reads; 20 px is an exact step on the ladder, so the
       divergence from the family's dialog-title role is recorded rather than
       split. Listed for the owner with the other visible moves. */
    font-size: var(--fs-mark);
    font-weight: 700;
    letter-spacing: var(--tracking-title);   /* the family's dialog title */
    color: var(--accent-text);
    margin: 0.15rem 0 var(--space-field);
}
.guide-body p {
    font-size: var(--fs-sm);
    font-weight: var(--fw-strong);
    line-height: var(--lh-base);
    margin-bottom: 0.5rem;
}
.guide-body strong { color: var(--accent-text); }
.guide-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.9rem;
}
.guide-spacer { flex: 1; }
.guide-actions button {
    min-height: 44px;
    border-radius: var(--radius-chip);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-sm);
    cursor: pointer;
    padding: 0.5rem 1.1rem;
    transition: all var(--dur-180) ease;
}
.guide-skip, .guide-back {
    border: 2px solid var(--accent-color);
    background: var(--c-white);
    color: var(--text-primary);
}
.guide-skip:hover, .guide-back:hover { background: var(--c-pink-50); color: var(--accent-text); }
.guide-next {
    border: none;
    background: linear-gradient(115deg, var(--c-rose-600), var(--c-indigo-600));
    color: var(--c-white);
    box-shadow: 0 8px 18px var(--shadow-pink);
}
.guide-next:hover { transform: translateY(-2px); }

@media (max-width: 900px) {
    .guide-card { width: calc(100vw - 32px) !important; }
}
