/* ==========================================================================
   MGM · 大大厅 —— N8 客户端 1:1 重建样式层（task-48）
   色板实测：纯黑 #000 / 近黑 #101010 / 卡片 #141414/#181818 / 主红 #DC2D2B /
             金 #EEB941 / 在线绿 #5BBE35 / banner 深蓝 #082040→#183058
   结构顺序：状态栏 → 主导航 → 二级玩法 tab → Banner → 为您推荐 → Tweets →
             赛事类别（勋章卡）→ 特殊功能 → 娱乐场 → 现金桌列表/锦标赛 → 底部导航
   移动端 420×900 优先；≥900px 桌面 1200 宽居中。
   ========================================================================== */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: #000; color: #f8f8f8; }
body { font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif; display: block; background: #000; }
#mh-root { width: 100%; display: flex; justify-content: center; }
a { color: #eeb941; text-decoration: none; }
button { font-family: inherit; border: 0; background: none; color: inherit; cursor: pointer; }
img { max-width: 100%; }
::-webkit-scrollbar { width: 0; height: 0; }

.n8-app {
  position: relative; width: 100%; max-width: 1200px; margin: 0 auto; min-height: 100vh;
  background: #000; color: #f8f8f8; overflow-x: hidden;
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

/* ============================== ① 顶部状态行 ============================== */
.n8-statusbar {
  display: flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px; background: #000;
}
.n8-mini-logo {
  width: 18px; height: 18px; border-radius: 4px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #102848, #082040);
  border: 1px solid rgba(238, 185, 65, .55);
}
.n8-mini-logo b { font-style: normal; font-size: 10px; font-weight: 900; color: #eeb941; line-height: 1; }
.n8-online-dot { width: 6px; height: 6px; border-radius: 50%; background: #5bbe35; box-shadow: 0 0 6px rgba(91, 190, 53, .6); flex: none; }
.n8-online { font-size: 11px; font-weight: 700; color: #5bbe35; letter-spacing: .2px; }
.n8-status-right { margin-left: auto; }
.n8-hd { font-style: normal; font-size: 9px; font-weight: 800; color: #7a7a7a; border: 1px solid #2a2a2a; border-radius: 3px; padding: 0 3px; }

/* ============================== ② 主导航 ============================== */
.n8-header {
  display: flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 12px; background: #000;
  border-bottom: 1px solid #141414;
}
.n8-brand {
  flex: none; font-size: 21px; font-weight: 900; letter-spacing: 2px; color: #f8f8f8;
  display: flex; align-items: baseline; gap: 3px; line-height: 1;
}
.n8-brand-sub { font-size: 7px; font-weight: 800; letter-spacing: 1.6px; color: #eeb941; }
.n8-mainnav {
  margin-left: auto; display: flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: 999px; background: #101010; border: 1px solid #242424;
}
.n8-main-tab {
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800;
  color: #7a7a7a; white-space: nowrap; transition: all .18s ease;
}
.n8-main-tab.on { background: #dc2d2b; color: #fff; box-shadow: 0 2px 10px rgba(220, 45, 43, .45); }

/* ============================== ③ 二级玩法 tab ============================== */
.n8-subnav {
  display: flex; align-items: stretch; height: 43px; overflow-x: auto; scrollbar-width: none;
  background: #0b0b0b; border-bottom: 1px solid #1c1c1c;
}
.n8-subnav::-webkit-scrollbar { display: none; }
.n8-sub-tab {
  flex: none; display: flex; align-items: center; gap: 4px;
  padding: 0 11px; height: 100%; font-size: 12px; font-weight: 900; color: #f8f8f8;
  border-right: 1px solid #1a1a1a; white-space: nowrap; letter-spacing: .2px;
}
.n8-sub-ico { display: inline-flex; width: 13px; height: 13px; flex: none; }
.n8-sub-ico svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.n8-sub-tab.sub-home { background: #151515; color: #f8f8f8; }
.n8-sub-tab.sub-home.on { background: #a81818; color: #fff; }
.n8-sub-tab.sub-home.on .n8-sub-ico { color: #eeb941; }
.n8-sub-tab.sub-aof { background: linear-gradient(135deg, #2a0708, #12090c 55%, #251012); color: #ff6b5a; }
.n8-sub-tab.sub-aof.on { background: linear-gradient(135deg, #dc2d2b, #7a0f14); color: #fff; }
.n8-sub-tab.sub-rush { background: #16130a; color: #eeb941; }
.n8-sub-tab.sub-rush.on { background: #3a2c08; color: #fff563; border-bottom: 2px solid #eeb941; }
.n8-sub-tab.sub-texas { color: #f8f8f8; }
.n8-sub-tab.sub-texas.on { color: #fff; background: #1b1b1b; border-bottom: 2px solid #dc2d2b; }
.n8-sub-tab.sub-omaha { color: #f8f8f8; }
.n8-sub-tab.sub-omaha.on { color: #fff; background: #1b1b1b; border-bottom: 2px solid #dc2d2b; }
.n8-sub-tab.sub-short { color: #ff6b8a; }
.n8-sub-tab.sub-short.on { color: #fff; background: #2a0d18; border-bottom: 2px solid #ff6b8a; }

/* ============================== 主内容 ============================== */
.n8-main { padding: 10px 12px 0; }

/* ============================== ④ Banner 轮播 ============================== */
.n8-banner {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 6px 20px rgba(0, 0, 0, .55);
  background: linear-gradient(115deg, #082040, #102848 55%, #183058);
}
.n8-banner-slide {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 4px; padding: 16px 18px; text-align: left; opacity: 0; pointer-events: none;
  transition: opacity .4s ease; color: #fff;
  background: linear-gradient(115deg, #082040, #102848 55%, #183058);
}
.n8-banner-slide.on { opacity: 1; pointer-events: auto; }
.n8-banner-slide::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 86% 14%, rgba(238, 185, 65, .3), transparent 42%),
    radial-gradient(circle at 8% 92%, rgba(220, 45, 43, .3), transparent 46%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 20px);
}
.n8-banner-slide.b1 { background: radial-gradient(circle at 88% 10%, rgba(220, 45, 43, .5), transparent 46%), radial-gradient(circle at 12% 92%, rgba(238, 185, 65, .18), transparent 42%), linear-gradient(115deg, #082040, #102848 55%, #183058); }
.n8-banner-slide.b2 { background: linear-gradient(115deg, #082040, #102848 55%, #183058); }
.n8-banner-slide.b3 { background: radial-gradient(circle at 86% 8%, rgba(238, 185, 65, .45), transparent 46%), linear-gradient(115deg, #062a24, #0d4a3a 52%, #14604a); }
.n8-banner-slide.b4 { background: radial-gradient(circle at 86% 12%, rgba(255, 69, 69, .45), transparent 46%), linear-gradient(115deg, #2a0a10, #5a1018 55%, #8a1a1e); }
.n8-banner-tag {
  position: relative; z-index: 1; font-size: 9.5px; font-weight: 800; letter-spacing: .6px;
  color: #f8f8f8; background: rgba(0, 0, 0, .38); border: 1px solid rgba(255, 255, 255, .25);
  padding: 2px 8px; border-radius: 999px;
}
.n8-banner-slide b { position: relative; z-index: 1; font-size: 20px; font-weight: 900; letter-spacing: .5px; text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }
.n8-banner-sub { position: relative; z-index: 1; font-size: 10.5px; color: rgba(255, 255, 255, .82); }
.n8-banner-cta {
  position: relative; z-index: 1; margin-top: 8px; padding: 4px 12px; border-radius: 6px;
  font-size: 10.5px; font-weight: 900; color: #1a1206;
  background: linear-gradient(180deg, #fff563, #eeb941); box-shadow: 0 3px 10px rgba(238, 185, 65, .3);
}
.n8-banner-dots { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 2; display: flex; justify-content: center; gap: 4px; }
.n8-banner-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .4); cursor: pointer; transition: all .2s ease; }
.n8-banner-dots i.on { width: 14px; border-radius: 3px; background: #eeb941; box-shadow: 0 0 8px rgba(238, 185, 65, .6); }

/* ============================== 通用标题 ============================== */
.n8-sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 16px 0 9px; }
.n8-sec-head h2 { margin: 0; font-size: 16.5px; font-weight: 900; letter-spacing: .3px; color: #f8f8f8; }
.n8-sec-head small { font-size: 10.5px; color: #7a7a7a; }
.n8-sec-more { font-size: 10.5px; color: #bfbfbf; }

/* ============================== ⑤ 为您推荐 ============================== */
.n8-rec-scroller { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.n8-rec-scroller::-webkit-scrollbar { display: none; }
.n8-rec-card {
  position: relative; flex: none; width: 152px; min-height: 156px; padding: 11px;
  border-radius: 12px; text-align: left; overflow: hidden;
  background: #101010; border: 1px solid rgba(255, 255, 255, .08);
  display: flex; flex-direction: column; gap: 3px;
}
.n8-rec-card.r-blue { background: linear-gradient(165deg, #082040, #102848 62%, #183058); }
.n8-rec-card.r-teal { background: radial-gradient(circle at 82% 12%, rgba(238, 185, 65, .3), transparent 50%), linear-gradient(165deg, #06282a, #0a3a38 62%, #0e4a44); }
.n8-rec-card.r-red { background: radial-gradient(circle at 82% 10%, rgba(255, 69, 69, .4), transparent 48%), linear-gradient(165deg, #2a070b, #481016 62%, #661a20); }
.n8-rec-card.r-purple { background: radial-gradient(circle at 82% 12%, rgba(238, 185, 65, .25), transparent 50%), linear-gradient(165deg, #1a0d2e, #2a1446 62%, #3a1a5e); }
.n8-rec-card b { position: relative; z-index: 1; font-size: 14.5px; font-weight: 900; }
.n8-rec-card span { position: relative; z-index: 1; font-size: 10px; line-height: 1.4; color: rgba(255, 255, 255, .78); }
.n8-rec-timer, .n8-rec-btn {
  position: relative; z-index: 1; margin-top: auto; align-self: flex-start; font-style: normal;
  font-size: 10.5px; font-weight: 900; letter-spacing: .5px;
  padding: 4px 9px; border-radius: 6px; color: #fff;
  background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .18);
  font-variant-numeric: tabular-nums;
}
.n8-rec-btn { color: #1a1206; background: linear-gradient(180deg, #fff563, #eeb941); border: 0; }

/* ============================== ⑥ Natural8 Tweets ============================== */
.n8-tweets-head { display: flex; align-items: center; gap: 5px; margin: 16px 0 9px; }
.n8-tweets-head b { font-size: 16.5px; font-weight: 900; }
.n8-tweets-head > i:first-of-type { color: #7a7a7a; font-style: normal; }
.n8-tw-x { font-size: 13px; font-weight: 900; color: #f8f8f8; }
.n8-tw-handle { font-size: 11.5px; color: #bfbfbf; }
.n8-tw-verified { font-style: normal; font-size: 11px; color: #eeb941; }
.n8-tweets-scroller { display: flex; gap: 9px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.n8-tweets-scroller::-webkit-scrollbar { display: none; }
.n8-tweet-card {
  position: relative; flex: none; width: 214px; padding: 9px; border-radius: 12px; text-align: left;
  background: #101010; border: 1px solid rgba(255, 255, 255, .08); color: #f8f8f8;
}
.n8-tweet-card::before { content: ''; position: absolute; left: 9px; right: 9px; top: 0; height: 2px; background: #2a7fd0; border-radius: 2px; }
.n8-tweet-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 11.5px; line-height: 1.45; font-weight: 600; }
.n8-tweet-img {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  margin-top: 7px; height: 116px; border-radius: 8px; overflow: hidden;
  background: linear-gradient(160deg, #082040, #183058);
}
.n8-tweet-img.tw-red { background: radial-gradient(circle at 70% 20%, rgba(220, 45, 43, .5), transparent 55%), linear-gradient(160deg, #2a070b, #5a1018); }
.n8-tweet-img.tw-blue { background: linear-gradient(160deg, #082040, #183058); }
.n8-tweet-img.tw-teal { background: radial-gradient(circle at 70% 20%, rgba(91, 190, 53, .35), transparent 55%), linear-gradient(160deg, #062a24, #0d4a3a); }
.n8-tweet-img i { font-style: normal; font-size: 34px; color: rgba(255, 255, 255, .85); }
.n8-tweet-img em { font-style: normal; font-size: 8px; letter-spacing: 2px; color: rgba(255, 255, 255, .6); }
.n8-tweet-meta { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.n8-tweet-meta i { font-style: normal; font-size: 9.5px; color: #7a7a7a; }

/* ============================== ⑦ 赛事类别（金色勋章卡） ============================== */
.n8-cats-scroller { display: flex; gap: 9px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.n8-cats-scroller::-webkit-scrollbar { display: none; }
.n8-cat-card {
  flex: none; width: 318px; display: flex; align-items: stretch; text-align: left;
  border-radius: 12px; overflow: hidden; background: #0f0f0f; border: 1px solid rgba(238, 185, 65, .24);
}
.n8-medal {
  flex: none; width: 118px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: radial-gradient(circle at 50% 42%, #3a2c10, #120f07 72%);
  position: relative;
}
.n8-medal::before {
  content: ''; position: absolute; width: 88px; height: 88px; border-radius: 50%;
  background: conic-gradient(from 20deg, #8a6a1a, #fff563, #bf9713, #eeb941, #8a6a1a);
  box-shadow: 0 0 16px rgba(238, 185, 65, .35);
}
.n8-medal > i { position: absolute; top: 14px; width: 16px; height: 16px; color: #2a1c04; z-index: 2; }
.n8-medal > i svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.n8-medal b { position: relative; z-index: 1; font-size: 20px; font-weight: 900; color: #2a1c04; letter-spacing: .5px; }
.n8-medal em { position: relative; z-index: 1; font-style: normal; font-size: 6.5px; font-weight: 900; color: #3a2a08; letter-spacing: .8px; }
.n8-cat-body { flex: 1; min-width: 0; padding: 11px 11px 0; display: flex; flex-direction: column; }
.n8-cat-body > b { font-size: 13px; font-weight: 900; }
.n8-cat-body > span { margin-top: 3px; font-size: 9.5px; line-height: 1.45; color: #bfbfbf; }
.n8-cat-guarantee {
  margin-top: auto; margin-left: -11px; margin-right: -11px; margin-bottom: 0;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 11px; font-style: normal; font-size: 10px; font-weight: 800; color: #f8f8f8;
  background: linear-gradient(90deg, #5a0e12, #a81818 70%);
}
.n8-cat-guarantee i { font-style: normal; color: #eeb941; }

/* ============================== ⑧ 特殊功能 ============================== */
.n8-features-scroller { display: flex; gap: 9px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.n8-features-scroller::-webkit-scrollbar { display: none; }
.n8-feature-card {
  flex: none; width: 166px; min-height: 108px; border-radius: 12px; overflow: hidden;
  position: relative; padding: 10px; text-align: left; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(160deg, #1b1b1b, #0c0c0c); border: 1px solid rgba(255, 255, 255, .08);
}
.n8-feature-card::before { content: ''; position: absolute; inset: 0; opacity: .9; }
.n8-feature-card.f-time::before { background: radial-gradient(circle at 30% 30%, rgba(238, 185, 65, .35), transparent 55%), linear-gradient(160deg, #2a2410, #141007); }
.n8-feature-card.f-side::before { background: radial-gradient(circle at 70% 30%, rgba(120, 90, 230, .4), transparent 55%), linear-gradient(160deg, #191033, #0c0a18); }
.n8-feature-card.f-elo::before { background: radial-gradient(circle at 30% 30%, rgba(80, 160, 255, .35), transparent 55%), linear-gradient(160deg, #0d1a30, #070d18); }
.n8-feature-card.f-stream::before { background: radial-gradient(circle at 70% 30%, rgba(220, 45, 43, .4), transparent 55%), linear-gradient(160deg, #2a0d10, #140709); }
.n8-feature-visual { position: absolute; top: 10px; left: 10px; z-index: 1; font-size: 26px; }
.n8-feature-card b { position: relative; z-index: 1; font-size: 13.5px; font-weight: 900; color: #fff; text-align: right; }
.n8-feature-card span { position: relative; z-index: 1; margin-top: 2px; font-size: 9px; line-height: 1.35; color: rgba(255, 255, 255, .72); text-align: right; }

/* ============================== ⑨ 娱乐场 ============================== */
.n8-casino-scroller { display: flex; gap: 9px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.n8-casino-scroller::-webkit-scrollbar { display: none; }
.n8-casino-card {
  flex: none; width: 188px; min-height: 112px; border-radius: 12px; overflow: hidden;
  position: relative; padding: 10px; text-align: left; display: flex; flex-direction: column; justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, .08);
}
.n8-casino-card.c-gold { background: radial-gradient(circle at 78% 20%, rgba(238, 185, 65, .5), transparent 55%), linear-gradient(160deg, #2a2010, #141007); }
.n8-casino-card.c-black { background: radial-gradient(circle at 78% 20%, rgba(220, 45, 43, .45), transparent 55%), linear-gradient(160deg, #1a0609, #0c0507); }
.n8-casino-card.c-thanks { background: radial-gradient(circle at 78% 20%, rgba(90, 120, 220, .45), transparent 55%), linear-gradient(160deg, #101b33, #080d18); }
.n8-casino-art { position: absolute; top: 8px; right: 10px; font-size: 30px; }
.n8-casino-card b { position: relative; z-index: 1; font-size: 14px; font-weight: 900; color: #fff; }
.n8-casino-card span { position: relative; z-index: 1; margin-top: 2px; font-size: 9px; line-height: 1.4; color: rgba(255, 255, 255, .75); }

/* ============================== ⑩ 现金桌列表 ============================== */
.n8-cash { margin-top: 4px; }
.n8-group { margin-bottom: 10px; }
.n8-group-head { display: flex; align-items: baseline; gap: 7px; margin: 8px 0 6px; }
.n8-group-head b { font-size: 12.5px; font-weight: 900; color: #f8f8f8; }
.n8-group-head small { font-size: 9.5px; color: #7a7a7a; }
.n8-trows { display: flex; flex-direction: column; gap: 7px; }
.n8-trow {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; text-align: left;
  border-radius: 12px; background: #101010; border: 1px solid rgba(255, 255, 255, .07);
  transition: transform .12s ease, border-color .12s ease;
}
.n8-trow:active { transform: scale(.992); border-color: rgba(238, 185, 65, .35); }
.n8-trow-ico {
  flex: none; width: 36px; height: 36px; border-radius: 9px;
  display: grid; place-items: center; font-size: 17px; color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
}
.n8-trow-ico.c-blue { background: linear-gradient(160deg, #143a63, #0a1c30); color: #9fd0ff; }
.n8-trow-ico.c-purple { background: linear-gradient(160deg, #3a1c66, #1a0d2e); color: #c7a8ff; }
.n8-trow-ico.c-orange { background: linear-gradient(160deg, #5a3208, #2a1704); color: #ffc861; }
.n8-trow-ico.c-teal { background: linear-gradient(160deg, #0d3a3a, #06201f); color: #6fe3d6; }
.n8-trow-ico.c-red, .n8-trow-ico.c-crimson { background: linear-gradient(160deg, #5a1018, #2a070b); color: #ff9a9a; }
.n8-trow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.n8-trow-main > b { font-size: 12.5px; font-weight: 900; color: #f8f8f8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n8-trow-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 7px; }
.n8-trow-meta i { font-style: normal; font-size: 9px; color: #7a7a7a; }
.n8-trow-meta em { font-style: normal; font-size: 9px; color: #bfbfbf; }
.n8-trow-meta em + em::before { content: '·'; margin-right: 5px; color: #4a4a4a; }
.n8-trow-st.waiting { color: #9a9a9a; }
.n8-trow-st.playing { color: #5bbe35; }
.n8-trow-st.full { color: #ff6b6b; }
.n8-trow-enter {
  flex: none; padding: 7px 13px; border-radius: 8px; font-size: 12px; font-weight: 900; color: #1a1206;
  background: linear-gradient(180deg, #fff563, #eeb941);
  box-shadow: 0 3px 10px rgba(238, 185, 65, .25);
}

/* ============================== 锦标赛 ============================== */
.n8-mtt { margin-top: 2px; }
.n8-mtt-list { display: flex; flex-direction: column; gap: 7px; }
.n8-mtt-card {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px; text-align: left;
  background: #101010; border: 1px solid rgba(255, 255, 255, .07); border-radius: 12px;
}
.n8-mtt-ico {
  flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(160deg, #242424, #101010); border: 1px solid rgba(255, 255, 255, .12);
}
.n8-mtt-ico svg { width: 19px; height: 19px; fill: none; stroke: #bfbfbf; stroke-width: 1.8; }
.n8-mtt-ico.hot { background: linear-gradient(160deg, #5a1018, #2a070b); border-color: rgba(220, 45, 43, .5); }
.n8-mtt-ico.hot svg { stroke: #eeb941; }
.n8-mtt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.n8-mtt-main > b { font-size: 12.5px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n8-mtt-main > span { font-size: 9.5px; color: #bfbfbf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n8-mtt-tag { font-style: normal; font-size: 8.5px; font-weight: 800; align-self: flex-start; padding: 0 5px; border-radius: 4px; }
.n8-mtt-tag.hot { color: #fff; background: #dc2d2b; }
.n8-mtt-tag.live { color: #5bbe35; border: 1px solid rgba(91, 190, 53, .5); }
.n8-mtt-go { flex: none; padding: 6px 12px; border-radius: 8px; font-size: 11.5px; font-weight: 900; color: #fff; background: #dc2d2b; }
.n8-mtt-sng { margin-top: 6px; display: flex; flex-direction: column; gap: 7px; }

/* ============================== 活动入口 ============================== */
.n8-activity { margin: 12px 0 4px; }
.n8-act-card {
  position: relative; width: 100%; padding: 14px; border-radius: 12px; text-align: left; overflow: hidden;
  background: linear-gradient(115deg, #2a070b, #481016 58%, #661a20);
  border: 1px solid rgba(238, 185, 65, .35);
  display: flex; flex-direction: column; gap: 3px;
}
.n8-act-glow { position: absolute; right: -20px; top: -30px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(238, 185, 65, .35), transparent 65%); }
.n8-act-card b { position: relative; z-index: 1; font-size: 14.5px; font-weight: 900; }
.n8-act-card span { position: relative; z-index: 1; font-size: 10px; color: rgba(255, 255, 255, .78); }
.n8-act-card em { position: relative; z-index: 1; margin-top: 6px; font-style: normal; align-self: flex-start; padding: 4px 12px; border-radius: 6px; font-size: 10.5px; font-weight: 900; color: #1a1206; background: linear-gradient(180deg, #fff563, #eeb941); }

/* ============================== 二级页：Hero / Promo / Quick / Slots / Casino ============================== */
.n8-hero-card {
  position: relative; margin-top: 2px; padding: 16px; border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; gap: 4px; border: 1px solid rgba(255, 255, 255, .1);
}
.n8-hero-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 86% 12%, rgba(238, 185, 65, .28), transparent 46%); }
.n8-hero-card.hero-aof { background: radial-gradient(circle at 84% 10%, rgba(220, 45, 43, .5), transparent 50%), linear-gradient(115deg, #2a0708, #480d12 58%, #66161c); }
.n8-hero-card.hero-rush { background: radial-gradient(circle at 84% 10%, rgba(238, 185, 65, .4), transparent 50%), linear-gradient(115deg, #16130a, #3a2c08 58%, #4a3a0a); }
.n8-hero-card.hero-mtt { background: radial-gradient(circle at 84% 10%, rgba(238, 185, 65, .4), transparent 50%), linear-gradient(115deg, #0d1a30, #1a2c48 58%, #243a5e); }
.n8-hero-card.hero-slots { background: radial-gradient(circle at 84% 10%, rgba(120, 90, 230, .4), transparent 50%), linear-gradient(115deg, #191033, #2a1a4a 58%, #341e5e); }
.n8-hero-card.hero-casino { background: radial-gradient(circle at 84% 10%, rgba(80, 160, 255, .4), transparent 50%), linear-gradient(115deg, #0d1a30, #183058 58%, #1e3a66); }
.n8-hero-tag { position: relative; z-index: 1; align-self: flex-start; font-size: 8.5px; font-weight: 800; letter-spacing: 1px; color: #eeb941; padding: 2px 7px; border-radius: 999px; border: 1px solid rgba(238, 185, 65, .45); }
.n8-hero-card > b { position: relative; z-index: 1; font-size: 19px; font-weight: 900; }
.n8-hero-card > span { position: relative; z-index: 1; font-size: 10px; color: rgba(255, 255, 255, .78); }
.n8-hero-card > em { position: relative; z-index: 1; margin-top: 8px; align-self: flex-start; font-style: normal; padding: 5px 13px; border-radius: 6px; font-size: 11px; font-weight: 900; color: #1a1206; background: linear-gradient(180deg, #fff563, #eeb941); }

.n8-promos { display: flex; gap: 9px; margin: 2px 0 10px; }
.n8-promo-card { flex: 1; padding: 11px; border-radius: 12px; text-align: left; display: flex; flex-direction: column; gap: 2px; border: 1px solid rgba(255, 255, 255, .1); }
.n8-promo-card.p-rain { background: radial-gradient(circle at 82% 10%, rgba(255, 69, 69, .4), transparent 55%), linear-gradient(160deg, #2a0a10, #481016); }
.n8-promo-card.p-wheel { background: radial-gradient(circle at 82% 10%, rgba(238, 185, 65, .4), transparent 55%), linear-gradient(160deg, #2a2010, #141007); }
.n8-promo-card b { font-size: 13px; font-weight: 900; }
.n8-promo-card span { font-size: 9px; color: rgba(255, 255, 255, .72); }
.n8-promo-card em { margin-top: 5px; font-style: normal; font-size: 10px; font-weight: 900; color: #eeb941; }

.n8-quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 10px 0 2px; }
.n8-quick-actions button { padding: 10px 2px; border-radius: 12px; background: #101010; border: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 16px; }
.n8-quick-actions button span { font-size: 9.5px; color: #bfbfbf; }

.n8-slots, .n8-casino { margin-top: 2px; }
.n8-slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.n8-slot-card { aspect-ratio: 1 / 1.05; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px; }
.n8-slot-card i { font-style: normal; font-size: 26px; }
.n8-slot-card b { font-size: 11px; font-weight: 900; color: #fff; }
.n8-slot-card span { font-size: 8px; color: rgba(255, 255, 255, .65); }
.n8-slot-card.s-red { background: radial-gradient(circle at 70% 20%, rgba(220, 45, 43, .5), transparent 55%), linear-gradient(160deg, #2a0a10, #140608); }
.n8-slot-card.s-blue { background: radial-gradient(circle at 70% 20%, rgba(80, 160, 255, .45), transparent 55%), linear-gradient(160deg, #0d1a30, #070d18); }
.n8-slot-card.s-teal { background: radial-gradient(circle at 70% 20%, rgba(91, 190, 53, .45), transparent 55%), linear-gradient(160deg, #062a24, #04120f); }
.n8-slot-card.s-purple { background: radial-gradient(circle at 70% 20%, rgba(120, 90, 230, .45), transparent 55%), linear-gradient(160deg, #191033, #0c0a18); }
.n8-slot-card.s-gold { background: radial-gradient(circle at 70% 20%, rgba(238, 185, 65, .5), transparent 55%), linear-gradient(160deg, #2a2010, #141007); }
.n8-slot-card.s-dark { background: linear-gradient(160deg, #1b1b1b, #0c0c0c); }

.n8-casino-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.n8-casino-item { padding: 11px 2px; border-radius: 12px; background: #101010; border: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.n8-casino-item i { font-style: normal; font-size: 22px; }
.n8-casino-item b { font-size: 10px; font-weight: 700; color: #f8f8f8; }

/* ============================== 我的页（20 宫格） ============================== */
.n8-me { padding-bottom: 6px; }
.n8-me-card { padding: 13px; border-radius: 14px; background: linear-gradient(160deg, #181818, #0d0d0d); border: 1px solid rgba(255, 255, 255, .09); }
.n8-me-top { display: flex; align-items: center; gap: 10px; }
.n8-avatar {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-size: 19px; font-weight: 900; color: #fff;
  background: linear-gradient(160deg, #dc2d2b, #7a0f14); border: 2px solid rgba(238, 185, 65, .6);
}
.n8-avatar.big { width: 54px; height: 54px; font-size: 22px; }
.n8-me-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.n8-me-id b { font-size: 15px; font-weight: 900; }
.n8-me-id span { font-size: 9.5px; color: #7a7a7a; }
.n8-me-id i { font-style: normal; margin-left: 4px; font-size: 8.5px; font-weight: 800; color: #eeb941; border: 1px solid rgba(238, 185, 65, .45); border-radius: 999px; padding: 0 5px; }
.n8-me-avatar-btn { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #101010; border: 1px solid rgba(255, 255, 255, .12); }
.n8-me-avatar-btn svg { width: 15px; height: 15px; fill: none; stroke: #bfbfbf; stroke-width: 1.8; }
.n8-me-wallet { display: flex; align-items: stretch; gap: 8px; margin-top: 12px; }
.n8-me-wallet > div:not(.n8-me-wallet-acts) { flex: 1; padding: 8px 9px; border-radius: 10px; background: #0c0c0c; border: 1px solid rgba(255, 255, 255, .07); display: flex; flex-direction: column; gap: 2px; }
.n8-me-wallet span { font-size: 8.5px; color: #7a7a7a; }
.n8-me-wallet b { font-size: 14px; font-weight: 900; color: #eeb941; font-variant-numeric: tabular-nums; }
.n8-me-wallet-acts { flex: none; display: flex; flex-direction: column; gap: 5px; }
.n8-me-wallet-acts button { padding: 5px 11px; border-radius: 7px; font-size: 10px; font-weight: 900; color: #1a1206; background: linear-gradient(180deg, #fff563, #eeb941); }
.n8-me-wallet-acts button + button { background: #1b1b1b; color: #f8f8f8; border: 1px solid rgba(255, 255, 255, .14); }
.n8-me-grid-head { display: flex; align-items: baseline; justify-content: space-between; margin: 15px 0 8px; }
.n8-me-grid-head b { font-size: 14px; font-weight: 900; }
.n8-me-grid-head small { font-size: 9.5px; color: #7a7a7a; }
.n8-me-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.n8-me-item { padding: 10px 2px 8px; border-radius: 10px; background: #101010; border: 1px solid rgba(255, 255, 255, .07); display: flex; flex-direction: column; align-items: center; gap: 5px; }
.n8-me-item:active { transform: scale(.96); }
.n8-me-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 15px; font-style: normal; }
.n8-me-ico.g-blue { background: linear-gradient(160deg, #143a63, #0a1c30); }
.n8-me-ico.g-red { background: linear-gradient(160deg, #5a1018, #2a070b); }
.n8-me-ico.g-gold { background: linear-gradient(160deg, #4a3a10, #241c06); }
.n8-me-ico.g-teal { background: linear-gradient(160deg, #0d3a3a, #06201f); }
.n8-me-item span { font-size: 9.5px; color: #d0d0d0; }
.n8-me-rankline { width: 100%; margin-top: 9px; padding: 10px 12px; border-radius: 12px; text-align: left; background: linear-gradient(160deg, #181818, #0d0d0d); border: 1px solid rgba(238, 185, 65, .28); display: flex; flex-direction: column; gap: 2px; }
.n8-me-rankline b { font-size: 11.5px; font-weight: 900; }
.n8-me-rankline span { font-size: 9.5px; color: #bfbfbf; }
.n8-me-rankline em { font-style: normal; font-size: 9px; color: #7a7a7a; }
.n8-me-foot { margin-top: 14px; text-align: center; font-size: 8.5px; color: #585858; letter-spacing: .4px; }

/* ============================== ⑪ 底部导航 ============================== */
.n8-bottomnav {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 40;
  width: 100%; max-width: 1200px; height: calc(58px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex; background: #000; border-top: 1px solid #1c1c1c;
}
.n8-bnav { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #585858; }
.n8-bnav i { display: inline-flex; width: 20px; height: 20px; }
.n8-bnav i svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.n8-bnav span { font-size: 9.5px; font-weight: 700; }
.n8-bnav.on { color: #eeb941; }
.n8-bnav.on i { filter: drop-shadow(0 0 6px rgba(238, 185, 65, .45)); }

/* ============================== 面板 / Toast / 空态 ============================== */
.n8-mask { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .66); }
.n8-avatar-panel, .n8-lang-panel {
  position: absolute; top: 78px; right: 12px; z-index: 81; width: 262px;
  padding: 12px; border-radius: 12px; background: #141414; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .7);
}
.n8-ap-head { display: flex; align-items: center; gap: 10px; }
.n8-ap-head b { display: block; font-size: 13px; font-weight: 900; }
.n8-ap-head span { display: block; font-size: 9px; color: #7a7a7a; margin-top: 2px; }
.n8-ap-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 12px; }
.n8-ap-acts button { height: 32px; border-radius: 8px; background: #1b1b1b; border: 1px solid rgba(255, 255, 255, .12); font-size: 11px; color: #f8f8f8; }
.n8-ap-acts button.danger { color: #ff6b6b; border-color: rgba(220, 45, 43, .5); }
.n8-lp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.n8-lp-head b { font-size: 13px; font-weight: 900; }
.n8-lang-item { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 9px 4px; font-size: 12px; color: #f8f8f8; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.n8-lang-item.on { color: #eeb941; font-weight: 800; }
.n8-lang-item i { font-style: normal; }
.n8-lp-tip { margin-top: 8px; font-size: 8.5px; line-height: 1.5; color: #585858; }
.n8-toast {
  position: fixed; left: 50%; bottom: 82px; transform: translateX(-50%); z-index: 90;
  max-width: 84%; padding: 8px 16px; border-radius: 999px;
  background: rgba(20, 20, 20, .96); border: 1px solid rgba(238, 185, 65, .4);
  color: #f8f8f8; font-size: 11.5px; text-align: center; box-shadow: 0 8px 20px rgba(0, 0, 0, .55);
}
.n8-skel { height: 96px; margin: 6px 0; border-radius: 12px; background: linear-gradient(90deg, #101010, #181818, #101010); background-size: 200% 100%; animation: n8shimmer 1.2s linear infinite; }
@keyframes n8shimmer { to { background-position: -200% 0; } }
.n8-empty { padding: 18px 12px; text-align: center; font-size: 10.5px; color: #7a7a7a; border-radius: 10px; background: #0c0c0c; border: 1px dashed rgba(255, 255, 255, .1); }

/* ============================== 桌面适配（≥900px） ============================== */
@media (min-width: 900px) {
  .n8-app { padding-bottom: 0; }
  .n8-statusbar { height: 30px; padding: 0 48px; }
  .n8-mini-logo { width: 20px; height: 20px; }
  .n8-online { font-size: 13px; }
  .n8-header { height: 64px; padding: 0 48px; }
  .n8-brand { font-size: 27px; letter-spacing: 3px; }
  .n8-mainnav { padding: 4px; gap: 4px; }
  .n8-main-tab { padding: 8px 22px; font-size: 14px; }
  .n8-subnav { height: 46px; padding: 0 48px; }
  .n8-sub-tab { padding: 0 22px; font-size: 14px; }
  .n8-main { max-width: 1104px; margin: 0 auto; padding: 16px 0 40px; }
  .n8-banner { height: 240px; aspect-ratio: auto; border-radius: 16px; }
  .n8-banner-slide b { font-size: 26px; }
  .n8-banner-sub { font-size: 13px; }
  .n8-sec-head { margin: 24px 0 12px; }
  .n8-sec-head h2 { font-size: 20px; }
  .n8-sec-more { font-size: 12px; }
  .n8-rec-card { width: 240px; min-height: 140px; padding: 14px; }
  .n8-rec-card b { font-size: 17px; }
  .n8-rec-card span { font-size: 11.5px; }
  .n8-tweet-card { width: 338px; padding: 12px; }
  .n8-tweet-title { font-size: 13px; }
  .n8-tweet-img { height: 170px; }
  .n8-cat-card { width: 540px; }
  .n8-medal { width: 200px; }
  .n8-medal::before { width: 150px; height: 150px; }
  .n8-medal b { font-size: 30px; }
  .n8-medal em { font-size: 9px; }
  .n8-cat-body > b { font-size: 16px; }
  .n8-cat-body > span { font-size: 12px; }
  .n8-cat-guarantee { font-size: 12px; padding: 8px 14px; }
  .n8-feature-card { width: 300px; min-height: 150px; }
  .n8-feature-card b { font-size: 17px; }
  .n8-feature-card span { font-size: 11px; }
  .n8-casino-card { width: 300px; min-height: 150px; }
  .n8-casino-card b { font-size: 17px; }
  .n8-bottomnav { display: none; }
  .n8-trows { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .n8-trow { padding: 12px 14px; }
  .n8-trow-main > b { font-size: 14px; }
  .n8-trow-meta i { font-size: 11px; }
  .n8-trow-meta em { font-size: 11px; }
  .n8-trow-enter { font-size: 13px; padding: 8px 18px; }
  .n8-me-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .n8-me-item { padding: 14px 4px; }
  .n8-me-ico { width: 38px; height: 38px; font-size: 18px; }
  .n8-me-item span { font-size: 12px; }
  .n8-slot-grid { grid-template-columns: repeat(6, 1fr); gap: 12px; }
  .n8-casino-grid { grid-template-columns: repeat(8, 1fr); gap: 12px; }
  .n8-quick-actions { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .n8-avatar-panel, .n8-lang-panel { top: 96px; right: 48px; }
  .n8-mtt-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .n8-mtt-sng { grid-column: 1 / -1; }
}

/* 小屏兜底 */
@media (max-width: 360px) {
  .n8-brand { font-size: 18px; }
  .n8-main-tab { padding: 6px 9px; font-size: 11px; }
  .n8-sub-tab { padding: 0 9px; font-size: 11px; }
  .n8-banner-slide b { font-size: 17px; }
  .n8-rec-card { width: 138px; }
  .n8-cat-card { width: 296px; }
}

/* ==========================================================================
   task-51：四主 tab 全量 N8 内容（锦标赛 / 老虎机 / 娱乐场）
   使用 n8-kit/kit.css 的设计令牌（--n8-*）与基础组件（.n8-pill-btn/.n8-sec-head/
   .n8-grid-3/.n8-empty/.n8-skeleton），此处只补 tab 专属布局，不重复造组件。
   ========================================================================== */
/* ---- tab 页头 / 筛选器（chips） ---- */
.n8x-tabhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 10px 0 12px; }
.n8x-tabhead h2 { margin: 0; font-size: 20px; font-weight: 900; letter-spacing: .3px; display: flex; align-items: baseline; gap: 7px; }
.n8x-tabhead h2 small { font-size: 9px; font-weight: 700; letter-spacing: 1.6px; color: var(--n8-gold); text-transform: uppercase; }
.n8x-tabhead > div > span { display: block; margin-top: 4px; font-size: 10.5px; color: var(--n8-text-mute, #8a8a8a); }
.n8x-tabhead .gold { color: var(--n8-gold); }
.n8x-filterbox { margin: 0 0 12px; padding: 10px 11px; border-radius: 12px; background: #0c0c0c; border: 1px solid #1c1c1c; display: flex; flex-direction: column; gap: 7px; }
.n8x-filter-label { font-size: 9px; font-weight: 800; letter-spacing: 1.2px; color: #6f6f6f; text-transform: uppercase; }
.n8x-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.n8x-chips + .n8x-filter-label { margin-top: 3px; }
.n8x-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: var(--n8-pill, 999px);
  background: #161616; border: 1px solid #262626; color: #bfbfbf; font-size: 11.5px; font-weight: 700;
}
.n8x-chip em { font-style: normal; font-size: 9px; font-weight: 800; color: #6f6f6f; }
.n8x-chip.on { background: var(--n8-red); border-color: var(--n8-red); color: #fff; box-shadow: 0 3px 10px rgba(220, 45, 43, .3); }
.n8x-chip.on em { color: rgba(255, 255, 255, .8); }

/* ---- 锦标赛赛事卡 ---- */
.n8x-mtt-list { display: flex; flex-direction: column; gap: 9px; }
.n8x-mtt-card { border-radius: 12px; background: var(--n8-card, #101010); border: 1px solid #1d1d1d; padding: 11px 12px; }
.n8x-mtt-top { display: flex; align-items: center; gap: 9px; }
.n8x-mtt-cover {
  flex: none; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  font-size: 21px; border: 1px solid rgba(255, 255, 255, .1);
}
.n8x-mtt-cover.mtt-tex { background: radial-gradient(circle at 32% 28%, rgba(80, 160, 255, .4), transparent 60%), linear-gradient(160deg, #0d1a30, #070d18); }
.n8x-mtt-cover.mtt-card { background: radial-gradient(circle at 32% 28%, rgba(220, 45, 43, .45), transparent 60%), linear-gradient(160deg, #2a0a10, #140608); }
.n8x-mtt-cover.mtt-sp { background: radial-gradient(circle at 32% 28%, rgba(120, 90, 230, .45), transparent 60%), linear-gradient(160deg, #191033, #0c0a18); }
.n8x-mtt-cover.mtt-arc { background: radial-gradient(circle at 32% 28%, rgba(238, 185, 65, .45), transparent 60%), linear-gradient(160deg, #2a2010, #141007); }
.n8x-mtt-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.n8x-mtt-title b { font-size: 13.5px; font-weight: 900; color: var(--n8-text, #fff); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n8x-mtt-title span { font-size: 9px; color: #8a8a8a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n8x-mtt-status { flex: none; font-style: normal; font-size: 9px; font-weight: 800; padding: 2px 7px; border-radius: 999px; }
.n8x-mtt-status.st-reg { color: #fff; background: var(--n8-red); }
.n8x-mtt-status.st-soon { color: var(--n8-gold); border: 1px solid rgba(238, 185, 65, .5); }
.n8x-mtt-status.st-live { color: var(--n8-green); border: 1px solid rgba(91, 190, 53, .5); }
.n8x-mtt-status.st-done { color: #6f6f6f; border: 1px solid #2a2a2a; }
.n8x-mtt-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 9px; }
.n8x-mtt-stats > div { padding: 6px 7px; border-radius: 8px; background: #0a0a0a; border: 1px solid #191919; display: flex; flex-direction: column; gap: 2px; }
.n8x-mtt-stats span { font-size: 8px; color: #6f6f6f; }
.n8x-mtt-stats b { font-size: 11.5px; font-weight: 900; color: var(--n8-text, #fff); font-variant-numeric: tabular-nums; }
.n8x-mtt-stats b.gold { color: var(--n8-gold); }
.n8x-mtt-stats b i { font-style: normal; font-size: 8.5px; color: #6f6f6f; }
.n8x-mtt-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; }
.n8x-mtt-note { font-size: 8.5px; color: #6f6f6f; }
.n8x-mtt-foot .n8-pill-btn { padding: 7px 16px; font-size: 11.5px; }

/* ---- 老虎机游戏格 ---- */
.n8x-slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.n8x-slot-tile {
  position: relative; aspect-ratio: 1 / 1.08; border-radius: 12px; overflow: hidden; text-align: left;
  padding: 8px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  border: 1px solid rgba(255, 255, 255, .08); color: #fff;
}
.n8x-slot-tile::before { content: ''; position: absolute; inset: 0; opacity: .95; }
.n8x-slot-tile.sg-red::before { background: radial-gradient(circle at 72% 18%, rgba(220, 45, 43, .55), transparent 55%), linear-gradient(160deg, #2a0a10, #140608); }
.n8x-slot-tile.sg-blue::before { background: radial-gradient(circle at 72% 18%, rgba(80, 160, 255, .5), transparent 55%), linear-gradient(160deg, #0d1a30, #070d18); }
.n8x-slot-tile.sg-teal::before { background: radial-gradient(circle at 72% 18%, rgba(91, 190, 53, .5), transparent 55%), linear-gradient(160deg, #062a24, #04120f); }
.n8x-slot-tile.sg-gold::before { background: radial-gradient(circle at 72% 18%, rgba(238, 185, 65, .55), transparent 55%), linear-gradient(160deg, #2a2010, #141007); }
.n8x-slot-tile.sg-purple::before { background: radial-gradient(circle at 72% 18%, rgba(120, 90, 230, .55), transparent 55%), linear-gradient(160deg, #191033, #0c0a18); }
.n8x-slot-tile.sg-orange::before { background: radial-gradient(circle at 72% 18%, rgba(255, 140, 50, .5), transparent 55%), linear-gradient(160deg, #2a1508, #140a04); }
.n8x-slot-tile.sg-green::before { background: radial-gradient(circle at 72% 18%, rgba(91, 190, 53, .45), transparent 55%), linear-gradient(160deg, #142a10, #091407); }
.n8x-slot-tile.sg-crimson::before { background: radial-gradient(circle at 72% 18%, rgba(255, 69, 69, .5), transparent 55%), linear-gradient(160deg, #2a070b, #140406); }
.n8x-slot-tile.sg-dark::before { background: radial-gradient(circle at 72% 18%, rgba(120, 120, 140, .35), transparent 55%), linear-gradient(160deg, #1b1b1b, #0c0c0c); }
.n8x-slot-cover { position: relative; z-index: 1; font-size: 30px; margin-top: auto; }
.n8x-slot-name { position: relative; z-index: 1; font-size: 11.5px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n8x-slot-play { position: relative; z-index: 1; font-size: 8px; color: rgba(255, 255, 255, .6); }
.n8x-slot-badge {
  position: absolute; z-index: 2; top: 6px; right: 6px; font-style: normal;
  font-size: 8px; font-weight: 900; letter-spacing: .5px; padding: 2px 6px; border-radius: 999px;
}
.n8x-slot-badge.b-hot { color: #fff; background: var(--n8-red); box-shadow: 0 2px 8px rgba(220, 45, 43, .45); }
.n8x-slot-badge.b-new { color: #1a1206; background: var(--n8-gold); }

/* ---- 娱乐场真人桌卡 ---- */
.n8x-live-note { margin: 0 0 10px; padding: 9px 11px; border-radius: 10px; font-size: 9.5px; line-height: 1.5; color: var(--n8-gold); background: rgba(238, 185, 65, .08); border: 1px dashed rgba(238, 185, 65, .35); }
.n8x-live-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.n8x-live-card { border-radius: 12px; overflow: hidden; background: var(--n8-card, #101010); border: 1px solid #1d1d1d; display: flex; flex-direction: column; }
.n8x-live-cover { position: relative; height: 74px; background: radial-gradient(circle at 30% 30%, rgba(238, 185, 65, .3), transparent 58%), linear-gradient(150deg, #1a1408, #0d0a06); display: grid; place-items: center; }
.n8x-live-dealer { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 900; color: #1a1206; background: linear-gradient(160deg, #fff563, #eeb941); border: 2px solid rgba(255, 255, 255, .35); }
.n8x-live-badge { position: absolute; top: 6px; left: 6px; font-style: normal; font-size: 7.5px; font-weight: 900; letter-spacing: .8px; padding: 1px 5px; border-radius: 3px; }
.n8x-live-badge.live { color: #fff; background: var(--n8-red); }
.n8x-live-badge.busy { color: #cfcfcf; background: #2a2a2a; }
.n8x-live-body { padding: 8px 9px 0; display: flex; flex-direction: column; gap: 2px; }
.n8x-live-body > b { font-size: 12px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n8x-live-dealer-name { font-size: 9px; color: #8a8a8a; }
.n8x-live-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.n8x-live-meta i { font-style: normal; font-size: 8.5px; color: #bfbfbf; }
.n8x-live-meta i + i::before { content: '·'; margin-right: 6px; color: #4a4a4a; }
.n8x-live-online { display: flex; align-items: center; gap: 4px; font-size: 8.5px; color: var(--n8-green); }
.n8x-live-online .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--n8-green); box-shadow: 0 0 6px rgba(91, 190, 53, .7); }
.n8x-live-enter { margin: 8px 9px 9px; padding: 6px 0; font-size: 10.5px; justify-content: center; }

/* ---- 响应式：桌面放大网格 ---- */
@media (min-width: 900px) {
  .n8x-tabhead h2 { font-size: 24px; }
  .n8x-mtt-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .n8x-mtt-card { padding: 14px; }
  .n8x-mtt-title b { font-size: 15px; }
  .n8x-mtt-stats b { font-size: 13px; }
  .n8x-slot-grid { grid-template-columns: repeat(6, 1fr); gap: 12px; }
  .n8x-slot-cover { font-size: 34px; }
  .n8x-live-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .n8x-live-cover { height: 96px; }
  .n8x-live-dealer { width: 46px; height: 46px; font-size: 17px; }
  .n8x-live-body > b { font-size: 14px; }
  .n8x-filterbox { padding: 12px 14px; }
  .n8x-chip { font-size: 12.5px; padding: 7px 14px; }
}
@media (max-width: 360px) {
  .n8x-mtt-stats { grid-template-columns: repeat(2, 1fr); }
  .n8x-slot-grid { gap: 6px; }
  .n8x-slot-name { font-size: 10.5px; }
}

/* ==========================================================================
   task-72：新玩法入口（娱乐场真实游戏格 / 锦标赛特色赛制 / 扑克特色玩法）
   色板沿用 N8 实测令牌；真实入口卡片统一 data-ext 跳转。
   ========================================================================== */
.n8x-egame-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.n8x-egame-card {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px;
  border-radius: 12px; overflow: hidden; text-align: left; min-height: 122px;
  border: 1px solid rgba(255, 255, 255, .1); color: #f8f8f8; background: #101010;
}
.n8x-egame-card::before { content: ''; position: absolute; inset: 0; z-index: 0; opacity: .96; }
.n8x-egame-card.cg-baccarat::before { background: radial-gradient(circle at 82% 14%, rgba(220, 45, 43, .5), transparent 55%), linear-gradient(160deg, #26090c, #120406); }
.n8x-egame-card.cg-blackjack::before { background: radial-gradient(circle at 82% 14%, rgba(80, 160, 255, .45), transparent 55%), linear-gradient(160deg, #0a1830, #050c18); }
.n8x-egame-card.cg-dragon::before { background: radial-gradient(circle at 82% 14%, rgba(238, 185, 65, .45), transparent 55%), linear-gradient(160deg, #2a2010, #141007); }
.n8x-egame-card.cg-sicbo::before { background: radial-gradient(circle at 82% 14%, rgba(91, 190, 53, .45), transparent 55%), linear-gradient(160deg, #062a24, #04120f); }
.n8x-egame-card.cg-gold::before { background: radial-gradient(circle at 82% 14%, rgba(238, 185, 65, .55), transparent 55%), linear-gradient(160deg, #2a2010, #141007); }
.n8x-egame-card.cg-roulette::before { background: radial-gradient(circle at 82% 14%, rgba(180, 120, 255, .4), transparent 55%), linear-gradient(160deg, #1a0d2e, #0c0718); }
.n8x-egame-card.cg-vp::before { background: radial-gradient(circle at 82% 14%, rgba(80, 200, 220, .4), transparent 55%), linear-gradient(160deg, #0a1f26, #051114); }
.n8x-egame-cover { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; }
.n8x-egame-cover i { font-style: normal; font-size: 25px; line-height: 1; }
.n8x-egame-cover em { font-style: normal; font-size: 7.5px; font-weight: 800; letter-spacing: 1.1px; color: rgba(255, 255, 255, .6); }
.n8x-egame-body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.n8x-egame-body b { font-size: 14px; font-weight: 900; }
.n8x-egame-body span { font-size: 8.5px; line-height: 1.4; color: rgba(255, 255, 255, .72); }
.n8x-egame-go { position: relative; z-index: 1; margin-top: auto; align-self: flex-start; font-style: normal; font-size: 9.5px; font-weight: 900; color: #1a1206; background: linear-gradient(180deg, #fff563, #eeb941); padding: 3px 10px; border-radius: 999px; }

.n8x-format-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
.n8x-format-card { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 11px; border-radius: 12px; overflow: hidden; text-align: left; min-height: 134px; border: 1px solid rgba(255, 255, 255, .12); color: #f8f8f8; }
.n8x-format-card::before { content: ''; position: absolute; inset: 0; z-index: 0; }
.n8x-format-card.fmt-blue::before { background: radial-gradient(circle at 84% 12%, rgba(80, 160, 255, .45), transparent 55%), linear-gradient(150deg, #0a1830, #183058 70%, #24406e); }
.n8x-format-card.fmt-red::before { background: radial-gradient(circle at 84% 12%, rgba(238, 185, 65, .45), transparent 55%), linear-gradient(150deg, #2a070b, #5a1018 70%, #7a1a20); }
.n8x-format-card > * { position: relative; z-index: 1; }
.n8x-format-card i { font-style: normal; font-size: 23px; line-height: 1.1; }
.n8x-format-card b { font-size: 14.5px; font-weight: 900; margin-top: 2px; }
.n8x-format-card em { font-style: normal; font-size: 7px; letter-spacing: 1px; color: #eeb941; font-weight: 800; }
.n8x-format-card span { font-size: 8.5px; line-height: 1.4; color: rgba(255, 255, 255, .72); margin-top: 2px; }
.n8x-format-card strong { margin-top: auto; align-self: flex-start; font-size: 9.5px; font-weight: 900; color: #1a1206; background: linear-gradient(180deg, #fff563, #eeb941); padding: 3px 10px; border-radius: 999px; }

.n8x-wave { margin-top: 2px; }
.n8x-wave-scroller { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.n8x-wave-scroller::-webkit-scrollbar { display: none; }
.n8x-wave-card {
  flex: none; width: 150px; min-height: 100px; padding: 10px; border-radius: 12px; text-align: left;
  display: flex; flex-direction: column; gap: 2px; border: 1px solid rgba(255, 255, 255, .09);
  background: radial-gradient(circle at 82% 10%, rgba(238, 185, 65, .2), transparent 55%), linear-gradient(160deg, #141414, #0a0a0a);
}
.n8x-wave-card i { font-style: normal; font-size: 21px; line-height: 1.1; }
.n8x-wave-card b { font-size: 12.5px; font-weight: 900; }
.n8x-wave-card span { font-size: 8.5px; line-height: 1.35; color: #bfbfbf; }
.n8x-wave-card em { margin-top: auto; font-style: normal; font-size: 9px; font-weight: 900; color: #eeb941; }
.n8-sec-head h3 { margin: 0; font-size: 16.5px; font-weight: 900; letter-spacing: .3px; }
.n8-sec-head small { font-size: 10px; color: #7a7a7a; }

@media (min-width: 900px) {
  .n8x-egame-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .n8x-egame-card { min-height: 150px; padding: 14px; }
  .n8x-egame-body b { font-size: 17px; }
  .n8x-egame-body span { font-size: 11px; }
  .n8x-format-grid { gap: 12px; }
  .n8x-format-card { min-height: 160px; padding: 16px; }
  .n8x-format-card b { font-size: 18px; }
  .n8x-format-card span { font-size: 11px; }
  .n8x-wave-card { width: 220px; min-height: 124px; padding: 13px; }
  .n8x-wave-card b { font-size: 15px; }
  .n8x-wave-card span { font-size: 10px; }
}
@media (max-width: 360px) {
  .n8x-egame-grid { gap: 6px; }
  .n8x-egame-card { min-height: 112px; padding: 8px; }
  .n8x-format-card { padding: 10px 8px; }
}

/* ==========================================================================
   task-87 Wave3 新玩法入口（更多桌游 / 竞速 / MultiGame / 收银台商店 / 桌型机制）
   ========================================================================== */
.n8x-more-links { display: flex; gap: 8px; margin: 9px 0 4px; }
.n8x-more-link {
  flex: 1; padding: 9px 12px; border-radius: 10px; text-align: left; font-size: 10px; font-weight: 800;
  color: var(--n8-gold, #eeb941); background: rgba(238, 185, 65, .08);
  border: 1px solid rgba(238, 185, 65, .32);
}
.n8x-egame-card + .n8x-egame-card { margin-top: 0; }
.ct-variants { scrollbar-width: none; }

/* 我的页「桌型机制」链接（在 32 宫格下方，保持宫格 30-32） */
.n8-me-rulelink {
  width: 100%; margin-top: 8px; padding: 10px 12px; border-radius: 10px; text-align: left;
  font-size: 10px; font-weight: 800; color: var(--n8-gold, #eeb941);
  background: #101010; border: 1px solid rgba(238, 185, 65, .3);
}

/* 锦标赛「更多赛制」卡（mtt-extra）金色渐变 */
.n8x-format-card.fmt-gold::before {
  background: radial-gradient(circle at 84% 12%, rgba(238, 185, 65, .5), transparent 55%),
              linear-gradient(150deg, #2a2010, #4a3a10 70%, #6b540f);
}
.n8x-format-card.fmt-gold em { color: #fff563; }

@media (min-width: 900px) {
  .n8x-more-link { font-size: 12px; padding: 11px 16px; }
  .n8-me-rulelink { font-size: 11.5px; padding: 12px 16px; }
}

/* task-92：/casino-finish 4 玩法入口 */
.n8x-finish-links { flex-wrap: wrap; }
.n8x-finish-links .n8x-more-link { flex: 1 1 calc(50% - 4px); }


/* task-116：我的页统一 N8 普通宫格（无经典角标/说明） */


/* task-106 大厅真实复刻度 v2 —— 按 N8-SPEC 实测值校正 top10 */
.n8-statusbar { height: 32px; padding: 8px 12px 0; align-items: flex-start; background: #000; }
.n8-mini-logo { width: 19px; height: 19px; }
.n8-online { font-size: 12px; }
.n8-header { height: 54px; padding: 0 12px; gap: 8px; }
.n8-brand { font-size: 23px; line-height: 1; letter-spacing: 1.5px; }
.n8-brand-sub { font-size: 7.5px; letter-spacing: 1.4px; }
.n8-mainnav { padding: 3px; gap: 2px; }
.n8-main-tab { padding: 6px 12px; font-size: 12px; font-weight: 800; }
.n8-subnav { height: 42px; }
.n8-sub-tab { font-size: 11.5px; padding: 0 10px; }
.n8-sub-tab.sub-home.on { background: #a81818; }
.n8-banner { border-radius: 14px; }
.n8-banner-slide.b1 { background: radial-gradient(circle at 88% 10%, rgba(220, 45, 43, .42), transparent 46%), radial-gradient(circle at 12% 92%, rgba(238, 185, 65, .16), transparent 42%), linear-gradient(115deg, #082040, #102848 55%, #183058); }
.n8-banner-dots i.on { background: #eeb941; }
.n8-sec-head h2, .n8-sec-head h3 { font-size: 15.5px; }
.n8-rec-scroller { gap: 10px; }
.n8-rec-card { width: 150px; min-height: 150px; }
.n8-rec-card b { font-size: 14px; }
.n8-tweets-head b { font-size: 15.5px; }
.n8-tweet-card { width: 228px; padding: 10px; }
.n8-tweet-img { height: 150px; }
.n8-tweet-title { font-size: 12px; line-height: 1.45; }
.n8-tweet-meta i { font-size: 9.5px; }
.n8-cat-card { width: 306px; border-radius: 16px; }
.n8-medal { width: 104px; }
.n8-medal::before { width: 84px; height: 84px; background: conic-gradient(from 20deg, #bf9713, #fff563, #d6b058, #eeb941, #bf9713); }
.n8-medal b { font-size: 17px; }
.n8-cat-body > b { font-size: 13px; }
.n8-cat-body > span { font-size: 9.5px; }
.n8-cat-guarantee { font-size: 10px; background: linear-gradient(90deg, #5a0e12, #c82529 70%); }
.n8-feature-card { width: 158px; min-height: 120px; }
.n8-feature-card b { font-size: 13px; }
.n8-casino-card { width: 180px; min-height: 128px; }
.n8-casino-card b { font-size: 13.5px; }
.n8-bnav i, .n8-bnav i svg { width: 22px; height: 22px; }
.n8-bnav span { font-size: 10px; font-weight: 700; }
.n8-bnav { color: #383838; }
.n8-me-card { padding: 14px; border-radius: 14px; }
.n8-avatar { width: 50px; height: 50px; font-size: 20px; }
.n8-me-wallet > div:not(.n8-me-wallet-acts) { padding: 9px 10px; }
.n8-me-wallet b { font-size: 15px; }
.n8-me-grid { gap: 9px; }
.n8-me-item { padding: 12px 2px 10px; border-radius: 11px; }
.n8-me-ico { width: 34px; height: 34px; font-size: 16px; border-radius: 9px; }
.n8-me-item span { font-size: 10.5px; }
.n8-me-grid-head b { font-size: 15px; }

@media (min-width: 900px) {
  .n8-statusbar { height: 88px; padding: 26px 48px 0; }
  .n8-mini-logo { width: 22px; height: 22px; }
  .n8-online { font-size: 13px; }
  .n8-header { height: 57px; padding: 0 48px; }
  .n8-brand { font-size: 36px; letter-spacing: 3px; }
  .n8-brand-sub { font-size: 9px; }
  .n8-mainnav { height: 48px; padding: 4px; gap: 4px; }
  .n8-main-tab { font-size: 16px; padding: 11px 26px; }
  .n8-subnav { height: 46px; padding: 0 48px; }
  .n8-sub-tab { font-size: 13px; padding: 0 20px; }
  .n8-banner { height: 240px; border-radius: 16px; }
  .n8-sec-head { margin: 24px 0 12px; }
  .n8-sec-head h2, .n8-sec-head h3 { font-size: 18px; }
  .n8-rec-scroller { gap: 16px; }
  .n8-rec-card { width: 240px; min-height: 140px; padding: 14px; }
  .n8-rec-card b { font-size: 16px; }
  .n8-rec-card span { font-size: 11.5px; }
  .n8-tweets-head b { font-size: 18px; }
  .n8-tweet-card { width: 340px; padding: 13px; }
  .n8-tweet-img { height: 210px; }
  .n8-tweet-title { font-size: 14px; line-height: 1.5; }
  .n8-tweet-meta i { font-size: 10px; }
  .n8-cat-card { width: 540px; min-height: 150px; }
  .n8-medal { width: 146px; }
  .n8-medal::before { width: 120px; height: 120px; }
  .n8-medal b { font-size: 24px; }
  .n8-cat-body > b { font-size: 16px; }
  .n8-cat-body > span { font-size: 12px; }
  .n8-cat-guarantee { font-size: 12px; padding: 8px 14px; }
  .n8-feature-card { width: 240px; min-height: 170px; padding: 12px; }
  .n8-feature-card b { font-size: 16px; }
  .n8-feature-card span { font-size: 10px; }
  .n8-casino-card { width: 240px; min-height: 170px; padding: 12px; }
  .n8-casino-card b { font-size: 16px; }
  .n8-casino-card span { font-size: 10px; }
  .n8-me-card { padding: 16px; }
  .n8-avatar { width: 54px; height: 54px; }
  .n8-me-wallet b { font-size: 16px; }
  .n8-me-grid { gap: 10px; }
  .n8-me-item { padding: 14px 4px; border-radius: 12px; }
  .n8-me-ico { width: 40px; height: 40px; font-size: 19px; }
  .n8-me-item span { font-size: 11.5px; }
  .n8-me-grid-head b { font-size: 16px; }
}


/* ==========================================================================
   task-126：老虎机 / 娱乐场 tab N8 化（黑卡横滑 / 金 Jackpot / 红旋转 Chip / 横向大卡）
   四主 tab/状态行/品牌/红胶囊/深蓝 banner 不动，只换两个 tab 内容视觉。
   ========================================================================== */
/* ---- 老虎机：分组黑卡横滑 ---- */
.n8x-n8slot-group { margin: 0 0 18px; }
.n8x-n8slot-shead { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 10px; }
.n8x-n8slot-shead h3 { margin: 0; font-size: 16px; font-weight: 900; letter-spacing: .3px; }
.n8x-n8slot-shead small { font-size: 9px; color: #7a7a7a; letter-spacing: .5px; }
.n8x-n8slot-shead em { margin-left: auto; font-style: normal; font-size: 9.5px; color: #7a7a7a; }
.n8x-n8slot-rail { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.n8x-n8slot-rail::-webkit-scrollbar { display: none; }
.n8x-n8slot-card {
  flex: none; width: 172px; border-radius: 12px; overflow: hidden; text-align: left; padding: 0;
  background: #101010; border: 1px solid rgba(255, 255, 255, .09); color: #f8f8f8;
  display: flex; flex-direction: column; box-shadow: 0 2px 8px rgba(0, 0, 0, .55);
}
.n8x-n8slot-card:active { transform: scale(.985); }
.n8x-n8slot-cover { position: relative; height: 132px; display: grid; place-items: center; overflow: hidden; }
.n8x-n8slot-cover::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 18px); }
.n8x-n8slot-cover i { font-style: normal; font-size: 46px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .45)); position: relative; z-index: 1; }
.n8x-n8slot-card.sg-red .n8x-n8slot-cover { background: radial-gradient(circle at 24% 22%, rgba(255, 120, 90, .65), transparent 55%), linear-gradient(155deg, #4a1014, #1a0608 70%); }
.n8x-n8slot-card.sg-blue .n8x-n8slot-cover { background: radial-gradient(circle at 24% 22%, rgba(80, 160, 255, .6), transparent 55%), linear-gradient(155deg, #0e2a4a, #060d18 70%); }
.n8x-n8slot-card.sg-teal .n8x-n8slot-cover { background: radial-gradient(circle at 24% 22%, rgba(80, 230, 200, .55), transparent 55%), linear-gradient(155deg, #0a3a34, #04120f 70%); }
.n8x-n8slot-card.sg-gold .n8x-n8slot-cover { background: radial-gradient(circle at 24% 22%, rgba(238, 185, 65, .7), transparent 55%), linear-gradient(155deg, #3a2c08, #161004 70%); }
.n8x-n8slot-card.sg-purple .n8x-n8slot-cover { background: radial-gradient(circle at 24% 22%, rgba(150, 110, 255, .65), transparent 55%), linear-gradient(155deg, #251441, #100a1c 70%); }
.n8x-n8slot-card.sg-orange .n8x-n8slot-cover { background: radial-gradient(circle at 24% 22%, rgba(255, 150, 60, .65), transparent 55%), linear-gradient(155deg, #3a1e08, #160c04 70%); }
.n8x-n8slot-card.sg-green .n8x-n8slot-cover { background: radial-gradient(circle at 24% 22%, rgba(120, 220, 80, .6), transparent 55%), linear-gradient(155deg, #14300e, #081406 70%); }
.n8x-n8slot-card.sg-crimson .n8x-n8slot-cover { background: radial-gradient(circle at 24% 22%, rgba(255, 70, 100, .65), transparent 55%), linear-gradient(155deg, #3a0a14, #160408 70%); }
.n8x-n8slot-card.sg-dark .n8x-n8slot-cover { background: radial-gradient(circle at 24% 22%, rgba(150, 150, 180, .4), transparent 55%), linear-gradient(155deg, #1d1d1d, #0a0a0a 70%); }
.n8x-n8slot-badge { position: absolute; top: 7px; left: 7px; z-index: 2; font-style: normal; font-size: 7.5px; font-weight: 900; letter-spacing: .6px; padding: 2px 6px; border-radius: 3px; }
.n8x-n8slot-badge.b-jp { color: #1a1206; background: linear-gradient(180deg, #fff563, #eeb941); }
.n8x-n8slot-badge.b-hot { color: #fff; background: #dc2d2b; }
.n8x-n8slot-badge.b-new { color: #fff; background: #2f6fd0; }
.n8x-n8slot-spin {
  position: absolute; right: 8px; bottom: 8px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-style: normal; font-size: 9.5px; font-weight: 900; color: #fff;
  background: radial-gradient(circle at 34% 28%, #ff6b5a, #a81818 72%);
  border: 2px solid rgba(255, 255, 255, .55); box-shadow: 0 3px 10px rgba(220, 45, 43, .45);
  transform: rotate(-10deg); letter-spacing: .5px;
}
.n8x-n8slot-jackpot {
  display: flex; align-items: center; gap: 4px; padding: 6px 9px;
  font-size: 8.5px; font-weight: 800; letter-spacing: .6px; color: #eeb941;
  background: linear-gradient(180deg, #1a1406, #2c2208); border-top: 1px solid rgba(238, 185, 65, .4); border-bottom: 1px solid rgba(238, 185, 65, .28);
}
.n8x-n8slot-jackpot b { color: #fff563; font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.n8x-n8slot-info { display: flex; flex-direction: column; gap: 2px; padding: 8px 9px 10px; }
.n8x-n8slot-info b { font-size: 12px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n8x-n8slot-info small { font-size: 8px; color: #8a8a8a; }

/* ---- 娱乐场：N8 横向大卡（封面占卡面 / 角标压图 / 整卡点击）---- */
.n8x-casino-group { margin: 0 0 16px; }
.n8x-casino-rail { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.n8x-casino-rail::-webkit-scrollbar { display: none; }
.n8x-bigcard { flex: none; position: relative; width: 272px; height: 150px; border-radius: 14px; overflow: hidden; text-align: left; border: 1px solid rgba(255, 255, 255, .1); color: #fff; background: #101010; }
.n8x-bigcard:active { transform: scale(.985); }
.n8x-bigcard-cover { position: absolute; inset: 0; display: grid; place-items: center; }
.n8x-bigcard-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 28%, rgba(0, 0, 0, .78) 100%), repeating-linear-gradient(115deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 20px); }
.n8x-bigcard-cover i { font-style: normal; font-size: 54px; opacity: .92; filter: drop-shadow(0 5px 12px rgba(0, 0, 0, .5)); position: relative; z-index: 1; }
.n8x-bigcard.cg-baccarat .n8x-bigcard-cover { background: radial-gradient(circle at 78% 18%, rgba(220, 45, 43, .62), transparent 55%), linear-gradient(160deg, #3a0c12, #140508); }
.n8x-bigcard.cg-blackjack .n8x-bigcard-cover { background: radial-gradient(circle at 78% 18%, rgba(80, 160, 255, .55), transparent 55%), linear-gradient(160deg, #0c2342, #060d18); }
.n8x-bigcard.cg-dragon .n8x-bigcard-cover { background: radial-gradient(circle at 78% 18%, rgba(238, 185, 65, .6), transparent 55%), linear-gradient(160deg, #3a2c08, #161004); }
.n8x-bigcard.cg-sicbo .n8x-bigcard-cover { background: radial-gradient(circle at 78% 18%, rgba(91, 190, 53, .55), transparent 55%), linear-gradient(160deg, #123a0e, #071405); }
.n8x-bigcard.cg-gold .n8x-bigcard-cover { background: radial-gradient(circle at 78% 18%, rgba(238, 185, 65, .65), transparent 55%), linear-gradient(160deg, #3a2c08, #161004); }
.n8x-bigcard.cg-roulette .n8x-bigcard-cover { background: radial-gradient(circle at 78% 18%, rgba(170, 110, 255, .55), transparent 55%), linear-gradient(160deg, #251441, #100a1c); }
.n8x-bigcard.cg-vp .n8x-bigcard-cover { background: radial-gradient(circle at 78% 18%, rgba(80, 200, 220, .55), transparent 55%), linear-gradient(160deg, #0a2a32, #041014); }
.n8x-bigcard-badge { position: absolute; top: 9px; left: 9px; z-index: 3; font-style: normal; font-size: 8px; font-weight: 900; letter-spacing: .7px; padding: 2px 7px; border-radius: 3px; }
.n8x-bigcard-badge.b-live { color: #fff; background: #dc2d2b; box-shadow: 0 2px 8px rgba(220, 45, 43, .4); }
.n8x-bigcard-badge.b-table { color: #1a1206; background: linear-gradient(180deg, #fff563, #eeb941); }
.n8x-bigcard-badge.b-n8 { color: #fff; background: #2f6fd0; }
.n8x-bigcard-badge.b-hot { color: #fff; background: linear-gradient(180deg, #ff6b5a, #a81818); }
.n8x-bigcard-body { position: absolute; left: 12px; right: 12px; bottom: 11px; z-index: 2; display: flex; flex-direction: column; gap: 3px; }
.n8x-bigcard-body b { font-size: 15px; font-weight: 900; letter-spacing: .2px; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.n8x-bigcard-body small { font-size: 8.5px; line-height: 1.35; color: rgba(255, 255, 255, .75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n8x-bigcard-go { position: absolute; right: 10px; bottom: 9px; z-index: 3; font-style: normal; font-size: 8.5px; font-weight: 900; color: #1a1206; background: linear-gradient(180deg, #fff563, #eeb941); padding: 3px 8px; border-radius: 999px; }

@media (min-width: 900px) {
  .n8x-n8slot-card { width: 250px; }
  .n8x-n8slot-cover { height: 180px; }
  .n8x-n8slot-cover i { font-size: 62px; }
  .n8x-bigcard { width: 340px; height: 190px; }
  .n8x-bigcard-cover i { font-size: 72px; }
  .n8x-bigcard-body b { font-size: 20px; }
  .n8x-bigcard-body small { font-size: 11px; }
  .n8x-n8slot-shead h3 { font-size: 18px; }
  .n8x-n8slot-info b { font-size: 14px; }
  .n8x-n8slot-jackpot b { font-size: 13px; }
}


/* ==========================================================================
   task-129：N8 桌面端自适应（1200 / 1440 断点；420 移动端不回归）
   策略：
   - ≥1024px：居中容器 1200，内容 1104；推荐卡 4 列、Tweets 3 列（N8 桌面网格式）
   - 900~1023px：推荐 3 列、Tweets 2 列；banner 固定 1104:240 比例
   - 底部导航：≥900px 隐藏（N8 桌面用顶部主 nav），<900px 保持 58px 底部常驻
   ========================================================================== */
@media (min-width: 900px) {
  .n8-banner { height: auto; aspect-ratio: 1104 / 240; }
  .n8-rec-scroller {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
    overflow: visible; padding-bottom: 0;
  }
  .n8-rec-card { width: auto; min-height: 140px; }
  .n8-tweets-scroller {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
    overflow: visible; padding-bottom: 0;
  }
  .n8-tweet-card { width: auto; }
}

@media (min-width: 1024px) {
  /* 居中容器：1200 宽（内容 1104 + 左右 48），N8 桌面对齐 */
  .n8-app { max-width: 1200px; margin-left: auto; margin-right: auto; }
  .n8-rec-scroller { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .n8-tweets-scroller { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .n8-tweet-img { height: 190px; }
  .n8-sec-head h2, .n8-sec-head h3 { font-size: 18px; }
}

/* 1440 宽屏：容器仍 1200 居中（与 N8 客户端 1200 工作区一致，两侧留黑边） */
@media (min-width: 1440px) {
  .n8-app { max-width: 1200px; }
  .n8-main { max-width: 1104px; }
  .n8-rec-scroller { gap: 18px; }
  .n8-tweets-scroller { gap: 18px; }
  .n8-tweet-img { height: 198px; }
}

/* 桌面端 card hover（N8 客户端质感；移动端无 hover 不受影响） */
@media (hover: hover) and (min-width: 1024px) {
  .n8-rec-card:hover, .n8-tweet-card:hover { border-color: rgba(238, 185, 65, .45); transform: translateY(-1px); transition: all .18s ease; }
  .n8-main-tab:hover { color: #f8f8f8; }
}

/* task-129 × task-133 集成：hall 桌面端不再为移动底 nav 预留 n8-unify 的 78px */
body.n8-unify { padding-bottom: 0; }
@media (min-width: 900px) { body.n8-unify { padding-bottom: 0; } }


/* ==========================================================================
   task-129 桌面自查修复：我的页 2 列 / 头像面板桌面尺寸（1200+）
   问题：我的页在桌面仍是移动 4 列宫格被拉满 1104（卡片 1104 宽、每格 268px），
        与其它 N8 桌面 tab 比例不一致；头像面板 262px 偏手机。
   修复：≥1024 我的页改为「左资料卡 400 + 右宫格 6 列」；头像面板桌面 340px。
   ========================================================================== */
@media (min-width: 1024px) {
  .n8-me { display: grid; grid-template-columns: 400px minmax(0, 1fr); column-gap: 20px; align-items: start; }
  .n8-me-card { grid-column: 1; grid-row: 1 / span 20; align-self: start; padding: 16px; }
  .n8-me-grid-head { grid-column: 2; grid-row: 1; margin: 0 0 10px; }
  .n8-me-grid { grid-column: 2; grid-row: 2; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
  .n8-me-item { min-height: 88px; padding: 14px 4px; }
  .n8-me-rulelink { grid-column: 2; }
  .n8-me-rankline { grid-column: 2; }
  .n8-me-foot { grid-column: 2; }
  .n8-avatar-panel, .n8-lang-panel { width: 340px; padding: 16px; border-radius: 14px; top: 96px; right: 48px; }
  .n8-ap-head b { font-size: 15px; }
  .n8-ap-head span { font-size: 10.5px; }
  .n8-ap-acts { gap: 8px; margin-top: 14px; }
  .n8-ap-acts button { height: 38px; font-size: 12px; border-radius: 9px; }
}
@media (min-width: 900px) and (max-width: 1023px) {
  .n8-me-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
