.vdl {
  --vdl-bg: #08060e;
  --vdl-panel: #100b19;
  --vdl-panel-2: #171022;
  --vdl-gold: #e9bd68;
  --vdl-gold-soft: #f5dca3;
  --vdl-violet: #a78bfa;
  --vdl-ink: #f9f4e9;
  --vdl-muted: #c6bfd2;
  --vdl-line: rgba(233, 189, 104, .25);
  --vdl-good: #83deb4;
  --vdl-bad: #ef8b98;
  color: var(--vdl-ink);
  margin: 2rem auto 0;
  max-width: 1180px;
  font-family: inherit;
}

.vdl *, .vdl *::before, .vdl *::after { box-sizing: border-box; }
.vdl [hidden] { display: none !important; }
.vdl .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.vdl-hero {
  position: relative;
  min-height: clamp(510px, 62vw, 690px);
  overflow: hidden;
  border: 1px solid rgba(233, 189, 104, .35);
  border-radius: 28px;
  background: #090812;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .025);
  isolation: isolate;
}

.vdl-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.vdl-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 84% 20%, rgba(227, 175, 72, .08), transparent 29%),
    linear-gradient(90deg, rgba(4, 3, 10, .97) 0%, rgba(4, 3, 10, .88) 33%, rgba(4, 3, 10, .23) 62%, rgba(4, 3, 10, .05) 100%),
    linear-gradient(0deg, rgba(4, 3, 10, .52), transparent 35%);
}

.vdl-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: inherit;
  width: min(54%, 590px);
  padding: clamp(3rem, 6vw, 6.5rem);
}

