/* 抢庄牛牛牌桌：酒红台呢 + 金边，自己在下方，五位对手绕桌 */
.nn {
  position: relative; display: flex; flex-direction: column; height: 100%; min-height: 100dvh; overflow: hidden; color: #f3ead8;
  background: radial-gradient(120% 70% at 50% 40%, #2a1418 0%, #140b0d 55%, #0b0809 100%);
  padding-bottom: env(safe-area-inset-bottom);
}
.nn-top { display: flex; align-items: center; gap: 8px; padding: calc(env(safe-area-inset-top) + 6px) 10px 4px; }
.nn-ico { width: 38px; height: 38px; border-radius: 12px; border: 0; background: rgba(255,255,255,.06); display: grid; place-items: center; color: #f3ead8; padding: 0; }
.nn-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nn-title { flex: 1; text-align: center; line-height: 1.2; }
.nn-title b { display: block; font: 700 16px var(--serif); letter-spacing: .08em; }
.nn-title small { color: #c9a970; font-size: 12px; }

/* 台呢 */
.nn-felt { position: relative; flex: 1; margin: 6px 10px 0; min-height: 420px; }
.nn-rim {
  position: absolute; inset: 4% 3% 9%; border-radius: 46% / 28%;
  background:
    radial-gradient(80% 55% at 50% 45%, rgba(255,214,150,.12), transparent 70%),
    var(--weave),
    radial-gradient(100% 100% at 50% 40%, #7d1f2a 0%, #5a121c 55%, #3a0a12 100%);
  box-shadow: 0 0 0 5px #2a1a12, 0 0 0 7px #b8924f, 0 0 0 9px #3b2615, 0 18px 40px rgba(0,0,0,.6), inset 0 0 60px rgba(0,0,0,.55);
}
.nn-rim::after { content: ""; position: absolute; inset: 7%; border-radius: inherit; border: 1px solid rgba(232,196,128,.18); }

.nn-center { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; pointer-events: none; }
.nn-phase { font: 700 18px var(--serif); letter-spacing: .3em; color: #f0d59b; text-shadow: 0 2px 8px rgba(0,0,0,.5); padding-left: .3em; }
.nn-base { font-size: 12px; color: rgba(243,234,216,.6); letter-spacing: .1em; }
.nn-clock { position: relative; width: 50px; height: 50px; }
.nn-clock svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.nn-clock circle { fill: rgba(0,0,0,.35); stroke-width: 3.5; }
.nn-clock .bg { stroke: rgba(255,255,255,.1); }
.nn-clock .fg { fill: none; stroke: #f0d59b; stroke-linecap: round; transition: stroke-dasharray .2s linear; }
.nn-clock b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; color: #fff; }
.nn-clock.hurry .fg { stroke: #ff6a55; }
.nn-clock.hurry b { color: #ffb3a8; animation: nnBeat .5s ease-in-out infinite alternate; }
@keyframes nnBeat { to { transform: scale(1.12); } }
.nn-fair { pointer-events: auto; display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(240,213,155,.35); background: rgba(0,0,0,.25); color: #f0d59b; border-radius: 999px; font-size: 11px; padding: 3px 9px; }
.nn-fair i { width: 7px; height: 9px; background: currentColor; clip-path: polygon(50% 0, 100% 18%, 100% 55%, 50% 100%, 0 55%, 0 18%); }

/* 座位 */
.nn-seat { position: absolute; width: 64px; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.nn-seat.me { left: 50%; bottom: 4%; transform: translateX(-50%); }
.nn-seat.o-top { left: 50%; top: 0; transform: translateX(-50%); }
.nn-seat.o-l1 { left: 0; top: 20%; }
.nn-seat.o-l2 { left: 0; top: 54%; }
.nn-seat.o-r1 { right: 0; top: 20%; }
.nn-seat.o-r2 { right: 0; top: 54%; }
.nn-av { position: relative; width: 52px; height: 52px; border-radius: 50%; padding: 2px; background: linear-gradient(160deg, #6b5235, #2b1f15); box-shadow: 0 4px 10px rgba(0,0,0,.5); transition: box-shadow .25s; }
.nn-av .avatar-c { width: 48px; height: 48px; font-size: 17px; }
.nn-plate { margin-top: -6px; position: relative; min-width: 66px; max-width: 80px; padding: 3px 6px 2px; border-radius: 8px; background: rgba(12,6,8,.82); border: 1px solid rgba(240,213,155,.18); text-align: center; line-height: 1.15; }
.nn-plate .nm { display: block; font-size: 11px; color: rgba(243,234,216,.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nn-plate b { font-size: 13px; color: #f0d59b; }
.nn-crown { position: absolute; left: -6px; top: -6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 900 12px var(--serif); font-style: normal; color: #5b0d12; background: linear-gradient(160deg, #fff0c4, #d9a94f); box-shadow: 0 0 0 2px #5b0d12, 0 2px 6px rgba(0,0,0,.5); animation: nnPop .35s cubic-bezier(.2,1.6,.4,1); }
.nn-bot { position: absolute; right: -4px; bottom: -2px; font-style: normal; font-size: 9px; padding: 1px 4px; border-radius: 6px; background: #3a3f4a; color: #cfd3da; }
.nn-seat.banker .nn-av { background: linear-gradient(160deg, #fff0c4, #c8963e); box-shadow: 0 0 0 2px rgba(240,213,155,.4), 0 0 22px rgba(240,190,90,.55); }
.nn-seat.pick .nn-av { background: linear-gradient(160deg, #fff0c4, #c8963e); box-shadow: 0 0 26px rgba(255,210,120,.9); transform: scale(1.06); }
.nn-seat.out { opacity: .5; }
.nn-seat.win .nn-av { box-shadow: 0 0 0 2px #f0d59b, 0 0 18px rgba(240,213,155,.6); }
.nn-seat.lose .nn-av { filter: saturate(.6) brightness(.85); }
@keyframes nnPop { from { transform: scale(0); } }

.nn-sit { width: 48px; height: 48px; border-radius: 50%; border: 1.5px dashed rgba(240,213,155,.4); background: rgba(0,0,0,.22); color: rgba(240,213,155,.8); display: grid; place-items: center; padding: 0; margin-top: 4px; }
.nn-sit svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nn-sit:disabled { border-style: solid; border-color: rgba(255,255,255,.08); color: transparent; }

/* 牌 */
.nn-cards { display: flex; }
.nn-cards .card { margin: 0; box-shadow: -2px 2px 5px rgba(0,0,0,.35); }
.nn-cards.sm { position: absolute; top: 8px; }
.nn-cards.sm .card { --w: 25px; }
.nn-cards.sm .card + .card { margin-left: -13px; }
.nn-cards.sm.split .card:nth-child(4) { margin-left: -6px; }
.o-l1 .nn-cards.sm, .o-l2 .nn-cards.sm { left: calc(100% + 2px); }
.o-r1 .nn-cards.sm, .o-r2 .nn-cards.sm { right: calc(100% + 2px); }
.o-top .nn-cards.sm { left: calc(100% + 4px); }

.nn-tag { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.6); color: #f3ead8; border: 1px solid rgba(255,255,255,.12); animation: nnPop .25s ease-out; }
.nn-tag .think { font-style: normal; color: rgba(243,234,216,.55); }
.o-top .nn-tag { top: auto; bottom: -22px; }
.nn-seat.me .nn-tag { top: -22px; }

/* 牌型徽章 */
.nn-hb { display: inline-flex; align-items: baseline; gap: 3px; padding: 3px 10px; border-radius: 8px; font: 700 15px var(--serif); letter-spacing: .06em; color: #3b1d06; background: linear-gradient(180deg, #fff0c4, #e1b25a); box-shadow: 0 3px 10px rgba(0,0,0,.45); animation: nnPop .3s cubic-bezier(.2,1.6,.4,1); white-space: nowrap; }
.nn-hb i { font-style: normal; font-size: 12px; opacity: .8; }
.nn-hb.t-none { color: #d9d2c4; background: linear-gradient(180deg, #4b4650, #2e2a33); }
.nn-hb.hot { color: #fff; background: linear-gradient(180deg, #ff8a5c, #c4202f); box-shadow: 0 0 0 1px #ffd18a, 0 0 18px rgba(255,120,80,.6); }
.nn-hb.sm { position: absolute; top: 46px; font-size: 11px; padding: 1px 6px; border-radius: 6px; }
.o-l1 .nn-hb.sm, .o-l2 .nn-hb.sm { left: calc(100% + 8px); }
.o-r1 .nn-hb.sm, .o-r2 .nn-hb.sm { right: calc(100% + 8px); }
.o-top .nn-hb.sm { left: calc(100% + 18px); }

.nn-net { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); font-size: 17px; font-weight: 700; padding: 1px 8px; border-radius: 8px; white-space: nowrap; z-index: 3; animation: nnRise 1.1s cubic-bezier(.2,.8,.2,1) both; text-shadow: 0 2px 4px rgba(0,0,0,.5); }
.nn-net.up { color: #3b1d06; background: linear-gradient(180deg, #fff0c4, #e1b25a); }
.nn-net.dn { color: #fff; background: #b8313a; }
@keyframes nnRise { from { opacity: 0; transform: translate(-50%, 14px); } 60% { opacity: 1; } to { transform: translate(-50%, -14px); } }
.nn-leaving { position: absolute; bottom: -18px; font-size: 10px; color: #ffb3a8; white-space: nowrap; }

.nn-chip { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; z-index: 5; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, #fff4d0 0 28%, #d6a04a 30% 62%, #fff4d0 64% 70%, #a8762e 72%); box-shadow: 0 2px 4px rgba(0,0,0,.5); }

/* 自己的牌 */
.nn-hand { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: -26px; min-height: 120px; z-index: 3; }
.nn-cards.big .card { --w: 60px; }
.nn-cards.big .card + .card { margin-left: -12px; }
.nn-cards.big.split .card:nth-child(4) { margin-left: 10px; }
.nn-cards.big .card.back { opacity: .92; }
#nnMyHb:empty { display: none; }

/* 操作区 */
.nn-bar { min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 6px 12px 12px; }
.nn-row { display: flex; gap: 8px; width: 100%; max-width: 420px; }
.nn-btn { flex: 1; height: 46px; border-radius: 14px; border: 1px solid rgba(255,255,255,.14); background: linear-gradient(180deg, #3a3036, #241c21); color: #f3ead8; font: 700 15px var(--ui); letter-spacing: .04em; padding: 0; box-shadow: 0 4px 10px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.08); }
.nn-btn:active { transform: translateY(1px); }
.nn-btn.gold { border-color: rgba(255,230,170,.5); background: linear-gradient(180deg, #f6dc9d, #c8963e); color: #3b1d06; }
.nn-btn.open { flex: none; width: min(78%, 300px); height: 52px; font: 700 19px var(--serif); letter-spacing: .4em; padding-left: .4em; color: #fff; border-color: #ffcf8a; background: linear-gradient(180deg, #e8504a, #9b1424); box-shadow: 0 0 22px rgba(232,80,74,.45), 0 6px 14px rgba(0,0,0,.45); }
.nn-hint { color: rgba(243,234,216,.7); font-size: 14px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.nn-hint span { font-size: 12px; color: rgba(243,234,216,.45); }
.nn-hint.big { font: 700 17px var(--serif); letter-spacing: .08em; color: #f3ead8; }
.nn-hint.big b { font-size: 22px; margin-left: 4px; }
.nn-hint.up b { color: #f0d59b; } .nn-hint.dn b { color: #ff7d70; }

/* 弹层 */
.nn-buy { display: flex; align-items: baseline; justify-content: space-between; margin-top: 4px; }
.nn-buy b { font-size: 28px; color: var(--gold); }
.nn-buy small { color: var(--mute); }
.nn-buy-r { display: flex; justify-content: space-between; color: var(--mute); font-size: 12px; margin: -6px 0 8px; }
.nn-menu { display: grid; gap: 8px; margin-top: 8px; }
.nn-menu button { height: 48px; border-radius: 12px; font-size: 15px; }
.nn-rules { display: grid; gap: 1px; margin: 4px 0 14px; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.06); }
.nn-rules div { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; background: var(--deck); }
.nn-rules b { font: 700 15px var(--serif); }
.nn-rules small { color: var(--mute); font-size: 12px; }
.nn-rules i { font-style: normal; color: var(--gold); font-weight: 700; }
.nn-hist { border-radius: 12px; background: rgba(255,255,255,.04); padding: 8px 10px; margin-bottom: 8px; }
.nn-hist .hd { display: flex; justify-content: space-between; color: var(--mute); font-size: 12px; margin-bottom: 4px; }
.nn-hist .rw { display: grid; grid-template-columns: 1fr auto 52px 60px; align-items: center; gap: 8px; padding: 3px 0; font-size: 13px; }
.nn-hist .rw .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nn-hist .rw .nm i { font-style: normal; font-size: 10px; color: #5b0d12; background: #e1b25a; border-radius: 4px; padding: 0 3px; margin-right: 4px; }
.nn-hist .cs .card { --w: 22px; margin: 0 -4px 0 0; }
.nn-hist .hn { color: var(--gold); font-size: 12px; }
.nn-hist b { text-align: right; } .nn-hist b.up { color: var(--gold); } .nn-hist b.dn { color: #ff7d70; }
.nn-hash { background: rgba(255,255,255,.04); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; display: grid; gap: 4px; }
.nn-hash small { color: var(--mute); font-size: 12px; }
.nn-hash code { font-size: 11px; word-break: break-all; color: #e9dfcb; }
.nn-verify { margin-top: 4px; font-size: 13px; color: var(--mute); }
.nn-verify.ok { color: #7fd6a1; } .nn-verify.bad { color: #ff7d70; }

/* 大厅：牛牛行 */
.tg-row.nn-row-l .tg-ring .fg { stroke: #e1b25a; }
.tg-tag.niu { color: #f0a86a; }

@media (prefers-reduced-motion: reduce) {
  .nn-crown, .nn-tag, .nn-hb, .nn-net, .nn-clock.hurry b { animation: none; }
}
.tg-bl .nn-rd { margin-left: 8px; color: var(--dim); font-size: 12px; }
.nn-seat.me .nn-cards.sm { left: calc(100% + 6px); top: 10px; }
.nn-seat.me .nn-hb.sm { left: calc(100% + 10px); top: 50px; }
.nn-bot { font-size: 10px; padding: 1px 4px; line-height: 1.2; }
/* 亮出来的牌：间距放大，点数看得清 */
.nn-cards.sm .card:not(.back) { --w: 27px; }
.nn-cards.sm .card:not(.back) + .card { margin-left: -9px; }
.nn-cards.sm.split .card:not(.back):nth-child(4) { margin-left: -3px; }
.nn-cards.sm .card .ci { left: 4%; right: auto; top: 4%; }
.nn-cards.sm .card .ci b { font-size: 12px; }
.nn-cards.sm .card .ci i { font-size: 10px; }
.nn-net { top: -14px; animation-name: nnRise2; }
@keyframes nnRise2 { from { opacity: 0; transform: translate(-50%, 18px); } 50% { opacity: 1; } to { transform: translate(-50%, -6px); } }
.nn-bot { right: -6px; top: -4px; bottom: auto; }
.nn-hint.big { flex-direction: row; align-items: baseline; gap: 6px; }
#nnMyHb:empty { display: none; }

/* ───────── 上庄牛牛：深蓝台呢，庄家在上，A 左、C 右、B 下 ───────── */
.nz { background: radial-gradient(120% 70% at 50% 40%, #13243a 0%, #0a1422 55%, #070c14 100%); }
.nz .nn-title small { color: #8fb3df; }
.nz-felt { position: relative; flex: 1; margin: 6px 10px 0; min-height: 470px; }
.nz-rim { position: absolute; inset: 7% 8% 9%; border-radius: 40% / 22%;
  background: radial-gradient(80% 55% at 50% 45%, rgba(160,210,255,.16), transparent 70%), var(--weave), radial-gradient(100% 100% at 50% 40%, #2c6fb8 0%, #1d5292 55%, #12366a 100%);
  box-shadow: 0 0 0 9px #2b3646, 0 0 0 11px #56657a, 0 18px 40px rgba(0,0,0,.6), inset 0 0 60px rgba(0,0,0,.45); }
.nz-bk { position: absolute; left: 50%; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; z-index: 3; }
.nz-av { position: relative; width: 50px; height: 50px; border-radius: 50%; padding: 2px; background: linear-gradient(160deg, #5a7090, #1f2b3c); box-shadow: 0 4px 10px rgba(0,0,0,.5); }
.nz-bk .nz-av { background: linear-gradient(160deg, #fff0c4, #c8963e); box-shadow: 0 0 0 2px rgba(240,213,155,.4), 0 0 18px rgba(240,190,90,.45); }
.nz-av .avatar-c { width: 46px; height: 46px; font-size: 16px; }
.nz-plate { margin-top: -6px; min-width: 70px; max-width: 86px; padding: 3px 6px 2px; border-radius: 8px; background: rgba(6,12,22,.85); border: 1px solid rgba(255,170,70,.45); text-align: center; line-height: 1.15; position: relative; }
.nz-plate span { display: block; font-size: 11px; color: #ffb44f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nz-plate b { font-size: 13px; color: #fff; }
.nz-plate.empty { border-color: rgba(255,255,255,.12); } .nz-plate.empty span { color: rgba(255,255,255,.5); }
.nz-apply { width: 92px; padding: 10px 0; border-radius: 12px; border: 1.5px dashed rgba(255,214,72,.6); background: rgba(0,0,0,.3); color: #ffd648; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.nz-apply b { font-size: 14px; } .nz-apply small { font-size: 11px; color: rgba(255,255,255,.7); }
.nz-queue { position: absolute; right: 6%; top: 3%; z-index: 3; padding: 5px 12px; border-radius: 14px; border: 0; font-size: 12px; font-weight: 600; color: #3a1d00; background: linear-gradient(180deg, #ffd27a, #f2a23a); box-shadow: 0 3px 8px rgba(0,0,0,.4); }
.nz-mid { position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; pointer-events: none; z-index: 2; }
.nz-clock { min-width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,.35); display: grid; place-items: center; font-size: 17px; font-weight: 700; color: #fff; }
.nz-clock:empty { visibility: hidden; }
.nz-phase { font: 700 15px var(--serif); letter-spacing: .25em; color: #e8f1ff; text-shadow: 0 2px 6px rgba(0,0,0,.5); padding-left: .25em; }
.nz-range { font-size: 11px; color: rgba(232,241,255,.55); }
.nz-tot { margin-top: 4px; display: flex; flex-direction: column; gap: 3px; }
.nz-tot div { display: flex; align-items: center; gap: 6px; min-width: 112px; padding: 2px 10px; border-radius: 10px; background: rgba(6,20,40,.55); font-size: 12px; }
.nz-tot div.w { box-shadow: 0 0 0 1px #ffd648; }
.nz-tot b { color: #9cc6ff; width: 12px; } .nz-tot span { flex: 1; text-align: right; color: #ffd648; } .nz-tot em { font-style: normal; font-size: 10px; color: #8fe3b4; }
.nz-coin { width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle, #ffd648 40%, #c78a1a 42%); }
/* 牌 */
.nz-door { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 2px; z-index: 2; transition: filter .3s; }
.nz-door .nn-cards.sm { position: static; }
.nz-door .nn-cards.sm .card { --w: 30px; }
.nz-door .nn-cards.sm .card + .card { margin-left: -9px; }
.nz-door .nn-hb { order: -1; }
.nz-door.lose { filter: brightness(.7) saturate(.7); }
.nz-door.win .nn-cards { filter: drop-shadow(0 0 8px rgba(255,214,72,.7)); }
.d-Z { left: 50%; top: 18%; transform: translateX(-50%); }
.d-A { left: 2%; top: 37%; }
.d-C { right: 2%; top: 37%; }
.d-B { left: 50%; bottom: 23%; transform: translateX(-50%); }
.d-B .nn-cards.sm .card { --w: 38px; } .d-B .nn-cards.sm .card + .card { margin-left: -6px; }
/* 三门的座位 */
.nz-seat { position: absolute; display: flex; flex-direction: column; align-items: center; z-index: 3; }
.s-A { left: 1%; top: 56%; } .s-C { right: 1%; top: 56%; } .s-B { left: 50%; bottom: 2%; transform: translateX(-50%); }
.nz-door-tag { position: absolute; top: 2px; font-style: normal; font-size: 11px; font-weight: 800; width: 18px; height: 18px; border-radius: 4px; display: grid; place-items: center; color: #12366a; background: #ffd648; }
.s-A .nz-door-tag { left: -10px; } .s-C .nz-door-tag { right: -10px; } .s-B .nz-door-tag { right: -14px; }
.nz-sit { width: 46px; height: 46px; border-radius: 50%; border: 1.5px dashed rgba(200,225,255,.5); background: rgba(0,0,0,.22); color: rgba(220,235,255,.85); display: grid; place-items: center; padding: 0; margin-bottom: 4px; }
.nz-sit svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nz-sit:disabled { opacity: .35; }
.nz-bet { position: absolute; top: 4px; width: 40px; height: 40px; border-radius: 50%; border: 0; font-size: 12px; font-weight: 800; color: #fff; background: radial-gradient(circle at 40% 35%, #ffb44f, #e8711a); box-shadow: 0 0 0 2px rgba(255,255,255,.25), 0 4px 10px rgba(0,0,0,.45); animation: nnPop .3s; }
.s-A .nz-bet { left: calc(100% + 6px); } .s-C .nz-bet { right: calc(100% + 6px); } .s-B .nz-bet { top: -48px; left: 50%; transform: translateX(-50%); }
.nz-seat .nn-net, .nz-bk .nn-net { position: static; margin-top: 2px; }
/* 开始 / 停止下注横幅 */
.nz-banner { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); z-index: 6; padding: 10px 34px; border-radius: 14px; font: 900 26px var(--serif); letter-spacing: .2em; color: #fff; text-shadow: 0 3px 0 #a3420a, 0 0 18px rgba(255,160,60,.8);
  background: linear-gradient(180deg, rgba(255,176,60,.95), rgba(214,96,18,.95)); box-shadow: 0 10px 30px rgba(0,0,0,.5), inset 0 0 0 2px rgba(255,230,160,.6); pointer-events: none; }
.nz-banner.go { animation: nzBanner 1.3s ease both; }
@keyframes nzBanner { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 18% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 30%, 80% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.05); } }
.nz-fair { position: absolute; left: 4%; top: 3%; z-index: 3; }
/* 底部：筹码选择 */
.nz-bar { padding: 8px 12px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 70px; }
.nz-chips { display: flex; gap: 10px; }
.nz-chip { width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0; color: #fff; font-size: 12px; font-weight: 800; background: radial-gradient(circle, #2c6fb8 52%, #fff 53% 58%, #2c6fb8 59%); box-shadow: 0 3px 8px rgba(0,0,0,.4); opacity: .75; transition: transform .15s; }
.nz-chip:nth-child(2) { background: radial-gradient(circle, #1e9f62 52%, #fff 53% 58%, #1e9f62 59%); }
.nz-chip:nth-child(3) { background: radial-gradient(circle, #b8322c 52%, #fff 53% 58%, #b8322c 59%); }
.nz-chip:nth-child(4) { background: radial-gradient(circle, #6d3bb0 52%, #fff 53% 58%, #6d3bb0 59%); }
.nz-chip:nth-child(5) { background: radial-gradient(circle, #222 52%, #ffd648 53% 58%, #222 59%); }
.nz-chip.on { opacity: 1; transform: translateY(-5px) scale(1.08); box-shadow: 0 0 0 2px #ffd648, 0 6px 14px rgba(0,0,0,.5); }
.nz-bar .up { color: #ffd648; } .nz-bar .dn { color: #ff8f80; }
/* 弹层 */
.nz-q > div { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid rgba(255,255,255,.06); }
.nz-q > div.me b { color: #ffd648; } .nz-q .avatar-c { width: 30px; height: 30px; font-size: 12px; } .nz-q span { width: 18px; color: rgba(255,255,255,.5); }
.nz-seg { margin: 10px 0; }
.nz-ol { padding-left: 20px; line-height: 1.8; font-size: 14px; color: rgba(243,234,216,.85); }
.nz-eg { margin: 8px 0; padding: 10px 12px; border-radius: 10px; font-size: 13px; background: rgba(255,255,255,.04); }
.nz-eg.up { border: 1px solid rgba(61,214,140,.4); } .nz-eg.up b { color: #3dd68c; } .nz-eg.dn { border: 1px solid rgba(255,107,90,.4); } .nz-eg.dn b { color: #ff6b5a; }
.nn-hist .rw.w .hn { color: #ffd648; }
.nz-seg { grid-template-columns: repeat(4, 1fr); }
.nz-seg button.on { background: var(--gold); color: var(--tg-on); font-weight: 600; }
.nz-book { display: grid; grid-template-columns: 1.6fr 1fr .7fr 1fr; gap: 6px; padding: 9px 2px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.06); align-items: center; }
.nz-book span:not(:first-child), .nz-book b { text-align: right; }
.nz-book.tb-head { color: rgba(243,234,216,.5); font-size: 12px; }
.nz-book .up { color: #3dd68c; } .nz-book .dn { color: #ff6b5a; }
.nz-bk-tag { font-style: normal; font-size: 10px; margin-right: 4px; padding: 0 4px; border-radius: 4px; background: #ffd648; color: #3a1d00; }
.nz-hb { min-height: 0; } .nz-hb:empty { display: none; }
.nz-banner { white-space: nowrap; }
.nz-door .nn-hb.sm { position: static; }
/* 上庄牛牛：下注按钮的字不换行；台呢加一圈内描线和三门的位置标记，不再一大片空蓝 */
.nz-bet { width: 44px; height: 44px; padding: 0; white-space: nowrap; font-size: 13px; letter-spacing: 0; line-height: 44px; }
.nz-rim::before { content: ""; position: absolute; inset: 14px; border-radius: inherit; border: 1.5px solid rgba(200,225,255,.18); pointer-events: none; }
.nz-rim::after { content: "上庄牛牛"; position: absolute; left: 50%; bottom: 17%; transform: translateX(-50%); font: 700 22px var(--serif, serif); letter-spacing: .4em; color: rgba(200,225,255,.10); pointer-events: none; white-space: nowrap; }
/* 上庄牛牛：闲家自己选要不要「牛牛接庄」 */
.nz-auto { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.8); font-size: 12.5px; }
.nz-auto input { accent-color: #ffd648; width: 16px; height: 16px; margin: 0; }
.nn-net-off { position: absolute; left: 50%; top: calc(58px + var(--sat, 0px)); transform: translateX(-50%); z-index: 40; padding: 6px 14px; border-radius: 999px; background: rgba(214,64,64,.92); color: #fff; font-size: 13px; white-space: nowrap; box-shadow: 0 6px 16px rgba(0,0,0,.4); }
