:root {
    color-scheme: dark;
    --bg: #0e0f13;
    --fg: #e7e9ee;
    --muted: #8b90a0;
    --accent: #5b8cff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--fg);
}

#app {
    width: min(92vw, 480px);
    padding: 2rem;
    text-align: center;
}

h1 {
    margin: 0 0 0.5rem;
    font-size: 1.6rem;
    letter-spacing: 0.02em;
}

#status {
    color: var(--muted);
    min-height: 1.5em;
}

button {
    appearance: none;
    border: 0;
    border-radius: 0.6rem;
    padding: 0.8rem 1.4rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    cursor: pointer;
}

button:disabled {
    opacity: 0.5;
    cursor: default;
}

#controls {
    margin-top: 1.2rem;
    display: flex;
    gap: 0.6rem;
    justify-content: center;
}

.toggle {
    background: #2a2d39;
}

.toggle.active {
    background: #b3434e;
}
