/* Optional learning game. Only the homepage quest section uses these styles. */
.vp-home .quest-intro { max-width: 700px; margin-bottom: 36px; }
.vp-home .quest-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; align-items: start; }
.vp-home .buddy-card, .vp-home .quest-log { padding: 28px; border: 1px solid var(--border-hover); border-radius: 14px; background: var(--bg-deep); }
.vp-home .buddy-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.vp-home .buddy-top h3 { font-size: 20px; font-weight: 500; }
.vp-home .level-badge { border: 1px solid var(--gold-dim); border-radius: 5px; padding: 5px 10px; color: var(--gold-light); font-size: 14px; }
.vp-home .buddy-stage { position: relative; height: 216px; display: grid; place-items: center; overflow: hidden; margin: 22px 0; border: 1px solid var(--border-subtle); background: linear-gradient(180deg, var(--bg-primary), var(--bg-deep)); border-radius: 8px; }
.vp-home .buddy-stage::after { content: ''; position: absolute; bottom: 25px; width: 184px; height: 9px; background: var(--border-hover); box-shadow: 0 8px 0 var(--bg-card); }
.vp-home .scout-sprite { width: 160px; height: 160px; position: relative; z-index: 1; image-rendering: pixelated; transform: translateY(5px); }
.vp-home .scout-sprite img { width: 100%; height: 100%; display: block; }
.vp-home .scout-accessory { position: absolute; image-rendering: pixelated; display: none; }
.vp-home .scout-map { bottom: 8px; left: 21px; width: 30px; height: 34px; border: 4px solid var(--gold-dim); background: var(--white); box-shadow: inset 6px 0 var(--gold-light); transform: rotate(-6deg); }
.vp-home .scout-lantern { bottom: 15px; right: 15px; width: 20px; height: 25px; border: 4px solid var(--gold); background: var(--gold-light); box-shadow: 0 0 24px #c9a84c33; }
.vp-home .scout-star { top: 6px; right: 15px; width: 7px; height: 21px; background: var(--gold-light); }
.vp-home .scout-star::after { content: ''; position: absolute; width: 21px; height: 7px; left: -7px; top: 7px; background: var(--gold-light); }
.vp-home [data-level="2"] .scout-map, .vp-home [data-level="3"] .scout-map, .vp-home [data-level="4"] .scout-map,
.vp-home [data-level="3"] .scout-lantern, .vp-home [data-level="4"] .scout-lantern, .vp-home [data-level="4"] .scout-star { display: block; }
.vp-home .buddy-stage.celebrate .scout-sprite { animation: scout-hop 650ms steps(5,end); }
@keyframes scout-hop { 0%,100% { transform: translateY(5px); } 35% { transform: translateY(-14px) rotate(-4deg); } 65% { transform: translateY(-8px) rotate(4deg); } }
.vp-home .buddy-speech { min-height: 55px; font-size: 16px; color: var(--white-dim); line-height: 1.6; }
.vp-home .xp-row { display: flex; justify-content: space-between; gap: 12px; margin: 22px 0 10px; font-size: 14px; }
.vp-home .xp-row strong { color: var(--gold-light); font-weight: 500; }
.vp-home .xp-next { font-size: 13px; color: var(--white-faint); margin-top: 9px; }
.vp-home .quest-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 24px 0; }
.vp-home .quest-stats div { border-top: 1px solid var(--border-subtle); padding-top: 14px; }
.vp-home .quest-stats dt { color: var(--white-dim); font-size: 13px; }
.vp-home .quest-stats dd { margin: 3px 0 0; font: 500 23px var(--font-display); color: var(--white); }
.vp-home .quest-small { font-size: 13px; color: var(--white-faint); line-height: 1.6; }
.vp-home .quest-log-top { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 8px; }
.vp-home .quest-log-top h3 { font-size: 19px; font-weight: 500; }
.vp-home .quest-count { color: var(--gold-light); font-size: 14px; white-space: nowrap; }
.vp-home .quest-item { display: grid; grid-template-columns: 30px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--border-subtle); }
.vp-home .quest-number { width: 29px; height: 29px; display: grid; place-content: center; font-size: 13px; color: var(--white-dim); border: 1px solid var(--border-hover); border-radius: 5px; }
.vp-home .quest-item.is-complete .quest-number { color: var(--bg-deep); background: var(--gold); border-color: var(--gold); }
.vp-home .quest-item h4 { font-family: var(--font-display); font-size: 16px; font-weight: 500; margin: 0 0 7px; }
.vp-home .quest-item p { font-size: 14px; color: var(--white-dim); line-height: 1.6; }
.vp-home .quest-reward { color: var(--gold-light); font-size: 13px; margin-top: 10px; }
.vp-home .quest-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-top: 14px; }
.vp-home .quest-actions a { color: var(--gold-light); font-size: 14px; }
.vp-home .quest-actions a:hover { text-decoration: underline; }
.vp-home .quest-complete { font: 400 14px var(--font-body); color: var(--white); border: 1px solid var(--border-hover); background: var(--bg-primary); border-radius: 5px; padding: 9px 12px; min-height: 40px; transition: border-color 180ms; }
.vp-home .quest-complete:hover { border-color: var(--gold); }
.vp-home .quest-complete[aria-pressed="true"] { color: var(--gold-light); border-color: var(--gold-dim); }
.vp-home .quest-live { min-height: 22px; font-size: 14px; color: var(--gold-light); margin-top: 16px; }
.vp-home .quest-levels { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--white-dim); }
.vp-home .quest-reset { border: 0; padding: 0; margin-top: 16px; background: none; color: var(--white-dim); font: 400 13px var(--font-body); text-decoration: underline; text-underline-offset: 4px; }
.vp-home .quest-jump { color: var(--gold-light); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 800px) { .vp-home .quest-layout { grid-template-columns: 1fr; } .vp-home .buddy-stage { height: 180px; } .vp-home .buddy-card, .vp-home .quest-log { padding: 22px; } }
@media (prefers-reduced-motion: reduce) { .vp-home .buddy-stage.celebrate .scout-sprite { animation: none; } }
