@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Quicksand:wght@500;700&display=swap');

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Quicksand', sans-serif;
    background-color: #87CEEB;
}

#game-canvas {
    display: block;
}

/* UI Elements */
#ui-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

#progress-container {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 250px;
    pointer-events: auto;
}

#progress-label {
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 5px;
}

#progress-bar-bg {
    width: 100%;
    height: 15px;
    background: rgba(0,0,0,0.5);
    border: 2px solid #fff;
    border-radius: 10px;
    overflow: hidden;
}

#progress-bar-fill {
    width: 10%;
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    transition: width 0.5s ease;
}

#quest-log {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.4);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #FFD700;
}

#quest-log h3 { margin: 0 0 10px 0; font-size: 0.9rem; color: #FFD700; }
#quest-log ul { list-style: none; padding: 0; margin: 0; font-size: 0.8rem; }
#quest-log li { margin-bottom: 5px; opacity: 0.7; }
#quest-log li.completed { text-decoration: line-through; opacity: 1; color: #4CAF50; }

#interact-prompt {
    position: absolute;
    bottom: 30%;
    width: 100%;
    text-align: center;
    font-size: 1.2rem;
    display: none;
}

#dialogue-box {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    background: #f4e4bc;
    border: 6px solid #8b5a2b;
    border-radius: 15px;
    padding: 20px;
    color: #4a2c0f;
    text-shadow: none;
    pointer-events: auto;
}

#dialogue-box h2 { margin-top: 0; font-family: 'Press Start 2P', cursive; font-size: 1rem; color: #8b5a2b; }
#dialogue-footer { text-align: right; font-size: 0.7rem; margin-top: 10px; font-weight: bold; color: #8b5a2b; }

#achievement-popup {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    padding: 15px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    border: 2px solid #FFD700;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from { top: -100px; }
    to { top: 100px; }
}

.hidden { display: none !important; }

#overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, #4fb3ff 0%, #0066cc 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    pointer-events: auto;
}

.menu-content {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 50px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

button {
    padding: 15px 30px;
    font-size: 1.2rem;
    cursor: pointer;
    background: #FFD700;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    color: #4a2c0f;
    transition: transform 0.2s;
}

button:hover { transform: scale(1.1); }