/* Free Spins Zone - premium blackjack table */
body.bj-page { --champ: #E3BE62; --champ-l: #F5DFA0; --cw: 76px; }
.bj-stage { flex: 1; min-height: 0; display: flex; padding: 10px 12px 8px; position: relative; }
.bj-table {
  position: relative; flex: 1; min-width: 0; max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; justify-content: space-between;
  border-radius: 34px 34px 22% 22% / 34px 34px 12% 12%; padding: 12px 18px 26px; overflow: hidden; isolation: isolate;
  background: radial-gradient(90% 75% at 50% 42%, var(--felt1), var(--felt2) 78%);
  box-shadow: 0 0 0 2px #1d1a12, 0 0 0 9px var(--rail, #171410), 0 0 0 10px rgba(227,190,98,.55), 0 22px 54px rgba(0,0,0,.55), inset 0 0 90px rgba(0,0,0,.45);
  margin-bottom: 11px; margin-top: 11px;
}
.bj-table::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16; background-image: radial-gradient(rgba(255,255,255,.5) .6px, transparent .7px); background-size: 4px 4px; }
.bj-wrap { flex: 1; min-width: 0; display: flex; padding: 0 11px; }

.bj-arc { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); width: min(74%, 640px); pointer-events: none; z-index: 0; }
.bj-arc text { font-family: "Cinzel", serif; font-weight: 800; fill: var(--champ); letter-spacing: 3px; }
.bj-arc .sub { fill: rgba(245,223,160,.62); font-weight: 700; letter-spacing: 2px; }
.bj-shoe { position: absolute; right: 16px; top: 12px; width: calc(var(--cw) * .9); height: calc(var(--cw) * .62); border-radius: 8px; z-index: 1;
  background: linear-gradient(180deg, #2a2418, #0d0b07); box-shadow: inset 0 0 0 1px rgba(227,190,98,.6), 0 6px 14px rgba(0,0,0,.5); }
.bj-shoe::after { content: ""; position: absolute; inset: 18% 12%; border-radius: 4px; background: repeating-linear-gradient(90deg, #0a2b57 0 2px, #e8eef5 2px 3px); opacity: .85; }

.bj-dealer { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: calc(var(--cw) * 1.4 + 26px); }
.bj-label { font: 800 11px "Cinzel", serif; letter-spacing: .18em; color: var(--champ-l); }
.bj-seats { position: relative; z-index: 2; display: flex; justify-content: center; gap: 10px; }
.bj-seat { flex: 1 1 0; min-width: 0; max-width: 460px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bj-hands { display: flex; justify-content: center; align-items: flex-end; gap: 10px; width: 100%; min-height: calc(var(--cw) * 1.4 + 26px); }
.bj-hand { position: relative; height: calc(var(--cw) * 1.4); flex: none; margin-top: 26px; border-radius: 9px; transition: width .25s; }
.bj-hand.active::after { content: ""; position: absolute; inset: -6px; border-radius: 13px; border: 2px solid var(--champ-l); box-shadow: 0 0 18px rgba(245,223,160,.75); pointer-events: none; animation: bjGlow 1.3s ease-in-out infinite alternate; }
@keyframes bjGlow { to { box-shadow: 0 0 6px rgba(245,223,160,.35); } }
.bj-val { position: absolute; left: 50%; top: -25px; transform: translateX(-50%); min-width: 34px; text-align: center; padding: 1px 9px; border-radius: 999px; font: 800 13px "Manrope", sans-serif; color: #fff; background: rgba(4,14,30,.82); box-shadow: inset 0 0 0 1px rgba(227,190,98,.55); white-space: nowrap; z-index: 40; }
.bj-res { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 4px 12px; border-radius: 8px; white-space: nowrap; font: 800 13px "Cinzel", serif; letter-spacing: .05em; z-index: 45; color: #fff; background: rgba(4,14,30,.92); box-shadow: 0 6px 16px rgba(0,0,0,.45); animation: bjPop .35s cubic-bezier(.2,1.6,.4,1); }
.bj-res.good { background: linear-gradient(135deg, #22E67A, #00C853); color: #04162F; }
.bj-res.gold { background: linear-gradient(135deg, #F5DFA0, #E3BE62 55%, #C79A3B); color: #1a1200; }
@keyframes bjPop { from { transform: translate(-50%, -50%) scale(.4); opacity: 0; } }

/* cards */
.c3d { position: absolute; top: 0; width: var(--cw); height: calc(var(--cw) * 1.4); perspective: 700px; transition: left .25s; }
.c-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.3,.7,.3,1); }
.c-in.down { transform: rotateY(180deg); }
.c-face, .c-back { position: absolute; inset: 0; border-radius: calc(var(--cw) * .09); backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; box-shadow: 0 3px 9px rgba(0,0,0,.45); }
.c-face { background: linear-gradient(160deg, #FFFFFF, #F4F1E8); color: #10182C; box-shadow: 0 3px 9px rgba(0,0,0,.45), inset 0 0 0 1px rgba(16,24,44,.14); }
.c-face.red { color: #C21831; }
.c-back { transform: rotateY(180deg); background: repeating-linear-gradient(45deg, rgba(227,190,98,.3) 0 1px, transparent 1px 6px), repeating-linear-gradient(-45deg, rgba(227,190,98,.3) 0 1px, transparent 1px 6px), linear-gradient(145deg, #0060A9, #041E42); box-shadow: 0 3px 9px rgba(0,0,0,.45), inset 0 0 0 3px #041E42, inset 0 0 0 4px var(--champ); }
.c-back::after { content: "\2605"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: #041E42; color: var(--champ); font-size: calc(var(--cw) * .26); box-shadow: inset 0 0 0 1.5px var(--champ); }
.c-idx { position: absolute; display: flex; flex-direction: column; align-items: center; line-height: .95; font: 800 calc(var(--cw) * .235) "Cinzel", serif; letter-spacing: -.03em; }
.c-idx i { font-style: normal; font-family: "Segoe UI Symbol", "Arial Unicode MS", serif; font-size: calc(var(--cw) * .19); }
.c-idx.tl { left: 6%; top: 5%; }
.c-idx.br { right: 6%; bottom: 5%; transform: rotate(180deg); }
.c-body { position: absolute; inset: 9% 20%; }
.pip { position: absolute; transform: translate(-50%, -50%); font-family: "Segoe UI Symbol", "Arial Unicode MS", serif; font-size: calc(var(--cw) * .2); line-height: 1; }
.pip.flip { transform: translate(-50%, -50%) rotate(180deg); }
.pip.big { font-size: calc(var(--cw) * .56); }
.c-court { position: absolute; inset: 11% 19%; border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; background: linear-gradient(160deg, rgba(227,190,98,.26), rgba(227,190,98,.08)); box-shadow: inset 0 0 0 1px rgba(160,120,40,.75); }
.c-court b { font: 900 calc(var(--cw) * .46)/1 "Cinzel", serif; }
.c-court span { font-size: calc(var(--cw) * .2); line-height: 1; font-family: "Segoe UI Symbol", "Arial Unicode MS", serif; color: #A67C22; }
.compact .c-body, .compact .c-court { display: none; }
.compact .c-idx { font-size: calc(var(--cw) * .36); }
.compact .c-idx i { font-size: calc(var(--cw) * .3); }
.compact .c-idx.br { display: flex; }

/* bet spots and chips */
.bj-spots { display: flex; align-items: center; justify-content: center; gap: 8px; }
.bj-spot { position: relative; width: var(--spot, 64px); height: var(--spot, 64px); border-radius: 50%; border: 2px solid rgba(245,223,160,.6); display: grid; place-items: center; background: rgba(0,0,0,.14); color: var(--champ-l); font: 800 10px "Cinzel", serif; letter-spacing: .08em; padding: 0; cursor: pointer; text-align: center; line-height: 1.1; }
.bj-spot.side { --spot: 48px; font-size: 8px; border-style: dashed; }
.bj-spot.hit { box-shadow: 0 0 18px var(--champ-l); }
.bj-spot .amt { position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%); font: 800 11px "Manrope", sans-serif; color: #fff; background: rgba(4,14,30,.9); padding: 0 7px; border-radius: 999px; white-space: nowrap; z-index: 8; letter-spacing: 0; }
.bj-chip { --c: #0060A9; position: relative; flex: none; width: 54px; height: 54px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; color: #fff; font: 800 12px "Manrope", sans-serif; cursor: pointer; transition: transform .15s, box-shadow .15s;
  background: radial-gradient(circle, var(--c) 0 58%, transparent 59%), repeating-conic-gradient(#F4F1E8 0 22.5deg, var(--c) 0 45deg); box-shadow: 0 4px 10px rgba(0,0,0,.45), inset 0 0 0 1px rgba(0,0,0,.3); }
.bj-chip::after { content: ""; position: absolute; inset: 17%; border-radius: 50%; border: 1px dashed rgba(255,255,255,.65); }
.bj-chip:hover { transform: translateY(-3px); }
.bj-chip.sel { transform: translateY(-5px); box-shadow: 0 0 0 2px #04162F, 0 0 0 4px var(--champ-l), 0 8px 16px rgba(0,0,0,.5); }
.bj-chip:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.bj-chip.v10 { --c: #0060A9; } .bj-chip.v50 { --c: #B3203A; } .bj-chip.v100 { --c: #10243F; } .bj-chip.v500 { --c: #5B2A9C; } .bj-chip.v1000 { --c: #0B8A4B; } .bj-chip.v5000 { --c: #1A1712; color: var(--champ-l); }
.bj-stack { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 3; }
.bj-stack .bj-chip { position: absolute; width: calc(var(--spot, 64px) * .78); height: calc(var(--spot, 64px) * .78); font-size: 0; cursor: inherit; transform: translate(-50%, -50%); pointer-events: none; }

/* controls */
.bj-controls { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px 12px; background: var(--sp-ctl); border-top: 1px solid var(--sp-ctl-line); min-height: 86px; }
.bj-info { display: flex; gap: 8px; flex: none; }
.bj-mid { display: flex; align-items: center; justify-content: center; gap: 8px; flex: 1; min-width: 0; flex-wrap: wrap; }
.bj-chips { display: flex; gap: 6px; align-items: center; }
.bj-tools { display: flex; gap: 8px; flex: none; }
.bj-btn { height: 48px; min-width: 88px; padding: 0 16px; border-radius: 13px; border: 1px solid var(--sp-chip-line); background: var(--sp-chip); color: var(--sp-text); font: 800 13px "Manrope", sans-serif; display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; transition: transform .12s, filter .12s; }
.bj-btn:hover:not(:disabled) { filter: brightness(1.12); transform: translateY(-1px); }
.bj-btn:disabled { opacity: .35; cursor: not-allowed; }
.bj-btn kbd { font: 700 10px "Manrope", sans-serif; opacity: .65; }
.bj-btn.go { background: var(--cta-grad); color: var(--cta-ink); border: 0; box-shadow: 0 6px 18px var(--cta-glow); min-width: 120px; }
.bj-btn.adv { box-shadow: 0 0 0 2px var(--champ-l), 0 0 18px rgba(245,223,160,.65); }
.bj-prompt { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); z-index: 50; padding: 16px 20px; border-radius: 16px; text-align: center; background: rgba(4,14,30,.95); box-shadow: 0 0 0 1px var(--champ), 0 18px 40px rgba(0,0,0,.6); color: #fff; width: min(330px, 86%); }
.bj-prompt h3 { margin: 0 0 4px; font-size: 18px; color: var(--champ-l); }
.bj-prompt p { margin: 0 0 12px; font-size: 13px; color: #cfdaea; }
.bj-prompt .r { display: flex; gap: 8px; justify-content: center; }
.bj-banner { position: absolute; left: 50%; top: 41%; transform: translate(-50%, -50%); z-index: 60; text-align: center; pointer-events: none; animation: bjPop .4s cubic-bezier(.2,1.6,.4,1); }
.bj-banner b { display: block; font: 900 clamp(26px, 5vw, 46px)/1.05 "Cinzel", serif; background: linear-gradient(180deg, #fff6d6, #E3BE62 60%, #B9892E); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 12px rgba(0,0,0,.7)); }
.bj-banner span { display: inline-block; margin-top: 4px; padding: 2px 12px; border-radius: 999px; color: #fff; background: rgba(4,14,30,.85); font-weight: 800; font-size: 14px; }
.bj-sidepill { position: absolute; left: 50%; top: 14%; transform: translateX(-50%); padding: 4px 14px; border-radius: 999px; z-index: 55; white-space: nowrap; background: linear-gradient(135deg, #F5DFA0, #E3BE62 55%, #C79A3B); color: #1a1200; font: 800 12px "Manrope", sans-serif; animation: bjPop .35s; }

@media (max-width: 820px) {
  .bj-controls { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "info tools" "mid mid"; align-items: center; gap: 8px; padding: 8px 10px 10px; }
  .bj-info { grid-area: info; } .bj-tools { grid-area: tools; } .bj-mid { grid-area: mid; }
  .bj-btn.go { min-width: 0; }
  .bj-info .box { min-width: 76px; }
  .bj-chips { justify-content: center; flex-wrap: nowrap; }
  .bj-chip { width: 46px; height: 46px; font-size: 11px; }
  .bj-stack .bj-chip { font-size: 0; }
  .bj-btn { flex: 1 1 22%; min-width: 0; height: 44px; padding: 0 6px; }
  .bj-btn kbd { display: none; }
  .bj-mid { width: 100%; }
  .bj-tools { justify-content: flex-end; }
  .bj-table { padding: 8px 8px 22px; border-radius: 24px 24px 20% 20% / 24px 24px 8% 8%; }
  .bj-shoe { right: 8px; top: 8px; }
  .bj-arc { width: 92%; }
  .bj-arc .sub { display: none; }
  .bj-seats { gap: 4px; }
  .bj-spot { --spot: 54px; }
  .bj-spot.side { --spot: 42px; }
  .bj-res { font-size: 11px; padding: 3px 8px; }
}
