/* ============================================================
   HAMMAD QUIZ — Mobile-First Interactive Knowledge Adventure
   Design System & Scene Styles (390px Mobile Hero Baseline)
   ============================================================ */

/* CSS Variables / Theme Tokens */
:root {
    --bg-universe: #070B19;
    --bg-universe-deep: #03060F;
    --bg-deen: #041812;
    --bg-deen-deep: #020C09;
    --bg-parent: #0A0F24;
    
    /* Brand & Accent Colors */
    --gold-100: #FEF3C7;
    --gold-300: #FDE68A;
    --gold-400: #FBBF24;
    --gold-500: #F59E0B;
    --gold-600: #D97706;
    
    --cyan-300: #7DD3FC;
    --cyan-400: #38BDF8;
    --cyan-500: #0EA5E9;
    --cyan-glow: rgba(56, 189, 248, 0.4);

    --emerald-300: #6EE7B7;
    --emerald-400: #34D399;
    --emerald-500: #10B981;
    --emerald-glow: rgba(16, 185, 129, 0.35);

    --purple-400: #A78BFA;
    --purple-500: #8B5CF6;
    --purple-glow: rgba(139, 92, 246, 0.35);

    --coral-400: #F87171;
    --coral-500: #EF4444;

    /* Glass & Surface */
    --glass-bg: rgba(15, 23, 42, 0.65);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-gold: rgba(245, 158, 11, 0.3);
    --glass-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing & Sizing */
    --hud-height: 64px;
    --max-content-w: 1200px;
    --border-radius-sm: 10px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base Reset & Optimization */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-universe);
    color: #F1F5F9;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-universe);
    color: #E2E8F0;
    overflow-x: hidden;
    line-height: 1.5;
    position: relative;
    min-height: 100vh;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.15;
    color: #FFFFFF;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

button:focus-visible, a:focus-visible {
    outline: 2px solid var(--gold-400);
    outline-offset: 3px;
}

.gold-text {
    background: linear-gradient(135deg, var(--gold-300) 0%, var(--gold-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.cyan-text {
    background: linear-gradient(135deg, #BAE6FD 0%, var(--cyan-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.emerald-text {
    background: linear-gradient(135deg, #A7F3D0 0%, var(--emerald-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.purple-text {
    background: linear-gradient(135deg, #DDD6FE 0%, var(--purple-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.red-gold-text {
    background: linear-gradient(135deg, #FCA5A5 0%, #F59E0B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Starfield & Ambient Glow Canvas */
.stars-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    opacity: 0.35;
    z-index: 0;
    transition: opacity 1s ease;
}

.glow-1 {
    top: 10%;
    left: 5%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
}

.glow-2 {
    top: 45%;
    right: 5%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
}

.glow-3 {
    bottom: 10%;
    left: 20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, transparent 70%);
}

/* Subtle Geometric Pattern Overlay */
.islamic-geom-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(245, 158, 11, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

/* ============================================================
   HUD / TOP NAVIGATION BAR
   ============================================================ */
.hud-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--hud-height);
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(7, 11, 25, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-fast);
}

.hud-container {
    max-width: var(--max-content-w);
    height: 100%;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hud-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-badge {
    position: relative;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid var(--glass-border-gold);
    border-radius: var(--border-radius-sm);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}

.brand-crescent {
    width: 22px;
    height: 22px;
}

.brand-sparkle {
    position: absolute;
    top: 4px;
    right: 5px;
    font-size: 9px;
    color: var(--gold-300);
    animation: sparkle-pulse 2s infinite ease-in-out;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: #FFFFFF;
}

.brand-tag {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--gold-400);
}

.hud-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hud-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: var(--border-radius-full);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: #CBD5E1;
    font-size: 0.78rem;
    font-weight: 600;
    width: fit-content;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.hud-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
}

.hud-cta-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-600) 100%);
    border-radius: var(--border-radius-full);
    color: #0F172A;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.4);
    transition: var(--transition-spring);
}

.hud-cta-pill:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.6);
}

.pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #0F172A;
    animation: blink-dot 1.5s infinite;
}

/* ============================================================
   SCENE COMMON FRAMEWORK
   ============================================================ */
.scene {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    padding: calc(var(--hud-height) + 24px) 16px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scene-container {
    width: 100%;
    max-width: 440px; /* Mobile Hero Container */
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.scene-header {
    text-align: center;
    margin-bottom: 24px;
}

.scene-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--border-radius-full);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--cyan-400);
    margin-bottom: 10px;
}

.pill-gold {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--gold-400);
}

.pill-emerald {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--emerald-400);
}

.pill-cyan {
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.3);
    color: var(--cyan-400);
}

.pill-red {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: #F87171;
}

.pill-purple {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--purple-400);
}

.scene-title {
    font-size: 1.85rem;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.scene-desc {
    font-size: 0.88rem;
    color: #94A3B8;
    line-height: 1.4;
}

/* ============================================================
   SCENE 1 — ENTER HAMMAD QUIZ
   ============================================================ */
.scene-enter {
    min-height: calc(100vh - var(--hud-height));
    padding-top: calc(var(--hud-height) + 12px);
    overflow: hidden;
}

.knowledge-universe-orbit {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 360px;
    height: 360px;
    pointer-events: none;
    z-index: 1;
}

.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(245, 158, 11, 0.18);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring-1 {
    width: 320px;
    height: 320px;
    animation: rotate-orbit 45s linear infinite;
}

.ring-2 {
    width: 240px;
    height: 240px;
    border-color: rgba(56, 189, 248, 0.15);
    animation: rotate-orbit-reverse 35s linear infinite;
}

.floating-node {
    position: absolute;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    border-radius: var(--border-radius-full);
    color: #F8FAFC;
    font-size: 0.72rem;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: var(--transition-spring);
}

.floating-node:hover {
    transform: scale(1.1);
    border-color: var(--gold-400);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.node-quiz      { top: 5%;  left: 20%; animation: float-subtle 4s ease-in-out infinite; }
.node-battle    { top: 12%; right: 8%; animation: float-subtle 5s ease-in-out infinite 0.5s; }
.node-deen      { top: 48%; right: -2%; animation: float-subtle 4.5s ease-in-out infinite 1s; }
.node-guess     { bottom: 18%; right: 10%; animation: float-subtle 4s ease-in-out infinite 1.5s; }
.node-challenge { bottom: 14%; left: 10%; animation: float-subtle 5.5s ease-in-out infinite 2s; }
.node-compete   { top: 45%; left: -4%; animation: float-subtle 4.2s ease-in-out infinite 2.5s; }

.hero-character-stage {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-width: 290px;
}

.hero-halo {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(56, 189, 248, 0.15) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(25px);
    z-index: 1;
}

.character-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hammad-hero-img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.6));
    animation: hero-breathe 6s ease-in-out infinite;
}

