:root {
    --bg-color: #ffffff;
    --text-grey: #b0b0b0;
    --text-black: #000000;
    --font-family: 'Sixtyfour', monospace;
    --row-height: 1.5em;
    /* Adjust as needed */
    --font-size: 4rem;
    /* relatively large font */
}

body {
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: var(--font-family);
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    width: 100%;
}

.animation-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    user-select: none;
}

.row {
    font-size: var(--font-size);
    white-space: pre;
    /* Ensure spaces are preserved and monospace grid holds */
    line-height: var(--row-height);
    text-align: center;
    display: flex;
    gap: 0.1ch;
}

.char {
    display: inline-block;
    width: 1ch;
    text-align: center;
    transition: color 0.1s ease;
}

.grey-row .char {
    color: var(--text-grey);
}

.main-row .char {
    color: var(--text-grey);
}

.main-row .char.revealed {
    color: var(--text-black);
}

.controls {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    color: #333;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    color: #888;
}

.input-group input {
    background: transparent;
    border: none;
    border-bottom: 2px solid #ddd;
    color: #000;
    font-family: var(--font-family);
    font-size: 1.2rem;
    padding: 0.25rem 0;
    width: 200px;
    outline: none;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-bottom-color: #000;
}

/* Make sure container handles mobile somewhat gracefully, though design is large */
@media (max-width: 768px) {
    :root {
        --font-size: 2rem;
    }

    .controls {
        flex-direction: column;
        align-items: center;
    }
}