/* Yuffie, Albert's dog, as a page helper (yuffie.js). She barks in pixel letters; thought bubbles say what she really means. */
.yuffie { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; }
.yuffie .dog { position: fixed; width: var(--yw); height: var(--yh); background: url("assets/yuffie.png") 0 0 / var(--ys) no-repeat; image-rendering: pixelated; pointer-events: auto; cursor: pointer; }
.yuffie .woof { position: fixed; transform: translate(-50%, -100%); font: 700 18px 'Silkscreen', monospace; color: #fff; white-space: nowrap; pointer-events: none;
  text-shadow: 2px 0 #000, -2px 0 #000, 0 2px #000, 0 -2px #000, 2px 2px #000, -2px -2px #000, 2px -2px #000, -2px 2px #000; animation: y-woof 1.1s steps(6) forwards; }
@keyframes y-woof { 0% { transform: translate(-50%, -60%) scale(.6); opacity: 0; } 20% { transform: translate(-50%, -100%) scale(1.15); opacity: 1; } 80% { opacity: 1; } 100% { transform: translate(-50%, -150%) scale(1); opacity: 0; } }
.yuffie .think { position: fixed; max-width: min(300px, 76vw); background: #fffdf8; color: #1d1d1f; border: 3px solid #121318; border-radius: 22px; padding: 12px 22px 12px 14px; font: italic 14px/1.5 'Libre Baskerville', Georgia, serif; box-shadow: 4px 4px 0 rgba(0,0,0,.18); pointer-events: auto; }
.yuffie .think::before, .yuffie .think::after { content: ''; position: absolute; background: #fffdf8; border: 3px solid #121318; border-radius: 50%; }
.yuffie .think::before { width: 14px; height: 14px; left: 14px; bottom: -20px; } .yuffie .think::after { width: 8px; height: 8px; left: 4px; bottom: -32px; }
.yuffie .think .x { position: absolute; top: 2px; right: 6px; border: 0; background: none; font: 700 15px 'Silkscreen', monospace; color: #6b6458; cursor: pointer; padding: 2px 4px; }
.yuffie .cue { position: fixed; transform: translateX(-50%); font: 700 14px 'Silkscreen', monospace; color: #1d2b4f; background: #ffcf5a; padding: 5px 9px 3px; box-shadow: 0 3px 0 #8a6416; white-space: nowrap; animation: y-cue 1s steps(2) infinite; }
@keyframes y-cue { 50% { filter: brightness(1.2); } }
/* the pixel glow that points at a button: a stepped halo that pulses outward */
.pixel-glow { position: relative; animation: y-glow 1.2s steps(4) infinite; }
@keyframes y-glow {
  0% { box-shadow: 0 3px 0 #8a6416, 0 0 0 0 rgba(255,236,150,.9), 0 0 0 0 rgba(127,227,255,.6); }
  50% { box-shadow: 0 3px 0 #8a6416, 0 0 0 4px rgba(255,236,150,.85), 0 0 0 8px rgba(127,227,255,.45); }
  100% { box-shadow: 0 3px 0 #8a6416, 0 0 0 8px rgba(255,236,150,0), 0 0 0 14px rgba(127,227,255,0); }
}
@media (prefers-reduced-motion: reduce) { .yuffie .woof, .yuffie .cue, .pixel-glow { animation: none; } .pixel-glow { box-shadow: 0 3px 0 #8a6416, 0 0 0 4px #ffec96; } }
@media print { .yuffie { display: none !important; } }
/* her shadow (shrinks while she's in the air) and the dust she kicks up when she lands */
.yuffie .shadow { position: fixed; width: calc(var(--yw) * .6); height: 7px; border-radius: 50%; background: radial-gradient(ellipse, rgba(0,0,0,.28), transparent 70%); pointer-events: none; }
.yuffie .puff { position: fixed; width: 4px; height: 4px; background: #e9e4d6; box-shadow: 0 0 0 1px rgba(0,0,0,.08); pointer-events: none; animation: y-puff .42s steps(4) forwards; }
@keyframes y-puff { to { transform: translate(var(--dx), -10px) scale(.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .yuffie .puff { display: none; } }

/* Yuffie on/off button: same look as the music button (.bgm), stacked above it */

/* ==== "NEW OPTION UNLOCKED" (Will, 2026-11-15): whenever Yuffie and/or Albert unlock something, blinking pixel banner, bottom center */
.unlock-banner { position: fixed; bottom: max(52px, calc(env(safe-area-inset-bottom) + 40px)); left: 50%; transform: translateX(-50%); z-index: 90; pointer-events: none;
  padding: 8px 14px 7px; text-align: center; white-space: nowrap; background: #0b1026; color: #ffcf5a;
  box-shadow: 0 0 0 2px #ffcf5a, 0 0 0 4px #0b1026, 0 0 0 6px #e0574b; font: 700 12px/1.3 'Silkscreen', 'Courier New', monospace; letter-spacing: .14em;
  animation: unlockIn .3s steps(3), unlockBlink .5s steps(1) .3s 8; }
.unlock-banner b { display: block; margin-top: 2px; font-size: 15px; color: #f3ead6; letter-spacing: .1em; }
.unlock-banner.out { opacity: 0; transition: opacity .4s steps(4); }
@keyframes unlockIn { from { transform: translate(-50%, 24px); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }
@keyframes unlockBlink { 50% { color: #e0574b; box-shadow: 0 0 0 2px #e0574b, 0 0 0 4px #0b1026, 0 0 0 6px #ffcf5a; } }
@media (prefers-reduced-motion: reduce) { .unlock-banner { animation: none; } }
