/* The second batch of games (public/casino2.js): each its own look (the owner's rule).
   Galaxy Rush = cosmic violet and cyan, Sky Jet = sky blue and sunset orange, Penalty Shootout = floodlit night
   stadium, Lucky Scratch = emerald and gold lottery ticket, Pharaoh's Gold = sandstone, lapis and gold tomb. */

/* ---------- crash games (shared layout) ---------- */
.cx-stage { margin-top: 10px; border-radius: 22px; overflow: hidden; position: relative; }
.cx-recent { display: flex; gap: 5px; overflow: hidden; padding: 7px 8px; mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
.cx-recent i { flex: 0 0 auto; font: 800 11.5px/1 system-ui, sans-serif; font-style: normal; padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.08); color: #cfd8ff; font-variant-numeric: tabular-nums; }
.cx-recent i.mid { color: #7dfcff; background: rgba(0,240,255,.12); }
.cx-recent i.big { color: #ffd65a; background: rgba(255,184,0,.16); }
.cx-screen { position: relative; }
.cx-screen canvas { display: block; width: 100%; height: clamp(250px, calc(100dvh - 470px), 420px); }
.cx-hud { position: absolute; left: 0; right: 0; top: 30%; text-align: center; pointer-events: none; }
.cx-hud b { display: block; font: 900 clamp(40px, 13vw, 64px)/1 system-ui, sans-serif; color: #fff; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 2px rgba(0,0,0,.9), 0 4px 18px rgba(0,0,0,.75); letter-spacing: -.01em; }
.cx-hud b.flying { color: #fff; }
.cx-hud b.crashed { color: #ff3d6e; text-shadow: 0 0 18px rgba(255,46,99,.7), 0 4px 14px rgba(0,0,0,.8); }
.cx-hud small { display: inline-block; margin-top: 8px; padding: 4px 12px; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; font-weight: 800; font-size: 12.5px; }
.cx-bets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.cx-bet { padding: 9px; border-radius: 16px; display: grid; gap: 7px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.cx-step { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.cx-step button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.07); color: inherit; font-size: 17px; font-weight: 900; cursor: pointer; }
.cx-step b { font-size: 18px; font-variant-numeric: tabular-nums; }
.cx-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.cx-quick button { height: 26px; border-radius: 8px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: inherit; font-weight: 800; font-size: 11.5px; cursor: pointer; padding: 0; }
.cx-bet button:disabled { opacity: .4; cursor: default; }
.cx-auto { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; opacity: .9; flex-wrap: wrap; }
.cx-auto input[type=number] { width: 58px; height: 26px; border-radius: 8px; border: 1px solid rgba(255,255,255,.22); background: rgba(0,0,0,.25); color: inherit; font-weight: 800; padding: 0 6px; margin-left: auto; }
.cx-auto input[type=checkbox] { width: 16px; height: 16px; accent-color: #00f0ff; }
.cx-go { height: 56px; font-size: 17px; letter-spacing: .08em; line-height: 1.1; display: grid; place-content: center; }
.cx-go small { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; opacity: .8; margin-top: 2px; color: inherit; }
.cx-go.cash { background: linear-gradient(180deg, #ffe680, #ffb800 55%, #d68b00) !important; color: #2a1600 !important; box-shadow: 0 0 22px rgba(255,184,0,.55); animation: cxPulse 1s ease-in-out infinite; }
.cx-go.cash small { font-size: 16px; opacity: 1; }
.cx-go.cancel { background: linear-gradient(180deg, #ff7a8a, #d7263d) !important; }
.cx-go.wait { background: linear-gradient(180deg, #4a5578, #2a3150) !important; }
.cx-go.won { background: linear-gradient(180deg, #5dffb0, #13b36b) !important; color: #002814 !important; }
.cx-go.lost { background: rgba(255,255,255,.1) !important; color: rgba(255,255,255,.6) !important; }
@keyframes cxPulse { 50% { transform: scale(1.02); } }
.cx-list { margin-top: 10px; border-radius: 16px; padding: 8px 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); max-height: 240px; overflow: auto; }
.cx-listhead { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; opacity: .7; padding-bottom: 6px; }
.cx-row { display: grid; grid-template-columns: 1fr 60px 60px 70px; gap: 6px; font-size: 13px; padding: 5px 0; border-top: 1px solid rgba(255,255,255,.06); font-variant-numeric: tabular-nums; }
.cx-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-row b { text-align: right; color: #7dffb5; }
.cx-row.won { background: linear-gradient(90deg, rgba(0,255,140,.08), transparent); }
.cx-row.lost { opacity: .55; }
.cx-empty { font-size: 13px; opacity: .6; padding: 6px 0; }
@media (max-width: 360px) { .cx-quick button { font-size: 10.5px; } .cx-row { grid-template-columns: 1fr 52px 54px 60px; } }

/* ---------- GALAXY RUSH: cosmic violet, magenta and cyan ---------- */
body.rocket-mode {
  background: radial-gradient(700px 440px at 20% -10%, rgba(140,60,255,.4), transparent 62%), radial-gradient(520px 400px at 100% 100%, rgba(0,240,255,.16), transparent 60%),
    radial-gradient(1px 1px at 20% 30%, #fff 50%, transparent 51%) 0 0 / 90px 90px, radial-gradient(1px 1px at 70% 60%, #cfe6ff 50%, transparent 51%) 0 0 / 130px 130px, #06031a;
  background-attachment: fixed;
}
body.rocket-mode .topbar { background: rgba(6,3,26,.92); border-bottom-color: rgba(160,90,255,.35); }
body.rocket-mode .tabbar { background: rgba(6,3,26,.96); border-top-color: rgba(160,90,255,.35); }
body.rocket-mode .game-bar button { border-color: rgba(0,240,255,.35); background: rgba(0,240,255,.07); }
#tab-rocket { color: #eef0ff; }
.cx-rocket { box-shadow: 0 0 0 2px rgba(160,90,255,.55), 0 0 30px rgba(160,90,255,.3), 0 16px 34px rgba(0,0,0,.6); background: #0a0626; }
.cx-rocket .cx-hud b.flying { color: #fff; text-shadow: 0 0 14px rgba(0,240,255,.9), 0 0 2px #000, 0 4px 16px rgba(0,0,0,.7); }
#tab-rocket .cx-bet { background: linear-gradient(180deg, rgba(90,40,180,.35), rgba(20,10,60,.6)); border-color: rgba(160,90,255,.4); }
#tab-rocket .cx-go { background: linear-gradient(180deg, #7df4ff, #00c2e0 55%, #6a3cff); color: #04122a; box-shadow: 0 6px 20px rgba(0,240,255,.35); }
/* Galaxy Rush on PixiJS (rocket-pixi.js): the WebGL layer over the 2D canvas, under the numbers; the Effects switch */
.cx-screen canvas.cx-pixi { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.cx-screen .cx-hud { z-index: 1; }
#tab-rocket .game-bar .gr-fx { margin-left: auto; }
#tab-rocket .game-bar .gr-fx.on { border-color: rgba(0,240,255,.7); color: #9ff8ff; box-shadow: 0 0 12px rgba(0,240,255,.35); }
.g-rocket { background: linear-gradient(135deg, #4b1a8f, #06031a 70%); border-color: rgba(160,90,255,.6); color: #eef0ff; }
.g-rocket .g-status { color: #7df4ff; } .g-rocket .g-play { background: linear-gradient(180deg, #7df4ff, #00c2e0); color: #04122a; }
.g-rocket .g-art { background: #06031a; }
.ps-rocket { background: radial-gradient(120% 120% at 80% 0%, #6a2ad0, #06031a 70%) !important; }

/* ---------- SKY JET: sky blue and sunset orange ---------- */
body.jet-mode {
  background: linear-gradient(180deg, #2a7fe0 0%, #5a9fe8 30%, #ff9f5a 75%, #ff6f61 100%);
  background-attachment: fixed;
}
body.jet-mode .topbar { background: rgba(20,50,100,.85); border-bottom-color: rgba(255,224,138,.35); }
body.jet-mode .tabbar { background: rgba(26,40,80,.95); border-top-color: rgba(255,224,138,.35); }
body.jet-mode .game-bar button { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.14); color: #fff; }
#tab-jet { color: #fff; }
.cx-jet { box-shadow: 0 0 0 2px rgba(255,255,255,.55), 0 16px 34px rgba(20,30,70,.45); background: #1a3a6a; }
#tab-jet .cx-recent { background: rgba(10,30,70,.55); }
#tab-jet .cx-bet { background: rgba(14,36,80,.72); border-color: rgba(255,255,255,.28); }
#tab-jet .cx-go { background: linear-gradient(180deg, #ffd27a, #ff8a3d 55%, #e0442a); color: #2a0e00; box-shadow: 0 6px 20px rgba(255,120,40,.4); }
#tab-jet .cx-list { background: rgba(14,36,80,.6); border-color: rgba(255,255,255,.2); }
.g-jet { background: linear-gradient(135deg, #2a7fe0, #ff8a3d 85%); border-color: rgba(255,255,255,.6); color: #fff; }
.g-jet .g-status { color: #fff3c9; } .g-jet .g-play { background: linear-gradient(180deg, #ffffff, #ffe0b0); color: #6a2a00; }
.g-jet .g-art { background: #2a7fe0; }
.ps-jet { background: linear-gradient(135deg, #2a7fe0, #ff8a3d) !important; }

/* ---------- PENALTY SHOOTOUT: floodlit night stadium ---------- */
body.penalty-mode {
  background: radial-gradient(420px 300px at 0% -5%, rgba(255,250,220,.16), transparent 62%), radial-gradient(420px 300px at 100% -5%, rgba(255,250,220,.16), transparent 62%),
    linear-gradient(180deg, #06101f 0%, #071a2e 55%, #0b3a24 100%);
  background-attachment: fixed;
}
body.penalty-mode .topbar { background: rgba(6,16,31,.92); border-bottom-color: rgba(255,255,255,.12); }
body.penalty-mode .tabbar { background: rgba(5,13,26,.96); border-top-color: rgba(255,255,255,.12); }
body.penalty-mode .game-bar button { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.06); }
#tab-penalty { color: #eef6f0; }
.pn-stadium { position: relative; margin-top: 10px; border-radius: 22px; overflow: hidden; border: 2px solid rgba(255,255,255,.22); box-shadow: 0 14px 34px rgba(0,0,0,.5); }
#pnCanvas { display: block; width: 100%; height: clamp(280px, calc(100dvh - 430px), 470px); touch-action: manipulation; }
.pn-board { position: absolute; left: 50%; top: 6px; transform: translateX(-50%); text-align: center; pointer-events: none; white-space: nowrap;
  padding: 2px 14px 4px; border-radius: 10px; background: #0b0d12; border: 2px solid #2b2f38; box-shadow: 0 4px 12px rgba(0,0,0,.5); }
.pn-board b { display: block; font: 900 22px/1.1 ui-monospace, "SFMono-Regular", Menlo, monospace; color: #ffb400; letter-spacing: .04em; text-shadow: 0 0 8px rgba(255,180,0,.55); }
.pn-board small { font-size: 10.5px; font-weight: 700; color: #ffd98a; }
.pn-spots { position: absolute; inset: 0; pointer-events: none; }
.pn-spot { position: absolute; width: 17%; aspect-ratio: 1; max-width: 70px; transform: translate(-50%, -50%); border-radius: 50%; border: 0; padding: 0; background: transparent; cursor: pointer; pointer-events: none; opacity: 0; transition: opacity .2s; }
.pn-spot i { position: absolute; inset: 14%; border-radius: 50%; border: 3px dashed rgba(255,255,255,.9); box-shadow: 0 0 0 4px rgba(255,210,63,.25), inset 0 0 14px rgba(255,210,63,.35); animation: pnAim 1.4s ease-in-out infinite; }
.pn-spot i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 22%; height: 22%; transform: translate(-50%, -50%); border-radius: 50%; background: #ffd23f; }
.pn-spots.on .pn-spot { pointer-events: auto; opacity: 1; }
.pn-spot:active i { background: rgba(255,210,63,.35); }
@keyframes pnAim { 0%, 100% { transform: scale(.9); } 50% { transform: scale(1.05); } }
.pn-panel { margin-top: 10px; padding: 10px; border-radius: 20px; display: flex; flex-direction: column; gap: 8px;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.035) 0 14px, transparent 14px 28px), linear-gradient(180deg, #0f2a1c, #0a1e14); border: 1px solid rgba(255,255,255,.14); }
.pn-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pn-levels button { border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.05); color: #eef6f0; border-radius: 12px; padding: 6px 4px; cursor: pointer; line-height: 1.15; min-height: 46px; }
.pn-levels b { display: block; font-size: 13px; }
.pn-levels small { display: block; font-size: 9.5px; opacity: .72; margin-top: 2px; }
.pn-levels button.on { background: linear-gradient(180deg, #ffffff, #d7f5e2); color: #0b3a24; border-color: transparent; }
.pn-panel.locked .pn-levels { opacity: .45; pointer-events: none; }
.pn-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.pn-dots i, .pn-strip i { width: 13px; height: 13px; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); display: inline-block; }
.pn-dots i.g, .pn-strip i.g { background: #fff radial-gradient(circle at 50% 50%, #1a1a1a 0 28%, transparent 30%); border-color: #fff; }
.pn-dots i.s, .pn-strip i.s { background: #e63946; border-color: #ff9aa2; }
.pn-strip { display: inline-flex; gap: 3px; vertical-align: middle; margin-left: 4px; } .pn-strip i { width: 10px; height: 10px; }
.pn-actions { display: flex; gap: 8px; align-items: stretch; }
.pn-step { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; }
.pn-step span { min-width: 52px; text-align: center; line-height: 1.05; }
.pn-step small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(238,246,240,.55); }
.pn-step button { width: 36px; min-height: 44px; border-radius: 10px; font-size: 18px; font-weight: 800; cursor: pointer; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #eef6f0; }
.pn-step b { font-size: 18px; }
.pn-go, .pn-cash { flex: 1; border: 0; border-radius: 16px; padding: 13px 8px; font-size: 17px; font-weight: 900; letter-spacing: .05em; cursor: pointer; line-height: 1.15; }
.pn-go { color: #0b3a24; background: linear-gradient(180deg, #ffffff, #c9f2d6 55%, #5fd08a); box-shadow: 0 8px 20px rgba(46,204,113,.25), inset 0 1px 0 #fff; }
.pn-cash { color: #2a1a00; background: linear-gradient(180deg, #ffe58a, #ffb400 60%, #d18a00); box-shadow: 0 8px 20px rgba(255,180,0,.3); }
.pn-cash b { display: block; font-size: 16px; }
.pn-go:disabled, .pn-cash:disabled { filter: grayscale(.5) brightness(.7); box-shadow: none; cursor: default; }
.pn-aim { flex: 1; text-align: center; font-weight: 900; font-size: 15px; line-height: 1.2; padding: 8px 4px; border-radius: 16px; border: 2px dashed rgba(255,255,255,.35); color: #fff; }
.pn-aim small { font-weight: 700; font-size: 11px; opacity: .75; }
.pn-msg { text-align: center; font-size: 13px; min-height: 18px; color: #eef6f0; }
.pn-msg.goal { color: #ffe14d; } .pn-msg.win { color: #b8ffcf; } .pn-msg.lost { color: #ffb0b0; }
.pn-infolevels { display: grid; gap: 6px; margin: 10px 0; }
.pn-infolevels button { text-align: left; border: 1px solid var(--line2, rgba(255,255,255,.2)); background: rgba(255,255,255,.04); color: inherit; border-radius: 12px; padding: 8px 10px; cursor: pointer; }
.pn-infolevels button.on { border-color: #2ecc71; background: rgba(46,204,113,.12); }
.pn-infolevels small { display: block; opacity: .75; font-size: 12px; }
.pn-ladder { display: flex; flex-wrap: wrap; gap: 5px; }
.pn-ladder span { padding: 4px 8px; border-radius: 8px; background: rgba(46,204,113,.15); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pn-ladder span.top { background: rgba(255,210,63,.3); }
.g-penalty { background: linear-gradient(135deg, #1a7f45, #06101f 70%); border-color: rgba(255,255,255,.3); color: #eef6f0; }
.g-penalty .g-art { background: #071328; }
.g-penalty .g-status { color: #ffd98a; } .g-penalty .g-play { background: linear-gradient(180deg, #ffffff, #c9f2d6); color: #0b3a24; }
.ps-penalty { background: radial-gradient(120% 120% at 100% 0%, rgba(255,250,220,.35), transparent 60%), linear-gradient(135deg, #1a7f45, #06101f) !important; }

/* ---------- LUCKY SCRATCH: emerald and gold lottery ticket ---------- */
body.scratch-mode {
  background: radial-gradient(640px 420px at 50% -10%, rgba(60,220,120,.32), transparent 62%), radial-gradient(500px 380px at 100% 110%, rgba(255,210,63,.18), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 10px, transparent 10px 20px), #052e1c;
  background-attachment: fixed;
}
body.scratch-mode .topbar { background: rgba(4,30,18,.92); border-bottom-color: rgba(255,210,63,.35); }
body.scratch-mode .tabbar { background: rgba(4,26,16,.96); border-top-color: rgba(255,210,63,.35); }
body.scratch-mode .game-bar button { border-color: rgba(255,210,63,.4); background: rgba(255,210,63,.08); }
#tab-scratch { color: #f2fff6; }
.sc-ticket { margin-top: 10px; padding: 12px; border-radius: 22px; color: #3a2a00; position: relative;
  background: radial-gradient(120% 70% at 50% 0%, #fff8dc, #ffe9a6 60%, #f5c94a);
  box-shadow: 0 0 0 3px #0f7a4a, 0 0 0 6px #ffd23f, 0 18px 36px rgba(0,0,0,.5);
  -webkit-mask: radial-gradient(circle 9px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 9px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat; }
.sc-head { display: flex; align-items: center; justify-content: center; gap: 10px; font: 900 24px/1 'Arial Black', Arial, sans-serif; letter-spacing: .06em; color: #0f7a4a; text-shadow: 0 2px 0 #fff; }
.sc-head span { font-size: 20px; }
.sc-sub { text-align: center; font-size: 12.5px; font-weight: 800; color: #7a5200; margin: 4px 0 10px; letter-spacing: .04em; text-transform: uppercase; }
.sc-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px; border-radius: 16px; background: #0f7a4a; box-shadow: inset 0 3px 10px rgba(0,0,0,.35); touch-action: none; }
.sc-box { aspect-ratio: 1.15; border-radius: 10px; background: #fffdf2; display: grid; place-items: center; transition: transform .25s, box-shadow .25s, opacity .25s; }
.sc-foil { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 16px; cursor: grab; touch-action: none; }
.sc-token { --tc: #ccc; display: grid; place-items: center; text-align: center; width: 84%; aspect-ratio: 1; max-height: 92%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--tc) 70%); box-shadow: inset 0 -4px 0 rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.25); }
.sc-token span { font-size: clamp(16px, 6vw, 26px); line-height: 1; }
.sc-token b { font: 900 clamp(12px, 4vw, 16px)/1 'Arial Black', Arial, sans-serif; color: #2a1a00; text-shadow: 0 1px 0 rgba(255,255,255,.6); margin-top: -6px; }
.sc-box.match { box-shadow: 0 0 0 3px #ffd23f, 0 0 18px rgba(255,210,63,.95); transform: scale(1.05); animation: scGlow .8s ease-in-out infinite alternate; }
.sc-box.dim { opacity: .45; }
@keyframes scGlow { to { box-shadow: 0 0 0 3px #fff, 0 0 26px rgba(255,210,63,1); } }
.sc-win { text-align: center; margin-top: 10px; font-weight: 800; font-size: 15px; color: #0f5a36; min-height: 20px; }
.sc-win.won { color: #b0121b; font-size: 17px; } .sc-win b { font-size: 19px; }
.sc-panel { background: rgba(6,58,36,.85); border-color: rgba(255,210,63,.35); }
.sc-btns { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.sc-btns .sc-reveal.hidden + *, .sc-btns:has(.sc-reveal.hidden) { grid-template-columns: 1fr; }
.sc-go { background: linear-gradient(180deg, #fff07a, #ffd23f 50%, #e0a000); color: #3a2400; box-shadow: 0 6px 22px rgba(255,210,63,.4); }
.sc-go.stop { background: linear-gradient(180deg, #ff7aa8, #e0287a); color: #fff; }
.sc-reveal { padding: 0 16px; font-size: 14px; letter-spacing: .06em; background: linear-gradient(180deg, #e6ebf2, #9aa6b6); color: #1d2433; }
.sc-mini { display: inline-flex; gap: 2px; margin-left: 4px; vertical-align: middle; }
.sc-mini i { font: 800 9px/14px system-ui, sans-serif; font-style: normal; min-width: 16px; text-align: center; border-radius: 4px; color: #1a1200; }
.g-scratch { background: linear-gradient(135deg, #0f7a4a, #052e1c 70%); border-color: rgba(255,210,63,.6); color: #f2fff6; }
.g-scratch .g-art { background: #063a24; }
.g-scratch .g-status { color: #ffd23f; } .g-scratch .g-play { background: linear-gradient(180deg, #fff07a, #ffd23f); color: #3a2400; }
.ps-scratch { background: radial-gradient(120% 120% at 80% 0%, #1fae66, #052e1c 70%) !important; }

/* ---------- PHARAOH'S GOLD: sandstone, lapis and gold ---------- */
body.pharaoh-mode {
  background: radial-gradient(640px 420px at 50% -10%, rgba(242,193,78,.3), transparent 62%), radial-gradient(520px 400px at 50% 120%, rgba(200,110,40,.35), transparent 60%),
    linear-gradient(180deg, #1a0f3a 0%, #2a1440 45%, #5a2a14 100%);
  background-attachment: fixed;
}
body.pharaoh-mode .topbar { background: rgba(26,15,58,.92); border-bottom-color: rgba(242,193,78,.4); }
body.pharaoh-mode .tabbar { background: rgba(26,12,40,.96); border-top-color: rgba(242,193,78,.4); }
body.pharaoh-mode .game-bar button { border-color: rgba(242,193,78,.4); background: rgba(242,193,78,.08); }
#tab-pharaoh { color: #fff4dc; }
.ph-machine { margin-top: 10px; padding: 10px; border-radius: 20px; position: relative;
  background: repeating-linear-gradient(90deg, rgba(90,50,10,.14) 0 2px, transparent 2px 22px), linear-gradient(180deg, #e9c27a, #c8913a 40%, #a8742a);
  box-shadow: 0 0 0 3px #5a3410, 0 0 0 5px #f2c14e, 0 0 30px rgba(242,193,78,.35), 0 18px 36px rgba(0,0,0,.6); }
.ph-machine::before { content: ''; display: block; height: 16px; margin: 0 4px 4px; background: var(--ph-glyphs) center / auto 100% repeat-x; }
.ph-top { display: flex; align-items: center; justify-content: center; gap: 10px; }
.ph-title { font: 900 22px/1 Georgia, 'Times New Roman', serif; letter-spacing: .1em; color: #3a1c00; text-shadow: 0 1px 0 rgba(255,240,200,.8); }
.ph-title b { color: #1f4fd1; text-shadow: 0 0 8px rgba(255,240,200,.6); }
.ph-torch { width: 14px; height: 22px; border-radius: 50% 50% 40% 40%; background: radial-gradient(circle at 50% 70%, #fff3b0, #ff9f1a 50%, #ff4d1a); box-shadow: 0 0 14px #ff9f1a; animation: phFlame .3s ease-in-out infinite alternate; }
@keyframes phFlame { to { transform: scaleY(1.15) translateY(-1px); filter: brightness(1.15); } }
.ph-free { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin: 8px 0 0; padding: 7px; border-radius: 12px; background: #10204a; color: #fff; font-size: 12.5px; font-weight: 800; }
.ph-free b { color: #f2c14e; letter-spacing: .06em; width: 100%; text-align: center; } .ph-free span b { width: auto; }
.ph-reels { --cell: 64px; position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 8px; padding: 5px; border-radius: 12px; background: #2a1a10; box-shadow: inset 0 4px 12px rgba(0,0,0,.7); }
.ph-reel { height: calc(var(--cell) * 3); overflow: hidden; border-radius: 8px; background: linear-gradient(180deg, #0b1838, #183a8c 50%, #0b1838); box-shadow: inset 0 10px 14px -8px rgba(0,0,0,.7), inset 0 -10px 14px -8px rgba(0,0,0,.7); }
.ph-reel.wild { box-shadow: 0 0 0 2px #f2c14e, 0 0 18px rgba(242,193,78,.8); background: linear-gradient(180deg, #5a0a10, #b0121b 50%, #5a0a10); }
.ph-strip { will-change: transform; }
.ph-cell { height: var(--cell); display: grid; place-items: center; }
.ph-cell svg { width: 86%; height: 86%; filter: drop-shadow(0 2px 2px rgba(0,0,0,.45)); }
.ph-cell.ph-tall { height: calc(var(--cell) * 3); }
.ph-cell.ph-tall svg { width: 100%; height: 100%; animation: phWild .6s ease-out; }
@keyframes phWild { from { transform: scaleY(.3); opacity: .3; } }
.ph-cell.glow svg { animation: phGlow .5s ease-in-out infinite alternate; }
@keyframes phGlow { to { filter: drop-shadow(0 0 10px #f2c14e) brightness(1.25); transform: scale(1.06); } }
.ph-lines { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); pointer-events: none; }
.ph-lines polyline { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: .92; filter: drop-shadow(0 0 4px rgba(0,0,0,.7)); vector-effect: non-scaling-stroke; animation: svLine .5s ease-out; }
.ph-win { text-align: center; margin-top: 8px; padding: 8px; border-radius: 12px; background: #10204a; color: #fff4dc; font-weight: 800; font-size: 14.5px; min-height: 20px; }
.ph-win b { color: #f2c14e; font-size: 17px; }
.ph-machine.freemode { box-shadow: 0 0 0 3px #5a3410, 0 0 0 5px #3fb8c9, 0 0 36px rgba(63,184,201,.6), 0 18px 36px rgba(0,0,0,.6); }
.ph-panel { background: rgba(26,15,58,.85); border-color: rgba(242,193,78,.35); }
.ph-go { background: linear-gradient(180deg, #ffe7a0, #f2c14e 45%, #b07a12); color: #2a1600; box-shadow: 0 6px 22px rgba(242,193,78,.4), inset 0 1px 0 rgba(255,255,255,.6); }
.ph-go.stop { background: linear-gradient(180deg, #ff7aa8, #e0287a); color: #fff; }
.ph-mini { display: inline-block; width: 24px; height: 24px; vertical-align: middle; } .ph-mini svg { width: 100%; height: 100%; }
.ph-pay td:first-child { white-space: nowrap; }
.g-pharaoh { background: linear-gradient(135deg, #7a3a12, #1a0f3a 70%); border-color: rgba(242,193,78,.6); color: #fff4dc; }
.g-pharaoh .g-art { background: #1a0f3a; }
.g-pharaoh .g-status { color: #f2c14e; } .g-pharaoh .g-play { background: linear-gradient(180deg, #ffe7a0, #f2c14e); color: #2a1600; }
.ps-pharaoh { background: radial-gradient(120% 120% at 80% 0%, #b06a20, #1a0f3a 70%) !important; }
@media (max-width: 360px) { .ph-reels { --cell: 56px; } .ph-title { font-size: 19px; } }

:is(.g-rocket, .g-jet, .g-penalty, .g-scratch, .g-pharaoh) .g-info b { color: #fff; }
:is(.g-rocket, .g-jet, .g-penalty, .g-scratch, .g-pharaoh) .g-art svg { width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) { .cx-go.cash, .sc-box.match, .ph-torch, .ph-cell.glow svg { animation: none; } }
html.lite .cx-go.cash, html.lite .ph-torch { animation: none; }

/* Galaxy Rush in Stitch's "Vortex Arcade" look (2026-10-25, the owner's Stitch export): the Pod Alpha / Pod Beta bet
   consoles (def.podNames in casino2.js), Space Grotesk numbers, a cyan warp multiplier. The tag on each pod reads the
   button's state with :has() (older browsers just leave it empty). Galaxy Rush only. */
#tab-rocket .cx-recent { background: #171b2b; }
#tab-rocket .cx-recent i { font-family: 'Space Grotesk', system-ui, sans-serif; background: #1b1f30; color: #b9cacb; }
#tab-rocket .cx-recent i.mid { color: #00f0ff; background: #1b1f30; }
#tab-rocket .cx-recent i.big { color: #feb700; background: #1b1f30; }
.cx-rocket .cx-hud b { font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; letter-spacing: -.01em; }
.cx-rocket .cx-hud b.flying { color: #00f0ff; text-shadow: 0 0 18px rgba(0,240,255,.75), 0 0 2px #000, 0 4px 16px rgba(0,0,0,.7); }
.cx-rocket .cx-hud small { background: rgba(10,13,29,.82); font-family: 'Space Grotesk', system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; font-size: 11.5px; color: #dbfcff; }
#tab-rocket .cx-bet { background: #171b2b; border: 1px solid rgba(185,202,203,.14); border-radius: 16px; gap: 8px; transition: border-color .3s, box-shadow .3s; }
#tab-rocket .cx-podh { display: flex; align-items: center; justify-content: space-between; gap: 4px; font: 700 10.5px 'Space Grotesk', system-ui, sans-serif; letter-spacing: .05em; color: #fff; }
#tab-rocket .cx-podh span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#tab-rocket .cx-podtag { flex: none; white-space: nowrap; }
#tab-rocket .cx-podtag { font-style: normal; font: 700 9.5px 'Space Grotesk', system-ui, sans-serif; letter-spacing: .1em; padding: 2px 7px; border-radius: 6px; background: rgba(254,183,0,.15); color: #feb700; }
#tab-rocket .cx-bet .cx-podtag::after { content: 'STANDBY'; }
#tab-rocket .cx-bet:has(.cx-go.cancel) .cx-podtag::after { content: 'ACTIVE'; }
#tab-rocket .cx-bet:has(.cx-go.wait) .cx-podtag::after { content: 'QUEUED'; }
#tab-rocket .cx-bet:has(.cx-go.cash) .cx-podtag::after { content: 'IN FLIGHT'; }
#tab-rocket .cx-bet:has(.cx-go.won) .cx-podtag::after { content: 'WON'; }
#tab-rocket .cx-bet:has(.cx-go.lost) .cx-podtag::after { content: 'LOST'; }
#tab-rocket .cx-bet:has(.cx-go.cancel) .cx-podtag, #tab-rocket .cx-bet:has(.cx-go.wait) .cx-podtag { background: rgba(0,240,255,.15); color: #00f0ff; }
#tab-rocket .cx-bet:has(.cx-go.won) .cx-podtag { background: rgba(61,245,160,.15); color: #3df5a0; }
#tab-rocket .cx-bet:has(.cx-go.lost) .cx-podtag { background: rgba(255,46,99,.18); color: #ff6b8a; }
#tab-rocket .cx-bet:has(.cx-go.cash) { border-color: rgba(254,183,0,.55); box-shadow: 0 0 22px -8px #feb700; }
#tab-rocket .cx-bet:has(.cx-go.won) { border-color: rgba(61,245,160,.55); }
#tab-rocket .cx-bet:has(.cx-go.lost) { border-color: rgba(255,46,99,.5); }
#tab-rocket .cx-podk { font: 600 9.5px 'Space Grotesk', system-ui, sans-serif; letter-spacing: .12em; color: #b9cacb; text-transform: uppercase; margin-bottom: -3px; }
#tab-rocket .cx-step { background: #0a0d1d; border-radius: 12px; padding: 4px; }
#tab-rocket .cx-step button { border: 0; background: #26293a; border-radius: 9px; width: 32px; height: 32px; }
#tab-rocket .cx-step b { font: 700 19px 'Space Grotesk', system-ui, sans-serif; color: #fff; }
#tab-rocket .cx-step b::after { content: ' CR'; font-size: 11px; color: #b9cacb; }
#tab-rocket .cx-quick button { border: 0; background: #1b1f30; font-family: 'Space Grotesk', system-ui, sans-serif; }
#tab-rocket .cx-auto { background: #0a0d1d; border-radius: 10px; padding: 5px 8px; font-family: 'Space Grotesk', system-ui, sans-serif; color: #b9cacb; opacity: 1; }
#tab-rocket .cx-auto input[type=number] { background: transparent; border: 0; color: #fff; font: 700 15px 'Space Grotesk', system-ui, sans-serif; text-align: right; }
#tab-rocket .cx-go { border-radius: 14px; font-family: 'Outfit', system-ui, sans-serif; font-weight: 800; }
#tab-rocket [data-cxslot="0"] .cx-go { background: #00f0ff; color: #00363a; box-shadow: 0 0 22px -4px #00f0ff; }
#tab-rocket [data-cxslot="1"] .cx-go { background: #feb700; color: #412d00; box-shadow: 0 0 22px -4px #feb700; }
#tab-rocket .cx-list { background: #171b2b; border-color: rgba(185,202,203,.14); }
#tab-rocket .cx-listhead { font-family: 'Space Grotesk', system-ui, sans-serif; color: #fff; opacity: 1; }
#tab-rocket .cx-row { font-family: 'Space Grotesk', system-ui, sans-serif; }
