body {
    margin: 0;
    font-family: 'Press Start 2P', cursive;
    background: #1a1a1a;
    color: #fff;
}

#game-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
}

canvas {
    border: 2px solid #ff6b00;
    background: #000;
    max-width: 100%;
    max-height: 80vh;
}

#dialog-box {
    position: fixed;
    bottom: 10%;
    left: 10%;
    right: 10%;
    background: #000;
    border: 4px solid #00ffaa;
    padding: 20px;
    font-size: 16px;
    text-align: center;
    box-shadow: 0 0 10px #00ffaa;
}

#dialog-box button {
    background: #ff6b00;
    border: 2px solid #fff;
    color: #fff;
    padding: 10px;
    margin: 5px;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
}

#dialog-box button:hover {
    background: #00ffaa;
}

#quest-panel {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #000;
    border: 4px solid #ff6b00;
    padding: 10px;
    max-width: 300px;
    font-size: 14px;
}

#quest-panel.collapsed #quest-content {
    display: none;
}

#quest-toggle {
    background: #00ffaa;
    border: 2px solid #fff;
    color: #000;
    padding: 8px;
    cursor: pointer;
}

#inventory {
    position: fixed;
    top: 10px;
    left: 10px;
    background: #000;
    border: 4px solid #00ffaa;
    padding: 10px;
    max-width: 200px;
    font-size: 14px;
}

.hidden {
    display: none;
}

.glow {
    animation: glow 1s infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 5px #ff6b00; }
    to { box-shadow: 0 0 15px #ff6b00; }
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: 0;
    animation: fall 2s linear;
}
@keyframes fall {
    0% { transform: translateY(0); }
    100% { transform: translateY(100vh); }
}

@media (max-width: 600px) {
    canvas {
        width: 100%;
        height: auto;
    }
    #dialog-box {
        font-size: 12px;
        padding: 10px;
    }
    #quest-panel, #inventory {
        font-size: 12px;
        max-width: 150px;
    }
    #quest-toggle {
        padding: 5px;
    }
}
