/* ===== VIP Arcade (mini games, tickets, check-in) =====
   Colours come from each site's theme variables (--gold --ice --pink --btn --card --line --muted).
   Each site also gets its own shape language at the bottom: PD9 crystal facets, D34 neon jungle, BX77 cyber edges. */
#gamesBox{max-width:880px;margin:0 auto;width:100%;display:flex;flex-direction:column;gap:16px}
.arc-h{display:flex;align-items:baseline;gap:10px;margin:8px 4px 0;font-size:22px}
.arc-h small{font-size:13px;color:var(--muted);font-weight:500}

/* tickets */
.arc-tickets{display:flex;gap:18px;align-items:center;flex-wrap:wrap;padding:16px 20px;margin:0}
.tk-have{display:flex;align-items:center;gap:12px}
.tk-have b{display:block;font-size:34px;line-height:1;color:var(--gold)}
.tk-have small{color:var(--muted);font-size:12px}
.tk-icon .tk-svg{width:54px;height:34px}
.tk-svg path{fill:var(--gold);stroke:none}.tk-svg .tk-perf{stroke:var(--navy,#000);stroke-width:1.6;stroke-dasharray:2 2;fill:none}
.tk-buy{flex:1;min-width:240px}
.tk-line{font-size:13px;color:var(--muted);margin-bottom:8px}.tk-line b{color:var(--text,#fff)}
.tk-row{display:flex;gap:10px;align-items:center}
.tk-row .btn{flex:1}
.stepper{display:flex;align-items:center;border-radius:12px;border:1px solid var(--line);overflow:hidden}
.stepper button{width:38px;height:40px;border:0;background:rgba(255,255,255,.08);color:inherit;font-size:20px;cursor:pointer}
.stepper button:disabled{opacity:.35}
.stepper b{min-width:34px;text-align:center;font-size:18px}

/* check-in (both modes) */
.arc-checkin{padding:18px 20px}
.arc-checkin-slot{margin:0}.arc-checkin-slot:empty{display:none}
.arc-checkin-slot.card,.arc-checkin-slot{border-radius:18px;background:var(--card);border:1px solid var(--line)}
.ci-head{display:flex;gap:14px;align-items:center;margin-bottom:14px}
.ci-title h3{margin:0 0 2px;font-size:19px}.ci-title span{font-size:13px;color:var(--muted)}
.tier-badge{display:flex;align-items:center;gap:8px;padding:6px 12px 6px 8px;border-radius:14px;background:rgba(0,0,0,.3);border:1px solid var(--line);flex:none}
.tier-badge small{display:block;font-size:10.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.tier-badge b{font-size:16px}
.tier-badge .flame{font-size:28px}
.ci-path{list-style:none;margin:0;padding:6px 0 0;display:grid;grid-template-columns:repeat(7,1fr);gap:4px;position:relative}
.ci-path::before{content:"";position:absolute;left:7%;right:7%;top:28px;height:4px;border-radius:4px;background:rgba(255,255,255,.12)}
.ci-path li{position:relative;text-align:center;display:flex;flex-direction:column;align-items:center;gap:3px}
.ci-path .node{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:16px;
  background:rgba(0,0,0,.45);border:2px solid rgba(255,255,255,.18);position:relative;z-index:1}
.ci-path li.done .node{background:var(--btn);color:var(--btn-text);border-color:transparent}
.ci-path li.next .node{border-color:var(--gold);box-shadow:0 0 0 4px rgba(255,210,80,.18),0 0 18px rgba(255,210,80,.55);animation:ciPulse 1.6s infinite}
.ci-path li.is-chest .node{width:52px;height:52px;margin-top:-4px;background:rgba(0,0,0,.55)}
.ci-path small{font-size:10.5px;color:var(--muted)}
.ci-path em{font-style:normal;font-size:11.5px;font-weight:800;color:var(--gold)}
.ci-path li.done em{opacity:.6}
.ci-miss{margin:0 0 12px;padding:10px 12px;border-radius:12px;background:rgba(255,120,80,.14);border:1px solid rgba(255,140,90,.4);font-size:13px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.ci-miss span{color:var(--muted);font-size:12px}
.ci-foot{display:flex;gap:12px;align-items:center;margin-top:14px;flex-wrap:wrap}
.ci-foot .ci-btn{flex:none;min-width:200px;margin:0;width:auto;background:var(--btn);color:var(--btn-text);border:0;padding:12px 18px}
.ci-foot .ci-btn:disabled{opacity:.55}
.tiers{flex:1;display:flex;gap:6px;flex-wrap:wrap;min-width:0}
.tiers span{font-size:11.5px;padding:4px 8px;border-radius:8px;background:rgba(0,0,0,.28);border:1px solid rgba(255,255,255,.1);font-weight:800}
.tiers span em{font-style:normal;font-weight:500;color:var(--muted)}.tiers span em i{font-style:normal;color:var(--gold)}
.tiers span.on{border-color:currentColor;box-shadow:0 0 10px currentColor}
.bronze{color:#e09a5e}.silver{color:#d6e2ee}.gold{color:#ffd166}.diamond{color:#7ff0ff}
.chest-ready{display:flex;gap:14px;align-items:center;margin-top:14px;padding:12px 14px;border-radius:16px;background:linear-gradient(100deg,rgba(255,215,90,.16),rgba(255,255,255,.03));border:1px solid currentColor}
.chest-ready .cr-txt{flex:1;color:var(--text,#fff);display:flex;flex-direction:column;gap:3px;font-size:13px}
.chest-ready .cr-txt b{font-size:17px}
.chest-ready .warn{color:#ffb38a}.chest-ready .ok,.chest-open .ok{color:#7dffa8}
.chest-ready .btn{animation:ciPulse 1.6s infinite}
@keyframes ciPulse{50%{transform:scale(1.05)}}

/* chest svg */
.chest .c-lid,.chest .c-body{fill:currentColor;stroke:rgba(0,0,0,.45);stroke-width:2}
.chest .c-body{filter:brightness(.82)}
.chest .c-band{fill:rgba(0,0,0,.28)}
.chest .c-lock{fill:#fff7cc;stroke:rgba(0,0,0,.4)}
.chest.open .c-lid{transform:translateY(-6px) rotate(-8deg);transform-origin:12px 26px}
.chest .c-glow path{fill:#fff6b0;opacity:.9;animation:glow 1.2s ease-in-out infinite}
@keyframes glow{50%{opacity:.35}}

/* game grid */
.arc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.arc-card{position:relative;display:flex;flex-direction:column;text-align:left;padding:0;border-radius:18px;overflow:hidden;cursor:pointer;color:inherit;font:inherit;
  background:var(--card);border:1px solid var(--line);transition:transform .2s,box-shadow .2s}
.arc-card:hover{transform:translateY(-4px);box-shadow:0 14px 34px rgba(0,0,0,.4)}
.ac-art{position:relative;height:150px;display:flex;align-items:center;justify-content:center;overflow:hidden;
  background:radial-gradient(circle at 50% 35%,rgba(255,255,255,.16),rgba(0,0,0,.45))}
.ac-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ac-body{padding:12px 14px 14px;display:flex;flex-direction:column;gap:3px}
.ac-body b{font-size:18px}.ac-body span{font-size:12.5px;color:var(--muted)}
.ac-go{position:absolute;right:12px;top:12px;font-style:normal;font-weight:900;font-size:12px;letter-spacing:.08em;text-transform:uppercase;
  padding:6px 12px;border-radius:999px;background:var(--btn);color:var(--btn-text);box-shadow:0 4px 12px rgba(0,0,0,.35)}
.g-wheel .ac-art{background:radial-gradient(circle at 50% 40%,rgba(255,159,216,.35),rgba(0,0,0,.5))}
.g-plinko .ac-art{background:radial-gradient(circle at 50% 40%,rgba(111,220,255,.35),rgba(0,0,0,.5))}
.g-baccarat .ac-art{background:radial-gradient(circle at 50% 50%,#1f7a4a,#0b3320)}
.g-suit .ac-art{background:radial-gradient(circle at 50% 40%,rgba(255,80,110,.35),rgba(0,0,0,.55))}
.g-mines .ac-art{background:radial-gradient(circle at 50% 40%,rgba(255,210,80,.3),rgba(0,0,0,.55))}
.art{height:120px}
.art-wheel .a{fill:var(--gold)}.art-wheel .b{fill:var(--pink,#ff6fae)}.art-wheel .hub{fill:#fff}.art-wheel .ptr{fill:#fff}
.art-wheel .spinme{animation:spin 9s linear infinite;transform-origin:0 0}
.art-plinko circle{fill:#dff4ff}.art-plinko rect{fill:rgba(255,255,255,.25)}.art-plinko rect.hot{fill:var(--gold)}
.art-plinko .ball{fill:var(--gold);animation:pdrop 2.2s ease-in infinite}
@keyframes pdrop{0%{transform:translateY(0)}85%,100%{transform:translateY(74px)}}
@keyframes spin{to{transform:rotate(360deg)}}
.art-cards{position:relative;width:150px;display:flex;justify-content:center;align-items:center}
.art-cards .pc{position:absolute}.art-cards .r1{transform:rotate(-12deg) translateX(-24px)}.art-cards .r2{transform:rotate(10deg) translateX(24px)}
.art-cards .chip{position:absolute;right:6px;bottom:4px;width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:900;
  background:var(--gold);color:#3a2600;border:4px dashed #fff8;box-shadow:0 4px 10px rgba(0,0,0,.4)}
.art-suits{display:grid;grid-template-columns:repeat(2,40px);gap:6px;font-size:34px;align-items:center;position:relative}
.art-suits span{text-align:center;color:#fff;text-shadow:0 2px 6px rgba(0,0,0,.5)}.art-suits .red{color:#ff5a7a}
.art-suits .pc{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) rotate(8deg)}
.art-mines{display:grid;grid-template-columns:repeat(4,26px);gap:4px}
.art-mines i{width:26px;height:26px;border-radius:6px;background:rgba(255,255,255,.14);font-style:normal;font-size:12px;font-weight:900;display:flex;align-items:center;justify-content:center}
.art-mines i.g{background:var(--gold);color:#3a2600}.art-mines i.b{background:#3a0d14;color:#ff6b6b}.art-mines i.x{background:var(--ice,#6fdcff);color:#06223a}

/* playing cards */
.pc{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;width:50px;height:72px;border-radius:7px;background:#fff;color:#111;
  box-shadow:0 4px 12px rgba(0,0,0,.4);font-family:Georgia,serif;line-height:1}
.pc b{font-size:22px}.pc i{font-style:normal;font-size:24px}
.pc.red{color:#d11a3a}
.pc.back{background:repeating-linear-gradient(45deg,var(--navy,#0a1633) 0 6px,rgba(255,255,255,.12) 6px 8px);border:3px solid #fff}
.pc.big{width:96px;height:136px}.pc.big b{font-size:40px}.pc.big i{font-size:44px}
.pc.mid{width:40px;height:58px}
.pc.deal{animation:deal .3s ease-out}
.pc.flip{animation:flip .5s ease-out}
@keyframes deal{from{transform:translateY(-40px) rotate(-10deg);opacity:0}}
@keyframes flip{from{transform:rotateY(90deg)}}

/* prizes */
.arc-prizes{padding:16px 20px;margin:0}
.arc-prizes h3{margin:0 0 4px}
.arc-prizes ul{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.arc-prizes li{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:10px;background:rgba(0,0,0,.22)}
.arc-prizes li span{flex:1}.arc-prizes li b{color:var(--gold)}
.st{font-style:normal;font-size:11.5px;padding:3px 8px;border-radius:999px;background:rgba(255,255,255,.1)}
.st.ok{background:#1f9d55;color:#fff}.st.done{opacity:.6}.st.wait{background:rgba(255,200,80,.25)}
.arc-rules{margin:0;max-width:none;width:100%}.arc-rules li{margin:6px 0;font-size:13.5px}

/* ===== stage (game window) ===== */
body.arc-open{overflow:hidden}
.arc-stage{position:fixed;inset:0;z-index:50;background:rgba(0,4,12,.72);backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;padding:12px}
.arc-stage[hidden]{display:none}
.arc-panel{width:100%;max-width:440px;max-height:96vh;overflow:auto;border-radius:22px;padding:14px 16px 18px;
  background:linear-gradient(180deg,var(--navy2,#0c1d45),var(--navy,#060f24));border:1px solid var(--line);box-shadow:0 24px 60px rgba(0,0,0,.6);animation:pop .25s ease}
.as-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.as-head h2{flex:1;margin:0;font-size:20px}
.as-x{width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:rgba(255,255,255,.06);color:inherit;cursor:pointer;font-size:15px}
.as-tk{display:flex;align-items:center;gap:5px;font-weight:900;color:var(--gold)}.as-tk .tk-svg{width:30px;height:19px}
.as-out{min-height:10px}
.as-result{margin:12px 0 4px;padding:12px 14px;border-radius:14px;text-align:center;animation:pop .35s ease;display:flex;flex-direction:column;gap:3px}
.as-result b{font-size:22px}.as-result span{font-size:12.5px}
.as-result.win{background:var(--btn);color:var(--btn-text)}
.as-result.lose{background:rgba(255,255,255,.07)}
.as-result.tie{background:rgba(255,210,80,.18)}
.as-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:12px}
.as-actions .btn{flex:1;min-width:130px;padding:13px}
.btn.ghost{background:transparent;border:2px solid var(--gold);color:var(--gold)}
.center{text-align:center}

/* wheel */
.wheel-wrap{position:relative;width:min(320px,82vw);margin:6px auto 0}
.wheel{width:100%;display:block;filter:drop-shadow(0 10px 24px rgba(0,0,0,.5))}
.wheel-ptr{position:absolute;left:50%;top:-6px;transform:translateX(-50%);width:0;height:0;border-left:14px solid transparent;border-right:14px solid transparent;border-top:30px solid #fff;z-index:2;filter:drop-shadow(0 3px 4px rgba(0,0,0,.5))}
.w-rim{fill:var(--navy,#0a1633);stroke:var(--gold);stroke-width:6}
.w-seg.a{fill:var(--navy2,#14306b)}.w-seg.b{fill:color-mix(in srgb,var(--ice,#6fdcff) 35%,#0a1633)}
.w-seg.big{fill:var(--gold)}
.w-seg{stroke:rgba(255,255,255,.25);stroke-width:1}
.w-txt{fill:#fff;font-size:15px;font-weight:900;text-anchor:middle;dominant-baseline:middle}
.w-txt.big{fill:#3a2600}
.w-bulb{fill:#fff6c9;animation:bulb 1s infinite alternate}.w-bulb:nth-of-type(2n){animation-delay:.5s}
@keyframes bulb{to{fill:var(--gold);opacity:.6}}
.w-hub{fill:var(--btn-solid,#fff);stroke:var(--gold);stroke-width:4}
.w-hubt{font-size:13px;font-weight:900;text-anchor:middle;fill:#1a1a2e}

/* plinko */
.plinko{width:100%;display:block;margin:4px 0}
.pk-peg{fill:#e8f6ff;filter:drop-shadow(0 0 2px rgba(150,220,255,.9))}
.pk-slot rect{fill:rgba(255,255,255,.12)}.pk-slot rect.hot{fill:var(--gold)}.pk-slot rect.zero{fill:rgba(0,0,0,.35)}
.pk-slot text{font-size:10.5px;font-weight:900;text-anchor:middle;fill:#fff}
.pk-slot rect.hot+text{fill:#3a2600}
.pk-slot.hit rect{fill:#fff;animation:pulseSlot .5s 3}.pk-slot.hit text{fill:#000}
@keyframes pulseSlot{50%{opacity:.5}}
.pk-ball{fill:var(--gold);stroke:#fff;stroke-width:2;filter:drop-shadow(0 0 6px var(--gold))}

/* ladder */
.ladder{list-style:none;margin:2px 0 12px;padding:0;display:grid;grid-template-columns:repeat(8,1fr);gap:3px}
.ladder li{text-align:center;font-size:10.5px;font-weight:800;padding:5px 0;border-radius:7px;background:rgba(255,255,255,.07);color:var(--muted)}
.ladder li small{display:block;font-size:9px;opacity:.7}
.ladder li.got{background:var(--btn);color:var(--btn-text)}
.ladder li.next{outline:2px solid var(--gold);color:var(--gold)}
.bac-table{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;align-items:center;padding:14px 8px;border-radius:18px;
  background:radial-gradient(ellipse at 50% 40%,#1d7a4a,#0b3320);border:3px solid #6b4a1e;box-shadow:inset 0 0 30px rgba(0,0,0,.5)}
.bac-side{text-align:center}.bac-side h4{margin:0 0 8px;font-size:13px;letter-spacing:.1em;color:#e8ffe9}.bac-side h4 b{display:inline-block;min-width:24px;margin-left:4px;padding:1px 6px;border-radius:6px;background:#fff;color:#0b3320}
.bac-side.won h4{color:var(--gold)}.bac-side.won .bac-hand{filter:drop-shadow(0 0 10px var(--gold))}
.bac-hand{display:flex;justify-content:center;min-height:72px}.bac-hand .pc{margin:0 -8px;width:44px;height:64px}.bac-hand .pc b{font-size:18px}.bac-hand .pc i{font-size:20px}
.bac-vs{font-weight:900;color:#fff;font-size:12px;text-align:center;writing-mode:horizontal-tb;max-width:64px}
.btn.pick{font-size:16px;font-weight:900;letter-spacing:.06em}
.btn.pick.p{background:#1d5fd1;color:#fff}.btn.pick.b{background:#c8213d;color:#fff}
.suit-table{display:flex;flex-direction:column;align-items:center;gap:10px;padding:14px;border-radius:18px;background:rgba(0,0,0,.28)}
.suit-table p{margin:0;font-size:14px}
.suit-picks{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;width:100%}
.btn.pick.suit{font-size:30px;padding:8px 0;background:#fff;color:#111;min-width:0}.btn.pick.suit.red{color:#d11a3a}

/* mines */
.mines-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.mines-top b{color:var(--gold);font-size:18px}
.mines{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
.mt{aspect-ratio:1;border-radius:10px;border:0;cursor:pointer;font-weight:900;font-size:12px;color:#fff;
  background:linear-gradient(160deg,rgba(255,255,255,.22),rgba(255,255,255,.06));box-shadow:inset 0 -3px 0 rgba(0,0,0,.35)}
.mt:not(:disabled):hover{transform:translateY(-2px);background:linear-gradient(160deg,rgba(255,255,255,.32),rgba(255,255,255,.1))}
.mt.open{box-shadow:none;cursor:default}
.mt.gem{background:var(--gold);color:#3a2600}.mt.dbl{background:var(--ice,#6fdcff);color:#06223a;font-size:15px}.mt.bomb{background:#3a0d14;font-size:20px}
.mt.open:not(.mine-me){opacity:.45}
.mt.pop{animation:pop .3s ease}

/* chest opening */
.chest-open{position:relative;text-align:center;padding:16px 4px 6px;overflow:hidden}
.chest-open h2{margin:6px 0 10px;color:currentColor}
.co-burst{position:absolute;left:50%;top:70px;width:300px;height:300px;margin:-150px 0 0 -150px;border-radius:50%;
  background:repeating-conic-gradient(currentColor 0 8deg,transparent 8deg 22deg);opacity:.18;animation:spin 12s linear infinite}
.chest-open .chest{position:relative;animation:pop .5s ease}
.co-loot{display:flex;gap:12px;justify-content:center;margin-bottom:10px}
.co-loot span{display:flex;flex-direction:column;padding:10px 18px;border-radius:14px;background:rgba(255,255,255,.08);font-size:28px;font-weight:900;color:var(--gold)}
.co-loot small{font-size:12px;color:var(--muted);font-weight:500}
.chest-open .btn{min-width:160px;padding:12px}

@media (max-width:560px){
  .ci-path .node{width:36px;height:36px;font-size:14px}.ci-path li.is-chest .node{width:44px;height:44px}
  .ci-path::before{top:22px}.ci-path em{font-size:10px}
  .ci-head{flex-direction:column;align-items:flex-start}
  .ci-foot .ci-btn{width:100%}
  .arc-grid{grid-template-columns:1fr 1fr;gap:10px}
  .ac-art{height:110px}.art{height:92px}
  .ac-body b{font-size:15px}.ac-body span{display:none}
  .ac-go{top:8px;right:8px;padding:4px 9px;font-size:10.5px}
}

/* ===== per-site shape language ===== */
/* PD9 — ice crystal: faceted cut corners, frosted shine */
[data-site="pd9"] .arc-card,[data-site="pd9"] .arc-tickets,[data-site="pd9"] .arc-checkin-slot,[data-site="pd9"] #checkinBox,[data-site="pd9"] .arc-panel{
  border-radius:4px;clip-path:polygon(16px 0,100% 0,100% calc(100% - 16px),calc(100% - 16px) 100%,0 100%,0 16px)}
[data-site="pd9"] .arc-card::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(115deg,transparent 35%,rgba(255,255,255,.18) 45%,transparent 55%);background-size:250% 100%;animation:frost 5s linear infinite}
@keyframes frost{from{background-position:120% 0}to{background-position:-120% 0}}
[data-site="pd9"] .ci-path li:not(.is-chest) .node{border-radius:0;clip-path:polygon(25% 3%,75% 3%,100% 50%,75% 97%,25% 97%,0 50%)}
[data-site="pd9"] .mt{border-radius:3px;clip-path:polygon(6px 0,100% 0,100% calc(100% - 6px),calc(100% - 6px) 100%,0 100%,0 6px)}
/* D34 — neon jungle: rounded pills, green glow */
[data-site="d34"] .arc-card{border-radius:26px;border:2px solid rgba(255,217,46,.45);box-shadow:0 0 22px rgba(43,255,140,.15)}
[data-site="d34"] .arc-card:hover{box-shadow:0 0 30px rgba(43,255,140,.4)}
[data-site="d34"] .ac-go{border-radius:10px}
[data-site="d34"] .ci-path .node{border-radius:50%;box-shadow:0 0 0 3px rgba(43,255,140,.15)}
[data-site="d34"] .mt{border-radius:50%}
[data-site="d34"] .arc-panel{border-radius:30px;border:2px solid rgba(255,217,46,.45)}
/* BX77 — cyber: sharp angled edges, scan lines */
[data-site="bx77"] .arc-card,[data-site="bx77"] .arc-panel,[data-site="bx77"] .arc-tickets{border-radius:0;clip-path:polygon(0 0,calc(100% - 22px) 0,100% 22px,100% 100%,22px 100%,0 calc(100% - 22px))}
[data-site="bx77"] .ac-art::after{content:"";position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(0deg,rgba(34,227,255,.08) 0 1px,transparent 1px 4px)}
[data-site="bx77"] .ac-go,[data-site="bx77"] .arc-checkin .btn,[data-site="bx77"] .as-actions .btn{border-radius:0;clip-path:polygon(10px 0,100% 0,calc(100% - 10px) 100%,0 100%)}
[data-site="bx77"] .ci-path .node{border-radius:6px}
[data-site="bx77"] .mt{border-radius:0}
