/* whack-a-mole - fullscreen: paired with fullscreen-fit.js (sets --fs-side, toggles .fs-wide).
   Only applies while the game-shell Full screen is on (html.pip-immersive). */
html.pip-immersive .game-wrap { overflow: hidden; display: flex; flex-direction: column; align-items: center; }
html.pip-immersive .game-wrap > .hud,
html.pip-immersive .game-wrap > .wm-bar,
html.pip-immersive .game-wrap > #status { width: var(--fs-side, 100%); max-width: 100%; box-sizing: border-box; flex: none; }
html.pip-immersive .game-wrap > .hud { margin: 0 0 6px; }
html.pip-immersive .game-wrap > #status { min-height: 1.3em; margin: 4px 0; font-size: .85rem; text-align: center; }
html.pip-immersive .game-wrap > #card-grid {
  width: var(--fs-side, 100%); max-width: 100%; margin: 0 auto; flex: none;
  display: grid; align-content: stretch;
}
html.pip-immersive .game-wrap > .wm-how,
html.pip-immersive .game-wrap > #wm-coach { display: none; }

/* Wide screens: field on the left at full height, HUD / timer / status stacked on the right. */
html.pip-immersive .game-wrap.fs-wide {
  display: grid; grid-template-columns: var(--fs-side) minmax(200px, 300px); column-gap: 20px;
  justify-content: center; align-content: center; align-items: start;
}
html.pip-immersive .game-wrap.fs-wide > #card-grid { grid-column: 1; grid-row: 1 / span 4; width: var(--fs-side); }
html.pip-immersive .game-wrap.fs-wide > .hud,
html.pip-immersive .game-wrap.fs-wide > .wm-bar,
html.pip-immersive .game-wrap.fs-wide > #status { grid-column: 2; width: 100%; }
html.pip-immersive .game-wrap.fs-wide > .hud { align-self: end; flex-direction: column; align-items: stretch; gap: 10px; font-size: 1.1rem; }
html.pip-immersive .game-wrap.fs-wide > #status { align-self: start; text-align: left; }

/* Pass 3: nothing but the play area inside full screen; 44px controls; no scroll; clear of notch and home bar. */
html.pip-immersive .game-wrap > .wm-daily,
html.pip-immersive .game-wrap > .facts,
html.pip-immersive .game-wrap > .game-title,
html.pip-immersive .game-wrap > .pip-actions,
html.pip-immersive .hub-bar,
html.pip-immersive .playyard-ad,
html.pip-immersive .below-content,
html.pip-immersive .bottom-ad-section { display: none; }
html.pip-immersive .game-wrap { padding-left: 8px; padding-right: 8px; padding-bottom: 8px; min-height: 0; }
html.pip-immersive .game-wrap > .hud .btn { min-height: 44px; min-width: 44px; }
html.pip-immersive .game-wrap > .hud { align-items: center; justify-content: space-between; gap: 8px; }
html.pip-immersive .wm-field { gap: clamp(4px, 1.6vmin, 10px); padding: clamp(6px, 2vmin, 14px); }
html.pip-immersive .wm-over { overflow: auto; padding: 10px; gap: 4px; }
html.pip-immersive .wm-over .wm-big { font-size: clamp(1.8rem, 9vmin, 2.6rem); }
html.pip-immersive .wm-over .wm-go { min-height: 48px; flex: none; }
html.pip-immersive .wm-bar { flex: none; }
/* Depth: soft light falloff over the lawn and a pulse on the clock when time runs low (compositor-only). */
.wm-field::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 6;
  background: radial-gradient(120% 100% at 50% 35%, rgba(255,255,255,.10) 0, rgba(255,255,255,0) 55%, rgba(0,30,0,.28) 100%); }
.wm-bar.low > div { animation: wm-lowpulse .6s ease-in-out infinite alternate; }
@keyframes wm-lowpulse { from { opacity: .75; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .wm-bar.low > div { animation: none; } }
