/* ===== INTRODUÇÃO — ONBOARDING SLIDES ===== */

body.intro-page {
    overflow: hidden;
    background: #1e1e2e;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== CONTAINER ===== */
.intro-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(137, 180, 250, 0.06), transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(166, 227, 161, 0.04), transparent 60%),
        #1e1e2e;
}

/* ===== SLIDE ===== */
.intro-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
    opacity: 0;
    transform: translateX(80px);
    transition: all 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    will-change: transform, opacity;
}

.intro-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.intro-slide.exit-left {
    opacity: 0;
    transform: translateX(-80px);
    pointer-events: none;
}

/* ===== SLIDE CONTENT ===== */
.slide-emoji {
    font-size: 80px;
    display: block;
    margin-bottom: 24px;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
}

.slide-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    color: #cdd6f4;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    max-width: 700px;
}

.slide-title .highlight {
    color: #89b4fa;
}

.slide-title .highlight-green {
    color: #a6e3a1;
}

.slide-title .highlight-yellow {
    color: #f9e2af;
}

.slide-title .highlight-peach {
    color: #fab387;
}

.slide-text {
    font-size: clamp(15px, 2.5vw, 19px);
    color: #a6adc8;
    line-height: 1.65;
    max-width: 560px;
    margin-bottom: 32px;
}

.intro-credit {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(49, 50, 68, 0.52);
    border: 1px solid rgba(137, 180, 250, 0.24);
}

.intro-credit-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #89b4fa;
    font-weight: 700;
}

.intro-credit-name {
    font-size: 16px;
    color: #f9e2af;
    font-weight: 800;
}

.intro-credit-tagline {
    font-size: 13px;
    color: #bac2de;
}

/* ===== ILLUSTRATION BLOCKS ===== */
.slide-illustration {
    margin: 20px 0 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Recipe / instruction card */
.illust-card {
    background: rgba(49, 50, 68, 0.6);
    border: 1px solid rgba(69, 71, 90, 0.6);
    border-radius: 16px;
    padding: 24px 32px;
    max-width: 360px;
    backdrop-filter: blur(10px);
    text-align: left;
}

.illust-card-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6c7086;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.illust-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 15px;
    color: #bac2de;
    line-height: 1.4;
}

.illust-step .step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(137, 180, 250, 0.12);
    color: #89b4fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

.illust-step.step-wrong .step-num {
    background: rgba(243, 139, 168, 0.12);
    color: #f38ba8;
}

.illust-step.step-wrong {
    color: #f38ba8;
    text-decoration: line-through;
    opacity: 0.7;
}

/* Code bubble */
.code-bubble {
    position: relative;
    background: rgba(49, 50, 68, 0.8);
    border: 1px solid rgba(69, 71, 90, 0.8);
    border-radius: 12px;
    padding: 14px 24px;
    font-family: var(--font-mono);
    font-size: clamp(16px, 3vw, 22px);
    font-weight: 600;
    color: #cdd6f4;
    backdrop-filter: blur(10px);
    margin: 8px 0;
}

.code-bubble::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(49, 50, 68, 0.8);
}

.code-bubble .cb-func {
    color: #89dceb;
}

.code-bubble .cb-paren {
    color: #f9e2af;
}

.code-bubble .cb-keyword {
    color: #cba6f7;
}

.code-bubble .cb-string {
    color: #a6e3a1;
}

.code-bubble .cb-number {
    color: #fab387;
}

/* Speech callout */
.speech-bubble {
    position: relative;
    background: rgba(137, 180, 250, 0.12);
    border: 1px solid rgba(137, 180, 250, 0.2);
    border-radius: 14px;
    padding: 14px 22px;
    font-size: 15px;
    color: #bac2de;
    max-width: 520px;
    line-height: 1.55;
    margin: 8px 0;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(137, 180, 250, 0.12);
}

.speech-bubble strong {
    color: #cdd6f4;
}

/* Side-by-side layout */
.slide-split {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 20px 0 32px;
    max-width: 680px;
}

