:root {
    --bg-black: #000000;
    --deep-teal: #008080;
    --neon-teal: #00FFEF;
    --electric-orange: #FF5733;
    --text-white: #ffffff;
    --font-inter: 'Inter', sans-serif;
}

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

body,
html {
    width: 100%;
    height: 100%;
    background: url('../common_assets/background-blur.png') no-repeat center center;
    background-size: cover;
    font-family: var(--font-inter);
    color: var(--text-white);
    overflow: hidden;
}

.app-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    perspective: 1200px;
}

/* Very Faint 3D Perspective Grid */
.perspective-grid-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 30%;
    overflow: hidden;
    z-index: 0;
}

.perspective-grid {
    position: absolute;
    width: 200vw;
    height: 150vh;
    left: -50vw;
    top: 0;
    background-image:
        linear-gradient(rgba(0, 128, 128, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 128, 128, 0.08) 1px, transparent 1px);
    background-size: 50px 30px;
    transform-origin: center top;
    transform: perspective(800px) rotateX(75deg) translateY(-100px);
    animation: grid-move 8s linear infinite;
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 5%, rgba(0, 0, 0, 0) 60%);
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 5%, rgba(0, 0, 0, 0) 60%);
}

@keyframes grid-move {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 60px;
    }
}

/* AI Orb (Top Center, spinning, orange/teal mix) */
.orb-container {
    position: absolute;
    top: 15%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    width: 120px;
    height: 120px;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.orb-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--electric-orange), var(--neon-teal), var(--electric-orange));
    filter: blur(35px);
    opacity: 0.8;
    z-index: 1;
    animation: spin-conic 2s linear infinite;
}

.orb-outer-glass {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 25px rgba(0, 128, 128, 0.5), inset 0 0 10px rgba(255, 87, 51, 0.5);
    z-index: 4;
}

.orb-core {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    z-index: 3;
    overflow: hidden;
    background: conic-gradient(from 0deg, var(--electric-orange) 0%, var(--neon-teal) 50%, var(--electric-orange) 100%);
    box-shadow: 0 0 40px var(--electric-orange), 0 0 20px var(--neon-teal);
    animation: spin-conic 1s linear infinite;
}

@keyframes spin-conic {
    0% {
        transform: rotate(0deg);
    }

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

/* Data Synthesis Layer */
.data-synthesis-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 15;
    pointer-events: none;
}

.data-icon {
    position: absolute;
    color: var(--text-white);
    filter: drop-shadow(0 0 10px var(--electric-orange));
    opacity: 0;
}

.suck-in .d1 {
    animation: fly 1.2s cubic-bezier(0.5, 0, 0.75, 0) forwards;
    top: 0;
    left: 10%;
    color: var(--electric-orange);
}

.suck-in .d2 {
    animation: fly 1.4s cubic-bezier(0.5, 0, 0.75, 0) forwards;
    top: 60%;
    right: -20px;
    color: var(--neon-teal);
}

.suck-in .d3 {
    animation: fly 1.1s cubic-bezier(0.5, 0, 0.75, 0) forwards;
    bottom: -50px;
    left: 30%;
    color: var(--electric-orange);
}

.suck-in .d4 {
    animation: fly 1.3s cubic-bezier(0.5, 0, 0.75, 0) forwards;
    top: 40%;
    left: -20px;
    color: var(--neon-teal);
}

@keyframes fly {
    10% {
        opacity: 1;
    }

    100% {
        top: 15%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.1);
        opacity: 0;
    }
}

/* Message Pane */
.message-wrapper {
    position: absolute;
    top: 22%;
    width: 100%;
    padding: 0 24px;
    text-align: center;
    z-index: 10;
    display: flex;
    justify-content: center;
}

.message-pane {
    text-align: center;
    max-width: 400px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.6s ease;
}

.message-pane.visible {
    opacity: 1;
    transform: translateY(0);
}

.ai-text {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: var(--text-white);
    vertical-align: middle;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Master Console Stacked Deck */
.master-console {
    position: absolute;
    top: 38%;
    width: 90%;
    max-width: 420px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    z-index: 10;
}

.glass-layer {
    position: absolute;
    width: 100%;
    height: 90px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 16px 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.glass-layer.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.layer-1 {
    bottom: 0px;
    z-index: 3;
    background: rgba(0, 128, 128, 0.05);
}

.layer-2 {
    bottom: 70px;
    z-index: 2;
    transform: translateY(0) scale(0.94);
    background: rgba(255, 87, 51, 0.05);
    border-left: 1px solid rgba(255, 87, 51, 0.3);
}

.layer-3 {
    bottom: 140px;
    z-index: 1;
    transform: translateY(0) scale(0.88);
    background: rgba(255, 255, 255, 0.02);
}

.layer-header {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
}

.layer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.layer-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-white);
}

.layer-1 .layer-value {
    color: var(--neon-teal);
}

.layer-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.layer-2 .layer-badge {
    background: rgba(255, 87, 51, 0.2);
    border-color: var(--electric-orange);
    color: var(--electric-orange);
}

/* Pulse Wave for Biology */
.pulse-wave {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 20px;
}

.pulse-wave .bar {
    width: 4px;
    background: var(--neon-teal);
    border-radius: 2px;
    animation: wave 1s infinite alternate ease-in-out;
}

.pulse-wave .bar:nth-child(1) {
    height: 100%;
    animation-delay: 0s;
}

.pulse-wave .bar:nth-child(2) {
    height: 60%;
    animation-delay: 0.2s;
}

.pulse-wave .bar:nth-child(3) {
    height: 80%;
    animation-delay: 0.4s;
}

.pulse-wave .bar:nth-child(4) {
    height: 40%;
    animation-delay: 0.6s;
}

@keyframes wave {
    0% {
        height: 30%;
    }

    100% {
        height: 100%;
    }
}

/* Ignite Button */
.action-footer {
    position: absolute;
    bottom: 40px;
    width: 90%;
    max-width: 400px;
    z-index: 20;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.action-footer.visible {
    opacity: 1;
    transform: translateY(0);
}

.btn-ignite {
    width: 100%;
    padding: 18px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    background: var(--electric-orange);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    font-family: var(--font-inter);
    box-shadow: 0 4px 15px rgba(255, 87, 51, 0.4), inset 0 2px 5px rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    animation: button-hover 3s infinite alternate;
    transition: transform 0.2s;
}

.btn-ignite:active {
    transform: scale(0.96);
}

@keyframes button-hover {
    0% {
        box-shadow: 0 4px 15px rgba(255, 87, 51, 0.4);
    }

    100% {
        box-shadow: 0 8px 30px rgba(255, 87, 51, 0.7);
    }
}

/* Floor Reflection for button */
.floor-reflection {
    position: absolute;
    bottom: -20px;
    left: 5%;
    width: 90%;
    height: 15px;
    border-radius: 50%;
    background: var(--electric-orange);
    filter: blur(20px);
    opacity: 0.6;
    animation: button-hover 3s infinite alternate;
}

/* White Hole Warp Flash Overlay */
.warp-flash {
    position: absolute;
    top: 18%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 100px #fff, 0 0 200px var(--neon-teal);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transform: scale(1);
    transition: transform 0.5s ease-in, opacity 0.5s ease-in;
}

.warp-flash.warp-active {
    opacity: 1;
    transform: scale(150);
    background: #fff;
}
.cuesz-logo {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    z-index: 100;
}
