/* Nebulo Originals — Stake-inspired casino skin (scoped to .cx) */
.cx {
  --cx-bg: #0f212e; --cx-panel: #213743; --cx-side: #1a2c38; --cx-input: #0f212e; --cx-line: #2f4553;
  --cx-hover: #2f4553; --cx-text: #ffffff; --cx-muted: #b1bad3; --cx-green: #00e701; --cx-green-dark: #1fff20;
  --cx-red: #ff3b5c; --cx-gold: #ffc533; --cx-blue: #1475e1;
  color: var(--cx-text); font-family: 'Proxima Nova', Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--cx-bg); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 16px;
  min-height: 560px; box-sizing: border-box; -webkit-font-smoothing: antialiased;
}
.cx *, .cx *::before, .cx *::after { box-sizing: border-box; }
.cx :where(button, input, select) { font-family: inherit; color: inherit; }
.cx svg { display: block; }

/* top bar */
.cx-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cx-brand { display: flex; align-items: center; gap: 10px; }
.cx-brand strong { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.cx-brand small { color: var(--cx-muted); font-size: 11.5px; }
.cx-logo { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; color: #0f212e; background: linear-gradient(135deg, var(--cx-green), #00b3ff); box-shadow: 0 6px 18px rgba(0,231,1,.25); }
.cx-back { display: flex; align-items: center; gap: 8px; background: var(--cx-panel); border: 0; border-radius: 8px; padding: 8px 12px 8px 8px; font-weight: 700; cursor: pointer; transition: background .15s; }
.cx-back svg { width: 18px; height: 18px; }
.cx-back:hover { background: var(--cx-hover); }
.cx-top-right { display: flex; align-items: center; gap: 8px; }
.cx-icon-btn { width: 38px; height: 38px; border-radius: 8px; border: 0; background: var(--cx-panel); cursor: pointer; }
.cx-icon-btn:hover { background: var(--cx-hover); }
.cx-balance { display: flex; align-items: center; gap: 8px; background: var(--cx-input); border: 1px solid var(--cx-line); border-radius: 8px; padding: 8px 14px; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 120px; justify-content: flex-end; }
.cx-balance.is-up { animation: cx-up .7s ease; }
.cx-balance.is-down { animation: cx-down .5s ease; }
@keyframes cx-up { 30% { box-shadow: 0 0 0 3px rgba(0,231,1,.45); color: var(--cx-green); transform: scale(1.04); } }
@keyframes cx-down { 30% { color: var(--cx-red); } }
.cx-coin { color: var(--cx-gold); font-weight: 900; }

/* lobby */
.cx-hero { position: relative; overflow: hidden; border-radius: 14px; padding: 26px 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(0,231,1,.18), transparent 55%), radial-gradient(90% 120% at 0% 100%, rgba(20,117,225,.28), transparent 60%), var(--cx-side); }
.cx-kicker { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--cx-green); margin-bottom: 8px; }
.cx-hero h2 { margin: 0 0 8px; font-size: clamp(24px, 4vw, 34px); line-height: 1.08; font-weight: 900; letter-spacing: -.02em; }
.cx-hero h2 em { font-style: normal; color: var(--cx-green); }
.cx-hero p { margin: 0; color: var(--cx-muted); font-size: 14px; }
.cx-hero-art { display: flex; gap: 10px; flex-shrink: 0; }
.cx-hero-art svg { width: 70px; height: 70px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.06); transform: rotate(-6deg); }
.cx-hero-art svg:nth-child(2) { transform: translateY(-10px) rotate(4deg); }
.cx-h3 { margin: 6px 0 0; font-size: 15px; font-weight: 800; color: var(--cx-text); display: flex; align-items: center; gap: 8px; }
.cx-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cx-tile { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 3 / 4; border: 0; border-radius: 12px; padding: 14px; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  background: linear-gradient(160deg, var(--a), var(--b)); box-shadow: 0 8px 22px rgba(0,0,0,.35);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s; }
.cx-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.45)); z-index: -1; }
.cx-tile:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(0,0,0,.5); }
.cx-tile:focus-visible { outline: 3px solid var(--cx-green); outline-offset: 2px; }
.cx-tile-art { position: absolute; inset: 10% 14% auto; display: grid; place-items: center; z-index: -1; transition: transform .3s; }
.cx-tile-art svg { width: 100%; max-width: 110px; filter: drop-shadow(0 10px 14px rgba(0,0,0,.35)); }
.cx-tile:hover .cx-tile-art { transform: scale(1.08) rotate(-4deg); }
.cx-tile-name { font-size: 19px; font-weight: 900; letter-spacing: -.01em; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.cx-tile-tag { font-size: 12px; color: rgba(255,255,255,.85); }
.cx-tile-badge { margin-top: 6px; font-size: 9px; font-weight: 800; letter-spacing: .14em; color: rgba(255,255,255,.7); }
.cx-notice { display: block; width: 100%; text-align: left; border: 1px solid var(--cx-line); background: var(--cx-side); border-radius: 10px; padding: 12px 14px; color: var(--cx-muted); font-size: 13px; }
.cx-notice.is-live { cursor: pointer; border-color: var(--cx-green); color: var(--cx-text); background: rgba(0,231,1,.08); font-weight: 700; }

/* game layout */
.cx-game { display: grid; grid-template-columns: 300px minmax(0, 1fr); border-radius: 12px; overflow: hidden; background: var(--cx-panel); min-height: 470px; }
.cx-panel { background: var(--cx-side); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.cx-stage { position: relative; background: var(--cx-bg); margin: 0; display: flex; flex-direction: column; min-width: 0; }
.cx-board { position: relative; flex: 1; display: grid; place-items: center; padding: 18px; min-height: 420px; }
.cx-strip { display: flex; gap: 6px; justify-content: flex-end; padding: 10px 12px 0; min-height: 36px; overflow: hidden; flex-wrap: nowrap; }
.cx-pill { flex-shrink: 0; padding: 5px 10px; border-radius: 999px; background: var(--cx-panel); color: var(--cx-muted); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cx-pill.is-win { background: var(--cx-green); color: #04210a; }
.cx-pill.is-new { animation: cx-pop .35s cubic-bezier(.2,.9,.25,1.4); }
@keyframes cx-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* fields */
.cx-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.cx-label { font-size: 13px; font-weight: 700; color: var(--cx-muted); display: flex; justify-content: space-between; }
.cx-label em { font-style: normal; }
.cx-bet, .cx-input { display: flex; align-items: stretch; background: var(--cx-input); border: 2px solid var(--cx-line); border-radius: 6px; overflow: hidden; transition: border-color .15s; }
.cx-bet:focus-within, .cx-input:focus-within { border-color: #557086; }
.cx-bet .cx-coin { display: grid; place-items: center; padding-left: 10px; }
.cx-bet input, .cx-input input { flex: 1; min-width: 0; width: 100%; background: transparent; border: 0; outline: 0; color: var(--cx-text); font-weight: 700; font-size: 14px; line-height: 1; padding: 10px; font-variant-numeric: tabular-nums; }
.cx-bet button { border: 0; background: var(--cx-line); padding: 0 12px; font-weight: 800; font-size: 12.5px; cursor: pointer; border-left: 1px solid var(--cx-input); }
.cx-bet button:hover { background: #3d5a6c; }
.cx-input span { display: grid; place-items: center; padding: 0 12px; color: var(--cx-muted); font-weight: 800; }
.cx select { width: 100%; appearance: none; background: var(--cx-input) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23b1bad3' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center / 16px;
  border: 2px solid var(--cx-line); border-radius: 6px; color: var(--cx-text); font-weight: 700; font-size: 14px; line-height: 1; padding: 10px 34px 10px 10px; cursor: pointer; }
.cx-readout { background: var(--cx-input); border: 2px solid var(--cx-line); border-radius: 6px; padding: 10px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--cx-text); min-height: 42px; display: flex; align-items: center; }
.cx-readout.is-up { color: var(--cx-green); }
.cx-swap { cursor: pointer; justify-content: space-between; width: 100%; text-align: left; }
.cx-swap:hover { border-color: #557086; }
.cx-split, .cx-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cx-ghost { border: 0; border-radius: 6px; background: var(--cx-line); padding: 12px; font-weight: 800; cursor: pointer; transition: background .15s, transform .08s; }
.cx-ghost:hover:not(:disabled) { background: #3d5a6c; }
.cx-ghost:active:not(:disabled) { transform: scale(.97); }
.cx-ghost:disabled { opacity: .45; cursor: not-allowed; }
.cx-play { margin-top: 4px; border: 0; border-radius: 6px; padding: 15px; font-weight: 900; font-size: 15px; letter-spacing: .01em; cursor: pointer; color: #04210a;
  background: var(--cx-green); box-shadow: 0 4px 14px rgba(0,231,1,.25); transition: background .15s, transform .08s, box-shadow .15s; }
.cx-play:hover:not(:disabled) { background: var(--cx-green-dark); box-shadow: 0 6px 22px rgba(0,231,1,.35); }
.cx-play:active:not(:disabled) { transform: scale(.98); }
.cx-play:disabled { opacity: .55; cursor: not-allowed; }
.cx-play.is-busy { position: relative; color: transparent; }
.cx-play.is-busy::after { content: ''; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(4,33,10,.3); border-top-color: #04210a; animation: cx-spin .7s linear infinite; }
.cx-play.is-cash { background: var(--cx-gold); color: #2b1d00; box-shadow: 0 4px 14px rgba(255,197,51,.25); }
.cx-play.is-cash:hover:not(:disabled) { background: #ffd666; }
@keyframes cx-spin { to { transform: rotate(360deg); } }
.cx-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; border: 0; border-radius: 6px; padding: 12px 14px; cursor: pointer; text-align: left; transition: transform .08s, filter .15s; }
.cx-choice span { font-weight: 900; }
.cx-choice small { font-size: 12px; opacity: .85; font-variant-numeric: tabular-nums; }
.cx-choice.is-hi { background: linear-gradient(135deg, #00a32a, #00e701); color: #03200a; }
.cx-choice.is-lo { background: linear-gradient(135deg, #b8102f, #ff3b5c); }
.cx-choice:hover { filter: brightness(1.08); }
.cx-choice:active { transform: scale(.98); }

/* win pop */
.cx-winpop { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5; pointer-events: none; text-align: center;
  background: var(--cx-side); border: 3px solid var(--cx-green); border-radius: 12px; padding: 14px 26px; box-shadow: 0 0 40px rgba(0,231,1,.35); animation: cx-winpop 1.7s ease forwards; }
.cx-winpop strong { display: block; font-size: 28px; font-weight: 900; color: var(--cx-green); }
.cx-winpop span { font-weight: 800; color: var(--cx-text); }
@keyframes cx-winpop { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } 20% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%) scale(.98); } }

/* dice */
.cx-dice { width: 100%; max-width: 720px; display: flex; flex-direction: column; gap: 34px; }
.cx-dice-track { background: var(--cx-panel); border-radius: 999px; padding: 18px 22px; position: relative; }
.cx-dice-scale { position: absolute; left: 22px; right: 22px; top: -26px; display: flex; justify-content: space-between; color: var(--cx-muted); font-weight: 800; font-size: 13px; }
.cx-dice-bar { position: relative; height: 12px; }
.cx-dice-fill { position: absolute; inset: 0; border-radius: 999px; }
.cx-dice-bar input[type=range] { position: absolute; inset: -12px 0; width: 100%; margin: 0; appearance: none; background: transparent; cursor: pointer; }
.cx-dice-bar input[type=range]::-webkit-slider-thumb { appearance: none; width: 36px; height: 36px; border-radius: 6px; background: #557086 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6v12M15 6v12' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat; box-shadow: 0 4px 10px rgba(0,0,0,.4); }
.cx-dice-bar input[type=range]::-moz-range-thumb { width: 36px; height: 36px; border: 0; border-radius: 6px; background: #557086; }
.cx-dice-result { position: absolute; top: -58px; transform: translateX(-50%); transition: left .32s cubic-bezier(.2,.9,.25,1.1); pointer-events: none; }
.cx-dice-result span { display: block; min-width: 66px; text-align: center; padding: 10px 8px; border-radius: 8px; background: #fff; color: #0f212e; font-weight: 900; font-variant-numeric: tabular-nums; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.cx-dice-result::after { content: ''; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%) rotate(45deg); width: 12px; height: 12px; background: #fff; z-index: -1; }
.cx-dice-result.is-win span { color: #00a32a; } .cx-dice-result.is-loss span { color: #e0243f; }
.cx-dice-result.is-win span, .cx-dice-result.is-loss span { animation: cx-pop .25s ease; }
.cx-dice-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; background: var(--cx-panel); border-radius: 10px; padding: 14px; }

/* limbo */
.cx-limbo { text-align: center; }
.cx-limbo-value { font-size: clamp(56px, 12vw, 110px); font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.cx-limbo-value.is-win { color: var(--cx-green); text-shadow: 0 0 40px rgba(0,231,1,.35); animation: cx-pop .3s ease; }
.cx-limbo-value.is-loss { color: var(--cx-red); }
.cx-limbo-sub { margin-top: 14px; color: var(--cx-muted); font-weight: 700; }
.cx-limbo-sub b { color: var(--cx-text); }

/* plinko */
.cx-plinko { display: flex; flex-direction: column; align-items: center; width: 100%; }
.cx-plinko canvas { display: block; }
.cx-plinko-slots { display: flex; gap: 3px; margin-top: 2px; }
.cx-plinko-slots span { flex: 1; min-width: 0; text-align: center; padding: 7px 0; border-radius: 5px; background: var(--c); color: #2b1300; font-weight: 900; font-size: clamp(8px, 1.1vw, 12px); box-shadow: 0 4px 0 rgba(0,0,0,.35); overflow: hidden; white-space: nowrap; }
.cx-plinko-slots span.is-hit { animation: cx-slot .45s ease; }
@keyframes cx-slot { 30% { transform: translateY(6px); box-shadow: 0 0 0 rgba(0,0,0,.35); filter: brightness(1.3); } }

/* keno */
.cx-keno { width: 100%; max-width: 680px; }
.cx-keno-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.cx-keno-tile { aspect-ratio: 1; border: 0; border-radius: 8px; background: var(--cx-line); font-weight: 900; font-size: 15px; cursor: pointer; box-shadow: 0 4px 0 #1a2c38; transition: transform .08s, background .15s; }
.cx-keno-tile:hover { background: #3d5a6c; transform: translateY(-2px); }
.cx-keno-tile.is-picked { background: #7f47fd; box-shadow: 0 4px 0 #4a23b3; }
.cx-keno-tile.is-drawn { background: #0f212e; color: var(--cx-red); box-shadow: inset 0 0 0 2px var(--cx-line); animation: cx-pop .25s ease; }
.cx-keno-tile.is-hit { background: var(--cx-green); color: #04210a; box-shadow: 0 0 18px rgba(0,231,1,.45); }
.cx-keno-pay { display: flex; gap: 4px; margin-top: 14px; overflow-x: auto; }
.cx-keno-pay span { flex: 1; min-width: 56px; text-align: center; background: var(--cx-panel); border-radius: 6px; padding: 7px 4px; }
.cx-keno-pay span b { display: block; font-size: 12px; }
.cx-keno-pay span small { color: var(--cx-muted); font-size: 10.5px; }
.cx-keno-pay span.is-hit { background: var(--cx-green); color: #04210a; } .cx-keno-pay span.is-hit small { color: #04210a; }
.cx-keno-pay em { color: var(--cx-muted); font-style: normal; font-size: 13px; padding: 8px; }

/* wheel */
.cx-board:has(.cx-wheel) { align-content: center; gap: 14px; }
.cx-wheel { position: relative; display: grid; place-items: center; }
.cx-wheel canvas { display: block; filter: drop-shadow(0 10px 30px rgba(0,0,0,.45)); }
.cx-wheel-pointer { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 24px solid var(--cx-red); z-index: 2; filter: drop-shadow(0 3px 4px rgba(0,0,0,.5)); }
.cx-wheel-center { position: absolute; inset: 0; margin: auto; width: fit-content; height: fit-content; font-size: clamp(26px, 5vw, 40px); font-weight: 900; color: var(--cx-muted); }
.cx-wheel-center.is-win { color: var(--cx-green); animation: cx-pop .3s ease; }
.cx-wheel-legend { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.cx-wheel-legend span { padding: 7px 12px; border-radius: 6px; background: var(--cx-panel); border-bottom: 4px solid var(--c); font-weight: 900; font-size: 13px; transition: transform .15s; }
.cx-wheel-legend span.is-hit { transform: translateY(-4px); background: var(--c); color: #0f212e; }

/* mines */
.cx-mines { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; width: 100%; max-width: 460px; }
.cx-mines.is-shake { animation: cx-shake .45s ease; }
.cx-tile5 { aspect-ratio: 1; border: 0; border-radius: 8px; cursor: pointer; background: var(--cx-line); box-shadow: 0 5px 0 #1a2c38; transition: transform .1s, background .15s; display: grid; place-items: center; }
.cx-tile5:hover:not(:disabled) { background: #557086; transform: translateY(-3px); }
.cx-tile5:disabled { cursor: default; }
.cx-tile5.is-pending { animation: cx-pulse .6s ease infinite alternate; }
.cx-tile5 span { width: 62%; aspect-ratio: 1; }
.cx-tile5.is-open, .cx-tile5.is-ghost { background: #071824; box-shadow: none; transform: none; }
.cx-tile5.is-gem span { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 8l18 12-18 36L14 20z' fill='%2369f0ae'/%3E%3Cpath d='M14 20h36L32 56z' fill='%2300c853'/%3E%3Cpath d='M32 8l18 12H14z' fill='%23b9f6ca'/%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 0 10px rgba(0,231,1,.6)); }
.cx-tile5.is-bomb span { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='30' cy='36' r='20' fill='%23ff3b5c'/%3E%3Ccircle cx='24' cy='30' r='6' fill='%23ff8aa0'/%3E%3Cpath d='M42 18l8-8' stroke='%23ffc533' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 0 10px rgba(255,59,92,.6)); }
.cx-tile5.is-open span { animation: cx-pop .3s cubic-bezier(.2,.9,.25,1.4); }
.cx-tile5.is-ghost span { opacity: .35; transform: scale(.8); }
@keyframes cx-pulse { to { background: #557086; } }
@keyframes cx-shake { 20%,60% { transform: translateX(-7px); } 40%,80% { transform: translateX(7px); } }

/* crash */
.cx-crash { position: relative; width: 100%; display: grid; place-items: center; }
.cx-crash canvas { display: block; background: radial-gradient(90% 120% at 50% 100%, rgba(20,117,225,.18), transparent 70%); border-radius: 10px; }
.cx-crash-value { position: absolute; top: 34%; left: 50%; transform: translate(-50%, -50%); font-size: clamp(44px, 9vw, 84px); font-weight: 900; font-variant-numeric: tabular-nums; text-shadow: 0 4px 24px rgba(0,0,0,.5); pointer-events: none; }
.cx-crash-value.is-win { color: var(--cx-green); } .cx-crash-value.is-loss { color: var(--cx-red); animation: cx-shake .4s ease; }
.cx-crash-sub { position: absolute; top: calc(34% + 52px); left: 50%; transform: translateX(-50%); color: var(--cx-muted); font-weight: 700; font-size: 13px; white-space: nowrap; }

/* cards (hilo / blackjack) */
.cx-card { position: relative; width: 84px; aspect-ratio: 5 / 7; border-radius: 9px; background: #fff; color: #0f212e; box-shadow: 0 8px 18px rgba(0,0,0,.45); flex-shrink: 0; }
.cx-card b { position: absolute; top: 6px; left: 8px; font-size: 22px; font-weight: 900; line-height: 1; }
.cx-card i { position: absolute; top: 30px; left: 9px; font-style: normal; font-size: 16px; }
.cx-card em { position: absolute; right: 10px; bottom: 6px; font-style: normal; font-size: 34px; line-height: 1; }
.cx-card.is-red { color: #e0243f; }
.cx-card.is-back { background: repeating-linear-gradient(45deg, #1475e1 0 7px, #0f5db8 7px 14px); border: 3px solid #fff; }
.cx-card.is-flip { animation: cx-flip .4s ease; }
.cx-card.is-deal { animation: cx-deal .38s cubic-bezier(.2,.9,.25,1.15) backwards; }
@keyframes cx-flip { from { transform: rotateY(90deg); } to { transform: none; } }
@keyframes cx-deal { from { transform: translate(140px, -120px) rotate(14deg); opacity: 0; } to { transform: none; opacity: 1; } }

.cx-hilo { display: flex; flex-direction: column; align-items: center; gap: 22px; width: 100%; }
.cx-hilo-hint { display: flex; justify-content: space-between; width: 220px; color: var(--cx-muted); font-weight: 900; }
.cx-hilo-hint span { display: flex; flex-direction: column; align-items: center; }
.cx-hilo-hint small { font-size: 10px; font-weight: 700; }
.cx-hilo-card .cx-card { width: 130px; }
.cx-hilo-card .cx-card b { font-size: 32px; } .cx-hilo-card .cx-card em { font-size: 52px; } .cx-hilo-card .cx-card i { top: 42px; font-size: 22px; }
.cx-hilo-trail { display: flex; gap: 6px; overflow-x: auto; max-width: 100%; padding: 4px 2px 8px; }
.cx-trail { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cx-trail .cx-card { width: 44px; box-shadow: 0 0 0 3px var(--cx-line); }
.cx-trail .cx-card b { font-size: 13px; top: 3px; left: 4px; } .cx-trail .cx-card i { display: none; } .cx-trail .cx-card em { font-size: 18px; right: 4px; bottom: 3px; }
.cx-trail.is-win .cx-card { box-shadow: 0 0 0 3px var(--cx-green); }
.cx-trail.is-loss .cx-card { box-shadow: 0 0 0 3px var(--cx-red); }
.cx-trail small { font-size: 10px; color: var(--cx-muted); font-weight: 800; }

.cx-bj { width: 100%; max-width: 640px; }
.cx-bj-felt { position: relative; border-radius: 200px 200px 24px 24px; padding: 26px 18px; min-height: 380px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 18px;
  background: radial-gradient(120% 100% at 50% 0%, #1f6b46, #0d3b27 70%); box-shadow: inset 0 0 0 8px #3b2414, inset 0 0 0 10px #5c3a1e, 0 18px 40px rgba(0,0,0,.45); }
.cx-bj-hand { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cx-bj-cards { display: flex; gap: 0; min-height: 117px; }
.cx-bj-cards .cx-card + .cx-card { margin-left: -38px; }
.cx-bj-label { font-weight: 800; color: rgba(255,255,255,.85); display: flex; gap: 8px; align-items: center; }
.cx-bj-label b { background: rgba(0,0,0,.4); padding: 3px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.cx-bj-rules { font-size: 10.5px; letter-spacing: .18em; font-weight: 800; color: rgba(255,214,102,.75); text-align: center; }
.cx-bj-result { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 12px 22px; border-radius: 10px; font-weight: 900; font-size: 20px; background: rgba(15,33,46,.92); border: 2px solid var(--cx-line); animation: cx-pop .3s ease; }
.cx-bj-result.is-win { color: var(--cx-green); border-color: var(--cx-green); } .cx-bj-result.is-loss { color: var(--cx-red); }

/* history */
.cx-history { display: flex; flex-direction: column; gap: 8px; }
.cx-table-wrap { overflow-x: auto; border-radius: 10px; background: var(--cx-side); }
.cx-history table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.cx-history th { text-align: left; color: var(--cx-muted); font-weight: 700; padding: 10px 14px; }
.cx-history td { padding: 10px 14px; font-weight: 700; border-top: 1px solid rgba(255,255,255,.04); }
.cx-history tr:nth-child(odd) td { background: rgba(255,255,255,.02); }
.cx-history td.is-up { color: var(--cx-green); } .cx-history td.is-down { color: var(--cx-muted); }
.cx-empty { color: var(--cx-muted); font-size: 13px; margin: 0; }
.cx-foot { color: var(--cx-muted); font-size: 11.5px; text-align: center; margin: 0; }

/* responsive: Stake puts the board on top on phones */
@media (max-width: 820px) {
  .cx { padding: 10px; }
  .cx-game { grid-template-columns: 1fr; }
  .cx-stage { order: -1; }
  .cx-board { min-height: 320px; padding: 12px; }
  .cx-hero-art { display: none; }
  .cx-keno-grid { gap: 5px; }
  .cx-dice-stats { grid-template-columns: 1fr; }
  .cx-card { width: 66px; } .cx-hilo-card .cx-card { width: 110px; }
  .cx-bj-cards .cx-card + .cx-card { margin-left: -30px; }
}
@media (max-width: 420px) {
  .cx-tiles { grid-template-columns: repeat(2, 1fr); }
  .cx-balance { min-width: 0; }
}

/* ── batch 2 ─────────────────────────────────────────────────────────── */
.cx-choice.is-gold { background: linear-gradient(135deg, #c68a00, #ffc533); color: #2b1d00; }
.cx-chip { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); min-width: 26px; height: 26px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center;
  background: radial-gradient(circle, #ffc533 55%, #c68a00 56%); border: 2px dashed #fff; color: #2b1d00; font-size: 10px; font-weight: 900; box-shadow: 0 3px 8px rgba(0,0,0,.5); pointer-events: none; animation: cx-pop .2s ease; z-index: 2; }

/* roulette */
.cx-roulette { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cx-rwheel { position: relative; display: grid; place-items: center; }
.cx-rwheel canvas { display: block; filter: drop-shadow(0 10px 24px rgba(0,0,0,.5)); }
.cx-rresult { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 900; color: var(--cx-muted); }
.cx-rresult.is-show { color: #fff; animation: cx-pop .3s ease; }
.cx-rresult.is-red { background: #e0243f; } .cx-rresult.is-black { background: #1a2c38; box-shadow: 0 0 0 2px #557086; } .cx-rresult.is-green { background: #16a34a; }
.cx-rtable { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto auto; gap: 4px; width: 100%; max-width: 720px; }
.cx-rtable > .is-zero { grid-row: 1; grid-column: 1; }
.cx-rgrid { grid-row: 1; grid-column: 2; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)) 44px; gap: 4px; }
.cx-rdozens { grid-row: 2; grid-column: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 44px; gap: 4px; }
.cx-rdozens::after { content: ''; }
.cx-routside { grid-row: 3; grid-column: 2; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) 44px; gap: 4px; }
.cx-routside::after { content: ''; }
.cx-rspot { position: relative; min-width: 0; padding: 0; overflow: visible; border: 0; border-radius: 5px; min-height: 40px; font-weight: 900; font-size: 13px; cursor: pointer; transition: filter .12s, transform .08s; }
.cx-rspot:hover { filter: brightness(1.25); }
.cx-rspot:active { transform: scale(.96); }
.cx-rspot.is-red { background: #e0243f; } .cx-rspot.is-black { background: #2f4553; } .cx-rspot.is-green { background: #16a34a; }
.cx-rspot.is-out { background: transparent; box-shadow: inset 0 0 0 2px var(--cx-line); color: var(--cx-muted); font-size: 12px; }
.cx-rspot.is-win { box-shadow: inset 0 0 0 3px var(--cx-green), 0 0 14px rgba(0,231,1,.45); color: #fff; }
.cx-rspot.is-landed { animation: cx-land .7s ease 3; }
@keyframes cx-land { 50% { transform: scale(1.12); box-shadow: 0 0 0 3px #fff; } }
.cx-dot { display: inline-block; width: 16px; height: 16px; border-radius: 4px; vertical-align: middle; transform: rotate(45deg); }
.cx-dot.is-red { background: #e0243f; } .cx-dot.is-black { background: #0f212e; box-shadow: 0 0 0 2px #557086; }

/* baccarat */
.cx-bac { width: 100%; max-width: 680px; }
.cx-bac-felt { border-radius: 24px; padding: 26px 18px; display: flex; flex-direction: column; gap: 20px; align-items: center;
  background: radial-gradient(120% 100% at 50% 0%, #4a2a7a, #1f1240 70%); box-shadow: inset 0 0 0 8px #3b2414, inset 0 0 0 10px #5c3a1e, 0 18px 40px rgba(0,0,0,.45); }
.cx-bac-hands { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; }
.cx-bac-hand { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; transition: background .2s, box-shadow .2s; }
.cx-bac-hand.is-win { background: rgba(0,231,1,.08); box-shadow: inset 0 0 0 2px var(--cx-green); }
.cx-bac-spots { display: grid; grid-template-columns: 1fr .8fr 1fr; gap: 10px; width: 100%; }
.cx-bspot { position: relative; border: 2px solid rgba(255,255,255,.25); border-radius: 12px; padding: 18px 8px; background: rgba(0,0,0,.25); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: background .15s, border-color .15s; }
.cx-bspot strong { font-size: 15px; letter-spacing: .1em; } .cx-bspot small { color: var(--cx-muted); font-weight: 800; }
.cx-bspot.is-player strong { color: #64b5f6; } .cx-bspot.is-banker strong { color: #ff8a80; } .cx-bspot.is-tie strong { color: #69f0ae; }
.cx-bspot:hover { background: rgba(255,255,255,.08); }
.cx-bspot.is-win { border-color: var(--cx-green); box-shadow: 0 0 18px rgba(0,231,1,.35); }
.cx-bspot .cx-chip { top: auto; bottom: -10px; transform: translateX(-50%); }

/* diamonds */
.cx-diamonds { width: 100%; max-width: 620px; display: flex; flex-direction: column; gap: 22px; align-items: center; }
.cx-gems { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; width: 100%; }
.cx-gem-slot { aspect-ratio: 1; border-radius: 14px; background: var(--cx-panel); box-shadow: inset 0 -6px 0 rgba(0,0,0,.25); display: grid; place-items: center; transition: background .2s, box-shadow .2s, opacity .2s; }
.cx-gem-slot span { width: 64%; }
.cx-gem-slot.is-in span { animation: cx-gemdrop .35s cubic-bezier(.2,.9,.25,1.3) backwards; }
@keyframes cx-gemdrop { from { transform: translateY(-60px) scale(.5); opacity: 0; } }
.cx-gem-slot.is-match { background: color-mix(in srgb, var(--gc) 22%, var(--cx-panel)); box-shadow: inset 0 0 0 3px var(--gc), 0 0 20px color-mix(in srgb, var(--gc) 45%, transparent); }
.cx-gem-slot.is-dim { opacity: .45; }
.cx-dpay { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; }
.cx-dpay div { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 6px; background: var(--cx-side); font-weight: 700; font-size: 13px; color: var(--cx-muted); }
.cx-dpay div b { color: var(--cx-text); }
.cx-dpay div.is-hit { background: var(--cx-green); color: #04210a; } .cx-dpay div.is-hit b { color: #04210a; }

/* dragon tower */
.cx-tower { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,87,34,.10), rgba(74,20,140,.12)); }
.cx-tower.is-shake { animation: cx-shake .45s ease; }
.cx-trow { display: grid; grid-template-columns: 60px repeat(var(--cols), 1fr); gap: 6px; align-items: center; opacity: .55; transition: opacity .2s; }
.cx-trow.is-current, .cx-trow.is-climbed { opacity: 1; }
.cx-tmult { font-size: 12px; font-weight: 900; color: var(--cx-muted); text-align: right; padding-right: 4px; font-variant-numeric: tabular-nums; }
.cx-trow.is-current .cx-tmult { color: var(--cx-gold); }
.cx-ttile { height: 38px; border: 0; border-radius: 8px; background: var(--cx-line); box-shadow: 0 4px 0 #1a2c38; display: grid; place-items: center; cursor: default; transition: transform .08s, background .15s; }
.cx-trow.is-current .cx-ttile { cursor: pointer; background: #3d5a6c; box-shadow: 0 4px 0 #1a2c38, 0 0 0 2px rgba(255,197,51,.35); }
.cx-trow.is-current .cx-ttile:hover { background: #557086; transform: translateY(-2px); }
.cx-ttile span { width: 26px; height: 26px; }
.cx-ttile.is-egg, .cx-ttile.is-dragon { background: #071824; box-shadow: none; }
.cx-ttile.is-egg span { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cellipse cx='16' cy='18' rx='10' ry='12' fill='%2369f0ae'/%3E%3Cellipse cx='12' cy='13' rx='3' ry='4' fill='%23fff' opacity='.6'/%3E%3C/svg%3E") center / contain no-repeat; }
.cx-ttile.is-dragon span { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M4 22c4-10 12-14 22-14-3 3-3 6 0 8-6 0-8 4-6 10-6-4-12-4-16-4z' fill='%23ff5252'/%3E%3Ccircle cx='21' cy='13' r='1.6' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat; }
.cx-ttile.is-picked { box-shadow: inset 0 0 0 2px #fff; }
.cx-ttile.is-picked.is-egg { box-shadow: inset 0 0 0 2px var(--cx-green), 0 0 14px rgba(0,231,1,.4); }
.cx-ttile.is-picked.is-dragon { box-shadow: inset 0 0 0 2px var(--cx-red), 0 0 14px rgba(255,59,92,.45); animation: cx-pop .3s ease; }
.cx-ttile.is-ghost span { opacity: .35; }

/* pump */
.cx-pump { display: flex; align-items: center; gap: 28px; }
.cx-balloon { position: relative; width: 190px; display: grid; place-items: center; transform: scale(var(--s)); transform-origin: 50% 85%; transition: transform .35s cubic-bezier(.2,.9,.25,1.4); }
.cx-balloon svg { width: 100%; filter: drop-shadow(0 12px 22px rgba(0,0,0,.4)); }
.cx-balloon strong { position: absolute; top: 34%; font-size: 26px; font-weight: 900; text-shadow: 0 2px 8px rgba(0,0,0,.45); }
.cx-balloon.is-pop { animation: cx-popped .45s ease forwards; }
@keyframes cx-popped { 30% { transform: scale(calc(var(--s) * 1.25)); } 100% { transform: scale(0); opacity: 0; } }
.cx-ladder { display: flex; flex-direction: column-reverse; gap: 6px; }
.cx-ladder span { padding: 7px 14px; border-radius: 6px; background: var(--cx-panel); font-weight: 900; font-size: 13px; color: var(--cx-muted); font-variant-numeric: tabular-nums; }
.cx-ladder span.is-done { background: rgba(0,231,1,.15); color: var(--cx-green); }
.cx-ladder span.is-next { background: var(--cx-gold); color: #2b1d00; }

/* flip */
.cx-flip { display: flex; flex-direction: column; align-items: center; gap: 26px; perspective: 800px; }
.cx-coin3d { position: relative; width: 170px; height: 170px; transform-style: preserve-3d; transition: transform .5s ease; }
.cx-coin3d[data-face="tails"] { transform: rotateY(180deg); }
.cx-coin3d.is-spinning { animation: cx-coinspin .65s linear infinite; }
@keyframes cx-coinspin { to { transform: rotateY(720deg); } }
.cx-face { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; backface-visibility: hidden; font-size: 70px; font-weight: 900;
  box-shadow: inset 0 0 0 8px rgba(0,0,0,.18), 0 14px 30px rgba(0,0,0,.45); }
.cx-face.is-heads { background: radial-gradient(circle at 35% 30%, #fff3b0, #ffc533 60%, #c68a00); color: #8d6e00; }
.cx-face.is-tails { background: radial-gradient(circle at 35% 30%, #d7f0ff, #1475e1 60%, #0b3d7a); color: #fff; transform: rotateY(180deg); }
.cx-fliptrail { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 520px; }
.cx-fliptrail span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 13px; background: var(--cx-panel); }
.cx-fliptrail span.is-win { box-shadow: 0 0 0 2px var(--cx-green); } .cx-fliptrail span.is-loss { box-shadow: 0 0 0 2px var(--cx-red); }

@media (max-width: 820px) {
  .cx-rtable { grid-template-columns: 30px 1fr; }
  .cx-rgrid { grid-template-columns: repeat(12, minmax(0, 1fr)) 30px; gap: 2px; }
  .cx-rdozens, .cx-routside { gap: 2px; }
  .cx-rspot.is-out { font-size: 9px; }
  .cx-chip { min-width: 20px; height: 20px; font-size: 8px; }
  .cx-rdozens { grid-template-columns: repeat(3, minmax(0, 1fr)) 30px; } .cx-routside { grid-template-columns: repeat(6, minmax(0, 1fr)) 30px; }
  .cx-rspot { min-height: 34px; font-size: 10px; border-radius: 3px; }
  .cx-pump { flex-direction: column; gap: 14px; } .cx-ladder { flex-direction: row-reverse; flex-wrap: wrap; justify-content: center; }
  .cx-coin3d { width: 130px; height: 130px; } .cx-face { font-size: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  .cx *, .cx *::before, .cx *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

.cx input[type=number]::-webkit-inner-spin-button, .cx input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cx input[type=number] { -moz-appearance: textfield; }


/* ═══════════════════════════════════════════════════════════════════════
   Finish pass — flatter, quieter, closer to the real thing.
   Less glow, tighter radii, lighter weights, hand-tuned spacing.
   ═══════════════════════════════════════════════════════════════════════ */
.cx { --cx-r: 6px; --cx-r-sm: 4px; background: #1a2c38; border-radius: 8px; padding: 14px 16px 18px; gap: 14px; font-feature-settings: 'tnum' 1; letter-spacing: 0; }
.cx-coin { width: 1em; height: 1em; flex-shrink: 0; vertical-align: -0.14em; display: inline-block; }

/* top bar */
.cx-top { min-height: 40px; }
.cx-wordmark { font-size: 20px; font-weight: 800; letter-spacing: -0.04em; color: #fff; text-transform: lowercase; }
.cx-wordmark b { font-weight: 800; color: var(--cx-green); margin-left: 1px; }
.cx-wordmark.is-small { font-size: 15px; opacity: .9; }
.cx-wordmark.is-small b { text-transform: lowercase; }
.cx-back { background: transparent; padding: 6px 10px 6px 4px; border-radius: var(--cx-r-sm); font-weight: 600; color: var(--cx-muted); gap: 4px; }
.cx-back:hover { background: #213743; color: #fff; }
.cx-balance { background: #0f212e; border: 0; border-radius: var(--cx-r-sm); padding: 0 12px; height: 40px; font-weight: 700; font-size: 14px; gap: 6px; min-width: 0; box-shadow: inset 0 0 0 1px #2f4553; }
.cx-balance .cx-coin { width: 16px; height: 16px; }
.cx-balance.is-up { animation: cx-up2 .6s ease; }
@keyframes cx-up2 { 25% { color: var(--cx-green); } }
.cx-icon-btn { width: 32px; height: 32px; border-radius: var(--cx-r-sm); background: transparent; color: var(--cx-muted); display: grid; place-items: center; }
.cx-icon-btn svg { width: 18px; height: 18px; }
.cx-icon-btn:hover { background: #2f4553; color: #fff; }

/* lobby */
.cx-hero, .cx-kicker, .cx-hero-art { display: none; }
.cx-lobby-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cx-search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; background: #0f212e; border-radius: 999px; box-shadow: inset 0 0 0 2px #2f4553; color: var(--cx-muted); }
.cx-search:focus-within { box-shadow: inset 0 0 0 2px #557086; }
.cx-search svg { width: 17px; height: 17px; flex-shrink: 0; }
.cx-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font-size: 14px; font-weight: 500; }
.cx-search input::placeholder { color: #7a8aa0; }
.cx-search input::-webkit-search-cancel-button { filter: invert(.7); }
.cx-cats { display: flex; gap: 4px; background: #0f212e; padding: 4px; border-radius: 999px; }
.cx-cats button { border: 0; background: transparent; color: var(--cx-muted); padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 13px; cursor: pointer; }
.cx-cats button:hover { color: #fff; }
.cx-cats button.is-on { background: #2f4553; color: #fff; }
.cx-section { display: flex; flex-direction: column; gap: 10px; }
.cx-section-head { display: flex; align-items: center; justify-content: space-between; }
.cx-section-head h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: #fff; }
.cx-section-head h3 svg { width: 17px; height: 17px; color: var(--cx-muted); }
.cx-arrows { display: flex; gap: 2px; }
.cx-arrows button { width: 32px; height: 30px; border: 0; background: #213743; color: #fff; display: grid; place-items: center; cursor: pointer; }
.cx-arrows button:first-child { border-radius: 999px 0 0 999px; } .cx-arrows button:last-child { border-radius: 0 999px 999px 0; }
.cx-arrows button:hover { background: #2f4553; }
.cx-arrows svg { width: 15px; height: 15px; }
.cx-row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 152px; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 0 6px; }
.cx-row-scroll::-webkit-scrollbar { display: none; }
.cx-row-scroll .cx-tile { scroll-snap-align: start; }
.cx-tiles { grid-template-columns: repeat(auto-fill, minmax(140px, 160px)); gap: 10px; }

/* tiles: one flat colour, oversized cropped art, title on top */
.cx-tile { aspect-ratio: 5 / 7; border-radius: var(--cx-r); padding: 12px 12px 10px; justify-content: flex-start; gap: 0;
  background: var(--a); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); transition: transform .18s ease; }
.cx-tile::after { background: linear-gradient(180deg, transparent 72%, rgba(0,0,0,.22) 100%); }
.cx-tile:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.cx-tile-art { inset: auto -14% -8% auto; width: 92%; transform: rotate(-8deg); opacity: .95; }
.cx-tile-art svg { max-width: none; width: 100%; filter: drop-shadow(0 6px 0 rgba(0,0,0,.18)); }
.cx-tile:hover .cx-tile-art { transform: rotate(-4deg) scale(1.04); }
.cx-tile-name { font-size: clamp(15px, 1.5vw, 19px); line-height: 1; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; text-shadow: none; max-width: 90%; }
.cx-tile-tag { display: none; }
.cx-tile-badge { margin-top: auto; font-size: 9px; font-weight: 700; letter-spacing: .08em; color: rgba(255,255,255,.75); }
.cx-tile[data-game="mines"] { --a: #0c8a3e; } .cx-tile[data-game="plinko"] { --a: #c4246a; } .cx-tile[data-game="crash"] { --a: #e0631a; }
.cx-tile[data-game="dice2"] { --a: #1d6fd8; } .cx-tile[data-game="limbo"] { --a: #7a2ed6; } .cx-tile[data-game="keno"] { --a: #0f8f86; }
.cx-tile[data-game="wheel"] { --a: #d99a06; } .cx-tile[data-game="hilo"] { --a: #3c4fd0; } .cx-tile[data-game="blackjack"] { --a: #17603a; }
.cx-tile[data-game="tower"] { --a: #b8401f; } .cx-tile[data-game="roulette2"] { --a: #a81e2b; } .cx-tile[data-game="pump"] { --a: #d4336e; }
.cx-tile[data-game="diamonds"] { --a: #1658c9; } .cx-tile[data-game="flip"] { --a: #c98a00; } .cx-tile[data-game="baccarat"] { --a: #4b2a8c; }
.cx-notice { border-radius: var(--cx-r); border: 0; background: #213743; }
.cx-notice.is-live { display: flex; align-items: center; gap: 10px; background: #213743; border: 0; box-shadow: inset 3px 0 0 var(--cx-green); font-weight: 600; }
.cx-notice.is-live svg { width: 16px; height: 16px; color: var(--cx-green); }
.cx-notice.is-live b { margin-left: auto; color: var(--cx-green); font-weight: 700; }
.cx-noresults { padding: 24px 0; text-align: center; }
.cx-foot { font-size: 11px; color: #6b7c93; }

/* game frame */
.cx-game { border-radius: var(--cx-r) var(--cx-r) 0 0; grid-template-columns: 320px minmax(0, 1fr); background: #213743; }
.cx-panel { background: #213743; padding: 12px; gap: 10px; }
.cx-stage { background: #0f212e; border-radius: 0 var(--cx-r) 0 0; }
.cx-gamebar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: -14px; padding: 6px 10px; background: #0f212e; border-top: 2px solid #213743; border-radius: 0 0 var(--cx-r) var(--cx-r); }
.cx-fair-btn { display: flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--cx-muted); font-weight: 600; font-size: 13px; padding: 6px 8px; border-radius: var(--cx-r-sm); cursor: pointer; }
.cx-fair-btn svg { width: 15px; height: 15px; }
.cx-fair-btn:hover, .cx-fair-btn[aria-expanded="true"] { color: #fff; background: #213743; }
.cx-fair { background: #0f212e; border-radius: var(--cx-r); padding: 12px 14px; font-size: 13px; line-height: 1.55; color: var(--cx-muted); }
.cx-fair p { margin: 0 0 8px; } .cx-fair p:last-child { margin: 0; } .cx-fair b { color: #fff; font-weight: 600; }

/* controls */
.cx-label { font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.cx-bet, .cx-input { border-radius: var(--cx-r-sm); border-width: 2px; background: #0f212e; }
.cx-bet .cx-coin { margin-left: 10px; padding: 0; width: 15px; height: 15px; align-self: center; display: block; }
.cx-bet input, .cx-input input { font-weight: 600; }
.cx-bet button { background: #2f4553; font-weight: 600; font-size: 12px; padding: 0 11px; border-left: 0; margin: 2px 0; }
.cx-bet button + button { margin-left: 1px; }
.cx-bet button:last-child { margin-right: 2px; border-radius: 0 3px 3px 0; }
.cx select { border-radius: var(--cx-r-sm); font-weight: 600; }
.cx-readout { border-radius: var(--cx-r-sm); font-weight: 600; gap: 6px; }
.cx-readout .cx-coin { width: 15px; height: 15px; }
.cx-ghost { border-radius: var(--cx-r-sm); font-weight: 600; background: #2f4553; padding: 11px; }
.cx-play { border-radius: var(--cx-r-sm); font-weight: 700; font-size: 14px; padding: 14px; box-shadow: none; color: #05170a; letter-spacing: 0; }
.cx-play:hover:not(:disabled) { box-shadow: none; }
.cx-play.is-cash { box-shadow: none; }
.cx-choice { border-radius: var(--cx-r-sm); }
.cx-choice span { font-weight: 700; }
.cx-choice.is-hi { background: #00b81f; color: #031a07; }
.cx-choice.is-lo { background: #e5334f; }
.cx-choice.is-gold { background: #e6a800; }

/* results */
.cx-strip { padding: 10px 12px 0; }
.cx-pill { border-radius: 999px; font-weight: 700; padding: 6px 11px; background: #213743; color: #b1bad3; }
.cx-pill.is-win { background: #00e701; color: #05170a; }
.cx-pill.is-new { animation: cx-slidein .25s ease; }
@keyframes cx-slidein { from { transform: translateX(-12px); opacity: 0; } }
.cx-winpop { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 150px; padding: 14px 20px; border-radius: var(--cx-r); border-width: 4px; background: #1a2c38; box-shadow: 0 6px 18px rgba(0,0,0,.35); animation: cx-winpop2 1.6s ease forwards; }
.cx-winpop strong { font-size: 26px; font-weight: 700; }
.cx-winpop i { display: block; width: 36px; height: 3px; border-radius: 2px; background: #2f4553; }
.cx-winpop span { display: flex; align-items: center; gap: 5px; font-weight: 600; font-size: 15px; color: var(--cx-green); }
@keyframes cx-winpop2 { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.92); } 10%, 82% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1); } }

/* board pieces: drop the neon */
.cx-limbo-value, .cx-crash-value { font-weight: 800; text-shadow: none; }
.cx-limbo-value.is-win { text-shadow: none; }
.cx-crash-value { text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.cx-wheel-center, .cx-balloon strong { font-weight: 800; text-shadow: none; }
.cx-tile5 { border-radius: var(--cx-r); }
.cx-tile5.is-gem span, .cx-tile5.is-bomb span { filter: none; }
.cx-keno-tile, .cx-ttile, .cx-gem-slot { border-radius: var(--cx-r); }
.cx-keno-tile.is-hit, .cx-ttile.is-picked.is-egg, .cx-ttile.is-picked.is-dragon, .cx-gem-slot.is-match, .cx-rspot.is-win, .cx-bspot.is-win { box-shadow: none; }
.cx-ttile.is-picked.is-egg { box-shadow: inset 0 0 0 2px var(--cx-green); }
.cx-ttile.is-picked.is-dragon { box-shadow: inset 0 0 0 2px var(--cx-red); }
.cx-rspot.is-win { box-shadow: inset 0 0 0 3px var(--cx-green); }
.cx-bspot.is-win { border-color: var(--cx-green); }
.cx-gem-slot.is-match { box-shadow: inset 0 0 0 3px var(--gc); }
.cx-dice-track { border-radius: 999px; }
.cx-dice-result span { border-radius: var(--cx-r-sm); font-weight: 700; }
.cx-dice-stats { border-radius: var(--cx-r); }
.cx-card { border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,.35); }
.cx-card b { font-weight: 800; }
.cx-bj-felt, .cx-bac-felt { box-shadow: inset 0 0 0 6px #2f2015, 0 8px 22px rgba(0,0,0,.35); }
.cx-bj-result { font-weight: 700; border-radius: var(--cx-r); }
.cx-plinko-slots span { border-radius: 4px; font-weight: 700; box-shadow: 0 3px 0 rgba(0,0,0,.3); }
.cx-wheel-legend span, .cx-keno-pay span, .cx-dpay div, .cx-ladder span { border-radius: var(--cx-r-sm); font-weight: 600; }

/* bets table */
.cx-history { gap: 10px; margin-top: 6px; }
.cx-tabs { display: inline-flex; align-self: flex-start; background: #0f212e; padding: 4px; border-radius: 999px; }
.cx-tabs span { padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--cx-muted); }
.cx-tabs span.is-on { background: #2f4553; color: #fff; }
.cx-table-wrap { background: transparent; border-radius: 0; }
.cx-history table { font-size: 13px; }
.cx-history th { font-weight: 600; color: var(--cx-muted); padding: 10px 12px; text-align: right; }
.cx-history td { padding: 12px; font-weight: 600; text-align: right; border-top: 0; }
.cx-history th:first-child, .cx-history td:first-child { text-align: left; }
.cx-history tbody tr:nth-child(odd) td { background: #213743; }
.cx-history tbody tr:nth-child(even) td { background: transparent; }
.cx-history tbody tr td:first-child { border-radius: var(--cx-r-sm) 0 0 var(--cx-r-sm); }
.cx-history tbody tr td:last-child { border-radius: 0 var(--cx-r-sm) var(--cx-r-sm) 0; }
.cx-history .cx-dim { color: var(--cx-muted); font-weight: 500; }
.cx-amt { display: inline-flex; align-items: center; gap: 5px; justify-content: flex-end; }
.cx-amt.is-up { color: var(--cx-green); }
.cx-history td.is-up, .cx-history td.is-down { color: inherit; }
.cx-empty { padding: 4px 2px; }


@media (max-width: 820px) {
  .cx-game { grid-template-columns: 1fr; border-radius: var(--cx-r) var(--cx-r) 0 0; }
  .cx-stage { border-radius: var(--cx-r) var(--cx-r) 0 0; }
  .cx-gamebar { margin-top: 0; border-radius: 0; order: 0; }
  .cx-row-scroll { grid-auto-columns: 132px; }
  .cx-history th:nth-child(2), .cx-history td:nth-child(2) { display: none; }
}
@media (max-width: 480px) {
  .cx-row-scroll { grid-auto-columns: 40%; }
  .cx-cats { width: 100%; justify-content: space-between; } .cx-cats button { flex: 1; padding: 7px 6px; }
}
