/* EasyGame social casino layer. Loaded alongside the compiled React app. */
:root {
  --sc-bg: hsl(260 30% 8%);
  --sc-panel: hsl(260 25% 11%);
  --sc-panel-2: hsl(260 22% 15%);
  --sc-line: rgba(255, 255, 255, 0.09);
  --sc-text: #f3f1fa;
  --sc-muted: hsl(260 15% 68%);
  --sc-violet: hsl(270 100% 60%);
  --sc-violet-deep: hsl(272 70% 34%);
  --sc-gold: #ffc934;
  --sc-gold-deep: #c98a0b;
  --sc-gold-ink: #2a1a00;
  --sc-felt: #0d3b31;
  --sc-felt-2: #0a2e27;
  --sc-red: #e23d5a;
  --sc-green: #19c37d;
  --sc-num: "Oxanium", "Space Grotesk", system-ui, sans-serif;
  --sc-display: "Space Grotesk", system-ui, sans-serif;
  --sc-radius: 16px;
}

.sc-hide { display: none !important; }
#sc-lobby, #sc-stage, .sc-modal, #sc-hud, #sc-toasts, .sc-arcade-pill { font-family: var(--font-body, "Outfit", system-ui, sans-serif); color: var(--sc-text); }
#sc-lobby *, #sc-stage *, .sc-modal *, #sc-hud * { box-sizing: border-box; }
.sc-num { font-family: var(--sc-num); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }

/* ---------- Buttons ---------- */
.sc-btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 12px; text-decoration: none;
  transition: transform 0.08s ease, filter 0.15s ease, background 0.15s ease;
  color: var(--sc-text); background: var(--sc-panel-2); border: 1px solid var(--sc-line);
}
.sc-btn:hover { filter: brightness(1.12); }
.sc-btn:active { transform: translateY(1px) scale(0.99); }
.sc-btn:disabled { opacity: 0.45; cursor: not-allowed; filter: none; transform: none; }
.sc-btn-gold {
  color: var(--sc-gold-ink); border: 0;
  background: linear-gradient(180deg, #ffe07a 0%, var(--sc-gold) 45%, var(--sc-gold-deep) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 6px 18px rgba(255, 186, 30, 0.25);
}
.sc-btn-violet { border: 0; background: linear-gradient(180deg, hsl(270 100% 66%), hsl(270 90% 50%)); box-shadow: 0 6px 18px rgba(147, 51, 234, 0.3); }
.sc-btn-ghost { background: transparent; }
.sc-btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.05rem; border-radius: 14px; }
.sc-btn-sm { min-height: 36px; padding: 0 12px; font-size: 0.85rem; border-radius: 10px; }
.sc-btn:focus-visible, .sc-hud-btn:focus-visible, .sc-cell:focus-visible, .sc-pcard:focus-visible, .sc-tile:focus-visible, .sc-chip-pick:focus-visible, .sc-avatar-pick:focus-visible {
  outline: 2px solid var(--sc-gold); outline-offset: 2px;
}

