/* public/voicetrain.js -- "Entrenar mi voz" paso a paso: botones grandes, igual en PC y en celular (no depende del diseño Video). */
#voiceTrainPanel.vtw-on > *:not(summary):not(#vtWiz):not(#voiceTrainProgress) { display: none !important; }
#voiceTrainPanel.vtw-on #voiceTrainProgress .admin-text,
#voiceTrainPanel.vtw-on #voiceTrainProgress .wait-game-box { display: none !important; }

.vtw-wiz { max-width: 820px; margin: 10px auto 0; display: grid; gap: 16px; font-size: 1.05rem; }
.vtw-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vtw-steps { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; flex-wrap: wrap; }
.vtw-pill { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 20px 8px 10px; border-radius: 999px; font-size: 1.1rem; font-weight: 800; cursor: pointer;
  background: rgba(255, 255, 255, 0.07); color: var(--text, #fff); border: 2px solid rgba(255, 255, 255, 0.18); }
.vtw-pill b { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 1.1rem; background: rgba(255, 255, 255, 0.14); }
.vtw-pill.is-on { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: #07070c; box-shadow: 0 8px 22px rgb(var(--accent-rgb) / 40%); }
.vtw-pill.is-on b { background: rgba(7, 7, 12, 0.18); }
.vtw-pill.is-done { border-color: #2fbf71; }
.vtw-pill.is-done b { background: #2fbf71; color: #07210f; }
.vtw-adv { min-height: 48px; padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 0.95rem; cursor: pointer; background: transparent; color: var(--muted, #9299ab); border: 1.5px dashed rgba(255, 255, 255, 0.25); }

.vtw-card { display: grid; gap: 16px; padding: 22px; border-radius: 22px; background: rgba(255, 255, 255, 0.05); border: 1.5px solid rgba(255, 255, 255, 0.14); }
.vtw-card[hidden], .vtw-wiz [hidden] { display: none !important; }
.vtw-h { margin: 0; font-size: 1.55rem; font-weight: 900; line-height: 1.15; }
.vtw-sub { margin: 0; font-size: 1.05rem; opacity: 0.85; line-height: 1.45; }
.vtw-tips { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.vtw-tips li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); font-size: 1rem; }

.vtw-phrase-box { display: grid; gap: 10px; padding: 18px 20px; border-radius: 18px; background: rgba(0, 0, 0, 0.28); border: 1.5px solid rgba(255, 255, 255, 0.12); }
.vtw-kind { align-self: start; padding: 4px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 800; background: rgba(var(--accent-rgb) / 22%); color: var(--accent); }
.vtw-phrase { margin: 0; font-size: 1.7rem; font-weight: 700; line-height: 1.3; }

.vtw-bar { height: 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.vtw-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-3, #f0bd4a)); transition: width 0.4s ease; }
.vtw-bar-text { margin: 0; font-size: 1.05rem; font-weight: 700; }
.vtw-level { height: 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.vtw-level i { display: block; height: 100%; width: 0; background: #2fbf71; transition: width 0.08s linear; }

.vtw-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 72px; padding: 14px 22px; border-radius: 20px; font-size: 1.35rem; font-weight: 900; cursor: pointer; border: 2px solid transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #07070c; box-shadow: 0 10px 28px rgb(var(--accent-rgb) / 35%); transition: transform 0.12s ease; }
.vtw-btn:hover:not(:disabled) { transform: translateY(-2px); }
.vtw-btn:active:not(:disabled) { transform: scale(0.98); }
.vtw-btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.vtw-btn.sec { background: rgba(255, 255, 255, 0.08); color: var(--text, #fff); border-color: rgba(255, 255, 255, 0.22); box-shadow: none; min-height: 60px; font-size: 1.15rem; }
.vtw-btn.rec { min-height: 96px; font-size: 1.7rem; }
.vtw-btn.rec.is-rec { background: #e5484d; color: #fff; box-shadow: 0 0 0 6px rgba(229, 72, 77, 0.28); animation: vtPulse 1.1s ease-in-out infinite; }
.vtw-btn.good { background: #2fbf71; color: #07210f; box-shadow: 0 10px 28px rgba(47, 191, 113, 0.35); }
@keyframes vtPulse { 50% { box-shadow: 0 0 0 14px rgba(229, 72, 77, 0.06); } }
.vtw-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vtw-nav { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
@media (max-width: 560px) { .vtw-row, .vtw-nav { grid-template-columns: 1fr; } .vtw-phrase { font-size: 1.35rem; } }

.vtw-review audio { width: 100%; }
.vtw-check { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.07); font-size: 1.15rem; font-weight: 700; cursor: pointer; }
.vtw-check input { width: 30px; height: 30px; flex: none; accent-color: var(--accent); }
.vtw-field { display: grid; gap: 6px; font-weight: 700; font-size: 1.05rem; }
.vtw-field input[type="text"] { min-height: 56px; padding: 10px 16px; border-radius: 14px; font-size: 1.15rem; }
.vtw-status { margin: 0; font-size: 1.05rem; font-weight: 700; min-height: 1.2em; }
.vtw-status.err { color: #ff8a8a; }
.vtw-big-pct { font-size: 2.4rem; font-weight: 900; text-align: center; margin: 0; }
.vtw-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; max-height: 220px; overflow: auto; }
.vtw-list li { padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); font-size: 0.98rem; word-break: break-all; }
