/* Échelle de mots — a column of word rungs from start to end, one letter changing
   each step. The changed letter is tinted. On the design-system paper. */

.el-root { padding: clamp(6px, 2vw, 16px); max-inline-size: 420px; margin: 0 auto; color: var(--color-text); display: flex; flex-direction: column; gap: var(--space-3); align-items: center; }

.el-goal { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px; font-family: var(--font-body); font-size: 14px; }
.el-tag { color: var(--color-neutral-500); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.el-w { font-family: var(--font-heading, var(--font-body)); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.el-w--end { color: var(--color-accent-700, #4a6a2a); }
.el-arrow { color: var(--color-neutral-400); }
.el-par { inline-size: 100%; text-align: center; color: var(--color-neutral-500); font-size: 12px; }

.el-ladder { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.el-rung { display: flex; gap: 4px; }
.el-cell {
  inline-size: 40px; block-size: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); background: var(--color-neutral-200); color: var(--color-text);
  font-family: var(--font-heading, var(--font-body)); font-weight: 700; font-size: 22px; text-transform: uppercase;
}
.el-rung.start .el-cell { background: var(--color-neutral-300); }
.el-rung.end .el-cell { background: var(--color-accent-500); color: var(--color-neutral-100); }
.el-cell.chg { background: var(--color-accent-200); color: var(--color-accent-900); }
.el-rung.end .el-cell.chg { background: var(--color-accent-600, #5a7a2a); color: var(--color-neutral-100); }

.el-entry { margin-block-start: var(--space-1); }
.el-input { display: flex; gap: 4px; }
.el-in { background: var(--color-neutral-100); border: 1.5px dashed var(--color-neutral-400); }
.el-in.filled { border-style: solid; border-color: var(--color-neutral-500); }

.el-msg { min-block-size: 20px; font-family: var(--font-body); font-size: 14px; color: var(--color-neutral-600); text-align: center; }
.el-msg.good { color: var(--color-accent-700, #4a6a2a); font-weight: 600; }

/* Dark page */
.el-root.mode-dark { color: #ece8e2; }
.el-root.mode-dark .el-tag, .el-root.mode-dark .el-par, .el-root.mode-dark .el-msg { color: #9a948c; }
.el-root.mode-dark .el-w--end { color: var(--color-accent-400); }
.el-root.mode-dark .el-cell { background: #322f2a; color: #ece8e2; }
.el-root.mode-dark .el-rung.start .el-cell { background: #262421; }
.el-root.mode-dark .el-rung.end .el-cell { background: var(--color-accent-600); color: #fff; }
.el-root.mode-dark .el-cell.chg { background: var(--color-accent-800, #5a3b0a); color: #ece8e2; }
.el-root.mode-dark .el-in { background: #1f1d1b; border-color: #403c38; }
.el-root.mode-dark .el-in.filled { border-color: #6f6a63; }
.el-root.mode-dark .el-msg.good { color: var(--color-accent-400); }
