:root {
    --bg-dark: #0a0e0c;
    --glass: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.08);
    --accent-magenta: #ff2d55;
    --accent-cyan: #00ffff;
    --accent-lime: #32ff7e;
    --accent-primary: var(--accent-cyan);
    --accent-glow: rgba(0, 255, 255, 0.2);
    --text-pure: #ffffff;
    --text-dim: #a1a1aa;
    --font-heading: 'Syncopate', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --transition-fluid: 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

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

body {
    background: var(--bg-dark);
    color: var(--text-pure);
    font-family: var(--font-body);
    height: 100vh;
    overflow: hidden;
}

.liquid-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: relative;
    transition: background 1s ease;
}

body.game-active .product-selection-stage {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(100px);
}

.product-selection-stage {
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* BACKGROUNDS */
.background-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(80px);
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: floating 20s infinite alternate linear;
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

body.game-active .blob {
    background: #ff2d55 !important;
    animation-duration: 4s;
    opacity: 0.25;
}

.blob-1 {
    width: 800px;
    height: 800px;
    background: var(--accent-green);
    top: -200px;
    left: -200px;
    opacity: 0.08;
    /* Subtle silk feel */
}

.blob-2 {
    width: 700px;
    height: 700px;
    background: var(--accent-emerald);
    bottom: -150px;
    right: -100px;
    animation-delay: -8s;
    opacity: 0.1;
}

/* THE ENCOURAGEMENT NOODLE */
.noodle-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    /* Shorter container */
    z-index: 1;
    pointer-events: none;
}

.noodle-body {
    position: absolute;
    bottom: -12px;
    width: 90px;
    height: 15px;
    background: #fff;
    border-radius: 0;
    /* Sharp rectangle base */
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    transform-origin: center bottom;
    transition: none;
}



/* Neon Base (Visible through dock glass) */
.noodle-body::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    /* Wider for rotation loop */
    height: 15px;
    background: linear-gradient(90deg,
            #ff00ff, #7d00ff, #00ffff, #00ff7d, #ff00ff
            /* Smooth spectral stops */
        );
    background-size: 50% 100%;
    animation: neonRotation 1.5s infinite linear;
    /* Faster rotation */
    border-radius: 0;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4), 0 0 10px rgba(255, 0, 255, 0.4);
}

