/* Planet Hop — orbit-hopping arcade game on /playground/planet-hop/ */
/* The game stage keeps one deep-space look in both themes; the page around it uses mv-biz tokens */

.mv-ph {
  --ph-accent: #ff9f43;
  --ph-panel: rgba(7, 8, 26, 0.86);
  --ph-stage-ink: #f4f1e8;
  --ph-stage-muted: #c3cadb;
}

.mv-ph__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-ph__back {
  font-size: 0.875rem;
  color: var(--mv-biz-muted-fg);
  text-decoration: none;
}

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

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

.mv-ph__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-ph__hud {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--mv-biz-muted-fg);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.mv-ph__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-ph__stage {
  position: relative;
  height: min(74vh, 40rem);
  min-height: 26rem;
  overflow: hidden;
  border-radius: 16px;
  background: #07081a;
  cursor: pointer;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

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

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

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

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

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

.mv-ph__overlay .mv-ph__post {
  min-height: 1.4em;
  color: var(--ph-stage-ink);
  font-weight: 600;
}

.mv-ph__overlay .mv-ph__post a {
  color: var(--ph-accent);
}

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

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

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

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

.mv-ph__stage {
  cursor: pointer;
}