.character-pedestal {
    position: relative;
    width: 180px;
    height: 12px;
    background: transparent;
    margin-top: -10px;
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    margin-top: 10px;
}

.hero-spacer {
    height: 27px;
    margin-bottom: 8px;
}

.hero-title {
    font-size: 2.3rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 6px;
}

.hero-subtext {
    font-size: 1rem;
    font-weight: 700;
    color: #CBD5E1;
    margin-bottom: 20px;
}

.pill-word {
    color: #FFFFFF;
}

.hero-invitation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.adventure-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-600) 100%);
    border-radius: var(--border-radius-full);
    color: #0A0F1D;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.45);
    transition: var(--transition-spring);
}

.adventure-btn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 0 32px rgba(245, 158, 11, 0.7);
}

.btn-arrow {
    font-size: 1.1rem;
    animation: bounce-down 1.8s infinite;
}

.scroll-cue {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.7;
}

.scroll-mouse {
    width: 20px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 6px;
    background: var(--gold-400);
    border-radius: 2px;
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheel-slide 1.5s infinite;
}

.scroll-text {
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    color: #94A3B8;
}

/* ============================================================
   SCENE 2 — KNOWLEDGE PATH (Dynamic Vertical Map)
   ============================================================ */
.scene-path {
    padding-top: 48px;
}

.path-board-container {
    position: relative;
    width: 100%;
    max-width: 360px;
    height: 860px;
    margin: 0 auto;
}

.path-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.path-track-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 4 8;
}

.path-track-active {
    fill: none;
    stroke: url(#pathGradient);
    stroke-width: 7;
    stroke-linecap: round;
    filter: url(#pathGlow);
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 0.8s ease-out;
}

/* Path Nodes Along Coordinates */
.path-node {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: var(--transition-spring);
    user-select: none;
}

.path-node:hover, .path-node.active {
    transform: translate(-50%, -50%) scale(1.06);
}

.node-marker {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #0B132B;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.path-node.active .node-marker {
    border-color: var(--gold-400);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
}

.marker-icon {
    font-size: 1.1rem;
    z-index: 2;
}

.node-num {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: var(--gold-500);
    color: #0F172A;
    font-size: 0.55rem;
    font-weight: 900;
    padding: 1px 4px;
    border-radius: 4px;
    z-index: 3;
}

.marker-pulse {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid var(--gold-400);
    opacity: 0;
    pointer-events: none;
}

.path-node.active .marker-pulse {
    animation: node-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.node-card {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 8px 14px;
    min-width: 140px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transition: var(--transition-fast);
}

.path-node.active .node-card {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(20, 30, 55, 0.9);
}

.node-tag {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--cyan-400);
    display: block;
}

.node-title {
    font-size: 0.88rem;
    font-weight: 900;
    margin: 1px 0;
}

.node-info {
    font-size: 0.68rem;
    color: #94A3B8;
}

/* Winding Coordinate Anchors (Left/Right alternating flow) */
.node-pos-1 { top: 30px;  left: 50%; }
.node-pos-2 { top: 155px; left: 35%; flex-direction: row-reverse; text-align: right; }
.node-pos-3 { top: 280px; left: 65%; }
.node-pos-4 { top: 410px; left: 32%; flex-direction: row-reverse; text-align: right; }
.node-pos-5 { top: 540px; left: 68%; }
.node-pos-6 { top: 670px; left: 32%; flex-direction: row-reverse; text-align: right; }
.node-pos-7 { top: 800px; left: 50%; }

/* ============================================================
   SCENE 3 — PLAY A REAL MINI QUIZ (Interactive Live Arena)
   ============================================================ */
.scene-quiz {
    padding-top: 48px;
}

.quiz-arena-box {
    background: radial-gradient(120% 120% at 50% 0%, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(245, 158, 11, 0.25);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 20px 16px;
    position: relative;
    overflow: hidden;
}

.quiz-arena-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
}

.quiz-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.quiz-streak, .quiz-score-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 10px;
    border-radius: var(--border-radius-full);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    font-weight: 800;
}

.streak-val {
    color: var(--gold-400);
}

.streak-lbl, .score-lbl {
    font-size: 0.62rem;
    color: #94A3B8;
}

.score-num {
    color: var(--cyan-400);
}

.quiz-timer-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timer-ring-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 3;
}

.timer-ring-progress {
    fill: none;
    stroke: var(--gold-400);
    stroke-width: 3.5;
    stroke-linecap: round;
    transition: stroke-dasharray 1s linear, stroke 0.3s;
}

.timer-val {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 900;
    color: #FFFFFF;
}

.quiz-question-shell {
    margin-bottom: 20px;
    text-align: center;
}

.quiz-category-tag {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--gold-400);
    margin-bottom: 6px;
}

.quiz-question-text {
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 8px;
    color: #FFFFFF;
}

