/* Blackjack: the table, the dock of buttons under it, the strategy chart and the sheets. Cards come from the card kit. */
.bj { max-width: 1000px; margin: 0 auto; }
.bj [hidden] { display: none !important; }
.bj-stage { position: relative; display: flex; flex-direction: column; width: 100%; height: min(84vh, 760px); min-height: 480px; border-radius: 14px; overflow: hidden; outline: none; font-family: inherit; -webkit-tap-highlight-color: transparent; }
@media (max-width: 600px) { .bj-stage { height: auto; aspect-ratio: 3 / 5; max-height: 88vh; min-height: 470px; } }
@media (max-height: 540px) and (orientation: landscape) { .bj-stage { height: 94vh; min-height: 300px; aspect-ratio: auto; max-height: none; } }
.stage.is-immersive .stage-body > .bj { min-height: 0; flex: 1 1 auto; display: flex; flex-direction: column; max-width: none; width: 100%; }
.stage.is-immersive .bj-stage { flex: 1 1 auto; height: auto; aspect-ratio: auto; max-height: none; min-height: 0; border-radius: 0; }
.stage.is-immersive .bj-help { display: none; }
.bj-stage:focus-visible::after { content: ''; position: absolute; inset: 0; z-index: 70; border-radius: inherit; box-shadow: inset 0 0 0 2px #55d6ff; pointer-events: none; }
.bj-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bj-help .hint-touch { display: none; }
@media (hover: none) and (pointer: coarse) { .bj-help .hint-kb { display: none; } .bj-help .hint-touch { display: inline; } }
.bj-stage button { font-family: inherit; touch-action: manipulation; }
.bj-stage button:focus-visible { outline: 2px solid #55d6ff; outline-offset: 2px; }

/* ---- top bar ---- */
.bj-hud { position: relative; z-index: 5; flex: none; display: flex; align-items: center; gap: 6px; padding: 6px 8px; background: rgba(4,6,15,0.58); }
.bj-gap { flex: 1 1 auto; }
.bj-tablebtn { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; min-width: 0; padding: 0 6px 0 11px; border-radius: 10px; border: 1px solid #1c2b4a; background: #0b1328; color: #dfe9ff; font-size: 13px; font-weight: 700; cursor: pointer; }
.bj-tablebtn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; line-height: 1.15; }
.bj-tablebtn small { display: block; margin-bottom: 2px; font-size: 9.5px; line-height: 1; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: #8aa3c4; }
.bj-tablebtn svg { width: 18px; height: 18px; flex: none; color: #8aa3c4; }
.bj-tool { width: 40px; height: 40px; flex: none; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid #1c2b4a; background: #0b1328; color: #dfe9ff; cursor: pointer; }
.bj-tool svg { width: 20px; height: 20px; }
.bj-tablebtn:hover, .bj-tool:hover { border-color: #2f4a7c; }
.bj-tool[aria-pressed="true"]#bj-chartbtn { border-color: #55d6ff; color: #55d6ff; }
#bj-soundbtn .off { display: none; }
#bj-soundbtn[aria-pressed="false"] .on { display: none; }
#bj-soundbtn[aria-pressed="false"] .off { display: inline; }
#bj-soundbtn[aria-pressed="false"] { color: #8aa3c4; }

/* ---- table ---- */
.bj-body { flex: 1 1 auto; min-height: 0; display: flex; }
.bj-main { flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.bj-table { position: relative; flex: 1 1 auto; min-height: 0; min-width: 0; overflow: hidden; --cw: 60px; --ch: 84px; --fs: 16px; --pad: 8px; --top: 8px; --sw: 52px; }
.bj-print { position: absolute; left: 50%; top: 30%; width: min(94%, 660px); transform: translate(-50%, 0); pointer-events: none; overflow: visible; }
.bj-print-line { fill: none; stroke: rgba(255,255,255,0.13); stroke-width: 1.5; }
.bj-print-a { font-size: 25px; font-weight: 800; letter-spacing: 3.5px; fill: rgba(255,209,102,0.5); }
.bj-print-b { font-size: 13.5px; font-weight: 700; letter-spacing: 1.4px; fill: rgba(223,233,255,0.4); }
.bj-tray, .bj-shoe { position: absolute; top: var(--top); width: var(--sw); height: calc(var(--sw) * 0.8); box-sizing: border-box; pointer-events: none; }
.bj-tray { left: var(--pad); border-radius: 8px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.12); box-shadow: inset 0 2px 8px rgba(0,0,0,0.45); overflow: hidden; }
.bj-tray i { position: absolute; left: 14%; right: 14%; bottom: 10%; height: calc(var(--f, 0) * 76%); min-height: 0; border-radius: 2px; background: repeating-linear-gradient(0deg, #eef2fb 0 1.4px, #9aa6c0 1.4px 2.8px); opacity: 0.9; transition: height 0.3s ease; }
.bj-shoe { right: var(--pad); border-radius: 8px 8px 8px 16px; background: linear-gradient(160deg, #24345c, #0c1430); border: 1px solid #34497a; box-shadow: 0 4px 10px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.12); overflow: hidden; }
.bj-shoe-fill { position: absolute; left: 9%; top: 52%; bottom: 13%; width: calc(var(--left, 1) * 82%); border-radius: 2px; background: repeating-linear-gradient(90deg, #f4f7ff 0 1.4px, #aab6d0 1.4px 2.8px); transition: width 0.3s ease; }
.bj-shoe-cut { position: absolute; top: 46%; bottom: 8%; left: calc(9% + var(--cut, 0.75) * 82%); width: 3px; margin-left: -1.5px; border-radius: 2px; background: #ffd166; box-shadow: 0 0 6px rgba(255,209,102,0.8); transition: left 0.3s ease, opacity 0.3s; }
.bj-shoe.is-cut .bj-shoe-cut { opacity: 0; }
.bj-shoe b { position: absolute; left: 0; right: 0; top: 10%; text-align: center; font-size: 11px; line-height: 1; font-weight: 800; color: #b9c8e6; font-variant-numeric: tabular-nums; }
.bj-shoe.is-cut b { color: #ffd166; }

.bj-badge, .bj-dbadge { display: inline-flex; align-items: center; justify-content: center; height: 22px; padding: 0 9px; box-sizing: border-box; border-radius: 999px; background: rgba(4,6,15,0.8); border: 1px solid rgba(255,255,255,0.18); color: #fff; font-size: 12.5px; line-height: 1; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bj-badge.is-bust, .bj-dbadge.is-bust { color: #ffb3bf; border-color: #ff6b81; }
.bj-badge.is-bj, .bj-dbadge.is-bj { color: #1a1200; background: #ffd166; border-color: #ffd166; }
.bj-badge.is-21, .bj-dbadge.is-21 { border-color: #ffd166; color: #ffd166; }
.bj-dbadge { position: absolute; left: 0; top: 0; z-index: 4; transform: translate(-50%, 0); pointer-events: none; }

.bj-spots, .bj-slots, .bj-cards, .bj-fly { position: absolute; inset: 0; pointer-events: none; }
.bj-spots { z-index: 3; }
.bj-slots { z-index: 4; }
.bj-cards { z-index: 2; }
.bj-fly { z-index: 6; }
.bj-card { transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.22s ease; will-change: transform; }
.bj-card.is-new { transition: none; }
.bj-card.is-out { opacity: 0; }
.bj-card.is-flip { animation: bj-flip 0.24s ease-in-out; }
.bj-card.is-peek { animation: bj-peek 0.26s ease-in-out; }
.bj-card.is-dim { filter: brightness(0.74) saturate(0.85); }
@keyframes bj-flip { 50% { scale: 0.04 1; } }
@keyframes bj-peek { 50% { rotate: -5deg; translate: 0 -5px; } }

/* betting circles */
.bj-spot { position: absolute; left: 0; top: 0; width: var(--d, 90px); height: var(--d, 90px); padding: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3); background: rgba(0,0,0,0.18); color: #dfe9ff; cursor: pointer; pointer-events: auto; display: grid; place-items: center; box-shadow: inset 0 0 16px rgba(0,0,0,0.3); transition: border-color 0.15s, box-shadow 0.15s; }
.bj-spot::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; border: 1px dashed rgba(255,255,255,0.2); }
.bj-spot[aria-pressed="true"] { border-color: #ffd166; box-shadow: 0 0 0 3px rgba(255,209,102,0.22), inset 0 0 18px rgba(255,209,102,0.16); }
.bj-spot .bj-hint { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; color: rgba(223,233,255,0.5); }
.bj-spot .bj-stack { position: relative; }
.bj-spot-amt { position: absolute; left: 50%; top: 100%; margin-top: 5px; transform: translateX(-50%); }

/* a hand's badge, ribbon and bet */
.bj-slot { position: absolute; left: 0; top: 0; }
.bj-slot .bj-badge { position: absolute; left: 50%; top: 0; transform: translateX(-50%); }
.bj-slot .bj-ring { position: absolute; border-radius: calc(var(--cw) * 0.1 + 5px); border: 2px solid #ffd166; box-shadow: 0 0 14px rgba(255,209,102,0.55), inset 0 0 10px rgba(255,209,102,0.25); opacity: 0; transition: opacity 0.15s; }
.bj-slot.is-active .bj-ring { opacity: 1; animation: bj-ring 1.4s ease-in-out infinite; }
@keyframes bj-ring { 50% { box-shadow: 0 0 22px rgba(255,209,102,0.85), inset 0 0 12px rgba(255,209,102,0.35); } }
.bj-slot.is-active .bj-badge:not(.is-bust):not(.is-bj) { border-color: #ffd166; }
.bj-ribbon { position: absolute; left: 50%; transform: translate(-50%, -50%); padding: 4px 9px; border-radius: 8px; font-size: 12.5px; line-height: 1.1; font-weight: 900; letter-spacing: 0.3px; white-space: nowrap; box-shadow: 0 3px 10px rgba(0,0,0,0.5); animation: bj-rib 0.3s cubic-bezier(0.2, 1.3, 0.4, 1); font-variant-numeric: tabular-nums; }
@keyframes bj-rib { from { opacity: 0; scale: 0.6; } }
.bj-ribbon.is-slim { padding: 3px 6px; font-size: 12px; letter-spacing: 0; }
.bj-ribbon.win { background: #3ecf8e; color: #04220f; }
.bj-ribbon.bj { background: #ffd166; color: #1a1200; }
.bj-ribbon.push { background: #dfe9ff; color: #0b1328; }
.bj-ribbon.lose { background: #2a1420; color: #ffb3bf; border: 1px solid #ff6b81; }
.bj-bet { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.bj-bet b, .bj-spot-amt { font-size: 12.5px; font-weight: 800; color: #fff; background: rgba(4,6,15,0.72); border-radius: 999px; padding: 2px 7px; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bj-bet em { font-style: normal; font-size: 10.5px; font-weight: 900; letter-spacing: 0.4px; padding: 2px 5px; border-radius: 5px; background: #55d6ff; color: #04202b; }
.bj-bet em.ins { background: #dfe9ff; color: #0b1328; }
.bj-slot .bj-bet > * { transition: opacity 0.3s 0.2s, filter 0.3s 0.2s; }
.bj-slot.is-gone .bj-bet > :not(.ins) { opacity: 0.38; filter: grayscale(0.85); }

/* chips */
.bj-chip { --c: #d83a4a; --e: #f6f7fb; --d: 44px; position: relative; display: inline-grid; place-items: center; flex: none; width: var(--d); height: var(--d); border-radius: 50%; background: radial-gradient(circle, var(--c) 0 56%, transparent 57%), repeating-conic-gradient(var(--e) 0 22.5deg, var(--c) 22.5deg 45deg); box-shadow: inset 0 0 0 1.5px rgba(0,0,0,0.35), 0 2px 3px rgba(0,0,0,0.5); box-sizing: border-box; }
.bj-chip::after { content: ''; position: absolute; inset: 20%; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,0.6); }
.bj-chip b { position: relative; z-index: 1; font-size: calc(var(--d) * 0.31); line-height: 1; font-weight: 900; color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,0.55); font-style: normal; }
.bj-c5 { --c: #d83a4a; }
.bj-c25 { --c: #1f9d62; }
.bj-c100 { --c: #171b2b; --e: #ffd166; }
.bj-c100::after { border-color: rgba(255,209,102,0.75); }
.bj-ch { --c: #5d74a6; }
.bj-stack { position: relative; display: inline-block; width: var(--d, 26px); flex: none; }
.bj-stack .bj-chip { position: absolute; left: 0; }
.bj-stack .bj-chip::after { border-width: 1px; }
.bj-flychip { position: absolute; left: 0; top: 0; transition: transform 0.4s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.25s ease; will-change: transform; }

/* shuffle */
.bj-shuffle { position: absolute; left: 50%; top: 42%; z-index: 7; width: 200px; height: calc(var(--ch) + 46px); transform: translate(-50%, -50%); pointer-events: none; }
.bj-shuffle i { left: 50%; margin-left: calc(var(--cw) / -2); animation: bj-riffle-l 0.7s ease-in-out infinite; }
.bj-shuffle i:nth-child(even) { animation-name: bj-riffle-r; }
.bj-shuffle i:nth-child(3), .bj-shuffle i:nth-child(4) { animation-delay: 0.09s; }
.bj-shuffle i:nth-child(5), .bj-shuffle i:nth-child(6) { animation-delay: 0.18s; }
@keyframes bj-riffle-l { 0%, 100% { translate: -3px 0; rotate: 0deg; } 45% { translate: calc(var(--cw) * -0.62) 4px; rotate: -7deg; } }
@keyframes bj-riffle-r { 0%, 100% { translate: 3px 0; rotate: 0deg; } 45% { translate: calc(var(--cw) * 0.62) 4px; rotate: 7deg; } }
.bj-shuffle span { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); padding: 5px 12px; border-radius: 999px; background: rgba(4,6,15,0.8); border: 1px solid rgba(255,255,255,0.16); font-size: 13px; font-weight: 700; white-space: nowrap; color: #dfe9ff; }

/* trainer feedback */
.bj-fb { position: absolute; left: 50%; bottom: 5px; z-index: 8; max-width: calc(100% - 14px); box-sizing: border-box; transform: translateX(-50%); padding: 5px 12px; border-radius: 999px; background: rgba(4,6,15,0.84); border: 1px solid rgba(255,255,255,0.18); color: #dfe9ff; font-size: 13px; line-height: 1.25; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.bj-fb b { font-weight: 900; }
.bj-stage .ck-toast { left: 12px; right: 12px; width: fit-content; max-width: none; margin: 0 auto; border-radius: 18px; text-align: center; transform: translateY(-6px); }
.bj-stage .ck-toast.show { animation-name: bj-toast; }
@keyframes bj-toast { 0% { opacity: 0; transform: translateY(-6px); } 7%, 84% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
.bj-fb.ok { border-color: #3ecf8e; } .bj-fb.ok b { color: #5fe3a8; }
.bj-fb.no { border-color: #ff6b81; } .bj-fb.no b { color: #ff9aa9; }
.bj-fb.pop { animation: bj-rib 0.25s ease; }

/* ---- dock ---- */
.bj-dock { position: relative; z-index: 5; flex: none; display: flex; flex-direction: column; gap: 6px; padding: 5px 8px calc(8px + env(safe-area-inset-bottom, 0px)); background: rgba(4,6,15,0.58); }
.bj-status { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.bj-rack { display: inline-flex; align-items: center; gap: 6px; flex: none; color: #8aa3c4; font-size: 12.5px; }
.bj-rack .bj-chip { --d: 22px; }
.bj-rack .bj-chip::after { border-width: 1px; }
.bj-rack b { font-size: 17px; font-weight: 800; color: #ffd166; font-variant-numeric: tabular-nums; }
.bj-rack.bump b { animation: bj-bump 0.35s ease; }
@keyframes bj-bump { 40% { scale: 1.22; } }
.bj-msg { flex: 1 1 auto; min-width: 0; text-align: center; font-size: 13.5px; line-height: 1.25; font-weight: 700; color: #dfe9ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bj-msg.good { color: #5fe3a8; } .bj-msg.bad { color: #ff9aa9; }
.bj-acc { flex: none; font-size: 12.5px; font-weight: 700; color: #8aa3c4; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bj-acc b { color: #dfe9ff; }
.bj-cash { flex: none; min-height: 40px; padding: 0 11px; }
.bj-row { display: flex; align-items: stretch; gap: 6px; min-height: 52px; }
.bj-row .ck-btn { min-height: 52px; font-size: 15px; cursor: pointer; }
.bj-row .ck-btn:disabled { cursor: default; }
.bj-row kbd { display: block; margin-top: 3px; font-family: inherit; font-size: 10.5px; line-height: 1; font-weight: 700; color: #8aa3c4; }
.bj-row .ck-btn-primary kbd { color: rgba(26,18,0,0.6); }
@media (hover: none) and (pointer: coarse) { .bj-row kbd { display: none; } }
.bj-chipbtn { width: 52px; height: 52px; flex: none; padding: 0; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: none; cursor: pointer; transition: transform 0.08s; }
.bj-chipbtn .bj-chip { --d: 48px; }
.bj-chipbtn:active { transform: translateY(2px) scale(0.96); }
.bj-chipbtn:disabled { opacity: 0.35; cursor: default; }
.bj-row-bet .ck-btn-icon { width: 46px; flex: none; }
.bj-x2 { flex: none; width: 50px; padding: 0; }
.bj-deal { flex: 1 1 auto; font-size: 16.5px !important; letter-spacing: 0.3px; }
.bj-row-play { display: grid; grid-template-columns: 1.1fr 1.1fr 1.1fr 0.95fr 1.35fr; gap: 5px; }
.bj-act { padding: 0 2px; box-shadow: inset 0 -3px 0 var(--k, #2f4a7c); }
.bj-act[data-move="hit"] { --k: #6f86b4; }
.bj-act[data-move="stand"] { --k: #ffd166; }
.bj-act[data-move="double"] { --k: #55d6ff; }
.bj-act[data-move="split"] { --k: #3ecf8e; }
.bj-act[data-move="surrender"] { --k: #ff6b81; }
.bj-act:disabled { box-shadow: inset 0 -3px 0 #1c2b4a; }
.bj-act.is-best { border-color: var(--k); }
.bj-row-ins { align-items: center; }
.bj-insq { flex: 1 1 auto; min-width: 0; font-size: 13.5px; line-height: 1.25; font-weight: 700; color: #dfe9ff; }
.bj-ins { flex: 1 1 0; min-width: 96px; }
.bj-row-done .ck-btn { flex: 1 1 0; padding: 0 6px; }
.bj-row-done .bj-deal { flex: 1.5 1 0; }
@media (max-width: 430px) {
  .bj-row .ck-btn { font-size: 14px; }
  .bj-row-play .ck-btn { font-size: 13.5px; }
  .bj-row-done .ck-btn { font-size: 13.5px; }
  .bj-hud { gap: 5px; padding: 6px; }
  .bj-row-bet { gap: 4px; }
  .bj-row-bet .ck-btn-icon { width: 42px; }
  .bj-x2 { width: 44px; }
  .bj-row-bet .bj-deal { min-width: 0; padding: 0 4px; }
}
/* a narrow dock: chips and score on one line, the message on its own line below, so it is never cut short */
@media (max-width: 560px) {
  .bj-status { flex-wrap: wrap; justify-content: space-between; gap: 0 8px; min-height: 0; }
  .bj-msg { order: 3; flex: 1 1 100%; min-height: 17px; }
  .bj-rack { min-height: 26px; }
  .bj-acc { line-height: 26px; }
}
@media (max-width: 375px) {
  .bj-fb { font-size: 12.5px; padding: 5px 10px; }
  .bj-chipbtn { width: 46px; }
  .bj-chipbtn .bj-chip { --d: 44px; }
}

/* short and wide (a phone on its side): the dock stands at the right so the table keeps its height */
.bj-land .bj-main { flex-direction: row; }
.bj-land .bj-dock { width: 204px; box-sizing: border-box; justify-content: center; padding: 6px 8px; border-left: 1px solid rgba(255,255,255,0.06); }
.bj-land .bj-status { flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; min-height: 0; }
.bj-land .bj-msg { order: 3; flex: 1 1 100%; white-space: normal; font-size: 13px; }
.bj-land .bj-row { flex-wrap: wrap; min-height: 0; }
.bj-land .bj-row .ck-btn { min-height: 44px; }
.bj-land .bj-row-play { grid-template-columns: 1fr 1fr; }
.bj-land .bj-row-play .bj-act:last-child { grid-column: 1 / -1; }
.bj-land .bj-row-bet { justify-content: space-between; }
.bj-land .bj-row-bet .bj-deal { flex: 1 1 100%; }
.bj-land .bj-row-bet .ck-btn-icon, .bj-land .bj-x2 { flex: 1 1 0; width: auto; }
.bj-land .bj-row-done .ck-btn { flex: 1 1 40%; }
.bj-land .bj-row-done .bj-deal { flex: 1 1 100%; }
.bj-land .bj-row-ins .bj-insq { flex: 1 1 100%; }
.bj-land .bj-row kbd { display: none; }

/* ---- strategy chart ---- */
.bj-side { flex: none; width: 296px; box-sizing: border-box; overflow: auto; padding: 10px 10px 12px; background: rgba(4,6,15,0.52); border-left: 1px solid rgba(255,255,255,0.08); }
.bj-side h4 { margin: 0 0 8px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; color: #8aa3c4; }
.bj-chartwrap .ck-tabs { margin-bottom: 8px; }
.bj-chartwrap .ck-tabs button { flex: 1 1 0; min-height: 40px; cursor: pointer; }
.bj-chart { display: grid; grid-template-columns: minmax(40px, 1.7fr) repeat(10, 1fr); gap: 2px; font-size: 11.5px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.bj-chart > span { display: block; min-width: 0; height: 22px; line-height: 22px; border-radius: 3px; }
.bj-chart .hd { color: #8aa3c4; font-weight: 700; }
.bj-chart .hd.is-on { color: #fff; background: rgba(255,255,255,0.18); }
.bj-chart .cH { background: #1c2b4a; color: #c9d8f5; }
.bj-chart .cS { background: #ffd166; color: #1a1200; }
.bj-chart .cD { background: #55d6ff; color: #04202b; }
.bj-chart .cP { background: #3ecf8e; color: #04220f; }
.bj-chart .cR { background: #ff6b81; color: #2a0810; }
.bj-chart .is-lit { position: relative; z-index: 1; outline: 2px solid #fff; outline-offset: 1px; box-shadow: 0 0 12px 2px rgba(255,255,255,0.75); }
.bj-chartcap { margin: 8px 0 0; min-height: 34px; font-size: 12.5px; line-height: 1.35; color: #dfe9ff; }
.bj-chartcap b { color: #fff; }
.bj-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 11.5px; color: #8aa3c4; }
.bj-legend li { display: inline-flex; align-items: center; gap: 4px; }
.bj-legend i { min-width: 18px; height: 16px; padding: 0 3px; box-sizing: border-box; border-radius: 3px; font-style: normal; font-size: 10.5px; font-weight: 800; line-height: 16px; text-align: center; }
.bj-legend .cH { background: #1c2b4a; color: #c9d8f5; }
.bj-legend .cS { background: #ffd166; color: #1a1200; }
.bj-legend .cD { background: #55d6ff; color: #04202b; }
.bj-legend .cP { background: #3ecf8e; color: #04220f; }
.bj-legend .cR { background: #ff6b81; color: #2a0810; }

/* ---- sheets ---- */
.bj-overlay { position: absolute; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 10px; background: rgba(2,4,10,0.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: ck-fade 0.2s ease; }
.bj-sheet { max-width: 470px; max-height: 100%; padding: 20px 18px 16px; outline: none; }
.bj-sheet .ck-x { cursor: pointer; }
.bj-sheet .ck-h4 { margin-top: 14px; }
.bj-sheet .ck-actions .ck-btn { cursor: pointer; }
.bj-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bj-tier, .bj-drill { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; min-height: 60px; padding: 8px 12px; border-radius: 12px; border: 1px solid #1c2b4a; background: #0b1328; color: #dfe9ff; text-align: left; cursor: pointer; transition: border-color 0.15s, transform 0.08s; }
.bj-tier:hover, .bj-drill:hover { border-color: #2f4a7c; }
.bj-tier:active, .bj-drill:active { transform: translateY(1px); }
.bj-tier b, .bj-drill b { font-size: 15px; font-weight: 800; color: #fff; }
.bj-tier b i { font-style: normal; color: #ffd166; }
.bj-tier span, .bj-drill span { font-size: 12px; line-height: 1.3; color: #8aa3c4; }
.bj-tier:disabled { opacity: 0.45; cursor: default; }
.bj-tier.is-short { opacity: 0.55; }
.bj-tier.ck-busy { pointer-events: none; }
.bj-drill.is-on { border-color: #55d6ff; }
.bj-gate { border: 1px dashed #2f4a7c; border-radius: 12px; padding: 12px 12px 10px; background: rgba(11,19,40,0.6); }
.bj-gate p { margin: 0 0 10px; color: #dfe9ff; font-size: 14px; line-height: 1.45; }
.bj-gate .ck-actions { margin-top: 0; }
.bj-sheet ul.bj-list { margin: 0 0 4px; padding: 0 0 0 18px; color: #c5d3ee; font-size: 13.5px; line-height: 1.5; }
.bj-sheet ul.bj-list li { margin: 0 0 4px; }
.bj-sheet .bj-kbd { display: flex; flex-wrap: wrap; gap: 5px 12px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: #c5d3ee; }
.bj-sheet .bj-kbd kbd { background: #16213a; color: #bfe9ff; border-radius: 3px; padding: 1px 6px; font-family: inherit; font-size: 12px; font-weight: 700; }
.bj-big { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 10px; }
.bj-big b { font-size: 34px; line-height: 1; font-weight: 900; color: #ffd166; font-variant-numeric: tabular-nums; }
.bj-big.up b { color: #5fe3a8; } .bj-big.down b { color: #ff9aa9; }
.bj-big span { font-size: 14px; color: #8aa3c4; }
.bj-sheet .ck-grid b { font-variant-numeric: tabular-nums; line-height: 23px; white-space: nowrap; }
.bj-sheet .ck-grid b.is-l { font-size: 16px; } .bj-sheet .ck-grid b.is-xl { font-size: 13.5px; }
@media (max-width: 430px) { .bj-sheet .ck-grid b.is-l { font-size: 14.5px; letter-spacing: -0.2px; } .bj-sheet .ck-grid b.is-xl { font-size: 12px; letter-spacing: -0.3px; } }
.bj-miss { margin: 0; padding: 0; list-style: none; font-size: 13px; color: #c5d3ee; }
.bj-miss li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid #16223f; }
.bj-miss li b { color: #fff; font-weight: 700; }
.bj-miss li span { color: #8aa3c4; white-space: nowrap; }
@media (max-width: 430px) {
  .bj-sheet { padding: 18px 14px 14px; }
  .bj-tier, .bj-drill { padding: 8px 10px; }
}

/* less motion */
.bj-snap .bj-card, .bj-snap .bj-flychip, .bj-snap .bj-slot, .bj-snap .bj-spot { transition: none !important; }
.bj-still .bj-card, .bj-still .bj-slot .bj-bet > *, .bj-still .bj-flychip, .bj-still .bj-tray i, .bj-still .bj-shoe-fill, .bj-still .bj-shoe-cut { transition: none !important; }
.bj-still .bj-card.is-flip, .bj-still .bj-card.is-peek, .bj-still .bj-ribbon, .bj-still .bj-slot.is-active .bj-ring, .bj-still .bj-shuffle i, .bj-still .bj-fb.pop, .bj-still .bj-rack.bump b { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .bj-card, .bj-flychip { transition: none !important; }
  .bj-card.is-flip, .bj-card.is-peek, .bj-ribbon, .bj-slot.is-active .bj-ring, .bj-shuffle i { animation: none !important; }
}
