* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Comic Sans MS', Arial, sans-serif;
    background: linear-gradient(45deg, #32CD32, #228B22, #006400, #90EE90) !important;
    background-size: 400% 400% !important;
    animation: dreamcoreGradient 15s ease infinite !important;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="10" fill="%2332CD32" opacity="0.8"/><circle cx="16" cy="16" r="6" fill="%2390EE90"/><circle cx="16" cy="16" r="3" fill="%23FFFFFF"/></svg>'), auto;
}

@keyframes dreamcoreGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#scene-container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

#scene-container:before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #32CD32, #228B22, #006400, #90EE90, #32CD32, #228B22, #006400, #32CD32) !important;
    background-size: 400% 400%;
    animation: rainbowBorder 10s ease infinite;
    z-index: -1;
    opacity: 0.5;
    filter: blur(10px);
}

@keyframes rainbowBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#scene-container:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(50, 205, 50, 0.03) 2px, rgba(50, 205, 50, 0.03) 4px);
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: screen;
}

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #32CD32, #228B22) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
    transition: opacity 1s ease;
    overflow: hidden;
    perspective: 1000px;
}

.loader-bg-layer {
    display: none;
}

.layer-1 {
    animation: floatLayer1 20s infinite ease-in-out;
    transform: translateZ(-200px) scale(1.2);
}

.layer-2 {
    animation: floatLayer2 25s infinite ease-in-out;
    transform: translateZ(-400px) scale(1.4);
    opacity: 0.7;
}

.layer-3 {
    animation: floatLayer3 30s infinite ease-in-out;
    transform: translateZ(-600px) scale(1.6);
    opacity: 0.5;
}

@keyframes floatLayer1 {
    0%, 100% { transform: translateZ(-200px) scale(1.2) rotate(0); }
    50% { transform: translateZ(-200px) scale(1.2) rotate(5deg) translate(50px); }
}

@keyframes floatLayer2 {
    0%, 100% { transform: translateZ(-400px) scale(1.4) rotate(0); }
    50% { transform: translateZ(-400px) scale(1.4) rotate(-5deg) translateY(50px); }
}

@keyframes floatLayer3 {
    0%, 100% { transform: translateZ(-600px) scale(1.6) rotate(0); }
    50% { transform: translateZ(-600px) scale(1.6) rotate(3deg) translate(-50px); }
}

.dreamcore-element {
    display: none;
}

.element-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.element-2 {
    top: 20%;
    right: 15%;
    animation-delay: 2s;
    animation-duration: 14s;
}

.element-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
    animation-duration: 16s;
}

.element-4 {
    bottom: 30%;
    right: 10%;
    animation-delay: 6s;
    animation-duration: 13s;
}

.element-5 {
    top: 50%;
    left: 5%;
    animation-delay: 8s;
    animation-duration: 15s;
}

.element-6 {
    top: 60%;
    right: 25%;
    animation-delay: 10s;
    animation-duration: 11s;
}

@keyframes floatElement {
    0%, 100% {
        transform: translate(0) rotate(0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(30px, -50px) rotate(180deg) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translate(-20px, 30px) rotate(360deg) scale(0.8);
        opacity: 0.5;
    }
    75% {
        transform: translate(40px, -20px) rotate(540deg) scale(1.1);
        opacity: 0.7;
    }
}

.loader-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: -100px;
}

.loader-cube {
    width: 100px;
    height: 100px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 4s infinite linear;
}

.cube-face {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: url(/assets/logo-C6bnd1Os.png) center center/cover no-repeat, linear-gradient(45deg, #32CD324d, #228B224d, #0064004d);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background-blend-mode: overlay;
}

.front { transform: translateZ(50px); }
.back { transform: rotateY(180deg) translateZ(50px); }
.right { transform: rotateY(90deg) translateZ(50px); }
.left { transform: rotateY(-90deg) translateZ(50px); }
.top { transform: rotateX(90deg) translateZ(50px); }
.bottom { transform: rotateX(-90deg) translateZ(50px); }

@keyframes rotateCube {
    0% { transform: rotateX(0) rotateY(0); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

.loader-text-container {
    position: relative;
    margin-top: 20px;
}

.loader-text {
    position: relative;
}

.logo-text-img {
    height: 290px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.main-text {
    position: relative;
    z-index: 3;
    animation: logoShine 3s ease infinite;
}

.main-text .logo-text-img {
    filter: drop-shadow(0 0 15px rgba(50, 205, 50, 0.5)) brightness(1.2) contrast(1.1);
}

.glitch-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: screen;
}

@keyframes logoShine {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(50, 205, 50, 0.5)) brightness(1.2) contrast(1.1);
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(144, 238, 144, 0.7)) brightness(1.4) contrast(1.2) hue-rotate(15deg);
    }
}

