/* Classic in the Country Blackjack */

.bj {
	--bj-ink: #141414;
	--bj-red: #B5282E;
	--bj-navy: #1F3A6B;
	--bj-gold: #D9A33A;
	--bj-bright: #F2C462;
	--bj-cream: #F4EAD2;
	--bj-felt: #151515;
	--bj-wood: #5A3A1E;
	--bj-display: "Alfa Slab One", Georgia, serif;
	--bj-rugged: "New Rocker", Georgia, serif;
	--bj-script: "Yellowtail", "Brush Script MT", cursive;
	--cw: 120px;
	background: var(--bj-navy);
	color: var(--bj-cream);
	font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	padding: 28px 0 48px;
	overflow-x: clip;
}
.bj *, .bj *::before, .bj *::after { box-sizing: border-box; }
.bj :where(button) { font: inherit; }
.bj-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- Title row ---------- */
.bj-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 24px; }
.bj-titles { display: flex; flex-direction: column; gap: 6px; }
.bj-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--bj-gold); }
.bj-h1 { margin: 0; font-family: var(--bj-rugged); font-weight: 400; font-size: 56px; line-height: 1; color: var(--bj-cream); }
.bj-stats { display: flex; align-items: stretch; gap: 14px; }
.bj-stat { background: var(--bj-ink); border: 3px solid var(--bj-ink); border-radius: 6px; padding: 10px 18px; display: flex; align-items: center; gap: 12px; box-shadow: 5px 5px 0 #000; }
.bj-stat--bank { outline: 2px solid var(--bj-gold); }
.bj-stat-chip { display: block; width: 34px; height: 34px; }
.bj-stat-chip svg { display: block; width: 100%; height: 100%; }
.bj-stat-text { display: flex; flex-direction: column; line-height: 1.05; }
.bj-stat-label { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #CFD6E4; }
.bj-stat-num { font-family: var(--bj-display); font-size: 26px; color: var(--bj-cream); }
.bj-stat-num--gold { color: var(--bj-gold); }
.bj-stat--bank.is-broke { outline-color: var(--bj-bright); animation: bj-broke 1.4s ease-in-out infinite; }
.bj-rebuy-top { min-height: 40px; padding: 6px 14px; font-size: 15px; }
.bj-rebuy-top[hidden] { display: none; }
.bj-sound { width: 58px; min-height: 44px; background: var(--bj-ink); border: 3px solid var(--bj-ink); border-radius: 6px; box-shadow: 5px 5px 0 #000; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.bj-sound .bj-sound-off { display: none; }
.bj-sound.is-off .bj-sound-on { display: none; }
.bj-sound.is-off .bj-sound-off { display: inline; }

/* ---------- Felt ---------- */
.bj-felt {
	position: relative;
	margin-top: 22px;
	min-height: 600px;
	background: var(--bj-felt);
	border: 16px solid var(--bj-wood);
	border-radius: 48px 48px 50% 50% / 48px 48px 200px 200px;
	box-shadow: inset 0 0 0 3px var(--bj-gold), inset 0 0 120px rgba(255,255,255,.05), 10px 10px 0 #000;
	overflow: hidden;
	padding: 24px 24px 34px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	isolation: isolate;
}
.bj-watermark { position: absolute; left: 50%; top: 50%; width: 920px; height: 920px; transform: translate(-50%, -50%); opacity: .045; pointer-events: none; z-index: -1; }
.bj-watermark svg { width: 100%; height: 100%; }

.bj-dealer-head { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.bj-plate { display: inline-block; background: var(--bj-gold); color: var(--bj-ink); border: 3px solid var(--bj-ink); border-radius: 4px; padding: 5px 18px; font-family: var(--bj-display); font-size: 15px; letter-spacing: .16em; text-transform: uppercase; box-shadow: 3px 3px 0 var(--bj-red); }
.bj-rules { display: flex; flex-direction: column; gap: 2px; font-family: var(--bj-display); font-size: 11px; letter-spacing: .14em; line-height: 1.25; text-transform: uppercase; color: var(--bj-gold); opacity: .85; }

/* ---------- Hands and cards ---------- */
.bj-hand { position: relative; display: flex; justify-content: center; min-height: calc(var(--cw) * 1.4); }
.bj-fan { position: relative; display: flex; }
.bj-hand--dealer.is-empty .bj-fan::before,
.bj-hands.is-empty::before { content: ""; display: block; width: calc(var(--cw) * 1.48); height: calc(var(--cw) * 1.4); border: 2px dashed rgba(217,163,58,.35); border-radius: 10px; }
.bj-card { position: relative; width: var(--cw); height: calc(var(--cw) * 1.4); flex: 0 0 auto; filter: drop-shadow(5px 5px 0 #000); }
.bj-card + .bj-card { margin-left: calc(var(--cw) * -0.52); }
.bj-fan--tight .bj-card + .bj-card { margin-left: calc(var(--cw) * -0.66); }
.bj-fan--tighter .bj-card + .bj-card { margin-left: calc(var(--cw) * -0.75); }
.bj-card svg { display: block; width: 100%; height: 100%; }
.bj-card-mark { position: absolute; left: 50%; top: 50%; width: 63%; height: 45%; transform: translate(-50%, -50%); }
.bj-card-mark svg { width: 100%; height: 100%; }
.bj-card--in { animation: bj-deal .35s ease-out both; }
.bj-card--flip { animation: bj-flip .4s ease-out both; }
.bj-total { position: absolute; left: calc(100% + 14px); top: 50%; transform: translateY(-50%); min-width: 70px; height: 70px; border-radius: 35px; padding: 0 10px; display: flex; align-items: center; justify-content: center; background: var(--bj-red); border: 3px solid var(--bj-cream); font-family: var(--bj-display); font-size: 32px; color: var(--bj-cream); }
.bj-hand--dealer .bj-total { background: var(--bj-navy); }
.bj-total[hidden] { display: none; }

.bj-status { position: relative; z-index: 3; background: var(--bj-cream); color: var(--bj-ink); border: 3px solid var(--bj-ink); box-shadow: 3px 3px 0 var(--bj-ink); border-radius: 999px; padding: 7px 20px; font-family: var(--bj-display); font-size: 16px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.bj-status--win { background: var(--bj-gold); }
.bj-status--lose { background: var(--bj-red); color: #fff; }
.bj-status[hidden] { display: block; visibility: hidden; }

.bj-player { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "bet hands spacer"; align-items: center; gap: 24px; }
.bj-betspot { grid-area: bet; justify-self: end; margin-right: 76px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.bj-hands { grid-area: hands; display: flex; justify-content: center; gap: 130px; }
.bj-hands.is-split { --cw: 100px; }
.bj-spacer { grid-area: spacer; }
.bj-plate--you { margin-top: 4px; }

.bj-hand--player { transition: opacity .3s, filter .5s; }
.bj-hands.is-split .bj-hand--player { opacity: .55; }
.bj-hands.is-split .bj-hand--player.is-active { opacity: 1; }
.bj-hands.is-split .bj-hand--player.is-active::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -12px; height: 4px; border-radius: 2px; background: var(--bj-gold); }
.bj-hand--player.is-lost { filter: grayscale(.7) brightness(.75); }
.bj-tag { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); z-index: 4; border: 2px solid var(--bj-ink); border-radius: 999px; padding: 3px 12px; font-family: var(--bj-display); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; box-shadow: 2px 2px 0 #000; }
.bj-tag--win { background: var(--bj-gold); color: var(--bj-ink); }
.bj-tag--push { background: var(--bj-cream); color: var(--bj-ink); }
.bj-tag--lose { background: var(--bj-red); color: #fff; }
.bj-tag[hidden] { display: none; }
.bj-shake .bj-fan { animation: bj-shake .5s ease-in-out .2s 1; }
.bj-busted { position: absolute; left: 50%; top: 50%; z-index: 4; background: var(--bj-ink); color: var(--bj-red); border-radius: 50%; padding: 10px 26px 14px; box-shadow: 0 0 0 3px #2A2A2A, 6px 6px 0 rgba(0,0,0,.6); font-family: var(--bj-script); font-size: 40px; line-height: 1; white-space: nowrap; transform: translate(-50%, -50%); animation: bj-pop .35s cubic-bezier(.2,.9,.3,1.3) .15s both; }

/* ---------- Bet circle ---------- */
.bj-bet-amount { min-height: 30px; font-family: var(--bj-display); font-size: 30px; line-height: 1; color: var(--bj-gold); }
.bj-bet-hint { min-height: 14px; max-width: 220px; font-family: var(--bj-display); font-size: 11px; letter-spacing: .08em; line-height: 1.3; text-transform: uppercase; color: #A9A190; }
.bj-ring { position: relative; width: 150px; height: 150px; padding: 0; border: 3px dashed var(--bj-gold); border-radius: 50%; background: rgba(217,163,58,.06); color: inherit; cursor: pointer; }
.bj-ring:disabled { cursor: default; opacity: 1; }
.bj-ring.is-won { animation: bj-glow 1.1s ease-in-out .3s 3; }
.bj-ring-empty { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; font-family: var(--bj-display); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--bj-gold); opacity: .7; }
.bj-ring.is-empty .bj-ring-empty { display: flex; }
.bj-stack { position: absolute; inset: 0; transition: opacity .6s; }
.bj-stack.is-lost { opacity: .25; }
.bj-chip { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; transform: translate(var(--x), var(--y)); }
.bj-chip svg { display: block; width: 100%; height: 100%; }
.bj-chip--drop svg { animation: bj-chipin .25s ease-out both; }
.bj-chip--paid svg { animation: bj-paid .4s ease-out both; animation-delay: inherit; }

/* ---------- Controls ---------- */
.bj-controls { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 20px 24px; }
.bj-tray { background: var(--bj-ink); border-radius: 10px; padding: 12px 16px; display: flex; align-items: flex-start; gap: 10px; box-shadow: 5px 5px 0 #000; }
.bj-tray-chip { width: 72px; background: none; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; color: var(--bj-cream); }
.bj-tray-art { display: block; width: 64px; height: 64px; transition: transform .12s; }
.bj-tray-art svg { display: block; width: 100%; height: 100%; }
.bj-tray-chip:not(:disabled):hover .bj-tray-art { transform: translateY(-3px); }
.bj-tray-chip:not(:disabled):active .bj-tray-art { transform: translateY(1px); }
.bj-tray-label { font-family: var(--bj-display); font-size: 13px; line-height: 1.15; text-align: center; }
.bj-tray-chip:disabled { cursor: not-allowed; }
.bj-tray-chip.is-off .bj-tray-art { opacity: .3; filter: grayscale(1); }
.bj-tray-chip.is-off .bj-tray-label, .bj-tray-chip.is-locked .bj-tray-label { color: #6E6A60; }

.bj-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.bj-btn { min-height: 54px; padding: 12px 26px; border: 3px solid var(--bj-ink); border-radius: 8px; font-family: var(--bj-display); font-size: 20px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: transform .08s, box-shadow .08s; }
.bj-btn:not(:disabled):active { transform: translate(2px, 2px); }
.bj-btn--red { background: var(--bj-red); color: #fff; box-shadow: 3px 3px 0 var(--bj-cream); }
.bj-btn--cream { background: var(--bj-cream); color: var(--bj-ink); box-shadow: 3px 3px 0 var(--bj-red); }
.bj-btn--white { background: #fff; color: var(--bj-ink); box-shadow: 4px 4px 0 var(--bj-ink); }
.bj-btn--gold { background: var(--bj-gold); color: var(--bj-ink); box-shadow: 3px 3px 0 var(--bj-red); }
.bj-btn--bright { background: var(--bj-bright); color: var(--bj-ink); box-shadow: 3px 3px 0 var(--bj-red); }
.bj-btn--big { font-size: 26px; padding: 12px 40px; }
.bj-btn:disabled { background: #8A8F96; color: #2A2A2A; box-shadow: 3px 3px 0 var(--bj-ink); cursor: not-allowed; }
.bj-ins .bj-btn--gold { box-shadow: 4px 4px 0 var(--bj-ink); }

.bj-foot { margin-top: 18px; font-size: 14px; color: #CFD6E4; }
.bj-note { margin: 0 0 12px; }
.bj-how summary { cursor: pointer; font-family: var(--bj-display); letter-spacing: .06em; text-transform: uppercase; color: var(--bj-gold); }
.bj-how ul { margin: 10px 0 0; padding-left: 20px; line-height: 1.6; }
.bj-rig { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bj-rig-label { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--bj-gold); }
.bj-rig-btn { font-family: var(--bj-display); font-size: 12px; letter-spacing: .04em; padding: 6px 10px; border: 2px solid var(--bj-gold); border-radius: 4px; background: transparent; color: var(--bj-gold); cursor: pointer; }
.bj-rig-btn.is-on { background: var(--bj-gold); color: var(--bj-ink); }

/* ---------- Moments ---------- */
.bj-layer { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.bj-layer > * { pointer-events: auto; }
.bj-layer .bj-burst, .bj-layer .bj-spinner, .bj-layer .bj-win { pointer-events: none; }
.bj-scrim { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(20,20,20,.55), rgba(0,0,0,.88)); animation: bj-fade .35s ease-out both; }
.bj-scrim--soft { background: rgba(0,0,0,.45); }
.bj-scrim--deep { background: radial-gradient(circle at 50% 50%, rgba(20,20,20,.7), rgba(0,0,0,.92)); }

.bj-burst { position: absolute; left: 50%; top: 46%; width: 0; height: 0; }
.bj-bj ~ .bj-burst, .bj-spinner ~ .bj-burst { top: 42%; }
.bj-spark-arm { position: absolute; left: 0; top: 0; }
.bj-spark { position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; opacity: 0; animation: bj-fly-far 1.2s ease-out both; }
.bj-spark--near { animation-name: bj-fly-near; }
.bj-spark--loop { animation-iteration-count: infinite; }

.bj-win { position: absolute; left: 0; right: 0; top: 46%; display: flex; flex-direction: column; align-items: center; transform: translateY(-50%); }
.bj-plaque { position: relative; width: 420px; height: 97px; animation: bj-pop-in .5s cubic-bezier(.2,.9,.3,1.35) both; }
.bj-plaque svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bj-plaque-text { position: absolute; left: 70px; right: 70px; top: 0; height: 100%; display: flex; align-items: center; justify-content: center; padding-bottom: 6px; font-family: var(--bj-script); font-size: 52px; line-height: 1; color: var(--bj-red); text-shadow: 3px 3px 0 #000; white-space: nowrap; }
.bj-plaque-text--sm { font-size: 40px; }
.bj-win-amt { position: relative; z-index: 1; margin-top: 2px; background: #1C1C1C; color: var(--bj-red); border: 3px solid #2E2E2E; outline: 3px solid #0A0A0A; border-radius: 999px; padding: 2px 22px 5px; font-family: var(--bj-display); font-size: 24px; line-height: 1.2; box-shadow: 5px 5px 0 #000; animation: bj-rise .4s ease-out .35s both; }

.bj-spinner { position: absolute; left: 50%; top: 50%; width: 600px; height: 600px; margin: -300px 0 0 -300px; opacity: .4; animation: bj-spin 5s linear infinite; }
.bj-bj { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; animation: bj-pop-in .55s cubic-bezier(.2,.9,.3,1.35) both; }
.bj-bj-mark { display: block; width: 160px; height: 160px; animation: bj-spinpop .8s cubic-bezier(.2,.9,.3,1.2) .1s both; }
.bj-bj-mark svg { width: 100%; height: 100%; }
.bj-bj-title { font-family: var(--bj-rugged); font-size: 96px; line-height: 1; color: var(--bj-bright); white-space: nowrap; text-shadow: 3px 3px 0 var(--bj-ink), -2px -2px 0 var(--bj-ink), 2px -2px 0 var(--bj-ink), -2px 2px 0 var(--bj-ink), 8px 8px 0 var(--bj-red); }
.bj-bj-line { margin-top: 10px; background: var(--bj-red); color: #fff; border: 3px solid var(--bj-ink); border-radius: 6px; padding: 8px 22px; font-family: var(--bj-display); font-size: 20px; letter-spacing: .08em; text-transform: uppercase; box-shadow: 4px 4px 0 var(--bj-ink); white-space: nowrap; animation: bj-rise .4s ease-out .5s both; }

.bj-ins { position: absolute; left: 50%; top: 50%; width: min(380px, calc(100% - 32px)); transform: translate(-50%, -50%); background: var(--bj-cream); color: var(--bj-ink); border: 4px solid var(--bj-ink); border-radius: 8px; box-shadow: 8px 8px 0 var(--bj-red); padding: 24px 26px; display: flex; flex-direction: column; gap: 12px; animation: bj-fade .25s ease-out both; }
.bj-ins-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--bj-red); }
.bj-ins-title { font-family: var(--bj-rugged); font-size: 40px; line-height: 1; }
.bj-ins-text { font-size: 15px; line-height: 1.5; color: #33302A; }
.bj-ins-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.bj-ins .bj-btn { font-size: 15px; padding: 10px 14px; min-height: 48px; }

.bj-unlock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; animation: bj-pop-in .5s cubic-bezier(.2,.9,.3,1.3) both; }
.bj-unlock-stage { position: relative; width: 250px; height: 250px; perspective: 700px; }
.bj-twinkle { position: absolute; width: 22px; height: 22px; animation: bj-twinkle 1.6s ease-in-out infinite; }
.bj-unlock-chip { position: absolute; inset: 15px; animation: bj-uspin 3.2s cubic-bezier(.2,.8,.2,1) infinite; transform-style: preserve-3d; }
.bj-unlock-chip svg { display: block; width: 100%; height: 100%; }
.bj-unlock-shine { position: absolute; left: 4px; top: 4px; width: 94%; height: 94%; border-radius: 50%; overflow: hidden; pointer-events: none; }
.bj-unlock-shine span { position: absolute; top: -40px; left: 0; width: 64px; height: 300px; animation: bj-ushine 3.2s ease-in-out infinite; }
.bj-unlock-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--bj-gold); }
.bj-unlock-name { font-family: var(--bj-rugged); font-size: 46px; line-height: 1; color: var(--bj-cream); white-space: nowrap; }
.bj-unlock-line { font-family: var(--bj-display); font-size: 16px; }
.bj-unlock .bj-btn { margin-top: 8px; font-size: 16px; min-height: 48px; padding: 10px 22px; }

/* ---------- Animations ---------- */
@keyframes bj-deal { 0% { opacity: 0; transform: translate(40px, -160px) rotate(-12deg); } 100% { opacity: 1; transform: none; } }
@keyframes bj-flip { 0% { transform: rotateY(90deg); } 100% { transform: rotateY(0); } }
@keyframes bj-pop { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3); } 60% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes bj-pop-in { 0% { opacity: 0; transform: scale(.3); } 60% { opacity: 1; transform: scale(1.1); } 100% { opacity: 1; transform: scale(1); } }
@keyframes bj-shake { 0%, 100% { transform: translateX(0); } 15% { transform: translateX(-12px) rotate(-1deg); } 35% { transform: translateX(10px) rotate(1deg); } 55% { transform: translateX(-7px); } 75% { transform: translateX(4px); } }
@keyframes bj-fly-far { 0% { opacity: 0; transform: translateX(40px) scale(.3); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateX(330px) scale(1) rotate(220deg); } }
@keyframes bj-fly-near { 0% { opacity: 0; transform: translateX(30px) scale(.3); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateX(220px) scale(.8) rotate(-180deg); } }
@keyframes bj-rise { 0% { opacity: 0; transform: translateY(16px); } 100% { opacity: 1; transform: none; } }
@keyframes bj-fade { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes bj-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes bj-spinpop { 0% { transform: rotate(-200deg) scale(.2); } 100% { transform: rotate(0deg) scale(1); } }
@keyframes bj-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(242,196,98,0); } 50% { box-shadow: 0 0 0 16px rgba(242,196,98,.35); } }
@keyframes bj-paid { 0% { opacity: 0; transform: translateY(-140px) scale(1.2); } 70% { opacity: 1; transform: translateY(4px) scale(1); } 100% { opacity: 1; transform: none; } }
@keyframes bj-chipin { 0% { opacity: 0; transform: translateY(-30px) scale(1.15); } 100% { opacity: 1; transform: none; } }
@keyframes bj-uspin { 0% { transform: rotateY(0deg) scale(.6); } 55% { transform: rotateY(720deg) scale(1.08); } 70%, 100% { transform: rotateY(720deg) scale(1); } }
@keyframes bj-ushine { 0%, 45% { transform: translateX(-160%) rotate(20deg); } 75%, 100% { transform: translateX(260%) rotate(20deg); } }
@keyframes bj-broke { 0%, 100% { box-shadow: 5px 5px 0 #000, 0 0 0 0 rgba(242,196,98,0); } 50% { box-shadow: 5px 5px 0 #000, 0 0 0 8px rgba(242,196,98,.35); } }
@keyframes bj-twinkle { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.1); } }

/* ---------- The Cigar Box (chip collection) ---------- */
.bj-boxbtn { min-height: 44px; background: var(--bj-ink); border: 3px solid var(--bj-ink); border-radius: 6px; box-shadow: 5px 5px 0 #000; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px 8px; color: var(--bj-gold); }
.bj-boxbtn:hover { border-color: var(--bj-gold); }
.bj-boxbtn-icon { display: block; width: 40px; height: 35px; }
.bj-boxbtn-icon svg { display: block; width: 100%; height: 100%; }
.bj-boxbtn-label { font-family: var(--bj-display); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; line-height: 1; }
html.bj-noscroll { overflow: hidden; }
.bj-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(8,8,8,.93); overflow-y: auto; display: flex; align-items: flex-start; justify-content: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
.bj-modal[hidden] { display: none; }
.bj-modal-box { width: min(860px, 100%, calc((100vh - 130px) * 1.09)); margin: auto 0; display: flex; flex-direction: column; gap: 8px; }
.bj-modal-head { display: flex; align-items: center; gap: 14px; color: var(--bj-cream); }
.bj-modal-title { font-family: var(--bj-rugged); font-size: 40px; line-height: 1; }
.bj-modal-sub { flex: 1 1 auto; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--bj-gold); }
.bj-x { flex: 0 0 auto; width: 44px; height: 44px; border: 2px solid #3A3A3A; border-radius: 8px; background: var(--bj-ink); color: var(--bj-cream); font-family: var(--bj-display); font-size: 24px; line-height: 1; cursor: pointer; }
.bj-x:hover { border-color: var(--bj-gold); }
.bj-boxwrap { position: relative; }
.bj-box-art { display: block; width: 100%; height: auto; }
.bj-slot { position: absolute; width: 13.14%; aspect-ratio: 1; border-radius: 50%; border: 0; background: transparent; padding: 0; cursor: pointer; }
.bj-slot:hover { box-shadow: 0 0 0 4px rgba(217,163,58,.6); }
.bj-modal-hint { margin: 0; text-align: center; font-size: 14px; color: #CFC6B2; }
.bj-card-scrim { position: fixed; inset: 0; z-index: 1001; background: rgba(10,10,10,.6); display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.bj-card-scrim[hidden] { display: none; }
.bj-chipcard { position: relative; width: min(420px, 100%); margin: auto; background: #1A1A1A; color: var(--bj-cream); border: 3px solid var(--bj-gold); border-radius: 14px; box-shadow: 8px 8px 0 var(--bj-red); padding: 20px 22px 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; animation: bj-pop-in .35s cubic-bezier(.2,.9,.3,1.25) both; }
.bj-card-top { align-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bj-rarity { font-family: var(--bj-display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; color: var(--bj-ink); }
.bj-rarity--common { background: #F4EAD2; }
.bj-rarity--rare { background: #E8789B; }
.bj-rarity--epic { background: #D9A33A; }
.bj-rarity--legendary { background: #DDE1E6; }
.bj-rarity--locked { background: #5E636A; color: var(--bj-cream); }
.bj-card-count { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: #A9A190; }
.bj-card-stage { position: relative; width: min(230px, 62vw); aspect-ratio: 1; perspective: 700px; margin: 4px 0 2px; }
.bj-card-spin { position: absolute; inset: 0; transform-style: preserve-3d; animation: bj-cardspin 1.3s cubic-bezier(.2,.8,.2,1) both; }
.bj-card-spin svg { display: block; width: 100%; height: 100%; }
.bj-card-shine { position: absolute; left: 2%; top: 2%; width: 90%; height: 90%; border-radius: 50%; overflow: hidden; pointer-events: none; }
.bj-card-shine span { position: absolute; top: -20%; left: 0; width: 26%; height: 140%; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.75), rgba(255,255,255,0)); animation: bj-cardshine 2.6s ease-in-out .9s infinite; }
.bj-chipcard.is-locked .bj-card-shine { display: none; }
.bj-card-name { margin: 0; font-family: var(--bj-rugged); font-weight: 400; font-size: 40px; line-height: 1; color: var(--bj-cream); }
.bj-card-value { font-family: var(--bj-display); font-size: 22px; color: var(--bj-gold); }
.bj-card-blurb { margin: 0; max-width: 34ch; font-size: 15px; line-height: 1.5; color: #CFC6B2; }
.bj-card-progress { align-self: stretch; display: flex; flex-direction: column; gap: 6px; }
.bj-card-bar { display: block; height: 12px; border-radius: 6px; background: #2E2E2E; border: 1px solid #3A3A3A; overflow: hidden; }
.bj-card-bar span { display: block; height: 100%; background: var(--bj-gold); }
.bj-card-progress small { font-size: 13px; color: #A9A190; font-variant-numeric: tabular-nums; }
.bj-chipcard .bj-card-hear { font-size: 15px; min-height: 44px; padding: 10px 16px; text-transform: none; }
.bj-card-nav { align-self: stretch; display: flex; gap: 10px; margin-top: 4px; }
.bj-card-nav button { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 10px 8px; border: 2px solid #3A3A3A; border-radius: 8px; background: transparent; color: var(--bj-cream); font-family: var(--bj-display); font-size: 13px; letter-spacing: .03em; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bj-card-nav button:hover { border-color: var(--bj-gold); }
.bj-unlock-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.bj-unlock-btns .bj-btn { margin-top: 0; }
@keyframes bj-cardspin { from { transform: rotateY(0) scale(.6); } to { transform: rotateY(720deg) scale(1); } }
@keyframes bj-cardshine { 0%, 40% { transform: translateX(-140%) rotate(18deg); } 80%, 100% { transform: translateX(420%) rotate(18deg); } }
@media (max-width: 700px) {
	.bj-boxbtn { box-shadow: 3px 3px 0 #000; padding: 3px 6px; }
	.bj-boxbtn-icon { width: 32px; height: 28px; }
	.bj-modal-title { font-size: 30px; }
	.bj-modal-sub { font-size: 11px; }
	.bj-card-name { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
	.bj *, .bj *::before, .bj *::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; transition: none !important; }
	.bj-card-shine { display: none; }
	.bj-spinner { display: none; }
}

/* ---------- Laptops: shorter screens, keep the buttons in view ---------- */
@media (min-width: 701px) and (max-height: 1000px) {
	.bj { --cw: 88px; padding: 10px 0 28px; }
	.bj-top { gap: 10px 24px; }
	.bj-titles { gap: 2px; }
	.bj-h1 { font-size: 38px; }
	.bj-eyebrow { font-size: 11px; }
	.bj-stat { padding: 6px 14px; }
	.bj-stat-chip { width: 28px; height: 28px; }
	.bj-stat-num { font-size: 22px; }
	.bj-sound { min-height: 40px; }
	.bj-felt { margin-top: 10px; min-height: 0; padding: 12px 24px 18px; gap: 8px; border-width: 14px; }
	.bj-plate { font-size: 13px; padding: 4px 14px; }
	.bj-status { font-size: 14px; padding: 5px 18px; }
	.bj-total { min-width: 56px; height: 56px; font-size: 25px; }
	.bj-betspot { margin-right: 60px; gap: 6px; }
	.bj-ring { width: 112px; height: 112px; }
	.bj-chip { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
	.bj-bet-amount { font-size: 22px; min-height: 22px; }
	.bj-hands.is-split { --cw: 76px; }
	.bj-plate--you { margin-top: 0; }
	.bj-controls { margin-top: 12px; }
	.bj-tray { padding: 6px 14px; gap: 10px; }
	.bj-tray-art { width: 48px; height: 48px; }
	.bj-tray-chip { width: 60px; gap: 2px; }
	.bj-tray-label { font-size: 12px; }
	.bj-btn { min-height: 48px; padding: 10px 24px; }
	.bj-btn--big { padding: 10px 36px; }
	.bj-win { transform: translateY(-50%) scale(.85); }
	.bj-bj-mark { width: 110px; height: 110px; }
	.bj-bj-title { font-size: 72px; }
	.bj-unlock-stage { transform: scale(.75); margin: -30px 0; }
	.bj-unlock-name { font-size: 40px; }
}

/* ---------- Medium screens ---------- */
@media (max-width: 1000px) {
	.bj { --cw: 100px; }
	.bj-betspot { margin-right: 60px; }
	.bj-ring { width: 124px; height: 124px; }
	.bj-chip { width: 70px; height: 70px; margin: -35px 0 0 -35px; }
	.bj-hands { gap: 100px; }
	.bj-hands.is-split { --cw: 84px; }
	.bj-controls { justify-content: center; }
}

/* ---------- Phones ---------- */
@media (max-width: 700px) {
	.bj { --cw: 86px; padding: 16px 0 32px; }
	.bj-wrap { padding: 0 12px; }
	.bj-top { align-items: flex-end; gap: 10px; }
	.bj-eyebrow { font-size: 10px; }
	.bj-h1 { font-size: 36px; }
	.bj-stats { gap: 8px; }
	.bj-stat { padding: 6px 10px; gap: 8px; box-shadow: 3px 3px 0 #000; }
	.bj-stat-chip { width: 26px; height: 26px; }
	.bj-stat-label { font-size: 9px; }
	.bj-stat-num { font-size: 20px; }
	.bj-sound { width: 44px; box-shadow: 3px 3px 0 #000; }
	.bj-stat-label { white-space: nowrap; }
	.bj-rebuy-top { min-height: 38px; padding: 4px 10px; font-size: 13px; letter-spacing: .02em; white-space: nowrap; }

	.bj-felt { margin-top: 12px; min-height: 0; border-width: 10px; border-radius: 28px 28px 50% 50% / 28px 28px 80px 80px; box-shadow: inset 0 0 0 2px var(--bj-gold), inset 0 0 80px rgba(255,255,255,.05), 6px 6px 0 #000; padding: 12px 10px 22px; gap: 10px; }
	.bj-watermark { width: 560px; height: 560px; }
	.bj-plate { font-size: 12px; padding: 3px 12px; border-width: 2px; box-shadow: 2px 2px 0 var(--bj-red); }
	.bj-rules { font-size: 8px; }
	.bj-status { font-size: 13px; padding: 5px 14px; border-width: 2px; box-shadow: 2px 2px 0 var(--bj-ink); white-space: normal; text-align: center; max-width: 100%; }
	.bj-card { filter: drop-shadow(3px 3px 0 #000); }
	.bj-total { left: auto; right: -16px; top: -14px; transform: none; min-width: 44px; height: 44px; border-radius: 22px; font-size: 20px; padding: 0 6px; border-width: 2px; z-index: 2; }

	.bj-player { display: flex; flex-direction: column; align-items: center; gap: 12px; }
	.bj-hands { order: 1; gap: 34px; }
	.bj-hands.is-split { --cw: 66px; }
	.bj-betspot { order: 2; margin: 0; display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "amt ring hint"; align-items: center; gap: 12px; width: 100%; }
	.bj-bet-amount { grid-area: amt; justify-self: end; font-size: 20px; min-height: 0; }
	.bj-bet-hint { grid-area: hint; justify-self: start; text-align: left; font-size: 8px; max-width: 90px; min-height: 0; }
	.bj-ring { grid-area: ring; width: 92px; height: 92px; }
	.bj-chip { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
	.bj-ring-empty { font-size: 11px; }
	.bj-spacer { display: none; }
	.bj-plate--you { margin-top: 0; }
	.bj-busted { font-size: 30px; padding: 8px 20px 11px; }
	.bj-tag { font-size: 11px; padding: 2px 9px; }

	.bj-win { transform: translateY(-50%) scale(.72); }
	.bj-spinner { width: 420px; height: 420px; margin: -210px 0 0 -210px; }
	.bj-bj-mark { width: 110px; height: 110px; }
	.bj-bj-title { font-size: 62px; text-shadow: 2px 2px 0 var(--bj-ink), -2px -2px 0 var(--bj-ink), 2px -2px 0 var(--bj-ink), -2px 2px 0 var(--bj-ink), 5px 5px 0 var(--bj-red); }
	.bj-bj-line { font-size: 15px; padding: 6px 14px; }
	.bj-burst { transform: scale(.65); }
	.bj-unlock-stage { transform: scale(.75); margin: -30px 0; }
	.bj-unlock-name { font-size: 36px; }
	.bj-ins { padding: 18px; }
	.bj-ins-title { font-size: 32px; }

	.bj-controls { margin-top: 14px; flex-direction: column; align-items: stretch; gap: 12px; }
	.bj-tray { padding: 10px 8px; gap: 0; justify-content: space-between; box-shadow: 4px 4px 0 #000; }
	.bj-tray { padding: 10px 4px; }
	.bj-tray-chip { width: 48px; }
	.bj-tray-art { width: 42px; height: 42px; }
	.bj-tray-label { font-size: 9px; }
	.bj-buttons { flex-wrap: nowrap; gap: 8px; }
	.bj-btn { flex: 1 1 0; min-width: 0; padding: 10px 4px; font-size: 15px; letter-spacing: .03em; }
	.bj-btn--big { font-size: 20px; padding: 10px 8px; }
	.bj-buttons .bj-btn--red.bj-btn--big { flex-grow: 1.3; }
}
