.tutorial-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0, 0, 0, 0.52);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.tutorial-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.tutorial-highlight {
    position: fixed;
    z-index: 501;
    border: 2px solid rgba(34, 197, 94, 0.9);
    border-radius: 14px;
    box-shadow:
        0 0 0 9999px rgba(0, 0, 0, 0.52),
        0 0 0 4px rgba(34, 197, 94, 0.12),
        0 0 28px rgba(34, 197, 94, 0.35);
    pointer-events: none;
    transition:
        left   0.28s cubic-bezier(0.4, 0, 0.2, 1),
        top    0.28s cubic-bezier(0.4, 0, 0.2, 1),
        width  0.28s cubic-bezier(0.4, 0, 0.2, 1),
        height 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.tutorial-card {
    position: fixed;
    z-index: 502;
    width: min(360px, calc(100vw - 28px));
    padding: 18px;
    border: 1px solid rgba(34, 197, 94, 0.34);
    border-radius: 14px;
    background: rgba(5, 14, 9, 0.96);
    color: var(--text, #e8f5ee);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    transition:
        left 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        top  0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.tutorial-kicker {
    color: var(--green, #22c55e);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.tutorial-title {
    margin: 0 0 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    line-height: 1.15;
    letter-spacing: 0;
}

.tutorial-text {
    margin: 0;
    color: rgba(232, 245, 238, 0.72);
    font-size: 13px;
    line-height: 1.65;
}

.tutorial-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
}

.tutorial-progress {
    color: rgba(232, 245, 238, 0.46);
    font-family: 'Space Mono', monospace;
    font-size: 11px;
}

.tutorial-buttons {
    display: flex;
    gap: 8px;
}

.tutorial-btn {
    min-height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(232, 245, 238, 0.76);
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    padding: 0 13px;
    text-transform: uppercase;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.tutorial-btn:hover,
.tutorial-btn:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
    outline: none;
}

.tutorial-btn.primary {
    background: var(--green, #22c55e);
    border-color: var(--green, #22c55e);
    color: #03120a;
}

.tutorial-btn.primary:hover,
.tutorial-btn.primary:focus-visible {
    background: #2ee675;
    border-color: #2ee675;
    color: #03120a;
}

@media (max-width: 760px) {
    .tutorial-card {
        left: 14px !important;
        right: 14px;
        bottom: 16px;
        top: auto !important;
        width: auto;
    }

    .tutorial-title {
        font-size: 18px;
    }

    .tutorial-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .tutorial-buttons {
        justify-content: flex-end;
    }
}
