* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #050505;
    color: #0ff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

h1 {
    margin: 20px 0;
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 0 0 10px #0ff, 0 0 20px #0ff;
}

#game-container {
    position: relative;
    border: 4px solid #f0f;
    box-shadow: 0 0 15px #f0f, inset 0 0 15px #f0f;
    margin-bottom: 20px;
}

canvas {
    display: block;
    background-color: #000;
}

#ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

#ui-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.btn {
    padding: 15px 30px;
    font-size: 1.2rem;
    background: transparent;
    color: #f0f;
    border: 2px solid #f0f;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    box-shadow: 0 0 5px #f0f;
    margin-top: 20px;
}

.btn:hover {
    background: #f0f;
    color: #000;
    box-shadow: 0 0 20px #f0f;
}

#leaderboard-section {
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
    padding-bottom: 50px;
}

#leaderboard-section h2 {
    text-align: center;
    color: #f0f;
    text-shadow: 0 0 10px #f0f;
    margin-bottom: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 255, 255, 0.05);
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

th {
    color: #f0f;
    text-transform: uppercase;
    font-size: 0.9rem;
}

tr:hover {
    background: rgba(0, 255, 255, 0.1);
}

.score-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

input[type="text"] {
    flex-grow: 1;
    padding: 10px;
    background: #111;
    border: 1px solid #0ff;
    color: #0ff;
    outline: none;
}

input[type="text"]:focus {
    box-shadow: 0 0 10px #0ff;
}

/* Pause overlay - uses .btn styling via the class */
#pause-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

#pause-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

#pause-overlay h2 {
    color: #0ff;
    font-size: 2rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-shadow: 0 0 10px #0ff, 0 0 20px #0ff;
    margin-bottom: 25px;
}

#pause-overlay #resume-btn.btn {
    color: #0ff;
    border-color: #0ff;
    box-shadow: 0 0 5px #0ff;
}

#pause-overlay #resume-btn.btn:hover {
    background: #0ff;
    color: #000;
    box-shadow: 0 0 20px #0ff;
}

#pause-overlay #restart-btn.btn {
    color: #f0f;
    border-color: #f0f;
    box-shadow: 0 0 5px #f0f;
}

#pause-overlay #restart-btn.btn:hover {
    background: #f0f;
    color: #000;
    box-shadow: 0 0 20px #f0f;
}