.quiz-status-feedback {
    font-size: 0.78rem;
    color: #94A3B8;
    min-height: 20px;
    transition: color 0.2s;
}

.quiz-options-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-opt-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 13px 16px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--border-radius-md);
    color: #F1F5F9;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: left;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.quiz-opt-btn:hover:not(.locked) {
    background: rgba(51, 65, 85, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.opt-letter {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    color: #94A3B8;
    flex-shrink: 0;
}

.opt-text {
    flex-grow: 1;
}

.opt-state-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Correct Answer State */
.quiz-opt-btn.correct-glow {
    background: rgba(16, 185, 129, 0.25) !important;
    border-color: var(--emerald-400) !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    color: #FFFFFF;
}

.quiz-opt-btn.correct-glow .opt-letter {
    background: var(--emerald-500);
    color: #FFFFFF;
}

.quiz-opt-btn.correct-glow .opt-state-icon::after {
    content: '✓';
    color: var(--emerald-300);
    font-weight: 900;
}

/* Wrong Answer State */
.quiz-opt-btn.wrong-shake {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: var(--coral-500) !important;
    animation: wiggle-shake 0.4s ease-in-out;
}

.quiz-opt-btn.wrong-shake .opt-letter {
    background: var(--coral-500);
    color: #FFFFFF;
}

.quiz-opt-btn.wrong-shake .opt-state-icon::after {
    content: '✕';
    color: var(--coral-400);
    font-weight: 900;
}

.quiz-controls-row {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

.quiz-next-q-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-600) 100%);
    border-radius: var(--border-radius-full);
    color: #0F172A;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 900;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
    transition: var(--transition-spring);
}

.quiz-next-q-btn:hover {
    transform: scale(1.05);
}

/* ============================================================
   SCENE 4 — ISLAMIC KNOWLEDGE WORLD (Deen Universe)
   ============================================================ */
.scene-deen {
    background: radial-gradient(circle at 50% 30%, var(--bg-deen) 0%, var(--bg-universe-deep) 100%);
    padding-top: 48px;
    position: relative;
    overflow: hidden;
}

.deen-geom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(245, 158, 11, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.deen-topics-galaxy {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.deen-topic-orb {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(15, 28, 24, 0.7);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: var(--transition-spring);
}

.deen-topic-orb:hover, .deen-topic-orb:focus {
    transform: translateX(4px);
    border-color: var(--emerald-400);
    background: rgba(20, 38, 32, 0.9);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
}

.orb-visual {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.orb-emerald {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, rgba(6, 78, 59, 0.8) 100%);
    border: 1px solid var(--emerald-400);
}

.orb-gold {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, rgba(120, 53, 15, 0.8) 100%);
    border: 1px solid var(--gold-400);
}

.orb-cyan {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.3) 0%, rgba(12, 74, 110, 0.8) 100%);
    border: 1px solid var(--cyan-400);
}

.orb-purple {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(76, 29, 149, 0.8) 100%);
    border: 1px solid var(--purple-400);
}

.orb-amber {
    background: radial-gradient(circle, rgba(251, 191, 36, 0.3) 0%, rgba(146, 64, 14, 0.8) 100%);
    border: 1px solid var(--gold-300);
}

.orb-icon {
    font-size: 1.25rem;
    z-index: 2;
}

.orb-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 12px currentColor;
    opacity: 0.5;
}

.orb-info {
    flex-grow: 1;
}

.orb-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 2px;
}

.orb-count {
    font-size: 0.72rem;
    color: #94A3B8;
}

/* Topic Insight Drawer */
.deen-insight-drawer {
    margin-top: 18px;
    padding: 16px;
    background: rgba(6, 40, 30, 0.9);
    border: 1px solid var(--emerald-400);
    border-radius: var(--border-radius-md);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    display: none;
    animation: fadeIn 0.3s ease;
}

.deen-insight-drawer.active {
    display: block;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.drawer-badge {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--emerald-300);
    letter-spacing: 0.08em;
}

.drawer-close-btn {
    color: #94A3B8;
    font-size: 1rem;
    padding: 2px 6px;
}

.drawer-topic-title {
    font-size: 1.1rem;
    color: #FFFFFF;
    margin-bottom: 6px;
}

.drawer-topic-desc {
    font-size: 0.82rem;
    color: #CBD5E1;
    margin-bottom: 12px;
    line-height: 1.4;
}

.drawer-meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip {
    font-size: 0.68rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #D1FAE5;
    padding: 3px 8px;
    border-radius: var(--border-radius-full);
}

/* ============================================================
   SCENE 5 — GUESS THE WORD (Letter Puzzle Challenge)
   ============================================================ */
.scene-guess {
    padding-top: 48px;
}

.guess-game-box {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--border-radius-lg);
    padding: 20px 16px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}

.guess-clue-card {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px 14px;
    background: rgba(56, 189, 248, 0.08);
    border-radius: var(--border-radius-md);
    border: 1px dashed rgba(56, 189, 248, 0.3);
}

.clue-tag {
    font-size: 0.62rem;
    font-weight: 900;
    color: var(--cyan-400);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 4px;
}

.clue-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: #E2E8F0;
    font-style: italic;
}

.word-slots-row {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.slot-box {
    width: 38px;
    height: 46px;
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.6);
    border: 2px solid rgba(56, 189, 248, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 900;
    color: #FFFFFF;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.5);
    transition: var(--transition-spring);
}

.slot-box.filled {
    border-color: var(--cyan-400);
    background: rgba(14, 165, 233, 0.2);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.slot-box.correct-word {
    border-color: var(--emerald-400);
    background: rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.6);
    color: #FFFFFF;
}

.letter-tiles-pool {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    min-height: 90px;
}

.letter-tile {
    width: 42px;
    height: 48px;
    background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: var(--transition-spring);
    user-select: none;
}

.letter-tile:hover {
    transform: translateY(-3px);
    border-color: var(--cyan-400);
    box-shadow: 0 6px 14px rgba(56, 189, 248, 0.3);
}

.letter-tile.used {
    opacity: 0.2;
    pointer-events: none;
    transform: scale(0.9);
}

.guess-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.guess-btn-secondary {
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-full);
    color: #94A3B8;
    font-size: 0.72rem;
    font-weight: 700;
    transition: var(--transition-fast);
}

