/* Village Run — arcade runner on /playground/village-run/ */
/* The game stage keeps one dusk look in both themes; the page around it uses mv-biz tokens */

.mv-vr {
  --vr-accent: #ffc93c;
  --vr-panel: rgba(16, 22, 40, 0.84);
  --vr-stage-ink: #f4f1e8;
  --vr-stage-muted: #c3cadb;
}

.mv-vr__inner {
  max-width: 34rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem max(1rem, env(safe-area-inset-right, 0px))
    calc(2rem + env(safe-area-inset-bottom, 0px))
    max(1rem, env(safe-area-inset-left, 0px));
  color: var(--mv-biz-foreground);
}

.mv-vr__back {
  font-size: 0.875rem;
  color: var(--mv-biz-muted-fg);
  text-decoration: none;
}

.mv-vr__back:hover {
  color: var(--mv-biz-primary);
}

.mv-vr__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.mv-vr__brand {
  margin: 0;
  font-family: "Bungee", "Arial Black", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--mv-biz-primary);
}

.mv-vr__hud {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--mv-biz-muted-fg);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.mv-vr__hud b {
  display: block;
  font-family: "Bungee", "Arial Black", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--mv-biz-foreground);
}

.mv-vr__stage {
  position: relative;
  height: min(62vh, 30rem);
  min-height: 20rem;
  overflow: hidden;
  border-radius: 16px;
  background: #141a2e;
  cursor: pointer;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.mv-vr__stage:focus-visible {
  outline: 3px solid var(--vr-accent);
  outline-offset: 2px;
}

.mv-vr__stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.mv-vr__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.25rem;
  background: var(--vr-panel);
  color: var(--vr-stage-ink);
  text-align: center;
}

.mv-vr__overlay h2 {
  margin: 0;
  font-family: "Bungee", "Arial Black", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.85rem;
  color: var(--vr-accent);
}

.mv-vr__overlay p {
  max-width: 30ch;
  margin: 0;
  line-height: 1.45;
  color: var(--vr-stage-muted);
}

.mv-vr__overlay .mv-vr__post {
  min-height: 1.4em;
  color: var(--vr-stage-ink);
  font-weight: 600;
}

.mv-vr__overlay .mv-vr__post a {
  color: var(--vr-accent);
}

.mv-vr__big {
  font-family: "Bungee", "Arial Black", system-ui, sans-serif;
  font-size: 2.75rem;
}

.mv-vr__btn {
  min-height: 3.25rem;
  padding: 0.75rem 1.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--vr-accent);
  color: #1d1600;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
}

.mv-vr__btn:focus-visible {
  outline: 3px solid var(--vr-stage-ink);
  outline-offset: 3px;
}

.mv-vr__tip {
  margin: 0;
  font-size: 0.8rem;
  text-align: center;
  color: var(--mv-biz-muted-fg);
}
