*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at top,#12362d,#07110f 55%,#030706);color:#fff;font-family:Arial,"Noto Sans KR",sans-serif;min-height:100vh}header{height:66px;padding:0 22px;display:flex;align-items:center;justify-content:space-between;background:#070b0b;border-bottom:1px solid #96752e;position:sticky;top:0}header a{color:#ffd76d;text-decoration:none}header strong{font-size:22px}main{max-width:900px;margin:28px auto;padding:0 16px}.notice{padding:12px 15px;background:#231d0d;border:1px solid #7d682d;border-radius:12px;color:#f4dc99;margin-bottom:16px}.game-panel{background:linear-gradient(145deg,#0e4b38,#08271f);border:2px solid #a88836;border-radius:26px;padding:28px;box-shadow:0 24px 70px #0008;text-align:center}.dealer,.player{min-height:190px}.cards{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.card{width:82px;height:116px;border-radius:10px;background:#fff;color:#111;border:2px solid #ddd;display:flex;flex-direction:column;justify-content:space-between;padding:8px;font-size:21px;font-weight:800;box-shadow:0 7px 14px #0007}.card.red{color:#c7192d}.card.hidden{background:repeating-linear-gradient(45deg,#132b6c,#132b6c 8px,#e2c35b 8px,#e2c35b 11px);color:transparent}.result{font-size:22px;font-weight:800;color:#ffdc73;min-height:42px;margin:10px}.controls{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.controls input,.controls button,.pick-grid button{border:0;border-radius:12px;padding:13px 18px;font-size:16px}.controls input{width:150px;background:#f7f7f7}.controls button,.pick-grid button{background:#d9ad3e;color:#151009;font-weight:800;cursor:pointer}.controls button:disabled,.pick-grid button:disabled{opacity:.45}.pick-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;max-width:520px;margin:20px auto}.pick-grid button.selected{outline:3px solid #fff;background:#ffcf4b}.ball{width:150px;height:150px;border-radius:50%;background:radial-gradient(circle at 35% 25%,#ff7484,#b10d2d 58%,#51000f);display:grid;place-items:center;margin:25px auto;font-size:58px;font-weight:900;box-shadow:0 15px 35px #0008}@media(max-width:560px){header{padding:0 12px}header strong{font-size:17px}.game-panel{padding:18px}.card{width:62px;height:90px;font-size:17px}.dealer,.player{min-height:150px}.pick-grid{grid-template-columns:1fr 1fr}}#toast{position:fixed;left:50%;bottom:26px;transform:translateX(-50%);background:#111;padding:12px 18px;border-radius:10px;display:none}
.lotto-machine{width:min(430px,92vw);height:310px;margin:10px auto 18px;border:10px solid #b78d32;border-radius:48% 48% 42% 42%;position:relative;overflow:hidden;background:radial-gradient(circle at 50% 35%,#ffffff20,#091a17 68%);box-shadow:inset 0 0 35px #000,0 18px 35px #0008}.machine-center{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);z-index:3;background:#111c;border:2px solid #e5bd53;border-radius:50%;width:94px;height:94px;display:grid;place-items:center;font-weight:900;color:#ffd76d}.mixing-balls i{position:absolute;left:var(--x);top:var(--y);width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 35% 25%,#fff,#f6cd4b 40%,#9b5c06);color:#171008;font-style:normal;font-weight:900;box-shadow:0 3px 8px #0008;animation:floatBall var(--d) ease-in-out var(--delay) infinite alternate}.lotto-machine.mixing .mixing-balls i{animation:mixBall .55s linear infinite}.drawn-balls{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.drawn-balls span{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 35% 25%,#fff,#ffcf45 42%,#a76200);color:#171008;font-size:23px;font-weight:900;box-shadow:0 7px 14px #0008}.sum-box{margin:14px auto 4px;font-size:25px;font-weight:900;color:#fff0a6}@keyframes floatBall{to{transform:translate(22px,-20px) rotate(160deg)}}@keyframes mixBall{0%{transform:translate(-35px,20px) rotate(0)}25%{transform:translate(30px,-55px) rotate(90deg)}50%{transform:translate(50px,25px) rotate(180deg)}75%{transform:translate(-45px,-35px) rotate(270deg)}100%{transform:translate(-35px,20px) rotate(360deg)}}

/* ===== Mobile casino-style blackjack table ===== */
.blackjack-page{background:#101312;overflow-x:hidden}.blackjack-page .bj-topbar{height:58px;z-index:20;background:#080a0a;border-bottom:1px solid #3f493f;padding:0 14px}.bj-back{font-size:38px;line-height:1;color:#e8d58b!important}.bj-balance{font-size:13px;color:#d7d7d7}.blackjack-page .bj-stage{max-width:none;margin:0;padding:0;min-height:calc(100vh - 58px);display:flex;flex-direction:column}.bj-table{position:relative;flex:1;min-height:610px;overflow:hidden;background:radial-gradient(ellipse at 50% 30%,#25805a 0,#176142 36%,#0b3c2b 70%,#06291f 100%);border-bottom:9px solid #5f3b21;box-shadow:inset 0 0 90px #00190f, inset 0 -20px 45px #0008}.bj-table:after{content:"";position:absolute;left:-8%;right:-8%;bottom:-74px;height:150px;border-radius:50%;border:18px solid #7b4c28;background:linear-gradient(#52301a,#1d1009);box-shadow:0 -8px 22px #0008,inset 0 3px 6px #b57a45}.bj-chip-rack{position:absolute;top:15px;left:50%;transform:translateX(-50%);display:flex;gap:4px;padding:7px 10px;background:#4b2b18;border:3px solid #2d180d;border-radius:4px;box-shadow:0 7px 13px #0008}.bj-chip-rack i{width:27px;height:58px;border-radius:12px 12px 6px 6px;background:repeating-linear-gradient(0deg,#e9e9e9 0 3px,#d47518 3px 8px);border:2px solid #ffffff88;box-shadow:inset 0 -8px 5px #0005}.bj-chip-rack i:nth-child(2n){background:repeating-linear-gradient(0deg,#eee 0 3px,#4b5054 3px 8px)}.bj-chip-rack i:nth-child(3n){background:repeating-linear-gradient(0deg,#eee 0 3px,#d7469e 3px 8px)}.bj-chip-rack i:nth-child(4n){background:repeating-linear-gradient(0deg,#eee 0 3px,#cf2e1e 3px 8px)}.bj-dealer-zone{position:absolute;top:90px;left:0;right:0;text-align:center}.bj-player-zone{position:absolute;left:0;right:0;bottom:105px;text-align:center}.bj-name{font-weight:800;text-shadow:0 2px 4px #000;font-size:17px;margin:7px}.bj-cards{min-height:118px;align-items:center}.bj-center-copy{position:absolute;top:46%;left:50%;width:90%;transform:translate(-50%,-50%);text-align:center;color:#fff;text-shadow:0 2px 4px #000}.bj-center-copy .result{font-size:21px;margin-bottom:12px}.bj-logo{font-size:21px;font-weight:900;opacity:.2;margin-bottom:10px}.bj-rule{font-size:24px;font-weight:900;letter-spacing:2px;transform:rotate(-2deg)}.bj-rule.small{font-size:15px;margin-top:4px}.bj-insurance{display:inline-block;margin-top:8px;padding:4px 18px;border:3px solid #ffffffbb;font-size:18px;font-weight:900;transform:rotate(2deg)}.bj-bet-spot{position:absolute;left:50%;bottom:53px;transform:translateX(-50%);width:94px;height:94px;border:5px double #ffffff55;border-radius:50%;display:flex;flex-direction:column;justify-content:center;align-items:center;color:#fff;text-shadow:0 2px 3px #000;z-index:3}.bj-bet-spot span{font-size:11px}.bj-bet-spot b{font-size:15px;color:#ffe36a}.blackjack-page .card{width:70px;height:100px;border-radius:8px;position:relative;padding:5px;font-size:17px;box-shadow:0 8px 14px #0009}.blackjack-page .card-corner{position:absolute;left:6px;top:4px;display:flex;flex-direction:column;line-height:.9}.blackjack-page .card-corner small{font-size:12px}.blackjack-page .card-corner.bottom{left:auto;top:auto;right:6px;bottom:4px;transform:rotate(180deg)}.blackjack-page .card-suit{font-size:36px;align-self:center;margin:auto}.blackjack-page .card.hidden{display:grid;place-items:center;background:repeating-linear-gradient(45deg,#10244d 0 6px,#d5b354 6px 8px);border-color:#f0d77c}.card-back-mark{font-size:35px;color:#ecd56c;text-shadow:0 2px 5px #000}.bj-console{position:relative;background:linear-gradient(#271f1b,#0b0d0c);padding:12px 10px calc(12px + env(safe-area-inset-bottom));box-shadow:0 -10px 30px #000;z-index:10}.bj-chip-row{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:-42px;position:relative;z-index:15}.bet-chip{width:58px;height:58px;border-radius:50%;border:5px dashed #fff9;box-shadow:0 5px 9px #000b,inset 0 0 0 4px #0003;color:#fff;font-weight:900;cursor:pointer;transition:.18s transform,.18s filter}.bet-chip span{display:grid;place-items:center;width:100%;height:100%;border-radius:50%;border:2px solid #ffffff77;text-shadow:0 2px 3px #000}.bet-chip.selected{transform:translateY(-13px) scale(1.14);filter:brightness(1.25);outline:3px solid #f7dc70}.bet-chip:disabled{opacity:.45}.bet-chip.c1{background:#b46b20}.bet-chip.c2{background:#4c4b51}.bet-chip.c3{background:#c04b91}.bet-chip.c4{background:#c74727}.bet-chip.c5{background:#3c924c}.bet-chip.c6{background:#4b3528}.bj-action-row{display:flex;justify-content:center;align-items:center;gap:35px;margin:15px 0 8px}.round-action,.deal-button{border-radius:50%;color:#d9d9d9;background:linear-gradient(#3b3d3b,#121412);border:3px solid #d5b84a;box-shadow:0 5px 12px #000,inset 0 0 0 4px #111;font-weight:900;cursor:pointer}.round-action{width:64px;height:64px;font-size:25px}.deal-button{width:94px;height:94px;font-size:27px;border-width:6px;background:radial-gradient(circle,#484b47,#171918 70%)}.round-action:disabled,.deal-button:disabled{opacity:.45}.bj-play-actions{display:flex;gap:10px;justify-content:center}.bj-play-actions button{min-width:125px;padding:12px 22px;border:1px solid #d0b45a;border-radius:22px;background:linear-gradient(#33483f,#10231c);color:#fff;font-size:17px;font-weight:900}.bj-play-actions button:disabled{opacity:.38}.bj-bottom-info{display:flex;justify-content:space-between;gap:10px;font-size:12px;margin-top:10px;color:#ddd}.bj-bottom-info b{color:#ffe059}.blackjack-page #toast{z-index:100;background:#111e;border:1px solid #d8b94f;color:#fff}
@media(min-width:760px){.blackjack-page .bj-stage{max-width:520px;margin:0 auto;box-shadow:0 0 80px #000}.blackjack-page{background:#050807}.bj-table{min-height:680px}.bj-console{border-left:1px solid #634d22;border-right:1px solid #634d22}}
@media(max-width:420px){.bj-table{min-height:590px}.bj-center-copy .result{font-size:18px}.bj-rule{font-size:20px}.bj-insurance{font-size:15px}.blackjack-page .card{width:61px;height:88px}.bj-chip-row{gap:4px}.bet-chip{width:50px;height:50px;font-size:12px}.bj-action-row{gap:25px}.round-action{width:58px;height:58px}.deal-button{width:84px;height:84px}.bj-bottom-info{font-size:11px}}

/* V13.3 Powerball history */
.pb-history{margin-top:18px;padding:16px;border-radius:16px;background:rgba(7,13,24,.86);border:1px solid rgba(255,255,255,.12)}
.pb-history h2{margin:0 0 12px;font-size:18px;color:#fff}.pb-history-wrap{overflow-x:auto}
.pb-history table{width:100%;border-collapse:collapse;min-width:660px;color:#eef3ff;font-size:13px}
.pb-history th,.pb-history td{padding:9px 8px;text-align:center;border-bottom:1px solid rgba(255,255,255,.09);white-space:nowrap}
.pb-history th{color:#9fb4d8;background:rgba(255,255,255,.04)}
.pb-mini-balls{display:flex;justify-content:center;gap:4px}.pb-mini-balls i{display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;border-radius:50%;font-style:normal;font-weight:800;background:radial-gradient(circle at 35% 30%,#fff6a9,#f0b90b 65%,#7d4e00);color:#1b1600;box-shadow:inset -2px -3px 5px rgba(0,0,0,.28)}
.pb-badge{display:inline-block;padding:3px 8px;border-radius:999px;font-weight:800;background:rgba(255,255,255,.1)}
.pb-empty{padding:20px!important;color:#91a0bb}


/* V13.4 blackjack controls */
.bet-chip.c7{background:#183f76}
.bet-chip.chip-clicked{animation:chipPress .26s ease}
@keyframes chipPress{0%{transform:translateY(0) scale(1)}45%{transform:translateY(-18px) scale(1.18)}100%{transform:translateY(0) scale(1)}}
.bet-chip-stack{position:absolute;left:50%;top:2px;transform:translateX(-50%);width:60px;height:46px;pointer-events:none;z-index:-1}
.placed-chip{--chip-index:0;position:absolute;left:50%;bottom:calc(var(--chip-index) * 3px);transform:translateX(-50%);width:48px;height:16px;border-radius:50%;display:grid;place-items:center;background:repeating-linear-gradient(90deg,#f6d36a 0 5px,#2b2520 5px 8px);border:2px solid #fff9;color:#111;font-style:normal;font-size:8px;font-weight:900;box-shadow:0 2px 4px #0009;animation:chipLand .24s ease-out}
@keyframes chipLand{from{opacity:0;transform:translate(-50%,-65px) rotate(18deg) scale(.65)}to{opacity:1;transform:translate(-50%,0) rotate(0) scale(1)}}
.bj-bet-spot.has-chips,.bet-chip-stack.has-chips{filter:drop-shadow(0 0 7px #ffe36a88)}
.text-action{font-size:11px;letter-spacing:.3px}
.bj-action-row{gap:18px;flex-wrap:wrap}
@media(max-width:620px){.bj-chip-row{gap:3px}.bet-chip{width:46px;height:46px;font-size:11px}.bj-action-row{gap:10px}.round-action{width:55px;height:55px}.text-action{font-size:9px}}

.double-action{white-space:pre-line;font-size:13px;line-height:1.15;padding:4px}.double-action:not(:disabled){background:radial-gradient(circle,#6b5420,#1a1710 72%);box-shadow:0 0 0 3px #f4d56255,0 5px 12px #000,inset 0 0 0 4px #111}


/* ===== V17.4 Evolution blackjack redesign ===== */
.blackjack-evo-body{background:radial-gradient(circle at top,#0e3d30 0%,#071712 36%,#020403 100%);color:#fff;min-height:100vh;overflow-x:hidden}
.bj-evo-page{min-height:100vh;background:linear-gradient(180deg,rgba(0,0,0,.18),rgba(0,0,0,.42))}
.bj-evo-top{height:62px;padding:0 16px;display:flex;align-items:center;gap:14px;background:rgba(5,8,8,.86);backdrop-filter:blur(10px);border-bottom:1px solid rgba(212,176,88,.35);position:sticky;top:0;z-index:30}
.bj-evo-back{color:#f4d67b;text-decoration:none;font-size:38px;line-height:1}
.bj-evo-brand{display:flex;flex-direction:column;gap:2px}.bj-evo-brand b{font-size:20px;color:#fff}.bj-evo-brand span{font-size:12px;color:#afbaaf}
.bj-evo-balance{margin-left:auto;color:#c7bea1;font-size:13px}.bj-evo-balance strong{color:#f0cf67;font-size:18px;margin-left:6px}
.bj-evo-shell{display:grid;grid-template-columns:260px minmax(0,1fr) 280px;gap:18px;padding:18px}
.bj-side{background:linear-gradient(180deg,rgba(16,20,19,.92),rgba(8,10,10,.92));border:1px solid rgba(201,168,88,.22);border-radius:20px;padding:18px;box-shadow:0 22px 60px rgba(0,0,0,.35)}
.bj-side h3{margin:0 0 14px;color:#f1d37b}.bj-room-list{display:flex;flex-direction:column;gap:10px}.room{padding:12px 14px;border-radius:14px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);cursor:pointer}.room b{display:block;margin-bottom:4px}.room small{color:#9db0a2}.room:hover{border-color:rgba(240,207,103,.45);background:rgba(240,207,103,.08)}
.field.dark{width:100%;padding:12px 14px;border-radius:14px;border:1px solid rgba(255,255,255,.1);background:rgba(0,0,0,.3);color:#fff;margin-bottom:10px}
.btn{border:0;border-radius:14px;padding:12px 14px;font-weight:800;cursor:pointer}.btn.wide{width:100%}.btn.gold{background:linear-gradient(180deg,#e4c86f,#a77a1c);color:#14110b;box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 12px 24px rgba(0,0,0,.22)}.btn.darkbtn{background:#1d2321;color:#f2d47b;border:1px solid rgba(242,212,123,.18)}.btn.mixball.red,.launch-ball.red,.draw-result-ball.red,.pb-mini-balls i.red{background:#7f2828;color:#fff}
.bj-evo-stage{display:flex;flex-direction:column;gap:14px}.bj-evo-table-wrap{position:relative}.bj-evo-table{position:relative;min-height:860px;border-radius:36px 36px 44px 44px;background:radial-gradient(circle at center,#19814f 0%,#0f663f 24%,#0d5637 40%,#0b472f 58%,#073223 78%,#041d15 100%);box-shadow:inset 0 0 0 2px rgba(255,255,255,.05),inset 0 0 160px rgba(255,255,255,.09),0 40px 90px rgba(0,0,0,.5);overflow:hidden;border:1px solid rgba(255,255,255,.06)}
.bj-evo-table::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 38%,rgba(255,255,255,.12),transparent 27%),radial-gradient(circle at 18% 84%,rgba(255,255,255,.08),transparent 18%),radial-gradient(circle at 82% 84%,rgba(255,255,255,.08),transparent 18%);pointer-events:none}
.bj-chip-tray{position:absolute;left:50%;top:16px;transform:translateX(-50%);width:min(360px,72%);height:88px;background:linear-gradient(180deg,#794b28,#5c3218);border:2px solid rgba(40,19,9,.65);border-radius:3px;display:flex;gap:8px;justify-content:center;align-items:flex-end;padding:12px 10px 10px;z-index:5;box-shadow:0 8px 18px rgba(0,0,0,.32)}
.tray-slot{width:28px;height:66px;border-radius:999px;background:repeating-linear-gradient(180deg,rgba(255,255,255,.45) 0 4px,transparent 4px 8px),linear-gradient(180deg,#c79354,#6e3d19);box-shadow:inset 0 -16px 0 rgba(87,48,22,.8),0 2px 5px rgba(0,0,0,.3)}
.tray-slot.c2{filter:hue-rotate(160deg) saturate(.2)}.tray-slot.c3{filter:hue-rotate(278deg) saturate(1.2)}.tray-slot.c4{filter:hue-rotate(332deg) saturate(1.4)}.tray-slot.c5{filter:hue-rotate(84deg) saturate(1.3)}.tray-slot.c6{filter:hue-rotate(215deg) saturate(.1) brightness(.65)}.tray-slot.c7{filter:hue-rotate(355deg) saturate(1.1)}.tray-slot.c8{filter:hue-rotate(290deg) saturate(.6) brightness(1.15)}.tray-slot.c9{filter:hue-rotate(24deg) saturate(1)}
.bj-evo-center-copy{position:absolute;top:132px;left:50%;transform:translateX(-50%);width:min(560px,92%);text-align:center;color:rgba(255,255,255,.88);z-index:3}.bet-guide{font-size:22px;letter-spacing:-.02em;margin:0 0 6px}.evo-mark{font-size:21px;color:rgba(255,255,255,.22);font-weight:800;margin-bottom:14px}.rule-arc{display:flex;align-items:center;justify-content:center;height:86px;border:4px solid rgba(255,255,255,.72);border-left:0;border-right:0;font-size:23px;font-weight:900;letter-spacing:.08em}.rule-arc-top{border-radius:0 0 250px 250px;transform:rotate(-8deg);border-top:0;margin-bottom:6px}.rule-mid{font-size:20px;font-weight:700;letter-spacing:.01em;margin:6px 0 10px}.rule-arc-bottom{border-radius:250px 250px 0 0;transform:rotate(-6deg);border-bottom:0}
.dealer-zone{position:absolute;top:308px;left:50%;transform:translateX(-50%);text-align:center;z-index:6}.dealer-head{font-size:22px;font-weight:700;color:#fff;margin-bottom:10px;text-shadow:0 3px 9px rgba(0,0,0,.45)}
.cards{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.dealer-cards{min-height:122px}.card{width:72px;height:104px;border-radius:12px;background:#fff;color:#131313;border:1px solid #dfdfdf;display:flex;flex-direction:column;justify-content:space-between;padding:8px 9px;font-size:22px;font-weight:800;box-shadow:0 10px 20px rgba(0,0,0,.28)}.card.red{color:#c4262e}.card.hidden{background:repeating-linear-gradient(45deg,#10345a,#10345a 7px,#e7e7e7 7px,#e7e7e7 12px);color:transparent}
.bj-evo-notice{position:absolute;top:462px;left:50%;transform:translateX(-50%);padding:10px 18px;border-radius:999px;background:rgba(7,11,10,.4);border:1px solid rgba(255,255,255,.1);color:#ffe49d;font-weight:800;z-index:7;max-width:min(86%,480px);text-align:center;backdrop-filter:blur(6px)}
.bj-seat-ring{position:absolute;inset:auto 0 152px;display:block;height:360px;z-index:4}.bj-seat{position:absolute;width:160px;min-height:136px;padding:12px;border-radius:22px;background:rgba(4,17,14,.54);border:1px solid rgba(255,255,255,.12);backdrop-filter:blur(4px);box-shadow:0 10px 26px rgba(0,0,0,.22);text-align:center}.bj-seat.turn{border-color:#ffe07c;box-shadow:0 0 18px rgba(255,224,124,.45)}.bj-seat.me{background:rgba(18,63,51,.58)}
.bj-seat.p1{left:7%;bottom:116px}.bj-seat.p2{left:18%;bottom:54px}.bj-seat.p3{left:34%;bottom:12px}.bj-seat.p4{left:calc(50% - 80px);bottom:-2px}.bj-seat.p5{right:34%;bottom:12px}.bj-seat.p6{right:18%;bottom:54px}.bj-seat.p7{right:7%;bottom:116px}
.seat-top{display:flex;justify-content:space-between;gap:8px;font-size:12px;margin-bottom:6px}.name{font-weight:800;color:#fff}.status{color:#d4d0c3}.seat-bet,.seat-score,.result{font-size:12px}.seat-bet{color:#f3d36f}.seat-cards .card{width:46px;height:66px;font-size:14px;padding:5px 6px;border-radius:8px}.seat-cards{gap:5px;min-height:72px}.result{font-weight:800;color:#ffe17e;margin-top:4px}
.side-bet{position:absolute;width:84px;height:84px;border:3px solid rgba(255,255,255,.44);border-radius:50%;display:grid;place-items:center;color:rgba(255,255,255,.66);font-weight:800;z-index:3;text-align:center}.side-bet small{font-size:9px;letter-spacing:.2em;writing-mode:vertical-rl;text-orientation:mixed;position:absolute}.side-bet.left{left:22px;bottom:198px;transform:rotate(-64deg)}.side-bet.center{left:calc(50% - 42px);bottom:128px;transform:rotate(-90deg)}.side-bet.center small{left:-12px;top:19px}.side-bet.right{right:22px;bottom:198px;transform:rotate(64deg)}.side-bet.right small{right:-12px;top:19px}
.bj-wood-rail{position:absolute;left:0;right:0;bottom:84px;height:118px;background:radial-gradient(circle at 50% 0,#8b5a32,#62381e 54%,#2a140c 100%);border-top:2px solid rgba(255,225,147,.14);border-radius:0 0 80px 80px;display:flex;align-items:flex-start;justify-content:center;padding-top:16px;box-shadow:inset 0 18px 26px rgba(255,255,255,.08)}
.bj-chip-row{display:flex;align-items:center;gap:10px;justify-content:center;flex-wrap:wrap}.bet-chip{width:58px;height:58px;border-radius:50%;border:3px solid rgba(247,217,129,.42);font-weight:900;font-size:12px;color:#fff;display:grid;place-items:center;background:radial-gradient(circle at 35% 35%,rgba(255,255,255,.35),transparent 30%),repeating-linear-gradient(45deg,rgba(255,255,255,.58) 0 4px,transparent 4px 8px),#b98446;box-shadow:0 7px 14px rgba(0,0,0,.25);cursor:pointer}.bet-chip.c2{background:radial-gradient(circle at 35% 35%,rgba(255,255,255,.35),transparent 30%),repeating-linear-gradient(45deg,rgba(255,255,255,.5) 0 4px,transparent 4px 8px),#7d6f63}.bet-chip.c3{background:radial-gradient(circle at 35% 35%,rgba(255,255,255,.35),transparent 30%),repeating-linear-gradient(45deg,rgba(255,255,255,.55) 0 4px,transparent 4px 8px),#b76da8}.bet-chip.c4{background:radial-gradient(circle at 35% 35%,rgba(255,255,255,.35),transparent 30%),repeating-linear-gradient(45deg,rgba(255,255,255,.55) 0 4px,transparent 4px 8px),#af4828}.bet-chip.c5{background:radial-gradient(circle at 35% 35%,rgba(255,255,255,.35),transparent 30%),repeating-linear-gradient(45deg,rgba(255,255,255,.55) 0 4px,transparent 4px 8px),#4b9349}.bet-chip.c6{background:radial-gradient(circle at 35% 35%,rgba(255,255,255,.28),transparent 30%),repeating-linear-gradient(45deg,rgba(255,255,255,.38) 0 4px,transparent 4px 8px),#3f372f}.bet-chip.active{transform:translateY(-4px) scale(1.06);box-shadow:0 0 0 3px rgba(255,217,121,.35),0 10px 22px rgba(0,0,0,.32)}.bet-chip.chip-clicked{animation:chipPress .24s ease}@keyframes chipPress{0%{transform:translateY(0) scale(1)}45%{transform:translateY(-12px) scale(1.12)}100%{transform:translateY(-4px) scale(1.06)}}
.bj-bottom-actions{position:absolute;left:0;right:0;bottom:20px;display:flex;justify-content:space-evenly;align-items:center;padding:0 18px;z-index:8}.round-action{width:78px;height:78px;border-radius:50%;border:3px solid rgba(234,201,105,.82);background:rgba(18,20,22,.9);color:#fff;font-size:32px;display:grid;place-items:center;box-shadow:0 10px 26px rgba(0,0,0,.3);cursor:pointer}.round-action.main{width:92px;height:92px;font-size:24px;background:linear-gradient(180deg,#4a473f,#191919)}.round-action.menu{font-size:36px}
.bj-bank-strip{position:absolute;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:14px 16px 18px;background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.6) 30%,rgba(0,0,0,.9));z-index:6}.bj-bank-strip span{display:block;font-size:13px;color:#f0f1e5}.bj-bank-strip strong{font-size:18px;color:#f0cf67}
.bj-inline-panel{display:grid;grid-template-columns:240px 1fr;gap:12px}.bj-bet-box,.bj-inline-actions{background:rgba(8,10,10,.82);border:1px solid rgba(212,176,88,.18);border-radius:18px;padding:14px}.bj-bet-box label{display:block;margin-bottom:8px;color:#d9d3bf;font-size:13px}.bj-inline-actions{display:flex;gap:10px;flex-wrap:wrap}.chatlog{height:460px;overflow:auto;background:rgba(0,0,0,.28);border-radius:16px;padding:10px;border:1px solid rgba(255,255,255,.06)}.chatline{margin-bottom:7px;color:#dfe7dd}.chatline b{color:#f3d67a}.row{display:flex;gap:8px;margin-top:10px}.bj-side-tip{margin-top:12px;font-size:12px;color:#9fb0a5;line-height:1.6}
#toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:rgba(0,0,0,.84);color:#fff;padding:12px 18px;border-radius:999px;border:1px solid rgba(255,219,115,.28);display:none;z-index:90}
@media(max-width:1200px){.bj-evo-shell{grid-template-columns:1fr}.bj-side-left,.bj-side-right{order:2}.bj-evo-stage{order:1}.bj-evo-table{min-height:790px}}
@media(max-width:760px){.bj-evo-top{height:56px;padding:0 12px}.bj-evo-balance{font-size:11px}.bj-evo-shell{padding:0;gap:0}.bj-side{border-radius:0;border-left:0;border-right:0;padding:14px 12px}.bj-side-left,.bj-side-right{display:none}.bj-evo-table{min-height:900px;border-radius:0}.bj-chip-tray{top:10px;width:280px;height:74px}.tray-slot{width:22px;height:54px}.bj-evo-center-copy{top:102px}.bet-guide{font-size:18px}.evo-mark{font-size:18px}.rule-arc{height:68px;font-size:16px;border-width:3px}.rule-mid{font-size:15px}.dealer-zone{top:250px}.card{width:58px;height:84px;font-size:18px}.bj-evo-notice{top:392px;font-size:13px;padding:8px 14px}.bj-seat-ring{inset:auto 0 126px;height:330px}.bj-seat{width:112px;min-height:116px;padding:8px;border-radius:18px}.bj-seat.p1{left:2%;bottom:116px}.bj-seat.p2{left:6%;bottom:50px}.bj-seat.p3{left:20%;bottom:4px}.bj-seat.p4{left:calc(50% - 56px);bottom:-10px}.bj-seat.p5{right:20%;bottom:4px}.bj-seat.p6{right:6%;bottom:50px}.bj-seat.p7{right:2%;bottom:116px}.seat-top,.seat-bet,.seat-score,.result{font-size:10px}.seat-cards .card{width:34px;height:48px;font-size:10px;padding:4px}.side-bet{width:64px;height:64px;font-size:14px;bottom:220px}.side-bet.left{left:-4px}.side-bet.right{right:-4px}.side-bet.center{bottom:138px}.bj-wood-rail{height:106px;bottom:94px;padding-top:12px}.bj-chip-row{gap:7px}.bet-chip{width:46px;height:46px;font-size:10px}.bj-bottom-actions{bottom:24px;padding:0 10px}.round-action{width:66px;height:66px;font-size:26px}.round-action.main{width:82px;height:82px;font-size:20px}.bj-bank-strip{grid-template-columns:1fr 1fr;row-gap:4px;padding:12px 12px 14px}.bj-bank-strip div:last-child{grid-column:1/-1;text-align:center}.bj-bank-strip strong{font-size:16px}.bj-inline-panel{grid-template-columns:1fr;gap:10px;padding:12px}.bj-inline-actions{justify-content:center}}


/* ===== V17.5 blackjack card dealing animation ===== */
.dealer-cards,.seat-cards{perspective:1200px;transform-style:preserve-3d}
.deal-anim{opacity:0;transform-origin:50% 100%;animation:dealFromShoe .88s cubic-bezier(.16,.84,.24,1) forwards;animation-delay:calc(var(--deal-index,0) * .16s);will-change:transform,opacity,filter}
.card.deal-anim,.card.hidden.deal-anim{backface-visibility:hidden}
@keyframes dealFromShoe{0%{opacity:0;transform:translate3d(0,-92px,0) scale(.58) rotateX(78deg) rotateY(-20deg) rotate(var(--deal-rotate,8deg));filter:blur(5px);box-shadow:0 18px 34px rgba(0,0,0,.42)}35%{opacity:1;transform:translate3d(0,-46px,22px) scale(.78) rotateX(42deg) rotateY(-8deg) rotate(calc(var(--deal-rotate,8deg) * .55));filter:blur(1.8px)}68%{opacity:1;transform:translate3d(0,8px,0) scale(1.03) rotateX(-8deg) rotateY(2deg) rotate(calc(var(--deal-rotate,8deg) * -.25));filter:blur(0)}100%{opacity:1;transform:translate3d(0,0,0) scale(1) rotateX(0) rotateY(0) rotate(0deg);filter:blur(0);box-shadow:0 10px 20px rgba(0,0,0,.28)}}
@media (prefers-reduced-motion: reduce){.deal-anim{animation:none;opacity:1;transform:none;filter:none}}


/* ===== V17.7 wide solo blackjack ===== */
.bj-solo-page{min-height:100vh;background:radial-gradient(circle at 50% 0,rgba(30,95,68,.18),transparent 36%),linear-gradient(180deg,rgba(0,0,0,.16),rgba(0,0,0,.42))}
.bj-solo-main{padding:0 0 18px}.bj-solo-stage{max-width:none;width:100%;padding:0 10px 18px}.bj-solo-table{min-height:calc(100vh - 208px);border-radius:0 0 42px 42px}.bj-solo-stage .bj-evo-table-wrap{width:min(100vw,900px);margin:0 auto}.bj-solo-controls{width:min(100vw,900px);margin:0 auto}.bj-seat-solo .bj-seat.solo{width:220px;left:calc(50% - 110px);bottom:2px;min-height:164px}.bj-seat-solo .seat-cards .card{width:58px;height:82px;font-size:16px}.bj-seat-solo .seat-top,.bj-seat-solo .seat-bet,.bj-seat-solo .seat-score,.bj-seat-solo .result{font-size:14px}.bj-solo-top{border-bottom-color:rgba(212,176,88,.22)}
@media(max-width:760px){.bj-solo-main{padding:0}.bj-solo-stage{padding:0}.bj-solo-stage .bj-evo-table-wrap,.bj-solo-controls{width:100%}.bj-solo-table{min-height:calc(100vh - 170px);border-radius:0}.bj-seat-solo .bj-seat.solo{width:140px;left:calc(50% - 70px);bottom:-8px;min-height:120px}.bj-seat-solo .seat-cards .card{width:40px;height:58px;font-size:12px}}

/* ===== V17.7 powerball lotto rolling machine ===== */
.lotto-machine{position:relative;overflow:hidden}.lotto-machine.mixing #mixingBalls{animation:chamberSpin 1.2s linear infinite}.mixball{position:absolute;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-weight:800;color:#20341b;background:radial-gradient(circle at 35% 30%,#fff,#f1df66 55%,#c99912 100%);box-shadow:0 4px 10px rgba(0,0,0,.22);animation:floatBall 1.8s ease-in-out infinite alternate}.draw-lane{position:absolute;right:-10px;top:50%;width:120px;height:18px;border-radius:999px;background:linear-gradient(90deg,rgba(255,255,255,.08),rgba(255,255,255,.45),rgba(255,255,255,.08));transform:translateY(-50%) rotate(-14deg);box-shadow:0 0 18px rgba(255,255,255,.14)}.launch-ball{position:absolute;left:18%;bottom:24%;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font-weight:900;color:#243617;background:radial-gradient(circle at 35% 30%,#fff,#ffd85a 55%,#d89e0a 100%);box-shadow:0 8px 16px rgba(0,0,0,.28);transition:transform 1.35s cubic-bezier(.16,.84,.24,1),left 1.35s cubic-bezier(.16,.84,.24,1),bottom 1.35s cubic-bezier(.16,.84,.24,1),opacity .3s ease}.launch-ball.go{left:78%;bottom:61%;transform:translateX(0) rotate(540deg) scale(.92)}.draw-result-ball{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;font-style:normal;font-weight:900;background:radial-gradient(circle at 35% 30%,#fff,#ffd85a 55%,#c78e08 100%);color:#263515;box-shadow:0 8px 18px rgba(0,0,0,.25);transform:scale(1);transition:transform .35s ease,opacity .35s ease}.draw-result-ball.pending{opacity:.35;background:rgba(255,255,255,.18);color:transparent}.draw-result-ball.revealed{animation:popBall .45s ease}.pb-mini-balls,#drawnBalls{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}@keyframes chamberSpin{from{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes floatBall{from{transform:translate3d(0,0,0) scale(.94)}to{transform:translate3d(10px,-14px,0) scale(1.02)}}@keyframes popBall{0%{transform:scale(.5);opacity:.2}70%{transform:scale(1.15);opacity:1}100%{transform:scale(1)}}

/* ===== V18 Royal Casino Blackjack ===== */
.blackjack-evo-body{background:#050807;color:#f7f1df;font-family:Inter,Pretendard,system-ui,sans-serif}
.bj-solo-page{background:radial-gradient(circle at 50% -15%,rgba(173,132,48,.2),transparent 30%),linear-gradient(180deg,#070b09,#020403)}
.bj-evo-top{background:linear-gradient(180deg,rgba(21,24,20,.98),rgba(5,8,6,.96));border-bottom:1px solid rgba(231,197,100,.35);box-shadow:0 10px 35px rgba(0,0,0,.45)}
.bj-evo-brand b{letter-spacing:.18em;color:#f2d67e;text-shadow:0 0 18px rgba(242,214,126,.22)}
.bj-evo-table{background:radial-gradient(ellipse at 50% 38%,#16704c 0,#0b563b 42%,#063b2b 72%,#03281f 100%);border:1px solid rgba(255,226,142,.32);box-shadow:inset 0 0 90px rgba(0,0,0,.55),inset 0 -30px 70px rgba(0,0,0,.45),0 28px 60px rgba(0,0,0,.55)}
.bj-evo-table:before{content:"";position:absolute;inset:10px;border:1px solid rgba(255,255,255,.06);border-radius:inherit;pointer-events:none}
.bj-chip-tray{filter:drop-shadow(0 14px 16px rgba(0,0,0,.5))}
.bj-wood-rail{background:linear-gradient(180deg,#6d3b1e,#351b0e 48%,#1a0d08);border-top:2px solid rgba(244,205,112,.4);box-shadow:inset 0 10px 18px rgba(255,255,255,.07),0 -10px 30px rgba(0,0,0,.5)}
.bj-evo-center-copy{opacity:.9;text-shadow:0 3px 8px rgba(0,0,0,.28)}
.evo-mark{color:rgba(237,221,174,.5);letter-spacing:.08em}
.rule-arc,.rule-mid{color:rgba(242,242,225,.9)}
.bj-evo-notice{background:rgba(3,18,13,.72);border:1px solid rgba(245,210,111,.35);backdrop-filter:blur(10px);box-shadow:0 10px 26px rgba(0,0,0,.28)}
.bj-seat{background:linear-gradient(180deg,rgba(17,25,20,.92),rgba(4,10,7,.94));border:1px solid rgba(236,202,105,.36);box-shadow:0 16px 34px rgba(0,0,0,.42),inset 0 1px rgba(255,255,255,.05)}
.bj-seat.turn{box-shadow:0 0 0 2px rgba(246,211,104,.5),0 0 35px rgba(246,211,104,.22),0 16px 34px rgba(0,0,0,.5)}
.bj-seat .name{color:#f4dc91;letter-spacing:.06em}
.round-action{transition:transform .2s ease,box-shadow .2s ease;background:radial-gradient(circle at 40% 25%,#42443e,#111411 64%,#050605);box-shadow:inset 0 0 0 4px rgba(0,0,0,.4),0 12px 28px rgba(0,0,0,.48)}
.round-action:hover:not(:disabled){transform:translateY(-3px);box-shadow:inset 0 0 0 4px rgba(0,0,0,.4),0 16px 35px rgba(0,0,0,.58),0 0 22px rgba(236,201,96,.18)}
.round-action:disabled{opacity:.45;cursor:not-allowed}
.round-action.main{color:#f6dd8d;text-transform:uppercase;letter-spacing:.08em}
.bj-bank-strip{backdrop-filter:blur(8px)}

.card{padding:0;background:transparent!important;border:0!important;overflow:visible;perspective:1400px;box-shadow:none!important}
.card-inner{position:relative;width:100%;height:100%;transform-style:preserve-3d;border-radius:9px;box-shadow:0 10px 22px rgba(0,0,0,.4)}
.card-face{position:absolute;inset:0;border-radius:9px;backface-visibility:hidden;-webkit-backface-visibility:hidden;display:flex;flex-direction:column;justify-content:space-between;padding:8px;border:1px solid rgba(0,0,0,.18)}
.card-front{background:linear-gradient(145deg,#fffef8,#e9e6db);color:#111;transform:rotateY(0deg)}
.card.red .card-front{color:#bd1820}
.card-back{transform:rotateY(180deg);background:repeating-linear-gradient(45deg,#8d101b 0 5px,#e6d4a1 5px 7px,#201008 7px 12px);border:4px solid #f1e2b6;box-shadow:inset 0 0 0 2px #87121b}
.card.hidden .card-inner{transform:rotateY(180deg)}
.card-draw-new{opacity:0;position:relative;z-index:5;animation:royalCardDraw 1.25s cubic-bezier(.12,.72,.16,1) var(--card-delay,0s) forwards}
.card-draw-new .card-inner{animation:royalCardTurn 1.25s cubic-bezier(.12,.72,.16,1) var(--card-delay,0s) both}
.card.hidden.card-draw-new .card-inner{animation:royalHiddenDraw 1.25s cubic-bezier(.12,.72,.16,1) var(--card-delay,0s) both}
@keyframes royalCardDraw{0%{opacity:0;transform:translate3d(160px,-230px,80px) rotate(18deg) scale(.55);filter:blur(3px)}18%{opacity:1}58%{transform:translate3d(20px,-30px,35px) rotate(-4deg) scale(1.05);filter:blur(0)}78%{transform:translate3d(-5px,7px,8px) rotate(1deg) scale(.99)}100%{opacity:1;transform:translate3d(0,0,0) rotate(0) scale(1);filter:none}}
@keyframes royalCardTurn{0%,38%{transform:rotateY(180deg) rotateX(16deg)}72%{transform:rotateY(-12deg) rotateX(-3deg)}88%{transform:rotateY(4deg)}100%{transform:rotateY(0deg) rotateX(0)}}
@keyframes royalHiddenDraw{0%,100%{transform:rotateY(180deg)}55%{transform:rotateY(190deg) rotateX(-5deg)}}
@media(prefers-reduced-motion:reduce){.card-draw-new,.card-draw-new .card-inner{animation:none!important;opacity:1!important;transform:none!important}.card.hidden .card-inner{transform:rotateY(180deg)!important}}

/* ===== V18 Lotto machine ===== */
.lotto-machine{background:radial-gradient(circle at 50% 38%,rgba(255,255,255,.14),rgba(12,24,38,.9) 70%);border:1px solid rgba(255,221,131,.32);box-shadow:inset 0 0 55px rgba(255,255,255,.08),0 20px 45px rgba(0,0,0,.35)}
.machine-center{z-index:3;text-align:center;line-height:1.05;color:#f5d981;text-shadow:0 0 18px rgba(245,217,129,.4)}
.machine-center small{font-size:.5em;letter-spacing:.18em}
.mixball,.launch-ball,.draw-result-ball,.pb-mini-balls i{color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.45);border:2px solid rgba(255,255,255,.65)}
.mixball.yellow,.launch-ball.yellow,.draw-result-ball.yellow,.pb-mini-balls i.yellow{background:radial-gradient(circle at 34% 28%,#fff7b2,#eebc24 55%,#a66c00 100%)!important}
.mixball.blue,.launch-ball.blue,.draw-result-ball.blue,.pb-mini-balls i.blue{background:radial-gradient(circle at 34% 28%,#bde8ff,#278dd1 55%,#075184 100%)!important}
.mixball.red,.launch-ball.red,.draw-result-ball.red,.pb-mini-balls i.red{background:radial-gradient(circle at 34% 28%,#ffc7c7,#dc4b50 55%,#8d1620 100%)!important}
.mixball.gray,.launch-ball.gray,.draw-result-ball.gray,.pb-mini-balls i.gray{background:radial-gradient(circle at 34% 28%,#fff,#929aa5 55%,#464d56 100%)!important}
.mixball.green,.launch-ball.green,.draw-result-ball.green,.pb-mini-balls i.green{background:radial-gradient(circle at 34% 28%,#d5ffd5,#48a85a 55%,#17692b 100%)!important}
.draw-result-ball.bonus-slot{margin-left:18px;position:relative}
.draw-result-ball.bonus-slot:before{content:"+";position:absolute;left:-19px;color:#f1d175;font-size:25px}
.draw-result-ball[data-label]:after{content:attr(data-label);position:absolute;top:52px;font-size:9px;letter-spacing:.08em;color:#d5bd76}
.pb-mini-balls i.bonus{outline:2px solid #f5d46f;outline-offset:2px}

/* ===== V21 three-hand direct blackjack ===== */
.bj-three-table{min-height:860px}
.bj-bet-zones{position:absolute;left:50%;bottom:205px;transform:translateX(-50%);width:min(92%,720px);display:grid;grid-template-columns:repeat(3,1fr);gap:24px;z-index:7}
.bj-bet-zone{position:relative;min-height:104px;border-radius:50%;border:4px solid rgba(231,239,224,.52);background:radial-gradient(circle,rgba(18,103,71,.42),rgba(3,46,31,.18));color:#fff;cursor:pointer;box-shadow:inset 0 0 0 2px rgba(255,255,255,.06),0 8px 20px rgba(0,0,0,.18);transition:.2s ease}
.bj-bet-zone:hover:not(:disabled),.bj-bet-zone.active{border-color:#f5d56e;box-shadow:0 0 0 4px rgba(245,213,110,.2),0 0 28px rgba(245,213,110,.24),inset 0 0 22px rgba(255,255,255,.08);transform:translateY(-3px)}
.bj-bet-zone:disabled{cursor:default;opacity:.72}.zone-title{display:block;font-size:13px;letter-spacing:.14em;color:#dce9dd}.bj-bet-zone strong{display:block;margin-top:40px;color:#ffe188;font-size:15px}
.zone-chips{position:absolute;left:50%;top:38px;transform:translateX(-50%);width:70px;height:34px}.mini-chip{position:absolute;left:22px;top:calc(var(--stack) * -3px);width:30px;height:30px;border-radius:50%;border:3px dashed rgba(255,255,255,.75);background:#a83c26;box-shadow:0 4px 7px rgba(0,0,0,.35)}.mini-chip:nth-child(2n){left:12px}.mini-chip:nth-child(3n){left:32px}.mini-chip.chip-1000{background:#b87a35}.mini-chip.chip-2000{background:#726960}.mini-chip.chip-4000{background:#a65f98}.mini-chip.chip-10000{background:#aa3b25}.mini-chip.chip-50000{background:#438740}.mini-chip.chip-200000{background:#302b27}
.bj-three-hands{position:absolute;left:50%;bottom:315px;transform:translateX(-50%);width:min(96%,790px);display:grid;grid-template-columns:repeat(3,1fr);gap:12px;z-index:8;pointer-events:none}.bj-hand-slot{min-height:145px;text-align:center;padding:8px;border-radius:18px;background:rgba(4,20,14,.18);border:1px solid transparent}.bj-hand-slot.active-hand{background:rgba(4,22,15,.72);border-color:#f4d066;box-shadow:0 0 24px rgba(244,208,102,.25)}.hand-label{font-size:11px;color:#e7d58f;letter-spacing:.14em}.hand-cards{gap:4px;flex-wrap:nowrap;margin-top:5px}.hand-cards .card{width:52px;height:75px;font-size:14px}.hand-meta{display:flex;justify-content:center;gap:8px;font-size:12px;margin-top:5px}.hand-meta b{color:#fff}.hand-meta span{color:#e6cb79}.hand-result{min-height:16px;font-size:11px;color:#ffe17e;font-weight:800}
.bj-play-actions{position:absolute;left:50%;bottom:115px;transform:translateX(-50%);display:flex;gap:18px;z-index:12;transition:.2s}.bj-play-actions.hidden-actions{opacity:0;pointer-events:none;transform:translate(-50%,15px)}.play-box{width:150px;height:58px;border:0;border-radius:12px;color:#fff;font-size:21px;font-weight:900;letter-spacing:.08em;box-shadow:0 10px 24px rgba(0,0,0,.36);cursor:pointer}.play-box.hit{background:linear-gradient(180deg,#28a45f,#0d703c);border:2px solid #70dca0}.play-box.stand{background:linear-gradient(180deg,#d74747,#8b1515);border:2px solid #ff8d8d}.play-box:disabled{opacity:.45}
.bj-three-table .bj-evo-notice{top:445px}.bj-three-table .dealer-zone{top:285px}.bj-three-table+.bj-wood-rail{z-index:10}
@media(max-width:760px){.bj-three-table{min-height:900px}.bj-bet-zones{bottom:190px;gap:8px;width:96%}.bj-bet-zone{min-height:82px;border-width:3px}.bj-bet-zone strong{font-size:11px;margin-top:35px}.zone-title{font-size:10px}.bj-three-hands{bottom:285px;gap:4px}.bj-hand-slot{min-height:120px;padding:4px}.hand-cards .card{width:38px;height:56px;font-size:11px}.bj-three-table .dealer-zone{top:245px}.bj-three-table .bj-evo-notice{top:380px}.bj-play-actions{bottom:105px;gap:10px}.play-box{width:112px;height:50px;font-size:18px}.mini-chip{width:25px;height:25px}.zone-chips{top:31px}.bj-bottom-actions{bottom:22px}.bj-wood-rail{bottom:90px}}

/* ===== V21.1 blackjack layout refinement ===== */
/* 딜러 카드를 상단 칩 트레이 바로 아래에 배치 */
.bj-three-table .dealer-zone{
  top:118px;
  width:100%;
}
.bj-three-table .dealer-head{
  margin-bottom:6px;
}

/* 하단 갈색 우드 바 제거 — 칩만 테이블 위에 표시 */
.bj-three-table + .bj-wood-rail{
  bottom:88px;
  height:84px;
  padding-top:8px;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  pointer-events:none;
}
.bj-three-table + .bj-wood-rail .bj-chip-row{
  gap:28px;
  flex-wrap:nowrap;
  pointer-events:auto;
}

@media(max-width:760px){
  .bj-three-table .dealer-zone{top:96px}
  .bj-three-table + .bj-wood-rail{
    bottom:88px;
    height:72px;
    padding-top:6px;
  }
  .bj-three-table + .bj-wood-rail .bj-chip-row{gap:14px}
}

@media(max-width:480px){
  .bj-three-table + .bj-wood-rail .bj-chip-row{gap:9px}
}


/* ===== V22 clean blackjack layout ===== */
.blackjack-evo-body{background:#03100c;overflow-x:hidden}
.bj-solo-page{min-height:100vh}
.bj-solo-top{height:72px;padding:0 22px;background:rgba(2,10,8,.96);border-bottom:1px solid rgba(239,206,111,.22)}
.bj-top-hud{margin-left:auto;display:flex;align-items:center;gap:8px}
.bj-top-hud>div{min-width:118px;padding:8px 12px;border-radius:12px;background:rgba(255,255,255,.045);border:1px solid rgba(239,206,111,.16);display:flex;flex-direction:column;gap:2px}
.bj-top-hud span{font-size:10px;color:#9da8a1;letter-spacing:.04em}.bj-top-hud strong{font-size:13px;color:#f0d17b;white-space:nowrap}
.bj-solo-top .bj-evo-balance{display:none}
.bj-solo-main{max-width:1100px;margin:0 auto;padding:14px}
.bj-evo-table-wrap{max-width:1040px;margin:0 auto}
.bj-three-table{min-height:820px;border-radius:28px;background:radial-gradient(circle at 50% 22%,#176c49 0,#0b4b34 42%,#052b20 78%,#021712 100%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.05),inset 0 0 90px rgba(0,0,0,.28),0 28px 60px rgba(0,0,0,.38)}
.bj-three-table:before{inset:12px;border-color:rgba(241,213,132,.08)}
.bj-chip-tray{top:18px;width:min(330px,62%);height:74px;border-radius:10px;background:linear-gradient(180deg,#5a321c,#30190d);opacity:.9}
.tray-slot{height:52px;width:24px}
.bj-evo-center-copy{top:114px;opacity:.34;pointer-events:none}.bet-guide{display:none}.evo-mark{font-size:16px;margin-bottom:4px}.rule-arc{height:56px;font-size:17px;border-width:2px}.rule-mid{font-size:14px;margin:0}.rule-arc-bottom{display:none}
.bj-three-table .dealer-zone{top:180px}.dealer-head{font-size:15px;margin-bottom:6px;color:#e8d99e}.dealer-cards{min-height:105px}.card{width:64px;height:92px;font-size:18px;border-radius:9px}
.bj-three-table .bj-evo-notice{top:300px;font-size:13px;padding:8px 14px;background:rgba(1,13,9,.72)}
.bj-three-hands{bottom:310px;width:min(92%,820px);gap:18px}.bj-hand-slot{min-height:136px;background:rgba(2,24,16,.46);border:1px solid rgba(255,255,255,.05)}
.bj-bet-zones{bottom:190px;width:min(90%,790px);gap:28px}.bj-bet-zone{min-height:98px;border-width:2px;background:rgba(9,69,47,.35)}
.bj-three-table+.bj-wood-rail{bottom:103px;height:72px;padding:0;background:transparent!important;border:0!important;box-shadow:none!important}
.bj-three-table+.bj-wood-rail .bj-chip-row{gap:34px;flex-wrap:nowrap}.bet-chip{width:56px;height:56px;border-width:2px}
.bj-bottom-actions{bottom:18px;justify-content:center;gap:48px}.round-action{width:64px;height:64px;font-size:25px}.round-action.main{width:78px;height:78px;font-size:20px}
.bj-bank-strip{display:none!important}
.bj-play-actions{bottom:105px}.play-box{height:52px;border-radius:10px}
@media(max-width:900px){.bj-top-hud>div{min-width:100px;padding:7px 9px}.bj-top-hud strong{font-size:11px}.bj-evo-brand span{display:none}}
@media(max-width:700px){.bj-solo-top{height:auto;min-height:68px;flex-wrap:wrap;padding:8px 12px}.bj-evo-brand{display:none}.bj-top-hud{order:3;width:100%;gap:5px}.bj-top-hud>div{flex:1;min-width:0;text-align:center;padding:5px}.bj-top-hud strong{font-size:10px}.bj-solo-main{padding:4px}.bj-three-table{min-height:840px;border-radius:18px}.bj-three-table .dealer-zone{top:155px}.bj-three-table .bj-evo-notice{top:270px}.bj-three-hands{bottom:300px;gap:5px}.bj-bet-zones{bottom:190px;gap:7px}.bj-three-table+.bj-wood-rail .bj-chip-row{gap:12px}.bet-chip{width:45px;height:45px;font-size:10px}.bj-bottom-actions{gap:24px}.round-action{width:58px;height:58px}.round-action.main{width:70px;height:70px}.bj-evo-center-copy{top:102px}.rule-arc{font-size:13px}.rule-mid{font-size:11px}}
/* v25 더블다운 */
.bj-play-actions{grid-template-columns:repeat(3,minmax(110px,180px))!important}
.play-box.double-down{background:linear-gradient(180deg,#e7b93e,#8f6412);border-color:#ffe18a;color:#171006}
.play-box.double-down:disabled{filter:grayscale(.8);opacity:.38}
@media(max-width:620px){.bj-play-actions{grid-template-columns:repeat(3,1fr)!important;gap:7px}.play-box{font-size:14px!important;padding:12px 7px!important}}
