:root {
  --bg: #f5f6f8;
  --card: #fff;
  --txt: #222;
  --muted: #999;
  --red: #e8352a;
  --orange: #ff8a00;
  --gold1: #ffd34d;
  --gold2: #ff9d00;
  --line: #ececf0;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--txt); min-height: 100vh;
  font: 14px/1.5 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  padding-bottom: 74px;
}

/* 顶栏 */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: linear-gradient(180deg, #fff, #fff8f2);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; }
.logo .mark {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  font-style: normal; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
}
.logo b { display: block; font-size: 16px; color: var(--red); letter-spacing: .5px; }
.logo em { display: block; font-style: normal; font-size: 10.5px; color: var(--muted); }
.search {
  color: var(--red); text-decoration: none; font-size: 13px;
  padding: 6px 10px; border: 1px solid #ffd8cf; border-radius: 8px; background: #fff;
}

/* 横幅 */
.banner { padding: 10px 12px 0; }
.banner .bn {
  border-radius: 12px; padding: 18px 16px; color: #7a3d00;
  background: linear-gradient(120deg, #ffe9b8, #ffd07a 60%, #ffb347);
  box-shadow: 0 6px 18px rgba(255, 165, 60, .25);
}
.banner .bn b { display: block; font-size: 17px; }
.banner .bn span { display: block; font-size: 11.5px; margin-top: 6px; color: #995200; }

/* 公告 */
.notice {
  display: flex; align-items: center; gap: 6px;
  margin: 10px 12px; padding: 8px 10px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line);
  font-size: 12.5px; color: #6b6b76; overflow: hidden; white-space: nowrap;
}
.notice #notice { overflow: hidden; text-overflow: ellipsis; }
.horn { color: var(--red); }

/* 奖池 */
.jackpot {
  margin: 0 12px; padding: 12px; border-radius: 14px; text-align: center; color: #7a4a00;
  background: linear-gradient(180deg, #fff0c2, #ffd772);
  border: 2px solid #ffbe3d;
}
.jp-title { font-weight: 800; letter-spacing: 3px; font-size: 15px; color: #c66a00; }
.jp-value {
  margin-top: 4px; font-size: 26px; font-weight: 900; letter-spacing: 1px;
  color: #fff; text-shadow: 0 2px 0 #d97b00, 0 0 12px rgba(255, 140, 0, .6);
}

/* 大奖记录 */
.winners { margin: 14px 12px; }
.winners h2 { font-size: 15px; margin: 0 0 10px; text-align: center; color: #8a5a00; }
.winners h2::before, .winners h2::after { content: "—"; margin: 0 8px; color: #e0c07a; }
.wlist { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.wlist::-webkit-scrollbar { display: none; }
.wcard {
  flex: 0 0 86px; border-radius: 12px; overflow: hidden; background: #fff;
  border: 1px solid var(--line); text-align: center; padding: 6px 4px 8px;
}
.wcard .art { height: 58px; border-radius: 8px; margin-bottom: 6px; }
.wcard .name { font-size: 11px; color: #555; }
.wcard .mult { font-size: 11px; color: var(--red); font-weight: 700; }

/* 分类 */
.cates { display: flex; gap: 8px; overflow-x: auto; padding: 6px 12px; }
.cates::-webkit-scrollbar { display: none; }
.cate {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; font-size: 13px;
  background: #fff; border: 1px solid var(--line); color: #666; cursor: pointer;
}
.cate.on { background: linear-gradient(135deg, var(--orange), var(--red)); color: #fff; border-color: transparent; font-weight: 700; }

/* 游戏网格 */
.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  padding: 8px 12px 16px;
}
.game { min-width: 0; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); text-align: center; padding-bottom: 8px; }
.game .art { height: 92px; position: relative; }
.game .art span {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(255, 255, 255, .92); font-weight: 800; font-size: 13px; letter-spacing: .5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.game .nm { font-size: 12px; color: #555; margin-top: 7px; padding: 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 渐变底色 */
.t-green { background: linear-gradient(135deg, #1ec26b, #0f9d58); }
.t-pink { background: linear-gradient(135deg, #ff7eb3, #e8352a); }
.t-cyan { background: linear-gradient(135deg, #4ad9e4, #2b8cff); }
.t-purple { background: linear-gradient(135deg, #a06bff, #6a3df0); }
.t-orange { background: linear-gradient(135deg, #ffb347, #ff7a00); }
.t-rose { background: linear-gradient(135deg, #ff7a8a, #d81b60); }
.t-gold { background: linear-gradient(135deg, #ffd34d, #ff9d00); }
.t-blue { background: linear-gradient(135deg, #5ac8fa, #007aff); }

/* 底部按钮（只要首页 + 优惠） */
.bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: #fff; border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.navbtn {
  padding: 9px 0 10px; text-align: center; text-decoration: none; color: #8a8a95;
  font-size: 11.5px; display: grid; gap: 2px;
}
.navbtn span { font-size: 19px; }
.navbtn.on { color: var(--red); font-weight: 700; }

/* 客服悬浮 */
.cs {
  position: fixed; right: 12px; bottom: 82px; z-index: 31;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--red)); color: #fff;
  text-decoration: none; font-size: 20px; box-shadow: 0 6px 16px rgba(232, 53, 42, .35);
}

/* 提示 */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 40;
  padding: 8px 16px; border-radius: 8px; font-size: 13px; color: #fff;
  background: rgba(30, 30, 36, .9); white-space: nowrap;
}

/* 电脑端屏蔽 */
.pcguard { display: none; }
.pcguard-title { font-size: 22px; font-weight: 700; color: #111; margin: 18px 0 10px; }
.pcguard-sub { font-size: 13.5px; line-height: 1.9; color: #8a8f99; margin: 0; max-width: 320px; }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .pcguard {
    position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column;
    align-items: center; justify-content: center; background: #fff; text-align: center; padding: 24px;
  }
  html, body { overflow: hidden !important; }
  .top, .banner, .notice, .jackpot, .winners, .cates, .grid, .bottom, .cs, .toast, .lobby, .widgets, .nmodal, #toast { display: none !important; }
}

/* ---------- 游戏大厅：左侧分类 + 右侧内容 ---------- */
.lobby { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: start; gap: 8px; padding: 4px 8px 8px; }
.rail { display: grid; gap: 6px; }
.railbtn {
  display: grid; justify-items: center; gap: 2px;
  padding: 10px 4px; border-radius: 10px; font-size: 12px; color: #6b6b76;
  background: #fff; border: 1px solid var(--line); cursor: pointer;
}
.railbtn span { font-size: 17px; line-height: 1; }
.railbtn.on {
  color: #fff; font-weight: 700; border-color: transparent;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 6px 14px rgba(232, 53, 42, .25);
}
.panel { min-width: 0; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.tab { padding: 9px 0; font-size: 13px; color: #6b6b76; background: transparent; border: 0; cursor: pointer; }
.tab.on { color: var(--red); font-weight: 700; position: relative; }
.tab.on::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 22px; height: 2px; margin-left: -11px; background: var(--red); border-radius: 2px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0; }
.game .art { height: 72px; }
.game .art span { font-size: 12px; }
.game .nm { font-size: 11.5px; line-height: 1.3; margin-top: 6px; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: 13px; padding: 24px 0; }
.more {
  display: block; width: 100%; margin: 12px 0 4px; padding: 10px 0;
  font-size: 12.5px; color: #8a8a95; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
@media (max-width: 380px) {
  .lobby { grid-template-columns: 74px minmax(0, 1fr); }
  .game .art { height: 64px; }
}
/* 底部按钮：优惠角标 */
.navbtn { position: relative; }
.navbtn .tag {
  position: absolute; top: 2px; left: 50%; margin-left: 6px;
  background: linear-gradient(180deg, #ff6a3d, #e8352a); color: #fff;
  font-size: 9px; font-weight: 700; line-height: 1;
  padding: 2px 5px; border-radius: 8px 8px 8px 2px; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(232, 53, 42, .35);
}

/* 大奖记录卡片：图标 + 名称 + 倍数（贴近原站） */
.wcard { flex: 0 0 84px; padding: 0 0 8px; }
.wcard .art {
  height: 66px; border-radius: 10px; margin: 6px 6px 6px; overflow: hidden;
  display: grid; place-items: center; box-shadow: inset 0 -18px 24px rgba(0, 0, 0, .25);
}
.wcard .art i { font-style: normal; font-size: 30px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35)); }
.wcard .name { font-size: 11px; color: #444; }
.wcard .mult { font-size: 11.5px; color: #ff8a00; font-weight: 700; }
/* 大奖记录：横向自动滚动（无缝） */
.wmask { overflow: hidden; }
.wlist {
  display: flex; gap: 10px; width: max-content; padding-bottom: 4px;
  animation: wscroll 26s linear infinite;
}
.wmask:active .wlist { animation-play-state: paused; }
@keyframes wscroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.wcard { flex: 0 0 84px; padding: 0 0 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.wcard .art { height: 66px; margin: 6px 6px 4px; border-radius: 8px; overflow: hidden; }
.wcard .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wcard .name { font-size: 11px; color: #444; text-align: center; }
.wcard .mult { font-size: 11.5px; color: #ff8a00; font-weight: 700; text-align: center; }
/* 游戏卡：真实图片 */
.game .art { overflow: hidden; }
.game .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game .nm { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* 游戏/中奖图：正方形裁切，避免拉伸变形 */
.game { padding: 0 0 8px; }
.game .art { aspect-ratio: 1 / 1; height: auto; margin: 8px 8px 0; border-radius: 12px; }
.game .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game .nm { margin-top: 7px; font-size: 11.5px; line-height: 1.35; min-height: 31px; padding: 0 4px; }

.wcard .art { aspect-ratio: 1 / 1; height: auto; }
.wcard .art img { object-fit: cover; }
/* 游戏卡去掉白底边框（与原站一致：只有圆角图 + 下方名字） */
.game { background: transparent; border: 0; padding: 0 0 6px; }
.game .art { margin: 0 0 6px; border-radius: 10px; box-shadow: 0 2px 6px rgba(0, 0, 0, .06); }
.game .nm { margin-top: 0; font-size: 12px; line-height: 1.35; min-height: 32px; padding: 0 1px; color: #333; }
.grid { gap: 10px 8px; }
/* 比例对齐原站：左侧栏收窄、图片尺寸收敛、留白更多 */
.lobby { grid-template-columns: 72px minmax(0, 1fr); gap: 10px; padding: 6px 10px 10px; }
.railbtn { padding: 9px 2px; font-size: 11.5px; border-radius: 9px; }
.railbtn span { font-size: 16px; }

.grid { gap: 14px 10px; padding: 4px 2px 0; }
.game .art { width: 100%; max-width: 78px; margin: 0 auto 6px; border-radius: 9px; }
.game .nm { font-size: 11px; line-height: 1.3; min-height: 28px; color: #444; }

.wcard { flex: 0 0 72px; }
.wcard .art { max-width: 72px; margin: 6px auto 4px; border-radius: 8px; }
.wcard .name { font-size: 10.5px; }
.wcard .mult { font-size: 11px; }

.tabs { margin-bottom: 8px; }
.tab { padding: 8px 0; font-size: 12.5px; }
/* 左侧分类：奶油色卡片 + 图标文字横排（对齐原站） */
.railbtn {
  display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 5px;
  padding: 11px 2px; border: 0; border-radius: 10px;
  background: #fdf6ec; color: #8a7761; font-size: 12.5px; font-weight: 500;
  box-shadow: inset 0 0 0 1px rgba(255, 214, 165, .45);
}
.railbtn span { font-size: 15px; line-height: 1; }
.railbtn.on {
  background: linear-gradient(180deg, #fff1d6, #ffd79a);
  color: #e8352a; font-weight: 700;
  box-shadow: inset 0 0 0 1px #ffcf8a, 0 4px 10px rgba(255, 160, 60, .22);
}
/* 左侧分类图标（原站 sprite 图） */
.railbtn .ico { width: 18px; height: 18px; object-fit: contain; display: block; }
/* 平板/宽屏下保持手机版式：整页限宽居中 */
body { max-width: 430px; margin: 0 auto; position: relative; }
.top { max-width: 430px; margin: 0 auto; left: 0; right: 0; }
.bottom {
  left: 50%; right: auto; transform: translateX(-50%);
  width: 100%; max-width: 430px;
}
.cs { right: max(12px, calc(50vw - 215px + 12px)); }
.pcguard { max-width: none; }
/* 原站比例微调（430 宽基准）：左栏 66，图片 84，间隙贴近原站 */
.lobby { grid-template-columns: 66px minmax(0, 1fr); gap: 12px; padding: 6px 12px 10px; }
.railbtn { padding: 10px 2px; font-size: 12px; gap: 4px; }
.railbtn .ico { width: 17px; height: 17px; }
.grid { gap: 16px 12px; }
.game .art { max-width: 84px; }
.game .nm { font-size: 11.5px; }
/* 最终尺寸覆盖：图片填满列宽，消除大间隙 */
body { max-width: 430px; margin: 0 auto; overflow-x: hidden; }
.lobby { grid-template-columns: 66px minmax(0, 1fr); gap: 12px; padding: 6px 12px 10px; }
.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; padding: 2px 0 0; }
.game .art { width: 100%; max-width: none; margin: 0 0 6px; border-radius: 10px; }
.game .nm { font-size: 11.5px; line-height: 1.3; min-height: 30px; }
.wcard { flex: 0 0 76px; }
.wcard .art { max-width: 76px; }
/* Logo 旁小标签（永天直营） */
.tagline {
  font-style: normal; font-size: 10px; line-height: 1;
  color: #e8352a; background: #fff4f0;
  border: 1px solid #ffc9bd; border-radius: 4px;
  padding: 2px 5px; margin-left: 6px; align-self: center;
  white-space: nowrap;
}
.logo { position: relative; }
/* 底部“电子游戏”区块 */
.promo { padding: 6px 12px 18px; }
.promo-head { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 10px; }
.promo-head h2 { font-size: 15px; margin: 0; color: #333; }
.promo-head h2::before { content: "🎰"; margin-right: 6px; }
.promo-head span { font-size: 12px; color: #9a9aa5; }
.promo-list { display: grid; gap: 12px; }
.promo-item {
  position: relative; border-radius: 12px; overflow: hidden; height: 110px;
  display: flex; align-items: center; padding: 0 18px;
  color: #fff; font-weight: 800; font-size: 16px; letter-spacing: .5px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}
.promo-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.promo-item span { position: relative; z-index: 1; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.promo-item:nth-child(1) { background: linear-gradient(120deg, #6a3df0, #b13cff); }
.promo-item:nth-child(2) { background: linear-gradient(120deg, #1b1b1f, #3a3a44); }
/* 电子类目：提供商横幅列表 */
.plist { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.plist-head { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 4px; }
.plist-head b { font-size: 15px; color: #333; }
.plist-head b::before { content: ""; display: inline-block; width: 3px; height: 13px; margin-right: 6px; vertical-align: -2px; border-radius: 2px; background: linear-gradient(180deg, #ffb13d, #e8352a); }
.plist-more { margin: 2px 0 6px; padding: 11px 0; text-align: center; font-size: 13px; color: #8a8a95; background: #f6f6f8; border-radius: 9px; }
.psec { display: grid; gap: 10px; }
.plist-head span { font-size: 12px; color: #9a9aa5; }
.plist-body { display: grid; gap: 12px; }
.pitem { position: relative; border-radius: 10px; overflow: hidden; background: #111; }
.pitem img { width: 100%; display: block; }
.pitem span {
  position: absolute; left: 14px; bottom: 12px; color: #fff;
  font-size: 15px; font-weight: 700; text-shadow: 0 2px 6px rgba(0, 0, 0, .65);
}
/* 搜索图标 */
.search { display: grid; place-items: center; padding: 4px; border: 0; background: transparent; }

/* 右下挂件组：红包倒计时 + TG 频道 + 关闭 */
.widgets {
  position: fixed; right: max(10px, calc(50vw - 215px + 10px)); bottom: 86px;
  z-index: 32; display: grid; justify-items: end; gap: 8px;
}
.rp {
  display: grid; justify-items: center; gap: 1px;
  width: 58px; padding: 6px 0 7px; border-radius: 10px; cursor: pointer;
  background: linear-gradient(180deg, #ff5a3c, #e8352a);
  color: #fff; box-shadow: 0 6px 16px rgba(232, 53, 42, .35);
}
.rp-txt { font-size: 9px; opacity: .95; }
.rp b { font-size: 11.5px; font-weight: 700; }
.tg {
  display: grid; justify-items: center; gap: 1px;
  width: 58px; padding: 7px 0 6px; border-radius: 50%;
  background: linear-gradient(180deg, #4fc3ff, #1a8cff);
  color: #fff; text-decoration: none;
  box-shadow: 0 6px 16px rgba(26, 140, 255, .35);
}
.tg span { font-size: 9px; margin-top: -2px; }
.wclose {
  width: 22px; height: 22px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 13px; line-height: 1;
  display: grid; place-items: center;
}
.widgets[hidden] { display: none !important; }
/* JACKPOT：原站横幅图 + 数字跳动 */
.jackpot { position: relative; margin: 0 8px; }
.jackpot .jp-art { width: 100%; display: block; }
.jackpot .jp-value {
  position: absolute; left: 0; right: 0; top: 55%;
  transform: translateY(-50%);
  text-align: center;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 21px; font-weight: 900; letter-spacing: 1px;
  color: #fff8d0;
  text-shadow: 0 2px 0 #a74b00, 0 0 10px rgba(255, 196, 60, .95), 0 0 18px rgba(255, 140, 0, .8);
  pointer-events: none;
}
.jackpot .jp-value.pop { animation: jpPop .22s ease-out; }
@keyframes jpPop {
  0% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-50%) scale(1.09); }
  100% { transform: translateY(-50%) scale(1); }
}
/* 电脑端提示页（对齐参考站样式） */
.pcguard {
  position: fixed; inset: 0; z-index: 9999; overflow-y: auto;
  display: none; flex-direction: column; align-items: center; justify-content: flex-start;
  background: #f5f5f7; padding: 26px 20px 30px; text-align: center;
}
.pc-inner { width: 100%; max-width: 420px; }
.pc-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fdf1cf; color: #a8811f; font-size: 12.5px;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 24px;
}
.pc-badge i { width: 7px; height: 7px; border-radius: 50%; background: #f0b40f; display: block; }
.pc-title { font-size: 22px; line-height: 1.55; font-weight: 800; color: #1b1b1f; margin: 0 0 14px; letter-spacing: .3px; }
.pc-sub { font-size: 13.5px; color: #8b8b95; margin: 0 0 26px; }
.pc-card {
  background: #fff; border-radius: 18px; padding: 18px 16px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}
.pc-card-title { font-size: 13px; color: #6f6f7a; margin: 0 0 14px; }
.pc-qr { background: #fff; border-radius: 12px; padding: 10px; display: inline-block; }
.pc-qr img { width: 190px; height: 190px; display: block; }
.pc-url-row { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.pc-url {
  flex: 1; min-width: 0; text-align: left; color: #8b8b95; font-size: 12.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pc-copy {
  border: 1px solid #d8d8de; background: #fff; color: #333;
  font-size: 12.5px; padding: 8px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.pc-copy:active { background: #f2f2f5; }
.pc-foot { margin: 26px 0 0; font-size: 12px; color: #a0a0aa; }

@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .pcguard { display: flex !important; }
}
/* TG 球最终定位（右下角只保留这一个） */
.widgets { position: fixed; right: max(12px, calc(50vw - 215px + 12px)); bottom: 88px; z-index: 33; display: block; }
.widgets .tg { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; }
.widgets .tg span { font-size: 9.5px; }

/* ===== 右下挂件：20U 领取 + 公告弹层 ===== */
.widgets { display: grid; justify-items: end; gap: 10px; }
.usdt {
  width: 62px; padding: 9px 4px 10px; border: 0; border-radius: 14px;
  display: grid; justify-items: center; gap: 2px; cursor: pointer;
  background: linear-gradient(180deg, #ffd35a, #f7941d);
  box-shadow: 0 6px 16px rgba(247, 148, 29, .4);
  animation: uPulse 1.8s ease-in-out infinite;
}
.usdt b { font-size: 16px; font-weight: 800; color: #7a2c00; line-height: 1; }
.usdt span { font-size: 9px; color: #8a3d00; line-height: 1.15; text-align: center; padding: 0 3px; }
.usdt.ready { background: linear-gradient(180deg, #ff6a3d, #e8352a); box-shadow: 0 6px 18px rgba(232, 53, 42, .45); }
.usdt.ready b, .usdt.ready span { color: #fff; }
@keyframes uPulse { 50% { transform: translateY(-3px); } }

.nmodal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 0 16px; }
.nmodal[hidden] { display: none !important; }
.nm-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.nm-card {
  position: relative; width: 100%; max-width: 330px; max-height: 78vh; display: flex; flex-direction: column;
  background: #fff; border-radius: 16px; padding: 18px 16px 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
}
.nm-x {
  position: absolute; right: -6px; top: -34px; width: 26px; height: 26px; border-radius: 50%;
  border: 0; background: #35353c; color: #fff; font-size: 15px; line-height: 1; cursor: pointer;
}
.nm-body { overflow-y: auto; font-size: 13px; line-height: 1.85; color: #333; }
.nm-body p { margin: 0 0 10px; }
.nm-body b { color: #e8352a; }
.nm-tabs { display: flex; gap: 8px; margin: 12px 0 10px; }
.nm-tab {
  flex: 1; min-width: 0; padding: 9px 6px; border-radius: 9px; border: 1px solid #e2e2e8; background: #fff;
  color: #6b6b76; font-size: 11.5px; line-height: 1.2; cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nm-tab.on { background: #f7941d; border-color: #f7941d; color: #fff; }
.nm-actions { display: flex; gap: 10px; }
.nm-prev, .nm-close {
  flex: 1; padding: 11px 0; border-radius: 999px; font-size: 14px; cursor: pointer;
  border: 1px solid #d9d9e0; background: #fff; color: #333;
}
.nm-prev { background: #f7941d; border-color: #f7941d; color: #fff; }
.nm-close[disabled] { opacity: .55; cursor: not-allowed; background: #f2f2f5; color: #9a9aa5; border-color: #e4e4ea; }
.nm-x.lock { opacity: .28; }
