/* R58.24: all effects are scoped to the Plinko board. */
#pp-game-dialog .pp-game-board.pp-plinko-board{display:flex!important;flex-direction:column!important;height:auto!important;min-height:0!important;padding:12px!important;background:#25143d!important;border-radius:20px;overflow:hidden;color:#fff}
#pp-game-dialog .pp-plinko-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 8px;min-height:36px;width:100%}
#pp-game-dialog .pp-plinko-heading [data-pp-paid-plays]{display:flex;align-items:center;justify-content:flex-start!important;gap:8px!important;width:auto!important;min-width:0!important;margin:0}
#pp-game-dialog .pp-plinko-heading .pp-balance-label{white-space:nowrap!important;font-size:15px!important;color:#fff!important}
#pp-game-dialog .pp-plinko-heading .pp-balance-value{display:flex;align-items:center;gap:4px!important;white-space:nowrap;width:auto!important;min-width:0!important;min-height:0!important;padding:0!important;background:transparent!important;border:0!important;color:#6effd8!important}
#pp-game-dialog .pp-plinko-heading .pp-balance-value strong{font-size:18px!important;color:#6effd8!important}
#pp-game-dialog .pp-plinko-heading .pp-balance-value>span{font-size:13px!important;color:#6effd8!important}
.pp-plinko-count{font-size:16px;font-weight:700;white-space:nowrap;color:#6effd8;font-variant-numeric:tabular-nums}
#pp-game-dialog .pp-plinko-arena{position:relative;width:100%;max-width:550px;margin:0 auto;line-height:0}
#pp-game-dialog .pp-plinko-svg{display:block;width:100%!important;max-width:none!important;height:auto!important;max-height:48vh;overflow:visible}
.pp-pin-core{fill:url(#pp-pin-glass);stroke:#ad7ce9;stroke-width:1.2}.pp-pin-glint{fill:#d3fff4}.pp-pin-wave{fill:none;stroke:var(--hit-color,#6effd8);stroke-width:2;opacity:0}
.pp-plinko-pin.is-colliding .pp-pin-core{fill:var(--hit-color,#6effd8);stroke:var(--hit-color,#6effd8)}.pp-plinko-pin.is-colliding .pp-pin-wave{animation:pp-pin-impact .72s ease-out both}
@keyframes pp-pin-impact{0%{r:6;opacity:1;stroke-width:3}100%{r:20;opacity:0;stroke-width:.4}}
.pp-bin-wobble{transform-box:fill-box;transform-origin:center;animation:pp-bin-idle var(--idle-length,3.5s) ease-in-out var(--idle-delay,0s) infinite}
@keyframes pp-bin-idle{0%,100%{transform:translateY(1px) rotate(-2deg)}45%{transform:translateY(-4px) rotate(2.5deg)}75%{transform:translateY(-1px) rotate(-1deg)}}
.pp-bin-face{stroke-width:2;stroke:transparent}.pp-plinko-bin.is-mint .pp-bin-face{fill:#6effd8}.pp-plinko-bin.is-purple .pp-bin-face{fill:#a56bed}
.pp-bin-label{font:700 22px Arial,sans-serif;fill:#241137}.pp-bin-label[data-multiplier="100"]{font-size:18px}
.pp-bin-pop{font:700 24px Arial,sans-serif;fill:#6effd8;opacity:0}.pp-bin-count{font:700 18px Arial,sans-serif;fill:#c7a5fa}
.pp-plinko-bin.is-hit .pp-bin-face{fill:url(#pp-bin-hit)!important;stroke:#6effd8;stroke-width:3}.pp-plinko-bin.is-hit .pp-bin-label{fill:#fff}.pp-plinko-bin.is-hit .pp-bin-pulse{transform-box:fill-box;transform-origin:center;animation:pp-bin-arrival .8s ease-in-out 2}
.pp-plinko-bin.is-hit .pp-bin-pop{animation:pp-bin-number 2.2s ease-out both}
@keyframes pp-bin-arrival{0%,100%{transform:translateY(0) scale(1)}35%{transform:translateY(-7px) scale(1.08) rotate(3deg)}65%{transform:translateY(-2px) scale(.98) rotate(-2deg)}}
@keyframes pp-bin-number{0%{opacity:0;transform:translateY(6px)}12%,75%{opacity:1;transform:translateY(-3px)}100%{opacity:0;transform:translateY(-14px)}}
.pp-ball-shimmer{animation:pp-ball-shimmer 1.4s ease-in-out infinite}.pp-ball-spark{opacity:.2;animation:pp-ball-spark 1.9s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
@keyframes pp-ball-shimmer{0%,100%{opacity:.4}50%{opacity:1}}@keyframes pp-ball-spark{0%,100%{opacity:.12;transform:scale(.65)}50%{opacity:.8;transform:scale(1.05)}}
#pp-game-dialog .pp-plinko-controls{display:flex;align-items:center;justify-content:center;gap:10px;min-height:92px;flex:1;width:100%;padding:12px 0;margin:0}
#pp-game-dialog .pp-plinko-controls button{min-height:44px;min-width:180px;max-width:100%;border-radius:999px;font-size:15px;font-weight:700}
#pp-game-dialog [data-plinko-drop]:not(:disabled){background:linear-gradient(115deg,#6effd8,#26d9be,#9a55ed,#6effd8);background-size:300% 100%;color:#231235;animation:pp-drop-wander 3.3s ease-in-out infinite,pp-drop-flow 5s linear infinite;border:0}
@keyframes pp-drop-wander{0%,100%{transform:translateY(1px) rotate(-.8deg)}50%{transform:translateY(-3px) rotate(.8deg)}}@keyframes pp-drop-flow{to{background-position:150% 50%}}
#pp-game-dialog .pp-plinko-character{position:absolute;inset:0;pointer-events:none;z-index:2}
#pp-game-dialog .pp-plinko-character .pp-game-companion{position:absolute!important;right:7px!important;top:10px!important;left:auto!important;bottom:auto!important;width:98px!important;height:108px!important;overflow:visible!important}
#pp-game-dialog .pp-plinko-character .pp-puppet{width:100%!important;height:100%!important}
.pp-plinko-settlement{display:flex;justify-content:center;flex-wrap:wrap;gap:10px 24px;text-align:center;padding:8px 0}.pp-plinko-settlement div{display:flex;flex-direction:column;gap:4px}.pp-plinko-settlement span{font-size:14px}.pp-plinko-settlement strong{font-size:18px;color:#7135b6}
/* Three shared game-header controls use one type scale and center line. */
#pp-game-dialog .pp-game-bar .pp-preview-badge,#pp-game-dialog .pp-game-bar .pp-session-actions button{font-size:14px!important;font-weight:700!important;line-height:1.25!important;display:flex!important;align-items:center!important;justify-content:center!important;min-height:40px!important}
@media(max-width:420px){#pp-game-dialog .pp-game-board.pp-plinko-board{padding:8px!important}#pp-game-dialog .pp-plinko-heading{padding:0;gap:6px}#pp-game-dialog .pp-plinko-heading .pp-balance-label{font-size:13px!important}#pp-game-dialog .pp-plinko-heading .pp-balance-value strong{font-size:16px!important}#pp-game-dialog .pp-plinko-svg{max-height:43vh}#pp-game-dialog .pp-plinko-controls{min-height:78px;padding:10px 0}#pp-game-dialog .pp-plinko-character .pp-game-companion{width:76px!important;height:84px!important;top:7px!important;right:0!important}.pp-plinko-settlement{gap:8px 14px}.pp-plinko-settlement strong{font-size:16px}}
@media(prefers-reduced-motion:reduce){.pp-bin-wobble,.pp-bin-pulse,.pp-bin-pop,.pp-ball-shimmer,.pp-ball-spark,.pp-pin-wave,#pp-game-dialog [data-plinko-drop]{animation:none!important}.pp-plinko-bin.is-hit .pp-bin-pop{opacity:1}}
/* START has its own launch position; the prize bins occupy the bottom of the field. */
#pp-game-dialog .pp-plinko-controls{position:absolute;left:50%;top:14px;width:auto;min-height:0;transform:translateX(-50%);padding:0;margin:0;z-index:4}
#pp-game-dialog .pp-plinko-controls [data-plinko-drop]{min-width:112px;min-height:46px;padding:10px 24px;border-radius:16px;font-size:18px;letter-spacing:.08em;box-shadow:0 6px 0 #1d857e,0 10px 18px #130b28aa,inset 0 2px 0 #bcffec;touch-action:manipulation}
#pp-game-dialog .pp-plinko-controls [data-plinko-drop]:active{transform:translateY(4px);box-shadow:0 2px 0 #1d857e,0 5px 10px #130b28aa;animation:none}
#pp-game-dialog .pp-plinko-controls [data-plinko-check]{min-width:150px;font-size:13px}
#pp-game-dialog .pp-plinko-character .pp-game-companion{width:90px!important;height:94px!important;top:0!important;right:5px!important}
#pp-game-dialog .pp-plinko-svg{max-height:51vh}
@media(max-width:420px){#pp-game-dialog .pp-plinko-controls{min-height:0;padding:0;top:8px}#pp-game-dialog .pp-plinko-controls [data-plinko-drop]{min-width:98px;min-height:44px;padding:8px 17px;font-size:16px}#pp-game-dialog .pp-plinko-character .pp-game-companion{width:70px!important;height:74px!important;top:0!important;right:0!important}#pp-game-dialog .pp-plinko-svg{max-height:47vh}}
.pp-plinko-confetti{pointer-events:none}.pp-plinko-confetti-piece{animation:pp-plinko-fireworks 1.5s cubic-bezier(.1,.6,.4,1) both;transform-box:fill-box;transform-origin:center}
@keyframes pp-plinko-fireworks{0%{opacity:1;transform:translate(0,0) rotate(0deg) scale(1.2)}50%{opacity:1;transform:translate(calc(var(--dx)*.6),var(--dy)) rotate(calc(var(--turn)*.6))}100%{opacity:0;transform:translate(var(--dx),calc(var(--dy)*.35)) rotate(var(--turn)) scale(.6)}}
@media(prefers-reduced-motion:reduce){.pp-plinko-confetti{display:none}}

/* Pop-art reward lettering stays readable within each 48-unit prize tile. */
.pp-bin-depth{fill:#471778;stroke:#32124f;stroke-width:1.5}.is-mint .pp-bin-depth{fill:#218d80;stroke:#165f5a}
.pp-bin-face{stroke:#c9a1fb;stroke-width:1.5}.is-mint .pp-bin-face{stroke:#bcffec}
.pp-bin-highlight{fill:none;stroke:#fff;stroke-opacity:.65;stroke-width:2;stroke-linecap:round}
.pp-bin-label{font-family:Arial,Helvetica,sans-serif;font-size:23px;font-weight:900;font-style:italic;letter-spacing:-.8px;fill:#fff;stroke:#4c1a78;stroke-width:3px;paint-order:stroke fill;stroke-linejoin:round;filter:drop-shadow(1px 2px 0 #38115a)}
.pp-bin-label[data-multiplier="100"]{font-size:18px;letter-spacing:-1px;stroke-width:2.5px}
.pp-bin-pop{font:italic 900 30px Arial,sans-serif;fill:#fff;stroke:#7135b6;stroke-width:4px;paint-order:stroke fill;stroke-linejoin:round;filter:drop-shadow(1px 2px 0 #32124f)}
.pp-plinko-bin.is-hit .pp-bin-label{fill:#fff;stroke:#4c1a78}

/* R58.25: three equal labels, a clear launch gap, and a visible PLAY state. */
#pp-game-dialog .pp-game-bar :is(.pp-preview-badge,#pp-restart,#pp-other-game){font-size:14px!important;font-weight:700!important;line-height:1.25!important}
#pp-game-dialog .pp-plinko-controls{top:-12px!important}
#pp-game-dialog .pp-plinko-controls [data-plinko-drop]{margin:0!important;align-self:center;white-space:nowrap}
#pp-game-dialog .pp-plinko-board[data-phase="falling"] [data-plinko-drop],#pp-game-dialog .pp-plinko-board[data-phase="waiting"] [data-plinko-drop]{opacity:1;background:#6effd8;color:#231235;cursor:default}
@media(max-width:420px){#pp-game-dialog .pp-plinko-controls{top:-4px!important}#pp-game-dialog .pp-plinko-character .pp-game-companion{height:66px!important;top:-6px!important}}

/* R58.27: intrinsic board size; settlement extends only the lower background. */
#pp-game-dialog.is-featured:has(.pp-plinko-board){height:auto!important;overflow:auto!important;max-height:calc(100dvh - 16px)!important}
#pp-game-dialog.is-featured[data-plinko-layout="anchored"]:has(.pp-plinko-board){top:var(--pp-plinko-dialog-top);bottom:auto;margin:0 auto!important;max-height:calc(100dvh - var(--pp-plinko-dialog-top) - 8px)!important}
#pp-game-dialog.is-featured:has(.pp-plinko-board) #pp-game-mount{flex:none!important;height:auto!important}
#pp-game-dialog.is-featured:has(.pp-plinko-board) .pp-game{height:auto!important;grid-template-rows:auto auto!important}
#pp-game-dialog .pp-game-board.pp-plinko-board{justify-content:flex-start!important;align-items:stretch!important;flex:none!important}
#pp-game-dialog .pp-plinko-heading{flex:0 0 48px;min-height:48px;align-self:stretch}
#pp-game-dialog .pp-plinko-arena{flex:none;min-height:0;display:block;height:auto}
#pp-game-dialog .pp-plinko-svg{height:auto!important;min-height:0}
#pp-game-dialog.is-featured:has(.pp-plinko-board) .pp-game-message:empty{display:none!important}
#pp-game-dialog.is-featured:has(.pp-plinko-board) .pp-game-message:not(:empty){display:grid!important;height:64px!important;min-height:64px!important;align-content:center}
#pp-game-dialog .pp-plinko-settlement{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:8px;padding:4px 0;min-width:0;width:100%;height:64px;box-sizing:border-box}
#pp-game-dialog .pp-plinko-settlement>div{min-width:0;gap:4px}
#pp-game-dialog .pp-plinko-settlement span{font-size:14px;line-height:1.25}
#pp-game-dialog .pp-plinko-settlement strong{font-size:18px;line-height:1.3;white-space:nowrap}
@media(max-width:420px){#pp-game-dialog .pp-plinko-settlement span{font-size:13px;line-height:1.2}#pp-game-dialog .pp-plinko-settlement strong{font-size:16px;line-height:1.3}}
#pp-game-dialog .pp-game-board.pp-plinko-board{container-type:normal;contain:none;scrollbar-width:none}
#pp-game-dialog.is-featured:has(.pp-plinko-board){scrollbar-width:none}
#pp-game-dialog.is-featured:has(.pp-plinko-board)::-webkit-scrollbar{display:none}

/* R58.28: equal-width lavender settlement panel, with balanced inset and centered text. */
#pp-game-dialog.is-featured:has(.pp-plinko-board) .pp-game-message:not(:empty){height:76px!important;min-height:76px!important}
#pp-game-dialog .pp-plinko-settlement{width:100%;height:76px;padding:12px;background:#eee5f8;border-radius:20px;align-items:stretch}
#pp-game-dialog .pp-plinko-settlement>div{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;height:100%}

/* R58.29: settlement is present from mount; all rows contribute to white popup height. */
#pp-game-dialog.is-featured.is-playing[open]:has(.pp-plinko-board){height:auto!important;min-height:0!important;overflow:auto!important;padding-bottom:0!important}
#pp-game-dialog.is-featured:has(.pp-plinko-board) #pp-game-mount{flex:0 0 auto!important;min-height:min-content!important}
#pp-game-dialog.is-featured:has(.pp-plinko-board) .pp-game{height:auto!important;grid-template-rows:auto auto 76px!important;min-height:0!important;align-content:start;box-sizing:border-box}
#pp-game-dialog.is-featured:has(.pp-plinko-board) .pp-game-message{grid-row:3!important;position:static!important;width:100%;height:76px!important;min-height:76px!important}
/* Longer translations may grow the panel while keeping equal inset and centered cells. */
#pp-game-dialog.is-featured:has(.pp-plinko-board) .pp-game{grid-template-rows:auto auto auto!important}
#pp-game-dialog.is-featured:has(.pp-plinko-board) .pp-game-message:not(:empty){height:auto!important;min-height:76px!important}
#pp-game-dialog .pp-plinko-settlement{height:auto;min-height:76px}
#pp-game-dialog .pp-plinko-settlement span{overflow-wrap:anywhere}
@media(max-width:360px){#pp-game-dialog .pp-plinko-settlement strong{font-size:14px;letter-spacing:-.02em}}

/* R58.32: one roulette-sized game shell and one settlement scale for all games. */
#pp-game-dialog.is-featured[data-current-game="plinko"].is-playing[open]{width:min(660px,calc(100vw - 16px))!important;height:min(740px,calc(100dvh - 16px))!important;max-height:calc(100dvh - 16px)!important;top:0!important;bottom:0!important;margin:auto!important;padding-bottom:0!important;overflow:auto!important;scrollbar-width:none}
#pp-game-dialog.is-featured[data-current-game="plinko"].is-playing[open]::-webkit-scrollbar{display:none}
#pp-game-dialog.is-featured[data-current-game="plinko"] #pp-game-mount{flex:1 1 0!important;height:auto!important;min-height:0!important}
#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-dialog-head{padding:10px 12px!important;min-height:48px}
#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-dialog-head small{display:none}
#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-game{height:100%!important;min-height:0!important;display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;gap:10px!important;padding:0 12px 12px!important}
#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-game-bar{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:auto 40px!important;gap:8px!important;align-content:start!important}
#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-game-bar>.pp-game-ticket-count{display:none!important}
#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-game-instruction{grid-column:1/-1!important;grid-row:1!important;min-height:24px!important}
#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-game-instruction #pp-game-stat{font-size:14px!important;line-height:1.3;min-height:0!important}
#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-session-actions{display:contents!important}
#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-session-actions #pp-restart{grid-column:1!important;grid-row:2!important}
#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-session-actions #pp-other-game{grid-column:2!important;grid-row:2!important}
#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-session-actions button{width:100%!important;height:40px!important;min-height:40px!important;margin:0!important;padding:8px 12px!important;border:0!important;border-radius:999px!important;background:#c4f8e8!important;color:#241137!important;box-shadow:none!important;font-size:15px!important;line-height:1.2!important;font-weight:700!important}
#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-session-actions button:not(:disabled):is(:hover,:focus-visible){background:#8624e8!important;color:#fff!important;box-shadow:none!important;outline:0!important}
#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-session-actions button:disabled{opacity:.6}
#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-game-board,#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-game-board.pp-plinko-board{height:100%!important;min-height:0!important;max-height:none!important;padding:12px!important;overflow:hidden!important;contain:none!important;box-sizing:border-box;grid-row:2!important;grid-column:1!important}
#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-game-board.pp-plinko-board{display:flex!important;flex-direction:column!important;align-items:stretch!important}
#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-plinko-heading{flex:0 0 40px!important;min-height:40px!important}
#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-plinko-arena{flex:1 1 0!important;min-height:0!important;height:auto!important;max-width:none!important;display:flex!important;align-items:center!important;justify-content:center!important}
#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-plinko-svg{width:100%!important;height:100%!important;max-height:100%!important;object-fit:contain;overflow:visible}
#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-plinko-controls{top:0!important;min-height:0!important}
#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-plinko-controls [data-plinko-drop]{letter-spacing:0;min-width:108px!important;min-height:40px!important;height:40px!important;padding:8px 16px!important;font-size:16px!important}
#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-game-message,#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-game-message.is-result,#pp-game-dialog.is-featured[data-current-game="plinko"]:has(.pp-plinko-board) .pp-game-message:not(:empty){grid-row:3!important;width:100%!important;min-height:0!important;height:auto!important;display:block!important;margin:0!important;padding:0!important;background:transparent!important}
#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-game-message:empty{display:none!important}
#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-plinko-settlement{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:stretch!important;gap:8px!important;width:100%!important;min-height:86px!important;height:auto!important;padding:12px!important;margin:0!important;border-radius:20px;background:#eee5f8!important}
#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-plinko-settlement>div{display:flex!important;flex-direction:column;justify-content:center;align-items:center;gap:6px;text-align:center;min-width:0}
#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-plinko-settlement>div>span{font-size:14px!important;line-height:1.25;font-weight:500;color:#3c165e;overflow-wrap:anywhere}
#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-plinko-settlement strong{display:flex!important;flex-wrap:wrap;align-items:baseline;justify-content:center;column-gap:3px;row-gap:0;font-size:24px!important;line-height:1.2;white-space:normal!important;color:#7135b6;font-variant-numeric:tabular-nums}
#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-plinko-settlement .pp-reward-number{font:inherit;font-weight:750;white-space:nowrap}
#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-plinko-settlement .pp-reward-unit{font-size:12px!important;font-weight:400;white-space:nowrap}
#pp-game-dialog .pp-game-board .pp-balance-value>strong{font-size:24px!important;font-weight:700!important}
#pp-game-dialog .pp-game-board .pp-balance-value>span{font-size:12px!important;font-weight:400!important}
#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-lucky-choices{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:10px!important;width:100%!important;height:100%!important;max-width:none!important;align-content:stretch;justify-content:center;padding:4px!important}
#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-lucky-choice{display:flex!important;flex-direction:column;justify-content:center;align-items:center;min-width:0!important;min-height:0!important;width:100%!important;height:100%!important;padding:8px 4px!important;gap:4px!important;border-radius:16px!important}
#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-lucky-choice:nth-child(13){grid-column:2}
#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-lucky-choice:nth-child(14){grid-column:3}
#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-lucky-choice b{font-size:22px!important;line-height:1.1}
#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-lucky-choice.is-revealed{opacity:1!important;transform:none!important;background:#6effd8!important;color:#241137!important}
#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-lucky-choice .pp-card-multiplier{font-size:clamp(22px,4vw,34px)!important;font-weight:800;color:#3c165e;white-space:nowrap}
#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-lucky-choice .pp-card-outcome{font-size:12px!important;font-weight:700;line-height:1.25;white-space:normal;overflow-wrap:anywhere}
#pp-game-dialog .pp-money-input .pp-max{flex:0 0 auto!important;width:auto!important;min-width:54px!important;height:30px!important;min-height:30px!important;padding:5px 10px!important;margin:0!important;border:0!important;border-radius:10px!important;background:#eee5f8!important;color:#7135b6!important;box-shadow:none!important;font-size:13px!important;line-height:20px!important;font-weight:700!important}
#pp-game-dialog .pp-money-input .pp-max:active{transform:scale(.96)}
#pp-game-dialog .pp-money-input .pp-max:focus-visible{outline:2px solid #7135b6;outline-offset:2px}
@media(max-width:480px){#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-game{gap:8px!important;padding:0 8px 8px!important}#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-game-board,#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-game-board.pp-plinko-board{padding:8px!important}#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-session-actions button{font-size:14px!important}#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-plinko-settlement strong{font-size:22px!important}#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-plinko-settlement>div>span{font-size:12px!important}#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-lucky-choices{gap:8px!important}}
@media(max-width:360px){#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-plinko-settlement strong{font-size:18px!important}#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-plinko-settlement .pp-reward-unit{font-size:11px!important}#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-game-instruction #pp-game-stat{font-size:12px!important}#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-lucky-choices{gap:6px!important}#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-lucky-choice .pp-card-outcome{font-size:10px!important}}

#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-game-board:not(.pp-plinko-board):not([data-game="ladder"]){padding-top:42px!important}
#pp-game-dialog.is-featured[data-current-game="plinko"] .pp-game-instruction{min-height:36px!important}

/* Preserve the original mobile field layout. Full numeric values stay in the inputs. */
@media(max-width:480px){
#pp-game-dialog.is-wager .pp-money-input,#pp-game-dialog.is-funds .pp-money-input{padding:8px!important;gap:4px!important;overflow:hidden}
#pp-game-dialog .pp-money-input .pp-max{width:44px!important;min-width:44px!important;padding:5px 6px!important;font-size:12px!important}
#pp-game-dialog .pp-money-input>span{font-size:12px!important;flex-shrink:0}
#pp-game-dialog.is-wager .pp-balance-value,#pp-game-dialog.is-funds .pp-balance-value{display:flex!important;flex-wrap:nowrap!important;justify-content:flex-end!important;gap:4px!important}
#pp-game-dialog.is-wager .pp-balance-value strong,#pp-game-dialog.is-funds .pp-balance-value strong{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:0 1 auto}
#pp-game-dialog.is-wager .pp-balance-value>span,#pp-game-dialog.is-funds .pp-balance-value>span{flex-shrink:0}
}
/* Wallet top-up / transfer controls keep their existing size and mint surface. */
#paxplay-root .pp-play-wallet-row>.pp-ppax-actions button{border:0!important;box-shadow:none!important}
#paxplay-root .pp-play-wallet-row>.pp-ppax-actions button:is(:hover,:focus-visible){background:#8624e8!important;color:#fff!important;box-shadow:none!important;outline:0!important}
#pp-game-dialog .pp-money-input .pp-max{background:#f4edfb!important}

/* R58.33: original roulette geometry; settlement appears only on result. */
#pp-game-dialog.is-featured[data-current-game] .pp-plinko-settlement{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:stretch!important;gap:8px!important;width:100%!important;min-height:86px!important;height:auto!important;padding:12px!important;margin:0!important;border-radius:20px;background:#eee5f8!important}
#pp-game-dialog.is-featured[data-current-game] .pp-plinko-settlement>div{display:flex!important;flex-direction:column;justify-content:center;align-items:center;gap:6px;text-align:center;min-width:0}
#pp-game-dialog.is-featured[data-current-game] .pp-plinko-settlement>div>span{font-size:14px!important;line-height:1.25;font-weight:500;color:#3c165e;overflow-wrap:anywhere}
#pp-game-dialog.is-featured[data-current-game] .pp-plinko-settlement strong{display:flex!important;flex-wrap:wrap;align-items:baseline;justify-content:center;column-gap:3px;row-gap:0;font-size:24px!important;line-height:1.2;white-space:normal!important;color:#7135b6;font-variant-numeric:tabular-nums}
#pp-game-dialog.is-featured[data-current-game] .pp-plinko-settlement .pp-reward-number{font:inherit;font-weight:750;white-space:nowrap}
#pp-game-dialog.is-featured[data-current-game] .pp-plinko-settlement .pp-reward-unit{font-size:12px!important;font-weight:400;white-space:nowrap}
#pp-game-dialog.is-featured[data-current-game] .pp-lucky-choices{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:10px!important;width:100%!important;height:100%!important;max-width:none!important;align-content:stretch;justify-content:center;padding:4px!important}
#pp-game-dialog.is-featured[data-current-game] .pp-lucky-choice{display:flex!important;flex-direction:column;justify-content:center;align-items:center;min-width:0!important;min-height:0!important;width:100%!important;height:100%!important;padding:8px 4px!important;gap:4px!important;border-radius:16px!important}
#pp-game-dialog.is-featured[data-current-game] .pp-lucky-choice:nth-child(13){grid-column:2}
#pp-game-dialog.is-featured[data-current-game] .pp-lucky-choice:nth-child(14){grid-column:3}
#pp-game-dialog.is-featured[data-current-game] .pp-lucky-choice b{font-size:22px!important;line-height:1.1}
#pp-game-dialog.is-featured[data-current-game] .pp-lucky-choice.is-revealed{opacity:1!important;transform:none!important;background:#6effd8!important;color:#241137!important}
#pp-game-dialog.is-featured[data-current-game] .pp-lucky-choice .pp-card-multiplier{font-size:clamp(22px,4vw,34px)!important;font-weight:800;color:#3c165e;white-space:nowrap}
#pp-game-dialog.is-featured[data-current-game] .pp-lucky-choice .pp-card-outcome{font-size:12px!important;font-weight:700;line-height:1.25;white-space:normal;overflow-wrap:anywhere}

#pp-game-dialog.is-featured[data-current-game]:not([data-current-game="plinko"]) .pp-game-instruction{min-height:24px!important}
#pp-game-dialog.is-featured[data-current-game] .pp-game-bar{grid-template-columns:repeat(2,minmax(0,1fr))!important}
#pp-game-dialog.is-featured[data-current-game] .pp-game-bar>.pp-game-ticket-count{display:none!important}
#pp-game-dialog.is-featured[data-current-game] .pp-session-actions #pp-restart{grid-column:1!important}
#pp-game-dialog.is-featured[data-current-game] .pp-session-actions #pp-other-game{grid-column:2!important}
#pp-game-dialog.is-featured[data-current-game] .pp-session-actions button{background:#c4f8e8!important;color:#241137!important;border:0!important;box-shadow:none!important;font-weight:700!important}
#pp-game-dialog.is-featured[data-current-game] .pp-session-actions button:not(:disabled):is(:hover,:focus-visible){background:#42dcbb!important;color:#241137!important;box-shadow:none!important;outline:0!important}
#pp-game-dialog.is-featured[data-current-game] .pp-game-message:empty{display:none!important;min-height:0!important;padding:0!important;margin:0!important}
#pp-game-dialog.is-featured[data-current-game] .pp-game-message:has(.pp-reward-summary){background:transparent!important;padding:0!important;margin:0!important}
#pp-game-dialog.is-featured[data-current-game] .pp-game-board:not(.pp-plinko-board):not([data-game="ladder"]){padding-top:42px!important}
#pp-game-dialog .pp-money-input:has(.pp-max){padding:8px 14px 8px 8px!important}
#pp-game-dialog .pp-money-input .pp-max{height:30px!important;min-height:30px!important}
#pp-game-dialog .pp-checkout-price{display:flex;align-items:baseline;justify-content:center;gap:4px;white-space:nowrap}
#pp-game-dialog .pp-checkout-price .pp-rate-number{font:inherit;line-height:1;font-weight:inherit}
#pp-game-dialog .pp-checkout-price>span{font-size:20px;line-height:1.2}
#pp-game-dialog .pp-game-board.pp-game-atmosphere{background-image:radial-gradient(ellipse at 10% 0%,#62eacb20,transparent 46%),radial-gradient(ellipse at 100% 100%,#9b42ec24,transparent 52%),repeating-linear-gradient(135deg,transparent 0 30px,#ad6ee906 30px 31px);background-size:100% 100%;background-repeat:no-repeat}
#pp-game-dialog .pp-card-companion{position:absolute;right:8px;top:2px;width:36px;height:38px;pointer-events:none;z-index:2}
#pp-game-dialog .pp-card-companion .pp-puppet{width:100%;height:100%;overflow:visible}
#pp-game-dialog .pp-card-logo{display:block;object-fit:contain;width:48%;max-width:48px;height:auto;aspect-ratio:1;border-radius:50%;pointer-events:none;user-select:none;flex:none}
#pp-game-dialog .pp-lucky-choice:not(.is-revealed),#pp-game-dialog .pp-memory-card:not(.is-open):not(.is-match){animation:pp-card-drift 4.8s ease-in-out var(--pp-card-delay,0s) infinite;transform-origin:50% 75%}
#pp-game-dialog .pp-lucky-choice:not(.is-revealed):nth-child(even){animation-direction:reverse}
#pp-game-dialog .pp-lucky-choice.is-revealed{animation:pp-card-reveal .45s ease-out both}
#pp-game-dialog .pp-memory-card.is-open,#pp-game-dialog .pp-memory-card.is-match{animation:pp-card-reveal .3s ease-out both}
#pp-game-dialog .pp-game-board.pp-fx-action .pp-extra-controls button:not(:disabled){filter:brightness(1.12)}
#pp-game-dialog .pp-game-atmosphere.pp-fx-completed .pp-card-companion{animation:pp-companion-cheer 2.6s ease-in-out infinite}
#pp-game-dialog .pp-game-board[data-game="cards"] .pp-lucky-choice,#pp-game-dialog .pp-game-board[data-game="box"] .pp-lucky-choice{background-image:radial-gradient(circle at 15% 10%,#ffffff35,transparent 48%),linear-gradient(145deg,#ad68ef,#9753df 60%,#8244ca);box-shadow:inset 0 1px 0 #ffffff55,0 3px 8px #7135b61c}
#pp-game-dialog .pp-game-board[data-game="memory"] .pp-memory-card:not(.is-open):not(.is-match){background-image:radial-gradient(circle at 12% 8%,#ffffff29,transparent 50%),linear-gradient(145deg,#9d53ed,#7426c8)}
@keyframes pp-card-drift{0%,100%{transform:translateY(0) rotate(-.65deg)}50%{transform:translateY(-2px) rotate(.65deg)}}
@keyframes pp-card-reveal{0%{transform:rotateY(18deg) scale(.97)}65%{transform:rotateY(0deg) scale(1.02)}100%{transform:rotateY(0deg) scale(1)}}
@keyframes pp-companion-cheer{0%,100%{transform:translateX(0) rotate(-2deg)}50%{transform:translateX(-5px) rotate(3deg)}}
@media(max-width:480px){#pp-game-dialog.is-featured[data-current-game] .pp-plinko-settlement strong{font-size:22px!important}#pp-game-dialog.is-featured[data-current-game] .pp-plinko-settlement>div>span{font-size:12px!important}#pp-game-dialog .pp-checkout-price>span{font-size:18px}}
@media(max-width:360px){#pp-game-dialog.is-featured[data-current-game] .pp-plinko-settlement strong{font-size:18px!important}#pp-game-dialog.is-featured[data-current-game] .pp-plinko-settlement .pp-reward-unit{font-size:11px!important}#pp-game-dialog.is-featured[data-current-game] .pp-lucky-choice .pp-card-outcome{font-size:10px!important}}
@media(prefers-reduced-motion:reduce){#pp-game-dialog .pp-lucky-choice,#pp-game-dialog .pp-memory-card,#pp-game-dialog .pp-card-companion{animation:none!important;transform:none!important}}

/* Replace the old memory-card background logo instead of drawing a second copy. */
#pp-game-dialog .pp-game-board[data-game="memory"] .pp-memory-card:not(.is-open):not(.is-match){display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 12% 8%,#ffffff29,transparent 50%),linear-gradient(145deg,#9d53ed,#7426c8)!important}
#pp-game-dialog .pp-memory-card:not(.is-open):not(.is-match):after{content:none!important}