/* ---------- Coin glyph ---------- */
.sc-coin {
  display: inline-block; width: 1em; height: 1em; border-radius: 50%; flex: none; vertical-align: -0.12em;
  background: radial-gradient(circle at 35% 30%, #fff3b0 0 12%, var(--sc-gold) 38%, var(--sc-gold-deep) 100%);
  box-shadow: inset 0 0 0 0.09em rgba(120, 70, 0, 0.55), 0 0 0.4em rgba(255, 201, 52, 0.35);
}

/* ---------- HUD in the header ---------- */
#sc-hud { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.sc-hud-btn {
  appearance: none; cursor: pointer; font: inherit; color: var(--sc-text);
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--sc-line);
  position: relative; transition: background 0.15s ease;
}
.sc-hud-btn:hover { background: rgba(255, 255, 255, 0.1); }
.sc-hud-coins { padding: 0 6px 0 10px; background: linear-gradient(180deg, rgba(255, 201, 52, 0.14), rgba(255, 201, 52, 0.04)); border-color: rgba(255, 201, 52, 0.35); }
.sc-hud-coins .sc-coin { font-size: 20px; }
.sc-hud-coins .sc-num { font-size: 1.02rem; font-weight: 700; min-width: 4ch; color: #fff3cf; }
.sc-hud-plus { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--sc-gold); color: var(--sc-gold-ink); font-weight: 900; font-size: 18px; line-height: 1; }
.sc-hud-coins.sc-bump .sc-num { animation: sc-bump 0.5s ease; }
@keyframes sc-bump { 0% { transform: scale(1); } 35% { transform: scale(1.18); color: var(--sc-gold); } 100% { transform: scale(1); } }
.sc-hud-level { gap: 8px; padding: 0 12px 0 4px; }
.sc-ring { --p: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--sc-violet) calc(var(--p) * 1%), rgba(255, 255, 255, 0.12) 0); }
.sc-ring span { width: 26px; height: 26px; border-radius: 50%; background: var(--sc-bg); display: grid; place-items: center; font-family: var(--sc-num); font-weight: 700; font-size: 0.8rem; }
.sc-hud-level small { font-size: 0.78rem; color: var(--sc-muted); white-space: nowrap; }
.sc-hud-icon { width: 40px; padding: 0; justify-content: center; font-size: 20px; }
.sc-dot { position: absolute; top: 4px; right: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--sc-red); box-shadow: 0 0 0 2px var(--sc-bg); }
@media (max-width: 640px) {
  #sc-hud { gap: 4px; }
  .sc-hud-level small { display: none; }
  .sc-hud-level { padding: 0 4px; }
  .sc-hud-btn { height: 36px; }
  .sc-hud-icon { width: 36px; font-size: 18px; }
  .sc-hud-coins .sc-num { font-size: 0.92rem; }
}
@media (max-width: 380px) { .sc-hud-level { display: none; } }

/* The language switcher moves into the footer so it never covers the HUD. */
#eg-lang-switcher.sc-docked { position: static !important; display: inline-flex !important; margin: 16px auto 0 !important; box-shadow: none !important; }

/* ---------- Lobby ---------- */
#sc-lobby { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; min-width: 0; }
.sc-hero {
  position: relative; overflow: hidden; border-radius: 28px; border: 1px solid rgba(255, 201, 52, 0.18);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(147, 51, 234, 0.45), transparent 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(255, 170, 30, 0.14), transparent 60%),
    var(--sc-panel);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; padding: 48px;
  align-items: center;
}
.sc-hero h1 { font-family: var(--sc-display); font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.02; letter-spacing: -0.03em; font-weight: 700; margin: 0 0 16px; max-width: 14ch; }
.sc-hero p { color: var(--sc-muted); font-size: 1.05rem; line-height: 1.55; max-width: 46ch; margin: 0 0 28px; }
.sc-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sc-hello { color: #fff; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }

.sc-jackpot {
  position: relative; text-align: center; padding: 30px 20px 26px; border-radius: 22px;
  background: linear-gradient(180deg, #1c1030, #0c0716);
  border: 1px solid rgba(255, 201, 52, 0.45);
  box-shadow: 0 0 0 6px rgba(255, 201, 52, 0.06), 0 30px 60px rgba(0, 0, 0, 0.45), inset 0 0 40px rgba(255, 201, 52, 0.08);
}
.sc-jackpot-label { font-family: var(--sc-display); font-weight: 600; color: var(--sc-gold); font-size: 1.05rem; }
.sc-jackpot-num {
  font-family: var(--sc-num); font-weight: 800; font-variant-numeric: tabular-nums;
  font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.05; margin: 8px 0 10px;
  background: linear-gradient(180deg, #fff7d6 10%, var(--sc-gold) 55%, #b9780a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 201, 52, 0.35));
}
.sc-jackpot-sub { color: var(--sc-muted); font-size: 0.9rem; }
.sc-bulbs { position: absolute; inset: 8px; border-radius: 16px; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 220, 120, 0.9) 0 2px, transparent 3px);
  background-size: 18px 18px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 4px; opacity: 0.55; animation: sc-chase 1.6s steps(2) infinite; }
@keyframes sc-chase { 50% { background-position: 9px 9px; } }

.sc-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; }
.sc-panel { background: var(--sc-panel); border: 1px solid var(--sc-line); border-radius: 20px; padding: 22px; }
.sc-panel h2, .sc-floor h2, .sc-section-title { font-family: var(--sc-display); font-size: 1.25rem; font-weight: 700; margin: 0 0 4px; letter-spacing: -0.01em; }
.sc-panel-sub { color: var(--sc-muted); font-size: 0.88rem; margin: 0 0 16px; }

