/* ── Custom Properties ── */
:root {
    --gradient-start: #0f0c29;
    --gradient-mid: #302b63;
    --gradient-end: #24243e;
    --accent: #7c3aed;
    --accent-light: #a78bfa;
    --accent-glow: rgba(124, 58, 237, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
}

/* ── Base ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ── Animated Background ── */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.bg-orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent);
    top: -200px;
    right: -200px;
    animation: float-slow 20s ease-in-out infinite;
}

.bg-orb-2 {
    width: 400px;
    height: 400px;
    background: #06b6d4;
    bottom: -100px;
    left: -100px;
    animation: float-slow 25s ease-in-out infinite reverse;
}

.bg-orb-3 {
    width: 300px;
    height: 300px;
    background: #ec4899;
    top: 50%;
    left: 50%;
    animation: float-slow 18s ease-in-out infinite 5s;
}

/* ── Keyframes ── */
@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

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

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
    50% { box-shadow: 0 0 40px var(--accent-glow), 0 0 60px rgba(124, 58, 237, 0.2); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

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

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ── Glassmorphism Card ── */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(124, 58, 237, 0.3);
}

/* ── Gradient Text ── */
.gradient-text {
    background: linear-gradient(135deg, #7c3aed, #06b6d4, #ec4899);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 8s linear infinite;
}

.gradient-text-static {
    background: linear-gradient(135deg, #a78bfa, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: white;
    font-weight: 600;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-glow 3s ease-in-out infinite;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: white;
    font-weight: 600;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-light);
    transform: translateY(-2px);
}

/* ── Store Badges ── */
.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.store-badge:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.store-badge-icon {
    font-size: 1.75rem;
}

.store-badge-text {
    text-align: left;
    line-height: 1.2;
}

.store-badge-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

.store-badge-name {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ── Feature Icon ── */
.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.glass-card:hover .feature-icon {
    transform: scale(1.1);
}

.icon-purple { background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(124, 58, 237, 0.1)); }
.icon-cyan { background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(6, 182, 212, 0.1)); }
.icon-pink { background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(236, 72, 153, 0.1)); }
.icon-amber { background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(245, 158, 11, 0.1)); }

