body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000;
    color: #fff;
}

#game-container {
    position: relative;
    width: 100%;
    height: 100%;
}

canvas {
    display: block;
}

#ui-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    pointer-events: none;
    z-index: 10;
}

#timer {
    font-size: 24px;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
}

#instruction {
    margin-top: 10px;
    font-size: 14px;
    color: #aaa;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(5px);
    transition: opacity 0.5s ease;
}

.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.overlay-content {
    text-align: center;
    padding: 40px;
    border: 2px solid #00ffff;
    border-radius: 20px;
    background: rgba(0, 20, 40, 0.6);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

h1 {
    font-size: 64px;
    margin: 0 0 20px 0;
    letter-spacing: 10px;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

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

button {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    background: transparent;
    color: #00ffff;
    border: 2px solid #00ffff;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

button:hover {
    background: #00ffff;
    color: #000;
    box-shadow: 0 0 20px #00ffff;
    transform: scale(1.05);
}