.sc-mission { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--sc-line); }
.sc-mission:first-of-type { border-top: 0; padding-top: 4px; }
.sc-mission-name { font-weight: 600; font-size: 0.95rem; }
.sc-mission-reward { display: inline-flex; align-items: center; gap: 6px; font-family: var(--sc-num); font-weight: 700; color: #fff3cf; }
.sc-bar { grid-column: 1 / 2; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.sc-bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sc-violet), #c084fc); }
.sc-mission-count { font-size: 0.8rem; color: var(--sc-muted); font-family: var(--sc-num); }
.sc-mission.sc-done .sc-bar > i { background: linear-gradient(90deg, var(--sc-gold-deep), var(--sc-gold)); }
.sc-mission.sc-claimed { opacity: 0.55; }

.sc-streak-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 6px 0 16px; }
.sc-day { aspect-ratio: 1 / 1.2; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--sc-line); display: grid; place-items: center; align-content: center; gap: 2px; font-size: 0.72rem; color: var(--sc-muted); }
.sc-day b { font-family: var(--sc-num); font-size: 0.95rem; color: var(--sc-text); }
.sc-day.sc-on { background: linear-gradient(180deg, rgba(255, 201, 52, 0.22), rgba(255, 201, 52, 0.06)); border-color: rgba(255, 201, 52, 0.5); }
.sc-day.sc-on b { color: var(--sc-gold); }
.sc-day.sc-today { outline: 2px solid var(--sc-violet); outline-offset: 1px; }

.sc-floor-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 14px; }
.sc-tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 230px;
  padding: 16px; border-radius: 20px; text-decoration: none; color: var(--sc-text); overflow: hidden;
  border: 1px solid var(--sc-line); background: var(--tile-bg, var(--sc-panel)); cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.sc-tile:hover { transform: translateY(-3px); border-color: rgba(255, 201, 52, 0.5); }
