/* ===== 亚泰娱乐 · 彩票大厅 ===== */

.lobby-main { padding: 26px 0 110px; }

.lobby-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 22px 26px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(212, 175, 93, 0.14), rgba(11, 21, 30, 0.9));
  border: 1px solid rgba(212, 175, 93, 0.22);
  box-shadow: var(--shadow);
}
.lobby-hero-text h1 {
  margin: 6px 0 8px;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  letter-spacing: 0.04em;
}
.lobby-hero-text .lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.lobby-hero-text .eyebrow {
  color: var(--gold-2);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lobby-kpis {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.lobby-kpi {
  min-width: 96px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  text-align: center;
}
.lobby-kpi b {
  display: block;
  font-size: 1.35rem;
  color: var(--gold-2);
  line-height: 1.2;
}
.lobby-kpi span {
  font-size: 0.72rem;
  color: var(--muted);
}

/* ===== 筛选条 ===== */
.lobby-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 22px 0 16px;
}
.lobby-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.lobby-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.82rem;
  transition: all 0.18s ease;
}
.lobby-chip:hover { border-color: rgba(212, 175, 93, 0.4); color: var(--text); }
.lobby-chip.is-active {
  background: rgba(212, 175, 93, 0.16);
  border-color: rgba(212, 175, 93, 0.55);
  color: var(--gold-2);
  font-weight: 600;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.dot-real    { background: var(--green); box-shadow: 0 0 8px rgba(61, 217, 165, 0.7); }
.dot-pending { background: var(--muted); }

/* ===== 卡片网格 ===== */
.lobby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
  gap: 16px;
}

.lot-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
}
.lot-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--muted);
}
.lot-card[data-state="real"]::before    { background: var(--green); }
.lot-card[data-state="mixed"]::before   { background: rgba(155, 177, 200, 0.5); }
.lot-card[data-state="demo"]::before    { background: rgba(155, 177, 200, 0.5); }
.lot-card[data-state="empty"]::before   { background: rgba(155, 177, 200, 0.5); }
.lot-card[data-state="unauth"]::before  { background: rgba(155, 177, 200, 0.5); }
.lot-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 93, 0.35);
}

