/* Gold Crown — playable demo games */
.demo-credit-banner {
  border: 1px dashed var(--line-strong);
  background: rgba(201, 162, 74, 0.08);
  color: var(--gold-100);
  text-align: center;
  padding: 0.55rem 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  margin: 0 0 1rem;
}
.wallet-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line-strong);
  background: rgba(201, 162, 74, 0.1);
  border-radius: 999px;
  padding: 0.2rem 0.35rem 0.2rem 0.7rem;
  color: var(--gold-100);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}
.wallet-chip strong { font-family: var(--font-sans); font-weight: 700; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.wallet-chip .lbl { display: none; color: var(--ink-mute); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; }
.wallet-chip button {
  min-height: 1.8rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--gold-200);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (min-width: 700px) {
  .wallet-chip .lbl { display: inline; }
}

.play-shell { padding-bottom: 2rem; }
.play-head { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; justify-content: space-between; align-items: end; margin-bottom: 1rem; }
.play-stage {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(38, 31, 20, 0.55), rgba(14, 12, 8, 0.9));
  padding: 1rem 0.8rem 1.1rem;
  overflow: hidden;
}
.play-msg { min-height: 1.4rem; text-align: center; color: var(--gold-100); margin: 0.4rem 0 0.7rem; font-size: 0.92rem; }
.play-controls { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; align-items: center; margin-top: 0.8rem; }
.stake-box { display: flex; align-items: center; gap: 0.35rem; }
.stake-box input, .play-controls input[type="number"], .play-controls select {
  width: 6.5rem;
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.55rem;
  color: var(--ink);
}
.paytable { margin-top: 1rem; font-size: 0.82rem; color: var(--ink-soft); }
.paytable table { width: 100%; border-collapse: collapse; }
.paytable th, .paytable td { border-bottom: 1px solid var(--line); padding: 0.35rem 0.4rem; text-align: left; }
.live-note { font-size: 0.8rem; color: var(--ink-mute); text-align: center; margin: 0 0 0.8rem; }

/* Reels */
.reel-window { display: flex; justify-content: center; gap: 0.3rem; max-width: 36rem; margin: 0 auto; }
.reel {
  flex: 1;
  height: auto;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #0a0806;
  position: relative;
}
.reel-col { display: flex; flex-direction: column; }
.sym {
  height: 4.4rem;
  display: grid;
  place-items: center;
  font-size: 1.85rem;
  border-bottom: 1px solid rgba(212,180,90,0.08);
}
.ways-reel { min-height: 6rem; }
.win-flash { animation: winflash 0.6s ease 2; }
@keyframes winflash { 50% { filter: brightness(1.6); box-shadow: 0 0 16px rgba(232,209,138,0.45); } }

