/* SAKARWINE game skins — in-game looks matched to each game's banner art.
   Loaded after brand-theme.css; everything is scoped to .gm-skin so the lobby and
   the rest of the app keep the brand theme. Visual only: no game logic lives here. */

/* ===================== shared stage ===================== */
.gm-screen.gm-skin {
  --acc1: #ff5fcf; --acc2: #8b5cff; --acc-sh: #4b1a8f; --acc-ink: #fff;
  --a1: rgba(255, 61, 187, .55); --a2: rgba(90, 120, 255, .5); --a3: rgba(255, 190, 60, .35);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05));
  background: #07040f !important;
  color: #fff !important;
  isolation: isolate;
  font-family: Nunito, system-ui, -apple-system, sans-serif;
}
.gm-screen.gm-skin::before { opacity: .12 !important; z-index: 0; }
.gm-screen.gm-skin > .gm-stage {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background: var(--gm-stage) center / cover no-repeat, #07040f;
  transform: translateZ(0);
}
.gm-skin .gm-stage::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 75% at 50% 42%, transparent 35%, rgba(3, 1, 10, .62) 100%),
    linear-gradient(180deg, rgba(3, 1, 10, .45), transparent 22%, transparent 70%, rgba(3, 1, 10, .7));
}
.gm-skin .gm-amb {
  position: absolute; width: 75%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, var(--a1), transparent);
  mix-blend-mode: screen; opacity: .55; will-change: transform, opacity;
  animation: gm-amb 16s ease-in-out infinite; animation-delay: var(--ph, 0s);
}
.gm-skin .gm-amb.a { left: -25%; top: -8%; }
.gm-skin .gm-amb.b { right: -30%; top: 28%; background: radial-gradient(closest-side, var(--a2), transparent); animation-duration: 19s; animation-direction: reverse; }
.gm-skin .gm-amb.c { left: 10%; bottom: -30%; background: radial-gradient(closest-side, var(--a3), transparent); animation-duration: 23s; }
@keyframes gm-amb { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .45; } 50% { transform: translate3d(8%, 6%, 0) scale(1.15); opacity: .7; } }
.gm-screen.gm-skin > .gm-logo-wm {
  position: absolute; z-index: 0; left: 50%; top: 54%; width: 58%; max-width: 250px;
  transform: translate(-50%, -50%); opacity: .07; pointer-events: none; filter: grayscale(.15) brightness(1.3);
}

