:root {
  --bg: #f5f5f7;
  --card: #fff;
  --text: #1d1d1f;
  --muted: #86868b;
  --chip: #e8e8ed;
  --primary-bg: #1d1d1f;
  --primary-fg: #fff;
  --glass: rgba(255, 255, 255, .62);
  --spring: cubic-bezier(.3, 1.3, .4, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
  --rounded: ui-rounded, -apple-system, "SF Pro Rounded", sans-serif;
}
/* 整站固定深色（不跟随手机的浅色/深色设置）；上面是原来的浅色值，留着以后想加切换时用 */
:root {
  color-scheme: dark;
  --bg: #000; --card: #1c1c1e; --text: #f5f5f7; --muted: #98989d; --chip: #2c2c2e;
  --primary-bg: #fff; --primary-fg: #000; --glass: rgba(30, 30, 32, .6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body {
  background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 17px; line-height: 1.45; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
.muted { color: var(--muted); }
.center { text-align: center; margin-top: 14px; font-size: 15px; }
.small-text { font-size: 14px; }

/* 顶部玻璃导航 */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top));
  padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right));   /* 横屏时别被刘海挡住 */
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(190%); backdrop-filter: blur(22px) saturate(190%);
}
.brand { white-space: nowrap; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.points-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px; background: var(--chip);
  font-family: var(--rounded); font-weight: 600; font-size: 16px;
}

main { max-width: 720px; margin: 0 auto; padding: 8px 16px 48px; }
.card { background: var(--card); border-radius: 26px; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 17px;
  white-space: nowrap; flex: none;
  transition: transform .35s var(--spring);
}
.btn:active { transform: scale(.96); }
.btn.primary { background: var(--primary-bg); color: var(--primary-fg); }
.btn.secondary { background: var(--chip); }
.btn.text { color: var(--muted); font-weight: 500; }
.btn.small { height: 40px; padding: 0 18px; font-size: 15px; }

/* 积分卡 */
.hero { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 18px 22px; overflow: hidden; }
.hero > * { position: relative; }
.hero::before { /* 一团光晕 */
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  background: radial-gradient(closest-side, rgba(255, 149, 0, .35), transparent);
}
.hero-label { color: #ff9500; font-weight: 600; font-size: 14px; }
.hero-btns { display: flex; flex-direction: column; gap: 6px; }   /* 获取积分 + 积分兑换，上下排 */
.hero-btns .btn { height: 36px; padding: 0 16px; }
.cf-box { display: flex; justify-content: center; margin-top: 12px; }   /* 人机验证：平时是空的，要点的时候才出现 */
.cf-box:empty { display: none; }
.hero-num {
  font-family: var(--rounded); font-weight: 600; font-size: 44px; line-height: 1.1;
}

/* 分类胶囊 */
.chips { display: flex; gap: 8px; margin: 16px 0 12px; overflow-x: auto; scrollbar-width: none; }
.chip { padding: 7px 16px; border-radius: 999px; background: var(--chip); font-size: 15px; white-space: nowrap; }
.chip.on { background: var(--primary-bg); color: var(--primary-fg); }

/* 游戏网格 */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.game {
  display: flex; flex-direction: column; align-items: center; padding: 14px 6px 12px; text-align: center; border-radius: 22px;
  transition: transform .35s var(--spring);
}
.game:active { transform: scale(.96); }
.game.soon .icon { opacity: .55; }
.icon {
  position: relative; width: 54px; aspect-ratio: 1; border-radius: 23%;
  display: grid; place-items: center; margin-bottom: 8px; overflow: hidden;
  background: color-mix(in srgb, var(--tint) 14%, transparent);
}
.icon::before { /* 同色柔光 */
  content: ""; position: absolute; inset: 15%; border-radius: 50%;
  background: var(--tint); filter: blur(14px); opacity: .45;
}
.icon span { position: relative; font-size: 34px; line-height: 1; }
.game-name { font-weight: 600; font-size: 15px; }
.game-meta { font-size: 12px; }

/* 底部横幅 */
.banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; margin-top: 22px; }
.banner-title { font-weight: 600; }
.banner .muted { font-size: 14px; }

/* 游戏页 */
.game-head { display: flex; flex-direction: column; gap: 0; margin: 4px 0 10px; }
.game-title-row { display: flex; align-items: center; gap: 10px; }   /* 底注 / 每局积分 放在游戏名右边，省出一行 */
.game-head-meta { padding: 3px 10px; border-radius: 999px; background: var(--chip); color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; }
.back { color: #007aff; font-size: 17px; margin-bottom: 2px; }
.game-head-title { font-size: 28px; font-weight: 600; letter-spacing: -.01em; }
.stage { min-height: 340px; display: grid; place-items: center; padding: 24px; }
.placeholder { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.placeholder .btn { margin-top: 12px; }
.big-emoji { font-size: 64px; }

/* 猜大小 */
.dice-box { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.dice { font-size: 96px; line-height: 1; }
.dice.rolling { animation: roll .35s linear infinite; }
@keyframes roll { to { transform: rotate(360deg); } }
.dice-btns { display: flex; gap: 12px; }
.dice-btns .btn { width: 110px; }

/* 底部弹窗（iOS sheet） */
.sheet-mask {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, 0); transition: background .3s;
}
.sheet-mask.show { background: rgba(0, 0, 0, .35); }
.sheet {
  width: 100%; max-width: 520px; background: var(--card); border-radius: 36px 36px 0 0;
  padding: 10px 24px max(24px, env(safe-area-inset-bottom)); text-align: center;
  max-height: 100%; overflow-y: auto;
  transform: translateY(100%); transition: transform .45s var(--spring);
}
.sheet-mask.show .sheet { transform: none; }
@media (min-width: 600px) {
  .sheet-mask { align-items: center; }
  .sheet { border-radius: 36px; padding-bottom: 24px; }
}
.grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--chip); margin: 0 auto 18px; }
.sheet-icon { font-size: 56px; }
.sheet h2 { font-size: 22px; font-weight: 600; margin: 6px 0; }
.sheet-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }

