/* Sort Kings: Magic Sort-style glass bottles under a starry indigo spotlight; a floating market island
   map with plush cushion nodes; a bevelled cream-and-gold display face; glossy buttons.
   All art is CSS and inline SVG (art.js). Icons arrive as --sk-* custom properties on body. */
:root {
  --sk-font: ui-rounded, 'SF Pro Rounded', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --sk-out: #3a1680;
  --sk-r: 18px; /* one corner radius for every button */
  --sk-purple: linear-gradient(180deg, #a07bff 0%, #6c38e0 55%, #5226c0 100%);
  --sk-gold: linear-gradient(180deg, #fff3a6 0%, #ffc531 45%, #c47208 100%);
}
/* bevelled display face: cream fill, purple outline, drop shadow */
.pz-brand strong, .pz-level-head b, .pz-sheet h2, .pz-play, .pz-node b, .pz-stars, .sk-stuck b, .pz-ghost[data-tab] span, .sk-giveup {
  font-family: var(--sk-font); font-weight: 900; color: #fff3c4;
  text-shadow: 3px 0 0 var(--sk-out), -3px 0 0 var(--sk-out), 0 3px 0 var(--sk-out), 0 -3px 0 var(--sk-out),
    2px 2px 0 var(--sk-out), -2px 2px 0 var(--sk-out), 2px -2px 0 var(--sk-out), -2px -2px 0 var(--sk-out), 0 5px 0 #1f0a4d, 0 6px 6px #0006;
}
/* play background: indigo with a soft spotlight, vignette and stars */
body { font-family: var(--sk-font);
  background: radial-gradient(70% 48% at 50% 46%, #3c3bb0 0%, #27258a 42%, #17155c 75%, #0b0a36 100%) fixed, #121048; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .75;
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, #c9c6ff, transparent), radial-gradient(1px 1px at 33% 9%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 78% 14%, #b8b4ff, transparent), radial-gradient(1px 1px at 91% 41%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 6% 57%, #a9a4ff, transparent), radial-gradient(1px 1px at 54% 73%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 84% 79%, #c9c6ff, transparent), radial-gradient(1px 1px at 22% 88%, #fff, transparent),
    radial-gradient(1px 1px at 66% 31%, #d8d6ff, transparent), radial-gradient(1.5px 1.5px at 44% 6%, #8f8aff, transparent); }
/* in a level: a faint dusk Lagos skyline along the bottom */
body[data-screen='level']::after { content: ''; position: fixed; left: 0; right: 0; bottom: 0; height: 150px; pointer-events: none; opacity: .09; background: var(--sk-skyline) center bottom / auto 100% repeat-x; }
#app { position: relative; z-index: 1; }

/* ---------- top bar: dark gold-trimmed bars, rendered icon overlapping the left end, + on the right ---------- */
.pz-top { gap: 10px; }
.pz-brand { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.pz-chip { flex: none; position: relative; isolation: isolate; min-height: 44px; min-width: 92px; padding: 0 34px 0 2px; display: flex; align-items: center; gap: 5px; background: none; border-radius: 0;
  font-family: var(--sk-font); font-weight: 900; font-size: 17px; color: #fff; text-shadow: 0 2px 0 #0a0730; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pz-chip::before { content: ''; position: absolute; z-index: -1; left: 16px; right: 0; top: 7px; bottom: 7px; border-radius: 99px;
  background: linear-gradient(180deg, #120c42, #231a6e); border: 2px solid #f0b42c; box-shadow: inset 0 2px 4px #0008, 0 2px 0 #7a4a08; }
.pz-chip::after { content: '+'; position: absolute; right: 4px; top: 50%; width: 22px; height: 22px; margin-top: -11px; display: grid; place-items: center; border-radius: 50%;
  font-size: 18px; line-height: 1; color: #fff; background: linear-gradient(180deg, #a6ee5c, #46ad1a); border: 1.5px solid #1f5a08; box-shadow: inset 0 2px 0 #ffffff80; text-shadow: 0 1px 0 #1f5a08; }
.pz-chip small { font-size: 11px; opacity: .85; }
.pz-ico { flex: none; width: 38px; height: 38px; font-size: 0; color: transparent; background: center / contain no-repeat; filter: drop-shadow(0 2px 1px #0007); }
.pz-chip.lives .pz-ico { background-image: var(--sk-heart); width: 36px; }
.pz-chip.coins .pz-ico { background-image: var(--sk-coin); }
.pz-brand strong { font-size: 22px; color: #ffd23a; letter-spacing: .01em; }
.pz-brand small { display: none; }

/* in a level: quit takes the lives slot; a compact "Level N" plaque sits in the centre */
#app[data-screen='level'] > .pz-top .pz-brand, #app[data-screen='level'] > .pz-top .pz-chip.lives { visibility: hidden; }
#app[data-screen='level'] > .pz-level-head { position: absolute; z-index: 2; top: 8px; left: 12px; right: 12px; height: 44px; justify-content: center; pointer-events: none; }
.pz-level-head b { padding: 2px 16px 4px; font-size: 22px; line-height: 1.3; border-radius: 14px; --sk-out: #2a0e74;
  background: linear-gradient(180deg, #7a4cf0, #4a20b0); border: 2.5px solid #f0b42c; box-shadow: inset 0 2px 0 #c7a8ff, inset 0 -3px 0 #2a0f7866, 0 3px 0 #7a4a08, 0 6px 10px #0006; }
/* ornamented close: gold ring, purple gem */
.pz-x { position: absolute; left: 0; top: 0; width: 44px; height: 44px; pointer-events: auto; border-radius: 50%; font-weight: 900; font-size: 17px; color: #fff; text-shadow: 0 2px 0 #2a0e74;
  background: radial-gradient(60% 55% at 40% 32%, #c4a6ff, #7a44ea 55%, #4a1eb0); border: 3px solid #f0b42c; box-shadow: inset 0 -3px 0 #2a0f7866, 0 0 0 2px #7a4a08, 0 4px 0 #2a0f78; }
/* compact moves counter */
.sk-moves { position: absolute; z-index: 0; top: 0; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 2px 12px 2px 8px; border-radius: 99px;
  font-size: 13px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; background: #0c0a3acc; border: 1.5px solid #6a5ae0; }
.sk-moves::before { content: none; } /* no coin glyph: this counts moves, not coins */

/* ---------- board ---------- */
.pz-board { isolation: isolate; }
.sk-twinkle { position: absolute; z-index: -1; width: 12px; height: 12px; pointer-events: none; background: #e8e6ff;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: sktwinkle 2.8s ease-in-out infinite; }
.sk-twinkle:nth-child(3n) { width: 8px; height: 8px; }
.sk-shelf { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; row-gap: calc(var(--tw) * .3 + 12px); padding-top: calc(var(--tw) * .3 + 20px); }
.sk-row { position: relative; display: flex; gap: var(--gap); }

.sk-tube { --neck: calc(var(--tw) * .42); position: relative; z-index: 1; flex: none; width: var(--tw); height: calc(var(--neck) + var(--lh) * 4.6 + 6px); padding: 0; background: none; transform-origin: 50% 0;
  transition: transform .28s cubic-bezier(.3, .7, .35, 1); }
/* faint reflection of the base on the table */
.sk-tube::after { content: ''; position: absolute; z-index: -1; left: 8%; right: 8%; bottom: -7px; height: 12px; border-radius: 50%; background: radial-gradient(closest-side, #8fa4ff40, #0000); }
.sk-tube.up { transform: translateY(calc(var(--tw) * -.3)); }
.sk-tube.pouring { z-index: 5; transition-duration: .3s; }
.sk-tube.new { animation: sknew .4s cubic-bezier(.3, 1.6, .5, 1); }
/* glass: thin near-transparent rim with a darker inner edge, faint tint, curved base */
.sk-body { position: absolute; left: 0; right: 0; bottom: 0; top: calc(var(--neck) - 2px); overflow: hidden;
  border: 1.5px solid #ffffff66; border-radius: calc(var(--tw) * .34) calc(var(--tw) * .34) calc(var(--tw) * .42) calc(var(--tw) * .42) / calc(var(--tw) * .26) calc(var(--tw) * .26) calc(var(--tw) * .3) calc(var(--tw) * .3);
  background: linear-gradient(90deg, #ffffff14, #ffffff06 30%, #ffffff02 60%, #ffffff10), #0a0f4a40;
  box-shadow: inset 0 0 0 1.5px #06082a55, inset 0 0 10px #00041f55, 0 0 0 .5px #0006, 0 8px 10px #05031f66; }
.sk-body::after { content: ''; position: absolute; z-index: 2; left: 16%; right: 16%; bottom: 3px; height: calc(var(--tw) * .18); border-radius: 50%; border-bottom: 1.5px solid #ffffff55; pointer-events: none; }
/* neck: dark stopper glass with a rim ring */
.sk-neck { position: absolute; z-index: 2; top: 5px; left: 50%; width: 46%; height: var(--neck); transform: translateX(-50%); border: 1.5px solid #ffffff55; border-bottom: 0; border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, #05072a, #23296a 32%, #0e1248 58%, #04061f); box-shadow: inset 0 0 0 1px #00000066; }
.sk-neck::before { content: ''; position: absolute; left: -5px; right: -5px; top: -7px; height: 9px; border-radius: 5px; border: 1.5px solid #ffffff55;
  background: linear-gradient(180deg, #3a3f8a, #0a0c38); box-shadow: 0 2px 2px #0006; }
.sk-neck::after { content: ''; position: absolute; left: 18%; width: 14%; top: 3px; bottom: 2px; border-radius: 99px; background: #ffffff55; }
.sk-liq { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column-reverse; }
/* liquid band: gently darker toward the edges, soft boundary */
.sk-layer { position: relative; display: grid; place-items: center; height: var(--lh); flex: none; font-style: normal;
  background: linear-gradient(180deg, #0000 78%, color-mix(in srgb, var(--c), #000 12%) 100%),
    linear-gradient(90deg, color-mix(in srgb, var(--c), #000 15%) 0%, var(--c) 22%, color-mix(in srgb, var(--c), #fff 10%) 45%, var(--c) 70%, color-mix(in srgb, var(--c), #000 13%) 100%); }
.sk-layer.join, .sk-liq > .sk-layer:first-child { background: linear-gradient(90deg, color-mix(in srgb, var(--c), #000 15%) 0%, var(--c) 22%, color-mix(in srgb, var(--c), #fff 10%) 45%, var(--c) 70%, color-mix(in srgb, var(--c), #000 13%) 100%); }
.sk-layer.flow { transition: height .3s linear; }
/* lit top ellipse on the top layer only */
.sk-layer:last-child::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: calc(var(--lh) * .36); transform: translateY(-50%); border-radius: 50%;
  background: radial-gradient(60% 80% at 42% 42%, color-mix(in srgb, var(--c), #fff 55%), color-mix(in srgb, var(--c), #fff 20%) 70%, color-mix(in srgb, var(--c), #000 6%)); }
/* colour-blind symbol: tone-on-tone emboss, small */
.sk-layer b { position: relative; font-size: calc(var(--lh) * .22); font-weight: 700; line-height: 1; color: color-mix(in srgb, var(--c), #000 22%); opacity: .8;
  text-shadow: 0 1px 0 color-mix(in srgb, var(--c), #fff 35%); }
/* curved specular down the left, a smaller one on the right */
.sk-shine { position: absolute; z-index: 3; left: 9%; width: 13%; top: calc(var(--tw) * .16); bottom: calc(var(--tw) * .24); border-radius: 99px 0 0 99px / 30% 0 0 30%; pointer-events: none;
  border-left: 2px solid #ffffffb0; background: linear-gradient(90deg, #ffffff60, #ffffff10); -webkit-mask: linear-gradient(180deg, #000 0, #000 70%, #0000); mask: linear-gradient(180deg, #000 0, #000 70%, #0000); }
.sk-shine::after { content: ''; position: absolute; left: 520%; width: 32%; top: 4%; height: 26%; border-radius: 99px; background: linear-gradient(180deg, #ffffff90, #ffffff00); }

/* completion: a cork pops into the neck, the glass glints gold and sparkles burst */
.sk-cap { position: absolute; z-index: 4; left: 50%; top: -4px; width: 60%; height: calc(var(--neck) * .8); transform: translateX(-50%) scale(0); opacity: 0; border-radius: 6px 6px 3px 3px;
  background: linear-gradient(90deg, #8c4e1f, #d9a061 32%, #f0c88f 44%, #b9773d 72%, #7a4219); border: 1px solid #4a2408; box-shadow: inset 0 -3px 0 #0003, inset 0 2px 0 #fff6, 0 2px 3px #0006; }
.sk-tube.done .sk-cap { transform: translateX(-50%) scale(1); opacity: 1; }
.sk-tube.done .sk-body { border-color: #ffe08a99; }
.sk-tube.capped .sk-cap { animation: skcap .45s cubic-bezier(.3, 1.7, .5, 1); }
.sk-tube.capped .sk-body { animation: skglint .5s ease-out; }
.sk-burst { position: absolute; z-index: 6; left: 50%; top: 4px; width: 0; height: 0; pointer-events: none; }
.sk-burst i { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; background: #fff3a8; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  transform: rotate(var(--a)) translateY(0) scale(.2); animation: skspark .75s ease-out forwards; }
.sk-burst i:nth-child(even) { background: #fff; }

.sk-tube.shake { animation: skshake .3s; }
.sk-stream { position: absolute; z-index: 4; border-radius: 99px; transform-origin: 50% 0; pointer-events: none;
  background: linear-gradient(90deg, #0002, #fff5 40%, #0000 60%, #0002), var(--c); animation: skstream .12s ease-in both; }
.sk-stream.off { transform-origin: 50% 100%; animation: skstreamoff .12s ease-out both; }

/* level 1 pointing hand */
.sk-hand { position: absolute; z-index: 7; width: 42px; height: 50px; margin: -6px 0 0 -14px; pointer-events: none; animation: skhand 1s ease-in-out infinite; filter: drop-shadow(0 4px 4px #0006); }
.sk-hand[hidden] { display: none; }
.sk-hand svg { width: 100%; height: 100%; display: block; }

/* stuck: a card over the bottom of the board */
.sk-stuck { position: absolute; left: 8px; right: 8px; bottom: 6px; z-index: 8; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 14px 16px;
  background: linear-gradient(180deg, #6b3fe0, #4b22b6); border: 3px solid #f0b42c; border-radius: 22px; box-shadow: 0 6px 0 #2a0f78, 0 12px 24px #0008; }
.sk-stuck[hidden] { display: none; }
.sk-stuck b { font-size: 21px; --sk-out: #2a0e74; }
.sk-stuck small { color: #e2dbff; }

/* ---------- glossy buttons, one radius, wide bevel ---------- */
.pz-play, .sk-giveup { min-height: 60px; border-radius: var(--sk-r); font-size: 28px; letter-spacing: .03em; --sk-out: #1f5a08;
  background: linear-gradient(180deg, #c4fa7a 0%, #78d838 46%, #4cb21c 54%, #3a9a12 100%); border: 3px solid #1f5a08;
  box-shadow: inset 0 6px 0 #ffffff70, inset 0 -8px 0 #2a7a0e, inset 0 0 0 2px #b4f57a55, 0 5px 0 #1f5a08, 0 10px 16px #0005; }
.sk-giveup { min-height: 48px; font-size: 18px; padding: 8px 26px; }
.pz-play:active, .sk-giveup:active { transform: translateY(3px); box-shadow: inset 0 6px 0 #ffffff70, inset 0 -8px 0 #2a7a0e, 0 2px 0 #1f5a08; }
.pz-ghost { min-height: 48px; border-radius: var(--sk-r); color: #fff; font-weight: 900; background: var(--sk-purple); border: 2px solid #c4a8ff; box-shadow: inset 0 2px 0 #ffffff44, 0 4px 0 #2c1180; text-shadow: 0 2px 0 #2c1180; }

/* ---------- boosters: 72px bevelled, gold-bordered, drawn icons, count or + badge ---------- */
.pz-boosters { gap: 26px; min-height: 86px; align-items: center; }
.pz-boost { position: relative; width: 72px; height: 72px; border-radius: var(--sk-r); background: var(--sk-purple); border: 3px solid #f0b42c;
  box-shadow: inset 0 3px 0 #d6c2ff, inset 0 -5px 0 #3a159088, 0 0 0 2px #7a4a08, 0 6px 0 #2c1180, 0 10px 14px #0007; }
.pz-boost:active { transform: translateY(4px); box-shadow: inset 0 3px 0 #d6c2ff, inset 0 -5px 0 #3a159088, 0 0 0 2px #7a4a08, 0 2px 0 #2c1180; }
.pz-boost i { width: 46px; height: 46px; background: center / contain no-repeat; filter: drop-shadow(0 2px 1px #1a0850aa); }
.pz-boost[data-id='undo'] i { background-image: var(--sk-undo); }
.pz-boost[data-id='tube'] i { background-image: var(--sk-flask); }
.pz-boost small { position: absolute; top: -10px; right: -10px; min-width: 28px; height: 28px; padding: 0 6px; display: grid; place-items: center; border-radius: 99px; font-size: 15px; font-weight: 900;
  background: linear-gradient(180deg, #ff6b6b, #d91f32); border: 2px solid #fff; box-shadow: 0 2px 0 #7a0f1a; text-shadow: 0 1px 0 #7a0f1a; }
.pz-boost[data-count='0'] small { font-size: 0; background: linear-gradient(180deg, #a6ee5c, #3fa616); box-shadow: 0 2px 0 #1f5a08; }
.pz-boost[data-count='0'] small::after { content: '+'; font-size: 22px; line-height: 1; text-shadow: 0 1px 0 #1f5a08; }

/* ---------- map: sky with parallax pink and lilac cloud layers, the island, plush nodes ---------- */
body[data-screen='home'] { background: linear-gradient(180deg, #2f7fe6 0%, #5fabf5 38%, #a9d6ff 68%, #f6c9e6 100%) fixed; }
body[data-screen='home']::before { opacity: .9; animation: skdrift 90s linear infinite; background:
  radial-gradient(70px 30px at 8% 14%, #e8d8ff 60%, transparent 62%), radial-gradient(100px 40px at 22% 17%, #efe2ff 60%, transparent 62%),
  radial-gradient(90px 34px at 88% 9%, #e6d6ff 60%, transparent 62%), radial-gradient(120px 44px at 70% 40%, #e2d2ffaa 60%, transparent 62%),
  radial-gradient(110px 40px at 10% 52%, #eadcffaa 60%, transparent 62%); background-size: 200% 100%; }
body[data-screen='home']::after { content: ''; position: fixed; inset: 0; pointer-events: none; animation: skdrift 50s linear infinite reverse; background:
  radial-gradient(170px 64px at 0% 78%, #ffd6ef 60%, transparent 62%), radial-gradient(190px 70px at 50% 88%, #ffe2f4 60%, transparent 62%),
  radial-gradient(160px 60px at 100% 74%, #ffcfe9 60%, transparent 62%), radial-gradient(130px 50px at 30% 98%, #fff 60%, transparent 62%),
  radial-gradient(150px 56px at 80% 100%, #fff4fb 60%, transparent 62%); background-size: 200% 100%; }
.pz-home { gap: 10px; }
.pz-path { position: relative; isolation: isolate; justify-content: flex-start; gap: 26px; padding-top: 24px; }
.sk-island { position: absolute; z-index: -2; left: -12px; top: 0; width: calc(100% + 24px); height: 100%; filter: drop-shadow(0 16px 18px #2a3a8a40); pointer-events: none; overflow: visible; }
.sk-trail { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* five nodes at most: three ahead, the current one and the last cleared */
.pz-node:nth-of-type(n+6) { display: none; }
/* plush embossed pad: lit top, gold rim, stitched inner ring, darker side wall, soft contact shadow */
.pz-node { z-index: 1; width: 100px; height: 60px; border-radius: 50%; font-size: 24px; --sk-out: #6a0a5a;
  background: radial-gradient(45% 35% at 40% 28%, #ffd6f6aa, #0000), radial-gradient(80% 75% at 50% 35%, #ff8ce4 0%, #e03cbc 52%, #b01c9c 100%);
  box-shadow: inset 0 0 0 3px #ffd25a, inset 0 0 0 4.5px #a8600a, inset 0 5px 8px #ffffff55, inset 0 -8px 10px #6a0a5a66,
    0 6px 0 #9a1684, 0 9px 0 #6a0a5a, 0 18px 10px -4px #1a2a6a66; }
.pz-node::before { content: ''; position: absolute; inset: 9px 12px; border-radius: 50%; border: 1.5px dashed #ffffff60; pointer-events: none; }
.pz-node b { position: relative; z-index: 1; }
.pz-node.done { background: radial-gradient(45% 35% at 40% 28%, #f0dcffaa, #0000), radial-gradient(80% 75% at 50% 35%, #d9a0ff 0%, #a654e6 52%, #7a30b8 100%); --sk-out: #3a0e6a;
  box-shadow: inset 0 0 0 3px #ffd25a, inset 0 0 0 4.5px #a8600a, inset 0 5px 8px #ffffff55, inset 0 -8px 10px #3a0e6a66, 0 6px 0 #5e2696, 0 9px 0 #3a0e6a, 0 18px 10px -4px #1a2a6a66; }
.pz-node.locked { background: radial-gradient(45% 35% at 40% 28%, #ffffff66, #0000), radial-gradient(80% 75% at 50% 35%, #d8cfe6 0%, #ab9fc0 52%, #857a9c 100%);
  box-shadow: inset 0 0 0 3px #d9c79a, inset 0 0 0 4.5px #8a7650, inset 0 5px 8px #ffffff55, inset 0 -8px 10px #4a3e6066, 0 6px 0 #6a5e84, 0 9px 0 #4a3e60, 0 18px 10px -4px #1a2a6a55; }
.pz-node.locked b { opacity: 0; }
.pz-node.locked::after { content: ''; position: absolute; left: 50%; top: 50%; width: 24px; height: 28px; margin: -15px 0 0 -12px; background: var(--sk-lock) center / contain no-repeat; filter: drop-shadow(0 2px 1px #0005); }
.pz-node:disabled { opacity: 1; }
/* current: bigger, glow ring, portrait to the outer side (off the trail) that bounces */
.pz-node.now { width: 112px; height: 68px; font-size: 28px;
  box-shadow: inset 0 0 0 3px #ffd25a, inset 0 0 0 4.5px #a8600a, inset 0 5px 8px #ffffff66, inset 0 -8px 10px #6a0a5a66,
    0 0 0 4px #fff3a6, 0 0 0 8px #ffc531aa, 0 0 30px 12px #fff3a6aa, 0 8px 0 #9a1684, 0 11px 0 #6a0a5a, 0 22px 12px -4px #1a2a6a77;
  animation: sknow 1.6s ease-in-out infinite; }
.pz-node.now::after { content: ''; position: absolute; top: -26px; width: 52px; height: 56px; background: var(--sk-portrait) center / contain no-repeat; filter: drop-shadow(0 4px 3px #0006); animation: skbob 1.1s ease-in-out infinite; }
.pz-node.now:nth-child(odd)::after { right: calc(100% - 2px); }
.pz-node.now:nth-child(even)::after { left: calc(100% - 2px); }
.pz-node span { bottom: -22px; z-index: 1; font-size: 14px; color: #ffd23a; letter-spacing: 1px; text-shadow: 0 1px 0 #7a3c00, 1px 0 0 #7a3c00, -1px 0 0 #7a3c00, 0 -1px 0 #7a3c00; }
/* single Play call to action, slightly narrower */
.pz-home > .pz-play { width: 76%; align-self: center; }
/* slim tab bar with rendered icons */
.pz-row { gap: 0; padding: 0 6px; min-height: 58px; margin-top: 18px; border-radius: var(--sk-r); background: linear-gradient(180deg, #7a4cf0, #4a20b0); border: 2.5px solid #f0b42c; box-shadow: inset 0 2px 0 #c7a8ff, 0 4px 0 #2a0f78, 0 8px 14px #0005; }
.pz-ghost[data-tab] { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0; min-height: 56px; padding: 0 4px 6px; background: none; border: 0; box-shadow: none; }
.pz-ghost[data-tab] span { font-size: 13px; --sk-out: #2a0e74; text-shadow: 2px 0 0 var(--sk-out), -2px 0 0 var(--sk-out), 0 2px 0 var(--sk-out), 0 -2px 0 var(--sk-out), 0 3px 0 #1f0a4d; }
.pz-ghost[data-tab] + .pz-ghost[data-tab] { border-left: 1.5px solid #ffffff22; border-radius: 0; }
.sk-tab-ico { width: 56px; height: 56px; margin-top: -26px; background: center / contain no-repeat; filter: drop-shadow(0 3px 2px #1a0850aa); }
.pz-ghost[data-tab='shop'] .sk-tab-ico { background-image: var(--sk-shop); }
.pz-ghost[data-tab='trophy'] .sk-tab-ico { background-image: var(--sk-trophy); }
.pz-ghost[data-tab='book'] .sk-tab-ico { background-image: var(--sk-book); }
.pz-ghost[data-tab]:active .sk-tab-ico { transform: translateY(2px) scale(.96); }
.pz-note { color: #fff; font-size: 11px; text-shadow: 0 1px 2px #6a3a8a; }

/* ---------- sheets: purple panel with the orange rim ---------- */
.pz-modal { background: #0b0830b8; }
.pz-sheet { background: linear-gradient(180deg, #7b4cf0 0%, #5a2ccc 40%, #4a20b0 100%); border-top: 6px solid #ffae22; box-shadow: inset 0 3px 0 #ffd36a, 0 -10px 30px #0007; color: #fff; }
.pz-sheet h2 { font-size: 30px; color: #ffd23a; }
.pz-sheet p { color: #e6dfff; }
.pz-buy { min-height: 58px; border-radius: var(--sk-r); background: #ffffff1c; border: 2px solid #ffffff26; color: #fff; }
.pz-buy small { color: #ddd5ff; }
.pz-buy b { background: linear-gradient(180deg, #a6ee5c, #4cb520); color: #fff; box-shadow: 0 3px 0 #2a6e0e; text-shadow: 0 1px 0 #2a6e0e; }
.pz-buy.focus { outline: 3px solid #ffd23a; }
.pz-modal:has(.win), .pz-modal:has(.lose) { align-items: center; }
.pz-sheet.win, .pz-sheet.lose { position: relative; width: min(100% - 32px, 400px); border: 4px solid #ffae22; border-radius: 28px; padding: 26px 18px 20px; gap: 12px; overflow: visible;
  box-shadow: inset 0 3px 0 #ffd36a, 0 8px 0 #2a0f78, 0 20px 40px #000a; animation: skcard .4s cubic-bezier(.3, 1.5, .5, 1); }
.pz-modal:has(.win)::before { content: ''; position: fixed; left: 50%; top: 50%; width: 900px; height: 900px; margin: -450px 0 0 -450px; pointer-events: none; animation: skrays 14s linear infinite;
  background: repeating-conic-gradient(#ffd23a1f 0 9deg, #0000 9deg 22.5deg); -webkit-mask: radial-gradient(circle, #000 15%, #0000 60%); mask: radial-gradient(circle, #000 15%, #0000 60%); }
.pz-sheet.win h2 { font-size: 34px; }
.pz-stars { font-size: 54px; line-height: 1; letter-spacing: 6px; color: #ffd23a !important; --sk-out: #8a4200; }
.pz-sheet.win .pz-stars { animation: skstars .6s .15s cubic-bezier(.3, 1.6, .5, 1) both; }
.pz-sheet.lose h2 { color: #ff8aa6; }

/* ---------- motion ---------- */
@keyframes sknew { from { transform: scale(.3); opacity: 0 } }
@keyframes skshake { 20% { transform: translateX(-5px) } 50% { transform: translateX(5px) } 80% { transform: translateX(-3px) } }
@keyframes skcap { 0% { transform: translate(-50%, calc(var(--tw) * -.9)) scale(.5); opacity: 0 } 60% { transform: translate(-50%, 2px) scale(1.15, .9); opacity: 1 } 100% { transform: translateX(-50%) scale(1) } }
@keyframes skglint { 30% { box-shadow: 0 0 0 2px #ffe066, 0 0 18px #ffe066cc, inset 0 0 12px #fff8 } }
@keyframes skspark { 0% { transform: rotate(var(--a)) translateY(0) scale(.2); opacity: 1 } 100% { transform: rotate(var(--a)) translateY(calc(var(--tw) * -1.1 * var(--d))) scale(1); opacity: 0 } }
@keyframes skstream { from { transform: scaleY(0) } }
@keyframes skstreamoff { to { transform: scaleY(0) } }
@keyframes skhand { 50% { transform: translateY(10px) scale(.94) } }
@keyframes sktwinkle { 0%, 100% { opacity: .15; transform: scale(.5) } 50% { opacity: .9; transform: scale(1) } }
@keyframes sknow { 50% { filter: brightness(1.1) } }
@keyframes skbob { 0%, 100% { transform: translateY(0) } 45% { transform: translateY(-9px) } 60% { transform: translateY(-9px) } }
@keyframes skdrift { to { background-position: 200% 0 } }
@keyframes skcard { from { transform: scale(.6); opacity: 0 } }
@keyframes skrays { to { transform: rotate(360deg) } }
@keyframes skstars { from { transform: scale(.2); opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .sk-hand, .sk-twinkle, .pz-node.now, .pz-node.now::after, body::before, body::after, .pz-modal:has(.win)::before { animation: none } }
