/* Vocabulary gate shown before a reading test opens. Own file — style.css is
   at its size ceiling and must not grow. */

body.rvg-open {
  overflow: hidden;
}

.rvg-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  overflow-y: auto;
}

.rvg-card {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  font-family: inherit;
}

.rvg-card--offer {
  max-width: 460px;
  text-align: center;
}

.rvg-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2563eb;
}

.rvg-title {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: #0f172a;
}

.rvg-sub {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
}

.rvg-bar {
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  overflow: hidden;
}

.rvg-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: #2563eb;
  transition: width 0.25s ease;
}

.rvg-meta {
  display: flex;
  justify-content: space-between;
  margin: 8px 0 16px;
  font-size: 12.5px;
  color: #64748b;
}

.rvg-word-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
}

.rvg-word-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rvg-word {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
}

.rvg-pos {
  font-size: 13px;
  font-style: italic;
  color: #64748b;
}

.rvg-badge {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 11px;
  border: 1px solid #f59e0b;
  background: #fef3c7;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #92400e;
}

.rvg-badge[hidden] {
  display: none;
}

.rvg-sentence {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: #334155;
}

.rvg-sentence strong {
  color: #1d4ed8;
}

.rvg-prompt {
  margin: 18px 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.rvg-options {
  display: grid;
  gap: 8px;
}

.rvg-option {
  position: relative;
  width: 100%;
  text-align: left;
  padding: 12px 44px 12px 14px;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
  color: #334155;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.rvg-option:hover:not(.is-correct):not(.is-wrong) {
  border-color: #94a3b8;
  background: #f8fafc;
}

/* The answer states carry the whole lesson, so they are deliberately loud: a
   thicker border, a solid tint and a glyph. Colour alone would not survive a
   dimmed phone screen or a colour-blind reader. */
.rvg-option.is-correct,
.rvg-option.is-wrong {
  border-width: 2.5px;
  font-weight: 600;
}

.rvg-option.is-correct::after,
.rvg-option.is-wrong::after {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  color: #fff;
}

.rvg-option.is-correct {
  border-color: #15803d;
  background: #dcfce7;
  color: #14532d;
}

.rvg-option.is-correct::after {
  content: "\2713";
  background: #16a34a;
}

.rvg-option.is-wrong {
  border-color: #b91c1c;
  background: #fee2e2;
  color: #7f1d1d;
}

.rvg-option.is-wrong::after {
  content: "\00D7";
  background: #dc2626;
}

.rvg-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 0;
  font-size: 12.5px;
  color: #64748b;
}

.rvg-link {
  border: 0;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 12.5px;
  color: #64748b;
  text-decoration: underline;
  cursor: pointer;
}

.rvg-link:hover {
  color: #334155;
}

.rvg-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.rvg-btn {
  padding: 11px 20px;
  border-radius: 9px;
  border: 1.5px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.rvg-btn--primary {
  background: #0f172a;
  color: #fff;
}

.rvg-btn--primary:hover {
  background: #1e293b;
}

.rvg-btn--ghost {
  background: #fff;
  border-color: #cbd5e1;
  color: #475569;
}

.rvg-btn--ghost:hover {
  background: #f8fafc;
}

@media (max-width: 520px) {
  .rvg-card {
    padding: 18px;
  }

  .rvg-title {
    font-size: 18px;
  }

  .rvg-word {
    font-size: 19px;
  }

  .rvg-badge {
    margin-left: 0;
  }
}
