/* Free-play games, set 2 (virtual coins only). Shared styles. */
.g2-cab { position: relative; margin: .8rem 0 1.2rem; padding: clamp(.7rem, 2.5vw, 1.4rem); border-radius: 18px;
  background: radial-gradient(120% 90% at 50% 0%, #22304d 0%, #121a2b 55%, #0a0f1a 100%);
  border: 1px solid rgba(224,176,74,.4); box-shadow: 0 22px 50px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06); font-family: var(--sans); color: var(--ink); }
.g2-cab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(120deg, rgba(245,214,123,.12), transparent 30%, transparent 70%, rgba(142,192,255,.08)); }
.g2-row { display: flex; flex-wrap: wrap; gap: .55rem .8rem; align-items: center; margin: .7rem 0 0; }
.g2-row > label, .g2-label { font-size: .82rem; color: var(--muted); display: inline-flex; align-items: center; gap: .4rem; }
.g2-row select, .g2-row input[type="number"] { font: inherit; font-size: .9rem; padding: .4rem .55rem; border-radius: 8px; border: 1px solid var(--line); background: #0f1724; color: var(--ink); }
.g2-row input[type="number"] { width: 6.2rem; }
.g2-chips { display: inline-flex; flex-wrap: wrap; gap: .35rem; }
.g2-chip { font: 700 .82rem/1 var(--sans); min-width: 2.7rem; padding: .5rem .6rem; border-radius: 99px; cursor: pointer; color: #f5e3b0;
  background: radial-gradient(circle at 50% 35%, #2c3a58, #172033); border: 2px dashed rgba(245,214,123,.55); transition: transform .12s, background .12s; }
.g2-chip:hover { transform: translateY(-1px); }
.g2-chip[aria-pressed="true"] { color: #1a1406; background: radial-gradient(circle at 50% 35%, #fff0b8, #e0b04a); border-style: solid; border-color: #fff3c4; box-shadow: 0 0 0 3px rgba(224,176,74,.25); }
.g2-chip:disabled { opacity: .5; cursor: not-allowed; }
.g2-btn { font: 800 1rem/1 var(--sans); letter-spacing: .03em; padding: .8rem 1.4rem; border-radius: 12px; cursor: pointer; border: 0; color: #1a1406;
  background: linear-gradient(180deg, #ffe7a3, #e0b04a 60%, #c4901f); box-shadow: 0 6px 0 #7a5410, 0 10px 22px rgba(0,0,0,.4); transition: transform .08s, box-shadow .08s, filter .15s; }
.g2-btn:hover { filter: brightness(1.06); }
.g2-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #7a5410, 0 4px 10px rgba(0,0,0,.4); }
.g2-btn:disabled { filter: grayscale(.7) brightness(.7); cursor: not-allowed; transform: none; }
.g2-btn--alt { color: #fff; background: linear-gradient(180deg, #4f7cff, #1f3a93); box-shadow: 0 6px 0 #0d1d55, 0 10px 22px rgba(0,0,0,.4); }
.g2-btn--ghost { color: var(--gold-hi); background: transparent; border: 1px solid var(--gold); box-shadow: none; padding: .7rem 1rem; }
.g2-btn:focus-visible, .g2-chip:focus-visible, .g2-link:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 2px; }
.g2-link { font: inherit; font-size: .82rem; background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; cursor: pointer; }
.g2-msg { min-height: 1.5em; margin: .8rem 0 0; font-weight: 600; font-size: .95rem; }
.g2-msg.is-win { color: #8ad4a8; } .g2-msg.is-lose { color: #e8a0a0; } .g2-msg.is-info { color: var(--gold-hi); }
.g2-hist { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; font-size: .78rem; font-weight: 700; }
.g2-hist li { padding: .2rem .5rem; border-radius: 6px; background: rgba(255,255,255,.06); }
.g2-hist li.up { color: #8ad4a8; } .g2-hist li.down { color: #e8a0a0; }
.g2-stat { font-size: .82rem; color: var(--muted); }
.g2-stat b { color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.g2-table { border-collapse: collapse; font-family: var(--sans); font-size: .85rem; width: 100%; max-width: 34rem; }
.g2-table th, .g2-table td { text-align: left; padding: .35rem .6rem; border-bottom: 1px solid var(--line); }
.g2-table tr.is-hit td { background: rgba(138,212,168,.18); color: #fff; }
.g2-split { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .g2-split { grid-template-columns: minmax(0, 1.6fr) minmax(15rem, 1fr); } }

/* Plinko */
.pk-board { width: 100%; display: flex; justify-content: center; }
.pk-board canvas { width: 100%; max-width: 760px; display: block; border-radius: 14px; }

/* Crash */
.cr-screen { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.cr-screen canvas { width: 100%; display: block; }
.cr-mult { position: absolute; top: 12%; left: 50%; transform: translateX(-50%); font: 900 clamp(2rem, 8vw, 4rem)/1 var(--sans); color: #fff; text-shadow: 0 0 24px rgba(245,197,66,.6); font-variant-numeric: tabular-nums; pointer-events: none; }
.cr-mult.is-safe { color: #8ad4a8; text-shadow: 0 0 24px rgba(138,212,168,.6); }
.cr-mult.is-crash { color: #ff6b6b; text-shadow: 0 0 24px rgba(255,93,93,.7); animation: g2-shake .4s; }
@keyframes g2-shake { 25% { transform: translateX(calc(-50% - 6px)); } 75% { transform: translateX(calc(-50% + 6px)); } }

/* Keno */
.kn-board { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: clamp(3px, .8vw, 6px); }
.kn-cell { aspect-ratio: 1; font: 700 clamp(.7rem, 2.2vw, 1rem)/1 var(--sans); color: #dfe7f5; border-radius: 50%; cursor: pointer; padding: 0;
  background: radial-gradient(circle at 40% 30%, #2d3c5c, #151f33); border: 1px solid #34466a; transition: transform .12s, background .2s; }
.kn-cell:hover { transform: scale(1.06); }
.kn-cell[aria-pressed="true"] { color: #1a1406; background: radial-gradient(circle at 40% 30%, #fff0b8, #e0b04a); border-color: #fff3c4; }
.kn-cell.is-drawn { background: radial-gradient(circle at 40% 30%, #6f86b8, #2b3d66); color: #fff; animation: g2-pop .3s; }
.kn-cell.is-drawn.is-hit { background: radial-gradient(circle at 40% 30%, #b8ffd2, #2fa84f); color: #04210f; box-shadow: 0 0 14px rgba(47,168,79,.8); }
@keyframes g2-pop { 0% { transform: scale(.6); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* Baccarat */
.bc-felt { border-radius: 16px; padding: 1rem; background: radial-gradient(120% 100% at 50% 0%, #1f7a4a, #0e4a2b 70%, #08301b); border: 6px solid #5a3a1a; box-shadow: inset 0 0 40px rgba(0,0,0,.45); }
.bc-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.bc-side { text-align: center; padding: .5rem; border-radius: 12px; transition: box-shadow .3s, background .3s; }
.bc-side.is-winner { background: rgba(245,214,123,.12); box-shadow: 0 0 0 2px rgba(245,214,123,.7); }
.bc-side h3 { margin: 0 0 .4rem; font: 800 .95rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #fff3c4; }
.bc-total { display: inline-block; min-width: 2.2rem; padding: .15rem .5rem; border-radius: 99px; background: #08301b; color: #fff; font-weight: 800; }
.bc-hand { display: flex; justify-content: center; gap: .35rem; min-height: 6.4rem; margin-top: .5rem; perspective: 800px; }
.bc-card { width: clamp(3.2rem, 11vw, 4.4rem); aspect-ratio: 5 / 7; }
.bc-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .45s ease; transform: rotateY(180deg) translateY(-30px); }
.bc-card.is-up .bc-in { transform: rotateY(0) translateY(0); }
.bc-back, .bc-front { position: absolute; inset: 0; border-radius: 8px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.bc-back { transform: rotateY(180deg); background: repeating-linear-gradient(45deg, #1f3a93 0 6px, #2c4fb8 6px 12px); border: 3px solid #fff; }
.bc-front { background: linear-gradient(180deg, #fff, #f1f1f1); color: #111; border: 1px solid #ccc; box-shadow: 0 4px 10px rgba(0,0,0,.35); font: 800 clamp(.7rem, 2.4vw, .95rem)/1.05 var(--sans); }
.bc-card.red .bc-front { color: #c8102e; }
.bc-front .tl { position: absolute; top: 5px; left: 6px; } .bc-front .br { position: absolute; bottom: 5px; right: 6px; transform: rotate(180deg); }
.bc-front .mid { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(1.3rem, 5vw, 2rem); }
.bc-spots { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .6rem; margin-top: 1rem; }
.bc-spot { font: 800 .9rem var(--sans); color: #fff; padding: .8rem .4rem; border-radius: 12px; cursor: pointer; border: 2px solid rgba(255,255,255,.5); background: rgba(0,0,0,.18); transition: background .15s, transform .1s; }
.bc-spot small { display: block; font-weight: 600; opacity: .8; font-size: .72rem; margin-top: .2rem; }
.bc-spot:hover { background: rgba(255,255,255,.08); }
.bc-spot.has-bet { border-color: var(--gold-hi); }
.bc-spot.is-winner { background: rgba(245,214,123,.25); box-shadow: 0 0 18px rgba(245,214,123,.6); }
.bc-amt { display: block; min-height: 1.2em; margin-top: .3rem; color: var(--gold-hi); }
.bc-road { list-style: none; padding: 0; margin: .7rem 0 0; display: flex; flex-wrap: wrap; gap: 4px; }
.bc-road .bead { width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; font: 800 .7rem var(--sans); color: #fff; }
.bead.player { background: #1f5fd1; } .bead.banker { background: #c8102e; } .bead.tie { background: #2fa84f; }

/* Scratch */
.sc-card { position: relative; max-width: 26rem; margin: 0 auto; padding: 1rem; border-radius: 18px; background: linear-gradient(135deg, #c8102e, #7a0a19 45%, #1f3a93 55%, #10246b); box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.sc-card h3 { margin: 0 0 .6rem; text-align: center; font: 900 1.3rem var(--sans); color: #fff; letter-spacing: .06em; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.sc-wrap { position: relative; border-radius: 12px; overflow: hidden; background: #fffaf0; }
.sc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; }
.sc-grid.is-demo { opacity: .35; filter: grayscale(.6); }
.sc-cell { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; background: radial-gradient(circle, #fff, #f3e6c4); border: 1px solid #e5d3a1; }
.sc-cell svg { width: 72%; height: 72%; }
.sc-cell.is-win { animation: g2-pulse 1s ease-in-out 3; background: radial-gradient(circle, #fffbe0, #ffd76a); box-shadow: 0 0 0 3px #e0b04a inset; }
@keyframes g2-pulse { 50% { transform: scale(1.07); } }
.sc-foil { position: absolute; inset: 0; touch-action: none; cursor: grab; transition: opacity .45s; }
.sc-mini svg { width: 1.4rem; height: 1.4rem; vertical-align: middle; }

/* Stars & Stripes slots */
.ss-machine { --cell: clamp(56px, 15vw, 118px); padding: clamp(.5rem, 2vw, 1rem); border-radius: 18px; background: linear-gradient(180deg, #1f3a93, #0d1d55); border: 4px solid #c8102e; box-shadow: 0 0 0 4px #fff inset, 0 18px 40px rgba(0,0,0,.5); }
.ss-title { text-align: center; margin: 0 0 .6rem; font: 900 clamp(1.1rem, 4vw, 1.7rem) var(--sans); color: #fff; letter-spacing: .08em; text-shadow: 0 0 12px rgba(255,255,255,.35); }
.ss-title span { color: #ff5d6c; }
.ss-window { position: relative; width: calc(var(--cell) * 5 + 4px * 4); max-width: 100%; margin: 0 auto; }
.ss-reels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.ss-reel { height: calc(var(--cell) * 3); overflow: hidden; border-radius: 10px; background: linear-gradient(180deg, #e9edf5, #fff 20%, #fff 80%, #e9edf5); box-shadow: inset 0 8px 14px rgba(0,0,0,.25), inset 0 -8px 14px rgba(0,0,0,.25); }
.ss-strip { will-change: transform; }
.ss-strip.is-spinning .ss-cell svg { filter: blur(1.6px); }
.ss-cell { height: var(--cell); display: grid; place-items: center; }
.ss-cell svg { width: 78%; height: 78%; }
.ss-cell.is-win { animation: g2-pulse .8s ease-in-out 3; background: radial-gradient(circle, rgba(245,214,123,.55), transparent 70%); }
.ss-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ss-line { fill: none; stroke-width: 4; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(0,0,0,.6)); animation: g2-blink 1s ease-in-out infinite; }
@keyframes g2-blink { 50% { opacity: .35; } }
.ss-pay { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); font-family: var(--sans); font-size: .82rem; }
.ss-pay li { display: flex; gap: .55rem; align-items: center; padding: .45rem; border-radius: 10px; background: var(--bg-card); border: 1px solid var(--line); }
.ss-pay b { display: block; color: #fff; } .ss-pay small { display: block; color: var(--muted); }
.ss-pic svg { width: 2.6rem; height: 2.6rem; display: block; }
.ss-linelist { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; font: .75rem var(--sans); color: var(--muted); }
.ss-linelist li { display: flex; flex-direction: column; align-items: center; gap: .2rem; } .ss-linelist svg { width: 50px; height: 30px; }

/* Daily wheel */
.dw { position: relative; display: grid; gap: .8rem; justify-items: center; text-align: center; font-family: var(--sans); }
.dw-stage { position: relative; width: 100%; max-width: 420px; display: flex; justify-content: center; }
.dw[data-compact] .dw-stage { max-width: 260px; }
.dw-stage canvas { display: block; filter: drop-shadow(0 14px 26px rgba(0,0,0,.55)); }
.dw-pointer { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 26px solid #fff3c4; filter: drop-shadow(0 3px 3px rgba(0,0,0,.6)); z-index: 2; }
.dw.is-won .dw-stage::after { content: ""; position: absolute; inset: -10%; border-radius: 50%; background: radial-gradient(circle, rgba(245,214,123,.45), transparent 65%); animation: g2-glow 1.6s ease-out; pointer-events: none; }
@keyframes g2-glow { from { opacity: 1; transform: scale(.8); } to { opacity: 0; transform: scale(1.3); } }
.dw-note { font-size: .8rem; color: var(--muted); margin: 0; }
.dw .g2-msg { margin: 0; }

/* Homepage showcase */
.g2-home { padding: 2rem 0 1.6rem; background: radial-gradient(90% 120% at 50% 0%, rgba(224,176,74,.12), transparent 60%), linear-gradient(180deg, #0c1322, #0f1724); border-bottom: 1px solid rgba(224,176,74,.25); font-family: var(--sans); }
.g2-home h2 { margin: 0 0 .3rem; font-size: clamp(1.4rem, 3.4vw, 2rem); color: #fff; }
.g2-home .sub { margin: 0 0 1.1rem; color: var(--muted); font-size: .95rem; }
.g2-home-grid { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .g2-home-grid { grid-template-columns: minmax(0, 2.3fr) minmax(16rem, 1fr); } }
.g2-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); }
.g2-card { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 16px; text-decoration: none; color: inherit;
  background: linear-gradient(180deg, #1c2638, #111827); border: 1px solid rgba(224,176,74,.3); box-shadow: 0 12px 28px rgba(0,0,0,.4); transition: transform .22s ease, box-shadow .22s ease, border-color .22s; }
.g2-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s ease; }
.g2-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.16) 50%, transparent 65%); transform: translateX(-120%); transition: transform .7s ease; pointer-events: none; }
.g2-card:hover, .g2-card:focus-visible { transform: translateY(-6px) scale(1.015); border-color: var(--gold); box-shadow: 0 22px 44px rgba(0,0,0,.55), 0 0 0 1px rgba(245,214,123,.4), 0 0 28px rgba(224,176,74,.18); }
.g2-card:hover img, .g2-card:focus-visible img { transform: scale(1.06); }
.g2-card:hover::after, .g2-card:focus-visible::after { transform: translateX(120%); }
.g2-card:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; }
.g2-card-body { display: flex; flex-direction: column; gap: .25rem; padding: .75rem .9rem .95rem; }
.g2-card-body b { color: #fff; font-size: 1.05rem; }
.g2-card-body small { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.g2-card-body em { margin-top: .5rem; align-self: flex-start; font-style: normal; font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: #1a1406; background: linear-gradient(180deg, #ffe7a3, var(--gold)); padding: .38rem .85rem; border-radius: 99px; }
.g2-badge { position: absolute; top: .6rem; left: .6rem; z-index: 1; font: 800 .68rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: #c8102e; padding: .25rem .5rem; border-radius: 6px; }
.g2-home-wheel { padding: 1rem; border-radius: 18px; background: radial-gradient(120% 90% at 50% 0%, #22304d, #0a0f1a); border: 1px solid rgba(224,176,74,.4); }
.g2-home-wheel h3 { margin: 0; font: 800 1.15rem var(--sans); color: #fff; }
.g2-home-foot { margin: 1rem 0 0; font-size: .82rem; color: var(--muted); }
.g2-home-foot a { color: var(--link); }
@media (prefers-reduced-motion: reduce) {
  .g2-card, .g2-card img, .g2-card::after, .kn-cell, .bc-in, .sc-foil { transition: none; }
  .ss-cell.is-win, .sc-cell.is-win, .ss-line, .kn-cell.is-drawn, .cr-mult.is-crash { animation: none; }
}
.bc-side h3 { position: relative; z-index: 3; } .bc-hand { position: relative; z-index: 1; }
