/* ==========================================================================
   AI-lemi Koru (ailemikoru.com) — v6.0.0
   İnteraktif Oyun Mimarisi, Animasyonlu Açılış Sinematiği, Canlı Hikaye Tiyatrosu
   ve Adım Adım Seviye Atlama Haritası (Motion.dev + KokonutUI + Bklit + Manus)
   ========================================================================== */
@layer reset, tokens, base, layout, components, animations, utilities;

@layer reset {
    *, *::before, *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    html {
        color-scheme: dark light;
        scroll-behavior: smooth;
        -webkit-text-size-adjust: 100%;
    }

    img, svg, video, canvas {
        display: block;
        max-inline-size: 100%;
    }

    button, input, select, textarea {
        font: inherit;
        color: inherit;
    }
}

@layer tokens {
    :root {
        /* Oyun Dünyası Koyu Uzay & Zümrüt/Altın Paleti */
        --bg-canvas: #060a12;
        --bg-surface: #0c1322;
        --bg-card: rgba(16, 25, 43, 0.86);
        --bg-card-solid: #111b2e;
        --bg-subtle: #17243d;
        --bg-glass: rgba(12, 19, 34, 0.82);
        --bg-pill-nav: rgba(14, 22, 38, 0.88);

        /* Metin Hiyerarşisi */
        --text-primary: #f8fafc;
        --text-secondary: #cbd5e1;
        --text-muted: #94a3b8;

        /* Canlı Oyun Vurgu Renkleri */
        --accent-emerald: #10b981;
        --accent-emerald-glow: rgba(16, 185, 129, 0.32);
        --accent-cyan: #06b6d4;
        --accent-cyan-glow: rgba(6, 182, 212, 0.28);
        --accent-amber: #f59e0b;
        --accent-yellow: #ffbe0b;
        --accent-coral: #f43f5e;
        --accent-violet: #8b5cf6;
        --accent-lime: #84cc16;

        /* Uyumluluk Değişkenleri */
        --brand-primary: #10b981;
        --brand-secondary: #06b6d4;
        --hex-red-1: #f43f5e;
        --hex-orange-1: #fb923c;
        --hex-yellow-1: #ffbe0b;
        --hex-turquoise-1: #10b981;
        --hex-cyan-1: #06b6d4;
        --hex-purple-1: #8b5cf6;
        --hex-lime-1: #84cc16;
        --emerald-600: #10b981;
        --amber-500: #f59e0b;
        --amber-600: #d97706;
        --amber-700: #b45309;
        --rose-600: #f43f5e;
        --blue-600: #0284c7;
        --blue-700: #0369a1;
        --slate-600: #475569;
        --slate-700: #334155;
        --slate-900: #0f172a;

        /* Kenarlıklar & Spotlight */
        --border-ui: rgba(148, 163, 184, 0.16);
        --border-strong: rgba(148, 163, 184, 0.28);
        --spotlight-color: rgba(16, 185, 129, 0.14);
        --spotlight-border: rgba(6, 182, 212, 0.5);

        /* Tipografi */
        --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
        --font-mono: 'JetBrains Mono', ui-monospace, monospace;

        /* Yuvarlatma & Gölgeler */
        --radius-card: 1.4rem;
        --radius-inner: 1rem;
        --radius-pill: 999px;
        --shadow-card: 0 20px 45px -12px rgba(2, 6, 23, 0.7), 0 0 0 1px var(--border-ui);
        --shadow-glow: 0 12px 32px -6px rgba(16, 185, 129, 0.4);

        /* Yaylanma (Spring) Eğrileri */
        --ease-spring: cubic-bezier(0.22, 1.25, 0.36, 1);
        --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    }

    html[data-theme="light"] {
        color-scheme: light;
        --bg-canvas: #f4f7fb;
        --bg-surface: #ffffff;
        --bg-card: rgba(255, 255, 255, 0.95);
        --bg-card-solid: #ffffff;
        --bg-subtle: #eaf0f8;
        --bg-glass: rgba(255, 255, 255, 0.9);
        --bg-pill-nav: rgba(255, 255, 255, 0.94);

        --text-primary: #0f172a;
        --text-secondary: #334155;
        --text-muted: #64748b;

        --border-ui: rgba(15, 23, 42, 0.1);
        --border-strong: rgba(15, 23, 42, 0.22);
        --spotlight-color: rgba(16, 185, 129, 0.09);
        --spotlight-border: rgba(16, 185, 129, 0.5);
        --shadow-card: 0 14px 34px -10px rgba(15, 23, 42, 0.09), 0 0 0 1px var(--border-ui);
    }
}

@layer base {
    body {
        background-color: var(--bg-canvas);
        background-image:
            radial-gradient(ellipse 85% 55% at 50% -15%, rgba(16, 185, 129, 0.16), transparent 70%),
            radial-gradient(ellipse 65% 45% at 90% 10%, rgba(6, 182, 212, 0.12), transparent 65%),
            radial-gradient(ellipse 55% 45% at 10% 40%, rgba(139, 92, 246, 0.1), transparent 65%);
        color: var(--text-primary);
        font-family: var(--font-sans);
        font-size: clamp(0.96rem, 0.92rem + 0.22vw, 1.06rem);
        line-height: 1.62;
        min-block-size: 100dvh;
        overflow-x: hidden;
        padding-block-end: env(safe-area-inset-bottom, 0px);
    }

    h1, h2, h3, h4 {
        color: var(--text-primary);
        font-weight: 800;
        line-height: 1.16;
        letter-spacing: -0.025em;
        text-wrap: balance;
    }

    p, li {
        text-wrap: pretty;
    }

    a {
        color: inherit;
        text-decoration: none;
        transition: color 0.2s ease, opacity 0.2s ease;
    }

    :focus-visible {
        outline: 3px solid var(--accent-cyan);
        outline-offset: 3px;
    }
}

@layer layout {
    .container {
        width: min(100% - 2rem, 78rem);
        margin-inline: auto;
    }

    .container-narrow {
        width: min(100% - 2rem, 60rem);
        margin-inline: auto;
    }

    .section-block {
        padding-block: clamp(2.25rem, 4vw, 4rem);
        position: relative;
    }

    .split-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
        gap: clamp(1rem, 2.2vw, 1.65rem);
        align-items: stretch;
    }
}

