.blackjack-game { gap:18px; }
.games-hub[data-active-game="blackjack"] .game-panel[hidden] { display:none!important; }
.blackjack-heading { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.blackjack-heading h2 { margin:0; font-size:28px; line-height:1.15; letter-spacing:-1px; }
.blackjack-eyebrow { margin:0 0 8px; color:var(--lavender); font-size:8px; font-weight:700; letter-spacing:1.4px; }
.blackjack-account { display:grid; gap:5px; text-align:end; }
.blackjack-account span { color:var(--muted); font-size:10px; }
.blackjack-account strong { color:var(--accent); font-size:26px; font-variant-numeric:tabular-nums; line-height:1.2; }
.blackjack-hint { margin:0; color:var(--muted); font-size:12px; line-height:1.5; }
.blackjack-table { position:relative; display:grid; gap:27px; width:100%; padding:23px 20px; overflow:hidden; border:1px solid #315a79; border-radius:22px; background:radial-gradient(ellipse at 50% 40%,#1596ff70,transparent 70%),linear-gradient(155deg,#102942,#0a1b2d 60%,#081624); box-shadow:inset 0 0 0 5px #02101a38; transition:border-color .2s,box-shadow .2s; }
.blackjack-table::before { content:'21'; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); color:#59c9ff0c; font-size:170px; font-weight:800; line-height:1; pointer-events:none; }
.blackjack-table.is-win { border-color:var(--positive); box-shadow:inset 0 0 0 5px #56e2a009,0 0 22px #56e2a012; }
.blackjack-table.is-loss { border-color:#ff537e70; }
.blackjack-hand { position:relative; min-width:0; }
.blackjack-hand-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; }
.blackjack-hand-heading h3 { margin:0; color:#bed7ef; font-size:10px; font-weight:700; letter-spacing:1.2px; text-transform:uppercase; }
.blackjack-total { display:flex; align-items:center; justify-content:center; min-width:34px; min-height:25px; padding:3px 8px; border:1px solid #59c9ff36; border-radius:8px; background:#071725b3; color:#c8e7ff; font-size:13px; font-weight:800; font-variant-numeric:tabular-nums; }
.blackjack-total.is-bust { border-color:#ff9c9c60; color:#ffb6b6; }
.blackjack-cards { position:relative; display:flex; align-items:center; justify-content:center; min-height:115px; padding:0; margin:0; list-style:none; direction:ltr; }
.blackjack-cards[data-many="true"] { flex-wrap:wrap; gap:8px; }
.blackjack-cards[data-many="true"] .blackjack-card { margin:0; }
.blackjack-card { position:relative; flex:0 0 78px; width:78px; height:110px; margin:0 -8px; border:1px solid #cfdeea; border-radius:11px; background:linear-gradient(140deg,#fbfdff,#dfe9f0); color:#101927; box-shadow:0 5px 13px #0004; transform:rotate(calc((var(--card-index) - 1) * 2deg)); animation:blackjack-deal .22s ease-out both; animation-delay:calc(var(--card-index) * .035s); }
.blackjack-card.is-red { color:#bd3452; }
.blackjack-card-corner { position:absolute; top:8px; left:8px; display:grid; gap:1px; justify-items:center; font-size:15px; line-height:1; }
.blackjack-card-corner strong { font-size:18px; }
.blackjack-card-suit { position:absolute; left:50%; top:54%; transform:translate(-50%,-50%); font-size:40px; line-height:1; }
.blackjack-card.is-facedown { border-color:#3978a7; background:repeating-linear-gradient(45deg,#123b5b,#123b5b 4px,#194b72 4px,#194b72 6px); box-shadow:inset 0 0 0 5px #081b2c,0 5px 13px #0004; }
.blackjack-card-back { position:absolute; inset:12px; display:flex; align-items:center; justify-content:center; border:1px solid #5a9ecb5c; border-radius:6px; color:#8baeff9c; font-size:40px; }
.blackjack-controls { display:grid; gap:12px; }
.blackjack-stake-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:12px; }
.blackjack-wager-label { display:grid; gap:7px; min-width:0; color:var(--ink); font-size:11px; font-weight:700; }
.blackjack-wager-label input { width:100%; min-width:0; min-height:46px; padding:11px 12px; border:1px solid #315575; border-radius:12px; background:var(--paper); color:var(--ink); font-size:17px; font-weight:600; }
.blackjack-wager-label input:disabled { opacity:.6; }
.blackjack-stake-shortcuts { display:flex; gap:5px; }
.blackjack-stake-shortcuts button { min-width:40px; min-height:46px; padding:8px; border:1px solid #315575; border-radius:10px; background:var(--paper); color:var(--lavender); font-size:11px; font-weight:700; }
.blackjack-stake-shortcuts button:disabled { opacity:.45; }
.blackjack-current-stake { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:0; color:var(--muted); font-size:11px; }
.blackjack-current-stake strong { color:var(--ink); font-weight:700; font-variant-numeric:tabular-nums; }
.blackjack-play-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.blackjack-play-actions button { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; min-width:0; min-height:62px; padding:10px 4px; border:1px solid #3994bf; border-radius:12px; background:#133d55; color:var(--accent); font-size:12px; font-weight:700; }
.blackjack-play-actions button:nth-child(2) { border-color:#5a86b8; background:#1b3652; color:var(--lavender); }
.blackjack-play-actions button:nth-child(3) { border-color:#4d81ae; background:#17334b; color:#b9e3ff; }
.blackjack-play-actions button:disabled { opacity:.42; cursor:default; }
.blackjack-action-symbol { font-size:19px; line-height:1; }
.blackjack-controls>.button { width:100%; min-height:46px; padding:12px; font-size:12px; }
.blackjack-result { min-height:36px; margin:0; color:var(--muted); font-size:13px; line-height:1.5; overflow-wrap:anywhere; }
.blackjack-result.is-win { color:var(--positive); }
.blackjack-result.is-loss,.blackjack-result.is-error { color:#ffb6b6; }
.blackjack-rules { margin:0; color:var(--muted); font-size:11px; line-height:1.7; }
.blackjack-game button:focus-visible,.blackjack-game input:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
@keyframes blackjack-deal { from { opacity:0; translate:18px -10px; } to { opacity:1; translate:0 0; } }
@media(max-width:600px) { .blackjack-game { gap:15px; } .blackjack-heading h2 { font-size:25px; } .blackjack-table { padding:19px 14px; gap:23px; } .blackjack-card { width:72px; height:102px; flex-basis:72px; } .blackjack-cards { min-height:107px; } .blackjack-account strong { font-size:22px; } }
@media(max-width:380px) { .blackjack-table { padding:16px 11px; } .blackjack-card { width:66px; height:96px; flex-basis:66px; margin:0 -11px; } .blackjack-cards { min-height:101px; } .blackjack-stake-row { gap:8px; } .blackjack-stake-shortcuts button { min-width:34px; padding:7px; } .blackjack-account span { font-size:9px; } .blackjack-heading h2 { font-size:23px; } }
@media(prefers-reduced-motion:reduce) { .blackjack-card { animation:none; } .blackjack-table { transition:none; } }
