/* LEVEL-TEST-V2 (27 Oct 2026): listening, writing, speaking, street game and quiz inside the level test card. Mobile first;
   logical properties (RTL pages flip, Spanish blocks stay LTR); only transform and opacity animate; nothing moves with reduced motion. */

.vlt2-steps { display: flex; gap: 6px; list-style: none; margin: 0 0 6px; padding: 0; }
.vlt2-step { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; line-height: 1;
  background: var(--vf-surface-soft, #F2FBFB); border: 2px solid var(--vf-divider, #D5ECEC); opacity: .55; }
.vlt2-step.is-done { opacity: .9; border-color: var(--vf-brand, #1E7272); }
.vlt2-step.is-on { opacity: 1; border-color: #F07832; background: #FFF3EA; transform: scale(1.08); }
.vlt2-prog { margin: 0 0 8px; }

/* listening player */
.vlt2-player { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 14px; }
.vlt2-play { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px 8px 8px; border-radius: 999px;
  border: 0; background: var(--vf-brand, #1E7272); color: #fff; font-size: 1.05rem; font-weight: 600; cursor: pointer; align-self: flex-start;
  box-shadow: 0 2px 0 rgba(13, 36, 36, .18); }
.vlt2-play:disabled { background: #6E8C8C; cursor: default; }
.vlt2-play.is-playing { background: #F07832; }
.vlt2-play-i { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center; font-size: 18px; }
.vlt2-play.is-playing .vlt2-play-i { display: none; }
.vlt2-bars { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; gap: 3px; }
.vlt2-play.is-playing .vlt2-bars { display: inline-flex; }
.vlt2-bars i { width: 4px; height: 22px; background: #fff; border-radius: 2px; transform-origin: 50% 100%; animation: vlt2-eq .9s ease-in-out infinite; }
.vlt2-bars i:nth-child(2) { animation-delay: -.3s; }
.vlt2-bars i:nth-child(3) { animation-delay: -.6s; }
.vlt2-bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes vlt2-eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.vlt2-progress { display: block; height: 6px; border-radius: 3px; background: var(--vf-divider, #D5ECEC); overflow: hidden; }
.vlt2-progress-fill { display: block; height: 100%; background: #F07832; transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s linear; }
[dir="rtl"] .vlt2-progress-fill { transform-origin: 100% 50%; }

/* writing */
.vlt2-task { margin: 8px 0 12px; }
.vlt2-count { display: block; margin-top: 4px; font-size: .85rem; color: var(--vf-muted, #4F6B6B); text-align: end; }

/* speaking */
.vlt2-picture { display: block; width: 100%; height: auto; aspect-ratio: 700 / 458; border-radius: 12px; margin: 8px 0 12px; background: #EEF5F5; }
.vlt2-consent { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--vf-divider, #D5ECEC); border-radius: 12px;
  background: var(--vf-surface-soft, #F2FBFB); font-size: .92rem; line-height: 1.45; cursor: pointer; }
.vlt2-consent input { width: 22px; height: 22px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--vf-brand, #1E7272); }
.vlt2-recrow { display: flex; align-items: center; gap: 16px; margin: 14px 0 6px; min-height: 64px; }
.vlt2-rec { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 22px 8px 10px; border-radius: 999px; border: 2px solid #B3261E;
  background: #fff; color: #B3261E; font-size: 1.05rem; font-weight: 700; cursor: pointer; }
.vlt2-rec:disabled { opacity: .45; cursor: not-allowed; }
.vlt2-rec-dot { width: 34px; height: 34px; border-radius: 50%; background: #B3261E; }
.vlt2-rec.is-rec { background: #B3261E; color: #fff; }
.vlt2-rec.is-rec .vlt2-rec-dot { background: #fff; border-radius: 8px; transform: scale(.6); animation: vlt2-pulse 1.2s ease-in-out infinite; }
@keyframes vlt2-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.vlt2-meter { display: inline-flex; align-items: center; gap: 4px; height: 40px; }
.vlt2-meter[hidden] { display: none; }
.vlt2-meter i { width: 6px; height: 36px; border-radius: 3px; background: var(--vf-brand, #1E7272); transform: scaleY(.15); transition: transform .08s linear; }
.vlt2-rec-status { min-height: 1.4em; margin: 0 0 8px; color: var(--vf-muted, #4F6B6B); font-variant-numeric: tabular-nums; }
.vlt2-preview { width: 100%; margin: 4px 0 10px; }

/* the street game */
.vlt2-target { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 10px 0 8px; padding: 10px 14px; border-radius: 12px;
  background: #FFF3EA; border: 2px solid #F07832; font-size: 1.05rem; }
.vlt2-target-w { font-size: 1.35rem; color: var(--vf-ink, #0D2424); }
.vlt2-pop { animation: vlt2-pop .35s ease-out; display: inline-block; }
@keyframes vlt2-pop { 0% { transform: scale(.6); opacity: .2; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
.vlt2-scene { position: relative; width: 100%; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  border-radius: 14px; background: #DDEBEB; scrollbar-width: thin; }
.vlt2-scene-in { position: relative; width: 100%; aspect-ratio: 16 / 10; cursor: crosshair; touch-action: pan-x pan-y; user-select: none; -webkit-user-select: none; }
.vlt2-scene-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.vlt2-ping { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 20px; color: #fff; pointer-events: none; animation: vlt2-ping .7s ease-out forwards; }
.vlt2-ping--ok { background: rgba(22, 107, 59, .85); box-shadow: 0 0 0 4px rgba(255, 255, 255, .8); }
.vlt2-ping--no { background: rgba(179, 38, 30, .75); }
@keyframes vlt2-ping { 0% { transform: scale(.4); opacity: 1; } 80% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }
.vlt2-zone { position: absolute; border: 3px solid #fff; border-radius: 10px; box-shadow: 0 0 0 3px #166B3B, 0 0 18px rgba(255, 255, 255, .8);
  pointer-events: none; animation: vlt2-zone 1.1s ease-out forwards; }
.vlt2-zone--c { border-radius: 50%; }
@keyframes vlt2-zone { 0% { opacity: 0; transform: scale(1.3); } 25% { opacity: 1; transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }
.vlt2-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0; }
.vlt2-row--end { justify-content: flex-end; }
.vlt2-swipe { margin: 0; font-size: .88rem; color: var(--vf-muted, #4F6B6B); }
.vlt2-swipe[hidden] { display: block; visibility: hidden; }
.vlt2-place { margin: 0 0 6px; font-size: .85rem; color: var(--vf-muted, #4F6B6B); }
.vlt2-link { background: none; border: 0; padding: 10px 4px; min-height: 44px; color: var(--vf-brand, #1E7272); font-weight: 600; text-decoration: underline;
  cursor: pointer; font-size: .98rem; }
.vlt2-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 6px 0 12px; padding: 0; min-height: 34px; }
.vlt2-chip { padding: 5px 10px; border-radius: 999px; background: #E3F3EA; color: #166B3B; font-weight: 600; font-size: .92rem; animation: vlt2-pop .35s ease-out; }
.vlt2-burst { font-size: 56px; line-height: 1; margin: 6px 0 10px; animation: vlt2-pop .5s ease-out; }

/* quiz */
.vlt2-quiz-q { font-size: 1.2rem; font-weight: 700; margin: 6px 0 12px; color: var(--vf-ink, #0D2424); }
.vlt2-quiz { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .vlt2-quiz { grid-template-columns: repeat(3, 1fr); } }
.vlt2-quiz-o { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; border-radius: 14px; border: 2px solid var(--vf-divider, #D5ECEC);
  background: #fff; color: var(--vf-ink, #0D2424); font-size: 1rem; text-align: start; cursor: pointer; transition: transform .15s ease; }
.vlt2-quiz-o:active { transform: scale(.97); }
.vlt2-quiz-e { font-size: 28px; line-height: 1; }
.vlt2-quiz-o.is-right { border-color: #166B3B; background: #E3F3EA; animation: vlt2-pop .35s ease-out; }
.vlt2-quiz-o.is-wrong { border-color: #B3261E; background: #FDECEA; animation: vf-lt-shake .4s; }

/* result additions */
.vlt2-res-box { margin: 14px 0; padding: 14px 16px; border-radius: 14px; background: var(--vf-surface-soft, #F2FBFB); border: 1px solid var(--vf-divider, #D5ECEC); }
.vlt2-res-h { margin: 0 0 6px; font-size: 1.02rem; }
.vlt2-res-fb { margin: 0 0 6px; line-height: 1.5; }
.vlt2-res-note { margin: 0; font-size: .85rem; color: var(--vf-muted, #4F6B6B); }
.vlt2-res-line { margin: 0 0 6px; }

/* phones: the landing nests four paddings around the card (theme 30 + section 16 + test 16 + card 16 px a side, 217 px left for the
   game at 375 px). On small screens give the content room; the photo runs to the card edges. */
@media (max-width: 520px) {
  body.vltl-page .entry-content.wp-block-post-content { padding-left: 12px; padding-right: 12px; }
  .vltl .vltl-test { padding-inline: 8px; }
  .vltl .vf-lt--page { padding-inline: 0; }
  .vltl .vf-lt-card { padding-inline: 14px; }
  .vltl .vf-lt-card .vlt2-scene { margin-inline: -14px; width: calc(100% + 28px); border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .vlt2-bars i, .vlt2-rec.is-rec .vlt2-rec-dot, .vlt2-pop, .vlt2-chip, .vlt2-burst, .vlt2-quiz-o.is-right, .vlt2-quiz-o.is-wrong, .vlt2-ping, .vlt2-zone { animation: none; }
  .vlt2-step.is-on { transform: none; }
}