/* iOS-style glass chrome */
.gm-skin .gm-panel, .gm-skin .gm-pbar, .gm-skin .gm-rhead, .gm-skin .gm-dcell, .gm-skin .gm-arena, .gm-skin .gm-chip, .gm-skin .gm-pill, .gm-skin .gm-rrow, .gm-skin .gm-sum, .gm-skin .gm-opp {
  background: var(--glass) !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 12px 28px -10px rgba(0, 0, 0, .7) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.5) !important;
  backdrop-filter: blur(18px) saturate(1.5) !important;
  color: #fff !important;
}
.gm-skin .gm-hint { color: rgba(255, 255, 255, .78) !important; }
.gm-skin .gm-chip b { color: #ffd76a !important; }
.gm-skin .gm-iconbtn { transition: transform .12s ease; }
.gm-skin .gm-iconbtn:active { transform: scale(.92); }
.gm-skin .gm-snd.off svg { opacity: .6; }
.gm-screen .gm-lang { position: relative; display: flex; align-items: center; gap: 4px; padding: 0 10px; height: 42px; border-radius: 21px; color: #fff; font-size: 12px; font-weight: 800; flex: none; cursor: pointer; }
.gm-screen .gm-lang svg { width: 16px; height: 16px; opacity: .85; }
.gm-screen .gm-lang select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; border: 0; }
.gm-skin .gm-av { box-shadow: 0 0 0 2px rgba(5, 3, 12, .9), 0 0 0 4px var(--c), 0 0 14px color-mix(in srgb, var(--c) 60%, transparent), 0 4px 8px rgba(0, 0, 0, .6) !important; }
.gm-skin .gm-pbar.on { border-color: color-mix(in srgb, var(--c) 80%, #fff) !important; box-shadow: 0 0 0 1px var(--c), 0 0 24px -4px var(--c), inset 0 1px 0 rgba(255, 255, 255, .25) !important; }
.gm-skin .gm-tm { background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)) !important; border: 1px solid rgba(255, 255, 255, .18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25) !important; color: #fff; }
.gm-skin .gm-tm.on { background: linear-gradient(180deg, var(--acc1), var(--acc2)) !important; color: var(--acc-ink); box-shadow: 0 3px 0 var(--acc-sh), 0 0 16px color-mix(in srgb, var(--acc1) 60%, transparent), inset 0 1px 0 rgba(255, 255, 255, .5) !important; }
.gm-skin .gm-tm.low { animation: gm-pulse .5s infinite; }

/* glossy 3D action buttons, tinted per game */
.gm-skin .gm-b3 {
  border: 0 !important; border-radius: 20px !important;
  background: linear-gradient(180deg, color-mix(in srgb, var(--acc1) 70%, #fff) 0%, var(--acc1) 45%, var(--acc2) 100%) !important;
  color: var(--acc-ink) !important; text-shadow: 0 1px 1px rgba(0, 0, 0, .3) !important;
  box-shadow: 0 5px 0 var(--acc-sh), 0 14px 24px -6px rgba(0, 0, 0, .7), inset 0 2px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(0, 0, 0, .18) !important;
  position: relative; overflow: hidden;
  transition: transform .12s cubic-bezier(.3, 1.5, .5, 1), box-shadow .12s, filter .2s !important;
}
.gm-skin .gm-b3::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-18deg); animation: gm-sheen 4.5s ease-in-out infinite; pointer-events: none; }
.gm-skin .gm-b3[disabled]::after, .gm-skin .gm-b3.gy::after { display: none; }
@keyframes gm-sheen { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.gm-skin .gm-b3:active { transform: translateY(4px) scale(.98); box-shadow: 0 1px 0 var(--acc-sh), 0 6px 12px -4px rgba(0, 0, 0, .6), inset 0 2px 0 rgba(255, 255, 255, .5) !important; }
.gm-skin .gm-b3.gy { background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .07)) !important; color: #fff !important; box-shadow: 0 4px 0 rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .3) !important; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.gm-skin .gm-b3.gn { --acc1: #4cf08f; --acc2: #12a556; --acc-sh: #0a5a2f; color: #03250f !important; text-shadow: none !important; }
.gm-skin .gm-b3[disabled] { filter: saturate(.35) brightness(.72) !important; }

/* per-game palettes (lighting + accents pulled from the banners) */
.gm-screen.gm-skin.gm-scr-rps { --acc1: #ff4fd0; --acc2: #9b3dff; --acc-sh: #4a0f7c; --a1: rgba(255, 50, 200, .6); --a2: rgba(130, 60, 255, .55); --a3: rgba(255, 80, 160, .35); }
.gm-screen.gm-skin.gm-scr-dice { --acc1: #3f9bff; --acc2: #1846e0; --acc-sh: #0b1f73; --a1: rgba(40, 140, 255, .55); --a2: rgba(255, 150, 40, .4); --a3: rgba(40, 220, 255, .4); }
.gm-screen.gm-skin.gm-scr-c4 { --acc1: #8f6bff; --acc2: #4d22d8; --acc-sh: #23097a; --a1: rgba(120, 80, 255, .6); --a2: rgba(40, 110, 255, .55); --a3: rgba(255, 60, 170, .35); }
.gm-screen.gm-skin.gm-scr-ttt { --acc1: #ffae4a; --acc2: #e0611b; --acc-sh: #7a2c06; --a1: rgba(170, 70, 255, .5); --a2: rgba(255, 140, 60, .45); --a3: rgba(60, 120, 255, .4); }
.gm-screen.gm-skin.gm-scr-bingo { --acc1: #ffd23f; --acc2: #f08c00; --acc-sh: #8a4600; --acc-ink: #3b1500; --a1: rgba(255, 60, 200, .55); --a2: rgba(255, 200, 60, .45); --a3: rgba(140, 60, 255, .5); }
.gm-scr-bingo .gm-b3 { text-shadow: none !important; }
.gm-screen.gm-skin.gm-scr-blackjack { --acc1: #ffd977; --acc2: #c9921f; --acc-sh: #5c3d05; --acc-ink: #241500; --a1: rgba(40, 200, 140, .4); --a2: rgba(245, 196, 81, .35); --a3: rgba(30, 140, 90, .4); }
.gm-scr-blackjack .gm-b3 { text-shadow: none !important; }

/* ===================== RPS — neon arena, glossy 3D hands ===================== */
.gm-scr-rps .gm-cardback { background: radial-gradient(circle at 50% 35%, #3a1268, #12052a 78%) !important; border: 2px solid rgba(255, 90, 220, .8) !important; box-shadow: 0 0 14px rgba(255, 60, 200, .55), inset 0 0 12px rgba(160, 60, 255, .5), 0 8px 14px rgba(0, 0, 0, .6) !important; }
.gm-scr-rps .gm-backs.picked .gm-cardback:nth-child(2) { border-color: #ffd23f !important; box-shadow: 0 0 22px rgba(255, 210, 63, .8), inset 0 0 12px rgba(255, 210, 63, .4) !important; }
.gm-scr-rps .gm-arena { padding: 18px 8px 14px; border-radius: 30px; background: radial-gradient(90% 80% at 50% 30%, rgba(255, 61, 187, .32), rgba(120, 40, 255, .16) 55%, rgba(10, 0, 30, .55) 100%) !important; border-color: rgba(255, 130, 235, .5) !important; box-shadow: 0 0 34px -6px rgba(255, 61, 187, .6), inset 0 0 34px rgba(140, 60, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .3) !important; }
.gm-scr-rps .gm-slot .gm-face { width: 100px; height: 100px; border-radius: 50% !important; background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .12), rgba(40, 10, 80, .55) 70%) !important; border: 2px solid rgba(255, 120, 230, .55) !important; box-shadow: 0 0 20px rgba(255, 61, 187, .45), inset 0 0 18px rgba(160, 80, 255, .45) !important; overflow: visible; }
.gm-scr-rps .gm-slot .gm-face.mine { border-color: rgba(170, 130, 255, .7) !important; }
.gm-scr-rps .gm-hand { width: 112%; height: 112%; object-fit: contain; filter: drop-shadow(0 0 6px rgba(255, 80, 220, .9)) drop-shadow(0 8px 10px rgba(0, 0, 0, .55)); pointer-events: none; user-select: none; -webkit-user-drag: none; }
.gm-scr-rps .gm-face .gm-hand.me { transform: scaleX(-1); }
.gm-scr-rps .gm-q { font-size: 54px; font-weight: 900; color: #fff; text-shadow: 0 0 10px #ff4fd0, 0 0 26px #b03dff; animation: gm-qpulse 1.6s ease-in-out infinite; }
@keyframes gm-qpulse { 50% { transform: scale(1.08); text-shadow: 0 0 16px #ff4fd0, 0 0 40px #b03dff; } }
.gm-scr-rps .gm-slot .gm-face.win { border-color: #ffd23f !important; box-shadow: 0 0 0 3px rgba(255, 210, 63, .35), 0 0 34px rgba(255, 210, 63, .8), inset 0 0 18px rgba(255, 210, 63, .4) !important; background: radial-gradient(circle at 50% 40%, rgba(255, 230, 140, .25), rgba(60, 20, 80, .55) 70%) !important; }
.gm-scr-rps .gm-slot .gm-face.lose { filter: saturate(.35) brightness(.6); }
.gm-scr-rps .gm-face.opp.flip { animation: gm-clash-l .62s cubic-bezier(.25, 1.45, .45, 1) both; }
.gm-scr-rps .gm-face.mine.flip { animation: gm-clash-r .62s cubic-bezier(.25, 1.45, .45, 1) both; }
@keyframes gm-clash-l { 0% { transform: translateX(-120px) rotate(-35deg) scale(.5); opacity: 0; } 55% { transform: translateX(26px) rotate(8deg) scale(1.12); opacity: 1; } 100% { transform: none; } }
@keyframes gm-clash-r { 0% { transform: translateX(120px) rotate(35deg) scale(.5); opacity: 0; } 55% { transform: translateX(-26px) rotate(-8deg) scale(1.12); opacity: 1; } 100% { transform: none; } }
.gm-scr-rps .gm-impact { position: absolute; left: 50%; top: 42%; width: 160px; height: 160px; margin: -80px 0 0 -80px; border-radius: 50%; pointer-events: none; opacity: 0; background: radial-gradient(circle, #fff 0, rgba(255, 120, 230, .9) 18%, rgba(160, 60, 255, .4) 42%, transparent 70%); }
.gm-scr-rps .gm-arena.clash .gm-impact { animation: gm-impact .6s ease-out .3s both; }
.gm-scr-rps .gm-arena.clash { animation: gm-shake .4s ease .32s; }
@keyframes gm-impact { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes gm-shake { 20% { transform: translate(-4px, 2px); } 40% { transform: translate(4px, -2px); } 60% { transform: translate(-3px, 1px); } 80% { transform: translate(2px, 0); } }
.gm-scr-rps .gm-ring .val { stroke: #ff4fd0; filter: drop-shadow(0 0 4px #ff4fd0); }
.gm-scr-rps .gm-ring b { background: radial-gradient(circle at 50% 35%, #3a1268, #12052a) !important; box-shadow: inset 0 0 10px rgba(255, 79, 208, .4) !important; }
.gm-scr-rps .gm-vs-lbl { color: #fff; text-shadow: 0 0 10px #ff4fd0; font-size: 15px; }
.gm-scr-rps .gm-round-res.win { color: #ffd23f; text-shadow: 0 0 14px rgba(255, 210, 63, .7); }
.gm-scr-rps .gm-picks { gap: 12px; margin-top: 16px; }
.gm-scr-rps .gm-pick {
  width: 104px; height: 126px; border-radius: 26px !important; padding: 0; overflow: visible;
  background: radial-gradient(110% 90% at 50% 20%, rgba(255, 255, 255, .2), rgba(80, 20, 140, .35) 55%, rgba(20, 5, 45, .75)) !important;
  border: 2px solid transparent !important;
  box-shadow: 0 0 0 2px rgba(255, 110, 230, .65), 0 0 22px rgba(255, 61, 187, .45), inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 0 20px rgba(150, 60, 255, .4), 0 12px 20px -6px rgba(0, 0, 0, .7) !important;
  transition: transform .2s cubic-bezier(.3, 1.5, .5, 1), filter .2s !important;
}
.gm-scr-rps .gm-pick .gm-hand { width: 92px; height: 92px; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.gm-scr-rps .gm-pick:not([disabled]) .gm-hand { animation: gm-hand-idle 2.4s ease-in-out infinite; }
.gm-scr-rps .gm-pick[data-pick="paper"] .gm-hand { animation-delay: -.8s; }
.gm-scr-rps .gm-pick[data-pick="scissors"] .gm-hand { animation-delay: -1.6s; }
@keyframes gm-hand-idle { 50% { transform: translateY(-5px) rotate(-3deg); } }
.gm-scr-rps .gm-pick:active { transform: translateY(3px) scale(.95); }
.gm-scr-rps .gm-pick.sel { transform: translateY(-12px) scale(1.04); box-shadow: 0 0 0 3px #ffd23f, 0 0 30px rgba(255, 210, 63, .75), inset 0 0 20px rgba(255, 210, 63, .35), 0 16px 24px -6px rgba(0, 0, 0, .7) !important; }
.gm-scr-rps .gm-pick[disabled]:not(.sel) { filter: saturate(.35) brightness(.55); }
.gm-pick-emo { display: none; }
.gm-rps-hist { display: inline-flex; align-items: center; gap: 4px; }
.gm-rps-hist .gm-hand { width: 24px; height: 24px; object-fit: contain; }

/* ===================== Dice — glossy white 3D dice, colored concave pips ===================== */
.gm-scr-dice .gm-dcell { background: linear-gradient(180deg, rgba(40, 90, 200, .32), rgba(6, 14, 50, .55)) !important; border-color: rgba(90, 170, 255, .35) !important; overflow: hidden; }
.gm-scr-dice .gm-dcell.top { border-color: #ffd23f !important; box-shadow: 0 0 0 1px #ffd23f, 0 0 28px -2px rgba(255, 200, 60, .75), inset 0 1px 0 rgba(255, 255, 255, .3) !important; }
.gm-scr-dice .gm-dice { position: relative; height: 104px; gap: 24px; align-items: center; }
.gm-scr-dice .gm-dfloor { position: absolute; left: 8%; right: 8%; bottom: 6px; height: 30px; border-radius: 50%; border: 2px solid rgba(70, 200, 255, .55); box-shadow: 0 0 16px rgba(60, 190, 255, .55), inset 0 0 14px rgba(60, 190, 255, .45); background: radial-gradient(closest-side, rgba(40, 140, 255, .25), transparent); }
.gm-scr-dice .gm-dtotal { font-size: 24px; color: #fff; text-shadow: 0 0 12px color-mix(in srgb, var(--c) 70%, transparent), 0 2px 0 rgba(0, 0, 0, .4); }
.gm-scr-dice .gm-dcell.top .gm-dtotal { color: #ffd23f; }
.gm-scr-dice .gm-dice.wait .gm-die { opacity: .32; filter: saturate(.2); }
.gm-scr-dice .gm-dice.wait.act .gm-die { opacity: .62; filter: none; animation: gm-die-ready 1.2s ease-in-out infinite; }
.gm-scr-dice .gm-dice.wait.act .gm-die + .gm-die { animation-delay: -.6s; }
@keyframes gm-die-ready { 50% { transform: translateY(-7px) rotate(4deg); } }
.gm-die { --s: 50px; position: relative; display: inline-block; width: var(--s); height: var(--s); flex: none; perspective: 700px; }
.gm-die .gm-cube { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(-38deg) rotateY(calc(38deg + var(--tz))) rotateX(90deg) rotateX(var(--rx)) rotateY(var(--ry)); }
.gm-die .f {
  position: absolute; inset: 0; border-radius: 22%; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: radial-gradient(130% 130% at 28% 22%, #ffffff 0%, #f8f6fb 38%, #e6e2ec 72%, #cfc9d9 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .95), inset -3px -5px 9px rgba(70, 60, 110, .3), inset 3px 3px 6px #fff;
}
.gm-die .core { position: absolute; inset: 4%; background: #ddd8e5; border-radius: 6%; }
.gm-die .c2 { transform: rotateY(90deg); }
.gm-die .c3 { transform: rotateX(90deg); }
.gm-die .f1 { transform: translateZ(calc(var(--s) / 2)); }
.gm-die .f6 { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.gm-die .f3 { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.gm-die .f4 { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.gm-die .f2 { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.gm-die .f5 { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.gm-die .f b {
  position: absolute; width: 19%; height: 19%; margin: -9.5% 0 0 -9.5%; border-radius: 50%;
  background: radial-gradient(circle at 50% 36%, color-mix(in srgb, var(--pip) 40%, #fff) 0 12%, var(--pip) 44%, color-mix(in srgb, var(--pip) 55%, #000) 100%);
  box-shadow: inset 0 2px 2px rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 255, 255, .95);
}
.gm-die-sh { position: absolute; left: 4%; right: 4%; bottom: -22%; height: 26%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .65), transparent); }
.gm-die-sh::after { content: ""; position: absolute; inset: -30% 10%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--pip) 45%, transparent), transparent); }
.gm-die-trail { position: absolute; right: 35%; top: -40%; width: 150%; height: 70%; border-radius: 50%; opacity: 0; pointer-events: none; transform: rotate(30deg); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--pip) 75%, #fff)); filter: blur(5px); }
.gm-die.roll { animation: gm-die-hop 1.05s cubic-bezier(.25, .6, .35, 1) var(--d) both; }
.gm-die.roll .gm-cube { animation: gm-die-tumble 1.05s cubic-bezier(.12, .55, .22, 1) var(--d) both; }
.gm-die.roll .gm-die-sh { animation: gm-die-shadow 1.05s ease var(--d) both; }
.gm-die.roll .gm-die-trail { animation: gm-die-trail 1.05s ease-out var(--d) both; }
@keyframes gm-die-hop { 0% { transform: translate(-70px, -130px) scale(.72); opacity: 0; } 10% { opacity: 1; } 48% { transform: translate(0, 0) scale(1); } 62% { transform: translate(4px, -18px); } 76% { transform: none; } 86% { transform: translateY(-5px); } 100% { transform: none; } }
@keyframes gm-die-tumble {
  0% { transform: rotateX(-38deg) rotateY(calc(38deg + var(--tz) + 200deg)) rotateX(90deg) rotateX(calc(var(--rx) + 630deg)) rotateY(calc(var(--ry) - 450deg)); }
  78% { transform: rotateX(-38deg) rotateY(calc(38deg + var(--tz) - 6deg)) rotateX(90deg) rotateX(calc(var(--rx) - 8deg)) rotateY(calc(var(--ry) + 6deg)); }
  100% { transform: rotateX(-38deg) rotateY(calc(38deg + var(--tz))) rotateX(90deg) rotateX(var(--rx)) rotateY(var(--ry)); }
}
@keyframes gm-die-shadow { 0% { transform: scale(.3); opacity: 0; } 48% { transform: scale(1); opacity: 1; } 62% { transform: scale(.8); opacity: .7; } 76%, 100% { transform: none; opacity: 1; } }
@keyframes gm-die-trail { 0% { opacity: .95; } 45% { opacity: .6; } 60%, 100% { opacity: 0; } }

/* ===================== Connect Four — violet frame, blue-lit holes, glossy coin discs ===================== */
.gm-scr-c4 .gm-c4board {
  padding: 14px 12px 42px; border-radius: 26px;
  background: linear-gradient(160deg, #b49cff 0%, #8460ff 18%, #6334ee 50%, #4419c0 82%, #3a12a8 100%) !important;
  box-shadow: 0 12px 0 #2a0d86, 0 28px 50px rgba(20, 0, 80, .75), 0 0 60px rgba(120, 80, 255, .5), inset 0 2px 0 rgba(255, 255, 255, .6), inset 0 -4px 0 rgba(0, 0, 0, .25), inset 4px 0 0 rgba(255, 255, 255, .18), inset -4px 0 0 rgba(0, 0, 0, .2) !important;
}
.gm-scr-c4 .gm-c4board::before { left: 14px; right: 14px; top: 5px; height: 8px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); }
.gm-scr-c4 .gm-c4grid, .gm-scr-c4 .gm-c4col { gap: 7px; }
.gm-scr-c4 .gm-c4col { border-radius: 24px; transition: background .2s, box-shadow .2s; }
.gm-scr-c4 .gm-c4col.sel { background: linear-gradient(180deg, rgba(255, 110, 210, .7), rgba(255, 90, 200, .12)) !important; box-shadow: 0 0 22px rgba(255, 80, 200, .45); }
.gm-scr-c4 .gm-c4col.sel.s1 { background: linear-gradient(180deg, rgba(60, 255, 140, .4), rgba(60, 255, 140, .05)) !important; box-shadow: 0 0 22px rgba(60, 255, 140, .4); }
.gm-scr-c4 .gm-hole {
  background: radial-gradient(120% 90% at 50% 100%, #9cc4ff 0%, #5a8cff 35%, #3456e0 70%, #22309e 100%);
  box-shadow: inset 0 7px 9px rgba(16, 0, 70, .85), inset 4px 0 6px rgba(16, 0, 70, .35), 0 1px 0 rgba(255, 255, 255, .45), 0 -1px 0 rgba(30, 0, 90, .5);
}
.gm-scr-c4 .gm-disc, .gm-scr-c4 .gm-c4prev i { border-radius: 50%; }
.gm-scr-c4 .gm-disc.s0, .gm-scr-c4 .gm-c4prev i.s0 {
  background: radial-gradient(circle at 50% 50%, #ff5868 0 33%, #c80d24 35% 41%, #ff3a4e 43% 64%, #d4142c 76%, #8a0618 100%);
  box-shadow: inset 0 3px 3px rgba(255, 200, 200, .75), inset 0 -4px 5px rgba(70, 0, 10, .55), 0 3px 5px rgba(0, 0, 0, .5);
}
.gm-scr-c4 .gm-disc.s1, .gm-scr-c4 .gm-c4prev i.s1 {
  background: radial-gradient(circle at 50% 50%, #3ef07c 0 33%, #0b9a3c 35% 41%, #26d865 43% 64%, #11a644 76%, #05622a 100%);
  box-shadow: inset 0 3px 3px rgba(200, 255, 210, .75), inset 0 -4px 5px rgba(0, 50, 20, .55), 0 3px 5px rgba(0, 0, 0, .5);
}
.gm-scr-c4 .gm-disc::after { left: 18%; top: 10%; width: 46%; height: 24%; background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0)); filter: none; border-radius: 50% 50% 40% 40%; }
.gm-scr-c4 .gm-disc.drop { animation: gm-c4drop .62s cubic-bezier(.45, 0, .7, .4) both; }
@keyframes gm-c4drop {
  0% { transform: translateY(var(--dy, -300px)); }
  55% { transform: translateY(0); animation-timing-function: cubic-bezier(.2, .7, .4, 1); }
  70% { transform: translateY(-16%); animation-timing-function: cubic-bezier(.5, 0, .8, .5); }
  82% { transform: translateY(0); }
  90% { transform: translateY(-4%); }
  100% { transform: translateY(0); }
}
.gm-scr-c4 .gm-disc.line { box-shadow: 0 0 0 3px #fff6c2, 0 0 22px 6px rgba(255, 215, 90, .85), inset 0 3px 3px rgba(255, 255, 255, .7) !important; animation: gm-winglow .9s ease-in-out infinite; }
@keyframes gm-winglow { 50% { filter: brightness(1.35); transform: scale(1.06); } }
.gm-scr-c4 .gm-c4prev { height: 50px; }
.gm-scr-c4 .gm-c4prev i { width: 38px; height: 38px; position: relative; }
.gm-scr-c4 .gm-c4prev i.on { animation: gm-hover 1.2s ease-in-out infinite; box-shadow: 0 0 18px rgba(255, 90, 200, .8), inset 0 3px 3px rgba(255, 200, 200, .75); }
.gm-scr-c4 .gm-c4prev i.s1.on { box-shadow: 0 0 18px rgba(60, 255, 140, .8), inset 0 3px 3px rgba(200, 255, 210, .75); }
@keyframes gm-hover { 50% { transform: translateY(-6px) rotate(8deg); } }
.gm-scr-c4 .gm-c4brand { background: rgba(30, 10, 90, .55); border-color: rgba(255, 255, 255, .25); }

/* ===================== Vanishing TicTacToe — wooden board, red candy X, neon cyan O ===================== */
.gm-scr-ttt .gm-tttboard {
  margin-top: 18px; padding: 16px; border-radius: 30px; flex: none; position: relative;
  background:
    repeating-linear-gradient(92deg, rgba(110, 55, 15, 0) 0 9px, rgba(110, 55, 15, .13) 9px 11px, rgba(255, 225, 170, .07) 11px 17px, rgba(110, 55, 15, .08) 17px 18px),
    radial-gradient(140% 90% at 30% 15%, #f0b56c 0%, #cf8641 45%, #a4602a 100%);
  box-shadow: 0 12px 0 #6b3a14, 0 14px 0 #4a260b, 0 30px 46px rgba(20, 0, 30, .7), 0 0 50px rgba(255, 150, 60, .25), inset 0 2px 0 rgba(255, 232, 190, .75), inset 0 -3px 6px rgba(80, 40, 10, .45);
  transform: perspective(900px) rotateX(9deg); transform-origin: 50% 100%;
}
.gm-scr-ttt .gm-tttgrid { gap: 9px; border-radius: 12px; background: linear-gradient(180deg, #5c2f0f, #3f1f08); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .65); }
.gm-scr-ttt .gm-tile {
  border-radius: 8px !important; overflow: visible;
  background:
    repeating-linear-gradient(88deg, rgba(110, 55, 15, 0) 0 7px, rgba(110, 55, 15, .12) 7px 9px, rgba(255, 225, 170, .07) 9px 14px),
    linear-gradient(160deg, #e9ab62, #c77d3b 60%, #b06a30) !important;
  box-shadow: inset 0 2px 0 rgba(255, 230, 185, .7), inset 0 -2px 0 rgba(90, 45, 12, .5), 0 1px 0 rgba(0, 0, 0, .3) !important;
}
.gm-scr-ttt .gm-tile:nth-child(2n) { background-position: 13px 0, 0 0 !important; }
.gm-scr-ttt .gm-tile:nth-child(3n) { background-position: 27px 0, 0 0 !important; }
.gm-scr-ttt .gm-tile:empty::before, .gm-scr-ttt .gm-tile:has(> .gm-wm)::before { content: ""; position: absolute; inset: 14%; border-radius: 6px; box-shadow: inset 0 4px 6px rgba(80, 35, 5, .55), inset 0 -1px 0 rgba(255, 225, 180, .5); background: linear-gradient(160deg, rgba(120, 60, 20, .2), rgba(255, 210, 150, .08)); }
.gm-scr-ttt .gm-tile:active { transform: translateY(2px) scale(.98); }
.gm-scr-ttt .gm-tile .gm-wm { position: relative; width: 46%; opacity: .14; filter: sepia(1) brightness(.6); }
.gm-scr-ttt .gm-tile svg { width: 82%; height: 82%; overflow: visible; }
.gm-mark.x { filter: drop-shadow(0 7px 6px rgba(70, 10, 0, .55)) drop-shadow(0 0 6px rgba(255, 40, 70, .45)); }
.gm-mark.o { filter: drop-shadow(0 0 5px rgba(40, 220, 255, .95)) drop-shadow(0 0 14px rgba(40, 210, 255, .6)) drop-shadow(0 6px 5px rgba(0, 30, 60, .5)); }
.gm-tile.new .gm-mark.x path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: gm-draw .2s cubic-bezier(.4, 0, .2, 1) forwards; }
.gm-tile.new .gm-mark.x .a2 { animation-delay: .17s; }
.gm-tile.new .gm-mark.x .gl path { animation-delay: .34s; }
.gm-tile.new .gm-mark.o .ring, .gm-tile.new .gm-mark.o .ext { stroke-dasharray: 1; stroke-dashoffset: 1; animation: gm-draw .42s cubic-bezier(.4, 0, .2, 1) forwards; }
.gm-tile.new .gm-mark.o .gl { opacity: 0; animation: gm-fadein .2s ease .42s forwards; }
.gm-tile.new svg { animation: gm-markpop .6s cubic-bezier(.2, 1.4, .4, 1) both !important; }
@keyframes gm-draw { to { stroke-dashoffset: 0; } }
@keyframes gm-fadein { to { opacity: .75; } }
@keyframes gm-markpop { 0% { transform: scale(.7); } 60% { transform: scale(1.08); } 100% { transform: none; } }
.gm-scr-ttt .gm-tile.vanish { outline: 0 !important; }
.gm-scr-ttt .gm-tile.vanish svg { opacity: 1; animation: gm-vanishing 1.3s ease-in-out infinite; }
@keyframes gm-vanishing { 0%, 100% { opacity: .85; transform: scale(1); } 50% { opacity: .35; transform: scale(.94); } }
.gm-scr-ttt .gm-tile .gm-vtag { bottom: -7px; left: 50%; right: auto; transform: translateX(-50%); padding: 2px 7px; border-radius: 9px; font-size: 9px; color: #fff !important; background: rgba(30, 10, 40, .82); border: 1px solid rgba(255, 255, 255, .25); z-index: 2; }
.gm-scr-ttt .gm-tile.line { box-shadow: inset 0 0 0 3px #fff3b0, 0 0 22px rgba(255, 215, 90, .9) !important; animation: gm-winglow .9s ease-in-out infinite; }
.gm-scr-ttt .gm-tile.gone::after { background: radial-gradient(circle, rgba(255, 255, 255, .9), rgba(255, 200, 120, .4) 40%, transparent 70%); }

/* ===================== BINGO — gold card, cream tiles, star coins, glossy balls ===================== */
.gm-scr-bingo .gm-bcard {
  padding: 12px; border-radius: 26px; perspective: none;
  background: linear-gradient(145deg, #fff0a8 0%, #ffcf2e 22%, #f39a00 62%, #ffd447 100%) !important;
  box-shadow: 0 8px 0 #a35a00, 0 24px 44px rgba(60, 0, 80, .65), 0 0 44px rgba(255, 190, 40, .5), inset 0 2px 0 #fff8d0, inset 0 -3px 0 rgba(150, 70, 0, .55) !important;
}
.gm-scr-bingo .gm-bcard::after { background: linear-gradient(125deg, rgba(255, 255, 255, .35), transparent 30%, transparent 75%, rgba(255, 255, 255, .15)); }
.gm-scr-bingo .gm-bhead .gm-brand img:last-child { filter: brightness(.3) sepia(1) hue-rotate(-20deg) saturate(3); }
.gm-scr-bingo .gm-bletters i { color: rgba(120, 50, 0, .45); background: rgba(120, 50, 0, .18); box-shadow: inset 0 2px 3px rgba(110, 50, 0, .35); }
.gm-scr-bingo .gm-bletters i.on { color: #fff; background: linear-gradient(180deg, #ff7be0, #e01ba8) !important; box-shadow: 0 3px 0 #8a0a66, 0 0 10px rgba(255, 61, 187, .6), inset 0 1px 0 rgba(255, 255, 255, .6); }
.gm-scr-bingo .gm-bgrid { gap: 7px; padding: 8px; border-radius: 16px; background: linear-gradient(180deg, #c46a00, #a25200); box-shadow: inset 0 3px 7px rgba(80, 30, 0, .65), 0 1px 0 rgba(255, 240, 180, .6); }
.gm-scr-bingo .gm-bt {
  border-radius: 12px; font-size: 22px; font-weight: 900; color: #1f1a4d !important; transform: none;
  background: linear-gradient(180deg, #fffcf3 0%, #fbf0d8 60%, #efdfbd 100%) !important;
  box-shadow: 0 4px 0 #c8944d, 0 7px 9px rgba(80, 40, 0, .35), inset 0 2px 0 #fff, inset 0 -2px 3px rgba(170, 120, 50, .25) !important;
}
.gm-scr-bingo .gm-bt:hover { transform: translateY(-2px); }
.gm-scr-bingo .gm-bt:active { transform: translateY(3px); }
.gm-scr-bingo .gm-bgrid:not(.wait) .gm-bt:not(.m) { animation: gm-tile-invite 2.2s ease-in-out infinite; }
@keyframes gm-tile-invite { 50% { filter: brightness(1.06) drop-shadow(0 0 6px rgba(255, 61, 187, .55)); } }
.gm-scr-bingo .gm-bt.m { background: linear-gradient(180deg, #ffe58a, #ffc21a 60%, #e89400) !important; box-shadow: 0 4px 0 #a35a00, 0 7px 9px rgba(80, 40, 0, .35), inset 0 2px 0 #fff6c8 !important; }
.gm-scr-bingo .gm-bt.m span { opacity: 0; }
.gm-scr-bingo .gm-bt.m::before { inset: 10%; background: radial-gradient(circle at 40% 30%, #fff6c4 0%, #ffd84a 34%, #f3a600 72%, #b86c00 100%); box-shadow: 0 3px 0 #8f5000, inset 0 0 0 3px rgba(255, 236, 160, .75), inset 0 -3px 4px rgba(120, 60, 0, .45); }
.gm-scr-bingo .gm-bt.m::after { content: ""; position: absolute; inset: 27%; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.2l2.9 6.2 6.8.7-5.1 4.6 1.5 6.7L12 17l-6.1 3.4 1.5-6.7L2.3 9.1l6.8-.7z' fill='%23ffe680' stroke='%23b06400' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='M12 4.6l1.9 4.2' stroke='%23fff' stroke-width='1.2' stroke-linecap='round' opacity='.8'/%3E%3C/svg%3E"); filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .6)); }
.gm-scr-bingo .gm-bt.last { outline: 0 !important; background: linear-gradient(180deg, #ff86e3, #ff3dbb 50%, #d0129c) !important; box-shadow: 0 4px 0 #85085f, 0 0 22px rgba(255, 61, 187, .9), inset 0 2px 0 rgba(255, 255, 255, .6) !important; }
.gm-scr-bingo .gm-bt.last::before { display: none; }
.gm-scr-bingo .gm-bt.last::after { inset: 20%; filter: drop-shadow(0 0 6px rgba(255, 240, 150, .9)); }
.gm-scr-bingo .gm-bt.lined::before { box-shadow: 0 3px 0 #8f5000, 0 0 0 2px #fff, 0 0 14px rgba(255, 230, 120, 1) !important; }
.gm-scr-bingo .gm-bt.new::before, .gm-scr-bingo .gm-bt.new::after { animation: gm-dab .55s cubic-bezier(.2, 1.5, .4, 1) both; }
.gm-scr-bingo .gm-bt.new { animation: gm-dabflash .7s ease both !important; }
@keyframes gm-dab { 0% { transform: translateY(-60%) scale(1.9); opacity: 0; } 55% { transform: scale(.88); opacity: 1; } 100% { transform: none; } }
@keyframes gm-dabflash { 0% { filter: brightness(1); } 35% { filter: brightness(1.6); } 100% { filter: none; } }
.gm-scr-bingo .gm-callbar { border-color: rgba(255, 200, 60, .45) !important; }
.gm-scr-bingo .gm-callbar .gm-say.me { color: #ffd23f; text-shadow: 0 0 10px rgba(255, 200, 60, .6); }
.gm-scr-bingo .gm-ball {
  width: 68px; height: 68px; position: relative;
  background: radial-gradient(circle at 33% 26%, #fff 0 5%, color-mix(in srgb, var(--b) 45%, #fff) 13%, var(--b) 46%, color-mix(in srgb, var(--b) 50%, #000) 100%) !important;
  box-shadow: 0 10px 18px rgba(0, 0, 0, .5), 0 0 26px color-mix(in srgb, var(--b) 75%, transparent), inset -4px -7px 12px rgba(0, 0, 0, .28) !important;
}
.gm-scr-bingo .gm-ball span { width: 42px; height: 42px; background: radial-gradient(circle at 40% 32%, #fff, #ecebf4) !important; color: #1f1a4d !important; font-size: 22px; transform: rotate(-10deg); box-shadow: inset 0 -2px 4px rgba(0, 0, 0, .18); }
.gm-scr-bingo .gm-ball.empty { filter: saturate(.3) brightness(.7); }
.gm-scr-bingo .gm-ball.new { animation: gm-ball-in .85s cubic-bezier(.2, .9, .3, 1.15) both; }
@keyframes gm-ball-in { 0% { transform: translate(190px, -30px) rotate(320deg) scale(.55); } 55% { transform: translate(-8px, 0) rotate(-14deg) scale(1.1); } 75% { transform: translate(3px, 0) rotate(5deg) scale(.97); } 100% { transform: none; } }
.gm-btray { display: flex; gap: 5px; margin-top: 5px; }
.gm-btray i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 900; color: #1f1a4d; background: radial-gradient(circle at 50% 50%, #fff 0 42%, transparent 44%), radial-gradient(circle at 33% 26%, #fff 0 6%, var(--b) 45%, color-mix(in srgb, var(--b) 50%, #000)); box-shadow: 0 2px 4px rgba(0, 0, 0, .4); }
.gm-btray i:first-child { animation: gm-tray-in .5s ease both; }
@keyframes gm-tray-in { from { transform: translateX(-14px) scale(.6); opacity: 0; } }
.gm-scr-bingo .gm-opp.on { border-color: var(--c) !important; box-shadow: 0 0 0 1px var(--c), 0 0 20px -4px var(--c) !important; }

/* ===================== Blackjack — green felt, gold rail, ivory cards, black/gold chips ===================== */
.gm-scr-blackjack .gm-bj-body { gap: 10px; }
.gm-bj-felt {
  position: relative; overflow: hidden; border-radius: 30px; padding: 14px 12px 16px; flex: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .03) 0 1px, transparent 1.5px) 0 0 / 5px 5px,
    radial-gradient(120% 90% at 50% 0%, #22935a 0%, #0f6038 46%, #073a22 88%);
  box-shadow: inset 0 0 0 2px rgba(245, 196, 81, .6), inset 0 0 0 7px rgba(6, 34, 20, .92), inset 0 0 0 8.5px rgba(245, 196, 81, .4), inset 0 22px 50px rgba(0, 0, 0, .35), 0 20px 40px rgba(0, 0, 0, .65), 0 0 40px rgba(40, 200, 120, .18);
}
.gm-bj-zone { position: relative; z-index: 1; text-align: center; }
.gm-scr-blackjack .gm-bj-label { color: #f5c451; text-shadow: 0 1px 0 rgba(0, 0, 0, .5); }
.gm-scr-blackjack .gm-bj-cards { min-height: 88px; gap: 0; perspective: 800px; }
.gm-scr-blackjack .gm-bj-card {
  width: 58px; height: 82px; border: 0; border-radius: 9px; color: #121212;
  background: linear-gradient(160deg, #fffef9, #f3ecdc) !important;
  box-shadow: inset 0 0 0 3px #fffef9, inset 0 0 0 4px #d6ac4b, 0 8px 16px rgba(0, 0, 0, .5) !important;
  font-family: Georgia, 'Times New Roman', serif; animation: none;
}
.gm-scr-blackjack .gm-bj-card + .gm-bj-card { margin-left: -18px; }
.gm-scr-blackjack .gm-bj-card:nth-child(1) { rotate: -7deg; }
.gm-scr-blackjack .gm-bj-card:nth-child(2) { rotate: 3deg; translate: 0 -2px; }
.gm-scr-blackjack .gm-bj-card:nth-child(3) { rotate: 9deg; translate: 0 2px; }
.gm-scr-blackjack .gm-bj-card:nth-child(n+4) { rotate: 13deg; translate: 0 5px; }
.gm-scr-blackjack .gm-bj-card.red { color: #d0182b; }
.gm-scr-blackjack .gm-bj-corner b { font-size: 15px; }
.gm-scr-blackjack .gm-bj-corner small { font-size: 12px; }
.gm-bj-big { position: absolute; inset: 0; display: grid; place-items: center; font-size: 42px; line-height: 1; -webkit-text-stroke: 1.4px #c99a2e; text-shadow: 0 2px 3px rgba(0, 0, 0, .18); }
.gm-scr-blackjack .gm-bj-pips { inset: 20px 9px 20px; font-size: 12px; }
.gm-scr-blackjack .gm-bj-card.back { background: repeating-linear-gradient(45deg, rgba(245, 196, 81, .28) 0 1px, transparent 1px 7px), repeating-linear-gradient(-45deg, rgba(245, 196, 81, .28) 0 1px, transparent 1px 7px), linear-gradient(160deg, #222226, #050506) !important; box-shadow: inset 0 0 0 3px #0b0b0d, inset 0 0 0 4.5px #d6ac4b, 0 8px 16px rgba(0, 0, 0, .55) !important; display: grid; place-items: center; }
.gm-screen .gm-bj-backart { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: radial-gradient(circle, #1a1a1d 55%, #d6ac4b 57% 64%, transparent 66%); }
.gm-bj-backart img { width: 18px; height: 18px; object-fit: contain; }
.gm-scr-blackjack .gm-bj-card.deal { animation: gm-deal .55s cubic-bezier(.2, .8, .3, 1) var(--dl, 0s) both; }
@keyframes gm-deal { 0% { transform: translate(150px, -170px) rotate(-30deg) rotateY(90deg) scale(.8); opacity: 0; } 15% { opacity: 1; } 75% { transform: translate(-3px, 2px) rotate(2deg) rotateY(0) scale(1.03); } 100% { transform: none; } }
.gm-scr-blackjack .gm-bj-card.flip { animation: gm-cardflip .5s ease both; }
@keyframes gm-cardflip { 0% { transform: rotateY(90deg); filter: brightness(1.6); } 100% { transform: none; } }
.gm-bj-arc { position: relative; z-index: 1; height: 34px; margin: 4px -30px 2px; border-top: 2px solid rgba(245, 196, 81, .55); border-radius: 50% / 100% 100% 0 0; display: flex; justify-content: space-evenly; align-items: center; padding: 0 22%; color: rgba(245, 196, 81, .5); font-size: 17px; }
.gm-bj-arc i { font-style: normal; }
.gm-scr-blackjack .gm-bj-total { display: inline-grid; place-items: center; min-width: 46px; height: 30px; padding: 0 10px; margin-top: 8px; border-radius: 15px; font-size: 17px; color: #f5c451 !important; background: linear-gradient(180deg, #1d1d21, #050506); box-shadow: inset 0 0 0 1.5px #d6ac4b, 0 4px 10px rgba(0, 0, 0, .5); }
.gm-scr-blackjack .gm-bj-total.me { color: #fff !important; }
.gm-scr-blackjack .gm-bj-result { margin-top: 8px; color: #241500; background: linear-gradient(180deg, #ffe18a, #e0a92e); box-shadow: 0 0 18px rgba(255, 210, 90, .6); animation: gm-pop .5s cubic-bezier(.2, 1.5, .4, 1); }
.gm-scr-blackjack .gm-bj-result.lose { color: #fff; background: linear-gradient(180deg, #8a2233, #4d0d18); box-shadow: none; }
.gm-scr-blackjack .gm-bj-result.push { color: #fff; background: rgba(255, 255, 255, .2); box-shadow: none; }
.gm-bj-stack { position: absolute; z-index: 0; bottom: 18px; width: 40px; height: 46px; }
.gm-bj-stack.l { left: 14px; }
.gm-bj-stack.r { right: 16px; bottom: 26px; }
.gm-bj-stack i { position: absolute; left: 0; bottom: calc(var(--i) * 6px); width: 40px; height: 14px; border-radius: 50%; background: repeating-linear-gradient(90deg, #f5c451 0 5px, #141416 5px 10px); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 240, 190, .6), 0 2px 3px rgba(0, 0, 0, .5); }
.gm-bj-stack i:last-child { background: radial-gradient(ellipse at 50% 45%, #121214 0 38%, #e9bd55 40% 48%, #121214 50% 60%, transparent 62%), repeating-conic-gradient(from 0deg at 50% 50%, #f5c451 0 20deg, #141416 20deg 40deg); }
.gm-bj-shoe { position: absolute; right: 16px; top: 12px; width: 26px; height: 36px; border-radius: 5px; background: linear-gradient(160deg, #222226, #050506); box-shadow: inset 0 0 0 1.5px #d6ac4b, 2px 2px 0 #0b0b0d, 3px 3px 0 rgba(214, 172, 75, .6), 5px 5px 0 #0b0b0d, 6px 6px 0 rgba(214, 172, 75, .45); opacity: .85; }
.gm-scr-blackjack .gm-bj-player { background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); border-color: rgba(245, 196, 81, .2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.gm-scr-blackjack .gm-bj-player.active { border-color: #f5c451; box-shadow: 0 0 18px rgba(245, 196, 81, .35); }
/* Card in flight shows its back, then turns face up as it lands (same on every screen). */
.gm-scr-blackjack .gm-bj-card.deal::after, .gm-scr-blackjack .gm-bj-card.flip::after {
  content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle, #1a1a1d 0 22%, #d6ac4b 23% 26%, transparent 27%), repeating-linear-gradient(45deg, rgba(245, 196, 81, .28) 0 1px, transparent 1px 7px), repeating-linear-gradient(-45deg, rgba(245, 196, 81, .28) 0 1px, transparent 1px 7px), linear-gradient(160deg, #222226, #050506);
  box-shadow: inset 0 0 0 3px #0b0b0d, inset 0 0 0 4.5px #d6ac4b;
  animation: gm-cardback .55s linear var(--dl, 0s) both;
}
.gm-scr-blackjack .gm-bj-card.flip::after { animation-duration: .5s; animation-delay: 0s; }
.gm-scr-blackjack .gm-bj-card.back.deal::after { display: none; }
@keyframes gm-cardback { 0%, 44% { opacity: 1; } 52%, 100% { opacity: 0; } }
.gm-scr-blackjack .gm-bj-pay { margin-left: 6px; font-variant-numeric: tabular-nums; }
.gm-scr-blackjack .gm-bj-player .gm-grow { min-width: 0; }
.gm-scr-blackjack .gm-bj-player .gm-grow b, .gm-scr-blackjack .gm-bj-player .gm-grow small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-scr-blackjack .gm-bj-player .gm-delta { flex: none; margin-left: 4px; padding: 3px 7px; font-size: 11.5px; }
/* Betting window (glass on felt) */
.gm-bj-bet { position: relative; z-index: 1; margin: 2px 4px 0; padding: 12px; border-radius: 22px; text-align: center; display: grid; gap: 9px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04)); border: 1px solid rgba(245, 196, 81, .35);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 24px rgba(0, 0, 0, .35); }
.gm-bj-bethead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gm-bj-bethead b { color: #f5c451; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; text-shadow: 0 1px 0 rgba(0, 0, 0, .5); }
.gm-bj-betnote { margin: 0; color: rgba(255, 255, 255, .82); font-size: 12.5px; line-height: 1.35; }
.gm-bj-stepper { display: flex; align-items: center; justify-content: center; gap: 12px; }
.gm-bj-step { width: 42px; height: 42px; border-radius: 50%; border: 0; font-size: 22px; font-weight: 900; color: #241500; cursor: pointer;
  background: linear-gradient(180deg, #ffe18a, #e0a92e); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 4px 0 #8b5b22, 0 8px 14px rgba(0, 0, 0, .4); touch-action: manipulation; }
.gm-bj-step:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 2px 0 #8b5b22; }
.gm-bj-step:disabled, .gm-skin .gm-bj-step:disabled { opacity: .4; cursor: default; transform: none; }
.gm-bj-chips[hidden] { display: none; }
.gm-bj-amt { min-width: 130px; height: 44px; padding: 0 14px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(180deg, #1d1d21, #050506); box-shadow: inset 0 0 0 1.5px #d6ac4b, 0 4px 10px rgba(0, 0, 0, .5); color: #f5c451; font-size: 19px; font-variant-numeric: tabular-nums; }
.gm-bj-chips { display: flex; justify-content: center; gap: 8px; }
.gm-bj-chip { min-width: 62px; height: 32px; padding: 0 12px; border-radius: 16px; cursor: pointer; font-weight: 800; font-size: 12.5px; color: #fff; touch-action: manipulation;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(245, 196, 81, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.gm-bj-chip.on { color: #241500; background: linear-gradient(180deg, #ffe18a, #e0a92e); border-color: transparent; box-shadow: 0 0 14px rgba(255, 210, 90, .45); }
.gm-bj-cap { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 10px 11px; border-radius: 14px; background: rgba(0, 0, 0, .28); font-size: 12px; color: rgba(255, 255, 255, .8); overflow: hidden; }
.gm-bj-cap b { color: #f5c451; display: inline-flex; align-items: center; gap: 4px; }
.gm-bj-cap i { position: absolute; left: 10px; right: 10px; bottom: 4px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .15); }
.gm-bj-cap i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); border-radius: inherit; background: linear-gradient(90deg, #e0a92e, #ffe18a); }
.gm-bj-place { width: 100%; }
.gm-bj-placed { display: grid; justify-items: center; gap: 3px; padding: 6px 0; }
.gm-bj-placed b { color: #f5c451; font-size: 22px; display: inline-flex; align-items: center; gap: 6px; }
.gm-bj-placed small { color: rgba(255, 255, 255, .8); }
/* Lobby + invite: table stake picker */
.gm-bj-tstake { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12.5px; color: rgba(255, 255, 255, .85); }
.gm-bj-tstake .gm-bj-step { width: 30px; height: 30px; font-size: 17px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 3px 0 #8b5b22; }
.gm-bj-tstake b { min-width: 78px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; color: #f5c451; font-variant-numeric: tabular-nums; }
.gm-bj-invstake { margin: 6px 0 10px; }
.gm-bj-invstake .gm-bj-tstake { color: inherit; }
.gm-bj-invstake small { display: block; margin-top: 4px; }
.gm-scr-blackjack .gm-b3.bj-stand { --acc1: #3fe08e; --acc2: #0f8a4c; --acc-sh: #064526; color: #021d0d !important; }

/* ===================== Result — celebration ===================== */
.gm-skin.gm-result .gm-res { position: relative; z-index: 2; }
.gm-skin .gm-res .gm-crown { position: relative; width: 120px; height: 90px; margin: 0 auto; display: grid; place-items: center; }
.gm-skin .gm-res .gm-crown span { position: relative; font-size: 54px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); animation: gm-pop .6s cubic-bezier(.2, 1.5, .4, 1); }
.gm-skin .gm-rays { position: absolute; left: 50%; top: 50%; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%; opacity: 0; pointer-events: none; }
.gm-res-win .gm-rays { opacity: .85; background: repeating-conic-gradient(from 0deg, rgba(255, 215, 90, .5) 0 8deg, transparent 8deg 22deg); -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 100%); mask-image: radial-gradient(closest-side, #000 20%, transparent 100%); animation: gm-spin 14s linear infinite; }
.gm-res-win .gm-res h1 { background: linear-gradient(180deg, #fff6c2, #ffd23f 45%, #f08c00) !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; filter: drop-shadow(0 3px 0 rgba(120, 50, 0, .6)) drop-shadow(0 0 18px rgba(255, 200, 60, .55)); font-size: 38px; }
.gm-res-lose .gm-res h1 { animation: gm-pop .5s ease, gm-shake .45s ease .5s; }
.gm-res-lose .gm-crown span { filter: grayscale(.4) drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.gm-skin .gm-bigpot b { color: #ffd23f; text-shadow: 0 0 24px rgba(255, 200, 60, .8), 0 3px 0 rgba(120, 50, 0, .6); }
.gm-skin .gm-rrow.w { border-color: #ffd23f !important; box-shadow: 0 0 0 1px #ffd23f, 0 0 24px -4px rgba(255, 210, 63, .8) !important; }
.gm-skin .gm-conf { z-index: 1; }
.gm-skin .gm-conf i { background: var(--cc) !important; width: 8px; height: 14px; border-radius: 2px; }
.gm-skin .gm-conf i.c { width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6c4, #ffd23f 45%, #c98000) !important; }
.gm-skin .gm-conf i.r { width: 5px; height: 18px; border-radius: 3px; }
.gm-mini .gm-disc.s0 { background: radial-gradient(circle, #ff5868 0 33%, #c80d24 35% 41%, #ff3a4e 43% 64%, #8a0618 100%); }
.gm-mini .gm-disc.s1 { background: radial-gradient(circle, #3ef07c 0 33%, #0b9a3c 35% 41%, #26d865 43% 64%, #05622a 100%); }

/* ===================== small screens + reduced motion ===================== */
@media (max-height: 740px) {
  .gm-scr-rps .gm-pick { width: 92px; height: 108px; }
  .gm-scr-rps .gm-pick .gm-hand { width: 78px; height: 78px; }
  .gm-scr-rps .gm-slot .gm-face { width: 86px; height: 86px; }
  .gm-scr-dice .gm-dice { height: 90px; }
  .gm-die { --s: 46px; }
  .gm-scr-blackjack .gm-bj-card { width: 50px; height: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .gm-skin *, .gm-skin *::before, .gm-skin *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .gm-skin .gm-amb, .gm-skin .gm-b3::after, .gm-skin .gm-rays { animation: none !important; }
}
.gm-skin .gm-mini { width: 100%; }
.gm-skin .gm-mini .gm-c4board { padding: 9px !important; transform: none; box-shadow: 0 7px 0 #2a0d86, 0 14px 26px rgba(20, 0, 80, .6), inset 0 2px 0 rgba(255, 255, 255, .5) !important; }
.gm-skin .gm-mini .gm-c4grid, .gm-skin .gm-mini .gm-c4col { gap: 4px; }
.gm-skin .gm-mini .gm-tttgrid { gap: 6px; padding: 6px; }

/* Current SAKARWINE logo (calligraphy mark) in every game surface */
.gm-screen .gm-ttl { padding-left: 10px; }
.gm-screen .gm-ttl .gm-sm.gm-logo { width: 50px; height: 26px; object-fit: contain; filter: brightness(2.3) drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.gm-screen .gm-cardback img { width: 78%; filter: brightness(2.4) drop-shadow(0 0 6px rgba(255, 90, 220, .7)); }
.gm-screen .gm-arena .gm-wmk { width: 210px; filter: brightness(2.6); opacity: .07; }
.gm-screen .gm-c4brand img.gm-logo { height: 18px; width: auto; filter: brightness(2.4); }
.gm-screen .gm-bhead .gm-brand img.gm-logo { height: 26px; width: auto; filter: brightness(.55) sepia(1) hue-rotate(-15deg) saturate(2.5); }
.gm-screen .gm-tile .gm-wm { width: 60%; }
.gm-screen .gm-bj-backart { width: 36px; height: 36px; }
.gm-screen .gm-bj-backart img { width: 26px; height: 16px; object-fit: contain; border-radius: 0; filter: sepia(1) saturate(3) brightness(1.5); }
.gm-screen.gm-skin > .gm-logo-wm { filter: brightness(2.6); opacity: .06; }
/* Blackjack: gold "Dealer" badge on the dealer's photo (zone label + player list). */
.gm-dav { position: relative; display: inline-grid; place-items: center; flex: none; isolation: isolate; vertical-align: middle; }
.gm-dav::before { content: ""; position: absolute; inset: -3px; z-index: -1; border-radius: 50%;
  background: conic-gradient(from 210deg, #fff4c8, #f5c451 18%, #a8701a 34%, #ffe08a 52%, #c98f24 70%, #fff1bd 86%, #fff4c8);
  box-shadow: 0 0 10px rgba(255, 204, 92, .55), 0 2px 6px rgba(0, 0, 0, .55); }
.gm-dav > .gm-av, .gm-skin .gm-dav > .gm-av { box-shadow: 0 0 0 1.5px #1a1206 !important; }
.gm-dbadge {
  position: absolute; left: 50%; bottom: -7px; z-index: 2; transform: translateX(-50%);
  max-width: 64px; padding: 1.5px 6px 1px; border-radius: 999px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 8px; line-height: 1.3; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; font-style: normal;
  color: #2a1700; text-shadow: 0 1px 0 rgba(255, 245, 210, .6);
  background: linear-gradient(180deg, #fff6d2 0%, #ffd873 38%, #e3a93a 70%, #b97b1e 100%);
  border: 1px solid rgba(255, 246, 214, .85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 -1px 0 rgba(120, 70, 0, .35), 0 2px 6px rgba(0, 0, 0, .55), 0 0 10px rgba(255, 200, 80, .45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none;
}
.gm-dav.md > .gm-av { width: 34px; height: 34px; font-size: 13px; }
.gm-dav.md .gm-dbadge { font-size: 8.5px; bottom: -8px; max-width: 72px; }
/* Dealer zone label: photo with badge, then "Dealer: name" (text kept). */
.gm-bj-label.gm-bj-dlabel { display: flex; align-items: center; justify-content: center; gap: 9px; min-width: 0; padding-bottom: 6px; margin-bottom: 6px; }
.gm-bj-dname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-bj-player .gm-dav { margin-bottom: 4px; }
/* Slow gold sheen on the ring (off for reduced motion). */
@keyframes gm-dav-glow { 0%, 100% { box-shadow: 0 0 8px rgba(255, 204, 92, .45), 0 2px 6px rgba(0, 0, 0, .55); } 50% { box-shadow: 0 0 16px rgba(255, 214, 110, .85), 0 2px 6px rgba(0, 0, 0, .55); } }
.gm-dav::before { animation: gm-dav-glow 2.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .gm-dav::before { animation: none; } }
@media (max-width: 370px) { .gm-dbadge { font-size: 7.5px; padding: 1px 5px; max-width: 56px; } .gm-dav.md > .gm-av { width: 30px; height: 30px; } }
/* Invite list: members below the entry minimum are flagged and can't be picked. */
.gm-friend.gm-friend-low { opacity: .58 !important; cursor: not-allowed; filter: grayscale(.55); border-color: rgba(255, 128, 128, .45) !important; background: rgba(120, 30, 40, .18) !important; }
.gm-friend.gm-friend-low small { color: #ffb0b0 !important; opacity: 1; font-weight: 700; }
.gm-friend.gm-friend-low[disabled] { pointer-events: auto; }
