main {
    text-align: center;
    padding: 1.25rem 1rem 1.5rem;
}

.intro {
    max-width: 42rem;
    margin: 0 auto 0.85rem;
    color: var(--color-text-muted);
}

.spell-it-shell {
    max-width: 38rem;
    margin: 0 auto;
    padding: 14px 16px;
}

.spell-it-shell .game-buttons {
    margin-top: 0;
}

.config-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.config-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: left;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.config-field select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    background: #fff;
    color: var(--color-text);
    font: inherit;
}

.config-field select:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.progress-panel {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
}

.progress-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

#progressText {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
}

#gameArea {
    display: none;
    margin-top: 1rem;
}

#status {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.spoken-panel {
    padding: 0.6rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0.75rem;
}

.spoken-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

#spokenLetters {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-text);
    margin-bottom: 0;
    min-height: 2rem;
    word-break: break-word;
}

#result {
    font-size: 1.05rem;
    margin-top: 0.75rem;
    color: var(--color-text-muted);
    min-height: 1.5rem;
}

#pointStatus {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.game-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 0.85rem;
}

#gameArea .button {
    min-width: 9rem;
}

.button-secondary {
    background: #eef4ff;
    color: var(--color-primary);
    border: 1px solid #c7d8ff;
}

.button-secondary:hover {
    background: #e3edff;
    border-color: #b7cbff;
}

.button-secondary:active {
    background: #d8e6ff;
}

.button-secondary:disabled {
    background: #eef4ff;
    color: #8ba6ea;
    border-color: #c7d8ff;
}

@media (min-width: 901px) {
    body.spell-it-page {
        overflow-y: hidden;
    }

    main {
        padding: 1rem 2.5rem 1.25rem;
    }

    .intro {
        max-width: 52rem;
        margin-bottom: 0.65rem;
    }

    .spell-it-shell {
        max-width: 74rem;
        width: min(100%, 74rem);
        padding: 18px 20px;
        display: grid;
        grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
        gap: 1rem 1.35rem;
        align-items: start;
    }

    .spell-it-shell .config-panel,
    .spell-it-shell .progress-panel,
    .spell-it-shell > .game-buttons,
    .spell-it-shell #pointStatus {
        grid-column: 1;
    }

    .spell-it-shell #gameArea {
        display: block !important;
        grid-column: 2;
        grid-row: 1 / span 4;
        margin-top: 0;
        align-self: start;
    }

    .spell-it-shell #gameArea .game-buttons {
        justify-content: flex-start;
    }

    .spell-it-shell #gameArea .button {
        min-width: 9.5rem;
    }

    .spell-it-shell #pointStatus {
        margin-top: 0;
        align-self: end;
        text-align: left;
    }
}

@media (max-width: 480px) {
    main {
        padding: 0.75rem 0.75rem 1rem;
    }

    .intro {
        display: none;
    }

    .spell-it-shell {
        padding: 12px 12px 10px;
    }

    .config-panel {
        grid-template-columns: 1fr;
        gap: 0.55rem;
        margin-bottom: 0.7rem;
    }

    .config-field select {
        min-height: 40px;
        padding: 0.55rem 0.7rem;
    }

    .progress-panel {
        padding: 0.5rem 0.65rem;
        margin-bottom: 0.7rem;
    }

    #status { font-size: 1.15rem; margin-bottom: 0.75rem; }
    #spokenLetters { font-size: 1.25rem; min-height: 1.75rem; }
    #result { font-size: 0.95rem; }
    #pointStatus { margin-top: 0.75rem; font-size: 0.85rem; }
    .game-buttons { margin-top: 0.7rem; }
    #gameArea .button { min-width: 0; flex: 1 1 0; }
}

@media (max-height: 720px) {
    .intro {
        display: none;
    }

    main {
        padding-top: 0.4rem;
        padding-bottom: 0.35rem;
    }

    .spell-it-shell {
        padding: 10px;
    }

    .config-panel {
        margin-bottom: 0.45rem;
    }

    #pointStatus {
        display: none;
    }

    .site-footer {
        display: none;
    }
}
