/* style.css */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, #001122 0%, #003366 50%, #001122 100%);
    font-family: 'Courier New', monospace;
    color: #00ffcc;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#game-container {
    position: relative;
    border: 2px solid #00ffcc;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 255, 204, 0.5);
}

#gameCanvas, #hudCanvas {
    display: block;
    background: radial-gradient(circle at center, #002244 0%, #000011 70%);
}

#hudCanvas {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none; /* 不擋鼠標 */
    z-index: 10;
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 20, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

#start-screen, #end-screen {
    text-align: center;
    padding: 40px;
    border: 2px solid #00ffcc;
    border-radius: 15px;
    background: rgba(0, 50, 100, 0.9);
    box-shadow: 0 0 20px #00ffcc;
}

h1 { font-size: 2.5em; margin: 0 0 20px; text-shadow: 0 0 10px #00ffcc; }
h2 { font-size: 2em; margin: 0 0 20px; }

button {
    background: linear-gradient(45deg, #00ffcc, #0099aa);
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    font-family: inherit;
    color: #000;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 255, 204, 0.4);
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 255, 204, 0.6);
}

#dom-hud {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
}