/* 提示 */
.toast {
  position: fixed; left: 50%; top: calc(64px + max(12px, env(safe-area-inset-top))); z-index: 60; transform: translate(-50%, -10px); opacity: 0;
  /* 宽度按文字算、最宽到屏幕两边各留 16px：以前 left: 50% 让它最宽只有半个屏幕，手机上稍长的提示就挤成好几行的细长条 */
  width: max-content; max-width: calc(100% - 32px); text-align: center;
  padding: 10px 18px; border-radius: 22px; background: var(--glass); font-weight: 600;   /* 一行时和胶囊一样圆，两行时不会切到字 */
  -webkit-backdrop-filter: blur(22px) saturate(190%); backdrop-filter: blur(22px) saturate(190%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .08); transition: all .35s var(--spring);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before { transition: none !important; animation: none !important; }
}
.dice.num { font-family: var(--rounded); font-weight: 600; color: #ff9500; }


/* 背景彩色光晕：固定一层，画一次不做动画 */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 40% at 15% 0%, rgba(255, 149, 0, .55), transparent 70%),
    radial-gradient(55% 40% at 95% 12%, rgba(255, 45, 85, .45), transparent 70%),
    radial-gradient(70% 45% at 85% 70%, rgba(175, 82, 222, .38), transparent 70%),
    radial-gradient(60% 40% at 5% 95%, rgba(0, 122, 255, .35), transparent 70%);
}
body::before {   /* 深色背景用更浓的光晕 */
  background:
    radial-gradient(65% 45% at 15% 0%, rgba(255, 149, 0, .6), transparent 70%),
    radial-gradient(60% 45% at 95% 12%, rgba(255, 45, 85, .55), transparent 70%),
    radial-gradient(75% 50% at 85% 70%, rgba(175, 82, 222, .5), transparent 70%),
    radial-gradient(65% 45% at 5% 95%, rgba(0, 122, 255, .5), transparent 70%);
}

/* 首页介绍 */
.intro { padding: 22px 4px 18px; }
.intro h1 { font-size: 30px; font-weight: 600; letter-spacing: -.015em; line-height: 1.15; }
.intro h1 span { color: var(--muted); }

/* 弹窗里的分组列表（iOS 设置风格） */
.list { margin-top: 20px; background: var(--bg); border-radius: 20px; overflow: hidden; text-align: left; }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; font-size: 16px; }
.row + .row { border-top: .5px solid var(--chip); }
.row-icon {
  flex: none; width: 34px; height: 34px; border-radius: 23%; display: grid; place-items: center;
  background: var(--brand);
}
.row-icon i {
  width: 62%; height: 62%; background: #fff;
  -webkit-mask: var(--svg) center / contain no-repeat; mask: var(--svg) center / contain no-repeat;
}
.row-name { font-weight: 500; }
.row-value { margin-left: auto; font-size: 15px; white-space: nowrap; }
.row-arrow { color: var(--muted); font-size: 20px; line-height: 1; }