@layer components {
    /* ==========================================================================
       1. OYUN AÇILIŞ SİNEMATİĞİ (GAME INTRO CUTSCENE OVERLAY)
       (@starting-style + transition-behavior: allow-discrete)
       ========================================================================== */
    .opening-splash {
        position: fixed;
        inset: 0;
        z-index: 9999;
        background: radial-gradient(circle at 50% 30%, #101f38 0%, #050811 100%);
        color: #f8fafc;
        display: none;
        place-items: center;
        padding: 1rem;
        opacity: 0;
        scale: 1.03;
        transition:
            opacity 0.5s var(--ease-out-expo),
            scale 0.5s var(--ease-out-expo),
            display 0.5s allow-discrete;
    }

    .opening-splash[data-open] {
        display: grid;
        opacity: 1;
        scale: 1;
    }

    @starting-style {
        .opening-splash[data-open] {
            opacity: 0;
            scale: 0.95;
        }
    }

    .opening-splash[data-closing] {
        opacity: 0;
        scale: 0.95;
        pointer-events: none;
    }

    .cutscene-window {
        max-inline-size: 46rem;
        width: 100%;
        background: rgba(15, 24, 42, 0.92);
        border: 2px solid rgba(16, 185, 129, 0.5);
        border-radius: 1.75rem;
        padding: clamp(1.25rem, 3.5vw, 2.25rem);
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 70px rgba(16, 185, 129, 0.25);
        backdrop-filter: blur(22px);
        position: relative;
        overflow: hidden;
    }

    .cutscene-topbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
        flex-wrap: wrap;
        margin-block-end: 1rem;
        padding-block-end: 0.75rem;
        border-block-end: 1px solid rgba(255, 255, 255, 0.12);
    }

    .cutscene-stage-screen {
        position: relative;
        background: radial-gradient(circle at 50% 55%, rgba(16, 185, 129, 0.18), rgba(7, 11, 20, 0.95));
        border: 1.5px solid rgba(6, 182, 212, 0.35);
        border-radius: 1.35rem;
        padding: clamp(1.1rem, 2.5vw, 1.65rem);
        min-block-size: 16.5rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        text-align: center;
        overflow: hidden;
    }

    .cutscene-actors-row {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: clamp(1rem, 3vw, 2.25rem);
        margin-block: 0.5rem 1rem;
        position: relative;
        z-index: 2;
    }

    .cutscene-actor {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.35rem;
    }

    .cutscene-avatar-orb {
        inline-size: 4.6rem;
        block-size: 4.6rem;
        border-radius: 50%;
        background: rgba(16, 185, 129, 0.18);
        border: 2.5px solid #10b981;
        display: grid;
        place-items: center;
        font-size: 2.3rem;
        box-shadow: 0 0 28px rgba(16, 185, 129, 0.4);
    }

    .cutscene-avatar-orb.orb-cyan {
        background: rgba(6, 182, 212, 0.18);
        border-color: #06b6d4;
        box-shadow: 0 0 28px rgba(6, 182, 212, 0.4);
    }

    .cutscene-avatar-orb.orb-gold {
        background: rgba(255, 190, 11, 0.18);
        border-color: #ffbe0b;
        box-shadow: 0 0 28px rgba(255, 190, 11, 0.4);
    }

    .cutscene-actor-name {
        font-size: 0.76rem;
        font-weight: 800;
        color: #94a3b8;
        background: rgba(15, 23, 42, 0.8);
        padding: 0.15rem 0.6rem;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.12);
    }

    .cutscene-speech-box {
        background: rgba(15, 23, 42, 0.92);
        border: 1.5px solid rgba(16, 185, 129, 0.5);
        border-radius: 1.1rem;
        padding: 0.95rem 1.25rem;
        max-inline-size: 38rem;
        width: 100%;
        position: relative;
        z-index: 2;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    }

    .cutscene-slide-dots {
        display: flex;
        justify-content: center;
        gap: 0.55rem;
        margin-block: 1rem;
    }

    .cutscene-dot-btn {
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #cbd5e1;
        padding: 0.38rem 0.85rem;
        border-radius: 999px;
        font-size: 0.8rem;
        font-weight: 800;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .cutscene-dot-btn.active {
        background: #10b981;
        color: #03150f;
        border-color: #6ee7b7;
        scale: 1.05;
    }

    /* ==========================================================================
       2. OYUN HUD ÜST ÇUBUĞU VE KOKONUTUI YÜZEN KAPSÜL MENÜ
       ========================================================================== */
    .top-cyber-bar {
        background: rgba(16, 185, 129, 0.1);
        border-block-end: 1px solid var(--border-ui);
        font-size: 0.82rem;
        padding-block: 0.45rem;
    }

    .top-cyber-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .live-pulse-tag {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        font-weight: 800;
        color: var(--text-primary);
    }

    .pulse-dot {
        inline-size: 0.6rem;
        block-size: 0.6rem;
        border-radius: 50%;
        background: var(--accent-emerald);
        box-shadow: 0 0 12px var(--accent-emerald);
        animation: pulseGlow 2s infinite;
    }

    .top-status-cluster {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        flex-wrap: wrap;
    }

    .motion-btn, .theme-btn, .sound-btn {
        background: var(--bg-subtle);
        border: 1px solid var(--border-strong);
        color: var(--text-primary);
        padding: 0.32rem 0.75rem;
        border-radius: var(--radius-pill);
        font-size: 0.78rem;
        font-weight: 800;
        cursor: pointer;
        min-block-size: 2.05rem;
        transition: background 0.2s ease, border-color 0.2s ease, translate 0.2s var(--ease-spring);
    }

    .main-navbar {
        position: sticky;
        top: 0.6rem;
        z-index: 100;
        padding-inline: 0.75rem;
        margin-block-start: 0.6rem;
    }

    .nav-inner {
        background: var(--bg-pill-nav);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border: 1.5px solid var(--border-strong);
        border-radius: 1.3rem;
        padding: 0.6rem 1.1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.85rem;
        flex-wrap: wrap;
        box-shadow: 0 14px 35px -10px rgba(0, 0, 0, 0.45);
    }

    .brand-logo {
        display: inline-flex;
        align-items: center;
        gap: 0.7rem;
        font-weight: 900;
        font-size: 1.22rem;
        letter-spacing: -0.03em;
    }

    .brand-shield-icon {
        inline-size: 2.6rem;
        block-size: 2.6rem;
        border-radius: 0.85rem;
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.25));
        border: 1.5px solid rgba(16, 185, 129, 0.5);
        display: grid;
        place-items: center;
        font-size: 1.4rem;
    }

    .brand-ai-highlight {
        background: linear-gradient(135deg, #10b981, #06b6d4);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

    .brand-red-dot {
        color: var(--accent-emerald);
    }

    .brand-tagline {
        display: block;
        font-size: 0.72rem;
        font-weight: 700;
        color: var(--text-muted);
        letter-spacing: 0;
    }

    .nav-links {
        display: flex;
        align-items: center;
        gap: 0.3rem;
        flex-wrap: wrap;
        background: var(--bg-subtle);
        padding: 0.28rem;
        border-radius: var(--radius-pill);
        border: 1px solid var(--border-ui);
    }

    .nav-link {
        padding: 0.45rem 0.9rem;
        border-radius: var(--radius-pill);
        font-size: 0.88rem;
        font-weight: 700;
        color: var(--text-secondary);
        transition: background 0.22s ease, color 0.22s ease, scale 0.22s var(--ease-spring);
    }

    .nav-link.active {
        background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan));
        color: #03150f;
        font-weight: 800;
        box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    }

    .nav-actions {
        display: flex;
        align-items: center;
        gap: 0.55rem;
    }

    .user-xp-chip {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        background: rgba(16, 185, 129, 0.14);
        border: 1px solid rgba(16, 185, 129, 0.4);
        padding: 0.42rem 0.85rem;
        border-radius: var(--radius-pill);
        font-size: 0.85rem;
        font-weight: 800;
        color: var(--text-primary);
    }

    /* ==========================================================================
       3. OYUN BUTONLARI (TACTILE GAME BUTTONS)
       ========================================================================== */
    .btn-primary-glow {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.55rem;
        background: linear-gradient(135deg, #10b981 0%, #059669 50%, #06b6d4 100%);
        color: #03150f;
        font-weight: 900;
        font-size: 0.95rem;
        padding: 0.75rem 1.4rem;
        min-block-size: 2.9rem;
        border-radius: var(--radius-pill);
        border: 1.5px solid rgba(255, 255, 255, 0.32);
        box-shadow: var(--shadow-glow);
        cursor: pointer;
        transition:
            translate 0.25s var(--ease-spring),
            scale 0.25s var(--ease-spring),
            box-shadow 0.25s ease;
    }

    .btn-primary-glow:active {
        scale: 0.96;
    }

    .btn-secondary-glass {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        background: var(--bg-subtle);
        color: var(--text-primary);
        font-weight: 800;
        font-size: 0.9rem;
        padding: 0.68rem 1.2rem;
        min-block-size: 2.85rem;
        border-radius: var(--radius-pill);
        border: 1px solid var(--border-strong);
        cursor: pointer;
        transition:
            translate 0.25s var(--ease-spring),
            background 0.2s ease,
            border-color 0.2s ease;
    }

    /* ==========================================================================
       4. ANASAYFA CANLI ANİMASYON TİYATROSU & OYUN SAHNESİ
       ("Sitenin Ne İşe Yaradığını Anlatan Hareketli Animasyon + Canlı Mini-Oyun")
       ========================================================================== */
    .home-game-theater-section {
        padding-block: clamp(1.25rem, 2.5vw, 2.25rem);
    }

    .theater-master-frame {
        background: var(--bg-card);
        border: 2px solid rgba(16, 185, 129, 0.45);
        border-radius: 1.75rem;
        overflow: hidden;
        box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.7), 0 0 50px rgba(16, 185, 129, 0.14);
        backdrop-filter: blur(18px);
    }

    /* Tiyatro Üst Kontrol & Sesli Anlatım Çubuğu */
    .theater-hud-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.85rem;
        flex-wrap: wrap;
        padding: 0.85rem 1.35rem;
        background: rgba(11, 18, 32, 0.85);
        border-block-end: 1px solid var(--border-ui);
    }

    .theater-live-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        font-weight: 900;
        font-size: 0.86rem;
        color: #6ee7b7;
    }

    .theater-controls-cluster {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .voice-narrate-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        background: linear-gradient(135deg, #f59e0b, #ea580c);
        color: #ffffff;
        border: none;
        padding: 0.42rem 0.95rem;
        border-radius: 999px;
        font-size: 0.8rem;
        font-weight: 800;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    }

    /* Tiyatro Ana Gövde: Sol Canlı Animasyon Sahnesi + Sağ Hızlı Görev & Mini Oyun */
    .theater-body-grid {
        display: grid;
        grid-template-columns: 1.25fr 0.75fr;
        min-block-size: 25rem;
    }

    .cartoon-stage-viewport {
        position: relative;
        padding: clamp(1.25rem, 3vw, 2rem);
        background:
            radial-gradient(circle at 50% 45%, rgba(16, 185, 129, 0.16), transparent 65%),
            linear-gradient(180deg, #09111f 0%, #0d182c 100%);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        overflow: hidden;
        border-inline-end: 1px solid var(--border-ui);
    }

    /* Arka Plan 84-Noktalı Dalga Izgarası */
    .stagger-grid-container {
        position: absolute;
        inset: 0.75rem;
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: repeat(7, 1fr);
        gap: 0.5rem;
        place-items: center;
        pointer-events: none;
        opacity: 0.45;
    }

    .stagger-dot {
        inline-size: 0.5rem;
        block-size: 0.5rem;
        border-radius: 50%;
        background: rgba(16, 185, 129, 0.45);
        pointer-events: auto;
    }

    /* Sahne Üst Başlık Bandı */
    .scene-story-header {
        position: relative;
        z-index: 2;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    /* Sahne Ortası: Animasyonlu Karakterler ve Etkileşimli Kalkan Görseli */
    .cartoon-actors-arena {
        position: relative;
        z-index: 2;
        margin-block: 1.1rem;
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 1rem;
        min-block-size: 10.5rem;
    }

    .stage-character-card {
        background: rgba(15, 23, 42, 0.85);
        border: 1.5px solid rgba(255, 255, 255, 0.16);
        border-radius: 1.15rem;
        padding: 0.85rem;
        text-align: center;
        backdrop-filter: blur(8px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    }

    .stage-char-emoji {
        font-size: 2.5rem;
        line-height: 1.1;
        margin-block-end: 0.25rem;
        display: inline-block;
    }

    .stage-char-role {
        display: block;
        font-size: 0.75rem;
        font-weight: 800;
        color: #94a3b8;
        margin-block-end: 0.25rem;
    }

    .stage-char-bubble {
        font-size: 0.84rem;
        font-weight: 700;
        color: #f8fafc;
        background: rgba(255, 255, 255, 0.07);
        padding: 0.45rem 0.65rem;
        border-radius: 0.75rem;
    }

    /* Merkezdeki Canlı SVG Kalkan ve Tarayıcı */
    .stage-center-shield-hub {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .anime-hero-svg {
        inline-size: 6.4rem;
        block-size: 6.4rem;
        filter: drop-shadow(0 0 22px rgba(16, 185, 129, 0.45));
    }

    .shield-status-pill {
        margin-block-start: 0.35rem;
        background: rgba(16, 185, 129, 0.22);
        border: 1px solid #10b981;
        color: #6ee7b7;
        font-size: 0.74rem;
        font-weight: 900;
        padding: 0.22rem 0.7rem;
        border-radius: 999px;
        white-space: nowrap;
    }

    /* Sahne Altı: Konuşan Anlatıcı Kutusu (Sitenin Ne İşe Yaradığını Anlatan Kısım) */
    .stage-narrator-box {
        position: relative;
        z-index: 2;
        background: rgba(12, 19, 34, 0.94);
        border: 1.5px solid rgba(16, 185, 129, 0.5);
        border-radius: 1.15rem;
        padding: 1rem 1.25rem;
        display: flex;
        align-items: center;
        gap: 1rem;
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
    }

    .narrator-bot-icon {
        inline-size: 3.2rem;
        block-size: 3.2rem;
        border-radius: 0.95rem;
        background: linear-gradient(135deg, #10b981, #06b6d4);
        display: grid;
        place-items: center;
        font-size: 1.75rem;
        flex-shrink: 0;
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    }

    /* 5 Sahne Seçici Sekmeler (1. Site Ne İşe Yarar? -> 2. Fotoğraf -> 3. Oyun -> 4. AI -> 5. Değerler) */
    .story-tabs-strip {
        position: relative;
        z-index: 2;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 0.45rem;
        margin-block-start: 0.9rem;
    }

    .story-tab-btn {
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.14);
        color: #cbd5e1;
        padding: 0.55rem 0.5rem;
        border-radius: 0.8rem;
        font-size: 0.76rem;
        font-weight: 800;
        cursor: pointer;
        text-align: center;
        transition: all 0.2s ease;
    }

    .story-tab-btn.active {
        background: rgba(16, 185, 129, 0.24);
        border-color: #10b981;
        color: #ffffff;
        box-shadow: 0 0 0 1px #10b981;
    }

    /* Sağ Sütun: Canlı Mini-Oyun & Hemen Başla Konsolu */
    .theater-side-console {
        padding: clamp(1.25rem, 2.5vw, 1.75rem);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 1.1rem;
        background: var(--bg-surface);
    }

    .mini-game-card {
        background: var(--bg-subtle);
        border: 1.5px solid var(--border-strong);
        border-radius: 1.2rem;
        padding: 1.15rem;
    }

    .mini-opt-btn {
        width: 100%;
        text-align: start;
        padding: 0.72rem 0.95rem;
        margin-block-start: 0.5rem;
        border-radius: 0.85rem;
        border: 1.5px solid var(--border-strong);
        background: var(--bg-card-solid);
        color: var(--text-primary);
        font-weight: 800;
        font-size: 0.86rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 0.6rem;
        transition: all 0.2s ease;
    }

    .mini-opt-btn.correct {
        background: rgba(16, 185, 129, 0.22);
        border-color: #10b981;
        color: #6ee7b7;
    }

    .mini-opt-btn.wrong {
        background: rgba(244, 63, 94, 0.2);
        border-color: #f43f5e;
        color: #fda4af;
    }

    /* ==========================================================================
       5. OYUN DÜNYASI SEVİYE HARİTASI (STEP-BY-STEP GAME LEVEL MAP)
       ========================================================================== */
    .guided-roadmap-section {
        padding-block: clamp(2rem, 3.5vw, 3rem);
    }

    .roadmap-header-card {
        background: var(--bg-card);
        border: 1.5px solid var(--border-strong);
        border-radius: var(--radius-card);
        padding: clamp(1.25rem, 2.5vw, 1.85rem);
        margin-block-end: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
        flex-wrap: wrap;
        box-shadow: var(--shadow-card);
    }

    .bklit-radial-cluster {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .bklit-ring-svg {
        inline-size: 4.6rem;
        block-size: 4.6rem;
        rotate: -90deg;
    }

    .bklit-ring-bg {
        fill: none;
        stroke: var(--bg-subtle);
        stroke-width: 8;
    }

    .bklit-ring-fill {
        fill: none;
        stroke: url(#shieldGrad);
        stroke-width: 8;
        stroke-linecap: round;
        transition: stroke-dashoffset 1s var(--ease-out-expo);
    }

    .steps-journey-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr));
        gap: 1.15rem;
        position: relative;
    }

    .step-node-card {
        position: relative;
        background: var(--bg-card);
        border: 2px solid var(--border-ui);
        border-radius: 1.35rem;
        padding: 1.3rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 0.9rem;
        box-shadow: var(--shadow-card);
        overflow: hidden;
        transition:
            translate 0.3s var(--ease-spring),
            border-color 0.25s ease,
            box-shadow 0.25s ease;
    }

    .step-node-card.is-current-step {
        border-color: var(--accent-yellow);
        box-shadow: 0 0 0 3px rgba(255, 190, 11, 0.32), 0 20px 44px -10px rgba(255, 190, 11, 0.28);
    }

    .step-node-card.is-completed-step {
        border-color: rgba(16, 185, 129, 0.65);
    }

    .level-medal-circle {
        inline-size: 3.1rem;
        block-size: 3.1rem;
        border-radius: 1rem;
        background: var(--bg-subtle);
        border: 2px solid var(--border-strong);
        display: grid;
        place-items: center;
        font-weight: 900;
        font-size: 1.05rem;
        flex-shrink: 0;
    }

    .step-node-card.is-current-step .level-medal-circle {
        background: linear-gradient(135deg, #ffbe0b, #f59e0b);
        color: #18181b;
        border-color: #fde68a;
        box-shadow: 0 0 20px rgba(255, 190, 11, 0.5);
    }

    .step-node-card.is-completed-step .level-medal-circle {
        background: linear-gradient(135deg, #10b981, #059669);
        color: #03150f;
        border-color: #a7f3d0;
    }

    .step-number-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.28rem 0.75rem;
        border-radius: var(--radius-pill);
        font-size: 0.75rem;
        font-weight: 900;
        background: var(--bg-subtle);
        color: var(--text-secondary);
    }

    .step-node-card.is-current-step .step-number-badge {
        background: var(--accent-yellow);
        color: #18181b;
        animation: pulseGlow 2s infinite;
    }

    .step-node-card.is-completed-step .step-number-badge {
        background: rgba(16, 185, 129, 0.22);
        color: var(--accent-emerald);
    }

    /* ==========================================================================
       6. KOKONUTUI.PRO SPOTLIGHT BENTO KARTLARI VE EĞİTİM DÜNYALARI
       ========================================================================== */
    .bento-spotlight,
    .world-category-card,
    .glass-panel,
    .step-node-card {
        position: relative;
        isolation: isolate;
    }

    .bento-spotlight::before,
    .world-category-card::before,
    .step-node-card::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: radial-gradient(
            520px circle at var(--mouse-x, 50%) var(--mouse-y, 0%),
            var(--spotlight-color),
            transparent 45%
        );
        opacity: 0;
        transition: opacity 0.35s ease;
        pointer-events: none;
        z-index: -1;
    }

    .section-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        gap: 1.25rem;
        flex-wrap: wrap;
        margin-block-end: 1.75rem;
    }

    .section-kicker {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        font-size: 0.78rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--accent-cyan);
        background: rgba(6, 182, 212, 0.14);
        border: 1px solid rgba(6, 182, 212, 0.35);
        padding: 0.28rem 0.75rem;
        border-radius: var(--radius-pill);
        margin-block-end: 0.55rem;
    }

    .section-title {
        font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.25rem);
    }

    .section-lead {
        color: var(--text-secondary);
        max-inline-size: 58ch;
        margin-block-start: 0.35rem;
    }

    .mode-switcher {
        display: inline-flex;
        background: var(--bg-subtle);
        padding: 0.3rem;
        border-radius: var(--radius-pill);
        border: 1px solid var(--border-ui);
        gap: 0.25rem;
        flex-wrap: wrap;
    }

    .mode-switch-btn {
        background: transparent;
        border: none;
        padding: 0.48rem 0.95rem;
        border-radius: var(--radius-pill);
        font-size: 0.84rem;
        font-weight: 700;
        color: var(--text-secondary);
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .mode-switch-btn.active {
        background: var(--accent-emerald);
        color: #03150f;
        font-weight: 800;
    }

    .worlds-grid-container {
        container-type: inline-size;
    }

    .worlds-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 21.5rem), 1fr));
        gap: 1.35rem;
    }

    .world-category-card {
        background: var(--bg-card);
        border: 1px solid var(--border-strong);
        border-block-start: 4px solid var(--chapter-accent, var(--accent-emerald));
        border-radius: var(--radius-card);
        padding: 1.45rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 1.15rem;
        box-shadow: var(--shadow-card);
        backdrop-filter: blur(14px);
        transition:
            translate 0.3s var(--ease-spring),
            border-color 0.25s ease,
            box-shadow 0.25s ease;
    }

    .world-card-top {
        display: flex;
        align-items: center;
        gap: 0.9rem;
        margin-block-end: 0.7rem;
    }

    .world-icon-box {
        inline-size: 3.3rem;
        block-size: 3.3rem;
        border-radius: 1rem;
        background: var(--bg-subtle);
        border: 1px solid var(--border-strong);
        display: grid;
        place-items: center;
        font-size: 1.7rem;
        flex-shrink: 0;
    }

    .world-audience-tag {
        display: inline-block;
        font-size: 0.73rem;
        font-weight: 800;
        color: var(--chapter-accent, var(--accent-emerald));
        margin-block-end: 0.15rem;
    }

    .world-card-desc {
        color: var(--text-secondary);
        font-size: 0.92rem;
        margin-block-end: 1rem;
    }

    .world-lessons-list {
        display: flex;
        flex-direction: column;
        gap: 0.55rem;
    }

    .lesson-item-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        background: var(--bg-subtle);
        border: 1px solid var(--border-ui);
        border-radius: var(--radius-inner);
        padding: 0.75rem 0.9rem;
        transition:
            translate 0.22s var(--ease-spring),
            border-color 0.2s ease,
            background 0.2s ease;
    }

    .lesson-xp-meta {
        font-size: 0.78rem;
        color: var(--text-muted);
        font-weight: 600;
    }

    .ai-badge-mini {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        font-size: 0.72rem;
        font-weight: 800;
        padding: 0.18rem 0.55rem;
        border-radius: var(--radius-pill);
        background: rgba(16, 185, 129, 0.14);
        border: 1px solid rgba(16, 185, 129, 0.38);
        color: var(--accent-emerald);
    }

    /* ==========================================================================
       7. İNTERAKTİF OYUN SAHNESİ (SCENE ENGINE — PLAY.PHP)
       ========================================================================== */
    .game-stage-card {
        background: var(--bg-card);
        border: 1.5px solid var(--border-strong);
        border-radius: 1.5rem;
        padding: clamp(1.15rem, 3vw, 2rem);
        box-shadow: var(--shadow-card);
    }

    .game-stage-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        flex-wrap: wrap;
        padding-block-end: 1rem;
        margin-block-end: 1.15rem;
        border-block-end: 1px solid var(--border-ui);
    }

    .step-type-pill {
        background: rgba(6, 182, 212, 0.15);
        color: var(--accent-cyan);
        border: 1px solid rgba(6, 182, 212, 0.35);
        padding: 0.3rem 0.75rem;
        border-radius: var(--radius-pill);
        font-size: 0.8rem;
        font-weight: 800;
    }

    .step-counter {
        font-weight: 800;
        font-size: 0.88rem;
        color: var(--accent-yellow);
        margin-inline-start: 0.5rem;
    }

    .stage-progress-bar {
        flex: 1;
        min-inline-size: 8rem;
        block-size: 0.7rem;
        background: var(--bg-subtle);
        border-radius: var(--radius-pill);
        overflow: hidden;
        border: 1px solid var(--border-ui);
    }

    .stage-progress-fill {
        block-size: 100%;
        background: linear-gradient(90deg, var(--accent-emerald), var(--accent-cyan));
        border-radius: var(--radius-pill);
        transition: width 0.55s var(--ease-out-expo);
    }

    .stage-xp-pill {
        background: rgba(255, 190, 11, 0.16);
        color: var(--accent-yellow);
        border: 1px solid rgba(255, 190, 11, 0.4);
        padding: 0.3rem 0.75rem;
        border-radius: var(--radius-pill);
        font-weight: 800;
        font-size: 0.84rem;
    }

    .step-dots-bar {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        margin-block-end: 1.15rem;
        flex-wrap: wrap;
    }

    .step-dot-pill {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.32rem 0.8rem;
        border-radius: var(--radius-pill);
        font-size: 0.78rem;
        font-weight: 800;
        background: var(--bg-subtle);
        color: var(--text-muted);
        border: 1px solid var(--border-ui);
    }

    .step-dot-pill.active {
        background: rgba(16, 185, 129, 0.2);
        color: var(--accent-emerald);
        border-color: var(--accent-emerald);
    }

    .step-dot-pill.done {
        background: rgba(16, 185, 129, 0.12);
        color: var(--text-primary);
    }

    .narration-banner {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        background: var(--bg-subtle);
        border: 2px solid var(--border-strong);
        border-inline-start: 5px solid var(--accent-emerald);
        border-radius: 1.1rem;
        padding: 1.1rem 1.25rem;
        margin-block-end: 1.2rem;
        position: relative;
        transition: border-color 0.35s ease, box-shadow 0.35s ease, opacity 0.4s ease, translate 0.4s var(--ease-spring);
    }

    .narration-banner.is-typing-focus {
        border-color: var(--accent-yellow);
        border-inline-start-color: var(--accent-yellow);
        box-shadow: 0 0 0 3px rgba(255, 190, 11, 0.25), 0 16px 38px -10px rgba(255, 190, 11, 0.25);
        background: linear-gradient(135deg, rgba(255, 190, 11, 0.12), var(--bg-subtle));
    }

    .reading-guide-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        background: var(--accent-yellow);
        color: #18181b;
        font-weight: 900;
        font-size: 0.74rem;
        padding: 0.22rem 0.7rem;
        border-radius: 999px;
        margin-block-end: 0.4rem;
        letter-spacing: 0.02em;
    }

    .typewriter-cursor {
        display: inline-block;
        color: var(--accent-yellow);
        font-weight: 900;
        margin-inline-start: 2px;
        animation: blinkCursor 0.65s infinite;
    }

    @keyframes blinkCursor {
        0%, 100% { opacity: 1; }
        50% { opacity: 0; }
    }

    /* Sinematik Sahne Yönetmeni Çubuğu */
    .cinema-director-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        flex-wrap: wrap;
        background: rgba(15, 23, 42, 0.6);
        border: 1px solid var(--border-strong);
        border-radius: 1rem;
        padding: 0.65rem 1rem;
        margin-block-end: 1.1rem;
    }

    .director-phases {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        flex-wrap: wrap;
    }

    .director-phase-pill {
        font-size: 0.75rem;
        font-weight: 800;
        padding: 0.26rem 0.68rem;
        border-radius: 999px;
        background: var(--bg-subtle);
        color: var(--text-muted);
        border: 1px solid var(--border-ui);
        transition: all 0.25s ease;
    }

    .director-phase-pill.active {
        background: var(--accent-yellow);
        color: #18181b;
        border-color: #fde68a;
        scale: 1.05;
        box-shadow: 0 0 16px rgba(255, 190, 11, 0.45);
    }

    .director-phase-pill.done {
        background: rgba(16, 185, 129, 0.18);
        color: var(--accent-emerald);
        border-color: rgba(16, 185, 129, 0.45);
    }

    /* Sinematik Aşamalı Görünüm (Film Akışı İçin Gizleme/Açma) */
    .cinema-stage-block {
        transition:
            opacity 0.5s var(--ease-out-expo),
            translate 0.5s var(--ease-spring);
    }

    .cinema-stage-block.stage-locked {
        opacity: 0;
        translate: 0 22px;
        pointer-events: none;
        max-block-size: 0;
        overflow: hidden;
        margin: 0 !important;
        padding-block: 0 !important;
        border-width: 0 !important;
    }

    /* Konuyla İlgili Canlı SVG Film Sahnesi */
    .topic-movie-canvas {
        background: radial-gradient(circle at 50% 45%, rgba(16, 185, 129, 0.16), #080e1a 85%);
        border: 1.5px solid rgba(6, 182, 212, 0.35);
        border-radius: 1.15rem;
        padding: 1rem;
        margin-block-end: 1rem;
        position: relative;
        overflow: hidden;
    }

    .topic-movie-svg {
        inline-size: 100%;
        block-size: 11.5rem;
        display: block;
    }

    .narration-avatar {
        inline-size: 3rem;
        block-size: 3rem;
        border-radius: 0.9rem;
        background: rgba(16, 185, 129, 0.16);
        border: 1.5px solid var(--accent-emerald);
        display: grid;
        place-items: center;
        font-size: 1.6rem;
        flex-shrink: 0;
    }

    .interactive-scene-viewport {
        margin-block-end: 1.35rem;
    }

    .photo-inspector-stage {
        background: #0b111e;
        border: 1px solid var(--border-strong);
        border-radius: 1.15rem;
        overflow: hidden;
    }

    .camera-hud-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
        padding: 0.65rem 1rem;
        background: rgba(15, 23, 42, 0.85);
        font-size: 0.82rem;
        color: #e2e8f0;
    }

    .rec-dot {
        color: #f43f5e;
        font-weight: 800;
    }

    .hotspot-score-badge {
        background: rgba(16, 185, 129, 0.2);
        color: #6ee7b7;
        padding: 0.2rem 0.65rem;
        border-radius: var(--radius-pill);
        font-weight: 800;
    }

    .simulated-photo-canvas {
        position: relative;
        min-block-size: 17rem;
        overflow: hidden;
    }

    .room-svg-bg {
        inline-size: 100%;
        block-size: 17.5rem;
        object-fit: cover;
    }

    .photo-hotspot-btn {
        position: absolute;
        translate: -50% -50%;
        background: rgba(244, 63, 94, 0.92);
        color: #ffffff;
        border: 2px solid #ffffff;
        border-radius: var(--radius-pill);
        padding: 0.45rem 0.85rem;
        font-size: 0.8rem;
        font-weight: 800;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        box-shadow: 0 8px 24px rgba(244, 63, 94, 0.55);
        z-index: 3;
    }

    .photo-hotspot-btn .hs-censor-stamp {
        display: none;
    }

    .photo-hotspot-btn.hotspot-censored {
        background: rgba(16, 185, 129, 0.95);
        border-color: #a7f3d0;
        box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
    }

    .photo-hotspot-btn.hotspot-censored .hs-label {
        text-decoration: line-through;
        opacity: 0.85;
    }

    .photo-hotspot-btn.hotspot-censored .hs-censor-stamp {
        display: inline;
        background: #064e3b;
        padding: 0.1rem 0.4rem;
        border-radius: 0.35rem;
        font-size: 0.72rem;
    }

    .hotspot-toast {
        padding: 0.75rem 1rem;
        background: rgba(245, 158, 11, 0.14);
        color: #fde68a;
        font-size: 0.88rem;
        text-align: center;
    }

    .hotspot-toast.toast-success {
        background: rgba(16, 185, 129, 0.18);
        color: #a7f3d0;
    }

    .chat-simulator-stage {
        background: var(--bg-subtle);
        border: 1px solid var(--border-strong);
        border-radius: 1.15rem;
        overflow: hidden;
    }

    .chat-sim-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
        background: rgba(15, 23, 42, 0.45);
        border-block-end: 1px solid var(--border-ui);
    }

    .chat-sim-body {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .chat-bubble-row {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .chat-avatar {
        inline-size: 2.5rem;
        block-size: 2.5rem;
        border-radius: 50%;
        background: var(--bg-card-solid);
        display: grid;
        place-items: center;
        font-size: 1.3rem;
        flex-shrink: 0;
    }

    .chat-bubble-box {
        background: var(--bg-card-solid);
        border: 1px solid var(--border-strong);
        border-radius: 0.9rem;
        padding: 0.75rem 1rem;
        flex: 1;
    }

    .chat-sender-name {
        font-weight: 800;
        font-size: 0.84rem;
        margin-block-end: 0.25rem;
    }

    .stranger-badge {
        color: var(--accent-coral);
        font-size: 0.75rem;
        margin-inline-start: 0.35rem;
    }

    .chat-sim-warning-bar {
        padding: 0.65rem 1rem;
        background: rgba(244, 63, 94, 0.15);
        color: #fda4af;
        font-size: 0.85rem;
    }

    .password-lab-stage {
        background: var(--bg-subtle);
        border: 1px solid var(--border-strong);
        border-radius: 1.15rem;
        padding: 1.15rem;
    }

    .pwd-test-input {
        inline-size: 100%;
        padding: 0.75rem 1rem;
        border-radius: 0.75rem;
        border: 1.5px solid var(--border-strong);
        background: var(--bg-card-solid);
        font-family: var(--font-mono);
        font-size: 1rem;
        margin-block: 0.45rem 0.75rem;
    }

    .pwd-strength-bar {
        block-size: 0.65rem;
        background: rgba(15, 23, 42, 0.5);
        border-radius: var(--radius-pill);
        overflow: hidden;
        margin-block-end: 0.45rem;
    }

    .pwd-strength-fill {
        block-size: 100%;
        transition: width 0.35s ease, background-color 0.35s ease;
    }
    .pwd-strength-fill.weak { background: #f43f5e; }
    .pwd-strength-fill.medium { background: #f59e0b; }
    .pwd-strength-fill.strong { background: #10b981; }

    .pwd-presets-row {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
        margin-block-start: 0.85rem;
    }

    .pwd-preset-chip {
        background: var(--bg-card-solid);
        border: 1px solid var(--border-strong);
        border-radius: 0.75rem;
        padding: 0.45rem 0.75rem;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
        font-size: 0.8rem;
    }

    .story-animation-stage, .values-stage {
        background: var(--bg-subtle);
        border: 1px solid var(--border-strong);
        border-radius: 1.15rem;
        padding: 1.15rem;
    }

    .characters-dialogue-row, .values-pillars-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
        gap: 0.85rem;
        margin-block-end: 0.85rem;
    }

    .char-actor-card, .value-pillar-card {
        background: var(--bg-card-solid);
        border: 1.5px solid var(--border-ui);
        border-radius: 1rem;
        padding: 1.05rem;
        display: flex;
        align-items: flex-start;
        gap: 0.95rem;
        transition: border-color 0.3s ease, box-shadow 0.3s ease, scale 0.3s var(--ease-spring);
    }

    .char-actor-card.is-speaking-actor {
        border-color: var(--accent-cyan);
        box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.25), 0 12px 28px -8px rgba(6, 182, 212, 0.3);
        scale: 1.015;
    }

    .value-pillar-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .actor-avatar-ring, .glowing-shield-orb {
        inline-size: 3.3rem;
        block-size: 3.3rem;
        min-inline-size: 3.3rem;
        border-radius: 50%;
        background: rgba(16, 185, 129, 0.16);
        border: 2px solid var(--accent-emerald);
        display: grid;
        place-items: center;
        font-size: 1.45rem;
        line-height: 1;
        flex-shrink: 0;
        overflow: hidden;
    }

    .values-shield-center {
        text-align: center;
        margin-block-end: 1rem;
    }

    .values-shield-center .glowing-shield-orb {
        margin-inline: auto;
        margin-block-end: 0.4rem;
    }

    .actor-speech-box {
        flex: 1;
        min-inline-size: 0;
    }

    .actor-name {
        font-weight: 800;
        font-size: 0.84rem;
        color: var(--accent-cyan);
        margin-block-end: 0.25rem;
    }

    .scene-security-tip-banner {
        background: rgba(16, 185, 129, 0.14);
        border: 1.5px solid rgba(16, 185, 129, 0.45);
        color: var(--text-primary);
        padding: 0.85rem 1.1rem;
        border-radius: 0.9rem;
        font-size: 0.92rem;
    }

    .question-spotlight-box {
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(6, 182, 212, 0.1));
        border: 2px solid var(--accent-emerald);
        border-radius: 1.15rem;
        padding: 1.1rem 1.25rem;
        margin-block: 1rem;
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2), 0 16px 35px -10px rgba(16, 185, 129, 0.25);
    }

    .question-title {
        font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
        margin-block-end: 0;
    }

    .options-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
        gap: 0.85rem;
    }

    .option-card-btn {
        display: flex;
        align-items: center;
        gap: 0.85rem;
        background: var(--bg-subtle);
        border: 2px solid var(--border-strong);
        border-radius: 1rem;
        padding: 1rem 1.15rem;
        text-align: start;
        cursor: pointer;
        font-weight: 700;
        min-block-size: 3.75rem;
        transition:
            translate 0.22s var(--ease-spring),
            scale 0.22s var(--ease-spring),
            border-color 0.2s ease,
            background 0.2s ease;
    }

    .opt-key {
        inline-size: 2.2rem;
        block-size: 2.2rem;
        border-radius: 0.65rem;
        background: var(--bg-card-solid);
        border: 1px solid var(--border-strong);
        display: grid;
        place-items: center;
        font-weight: 900;
        flex-shrink: 0;
    }

    .option-card-btn.correct-choice {
        background: rgba(16, 185, 129, 0.2);
        border-color: var(--accent-emerald);
        box-shadow: 0 0 25px rgba(16, 185, 129, 0.25);
    }

    .option-card-btn.wrong-choice {
        background: rgba(244, 63, 94, 0.18);
        border-color: var(--accent-coral);
    }

    .feedback-box {
        margin-block-start: 1.15rem;
        padding: 1.1rem 1.25rem;
        border-radius: 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        flex-wrap: wrap;
        transition:
            opacity 0.35s ease,
            translate 0.35s var(--ease-spring),
            display 0.35s allow-discrete;
    }

    @starting-style {
        .feedback-box:not(.hidden) {
            opacity: 0;
            translate: 0 10px;
        }
    }

    .feedback-box.hidden {
        display: none;
        opacity: 0;
    }

    .feedback-correct {
        background: rgba(16, 185, 129, 0.16);
        border: 1.5px solid var(--accent-emerald);
    }

    .feedback-wrong {
        background: rgba(244, 63, 94, 0.16);
        border: 1.5px solid var(--accent-coral);
    }

    .lesson-victory-card {
        text-align: center;
        padding: clamp(1.75rem, 4vw, 3rem);
        background: var(--bg-card);
        border: 2px solid var(--accent-emerald);
        border-radius: 1.5rem;
        box-shadow: 0 24px 60px rgba(16, 185, 129, 0.22);
    }

    .victory-confetti-ring {
        inline-size: 5rem;
        block-size: 5rem;
        margin-inline: auto;
        margin-block-end: 0.75rem;
        border-radius: 50%;
        background: rgba(16, 185, 129, 0.18);
        border: 2px solid var(--accent-emerald);
        display: grid;
        place-items: center;
        font-size: 2.5rem;
    }

    .victory-stars {
        font-size: 2rem;
        letter-spacing: 0.25rem;
        margin-block-end: 0.5rem;
    }

    .victory-reward-boxes {
        display: flex;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
        margin-block: 1.35rem;
    }

    .reward-pill {
        background: var(--bg-subtle);
        border: 1px solid var(--border-strong);
        border-radius: 1rem;
        padding: 0.85rem 1.35rem;
        min-inline-size: 10rem;
    }

    .rp-label {
        display: block;
        font-size: 0.78rem;
        color: var(--text-muted);
    }

    .rp-val {
        font-size: 1.25rem;
        font-weight: 900;
        color: var(--accent-yellow);
    }

    .victory-actions {
        display: flex;
        justify-content: center;
        gap: 0.85rem;
        flex-wrap: wrap;
    }

    .glass-panel {
        background: var(--bg-card);
        border: 1px solid var(--border-strong);
        border-radius: var(--radius-card);
        padding: clamp(1.25rem, 2.5vw, 1.85rem);
        margin-block-end: 1.35rem;
        box-shadow: var(--shadow-card);
        backdrop-filter: blur(14px);
    }

    .leader-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.75rem 0.9rem;
        background: var(--bg-subtle);
        border: 1px solid var(--border-ui);
        border-radius: var(--radius-inner);
        margin-block-end: 0.55rem;
    }

    .form-group {
        margin-block-end: 0.95rem;
    }

    .form-group label {
        display: block;
        font-size: 0.86rem;
        font-weight: 700;
        margin-block-end: 0.35rem;
        color: var(--text-secondary);
    }

    .form-control {
        inline-size: 100%;
        padding: 0.72rem 0.95rem;
        min-block-size: 2.85rem;
        border-radius: 0.8rem;
        border: 1px solid var(--border-strong);
        background: var(--bg-subtle);
        color: var(--text-primary);
        font-size: 0.95rem;
    }

    .google-auth-btn {
        inline-size: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.65rem;
        padding: 0.78rem 1rem;
        min-block-size: 3rem;
        background: #ffffff;
        color: #0f172a;
        border: 1px solid #cbd5e1;
        border-radius: var(--radius-pill);
        font-weight: 800;
        cursor: pointer;
        margin-block-end: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }

    .certificate-frame {
        background: linear-gradient(135deg, #fffbeb 0%, #ffffff 50%, #f0fdf4 100%);
        color: #0f172a;
        border: 4px solid #d97706;
        border-radius: 1.5rem;
        padding: 0.85rem;
        text-align: center;
        box-shadow: var(--shadow-card);
    }

    .cert-inner-border {
        border: 2px dashed rgba(217, 119, 6, 0.55);
        border-radius: 1.1rem;
        padding: clamp(1.5rem, 3vw, 2.5rem);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .cert-top-emblem {
        font-size: 3rem;
        line-height: 1;
        margin-block-end: 0.45rem;
    }

    .cert-kicker {
        color: #b45309;
        font-weight: 900;
        letter-spacing: 0.14em;
        font-size: 0.86rem;
    }

    .cert-main-title {
        font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.2rem);
        font-weight: 900;
        margin-block: 0.45rem 0.65rem;
        color: #0f172a;
    }

    .cert-lead-text {
        color: #334155;
        max-inline-size: 66ch;
        margin-inline: auto;
        margin-block-end: 0.9rem;
        font-size: 0.98rem;
        line-height: 1.5;
    }

    .cert-holder-name {
        font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
        font-weight: 900;
        color: #1d4ed8;
        margin-block-end: 0.55rem;
        border-block-end: 3px dashed #2563eb;
        display: inline-block;
        padding: 0 2rem 0.3rem;
    }

    .cert-level-text {
        color: #475569;
        font-size: 1rem;
        margin-block-end: 1.25rem;
    }

    .cert-signatures-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        inline-size: min(100%, 44rem);
        margin-block-start: 0.5rem;
        padding-block-start: 0.85rem;
        border-block-start: 1px solid rgba(148, 163, 184, 0.35);
        gap: 1rem;
    }

    .cert-sig-col {
        display: flex;
        flex-direction: column;
        font-size: 0.85rem;
        color: #475569;
    }

    .cert-sig-col strong {
        color: #0f172a;
        font-size: 0.95rem;
    }

    .cert-seal-badge {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0.45rem 1.1rem;
        border-radius: 999px;
        background: #ecfdf5;
        border: 2px solid #10b981;
        color: #047857;
        font-weight: 900;
        font-size: 0.82rem;
    }

    .cert-seal-badge small {
        font-size: 0.65rem;
        letter-spacing: 0.08em;
    }

    .site-footer {
        background: var(--bg-surface);
        border-block-start: 1px solid var(--border-ui);
        padding-block: 3rem 5.5rem;
        margin-block-start: 3rem;
        color: var(--text-secondary);
        font-size: 0.9rem;
    }

    .mobile-bottom-nav {
        display: none;
        position: fixed;
        inset-inline: 0.75rem;
        bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
        z-index: 990;
        background: var(--bg-pill-nav);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--border-strong);
        border-radius: 1.25rem;
        padding: 0.35rem;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
        justify-content: space-around;
        align-items: center;
    }

    .mob-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.15rem;
        padding: 0.4rem 0.65rem;
        min-block-size: 2.85rem;
        border-radius: 0.9rem;
        font-size: 0.72rem;
        font-weight: 700;
        color: var(--text-secondary);
        flex: 1;
        text-align: center;
    }

    .mob-nav-item.active {
        background: rgba(16, 185, 129, 0.18);
        color: var(--accent-emerald);
        font-weight: 800;
    }

    .mob-nav-icon {
        font-size: 1.15rem;
        line-height: 1;
    }
}