.guess-btn-secondary:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.15);
}

.guess-result-pill {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94A3B8;
    text-align: center;
}

.guess-btn-primary {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--cyan-400) 0%, var(--cyan-500) 100%);
    border-radius: var(--border-radius-full);
    color: #042F2E;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 900;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}

/* ============================================================
   SCENE 6 — KNOWLEDGE BATTLE (1v1 Arena)
   ============================================================ */
.scene-battle {
    padding-top: 48px;
}

.battle-stage {
    background: radial-gradient(100% 100% at 50% 0%, rgba(30, 27, 75, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
    border-radius: var(--border-radius-lg);
    padding: 20px 16px;
}

.battle-vs-hud {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.player-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.player-avatar-ring {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #1E293B;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-1 .player-avatar-ring {
    border-color: var(--cyan-400);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
}

.player-2 .player-avatar-ring {
    border-color: #F87171;
    box-shadow: 0 0 14px rgba(248, 113, 113, 0.4);
}

.avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.p-badge {
    position: absolute;
    bottom: -4px;
    font-size: 0.55rem;
    font-weight: 900;
    padding: 1px 6px;
    border-radius: var(--border-radius-full);
}

.p1-badge { background: var(--cyan-400); color: #082F49; }
.p2-badge { background: #F87171; color: #450A0A; }

.p-name {
    font-size: 0.82rem;
    font-weight: 800;
    color: #FFFFFF;
}

.p-hp-bar {
    width: 70px;
    height: 6px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--border-radius-full);
    overflow: hidden;
    margin: 2px 0;
}

.hp-fill {
    height: 100%;
    border-radius: var(--border-radius-full);
    transition: width 0.4s ease;
}

.hp-p1 { background: var(--cyan-400); }
.hp-p2 { background: #F87171; }

.p-score {
    font-size: 0.65rem;
    font-weight: 800;
    color: #94A3B8;
}

.battle-vs-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.vs-emblem {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--gold-400);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

.battle-timer-ring {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}

.battle-clock {
    font-size: 0.72rem;
    font-weight: 900;
    color: #FFFFFF;
}

.battle-question-box {
    text-align: center;
    margin-bottom: 16px;
}

.battle-q-tag {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #F87171;
    margin-bottom: 4px;
}

.battle-q-text {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 16px;
}

.battle-options-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.battle-opt-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--border-radius-md);
    color: #F1F5F9;
    font-size: 0.88rem;
    font-weight: 700;
    transition: var(--transition-fast);
}

.battle-opt-btn:hover {
    background: rgba(51, 65, 85, 0.8);
    transform: translateY(-2px);
}

.b-opt-idx {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.battle-clash-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.clash-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #F87171;
    animation: blink-dot 1s infinite;
}

.clash-text {
    font-size: 0.72rem;
    color: #94A3B8;
}

/* ============================================================
   SCENE 7 — CHALLENGES (Horizontal Peeking Nodes)
   ============================================================ */
.scene-challenges {
    padding-top: 48px;
    overflow: hidden;
}

.portals-swipe-wrap {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 12px 16px 20px;
    margin: 0 -16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.portals-swipe-wrap::-webkit-scrollbar {
    display: none;
}

.portal-card {
    flex: 0 0 280px;
    scroll-snap-align: center;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 22px 18px;
    position: relative;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: var(--transition-spring);
}

.portal-card:hover {
    transform: translateY(-4px) scale(1.02);
}

.portal-gold   { border-color: rgba(245, 158, 11, 0.35); }
.portal-cyan   { border-color: rgba(56, 189, 248, 0.35); }
.portal-emerald{ border-color: rgba(16, 185, 129, 0.35); }
.portal-purple { border-color: rgba(139, 92, 246, 0.35); }
.portal-amber  { border-color: rgba(251, 191, 36, 0.35); }
.portal-coral  { border-color: rgba(248, 113, 113, 0.35); }

.portal-badge {
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    padding: 3px 10px;
    border-radius: var(--border-radius-full);
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 12px;
}

.portal-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.portal-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 6px;
}

.portal-desc {
    font-size: 0.8rem;
    color: #94A3B8;
    line-height: 1.4;
    margin-bottom: 16px;
    flex-grow: 1;
}

.portal-reward {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #94A3B8;
    margin-bottom: 16px;
}

.reward-val {
    color: var(--gold-400);
}

.portal-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-full);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    color: #FFFFFF;
    transition: var(--transition-fast);
}

.portal-action-btn:hover {
    background: var(--gold-500);
    color: #0F172A;
    border-color: var(--gold-500);
}

.swipe-hint-indicator {
    text-align: center;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #64748B;
    margin-top: 4px;
}

/* ============================================================
   SCENE 8 — COMPETITION (Podium & Trophies)
   ============================================================ */
.scene-competition {
    padding-top: 48px;
}

.arena-podium-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trophy-stage {
    position: relative;
    text-align: center;
    margin-bottom: 24px;
}

.trophy-icon-wrap {
    position: relative;
    display: inline-block;
}

.trophy-emblem {
    font-size: 3.5rem;
    display: inline-block;
    animation: trophy-hover 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.6));
}

.trophy-star {
    position: absolute;
    color: var(--gold-300);
    font-size: 1rem;
    animation: sparkle-pulse 2s infinite ease-in-out;
}

