.vt { padding: 24px; }
.vt [hidden] { display: none !important; }

/* friend banner */
.vt-friend { background: #f0f1fb; border: 1px solid #d6d8f2; border-radius: 12px; padding: 12px 16px; margin-bottom: 24px; font-size: 15px; }
.vt-friend strong { color: var(--lapis); }

/* quiz */
.vt-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.vt-meta span:first-child { font-weight: 600; color: var(--ink); }
.vt-bar { height: 8px; background: var(--stone); border-radius: 8px; overflow: hidden; }
.vt-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--lapis), var(--gold)); transition: width .25s ease; }
.vt-ask { margin: 24px 0 4px; font-size: 14px; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; }
.vt-q { font-family: var(--serif); font-weight: 700; font-size: 28px; line-height: 1.25; margin: 0 0 24px; min-height: 2.5em; }
.vt-scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.vt-scale button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 72px; padding: 8px 4px;
  background: var(--card); color: var(--ink);
  border: 2px solid var(--line); border-radius: 12px;
  font: 600 14px/1.2 var(--sans); cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
}
.vt-scale button b { font-size: 18px; color: var(--lapis); }
.vt-scale button:hover { border-color: var(--lapis); background: #f0f1fb; }
.vt-scale button:active { transform: scale(.97); }
.vt-scale button.is-on { border-color: var(--lapis); background: var(--lapis); color: #fff; }
.vt-scale button.is-on b { color: #fff; }
.vt-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.vt-link { background: none; border: 0; padding: 8px 0; font: 600 14px var(--sans); color: var(--lapis); cursor: pointer; }
.vt-link:disabled { color: var(--line); cursor: default; }
.vt-hint { font-size: 12px; color: var(--muted); }

/* result card */
.vt-card { text-align: center; padding: 8px 0 24px; border-bottom: 1px solid var(--line); }
.vt-kicker { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.vt-name { font-family: var(--serif); font-size: 48px; font-weight: 700; line-height: 1.1; margin: 8px 0 4px; color: var(--vc); }
.vt-arch { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 22px; margin: 0 0 8px; }
.vt-pct { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.vt-desc { max-width: 60ch; margin: 0 auto 16px; text-align: left; }
.vt-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; text-align: left; margin: 16px 0 0; }
.vt-trio div { background: var(--stone); border-radius: 12px; padding: 12px 16px; }
.vt-trio h4 { margin: 0 0 4px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.vt-trio ul { margin: 0; padding-left: 18px; }
.vt-trio p, .vt-trio li { margin: 0; font-size: 15px; }

/* lancet windows */
.vt-windows { margin: 24px auto 8px; max-width: 520px; }
.vt-windows svg { display: block; width: 100%; height: auto; }

/* score list */
.vt-scores { list-style: none; padding: 0; margin: 8px 0 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.vt-scores li { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center; font-size: 15px; }
.vt-scores .bar { grid-column: 1 / -1; height: 6px; background: var(--stone); border-radius: 6px; overflow: hidden; }
.vt-scores .bar i { display: block; height: 100%; background: var(--vc); }
.vt-scores em { font-style: normal; color: var(--muted); font-size: 12px; margin-left: 4px; }

/* compare */
.vt-compare { background: #f0f1fb; border-radius: 12px; padding: 16px; margin-bottom: 24px; }
.vt-compare h4 { margin: 0 0 8px; font-family: var(--serif); font-size: 22px; }
.vt-compare table { width: 100%; border-collapse: collapse; font-size: 15px; }
.vt-compare td, .vt-compare th { padding: 4px 8px; text-align: left; border-bottom: 1px solid #d6d8f2; }
.vt-compare th { font-size: 12px; color: var(--muted); }

/* actions */
.vt-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.vt-btn { min-height: 48px; padding: 12px 16px; border-radius: 12px; border: 2px solid var(--lapis); background: var(--card); color: var(--lapis); font: 600 15px var(--sans); cursor: pointer; }
.vt-btn:hover { background: #f0f1fb; }
.vt-primary { background: var(--lapis); color: #fff; }
.vt-primary:hover { background: var(--lapis-dark); }
.vt-ghost { border-color: var(--line); color: var(--muted); }
.vt-msg { min-height: 1.6em; margin: 12px 0 0; text-align: center; font-size: 14px; color: var(--lapis); font-weight: 600; }
.vt-note { margin: 4px 0 0; text-align: center; font-size: 12px; color: var(--muted); }

@media (max-width: 640px) {
  .vt { padding: 16px; }
  .vt-q { font-size: 22px; }
  .vt-scale { grid-template-columns: 1fr; }
  .vt-scale button { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 48px; padding: 8px 16px; }
  .vt-hint { display: none; }
  .vt-name { font-size: 36px; }
  .vt-trio, .vt-scores, .vt-actions { grid-template-columns: 1fr; }
}