@keyframes neonRotation {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.noodle-face {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Blush: The Character Layer */
.noodle-blush {
    position: absolute;
    top: 45px;
    width: 15px;
    height: 8px;
    background: rgba(255, 45, 85, 0.4);
    filter: blur(4px);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.noodle-blush.left {
    left: 15%;
}

.noodle-blush.right {
    right: 15%;
}

.noodle-eye {
    width: 16px;
    /* Bolder, bigger eye circles */
    height: 16px;
    background: #1a1a1a;
    border-radius: 50%;
    position: absolute;
    top: 25px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.noodle-pupil {
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -2px 0 0 -2px;
    /* Centering baseline */
    opacity: 0.9;
    pointer-events: none;
    transition: transform 0.05s ease-out;
}

/* Eye Shape Variants */
.noodle-eye.star {
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    border-radius: 0;
}

.noodle-eye.heart {
    clip-path: path('M12 4.448C11.196 3.518 10.038 3 8.75 3c-2.347 0-4.25 1.903-4.25 4.25 0 2.21 1.761 4.14 4.125 6.13a40.01 40.01 0 0 0 3.375 2.585 40.01 40.01 0 0 0 3.375-2.585c2.364-1.99 4.125-3.92 4.125-6.13 0-2.347-1.903-4.25-4.25-4.25-1.288 0-2.446.518-3.25 1.448Z');
    width: 26px;
    height: 26px;
    background: #ff2d55;
    border-radius: 0;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.noodle-eye.square {
    border-radius: 2px;
}

.noodle-eye.dizzy {
    animation: eyeDizzy 0.5s infinite linear;
}

@keyframes eyeDizzy {
    0% {
        transform: scale(1.1) rotate(0deg);
    }

    100% {
        transform: scale(1.1) rotate(360deg);
    }
}

.noodle-eye.surprise {
    transform: scale(1.4);
    background: #1a1a1a;
}

.noodle-eye.left {
    left: 26%;
}

.noodle-eye.right {
    right: 26%;
}

.noodle-mouth {
    position: absolute;
    top: 58px;
    width: 52px;
    /* Slightly reduced width */
    height: 4px;
    /* Slightly more delicate */
    background: #1a1a1a;
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Only transform has transition, shape is JS-driven */
}

/* Mouth Shape Variants */
.noodle-mouth.gasp,
.noodle-mouth.surprise {
    width: 28px;
    height: 28px;
    border: 5px solid #1a1a1a;
    background: transparent;
    border-radius: 50%;
}



.noodle-mouth.flat {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background: #1a1a1a;
}

.noodle-mouth.wobble {
    animation: mouthWobble 0.2s infinite;
}

@keyframes mouthWobble {

    0%,
    100% {
        transform: translate(var(--mx, 0), var(--my, 0)) scaleX(1);
    }

    25% {
        transform: translate(var(--mx, 0), var(--my, 0)) scaleX(1.3) skewX(10deg);
    }

    75% {
        transform: translate(var(--mx, 0), var(--my, 0)) scaleX(0.7) skewX(-10deg);
    }
}

.noodle-body.dizzy {
    animation: bodySwirl 0.8s infinite ease-in-out;
}

@keyframes bodySwirl {

    0%,
    100% {
        transform: translateX(var(--tx)) rotate(0deg) skewX(0);
    }

    25% {
        transform: translateX(var(--tx)) rotate(8deg) skewX(4deg);
    }

    75% {
        transform: translateX(var(--tx)) rotate(-8deg) skewX(-4deg);
    }
}

.noodle-thought {
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: #00ffff;
    /* Neon cyan for the thought */
    color: #000;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

.noodle-thought.visible {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.noodle-thought::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #ff2d55;
}

/* Atmospheric playful blobs */
.background-blobs {
    z-index: -1;
}

@keyframes floating {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.1);
    }
}

@keyframes floater {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Vibrant State modifiers for AI personality */
.ai-mood-joy {
    background: radial-gradient(circle, #ff00ff, #00ffff);
}

.ai-mood-curious {
    background: radial-gradient(circle, #00ff00, #ffff00);
}

.ai-mood-excited {
    background: radial-gradient(circle, #ff4500, #ff1493);
}

/* STAGE (80%) */
.liquid-stage {
    height: 80%;
    position: relative;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- ABSOLUTE CINEMATIC PORTAL --- */
.absolute-ui-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
}


/* CINEMATIC PORTAL */
.cinematic-portal {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px;
}

.portal-scene {
    width: 100%;
    max-width: 1000px;
    height: 500px;
    background: var(--glass);
    border: 1px solid var(--accent-primary);
    /* Reactive border */
    backdrop-filter: blur(30px);
    border-radius: 40px;
    display: flex;
    align-items: center;
    padding: 60px 100px;
    position: relative;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), 0 0 50px var(--accent-glow);
}

.portal-info {
    max-width: 600px;
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.portal-info.visible {
    opacity: 1;
    transform: translateX(0);
}

.portal-info h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    margin-bottom: 20px;
    text-transform: lowercase;
    background: linear-gradient(to bottom, #fff, var(--accent-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portal-info p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 50px;
    line-height: 1.6;
}

/* OVERLAY INTERFACE */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #07070ae0;
    backdrop-filter: blur(40px);
    z-index: 100;
    display: flex;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fluid);
    transform: scale(1.05);
}

.liquid-stage.active .product-overlay {
    opacity: 1;
    pointer-events: all;
    transform: scale(1);
}

.overlay-left {
    flex: 0 0 25%;
    border-right: 1px solid var(--glass-border);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.back-link {
    background: none;
    border: none;
    color: var(--text-pure);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    letter-spacing: 3px;
}

.overlay-meta h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-transform: lowercase;
}

.overlay-right {
    flex: 1;
    padding: 80px;
    overflow-y: auto;
}

.overlay-content {
    max-width: 800px;
}

.glass-section {
    margin-bottom: 50px;
}

.glass-section label {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    color: var(--text-dim);
    letter-spacing: 4px;
    display: block;
    margin-bottom: 20px;
}

.accent-text {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.3;
    color: var(--text-pure);
}

/* LEGAL DRAWER */
.legal-stack {
    border-top: 1px solid var(--glass-border);
    margin-top: 60px;
}

.legal-toggle {
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 2px;
}

.legal-drawer {
    max-height: 0;
    overflow: hidden;
    transition: 0.5s ease;
}

.legal-stack.open .legal-drawer {
    max-height: 600px;
    margin-bottom: 40px;
}

.legal-item {
    margin-bottom: 30px;
}

.legal-item label {
    display: block;
    font-size: 0.6rem;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.legal-item p {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.6;
    color: #888;
}

.cta-area {
    margin-top: 80px;
}

.liquid-btn {
    background: linear-gradient(135deg, var(--accent-primary), rgba(255, 255, 255, 0.1));
    color: #fff;
    padding: 20px 60px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-heading);
    text-transform: lowercase;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 100px;
    display: inline-block;
    transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 10px 40px var(--accent-glow);
    backdrop-filter: blur(5px);
}

.liquid-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 60px var(--accent-glow);
    filter: brightness(1.2);
}

/* DOCK (20%) */
.liquid-dock {
    height: 20%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 80px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 10;
    /* Ensures it blurs content behind it */
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    height: 40px;
    width: auto;
}

.logo-monolith {
    font-family: var(--font-heading);
    text-transform: lowercase;
    font-size: 1.8rem;
}

.support-capsule {
    position: relative;
}

.capsule-trigger {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-pure);
    padding: 12px 30px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
}

.capsule-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.capsule-pop {
    position: absolute;
    bottom: calc(100% + 15px);
    right: 0;
    background: #111;
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    padding: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: 0.3s;
}

/* Invisible bridge to keep hover active across the gap */
.capsule-pop::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
}

.support-capsule:hover .capsule-pop {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.capsule-pop a {
    color: var(--text-dim);
    text-decoration: none;
    padding: 10px 20px;
    font-size: 0.8rem;
    transition: 0.2s;
}

.capsule-pop a:hover {
    color: var(--text-pure);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

/* --- DADA'S LOVE HARVEST: GAME STYLES --- */
.noodle-game-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.game-stats {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 40px;
    font-family: 'Syncopate', sans-serif;
    color: #fff;
    font-size: 14px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    z-index: 110;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.game-stats.visible {
    opacity: 1;
}

.stat-item span {
    color: #00ffff;
    font-weight: 700;
}

.fragment {
    position: fixed;
    pointer-events: none;
    z-index: 90;
    filter: drop-shadow(0 0 8px currentColor);
}

.fragment.heart {
    width: 24px;
    height: 24px;
    background: #ff2d55;
    clip-path: path('M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z');
}

.fragment.glitch {
    width: 18px;
    height: 18px;
    background: #000;
    border: 2px solid #00ffff;
    color: #00ffff;
    box-shadow: 0 0 15px #00ffff;
    animation: glitchPulse 0.4s infinite alternate;
}

@keyframes glitchPulse {
    from {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }

    to {
        transform: scale(1.1) rotate(5deg);
        opacity: 0.8;
    }
}

.game-over-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    backdrop-filter: blur(15px);
}

.game-over-screen.visible {
    opacity: 1;
    pointer-events: all;
}

.game-over-screen h2 {
    font-family: 'Syncopate', sans-serif;
    font-size: 2.2rem;
    color: #ff2d55;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 45, 85, 0.5);
    text-align: center;
}

.game-over-screen p {
    font-family: 'Outfit', sans-serif;
    color: #fff;
    margin-bottom: 40px;
    letter-spacing: 5px;
}