@layer animations {
    @keyframes pulseGlow {
        0%, 100% { opacity: 1; scale: 1; }
        50% { opacity: 0.65; scale: 1.08; }
    }

    @media (hover: hover) and (pointer: fine) {
        .bento-spotlight:hover::before,
        .world-category-card:hover::before,
        .step-node-card:hover::before {
            opacity: 1;
        }

        .world-category-card:hover,
        .step-node-card:hover {
            translate: 0 -5px;
            border-color: var(--spotlight-border);
        }

        .lesson-item-link:hover {
            translate: 4px 0;
            border-color: var(--accent-emerald);
            background: rgba(16, 185, 129, 0.1);
        }

        .btn-primary-glow:hover {
            translate: 0 -2px;
            box-shadow: 0 16px 36px -6px rgba(16, 185, 129, 0.5);
        }

        .btn-secondary-glass:hover {
            translate: 0 -2px;
            border-color: var(--accent-cyan);
        }

        .option-card-btn:hover:not(.disabled) {
            translate: 0 -2px;
            border-color: var(--accent-cyan);
        }
    }

    /* ==========================================================================
       ELEVENLABS / NEURAL STÜDYO CANLI SESLENDİRME OYNATICI ÇUBUĞU (EQUALIZER HUD)
       ========================================================================== */
    .studio-audio-player-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0.65rem 1rem;
        margin-block-end: 0.75rem;
        border-radius: 1rem;
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(6, 182, 212, 0.12));
        border: 1.5px solid rgba(16, 185, 129, 0.45);
        box-shadow: 0 8px 24px -8px rgba(16, 185, 129, 0.25);
        cursor: pointer;
        transition: border-color 0.25s ease, box-shadow 0.25s ease;
    }

    .studio-audio-player-bar.is-waiting-gesture {
        border-color: var(--accent-yellow);
        background: linear-gradient(135deg, rgba(255, 190, 11, 0.22), rgba(245, 158, 11, 0.14));
        animation: pulseGlow 1.5s infinite;
    }

    .studio-audio-left {
        display: flex;
        align-items: center;
        gap: 0.65rem;
    }

    .studio-audio-actions {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        flex-wrap: wrap;
    }

    .studio-voice-status {
        font-size: 0.85rem;
        font-weight: 800;
        color: var(--text-primary);
    }

    .studio-eq-bars {
        display: inline-flex;
        align-items: flex-end;
        gap: 3px;
        block-size: 18px;
        padding: 2px 4px;
    }

    .studio-eq-bars .eq-bar {
        inline-size: 3.5px;
        block-size: 5px;
        border-radius: 99px;
        background: var(--accent-emerald);
        transition: block-size 0.2s ease;
    }

    .studio-audio-player-bar.is-playing .studio-eq-bars .eq-bar,
    .theater-master-frame.is-playing .studio-eq-bars .eq-bar {
        animation: studioEqBounce 0.75s ease-in-out infinite alternate;
    }

    .studio-audio-player-bar.is-playing .studio-eq-bars .eq-bar:nth-child(2),
    .theater-master-frame.is-playing .studio-eq-bars .eq-bar:nth-child(2) {
        animation-delay: 0.18s;
        background: var(--accent-cyan);
    }

    .studio-audio-player-bar.is-playing .studio-eq-bars .eq-bar:nth-child(3),
    .theater-master-frame.is-playing .studio-eq-bars .eq-bar:nth-child(3) {
        animation-delay: 0.34s;
    }

    .studio-audio-player-bar.is-playing .studio-eq-bars .eq-bar:nth-child(4),
    .theater-master-frame.is-playing .studio-eq-bars .eq-bar:nth-child(4) {
        animation-delay: 0.12s;
        background: var(--accent-yellow);
    }

    @keyframes studioEqBounce {
        0% { block-size: 4px; }
        100% { block-size: 17px; }
    }

    /* ==========================================================================
       v10.0.0 — AİLEMİ KORU SANAL DERSHANESİ (GEZİLEBİLİR OYUN DÜNYASI)
       ========================================================================== */
    .virtual-academy-section {
        padding-block: 0.85rem 1.75rem;
    }

    .virtual-academy-shell {
        background: var(--bg-card);
        border: 2px solid var(--border-strong);
        border-radius: 1.5rem;
        box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(16, 185, 129, 0.18);
        overflow: hidden;
        position: relative;
    }

    .academy-game-hud {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0.75rem 1.2rem;
        background: linear-gradient(90deg, rgba(16, 185, 129, 0.16), rgba(6, 182, 212, 0.12), rgba(139, 92, 246, 0.12));
        border-block-end: 1px solid var(--border-strong);
    }

    .academy-stage-steps {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        flex-wrap: wrap;
    }

    .academy-step-tab {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.38rem 0.8rem;
        border-radius: 999px;
        font-size: 0.78rem;
        font-weight: 800;
        background: rgba(15, 23, 42, 0.55);
        color: var(--text-secondary);
        border: 1px solid var(--border-ui);
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .academy-step-tab.active {
        background: linear-gradient(135deg, #10b981, #06b6d4);
        color: #04131a;
        border-color: transparent;
        box-shadow: 0 0 18px rgba(16, 185, 129, 0.4);
    }

    .academy-voice-cluster {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        flex-wrap: wrap;
    }

    .academy-screen {
        display: none;
        padding: clamp(1.1rem, 2.5vw, 1.85rem);
        animation: academyScreenFade 0.38s ease-out;
    }

    .academy-screen.is-active {
        display: block;
    }

    @keyframes academyScreenFade {
        from { opacity: 0; translate: 0 10px; }
        to { opacity: 1; translate: 0 0; }
    }

    /* EKRAN 1: KARŞILAMA VE TANITIM LOBİSİ */
    .welcome-hero-stage {
        text-align: center;
        max-inline-size: 62rem;
        margin-inline: auto;
    }

    .welcome-campus-banner {
        position: relative;
        border-radius: 1.25rem;
        background: radial-gradient(circle at 50% 30%, rgba(16, 185, 129, 0.22), rgba(6, 10, 18, 0.92));
        border: 1.5px solid rgba(16, 185, 129, 0.38);
        padding: 1.15rem;
        margin-block-end: 1.1rem;
        overflow: hidden;
    }

    .welcome-narration-card {
        background: rgba(15, 23, 42, 0.78);
        border: 1.5px solid var(--accent-emerald);
        border-radius: 1.1rem;
        padding: 1rem 1.25rem;
        margin-block-end: 1.1rem;
        text-align: start;
        display: flex;
        align-items: flex-start;
        gap: 0.9rem;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    }

    .welcome-pillars-mini {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
        gap: 0.85rem;
        margin-block-end: 1.35rem;
        text-align: start;
    }

    .welcome-mini-card {
        background: var(--bg-subtle);
        border: 1px solid var(--border-strong);
        border-radius: 1rem;
        padding: 0.9rem 1rem;
        transition: translate 0.2s ease, border-color 0.2s ease;
    }

    .welcome-mini-card:hover {
        translate: 0 -3px;
        border-color: var(--accent-emerald);
    }

    .btn-game-mega-start {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        padding: 1rem 2.4rem;
        font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
        font-weight: 900;
        border-radius: 999px;
        border: 2px solid #a7f3d0;
        background: linear-gradient(135deg, #10b981 0%, #06b6d4 55%, #3b82f6 100%);
        color: #021318;
        cursor: pointer;
        box-shadow: 0 0 35px rgba(16, 185, 129, 0.55), 0 12px 25px rgba(0, 0, 0, 0.35);
        animation: megaStartPulse 2s infinite alternate;
        transition: scale 0.2s var(--ease-spring);
    }

    .btn-game-mega-start:hover {
        scale: 1.05;
    }

    @keyframes megaStartPulse {
        0% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.45); }
        100% { box-shadow: 0 0 42px rgba(6, 182, 212, 0.85); }
    }

    /* EKRAN 2: ÇOCUK MU YETİŞKİN Mİ SEÇİM EKRANI */
    .role-select-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
        gap: 1.15rem;
        margin-block-start: 1.15rem;
    }

    .role-choice-card {
        background: var(--bg-subtle);
        border: 2px solid var(--border-strong);
        border-radius: 1.35rem;
        padding: 1.35rem 1.25rem;
        text-align: center;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 0.9rem;
        transition: translate 0.25s var(--ease-spring), border-color 0.25s ease, box-shadow 0.25s ease;
    }

    .role-choice-card:hover,
    .role-choice-card.is-selected {
        translate: 0 -6px;
        border-color: var(--accent-emerald);
        box-shadow: 0 18px 40px -10px rgba(16, 185, 129, 0.35);
    }

    .role-avatar-halo {
        inline-size: 5.2rem;
        block-size: 5.2rem;
        margin-inline: auto;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(16, 185, 129, 0.28), rgba(6, 182, 212, 0.08));
        border: 2px solid var(--accent-emerald);
        display: grid;
        place-items: center;
        font-size: 2.75rem;
    }

    /* EKRAN 3: GEZİLEBİLİR SANAL DERSHANE HARİTASI (2.5D FLOORPLAN) */
    .campus-map-layout {
        display: grid;
        grid-template-columns: 1fr 21rem;
        gap: 1.1rem;
        align-items: stretch;
    }

    .campus-floorplan-board {
        position: relative;
        min-block-size: 35rem;
        border-radius: 1.35rem;
        background:
            radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.12), transparent 70%),
            linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
            linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px),
            #07101e;
        background-size: 100% 100%, 32px 32px, 32px 32px, 100% 100%;
        border: 2px solid rgba(16, 185, 129, 0.42);
        overflow: hidden;
        box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.65);
        user-select: none;
    }

    /* Merkez Koridor Halısı / Işıklı Yürüme Yolu */
    .campus-corridor-lane {
        position: absolute;
        inset-inline-start: 50%;
        inset-block: 10% 10%;
        inline-size: 18%;
        translate: -50% 0;
        background: linear-gradient(180deg, rgba(6, 182, 212, 0.16), rgba(16, 185, 129, 0.22), rgba(245, 158, 11, 0.16));
        border-inline: 2px dashed rgba(16, 185, 129, 0.45);
        border-radius: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        pointer-events: none;
    }

    .corridor-floor-label {
        font-size: 0.68rem;
        font-weight: 900;
        letter-spacing: 0.12em;
        color: rgba(110, 231, 183, 0.65);
        text-transform: uppercase;
        background: rgba(6, 10, 18, 0.65);
        padding: 0.2rem 0.55rem;
        border-radius: 999px;
    }

    /* Sınıf Odaları / Kapıları */
    .campus-room-node {
        position: absolute;
        translate: -50% -50%;
        inline-size: clamp(10.5rem, 25%, 14.5rem);
        background: rgba(15, 23, 42, 0.92);
        border: 2px solid var(--room-color, #10b981);
        border-radius: 1rem;
        padding: 0.65rem 0.8rem;
        cursor: pointer;
        transition: scale 0.22s var(--ease-spring), box-shadow 0.22s ease, background 0.2s ease;
        z-index: 3;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
    }

    .campus-room-node:hover,
    .campus-room-node.is-active-room {
        scale: 1.05;
        background: rgba(16, 185, 129, 0.2);
        box-shadow: 0 0 28px var(--room-color, #10b981), 0 12px 28px rgba(0, 0, 0, 0.6);
        z-index: 4;
    }

    .campus-room-node.is-center-room {
        inline-size: clamp(14rem, 38%, 20rem);
        text-align: center;
    }

    .room-door-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        font-size: 0.68rem;
        font-weight: 900;
        padding: 0.14rem 0.5rem;
        border-radius: 999px;
        background: var(--room-color, #10b981);
        color: #031217;
        margin-block-end: 0.25rem;
    }

    .room-node-title {
        font-size: 0.84rem;
        font-weight: 800;
        color: #f8fafc;
        line-height: 1.25;
        margin-block-end: 0.2rem;
    }

    .room-node-sub {
        font-size: 0.72rem;
        color: #94a3b8;
        line-height: 1.25;
    }

    /* Yürüyen Oyuncu Karakteri */
    .campus-player-avatar {
        position: absolute;
        inset-inline-start: 50%;
        inset-block-start: 22%;
        translate: -50% -50%;
        z-index: 10;
        display: flex;
        flex-direction: column;
        align-items: center;
        pointer-events: none;
        transition:
            inset-inline-start 0.55s cubic-bezier(0.22, 1, 0.36, 1),
            inset-block-start 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .campus-player-avatar.is-walking .player-avatar-orb {
        animation: avatarWalkBounce 0.26s infinite alternate;
    }

    @keyframes avatarWalkBounce {
        from { translate: 0 0; rotate: -5deg; }
        to { translate: 0 -8px; rotate: 5deg; }
    }

    .player-avatar-orb {
        inline-size: 3.35rem;
        block-size: 3.35rem;
        border-radius: 50%;
        background: radial-gradient(circle, #10b981, #059669);
        border: 3px solid #fef08a;
        box-shadow: 0 0 25px rgba(250, 204, 21, 0.85), 0 8px 18px rgba(0, 0, 0, 0.6);
        display: grid;
        place-items: center;
        font-size: 1.75rem;
    }

    .player-avatar-tag {
        margin-block-start: 0.2rem;
        background: #fef08a;
        color: #0f172a;
        font-size: 0.68rem;
        font-weight: 900;
        padding: 0.1rem 0.5rem;
        border-radius: 999px;
        white-space: nowrap;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
    }

    /* Sağ Kontrol & Sınıf Rehberi Paneli */
    .campus-side-inspector {
        background: var(--bg-subtle);
        border: 1.5px solid var(--border-strong);
        border-radius: 1.35rem;
        padding: 1.1rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 0.9rem;
    }

    .campus-dpad-grid {
        display: grid;
        grid-template-columns: repeat(3, 2.75rem);
        grid-template-rows: repeat(2, 2.55rem);
        gap: 0.35rem;
        justify-content: center;
        margin-block: 0.35rem;
    }

    .dpad-btn {
        border-radius: 0.65rem;
        border: 1.5px solid var(--border-strong);
        background: var(--bg-card-solid);
        color: var(--text-primary);
        font-size: 1rem;
        font-weight: 900;
        cursor: pointer;
        display: grid;
        place-items: center;
        transition: background 0.15s ease, border-color 0.15s ease, scale 0.15s ease;
    }

    .dpad-btn:hover,
    .dpad-btn:active {
        background: rgba(16, 185, 129, 0.22);
        border-color: var(--accent-emerald);
        scale: 0.95;
    }

    /* EKRAN 4: SINIF İÇİ AKILLI TAHTA GÖRÜNÜMÜ */
    .classroom-smartboard-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.75rem;
        margin-block-end: 1rem;
        padding: 0.75rem 1rem;
        background: var(--bg-subtle);
        border: 1.5px solid var(--border-strong);
        border-radius: 1rem;
    }

    .classroom-lesson-pills {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        flex-wrap: wrap;
    }

    .classroom-lesson-pill {
        padding: 0.35rem 0.75rem;
        border-radius: 999px;
        font-size: 0.78rem;
        font-weight: 800;
        border: 1px solid var(--border-strong);
        background: var(--bg-card-solid);
        color: var(--text-secondary);
        cursor: pointer;
    }

    .classroom-lesson-pill.active {
        background: var(--accent-emerald);
        color: #031217;
        border-color: transparent;
    }

    /* ==========================================================================
       v13.0.0 — SADE, %100 MOBİL UYUMLU, KONUYA ÖZEL SİBER GÜVENLİK SAHNESİ
       ========================================================================== */
    .cyber-3d-portal-overlay {
        position: fixed;
        inset: 0;
        inline-size: 100vw;
        block-size: 100dvh;
        z-index: 950;
        background: radial-gradient(circle at 50% 35%, #09182c 0%, #030712 100%);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
    }

    .cyber-webgl-canvas-wrap {
        position: fixed;
        inset: 0;
        inline-size: 100%;
        block-size: 100%;
        z-index: 1;
        pointer-events: none;
    }

    .scifi-topbar-shell {
        position: sticky;
        inset-block-start: 0;
        z-index: 30;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.65rem 1rem;
        background: rgba(3, 8, 20, 0.85);
        backdrop-filter: blur(14px);
        border-block-end: 1px solid rgba(16, 185, 129, 0.25);
    }

    .scifi-telemetry-hud {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        padding: 0.35rem 0.9rem;
        border-radius: 999px;
        background: rgba(6, 18, 34, 0.85);
        border: 1px solid rgba(16, 185, 129, 0.45);
        font-family: var(--font-mono);
        font-size: 0.72rem;
        font-weight: 800;
        color: #6ee7b7;
    }

    .scifi-topbar-actions {
        display: flex;
        align-items: center;
        gap: 0.45rem;
    }

    .scifi-stage-layer {
        position: relative;
        z-index: 12;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 0.75rem 1rem 2rem;
        inline-size: 100%;
    }

    .scifi-stage-layer.is-hidden {
        display: none !important;
    }

    .entry-stage-container {
        inline-size: min(100%, 66rem);
        margin-inline: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.9rem;
    }

    .scifi-center-brand-hud {
        text-align: center;
        inline-size: 100%;
    }

    .scifi-kicker {
        font-size: 0.72rem;
        font-weight: 900;
        letter-spacing: 0.14em;
        color: #67e8f9;
        margin-block-end: 0.2rem;
    }

    .scifi-main-title {
        font-size: clamp(1.15rem, 1rem + 1vw, 1.85rem);
        font-weight: 900;
        color: #f8fafc;
        margin: 0;
        text-shadow: 0 0 20px rgba(6, 182, 212, 0.45);
    }

    .entry-cyber-hero-visual {
        inline-size: min(100%, 46rem);
        background: rgba(6, 14, 28, 0.78);
        border: 1.5px solid rgba(16, 185, 129, 0.42);
        border-radius: 1.1rem;
        padding: 0.45rem;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
    }

    .entry-cyber-svg {
        inline-size: 100%;
        block-size: auto;
        max-block-size: 145px;
        display: block;
    }

    .scifi-split-portals-hud {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        inline-size: 100%;
    }

    .scifi-portal-card {
        padding: 1.15rem 1.25rem;
        border-radius: 1.15rem;
        backdrop-filter: blur(18px);
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    }

    .scifi-portal-card.portal-child {
        background: linear-gradient(135deg, rgba(6, 22, 42, 0.9), rgba(6, 182, 212, 0.2));
        border: 2px solid #06b6d4;
        box-shadow: 0 10px 30px rgba(6, 182, 212, 0.22);
    }

    .scifi-portal-card.portal-child:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 40px rgba(6, 182, 212, 0.42);
    }

    .scifi-portal-card.portal-parent {
        background: linear-gradient(135deg, rgba(6, 24, 32, 0.92), rgba(16, 185, 129, 0.22));
        border: 2px solid #10b981;
        box-shadow: 0 10px 30px rgba(16, 185, 129, 0.22);
    }

    .scifi-portal-card.portal-parent:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 40px rgba(16, 185, 129, 0.42);
    }

    .portal-tag-chip {
        font-family: var(--font-mono);
        font-size: 0.68rem;
        font-weight: 900;
        letter-spacing: 0.06em;
        color: #67e8f9;
        margin-block-end: 0.3rem;
    }

    .portal-parent .portal-tag-chip {
        color: #6ee7b7;
    }

    .scifi-portal-card h2 {
        font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem);
        margin-block-end: 0.35rem;
        color: #f8fafc;
    }

    .scifi-portal-card p {
        font-size: 0.84rem;
        color: #cbd5e1;
        margin-block-end: 0.65rem;
        line-height: 1.42;
    }

    .portal-enter-cta {
        display: inline-block;
        font-size: 0.8rem;
        font-weight: 900;
        color: #fef08a;
    }

    /* Portal Seçildiğinde Açılan Sade İsim Konsolu */
    .scifi-name-modal {
        inline-size: min(100%, 34rem);
        padding: 1.15rem 1.25rem;
        border-radius: 1.15rem;
        background: rgba(6, 16, 30, 0.96);
        border: 2px solid #06b6d4;
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.85);
        display: none;
    }

    .scifi-name-modal[data-role="parent"] {
        border-color: #10b981;
    }

    .scifi-name-modal.is-open {
        display: block;
    }

    .scifi-modal-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
        margin-block-end: 0.35rem;
    }

    .scifi-voice-id-badge {
        font-family: var(--font-mono);
        font-size: 0.72rem;
        font-weight: 900;
        color: #67e8f9;
    }

    .scifi-close-btn {
        background: transparent;
        border: none;
        color: #94a3b8;
        font-size: 0.78rem;
        font-weight: 800;
        cursor: pointer;
    }

    .scifi-modal-heading {
        font-size: 1rem;
        color: #f8fafc;
        margin-block-end: 0.65rem;
    }

    .scifi-name-form {
        display: flex;
        gap: 0.55rem;
    }

    .scifi-name-input {
        flex: 1;
        padding: 0.72rem 0.95rem;
        border-radius: 0.75rem;
        border: 1.5px solid rgba(148, 163, 184, 0.45);
        background: rgba(2, 6, 23, 0.9);
        color: #f8fafc;
        font-size: 0.92rem;
        font-weight: 700;
        outline: none;
    }

    .scifi-name-input:focus {
        border-color: #10b981;
    }

    .scifi-launch-btn {
        padding: 0.72rem 1.15rem;
        border-radius: 0.75rem;
        border: none;
        background: linear-gradient(135deg, #10b981, #06b6d4);
        color: #020617;
        font-weight: 900;
        font-size: 0.84rem;
        cursor: pointer;
        white-space: nowrap;
    }

    .scifi-hud-btn {
        pointer-events: auto;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.4rem 0.8rem;
        border-radius: 999px;
        background: rgba(8, 18, 36, 0.9);
        border: 1px solid rgba(6, 182, 212, 0.5);
        color: #f1f5f9;
        font-size: 0.75rem;
        font-weight: 800;
        cursor: pointer;
        text-decoration: none;
    }

    .scifi-hud-btn:hover {
        border-color: #10b981;
        background: rgba(16, 185, 129, 0.22);
    }

    /* AŞAMA 2: ADIM ADIM SORU VE CEVAP PORTALLARI SAHNESİ */
    .q3d-arena-viewport {
        inline-size: min(100%, 62rem);
        margin-inline: auto;
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
    }

    .q3d-top-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        background: rgba(6, 14, 28, 0.85);
        padding: 0.55rem 0.85rem;
        border-radius: 0.9rem;
        border: 1px solid rgba(148, 163, 184, 0.25);
    }

    .q3d-title-cluster {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .q3d-main-step-title {
        color: #f8fafc;
        font-size: clamp(0.88rem, 0.82rem + 0.3vw, 1.05rem);
    }

    .q3d-top-actions {
        display: flex;
        gap: 0.4rem;
    }

    .q3d-progress-track {
        inline-size: 100%;
        block-size: 0.42rem;
        background: rgba(15, 23, 42, 0.9);
        border-radius: 999px;
        overflow: hidden;
        border: 1px solid rgba(16, 185, 129, 0.35);
    }

    .q3d-progress-fill {
        block-size: 100%;
        background: linear-gradient(90deg, #10b981, #06b6d4);
        transition: width 0.35s ease;
    }

    /* Konuya Özel Siber Güvenlik Görsel Animasyon Kutusu */
    .q3d-visual-scene-box {
        background: rgba(6, 14, 28, 0.9);
        border: 1.5px solid rgba(6, 182, 212, 0.45);
        border-radius: 1rem;
        padding: 0.35rem;
        overflow: hidden;
    }

    .cyber-topic-svg {
        inline-size: 100%;
        block-size: auto;
        max-block-size: 145px;
        display: block;
    }

    .holo-3d-story-banner {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        padding: 0.65rem 0.95rem;
        border-radius: 0.9rem;
        background: rgba(6, 18, 34, 0.9);
        border: 1.5px solid rgba(6, 182, 212, 0.55);
    }

    .holo-story-orb {
        font-size: 1.35rem;
        flex-shrink: 0;
    }

    .holo-3d-story-banner p {
        margin: 0;
        font-size: 0.88rem;
        font-weight: 700;
        color: #f8fafc;
        line-height: 1.42;
    }

    /* KIRMIZI ALAN: KADIN SESİ GÜVENLİK İLKELERİ */
    .holo-3d-red-zone {
        padding: 0.65rem 0.8rem;
        border-radius: 1rem;
        background: linear-gradient(145deg, rgba(45, 10, 24, 0.82), rgba(15, 23, 42, 0.88));
        border: 2px solid rgba(244, 63, 94, 0.72);
    }

    .holo-3d-red-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
        gap: 0.55rem;
    }

    .holo-3d-red-card {
        display: flex;
        align-items: flex-start;
        gap: 0.55rem;
        padding: 0.6rem 0.75rem;
        border-radius: 0.8rem;
        background: rgba(15, 23, 42, 0.9);
        border: 1.5px solid rgba(244, 63, 94, 0.45);
        cursor: pointer;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .holo-3d-red-card:hover,
    .holo-3d-red-card.is-speaking-3d {
        border-color: #fb7185;
        box-shadow: 0 0 20px rgba(244, 63, 94, 0.5);
    }

    .holo-red-icon {
        font-size: 1.4rem;
        line-height: 1;
        flex-shrink: 0;
    }

    .holo-red-title {
        font-size: 0.84rem;
        font-weight: 900;
        color: #fecdd3;
        margin-block-end: 0.15rem;
    }

    .holo-red-desc {
        font-size: 0.78rem;
        color: #e2e8f0;
        margin: 0;
        line-height: 1.35;
    }

    /* YEŞİL ALAN: ERKEK SESİ SORU VE A/B SEÇENEKLERİ */
    .holo-3d-green-zone {
        padding: 0.75rem 0.9rem;
        border-radius: 1rem;
        background: linear-gradient(145deg, rgba(6, 38, 32, 0.86), rgba(8, 22, 38, 0.9));
        border: 2px solid rgba(16, 185, 129, 0.78);
    }

    .holo-3d-question-core {
        padding: 0.6rem 0.85rem;
        border-radius: 0.85rem;
        background: rgba(4, 24, 22, 0.9);
        border: 1.5px solid #10b981;
        margin-block-end: 0.65rem;
    }

    .holo-3d-question-core h3 {
        font-size: clamp(0.92rem, 0.88rem + 0.3vw, 1.08rem);
        color: #f8fafc;
        margin: 0;
        line-height: 1.38;
    }

    .is-locked-stage {
        opacity: 0.45;
    }

    .holo-3d-answer-portals-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .holo-3d-answer-portal {
        position: relative;
        padding: 0.85rem 1rem;
        border-radius: 0.95rem;
        background: radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.22), rgba(6, 14, 28, 0.95));
        border: 2px solid #06b6d4;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .holo-3d-answer-portal.portal-opt-b {
        border-color: #8b5cf6;
        background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.22), rgba(6, 14, 28, 0.95));
    }

    .holo-3d-answer-portal:hover,
    .holo-3d-answer-portal.is-speaking-3d {
        transform: translateY(-3px);
        border-color: #fef08a;
        box-shadow: 0 0 24px rgba(254, 240, 138, 0.45);
    }

    .holo-3d-answer-portal.is-correct-portal {
        border-color: #10b981 !important;
        background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.42), rgba(4, 32, 26, 0.96)) !important;
        box-shadow: 0 0 32px rgba(16, 185, 129, 0.75) !important;
    }

    .holo-3d-answer-portal.is-wrong-portal {
        border-color: #f43f5e !important;
        background: radial-gradient(circle at 50% 50%, rgba(244, 63, 94, 0.38), rgba(38, 8, 18, 0.96)) !important;
    }

    .answer-portal-badge {
        display: inline-block;
        align-self: flex-start;
        font-family: var(--font-mono);
        font-size: 0.68rem;
        font-weight: 900;
        padding: 0.15rem 0.55rem;
        border-radius: 999px;
        background: rgba(6, 182, 212, 0.22);
        border: 1px solid #67e8f9;
        color: #67e8f9;
        margin-block-end: 0.35rem;
    }

    .portal-opt-b .answer-portal-badge {
        background: rgba(139, 92, 246, 0.24);
        border-color: #c4b5fd;
        color: #ddd6fe;
    }

    .answer-portal-text {
        font-size: 0.86rem;
        font-weight: 800;
        color: #f8fafc;
        line-height: 1.38;
        margin-block-end: 0.4rem;
    }

    .answer-portal-cta {
        font-size: 0.74rem;
        font-weight: 900;
        color: #fef08a;
    }

    .q3d-feedback-portal {
        margin-block-start: 0.6rem;
        padding: 0.75rem 1rem;
        border-radius: 0.9rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .q3d-feedback-portal.is-hidden {
        display: none;
    }

    .q3d-feedback-portal.is-correct {
        background: rgba(6, 48, 38, 0.95);
        border: 2px solid #10b981;
    }

    .q3d-feedback-portal.is-wrong {
        background: rgba(52, 10, 24, 0.95);
        border: 2px solid #f43f5e;
    }
}

