/* Émojis, symboles à copier, faux texte */
.sy-puces { display: flex; flex-wrap: wrap; gap: 6px; }
.sy-puces button { min-height: 38px; padding: 0 13px; border-radius: 11px; background: var(--soft); font: 500 14px/1.2 var(--body); color: var(--text); transition: background .2s, color .2s; }
.sy-puces button:hover { color: var(--ink); }
.sy-puces button[aria-pressed="true"] { background: var(--ink); color: #fff; font-weight: 600; }

.sy-fam { display: grid; gap: 8px; min-width: 0; }
.sy-fam h3, .sy-suite { margin-top: 6px; font: 600 17px/1.3 var(--head); color: var(--ink); }
.sy-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; }
.sy-c { position: relative; display: grid; place-items: center; min-width: 0; height: 48px; padding: 0; border-radius: 11px; background: var(--soft); font-size: 25px; line-height: 1; color: var(--ink); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation; transition: background .15s, box-shadow .15s, transform .15s; }
.sy-c:hover, .sy-c:focus-visible { background: #fff; box-shadow: 0 0 0 1.5px var(--ink); outline: 0; }
.sy-c:active { transform: scale(.94); }
.sy-c.ok { background: #e6f6ec; box-shadow: 0 0 0 1.5px #17a35c; }
.sy-c.ok::after { content: "✓"; position: absolute; top: 2px; right: 4px; font: 700 13px/1 var(--body); color: #0b7a3b; }
.sy-emoji { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif; }
.sy-signe { font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", "Noto Sans Symbols", "Noto Sans Math", "DejaVu Sans", var(--body), sans-serif; }
.sy-c.sy-vide { grid-column: span 2; border: 1px dashed var(--line); font: 500 13px/1.2 var(--body); color: var(--muted); }

.sy-hero { overflow: clip; }
/* La fiche du caractère + « Ma sélection », collées en bas de l'écran pendant qu'on fait défiler la grille */
.sy-barre { position: sticky; bottom: 10px; z-index: 5; display: grid; gap: 8px; padding: 10px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 14px 34px -14px rgba(12, 12, 24, .35); }
.sy-fiche { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; line-height: 1.35; color: var(--muted); }
.sy-fiche.ok strong { color: #0b7a3b; }
.sy-gros { flex: none; display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 6px; border-radius: 11px; background: var(--soft); font-size: 26px; font-weight: 400; line-height: 1; color: var(--ink); }
.sy-fiche span { display: grid; min-width: 0; }
.sy-fiche strong { font: 600 15px/1.3 var(--head); color: var(--ink); }
.sy-fiche small { font-size: 13px; color: var(--muted); }
.sy-ligne { display: flex; gap: 8px; align-items: center; }
.sy-ligne .inp { flex: 1; min-width: 0; height: 40px; font-size: 20px; }
.sy-ligne .inp::placeholder { font-size: 15px; }
.sy-ligne .btn { flex: none; }

/* Mémo clavier : un caractère, comment le taper sur Windows et sur Mac */
.sy-kb { display: grid; gap: 6px; }
.sy-kb-l { display: grid; grid-template-columns: 76px 1fr 1fr; gap: 12px; align-items: center; padding: 8px 12px 8px 8px; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.sy-kb-l .sy-c { font-family: var(--body); }
.sy-kb-l .sy-c.sy-vide { grid-column: auto; font-size: 13px; overflow: hidden; }
.sy-kb-l div { display: grid; gap: 1px; min-width: 0; font-size: 15px; line-height: 1.4; color: var(--ink); }
.sy-kb-l small { font-size: 13px; color: var(--muted); }

/* Faux texte */
.sy-reglages { display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; align-items: end; }
.sy-reglages .sy-puces button { min-height: 46px; }
.sy-texte { min-height: 240px; background: var(--soft); }

@media (max-width: 600px) {
  .sy-g { grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 5px; }
  .sy-c { height: 46px; font-size: 24px; }
  .sy-puces { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px; padding: 0 14px 4px; scrollbar-width: none; }
  .sy-puces::-webkit-scrollbar { display: none; }
  .sy-puces button { flex: none; }
  .sy-kb-l { grid-template-columns: 72px 1fr; }
  .sy-kb-l .sy-c { grid-row: span 2; }
  .sy-reglages { grid-template-columns: 1fr 1fr; }
  .sy-reglages > :last-child { grid-column: 1 / -1; }
  .sy-reglages .sy-puces { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .sy-ligne .btn { padding: 0 12px; }
}
