.pixel-bj-page{--bj-bg:#040b12;--bj-border:#bcae8a;--bj-bubble-bg:#0d1b24ed;--bj-bubble-ink:#d8dcd9;--bj-bubble-line:#a0b6b542;--bj-card-w:clamp(92px, 8.2vw, 134px);--bj-card-h:calc(var(--bj-card-w) * 1.5625);color:#f3ecd9;background:radial-gradient(circle at 50% 25%,#23496026,#0000 36%),linear-gradient(#050d16 0%,#031017 100%);min-height:100svh}.pixel-bj-page .system-topbar{box-shadow:none;background:#040b12f0;border-color:#192732}.pixel-bj-stage{flex-direction:column;justify-content:center;align-items:center;gap:clamp(.8rem,1.8vh,1.25rem);min-height:calc(100svh - 72px);padding:clamp(.5rem,1.6vw,1rem) clamp(.8rem,2vw,1.5rem) clamp(1rem,2vw,1.4rem);display:flex;position:relative;overflow:hidden}.pixel-bj-toprow{justify-content:center;align-items:center;width:min(100%,980px);display:flex}.pixel-bj-hand{min-height:var(--bj-card-h);justify-content:center;align-items:flex-end;width:min(100%,980px);display:flex}.pixel-bj-card-shell{margin-left:calc(var(--bj-card-w) * -.16);padding-top:var(--card-lift,0px);transform:rotate(var(--card-tilt,0deg));transform-origin:bottom;flex:none}.pixel-bj-card-shell:first-child{margin-left:0}.pixel-bj-card{background-color:#0000;background-image:var(--card-image);height:var(--bj-card-h);width:var(--bj-card-w);background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-radius:8px;display:block;box-shadow:0 8px 18px #00000040}.pixel-bj-card--back{background-color:#071621;background-image:url(/cards/stained-glass/back.svg);border:0;box-shadow:0 8px 18px #00000040}.pixel-bj-bubble{background:var(--bj-bubble-bg);border:1px solid var(--bj-bubble-line);color:var(--bj-bubble-ink);border-radius:13px;flex-direction:column;justify-content:center;align-items:center;gap:.23rem;width:fit-content;min-width:min(238px,86vw);max-width:min(90vw,445px);padding:.67rem 1.15rem .55rem;display:flex;position:relative;box-shadow:0 5px 20px #00000021}.pixel-bj-bubble:before,.pixel-bj-bubble:after{content:none}.pixel-bj-message{color:var(--bj-bubble-ink);font-family:var(--font-mono), monospace;text-align:center;text-wrap:balance;margin:0;font-size:clamp(.86rem,1.05vw,.96rem);font-weight:500;line-height:1.46}.pixel-bj-message[data-outcome=win],.pixel-bj-message[data-outcome=dealer-bust],.pixel-bj-message[data-outcome=blackjack]{color:#cfc4a1}.pixel-bj-message[data-outcome=lose],.pixel-bj-message[data-outcome=dealer-blackjack],.pixel-bj-message[data-outcome=bust]{color:#d5a1a6}.pixel-bj-actions{flex-wrap:wrap;justify-content:center;align-items:center;gap:.6rem;display:flex}.pixel-bj-action{appearance:none;color:#95a9a9;cursor:pointer;font-family:var(--font-mono), monospace;background:0 0;border:0;border-bottom:1px solid #0000;border-radius:0;min-width:44px;min-height:44px;padding:.2rem .35rem;font-size:.78rem;font-weight:500;line-height:1.35;transition:color .12s,border-color .12s}.pixel-bj-action:hover,.pixel-bj-action:focus-visible{color:#f1eee3;border-bottom-color:#b6c4bd}.pixel-bj-action:disabled{cursor:not-allowed;opacity:.4}@media (width<=820px){.pixel-bj-page{--bj-card-w:clamp(76px, min(24vw, 16svh), 110px);flex-direction:column;display:flex}.pixel-bj-page .system-topbar{flex:none}.pixel-bj-stage{min-height:0;padding:.5rem .5rem max(.85rem, env(safe-area-inset-bottom));flex:1 0 auto;justify-content:center;gap:clamp(.45rem,1.8svh,.8rem);position:relative;overflow:visible}.pixel-bj-toprow{min-height:calc(var(--bj-card-h) + 6px);width:100%}.pixel-bj-hand{min-width:0;min-height:var(--bj-card-h);width:100%}.pixel-bj-hand--dealer{z-index:1;position:relative}.pixel-bj-card-shell{margin-left:calc(var(--bj-card-w) * -.23)}.pixel-bj-hand:has(>.pixel-bj-card-shell:nth-child(4)) .pixel-bj-card-shell{margin-left:calc(var(--bj-card-w) * -.34)}.pixel-bj-hand:has(>.pixel-bj-card-shell:nth-child(5)) .pixel-bj-card-shell{margin-left:calc(var(--bj-card-w) * -.5)}.pixel-bj-bubble{max-width:min(91vw,425px);padding:.58rem .9rem .48rem}}@media (width<=460px){.pixel-bj-page{--bj-card-w:clamp(76px, min(25vw, 16svh), 106px)}.pixel-bj-bubble{border-radius:11px;max-width:min(93vw,350px)}.pixel-bj-actions{gap:.7rem}.pixel-bj-action{font-size:.79rem}}.pixel-bj-card{transform-origin:50%;backface-visibility:hidden;position:relative}.pixel-bj-actions{transition:opacity .12s}.pixel-bj-stage[data-busy=true] .pixel-bj-actions{opacity:.16;pointer-events:none}@media (prefers-reduced-motion:reduce){.pixel-bj-actions{transition:none}}.pixel-bj-particles{pointer-events:none;z-index:4;position:absolute;inset:0;overflow:hidden}.pixel-bj-particle{border-radius:var(--particle-radius,1px);image-rendering:pixelated;opacity:0;will-change:transform, opacity;position:absolute}.pixel-bj-particle--spades{box-shadow:0 0 0 1px #e8f4f824}.pixel-bj-particle--hearts{transform:rotate(45deg)}.pixel-bj-particle--clubs{box-shadow:0 0 0 1px #84b17329}.pixel-bj-particle--diamonds{transform:rotate(45deg)}.pixel-bj-card{will-change:transform, filter, opacity}.pixel-bj-hand{z-index:2;position:relative}.pixel-bj-bubble{z-index:3}@media (prefers-reduced-motion:reduce){.pixel-bj-particles{display:none}}.pixel-bj-toprow,.pixel-bj-bottomrow{flex-direction:column;align-items:center;gap:clamp(.15rem,.6vh,.4rem);width:min(100%,980px);display:flex}.pixel-bj-tally{--tally-ink:#a1b5bc;--tally-slash:#d4c5a1;color:var(--tally-ink);font-family:var(--font-mono), monospace;white-space:nowrap;justify-content:center;align-items:center;gap:.5rem;max-width:100%;min-height:30px;display:flex}.pixel-bj-tally--player{--tally-ink:#d4c5a1;--tally-slash:#e4ce92}.pixel-bj-tally-marks{justify-content:center;align-items:center;gap:4px;min-width:156px;min-height:30px;display:flex}.pixel-bj-tally-group{color:var(--tally-ink);flex:0 0 28px;width:28px;height:30px;overflow:visible}.pixel-bj-tally-stroke,.pixel-bj-tally-slash{fill:none;stroke-linecap:round;stroke-linejoin:round}.pixel-bj-tally-stroke{stroke:currentColor;stroke-width:2px}.pixel-bj-tally-slash{stroke:var(--tally-slash);stroke-width:2.25px}.pixel-bj-tally-total{color:var(--tally-ink);font-variant-numeric:tabular-nums;text-align:right;min-width:2ch;font-size:.76rem}.pixel-bj-tally-total[hidden]{display:none}.pixel-bj-tally-stroke.pixel-bj-tally-new{animation:.16s ease-out both pixel-bj-tally-appear}.pixel-bj-tally-slash.pixel-bj-tally-new{stroke-dasharray:30;animation:.24s ease-out both pixel-bj-tally-draw}@keyframes pixel-bj-tally-appear{0%{opacity:0}to{opacity:1}}@keyframes pixel-bj-tally-draw{0%{stroke-dashoffset:30px}to{stroke-dashoffset:0}}@media (width<=460px){.pixel-bj-tally{gap:.32rem}.pixel-bj-tally-marks{gap:3px;min-width:142px}.pixel-bj-tally-group{flex-basis:26px;width:26px;height:30px}}@media (prefers-reduced-motion:reduce){.pixel-bj-tally-new{animation:none!important}}.pixel-bj-hand[role=button] .pixel-bj-card-shell{cursor:pointer}.pixel-bj-hand[aria-disabled=true] .pixel-bj-card-shell{cursor:default}.pixel-bj-hand[role=button]:focus-visible{outline:none}.pixel-bj-hand[role=button]:focus-visible .pixel-bj-card-shell:last-child .pixel-bj-card{box-shadow:0 0 0 2px #d4c5a1,0 8px 18px #00000040}.pixel-bj-hand[data-hand-total]:after{color:#ddcfaf;content:attr(data-hand-total);font-family:var(--font-mono), monospace;font-variant-numeric:tabular-nums;left:var(--hand-total-left,calc(50% + var(--bj-card-w) * .98));pointer-events:none;text-align:center;white-space:nowrap;z-index:5;background:#091820f0;border:1px solid #91a7a96b;border-radius:4px;min-width:2ch;padding:.2rem .4rem;font-size:.84rem;line-height:1.4;position:absolute;top:50%;transform:translateY(-50%)}.pixel-bj-hand--dealer[data-hand-total]:after{color:#b0c8d2}
