/* Phase 6: toy shelf (js/shelf.js) + Zakzak hidden while a shelf game plays (js/fun.js opts.shelf) */
.zs-shelf { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(40, 24, 10, .45); animation: zs-in .3s ease-out; }
.zs-shelf.is-closing { animation: zs-out .3s ease-in forwards; }
.zs-wood { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4vmin; padding: 5vmin; border-radius: 4vmin;
  background: #c0793a; border-bottom: 3vmin solid #8a5a2b; box-shadow: 0 2vmin 0 rgba(0,0,0,.2); max-width: 92vw; }
@media (orientation: landscape) { .zs-wood { grid-template-columns: repeat(4, 1fr); } }
.zs-game { width: 30vmin; height: 30vmin; max-width: 200px; max-height: 200px; padding: 2vmin; border: 0; border-radius: 3vmin;
  background: #ffe9a8; box-shadow: 0 1.2vmin 0 #a8652e; cursor: pointer; animation: zs-bob 2.4s ease-in-out infinite; }
.zs-game:nth-child(2) { animation-delay: -.6s; } .zs-game:nth-child(3) { animation-delay: -1.2s; } .zs-game:nth-child(4) { animation-delay: -1.8s; }
.zs-game svg { width: 100%; height: 100%; display: block; }
.zs-game.is-picked { animation: zs-pick .25s ease-out forwards; }
.zs-home { position: absolute; top: 3vmin; left: 3vmin; }
.zs-gift { position: absolute; bottom: 2vh; width: 7vmin; min-width: 36px; height: auto; padding: 0; border: 0; background: none; z-index: 3;
  animation: zs-drop .6s ease-out; }
.zs-gift svg { width: 100%; height: auto; display: block; }
.zs-gift.is-bounce { animation: zs-bounce .5s ease-out; }
.fun-from-shelf.is-playing:not(.is-done) .fun-zak { opacity: 0; transform: scale(.6); pointer-events: none; }
.fun-from-shelf .fun-zak { transition: opacity .35s, transform .35s; }
@keyframes zs-in { from { opacity: 0; } }
@keyframes zs-out { to { opacity: 0; } }
@keyframes zs-bob { 50% { transform: translateY(-1.2vmin); } }
@keyframes zs-pick { to { transform: scale(1.25); opacity: 0; } }
@keyframes zs-drop { from { transform: translateY(-30vh); opacity: 0; } 70% { transform: translateY(1vh); } }
@keyframes zs-bounce { 40% { transform: translateY(-5vh) rotate(-10deg); } }
@media (prefers-reduced-motion: reduce) { .zs-game, .zs-shelf, .zs-gift { animation: none !important; } }