.glitch-text:nth-child(2) {
    animation: glitch1 0.5s infinite;
    z-index: 2;
}

.glitch-text:nth-child(3) {
    animation: glitch2 0.5s infinite;
    z-index: 1;
}

@keyframes glitch1 {
    0%, 100% {
        clip-path: inset(0 0 0 0);
        transform: translate(0);
        filter: hue-rotate(0deg) brightness(1);
    }
    20% {
        clip-path: inset(20% 0 60% 0);
        transform: translate(-2px, 2px);
        filter: hue-rotate(90deg) brightness(1.2);
    }
    40% {
        clip-path: inset(50% 0 20% 0);
        transform: translate(2px, -2px);
        filter: hue-rotate(180deg) brightness(0.8);
    }
    60% {
        clip-path: inset(10% 0 80% 0);
        transform: translate(-1px, 1px);
        filter: hue-rotate(270deg) brightness(1.4);
    }
}

@keyframes glitch2 {
    0%, 100% {
        clip-path: inset(0 0 0 0);
        transform: translate(0);
        filter: contrast(1) brightness(1);
    }
    20% {
        clip-path: inset(80% 0 10% 0);
        transform: translate(2px, -1px);
        filter: contrast(1.2) brightness(1.2);
    }
    40% {
        clip-path: inset(10% 0 80% 0);
        transform: translate(-2px, 1px);
        filter: contrast(0.8) brightness(1.4);
    }
    60% {
        clip-path: inset(40% 0 40% 0);
        transform: translate(1px, -2px);
        filter: contrast(1.4) brightness(0.8);
    }
}

.loading-progress-container {
    width: 300px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #ffffff1a;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #32CD32, #228B22, #006400);
    transition: width 0.3s ease;
    position: relative;
    z-index: 2;
}

.progress-glow {
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    bottom: -10px;
    background: linear-gradient(90deg, #32CD32, #228B22, #006400);
    filter: blur(20px);
    opacity: 0.5;
    transform: scaleX(var(--progress, 0));
    transform-origin: left;
}

.loading-progress {
    font-family: 'Comic Neue', Arial, sans-serif;
    color: #fffc;
    margin-top: 15px;
    font-size: 16px;
    text-shadow: 0 0 10px rgba(50, 205, 50, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.orb {
    display: none;
}

.orb-1 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(50, 205, 50, 0.4), transparent);
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(34, 139, 34, 0.3), transparent);
    bottom: 10%;
    right: -10%;
    animation-delay: 5s;
}

.orb-3 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0, 100, 0, 0.5), transparent);
    top: 50%;
    right: 10%;
    animation-delay: 10s;
}

.orb-4 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(144, 238, 144, 0.3), transparent);
    bottom: 30%;
    left: 5%;
    animation-delay: 15s;
}

@keyframes floatOrb {
    0%, 100% {
        transform: translate(0) scale(1);
    }
    33% {
        transform: translate(50px, -80px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 60px) scale(0.9);
    }
}

.nostalgic-overlay {
    display: none;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}

@keyframes rainbow {
    0% { filter: hue-rotate(0deg) brightness(1.2); }
    100% { filter: hue-rotate(360deg) brightness(1.2); }
}

#ui-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 100;
    pointer-events: auto;
}

#ca-soon {
    position: fixed;
    top: 20px;
    left: 20px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    opacity: 1;
    -webkit-user-select: text;
    user-select: text;
    pointer-events: auto;
    cursor: text;
    background: #0003;
    padding: 5px 10px;
    border-radius: 5px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

#x-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

#controls-hint {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #000c;
    padding: 15px 20px;
    border-radius: 10px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(50, 205, 50, 0.3);
    font-family: 'Courier New', monospace;
    color: #fff;
    font-size: 12px;
    box-shadow: 0 0 20px #32CD3233;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.controls-title {
    color: #32CD32;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(50, 205, 50, 0.5);
}

.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    min-width: 180px;
}

.controls-row:last-child {
    margin-bottom: 0;
}

.key {
    background: linear-gradient(135deg, #333, #444);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid #555;
    color: #32CD32;
    font-weight: 700;
    font-size: 10px;
    box-shadow: 0 2px 4px #0000004d, inset 0 1px #ffffff1a;
    text-shadow: 0 0 3px rgba(50, 205, 50, 0.5);
    white-space: nowrap;
}

.desc {
    color: #ccc;
    font-size: 11px;
    margin-left: 10px;
}

#controls-hint {
    animation: fadeInUp 1s ease-out, fadeOutDown 1s ease-in 10s forwards;
}

@keyframes fadeOutDown {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(20px);
        pointer-events: none;
    }
} 