.vdl-kicker,
.vdl-stage-label {
  display: inline-block;
  color: var(--vdl-gold);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.vdl-hero h2,
.vdl-section-head h2,
.vdl-place,
.vdl-result h2 {
  margin: .55rem 0 1rem;
  color: #fffaf0;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
  line-height: 1.04;
}

.vdl-hero h2 { max-width: 570px; font-size: clamp(2.65rem, 5.3vw, 5.7rem); }
.vdl-hero-copy > p { max-width: 510px; margin: 0; color: #ded6e6; font-size: clamp(1rem, 1.35vw, 1.16rem); line-height: 1.72; }

.vdl-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.65rem;
}

.vdl-hero-points span {
  padding: .54rem .78rem;
  border: 1px solid rgba(233, 189, 104, .28);
  border-radius: 999px;
  background: rgba(8, 6, 14, .7);
  color: #f1dfb9;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  backdrop-filter: blur(8px);
}

.vdl-game {
  position: relative;
  margin-top: 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(233, 189, 104, .26);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% -10%, rgba(92, 52, 133, .25), transparent 42%),
    radial-gradient(circle at 95% 90%, rgba(196, 133, 46, .08), transparent 34%),
    linear-gradient(145deg, #100a18 0%, #07060c 65%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .4);
}

.vdl-game::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  background-image: radial-gradient(circle, rgba(255,255,255,.85) 0 1px, transparent 1.2px);
  background-size: 43px 43px;
  mask-image: linear-gradient(to bottom, #000, transparent 35%);
}

.vdl-start,
.vdl-play-inner,
.vdl-result { position: relative; z-index: 1; padding: clamp(2rem, 5vw, 4.8rem); }

.vdl-section-head { max-width: 720px; margin: 0 auto 2rem; text-align: center; }
.vdl-section-head h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.vdl-section-head p { margin: 0; color: var(--vdl-muted); font-size: 1.03rem; line-height: 1.7; }

.vdl-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.vdl-mode {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: .9rem;
  min-height: 178px;
  padding: 1.2rem 1.1rem;
  border: 1px solid rgba(190, 168, 217, .22);
  border-radius: 18px;
  background: rgba(9, 7, 14, .76);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.vdl-mode:hover { transform: translateY(-3px); border-color: rgba(233, 189, 104, .52); }
.vdl-mode.is-selected { border-color: var(--vdl-gold); background: linear-gradient(145deg, rgba(64, 40, 76, .76), rgba(13, 9, 20, .92)); box-shadow: 0 12px 35px rgba(0,0,0,.24), inset 0 0 30px rgba(233,189,104,.04); }
.vdl-mode input { position: absolute; opacity: 0; pointer-events: none; }
.vdl-mode:focus-within { outline: 2px solid #fff; outline-offset: 3px; }

.vdl-mode-number {
  display: grid;
  place-items: center;
  align-self: start;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(233, 189, 104, .38);
  border-radius: 50%;
  color: var(--vdl-gold-soft);
  font-family: Georgia, serif;
  font-size: 1.1rem;
}

.vdl-mode-copy { display: flex; min-width: 0; flex-direction: column; }
.vdl-mode-copy small { color: var(--vdl-gold); font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.vdl-mode-copy strong { margin-top: .35rem; color: #fffaf0; font-family: Georgia, serif; font-size: 1.28rem; }
.vdl-mode-copy em { margin-top: .45rem; color: var(--vdl-muted); font-size: .88rem; font-style: normal; line-height: 1.48; }
.vdl-mode-copy b { margin-top: auto; padding-top: .6rem; color: #9e91b4; font-size: .7rem; font-weight: 600; }
.vdl-mode > i { position: absolute; right: 1rem; bottom: 1rem; width: 17px; height: 17px; border: 1px solid #675d74; border-radius: 50%; }
.vdl-mode.is-selected > i { border: 5px solid var(--vdl-gold); background: #1a1124; }

.vdl-rules {
  margin-top: 1rem;
  padding: 1.3rem 1.5rem;
  border: 1px solid rgba(167, 139, 250, .16);
  border-radius: 18px;
  background: rgba(7, 5, 11, .52);
}

.vdl-rules h3 { margin: 0 0 .9rem; color: var(--vdl-gold-soft); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.vdl-rules ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.vdl-rules li { display: flex; align-items: flex-start; gap: .65rem; color: #cec7d6; font-size: .88rem; line-height: 1.5; }
.vdl-rules li b { flex: 0 0 auto; color: var(--vdl-gold); }

.vdl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 52px;
  padding: .85rem 1.5rem;
  border: 1px solid #e2b65f;
  border-radius: 999px;
  background: linear-gradient(135deg, #efd07f, #b87928);
  color: #130c08;
  font: inherit;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(174, 111, 30, .2);
  transition: transform .18s ease, filter .18s ease;
}

.vdl-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.vdl-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.vdl-btn.is-secondary { border-color: rgba(233, 189, 104, .42); background: rgba(20, 13, 27, .82); color: var(--vdl-gold-soft); box-shadow: none; }
.vdl-begin { display: flex; width: min(360px, 100%); margin: 1.45rem auto 0; }

.vdl-loading {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 410px;
  padding: 4rem 1.5rem;
  text-align: center;
}

.vdl-loading strong { color: var(--vdl-gold-soft); font-family: Georgia, serif; font-size: 1.4rem; font-weight: 500; }
.vdl-loading-path { display: flex; align-items: center; gap: 13px; margin-bottom: 1.6rem; }
.vdl-loading-path i { width: 12px; height: 12px; border: 1px solid var(--vdl-gold); border-radius: 50%; background: rgba(233,189,104,.1); animation: vdl-pulse 1.25s infinite ease-in-out; }
.vdl-loading-path i:nth-child(2) { animation-delay: .12s; }
.vdl-loading-path i:nth-child(3) { animation-delay: .24s; }
.vdl-loading-path i:nth-child(4) { animation-delay: .36s; }
.vdl-loading-path i:nth-child(5) { animation-delay: .48s; }

@keyframes vdl-pulse { 0%, 100% { transform: scale(.75); background: transparent; box-shadow: none; } 50% { transform: scale(1.25); background: var(--vdl-gold); box-shadow: 0 0 18px rgba(233,189,104,.7); } }

.vdl-scoreboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid rgba(233, 189, 104, .24);
  border-radius: 16px;
  background: rgba(5, 4, 9, .7);
}

.vdl-scoreboard p { display: flex; align-items: center; justify-content: center; gap: .65rem; min-height: 72px; margin: 0; padding: .8rem; border-right: 1px solid rgba(233,189,104,.14); }
.vdl-scoreboard p:last-child { border: 0; }
.vdl-scoreboard small { color: #9f96aa; font-size: .67rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.vdl-scoreboard strong { color: #fff8e9; font-family: Georgia, serif; font-size: 1.28rem; font-weight: 500; }
.vdl-lights { display: flex; gap: .33rem; }
.vdl-lights i { display: block; width: 11px; height: 18px; border-radius: 50% 50% 45% 45%; transform: rotate(45deg); }
.vdl-lights i.is-lit { background: #f7ce76; box-shadow: 0 0 12px #eaaa39; }
.vdl-lights i.is-out { border: 1px solid #4c4552; background: #17121b; box-shadow: none; }

.vdl-path { display: flex; align-items: center; gap: .55rem; margin: 1.25rem 0 1.65rem; overflow-x: auto; padding: .35rem .2rem .65rem; scrollbar-color: rgba(233,189,104,.38) transparent; }
.vdl-path-edge { display: flex; flex: 0 0 auto; align-items: center; gap: .45rem; }
.vdl-path-edge img { width: 32px; height: 54px; border: 1px solid rgba(233,189,104,.55); border-radius: 4px; object-fit: contain; background: #000; }
.vdl-path-edge b { color: #bfb5c8; font-size: .68rem; white-space: nowrap; }
.vdl-path-line { flex: 1 1 30px; min-width: 16px; height: 1px; background: linear-gradient(90deg, rgba(233,189,104,.22), rgba(233,189,104,.62)); }
.vdl-path-nodes { display: flex; flex: 0 0 auto; align-items: center; gap: .45rem; }
.vdl-path-node { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #4e445a; border-radius: 50%; background: #0b0810; color: #81778d; font-size: .68rem; font-weight: 800; transition: .25s ease; }
.vdl-path-node.is-current { border-color: var(--vdl-gold); color: #160e0a; background: var(--vdl-gold); box-shadow: 0 0 18px rgba(233,189,104,.35); transform: scale(1.13); }
.vdl-path-node.is-done { border-color: var(--vdl-good); color: #07150f; background: var(--vdl-good); }
.vdl-path-node.is-missed { border-color: var(--vdl-bad); color: #1a090b; background: var(--vdl-bad); }

.vdl-encounter {
  padding: clamp(1.25rem, 3vw, 2.2rem);
  border: 1px solid rgba(184, 157, 211, .2);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(27, 17, 37, .92), rgba(8, 6, 12, .96));
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
}

.vdl-encounter.is-visible { opacity: 1; transform: none; }
.vdl-encounter > header { max-width: 780px; margin: 0 auto 1.6rem; text-align: center; }
.vdl-place { font-size: clamp(1.8rem, 3.5vw, 3.1rem); }
.vdl-scene { margin: 0 auto; color: #d5cddd; font-size: clamp(.96rem, 1.5vw, 1.08rem); line-height: 1.7; }
.vdl-question { display: block; margin-top: 1rem; color: var(--vdl-gold-soft); font-size: .86rem; }

.vdl-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); justify-content: center; gap: clamp(.7rem, 2.2vw, 1.4rem); }
.vdl-choice { min-width: 0; padding: .55rem .55rem .75rem; border: 1px solid rgba(233,189,104,.32); border-radius: 15px; background: #09070d; color: #fff; font: inherit; cursor: pointer; box-shadow: 0 15px 32px rgba(0,0,0,.28); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, opacity .2s ease; }
.vdl-choice:hover:not(:disabled) { transform: translateY(-7px); border-color: var(--vdl-gold); box-shadow: 0 21px 42px rgba(0,0,0,.42), 0 0 24px rgba(233,189,104,.08); }
.vdl-choice:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.vdl-choice:disabled { cursor: default; }
.vdl-choice-image { position: relative; display: block; width: 100%; overflow: hidden; border-radius: 10px; background: #000; aspect-ratio: 10 / 17; }
.vdl-choice-image img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.vdl-choice-mark { position: absolute; top: .5rem; right: .5rem; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; opacity: 0; color: #07100c; font-size: 1rem; font-style: normal; font-weight: 900; }
.vdl-choice > strong { display: block; margin-top: .7rem; color: #fff7e6; font-family: Georgia, serif; font-size: 1.02rem; font-weight: 600; line-height: 1.15; }
.vdl-choice > small { display: block; min-height: 2.3em; margin-top: .35rem; color: #a99fb2; font-size: .68rem; line-height: 1.3; }
.vdl-choice.is-correct { border-color: var(--vdl-good); box-shadow: 0 0 0 2px rgba(131,222,180,.12), 0 18px 38px rgba(0,0,0,.4); }
.vdl-choice.is-correct .vdl-choice-mark { opacity: 1; background: var(--vdl-good); }
.vdl-choice.is-correct .vdl-choice-mark::before { content: '✓'; }
.vdl-choice.is-wrong { border-color: var(--vdl-bad); opacity: .72; }
.vdl-choice.is-wrong .vdl-choice-mark { opacity: 1; background: var(--vdl-bad); }
.vdl-choice.is-wrong .vdl-choice-mark::before { content: '×'; }

.vdl-feedback {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  max-width: 850px;
  margin: 1.3rem auto 0;
  padding: 1rem;
  border: 1px solid rgba(233,189,104,.22);
  border-radius: 16px;
  background: rgba(4,3,7,.8);
}

.vdl-feedback.is-correct { border-color: rgba(131,222,180,.38); }
.vdl-feedback.is-wrong { border-color: rgba(239,139,152,.36); }
.vdl-feedback-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #07100c; background: var(--vdl-good); font-size: 1.35rem; font-weight: 900; }
.vdl-feedback.is-wrong .vdl-feedback-mark { background: var(--vdl-bad); }
.vdl-feedback-title { color: #fff5df; font-size: .96rem; }
.vdl-feedback-text { margin: .25rem 0 0; color: #c9c1d1; font-size: .85rem; line-height: 1.5; }
.vdl-next { min-height: 44px; padding: .7rem 1.15rem; font-size: .72rem; }

.vdl-result { min-height: 560px; text-align: center; }
.vdl-result-gate { position: relative; display: grid; place-items: center; width: 112px; height: 112px; margin: 0 auto 1.2rem; border: 1px solid rgba(233,189,104,.58); border-radius: 50%; box-shadow: 0 0 45px rgba(233,189,104,.17), inset 0 0 30px rgba(233,189,104,.08); }
.vdl-result-gate::before, .vdl-result-gate::after { content: ''; position: absolute; border: 1px solid rgba(167,139,250,.38); border-radius: 50%; }
.vdl-result-gate::before { inset: 10px; }
.vdl-result-gate::after { inset: 23px; }
.vdl-result-gate i { width: 16px; height: 16px; border-radius: 50%; background: var(--vdl-gold); box-shadow: 0 0 25px var(--vdl-gold); }
.vdl-result h2 { font-size: clamp(2.2rem, 4.8vw, 4.3rem); }
.vdl-result-score { display: block; color: var(--vdl-gold); font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 500; }
.vdl-record-badge { display: inline-block; margin-top: .75rem; padding: .4rem .7rem; border: 1px solid var(--vdl-gold); border-radius: 999px; color: var(--vdl-gold-soft); font-size: .68rem; font-weight: 900; letter-spacing: .12em; }
.vdl-result-rank { margin: 1.5rem 0 .4rem; color: #fff4dd; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 500; }
.vdl-result-text { max-width: 700px; margin: 0 auto; color: var(--vdl-muted); line-height: 1.65; }
.vdl-result-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.4rem; }
.vdl-result-stats span { padding: .55rem .8rem; border: 1px solid rgba(190,168,217,.22); border-radius: 999px; color: #d8d0de; font-size: .8rem; }
.vdl-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 1.6rem; }
.vdl-share-status { min-height: 1.4em; color: var(--vdl-gold-soft); font-size: .82rem; }

.vdl-disclaimer { margin: 1rem auto 0; color: #82798c; font-size: .72rem; line-height: 1.5; text-align: center; }

@media (max-width: 820px) {
  .vdl-modes { grid-template-columns: 1fr; }
  .vdl-mode { min-height: 130px; }
  .vdl-rules ol { grid-template-columns: 1fr; gap: .65rem; }
  .vdl-scoreboard { grid-template-columns: repeat(2, 1fr); }
  .vdl-scoreboard p:nth-child(2) { border-right: 0; }
  .vdl-scoreboard p:nth-child(-n+2) { border-bottom: 1px solid rgba(233,189,104,.14); }
  .vdl-feedback { grid-template-columns: auto 1fr; }
  .vdl-feedback .vdl-next { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 620px) {
  .vdl { margin-top: 1rem; }
  .vdl-hero { min-height: 610px; border-radius: 20px; }
  .vdl-hero > img { object-position: 67% center; }
  .vdl-hero-veil { background: linear-gradient(0deg, rgba(4,3,10,.98) 0%, rgba(4,3,10,.88) 43%, rgba(4,3,10,.15) 76%), linear-gradient(90deg, rgba(4,3,10,.4), transparent); }
  .vdl-hero-copy { justify-content: flex-end; width: 100%; padding: 2rem 1.25rem 2.2rem; }
  .vdl-hero h2 { max-width: 390px; font-size: clamp(2.45rem, 12vw, 3.5rem); }
  .vdl-hero-copy > p { font-size: .95rem; line-height: 1.55; }
  .vdl-hero-points { gap: .38rem; margin-top: 1.1rem; }
  .vdl-hero-points span { padding: .42rem .58rem; font-size: .68rem; }
  .vdl-game { border-radius: 20px; }
  .vdl-start, .vdl-play-inner, .vdl-result { padding: 1.4rem .7rem 2rem; }
  .vdl-section-head { margin-bottom: 1.35rem; padding: 0 .45rem; }
  .vdl-section-head h2 { font-size: 2.05rem; }
  .vdl-mode { grid-template-columns: 48px 1fr; min-height: 126px; padding: 1rem .85rem; }
  .vdl-mode-number { width: 44px; height: 44px; }
  .vdl-rules { padding: 1rem; }
  .vdl-scoreboard p { min-height: 59px; gap: .4rem; padding: .5rem; }
  .vdl-scoreboard strong { font-size: 1.08rem; }
  .vdl-scoreboard small { font-size: .58rem; }
  .vdl-path { margin: .9rem 0 1.1rem; }
  .vdl-path-edge b { display: none; }
  .vdl-path-edge img { width: 27px; height: 46px; }
  .vdl-path-node { width: 27px; height: 27px; }
  .vdl-encounter { padding: 1.15rem .55rem; border-radius: 16px; }
  .vdl-encounter > header { margin-bottom: 1.15rem; padding: 0 .4rem; }
  .vdl-place { font-size: 1.9rem; }
  .vdl-scene { font-size: .92rem; line-height: 1.55; }
  .vdl-question { font-size: .76rem; }
  .vdl-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .38rem; }
  .vdl-choice { padding: .28rem .28rem .55rem; border-radius: 10px; }
  .vdl-choice-image { border-radius: 7px; }
  .vdl-choice > strong { margin-top: .48rem; font-size: clamp(.68rem, 3vw, .85rem); line-height: 1.12; }
  .vdl-choice > small { display: none; }
  .vdl-choice-mark { top: .28rem; right: .28rem; width: 24px; height: 24px; font-size: .8rem; }
  .vdl-feedback { grid-template-columns: 36px 1fr; gap: .7rem; padding: .8rem; }
  .vdl-feedback-mark { width: 36px; height: 36px; }
  .vdl-feedback-title { font-size: .86rem; }
  .vdl-feedback-text { font-size: .78rem; }
  .vdl-actions { flex-direction: column; }
  .vdl-actions .vdl-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .vdl *, .vdl *::before, .vdl *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
