/* Hurl It — free-taking arcade game on /playground/hurl-it/ */
/* The game stage keeps one match-day look in both themes; the page around it uses mv-biz tokens */

.mv-hi {
  --hi-accent: #ffd23f;
  --hi-panel: rgba(9, 22, 13, 0.86);
  --hi-stage-ink: #f4f1e8;
  --hi-stage-muted: #c3cadb;
}

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

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

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

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

.mv-hi__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-hi__stage {
  position: relative;
  height: min(62vh, 30rem);
  min-height: 20rem;
  overflow: hidden;
  border-radius: 16px;
  background: #0f2416;
  cursor: pointer;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

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

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

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

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

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

.mv-hi__overlay .mv-hi__post {
  min-height: 1.4em;
  color: var(--hi-stage-ink);
  font-weight: 600;
}

.mv-hi__overlay .mv-hi__post a {
  color: var(--hi-accent);
}

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

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

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

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

.mv-hi__hud b.mv-hi__lives {
  color: #e0406f;
  letter-spacing: 2px;
}

[data-theme="myvillage-dark"] .mv-hi__hud b.mv-hi__lives {
  color: #ff7aa0;
}

.mv-hi__stage {
  cursor: pointer;
}