.s1 { top: 0; left: -12px; animation-delay: 0.2s; }
.s2 { top: 10px; right: -14px; animation-delay: 0.6s; }
.s3 { bottom: 6px; left: 10px; animation-delay: 1s; }

.trophy-label {
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: var(--gold-400);
    margin-top: 6px;
}

.podium-display {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 8px;
    align-items: flex-end;
    width: 100%;
    margin-bottom: 20px;
}

.podium-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.podium-avatar-wrap {
    position: relative;
    margin-bottom: 6px;
}

.crown-icon {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.1rem;
    animation: float-subtle 2.5s ease-in-out infinite;
}

.podium-avatar {
    border-radius: 50%;
    background: #1E293B;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.rank-1 .podium-avatar {
    border-color: var(--gold-400);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.5);
}

.podium-medal {
    position: absolute;
    bottom: -4px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0F172A;
}

.podium-medal.gold   { background: var(--gold-400); }
.podium-medal.silver { background: #CBD5E1; }
.podium-medal.bronze { background: #F97316; }

.podium-p-name {
    font-size: 0.78rem;
    font-weight: 800;
    color: #FFFFFF;
}

.podium-score {
    font-size: 0.68rem;
    font-weight: 700;
    color: #94A3B8;
    margin-bottom: 8px;
}

.podium-pillar {
    width: 100%;
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
}

.pillar-1 {
    height: 90px;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.3) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-bottom: none;
    color: var(--gold-300);
}

.pillar-2 {
    height: 65px;
    background: linear-gradient(180deg, rgba(203, 213, 225, 0.2) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(203, 213, 225, 0.3);
    border-bottom: none;
}

.pillar-3 {
    height: 48px;
    background: linear-gradient(180deg, rgba(249, 115, 22, 0.2) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-bottom: none;
}

.live-user-rank-card {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.rank-pos {
    display: flex;
    flex-direction: column;
}

.rank-num {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--gold-400);
}

.rank-delta.positive {
    font-size: 0.62rem;
    font-weight: 800;
    color: var(--emerald-400);
}

.rank-user-info {
    display: flex;
    flex-direction: column;
}

.rank-user-name {
    font-size: 0.82rem;
    font-weight: 800;
    color: #FFFFFF;
}

.rank-user-xp {
    font-size: 0.68rem;
    color: #94A3B8;
}

.rank-boost-btn {
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-600) 100%);
    border-radius: var(--border-radius-full);
    color: #0F172A;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 900;
    transition: var(--transition-spring);
}

.rank-boost-btn:hover {
    transform: scale(1.08);
}

/* ============================================================
   SCENE 9 — PARENT MOMENT (Clean, Warm Environment)
   ============================================================ */
.scene-parent {
    background: radial-gradient(circle at 50% 50%, var(--bg-parent) 0%, var(--bg-universe-deep) 100%);
    padding-top: 56px;
    padding-bottom: 56px;
}

.parent-statement-wrap {
    text-align: center;
}

.parent-badge {
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: var(--cyan-400);
    display: inline-block;
    margin-bottom: 12px;
}

.parent-headline {
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.parent-highlight {
    color: var(--gold-400);
}

/* Cognitive Flow Progression */
.cognitive-flow-chain {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
}

.flow-step {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    width: 200px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-full);
}

.flow-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.flow-word {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #FFFFFF;
}

.flow-arrow {
    color: var(--gold-400);
    font-size: 0.9rem;
}

.parent-pill-quote {
    margin-bottom: 24px;
}

.quote-main {
    font-size: 1.05rem;
    font-weight: 700;
    color: #E2E8F0;
}

.parent-pillars-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    max-width: 320px;
    margin: 0 auto;
}

.parent-pillar-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #CBD5E1;
}

.pillar-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.2);
    color: var(--emerald-400);
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* ============================================================
   SCENE 10 — FINAL DESTINATION (Peak Summit)
   ============================================================ */
.scene-destination {
    padding-top: 48px;
    padding-bottom: 64px;
    position: relative;
    overflow: hidden;
}

.destination-beacon-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, rgba(56, 189, 248, 0.1) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.summit-character-stage {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 0 auto 16px;
    max-width: 240px;
}

.summit-character-wrapper {
    position: relative;
    z-index: 2;
}

.hammad-summit-img {
    width: 100%;
    height: auto;
    max-height: 340px;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.6));
    animation: hero-breathe 5s ease-in-out infinite;
}

.destination-content {
    text-align: center;
    position: relative;
    z-index: 3;
}

.destination-pill {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: var(--gold-400);
    margin-bottom: 8px;
}

.destination-title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.destination-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.main-play-cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: linear-gradient(135deg, #FDE68A 0%, #F59E0B 50%, #D97706 100%);
    border-radius: var(--border-radius-full);
    color: #0A0F1D;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.6);
    transition: var(--transition-spring);
}

.main-play-cta-btn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 0 50px rgba(245, 158, 11, 0.9);
}

.cta-arrow {
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.main-play-cta-btn:hover .cta-arrow {
    transform: translateX(4px);
}

.dest-tagline {
    font-size: 0.92rem;
    font-weight: 700;
    color: #CBD5E1;
    margin-bottom: 12px;
}

.dest-tag {
    color: #FFFFFF;
}

.domain-badge {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #64748B;
}

/* ============================================================
   UNIFIED FOOTER
   ============================================================ */
.site-footer {
    position: relative;
    z-index: 10;
    background: #03060F;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 48px 16px 32px;
}

.footer-container {
    max-width: var(--max-content-w);
    margin: 0 auto;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
    margin-bottom: 36px;
}

.footer-brand {
    max-width: 320px;
    text-align: center;
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.footer-tagline {
    font-size: 0.82rem;
    color: #94A3B8;
    line-height: 1.5;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
    text-align: center;
}

.footer-col {
    text-align: center;
}

.footer-col-title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--gold-400);
    margin-bottom: 12px;
}

