/* Base Reset */
body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    color: white;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
}

#game-overlay {
    position: relative;
    width: 100vw;
    height: 100vh;
}

canvas {
    display: block;
}

/* UI Layer */
#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Let clicks pass through to canvas during game */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Start Screen */
#start-screen {
    pointer-events: auto;
    text-align: center;
    background: rgba(0, 0, 0, 0.85);
    padding: 40px;
    border: 2px solid #0f0;
    border-radius: 10px;
}

.game-title {
    font-size: 3rem;
    color: #0f0;
    text-shadow: 2px 2px #fff;
    margin-bottom: 10px;
}

.game-instructions {
    color: #fff;
    margin-bottom: 20px;
}

#high-scores-container {
    margin: 20px 0;
    text-align: left;
}

#high-scores-container h3 {
    text-align: center;
    border-bottom: 1px solid #0f0;
    padding-bottom: 5px;
}

#score-list {
    list-style: none;
    padding: 0;
    width: 200px;
    margin: 0 auto;
}

#score-list li {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    font-size: 1.2rem;
}

/* Buttons */
.game-btn {
    background: black;
    color: #0f0;
    border: 2px solid #0f0;
    padding: 10px 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
}

.game-btn:hover {
    background: #0f0;
    color: black;
}

/* Modal */
#name-entry-modal {
    pointer-events: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: black;
    border: 4px solid #0f0;
    padding: 40px;
    text-align: center;
    z-index: 100;
}

#name-entry-modal.hidden {
    display: none;
}

#name-entry-modal h2 {
    color: #0f0;
    margin-top: 0;
}

#name-entry-modal input {
    background: black;
    border: 2px solid #fff;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    font-size: 2rem;
    width: 100px;
    text-align: center;
    margin: 20px 0;
    text-transform: uppercase;
    outline: none;
}

#name-entry-modal input:focus {
    border-color: #0f0;
}

#posts-link {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    pointer-events: auto;
    z-index: 10;
}

#posts-link:hover {
    color: #0f0;
    text-decoration: underline;
}