.lot-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lot-icon {
  width: 44px; height: 44px;
  flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 13px;
  background: rgba(212, 175, 93, 0.13);
  border: 1px solid rgba(212, 175, 93, 0.25);
  font-size: 1.35rem;
}
.lot-title { flex: 1; min-width: 0; }
.lot-title h3 {
  margin: 0 0 3px;
  font-size: 1.02rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lot-title p {
  margin: 0;
  font-size: 0.74rem;
  color: var(--muted);
}

.lot-badge {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.lot-badge.real    { background: rgba(61, 217, 165, 0.16); color: var(--green); }
.lot-badge.pending { background: rgba(155, 177, 200, 0.14); color: var(--muted); }

/* 最近开奖 */
.lot-draw {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  min-height: 56px;
}
.lot-draw-label {
  flex: 0 0 auto;
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.4;
  text-align: center;
}
.lot-draw-label b {
  display: block;
  color: var(--gold-2);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}
.balls {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  flex: 1;
  justify-content: flex-end;
}
.ball {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(160deg, #b8283a, #8a1726);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  font-variant-numeric: tabular-nums;
}
.ball.alt { background: linear-gradient(160deg, #2e6da4, #1c4770); }
.lot-draw-empty {
  flex: 1;
  text-align: right;
  font-size: 0.76rem;
  color: var(--muted);
}
.lot-draw-empty.lock {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: var(--gold);
  font-weight: 600;
}

/* 数据条 */
.lot-meta {
  display: flex;
  gap: 14px;
  font-size: 0.74rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.lot-meta b { color: var(--text); font-variant-numeric: tabular-nums; }

/* 操作 */
.lot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.lot-actions .btn {
  flex: 1 1 0;
  justify-content: center;
  white-space: nowrap;
  font-size: 0.78rem;
  padding: 8px 4px;
  min-width: 0;
}
/* 「进入游戏」独占整行，其余三个均分 */
.lot-actions .lot-enter {
  flex: 1 1 100%;
  order: -1;
  font-weight: 700;
}
.lot-actions .lot-rule {
  border-color: rgba(212, 175, 93, 0.42);
  color: #f3d890;
}
.lot-actions .lot-rule:hover {
  border-color: #ffd75e;
  background: rgba(212, 175, 93, 0.14);
}
.lot-actions .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.lobby-loading,
.lobby-empty {
  grid-column: 1 / -1;
  padding: 46px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.lobby-foot {
  margin: 26px 0 0;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.7;
}
.lobby-foot b { color: var(--gold-2); }

/* ===== 底部导航（本页自带） ===== */
.lobby-tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: none;
  background: rgba(9, 17, 23, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.lobby-tabbar a {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 11px 4px;
  font-size: 0.76rem;
  color: var(--muted);
}
.lobby-tabbar a.is-active { color: var(--gold-2); font-weight: 700; }

@media (max-width: 720px) {
  .lobby-main { padding-bottom: 84px; }
  .lobby-tabbar { display: flex; }
  .lobby-grid { grid-template-columns: 1fr; }
  .lobby-hero { padding: 18px; }
  .lobby-kpi { flex: 1; min-width: 80px; padding: 10px 8px; }
}

/* ===== 彩种 3D 图标（2026-11-07） ===== */
.lot-icon img {
  width: 46px;
  height: 46px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .38));
}
.lot-emoji { font-size: 34px; line-height: 1; }

.tile-emoji img.tile-ico {
  width: 54px;
  height: 54px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .42));
  transition: transform .22s;
}
.tile-emoji:hover img.tile-ico { transform: translateY(-2px) scale(1.04); }
.tile-emoji-txt { font-size: 40px; line-height: 1; }


/* ===================== VIP 分级包厢（2026-11-07 新增） ===================== */
.vip-section { margin: 26px 0 4px; }

.vip-section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 14px;
}
.vip-section-head h2 {
  margin: 0; font-size: 17px; color: #fff; letter-spacing: .8px;
  display: flex; align-items: center; gap: 9px;
}
.vip-section-head h2::before {
  content: ''; width: 3px; height: 16px; border-radius: 2px;
  background: linear-gradient(#ffd75e, #a9741a);
}
.vip-me { font-size: 12.5px; color: #9bb1c8; }
.vip-me b { font-weight: 700; }

.vip-rooms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 12px;
}
.vip-room-skeleton { grid-column: 1 / -1; font-size: 13px; color: #9bb1c8; padding: 14px 0; }

.vip-room {
  position: relative; display: flex; flex-direction: column; gap: 5px;
  padding: 15px 16px 14px; border-radius: 16px; cursor: pointer;
  text-align: left; font-family: inherit; overflow: hidden; transition: .18s;
  background: linear-gradient(158deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  border: 1.5px solid rgba(255,255,255,.1);
}
.vip-room::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(130px 64px at 88% -14%, var(--rc, #d4af5d), transparent 72%);
  opacity: .15; transition: .18s;
}
.vip-room:hover { transform: translateY(-3px); border-color: var(--rc, #d4af5d); box-shadow: 0 10px 26px rgba(0,0,0,.42); }
.vip-room:hover::after { opacity: .3; }

.vip-room.is-active {
  border-color: var(--rc, #d4af5d);
  background: linear-gradient(158deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
  box-shadow: 0 0 0 1px var(--rc, #d4af5d), 0 12px 30px rgba(0,0,0,.45);
}
.vip-room.is-active::before {
  content: '当前包厢'; position: absolute; top: 0; right: 0; z-index: 2;
  font-size: 10px; letter-spacing: .5px; padding: 3px 9px;
  border-bottom-left-radius: 9px; background: var(--rc, #d4af5d);
  color: #0b1520; font-weight: 800;
}
.vip-room.is-locked { opacity: .6; filter: saturate(.32); }
.vip-room.is-locked:hover { transform: none; box-shadow: none; }

.vr-flag { font-size: 20px; line-height: 1; }
.vr-name { font-size: 14.5px; font-weight: 700; color: #fff; letter-spacing: .6px; }
.vr-desc { font-size: 11.5px; color: #9bb1c8; line-height: 1.45; min-height: 16px; }
.vr-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 5px; }
.vr-meta i {
  font-style: normal; font-size: 11px; color: #cdd9e5;
  background: rgba(255,255,255,.07); padding: 2px 8px; border-radius: 999px;
}
.vr-tag {
  display: inline-block; align-self: flex-start; margin-top: 4px;
  font-size: 10.5px; padding: 2px 9px; border-radius: 999px; letter-spacing: .3px;
  background: rgba(0,0,0,.3); border: 1px solid var(--rc, #d4af5d); color: var(--rc, #d4af5d);
}

/* 工具条左侧分组 */
.lobby-toolbar-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.room-now { font-size: 12.5px; color: #f3d890; letter-spacing: .2px; }

/* 「进入游戏」主按钮 */
.lot-enter {
  font-weight: 800; letter-spacing: .5px;
  box-shadow: 0 6px 16px rgba(212,175,93,.3);
}
.lot-enter::after { content: '›'; margin-left: 4px; font-size: 15px; vertical-align: -1px; }

/* 轻提示 */
.lobby-toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 14px);
  z-index: 9999; max-width: 86vw; padding: 11px 18px; border-radius: 12px;
  font-size: 13px; line-height: 1.5; background: rgba(10,22,32,.96);
  border: 1px solid rgba(255,184,93,.55); color: #ffb85d;
  opacity: 0; pointer-events: none; transition: .22s;
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
}
.lobby-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 640px) {
  .vip-rooms { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .vip-room { padding: 12px 12px 11px; border-radius: 13px; }
  .vr-flag { font-size: 17px; }
  .vr-name { font-size: 13px; }
  .vr-desc { font-size: 10.5px; }
  .vip-room.is-active::before { font-size: 9px; padding: 2px 7px; }
}


/* ===== 倒计时 / 数据新鲜度 ===== */
.lot-cd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 2px 0 8px;
  padding: 7px 11px;
  border-radius: 10px;
  background: rgba(212, 175, 93, .1);
  border: 1px solid rgba(212, 175, 93, .28);
}
.lot-cd-l { font-size: 11.5px; color: #9bb1c8; }
.lot-cd-v {
  font-size: 14px; font-weight: 700; color: #ffd75e;
  font-variant-numeric: tabular-nums; letter-spacing: .5px;
}
.lot-cd.is-drawing .lot-cd-v { color: #5ee6b4; }
.lot-cd.is-stale {
  background: rgba(255, 184, 93, .1);
  border-color: rgba(255, 184, 93, .35);
}
.lot-cd.is-stale .lot-cd-v { color: #ffb85d; font-size: 12.5px; }
.lot-cd.is-none {
  background: rgba(255, 117, 130, .09);
  border-color: rgba(255, 117, 130, .3);
}
.lot-cd.is-none .lot-cd-v { color: #ff9aa4; font-size: 12.5px; }
.lot-cd.is-unknown { opacity: .5; }


/* ===== 数据源标签 + 下期预测 ===== */
.lot-meta .lot-src b { color: #5ee6b4; }
.lot-meta .lot-src b[data-stale] { color: #ffb85d; }

.lot-pred {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 0 0 8px; padding: 7px 11px; border-radius: 10px;
  background: rgba(111, 199, 239, .08);
  border: 1px solid rgba(111, 199, 239, .26);
}
.lot-pred-l { font-size: 11.5px; color: #9bb1c8; }
.lot-pred-v {
  font-size: 12.5px; font-weight: 700; color: #6fc7ef;
  font-variant-numeric: tabular-nums; letter-spacing: .3px;
}
.lot-pred.is-empty { opacity: .55; }
.lot-pred.is-empty .lot-pred-v { color: #9bb1c8; font-size: 11.5px; font-weight: 500; }

/* VIP 当前等级提示：避开右侧 4 个悬浮按钮 */
#vipMe{padding-right:118px;}
@media(max-width:900px){#vipMe{padding-right:0;}}