.footer-ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-ul a {
    font-size: 0.82rem;
    color: #94A3B8;
    transition: color 0.2s;
}

.footer-ul a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
}

.copyright-text {
    font-size: 0.72rem;
    color: #64748B;
}

.footer-sub-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.72rem;
    color: #64748B;
}

.footer-sub-links a:hover {
    color: var(--gold-400);
}

/* ============================================================
   PAGE LAYOUT FOR PRIVACY, TERMS, CONTACT (Standalone pages)
   ============================================================ */
.legal-page-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: calc(var(--hud-height) + 40px) 20px 60px;
}

.legal-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 32px 24px;
    backdrop-filter: blur(12px);
}

.legal-card h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.legal-card .last-updated {
    font-size: 0.78rem;
    color: var(--gold-400);
    margin-bottom: 24px;
}

.legal-card h2 {
    font-size: 1.25rem;
    margin: 24px 0 10px;
    color: #F8FAFC;
}

.legal-card p, .legal-card ul {
    font-size: 0.9rem;
    color: #CBD5E1;
    line-height: 1.6;
    margin-bottom: 14px;
}

.legal-card ul {
    padding-left: 20px;
}

.contact-form-group {
    margin-bottom: 16px;
}

.contact-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #E2E8F0;
    margin-bottom: 6px;
}

.contact-input, .contact-textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-md);
    color: #FFFFFF;
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.contact-input:focus, .contact-textarea:focus {
    outline: none;
    border-color: var(--gold-400);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
}

.contact-submit-btn {
    display: block;
    margin: 0 auto;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-600) 100%);
    border-radius: var(--border-radius-full);
    color: #0F172A;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 900;
}

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes hero-breathe {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes float-subtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes rotate-orbit {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotate-orbit-reverse {
    0% { transform: translate(-50%, -50%) rotate(360deg); }
    100% { transform: translate(-50%, -50%) rotate(0deg); }
}

@keyframes sparkle-pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes node-ping {
    75%, 100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

@keyframes bounce-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

@keyframes wheel-slide {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 12px); }
}

@keyframes blink-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes wiggle-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

@keyframes trophy-hover {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE DESIGN (Adaptive Scaling for Larger Screens)
   ============================================================ */
/* 430px+ (Large Mobile) */
@media (min-width: 430px) {
    .scene-container {
        max-width: 420px;
    }
    .hero-title {
        font-size: 2.6rem;
    }
}

/* 768px+ (Tablet) */
@media (min-width: 768px) {
    .scene-container {
        max-width: 680px;
    }
    .hero-character-stage {
        max-width: 320px;
    }
    .hero-title {
        font-size: 3.2rem;
    }
    .scene-title {
        font-size: 2.3rem;
    }
    .deen-topics-galaxy {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
    }
    .footer-brand {
        text-align: left;
    }
    .footer-links-grid {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
    }
    .footer-col {
        text-align: left;
    }
    .footer-ul {
        align-items: flex-start;
    }
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    .footer-copy-block {
        align-items: flex-start;
        text-align: left;
    }
    .footer-sub-links {
        justify-content: flex-end;
    }
}

/* 1024px+ (Desktop Cinematic Presentation) */
@media (min-width: 1024px) {
    .scene-container {
        max-width: 960px;
    }
    .scene-enter .scene-container {
        display: grid;
        grid-template-columns: 1fr 1.1fr;
        align-items: center;
        gap: 40px;
        text-align: left;
    }
    .hero-content {
        text-align: left;
        order: 1;
        position: static;
    }
    .hero-character-stage {
        order: 2;
        max-width: 360px;
    }
    .hero-invitation {
        align-items: flex-start;
        position: static;
    }
    .scene-enter {
        position: relative;
        padding-bottom: 80px;
    }
    .scene-enter .scene-container {
        position: static;
    }
    .scene-enter .scroll-cue {
        position: absolute;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 15;
        margin: 0;
    }
    .knowledge-universe-orbit {
        left: calc(50% + 220px);
        width: 480px;
        height: 480px;
    }
    .ring-1 { width: 440px; height: 440px; }
    .ring-2 { width: 340px; height: 340px; }
    .deen-topics-galaxy {
        grid-template-columns: repeat(3, 1fr);
    }
    .portals-swipe-wrap {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow-x: visible;
        margin: 0;
        padding: 0;
    }
    .portal-card {
        flex: auto;
    }
    .swipe-hint-indicator {
        display: none;
    }
    .cognitive-flow-chain {
        flex-direction: row;
        justify-content: center;
    }
    .flow-arrow {
        transform: rotate(-90deg);
    }
    .parent-pillars-row {
        flex-direction: row;
        max-width: 700px;
        justify-content: center;
    }
}

/* Reduced Motion Mode Support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   SCENE: MOBILE APP REVEAL (Smartphone Mockup & Stores)
   ============================================================ */
.scene-mobile-app {
    background: radial-gradient(circle at 50% 30%, rgba(14, 165, 233, 0.08) 0%, rgba(7, 11, 25, 0.95) 70%), var(--bg-universe);
    position: relative;
    overflow: hidden;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.app-phone-stage {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem auto 1.25rem;
    width: 100%;
    max-width: 360px;
}

.phone-glow-aura {
    position: absolute;
    width: 280px;
    height: 420px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, rgba(56, 189, 248, 0.12) 50%, transparent 75%);
    filter: blur(32px);
    z-index: 0;
    pointer-events: none;
}

/* 390px Mobile Smartphone Frame */
.phone-device-shell {
    position: relative;
    z-index: 1;
    width: 82%;
    max-width: 310px;
    aspect-ratio: 9 / 18.5;
    background: #0B1226;
    border-radius: 40px;
    border: 4px solid #1E293B;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.35), 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(56, 189, 248, 0.2);
    padding: 10px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.phone-top-notch {
    width: 70px;
    height: 14px;
    background: #0F172A;
    border-radius: 0 0 10px 10px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.notch-sensor {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1E293B;
}

.phone-screen-viewport {
    position: relative;
    flex: 1;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #09122C 0%, #030712 100%);
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 10px 10px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* In-Screen HUD */
.screen-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 3;
    padding: 0 4px;
}

.screen-brand {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #FFFFFF;
}

.screen-chips {
    display: flex;
    gap: 4px;
}

.s-chip {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--border-radius-full);
    background: rgba(255, 255, 255, 0.08);
    color: #F1F5F9;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.s-chip.s-gold {
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold-400);
    border-color: rgba(245, 158, 11, 0.35);
}

/* Hammad inside screen - Centered & Prominent */
.screen-character-area {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    min-height: 380px;
    margin: 0;
    overflow: hidden;
}

.screen-hammad-img {
    position: relative;
    z-index: 2;
    height: 90%;
    max-height: 378px;
    width: auto;
    object-fit: contain;
    margin-left: auto;
    margin-right: auto;
    transform: translateX(4px);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6));
    animation: hammadGentleFloat 4s ease-in-out infinite alternate;
}

