/* உயிர்மெய் எழுத்துகள் — the 18 × 12 vowel-consonant grid in the World of Letters (js/views/letters.js).
   The table scrolls sideways inside its own box on narrow screens; the page itself never does. */
.uyirmei { min-width: 0; max-width: 100%; }
.um-lede { margin: -4px 0 12px; color: var(--ink-2); }
.um-lede .ml { font-family: var(--f-display); font-weight: 700; color: var(--peacock-deep); white-space: nowrap; }

.um-scroll {
  /* width: 0 + min-width: 100% stops the wide table from widening the page's layout columns */
  width: 0; min-width: 100%; max-width: 100%; box-sizing: border-box; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  background: var(--surface); border: 2px solid var(--line); border-radius: 24px; padding: 8px;
  box-shadow: var(--shadow-1);
}
.um-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.um-table { border-collapse: separate; border-spacing: 4px; margin: 0 auto; }
.um-table th, .um-table td { padding: 0; text-align: center; }
.um-table thead th { position: sticky; top: 0; }
/* keep the consonant column in view while the row scrolls */
.um-table tbody th { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.um-corner { position: sticky; left: 0; z-index: 2; background: var(--surface); font: 700 .72rem/1.1 var(--f-ui); color: var(--ink-3); min-width: 46px; }
.um-corner .ml { display: block; font-family: var(--f-display); font-size: .9rem; }
.um-plus { display: block; line-height: .9; }

.um-cell {
  display: inline-grid; place-items: center; min-width: 46px; min-height: 46px; padding: 2px 6px;
  font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; line-height: 1;
  color: var(--ink); background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 12px;
  cursor: pointer; transition: transform .15s var(--spring, ease), background-color .15s, border-color .15s;
}
.um-cell:hover { background: var(--zari-soft); border-color: var(--zari); transform: translateY(-2px); }
.um-cell:active { transform: scale(.94); }
.um-cell:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.um-cell.um-vowel { background: var(--kumkum-soft); border-color: transparent; color: var(--kumkum-deep); }
.um-cell.um-mei { background: var(--peacock-soft); border-color: transparent; color: var(--peacock-deep); }

.ls-mei { display: flex; align-items: center; gap: 10px; margin: 6px 0; color: var(--ink-2); font-weight: 600; }

@media (max-width: 520px) {
  .um-cell { min-width: 44px; min-height: 44px; font-size: 1.15rem; border-radius: 10px; }
  .um-table { border-spacing: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .um-cell, .um-cell:hover { transition: none; transform: none; }
}
