.vmg-app {
  --mp: #a889b4; --ms: #6b4f75; --ma: #c9a9d3;
  --vmg-line: rgba(255, 255, 255, .14); --vmg-muted: rgba(255, 255, 255, .72);
  max-width: 1040px;
  margin: auto;
  padding: 24px 0 56px;
  color: #f8fafc;
  font-family: var(--font-body, "DM Sans", sans-serif);
}
.vmg-app [hidden] { display: none !important; }
.vmg-app *, .vmg-app *::before, .vmg-app *::after { box-sizing: border-box; }
.vmg-app :focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.vmg-back { color: #c9a9d3; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.vmg-shell {
  margin-top: 20px;
  padding: clamp(18px, 3.5vw, 34px);
  border: 1px solid var(--vmg-line);
  border-radius: 26px;
  background: radial-gradient(900px 420px at 12% -10%, color-mix(in srgb, var(--mp) 12%, transparent), transparent 62%), rgba(255, 255, 255, .045);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
  transition: border-color .5s;
}
.vmg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.vmg-titlewrap { display: flex; gap: 14px; align-items: center; }
.vmg-gicon { display: grid; place-items: center; width: 58px; height: 58px; flex: none; border-radius: 18px; font-size: 32px; background: linear-gradient(135deg, color-mix(in srgb, var(--mp) 35%, transparent), color-mix(in srgb, var(--ms) 35%, transparent)); border: 1px solid var(--vmg-line); }
.vmg-eyebrow { margin: 0 0 4px; color: var(--mp); font: 800 .75rem var(--font-display, Syne, sans-serif); letter-spacing: .14em; }
.vmg-app h1 { margin: 0 0 2px; font: 800 1.9rem/1.1 var(--font-display, Syne, sans-serif); color: #fff; }
.vmg-sub { margin: 0; color: var(--vmg-muted); }
.vmg-hud { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.vmg-pill { border: 1px solid var(--vmg-line); background: rgba(0, 0, 0, .25); border-radius: 999px; padding: 7px 14px; font: 700 .82rem var(--font-display, Syne, sans-serif); white-space: nowrap; }
.vmg-pill b { font-size: .95rem; font-variant-numeric: tabular-nums; }
.vmg-pips { display: inline-flex; gap: 5px; vertical-align: middle; margin-left: 8px; }
.vmg-pips i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.vmg-pips i.on { background: linear-gradient(135deg, var(--mp), var(--ms)); box-shadow: 0 0 10px var(--mp); }
.vmg-pips i.now { outline: 2px solid var(--mp); outline-offset: 2px; }

.vmg-stage { position: relative; height: 210px; border-radius: 22px; border: 1px solid var(--vmg-line); overflow: hidden; background: radial-gradient(420px 220px at 50% 100%, color-mix(in srgb, var(--mp) 22%, transparent), transparent 70%), rgba(0, 0, 0, .28); display: grid; place-items: center; transition: background .6s; }
.vmg-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.vmg-stagectl { position: relative; z-index: 1; display: grid; justify-items: center; gap: 10px; text-align: center; }
.vmg-app button.vmg-playbtn { position: relative; width: 84px; height: 84px; padding: 0; border: 0; border-radius: 50%; font-size: 30px; color: #0a0a14; background: linear-gradient(135deg, var(--mp), var(--ms)); box-shadow: 0 10px 34px color-mix(in srgb, var(--mp) 45%, transparent); display: grid; place-items: center; cursor: pointer; transition: transform .15s; }
.vmg-app button.vmg-playbtn::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--mp); opacity: 0; transform: scale(var(--ring, 1)); }
.vmg-stage[data-phase=playing] .vmg-playbtn::before { opacity: .55; }
.vmg-app button.vmg-playbtn:hover:not(:disabled) { transform: scale(1.05); }
.vmg-app button.vmg-playbtn:disabled { cursor: default; filter: saturate(.8); }
.vmg-playlabel { font: 700 .95rem var(--font-display, Syne, sans-serif); text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.vmg-app button.vmg-replay { min-height: 38px; padding: 5px 16px; border-radius: 999px; border: 1px solid var(--vmg-line); background: rgba(0, 0, 0, .4); color: #fff; font: 700 .8rem var(--font-display, Syne, sans-serif); cursor: pointer; }
.vmg-app button.vmg-replay:hover { border-color: var(--mp); }
.vmg-eq { display: none; gap: 3px; align-items: flex-end; height: 22px; }
.vmg-stage[data-phase=playing] .vmg-eq { display: inline-flex; }
.vmg-eq i { width: 4px; background: #0a0a14; border-radius: 2px; animation: vmgEq .7s ease-in-out infinite; }
.vmg-eq i:nth-child(2) { animation-delay: -.2s; } .vmg-eq i:nth-child(3) { animation-delay: -.4s; } .vmg-eq i:nth-child(4) { animation-delay: -.1s; }
@keyframes vmgEq { 0%, 100% { height: 5px; } 50% { height: 22px; } }

.vmg-status { margin: 14px 0 4px; padding: 12px 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--mp) 40%, transparent); background: color-mix(in srgb, var(--mp) 9%, transparent); min-height: 48px; line-height: 1.5; }
.vmg-status.is-err { border-color: #ff6b6b; background: rgba(255, 107, 107, .1); }

.vmg-timeline { position: relative; margin: 16px 0 8px; padding: 0 44px 0 14px; }
.vmg-tl { position: relative; height: 104px; }
.vmg-track { position: absolute; left: 0; right: 0; top: 12px; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.vmg-track > span { position: absolute; top: 0; bottom: 0; background: rgba(255, 255, 255, .06); }
.vmg-track > span:nth-child(2) { background: rgba(255, 255, 255, .12); }
.vmg-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--mp), var(--ms)); }
.vmg-playhead { position: absolute; top: 8px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #fff; left: 0; box-shadow: 0 0 0 4px color-mix(in srgb, var(--mp) 45%, transparent), 0 0 18px var(--mp); }
.vmg-node { position: absolute; top: 0; transform: translateX(-50%); display: grid; justify-items: center; font-size: .75rem; opacity: .62; transition: opacity .3s; }
.vmg-node i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--vmg-line); background: #141428; display: grid; place-items: center; font: 800 .7rem var(--font-display, Syne, sans-serif); margin-bottom: 2px; position: relative; }
.vmg-node b { white-space: nowrap; margin-top: 24px; font-weight: 700; }
.vmg-node em { white-space: nowrap; font-style: normal; color: var(--vmg-muted); font-size: .7rem; }
.vmg-node.done { opacity: .85; }
.vmg-node.done i { background: linear-gradient(135deg, var(--mp), var(--ms)); border-color: transparent; color: #0a0a14; }
.vmg-node.cur { opacity: 1; }
.vmg-node.cur i { border-color: var(--mp); box-shadow: 0 0 16px color-mix(in srgb, var(--mp) 70%, transparent); }
.vmg-node.ping i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--mp); animation: vmgPing .8s ease-out forwards; }
@keyframes vmgPing { from { opacity: .9; transform: scale(.8); } to { opacity: 0; transform: scale(2); } }
.vmg-readout { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--vmg-muted); font-size: .9rem; margin-top: 6px; }
.vmg-readout b { color: #fff; font-variant-numeric: tabular-nums; }
.vmg-pot { color: #fff; font-weight: 700; }

.vmg-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.vmg-app button.vmg-ans { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 68px; padding: 10px 14px; border-radius: 18px; text-align: left; border: 1px solid var(--vmg-line); border-left: 5px solid var(--c); background: linear-gradient(120deg, color-mix(in srgb, var(--c) 22%, transparent), color-mix(in srgb, var(--c2) 8%, transparent)), rgba(255, 255, 255, .04); color: #fff; font: 700 1.05rem var(--font-display, Syne, sans-serif); cursor: pointer; transition: transform .15s, opacity .25s, box-shadow .3s; }
.vmg-chip { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: 24px; background: linear-gradient(135deg, var(--c), var(--c2)); flex: none; }
.vmg-key { margin-left: auto; font-size: .75rem; color: var(--vmg-muted); border: 1px solid var(--vmg-line); border-radius: 6px; padding: 1px 7px; }
.vmg-app button.vmg-ans[aria-disabled=true] { opacity: .5; cursor: not-allowed; }
.vmg-app button.vmg-ans:not([aria-disabled=true]):hover { transform: translateY(-2px); box-shadow: 0 10px 26px color-mix(in srgb, var(--c) 35%, transparent); }
.vmg-answers.is-unlock .vmg-ans:not(.is-wrong) { animation: vmgIn .35s both; }
@keyframes vmgIn { from { opacity: .4; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.vmg-app button.vmg-ans.is-wrong { opacity: .3; text-decoration: line-through; }
.vmg-app button.vmg-ans.is-right { opacity: 1; box-shadow: 0 0 0 2px var(--c), 0 0 36px color-mix(in srgb, var(--c) 55%, transparent); }
.vmg-app button.vmg-ans.is-missed { opacity: .35; }

.vmg-result { margin-top: 16px; padding: 18px; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--mp) 55%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--mp) 16%, transparent), color-mix(in srgb, var(--ms) 10%, transparent)); animation: vmgIn .45s both; }
.vmg-result h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 4px; font: 800 1.35rem var(--font-display, Syne, sans-serif); color: #fff; }
.vmg-big { font-size: 2rem; }
.vmg-pts { margin-left: auto; font: 800 1.75rem var(--font-display, Syne, sans-serif); color: var(--mp); }
.vmg-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.vmg-chips span { border: 1px solid var(--vmg-line); border-radius: 999px; padding: 4px 12px; font-size: .82rem; background: rgba(0, 0, 0, .22); }
.vmg-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.vmg-app button.vmg-btn { min-height: 46px; padding: 10px 24px; border-radius: 999px; border: 0; font: 800 .95rem var(--font-display, Syne, sans-serif); color: #0a0a14; background: linear-gradient(135deg, var(--mp), var(--ms)); box-shadow: 0 8px 26px color-mix(in srgb, var(--mp) 35%, transparent); cursor: pointer; }
.vmg-app a.vmg-quiet { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--vmg-line); background: rgba(255, 255, 255, .05); color: #fff; font: 700 .85rem var(--font-display, Syne, sans-serif); text-decoration: none; }
.vmg-recap { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 14px; }
.vmg-recap article { padding: 14px; border-radius: 18px; border: 1px solid var(--vmg-line); background: rgba(0, 0, 0, .22); }
.vmg-recap h3 { margin: 0 0 2px; font: 800 1.05rem var(--font-display, Syne, sans-serif); color: #fff; }
.vmg-total { margin: 0; font: 800 2.5rem var(--font-display, Syne, sans-serif); }

@media (max-width: 700px) {
  .vmg-head { flex-direction: column; }
  .vmg-hud { justify-content: flex-start; }
  .vmg-app h1 { font-size: 1.35rem; }
  .vmg-gicon { width: 46px; height: 46px; font-size: 25px; }
  .vmg-stage { height: 184px; }
  .vmg-app button.vmg-playbtn { width: 60px; height: 60px; font-size: 22px; }
  .vmg-status { min-height: 0; padding: 8px 12px; margin: 10px 0 2px; }
  .vmg-timeline { padding: 0 30px 0 12px; margin: 10px 0 4px; }
  .vmg-answers { gap: 10px; }
  .vmg-app button.vmg-ans { min-height: 64px; padding: 8px 10px; font-size: .95rem; gap: 8px; }
  .vmg-chip { width: 38px; height: 38px; font-size: 21px; }
  .vmg-key { display: none; }
  .vmg-recap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .vmg-app *, .vmg-app *::before, .vmg-app *::after { animation: none !important; transition: none !important; }
}
.vmg-back, .vmg-back:hover, .vmg-back:focus { text-decoration: none !important; }
.vmg-intro { max-width: 640px; margin: 0 auto; }
.vmg-intro-panel { margin: 0 0 16px; padding: clamp(18px, 4vw, 28px); border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; background: radial-gradient(520px 220px at 10% -20%, rgba(181, 126, 220, .24), transparent 70%), rgba(255, 255, 255, .06); color: #f8fafc; text-align: center; }
.vmg-intro-panel .vmg-kicker { margin: 0 0 8px; color: #dcc3f1; font: 800 14px "DM Sans", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.vmg-intro-panel h2 { margin: 0 0 10px; color: #fff; font: 800 clamp(26px, 5vw, 36px)/1.15 "DM Sans", sans-serif; }
.vmg-intro-panel .vmg-lead { margin: 0; color: rgba(255, 255, 255, .78); font: 500 17px/1.5 "DM Sans", sans-serif; }
.vmg-intro-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.vmg-intro-fact { padding: 12px 10px; border: 1px solid rgba(255, 255, 255, .14); border-top: 4px solid #b57edc; border-radius: 16px; background: rgba(255, 255, 255, .06); color: #fff; text-align: center; }
.vmg-intro-fact strong { display: block; font: 800 20px "DM Sans", sans-serif; }
.vmg-intro-fact span { display: block; margin-top: 2px; color: rgba(255, 255, 255, .78); font: 500 14px "DM Sans", sans-serif; }
.vmg-intro-note { margin: 0 0 18px; color: rgba(255, 255, 255, .78); font: 500 16px/1.5 "DM Sans", sans-serif; text-align: center; }
.vmg-intro-start { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; padding: 12px 26px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #b57edc, #6d3a9c); color: #fff; font: 700 15px "DM Sans", sans-serif; cursor: pointer; }
.vmg-intro-start:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.vmg-app [data-status]:empty { display: none; }
