/* ---------- three ways to win coins ---------- */
.g-games{margin-top:22px;width:min(100%,420px);display:grid;gap:12px}
.g-games h3{font-family:var(--display);font-weight:400;font-size:clamp(1.4rem,5vw,1.9rem);line-height:1.05}
.g-games>p{margin-top:-6px;font-size:1.05rem}
.g-games .g-win{margin-top:0;width:100%}
.g-games.nudge .g-win{animation:gnudge .5s cubic-bezier(.3,1.6,.5,1)}
.g-games.nudge .g-win:nth-of-type(2){animation-delay:.08s}.g-games.nudge .g-win:nth-of-type(3){animation-delay:.16s}
@keyframes gnudge{0%,100%{transform:none}40%{transform:translateY(-8px) rotate(-1.5deg)}}
.g-win-ico{flex:none;width:76px;display:grid;place-items:center}
.g-win-ico .cupi{width:44px;aspect-ratio:.8;background:#D21F2B;clip-path:polygon(0 0,100% 0,82% 100%,18% 100%);position:relative}
.g-win-ico .cupi::before{content:"";position:absolute;left:0;right:0;top:0;height:16%;background:#F04A4A}
.g-win-ico img{width:70px;height:auto;transform:rotate(-8deg)}

/* shared */
.gg-side{font-family:var(--hand);font-weight:700;font-size:1.35rem;display:flex;align-items:center;gap:12px}
.ggame.pong,.ggame.bacc{overflow-x:hidden}

/* Alliance pong */
.pg-score{display:flex;justify-content:space-between;align-items:baseline;width:min(100%,460px);font-weight:600;font-size:1.15rem}
.pg-time{font-family:var(--display);font-weight:400;font-size:1.6rem;line-height:1}
.pg-bar{width:min(100%,460px);height:10px;border-radius:99px;background:rgba(21,32,56,.25);overflow:hidden;margin-top:-6px}
.pg-bar i{display:block;height:100%;background:var(--banana);transform-origin:0 50%}
.pg-arena{position:relative;width:min(100%,460px);aspect-ratio:1/1.02;background:rgba(255,255,255,.16);border-radius:22px;overflow:hidden;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}
.pg-crowd{position:absolute;left:3%;right:3%;top:3%;display:flex;justify-content:space-between;pointer-events:none}
.pg-crowd .pp{width:17%}
.pg-rail{position:absolute;left:0;right:0;top:19.5%;height:3.2%;background:var(--ink);pointer-events:none}
.pg-arena.hype .dance{animation-duration:.18s}
.pg-arena.hype .wave .arm-l,.pg-arena.hype .wave .arm-r,.pg-arena.party .wave .arm-l,.pg-arena.party .wave .arm-r{animation-duration:.16s}
.pg-arena.party .dance{animation-duration:.2s}
.pg-table{position:absolute;left:0;right:0;top:78%;bottom:0;background:#C09078;box-shadow:inset 0 9px 0 #9A705C}
.pg-cup{position:absolute;bottom:22%;width:11.5%;aspect-ratio:.8;background:#D21F2B;clip-path:polygon(0 0,100% 0,84% 100%,16% 100%);display:grid;place-items:center}
.pg-cup::before{content:"";position:absolute;left:0;right:0;top:0;height:15%;background:#F04A4A}
.pg-cup b{font-family:var(--display);font-weight:400;font-style:normal;color:#fff;font-size:1.25rem;line-height:1;margin-top:18%}
.pg-cup:nth-of-type(1){left:59%}.pg-cup:nth-of-type(2){left:71%}.pg-cup:nth-of-type(3){left:83%}
.pg-cup.aim{background:var(--banana)}
.pg-cup.aim::before{background:#FFE98A}
.pg-cup.aim b{color:var(--ink)}
.pg-cup.done{background:#25A24E}
.pg-cup.done::before{background:#F08A2E}
.pg-cup.hit{animation:pghit .45s cubic-bezier(.3,1.6,.5,1)}
@keyframes pghit{0%,100%{transform:none}35%{transform:scale(1.12,.86)}65%{transform:scale(.94,1.1)}}
.pg-ball{position:absolute;left:0;top:0;width:6.4%;height:auto;will-change:transform;pointer-events:none}
.pg-ball.gone{visibility:hidden}
.pg-dot{position:absolute;left:-4px;top:-4px;width:8px;height:8px;border-radius:50%;background:#fff;visibility:hidden;pointer-events:none}
.pg-dot.on{visibility:visible}
.pg-hint{position:absolute;left:5%;top:64%;font-family:var(--hand);font-weight:700;font-size:1.35rem;pointer-events:none;animation:pghint 1.4s ease-in-out infinite alternate}
@keyframes pghint{0%{transform:translate(0,0)}100%{transform:translate(-8px,-8px)}}
.ggame.pong.over .pg-arena{pointer-events:none}

/* whiskey baccarat: a proper table */
.ggame.bacc{background:#152038;color:var(--tile)}
.ggame.bacc .gg-top .x{color:var(--tile)!important}
.ggame.bacc .btn:not(.light){background:var(--banana);color:var(--ink);box-shadow:0 6px 0 #B98E14}
.ggame.bacc .btn:not(.light):active{box-shadow:0 1px 0 #B98E14}
.ggame.bacc .btn:disabled{opacity:1;background:#B98E14}
.ggame.bacc .gg-body{gap:clamp(8px,1.6dvh,14px);align-content:center}
.bc-seat{width:clamp(96px,30vw,128px);margin-bottom:calc(clamp(8px,1.6dvh,14px)*-1 - 34px);position:relative;z-index:2;pointer-events:none}
.bc-table{position:relative;width:min(100%,430px);background:#25A24E;border-radius:50% 50% 30px 30px/90px 90px 30px 30px;box-shadow:inset 0 0 0 5px #178A3E,0 0 0 11px #7A4A2B,0 11px 0 11px #5E3A22;padding:52px 12px 12px;display:grid;justify-items:center;gap:6px;margin-bottom:14px}
.bc-row{display:flex;align-items:center;justify-content:center;gap:10px;width:100%}
.bc-lab{display:grid;justify-items:center;gap:3px;min-width:62px;font-weight:600;line-height:1.1}
.bc-lab b{display:grid;place-items:center;width:1.7em;height:1.7em;border-radius:50%;background:var(--banana);color:var(--ink);font-family:var(--display);font-weight:400}
.bc-lab b:empty{visibility:hidden}
.bc-hand{font-style:normal;font-family:var(--hand);font-weight:700;font-size:1.25rem;line-height:1;color:var(--banana);min-height:1em}
.bc-cards{display:flex;gap:7px;min-height:clamp(84px,25vw,112px);min-width:clamp(180px,56vw,250px);align-items:center;justify-content:flex-start}
.gc.bc-c{width:clamp(54px,17vw,76px);font-size:clamp(1.35rem,6vw,2rem);animation:gflip .22s ease-out;border-radius:9px}
.gc.bc-c.down{background:var(--ink);border:4px solid #fff}
.gc.bc-c.cut{width:clamp(50px,15vw,66px)}
.bc-spot{display:grid;place-items:center;width:min(78%,300px);min-height:62px;border:3px dashed rgba(255,255,255,.55);border-radius:99px}
.bc-pot{display:flex;align-items:center;justify-content:center;transition:transform .45s cubic-bezier(.3,1.3,.5,1)}
.bc-pot img{width:66px;height:auto;margin-left:-40px;transform:rotate(var(--r,0deg));filter:drop-shadow(0 3px 0 rgba(0,0,0,.25))}
.bc-pot img:first-child{margin-left:0}
.bc-pot b{margin-left:10px;font-family:var(--hand);font-size:1.3rem;line-height:1;white-space:nowrap;background:var(--ink);color:var(--tile);border-radius:99px;padding:.22em .7em .34em}
.bc-pot b:empty{display:none}
.bc-pot.toyou{transform:translateY(30px) scale(1.1)}
.bc-pot.todealer{transform:translate(-64px,-168px) scale(.8) rotate(-8deg)}
.bc-pot.todealer b{display:none}
.ggame.bacc .gg-msg{color:var(--tile);min-height:2.1em;max-width:27ch;font-size:1.45rem}
.bc-ctl{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:12px;min-height:58px}
.bc-bet{display:flex;align-items:center;gap:8px}
.bc-n{font-family:var(--display);font-weight:400;font-size:2rem;min-width:1.6em;text-align:center}
.bc-shot{width:54px}
.bc-shot svg,.bc-tally svg{display:block;width:100%;height:auto;overflow:visible}
.bc-shot .wk{transform-box:fill-box;transform-origin:50% 100%}
.bc-shot.down{animation:shot .9s cubic-bezier(.4,0,.3,1) forwards;transform-origin:20% 90%}
.bc-shot.down .wk{animation:shotsip .75s ease-in .12s forwards}
@keyframes shot{0%{transform:none}35%,70%{transform:translateY(-10px) rotate(-62deg)}100%{transform:none}}
@keyframes shotsip{to{transform:scaleY(0)}}
.bc-tally{display:inline-flex;align-items:center;gap:3px;font-size:1.2rem}
.bc-tally svg{width:18px}
.bc-tally .wk{display:none}
.bc-rb{border:0;background:none;color:inherit;font:inherit;font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:8px}
.bc-rules{position:absolute;inset:0;z-index:8;background:#152038;overflow:auto;padding:22px 22px 30px;display:grid;gap:14px;align-content:start;justify-items:start;text-align:left}
.bc-rules[hidden]{display:none}
.bc-rules h3{font-family:var(--display);font-weight:400;font-size:1.9rem}
.bc-rules dl{display:grid;gap:10px;margin:0;max-width:46ch}
.bc-rules dt{font-family:var(--hand);font-weight:700;font-size:1.3rem;color:var(--banana);line-height:1}
.bc-rules dd{margin:2px 0 0;line-height:1.35}
@media (prefers-reduced-motion:reduce){.bc-shot.down,.bc-shot.down .wk{animation-duration:.01s}}
