/* Jackpot Arab / Studio edition. Presentation only; server owns all game state. */
:root { --line:#303433; --surface-raised:#1b201f; --text-muted:#aeb9b3; --felt:#143b2d; }
body { background:#101513; }
html { scroll-behavior:smooth; scroll-padding-top:90px; }
::selection { background:#d4ff37; color:#101513; }
.bar { max-width:1240px; }
.site-header { background:rgba(15,20,18,.93); border-bottom-color:#ffffff12; }
.site-header .bar { min-height:78px; }
.brand { gap:12px; }
.brand img { width:42px; height:42px; filter:drop-shadow(0 0 14px #d4ff3720); }
.site-nav a { font-size:.92rem; }
.lang { border-radius:10px; font-size:.82rem; padding:7px 16px; }
.btn { border-radius:10px; background:#232b27; border-color:#ffffff18; transition:background .2s, border-color .2s, transform .2s; }
.btn:hover { background:#303c34; border-color:#d4ff3780; }
.btn.primary { background:#d4ff37; box-shadow:0 6px 26px -14px #d4ff3780; color:#142006; }
.btn.primary:hover { background:#e1ff78; }
.btn.primary:disabled { filter:none; }
input, select, textarea { background:#101713; border-color:#3b4840; }
input:focus, select:focus, textarea:focus { outline:2px solid #d4ff37; outline-offset:2px; }
.eyebrow { display:block; font-size:.71rem; letter-spacing:.14em; font-weight:700; color:#d4ff37; margin-bottom:22px; line-height:1.8; }
[dir=rtl] .eyebrow { letter-spacing:.05em; }
.hero-banner { background:#101713; isolation:isolate; }
.hero-banner::before { background:radial-gradient(ellipse at 20% 50%,#284b2545,transparent 55%),linear-gradient(120deg,#101713,#101513); }
.hero-banner .chip-rain { opacity:.16; }
.hero-banner .slides { max-width:1240px; }
/* Inactive slides are removed immediately, including before JS initializes.
   Animating children cannot accidentally paint over another slide. */
.hero-banner .slide:not(.is-active) { display:none !important; }
.js .hero-banner.ready .slide { transition:none; }
.js .hero-banner.ready .slide.is-active { opacity:1; visibility:visible; transition:none; }
.hero-banner .slide { min-height:620px; padding:54px 28px 104px; grid-template-columns:1.05fr 1fr; gap:30px; }
.slide-text { position:relative; z-index:2; min-width:0; }
.slide-text h1, .slide-h { font-size:clamp(2.4rem,4.6vw,4.1rem); line-height:1.3; max-width:14ch; letter-spacing:-.045em; margin-bottom:22px; }
[dir=rtl] .slide-text h1, [dir=rtl] .slide-h { letter-spacing:-.035em; max-width:15ch; }
.slide-text h1 > span { display:block; color:#d4ff37; }
.slide-text .lead { font-size:1.03rem; line-height:1.95; max-width:42ch; color:#adb9b0; margin-bottom:26px; }
.hero-actions { display:flex; align-items:center; gap:26px; flex-wrap:wrap; }
.hero-actions .btn { gap:24px; }
.hero-secondary { text-decoration:none; color:#d4ded7; font-size:.9rem; }
.hero-secondary span { margin-inline-start:12px; color:#d4ff37; }
.hero-facts { display:flex; gap:16px; flex-wrap:wrap; margin-top:32px; padding-top:18px; border-top:1px solid #ffffff12; color:#8f9e93; font-size:.72rem; }
.hero-facts span::before { content:'•'; color:#d4ff37; margin-inline-end:7px; }
.art-signature { height:440px; position:relative; isolation:isolate; }
.signature-orbit { position:absolute; width:410px; height:410px; max-width:100%; border:1px solid #d4ff3720; border-radius:50%; left:50%; top:50%; transform:translate(-50%,-50%); background:radial-gradient(circle,#d4ff3708,transparent 65%); }
.signature-orbit.inner { width:310px; height:310px; border-style:dashed; border-color:#d4ff3717; }
.signature-word { position:absolute; inset:15px 0 auto; text-align:center; font:800 76px/.94 Arial,sans-serif; letter-spacing:-.055em; color:#ffffff06; z-index:-1; }
.signature-word b { font-size:116px; }
.signature-chip { position:absolute; width:230px; height:230px; object-fit:contain; top:137px; left:calc(50% - 30px); transform:rotate(-16deg); filter:drop-shadow(0 26px 20px #000b); animation:none !important; }
.signature-cards { position:absolute; left:calc(50% - 105px); top:70px; display:flex; direction:ltr; transform:rotate(-12deg); }
.signature-cards .pc { --w:128px; border:1px solid #e8ecdf; }
.signature-cards .pc:first-child { transform:rotate(-12deg); }
.signature-cards .pc:last-child { margin-left:-50px; transform:translateY(-15px) rotate(9deg); }
.signature-label { position:absolute; left:50%; top:12px; transform:translateX(-50%); white-space:nowrap; font-size:.62rem; letter-spacing:.12em; color:#94a38e; }
.art-signature .st1 { left:10%; bottom:40px; transform:rotate(-8deg) scale(.85); }
.art-signature .st2 { left:29%; bottom:18px; transform:scale(.68); }
.signature-note { position:absolute; inset:auto 0 0; text-align:center; font:600 10px/1.6 Arial,sans-serif; letter-spacing:.24em; color:#b0bba8; }
.signature-note i { color:#d4ff37; padding:0 14px; }
.hero-banner .banner-nav { bottom:27px; inset-inline-end: max(28px,calc((100vw - 1184px)/2)); gap:14px; }
.nav-arrow, .banner-pause { width:38px; height:38px; border:1px solid #ffffff1c; border-radius:50%; background:#ffffff04; color:white; display:grid; place-items:center; cursor:pointer; }
.banner-pause { font:600 13px Arial,sans-serif; }
.banner-pause[aria-pressed=true] { border-color:#d4ff37; color:#d4ff37; }
.hero-banner .dot { width:28px; }
.ticker { background:#172019; border-color:#d4ff371c; padding:14px 0; }
.ticker-set { font-size:.82rem; gap:34px; color:#bcc6be; font-weight:500; }
.ticker-set i { font-size:.9rem; }
.band { max-width:1240px; padding:76px 28px 36px; }
.how h2 { font-size:2rem; }
.steps { gap:18px; }
.steps::before { display:none; }
.step { padding:26px; border:1px solid #ffffff10; border-radius:16px; background:linear-gradient(135deg,#202c22,#171e19); }
.step-n { background:transparent; color:#d4ff37; width:auto; height:auto; display:block; box-shadow:none; font-size:2.2rem; margin-bottom:22px; }
.step-n::before { content:'0'; }
.step h3 { font-size:1.2rem; }
.step p { font-size:.92rem; margin:0; }
.felt-band { background:radial-gradient(ellipse at 0% 10%,#214d3340,transparent 60%),#111b15; border-top:1px solid #ffffff0e; }
.felt-inner { max-width:1184px; padding-top:60px; padding-bottom:60px; }
.games .game { background:#ffffff03; border:1px solid #ffffff10; padding:30px 24px; border-radius:18px; }
.ranks.ladder { max-width:100%; }
.ranks.ladder li { border:1px solid #ffffff08; margin-bottom:8px; background:#ffffff02; }
.rules-doc { font-size:.95rem; }
.site-footer { background:#0c110e; border-color:#ffffff12; }
.gate { box-shadow:0 28px 100px #0005; border-color:#ffffff1c; }
.gate-art { background:radial-gradient(ellipse at 50% 40%,#315939,#10241a 80%); }
.gate-form { padding:50px 36px; }
.app-main { max-width:1200px; padding:28px 24px; }
.app-head { background:linear-gradient(110deg,#1d2c21,#172019); border:1px solid #ffffff12; border-radius:18px; padding:22px 26px; }
.wallet { background:#0e1812; border:1px solid #d4ff372b; min-width:180px; }
.wallet .amt { color:#d4ff37; font-size:1.75rem; }
.wallet > .muted { font-size:.78rem; }
.lobby-intro { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:14px 4px 30px; }
.lobby-intro h2 { font-size:clamp(1.7rem,3vw,2.4rem); }
.lobby-intro p { margin:0; color:#9fac9f; font-size:.95rem; }
.lobby-intro .eyebrow { margin-bottom:12px; }
.lobby-intro img { width:100px; height:100px; transform:rotate(-16deg); filter:drop-shadow(0 10px 16px #d4ff371c); }
.room-stats { display:grid; grid-template-columns:repeat(3,1fr); border:1px solid #ffffff12; border-radius:14px; margin:20px 0 26px; }
.room-stats > div { padding:16px 22px; display:flex; gap:14px; align-items:center; border-inline-end:1px solid #ffffff12; }
.room-stats > div:last-child { border:0; }
.room-stats strong { font:600 1.6rem Arial,sans-serif; color:#e6f1dc; }
.room-stats span { font-size:.8rem; color:#9dad9f; }
.tabs { gap:10px; }
.tabs button { font-size:.95rem; }
.card { background:linear-gradient(145deg,#1e2a21,#161e18); border-color:#ffffff15; padding:24px; }
.table-card { overflow:hidden; }
.table-mini { position:relative; height:96px; margin:-24px -24px 24px; overflow:hidden; background:radial-gradient(ellipse at center,#26503b,#16231c); display:grid; place-items:center; }
.table-mini::before { content:''; width:210px; height:106px; border:6px solid #344238; border-radius:50%; position:absolute; top:12px; box-shadow:0 0 0 1px #5e6b38,inset 0 0 0 2px #ffffff05; }
.table-mini img { width:37px; height:37px; transform:rotate(-12deg); position:absolute; top:43px; }
.table-mini > span { position:absolute; top:9px; left:14px; font:600 10px Arial,sans-serif; letter-spacing:.1em; color:#d4ff37; }
.card .btn { width:100%; }
.table-wrap { background:#141d17; }
.data tbody tr:hover { background:#ffffff03; }
.panel-form { padding:22px; background:#1a251d; }
.panel-form h2 { color:#d4ff37; }
dialog { box-shadow:0 25px 100px #000a; background:#17231b; border-color:#49603e; }
dialog::backdrop { background:#040b08bb; backdrop-filter:blur(6px); }
/* Table: a padded rail, woven felt, branded chips and a compact action dock. */
body:has(.table-main) { background:radial-gradient(ellipse at 50% 40%,#1e2d23,#0b110e 72%); }
body:has(.table-main) .site-header .bar { min-height:58px; }
.table-main { max-width:1120px; padding:16px 24px 0; }
.table-main .t-head { margin-bottom:12px; }
.t-head h1 { font-size:1.25rem; }
.t-head .btn { background:#1c2820; font-size:.78rem; }
.t-meta { gap:8px; }
.t-meta .tag { border-color:#ffffff15; background:#ffffff03; padding:3px 10px; font-size:.73rem; }
.connection { display:flex; justify-content:flex-end; align-items:center; gap:7px; color:#ffca74; font-size:.68rem; margin:8px 2px 0; min-height:18px; }
.connection::before { content:''; width:6px; height:6px; border-radius:50%; background:currentColor; }
.connection.online { color:#b2d59b; }
.felt { height:clamp(340px,calc(100dvh - 450px),470px); margin:58px 0 62px; border:14px solid #242f28; background:repeating-linear-gradient(40deg,#ffffff02 0 1px,transparent 1px 4px),radial-gradient(ellipse,#245540 0,#123a2b 65%,#102d21 100%); box-shadow:0 0 0 1px #63724b,0 0 0 5px #131d16,0 0 0 7px #394535,0 25px 60px #0009,inset 0 0 0 2px #d4ff3719,inset 0 0 70px #0006; }
.felt::before { content:''; position:absolute; inset:15px; border:1px solid #b0d89920; border-radius:inherit; pointer-events:none; }
.felt::after { content:'JACKPOT ARAB'; position:absolute; top:58%; left:50%; transform:translate(-50%,-50%); font:800 clamp(20px,3vw,36px) Arial,sans-serif; letter-spacing:.14em; white-space:nowrap; color:#d8ecc107; pointer-events:none; }
.center { padding:12px 19% 24px; gap:10px; z-index:1; }
.stock { font-size:.6rem; gap:14px; opacity:.8; }
.stock .pile { transform:scale(.8); transform-origin:bottom; margin-top:-5px; }
.board { min-height:64px; gap:6px; }
.board:empty::before { content:'♠  ♥  ♣  ♦'; color:#bdd6af26; font:32px Georgia,serif; letter-spacing:.2em; align-self:center; }
.pcard { width:46px; height:64px; border-radius:7px; background:linear-gradient(135deg,#fff,#e9eee5); box-shadow:0 4px 0 #c5cec0,0 8px 16px #0007; }
.pcard.sm { width:29px; height:41px; }
.pcard.back { background:#15211a url(/assets/chip.png) center/76% no-repeat; border:2px solid #ccd8c2; box-shadow:0 3px 0 #6d7965,0 5px 9px #0005; }
.pcard.win { box-shadow:0 0 0 2px #d4ff37,0 0 22px #d4ff3740; }
.pot { padding:5px 16px; border:1px solid #d4ff3730; background:#0c261be6; font-size:.95rem; }
.denoms { gap:12px; margin-top:9px; align-items:flex-end; }
.denoms .denom { background:transparent; border-radius:0; padding:0; display:flex; flex-direction:column; gap:1px; font:500 .62rem Arial,sans-serif; color:#bdd0b7; }
.denoms .denom .chip-tower { width:30px; height:24px; position:relative; background:transparent; padding:0; border-radius:0; }
.chip-tower img { width:27px; height:27px; position:absolute; bottom:0; left:1px; transform:scaleY(.55); filter:drop-shadow(0 3px 0 #788349); }
.chip-tower img:nth-child(2) { bottom:3px; } .chip-tower img:nth-child(3) { bottom:6px; } .chip-tower img:nth-child(4) { bottom:9px; } .chip-tower img:nth-child(5) { bottom:12px; }
.tone-1 .chip-tower img { filter:drop-shadow(0 3px 0 #bf9c51); }
.tone-2 .chip-tower img { filter:drop-shadow(0 3px 0 #627aa4); }
.tone-3 .chip-tower img { filter:drop-shadow(0 3px 0 #bb6c66); }
.seat { background:linear-gradient(150deg,#293a2e,#142019); border:1px solid #516149; border-radius:13px; padding:7px 5px 6px; box-shadow:0 8px 20px #0007; z-index:2; }
.avatar { width:26px; height:26px; border:1px solid #8caa7340; color:#c5d5b5; border-radius:50%; display:grid; place-items:center; margin:-21px auto 4px; background:linear-gradient(120deg,#3e5540,#243528); font:700 11px Arial,sans-serif; box-shadow:0 3px 7px #0006; }
.seat .nm { font-size:.8rem; margin-bottom:1px; }
.seat .chips { font-size:.82rem; }
.seat .chips img { width:14px; height:14px; }
.seat.me { border-color:#9aab7e; background:linear-gradient(150deg,#344732,#1c2b20); }
.seat.turn { border-color:#d4ff37; box-shadow:0 0 0 2px #d4ff372b,0 8px 24px #0007; }
.seat.turn .avatar { color:#101513; background:#d4ff37; border-color:#d4ff37; }
.seat .hole { margin-bottom:20px; }
.seat.empty { min-width:60px; font-size:.7rem; background:#10291cd9; border-color:#91ae7750; border-radius:20px; box-shadow:none; }
.seat.empty .btn { background:transparent; border:none; color:#d2e2c5; box-shadow:none; padding:3px 8px; min-height:28px; font-size:.72rem; }
.seat.empty:has(.btn):hover { border-color:#d4ff37; background:#203b21; }
.seat .bet { margin-top:6px; }
.seat .bet > span { padding:2px 9px; border:1px solid #c2da9f25; background:#0c1c13e6; }
.badge { font-size:.59rem; padding:0 5px; }
.timer { height:3px; background:#ffffff13; }
.timer i { transition:width .25s linear; }
.controls { background:linear-gradient(135deg,#202e24f5,#101c15fa); border:1px solid #61744a55; border-radius:18px 18px 0 0; box-shadow:0 -15px 40px #0005; padding:13px 18px 16px; backdrop-filter:blur(18px); }
.controls .status { font-size:.83rem; margin-bottom:10px; }
.act-row .btn { min-height:48px; font-size:.9rem; }
#act-fold { background:#26302a; color:#c7d0c8; }
#act-allin { color:#e8c991; border-color:#b48d4e40; background:#332e22; }
.raise-box { gap:8px; margin-top:14px; padding-top:12px; }
.raise-box label, .raise-note { font-size:.74rem; }
.presets .btn { background:#ffffff05; min-height:34px; font-size:.76rem; }
.result { background:#102516f0; color:#e6f7d7; font-size:.8rem; padding:6px 12px; }
.controls[inert] { opacity:.55; }
@media (min-width:1100px) and (min-height:850px) { .table-main { max-width:1120px; } }
@media (max-width:900px) { .signature-chip { width:185px; height:185px; left:48%; top:158px; } .signature-cards .pc { --w:110px; } .signature-orbit { width:330px; height:330px; } .signature-word { font-size:58px; top:52px; } .signature-word b { font-size:90px; } }
@media (max-width:760px) {
  .site-header .bar { min-height:66px; gap:10px; padding-inline:16px; }
  .brand { font-size:1rem; gap:8px; } .brand img { width:34px; height:34px; }
  .hero-banner .slide { grid-template-columns:1fr; padding:36px 20px 80px; gap:20px; min-height:780px; }
  .slide-text h1, .slide-h { font-size:2.65rem; line-height:1.3; max-width:100%; }
  .slide-text .lead { font-size:.94rem; line-height:1.85; max-width:100%; }
  .eyebrow { font-size:.65rem; margin-bottom:16px; }
  .hero-actions { gap:18px; } .hero-actions .btn { min-height:50px; font-size:.9rem; padding:12px 18px; }
  .hero-secondary { font-size:.8rem; }
  .hero-facts { gap:12px; margin-top:22px; padding-top:15px; font-size:.65rem; }
  .art-signature { height:300px; max-width:430px; width:100%; margin:auto; }
  .signature-orbit { width:280px; height:280px; } .signature-orbit.inner { width:210px; height:210px; }
  .signature-word { font-size:50px; top:38px; } .signature-word b { font-size:82px; }
  .signature-cards { top:55px; left:calc(50% - 80px); } .signature-cards .pc { --w:96px; }
  .signature-chip { width:165px; height:165px; top:100px; left:calc(50% - 20px); }
  .signature-label { top:6px; font-size:.5rem; } .signature-note { font-size:8px; bottom:3px; }
  .art-signature .st1 { left:10%; bottom:15px; transform:scale(.6); } .art-signature .st2 { left:28%; bottom:-5px; transform:scale(.5); }
  .hero-banner .banner-nav { bottom:20px; inset-inline-end:20px; }
  .hero-banner .slide-art:not(.art-signature) { height:300px; }
  .band { padding:44px 20px 24px; } .steps { gap:12px; } .step { padding:22px; } .step-n { font-size:1.6rem; }
  .felt-inner { padding:36px 20px; }
  .app-main { padding:20px 14px; } .app-head { padding:18px; } .app-head h1 { font-size:1.2rem; }
  .lobby-intro img { width:72px; height:72px; } .lobby-intro h2 { font-size:1.55rem; }
  .lobby-intro p { font-size:.8rem; } .lobby-intro .eyebrow { font-size:.58rem; }
  .room-stats > div { flex-direction:column; gap:5px; padding:12px 5px; text-align:center; } .room-stats span { font-size:.66rem; }
  .room-stats strong { font-size:1.35rem; } .wallet { width:100%; }
  .cards { grid-template-columns:repeat(auto-fill,minmax(min(280px,100%),1fr)); }
}
@media (max-width:640px) {
  body:has(.table-main) .site-header .bar { min-height:52px; }
  .table-main { padding:12px 12px 0; }
  .table-main .t-head { margin-bottom:8px; }
  .t-head h1 { font-size:1rem; } .t-head .btn { min-height:34px; font-size:.69rem; padding:5px 9px; }
  .t-meta .tag, .t-meta .demo { font-size:.65rem; padding:2px 7px; }
  .connection { font-size:.6rem; margin-top:5px; }
  .felt { height:clamp(390px,calc(100dvh - 320px),540px); margin:55px 0 63px; border-width:8px; border-radius:43% / 27%; }
  .felt::before { inset:9px; }
  .felt::after { font-size:17px; letter-spacing:.1em; }
  .center { padding:20px 0 35px; gap:8px; }
  .board { gap:3px; min-height:46px; }
  .board .pcard { width:30px; height:43px; font-size:.85rem; }
  .board .pcard .s { font-size:.9rem; }
  .stock { font-size:.51rem; gap:9px; }
  .stock .pile { transform:scale(.65); height:28px; }
  .seat { width:92px; padding:5px 3px 4px; }
  .seat .nm { font-size:.7rem; } .seat .chips { font-size:.68rem; gap:2px; }
  .seat .hole { margin-bottom:18px; } .seat .pcard { width:33px; height:46px; }
  .seat .pcard.sm { width:24px; height:34px; }
  .seat .hole.four .pcard { margin-inline:-7px; }
  .avatar { width:23px; height:23px; margin-top:-18px; font-size:10px; }
  .seat.empty { min-width:52px; font-size:.6rem; }
  .seat.empty .btn { font-size:.6rem; padding:3px 4px; }
  .pot { font-size:.76rem; padding:3px 10px; } .pot .chips img { width:15px; height:15px; }
  .denoms { gap:7px; margin-top:6px; } .denoms .denom { font-size:.52rem; }
  .denoms .denom .chip-tower { transform:scale(.82); height:21px; }
  .result { max-width:180px; font-size:.64rem; padding:5px 8px; }
  .controls { padding:10px 9px max(12px,env(safe-area-inset-bottom)); border-radius:14px 14px 0 0; }
  .act-row { gap:5px; } .act-row .btn { font-size:.72rem; min-height:46px; }
  .controls .status { font-size:.74rem; }
  .badge { font-size:.52rem; }
}
@media (prefers-reduced-motion:no-preference) {
  .signature-chip { animation:signature-float 6s ease-in-out infinite !important; }
  @keyframes signature-float { 50% { translate:0 -9px; rotate:3deg; } }
  .hero-banner .slide.is-active .slide-text { animation:hero-enter .45s ease-out; }
  @keyframes hero-enter { from { opacity:0; translate:0 14px; } }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *, *::before, *::after { animation:none !important; transition:none !important; } }

.signature-chip { border-radius:50%; }
.hero-actions .btn > span { font-family:Arial,sans-serif; }
/* Keep the action dock below seats. Raise sizing opens only when requested. */
.controls { position:relative; }
#raise-open { display:inline-flex; }
.raise-box { display:none; }
.raise-box.open { display:grid; }
@media(max-width:640px) { .felt { height:clamp(360px,calc(100dvh - 420px),480px); } }
@media(min-width:641px) { .felt[data-seats="9"], .felt[data-seats="8"], .felt[data-seats="7"] { min-height:420px; } }
@media(max-width:640px) { .felt[data-seats="9"], .felt[data-seats="8"], .felt[data-seats="7"] { min-height:600px; } }
.hero-actions .btn > span { font-size:0; width:16px; height:10px; position:relative; }
.hero-actions .btn > span::before { content:''; position:absolute; width:15px; height:2px; background:currentColor; top:4px; left:0; }
.hero-actions .btn > span::after { content:''; position:absolute; width:7px; height:7px; border-top:2px solid; border-right:2px solid; transform:rotate(45deg); right:0; top:1px; }
[dir=rtl] .hero-actions .btn > span { transform:rotate(180deg); }
@media(max-width:760px) { .hero-banner .slide-art { order:0; } .slide-text h1, .slide-h { font-size:2.15rem; } }
.lobby-intro img, .table-mini img { border-radius:50%; }
.banner-pause::before { content:''; width:7px; height:11px; border-inline:2px solid currentColor; }
.banner-pause[aria-pressed=true]::before { width:0; height:0; border:6px solid transparent; border-right:0; border-left:9px solid currentColor; margin-left:2px; }
