.egm-phoneme-helper {
    box-sizing: border-box;
    max-width: 980px;
    margin: 0 auto 18px;
    padding: 18px;
    border: 3px solid #f2c94c;
    border-radius: 24px;
    background: linear-gradient(180deg, #fff8db 0%, #fff 100%);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}

.egm-phoneme-hint {
    margin: 0 0 14px;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 800;
    color: #1f2937;
    text-align: center;
}

.egm-phoneme-word {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    min-height: 72px;
    padding: 12px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #dbeafe 0%, #eef2ff 100%);
    color: #0f172a;
    font-size: clamp(28px, 6vw, 48px);
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
}

.egm-phoneme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
}

.egm-phoneme-btn,
.egm-listen-word-btn {
    appearance: none;
    border: 0;
    border-radius: 18px;
    min-height: 64px;
    padding: 14px 16px;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.1;
    cursor: pointer;
    touch-action: manipulation;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease, background-color 0.12s ease;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.egm-listen-word-btn {
    display: block;
    width: 100%;
    margin: 0 0 12px;
    background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
    color: #fff;
}

.egm-phoneme-btn {
    background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
    color: #fff;
}

.egm-phoneme-btn:hover,
.egm-listen-word-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.egm-phoneme-btn:active,
.egm-listen-word-btn:active {
    transform: translateY(1px) scale(0.99);
}

.egm-phoneme-btn:focus-visible,
.egm-listen-word-btn:focus-visible {
    outline: 4px solid rgba(245, 158, 11, 0.35);
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .egm-phoneme-helper {
        padding: 14px;
        border-radius: 20px;
    }

    .egm-phoneme-hint {
        font-size: 19px;
    }

    .egm-phoneme-word {
        min-height: 64px;
        font-size: clamp(24px, 8vw, 38px);
    }

    .egm-phoneme-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
