.alphabet-home-stage {
    grid-template-columns: 0.9fr 1.6fr;
    min-height: 480px;
}

.alphabet-home-mentor {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 12px 24px 24px;
    background: var(--paper);
}

.alphabet-home-mentor img {
    height: 432px;
    min-height: 0;
    object-fit: contain;
    object-position: center;
}

.alphabet-board-wrap {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 28px;
}

.alphabet-board {
    position: relative;
    width: 100%;
    padding: 24px;
    border: 8px solid #d4b88e;
    border-bottom: 12px solid #b79163;
    border-radius: 20px;
    background: #385746;
    box-shadow: inset 0 2px 8px #152d2626, 0 5px 14px #2943370c;
}

.alphabet-board-heading {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.alphabet-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.alphabet-case-navigation {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.alphabet-case-navigation a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid #ffffff38;
    border-radius: 12px;
    color: #fff8e4;
    text-decoration: none;
    font-size: 15px;
    font-weight: 750;
}

.alphabet-case-navigation a[aria-current="page"] {
    background: #f4e7c3;
    border-color: #f4e7c3;
    color: #385746;
}

.alphabet-case-navigation a:focus-visible {
    outline: 3px solid #fff8e4;
    outline-offset: 4px;
}

.alphabet-tile-glyph {
    width: 75%;
    max-width: 50px;
    height: 54px;
    fill: none;
    stroke: currentColor;
    stroke-width: 26;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.alphabet-grid li {
    min-width: 0;
}

.alphabet-sequence-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    margin-top: 16px;
    border: 1px solid #ffffff38;
    border-radius: 12px;
    background: #ffffff0a;
    color: #fff8e4;
    font-size: 15px;
    font-weight: 750;
    text-decoration: none;
}

.alphabet-sequence-link:hover {
    background: #fff2cc;
    color: #385746;
}

.alphabet-sequence-link:focus-visible {
    outline: 3px solid #fff8e4;
    outline-offset: 4px;
}

.alphabet-tile {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 44px;
    aspect-ratio: 1;
    padding: 0;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: #d5dfd4;
    font-family: Verdana, "Avenir Next", system-ui, sans-serif;
    font-size: clamp(30px, 4.2vw, 48px);
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.alphabet-tile:disabled {
    opacity: 1;
    cursor: default;
    -webkit-text-fill-color: #d5dfd4;
}

.alphabet-tile.is-available {
    background: #ffffff0a;
    color: #fff8e4;
    transition: transform 140ms, background-color 140ms;
}

.alphabet-tile.is-available:hover {
    transform: translateY(-2px);
    background: #fff2cc;
    color: #385746;
}

.alphabet-tile.is-available:active {
    transform: translateY(1px);
}

.alphabet-tile.is-available:focus-visible {
    outline: 3px solid #fff8e4;
    outline-offset: 4px;
}

@media (max-width: 900px) {
    .alphabet-home-stage {
        grid-template-columns: 0.9fr 1.6fr;
        min-height: 440px;
    }

    .alphabet-home-mentor img {
        height: 392px;
    }

    .alphabet-board-wrap {
        padding: 20px;
    }

    .alphabet-board {
        padding: 16px;
    }

    .alphabet-grid {
        gap: 8px;
    }
}

@media (max-width: 760px) {
    .alphabet-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .alphabet-home-stage {
        grid-template-columns: 1fr;
    }

    .alphabet-home-mentor {
        height: 180px;
        padding: 12px;
    }

    .alphabet-home-mentor img {
        height: 156px;
    }

    .alphabet-board-wrap {
        padding: 18px 12px;
    }

    .alphabet-board {
        padding: 12px;
        border-width: 6px;
        border-bottom-width: 10px;
        border-radius: 17px;
    }

    .alphabet-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 6px;
    }

    .alphabet-tile {
        border-radius: 10px;
        font-size: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .alphabet-tile.is-available {
        transition: none;
    }

    .alphabet-tile.is-available:hover, .alphabet-tile.is-available:active {
        transform: none;
    }
}
