/* BUILD 312(老板:「首屏减重」「游戏流畅度」「进游戏前的 loading 画面」)
 *  ① 进场画面 .gload(loader.js 画):这款的封面糊成背景 + 封面卡 + 名字 + 进度条
 *  ② 老虎机转轴顺滑:转动中的条带里每一格以前各自是一层(will-change / translate3d)+ 图上挂 drop-shadow 滤镜 —— 150 多个带滤镜的层每帧重画,
 *     中档手机 17fps。现在条带整条一层、格子不单独成层、转动中的图不挂滤镜(停下来的盘面照旧有影子,画面不变)。 */

/* ── 进场画面 ── */
.gload{position:fixed;inset:0;z-index:9000;display:flex;align-items:center;justify-content:center;background:#07070b;opacity:0;pointer-events:none;transition:opacity .28s ease}
.gload.on{opacity:1;pointer-events:auto}
.gload.out{opacity:0;pointer-events:none}
.gload .gl-bg{position:absolute;inset:-40px;background:center/cover no-repeat;filter:blur(28px) saturate(1.2) brightness(.45);transform:scale(1.1)}
.gload .gl-bg::after{content:"";position:absolute;inset:0;background:radial-gradient(60% 50% at 50% 40%,rgba(0,0,0,0),rgba(7,7,11,.75))}
.gload .gl-card{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;width:min(280px,78vw);text-align:center;animation:glIn .35s cubic-bezier(.2,.8,.3,1)}
@keyframes glIn{from{opacity:0;transform:translateY(10px) scale(.97)}to{opacity:1;transform:none}}
.gload .gl-art{width:100%;aspect-ratio:4/3;border-radius:18px;overflow:hidden;border:1px solid rgba(233,196,106,.45);box-shadow:0 20px 50px rgba(0,0,0,.6),0 0 0 1px rgba(0,0,0,.4);background:#0b0f18}
.gload .gl-art img{display:block;width:100%;height:100%;object-fit:cover}
.gload .gl-eye{display:block;margin:18px 0 4px;font:700 10.5px/1 "Chakra Petch",system-ui,sans-serif;letter-spacing:.3em;text-transform:uppercase;color:#c9a35a}
.gload .gl-name{display:block;font:800 22px/1.15 var(--display,system-ui),system-ui,sans-serif;letter-spacing:.04em;color:#fff;text-shadow:0 2px 10px rgba(0,0,0,.6)}
.gload .gl-bar{width:100%;height:5px;margin-top:16px;border-radius:5px;background:rgba(255,255,255,.12);overflow:hidden}
.gload .gl-bar span{display:block;height:100%;width:4%;border-radius:5px;background:linear-gradient(90deg,#ffe08a,#e9b43a 60%,#ffd166);box-shadow:0 0 10px rgba(255,209,102,.7);transition:width .25s ease}
.gload .gl-hint{margin:10px 0 0;font-size:12px;color:rgba(255,255,255,.6)}
.gload.fail .gl-hint{color:#ff8a8a}
.gload.fail{cursor:pointer}
@media(orientation:landscape) and (max-height:520px){.gload .gl-card{flex-direction:row;width:min(520px,86vw);text-align:left;gap:18px}.gload .gl-card .gl-art{width:44%;flex:0 0 44%}.gload .gl-eye{margin-top:0}.gload .gl-card > :not(.gl-art){width:auto}.gload .gl-bar,.gload .gl-hint{width:100%}}
@media(prefers-reduced-motion:reduce){.gload .gl-card{animation:none}}

/* ── 老虎机转轴:条带里的格子不单独成层、转动中的图不挂滤镜 ── */
.sc-strip .sc-c{will-change:auto;backface-visibility:visible;contain:none;transition:none}
.sc-strip .sc-c img,.sc-strip .sc-c .cv{filter:none !important;transition:none}
/* 注意:.sc-strip 不能 contain:paint —— 条带本身只有一格高,格子往下排了几十格,paint 包住就只剩第一格(BUILD 312 第一版的 bug) */


/* ══ BUILD 314(老板截图:「这 6 个大图一定是在最下面的」—— 鱼虾蟹 / 闪电鱼虾蟹)══
   BUILD 264 把押过的大牌(.mine / .staged)抬到 z 6,比走道上的双图案小牌(z 5)高,押了注的大牌就把旁边的小牌压住一截。
   大牌永远在最底层(任何状态),15 块小牌永远浮在上面;筹码在大牌正中,不碰小牌。 */
#app .fswrap .fbx.v4 .fs4t,#app .fswrap .fbx.v4 .fs4t.mine,#app .fswrap .fbx.v4 .fs4t.staged,#app .fswrap .fbx.v4 .fs4t.won,#app .fswrap .fbx.v4 .fs4t.hitnow{z-index:1}
#app .fswrap .fbx.v4 .fs4b{z-index:5}
#app .fswrap .fbx.v4 .fs4b.mine,#app .fswrap .fbx.v4 .fs4b.staged{z-index:6}
#app .fswrap .fbx.v4 .fs4b.won,#app .fswrap .fbx.v4 .fs4b.hitnow{z-index:7}

/* BUILD 507:进场时游戏画面先藏着,东西全部到齐才给看(loader.js enter) */
body.gl-wait main.view:not(#lobby){visibility:hidden}
