/* =========================================================
   COMPLETE O VERSÍCULO — STYLES
   ========================================================= */

/* --- Menu --- */
.vs-level-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 1.2rem;
}

.vs-level-card {
  background: white;
  border-radius: var(--border-radius-xl);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  box-shadow: 0 8px 0 rgba(0,0,0,0.1);
  border: 4px solid white;
  transition: transform 0.1s;
  position: relative;
}
.vs-level-card:active { transform: translateY(5px); box-shadow: 0 3px 0 rgba(0,0,0,0.1) !important; }
.vs-level-card.easy   { border-color: var(--color-green);  box-shadow: 0 8px 0 #04A87B; }
.vs-level-card.medium { border-color: var(--color-blue);   box-shadow: 0 8px 0 #008AA8; }
.vs-level-card.hard   { border-color: var(--color-purple); box-shadow: 0 8px 0 #7A35B3; }
.vs-level-card.locked { opacity: 0.65; cursor: default; }

.vs-level-icon {
  width: 68px; height: 68px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 0 rgba(0,0,0,0.15);
}
.vs-level-info { flex: 1; }
.vs-level-info h4 { font-size: 1.3rem; margin-bottom: 4px; }
.vs-level-info .vs-desc { font-size: 0.82rem; font-weight: 700; color: var(--text-light); margin-bottom: 8px; }
.vs-level-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.vs-badge {
  background: #f0f4f8;
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-main);
}
.vs-lock { font-size: 1.8rem; }

/* --- Game Screen --- */
#view-versiculos-game { padding-bottom: 110px; }

.vs-progress-bar-wrapper {
  height: 10px;
  background: rgba(255,255,255,0.35);
  border-radius: 10px;
  margin: 8px 1.2rem 0;
  overflow: hidden;
}
.vs-progress-bar {
  height: 100%;
  border-radius: 10px;
  background: white;
  transition: width 0.4s ease;
}

.vs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 1.2rem 4px;
}
.vs-stat {
  background: white;
  border-radius: 14px;
  padding: 6px 14px;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text-main);
  box-shadow: 0 4px 0 rgba(0,0,0,0.1);
  display: flex; align-items: center; gap: 6px;
}
.vs-stat.timer-danger { background: #fff0f0; color: var(--color-primary); }
.vs-stat ion-icon { font-size: 1rem; }
.vs-stat .val { color: var(--color-primary); font-size: 1.1rem; }

/* Timer ring */
.vs-timer-ring {
  width: 48px; height: 48px;
  position: relative;
  flex-shrink: 0;
}
.vs-timer-ring svg { transform: rotate(-90deg); }
.vs-timer-ring .bg { stroke: rgba(255,255,255,0.3); }
.vs-timer-ring .fill {
  stroke: white;
  stroke-dasharray: 125.6;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear, stroke 0.3s;
  stroke-linecap: round;
}
.vs-timer-ring .fill.danger { stroke: #FF416C; }
.vs-timer-number {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
}
.vs-timer-number.danger { color: #FF416C; }

/* Verse card */
.vs-card {
  background: white;
  border-radius: var(--border-radius-xl);
  margin: 10px 1.2rem;
  padding: 22px 20px;
  border: 4px solid var(--color-secondary);
  box-shadow: 0 8px 0 var(--color-secondary-dark);
  transition: transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
}
.vs-card.shake {
  animation: vsShake 0.4s ease-in-out;
}
.vs-card.correct-flash {
  animation: vsCorrect 0.5s ease;
}

@keyframes vsShake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-8px); }
  80% { transform: translateX(6px); }
}
@keyframes vsCorrect {
  0% { transform: scale(1); }
  40% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.vs-verse-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--color-secondary-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}
.vs-verse-text {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.65;
  color: var(--text-main);
  margin-bottom: 14px;
}
.vs-verse-text .vs-blank {
  display: inline-block;
  background: linear-gradient(135deg, #FFD166, #FF9A3C);
  color: white;
  border-radius: 10px;
  padding: 2px 14px;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 3px 0 #DFA626;
  vertical-align: middle;
  animation: blink 1.2s infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.6; }
}
.vs-verse-ref {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-light);
  text-align: right;
  margin-top: 4px;
}

