body {
    margin: 0;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.timer {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    background: rgba(0,0,0,0.3);
    padding: 10px 20px;
    border-radius: 8px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    text-align: center;
}

.overlay-soft {
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    width: 300px;
    height: auto;
    padding: 30px;
    border-radius: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.restart-btn {
    margin-top: 20px;
    padding: 12px 30px;
    font-size: 1.2rem;
    cursor: pointer;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 8px;
    transition: background 0.2s;
}

.restart-btn:hover {
    background: #27ae60;
}

.hidden {
    display: none !important;
}

h1 { margin: 0 0 20px 0; font-size: 3rem; }
h2 { margin: 0 0 15px 0; }
p { margin: 5px 0; line-height: 1.6; }