/* 牛牛 */
.nn { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.nn-side { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.nn-who { font-size: 14px; color: var(--muted); font-weight: 500; }
.nn-tag { color: var(--text); font-weight: 600; margin-left: 4px; }
.nn-hand { display: flex; gap: 6px; height: 92px; align-items: flex-end; }
.pk {
  width: 52px; height: 74px; border-radius: 9px; background: #fff; color: #1d1d1f;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .14);
  animation: deal .5s var(--spring) both; transition: transform .5s var(--spring);
}
.pk b { font-family: var(--rounded); font-size: 22px; font-weight: 600; }
.pk span { font-size: 20px; margin-top: 4px; }
.pk.red { color: #ff3b30; }
.pk.up { transform: translateY(-14px); }
.pk.back { background: linear-gradient(135deg, #ff9500, #ff2d55); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .5), 0 1px 4px rgba(0, 0, 0, .14); }
.pk.slot { background: var(--chip); box-shadow: none; animation: none; opacity: .6; }
@keyframes deal { from { opacity: 0; transform: translateY(-20px) scale(.9); } }
.nn-msg { font-size: 16px; font-weight: 600; min-height: 24px; text-align: center; }
.nn-msg.win { color: #34c759; }
.nn-msg.lose { color: var(--muted); }
.nn-btn { width: 200px; margin-top: 4px; }
.nn-btn:disabled { opacity: .4; }
.nn-mid { display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 92px; justify-content: center; }
.nn-msg.hot { color: #ff9500; }
.nn-msg.pop { font-family: var(--rounded); font-size: 30px; animation: pop .5s var(--spring); }
.nn-msg.win.pop { color: #34c759; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.nn-actions { display: flex; gap: 10px; min-height: 50px; }
.nn-half { width: 130px; }
.nn-half:disabled { opacity: .35; }
.nn-half small { display: block; font-family: var(--rounded); font-size: 11px; font-weight: 500; opacity: .7; }
.nn-half:has(small) { flex-direction: column; gap: 0; line-height: 1.15; }
/* 倒计时圆环 */
@property --p { syntax: "<number>"; inherits: true; initial-value: 1; }
.nn-timer {
  --p: 1; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--ring, #007aff) calc(var(--p) * 360deg), var(--chip) 0);
  transition: --p 1s linear;
}
.nn-timer span {
  width: 42px; height: 42px; border-radius: 50%; background: var(--card); display: grid; place-items: center;
  font-family: var(--rounded); font-size: 22px; font-weight: 600;
}
.nn-timer.urgent { --ring: #ff3b30; color: #ff3b30; }
.nn-timer.beat { animation: beat .35s var(--spring); }
@keyframes beat { 50% { transform: scale(1.15); } }
/* 等你搓的那张牌 */
.pk.tap-me { cursor: pointer; animation: wiggle 1s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* 斗地主 */
.stage.stage-ddz { padding: 14px 10px 18px; place-items: stretch; grid-template-columns: minmax(0, 1fr); }
.ddz { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; min-width: 0; }
.ddz-top { display: flex; justify-content: space-between; width: 100%; gap: 6px; }
.ddz-ai { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 38%; min-height: 108px; }
.ddz-ai.right { align-items: flex-end; }
.ddz-av {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 24px;
  position: relative; background: var(--chip); transition: box-shadow .3s;
}
.ddz-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ddz-ai.turn .ddz-av { box-shadow: 0 0 0 3px #007aff; }
.ddz-ai.lord .ddz-av::after { content: "👑"; position: absolute; top: -10px; right: -8px; font-size: 16px; }
.ddz-meta { display: flex; flex-direction: column; font-size: 13px; line-height: 1.25; }
.ddz-ai.right .ddz-meta { align-items: flex-end; }
.ddz-cnt { color: var(--muted); font-family: var(--rounded); }
.ddz-cnt.alarm { color: #ff3b30; font-weight: 600; }
.ddz-center { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 4px; }
.ddz-bottom { display: flex; gap: 3px; }
.ddz-mult { font-size: 12px; color: #ff9500; font-weight: 600; font-family: var(--rounded); }
.ddz-play { display: flex; flex-wrap: wrap; min-height: 36px; }
.ddz-ai.right .ddz-play { justify-content: flex-end; }
.ddz-play .dc.mini + .dc.mini { margin-left: -14px; }
.ddz-play.mine { justify-content: center; min-height: 46px; }
.ddz-pass { font-size: 13px; color: var(--muted); padding: 8px 0; }
.ddz-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 84px; justify-content: center; }
.ddz-who { font-size: 13px; color: var(--muted); font-weight: 500; }
.ddz-act { width: 92px; height: 46px; }
.ddz-act:disabled { opacity: .35; }

/* 斗地主的牌 */
.dc {
  flex: none; width: 44px; height: 62px; border-radius: 7px; background: #fff; color: #1d1d1f;
  display: flex; flex-direction: column; align-items: flex-start; padding: 4px 0 0 3px; line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18); cursor: pointer; user-select: none;
  animation: deal .4s var(--spring) both; transition: transform .25s var(--spring);
}
.dc b { font-family: var(--rounded); font-size: 15px; font-weight: 600; letter-spacing: -.06em; min-width: 12px; text-align: center; }
.dc span { font-size: 12px; margin-top: 2px; width: 12px; text-align: center; }
.dc.red { color: #ff3b30; }
.dc.joker b { font-size: 12px; }
.dc.joker span { font-size: 12px; }
.dc.mini { width: 28px; height: 40px; border-radius: 5px; padding: 3px 0 0 2px; cursor: default; }
.dc.mini b { font-size: 11px; min-width: 10px; }
.dc.mini span { font-size: 9px; width: 10px; }
.dc.back { background: linear-gradient(135deg, #ff9500, #ff2d55); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.ddz-hand { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 14px; width: 100%; touch-action: none; }
.ddz-row { display: flex; justify-content: center; }
.ddz-hand .dc { width: 46px; height: 64px; border-radius: 7px; padding: 4px 0 0 3px; }
.ddz-hand .dc + .dc { margin-left: var(--ov, 4px); }
.ddz-hand .dc b { font-size: 17px; min-width: 14px; }
.ddz-hand .dc span { font-size: 13px; width: 14px; }
.ddz-hand .dc.joker b, .ddz-hand .dc.joker span { font-size: 13px; }
.ddz-hand .dc.sel { transform: translateY(-12px); }
.ddz-hand.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
/* 电脑思考中：头像下面三个点 */
.ddz-ai .ddz-av::before {
  content: "···"; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  padding: 0 6px; border-radius: 999px; background: var(--card); box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
  font-size: 14px; line-height: 14px; font-weight: 700; letter-spacing: 1px; color: var(--muted);
  opacity: 0; transition: opacity .2s;
}
.ddz-ai.thinking .ddz-av::before { opacity: 1; animation: think 1s ease-in-out infinite; }
@keyframes think { 50% { color: #007aff; } }
/* 牛牛庄家 */
.nn-banker { display: flex; align-items: center; gap: 6px; }
.nn-banker img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.nn-banker b { color: var(--text); font-weight: 600; }

/* 猜大小（骰宝） */
.stage.stage-sb { padding: 14px 12px 18px; place-items: stretch; grid-template-columns: minmax(0, 1fr); }
.sb { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.sb-road { display: flex; gap: 4px; min-height: 22px; align-items: center; flex-wrap: wrap; justify-content: center; font-size: 13px; }
.sb-dot {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 600; color: #fff;
}
.sb-dot.big { background: #ff3b30; }
.sb-dot.small { background: #007aff; }
.sb-dot.tri { background: #34c759; }
/* 骰盅和骰子 */
.sb-table { position: relative; width: 220px; height: 150px; display: grid; place-items: end center; }
.sb-table::before { /* 托盘 */
  content: ""; position: absolute; bottom: 0; left: 10px; right: 10px; height: 64px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, #34c759 30%, var(--card)), color-mix(in srgb, #34c759 12%, var(--card)));
}
.sb-dice { position: relative; display: flex; gap: 8px; margin-bottom: 14px; transition: opacity .2s; }
.sb-dice.hidden-dice { opacity: 0; }
.die {
  width: 42px; height: 42px; border-radius: 10px; background: #fff; padding: 6px;
  display: grid; grid-template-columns: repeat(3, 1fr); place-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18), inset 0 -2px 0 rgba(0, 0, 0, .06);
}
.die i { width: 7px; height: 7px; border-radius: 50%; }
.die i.on { background: #1d1d1f; }
.die.red i.on { background: #ff3b30; }
.die.cover { transform: scale(.6); opacity: 0; }
.die.pop { animation: pop .45s var(--spring); }
.sb-cup {
  position: absolute; bottom: 8px; left: 50%; width: 176px; height: 128px; margin-left: -88px;
  border-radius: 88px 88px 30px 30px;
  background: linear-gradient(160deg, #ffb340, #ff9500 45%, #c86a00);
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, .18), 0 6px 14px rgba(0, 0, 0, .18);
  transition: transform .7s var(--spring), opacity .5s;
}
.sb-cup::after { /* 顶上的把手 */
  content: ""; position: absolute; top: -12px; left: 50%; width: 34px; height: 20px; margin-left: -17px;
  border-radius: 12px 12px 6px 6px; background: linear-gradient(#ffb340, #e08400);
}
.sb-cup.open { transform: translateY(-120px) rotate(-8deg); opacity: 0; }
.sb-cup.shake { animation: cupShake .18s ease-in-out infinite; }
@keyframes cupShake {
  0%, 100% { transform: translateX(0) rotate(0); }
  25% { transform: translateX(-9px) rotate(-6deg); }
  75% { transform: translateX(9px) rotate(6deg); }
}
.sb-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 84px; justify-content: center; }
/* 下注区 */
.sb-board { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.sb-area {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 64px; border-radius: 18px; background: var(--chip); transition: transform .3s var(--spring), background .2s;
}
.sb-area b { font-size: 22px; font-weight: 600; line-height: 1.1; }
.sb-area small { font-size: 12px; color: var(--muted); }
.sb-big b { color: #ff3b30; }
.sb-small b { color: #007aff; }
.sb-tri { grid-column: span 2; height: 52px; flex-direction: row; gap: 8px; }
.sb-tri b { color: #34c759; font-size: 18px; }
.sb-area.tap { animation: beat .3s var(--spring); }
.sb-area.has { box-shadow: inset 0 0 0 2px #ff9500; }
.sb-area.win { background: color-mix(in srgb, #34c759 22%, var(--chip)); }
.sb-area.lose { opacity: .45; }
.sb-bet {
  position: absolute; top: 6px; right: 8px; font-style: normal; font-family: var(--rounded); font-weight: 600;
  font-size: 13px; color: #fff; background: #ff9500; border-radius: 999px; padding: 1px 8px;
}
.sb-bet:empty { display: none; }
/* 筹码 */
.sb-chips { display: flex; gap: 14px; }
.sb-chip {
  width: 50px; height: 50px; border-radius: 50%; font-family: var(--rounded); font-weight: 600; font-size: 15px; color: #fff;
  transition: transform .3s var(--spring);
}
.nn-half:disabled { opacity: .35; }

/* 百家乐 */
.sb-dot.player { background: #007aff; }
.sb-dot.banker { background: #ff3b30; }
.sb-dot.tie { background: #34c759; }
.stage.stage-sb:has(.bjl) { padding: 12px 10px 16px; }

/* 庄家栏 */
.bj-dealer { display: flex; align-items: center; gap: 10px; width: 100%; padding: 2px 4px; }
.bj-dealer img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #1c1c1e, 0 0 0 4px #ff9500; }
.bj-dealer-meta { display: flex; flex-direction: column; line-height: 1.25; }
.bj-dealer-meta b { font-size: 16px; font-weight: 600; }
.bj-dealer-meta span { font-size: 12px; color: var(--muted); }
.bj-shoe {
  margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2;
  font-size: 11px; color: var(--muted);
}
.bj-shoe b { font-family: var(--rounded); font-size: 15px; color: var(--text); }

/* 绿色台呢 */
.bj-felt {
  position: relative; width: 100%; border-radius: 26px; padding: 14px 10px 12px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #1f7a4f 0%, #0d4a2f 55%, #072a1b 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 -20px 40px rgba(0, 0, 0, .25);
  display: flex; flex-direction: column; gap: 8px;
}
.bj-felt::before { /* 台面上的金色弧线 */
  content: ""; position: absolute; left: -15%; right: -15%; top: 168px; height: 260px; border-radius: 50%;
  border-top: 1.5px solid rgba(255, 204, 128, .45); pointer-events: none;
}
.bj-arc { text-align: center; font-size: 11px; letter-spacing: .08em; color: rgba(255, 220, 160, .7); }
.bj-felt .nn-msg { color: #fff; }
.bj-felt .nn-msg.lose { color: rgba(255, 255, 255, .6); }
.bj-felt .nn-msg.hot { color: #ffcc80; }
.bj-felt .nn-timer span { background: #0d4a2f; color: #fff; }
.bj-felt .sb-mid { min-height: 64px; gap: 4px; }
.bj-felt .nn-timer { width: 44px; height: 44px; }
.bj-felt .nn-timer span { width: 36px; height: 36px; font-size: 18px; }

/* 闲 / 庄 两边 */
.bj-table { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bj-side {
  border-radius: 18px; padding: 8px 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: rgba(0, 0, 0, .18); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--side) 45%, transparent);
  transition: box-shadow .4s, background .4s;
}
.bj-side.player { --side: #0a84ff; }
.bj-side.banker { --side: #ff453a; }
.bj-side.won { background: color-mix(in srgb, var(--side) 22%, rgba(0, 0, 0, .1)); box-shadow: inset 0 0 0 2px var(--side), 0 0 24px color-mix(in srgb, var(--side) 45%, transparent); }
.bj-head { display: flex; align-items: center; gap: 6px; color: #fff; height: 30px; }
.bj-head span { font-size: 20px; font-weight: 600; color: var(--side); }
.bj-head small { font-size: 10px; letter-spacing: .12em; color: rgba(255, 255, 255, .55); }
.bj-head em {
  font-style: normal; font-family: var(--rounded); font-weight: 600; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--side); color: #fff; font-size: 17px;
  box-shadow: 0 0 12px color-mix(in srgb, var(--side) 70%, transparent); animation: pop .4s var(--spring);
}
.bj-head em:empty { visibility: hidden; animation: none; }
.bj-cards { display: flex; height: 76px; align-items: center; justify-content: center; }
.bj-cards .pk + .pk { margin-left: -14px; }

/* 牌面：左上角标 + 中间大花色 */
.pk.bj {
  position: relative; width: 50px; height: 72px; border-radius: 8px; padding: 4px 0 0 5px;
  align-items: flex-start; justify-content: flex-start;
  background: linear-gradient(180deg, #fff, #f2f2f4); box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
}
.pk.bj b { font-size: 15px; line-height: 1; letter-spacing: -.04em; }
.pk.bj span { font-size: 11px; margin-top: 1px; }
.pk.bj u { position: absolute; right: 6px; bottom: 6px; font-size: 26px; line-height: 1; text-decoration: none; }
.pk.bj.back { padding: 4px; background: #fff; }
.pk.bj.back i {
  display: block; width: 100%; height: 100%; border-radius: 5px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .16) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .16) 0 2px, transparent 2px 7px),
    linear-gradient(160deg, #ff453a, #b3261e);
}

/* 下注区（在台呢上） */
.bj-board { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.bj-area {
  position: relative; grid-column: span 2; height: 54px; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff;
  background: rgba(0, 0, 0, .22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  transition: transform .3s var(--spring), background .25s, opacity .25s;
}
.bj-area b { font-size: 17px; font-weight: 600; line-height: 1.15; }
.bj-area small { font-size: 11px; color: rgba(255, 255, 255, .55); }
.bj-area.bj-player, .bj-area.bj-banker { grid-column: span 3; height: 66px; }
.bj-area.bj-player { box-shadow: inset 0 0 0 1.5px rgba(10, 132, 255, .7); }
.bj-area.bj-banker { box-shadow: inset 0 0 0 1.5px rgba(255, 69, 58, .7); }
.bj-area.bj-player b { color: #64b0ff; font-size: 24px; }
.bj-area.bj-banker b { color: #ff7a72; font-size: 24px; }
.bj-area.bj-tie b { color: #5fe08a; }
.bj-area.tap { animation: beat .3s var(--spring); }
.bj-area.has { background: rgba(255, 204, 128, .12); }
.bj-area.win { background: rgba(52, 199, 89, .3); }
.bj-area.lose { opacity: .4; }
/* 下在区里的筹码 */
.bj-chipbet {
  top: 50%; right: 8px; transform: translateY(-50%); width: 30px; height: 30px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; background: #ff9500;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .45), 0 2px 4px rgba(0, 0, 0, .4);
}

/* 珠盘路：6 行，从上到下、从左到右 */
.bj-roadbox { width: 100%; background: var(--card); border-radius: 18px; padding: 8px 10px 10px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.bj-roadhead { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.bj-roadhead i { font-style: normal; margin-left: 8px; font-family: var(--rounded); font-weight: 600; }
.bj-roadhead .r { color: #ff453a; } .bj-roadhead .b { color: #0a84ff; } .bj-roadhead .g { color: #30d158; }
.bj-road { display: grid; grid-template-rows: repeat(6, 1fr); grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; }
.bj-road > span { aspect-ratio: 1; }
.bj-road .sb-dot { width: auto; height: auto; font-size: 9px; }
.bj-empty { border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }

/* 赌场筹码（猜大小、百家乐共用） */
.sb-chip {
  position: relative; display: grid; place-items: center; color: #fff;
  background:
    repeating-conic-gradient(rgba(255, 255, 255, .85) 0 12deg, transparent 12deg 45deg),
    var(--chip-c);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .45);
}
.sb-chip::before {
  content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--chip-c);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6);
}
.sb-chip > span { position: relative; font-family: var(--rounded); font-weight: 700; font-size: 14px; }
.sb-chip.c0 { --chip-c: #0a84ff; }
.sb-chip.c1 { --chip-c: #bf5af2; }
.sb-chip.c2 { --chip-c: #ff375f; }
.sb-chip.c3 { --chip-c: #30d158; }
.sb-chip.c4 { --chip-c: #ff9f0a; }
.sb-chip.on { transform: translateY(-6px) scale(1.08); box-shadow: 0 0 0 3px #ff9500, 0 8px 14px rgba(0, 0, 0, .5); }

/* 轮盘 */
.rl-hist { margin-left: auto; display: flex; gap: 3px; }
.rl-hist span {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--rounded); font-size: 11px; font-weight: 600; color: #fff;
}
.rl-hist span:first-child { width: 30px; height: 30px; font-size: 14px; }
.rl-hist .red, .rl-n.red, .rl-result.red { background: #d0342c; }
.rl-hist .black, .rl-n.black, .rl-result.black { background: #2c2c2e; }
.rl-hist .green, .rl-n.green, .rl-result.green { background: #1f9d55; }

.rl-stage { position: relative; width: 184px; height: 184px; margin: 4px auto 0; }
.rl-wheel {
  position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 7px #4a2e14, 0 0 0 9px rgba(255, 204, 128, .55), 0 10px 26px rgba(0, 0, 0, .55);
}
.rl-wheel > span {   /* 号码：从圆心往上贴着外圈 */
  position: absolute; left: 50%; top: 0; width: 16px; margin-left: -8px; height: 50%;
  transform-origin: 50% 100%; text-align: center; padding-top: 3px;
  font-family: var(--rounded); font-size: 9px; font-weight: 700; color: #fff;
}
.rl-hub {   /* 中间的木色转轴 */
  position: absolute; inset: 27%; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #8a5a2b, #4a2e14 70%);
  box-shadow: inset 0 0 0 2px rgba(255, 204, 128, .45), 0 0 0 16px rgba(0, 0, 0, .28);
}
.rl-hub::after {   /* 转轴中心的金色十字 */
  content: ""; position: absolute; inset: 38%; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffe0a3, #c8902e);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .25);
}
.rl-pointer {
  position: absolute; z-index: 3; top: -12px; left: 50%; margin-left: -8px; width: 16px; height: 14px;
  background: linear-gradient(#ffe0a3, #e0a040); clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .5));
}
.rl-ballring { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.rl-ball {
  position: absolute; left: 50%; top: -4px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #c9c9cf);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .6); transition: top .9s cubic-bezier(.3, 1.3, .4, 1);
}
.rl-ball.in { top: 19px; }
.rl-result {
  position: absolute; z-index: 4; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px;
  border-radius: 50%; display: grid; place-items: center; color: #fff;
  font-family: var(--rounded); font-size: 28px; font-weight: 700;
  box-shadow: 0 0 0 3px #ffe0a3, 0 0 24px rgba(255, 224, 163, .6);
  opacity: 0; transform: scale(.4); transition: opacity .3s, transform .5s var(--spring);
}
.rl-result.show { opacity: 1; transform: none; }
.rl-felt .sb-mid { min-height: 48px; gap: 4px; }
.rl-felt { gap: 6px; padding-top: 16px; }
.rl-felt::before { top: 140px; }
.sb.rl { gap: 8px; }
.rl .sb-chip { width: 46px; height: 46px; }
.rl .bj-dealer img { width: 40px; height: 40px; }
.rl-felt .nn-timer { width: 40px; height: 40px; }
.rl-felt .nn-timer span { width: 32px; height: 32px; font-size: 16px; }

/* 下注台 */
.rl-table { display: flex; gap: 3px; }
.rl-n.rl-zero { width: 28px; flex: none; height: auto; border-radius: 10px 4px 4px 10px; font-size: 14px; }
.rl-grid { flex: 1; display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.rl-n {
  position: relative; height: 27px; border-radius: 5px; color: #fff;
  font-family: var(--rounded); font-size: 12px; font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: transform .3s var(--spring), opacity .25s;
}
.rl-row3, .rl-row6 { display: grid; gap: 4px; }
.rl-row3 { grid-template-columns: repeat(3, 1fr); }
.rl-row6 { grid-template-columns: repeat(6, 1fr); }
.rl-o {
  position: relative; height: 34px; border-radius: 10px; color: #fff; font-size: 15px; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
  background: rgba(0, 0, 0, .22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  transition: transform .3s var(--spring), background .25s, opacity .25s;
}
.rl-o small { font-size: 10px; font-weight: 400; color: rgba(255, 255, 255, .55); }
.rl-o.red-o { background: rgba(208, 52, 44, .75); }
.rl-o.black-o { background: rgba(28, 28, 30, .85); }
/* 下了注：橙色描边 + 角上一枚小筹码显示金额 */
.rl [data-bet].has { box-shadow: inset 0 0 0 2px #ff9500; }
.rl [data-bet].has::after {
  content: attr(data-amount); position: absolute; top: -6px; right: -4px; z-index: 1; min-width: 18px; height: 18px;
  padding: 0 4px; border-radius: 9px; background: #ff9500; color: #fff; display: grid; place-items: center;
  font-family: var(--rounded); font-size: 9px; font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}
.rl [data-bet].tap { animation: beat .3s var(--spring); }
.rl [data-bet].win { box-shadow: inset 0 0 0 2px #ffe0a3, 0 0 12px rgba(255, 224, 163, .7); }
.rl [data-bet].lose { opacity: .4; }

/* 炸金花 */
.zj-felt { gap: 6px; padding: 12px 10px 14px; }
.zj-felt::before { display: none; }
.zj-top { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.zj-seat {
  position: relative; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; gap: 4px 8px;
  padding: 8px; border-radius: 16px; background: rgba(0, 0, 0, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: box-shadow .3s, opacity .3s;
}
.zj-seat.turn { box-shadow: inset 0 0 0 2px #0a84ff; }
.zj-seat.vs, .zj-me.vs { box-shadow: inset 0 0 0 2px #ff9f0a, 0 0 18px rgba(255, 159, 10, .5); }
.zj-seat.out, .zj-me.out { opacity: .45; }
.zj-av { position: relative; width: 40px; height: 40px; }
.zj-av img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.zj-lord {
  position: absolute; right: -5px; top: -5px; width: 18px; height: 18px; border-radius: 50%; display: none; place-items: center;
  font-style: normal; font-size: 10px; font-weight: 700; color: #4a2e14; background: linear-gradient(#ffe0a3, #e0a040);
}
.zj-seat.lord .zj-lord { display: grid; }
.zj-seat.thinking .zj-av::after {
  content: "···"; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); padding: 0 5px; border-radius: 999px;
  background: #1c1c1e; color: #0a84ff; font-size: 12px; font-weight: 700; line-height: 13px;
}
.zj-meta { display: flex; flex-direction: column; line-height: 1.2; color: #fff; min-width: 0; }
.zj-meta b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zj-meta span { font-size: 11px; color: rgba(255, 255, 255, .6); }
.zj-meta .zj-in { font-family: var(--rounded); color: #ffcc80; }
.zj-seat .zj-cards { grid-column: span 2; display: flex; justify-content: center; height: 46px; align-items: center; }
.zj-seat .zj-cards .pk + .pk { margin-left: -8px; }
.pk.bj.sm { width: 32px; height: 46px; border-radius: 6px; padding: 3px 0 0 3px; }
.pk.bj.sm b { font-size: 12px; }
.pk.bj.sm span { font-size: 9px; }
.pk.bj.sm u { font-size: 16px; right: 3px; bottom: 3px; }
.pk.bj.back.sm { padding: 3px; }
.zj-say {
  position: absolute; left: 50%; bottom: -10px; transform: translate(-50%, 4px); z-index: 2; white-space: nowrap;
  padding: 2px 10px; border-radius: 999px; background: #fff; color: #1c1c1e; font-size: 12px; font-weight: 600;
  opacity: 0; transition: opacity .25s, transform .35s var(--spring); pointer-events: none;
}
.zj-say.show { opacity: 1; transform: translate(-50%, 0); }
.zj-say.hot { background: #ff9f0a; color: #fff; }
/* 底池 */
.zj-pot { display: flex; flex-direction: column; align-items: center; color: #fff; margin-top: 8px; line-height: 1.15; }
.zj-pot span { font-size: 12px; color: rgba(255, 220, 160, .75); letter-spacing: .1em; }
.zj-pot b { font-family: var(--rounded); font-size: 34px; font-weight: 700; color: #ffd27a; text-shadow: 0 0 16px rgba(255, 190, 80, .45); }
.zj-pot small { font-size: 12px; color: rgba(255, 255, 255, .6); }
.zj-felt .sb-mid { min-height: 56px; gap: 4px; }
.zj-felt .nn-timer { width: 40px; height: 40px; }
.zj-felt .nn-timer span { width: 32px; height: 32px; font-size: 16px; }
/* 我的牌 */
.zj-me { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px 8px; border-radius: 18px; background: rgba(0, 0, 0, .18); transition: box-shadow .3s, opacity .3s; }
.zj-cards.mine { display: flex; height: 78px; align-items: center; }
.zj-cards.mine .pk { width: 54px; height: 76px; }
.zj-cards.mine .pk + .pk { margin-left: 6px; }
.zj-cards.mine .pk.bj b { font-size: 17px; }
.zj-cards.mine .pk.bj u { font-size: 30px; }
.zj-mytag { display: flex; gap: 12px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.zj-mytag span:first-child { color: #ffd27a; font-weight: 600; }
/* 操作按钮 */
.zj-actions { display: flex; gap: 6px; width: 100%; justify-content: center; min-height: 52px; }
.zj-act { flex: 1; height: 52px; padding: 0 4px; flex-direction: column; gap: 0; font-size: 15px; line-height: 1.15; }
.zj-act small { font-family: var(--rounded); font-size: 11px; font-weight: 500; opacity: .7; }
.zj-act.wide { flex: 2; }
.zj-act:disabled { opacity: .35; }
.zj-rules { font-size: 11px; color: var(--muted); text-align: center; }
.zj-mytag .zj-lord { position: static; display: none; }
.zj-me.lord .zj-mytag .zj-lord { display: grid; }

/* 龙虎斗 */
.sb-dot.dragon { background: #ff453a; }
.sb-dot.tiger { background: #0a84ff; }
.lh-table { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
.lh-side {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 6px 12px; border-radius: 18px;
  background: rgba(0, 0, 0, .18); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--side) 45%, transparent);
  transition: box-shadow .4s, background .4s; position: relative;
}
.lh-side.dragon { --side: #ff453a; }
.lh-side.tiger { --side: #0a84ff; }
.lh-side.won { background: color-mix(in srgb, var(--side) 22%, rgba(0, 0, 0, .1)); box-shadow: inset 0 0 0 2px var(--side), 0 0 24px color-mix(in srgb, var(--side) 45%, transparent); }
.lh-title { font-size: 26px; font-weight: 700; color: var(--side); line-height: 1; }
.lh-slot { width: 62px; height: 88px; border-radius: 10px; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .15); }
.pk.bj.lh-card { width: 62px; height: 88px; border-radius: 10px; padding: 6px 0 0 7px; }
.pk.bj.lh-card b { font-size: 22px; }
.pk.bj.lh-card span { font-size: 15px; }
.pk.bj.lh-card u { font-size: 38px; right: 7px; bottom: 6px; }
.lh-side em {
  position: absolute; top: 8px; right: 10px; font-style: normal; font-family: var(--rounded); font-weight: 700;
  min-width: 26px; height: 26px; border-radius: 13px; display: grid; place-items: center; background: var(--side); color: #fff; font-size: 14px;
}
.lh-side em:empty { display: none; }
.lh-vs { font-family: var(--rounded); font-weight: 800; color: #ffd27a; font-size: 18px; text-shadow: 0 0 12px rgba(255, 190, 80, .5); }
.lh-board { display: grid; grid-template-columns: 1fr .8fr 1fr; gap: 6px; }
.lh-board .bj-area { grid-column: auto; height: 66px; }
.lh-board .lh-dragon { box-shadow: inset 0 0 0 1.5px rgba(255, 69, 58, .7); }
.lh-board .lh-tiger { box-shadow: inset 0 0 0 1.5px rgba(10, 132, 255, .7); }
.lh-board .lh-dragon b { color: #ff7a72; font-size: 26px; }
.lh-board .lh-tiger b { color: #64b0ff; font-size: 26px; }
.lh-board .lh-tie b { color: #5fe08a; }

/* 德州扑克：公共牌 */
.tx-board { display: flex; justify-content: center; gap: 5px; margin-top: 10px; min-height: 64px; }
.tx-board .pk.bj { width: 44px; height: 62px; }
.tx-board .pk.bj.still { animation: none; }
.tx-slot { width: 44px; height: 62px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14); }
.tx .zj-pot { margin-top: 4px; }
.tx .zj-pot b { font-size: 28px; }
.tx .zj-cards.mine .pk + .pk { margin-left: 8px; }

/* 捕鱼 */
.fs-stat { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; font-size: 11px; color: var(--muted); }
.fs-stat b { font-family: var(--rounded); font-size: 18px; color: var(--text); }
.fs-sea { position: relative; width: 100%; height: clamp(300px, calc(100svh - 330px), 440px); border-radius: 24px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.fs-sea canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.fs-toast {
  position: absolute; left: 50%; top: 12px; transform: translate(-50%, -8px); opacity: 0; pointer-events: none;
  padding: 6px 14px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #ffd27a; font-weight: 600; font-size: 14px;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: opacity .25s, transform .35s var(--spring); white-space: nowrap;
}
.fs-toast.show { opacity: 1; transform: translate(-50%, 0); }
.fs-bar { display: flex; align-items: center; gap: 10px; width: 100%; }
.fs-btn {
  width: 44px; height: 44px; border-radius: 50%; background: var(--chip); font-size: 24px; font-weight: 500;
  display: grid; place-items: center; transition: transform .3s var(--spring);
}
.fs-btn:active { transform: scale(.92); }
.fs-level { display: flex; flex-direction: column; align-items: center; line-height: 1.1; min-width: 56px; }
.fs-level b { font-family: var(--rounded); font-size: 26px; font-weight: 700; }
.fs-level span { font-size: 11px; color: var(--muted); }
.fs-auto { margin-left: auto; height: 44px; padding: 0 18px; font-size: 15px; }
.fs-auto.on { background: #ff9f0a; color: #fff; }
.fs-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 10px; font-size: 16px; }
.fs-legend b { font-family: var(--rounded); font-size: 12px; color: var(--muted); margin-left: 2px; }
.lh-felt::before, .tx-felt::before { display: none; }
.fs-tip {
  position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  padding: 6px 14px; border-radius: 999px; background: rgba(0, 0, 0, .45); color: rgba(255, 255, 255, .85); font-size: 13px;
  transition: opacity .4s;
}
.fs-tip.hide { opacity: 0; }
.fs-btn:disabled { opacity: .3; }
.fish, .fs-sea { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* 捕鱼大奖横幅 */
.fs-banner {
  position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%) scale(.3); opacity: 0; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; padding: 10px 26px 12px; border-radius: 22px; white-space: nowrap;
  background: linear-gradient(180deg, rgba(120, 60, 0, .85), rgba(60, 25, 0, .85));
  box-shadow: 0 0 0 2px #ffd34d, 0 0 40px rgba(255, 200, 60, .7);
}
.fs-banner small { font-size: 15px; font-weight: 700; letter-spacing: .2em; color: #ffe9a8; }
.fs-banner b { font-family: var(--rounded); font-size: 38px; font-weight: 800; color: #ffd34d; text-shadow: 0 2px 0 #7a4a00, 0 0 18px rgba(255, 210, 80, .8); }
.fs-banner.boss { background: linear-gradient(180deg, rgba(150, 30, 60, .9), rgba(70, 0, 40, .9)); box-shadow: 0 0 0 3px #ffd34d, 0 0 60px rgba(255, 120, 200, .7); }
.fs-banner.boss b { font-size: 46px; }
.fs-banner.show { animation: fsBanner 2.4s var(--spring) forwards; }
@keyframes fsBanner {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.3); }
  14% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
  24% { transform: translate(-50%, -50%) scale(1); }
  80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -62%) scale(.95); }
}
@media (prefers-reduced-motion: reduce) { .fs-banner.show { animation: none; opacity: 1; transform: translate(-50%, -50%); } }

/* 牛牛（牌桌风格） */
.nn-felt { gap: 6px; padding: 12px 10px 16px; }
.nn-felt::before { display: none; }
.nn-felt .nn-side { gap: 6px; }
.nn-head { display: flex; align-items: center; gap: 8px; height: 30px; }
.nn-head > span { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .7); letter-spacing: .05em; }
.nn-felt .nn-tag {
  font-style: normal; margin: 0; padding: 3px 12px; border-radius: 999px; font-size: 15px; font-weight: 800;
  background: linear-gradient(#ffe0a3, #e0a040); color: #4a2e14; box-shadow: 0 0 14px rgba(255, 200, 90, .45);
  animation: pop .45s var(--spring);
}
.nn-felt .nn-tag:empty { display: none; }
.nn-felt .nn-hand { height: 96px; gap: 5px; }
.pk.bj.nn-card { width: 52px; height: 74px; border-radius: 8px; padding: 4px 0 0 5px; }
.pk.bj.nn-card b { font-size: 17px; }
.pk.bj.nn-card span { font-size: 12px; }
.pk.bj.nn-card u { font-size: 28px; right: 5px; bottom: 5px; }
.pk.bj.nn-card.slot { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14); animation: none; }
.nn-felt .nn-side.mine .nn-hand { align-items: flex-start; padding-top: 16px; }
.nn-felt .nn-mid { min-height: 84px; }
.sb.nn .nn-actions { margin-top: 2px; }

/* 猜大小（牌桌风格） */
.sicbo .bj-dealer .sb-road { margin-left: auto; flex-wrap: nowrap; justify-content: flex-end; max-width: 50%; overflow: hidden; }
.sicbo .bj-dealer .sb-road .muted { font-size: 12px; }
.sb-felt { gap: 6px; padding: 12px 10px 12px; }
.sb-felt::before { display: none; }
.sb-felt .sb-table { margin: 0 auto; }
.sb-felt .sb-table::before {   /* 托盘：深色木纹圆盘 + 金边 */
  background: radial-gradient(closest-side, #3a2410, #1e1208);
  box-shadow: 0 0 0 2px rgba(255, 204, 128, .5), 0 8px 18px rgba(0, 0, 0, .45);
}
.sb-felt .sb-mid { min-height: 64px; }
.sb-felt .sb-area {
  background: rgba(0, 0, 0, .22); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.sb-felt .sb-area small { color: rgba(255, 255, 255, .55); }
.sb-felt .sb-big { box-shadow: inset 0 0 0 1.5px rgba(255, 69, 58, .7); }
.sb-felt .sb-small { box-shadow: inset 0 0 0 1.5px rgba(10, 132, 255, .7); }
.sb-felt .sb-big b { color: #ff7a72; }
.sb-felt .sb-small b { color: #64b0ff; }
.sb-felt .sb-tri b { color: #5fe08a; }
.sb-felt .sb-area.has { background: rgba(255, 204, 128, .12); }
.sb-felt .sb-area.win { background: rgba(52, 199, 89, .3); }
.sb-felt .sb-bet {
  top: 50%; right: 8px; transform: translateY(-50%); width: 30px; height: 30px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .45), 0 2px 4px rgba(0, 0, 0, .4);
}
.sb-felt .sb-bet:empty { display: none; }

/* 斗地主（牌桌风格） */
.ddz-felt { width: 100%; align-items: center; gap: 6px; padding: 12px 10px 12px; }
.ddz-felt::before { display: none; }
.ddz-felt .ddz-av { background: rgba(0, 0, 0, .25); }
.ddz-felt .ddz-meta b { color: #fff; }
.ddz-felt .ddz-cnt { color: rgba(255, 255, 255, .6); }
.ddz-felt .ddz-cnt.alarm { color: #ff6b5e; }
.ddz-felt .ddz-pass { color: rgba(255, 255, 255, .55); }
.ddz-felt .ddz-who { color: rgba(255, 220, 160, .8); }
.ddz-felt .ddz-mult { color: #ffd27a; }
.ddz-felt .ddz-play.mine { min-height: 44px; }
.ddz .nn-actions { margin-top: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.row-copy { font-size: 13px; font-weight: 600; color: #0a84ff; flex: none; }

/* 登录 / 账号 */
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-login { height: 34px; padding: 0 16px; font-size: 15px; }
.acct-btn {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: linear-gradient(180deg, #5e5ce6, #3634a3); color: #fff; font-weight: 700; font-size: 15px;
  transition: transform .3s var(--spring);
}
.acct-btn:active { transform: scale(.92); }
.hero-id { margin-left: 8px; font-size: 12px; font-weight: 500; color: var(--muted); }
.hero-join { font-size: 22px; font-weight: 600; letter-spacing: -.01em; margin-top: 2px; }
.hero-join b { font-family: var(--rounded); font-size: 34px; color: #ff9500; }
.login-form { margin-top: 18px; text-align: left; }
.list.form { margin-top: 0; }
.field { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 16px; }
.field + .field { border-top: .5px solid var(--chip); }
.field > span { width: 34px; flex: none; font-size: 16px; color: var(--muted); }
.field input {
  flex: 1; min-width: 0; height: 50px; border: 0; outline: 0; background: transparent;
  color: var(--text); font: inherit; font-size: 17px;
}
.field input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.form-err { min-height: 20px; margin: 8px 4px 0; font-size: 14px; color: #ff453a; }
.login-submit { width: 100%; margin-top: 6px; }
.login-submit:disabled { opacity: .6; }
.logout-btn { width: 100%; margin-top: 14px; color: #ff453a; }
/* 牛牛开始区：底注筹码 + 发牌按钮 */
.nn-start { display: flex; flex-direction: column; align-items: center; gap: 12px; }


/* 5 档筹码一排放得下（46px） */
.sb-chips { gap: 10px; }
.sb-chip { width: 46px; height: 46px; }
.sb-chip > span { font-size: 13px; }
/* 倍数选择：×1–×5（所有游戏共用）
   用法：<div class="mult-row" role="radiogroup" aria-label="选倍数">
           <button class="mult-btn on" data-mult="1" role="radio" aria-checked="true">×1</button> … ×5
         </div>
   积分不够的倍数加 disabled。 */
.mult-row { display: flex; justify-content: center; gap: 6px; width: 100%; }
.mult-btn {
  flex: 1; max-width: 62px; height: 42px; border-radius: 999px; background: var(--chip);
  font-family: var(--rounded); font-weight: 700; font-size: 16px; transition: transform .3s var(--spring), background .2s;
}
.mult-btn:active { transform: scale(.94); }
.mult-btn.on { background: #ff9f0a; color: #fff; box-shadow: 0 0 14px rgba(255, 159, 10, .45); }
.mult-btn:disabled { opacity: .3; }
.mult-label { text-align: center; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
