/* ============================================================
   Baby Doge Pepe — the dog you can play with
   ------------------------------------------------------------
   Every rule here is scoped to .play-on or to elements play.js
   creates, so with PLAY_MODE off this file changes nothing.
   ============================================================ */

/* The playfield sits between the street and the page. */
.playfield { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.play-on main { position: relative; z-index: 1; }

/* The hero is see-through, so let clicks fall through it to the dog — but
   keep everything that is actually drawn in the hero clickable. */
.play-on main, .play-on .hero, .play-on .hero-copy, .play-on .hero-foot { pointer-events: none; }
.play-on .menu, .play-on .hero .hud, .play-on .hero h1, .play-on .pitch, .play-on .feed-mini { pointer-events: auto; }

.dog {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  transform-origin: 50% 100%;
  will-change: transform;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.dog:focus-visible { outline: 3px dashed var(--paper); outline-offset: 6px; border-radius: 30%; }
.dog-body { display: block; width: 100%; height: 100%; transform-origin: 50% 55%; will-change: transform; -webkit-user-drag: none; }

.dog-shadow {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.85), transparent);
  transform: translate(-50%, -50%);
  opacity: 0;
}

.coin-drop {
  position: absolute; left: 0; top: 0;
  border-radius: 50%;
  border: 2px solid #000;
  background: var(--dope) center / cover;
  box-shadow: 0 3px 0 #000;
  will-change: transform;
  transition: opacity 0.3s, scale 0.3s;
}
.coin-drop.got { opacity: 0; scale: 1.7; }
.coin-drop.missed { opacity: 0; }

.coin-pop {
  position: absolute;
  font: 900 26px/1 var(--body); font-stretch: 118%;
  color: var(--money); text-shadow: var(--outline-s);
  animation: coin-pop 0.7s ease-out both;
}
@keyframes coin-pop { to { transform: translateY(-46px); opacity: 0; } }

.play-hint {
  position: absolute; left: 50%; bottom: 18px; translate: -50% 0;
  margin: 0; padding: 8px 14px; max-width: calc(100vw - 32px);
  background: rgba(0, 0, 0, 0.78); border: 2px solid #000; border-radius: 10px;
  font-weight: 800; font-size: 14px; text-align: center;
  opacity: 0; transition: opacity 0.4s;
}
.play-hint.show { opacity: 1; }

/* The self-play switch: on purpose almost invisible, in the very corner. */
.play-auto {
  position: fixed; left: 0; bottom: 0; z-index: 40;
  width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer;
}
.play-auto::after {
  content: ""; position: absolute; left: 4px; bottom: 4px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--paper); opacity: 0.16;
}
.play-auto[aria-pressed="true"]::after { background: var(--money); opacity: 0.55; }

.play-mute {
  margin-top: 8px; pointer-events: auto;
  min-height: 32px; padding: 0 12px;
  background: rgba(0, 0, 0, 0.78); color: var(--paper);
  border: 2px solid #000; border-radius: 10px;
  font: 800 13px/1 var(--body); cursor: pointer;
}
.play-mute[aria-pressed="false"] { color: var(--dim); }
.play-score { color: var(--dope); margin-top: 4px; }
