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

.vw-tabs { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.vw-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; }
.vw-tab:hover { border-color: var(--c); transform: translateY(-1px); }
.vw-tab:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.vw-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); }

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

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

/* the big letter / word being asked about */
.vw-subject { display: flex; align-items: center; justify-content: center; gap: 12px;
              margin-bottom: 6px; }
.vw-letter { font-size: 4rem; font-weight: 700; line-height: 1; letter-spacing: -.02em;
             color: var(--c); }
.vw-word { font-size: 2.25rem; font-weight: 700; letter-spacing: -.01em; }
.vw-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; }
.vw-spk:hover { border-color: var(--c); transform: scale(1.06); }
.vw-spk:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; }
.vw-hint { font-size: .9rem; color: var(--text-muted); margin-bottom: 12px; }

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

/* ------------------------------------------- game 2: tap the vowels ------ */
.vw-tiles { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px 0 4px; }
.vw-tile { width: 54px; height: 62px; border-radius: 13px; cursor: pointer;
           border: 2px solid var(--border); background: var(--surface); color: var(--text);
           font-family: inherit; font-size: 1.5rem; font-weight: 700; text-transform: uppercase;
           transition: .16s; }
.vw-tile:hover:not(:disabled) { border-color: var(--c); transform: translateY(-2px); }
.vw-tile:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; }
.vw-tile.picked { border-color: var(--c); background: color-mix(in srgb, #0d9488 14%, transparent);
                  color: var(--c); }
.vw-tile:disabled { cursor: default; }
.vw-tile.ok { border-color: #059669; background: rgba(5,150,105,.12); color: #059669; }
.vw-tile.no { border-color: #dc2626; background: rgba(220,38,38,.1); color: #dc2626; }
.vw-tile.missed { border-color: #059669; border-style: dashed; color: #059669; }

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

.vw-actions { display: flex; justify-content: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.vw-next, .vw-check, .vw-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; }
.vw-next:hover, .vw-check:hover, .vw-again:hover { filter: brightness(1.07); }
.vw-check:disabled { opacity: .5; cursor: default; filter: none; }

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

@media (max-width: 560px) {
  .vw-card, .vw-done { padding: 18px 15px; border-radius: 18px; }
  .vw-letter { font-size: 3rem; }
  .vw-word { font-size: 1.75rem; }
  .vw-opt { min-width: 64px; font-size: 1rem; }
  .vw-opt.big { min-width: 84px; font-size: 1.25rem; }
  .vw-tile { width: 46px; height: 54px; font-size: 1.25rem; }
  .vw-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .vw-tabs::-webkit-scrollbar { display: none; }
  .vw-tab { flex: 0 0 auto; }
}

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

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