 :root {
     --vanta-black: #050505;
     --emerald-glow: rgba(20, 255, 100, 0.7);
     --emerald-text: #39ff14;
     --czech-glass-color: rgba(200, 255, 230, 0.4);
     --border-color: #2a3b2c;
     --text-shadow: 0 0 10px rgba(57, 255, 20, 0.5), 0 0 20px rgba(57, 255, 20, 0.3);
 }

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

 body,
 html {
     width: 100%;
     height: 100%;
     overflow: hidden;
     background-color: var(--vanta-black);
     font-family: 'Space Grotesk', sans-serif;
     color: #fff;
 }

 /* Background Effects */
 .vanta-background {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: radial-gradient(circle at center, #0a110d 0%, var(--vanta-black) 80%);
     z-index: 1;
 }

 .cave-environment {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background-image:
         radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(0, 5, 2, 0.9) 100%),
         url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.05"/></svg>');
     z-index: 2;
     pointer-events: none;
 }

 /* 3D Canvas */
 #canvas-container {
     position: absolute;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%);
     width: 100vw;
     height: 100vh;
     z-index: 5;
     pointer-events: none;
     /* Let clicks pass through if needed, though three.js might need them later */
 }

 /* Cinematic Overlay */
 .cinematic-overlay {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     pointer-events: none;
     z-index: 10;
 }

 .vignette {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     box-shadow: inset 0 0 150px rgba(0, 5, 2, 0.95);
     background: radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
 }

 .hud-elements {
     position: absolute;
     top: 2rem;
     left: 2rem;
     right: 2rem;
     bottom: 2rem;
     border: 1px solid rgba(57, 255, 20, 0.05);
     overflow: hidden;
 }

 .scan-line {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 2px;
     background: linear-gradient(90deg, transparent, rgba(57, 255, 20, 0.8), transparent);
     opacity: 0.3;
     animation: scan 8s linear infinite;
     box-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
 }

 @keyframes scan {
     0% {
         transform: translateY(-100%);
     }

     100% {
         transform: translateY(100vh);
     }
 }

 .hud-corner {
     position: absolute;
     width: 30px;
     height: 30px;
     border: 2px solid var(--emerald-glow);
     opacity: 0.6;
     transition: all 0.3s ease;
 }

 .hud-corner.tl {
     top: -2px;
     left: -2px;
     border-right: none;
     border-bottom: none;
 }

 .hud-corner.tr {
     top: -2px;
     right: -2px;
     border-left: none;
     border-bottom: none;
 }

 .hud-corner.bl {
     bottom: -2px;
     left: -2px;
     border-right: none;
     border-top: none;
 }

 .hud-corner.br {
     bottom: -2px;
     right: -2px;
     border-left: none;
     border-top: none;
 }

 /* Interaction Layer - Advanced Glassmorphism */
 .interaction-layer {
     position: absolute;
     bottom: 8%;
     left: 50%;
     transform: translateX(-50%);
     width: 90%;
     max-width: 800px;
     z-index: 20;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     perspective: 1000px;
 }

 .glass-panel {
     background: rgba(6, 15, 9, 0.4);
     border: 1px solid rgba(57, 255, 20, 0.15);
     -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px) saturate(120%);
     border-radius: 20px;
     padding: 2.5rem 4rem;
     box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8),
         inset 0 0 30px rgba(57, 255, 20, 0.05);
     transform-style: preserve-3d;
     animation: floatPanel 8s ease-in-out infinite alternate;
     position: relative;
     overflow: hidden;
 }

 .glass-panel::before {
     content: '';
     position: absolute;
     top: -50%;
     left: -50%;
     width: 200%;
     height: 200%;
     background: radial-gradient(circle at 50% 50%, rgba(57, 255, 20, 0.05), transparent 70%);
     pointer-events: none;
     animation: rotateGlow 15s linear infinite;
 }

 @keyframes rotateGlow {
     from {
         transform: rotate(0deg);
     }

     to {
         transform: rotate(360deg);
     }
 }

 @keyframes floatPanel {
     0% {
         transform: translateY(0) rotateX(2deg);
     }

     100% {
         transform: translateY(-15px) rotateX(-2deg);
     }
 }

 .alien-text {
     font-family: 'Cinzel Decorative', cursive;
     font-size: 1.8rem;
     color: var(--emerald-text);
     text-shadow: var(--text-shadow);
     letter-spacing: 5px;
     word-spacing: 12px;
     line-height: 1.8;
     animation: textGlow 3s infinite alternate;
     position: relative;
     z-index: 2;
 }

 .english-text {
     font-family: 'Space Grotesk', sans-serif;
     font-size: 1.25rem;
     color: #e0ffe0;
     text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
     letter-spacing: 1px;
     position: relative;
     z-index: 2;
 }

 @keyframes textGlow {
     from {
         text-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
     }

     to {
         text-shadow: 0 0 20px rgba(57, 255, 20, 0.9), 0 0 40px rgba(57, 255, 20, 0.5);
     }
 }

 .hidden {
     display: none !important;
     opacity: 0;
 }

 .user-interaction {
     width: 100%;
     display: flex;
     flex-direction: column;
     gap: 24px;
     animation: HUDReveal 1.5s cubic-bezier(0.19, 1, 0.22, 1);
 }

 @keyframes HUDReveal {
     from {
         opacity: 0;
         transform: translateY(40px) scale(0.95);
         filter: blur(15px);
     }

     to {
         opacity: 1;
         transform: translateY(0) scale(1);
         filter: blur(0);
     }
 }

 .dialogue-box {
     background: linear-gradient(180deg, rgba(6, 17, 9, 0.6) 0%, rgba(2, 5, 2, 0.85) 100%);
     border-left: 3px solid var(--emerald-text);
     padding: 1.5rem 2.5rem;
     border-radius: 0 16px 16px 0;
     box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
     -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    position: relative;
 }

 .dialogue-box::after {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: linear-gradient(90deg, rgba(57, 255, 20, 0.05), transparent);
     pointer-events: none;
     border-radius: 0 16px 16px 0;
 }

 .moldormr-greeting {
     font-size: 1.15rem;
     color: #c0ffc0;
     line-height: 1.7;
     letter-spacing: 0.5px;
     text-shadow: 0 0 12px rgba(57, 255, 20, 0.3);
     font-family: 'Space Grotesk', sans-serif;
     font-weight: 300;
 }

 .input-wrapper {
     position: relative;
     display: flex;
     gap: 1rem;
     width: 100%;
     padding: 8px;
     background: rgba(0, 0, 0, 0.5);
     border-radius: 40px;
     border: 1px solid rgba(57, 255, 20, 0.25);
     box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.9), 0 5px 15px rgba(0, 0, 0, 0.5);
     transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
 }

 .input-wrapper:focus-within {
     border-color: var(--emerald-text);
     box-shadow: 0 0 30px rgba(57, 255, 20, 0.2), inset 0 0 25px rgba(0, 0, 0, 0.9);
     transform: translateY(-2px);
 }

 input[type="text"] {
     flex-grow: 1;
     background: transparent;
     border: none;
     outline: none;
     padding: 0 2rem;
     color: #fff;
     font-size: 1.1rem;
     font-family: 'Space Grotesk', sans-serif;
     letter-spacing: 0.8px;
     font-weight: 300;
 }

 input[type="text"]::placeholder {
     color: rgba(255, 255, 255, 0.3);
     font-style: italic;
 }

 button {
     position: relative;
     background: rgba(57, 255, 20, 0.08);
     border: 1px solid rgba(57, 255, 20, 0.4);
     color: var(--emerald-text);
     padding: 14px 35px;
     border-radius: 30px;
     font-weight: 600;
     letter-spacing: 2px;
     overflow: hidden;
     cursor: pointer;
     transition: all 0.4s ease;
     text-transform: uppercase;
     font-size: 0.95rem;
     font-family: 'Space Grotesk', sans-serif;
     box-shadow: 0 0 15px rgba(57, 255, 20, 0.1);
 }

 button::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: linear-gradient(90deg, transparent, rgba(57, 255, 20, 0.3), transparent);
     transform: translateX(-100%);
     transition: transform 0.6s ease;
 }

 button:hover {
     background: rgba(57, 255, 20, 0.2);
     border-color: var(--emerald-text);
     box-shadow: 0 0 25px rgba(57, 255, 20, 0.4), inset 0 0 10px rgba(57, 255, 20, 0.3);
     color: #fff;
     text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
 }

 button:hover::before {
     transform: translateX(100%);
 }

 .movement-hint {
     position: absolute;
     top: 1.5rem;
     right: 1.5rem;
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 0.5rem;
     color: var(--emerald-text);
     opacity: 0.5;
     font-size: 0.75rem;
     font-family: 'Space Grotesk', sans-serif;
     letter-spacing: 3px;
     z-index: 15;
     pointer-events: none;
     text-shadow: 0 0 10px rgba(57, 255, 20, 0.4);
 }

 .arrows-icon {
     opacity: 0.8;
 }

 .arrows-icon .key {
     fill: rgba(6, 15, 9, 0.6);
     stroke: var(--emerald-text);
     stroke-width: 1.5;
 }

 .arrows-icon .arrow {
     fill: var(--emerald-text);
     opacity: 0.9;
 }

/* Intro Screen Overlay */
.intro-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: opacity 1s ease;
}

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

.title-text {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 2.2rem;
    color: var(--emerald-text);
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.5), 0 0 20px rgba(57, 255, 20, 0.3);
    letter-spacing: 5px;
    margin-bottom: 0.5rem;
}

.subtitle-text {
    font-family: 'Space Grotesk', sans-serif;
    color: #c0ffc0;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 2.5rem;
}

.name-input {
    margin-bottom: 2rem;
}

#suggest-btn {
    padding: 0 15px;
    font-size: 1.8rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--emerald-text);
    transition: transform 0.4s ease, color 0.3s ease;
    box-shadow: none;
}

#suggest-btn:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.8);
    background: transparent;
    border-color: transparent;
}

.primary-btn {
    width: 100%;
    font-size: 1.1rem;
    padding: 16px 35px;
}

.highlight {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 0 10px var(--emerald-glow);
}