.sc-tile-art { position: absolute; inset: 0 0 72px 0; display: grid; place-items: center; }
.sc-tile h3 { font-family: var(--sc-display); font-size: 1.1rem; margin: 0; font-weight: 700; }
.sc-tile p { margin: 2px 0 0; font-size: 0.8rem; color: rgba(255, 255, 255, 0.65); }
.sc-tile-tag { position: absolute; top: 12px; left: 12px; font-size: 0.72rem; font-weight: 700; padding: 4px 9px; border-radius: 99px; background: var(--sc-gold); color: var(--sc-gold-ink); }
.sc-art-sevens { font-family: var(--sc-num); font-weight: 800; font-size: 3.2rem; color: var(--sc-gold); letter-spacing: 0.04em; text-shadow: 0 0 22px rgba(255, 201, 52, 0.55); }
.sc-art-cards { display: flex; }
.sc-art-cards .sc-card { width: 58px; height: 82px; font-size: 1.1rem; }
.sc-art-cards .sc-card + .sc-card { margin-left: -22px; transform: rotate(10deg) translateY(4px); }
.sc-art-cards .sc-card:first-child { transform: rotate(-8deg); }
.sc-art-fan .sc-card { width: 44px; height: 64px; font-size: 0.9rem; margin-left: -18px; }
.sc-art-fan .sc-card:nth-child(1) { transform: rotate(-20deg) translateY(10px); margin-left: 0; }
.sc-art-fan .sc-card:nth-child(2) { transform: rotate(-10deg) translateY(3px); }
.sc-art-fan .sc-card:nth-child(4) { transform: rotate(10deg) translateY(3px); }
.sc-art-fan .sc-card:nth-child(5) { transform: rotate(20deg) translateY(10px); }
.sc-art-wheel { width: 120px; height: 120px; border-radius: 50%; border: 6px solid #6b3f12; box-shadow: 0 0 0 2px var(--sc-gold), 0 10px 30px rgba(0, 0, 0, 0.5); }
.sc-art-dice { display: flex; gap: 10px; }
.sc-die { width: 54px; height: 54px; border-radius: 12px; background: #fff; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 7px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); }
.sc-die i { width: 9px; height: 9px; border-radius: 50%; background: #1b1430; place-self: center; }
.sc-die:nth-child(2) { transform: rotate(14deg) translateY(8px); }

.sc-arcade-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.sc-arcade-head p { margin: 0; color: var(--sc-muted); font-size: 0.9rem; }
.sc-arcade-head p .sc-coin { margin-right: 4px; }

@media (max-width: 1100px) {
  .sc-floor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .sc-hero { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; }
  .sc-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .sc-floor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sc-tile { min-height: 190px; padding: 12px; }
  .sc-tile-art { inset: 0 0 62px 0; transform: scale(0.82); }
  .sc-hero h1 { font-size: 2.1rem; }
  .sc-hero-actions .sc-btn { flex: 1 1 100%; }
  .sc-panel { padding: 18px 16px; }
}

/* ---------- Game stage ---------- */
#sc-stage { max-width: 1120px; margin: 0 auto; }
.sc-stage-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.sc-back { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--sc-text); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--sc-line); text-decoration: none; font-size: 1.3rem; }
.sc-stage-head h1 { font-family: var(--sc-display); font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0; font-weight: 700; letter-spacing: -0.02em; }
.sc-stage-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.sc-table { border-radius: 24px; border: 1px solid var(--sc-line); overflow: hidden; background: var(--sc-panel); }
.sc-table-body { padding: 28px; min-height: 360px; display: grid; place-items: center; position: relative; }
.sc-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: rgba(0, 0, 0, 0.35); border-top: 1px solid var(--sc-line); }
.sc-controls-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sc-side { display: grid; gap: 16px; }
.sc-side .sc-panel { padding: 18px; }
.sc-side h2 { font-size: 1.05rem; }
.sc-side ul { margin: 0; padding: 0; list-style: none; }
.sc-paytable li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--sc-line); font-size: 0.9rem; }
.sc-paytable li:first-child { border-top: 0; }
.sc-paytable li b { font-family: var(--sc-num); color: #fff3cf; }
.sc-paytable li.sc-hit { color: var(--sc-gold); }
.sc-paytable li.sc-hit b { color: var(--sc-gold); }
.sc-rules { color: var(--sc-muted); font-size: 0.88rem; line-height: 1.55; }
.sc-rules p { margin: 0 0 8px; }

.sc-betbox { display: flex; align-items: center; gap: 8px; }
.sc-betbox-label { font-size: 0.78rem; color: var(--sc-muted); display: block; margin-bottom: 4px; }
.sc-bet-step { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--sc-line); background: var(--sc-panel-2); color: var(--sc-text); font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.sc-bet-step:disabled { opacity: 0.35; cursor: not-allowed; }
.sc-bet-val { min-width: 104px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 201, 52, 0.3); font-family: var(--sc-num); font-weight: 700; font-size: 1.05rem; }
.sc-bet-lock { font-size: 0.75rem; color: var(--sc-muted); margin-top: 4px; }

.sc-winline { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-family: var(--sc-num); font-weight: 800; font-size: 1.4rem; min-height: 1.6em; pointer-events: none; }
.sc-winline.sc-pos { color: var(--sc-gold); text-shadow: 0 0 18px rgba(255, 201, 52, 0.6); animation: sc-pop 0.4s ease; }
.sc-winline.sc-neg { color: var(--sc-muted); font-size: 1rem; font-weight: 600; font-family: inherit; }
@keyframes sc-pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (max-width: 900px) {
  .sc-stage-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .sc-table-body { padding: 18px 12px 48px; min-height: 300px; }
  .sc-controls { padding: 12px; }
  .sc-controls-actions { width: 100%; }
  .sc-controls-actions .sc-btn { flex: 1; }
  .sc-betbox { width: 100%; justify-content: space-between; }
  .sc-bet-val { flex: 1; }
}