.slide-split-visual {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 20px;
    background: rgba(49, 50, 68, 0.4);
    border: 1px solid rgba(69, 71, 90, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
}

.slide-split-text {
    text-align: left;
    font-size: 18px;
    color: #a6adc8;
    line-height: 1.65;
}

.slide-split-text strong {
    color: #cdd6f4;
}

/* Grid visual (game preview) */
.mini-grid {
    display: grid;
    grid-template-columns: repeat(5, 48px);
    grid-template-rows: repeat(2, 48px);
    gap: 3px;
    margin: 16px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #313244;
}

.mini-cell {
    background: #181825;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
}

.mini-cell.ground {
    background: #363a4f;
}

.mini-cell.player {
    background: rgba(137, 180, 250, 0.1);
}

.mini-cell.treasure {
    background: rgba(249, 226, 175, 0.08);
}

.mini-arrow {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 20px;
    color: #585b70;
}

.mini-arrow .arr-active {
    color: #a6e3a1;
    font-weight: bold;
}

/* Animated player movement demo */
.demo-track {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 16px 0;
    padding: 12px;
    border-radius: 12px;
    background: rgba(24, 24, 37, 0.8);
    border: 1px solid #313244;
}

.demo-cell {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border-radius: 8px;
    position: relative;
    transition: background 0.3s;
}

.demo-cell.has-player {
    background: rgba(137, 180, 250, 0.08);
}

.demo-cell.has-treasure {
    background: rgba(249, 226, 175, 0.06);
}

.demo-player {
    position: absolute;
    font-size: 28px;
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Command line highlight during demo */
.demo-cmd-line.active {
    background: rgba(137, 180, 250, 0.08);
    color: #cdd6f4 !important;
}

/* ===== BOTTOM NAVIGATION ===== */
.intro-nav {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 10;
}

.intro-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #45475a;
    background: rgba(49, 50, 68, 0.6);
    color: #89b4fa;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
}

.intro-nav-btn:hover:not(:disabled) {
    background: rgba(137, 180, 250, 0.12);
    border-color: #89b4fa;
    transform: scale(1.05);
}

.intro-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.intro-progress {
    font-size: 14px;
    font-weight: 700;
    color: #6c7086;
    min-width: 60px;
    text-align: center;
    letter-spacing: 0.02em;
}

/* ===== DOTS PROGRESS ===== */
.intro-dots {
    position: absolute;
    bottom: 88px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.intro-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #45475a;
    transition: all 0.3s;
}

.intro-dot.active {
    background: #89b4fa;
    width: 24px;
    border-radius: 4px;
}

.intro-dot.completed {
    background: #a6e3a1;
}

/* ===== SKIP BUTTON ===== */
.intro-skip {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 10;
    color: #585b70;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.intro-skip:hover {
    color: #bac2de;
    background: rgba(255, 255, 255, 0.04);
}

/* ===== CTA BUTTON (last slide) ===== */
.intro-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 14px;
    background: #a6e3a1;
    color: #1e1e2e;
    font-size: 17px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 24px rgba(166, 227, 161, 0.2);
}

.intro-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(166, 227, 161, 0.35);
    background: #b5eab3;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .intro-slide {
        padding: 50px 24px 100px;
    }

    .slide-split {
        flex-direction: column;
        gap: 20px;
    }

    .slide-split-visual {
        width: 140px;
        height: 140px;
        font-size: 60px;
    }

    .slide-split-text {
        text-align: center;
        font-size: 15px;
    }

    .illust-card {
        padding: 18px 22px;
        max-width: 300px;
    }

    .mini-grid {
        grid-template-columns: repeat(5, 40px);
        grid-template-rows: repeat(2, 40px);
    }

    .demo-cell {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .slide-emoji {
        font-size: 56px;
    }

    .intro-credit {
        width: min(90vw, 420px);
        padding: 10px 14px;
    }

    .intro-credit-tagline {
        font-size: 12px;
    }

    .intro-nav {
        bottom: 20px;
    }

    .intro-dots {
        bottom: 72px;
    }
}