@keyframes hammadGentleFloat {
    0% { transform: translateY(0px) translateX(4px); }
    100% { transform: translateY(-4px) translateX(4px); }
}

.screen-aura-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.28) 0%, rgba(56, 189, 248, 0.16) 50%, transparent 70%);
    z-index: 1;
    filter: blur(16px);
}

/* Bottom 5-Item Mobile Navigation Bar */
.screen-bottom-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 14px;
    padding: 6px 4px;
    z-index: 4;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.s-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 0.52rem;
    font-weight: 700;
    color: #94A3B8;
    flex: 1;
    text-align: center;
}

.s-tab-icon {
    font-size: 0.72rem;
}

.s-tab.active {
    color: var(--gold-400);
    font-weight: 800;
}

.s-tab.active .s-tab-icon {
    transform: scale(1.1);
}

/* App Info & Store controls */
.app-info-block {
    text-align: center;
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.app-features-line {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cyan-300);
    letter-spacing: 0.02em;
    margin: 0;
}

.app-sub-statement {
    font-size: 0.82rem;
    color: #94A3B8;
    max-width: 320px;
    margin: 0 auto;
    line-height: 1.4;
}

.app-download-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    max-width: min(340px, 100%);
    margin: 0.5rem auto 0;
    box-sizing: border-box;
}

.app-section-download-btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.app-store-btns-row {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.app-store-btns-row .store-badge-action {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
}

.app-store-btns-row .store-badge-img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 42px;
    object-fit: contain;
}

@media (min-width: 391px) {
    .app-store-btns-row {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    .app-store-btns-row .store-badge-action {
        width: auto;
        flex: 1 1 calc(50% - 6px);
        max-width: calc(50% - 6px);
        min-width: 0;
    }
}

.store-badge-action {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.store-badge-action:hover, .store-badge-action:focus-visible {
    transform: translateY(-2px) scale(1.03);
    filter: drop-shadow(0 4px 12px rgba(245, 158, 11, 0.35));
    outline: none;
}

.store-badge-action:active {
    transform: translateY(0) scale(0.98);
}

.store-badge-img {
    height: 42px;
    width: auto;
    display: block;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.store-toast, .modal-toast, .app-card-toast {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gold-400);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 6px 14px;
    border-radius: var(--border-radius-full);
    margin-top: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    animation: toastPop 0.3s ease;
}

@keyframes toastPop {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   DOWNLOAD APP MODAL
   ============================================================ */
.download-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    overflow: hidden;
    box-sizing: border-box;
}

.download-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 6, 15, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-body-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding-right: 28px;
}

.modal-dialog-card {
    position: relative;
    z-index: 10;
    width: min(380px, calc(100vw - 24px));
    max-width: min(380px, calc(100vw - 24px));
    max-height: 90vh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    background: linear-gradient(135deg, #0D1630 0%, #080D1F 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 24px;
    padding: 2rem 1.25rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.2);
    transform: scale(0.92) translateY(12px);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.download-modal-overlay.is-open .modal-dialog-card {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #CBD5E1;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #F87171;
    transform: scale(1.08);
}

.modal-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--border-radius-full);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    margin-bottom: 0.85rem;
}

.modal-icon {
    font-size: 1rem;
}

.modal-brand-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--gold-400);
    letter-spacing: 0.04em;
}

.modal-heading {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 0.4rem;
    line-height: 1.3;
}

.modal-subtext {
    font-size: 0.85rem;
    color: #94A3B8;
    margin: 0 0 1.25rem;
}

.modal-actions-stack {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.modal-actions-stack--split {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.modal-glow-bg {
    pointer-events: none;
}

/* Real modal CTA anchors — must read as buttons (not inherited link text) */
.modal-dialog-card a.modal-cta-btn,
.app-download-actions a.modal-cta-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: var(--border-radius-full);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
    -webkit-appearance: none;
    color: #0A0F1D;
}

.modal-dialog-card a.modal-cta-btn--stacked,
.app-download-actions a.modal-cta-btn--stacked {
    flex-direction: column;
    padding: 10px 16px;
    min-height: 52px;
}

.modal-dialog-card a.modal-cta-btn--gold,
.app-download-actions a.modal-cta-btn--gold {
    background: linear-gradient(135deg, #FDE68A 0%, #F59E0B 50%, #D97706 100%);
    color: #0A0F1D;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.45);
}

.modal-dialog-card a.modal-cta-btn--outline {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(56, 189, 248, 0.45);
    color: #E0F2FE;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.modal-cta-btn__line {
    display: block;
    width: 100%;
    line-height: 1.25;
    white-space: nowrap;
}

.modal-cta-btn__sub {
    display: block;
    width: 100%;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 3px;
    opacity: 0.88;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.modal-dialog-card a.modal-cta-btn--gold:hover,
.modal-dialog-card a.modal-cta-btn--gold:focus-visible,
.app-download-actions a.modal-cta-btn--gold:hover,
.app-download-actions a.modal-cta-btn--gold:focus-visible {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.65);
    color: #0A0F1D;
    outline: none;
}

.modal-dialog-card a.modal-cta-btn--outline:hover,
.modal-dialog-card a.modal-cta-btn--outline:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.7);
    background: rgba(56, 189, 248, 0.12);
    color: #E0F2FE;
    outline: none;
}

