/* Small Death — Main Styles */

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

body {
    background: #000;
    color: #e0e0e0;
    font-family: 'Georgia', serif;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

#game-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#game-canvas {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    max-width: 100%;
    max-height: 100%;
    background: #0a0a0a;
}

/* UI Overlay — pointer-events: none by default, but children can opt-in */
#ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Main Menu re-enables pointer events */
#main-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 500;
    pointer-events: auto;  /* allow clicks */
}
#main-menu h1 {
    font-size: 72px;
    color: #d4a574;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(212, 165, 116, 0.3);
}
#main-menu p {
    font-size: 18px;
    margin: 10px 0;
    color: #888;
    cursor: pointer;
    pointer-events: auto;  /* ensure clickable */
}
#main-menu p#new-game,
#main-menu p#trailer-btn,
#main-menu p#cont-game {
    pointer-events: auto;
    transition: color 0.2s;
}
#main-menu p#new-game:hover,
#main-menu p#trailer-btn:hover,
#main-menu p#cont-game:hover {
    color: #d4a574;
}
#main-menu .subtitle {
    font-style: italic;
    color: #666;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    #text-dialogue {
        bottom: 20px;
        width: 90%;
        padding: 15px;
    }
    #text-dialogue .text {
        font-size: 16px;
    }
    #text-dialogue .speaker {
        font-size: 14px;
    }
    .choice-btn {
        font-size: 14px;
        padding: 8px 12px;
    }
    #main-menu h1 {
        font-size: 36px;
    }
}
