/* Tutorial Overlay */
.tutorial-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,0.75); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.4s ease;
}
.tutorial-overlay.show { opacity: 1; visibility: visible; }

.tutorial-card {
    background: var(--panel-bg, #1a1f2e); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px; padding: 36px 32px 28px; width: 90%; max-width: 680px;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    max-height: 90vh; overflow-y: auto;
}
.tutorial-overlay.show .tutorial-card { transform: translateY(0) scale(1); }

.tutorial-header {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px;
}
.tutorial-header h2 { font-size: 1.5rem; margin: 0; color: #fff; }
.tutorial-close {
    background: none; border: none; color: rgba(255,255,255,0.5); font-size: 1.5rem;
    cursor: pointer; padding: 4px 8px; border-radius: 8px; transition: all 0.2s;
}
.tutorial-close:hover { color: #fff; background: rgba(255,255,255,0.1); }

.tutorial-canvas-wrap {
    background: rgba(0,0,0,0.3); border-radius: 12px; padding: 12px;
    display: flex; justify-content: center; margin-bottom: 20px;
}
.tutorial-canvas-wrap canvas {
    border-radius: 8px; max-width: 100%; height: auto;
}

.tutorial-step-title {
    font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 8px;
}

.tutorial-step-desc {
    color: rgba(255,255,255,0.75); line-height: 1.6; font-size: 0.95rem; margin-bottom: 16px;
}
.tutorial-step-desc strong { color: #53a6f5; }
.tutorial-step-desc .highlight { color: #4ade80; font-weight: 600; }
.tutorial-step-desc .warning { color: #f59e0b; font-weight: 600; }

.tutorial-tips {
    background: rgba(83,166,245,0.08); border: 1px solid rgba(83,166,245,0.15);
    border-radius: 10px; padding: 12px 16px; margin-bottom: 20px;
}
.tutorial-tips h4 {
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px;
    color: #53a6f5; margin: 0 0 8px;
}
.tutorial-tips ul { margin: 0; padding-left: 18px; }
.tutorial-tips li {
    color: rgba(255,255,255,0.7); font-size: 0.875rem; line-height: 1.5; margin-bottom: 4px;
}

.tutorial-nav {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.tutorial-dots {
    display: flex; gap: 6px; justify-content: center; flex: 1;
}
.tutorial-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.2); cursor: pointer; transition: all 0.3s;
}
.tutorial-dot.active { background: #53a6f5; transform: scale(1.3); }
.tutorial-dot:hover { background: rgba(255,255,255,0.4); }

.tutorial-nav button {
    padding: 10px 24px; border-radius: 10px; font-weight: 600; font-size: 0.9rem;
    cursor: pointer; transition: all 0.2s; border: none; min-width: 100px;
}
.tutorial-nav button:disabled { opacity: 0.3; cursor: default; }
#tutorial-prev {
    background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7);
}
#tutorial-prev:hover:not(:disabled) { background: rgba(255,255,255,0.15); }
#tutorial-next {
    background: #53a6f5; color: #fff;
}
#tutorial-next:hover { background: #3b8de0; }

.tutorial-step-counter {
    font-size: 0.75rem; color: rgba(255,255,255,0.4); text-align: center;
    margin-top: 12px;
}
