* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #111;
    color: #fff;
    font-family: 'Times New Roman', 'SimSun', '宋体', serif; /* Unified classic serif font */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

#game-container {
    position: relative;
    width: 1024px;
    height: 768px;
    image-rendering: pixelated; /* Essential for pixel art style */
    /* Border and shadow removed for full immersion */
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#lightCanvas {
    pointer-events: none; /* Let clicks pass through if needed later */
}

/* Retro Dialog Box */
#dialog-box {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 120px;
    background-color: rgba(10, 186, 181, 0.85); /* Tiffany Blue dialog base */
    border: 4px solid #fff;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

#dialog-box.hidden {
    display: none;
}

#dialog-name {
    font-size: 14px;
    color: #ffff00;
    margin-bottom: 10px;
}

#dialog-text {
    font-size: 18px; /* Slightly larger for serif reading */
    line-height: 1.8;
}

/* Help Menu */
#help-menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    background-color: rgba(0, 0, 0, 0.9);
    border: 4px solid #0ABAB5; /* Tiffany Blue */
    padding: 30px;
    z-index: 20;
    text-align: left;
}

#help-menu.hidden {
    display: none;
}

#help-menu h2 {
    text-align: center;
    color: #ffcc00;
    margin-top: 0;
    font-size: 18px;
}

#help-menu p {
    font-size: 18px;
    line-height: 2;
}

/* Small Hint */
.controls-hint {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    z-index: 5;
}