/* Roulette */
.roulette-wrap { display: grid; gap: 1rem; }
.wheel-face {
  width: min(100%, 16rem);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  border: 8px solid #c9a24a;
  background: conic-gradient(#0a0a0a 0 9.73deg, #8a1c1c 0 19.46deg, #0a0a0a 0 29.19deg, #8a1c1c 0 38.92deg, #0a0a0a 0 48.65deg, #8a1c1c 0 58.38deg, #0a0a0a 0 68.11deg, #8a1c1c 0 77.84deg, #0a0a0a 0 87.57deg, #8a1c1c 0 97.3deg, #0a0a0a 0 107.03deg, #8a1c1c 0 116.76deg, #0a0a0a 0 126.49deg, #8a1c1c 0 136.22deg, #0a0a0a 0 145.95deg, #8a1c1c 0 155.68deg, #0a0a0a 0 165.41deg, #8a1c1c 0 175.14deg, #0a0a0a 0 184.87deg, #8a1c1c 0 194.6deg, #0a0a0a 0 204.33deg, #8a1c1c 0 214.06deg, #0a0a0a 0 223.79deg, #8a1c1c 0 233.52deg, #0a0a0a 0 243.25deg, #8a1c1c 0 252.98deg, #0a0a0a 0 262.71deg, #8a1c1c 0 272.44deg, #0a0a0a 0 282.17deg, #8a1c1c 0 291.9deg, #0a0a0a 0 301.63deg, #8a1c1c 0 311.36deg, #0a0a0a 0 321.09deg, #8a1c1c 0 330.82deg, #0a0a0a 0 340.55deg, #8a1c1c 0 350.28deg, #0d5a2a 0 360deg);
  box-shadow: inset 0 0 0 18px #1a1408, 0 10px 30px rgba(0,0,0,0.45);
  transition: transform 4s cubic-bezier(0.12, 0.7, 0.12, 1);
  position: relative;
}
.wheel-face::after {
  content: "";
  position: absolute;
  left: 50%; top: -8px;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 14px solid #f0e0a8;
}
.roulette-grid { display: grid; grid-template-columns: 2rem repeat(12, 1fr); gap: 2px; font-size: 0.72rem; }
.roulette-grid button {
  min-height: 2rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--bg-0);
  color: var(--ink);
}
.roulette-grid button.red { background: #6a1a1a; }
.roulette-grid button.black { background: #141414; }
.roulette-grid button.green { background: #145a2c; }
.roulette-grid button.on { outline: 2px solid var(--gold-300); }
.out-bets { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.4rem; }

/* Cards */
.hand { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: center; min-height: 6rem; }
.card {
  width: 3.4rem;
  height: 4.8rem;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbf6e4, #e8d5a8);
  color: #1a1408;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.25rem 0.3rem;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}
.card.red { color: #8a1c1c; }
.card.back { background: linear-gradient(145deg, #3a2a10, #1a1408); color: var(--gold-200); }
.card.held { outline: 2px solid var(--gold-300); transform: translateY(-4px); }

/* Crash / plinko / mines / keno / wheel / dice */
.crash-chart { height: 12rem; border: 1px solid var(--line); border-radius: 12px; background: #0a0806; position: relative; overflow: hidden; }
.crash-mult { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-sans); font-weight: 800; font-variant-numeric: tabular-nums; font-size: clamp(2.4rem, 8vw, 4rem); }
.plinko-board { position: relative; width: min(100%, 22rem); margin: 0 auto; height: 18rem; }
.peg { position: absolute; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--gold-300); }
.plinko-ball { position: absolute; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #f8f0d4; z-index: 2; }
.plinko-bins { display: flex; max-width: 22rem; margin: 0.3rem auto 0; }
.plinko-bins span { flex: 1; text-align: center; font-size: 0.62rem; color: var(--gold-200); border: 1px solid var(--line); padding: 0.2rem 0; }
.mine-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.35rem; max-width: 18rem; margin: 0 auto; }
.mine-grid button { aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); font-size: 1.2rem; }
.mine-grid button.gem { background: rgba(201,162,74,0.2); }
.mine-grid button.bomb { background: #3a1212; }
.keno-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 0.25rem; }
.keno-grid button { min-height: 2rem; border-radius: 6px; border: 1px solid var(--line); background: var(--bg-2); font-size: 0.75rem; }
.keno-grid button.on { background: linear-gradient(180deg, #f0e0a8, #c9a24a); color: #1a1408; }
.keno-grid button.drawn { outline: 2px solid var(--gold-200); }
.keno-grid button.hit { background: #145a2c; color: #f7f1e3; }
.wheel-simple {
  width: min(100%, 16rem);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  border: 10px solid #c9a24a;
  background: conic-gradient(#8a6a22 0 45deg, #1a1408 0 90deg, #c9a24a 0 135deg, #3a1a10 0 180deg, #e8d08a 0 225deg, #1a1408 0 270deg, #8a1c1c 0 315deg, #145a2c 0 360deg);
  transition: transform 4s cubic-bezier(0.12, 0.7, 0.12, 1);
}
.dice-big { font-family: var(--font-sans); font-weight: 800; font-variant-numeric: tabular-nums; font-size: 3.4rem; text-align: center; color: var(--gold-100); }

/* Sports extras */
.race-card { display: grid; gap: 0.35rem; }
.runner-row { display: grid; grid-template-columns: 2rem 1fr auto auto auto; gap: 0.35rem; align-items: center; padding: 0.4rem 0.5rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-1); }
.my-bets .bet-row { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.my-bets .won { color: #8dcea0; }
.my-bets .lost { color: #e25b4c; }
.my-bets .open { color: var(--gold-200); }
.slip-stake { width: 100%; margin-top: 0.6rem; }
.price-live { font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: #ffb3aa; }

@media (min-width: 800px) {
  .roulette-wrap { grid-template-columns: 16rem 1fr; align-items: start; }
}

/* Mobile header fit (phones up to 699px): no horizontal overflow */
@media (max-width: 699px) {
  .header-row { gap: 0.5rem; }
  .brand { gap: 0.45rem; flex: 0 1 auto; min-width: 0; }
  .brand img, .brand svg { width: 2.2rem; height: 2.2rem; }
  .brand-word { font-size: 0.8rem; letter-spacing: 0.1em; }
  .brand-word small { font-size: 0.48rem; letter-spacing: 0.16em; }
  .header-actions { gap: 0.35rem; min-width: 0; }
  .wallet-chip { padding: 0.3rem 0.6rem; font-size: 0.7rem; }
  .wallet-chip .js-wallet-reset { display: none; }
  .header-actions .btn-gold { min-height: 2.15rem; padding: 0.4rem 0.75rem; font-size: 0.66rem; letter-spacing: 0.08em; }
  .menu-toggle { width: 2.2rem; height: 2.2rem; flex: 0 0 auto; }
}
@media (max-width: 379px) {
  .wallet-chip { display: none; }
}

/* Premium motion */
.reel.is-spinning { animation: gc-reel 0.12s linear infinite; }
@keyframes gc-reel { from { transform: translateY(0); } to { transform: translateY(-2.2rem); } }
.reel .sym { transition: transform 0.35s cubic-bezier(.22,.7,.25,1), filter .3s; }
.hilo-card {
  width: 110px; height: 150px; margin: 0 auto; border-radius: 12px;
  background: linear-gradient(180deg, #2a2314, #0c0c0c);
  border: 1px solid #c9a24a; display: grid; place-items: center;
  font-size: 48px; font-weight: 800; color: #f6e08a;
  box-shadow: 0 0 24px rgba(231,193,90,.25);
}
.pen-pitch {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  gap: 12px;
  padding-bottom: 8px;
}
.pen-pitch .goal {
  display: block;
  width: min(240px, 70vw);
  height: 120px;
  border: 6px solid #f4f7fa;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 0 0 3px #145a28, 0 16px 28px rgba(0,0,0,.2);
  background:
    linear-gradient(180deg, rgba(255,255,255,.2), transparent 45%),
    repeating-linear-gradient(90deg, transparent, transparent 18px, rgba(255,255,255,.2) 18px, rgba(255,255,255,.2) 20px),
    #1f8a3c;
}
.balloon {
  width: 120px; height: 120px; margin: 0 auto; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f6e08a, #b8892c 60%, #6a4a10);
  display: grid; place-items: center; font-weight: 800; color: #1a1206;
  box-shadow: 0 0 30px rgba(231,193,90,.35);
  transition: transform .2s ease;
}
.stairs, .cross-lane { text-align: center; font-size: 22px; font-weight: 800; color: #f6e08a; padding: 16px; }
.jump-bar { height: 10px; background: #222; border-radius: 99px; margin: 12px auto; max-width: 240px; overflow: hidden; position: relative; }
.jump-bar i { position: absolute; inset: 0 auto 0 0; width: 18%; background: linear-gradient(90deg, #f6e08a, #b8892c); animation: gc-jump 1.1s linear infinite; }
@keyframes gc-jump { from { left: 0; } to { left: 82%; } }

/* Roulette 3D-ish */
.roulette-wheel, .wheel, .eu-wheel {
  transform: perspective(600px) rotateX(12deg);
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.45));
}
/* Esports match rows: fit phones without page-wide horizontal scroll */
@media (max-width: 699px) {
  .gc-book-main > div[style*="grid-template-columns:140px"] { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto !important; row-gap: 6px !important; }
  .gc-book-main > div[style*="grid-template-columns:140px"] > div:first-child { grid-column: 1 / -1; }
  .gc-book-main > div[style*="grid-template-columns:140px"] > div:nth-child(4),
  .gc-book-main > div[style*="grid-template-columns:140px"] > .gc-morem { display: none; }
  .gc-book-main > div[style*="grid-template-columns:140px"] > .gc-odd { min-width: 3.6rem; width: auto; }
  .gc-book-main > div[style*="grid-template-columns:140px"] > div:nth-child(5) { text-align: left !important; }
}


/* ---- Provider catalogue (API games) ---- */
.providers-section { padding-top: 1.25rem; }
.providers-section .section-head h2,
.section .section-head h2 {
  margin: 0.15rem 0 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: inherit;
}
.providers-section #provider-note {
  margin: 0 0 1rem;
  max-width: 42rem;
}
.provider-empty { margin: 0 0 0.5rem; }
.provider-card .game-art {
  position: relative;
  aspect-ratio: 3 / 2;
  background: #101820;
  overflow: hidden;
}
.provider-card .game-art img,
.provider-card .game-art .provider-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.provider-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  font-weight: 700;
  color: #00c853;
  background:
    radial-gradient(circle at 30% 20%, rgba(0, 200, 83, 0.28), transparent 55%),
    linear-gradient(160deg, #1a2430, #0b1016 70%);
}
.provider-play {
  min-height: calc(100dvh - 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}
.provider-play-error { gap: 0.6rem; }
.provider-frame {
  display: block;
  width: 100%;
  height: calc(100dvh - 52px);
  border: 0;
  background: #000;
}

body.gc-skin .providers-section { margin-top: 8px; }
body.gc-skin .providers-section #provider-note,
body.gc-skin .providers-section .provider-empty {
  margin: 0 0 12px;
  max-width: 40rem;
  color: #5a6560;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.92rem;
  line-height: 1.45;
}
body.gc-skin #providers { scroll-margin-top: 72px; }
body.gc-skin .provider-tile .provider-fallback {
  width: 100%;
  height: 100%;
  min-height: 120px;
}

#provider-grid .provider-empty,
#provider-grid > p {
  grid-column: 1 / -1;
}