/* ── Step Number ── */
.step-number {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #6d28d9);
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ── Step Connector Line ── */
.step-connector {
    position: absolute;
    left: 1.5rem;
    top: 3rem;
    bottom: -1.5rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

/* ── Scroll indicator ── */
.scroll-indicator {
    animation: bounce-subtle 2s ease-in-out infinite;
}

/* ── Nav blur ── */
.nav-blur {
    background: rgba(15, 12, 41, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

/* ── Divider ── */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    margin: 0 auto;
    max-width: 80%;
}

/* ── Hero animation on load ── */
.hero-title {
    animation: fadeInDown 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-subtitle {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero-cta {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.hero-badge {
    animation: scaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

/* ── Particle dots ── */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-light);
    opacity: 0.3;
    animation: float-slow 15s ease-in-out infinite;
}

/* ── Footer ── */
footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-light);
}

/* ── Phone Mockup ── */
.phone-mockup {
    width: 280px;
    height: 560px;
    background: #1a1a2e;
    border-radius: 2.5rem;
    border: 3px solid #3a3a55;
    padding: 8px;
    position: relative;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 50px var(--accent-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.phone-notch {
    width: 80px;
    height: 20px;
    background: #1a1a2e;
    border-radius: 0 0 12px 12px;
    margin: 0 auto 4px;
    position: relative;
    z-index: 20;
}

.phone-notch::after {
    content: '';
    width: 6px;
    height: 6px;
    background: #2a2a40;
    border-radius: 50%;
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 4px rgba(100, 100, 255, 0.3);
}

.phone-screen {
    width: 100%;
    height: calc(100% - 24px);
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
    background: #0f0f23;
    isolation: isolate;
}

/* ── Sloppy Mascot (hero floating) ── */
.sloppy-mascot {
    position: absolute;
    width: 110px;
    max-width: 110px;
    height: auto;
    bottom: -20px;
    left: -40px;
    z-index: 10;
    animation: sloppy-float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(124, 58, 237, 0.3));
    pointer-events: none;
    display: block;
}

@keyframes sloppy-float {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

/* ══════════════════════════════════════════
   MEET SLOPPY SECTION
   ══════════════════════════════════════════ */
.sloppy-section {
    background: linear-gradient(145deg, rgba(124, 58, 237, 0.06), rgba(6, 182, 212, 0.03));
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: 1.5rem;
    padding: 2.5rem;
    overflow: hidden;
}

.sloppy-layout {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.sloppy-portrait {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.sloppy-portrait-img {
    width: 200px;
    max-width: 200px;
    height: auto;
    display: block;
    animation: sloppy-float 3s ease-in-out infinite;
    filter: drop-shadow(0 15px 30px rgba(124, 58, 237, 0.25));
}

.sloppy-name-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 9999px;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #a78bfa;
    letter-spacing: 0.02em;
}

.sloppy-name-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7c3aed;
    animation: pulse 2s ease-in-out infinite;
}

.sloppy-bio {
    flex: 1;
    min-width: 0;
}

.sloppy-bio em {
    color: #a78bfa;
    font-style: normal;
    font-weight: 600;
}

.sloppy-traits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sloppy-trait {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.65rem;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.sloppy-trait:hover {
    background: rgba(124, 58, 237, 0.06);
    border-color: rgba(124, 58, 237, 0.15);
}

.sloppy-trait-icon-img {
    width: 48px;
    max-width: 48px;
    height: 48px;
    max-height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.sloppy-trait-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1px;
}

.sloppy-trait-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .sloppy-mascot {
        width: 60px;
        bottom: -10px;
        left: -30px;
    }

    .sloppy-layout {
        flex-direction: column;
        text-align: center;
    }

    .sloppy-portrait-img {
        width: 120px;
    }

    .sloppy-section {
        padding: 1.5rem;
    }

    .sloppy-traits {
        gap: 0.5rem;
    }

    .sloppy-trait {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(124, 58, 237, 0.15);
        border-radius: 0.75rem;
    }

    .sloppy-trait-icon-img {
        width: 40px;
        height: 40px;
        margin-bottom: 0.25rem;
    }

    .sloppy-trait-name {
        font-size: 0.8rem;
    }

    .sloppy-trait-desc {
        font-size: 0.7rem;
    }
}

/* ── Demo Card (JS-driven swipe with real images) ── */
.demo-card {
    position: absolute;
    top: 36px;
    left: 10px;
    right: 10px;
    bottom: 32px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.demo-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.demo-card-category {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 3px 10px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1;
}

/* Result overlay on card */
.demo-result {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.25s ease;
    background: rgba(0, 0, 0, 0.2);
}

.demo-result-correct {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    background: rgba(34, 197, 94, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.6);
}

.demo-result-wrong {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    background: rgba(239, 68, 68, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.6);
}

/* Swipe direction indicators */
.swipe-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    opacity: 0;
    transition: opacity 0.25s ease;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    border-radius: 6px;
    pointer-events: none;
}

.swipe-indicator-left {
    left: 4px;
    color: #f87171;
    background: rgba(239, 68, 68, 0.25);
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.swipe-indicator-right {
    right: 4px;
    color: #4ade80;
    background: rgba(34, 197, 94, 0.25);
    border: 1px solid rgba(34, 197, 94, 0.5);
}

/* ── Stats Dashboard (app-like mockup) ── */
.stats-dashboard {
    background: linear-gradient(145deg, rgba(20, 18, 50, 0.9), rgba(15, 12, 40, 0.95));
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.stats-dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.stats-streak-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 4px 10px;
    border-radius: 9999px;
}

.stats-mini-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.6rem;
    padding: 0.75rem 0.5rem;
    text-align: center;
}

.stats-next-deck {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.6rem;
    padding: 0.75rem;
}

.stats-deck-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.stats-deck-bar {
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    min-width: 10px;
}

.stats-deck-bar-fill {
    width: 100%;
    height: 100%;
    border-radius: 3px;
}

.stat-card {
    text-align: center;
    padding: 1.25rem;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Animated Stat Bars ── */
.stat-bar-container {
    margin-bottom: 1rem;
}

.stat-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.375rem;
}

.stat-bar-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.stat-bar-value {
    font-size: 0.8rem;
    font-weight: 700;
}

.stat-bar-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 4px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.stat-bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: bar-shimmer 2s ease-in-out infinite;
}

@keyframes bar-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.stat-bar-fill.fill-green { background: linear-gradient(90deg, #22c55e, #4ade80); }
.stat-bar-fill.fill-amber { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.stat-bar-fill.fill-red { background: linear-gradient(90deg, #ef4444, #f87171); }
.stat-bar-fill.fill-purple { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.stat-bar-fill.fill-cyan { background: linear-gradient(90deg, #06b6d4, #22d3ee); }

/* ── Weakness Tag ── */
.weakness-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid;
}

.weakness-tag-red {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.weakness-tag-amber {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.weakness-tag-green {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

/* ── Ticker tape numbers ── */
.count-up {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* ══════════════════════════════════════════
   FAKE APP SCREENS
   ══════════════════════════════════════════ */
.app-screen {
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.app-screen-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.app-screen-exit {
    opacity: 0;
    visibility: hidden;
}

/* ── Mode Select Screen ── */
#screen-mode {
    background: linear-gradient(180deg, #0f0f23, #141430);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-mode-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    margin-top: 8px;
    margin-bottom: 2px;
}

.app-mode-subtitle {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
}

.app-mode-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-mode-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
}

.app-mode-card:hover {
    background: rgba(255, 255, 255, 0.07);
}

.app-mode-selected {
    background: rgba(99, 102, 241, 0.15) !important;
    border-color: rgba(99, 102, 241, 0.5) !important;
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.app-mode-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.app-mode-name {
    font-size: 0.8rem;
    font-weight: 700;
}

.app-mode-desc {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ── Game Screen ── */
#screen-game {
    background: #0f0f23;
}

.app-game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 6px;
    position: relative;
    z-index: 10;
}

.app-game-timer {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    font-variant-numeric: tabular-nums;
    transition: color 0.3s ease;
}

.app-game-streak {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fbbf24;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-streak-fire {
    font-size: 0.9rem;
}

.app-game-counter {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
    font-variant-numeric: tabular-nums;
}

.app-game-hints {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.5;
    z-index: 5;
}

/* ══════════════════════════════════════════
   BADGE MARQUEE
   ══════════════════════════════════════════ */
.marquee-track {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-inner {
    display: flex;
    gap: 12px;
    width: max-content;
}

.marquee-left {
    animation: marquee-scroll-left 35s linear infinite;
}

.marquee-right {
    animation: marquee-scroll-right 40s linear infinite;
}

@keyframes marquee-scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marquee-scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.badge-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    transition: border-color 0.3s ease, background 0.3s ease;
    flex-shrink: 0;
}

.badge-pill:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.3);
}

.badge-pill-secret {
    border-style: dashed;
    color: rgba(255, 255, 255, 0.4);
}

.badge-icon {
    font-size: 1.1rem;
}

.badge-cat {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-cat-freeze {
    color: #38bdf8;
}

/* ══════════════════════════════════════════
   STATS PANELS (boxed sections)
   ══════════════════════════════════════════ */
.stats-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.8rem;
    padding: 1.25rem;
}

.stats-panel-header {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-insight-box {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(6, 182, 212, 0.04));
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 0.8rem;
    padding: 1rem 1.25rem;
}

.stats-insight-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(124, 58, 237, 0.15);
    font-size: 0.8rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .bg-orb-1 { width: 300px; height: 300px; }
    .bg-orb-2 { width: 200px; height: 200px; }
    .bg-orb-3 { width: 150px; height: 150px; }

    .phone-mockup {
        width: 240px;
        height: 480px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .badge-pill {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
}
