/* SAKARWINE in-chat game panel: group games float over the group chat as a glass panel so
   members can read and type in the chat while they play or watch. Visual only. */
.gm-dock { position: fixed; inset: 0; z-index: 30; pointer-events: none; }
.gm-dock > * { pointer-events: auto; }

.gm-dock-panel.gm-screen.gm-skin {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  left: max(10px, calc(50% - 205px));
  right: max(10px, calc(50% - 205px));
  width: auto; margin: 0;
  /* ~66% of the screen, but always leave room for the composer + the last few messages */
  height: min(68dvh, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 236px));
  min-height: 0;
  display: flex; flex-direction: column;
  padding: 0 10px 10px;
  border-radius: 28px;
  border: 1px solid rgba(255, 226, 160, .38) !important;
  box-shadow:
    0 26px 60px rgba(4, 1, 14, .62),
    0 0 0 1px rgba(0, 0, 0, .35),
    inset 0 1px 0 rgba(255, 255, 255, .28),
    inset 0 0 0 1px rgba(255, 255, 255, .05) !important;
  transform-origin: 88% 100%;
  animation: gm-dock-in .42s cubic-bezier(.2, 1.2, .35, 1) both;
}
.gm-dock-panel.gm-screen.gm-skin::after {
  /* thin gold rim light */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  background: linear-gradient(180deg, rgba(255, 228, 170, .35), transparent 18%, transparent 82%, rgba(255, 228, 170, .16)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px;
}
@keyframes gm-dock-in { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
.gm-dock.min .gm-dock-panel { display: none !important; }

/* header: logo · game · sound · help · minimize (· close) */
.gm-dock-hdr { position: relative; z-index: 2; display: flex; align-items: center; gap: 7px; height: 52px; flex: none; margin: 0 -2px; }
.gm-dock-hdr::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 228, 170, .45), transparent); }
.gm-dock-id { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.gm-dock-id .gm-logo { width: 46px; height: 24px; object-fit: contain; flex: none; filter: brightness(2.4) drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.gm-dock-id .gm-stk { min-width: 0; display: flex; flex-direction: column; line-height: 1.1; }
.gm-dock-id .gm-stk b { font-size: 15px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .01em; }
.gm-dock-id .gm-stk small { display: flex; gap: 6px; align-items: center; font-size: 11px; font-weight: 800; color: rgba(255, 255, 255, .7); white-space: nowrap; }
.gm-dock-eye { color: #ffe39a; }
.gm-dock-hdr .gm-iconbtn { width: 36px; height: 36px; border-radius: 13px; flex: none; display: grid; place-items: center; }
.gm-dock-hdr .gm-iconbtn svg { width: 19px; height: 19px; }
.gm-watch-badge {
  font-style: normal; display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 6px; border-radius: 99px;
  background: linear-gradient(180deg, #ff4d6d, #c9184a); color: #fff; font-size: 10px; letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(201, 24, 74, .5);
}
.gm-watch-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: gm-live-dot 1.2s ease-in-out infinite; }
@keyframes gm-live-dot { 50% { opacity: .25; } }

/* spectator strip: players + viewer count */
.gm-watchstrip { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 7px 4px 2px; flex: none; }
.gm-ws-faces { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; overflow: hidden; }
.gm-ws-p { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.gm-ws-p b { font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 78px; }
.gm-skin .gm-ws-p .gm-av.gm-ws-av { width: 26px; height: 26px; font-size: 11px; border-width: 2px; }
.gm-ws-vs { font-style: normal; font-size: 10px; font-weight: 900; color: rgba(255, 228, 170, .8); }
.gm-ws-eye { flex: none; padding: 4px 9px; border-radius: 99px; font-size: 12px; font-weight: 900; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .16); }

/* game content scales to fit (JS sets zoom); scrolls only on very small screens */
.gm-dock-scroll { position: relative; z-index: 1; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; padding-top: 8px; }
.gm-dock-scroll::-webkit-scrollbar { display: none; }
.gm-dock-fit { display: flex; flex-direction: column; margin: 0 auto; }
.gm-docked .gm-dock-fit > .gm-chips, .gm-docked .gm-hint { display: none !important; }
.gm-dock-pot { display: inline-flex; align-items: center; gap: 4px; color: #ffe39a; font-weight: 900; }
.gm-dock-pot .gm-coin { width: 13px; height: 13px; }
/* compact BINGO header rows inside the panel */
.gm-docked.gm-scr-bingo .gm-opps { gap: 6px; }
.gm-docked.gm-scr-bingo .gm-opp { padding: 6px 4px !important; }
.gm-docked .gm-body > .gm-pbar:last-of-type { margin-bottom: 0; }
.gm-docked .gm-body { flex: none; overflow: visible; margin: 0; padding: 0; }
.gm-docked .gm-spacer { flex: none; min-height: 4px; height: 4px; }
.gm-docked .gm-actions { margin-top: 8px; }
.gm-docked .gm-intro { position: absolute; inset: 0; border-radius: inherit; z-index: 40; }
.gm-watching .gm-actions { display: none; }
.gm-watching [data-gm-pick], .gm-watching [data-gm-col], .gm-watching [data-gm-cell], .gm-watching [data-gm-num], .gm-watching [data-gm-bj] { cursor: default; }

/* minimized: floating game bubble above the composer */
.gm-bubble {
  position: absolute; display: none; align-items: center; gap: 9px;
  right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 132px);
  max-width: min(78vw, 300px); padding: 6px 12px 6px 6px; border-radius: 99px;
  color: #fff; font: inherit; font-family: Nunito, system-ui, sans-serif; cursor: pointer;
  background: linear-gradient(180deg, rgba(60, 30, 110, .92), rgba(22, 10, 44, .94));
  border: 1px solid rgba(255, 226, 160, .5);
  box-shadow: 0 14px 34px rgba(4, 1, 14, .55), inset 0 1px 0 rgba(255, 255, 255, .25);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  animation: gm-bubble-in .38s cubic-bezier(.2, 1.4, .4, 1) both;
}
.gm-dock.min .gm-bubble { display: flex; }
.gm-bubble:active { transform: scale(.96); }
.gm-bubble-art { width: 40px; height: 40px; border-radius: 50%; flex: none; background: center / cover no-repeat; box-shadow: 0 0 0 2px #ffd66b, 0 0 14px rgba(255, 200, 80, .5); }
.gm-bubble-txt { min-width: 0; display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.gm-bubble-txt b { font-size: 13px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-bubble-txt small { font-size: 11px; font-weight: 800; color: rgba(255, 255, 255, .72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-bubble-tm { flex: none; padding: 3px 8px; border-radius: 10px; font-size: 12px; font-weight: 900; font-variant-numeric: tabular-nums; background: rgba(0, 0, 0, .35); }
.gm-bubble-tm.low { color: #ff6b81; }
.gm-bubble-up { width: 16px; height: 16px; flex: none; opacity: .8; }
.gm-bubble.hot { border-color: #ffd66b; animation: gm-bubble-in .38s cubic-bezier(.2, 1.4, .4, 1) both, gm-bubble-hot 1.6s ease-in-out .4s infinite; }
.gm-bubble.hot .gm-bubble-txt small { color: #ffe39a; }
.gm-bubble.watch .gm-bubble-art { box-shadow: 0 0 0 2px #ff4d6d, 0 0 14px rgba(255, 77, 109, .5); }
@keyframes gm-bubble-in { from { opacity: 0; transform: translateY(14px) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes gm-bubble-hot { 50% { box-shadow: 0 14px 34px rgba(4, 1, 14, .55), 0 0 0 5px rgba(255, 214, 107, .22), inset 0 1px 0 rgba(255, 255, 255, .25); } }

/* the chat underneath stays usable: keep the newest messages + composer clear of the panel */
/* short room threads sit at the bottom, just under the panel, instead of hiding behind it */
body.gm-dock-on:not(.gm-dock-min) .chat-screen .messages > :first-child { margin-top: auto; }
body.gm-dock-on .chat-screen .composer { position: relative; z-index: 31; }

@media (max-height: 700px) {
  .gm-dock-panel.gm-screen.gm-skin { height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 200px); border-radius: 22px; }
  .gm-dock-hdr { height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .gm-dock-panel.gm-screen.gm-skin, .gm-bubble, .gm-bubble.hot, .gm-watch-badge::before, .gm-lg-dot { animation: none !important; }
}

/* game room chat: the chat under the panel shows only this game's room */
.group-room-bar[hidden] { display: none !important; }
.group-room-bar {
  display: flex; align-items: center; gap: 8px; flex: none;
  margin: 4px 12px 2px; padding: 7px 12px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(60, 30, 110, .82), rgba(26, 12, 50, .86));
  border: 1px solid rgba(255, 226, 160, .32); color: #fff;
  box-shadow: 0 6px 16px rgba(4, 1, 14, .3), inset 0 1px 0 rgba(255, 255, 255, .16);
  font-family: Nunito, system-ui, sans-serif;
}
.group-room-bar b { font-size: 12.5px; font-weight: 900; color: #ffe39a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.group-room-bar small { margin-left: auto; font-size: 11.5px; font-weight: 800; color: rgba(255, 255, 255, .72); white-space: nowrap; }
.group-room-bar small::before { content: "👁 "; }
.group-room-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: #ff4d6d; box-shadow: 0 0 8px #ff4d6d; animation: gm-live-dot 1.2s ease-in-out infinite; }
.room-tag {
  display: inline-block; margin: 0 0 3px; padding: 1px 7px; border-radius: 8px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .01em;
  color: #ffd98a; background: rgba(240, 185, 58, .14); border: 1px solid rgba(240, 185, 58, .4);
}
.bubble.me .room-tag { color: #fff2c9; background: rgba(0, 0, 0, .18); border-color: rgba(255, 226, 160, .4); }
.room-tag + .bubble-text { display: block; }
@media (prefers-reduced-motion: reduce) { .group-room-dot { animation: none; } }
.gm-docked.gm-scr-bingo .gm-opp { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 6px; align-items: center; text-align: left; padding: 6px 8px !important; border-radius: 16px; }
.gm-docked.gm-scr-bingo .gm-opp .gm-av { grid-row: 1 / 3; margin: 0; width: 30px; height: 30px; }
.gm-docked.gm-scr-bingo .gm-opp b { margin-top: 0; }
.gm-docked.gm-scr-bingo .gm-opp > :not(.gm-av):not(b) { grid-column: 2; margin: 0; }

/* ===================== iOS frosted glass system (group chat + game panel) ===================== */
:root {
  --ig-blur: blur(22px) saturate(1.7);
  --ig-fill: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04));
  --ig-tint: rgba(46, 24, 84, .42);
  --ig-line: rgba(255, 255, 255, .17);
  --ig-hi: inset 0 1px 0 rgba(255, 255, 255, .24), inset 0 -1px 0 rgba(255, 255, 255, .04);
  --ig-shadow: 0 12px 32px rgba(6, 2, 18, .38);
}

/* Live Games card — pinned under the group header; the chat scrolls beneath it */
.group-live-games.gm-lg-host { position: relative; z-index: 7; margin: 6px 10px 2px; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; flex: none; }
.group-live-games.gm-lg-host[hidden] { display: none !important; }
.gm-lg-host .gm-lg-rows { max-height: 222px; overflow-y: auto; scrollbar-width: none; }
.gm-lg-host .gm-lg-rows::-webkit-scrollbar { display: none; }
.gm-livegames {
  align-self: stretch; margin: 0; padding: 14px 12px 10px; border-radius: 22px;
  background: var(--ig-fill), var(--ig-tint);
  border: 1px solid rgba(190, 150, 255, .28);
  box-shadow: var(--ig-shadow), var(--ig-hi);
  -webkit-backdrop-filter: var(--ig-blur); backdrop-filter: var(--ig-blur);
  color: #fff; font-family: Nunito, system-ui, -apple-system, sans-serif;
}
.gm-lg-head { display: flex; align-items: center; gap: 8px; padding: 0 4px 10px; }
.gm-lg-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, .18), 0 0 10px rgba(61, 220, 132, .7); }
.gm-lg-head b { font-size: 16px; font-weight: 800; letter-spacing: .01em; }
.gm-lg-head small { margin-left: auto; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .62); }
.gm-lg-rows { display: grid; gap: 8px; }
.gm-lg-row {
  display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 16px; cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)), rgba(10, 4, 24, .32);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  transition: transform .15s ease, border-color .15s ease;
}
.gm-lg-row:active { transform: scale(.985); }
.gm-lg-row:focus-visible { outline: 2px solid rgba(190, 150, 255, .8); outline-offset: 2px; }
.gm-lg-row.on { border-color: rgba(190, 150, 255, .55); }
.gm-lg-thumb { width: 64px; height: 42px; flex: none; border-radius: 10px; object-fit: cover; box-shadow: 0 2px 8px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .14); }
.gm-lg-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gm-lg-txt b { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* player photos in the app's profile-frame style (portrait rounded square, glass rim) */
.gm-lg-faces { display: flex; gap: 5px; min-width: 0; overflow: hidden; }
.gm-lg-face {
  width: 26px; aspect-ratio: 4 / 5; flex: none; border-radius: 8px; overflow: hidden;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(226, 193, 255, .32);
  box-shadow: 0 4px 10px rgba(5, 1, 16, .4), inset 0 1px 0 rgba(255, 238, 255, .2);
}
.gm-lg-face img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Watch: compact pill in the app's green glass Lv tag style (same colors/border/glow/gloss as .badge-lv).
   !important is needed to beat brand-theme's universal button glass. */
.gm-livegames .gm-lg-watch.badge-lv {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  min-width: 0 !important; min-height: 0 !important; height: auto !important;
  padding: 4px 11px !important; border-radius: 999px !important; cursor: pointer;
  font: inherit; font-size: 11.5px !important; font-weight: 800; letter-spacing: .03em; line-height: 1.25;
  color: #fff !important; -webkit-text-fill-color: #fff;
  border: 1px solid #047857 !important;
  background-color: #047857 !important;
  background-image: linear-gradient(90deg, #047857, #0f766e, #4d7c0f, #047857) !important;
  background-size: 280% 100% !important;
  animation: neon-run 2.2s linear infinite;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), 0 0 10px rgba(52, 211, 153, .42) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.3) !important; backdrop-filter: blur(10px) saturate(1.3) !important;
}
.gm-livegames .gm-lg-watch.badge-lv:active { transform: scale(.95); }
.gm-lg-row.on .gm-lg-watch.badge-lv { filter: saturate(1.2) brightness(1.1); }
@media (prefers-reduced-motion: reduce) { .gm-livegames .gm-lg-watch.badge-lv { animation: none; } }
.gm-lg-hint { margin: 10px 4px 2px; text-align: center; font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .55); }

/* Group chat bubbles: translucent frosted glass */
.group-chat-screen .bubble.them {
  background: var(--ig-fill), rgba(30, 22, 48, .42) !important;
  border: 1px solid var(--ig-line) !important;
  box-shadow: 0 6px 18px rgba(6, 2, 18, .25), var(--ig-hi) !important;
  -webkit-backdrop-filter: var(--ig-blur); backdrop-filter: var(--ig-blur);
}
.group-chat-screen .bubble.me {
  background: linear-gradient(135deg, rgba(150, 100, 255, .5), rgba(110, 50, 220, .42)) !important;
  border: 1px solid rgba(220, 196, 255, .32) !important;
  box-shadow: 0 6px 18px rgba(80, 30, 180, .28), inset 0 1px 0 rgba(255, 255, 255, .28) !important;
  -webkit-backdrop-filter: var(--ig-blur); backdrop-filter: var(--ig-blur);
}

/* Game panel: frosted, the chat shows softly through; game art stays as a tinted stage */
.gm-dock-panel.gm-screen.gm-skin {
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)), rgba(16, 8, 34, .4) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.7); backdrop-filter: blur(28px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, .24) !important;
  box-shadow: 0 26px 60px rgba(4, 1, 14, .5), inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 0 0 1px rgba(255, 255, 255, .04) !important;
}
.gm-dock-panel.gm-screen.gm-skin > .gm-stage { opacity: .5; }
.gm-dock-panel.gm-screen.gm-skin::before { opacity: .06 !important; }
.gm-dock-hdr {
  margin: 0 -10px; padding: 0 10px; height: 54px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
}
.gm-dock-hdr::after { display: none; }
.gm-dock-hdr .gm-iconbtn {
  background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .06)) !important;
  border: 1px solid rgba(255, 255, 255, .2) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 4px 10px rgba(0, 0, 0, .2) !important;
}

/* Room chat bar + minimized bubble: glass */
.group-room-bar {
  background: var(--ig-fill), var(--ig-tint);
  border: 1px solid rgba(190, 150, 255, .3);
  box-shadow: var(--ig-shadow), var(--ig-hi);
  -webkit-backdrop-filter: var(--ig-blur); backdrop-filter: var(--ig-blur);
}
.gm-bubble {
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)), rgba(46, 24, 84, .45);
  border: 1px solid rgba(255, 255, 255, .26);
  box-shadow: 0 14px 34px rgba(4, 1, 14, .45), inset 0 1px 0 rgba(255, 255, 255, .32);
  -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8);
}
@media (prefers-reduced-transparency: reduce) {
  .gm-livegames, .gm-lg-row, .group-room-bar, .gm-bubble, .gm-dock-panel.gm-screen.gm-skin { background: rgba(28, 16, 50, .96) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ===================== game lobby + early start vote (glass sheet) ===================== */
.gm-lob-wrap { position: fixed; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 88px); z-index: 36; display: flex; justify-content: center; padding: 0 12px; pointer-events: none; }
.gm-lob {
  pointer-events: auto; width: min(100%, 400px); padding: 14px 14px 12px; border-radius: 24px; color: #fff;
  font-family: Nunito, system-ui, -apple-system, sans-serif;
  background: var(--ig-fill), rgba(36, 18, 70, .74);
  border: 1px solid rgba(220, 196, 255, .3);
  box-shadow: 0 22px 50px rgba(4, 1, 14, .5), var(--ig-hi);
  -webkit-backdrop-filter: blur(26px) saturate(1.8); backdrop-filter: blur(26px) saturate(1.8);
  animation: gm-bubble-in .38s cubic-bezier(.2, 1.2, .4, 1) both;
}
.gm-lob-head { display: flex; align-items: center; gap: 10px; }
.gm-lob-head .gm-grow { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.gm-lob-head b { font-size: 15px; font-weight: 800; }
.gm-lob-head small { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .65); }
.gm-lob-x { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 11px; color: #fff; cursor: pointer; background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)); border: 1px solid rgba(255, 255, 255, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28); }
.gm-lob-x svg { width: 16px; height: 16px; }
.gm-lob-faces { display: flex; justify-content: center; gap: 10px; margin: 14px 0 10px; }
.gm-lob-face {
  position: relative; width: 50px; aspect-ratio: 4 / 5; border-radius: 13px; overflow: visible;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(226, 193, 255, .32);
  box-shadow: 0 8px 18px rgba(5, 1, 16, .42), inset 0 1px 0 rgba(255, 238, 255, .2);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.gm-lob-face img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.gm-lob-face.ok { border-color: rgba(61, 220, 132, .85); box-shadow: 0 0 0 2px rgba(61, 220, 132, .28), 0 8px 18px rgba(5, 1, 16, .42); }
.gm-lob-face.empty { border-style: dashed; border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .04); box-shadow: none; }
.gm-lob-check { position: absolute; right: -6px; bottom: -6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #4ee39a, #19a865); border: 2px solid rgba(20, 10, 40, .85); box-shadow: 0 3px 8px rgba(0, 0, 0, .4); animation: gm-bubble-in .3s cubic-bezier(.2, 1.4, .4, 1) both; }
.gm-lob-check svg { width: 12px; height: 12px; }
.gm-lob-pot { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #ffe39a; margin-bottom: 10px; }
.gm-lob-pot .gm-coin { width: 15px; height: 15px; }
.gm-lob-btn {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 11px 14px; border-radius: 16px; cursor: pointer;
  font: inherit; color: #fff;
  background: linear-gradient(180deg, rgba(196, 150, 255, .5), rgba(124, 58, 237, .4));
  border: 1px solid rgba(220, 196, 255, .45);
  box-shadow: 0 10px 22px rgba(124, 58, 237, .32), inset 0 1px 0 rgba(255, 255, 255, .42);
  -webkit-backdrop-filter: blur(12px) saturate(1.6); backdrop-filter: blur(12px) saturate(1.6);
}
.gm-lob-btn b { font-size: 15px; font-weight: 800; }
.gm-lob-btn small { font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, .75); }
.gm-lob-btn.on { background: linear-gradient(180deg, rgba(78, 227, 154, .32), rgba(25, 168, 101, .26)); border-color: rgba(120, 240, 180, .45); box-shadow: 0 10px 22px rgba(25, 168, 101, .22), inset 0 1px 0 rgba(255, 255, 255, .35); }
.gm-lob-btn:active { transform: scale(.98); }
.gm-lob-btn:disabled { opacity: .6; }
.gm-lob-note { margin: 8px 0 0; text-align: center; font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .55); }
@media (prefers-reduced-motion: reduce) { .gm-lob, .gm-lob-check { animation: none; } }

/* collapse / expand */
.gm-livegames .gm-lg-toggle {
  flex: none; width: 28px !important; height: 28px !important; min-width: 0 !important; min-height: 0 !important; padding: 0 !important; margin-left: 4px; display: grid; place-items: center; border-radius: 10px !important; cursor: pointer; color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .05)) !important;
  border: 1px solid rgba(255, 255, 255, .22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 4px 10px rgba(0, 0, 0, .2) !important;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.gm-lg-toggle svg { width: 15px; height: 15px; transition: transform .25s ease; }
.gm-livegames.collapsed .gm-lg-toggle svg { transform: rotate(180deg); }
.gm-livegames.collapsed { padding: 8px 10px 8px 14px; border-radius: 18px; }
.gm-livegames.collapsed .gm-lg-head { padding: 0; }
.gm-livegames.collapsed .gm-lg-head b { font-size: 14px; }
.gm-lg-minis { display: flex; gap: 4px; margin-left: 4px; min-width: 0; overflow: hidden; }
.gm-lg-mini { width: 34px; height: 22px; flex: none; border-radius: 6px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 2px 6px rgba(0, 0, 0, .35); }
