@font-face {
    font-family: "Zeequada";
    src: url("Zeequada-Regular.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: "Zeequada", system-ui, sans-serif;
    background: #1a1a1a;
    color: #f0f0f0;
}

#stage {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    cursor: pointer;
    transition: background-color 0.08s ease, color 0.08s ease;
    outline: none;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

#stage.state-idle    { background: #1a1a1a; color: #f0f0f0; }
#stage.state-wait    { background: #b34a2c; color: #fff5e8; }
#stage.state-go      { background: #2ea043; color: #ffffff; }
#stage.state-early   { background: #8b1d1d; color: #ffe5e5; }
#stage.state-result  { background: #1f4f8a; color: #ffffff; }
#stage.state-done    { background: #5b2d8a; color: #ffffff; }

.title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}

.prompt-key {
    font-size: clamp(4rem, 14vw, 11rem);
    line-height: 1;
    margin: 1rem 0;
    min-height: 1em;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.message {
    font-size: clamp(1.25rem, 2.4vw, 2rem);
    margin-bottom: 0.5rem;
}

.hint {
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    opacity: 0.8;
    max-width: 40rem;
    margin: 0 auto;
}

.result {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 0.5rem 2rem;
    font-size: clamp(1rem, 1.6vw, 1.4rem);
}

.result-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.25rem 0.75rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
}

.result-label {
    opacity: 0.85;
}

.result-value {
    font-variant-numeric: tabular-nums;
}

.footer {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    font-size: 0.9rem;
    opacity: 0.65;
}

.footer a {
    color: inherit;
    text-decoration: underline;
}
