.vq {
  --vq-line: #35435b;
  --vq-soft: #bac6d8;
  --vq-text: #f0f3f9;
  --vq-action: #d3ff56;
  color: var(--vq-text);
  margin-block: 1.2rem clamp(3rem, 8vw, 7rem);
}
.vq [hidden] {display: none !important}
.vq-layout {
  display: grid;
  grid-template-columns: minmax(230px, .75fr) minmax(0, 1.25fr);
  border: 1px solid var(--vq-line);
  border-radius: 22px;
  overflow: clip;
  background: #101725;
}
.vq-cover {
  display: grid;
  grid-template-areas: "portrait" "caption";
  grid-template-rows: minmax(0,1fr) auto;
  align-self: start;
  height: clamp(490px,51vw,660px);
  color: #fff;
  background: radial-gradient(ellipse at 63% 28%, #324979, #172441 60%, #101725);
}
.vq-portrait {
  grid-area: portrait;
  display: block;
  position: relative;
  min-height: 0;
  min-width: 0;
}
.vq-portrait picture {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 1;
  pointer-events: none;
}
.vq-cover img {
  position: absolute;
  inset: .85rem .65rem 0;
  width: calc(100% - 1.3rem);
  height: calc(100% - .85rem);
  object-fit: contain;
  object-position: center bottom;
}
.vq-cover-copy {
  grid-area: caption;
  padding: clamp(1.15rem,2.4vw,2rem) clamp(1.3rem,3.8vw,3.4rem);
}
.vq-cover h1, .vq-cover p, .vq-panel p, .vq-panel h2, .vq-panel h3 {margin: 0}
.vq-cover h1 {
  font: 700 clamp(3.1rem,6.6vw,6.4rem)/.87 "Space Grotesk",sans-serif;
  letter-spacing: -.08em; color: #fff; max-width: 7ch;
}
.vq-cover h1 em {color: var(--vq-action); font-style: normal}
.vq-cover p {margin-top: 1rem; max-width: 28ch; font-size: clamp(.95rem,1.35vw,1.14rem); color: #ecf1f8; line-height: 1.42}
.vq-panel {min-width: 0; align-self: start; padding: clamp(1.25rem,3.4vw,3.2rem)}
.vq-tracker {display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .9rem; margin-bottom: 1.45rem}
.vq-tracker span, .vq-number, .vq-match-count {font-size: .79rem; font-weight: 700; color: var(--vq-action); letter-spacing: .035em}
.vq progress {display: block; width: 100%; height: 5px; border: 0; border-radius: 4px; appearance: none; background: #2e394e; color: var(--vq-action); overflow: hidden}
.vq progress::-webkit-progress-bar {background: #2e394e}
.vq progress::-webkit-progress-value {background: var(--vq-action); transition: width .22s}
.vq progress::-moz-progress-bar {background: var(--vq-action)}
.vq-question {padding: 0; margin: 0 0 2.2rem; min-width: 0; border: 0; scroll-margin-top: 140px}
.vq-stepped .vq-question {margin-bottom: 1.2rem}
.vq-question legend, .vq-result h2 {max-width: 100%; padding: 0; font: 700 clamp(1.55rem,2.7vw,2.65rem)/1.08 "Space Grotesk",sans-serif; letter-spacing: -.05em; color: var(--vq-text); scroll-margin-top: 140px}
.vq-question legend {margin-bottom: 1.25rem}
.vq-question .vq-number {display: block; margin-bottom: .45rem}
.vq-stepped .vq-number {position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%)}
.vq-choice {
  display: grid; grid-template-columns: 2rem 1fr 1rem; gap: .7rem; align-items: center;
  position: relative; margin: 0 0 .45rem; padding: .7rem .85rem;
  min-height: 54px; border: 1px solid var(--vq-line); border-radius: .65rem;
  background: #182232; color: var(--vq-text); font-size: clamp(.95rem,1.3vw,1.11rem); line-height: 1.3; cursor: pointer;
}
.vq-choice input {position: absolute; width: 1px; height: 1px; opacity: 0}
.vq-choice:focus-within {outline: 2px solid #fff; outline-offset: 2px}
.vq-letter {display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border: 1px solid #495a73; border-radius: .35rem; font-size: .81rem; color: #c4cfe0; font-family: ui-monospace, monospace}
.vq-tick {visibility: hidden; color: var(--vq-action)}
.vq-choice input:checked ~ .vq-tick {visibility: visible}
.vq-choice input:checked ~ .vq-letter {color: #101725; background: var(--vq-action); border-color: var(--vq-action)}
.vq-choice:has(input:checked) {background: #222f34; border-color: var(--vq-action)}
.vq-pass {background: transparent; color: var(--vq-soft); min-height: 44px}
.vq-pass .vq-letter {border-color: transparent}
.vq-controls, .vq-result-actions {display: flex; flex-wrap: wrap; align-items: center; gap: .8rem}
.vq-controls {justify-content: flex-end}
.vq-forward, .vq-back {font: inherit; font-weight: 700; border-radius: .55rem; padding: .74rem 1.2rem; min-height: 45px; cursor: pointer}
.vq .vq-forward {display: inline-flex; align-items: center; gap: 1rem; color: #142008; background: var(--vq-action); text-decoration: none; border: 1px solid transparent}
.vq-back {margin-right: auto; color: var(--vq-text); background: transparent; border: 1px solid var(--vq-line)}
.vq-result-actions a, .vq-error a {color: var(--vq-action)}
.vq .vq-privacy {margin-top: 1rem; color: var(--vq-soft); font-size: .84rem}
.vq p.vq-error {color: #ffcd8b; margin: .4rem 0 1rem}
.vq-result h2 {margin-bottom: .5rem}
.vq-result > p, .vq-match p:not(.vq-match-count) {color: var(--vq-soft); line-height: 1.45}
.vq-matches {display: grid; gap: .75rem; margin: 1.2rem 0}
.vq-match {display: grid; grid-template-columns: clamp(44px,6vw,72px) 1fr; gap: .85rem; padding: 1rem; border: 1px solid var(--vq-line); border-radius: .7rem; background: #182232; min-width: 0}
.vq-match img {max-width: 100%; height: auto; border-radius: .45rem}
.vq-match h3 {margin: .2rem 0 .35rem; font: 700 clamp(1.15rem,1.8vw,1.6rem)/1.12 "Space Grotesk",sans-serif; letter-spacing: -.03em}
.vq-match h3 a {color: var(--vq-text); text-underline-offset: .15em; text-decoration-color: #8393b0}
.vq-reasons {margin: .6rem 0 0; padding-left: 1rem; color: #c9d4e4; font-size: .87rem}
@media (hover:hover) {
  .vq-choice:hover {border-color: #92a7c7; transform: translateX(2px)}
  .vq-forward:hover {filter: brightness(1.07)}
}
@media (prefers-reduced-motion:no-preference) {
  .vq-choice {transition: background .16s, border-color .16s, transform .16s}
  .vq-stepped .vq-question:not([hidden]), .vq-stepped .vq-result:not([hidden]) {animation: vq-in .22s ease-out}
  @keyframes vq-in {from {opacity: .6; transform: translateY(3px)} to {opacity: 1; transform: none}}
}
@media (max-width:720px) {
  .vq {margin-top: .55rem}
  .vq-layout {grid-template-columns: 1fr; border-radius: 15px}
  .vq-cover {
    grid-template-areas: "caption portrait";
    grid-template-rows: auto;
    grid-template-columns: minmax(0,1fr) clamp(90px,31%,175px);
    height: auto;
    min-height: clamp(146px,26vw,184px);
  }
  .vq-cover img {inset: .4rem .3rem 0; width: calc(100% - .6rem); height: calc(100% - .4rem)}
  .vq-cover-copy {align-self: center; padding: 1.05rem 0 1.05rem 1.2rem}
  .vq-cover h1 {font-size: clamp(2.2rem,7.4vw,3.2rem); max-width: 12ch}
  .vq-cover p {font-size: .86rem; max-width: 24ch; margin-top: .55rem}
  .vq-panel {padding: 1rem}
  .vq-tracker {margin-bottom: 1.05rem}
  .vq-choice {min-height: 50px; padding: .55rem .65rem; gap: .5rem}
  .vq-pass {min-height: 44px}
}
@media (prefers-reduced-motion:reduce) {
  .vq-choice:hover {transform: none}
  .vq progress::-webkit-progress-value {transition: none}
}

.vq-mode-link { display:inline-block; margin-block-start:.7rem; font-weight:700; }
.vq-match-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.65rem 1rem; margin-block-start:.85rem; }
.vq-match-actions form { margin:0; }
