/* Flood overlay. Yellow carries navy text (brand rule); the loss colour is muted, never alarm red. */
.pf-flood {
  --depth: 0%;
  --flood-base: var(--win);
  --flood-ink: var(--on-win);
  position: absolute; inset: 0; z-index: 30; display: none;
  clip-path: circle(0 at 0 0); pointer-events: none; touch-action: none; -webkit-touch-callout: none;
  background: color-mix(in srgb, #8a6a00 var(--depth), var(--flood-base));
  color: var(--flood-ink);
}
.pf-flood[data-side="loss"] {
  --flood-base: color-mix(in srgb, var(--loss) 70%, #6b5a55);
  --flood-ink: var(--cream);
  background: color-mix(in srgb, #2a1c1a var(--depth), var(--flood-base));
}
.pf-flood.on { display: block; }
.pf-flood.live { pointer-events: auto; }

.pf-breath {
  position: absolute; left: 50%; top: 32%; width: 120px; height: 120px; margin: -60px 0 0 -60px;
  border-radius: 50%; border: 1.5px solid currentColor; opacity: 0; transform: scale(.7);
  background: radial-gradient(circle, color-mix(in srgb, currentColor 22%, transparent), transparent 70%);
  transition: opacity .8s;
}
.pf-breath.on { opacity: .7; }
.pf-breath.run { animation: pf-breathe 6s ease-in-out infinite; }
.pf-breath.hold { animation-play-state: paused; }
@keyframes pf-breathe { 0%, 100% { transform: scale(.7); } 50% { transform: scale(1.12); } }

.pf-line { position: absolute; left: 22px; right: 22px; top: 54%; text-align: center; opacity: 0; transform: translateY(8px); transition: opacity .7s, transform .7s; }
.pf-line.on { opacity: 1; transform: none; }
.pf-line.on.dim { opacity: .3; }
.pf-line b { display: block; font-size: 24px; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.pf-line p { margin: 8px 0 0; font-size: 15px; line-height: 1.4; opacity: .9; text-wrap: balance; }

.pf-seal { position: absolute; left: 20px; right: 20px; top: 26%; text-align: center; opacity: 0; transform: scale(.96); transition: opacity .7s, transform .7s; }
.pf-seal.on { opacity: 1; transform: none; }
.pf-seal b { display: block; font-size: 38px; letter-spacing: -.02em; line-height: 1.05; }
.pf-seal p { margin: 10px 0 0; font-size: 16px; line-height: 1.4; }
.pf-seal em { display: block; font-style: normal; font-family: var(--mono); font-size: 13px; opacity: .85; margin-top: 14px; }

.pf-close, .pf-skip {
  margin-top: 22px; min-height: 44px; padding: 0 22px; border-radius: 999px; cursor: pointer;
  font: 600 15px var(--sans); color: inherit;
  background: color-mix(in srgb, currentColor 14%, transparent); border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
}
.pf-hint { position: absolute; left: 20px; right: 20px; bottom: 96px; text-align: center; font-size: 14px; opacity: 0; transition: opacity .4s; pointer-events: none; }
.pf-hint.on { opacity: 1; pointer-events: auto; }
.pf-hint p { margin: 0; }
.pf-skip { margin-top: 10px; }
.pf-prog { position: absolute; left: 24px; right: 24px; bottom: 76px; height: 3px; border-radius: 2px; background: color-mix(in srgb, currentColor 22%, transparent); overflow: hidden; opacity: 0; transition: opacity .5s; }
.pf-prog.on { opacity: 1; }
.pf-prog i { display: block; height: 100%; width: 0; background: currentColor; }

@media (prefers-reduced-motion: reduce) {
  .pf-breath.run { animation: none; transform: scale(.95); }
  .pf-line, .pf-seal { transition: opacity .3s; transform: none; }
}
