/* Peekaboo's continuous two-choice game; shared styles stay unchanged. */
body[data-game="peekaboo_house"] .window { transition: border-color .2s, box-shadow .2s; }
body[data-game="peekaboo_house"] .window:disabled { opacity: 1; cursor: default; }
body[data-game="peekaboo_house"] .window .animal { bottom: 4%; height: 91%; }
/* Meet in the middle, including the hem: closed curtains completely hide the animal. */
body[data-game="peekaboo_house"] .curtain { width: 50.5%; border-radius: 0; }
body[data-game="peekaboo_house"] .window.hinting .left { animation: none; }
body[data-game="peekaboo_house"] .window.hinting { animation: peek-hint 1.2s ease-in-out; }
@keyframes peek-hint { 50% { border-color: #fff0a8; box-shadow: 0 0 0 5px #f5d47788; } }
body[data-game="peekaboo_house"] .window.open .window-word { opacity: 0; }
body[data-game="peekaboo_house"] .window.found .window-word { opacity: 1; }
body[data-game="peekaboo_house"] .window:focus-visible { outline: 4px solid #3c8b76; outline-offset: -4px; }
body[data-game="peekaboo_house"] .window.try-again { border-color: #d4e6d0; }
.peek-success { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: #edf4e4; padding: 12px; }
.peek-success-card { width: min(360px, 94%); max-height: 100%; text-align: center; color: #315f56; animation: peek-arrive .35s ease-out; }
.peek-stars { color: #cd9b36; font-size: 29px; letter-spacing: .2em; line-height: 1; }
.peek-success-card img { display: block; width: min(170px, 30svh); height: min(170px, 22svh); object-fit: contain; margin: 4px auto; animation: soft-bounce .7s; }
.peek-success-card h2 { font-size: clamp(24px, 4vw, 32px); margin: 4px 0; }
.peek-success-card strong { display: block; font-size: clamp(22px, 4vw, 30px); }
.peek-success-card p { margin: 8px 0 0; color: #687970; font-size: 13px; }
@keyframes peek-arrive { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 500px) {
    .peek-success-card img { height: 105px; }
  .peek-stars { font-size: 25px; }
  .peek-success-card p { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .peek-success-card, .peek-success-card img { animation: none; }
}

.windows { padding: 16px 5%; max-width: 1050px; margin: auto; }
body[data-game="peekaboo_house"] .window { height: 86%; max-height: min(430px, 70vw); max-width: 360px; }
.peek-success { background: #edf4e4b8; border-radius: 26px; }
@media (max-height: 600px) {
  .windows { padding: 8px 5%; }
  body[data-game="peekaboo_house"] .window { border-width: 6px; border-radius: 45px 45px 18px 18px; }
  .peek-success { padding: 4px; }
  .peek-success-card img { height: min(105px, 18dvh); margin: 0 auto; }
  .peek-success-card h2, .peek-success-card strong { font-size: 20px; margin: 0; }
  .peek-success-card p { margin: 3px 0 0; font-size: 11px; }
  .peek-stars { font-size: 18px; }
}
@media (max-height: 420px) {
  .peek-success-card p, .peek-stars { display: none; }
}
