.starter-guide {
    position: fixed;
    z-index: 2200;
    width: min(340px, calc(100vw - 24px));
    padding: 16px;
    border: 1px solid rgba(56, 189, 248, 0.52);
    border-radius: 12px;
    background: #101d34;
    color: #f8fafc;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
    box-sizing: border-box;
    pointer-events: none;
}

.starter-guide[hidden],
.starter-target-ring[hidden],
.starter-target-pointer[hidden] {
    display: none !important;
}

.starter-guide-slot {
    width: 100%;
    min-width: 0;
    margin: 0 0 8px;
}

.starter-guide.starter-guide-inline {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
}

.starter-guide-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.starter-guide-progress {
    color: #67e8f9;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.starter-guide-exit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    margin: -10px -10px -10px 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
    pointer-events: auto;
}

.starter-guide-exit:hover,
.starter-guide-exit:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    outline: 2px solid #fbbf24;
    outline-offset: 1px;
}

.starter-guide-exit svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.starter-guide-title {
    margin: 10px 0 0;
    color: #fff;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 900;
}

.starter-guide-copy {
    margin: 8px 0 0;
    color: #dbeafe;
    font-size: 16px;
    line-height: 1.65;
    font-weight: 650;
}

.starter-guide-note {
    margin: 8px 0 0;
    color: #a8b7cb;
    font-size: 14px;
    line-height: 1.55;
}

.starter-guide-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    margin-top: 10px;
    border: 1px solid rgba(251, 191, 36, 0.78);
    border-radius: 8px;
    background: rgba(251, 191, 36, 0.14);
    color: #fbbf24;
    font: 800 15px/1 system-ui, sans-serif;
    cursor: pointer;
    pointer-events: auto;
}

.starter-guide-next[hidden] {
    display: none !important;
}

.starter-guide-next:hover,
.starter-guide-next:focus-visible {
    background: rgba(251, 191, 36, 0.24);
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

.starter-review-confirm-dialog {
    position: fixed;
    inset: 0;
    z-index: 2300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(2, 6, 23, 0.72);
    box-sizing: border-box;
}

.starter-review-confirm-dialog[hidden] {
    display: none !important;
}

.starter-review-confirm-content {
    width: min(420px, 100%);
    padding: 20px;
    border: 1px solid rgba(56, 189, 248, 0.52);
    border-radius: 12px;
    background: #101d34;
    color: #f8fafc;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.48);
    box-sizing: border-box;
}

.starter-review-confirm-content h2 {
    margin: 0;
    color: #fff;
    font-size: 22px;
    line-height: 1.4;
}

.starter-review-confirm-content p {
    margin: 10px 0 0;
    color: #dbeafe;
    font-size: 16px;
    line-height: 1.6;
}

.starter-review-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.starter-review-confirm-actions .btn {
    min-height: 44px;
    font-size: 16px;
}

.starter-guide[data-stage="complete-close"] {
    width: min(230px, calc(100vw - 24px));
    padding: 12px;
}

.starter-guide[data-stage="complete-close"] .starter-guide-title {
    font-size: 17px;
}

.starter-guide[data-stage="complete-close"] .starter-guide-copy,
.starter-guide[data-stage="complete-close"] .starter-guide-note {
    font-size: 13px;
    line-height: 1.45;
}

.starter-guide[data-stage="login-finish"] {
    width: min(300px, calc(100vw - 24px));
}

.starter-target-ring {
    position: fixed;
    z-index: 2198;
    border: 3px solid #fbbf24;
    border-radius: 10px;
    box-shadow: 0 0 0 5px rgba(251, 191, 36, 0.18), 0 0 24px rgba(251, 191, 36, 0.46);
    pointer-events: none;
    box-sizing: border-box;
    transition: top 0.16s ease, left 0.16s ease, width 0.16s ease, height 0.16s ease;
}

.starter-target-pointer {
    position: fixed;
    z-index: 2199;
    width: 34px;
    height: 42px;
    color: #fff;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.8));
    pointer-events: none;
    animation: starter-pointer-bob 0.9s ease-in-out infinite alternate;
}

.starter-target-pointer svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
    stroke: #07111f;
    stroke-width: 1.7;
    stroke-linejoin: round;
}

.starter-target-pointer.starter-target-pointer-button-edge {
    animation: none;
    transform: none;
}

.starter-target-pointer.starter-target-pointer-button-edge.starter-target-pointer-edge-left {
    transform: scaleX(-1);
}

.starter-target-pointer.starter-target-pointer-button-edge.starter-target-pointer-edge-above {
    transform: rotate(180deg);
}

body.starter-tutorial-active .starter-target {
    position: relative;
    z-index: 2197;
}

@keyframes starter-pointer-bob {
    from { transform: translate(0, 0) rotate(-18deg); }
    to { transform: translate(4px, 4px) rotate(-18deg); }
}

@media (prefers-reduced-motion: reduce) {
    .starter-target-pointer { animation: none; }
    .starter-target-ring { transition: none; }
}

@media (max-width: 699px) {
    .starter-guide {
        width: min(330px, calc(100vw - 24px));
        padding: 15px;
        border-radius: 10px;
    }

    .starter-guide-title { font-size: 18px; }
    .starter-guide-copy { font-size: 16px; }

    .starter-guide.starter-guide-compact {
        padding: 8px 12px;
    }

    .starter-guide.starter-guide-compact .starter-guide-head {
        min-height: 44px;
    }

    .starter-guide.starter-guide-compact .starter-guide-title,
    .starter-guide.starter-guide-compact .starter-guide-note {
        display: none;
    }

    .starter-guide.starter-guide-compact .starter-guide-copy {
        margin-top: 2px;
        line-height: 1.4;
    }

    .starter-guide.starter-guide-compact .starter-guide-next {
        margin-top: 7px;
    }

    .starter-guide[data-stage="browse"] .starter-guide-progress {
        font-size: 21px;
        line-height: 1.4;
    }

    .starter-guide[data-stage="browse"] .starter-guide-copy {
        font-size: 24px;
        line-height: 1.5;
    }

    .starter-guide[data-stage="browse"] .starter-guide-next {
        min-height: 63px;
        font-size: 22.5px;
    }

    .starter-guide.starter-guide-inline {
        width: 100%;
    }

    .starter-review-confirm-content {
        padding: 18px;
    }

    .starter-review-confirm-actions {
        grid-template-columns: 1fr;
    }
}
