/* ============================================================================
   Syllable Lab — practice games on the Syllables lesson.
   Teal accent to match the Phonetics module; pairs with assets/lq-core.css.
   ========================================================================== */
.syl-wrap { max-width: 720px; margin: 0 auto; --c: #0d9488; }

.syl-tabs { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.syl-tab { padding: 9px 15px; border-radius: 999px; cursor: pointer; min-height: 44px;
           border: 1.5px solid var(--border); background: var(--surface); color: var(--text);
           font-family: inherit; font-size: .8125rem; font-weight: 600; white-space: nowrap;
           transition: border-color .18s ease, transform .18s ease; }
.syl-tab:hover { border-color: var(--c); transform: translateY(-1px); }
.syl-tab:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.syl-tab.is-on { background: linear-gradient(135deg, #0d9488, #14b8a6); border-color: transparent;
                 color: #fff; box-shadow: 0 6px 16px -8px rgba(13, 148, 136, .8); }

.syl-bar { height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.syl-bar > span { display: block; height: 100%; width: 0; border-radius: 999px;
                  background: linear-gradient(90deg, #0d9488, #5eead4); transition: width .3s ease; }
.syl-meta { display: flex; justify-content: space-between; gap: 10px; margin: 8px 2px 14px;
            font-size: .85rem; font-weight: 600; color: var(--text-muted); }

.syl-card, .syl-done { border: 1px solid var(--border); border-radius: 22px;
                       background: var(--surface); padding: 24px 20px; text-align: center; }
.syl-q { font-size: 1rem; font-weight: 700; color: var(--text-muted); margin-bottom: 12px; }

.syl-word { display: flex; align-items: center; justify-content: center; gap: 12px;
            font-size: 2.25rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 6px; }
.syl-spk { flex: none; width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
           border: 1px solid var(--border); background: var(--bg-soft); font-size: 1.0625rem;
           line-height: 1; display: grid; place-items: center; transition: .15s; }
.syl-spk:hover { border-color: var(--c); transform: scale(1.06); }
.syl-spk:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; }
.syl-hint { font-size: 1rem; color: var(--text-muted); letter-spacing: .06em; margin-bottom: 14px; }

.syl-opts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
.syl-opt { min-width: 64px; min-height: 56px; padding: 12px 18px; border-radius: 14px;
           cursor: pointer; border: 2px solid var(--border); background: var(--surface);
           color: var(--text); font-family: inherit; font-size: 1.25rem; font-weight: 700;
           transition: .16s; }
.syl-opt.wide { font-size: 1rem; letter-spacing: .04em; }
.syl-opt:hover:not(:disabled) { border-color: var(--c); transform: translateY(-2px); }
.syl-opt:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; }
.syl-opt:disabled { cursor: default; opacity: .8; }
.syl-opt.ok { border-color: #059669; background: rgba(5,150,105,.1); color: #059669; opacity: 1; }
.syl-opt.no { border-color: #dc2626; background: rgba(220,38,38,.08); color: #dc2626; opacity: 1; }

.syl-fb { margin-top: 15px; font-size: .95rem; line-height: 1.6; min-height: 1.2em; }
.syl-fb.good { color: #059669; }
.syl-fb.bad  { color: #dc2626; }
.syl-split { display: inline-block; margin: 0 4px; padding: 2px 10px; border-radius: 8px;
             background: var(--bg-soft); color: var(--text); font-weight: 700; letter-spacing: .05em; }
.syl-loud { color: var(--c); }

.syl-actions { display: flex; justify-content: center; margin-top: 16px; }
.syl-next, .syl-again { padding: 11px 26px; border-radius: 12px; border: 0; cursor: pointer;
                        min-height: 44px; background: linear-gradient(135deg, #0d9488, #14b8a6);
                        color: #fff; font-family: inherit; font-size: .95rem; font-weight: 700; }
.syl-next:hover, .syl-again:hover { filter: brightness(1.07); }

.syl-done-emoji { font-size: 3rem; line-height: 1; }
.syl-done-score { font-size: 1.5rem; margin-top: 10px; }
.syl-done-score b { color: var(--c); }
.syl-done-msg { color: var(--text-muted); margin-top: 4px; }
.syl-done-actions { display: flex; justify-content: center; margin-top: 22px; }

@media (max-width: 560px) {
  .syl-card, .syl-done { padding: 18px 15px; border-radius: 18px; }
  .syl-word { font-size: 1.75rem; }
  .syl-opt { min-width: 56px; font-size: 1.0625rem; }
  .syl-opt.wide { width: 100%; }
  .syl-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .syl-tabs::-webkit-scrollbar { display: none; }
  .syl-tab { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .syl-tab, .syl-opt, .syl-spk, .syl-bar > span { transition: none; }
  .syl-tab:hover, .syl-opt:hover:not(:disabled) { transform: none; }
  .syl-spk:hover { transform: none; }
}

@media print { .syl-wrap { display: none !important; } }