.modal-dialog-card a.modal-cta-btn:active,
.app-download-actions a.modal-cta-btn:active {
    transform: translateY(0) scale(0.98);
}

.modal-store-grid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.modal-store-grid .store-badge-action {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
}

.modal-store-grid .store-badge-img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 44px;
    object-fit: contain;
}

@media (max-width: 390px) {
    .download-modal-overlay {
        padding: 12px;
    }

    .modal-dialog-card {
        padding: 1.35rem 1rem;
    }

    .modal-actions-stack {
        gap: 10px;
    }

    .modal-actions-stack--split {
        gap: 8px;
    }

    .modal-subtext {
        margin-bottom: 1rem;
    }

    .modal-heading {
        font-size: 1.12rem;
    }

    .app-download-actions {
        gap: 10px;
        max-width: 100%;
        padding: 0 0.25rem;
        box-sizing: border-box;
    }
}

@media (max-width: 359px) {
    .app-store-btns-row {
        flex-direction: column;
        align-items: center;
    }

    .app-store-btns-row .store-badge-action {
        width: 100%;
        max-width: 100%;
    }
}

@media (min-width: 391px) {
    .modal-store-grid {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
    }

    .modal-store-grid .store-badge-action {
        width: auto;
        flex: 1 1 calc(50% - 6px);
        max-width: calc(50% - 6px);
        min-width: 0;
    }
}

@media (min-width: 431px) {
    .modal-actions-stack--split {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: stretch;
        gap: 12px;
    }

    .modal-actions-stack--split a.modal-cta-btn {
        flex: 1 1 calc(50% - 6px);
        max-width: calc(50% - 6px);
        min-width: 0;
    }
}

/* ============================================================
   OTHER APPS SECTION (Zabira Academy & Jawwad Play)
   ============================================================ */
.scene-other-apps {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.other-apps-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1rem;
}

.other-app-card {
    background: radial-gradient(120% 120% at 50% 0%, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.85) 100%);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 20px;
    padding: 1.25rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.15rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.other-app-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.15);
}

.other-app-card:focus-visible {
    outline: none;
    border-color: var(--gold-400);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.4);
}

.app-card-badge {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
    overflow: hidden;
}

.app-card-badge.badge-gold {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.28);
}

.app-card-badge.badge-cyan {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
}

.app-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.app-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0;
}

.app-card-tagline {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold-300);
    margin: 0;
}

.app-card-desc {
    font-size: 0.78rem;
    color: #94A3B8;
    line-height: 1.4;
    margin: 0.15rem 0 0;
}

.app-card-action {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.app-card-download-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: var(--gold-400);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.badge-gold-btn {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.45);
    color: var(--gold-400);
}

.badge-purple-btn {
    background: rgba(139, 92, 246, 0.16);
    border-color: rgba(167, 139, 250, 0.45);
    color: var(--purple-400);
}

.badge-cyan-btn {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    color: var(--cyan-400);
}

.other-app-card:hover .app-card-download-btn {
    transform: scale(1.08);
    background: rgba(245, 158, 11, 0.25);
    color: #FFFFFF;
}

.other-app-card:hover .badge-gold-btn {
    transform: scale(1.08);
    background: rgba(245, 158, 11, 0.3);
    color: #FFFFFF;
}

.other-app-card:hover .badge-purple-btn {
    transform: scale(1.08);
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(167, 139, 250, 0.7);
    color: #FFFFFF;
}

.other-app-card:hover .badge-cyan-btn {
    background: rgba(56, 189, 248, 0.25);
    color: #FFFFFF;
}

.app-card-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.modal-app-logo {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    object-fit: cover;
}

.footer-copy-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

@media (min-width: 768px) {
    .phone-device-shell {
        max-width: 320px;
    }
    .app-features-line {
        font-size: 1rem;
    }
    .app-sub-statement {
        font-size: 0.9rem;
        max-width: 440px;
    }
    .store-badge-img {
        height: 46px;
    }
    .other-apps-grid {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        max-width: 760px;
        margin: 1.25rem auto 0;
    }
    .other-app-card {
        padding: 1.35rem 1.4rem;
    }
}

@media (min-width: 1024px) {
    .other-apps-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        max-width: 960px;
        margin: 1.5rem auto 0;
    }
    .other-app-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem 1.4rem 1.75rem;
        gap: 0;
        justify-content: flex-start;
        height: 100%;
    }
    .other-app-card .app-card-badge {
        margin-bottom: 1.15rem;
        flex-shrink: 0;
    }
    .other-app-card .app-card-body {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        flex: 1;
        gap: 0;
    }
    .other-app-card .app-card-title {
        font-size: 1.25rem;
        font-weight: 800;
        margin-bottom: 0.35rem;
    }
    .other-app-card .app-card-tagline {
        font-size: 0.82rem;
        font-weight: 600;
        margin-bottom: 0.75rem;
    }
    .other-app-card .app-card-desc {
        font-size: 0.82rem;
        line-height: 1.5;
        color: #94A3B8;
        margin: 0 0 1.4rem;
        max-width: 250px;
    }
    .other-app-card .app-card-action {
        margin-top: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    .other-app-card .app-card-download-btn {
        width: 44px;
        height: 44px;
    }
}