/* Hint */
.vs-hint-box {
  background: #fff8e1;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #8B4513;
  margin-top: 10px;
  display: none;
  border: 2px dashed var(--color-secondary);
}
.vs-hint-box.visible { display: block; }

/* Options */
.vs-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 1.2rem;
  margin-top: 4px;
}

.vs-option {
  background: white;
  border: 4px solid #e0eaf4;
  border-radius: var(--border-radius-md);
  padding: 15px 20px;
  text-align: left;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  box-shadow: 0 5px 0 #d0dcec;
  transition: transform 0.1s, box-shadow 0.1s;
  display: flex; align-items: center; gap: 12px;
  position: relative;
  overflow: hidden;
}
.vs-option:active:not(.disabled) {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #d0dcec;
}
.vs-option.disabled { cursor: default; pointer-events: none; }
.vs-option.correct {
  background: var(--color-green);
  border-color: #04A87B;
  box-shadow: 0 5px 0 #04A87B;
  color: white;
}
.vs-option.wrong {
  background: var(--color-primary);
  border-color: var(--color-primary-dark);
  box-shadow: 0 5px 0 var(--color-primary-dark);
  color: white;
}
.vs-option.dimmed { opacity: 0.45; }
.vs-option-letter {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: #f0f4f8;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
  color: var(--color-purple);
}
.vs-option.correct .vs-option-letter,
.vs-option.wrong   .vs-option-letter { background: rgba(255,255,255,0.25); color: white; }

/* Feedback overlay on card */
.vs-feedback {
  position: absolute;
  top: 10px; right: 14px;
  font-size: 2rem;
  animation: popIn 0.4s ease;
  pointer-events: none;
}

/* Bottom action */
.vs-next-btn-wrapper {
  padding: 12px 1.2rem 0;
}
.vs-next-btn {
  background: var(--color-purple);
  color: white;
  border: none;
  border-radius: var(--border-radius-md);
  padding: 15px;
  width: 100%;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 0 #7A35B3;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.1s;
}
.vs-next-btn.visible { display: flex; }
.vs-next-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #7A35B3; }

/* Win / Results Screen */
#vs-result-screen {
  display: none;
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.65);
  align-items: center; justify-content: center;
  padding: 20px;
}
#vs-result-screen.active { display: flex; }
.vs-result-card {
  background: white;
  border-radius: 32px;
  padding: 36px 28px;
  text-align: center;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 12px 0 rgba(0,0,0,0.15);
  animation: popIn 0.5s cubic-bezier(0.175,0.885,0.32,1.275);
}
.vs-result-emoji { font-size: 5rem; display: block; margin-bottom: 12px; animation: bounce 0.6s infinite alternate; }
.vs-result-card h2 { font-size: 2.2rem; margin-bottom: 8px; }
.vs-result-card > p { font-size: 1rem; font-weight: 700; color: var(--text-light); margin-bottom: 20px; }

.vs-score-circle {
  width: 120px; height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-family: 'Fredoka', sans-serif;
  box-shadow: 0 6px 0 rgba(0,0,0,0.1);
}
.vs-score-circle .big { font-size: 2.8rem; font-weight: 700; color: white; line-height: 1; }
.vs-score-circle .small { font-size: 1rem; font-weight: 600; color: rgba(255,255,255,0.85); }

.vs-result-stats {
  display: flex; justify-content: center; gap: 20px; margin-bottom: 22px;
  flex-wrap: wrap;
}
.vs-result-stat { text-align: center; }
.vs-result-stat .val { font-size: 1.8rem; font-weight: 800; color: var(--color-primary); display: block; font-family: 'Fredoka', sans-serif; }
.vs-result-stat .lbl { font-size: 0.78rem; font-weight: 700; color: var(--text-light); }

.vs-stars {
  font-size: 2rem;
  letter-spacing: 4px;
  margin-bottom: 20px;
}
