/* v48 rendering keeps gold artwork and confines animated paint to its scene. */
#board,.shuffle-stage,.coin-space,.reel{contain:layout paint}.casino-face{contain:paint}.shuffle-card,.coin-disc{backface-visibility:hidden}
@media(pointer:coarse){dialog::backdrop{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}}
html.phakbet-page-hidden *,html.phakbet-page-hidden *::before,html.phakbet-page-hidden *::after{animation-play-state:paused!important}
#smooth-demo{color:#fff3d4;background:#0c2b23;border:2px solid #d4ae63;border-radius:18px;width:min(540px,calc(100vw - 28px));max-height:88dvh;padding:24px;overflow:auto;font:16px/1.6 system-ui;box-sizing:border-box;position:fixed;inset:0;margin:auto}#smooth-demo::backdrop{background:#03110de8}#smooth-demo h2{font:32px Georgia;margin:10px 0}#smooth-demo button{min-height:44px;padding:10px 16px;border:1px solid #d4ae63;border-radius:8px;background:#173f32;color:#fff3d4;font:inherit;cursor:pointer}#smooth-demo button:focus-visible{outline:3px solid white;outline-offset:3px}#smooth-demo .smooth-controls{display:flex;gap:8px;flex-wrap:wrap}#smooth-demo .sample{height:150px;background:linear-gradient(120deg,#174938,#0b211c);border:1px solid #dfbd76;border-radius:12px;position:relative;overflow:hidden;margin:18px 0}#smooth-demo .sample span{position:absolute;top:55px;left:8%;width:38px;height:38px;border-radius:50%;background:radial-gradient(circle at 30% 25%,#fff4ba,#c08b39);box-shadow:0 5px 10px #0008;animation:smooth-sample 2.7s ease-in-out infinite alternate}#smooth-demo .sample b{position:absolute;left:45%;top:60px;color:#82dcb8}#smooth-demo.paused .sample span{animation-play-state:paused}#smooth-demo .eyebrow{font:10px system-ui;letter-spacing:2px;color:#e4c582}.smooth-demo-open{font:inherit;cursor:pointer}
@keyframes smooth-sample{to{transform:translateX(330px) rotate(360deg)}}@media(max-width:500px){@keyframes smooth-sample{to{transform:translateX(190px) rotate(360deg)}}}@media(prefers-reduced-motion:reduce){#smooth-demo .sample span{animation:none;left:70%}}

/* Keep the ornate gold frame; avoid rerasterizing large filtered surfaces behind play. */
body[data-casino="39"]>header,.panel,.pause-cover{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
body[data-casino="39"]::before{transform:translateZ(0)!important}
body[data-casino="39"] .premium-frame{box-shadow:inset 0 0 0 1px #fff0bd70,0 0 0 1px #624114!important}
.premium-rim::before{animation:none!important;opacity:.55}
@media(pointer:coarse){.guardian,.feature-character,.atlas-art,.battle-art{filter:none!important}.panel{box-shadow:inset 0 1px #e6c37a33!important}}

.slots-page img.atlas-art{object-fit:contain}.slots-page #reels .atlas-art{filter:none!important}.slots-page .feature-character{filter:none!important}.slots-page .machine{contain:layout paint}.slots-page .reel-strip{backface-visibility:hidden}
body.bright-play #board{filter:none!important}.canvas-wrap canvas,.arena-wrap canvas{transform:translateZ(0);border-radius:0}.canvas-wrap,.arena-wrap{contain:layout paint;box-shadow:none!important}.arena-wrap .pause{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:#21172be8}

/* A narrow gold edge avoids a full-board masked, translucent rendering surface. */
body[data-casino="39"] .premium-frame>.premium-rim{background:none!important;-webkit-mask:none!important;mask:none!important;border:1px solid #fff0b980;box-shadow:inset 0 0 0 1px #81552255;padding:0!important}
.premium-rim::before{display:none!important}.premium-rim::after{inset:0 auto auto 20%;width:30%;height:2px;background:linear-gradient(90deg,transparent,#fff4c5,transparent);border-radius:2px;animation:phakbet-gold-glint 7s ease-in-out infinite}
/* Automatic, session-local quality adjustment touches only ornament, never rules or state. */
html.phakbet-balanced body *,html.phakbet-balanced body *::before,html.phakbet-balanced body *::after{filter:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;text-shadow:none!important;box-shadow:none!important}
html.phakbet-balanced .premium-rim::after{animation:none!important;opacity:.6}
html.phakbet-balanced .machine::after{display:none!important}
html.phakbet-balanced .feature-character{animation:none!important}
html.phakbet-balanced body[data-casino="39"] :is(.panel,.auth,.powers,.history-panel,.heading,.intro-row,.game-top){background:#102d24!important}
html.phakbet-balanced .machine{background:#142b23!important}
html.phakbet-balanced .feature-trio,html.phakbet-balanced .feature-trio>div{background:none!important}

/* The fitted Drop arena is opaque and covers the lobby; avoid painting its hidden scenery. */
body.phone-arena[data-casino="39"]::before,body.phone-arena[data-casino="39"]::after{display:none!important}
/* Opaque modal backdrops keep moving cards independent of the obscured table. */
@media(pointer:coarse){.deal-show::backdrop{background:#031510!important}.deal-show{background:#123d30!important}.shuffle-stage{perspective:none}.shuffle-deck{transform:none}.shuffle-card{background:#1b4d3d!important}}

@media(pointer:coarse){.dragon-victory::backdrop,#result::backdrop{background:#071b15!important}}

/* Keep the guardians and flame fountain; skip the viewport-sized masked rotating halo. */
html.phakbet-balanced .victory-halo{display:none!important}
