@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,900;1,900&family=Roboto+Mono:wght@700&display=swap');

body {
    margin: 0;
    overflow: hidden;
    background-color: #87CEEB;
    font-family: 'Montserrat', sans-serif;
    user-select: none;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#timer {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Roboto Mono', monospace;
    font-size: 42px;
    color: white;
    text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000;
    display: none;
}

#speedometer {
    position: absolute;
    bottom: 30px;
    right: 40px;
    font-family: 'Roboto Mono', monospace;
    font-size: 24px;
    color: #ffcc00;
    text-shadow: 2px 2px 0 #000;
    display: none;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    backdrop-filter: blur(8px);
}

.hidden {
    display: none !important;
}

h1 {
    font-size: 80px;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 4px 4px 0 #ff4757;
}

h2 {
    font-size: 60px;
    color: #2ed573;
    margin: 0 0 10px 0;
    text-shadow: 3px 3px 0 #000;
}

p {
    color: #fff;
    font-size: 18px;
    margin-bottom: 30px;
}

button {
    background: #ff4757;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    cursor: pointer;
    margin: 10px;
    border-radius: 8px;
    transition: transform 0.1s, filter 0.1s;
    box-shadow: 0 6px 0 #c0392b;
}

button:hover {
    filter: brightness(1.1);
}

button:active {
    transform: translateY(6px);
    box-shadow: none;
}

button.secondary {
    background: #2ed573;
    box-shadow: 0 6px 0 #27ae60;
}

input {
    padding: 12px;
    font-size: 18px;
    font-family: 'Roboto Mono', monospace;
    border-radius: 6px;
    border: none;
    text-align: center;
    margin-bottom: 20px;
    outline: none;
}

.leaderboard-container {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    width: 350px;
    color: white;
    margin-bottom: 20px;
}

.leaderboard-container h3 {
    margin-top: 0;
    text-align: center;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: 'Roboto Mono', monospace;
}

ul li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}