:root {
    color-scheme: light;
    font-family: "Segoe UI", system-ui, sans-serif;
    color: #172033;
    background: #f1f5f9;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background:
        radial-gradient(circle at 15% 15%, #dbeafe 0, transparent 32rem),
        #f1f5f9;
}

.game-card {
    width: min(100%, 28rem);
    padding: clamp(1.5rem, 6vw, 2.5rem);
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 1.5rem 4rem rgb(15 23 42 / 10%);
}

.eyebrow {
    margin: 0 0 0.5rem;
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 8vw, 2.75rem);
    letter-spacing: -0.04em;
}

.instructions {
    margin: 0.75rem 0 2rem;
    color: #526078;
    line-height: 1.6;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 650;
}

.guess-controls {
    display: flex;
    gap: 0.75rem;
}

input,
button {
    min-height: 3rem;
    border-radius: 0.65rem;
    font: inherit;
}

input {
    width: 100%;
    min-width: 0;
    padding: 0 0.85rem;
    border: 1px solid #cbd5e1;
    color: inherit;
}

button {
    padding: 0 1.15rem;
    border: 0;
    background: #2563eb;
    color: #fff;
    font-weight: 650;
    cursor: pointer;
}

button:hover:not(:disabled) {
    background: #1d4ed8;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

input:focus-visible,
button:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

.feedback {
    min-height: 1.5rem;
    margin: 1.5rem 0 0.5rem;
    color: #1d4ed8;
    font-weight: 650;
}

.counter {
    margin: 0;
    color: #526078;
    font-size: 0.9rem;
}

.new-game {
    width: 100%;
    margin-top: 1.5rem;
    background: #0f766e;
}

.new-game:hover {
    background: #115e59;
}

[hidden] {
    display: none;
}
