/* ============================================================
   CASINO DE LA COMMU — machines à sous, blackjack, roulette
   (toutes les classes commencent par cg-)
   ============================================================ */
@keyframes cg-rot { to { transform: rotate(360deg); } }
@keyframes cg-fade { from { opacity: 0; } }
@keyframes cg-pop { from { opacity: 0; transform: scale(.6); } 70% { transform: scale(1.06); } }
@keyframes cg-float { 50% { translate: 0 -6%; } }
@keyframes cg-hit { 50% { transform: scale(1.08); } }
@keyframes cg-bulbs { 50% { opacity: .35; } }
@keyframes cg-line { from { opacity: 0; } }
@keyframes cg-pulse { 50% { filter: brightness(1.45); } }
@keyframes cg-stop { 0% { filter: brightness(1.5); } }

/* ---------- en-tête de page ---------- */
.cg-backlink { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 7px 14px 7px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; color: var(--muted); border: 1px solid var(--line); background: rgba(255, 255, 255, .02); transition: color .2s, border-color .2s; }
.cg-backlink:hover { color: var(--text); border-color: var(--line-2); }
.cg-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 18px 28px; margin-bottom: 22px; }
.cg-head-txt { max-width: 560px; min-width: 0; }
.cg-head .h1 { margin: 12px 0 8px; }
.cg-facts { display: grid; grid-template-columns: repeat(4, auto); gap: 8px; }
.cg-fact { min-width: 88px; padding: 10px 13px; border-radius: 14px; text-align: center; background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); }
.cg-fact b { display: flex; align-items: center; justify-content: center; gap: 7px; font-family: "Unbounded", sans-serif; font-weight: 800; font-size: 15px; color: var(--mint); white-space: nowrap; }
.cg-fact > span { display: block; margin-top: 3px; font-size: 11px; font-weight: 700; color: var(--muted); }
.cg-volb { display: inline-flex; align-items: flex-end; gap: 2px; height: 13px; }
.cg-volb i { width: 4px; border-radius: 2px; background: rgba(255, 255, 255, .18); }
.cg-volb i:nth-child(1) { height: 5px; } .cg-volb i:nth-child(2) { height: 9px; } .cg-volb i:nth-child(3) { height: 13px; }
.cg-volb.v1 i:nth-child(1) { background: var(--green); }
.cg-volb.v2 i:nth-child(-n+2) { background: var(--lilac); }
.cg-volb.v3 i { background: #ff5bd6; }

.cg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: auto 1fr; grid-template-areas: "stage side" "feed side"; gap: 22px; align-items: start; }
.cg-stage { grid-area: stage; min-width: 0; }
.cg-side { grid-area: side; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cg-feedwrap { grid-area: feed; min-width: 0; }
.cg-feedwrap .card { padding: 18px; }
.cg-side .card { padding: 18px; }
.cg-more { margin-top: 56px; }
.cg-free { display: flex; align-items: flex-start; justify-content: center; gap: 8px; margin-top: 14px; font-size: 12.5px; color: var(--dim); text-align: center; }
.cg-free svg { margin-top: 2px; }
.cg-keys { margin-top: 12px; font-size: 12.5px; color: var(--dim); text-align: center; }
.cg-keys b { color: var(--muted); }
@media (hover: none), (max-width: 720px) { .cg-keys { display: none; } }
.cg-lbl { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.cg-bal { display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.cg-bal span { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.cg-bal b { display: flex; align-items: center; gap: 7px; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cg-bal b i, [data-bal] i { font-style: normal; }
.cg-rules { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.cg-rules li { position: relative; padding-left: 16px; line-height: 1.45; }
.cg-rules li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(46, 230, 140, .6); }
.cg-rules-card .cg-rules { margin-top: 0; }

/* ---------- jetons de casino ---------- */
.cg-chip { --c: #2ee68c; --e: #0d6e41; --s: #ffffff; --t: #03160b; position: relative; display: inline-grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  background: radial-gradient(circle closest-side, var(--c) 0 70%, transparent 71%), repeating-conic-gradient(from 6deg, var(--c) 0 33deg, var(--s) 33deg 45deg);
  box-shadow: 0 2px 0 var(--e), 0 5px 10px rgba(0, 0, 0, .45), inset 0 0 0 1.5px rgba(0, 0, 0, .25); }
.cg-chip::before { content: ""; position: absolute; inset: 19%; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .75); }
.cg-chip b { position: relative; font-family: "Unbounded", sans-serif; font-size: 10.5px; font-weight: 800; letter-spacing: -.02em; color: var(--t); }
.cg-chip-z { --c: #2ee68c; --e: #0d6e41; --t: #03160b; }
.cg-chip-q { --c: #c3a3ff; --e: #6a46b8; --t: #1d0d3d; }
.cg-chip-a { --c: #9a5cff; --e: #4d23a3; --t: #fff; }
.cg-chip-b { --c: #1d1631; --e: #000; --s: #2ee68c; --t: #fff; }
.cg-chip-c { --c: #ff5bd6; --e: #a3197f; --t: #2e0624; }
.cg-chip-d { --c: #18b8c9; --e: #0b6370; --t: #031b1f; }
.cg-chip-k { --c: #f4f0ff; --e: #8f84ad; --s: #9a5cff; --t: #3b2468; }
.cg-chipbtn { border-radius: 50%; transition: transform .15s; }
.cg-chipbtn:hover { transform: translateY(-3px); }
.cg-chipbtn .cg-chip { width: 52px; height: 52px; }
.cg-chipbtn .cg-chip b { font-size: 12.5px; }
.cg-chipbtn.on { transform: translateY(-4px); }
.cg-chipbtn.on .cg-chip { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--mint), 0 10px 18px rgba(0, 0, 0, .5); }

/* ---------- panneau « Derniers gains » ---------- */
.cg-fd-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.cg-fd-head .mini-h { display: flex; align-items: center; gap: 6px; margin: 0; }
.cg-fd-tabs { display: inline-flex; gap: 3px; padding: 3px; border-radius: 11px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); }
.cg-fd-tabs button { padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 800; color: var(--muted); }
.cg-fd-tabs .on { color: #fff; background: rgba(154, 92, 255, .22); box-shadow: inset 0 0 0 1px rgba(154, 92, 255, .45); }
.cg-fd-list { display: flex; flex-direction: column; gap: 3px; max-height: 430px; overflow-y: auto; scrollbar-width: thin; }
.cg-fd-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; }
.cg-fd-row:nth-child(odd) { background: rgba(255, 255, 255, .02); }
.cg-fd-row.big { background: linear-gradient(90deg, rgba(46, 230, 140, .14), transparent 80%); }
.cg-fd-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 900; color: #fff; background: linear-gradient(135deg, #1f6b4a, #5b34a8); }
.cg-fd-who { display: flex; flex-direction: column; min-width: 0; }
.cg-fd-who b, .cg-fd-who span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-fd-who b { font-size: 13px; }
.cg-fd-who span { font-size: 11.5px; color: var(--muted); }
.cg-fd-amt { display: flex; flex-direction: column; text-align: right; }
.cg-fd-amt b { font-size: 13.5px; color: var(--mint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cg-fd-amt b.l { color: var(--dim); font-weight: 700; }
.cg-fd-amt span { font-size: 11px; color: var(--dim); white-space: nowrap; }
.cg-fd-empty { padding: 22px 8px; font-size: 13.5px; color: var(--muted); text-align: center; }

/* =============================================================
   MACHINES À SOUS
   ============================================================= */
.cg-th-trefle { --m1: #2ee68c; --m2: #9a5cff; --glow: rgba(46, 230, 140, .45); --tile1: #251a3d; --tile2: #120d21; }
.cg-th-gemmes { --m1: #d6b3ff; --m2: #7a3cf0; --glow: rgba(176, 108, 255, .55); --tile1: #2c1a50; --tile2: #130b26; }
.cg-th-filon { --m1: #ff5bd6; --m2: #4ff0ff; --glow: rgba(255, 91, 214, .45); --tile1: #140d22; --tile2: #07050d; }
.cg-machine { position: relative; isolation: isolate; max-width: 780px; margin: 0 auto; padding: 14px; border-radius: 28px;
  background: linear-gradient(180deg, #231939, #120d1f 55%, #0d0916);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .95), 0 0 90px -34px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .08); }
.cg-machine::before { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(135deg, var(--m1), var(--m2) 55%, var(--m1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.cg-machine.cg-m3 { max-width: 540px; }
.cg-marquee { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; margin-bottom: 12px; padding: 0 12px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .01)); border: 1px solid var(--line-2); }
.cg-marquee::before, .cg-marquee::after { content: ""; position: absolute; left: 8px; right: 8px; height: 5px; background: radial-gradient(circle, var(--m1) 0 1.5px, transparent 2.2px) 0 50% / 13px 5px repeat-x; animation: cg-bulbs 1.1s steps(1) infinite; }
.cg-marquee::before { top: 4px; } .cg-marquee::after { bottom: 4px; animation-delay: -.55s; }
.cg-marquee b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: "Unbounded", sans-serif; font-weight: 900; font-size: 18px; letter-spacing: .02em; text-transform: uppercase;
  background: linear-gradient(90deg, var(--m1), #fff 50%, var(--m2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cg-mq-ic { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; }
.cg-mq-ic svg { width: 28px; height: 28px; }
.cg-mq-rtp { position: absolute; right: 10px; padding: 4px 9px; border-radius: 999px; font-size: 10px; font-weight: 900; letter-spacing: .04em; color: #03160b; background: linear-gradient(180deg, #6dffb3, #1fcf7b); }
.cg-window { position: relative; padding: 10px; border-radius: 20px; background: #06040b; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 12px 30px rgba(0, 0, 0, .85); }
.cg-reels-box { position: relative; }
.cg-reels { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 6px; }
.cg-reel { position: relative; overflow: hidden; container-type: size; border-radius: 14px; background: linear-gradient(180deg, var(--tile2), var(--tile1) 50%, var(--tile2)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.cg-reel::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .62), transparent 17%, transparent 83%, rgba(0, 0, 0, .62)); }
.cg-th-filon .cg-reel { background-image: linear-gradient(rgba(79, 240, 255, .07) 1px, transparent 1px), linear-gradient(180deg, var(--tile2), var(--tile1) 50%, var(--tile2)); background-size: 100% 33.34%, 100% 100%; }
.cg-reel.cg-stop { animation: cg-stop .35s ease-out; }
.cg-strip { position: absolute; top: 0; left: 0; right: 0; will-change: transform; }
.cg-cell { height: calc(100cqh / var(--rows)); display: grid; place-items: center; padding: 6%; }
.cg-cell .cg-s { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 12px; transition: opacity .3s, filter .3s, box-shadow .3s; background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .07), transparent 68%); }
.cg-cell .cg-s-svg svg { width: 76%; height: 76%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .55)); }
.cg-cell .cg-s-fruit svg { width: 80%; height: 80%; }
.cg-cell .cg-s-neon svg { width: 80%; height: 80%; filter: none; }
.cg-cell .cg-s-clover svg { width: 80%; height: 80%; filter: drop-shadow(0 4px 16px rgba(46, 230, 140, .55)); }
.cg-reels.cg-has-win .cg-cell:not(.cg-hit) .cg-s { opacity: .3; filter: saturate(.4); }
.cg-cell.cg-hit .cg-s { animation: cg-hit 1.1s ease-in-out infinite; background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 72%); box-shadow: inset 0 0 0 2px var(--m1), 0 0 24px var(--glow); }
.cg-paylines { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.cg-paylines polyline { fill: none; stroke: var(--lc); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; opacity: .85; filter: drop-shadow(0 0 5px var(--lc)); animation: cg-line .35s ease-out both; transition: stroke-width .2s, opacity .2s; }
.cg-paylines polyline.on { stroke-width: 6.5; opacity: 1; }
.cg-winbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; margin: 12px 0; padding: 10px 16px; border-radius: 14px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.cg-wb-msg { min-width: 0; font-size: 14px; font-weight: 700; color: var(--muted); }
.cg-wb-amt { font-family: "Unbounded", sans-serif; font-size: 20px; font-weight: 800; color: var(--mint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cg-winbar.win { border-color: rgba(46, 230, 140, .5); background: linear-gradient(90deg, rgba(46, 230, 140, .14), rgba(154, 92, 255, .08)); }
.cg-winbar.win .cg-wb-msg { color: var(--text); }
.cg-winbar.spin .cg-wb-msg { color: var(--lilac); }
.cg-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.cg-betbox { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.cg-bets { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.cg-bet { min-width: 48px; height: 40px; padding: 0 10px; border-radius: 12px; font-size: 14px; font-weight: 800; color: var(--muted); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); transition: color .15s, background .15s, box-shadow .15s; font-variant-numeric: tabular-nums; }
.cg-bet:hover { color: var(--text); background: rgba(255, 255, 255, .08); }
.cg-bet.on { color: #03160b; background: linear-gradient(180deg, #6dffb3, #1fcf7b); border-color: transparent; box-shadow: 0 8px 20px -10px rgba(46, 230, 140, .9); }
.cg-spin { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 170px; height: 62px; padding: 0 26px; border-radius: 999px; font-family: "Unbounded", sans-serif; font-size: 17px; font-weight: 800; text-transform: uppercase; color: #03160b;
  background: linear-gradient(180deg, #8dffc6, #2ee68c 55%, #18b86b); box-shadow: 0 14px 34px -12px rgba(46, 230, 140, .9), inset 0 2px 0 rgba(255, 255, 255, .55), inset 0 -3px 0 rgba(0, 0, 0, .18); transition: transform .15s, filter .15s; }
.cg-spin:hover { transform: translateY(-1px); filter: brightness(1.06); }
.cg-spin:active { transform: scale(.97); }
.cg-spin.is-spinning { color: #fff; background: linear-gradient(180deg, #c9a8ff, #9a5cff 55%, #7a3cf0); box-shadow: 0 14px 34px -12px rgba(154, 92, 255, .9), inset 0 2px 0 rgba(255, 255, 255, .4); }
.cg-spin.is-spinning .cg-spin-ic { animation: cg-rot .7s linear infinite; }
.cg-login { min-width: 0; }
.cg-bigwin { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; overflow: hidden; cursor: pointer; border-radius: 20px; background: radial-gradient(circle at 50% 50%, rgba(24, 12, 46, .78), rgba(5, 3, 10, .93)); animation: cg-fade .25s; }
.cg-bigwin[hidden] { display: none; }
.cg-bw-rays { position: absolute; inset: -60%; background: repeating-conic-gradient(rgba(46, 230, 140, .17) 0 9deg, transparent 9deg 20deg); animation: cg-rot 16s linear infinite;
  -webkit-mask-image: radial-gradient(circle, #000 12%, transparent 58%); mask-image: radial-gradient(circle, #000 12%, transparent 58%); }
.cg-bw-mega .cg-bw-rays { background: repeating-conic-gradient(rgba(154, 92, 255, .22) 0 9deg, transparent 9deg 20deg); }
.cg-bw-epic .cg-bw-rays { background: repeating-conic-gradient(rgba(255, 91, 214, .22) 0 9deg, rgba(46, 230, 140, .12) 9deg 13deg, transparent 13deg 20deg); }
.cg-bw-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px; text-align: center; animation: cg-pop .55s cubic-bezier(.2, .9, .3, 1.3); }
.cg-bw-k { font-size: 12px; font-weight: 900; letter-spacing: .3em; text-transform: uppercase; color: var(--mint); }
.cg-bw-t { font-family: "Unbounded", sans-serif; font-size: clamp(30px, 6vw, 58px); font-weight: 900; line-height: 1; text-transform: uppercase;
  background: linear-gradient(180deg, #fff, #7dffbf 52%, #2ee68c); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 22px rgba(46, 230, 140, .5)); }
.cg-bw-mega .cg-bw-t { background-image: linear-gradient(180deg, #fff, #c3a3ff 52%, #9a5cff); filter: drop-shadow(0 4px 22px rgba(154, 92, 255, .6)); }
.cg-bw-epic .cg-bw-t { background-image: linear-gradient(180deg, #fff, #ff9be8 45%, #9a5cff); filter: drop-shadow(0 4px 24px rgba(255, 91, 214, .6)); }
.cg-bw-amt { display: flex; align-items: center; gap: 10px; font-family: "Unbounded", sans-serif; font-size: clamp(26px, 5vw, 44px); font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.cg-bw-amt .coin { width: 1em; height: 1em; }
.cg-bw-x { font-size: 13px; font-weight: 800; color: var(--muted); }
.cg-bw-in .btn { margin-top: 10px; }

/* table des gains */
.cg-pay-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cg-pay-head .mini-h { display: flex; align-items: center; gap: 6px; margin: 0; }
.cg-pay-bet { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.cg-pay-bet .coin { width: 15px; height: 15px; }
.cg-pay-list { display: flex; flex-direction: column; gap: 6px; }
.cg-pay-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 8px 6px 6px; border-radius: 12px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); }
.cg-pay-sym { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: linear-gradient(180deg, var(--tile1), var(--tile2)); }
.cg-pay-sym svg { width: 32px; height: 32px; }
.cg-pay-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 800; }
.cg-pay-vals { display: flex; gap: 5px; }
.cg-pv { display: flex; flex-direction: column; align-items: center; min-width: 50px; padding: 3px 6px; border-radius: 8px; line-height: 1.2; background: rgba(0, 0, 0, .28); }
.cg-pv i { font-style: normal; font-size: 10px; font-weight: 800; color: var(--dim); }
.cg-pv b { font-size: 13px; color: var(--mint); font-variant-numeric: tabular-nums; }
.cg-pv small { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cg-pay-full { display: flex; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; font-size: 12.5px; color: var(--muted); line-height: 1.45; background: linear-gradient(90deg, rgba(154, 92, 255, .12), rgba(46, 230, 140, .06)); border: 1px solid rgba(154, 92, 255, .25); }
.cg-pay-full svg { color: var(--mint); margin-top: 1px; }
.cg-lines-d { margin-top: 12px; }
.cg-lines-d summary { display: flex; align-items: center; gap: 7px; cursor: pointer; font-size: 13px; font-weight: 800; color: var(--green); list-style: none; }
.cg-lines-d summary::-webkit-details-marker { display: none; }
.cg-lines-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; margin-top: 10px; }
.cg-ln { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 800; color: var(--dim); }
.cg-ln i { display: grid; gap: 2px; width: 100%; padding: 4px; border-radius: 6px; background: rgba(0, 0, 0, .3); }
.cg-ln em { aspect-ratio: 1; border-radius: 2px; background: rgba(255, 255, 255, .08); }
.cg-ln em.on { background: var(--m1); box-shadow: 0 0 6px var(--glow); }

/* =============================================================
   BLACKJACK
   ============================================================= */
.cg-bj { --cw: 86px; position: relative; }
.cg-card { position: relative; flex-shrink: 0; width: var(--cw, 86px); aspect-ratio: 5 / 7; perspective: 900px; }
.cg-card-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.3, .7, .3, 1); }
.cg-card.down .cg-card-in { transform: rotateY(180deg); }
.cg-face { position: absolute; inset: 0; overflow: hidden; border-radius: calc(var(--cw, 86px) * .1); -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .22); }
.cg-front { background: linear-gradient(160deg, #ffffff, #efeaf8); }
.cg-back { transform: rotateY(180deg); background: radial-gradient(circle at 50% 38%, #6a3fc4, #2d1660 72%); }
.cg-fc { position: absolute; inset: 0; color: #1d1631; font-family: "Unbounded", sans-serif; }
.cg-fc.red { color: #d81e4b; }
.cg-fc b { color: inherit; }
.cg-c-tl, .cg-c-br { position: absolute; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.cg-c-tl { top: 6%; left: 8%; }
.cg-c-br { right: 8%; bottom: 6%; transform: rotate(180deg); }
.cg-c-tl b, .cg-c-br b { font-size: calc(var(--cw, 86px) * .21); font-weight: 800; letter-spacing: -.06em; }
.cg-fc i { display: block; font-style: normal; line-height: 0; }
.cg-fc i svg.art { width: 1.08em; height: 1.08em; }
.cg-c-tl i, .cg-c-br i { margin-top: 1px; font-size: calc(var(--cw, 86px) * .17); }
.cg-c-mid { position: absolute; inset: 0; display: grid; place-items: center; }
.cg-c-mid i { font-size: calc(var(--cw, 86px) * .48); }
.cg-c-mid.f { inset: 20% 22%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 6px; border: 1.5px solid currentColor; opacity: .92; background: linear-gradient(160deg, rgba(154, 92, 255, .1), rgba(46, 230, 140, .08)); }
.cg-c-mid.f b { font-size: calc(var(--cw, 86px) * .34); font-weight: 900; line-height: 1; }
.cg-c-mid.f i { font-size: calc(var(--cw, 86px) * .2); }
.cg-bk { position: absolute; inset: 6%; display: grid; place-items: center; border-radius: calc(var(--cw, 86px) * .07); border: 1.5px solid rgba(255, 255, 255, .35);
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .08) 0 3px, transparent 3px 8px), repeating-linear-gradient(-45deg, rgba(46, 230, 140, .09) 0 3px, transparent 3px 8px); }
.cg-bk span { display: grid; place-items: center; width: 50%; aspect-ratio: 1; border-radius: 50%; background: rgba(10, 6, 20, .6); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .25); }
.cg-bk svg { width: 78%; height: 78%; }

.cg-felt { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; min-height: 470px; padding: 20px 18px 24px; overflow: hidden;
  border-radius: 30px 30px 48% 48% / 30px 30px 20% 20%;
  background: radial-gradient(120% 85% at 50% 28%, #17855b 0%, #0f5b40 38%, #26174e 94%);
  box-shadow: inset 0 0 0 10px #1c1131, inset 0 0 0 12px rgba(154, 92, 255, .5), inset 0 0 90px rgba(0, 0, 0, .55), 0 40px 80px -40px rgba(0, 0, 0, .95); }
.cg-felt::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none; background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .06) 1px, transparent 1.5px) 0 0 / 6px 6px; }
.cg-felt-mark { position: absolute; left: 50%; top: 52%; z-index: -1; width: 210px; height: 210px; transform: translate(-50%, -50%); opacity: .07; pointer-events: none; filter: grayscale(.2); }
.cg-felt-mark svg { width: 100%; height: 100%; }
.cg-shoe { position: absolute; top: 22px; right: 24px; width: 58px; height: 80px; }
.cg-shoe i { position: absolute; inset: 0; border-radius: 8px; background: radial-gradient(circle at 50% 38%, #6a3fc4, #2d1660 72%); border: 1.5px solid rgba(255, 255, 255, .35); box-shadow: 0 6px 14px rgba(0, 0, 0, .5); }
.cg-shoe i:nth-child(1) { transform: translate(-6px, 5px) rotate(-8deg); }
.cg-shoe i:nth-child(2) { transform: translate(-3px, 2px) rotate(-4deg); }
.cg-shoe span { position: absolute; left: -10px; right: -10px; bottom: -20px; text-align: center; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.cg-bj-dealer { display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: calc(var(--cw) * 1.4 + 36px); }
.cg-bj-lbl { display: flex; align-items: center; gap: 8px; height: 26px; font-size: 11px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.cg-bj-cards { display: flex; justify-content: center; min-height: calc(var(--cw) * 1.4); }
.cg-bj-cards .cg-card + .cg-card { margin-left: calc(var(--cw) * -.5); }
.cg-bj-dealer .cg-bj-cards .cg-card + .cg-card { margin-left: calc(var(--cw) * -.32); }
.cg-bj-tot { display: inline-grid; place-items: center; min-width: 36px; height: 26px; padding: 0 10px; border-radius: 999px; font-family: "Unbounded", sans-serif; font-size: 12.5px; font-weight: 800; letter-spacing: 0; color: #fff; white-space: nowrap; background: rgba(5, 3, 12, .72); border: 1px solid rgba(255, 255, 255, .22); }
.cg-bj-tot[hidden] { display: none; }
.cg-bj-tot.bust { background: #c81e45; border-color: transparent; }
.cg-bj-tot.g { color: #03160b; background: linear-gradient(180deg, #6dffb3, #1fcf7b); border-color: transparent; }
.cg-bj-arc { width: min(580px, 100%); height: auto; margin-top: -6px; overflow: visible; }
.cg-bj-arc text { font-family: "Unbounded", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 2px; fill: rgba(255, 255, 255, .42); }
.cg-bj-msg { min-height: 36px; margin: 4px 0 8px; padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 800; color: #fff; text-align: center; background: rgba(5, 3, 12, .58); border: 1px solid rgba(255, 255, 255, .14); opacity: 0; transition: opacity .25s; }
.cg-bj-msg.on { opacity: 1; }
.cg-bj-msg.g { color: var(--mint); border-color: rgba(46, 230, 140, .6); box-shadow: 0 0 30px -8px rgba(46, 230, 140, .6); }
.cg-bj-msg.l { color: #ffb8c4; }
.cg-bj-msg.p { color: var(--lilac); }
.cg-bj-player { display: flex; justify-content: center; gap: 22px; width: 100%; min-height: calc(var(--cw) * 1.4 + 76px); }
.cg-bj-hand { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; transition: background .25s, box-shadow .25s; min-width: 0; }
.cg-bj-hand.on { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.5px rgba(46, 230, 140, .65), 0 0 34px -10px rgba(46, 230, 140, .7); }
.cg-bj-info { display: flex; align-items: center; gap: 10px; }
.cg-bj-hbet { display: flex; align-items: center; gap: 6px; }
.cg-bj-hbet .cg-chip { width: 24px; height: 24px; }
.cg-bj-hbet .cg-chip + .cg-chip { margin-left: -17px; }
.cg-bj-hbet .cg-chip b { display: none; }
.cg-bj-hbet em { font-style: normal; font-size: 12.5px; font-weight: 800; color: rgba(255, 255, 255, .88); font-variant-numeric: tabular-nums; }
.cg-bj-res { padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; animation: cg-pop .4s cubic-bezier(.2, .9, .3, 1.3); }
.cg-bj-res[hidden] { display: none; }
.cg-bj-res.g { color: #03160b; background: linear-gradient(180deg, #6dffb3, #1fcf7b); box-shadow: 0 8px 20px -8px rgba(46, 230, 140, .9); }
.cg-bj-res.l { color: #ffd6dd; background: rgba(200, 30, 69, .75); }
.cg-bj-res.p { color: #fff; background: rgba(154, 92, 255, .6); }
.cg-bj-res b { color: inherit; }
.cg-bj-spot { position: absolute; left: 50%; bottom: 54px; display: grid; place-items: center; width: 112px; height: 112px; transform: translateX(-50%); border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .35); background: radial-gradient(circle, rgba(255, 255, 255, .05), transparent 70%); }
.cg-bj-spot[hidden] { display: none; }
.cg-bj-spot.has { border-color: rgba(125, 255, 191, .6); }
.cg-bj-stack { position: relative; width: 50px; height: 50px; }
.cg-bj-stack .cg-st { position: absolute; left: 0; bottom: calc(var(--i) * 5px); width: 50px; height: 50px; }
.cg-bj-spot-l { position: absolute; left: 50%; bottom: -32px; transform: translateX(-50%); font-size: 11px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .7); white-space: nowrap; }
.cg-bj-spot-l b { font-family: "Unbounded", sans-serif; font-size: 15px; letter-spacing: 0; color: #fff; }
.cg-felt.playing .cg-bj-spot { display: none; }
.cg-bj-bar { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 18px; }
.cg-bj-rack { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cg-bj-acts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.cg-bj-acts.play + .cg-bal { padding: 6px 12px; }

/* =============================================================
   ROULETTE
   ============================================================= */
.cg-rl { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 24px; align-items: start; }
.cg-rl-wheelcol, .cg-rl-boardcol { min-width: 0; }
.cg-rl-wheel { position: relative; width: 100%; aspect-ratio: 1; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)); }
.cg-wheel { display: block; width: 100%; height: 100%; }
.cg-wheel text { font-family: "Unbounded", sans-serif; font-size: 8px; font-weight: 700; fill: #fff; text-anchor: middle; dominant-baseline: central; }
.cg-wheel [data-ball] { filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .8)); }
.cg-rl-res { position: absolute; left: 50%; top: 50%; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 27%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; color: #fff; background: #191326; border: 3px solid #fff; box-shadow: 0 0 0 5px rgba(0, 0, 0, .35), 0 12px 30px rgba(0, 0, 0, .6); }
.cg-rl-res[hidden] { display: none; }
.cg-rl-res.r { background: #d42a4c; } .cg-rl-res.g { background: #14a862; } .cg-rl-res.b { background: #191326; }
.cg-rl-res b { font-family: "Unbounded", sans-serif; font-size: clamp(22px, 7vw, 34px); font-weight: 900; line-height: 1; color: #fff; }
.cg-rl-res span { margin-top: 3px; font-size: 11px; font-weight: 900; white-space: nowrap; }
.cg-rl-histc { margin-top: 16px; padding: 16px; }
.cg-rl-hist { display: flex; flex-wrap: wrap; gap: 6px; }
.cg-hn { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-family: "Unbounded", sans-serif; font-size: 11px; font-weight: 800; color: #fff; }
.cg-hn.r { background: #d42a4c; } .cg-hn.b { background: #241c36; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); } .cg-hn.g { background: #14a862; }
.cg-hn.last { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--mint); }
.cg-tapis-wrap { padding: 14px; border-radius: 22px; background: radial-gradient(120% 120% at 50% 0%, #137a52, #0d4a35 60%, #1d1240); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -30px rgba(0, 0, 0, .9); }
.cg-tapis { display: grid; grid-template-columns: 1.15fr repeat(12, minmax(0, 1fr)) 1.15fr; grid-template-rows: repeat(3, 54px) 44px 44px; gap: 3px; }
.cg-tp { position: relative; grid-area: var(--ha); display: grid; place-items: center; min-width: 0; border-radius: 8px; font-family: "Unbounded", sans-serif; font-size: 14px; font-weight: 800; color: #fff; border: 1px solid rgba(255, 255, 255, .28); transition: filter .15s, box-shadow .2s; touch-action: manipulation; }
.cg-tp-r { background: linear-gradient(180deg, #e23a5b, #b81e3f); }
.cg-tp-b { background: linear-gradient(180deg, #2b2142, #15101f); }
.cg-tp-g { background: linear-gradient(180deg, #1fc173, #0f8a4f); font-size: 18px; }
.cg-tp-o { background: rgba(255, 255, 255, .05); font-family: "Manrope", sans-serif; font-size: 13px; font-weight: 800; }
.cg-tp:hover { filter: brightness(1.2); }
.cg-tp.cov { filter: brightness(1.2); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .8); }
.cg-tp.won { box-shadow: inset 0 0 0 2px var(--mint), 0 0 18px rgba(46, 230, 140, .65); }
.cg-tp.hitn { z-index: 2; box-shadow: 0 0 0 2px #fff, 0 0 24px 4px rgba(125, 255, 191, .9); animation: cg-pulse .9s ease-in-out 3; }
.cg-tp.lost .cg-tp-chip { opacity: .3; filter: grayscale(1); }
.cg-tp-l { pointer-events: none; }
.cg-tp-chip { position: absolute; left: 50%; top: 50%; z-index: 3; width: 32px; height: 32px; transform: translate(-50%, -50%); pointer-events: none; transition: opacity .3s, filter .3s; }
.cg-tp-chip[hidden] { display: none; }
.cg-tp-chip b { font-size: 9px; }
.cg-dia { display: block; width: 34px; height: 22px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.cg-dia.r { background: #e23a5b; }
.cg-dia.b { background: #120d1d; }
.cg-rl-bar { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; padding: 16px; border-radius: 20px; background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); }
.cg-rl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cg-rl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cg-rl-chips .cg-chip { width: 46px; height: 46px; }
.cg-rl-chips .cg-chip b { font-size: 11px; }
.cg-rl-acts .btn { flex: 1 1 auto; }
.cg-rl-go { justify-content: space-between; }
.cg-rl-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-weight: 800; color: var(--muted); }
.cg-rl-sum b { font-family: "Unbounded", sans-serif; color: var(--text); }
.cg-rl-sum [data-bal] { display: flex; align-items: center; gap: 6px; color: var(--text); font-variant-numeric: tabular-nums; }

/* =============================================================
   VIGNETTES DU HUB (format 3:4)
   ============================================================= */
.cg-cover { --cvg: rgba(46, 230, 140, .5); position: absolute; inset: 0; z-index: 0; isolation: isolate; overflow: hidden; container-type: size; }
.cg-cv-bg { position: absolute; inset: 0; z-index: -2; }
.cg-cv-trefle .cg-cv-bg { background: radial-gradient(95% 62% at 50% 36%, #1f9462 0%, #0e3f2f 46%, #1a0f33 100%); }
.cg-cv-gemmes { --cvg: rgba(176, 108, 255, .6); }
.cg-cv-gemmes .cg-cv-bg { background: radial-gradient(95% 62% at 50% 36%, #8448f2 0%, #3a1a78 46%, #120a24 100%); }
.cg-cv-gemmes .cg-cv-bg::after { content: ""; position: absolute; inset: auto 0 0; height: 46%; opacity: .55; background: linear-gradient(180deg, #4b2496, #1a0c36); clip-path: polygon(0 100%, 0 45%, 7% 14%, 13% 52%, 21% 26%, 29% 62%, 38% 34%, 46% 70%, 55% 40%, 63% 66%, 72% 22%, 80% 56%, 88% 30%, 95% 58%, 100% 40%, 100% 100%); }
.cg-cv-filon { --cvg: rgba(255, 91, 214, .6); }
.cg-cv-filon .cg-cv-bg { background: linear-gradient(180deg, #0b0614 0%, #1c0b30 58%, #33103f 100%); overflow: hidden; }
.cg-cv-filon .cg-cv-bg::after { content: ""; position: absolute; left: -50%; right: -50%; bottom: -12%; height: 52%; transform: perspective(160px) rotateX(58deg); transform-origin: 50% 100%;
  background-image: linear-gradient(rgba(255, 91, 214, .55) 1.5px, transparent 1.5px), linear-gradient(90deg, rgba(79, 240, 255, .5) 1.5px, transparent 1.5px); background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 55%); mask-image: linear-gradient(180deg, transparent, #000 55%); }
.cg-cv-bj { --cvg: rgba(46, 230, 140, .45); }
.cg-cv-bj .cg-cv-bg { background: radial-gradient(100% 70% at 50% 30%, #17855b 0%, #0f5b40 42%, #26174e 100%); }
.cg-cv-rl { --cvg: rgba(154, 92, 255, .55); }
.cg-cv-rl .cg-cv-bg { background: radial-gradient(100% 70% at 50% 36%, #3d2173 0%, #170d2c 72%); }
.cg-cv-rays { position: absolute; inset: -40% -40% 0; z-index: -1; background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, .07) 0 7deg, transparent 7deg 18deg); animation: cg-rot 50s linear infinite;
  -webkit-mask-image: radial-gradient(circle, #000 10%, transparent 55%); mask-image: radial-gradient(circle, #000 10%, transparent 55%); }
.cg-cv-hero { position: absolute; left: 50%; top: 39%; width: 56%; aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; }
.cg-cv-hero .cg-s { display: grid; place-items: center; width: 100%; height: 100%; }
.cg-cv-hero svg { width: 100%; height: 100%; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .55)) drop-shadow(0 0 22px var(--cvg)); }
.cg-cv-hero .cg-s-neon svg { filter: drop-shadow(0 0 14px var(--cvg)); }
.cg-cv-f { position: absolute; display: grid; place-items: center; width: 21%; aspect-ratio: 1; animation: cg-float 5s ease-in-out infinite; }
.cg-cv-f .cg-s { display: grid; place-items: center; width: 100%; height: 100%; }
.cg-cv-f svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.cg-cv-f.f1 { left: 7%; top: 13%; rotate: -14deg; }
.cg-cv-f.f2 { right: 6%; top: 21%; rotate: 12deg; animation-delay: -1.6s; }
.cg-cv-f.f3 { left: 11%; top: 50%; width: 17%; rotate: 8deg; animation-delay: -3.2s; }
.cg-cv-txt { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 26% 7% 8%; text-align: center; background: linear-gradient(180deg, transparent, rgba(5, 3, 10, .88) 62%); }
.cg-cv-title { font-family: "Unbounded", sans-serif; font-size: 11.5cqw; font-weight: 900; line-height: .95; letter-spacing: -.03em; text-transform: uppercase; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .35), 0 0 26px var(--cvg); }
.cg-cv-vol { display: flex; align-items: center; gap: 6px; font-size: 5.4cqw; font-weight: 800; color: rgba(255, 255, 255, .78); }
.cg-cv-rtp { position: absolute; top: 10px; right: 10px; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 900; letter-spacing: .03em; color: #fff; white-space: nowrap; background: rgba(8, 5, 16, .72); border: 1px solid rgba(255, 255, 255, .25); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cg-cv-cards { position: absolute; left: 50%; top: 37%; width: 70%; height: 50%; transform: translate(-50%, -50%); }
.cg-cv-cards .cg-card { --cw: 33cqw; position: absolute; left: 50%; top: 50%; }
.cg-cv-cards .c1 { transform: translate(-86%, -52%) rotate(-13deg); }
.cg-cv-cards .c2 { transform: translate(-16%, -46%) rotate(11deg); }
.cg-cv-chips { position: absolute; left: 50%; top: 63%; display: flex; transform: translateX(-50%); }
.cg-cv-chips .cg-chip { width: 13cqw; height: 13cqw; margin: 0 -1.6cqw; }
.cg-cv-chips .cg-chip b { font-size: 3.2cqw; }
.cg-cv-wheel { position: absolute; left: 50%; top: 39%; width: 80%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.cg-cv-wheel .cg-wheel { animation: cg-rot 36s linear infinite; filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .6)) drop-shadow(0 0 20px var(--cvg)); }

/* =============================================================
   Tablette / mobile
   ============================================================= */
@media (max-width: 1100px) {
  .cg-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "stage" "side" "feed"; }
  .cg-rl { grid-template-columns: minmax(0, 1fr); }
  .cg-rl-wheelcol { width: 100%; max-width: 420px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .cg-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .cg-fact { min-width: 0; padding: 9px 10px; }
  .cg-fact b { font-size: 14px; }
  .cg-machine { padding: 10px; border-radius: 22px; }
  .cg-marquee { height: 44px; margin-bottom: 10px; }
  .cg-marquee b { font-size: 14px; }
  .cg-mq-rtp { display: none; }
  .cg-window { padding: 7px; border-radius: 16px; }
  .cg-reels { gap: 4px; }
  .cg-reel { border-radius: 10px; }
  .cg-cell .cg-s { border-radius: 9px; }
  .cg-winbar { min-height: 48px; padding: 9px 12px; }
  .cg-wb-msg { font-size: 13px; }
  .cg-wb-amt { font-size: 17px; }
  .cg-controls { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .cg-betbox { grid-column: 1 / -1; order: -1; }
  .cg-bets { flex-wrap: nowrap; width: 100%; gap: 5px; }
  .cg-bet { flex: 1 1 0; min-width: 0; padding: 0 4px; }
  .cg-spin { min-width: 148px; height: 56px; padding: 0 18px; font-size: 15px; }
  .cg-controls .cg-login { width: 100%; padding: 0 14px; font-size: 14px; }
  .cg-controls:has(.cg-login) { grid-template-columns: minmax(0, 1fr); }
  .cg-side .card { padding: 16px; }
  .cg-pv { min-width: 44px; padding: 3px 4px; }

  .cg-bj { --cw: 60px; }
  .cg-felt { min-height: 470px; padding: 18px 10px 26px; border-radius: 24px 24px 40% 40% / 24px 24px 14% 14%; box-shadow: inset 0 0 0 7px #1c1131, inset 0 0 0 9px rgba(154, 92, 255, .5), inset 0 0 70px rgba(0, 0, 0, .55), 0 30px 60px -30px rgba(0, 0, 0, .95); }
  .cg-shoe { top: 16px; right: 16px; width: 38px; height: 54px; }
  .cg-shoe span { display: none; }
  .cg-felt-mark { width: 150px; height: 150px; }
  .cg-bj-arc text { font-size: 15px; letter-spacing: 1.5px; }
  .cg-bj-msg { font-size: 13px; padding: 7px 14px; }
  .cg-bj-player { gap: 8px; }
  .cg-bj-hand { padding: 8px 6px; }
  .cg-bj-info { flex-direction: column; gap: 6px; }
  .cg-bj-spot { width: 96px; height: 96px; bottom: 52px; }
  .cg-bj-rack { gap: 6px; }
  .cg-bj-rack .cg-chip { width: 46px; height: 46px; }
  .cg-bj-acts { width: 100%; }
  .cg-bj-acts .btn { flex: 1 1 auto; padding: 0 14px; }
  .cg-bj-acts.play { display: grid; grid-template-columns: 1fr 1fr; }
  .cg-bj-acts .cg-bal { flex: 1 1 100%; flex-direction: row; justify-content: space-between; align-items: center; }

  .cg-tapis-wrap { padding: 8px; border-radius: 18px; }
  .cg-tapis { grid-template-columns: 40px 40px repeat(3, minmax(0, 1fr)); grid-template-rows: 44px repeat(12, 38px) 40px; }
  .cg-tp { grid-area: var(--va); font-size: 13px; border-radius: 7px; }
  .cg-tp-o:not([data-k^="c"]) .cg-tp-l { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11.5px; white-space: nowrap; }
  .cg-tp-o .cg-dia { width: 20px; height: 30px; }
  .cg-tp-chip { width: 28px; height: 28px; }
  .cg-rl-chips { flex-wrap: nowrap; width: 100%; justify-content: space-between; gap: 4px; }
  .cg-rl-chips .cg-chip { width: 48px; height: 48px; }
  .cg-rl-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .cg-rl-go > * { width: 100%; }
  .cg-rl-go .btn { width: 100%; }
  .cg-rl-sum { justify-content: space-between; }
}
@media (max-width: 380px) {
  .cg-spin { min-width: 128px; }
  .cg-bal { padding: 7px 10px; }
  .cg-rl-chips .cg-chip { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .cg-cv-rays, .cg-cv-f, .cg-cv-wheel .cg-wheel, .cg-marquee::before, .cg-marquee::after, .cg-bw-rays, .cg-cell.cg-hit .cg-s { animation: none !important; }
  .cg-card-in { transition: none; }
}
