/* Tutorials (/onboarding) and setup guide (/onboarding/setup) pages. */
/* ── Layout ──────────────────────────────────────────────────────────── */
body { overflow-x: hidden; }

.ob-nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: rgba(10,10,12,0.85); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border); padding: 0.875rem 0;
}
.ob-nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1100px; margin: 0 auto; padding: 0 2rem;
}
.ob-logo {
    display: flex; align-items: center; gap: 0.6rem;
    font-weight: 800; font-size: 1.1rem; color: #fff; text-decoration: none;
    white-space: nowrap;
}
.ob-logo img { width: 28px; height: 28px; }
.ob-nav-right { display: flex; align-items: center; gap: 1rem; }
.ob-nav-link {
    color: var(--text-dim); font-size: 0.875rem; text-decoration: none;
    transition: color 0.2s;
}
.ob-nav-link:hover { color: #fff; }

.ob-wrap { max-width: 1100px; margin: 0 auto; padding: 0 2rem 6rem; padding-top: 100px; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.ob-hero {
    text-align: center; padding: 3rem 0 4rem;
    border-bottom: 1px solid var(--border); margin-bottom: 4rem;
}
.ob-hero-label {
    display: inline-block; font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px; color: var(--primary-text);
    background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.25);
    padding: 0.35rem 1rem; border-radius: 99px; margin-bottom: 1.5rem;
}
.ob-hero h1 {
    font-size: 3rem; font-weight: 900; color: #fff;
    line-height: 1.1; margin-bottom: 1rem; letter-spacing: -0.02em;
}
.ob-hero h1 span {
    background: var(--primary-fill);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ob-hero p {
    color: var(--text-dim); font-size: 1.1rem; max-width: 560px;
    margin: 0 auto 2.5rem; line-height: 1.7;
}
.ob-hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Section headings ────────────────────────────────────────────────── */
.ob-section { margin-bottom: 5rem; }
.ob-section-header { margin-bottom: 2.5rem; }
.ob-section-label {
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 2px; color: var(--secondary); margin-bottom: 0.5rem;
    display: block;
}
.ob-section-title {
    font-size: 1.75rem; font-weight: 800; color: #fff; margin-bottom: 0.5rem;
}
.ob-section-sub { color: var(--text-dim); font-size: 0.95rem; max-width: 600px; }

/* ── Setup Steps ─────────────────────────────────────────────────────── */
.steps-grid { display: flex; flex-direction: column; gap: 1.25rem; }

.step-card {
    display: flex; gap: 1.75rem; align-items: flex-start;
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 16px; padding: 1.75rem 2rem;
    transition: border-color 0.2s;
}
.step-card:hover { border-color: rgba(139,92,246,0.3); }

.step-num {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
    background: var(--primary-fill);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; font-weight: 800; color: #fff;
}
.step-content { flex: 1; }
.step-title {
    font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.4rem;
}
.step-desc { color: var(--text-dim); font-size: 0.9rem; line-height: 1.65; }
.step-desc strong { color: #e5e7eb; }

.step-sub {
    margin-top: 0.85rem; display: flex; flex-direction: column; gap: 0.4rem;
}
.step-sub-row {
    display: flex; align-items: flex-start; gap: 0.75rem;
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px; padding: 0.6rem 0.9rem;
}
.step-sub-engine {
    flex-shrink: 0; font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    padding: 0.2rem 0.6rem; border-radius: 5px; margin-top: 1px;
}
.engine-unity   { background: rgba(255,255,255,0.08); color: #e5e7eb; }
.engine-godot   { background: rgba(72,199,142,0.12);  color: #6ee7b7; }
.engine-unreal  { background: rgba(239,68,68,0.12);   color: #fca5a5; }
.step-sub-path  { font-size: 0.875rem; color: #cbd5e1; font-family: 'Courier New', monospace; }

.step-note {
    margin-top: 0.75rem; font-size: 0.8rem; color: var(--text-muted);
    padding: 0.5rem 0.75rem; background: rgba(6,182,212,0.04);
    border-left: 2px solid rgba(6,182,212,0.3); border-radius: 0 6px 6px 0;
}

/* ── Engine Tabs ─────────────────────────────────────────────────────── */
.engine-tabs {
    display: flex; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap;
}
.engine-tab {
    padding: 0.55rem 1.25rem; border-radius: 9999px; border: 1px solid var(--border);
    background: none; color: var(--text-dim); font-size: 0.875rem; font-weight: 600;
    cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.engine-tab:hover { color: #fff; border-color: rgba(255,255,255,0.25); }
.engine-tab.active {
    background: var(--primary-fill);
    border-color: transparent; color: #fff;
}
.engine-panel { display: none; }
.engine-panel.active { display: block; }

/* ── Tutorial Cards ───────────────────────────────────────────────────── */
.tut-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 1.25rem;
}
.tut-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 14px; padding: 1.5rem; display: flex; flex-direction: column;
    gap: 0.75rem; transition: all 0.2s; cursor: default;
}
.tut-card:hover {
    border-color: rgba(139,92,246,0.35);
    background: rgba(139,92,246,0.04);
    transform: translateY(-2px);
}
.tut-card-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.2);
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.tut-card-title { font-size: 0.95rem; font-weight: 700; color: #fff; }
.tut-card-desc  { font-size: 0.85rem; color: var(--text-dim); line-height: 1.6; flex: 1; }
.tut-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: auto; }
.tut-tag {
    font-size: 0.68rem; font-weight: 700; padding: 0.2rem 0.55rem;
    border-radius: 5px; text-transform: uppercase; letter-spacing: 0.3px;
    background: rgba(255,255,255,0.05); color: #9ca3af;
    border: 1px solid rgba(255,255,255,0.08);
}
.tutorial-filter-bar {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem;
    margin-bottom: 1rem;
}
.tutorial-filter-bar label {
    display: flex; flex-direction: column; gap: 0.35rem;
    color: #9ca3af; font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.5px; text-transform: uppercase;
}
.tutorial-filter-bar select {
    width: 100%; border-radius: 9px; border: 1px solid var(--border);
    background: #111318; color: #e5e7eb; padding: 0.65rem 0.75rem;
    font: 500 0.82rem Inter, sans-serif;
}
.tutorial-result-count { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 1.2rem; }
.tutorial-card-link { color: inherit; text-decoration: none; cursor: pointer; }
.tutorial-card-topline {
    display: flex; justify-content: space-between; gap: 0.75rem;
    color: #9ca3af; font-size: 0.72rem;
}
.tutorial-path { color: #67e8f9; font-weight: 700; }
.tutorial-time { white-space: nowrap; }
.tutorial-open-label, .related-docs-link {
    color: #c4b5fd; font-size: 0.78rem; font-weight: 700; margin-top: 0.2rem;
}
.related-docs-link { display: inline-flex; }
.tutorial-empty {
    grid-column: 1 / -1; padding: 2rem; border: 1px solid var(--border);
    border-radius: 12px; color: var(--text-dim); text-align: center;
}
#tutorial-detail {
    max-width: 900px; margin: 0 auto 6rem; scroll-margin-top: 90px;
}
#setup-guide.tutorial-detail-mode > .ob-hero,
#setup-guide.tutorial-detail-mode > .ob-section,
#setup-guide.tutorial-detail-mode > .cta-banner {
    display: none;
}
#setup-guide.tutorial-detail-mode > #tutorial-detail {
    display: block;
}
.tutorial-back { display: inline-flex; color: #c4b5fd; margin-bottom: 1.4rem; }
.tutorial-detail-header {
    border-bottom: 1px solid var(--border); padding-bottom: 2rem; margin-bottom: 2rem;
}
.tutorial-detail-header h1 {
    color: #fff; font-size: clamp(2rem, 6vw, 3.4rem); margin: 0.4rem 0 1rem;
    line-height: 1.08;
}
.tutorial-detail-header > p { color: var(--text-dim); font-size: 1.05rem; line-height: 1.7; }
.tutorial-detail-kicker {
    color: var(--secondary); font-size: 0.72rem; font-weight: 800;
    letter-spacing: 1.4px; text-transform: uppercase;
}
.tutorial-media {
    margin: 2rem 0; overflow: hidden; border: 1px solid var(--border);
    border-radius: 16px; background: #111318;
}
.tutorial-media img { display: block; width: 100%; height: auto; }
.tutorial-media video {
    display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
    background: #090b10;
}
.tutorial-media video[hidden] { display: none; }
.tutorial-media-link { display: block; }
.tutorial-media-fallback[hidden] { display: none; }
.tutorial-media-note {
    margin: 0; padding: 0.8rem 1rem 0; color: #cbd5e1;
    font-size: 0.82rem; line-height: 1.55;
}
.tutorial-media figcaption { color: #9ca3af; font-size: 0.78rem; padding: 0.8rem 1rem; }
.tutorial-media figcaption a { display: inline-block; margin-left: 0.45rem; }
.tutorial-block {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 14px; padding: 1.4rem; margin-bottom: 1rem;
}
.tutorial-block h2 { color: #fff; font-size: 1.05rem; margin-bottom: 0.75rem; }
.tutorial-block p, .tutorial-block li { color: var(--text-dim); font-size: 0.9rem; line-height: 1.7; }
.tutorial-block ul { padding-left: 1.2rem; }
.tutorial-block blockquote {
    margin: 0; color: #fff; background: rgba(139,92,246,0.08);
    border-left: 3px solid var(--primary); border-radius: 0 9px 9px 0;
    padding: 1rem 1.1rem; line-height: 1.65;
}
.tutorial-funding { border-color: rgba(6,182,212,0.25); }
.tutorial-steps { list-style: none; padding: 0; display: grid; gap: 0.9rem; }
.tutorial-steps li { display: flex; gap: 0.9rem; align-items: flex-start; }
.tutorial-step-content { min-width: 0; width: 100%; }
.tutorial-step-media { margin: 1rem 0 0; }
.tutorial-step-number {
    flex: 0 0 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center; color: #fff; font-weight: 800;
    background: var(--primary-fill);
}
.tutorial-steps strong { color: #fff; display: block; margin-bottom: 0.25rem; }
.tutorial-steps p { margin: 0; }
.tutorial-steps p span { color: #67e8f9; font-weight: 700; }
.tutorial-two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tutorial-two-column .tutorial-block { margin: 0; }
.tutorial-detail-footer {
    display: flex; align-items: center; justify-content: flex-end; gap: 1.5rem;
    border-top: 1px solid var(--border); margin-top: 2rem; padding-top: 2rem;
}

/* ── Tips Grid ───────────────────────────────────────────────────────── */
.tips-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: 1.25rem;
}
.tip-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 14px; padding: 1.5rem; display: flex; gap: 1rem;
    min-width: 0;
}
.tip-body { min-width: 0; overflow-wrap: anywhere; }
.tip-icon {
    flex-shrink: 0; width: 36px; height: 36px; border-radius: 9px;
    background: rgba(6,182,212,0.08); border: 1px solid rgba(6,182,212,0.2);
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.tip-title { font-size: 0.875rem; font-weight: 700; color: #fff; margin-bottom: 0.35rem; }
.tip-desc  { font-size: 0.825rem; color: var(--text-dim); line-height: 1.6; }

/* ── Resources ───────────────────────────────────────────────────────── */
.resources-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.resource-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 12px; padding: 1.25rem 1.5rem;
    display: flex; align-items: center; gap: 0.75rem;
    text-decoration: none; color: inherit; transition: all 0.2s;
}
.resource-card:hover {
    border-color: rgba(139,92,246,0.4); color: #fff;
    transform: translateY(-1px);
}
.resource-icon { font-size: 1.25rem; }
.resource-label { font-size: 0.875rem; font-weight: 600; color: var(--text-dim); }
.resource-card:hover .resource-label { color: #fff; }
.resource-arrow { margin-left: auto; color: var(--text-muted); font-size: 0.8rem; }

/* ── CTA Banner ──────────────────────────────────────────────────────── */
.cta-banner {
    background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(6,182,212,0.08));
    border: 1px solid rgba(139,92,246,0.25); border-radius: 20px;
    padding: 3rem 2.5rem; text-align: center; margin-top: 2rem;
}
.cta-banner h2 { font-size: 1.75rem; font-weight: 800; color: #fff; margin-bottom: 0.75rem; }
.cta-banner p  { color: var(--text-dim); font-size: 1rem; margin-bottom: 2rem; }

/* ── Prompting Guide ─────────────────────────────────────────────────── */
.prompt-sub-heading {
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.5px; color: #9ca3af; margin-bottom: 1.25rem;
}

.mode-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.mode-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 14px; padding: 1.5rem; display: flex; flex-direction: column;
    gap: 0.6rem; transition: border-color 0.2s;
}
.mode-card:hover { border-color: rgba(139,92,246,0.3); }
.mode-card-icon { font-size: 1.4rem; }
.mode-card-title { font-size: 1rem; font-weight: 800; color: #fff; }
.mode-card-badge {
    display: inline-flex; align-self: flex-start;
    font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.4px; padding: 0.2rem 0.6rem; border-radius: 5px;
    background: rgba(255,255,255,0.06); color: #9ca3af;
    border: 1px solid rgba(255,255,255,0.08);
}
.mode-badge-build {
    background: rgba(139,92,246,0.1); color: #c4b5fd;
    border-color: rgba(139,92,246,0.2);
}
.mode-badge-plan {
    background: rgba(6,182,212,0.08); color: #67e8f9;
    border-color: rgba(6,182,212,0.2);
}
.mode-card-desc { font-size: 0.85rem; color: var(--text-dim); line-height: 1.65; flex: 1; }
.mode-examples { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.25rem; }
.mode-example {
    font-size: 0.8rem; color: #94a3b8; font-style: italic;
    padding: 0.35rem 0.65rem;
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 6px;
}

.starter-prompts { display: flex; flex-direction: column; gap: 0.85rem; }
.starter-row {
    display: flex; gap: 1.25rem; align-items: flex-start;
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 12px; padding: 1.1rem 1.4rem;
    transition: border-color 0.2s;
}
.starter-row:hover { border-color: rgba(139,92,246,0.25); }
.starter-level {
    flex-shrink: 0; font-size: 0.68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.4px;
    padding: 0.25rem 0.65rem; border-radius: 5px; margin-top: 2px;
    white-space: nowrap;
}
.starter-beginner {
    background: rgba(72,199,142,0.1); color: #6ee7b7;
    border: 1px solid rgba(72,199,142,0.2);
}
.starter-experienced {
    background: rgba(139,92,246,0.1); color: #c4b5fd;
    border: 1px solid rgba(139,92,246,0.2);
}
.starter-content { flex: 1; }
.starter-prompt {
    font-size: 0.9rem; color: #e5e7eb; line-height: 1.55;
    margin-bottom: 0.4rem; font-style: italic;
}
.starter-result {
    font-size: 0.825rem; color: var(--text-dim); line-height: 1.55;
}
.starter-result strong { color: #cbd5e1; }

.prompt-callout {
    display: flex; align-items: flex-start; gap: 0.75rem;
    margin-top: 1.5rem; padding: 1rem 1.25rem;
    background: rgba(6,182,212,0.05); border: 1px solid rgba(6,182,212,0.18);
    border-radius: 10px; font-size: 0.875rem; color: #94a3b8; line-height: 1.65;
}
.prompt-callout-icon { flex-shrink: 0; font-size: 1.1rem; margin-top: 1px; }

/* ── Responsive ──────────────────────────────────────────────────────── */
.choice-wrap { max-width: 920px; margin: 0 auto; padding: 130px 2rem 5rem; }
.choice-loading, .choice-error { text-align: center; color: var(--text-dim); padding: 3rem; }
.choice-error { color: #fca5a5; }
.choice-heading { text-align: center; margin-bottom: 2.25rem; }
.choice-heading h2 { color: #fff; font-size: 2.35rem; margin-bottom: 0.75rem; }
.choice-heading p { color: var(--text-dim); line-height: 1.7; max-width: 650px; margin: 0 auto; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.choice-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 18px; padding: 2rem; display: flex; flex-direction: column; }
.choice-card[hidden] { display: none; }
.choice-card h2 { color: #fff; font-size: 1.3rem; margin-bottom: 0.45rem; }
.choice-card .choice-label { color: var(--secondary); font-size: 0.72rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 0.85rem; }
.choice-card p, .choice-card li { color: var(--text-dim); font-size: 0.9rem; line-height: 1.6; }
.choice-card ul { margin: 1rem 0 1.5rem 1.1rem; flex: 1; }
.choice-card button { width: 100%; border: 0; border-radius: 999px; padding: 0.85rem 1rem; color: #fff; background: var(--primary-fill); font: 700 0.9rem Inter, sans-serif; cursor: pointer; }
.choice-card button.secondary { background: #1f2937; border: 1px solid #374151; }
.choice-card button:disabled { cursor: wait; opacity: 0.6; }
.choice-note { text-align: center; color: var(--text-muted); font-size: 0.78rem; margin-top: 1.5rem; line-height: 1.6; }
.choice-success { display: none; text-align: center; background: var(--card-bg); border: 1px solid rgba(74,222,128,.35); border-radius: 18px; padding: 2.5rem; }
.choice-success h2 { color: #fff; margin-bottom: .7rem; }
.choice-success p { color: var(--text-dim); margin-bottom: 1.5rem; }

@media (max-width: 640px) {
    .ob-nav-inner { padding: 0 1rem; }
    .ob-nav-right { gap: 0.4rem; }
    .ob-nav-right .ob-nav-link { display: none; }
    .ob-nav-right .btn { padding: 0.5rem 0.85rem !important; }
    .ob-hero h1 { font-size: 2rem; }
    .step-card { flex-direction: column; gap: 1rem; }
    .ob-wrap { padding-top: 80px; }
    .starter-row { flex-direction: column; gap: 0.6rem; }
    .choice-grid { grid-template-columns: 1fr; }
    .choice-heading h2 { font-size: 1.8rem; }
    .tutorial-filter-bar, .tutorial-two-column { grid-template-columns: 1fr; }
    .tutorial-detail-footer { align-items: stretch; flex-direction: column; }
}
/* ── Start here row ──────────────────────────────────────────────────── */
.ob-start-here-title { font-size: 1.5rem; color: #fff; margin-bottom: 0.5rem; }
.ob-start-here-sub { color: var(--text-dim); margin-bottom: 1.25rem; }
.ob-start-here-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 1rem; }
.ob-start-card { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.25rem 1.4rem; border-radius: 14px; border: 1px solid rgba(124, 106, 247, 0.45); background: rgba(124, 106, 247, 0.08); color: #fff; text-decoration: none; }
.ob-start-card:hover { border-color: var(--primary-text); }
.ob-start-card span { color: var(--text-dim); font-size: 0.9rem; line-height: 1.55; }
.ob-guide #account-onboarding { display: none; }
.ob-guide #setup-guide { display: block !important; }

/* Setup guide page */
.engine-panel-docs { margin: 0 0 1rem; }
.ob-setup-link { margin-top: 2rem; }