/* ---------- Slots ---------- */
.sc-g-slots .sc-table-body { padding-bottom: 64px; background: radial-gradient(80% 90% at 50% 0%, rgba(147, 51, 234, 0.35), transparent 70%), #120b22; }
.sc-machine { padding: 14px; border-radius: 22px; background: linear-gradient(180deg, #3a2160, #1a0f2e); box-shadow: 0 0 0 2px rgba(255, 201, 52, 0.55), 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 60px rgba(147, 51, 234, 0.35); }
.sc-machine-jp { text-align: center; font-size: 0.8rem; color: var(--sc-gold); margin-bottom: 10px; display: flex; justify-content: center; gap: 8px; align-items: baseline; }
.sc-machine-jp .sc-num { font-size: 1.25rem; font-weight: 800; color: #fff3cf; }
.sc-reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: #05030a; padding: 8px; border-radius: 14px; }
.sc-reel { display: grid; grid-template-rows: repeat(3, 1fr); gap: 6px; border-radius: 10px; background: linear-gradient(180deg, #e9e4f5, #fff 40%, #fff 60%, #d9d2ea); padding: 6px; }
.sc-sym { width: clamp(64px, 14vw, 104px); height: clamp(58px, 12vw, 92px); display: grid; place-items: center; font-size: clamp(2rem, 5.2vw, 3.3rem); border-radius: 8px; transition: background 0.2s ease, box-shadow 0.2s ease; }
.sc-reel.sc-spinning .sc-sym { filter: blur(2px); transform: translateY(2px); }
.sc-sym.sc-win { background: rgba(255, 201, 52, 0.4); box-shadow: inset 0 0 0 3px var(--sc-gold-deep); animation: sc-glow 0.8s ease infinite alternate; }
@keyframes sc-glow { to { background: rgba(255, 201, 52, 0.7); } }

/* ---------- Cards / Blackjack / Poker ---------- */
.sc-card {
  width: 78px; height: 110px; border-radius: 10px; background: #fff; color: #17121f; position: relative; flex: none;
  display: flex; flex-direction: column; justify-content: space-between; padding: 6px 8px; font-family: var(--sc-display); font-weight: 700; font-size: 1.3rem; line-height: 1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4); user-select: none;
}
.sc-card .sc-suit-big { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.3em; pointer-events: none; }
.sc-card .sc-corner-b { align-self: flex-end; transform: rotate(180deg); }
.sc-card.sc-red { color: #d3263f; }
.sc-card.sc-back { background: repeating-linear-gradient(45deg, #5b21b6 0 6px, #6d28d9 6px 12px); border: 4px solid #fff; }
.sc-card.sc-back > * { display: none; }
.sc-card.sc-deal { animation: sc-deal 0.35s ease both; }
@keyframes sc-deal { from { transform: translate(40px, -60px) rotate(8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.sc-g-blackjack .sc-table-body, .sc-g-poker .sc-table-body { background: radial-gradient(90% 80% at 50% 10%, #145646, var(--sc-felt) 55%, var(--sc-felt-2)); }
.sc-g-poker .sc-table-body { background: radial-gradient(90% 80% at 50% 10%, #22306a, #141c44 60%, #0c1130); }
.sc-bj { width: 100%; display: grid; gap: 28px; justify-items: center; }
.sc-bj-hand { display: grid; justify-items: center; gap: 10px; min-height: 150px; }
.sc-bj-label { font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); display: flex; gap: 8px; align-items: center; }
.sc-bj-total { font-family: var(--sc-num); font-weight: 700; color: #fff; background: rgba(0, 0, 0, 0.35); padding: 2px 9px; border-radius: 99px; }
.sc-bj-cards { display: flex; gap: 0; min-height: 110px; }
.sc-bj-cards .sc-card + .sc-card { margin-left: -26px; }
.sc-bj-msg { min-height: 1.6em; font-family: var(--sc-display); font-weight: 700; font-size: 1.25rem; text-align: center; }
.sc-bj-msg.sc-pos { color: var(--sc-gold); }
.sc-felt-text { color: rgba(255, 255, 255, 0.28); font-size: 0.8rem; text-align: center; }
.sc-poker-hand { display: flex; gap: 10px; justify-content: center; flex-wrap: nowrap; }
.sc-pcard { appearance: none; border: 0; background: none; padding: 0; cursor: pointer; display: grid; justify-items: center; gap: 8px; color: inherit; font: inherit; }
.sc-pcard:disabled { cursor: default; }
.sc-hold { font-size: 0.75rem; font-weight: 800; height: 22px; padding: 0 10px; border-radius: 99px; display: grid; place-items: center; color: transparent; }
.sc-pcard.sc-held .sc-hold { background: var(--sc-gold); color: var(--sc-gold-ink); }
.sc-pcard.sc-held .sc-card { transform: translateY(-8px); box-shadow: 0 0 0 3px var(--sc-gold), 0 12px 24px rgba(0, 0, 0, 0.5); }
.sc-poker-msg { margin-top: 20px; }
@media (max-width: 560px) {
  .sc-card { width: 60px; height: 86px; font-size: 1.05rem; padding: 5px 6px; }
  .sc-poker-hand { gap: 5px; }
  .sc-g-poker .sc-card { width: 56px; height: 80px; }
}

/* ---------- Roulette ---------- */
.sc-g-roulette .sc-table-body { background: radial-gradient(90% 80% at 50% 10%, #145646, var(--sc-felt) 55%, var(--sc-felt-2)); display: block; place-items: normal; }
.sc-rl-top { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; margin-bottom: 22px; }
.sc-wheel-wrap { position: relative; width: 210px; height: 210px; }
.sc-wheel-wrap::after { content: ""; position: absolute; top: -6px; left: 50%; transform: translateX(-50%); border: 10px solid transparent; border-top: 16px solid var(--sc-gold); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5)); z-index: 2; }
.sc-wheel { --lr: 84px; position: absolute; inset: 0; border-radius: 50%; border: 8px solid #5b3510; box-shadow: 0 0 0 2px var(--sc-gold), 0 16px 40px rgba(0, 0, 0, 0.55); transition: transform 4.2s cubic-bezier(0.15, 0.8, 0.2, 1); }
.sc-wheel-label { position: absolute; left: 50%; top: 50%; width: 20px; margin-left: -10px; text-align: center; font-family: var(--sc-num); font-size: 9px; font-weight: 700; color: #fff; transform-origin: 50% 0; }
.sc-wheel-hub { position: absolute; inset: 32%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f6d27a, #8a5a12); box-shadow: 0 0 0 4px #3b2209; z-index: 1; }
.sc-rl-result { text-align: center; }
.sc-rl-ball { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-family: var(--sc-num); font-weight: 800; font-size: 2.2rem; margin: 0 auto 8px; background: rgba(0, 0, 0, 0.3); border: 3px solid rgba(255, 255, 255, 0.25); }
.sc-rl-ball.sc-r { background: var(--sc-red); border-color: #ff8fa1; }
.sc-rl-ball.sc-b { background: #15111c; border-color: #4b4458; }
.sc-rl-ball.sc-g { background: #0f9d58; border-color: #7fe0ae; }
.sc-rl-hist { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; max-width: 220px; }
.sc-rl-hist span { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-family: var(--sc-num); font-size: 0.75rem; font-weight: 700; }
.sc-r { background: var(--sc-red); } .sc-b { background: #15111c; } .sc-g { background: #0f9d58; }
.sc-board { display: grid; grid-template-columns: 44px repeat(12, minmax(0, 1fr)) 44px; grid-template-rows: repeat(3, 46px); gap: 3px; }
.sc-outside { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; margin-top: 3px; }
.sc-outside .sc-cell { height: 42px; }
.sc-outside .sc-dozen { grid-column: span 2; }
.sc-cell {
  appearance: none; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 6px; cursor: pointer; position: relative;
  color: #fff; font-family: var(--sc-num); font-weight: 700; font-size: 0.95rem; background: transparent; padding: 0;
  grid-column: var(--x); grid-row: var(--y);
}
.sc-cell:hover { background: rgba(255, 255, 255, 0.12); }
.sc-cell.sc-r { background: #b82a43; } .sc-cell.sc-b { background: #17121e; } .sc-cell.sc-g { background: #0f8a4e; }
.sc-cell.sc-r:hover, .sc-cell.sc-b:hover, .sc-cell.sc-g:hover { filter: brightness(1.3); }
.sc-cell.sc-hitcell { box-shadow: 0 0 0 3px var(--sc-gold); z-index: 1; }
.sc-cell .sc-diamond { display: inline-block; width: 14px; height: 14px; transform: rotate(45deg); border-radius: 2px; }
.sc-chipon { position: absolute; right: -4px; top: -6px; min-width: 26px; height: 26px; padding: 0 4px; border-radius: 99px; display: grid; place-items: center; font-size: 0.66rem; font-weight: 800; color: var(--sc-gold-ink); background: radial-gradient(circle at 40% 35%, #fff2b0, var(--sc-gold) 55%, var(--sc-gold-deep)); border: 2px dashed rgba(90, 50, 0, 0.55); z-index: 2; pointer-events: none; }
.sc-chips { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sc-chip-pick { appearance: none; cursor: pointer; width: 46px; height: 46px; border-radius: 50%; font-family: var(--sc-num); font-weight: 800; font-size: 0.75rem; color: #fff; border: 3px dashed rgba(255, 255, 255, 0.55); background: var(--chip); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); }
.sc-chip-pick[aria-pressed="true"] { outline: 3px solid var(--sc-gold); outline-offset: 2px; transform: translateY(-3px); }
.sc-chip-pick:disabled { opacity: 0.3; cursor: not-allowed; }
.sc-rl-totals { color: var(--sc-muted); font-size: 0.85rem; }
.sc-rl-totals b { color: var(--sc-text); font-family: var(--sc-num); }
@media (max-width: 700px) {
  .sc-board { grid-template-columns: repeat(3, 1fr); grid-template-rows: 40px repeat(12, 36px) 40px; }
  .sc-cell { grid-column: var(--mx); grid-row: var(--my); }
  .sc-wheel-wrap { width: 170px; height: 170px; }
  .sc-wheel { --lr: 67px; }
  .sc-wheel-label { font-size: 7px; }
  .sc-rl-top { gap: 16px; }
  .sc-chip-pick { width: 42px; height: 42px; }
}

/* ---------- Dice ---------- */
.sc-g-dice .sc-table-body { background: radial-gradient(80% 90% at 50% 0%, rgba(25, 195, 125, 0.22), transparent 70%), #0b1a1a; }
.sc-dice { width: min(560px, 100%); display: grid; gap: 22px; }
.sc-dice-roll { font-family: var(--sc-num); font-weight: 800; font-size: clamp(3.4rem, 10vw, 5.6rem); text-align: center; line-height: 1; }
.sc-dice-roll.sc-pos { color: var(--sc-green); text-shadow: 0 0 24px rgba(25, 195, 125, 0.5); }
.sc-dice-roll.sc-neg { color: var(--sc-red); }
.sc-track { position: relative; height: 16px; border-radius: 99px; }
.sc-track input[type="range"] { position: absolute; inset: -8px 0; width: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 2; height: 32px; }
.sc-track-fill { position: absolute; inset: 0; border-radius: inherit; }
.sc-track-knob { position: absolute; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 8px; background: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); pointer-events: none; }
.sc-track input:focus-visible ~ .sc-track-knob { outline: 3px solid var(--sc-gold); outline-offset: 2px; }
.sc-track-mark { position: absolute; top: -30px; transform: translateX(-50%); font-family: var(--sc-num); font-size: 0.8rem; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: #fff; color: #111; transition: left 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sc-track-scale { display: flex; justify-content: space-between; color: var(--sc-muted); font-family: var(--sc-num); font-size: 0.75rem; margin-top: 8px; }
.sc-dice-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sc-stat { background: rgba(0, 0, 0, 0.3); border: 1px solid var(--sc-line); border-radius: 12px; padding: 10px 12px; }
.sc-stat small { display: block; color: var(--sc-muted); font-size: 0.75rem; margin-bottom: 2px; }
.sc-stat b { font-family: var(--sc-num); font-size: 1.1rem; }
.sc-seg { display: inline-flex; padding: 3px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--sc-line); }
.sc-seg button { appearance: none; border: 0; background: transparent; color: var(--sc-muted); font: inherit; font-weight: 700; padding: 8px 14px; border-radius: 9px; cursor: pointer; }
.sc-seg button[aria-pressed="true"] { background: var(--sc-panel-2); color: var(--sc-text); }

/* ---------- Modals ---------- */
.sc-modal { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 16px; background: rgba(6, 3, 14, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: sc-fade 0.18s ease; }
@keyframes sc-fade { from { opacity: 0; } }
.sc-dialog { position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 24px; padding: 28px 24px 24px; background: linear-gradient(180deg, #221539, var(--sc-panel)); border: 1px solid rgba(255, 201, 52, 0.25); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); text-align: center; animation: sc-rise 0.22s ease; }
@keyframes sc-rise { from { transform: translateY(12px) scale(0.98); opacity: 0; } }
.sc-dialog h2 { font-family: var(--sc-display); font-size: 1.6rem; letter-spacing: -0.02em; margin: 0 0 8px; }
.sc-dialog p { color: var(--sc-muted); line-height: 1.5; margin: 0 0 18px; }
.sc-dialog .sc-btn { width: 100%; }
.sc-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, 0.06); color: var(--sc-text); font-size: 1.2rem; cursor: pointer; }
.sc-big-amount { display: flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--sc-num); font-weight: 800; font-size: 3rem; color: #fff3cf; margin: 6px 0 18px; }
.sc-big-amount .sc-coin { font-size: 2.4rem; }
.sc-fine { font-size: 0.78rem !important; color: var(--sc-muted); margin: 14px 0 0 !important; }
.sc-dlg-row { display: flex; gap: 10px; margin-top: 10px; }
.sc-dlg-row .sc-btn { flex: 1; }
.sc-wallet-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--sc-line); text-align: left; }
.sc-wallet-line small { display: block; color: var(--sc-muted); font-size: 0.8rem; }
.sc-wallet-line .sc-btn { width: auto; flex: none; }

.sc-wheelbox { position: relative; width: 260px; height: 260px; margin: 6px auto 18px; }
.sc-wheelbox svg { width: 100%; height: 100%; transition: transform 4.5s cubic-bezier(0.12, 0.8, 0.18, 1); filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.5)); }
.sc-wheelbox::after { content: ""; position: absolute; top: -8px; left: 50%; transform: translateX(-50%); border: 12px solid transparent; border-top: 20px solid #fff; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6)); }
.sc-mult { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; padding: 6px 12px; border-radius: 99px; background: rgba(147, 51, 234, 0.25); color: #e9d5ff; font-size: 0.85rem; margin-bottom: 14px; }

.sc-avatars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 10px 0 16px; }
.sc-avatar-pick { appearance: none; aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--sc-line); background: rgba(255, 255, 255, 0.04); font-size: 1.5rem; cursor: pointer; }
.sc-avatar-pick[aria-pressed="true"] { border-color: var(--sc-gold); background: rgba(255, 201, 52, 0.15); }
.sc-input { width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--sc-line); background: rgba(0, 0, 0, 0.35); color: var(--sc-text); padding: 0 14px; font: inherit; font-size: 1rem; }
.sc-input:focus { outline: 2px solid var(--sc-violet); outline-offset: 1px; }
.sc-field { text-align: left; display: block; font-size: 0.82rem; color: var(--sc-muted); margin-bottom: 6px; }
.sc-statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; text-align: left; }

/* ---------- Toasts, confetti, arcade pill ---------- */
#sc-toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 100001; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.sc-toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: #1f1534; border: 1px solid rgba(255, 201, 52, 0.3); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); font-weight: 600; animation: sc-rise 0.2s ease; }
.sc-toast.sc-out { opacity: 0; transform: translateY(8px); transition: 0.25s ease; }
.sc-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100002; overflow: hidden; }
.sc-confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 2px; animation: sc-fall linear forwards; }
@keyframes sc-fall { to { transform: translate3d(var(--dx), 110vh, 0) rotate(var(--r)); } }
.sc-arcade-pill { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 9999; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 99px; background: rgba(20, 12, 36, 0.92); border: 1px solid rgba(255, 201, 52, 0.35); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); font-size: 0.85rem; font-weight: 600; max-width: calc(100% - 24px); }
.sc-arcade-pill .sc-ring { width: 26px; height: 26px; --c: var(--sc-gold); background: conic-gradient(var(--sc-gold) calc(var(--p) * 1%), rgba(255, 255, 255, 0.12) 0); }
.sc-arcade-pill .sc-ring span { width: 20px; height: 20px; font-size: 0.7rem; }
.sc-footnote { margin-top: 10px; font-size: 0.75rem; color: rgba(255, 255, 255, 0.4); max-width: 60ch; margin-left: auto; margin-right: auto; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  .sc-wheel, .sc-wheelbox svg { transition-duration: 0.01s !important; }
  .sc-bulbs, .sc-sym.sc-win, .sc-card.sc-deal { animation: none !important; }
}