@layer utilities {
    @media (max-width: 64rem) {
        .campus-map-layout {
            grid-template-columns: 1fr;
        }
        .campus-floorplan-board {
            min-block-size: 32rem;
        }
        .theater-body-grid {
            grid-template-columns: 1fr;
        }
        .cartoon-stage-viewport {
            border-inline-end: none;
            border-block-end: 1px solid var(--border-ui);
        }
    }

    @media (max-width: 48rem) {
        .scifi-topbar-shell {
            padding: 0.45rem 0.65rem;
        }
        .scifi-telemetry-hud {
            font-size: 0.64rem;
            padding: 0.28rem 0.65rem;
        }
        .scifi-stage-layer {
            justify-content: flex-start;
            padding: 0.5rem 0.65rem 1.5rem;
        }
        .scifi-split-portals-hud {
            grid-template-columns: 1fr;
            gap: 0.75rem;
        }
        .holo-3d-answer-portals-row {
            grid-template-columns: 1fr;
            gap: 0.6rem;
        }
        .scifi-name-form {
            flex-direction: column;
        }
        .q3d-top-bar {
            flex-direction: column;
            align-items: stretch;
            text-align: center;
        }
        .q3d-top-actions {
            justify-content: center;
        }
        .nav-links,
        .main-navbar,
        .top-cyber-bar {
            display: none !important;
        }
        .mobile-bottom-nav {
            display: flex;
        }
        .top-cyber-inner {
            justify-content: center;
            text-align: center;
        }
        .cartoon-actors-arena {
            grid-template-columns: 1fr;
        }
        .story-tabs-strip {
            grid-template-columns: repeat(2, 1fr);
        }
        .stage-narrator-box {
            flex-direction: column;
            text-align: center;
        }
    }

    @media print {
        @page {
            size: A4 landscape;
            margin: 0;
        }
        html, body {
            inline-size: 297mm !important;
            block-size: 209mm !important;
            min-block-size: 0 !important;
            max-block-size: 209mm !important;
            margin: 0 !important;
            padding: 0 !important;
            overflow: hidden !important;
            background: #ffffff !important;
            -webkit-print-color-adjust: exact !important;
            print-color-adjust: exact !important;
        }
        .top-cyber-bar, .main-navbar, .mobile-bottom-nav, .site-footer, .no-print, .opening-splash, .glass-panel {
            display: none !important;
        }
        .section-block, .container {
            padding: 0 !important;
            margin: 0 !important;
            max-inline-size: none !important;
            inline-size: 100% !important;
            block-size: 100% !important;
        }
        .certificate-frame {
            position: fixed !important;
            inset: 8mm !important;
            margin: 0 !important;
            padding: 4mm !important;
            border: 5px solid #d97706 !important;
            border-radius: 14px !important;
            box-shadow: none !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            box-sizing: border-box !important;
            page-break-inside: avoid !important;
            page-break-after: avoid !important;
            page-break-before: avoid !important;
            break-inside: avoid !important;
        }
        .cert-inner-border {
            inline-size: 100% !important;
            block-size: 100% !important;
            padding: 10mm 16mm !important;
            box-sizing: border-box !important;
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: center !important;
        }
        .cert-top-emblem {
            font-size: 3.4rem !important;
            margin-block-end: 4mm !important;
        }
        .cert-main-title {
            font-size: 26pt !important;
            margin-block: 3mm 5mm !important;
        }
        .cert-lead-text {
            font-size: 13pt !important;
            max-inline-size: 80% !important;
            margin-block-end: 6mm !important;
        }
        .cert-holder-name {
            font-size: 30pt !important;
            margin-block-end: 4mm !important;
        }
        .cert-level-text {
            font-size: 13pt !important;
            margin-block-end: 8mm !important;
        }
        .cert-signatures-row {
            inline-size: 85% !important;
            margin-block-start: 4mm !important;
            padding-block-start: 5mm !important;
        }
    }
}
