html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

.overlay-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 10;
}

.reaction-area {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.1s ease;
    user-select: none;
}

.content {
    text-align: center;
    pointer-events: none; /* Let clicks pass to parent */
}

.icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: white;
}

h1 {
    font-size: 3rem;
    color: white;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

#subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    max-width: 500px;
}

#result-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 4rem;
    font-weight: 700;
    color: white;
    margin: 1rem 0;
}

.instruction {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-top: 2rem;
    opacity: 0.8;
}

.hidden {
    display: none;
}

/* States */
.state-idle {
    background-color: #2563eb; /* Blue */
}

.state-waiting {
    background-color: #dc2626; /* Red */
}

.state-ready {
    background-color: #16a34a; /* Green */
}

.state-early {
    background-color: #ea580c; /* Orange */
}

.state-result {
    background-color: #2563eb; /* Back to Blue */
}
