/* ============================================
   LANDING PAGE - BASE STYLES
   Mira's World - Minecraft Theme
   ============================================ */

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

body {
    font-family: 'Silkscreen', cursive;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    background: #000;
}

/* Canvas Container */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

/* Title */
.title {
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(2.5rem, 7vw, 5rem);
    color: #fff;
    text-shadow: 
        0 4px 0 #3d3d3d,
        0 6px 0 #2d2d2d,
        0 8px 15px rgba(0,0,0,0.5),
        0 0 40px rgba(100, 200, 100, 0.3);
    letter-spacing: 4px;
    animation: titleFloat 4s ease-in-out infinite;
    text-align: center;
}

.title span {
    display: inline-block;
    background: linear-gradient(180deg, #7fff7f 0%, #4CAF50 50%, #2d7d2d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 0 #1a4d1a) drop-shadow(0 6px 8px rgba(0,0,0,0.5));
}

/* Instructions */
.instructions {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
    background: rgba(0,0,0,0.4);
    padding: 15px 30px;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.2);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a2e;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-text {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #4CAF50;
    margin-bottom: 40px;
    text-shadow: 0 0 30px rgba(76, 175, 80, 0.5);
}

.loading-bar-bg {
    width: min(350px, 80vw);
    height: 35px;
    background: #333;
    border: 4px solid #555;
    position: relative;
    overflow: hidden;
}

.loading-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2E7D32, #4CAF50, #8BC34A);
    transition: width 0.25s ease;
}

.loading-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1rem;
    text-shadow: 1px 1px 3px black;
}

/* Welcome Screen (transition after door opens) */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1a237e 0%, #4a148c 50%, #880e4f 100%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.welcome-screen.visible {
    opacity: 1;
    pointer-events: auto;
}

.welcome-screen h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    color: #fff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    margin-bottom: 20px;
    animation: welcomeBounce 1s ease;
}

.welcome-screen p {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
}

