html { scroll-behavior: smooth; }
body { margin: 0; background: #FFF6EC; }
a { color: #1B1420; }
a:hover { color: #DC1F33; }
img { max-width: 100%; }

.zk-marquee { display: flex; width: max-content; animation: zkmq 38s linear infinite; }
@keyframes zkmq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.zk-bob { animation: zkbob 5s ease-in-out infinite; }
@keyframes zkbob { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-18px) rotate(6deg); } }
.zk-card { transition: transform .2s ease, box-shadow .2s ease; }
.zk-card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 10px 0 #1B1420 !important; }
.zk-btn-link:hover { transform: translateY(-2px); }

/* all-games shelf */
.zk-tile img { transition: transform .2s cubic-bezier(.3,1.6,.5,1); }
.zk-tile:hover img { transform: translateY(-4px) rotate(-4deg) scale(1.06) !important; }
.zk-more { display: none !important; }
#zk-shelf.is-open .zk-more { display: flex !important; }

/* ---- Chain Popper mini ---- */
#zk-pop { font-family: 'Nunito', system-ui, sans-serif; overflow: hidden; }
.zk-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.zk-title { margin: 0; font-family: 'Lilita One', sans-serif; font-size: 30px; line-height: 1; }
.zk-hint { margin: 2px 0 0; font-size: 15px; font-weight: 700; color: #5B4F5E; }
.zk-pills { display: flex; gap: 8px; align-items: center; }
.zk-pill { margin: 0; font-weight: 900; font-size: 15px; background: #FFE3A3; padding: 8px 14px; border-radius: 999px; }
.zk-pill-dark { background: #1B1420; color: #FFFFFF; }
.zk-pill.is-bump { animation: zkbump .35s cubic-bezier(.3,1.8,.5,1); }
@keyframes zkbump { 0% { transform: scale(1); } 40% { transform: scale(1.22) rotate(-4deg); background: #FFC93C; } 100% { transform: scale(1); } }
.zk-sound {
  width: 44px; height: 44px; border-radius: 50%; border: 3px solid #1B1420; background: #FFFFFF; color: #1B1420;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; box-shadow: 0 3px 0 #1B1420;
}
.zk-sound svg { width: 20px; height: 20px; }
.zk-sound[aria-pressed="false"] { opacity: 0.55; }

.zk-stage { display: flex; justify-content: center; padding: 6px 0 0; }
.zk-board {
  display: block; width: 100%; max-width: 400px; height: auto; overflow: visible;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  filter: drop-shadow(0 8px 0 rgba(27,20,32,0.18));
}
.zk-item { transition: transform .085s linear; }
.zk-item.is-movable { cursor: grab; }
.zk-item-in { transform-box: fill-box; transform-origin: center; transition: transform .16s cubic-bezier(.3,1.6,.5,1), filter .16s ease; }
.zk-item.is-movable:hover .zk-item-in { transform: scale(1.03); }
.zk-item-in.is-held { transform: scale(1.07); filter: drop-shadow(0 10px 6px rgba(0,0,0,0.45)) brightness(1.06); cursor: grabbing; }
.zk-item-in.is-enter { animation: zkballin .5s cubic-bezier(.3,1.7,.5,1) backwards; }
@keyframes zkballin { from { transform: scale(0); } to { transform: scale(1); } }
.zk-item-in.is-pop { animation: zkballpop .42s cubic-bezier(.4,0,.6,1) forwards; }
@keyframes zkballpop {
  0% { transform: scale(1); opacity: 1; }
  35% { transform: scale(1.28, 1.18); opacity: 1; }
  100% { transform: scale(0.1); opacity: 0; }
}
.zk-ring { transform-box: fill-box; transform-origin: center; animation: zkring .45s ease-out forwards; }
@keyframes zkring { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
.zk-drop { animation: zkdrop .6s cubic-bezier(.2,.7,.4,1) forwards; }
@keyframes zkdrop { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }

.zk-msg { margin: 0; min-height: 22px; text-align: center; font-size: 15px; font-weight: 800; color: #B0152A; }
.zk-actions { display: flex; justify-content: center; gap: 12px; }
.zk-btn {
  font-family: inherit; font-weight: 900; font-size: 16px; background: #FFFFFF; color: #1B1420; border: 3px solid #1B1420;
  border-radius: 999px; padding: 11px 22px; cursor: pointer; box-shadow: 0 4px 0 #1B1420; transition: transform .15s ease, box-shadow .15s ease;
}
.zk-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #1B1420; }
.zk-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #1B1420; }
.zk-btn:disabled { opacity: 0.45; cursor: default; transform: none; box-shadow: 0 4px 0 #1B1420; }
.zk-btn-red { background: #DC1F33; color: #FFFFFF; font-size: 18px; padding: 14px 28px; box-shadow: 0 5px 0 #1B1420; }

/* win */
.zk-win {
  position: absolute; inset: 0; z-index: 20; border-radius: 28px; background: rgba(255,246,236,0.95);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px;
  animation: zkfade .3s ease backwards;
}
@keyframes zkfade { from { opacity: 0; } to { opacity: 1; } }
.zk-stars { display: flex; gap: 10px; }
.zk-star { width: 46px; height: 46px; animation: zkstar .5s cubic-bezier(.3,1.8,.5,1) backwards; }
.zk-star:nth-child(2) { width: 58px; height: 58px; margin-top: -12px; }
@keyframes zkstar { from { transform: scale(0) rotate(-90deg); } to { transform: none; } }
.zk-win-title { margin: 0; font-family: 'Lilita One', sans-serif; font-size: 52px; line-height: 1; color: #DC1F33; animation: zktitle .55s cubic-bezier(.3,1.8,.5,1) backwards .15s; }
@keyframes zktitle { from { transform: scale(.3) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.zk-win-text { margin: 0; font-size: 18px; font-weight: 800; }
.zk-win-link { font-weight: 800; font-size: 15px; padding: 10px; }
.zk-win .zk-btn-red { animation: zktitle .5s cubic-bezier(.3,1.8,.5,1) backwards .35s; }
.zk-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: 28px; }
.zk-confetti span {
  position: absolute; left: 50%; top: 42%; width: 10px; height: 14px; border-radius: 3px;
  animation: zkconfetti 1.4s cubic-bezier(.15,.7,.4,1) forwards; animation-delay: var(--d);
}
@keyframes zkconfetti {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .zk-marquee, .zk-bob { animation: none; }
  .zk-item { transition: none; }
  .zk-item-in.is-enter, .zk-ring, .zk-drop, .zk-confetti span, .zk-star, .zk-win-title, .zk-win .zk-btn-red { animation-duration: .01s; }
}

/* legal pages (privacy policies) */
.zk-legal { max-width: 860px; margin: 0 auto; background: #FFFFFF; border: 4px solid #1B1420; border-radius: 32px; box-shadow: 0 10px 0 #1B1420; padding: 48px 44px; box-sizing: border-box; font-size: 17px; line-height: 1.65; font-weight: 600; }
.zk-legal h1 { margin: 0 0 6px; font-family: 'Lilita One', 'Nunito', sans-serif; font-weight: 400; font-size: clamp(38px, 6vw, 56px); line-height: 1; color: #DC1F33; }
.zk-legal h2 { margin: 40px 0 12px; font-family: 'Lilita One', 'Nunito', sans-serif; font-weight: 400; font-size: 28px; line-height: 1.15; }
.zk-legal h3 { margin: 26px 0 8px; font-size: 19px; font-weight: 900; }
.zk-legal h4 { margin: 18px 0 6px; font-size: 15px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: #5B4F5E; }
.zk-legal p { margin: 0 0 14px; }
.zk-legal ul { margin: 0 0 16px; padding-left: 22px; }
.zk-legal li { margin: 0 0 8px; }
.zk-legal li ul { margin: 8px 0 0; }
.zk-legal a { color: #DC1F33; font-weight: 800; }
.zk-legal-meta { margin: 0 0 24px; color: #5B4F5E; font-weight: 800; }
.zk-legal-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.zk-legal-links a { display: inline-block; background: #FFF6EC; color: #1B1420; text-decoration: none; border: 3px solid #1B1420; border-radius: 999px; padding: 10px 20px; box-shadow: 0 4px 0 #1B1420; }
.zk-legal-links a:hover { color: #DC1F33; }
@media (max-width: 600px) { .zk-legal { padding: 32px 22px; border-radius: 24px; } }
