/* One editable surface for Daily, Libre, Défis and Exploration. */
.word-editor {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    min-height: 64px;
    padding: 8px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: text;
    outline: none;
    user-select: none;
    touch-action: manipulation;
}
.word-editor:focus {
    outline: none;
}
.word-editor[aria-disabled="true"] { cursor: default; }
.word-editor-letter {
    flex: 0 1 36px;
    min-width: 0;
    text-align: center;
    font: normal 38px/1.1 var(--serif);
}
.word-editor-placeholder {
    font: italic 25px/1.2 var(--serif);
    color: #7c8471;
    pointer-events: none;
}
.word-editor.is-empty:focus:not([aria-disabled="true"]) .word-editor-placeholder { visibility: hidden; }
.word-editor .word-editor-cursor {
    display: none;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate(-1px, -50%);
    width: 2px;
    height: 32px;
    border-radius: 1px;
    background: var(--green);
    animation: blink 1.1s steps(2, start) infinite;
}
.word-editor:focus:not([aria-disabled="true"]) .word-editor-cursor { display: block; }
#inputAreaContainer, .mode-draft-container { border-bottom: 1px solid #cdd5c6; }
@media (max-width: 720px) {
    .word-editor { min-height: 48px; padding: 6px 0; gap: 2px; }
    .word-editor-letter { flex-basis: 30px; font-size: clamp(25px, 8vw, 34px); }
    .word-editor-placeholder { font-size: 23px; }
    .word-editor .word-editor-cursor { height: 29px; }
}
@media (prefers-reduced-motion: reduce) {
    .word-editor { transition: none; }
    .word-editor .word-editor-cursor { animation: none; }
}
