/* Guided tutorials (guided_tour.js). The layer never takes clicks itself, so
   the page underneath stays usable; only the card does. */
.tour-layer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
}
.tour-spotlight {
    position: fixed;
    border-radius: 12px;
    box-shadow: 0 0 0 200vmax rgba(10, 6, 22, 0.55);
}
.tour-layer.is-click .tour-spotlight {
    box-shadow: 0 0 0 200vmax rgba(10, 6, 22, 0.42);
}
.tour-ring {
    position: fixed;
    overflow: visible;
}
.tour-ring-track,
.tour-ring-comet {
    fill: none;
}
.tour-ring-track {
    stroke: var(--aqua, #5ed4d1);
    stroke-width: 3;
    filter: drop-shadow(0 0 6px rgba(94, 212, 209, 0.7));
}
/* A bright segment that travels round the outline. */
.tour-ring-comet {
    stroke: #ffd23f;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 20 80;
    filter: drop-shadow(0 0 8px rgba(255, 210, 63, 0.9));
    animation: tour-orbit 1.6s linear infinite;
}
.tour-layer:not(.is-click) .tour-ring-comet {
    stroke-width: 4;
    animation-duration: 3.2s;
}
.tour-layer.is-click .tour-ring-track {
    animation: tour-pulse 1.6s ease-in-out infinite;
}
@keyframes tour-orbit {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -100; }
}
@keyframes tour-pulse {
    0%, 100% { stroke-width: 3; opacity: 1; }
    50% { stroke-width: 6; opacity: 0.55; }
}
.tour-badge {
    position: fixed;
    transform: translateX(-50%);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: #ffd23f;
    color: #1d1405;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    animation: tour-bob 1.6s ease-in-out infinite;
}
@keyframes tour-bob {
    0%, 100% { margin-top: 0; }
    50% { margin-top: -4px; }
}
.tour-card {
    position: fixed;
    width: min(380px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 1rem 1.1rem 1.05rem;
    border: 1px solid var(--line, #e4e2e8);
    border-radius: 14px;
    background: var(--paper, #fff);
    color: var(--ink, #17151f);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
    pointer-events: auto;
}
.tour-card:focus {
    outline: none;
}
.tour-card:focus-visible {
    outline: 3px solid var(--violet, #a84cff);
    outline-offset: 2px;
}
.tour-card.is-docked {
    left: 12px !important;
    right: 12px;
    bottom: 12px;
    top: auto !important;
    width: auto;
    max-height: 46vh;
}
.tour-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.tour-progress {
    color: var(--muted, #6d6a75);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.tour-close {
    min-height: 0;
    padding: 0 0.4rem;
    border: 0;
    background: none;
    color: var(--muted, #6d6a75);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
.tour-close:hover {
    color: var(--ink, #17151f);
}
.tour-title {
    margin: 0.35rem 0 0.4rem;
    font-size: 1.15rem;
}
.tour-text p {
    margin: 0 0 0.55rem;
    line-height: 1.5;
}
.tour-hint {
    margin: 0.2rem 0 0.6rem;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    background: rgba(255, 210, 63, 0.18);
    font-size: 0.9rem;
    font-weight: 800;
}
.tour-bar {
    height: 4px;
    margin: 0.4rem 0 0.8rem;
    overflow: hidden;
    border-radius: 999px;
    background: var(--line, #e4e2e8);
}
.tour-bar-fill {
    display: block;
    height: 100%;
    background: var(--header-gradient, var(--violet, #a84cff));
    transition: width 0.25s ease;
}
.tour-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}
.tour-actions button {
    min-height: 40px;
    padding: 0.5rem 1rem;
    border: 1px solid var(--line, #e4e2e8);
    border-radius: 8px;
    background: var(--paper, #fff);
    color: var(--ink, #17151f);
    font-weight: 800;
    cursor: pointer;
}
.tour-actions .tour-next {
    border-color: transparent;
    background: var(--violet, #a84cff);
    color: #fff;
}
.tour-actions .tour-next.is-quiet {
    border-color: var(--line, #e4e2e8);
    background: var(--paper, #fff);
    color: var(--ink, #17151f);
}
.tour-actions button:disabled {
    opacity: 0.45;
    cursor: default;
}
/* The button that starts a tutorial. */
.tour-start-button {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 40px;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--line, #e4e2e8);
    border-radius: 8px;
    background: var(--paper, #fff);
    color: var(--ink, #17151f);
    font: inherit;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}
.tour-start-button:hover {
    background: var(--soft, #f0e4ff);
}
.tour-start-button[hidden] {
    display: none;
}
.tour-start-icon {
    display: inline-grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-size: 0.8rem;
    line-height: 1;
}
@media (prefers-reduced-motion: reduce) {
    .tour-ring-comet,
    .tour-layer.is-click .tour-ring-track,
    .tour-badge {
        animation: none;
    }
    .tour-ring-comet {
        stroke-dasharray: none;
        opacity: 0.6;
    }
}
/* The streamer menu is already full, so the button sits at the right on its own. */
.streamer-menu .tour-start-button {
    margin-left: auto;
}
