/* Alphabet-specific controls; the surrounding layout comes from the shared studio. */
#name-input { width: 100%; box-sizing: border-box; }
#name-form .primary-button { width: 100%; justify-content: center; margin-top: 18px; }
#name-form .name-help { margin-top: 12px; color: var(--muted); }
#name-message:empty { display: none; }
#name-message { margin-top: 14px; }
.alphabet-task .vocabulary-heading { margin: 0 0 18px; }
.alphabet-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
.alphabet-grid button { min-height: 48px; padding: 8px; border: 1px solid #dce1f5; border-radius: 10px; color: #505d9e; background: #f6f7ff; font-size: 19px; font-weight: 650; }
.alphabet-grid button:hover { background: #e9edff; }
.alphabet-grid button.active { border-color: #8e9ae5; background: #e5eaff; color: #3d4fc0; }
.alphabet-note { color: var(--muted); margin-top: 18px; }
#letter-avatar { display: block; position: absolute; inset: 0; margin: auto; touch-action: pan-y; }
.letter-badge { position: absolute; right: 20px; top: 16px; display: flex; align-items: center; gap: 10px; z-index: 2; color: #6b7398; font-size: 12px; pointer-events: none; }
.letter-badge strong { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #ffffffb0; color: #4052c8; font-size: 25px; }
.spelling-progress { text-align: right; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.spelling-letters { display: flex; flex-wrap: wrap; gap: 6px; max-height: 110px; overflow: auto; margin-bottom: 12px; padding: 3px; }
.spelling-letters button { min-width: 30px; min-height: 34px; padding: 4px 8px; border: 1px solid #dce1f5; border-radius: 6px; color: #646f9c; background: #f2f4ff; font-size: 15px; }
.spelling-letters button.active { background: #e5eaff; border-color: #9da9e9; color: #3d4fc0; }
.name-break { align-self: center; min-width: 12px; text-align: center; color: var(--muted); }
#spelling-timeline { width: 100%; min-width: 0; height: 20px; margin: 0; cursor: pointer; }
#spelling-replay { font-size: 24px; }
@media (min-width: 761px) and (max-width: 1000px) { .alphabet-grid { grid-template-columns: repeat(9,minmax(0,1fr)); } }
