:root {
  color-scheme: light;
  --red: #e71922;
  --deep-red: #a90c16;
  --gold: #ffd887;
  --ink: #221418;
  --muted: #837072;
  --line: #f0d9d9;
  --bg: #fff7f4;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Arial, "Microsoft YaHei", sans-serif; background: #ececec; color: var(--ink); }
button { font: inherit; border: 0; cursor: pointer; }

.phone-shell {
  width: min(430px, 100vw);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  padding-bottom: 76px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.05);
}

.login-gate { min-height: 100vh; padding: 36px 22px 28px; display: none; align-content: center; gap: 22px; background: linear-gradient(180deg, #7a0710 0%, #b91520 38%, #f7e7d6 100%); color: #fff; }
.auth-locked { padding-bottom: 0; }
.auth-locked .login-gate { display: grid; }
.auth-locked .site-header, .auth-locked .page-view, .auth-locked .bottom-nav { display: none; }
.login-brand { text-align: center; display: grid; justify-items: center; gap: 8px; }
.login-brand img { width: 92px; height: 92px; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0,0,0,.25)); }
.login-brand span { padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: 13px; }
.login-brand h1 { margin: 0; font-size: 36px; letter-spacing: 0; }
.gate-card { display: grid; gap: 10px; padding: 18px; border-radius: 18px; background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 0 18px 40px rgba(78,8,12,.28); }
.gate-card label { font-size: 13px; font-weight: 800; color: #7b5555; }
.gate-card input { height: 46px; border: 1px solid #ecd1cd; border-radius: 12px; padding: 0 12px; font-size: 15px; background: #fff; }
.gate-card button { height: 48px; margin-top: 6px; border-radius: 14px; background: var(--red); color: #fff; font-size: 16px; font-weight: 900; box-shadow: 0 10px 18px rgba(231,25,34,.22); }
.gate-card p { margin: 4px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.gate-card a { color: var(--red); font-weight: 900; text-decoration: none; }

.site-header {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: linear-gradient(180deg, #e71922 0%, #c70f18 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 8;
}

.icon-btn { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.18); display: grid; place-items: center; gap: 3px; padding: 8px; }
.menu-btn span { width: 16px; height: 2px; background: #fff; display: block; border-radius: 2px; }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; flex: 1; min-width: 0; }
.brand img { width: 122px; height: 38px; border-radius: 0; background: transparent; object-fit: contain; display: block; }
.brand strong { font-size: 18px; white-space: nowrap; }
.auth-actions { display: flex; gap: 6px; }
.auth-actions button { min-width: 48px; height: 30px; border-radius: 16px; background: #fff; color: var(--red); font-size: 13px; font-weight: 700; }
.auth-actions .primary { background: var(--gold); color: #7f1117; }

.page-main { padding: 10px; }
.page-view[hidden] { display: none; }
.sub-page { min-height: calc(100vh - 122px); }
.hero-board {
  min-height: 168px;
  border-radius: 16px;
  padding: 18px;
  position: relative;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 26%, rgba(255,216,135,.8), transparent 18%),
    linear-gradient(135deg, #79050b 0%, #d50e1a 58%, #ff5136 100%);
  box-shadow: 0 12px 28px rgba(173,10,18,.28);
}
.football-hero {
  background:
    linear-gradient(90deg, rgba(0,0,0,.56), rgba(0,0,0,.08)),
    url("/assets/img/home-slide-football.jpg") center/cover,
    radial-gradient(circle at 76% 24%, rgba(255,255,255,.95), transparent 8%),
    radial-gradient(circle at 80% 26%, #141414 0 2%, transparent 3%),
    linear-gradient(135deg, #075a38 0%, #19a35f 44%, #e71922 45%, #a90c16 100%);
}
.football-hero:after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: repeating-conic-gradient(#fff 0 12deg, #151515 12deg 24deg);
  opacity: .22;
}
.football-ad-img {
  position: absolute;
  right: 8px;
  top: 18px;
  width: 156px;
  height: auto;
  border-radius: 18px;
  opacity: .92;
  box-shadow: 0 12px 24px rgba(0,0,0,.2);
}
.football-hero .hero-copy, .football-hero .jackpot { z-index: 2; }
.football-hero .hero-orbit { display: none; }
[data-football-game] { cursor: pointer; }
.hero-board:before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(0deg, rgba(255,255,255,.1) 1px, transparent 1px); background-size: 24px 24px; opacity: .35; }
.hero-copy, .jackpot, .hero-orbit { position: relative; z-index: 1; }
.hero-copy span { display: inline-flex; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.18); font-size: 12px; }
.hero-copy h1 { margin: 12px 0 7px; font-size: 28px; line-height: 1; letter-spacing: 0; }
.hero-copy p { margin: 0; width: 62%; color: rgba(255,255,255,.82); font-size: 13px; line-height: 1.55; }
.jackpot { margin-top: 18px; display: inline-grid; gap: 3px; padding: 8px 14px; border-radius: 12px; background: rgba(55,0,0,.28); }
.jackpot span { font-size: 12px; color: #ffe2ac; }
.jackpot strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.hero-orbit { position: absolute; right: 24px; bottom: 22px; width: 104px; height: 104px; border-radius: 50%; border: 12px solid rgba(255,216,135,.45); animation: pulse 2.4s ease-in-out infinite; }
.hero-orbit i { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); box-shadow: inset 0 -4px 0 rgba(128,45,0,.2); }
.hero-orbit i:nth-child(1) { left: -10px; top: 28px; }
.hero-orbit i:nth-child(2) { right: 12px; top: -10px; }
.hero-orbit i:nth-child(3) { right: -9px; bottom: 22px; }

.notice, .wallet-card, .member-actions, .quick-grid, .lobby, .promo-row article {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(126,24,24,.08);
}
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.section-head strong { font-size: 17px; }
.section-head span { color: var(--red); font-size: 12px; font-weight: 800; }
.lottery-zone, .payout-board, .service-chat-card {
  margin-top: 10px;
  border-radius: 16px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(126,24,24,.08);
}
.premium-halls {
  margin-top: 10px;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, #24080d, #690d16 58%, #21070a);
  border: 1px solid rgba(255,216,135,.5);
  box-shadow: 0 14px 30px rgba(90,5,12,.24), inset 0 0 30px rgba(255,216,135,.08);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.premium-halls:before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 90deg, transparent, rgba(255,216,135,.18), transparent 34%);
  animation: hallShine 7s linear infinite;
}
.premium-halls > * { position: relative; z-index: 1; }
.premium-halls .section-head strong { color: #fff; }
.premium-halls .section-head span { color: #ffd887; }
.hall-hero {
  min-height: 148px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  isolation: isolate;
  cursor: pointer;
}
.hall-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.02); }
.hall-hero:before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,0,4,.88), rgba(20,0,4,.28) 58%, rgba(255,216,135,.08)); }
.hall-hero span { display: inline-flex; padding: 4px 9px; border-radius: 999px; color: #4b1008; background: #ffd887; font-size: 11px; font-weight: 900; }
.hall-hero h2 { margin: 8px 0 5px; font-size: 24px; letter-spacing: 0; }
.hall-hero p { max-width: 220px; margin: 0; color: rgba(255,255,255,.84); font-size: 12px; line-height: 1.45; }
.hall-hero button { position: absolute; right: 12px; bottom: 12px; height: 36px; padding: 0 14px; border-radius: 18px; color: #6a120e; background: linear-gradient(180deg, #fff1ba, #ffbd42); font-weight: 900; box-shadow: 0 8px 18px rgba(0,0,0,.24); }
.hall-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
.hall-grid button {
  min-height: 104px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  padding: 10px;
  display: grid;
  align-content: end;
  text-align: left;
  color: #fff;
  background: #24080d;
  border: 1px solid rgba(255,216,135,.25);
}
.hall-grid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .86; transition: transform .25s ease; }
.hall-grid button:before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 28%, rgba(0,0,0,.78)); }
.hall-grid button:hover img { transform: scale(1.06); }
.hall-grid b, .hall-grid em { position: relative; z-index: 1; display: block; }
.hall-grid b { font-size: 15px; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.hall-grid em { margin-top: 3px; color: #ffd887; font-style: normal; font-size: 11px; }
.hall-grid button:after {
  content: "";
  position: absolute;
  left: -40%;
  top: -20%;
  width: 36%;
  height: 150%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  animation: cardGlint 5.8s ease-in-out infinite;
}
.hall-grid button:nth-child(2):after { animation-delay: .7s; }
.hall-grid button:nth-child(3):after { animation-delay: 1.4s; }
.hall-grid button:nth-child(4):after { animation-delay: 2.1s; }
.lottery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.lottery-grid button { min-height: 132px; border-radius: 14px; padding: 11px; background: linear-gradient(180deg, #fff7eb, #fff); border: 1px solid #f2d2bd; text-align: left; color: var(--ink); }
.lottery-icon { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 900; background: linear-gradient(145deg, #e71922, #ffb347); }
.lottery-grid b, .lottery-grid em, .lottery-grid small { display: block; }
.lottery-grid b { margin-top: 7px; font-size: 15px; }
.lottery-grid em, .lottery-grid small { color: var(--muted); font-style: normal; font-size: 12px; }
.balls { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }
.balls i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #e71922; color: #fff; font-style: normal; font-size: 11px; font-weight: 800; }
.payout-list { display: grid; gap: 8px; max-height: 128px; overflow: hidden; }
.payout-list article { display: grid; grid-template-columns: 58px 1fr 110px; align-items: center; gap: 8px; min-height: 34px; padding: 0 10px; border-radius: 12px; background: #fff7ef; border: 1px solid #f2d7c9; }
.payout-list span { color: #7a5555; font-size: 12px; }
.payout-list b { color: var(--red); font-size: 14px; }
.payout-list em { color: var(--muted); font-size: 11px; font-style: normal; text-align: right; }
.notice { height: 40px; display: flex; align-items: center; gap: 8px; margin-top: 10px; border-radius: 12px; padding: 0 12px; overflow: hidden; }
.notice b { color: var(--red); font-size: 13px; }
.notice marquee { font-size: 13px; color: var(--muted); }

.wallet-card { margin-top: 10px; border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; }
.wallet-card span { display: block; font-size: 12px; color: var(--muted); }
.wallet-card strong { font-size: 24px; color: #c20d16; }
.wallet-card button { border-radius: 18px; background: var(--red); color: #fff; padding: 8px 18px; font-weight: 700; }

.member-actions { margin-top: 10px; border-radius: 14px; padding: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.member-actions button { min-height: 74px; border-radius: 12px; background: linear-gradient(180deg, #fff7ea, #ffe3c0); color: #8f251d; display: grid; place-items: center; gap: 4px; font-weight: 700; }
.member-actions i { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(145deg, #ffc44d, #f44336); position: relative; box-shadow: 0 6px 12px rgba(191,39,33,.25); }
.member-actions .cash { border-radius: 8px; transform: rotate(-8deg); }
.member-actions .safe:after { content: ""; position: absolute; inset: 8px; border: 2px solid #fff; border-radius: 50%; }

.quick-grid { margin-top: 10px; border-radius: 14px; padding: 12px 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 6px; }
.quick-grid button { min-height: 60px; background: transparent; color: var(--ink); display: grid; place-items: center; gap: 6px; }
.quick-grid span { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: #fff2e0; color: #d81721; font-size: 13px; font-weight: 800; box-shadow: inset 0 -2px 0 #ffd0ad; }
.quick-grid b { font-size: 12px; font-weight: 700; }

.lobby { margin-top: 10px; border-radius: 16px; overflow: hidden; }
.category-tabs { display: flex; gap: 6px; padding: 10px; overflow-x: auto; background: #fff3f2; }
.category-tabs button { flex: 0 0 auto; height: 34px; padding: 0 15px; border-radius: 17px; color: #8c6868; background: #fff; border: 1px solid #f3cece; font-weight: 700; }
.category-tabs .active { background: var(--red); color: #fff; border-color: var(--red); }
.game-stage { padding: 10px; }
.featured-table { min-height: 150px; border-radius: 16px; color: #fff; padding: 12px; position: relative; overflow: hidden; background: radial-gradient(ellipse at center, #22895f 0%, #116240 58%, #6f121a 59%, #9c1822 100%); box-shadow: inset 0 0 0 8px rgba(255,216,135,.24); }
.table-top { height: 70px; position: relative; }
.dealer { position: absolute; left: 8px; top: 4px; padding: 5px 10px; border-radius: 12px; background: rgba(0,0,0,.25); font-size: 12px; }
.cards { position: absolute; left: 50%; top: 22px; display: flex; gap: 6px; transform: translateX(-50%); }
.cards i, .card-run i { width: 28px; height: 40px; border-radius: 5px; background: #fff; box-shadow: 0 3px 0 rgba(0,0,0,.18); animation: deal 1.8s ease-in-out infinite; }
.cards i:nth-child(2), .card-run i:nth-child(2) { animation-delay: .16s; }
.cards i:nth-child(3), .card-run i:nth-child(3) { animation-delay: .32s; }
.table-info { position: absolute; left: 14px; bottom: 14px; display: grid; gap: 3px; }
.table-info strong { font-size: 18px; }
.table-info span { font-size: 12px; color: rgba(255,255,255,.8); }
.featured-table button { position: absolute; right: 12px; bottom: 14px; border-radius: 18px; background: var(--gold); color: #7d1514; padding: 8px 14px; font-weight: 800; }

.game-list { margin-top: 10px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.game-list button { min-height: 92px; border-radius: 14px; padding: 10px; background: linear-gradient(180deg, #fff, #fff2ef); border: 1px solid #f3d7d3; text-align: left; position: relative; overflow: hidden; }
.game-list button[hidden] { display: none; }
.game-list b { display: block; margin-top: 4px; font-size: 15px; }
.game-list em { font-style: normal; color: var(--muted); font-size: 12px; }
.game-list span { width: 38px; height: 38px; display: block; border-radius: 14px; background: linear-gradient(145deg, #ef2831, #ffb54d); box-shadow: 0 6px 14px rgba(224,28,35,.18); }
.game-list span:after { content: ""; display: block; width: 16px; height: 16px; margin: 11px; border-radius: 50%; background: rgba(255,255,255,.86); }
.game-list .game-icon { width: 44px; height: 44px; border-radius: 14px; background: transparent; box-shadow: 0 8px 18px rgba(80,24,24,.12); overflow: hidden; }
.game-list .game-icon:after { display: none; }
.game-list .game-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-list button:before { content: ""; position: absolute; right: -24px; top: -28px; width: 78px; height: 78px; border-radius: 50%; background: radial-gradient(circle, rgba(255,216,135,.32), transparent 66%); }
.game-list button:after {
  content: "";
  position: absolute;
  inset: auto 10px 8px auto;
  width: 42px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(231,25,34,.18), rgba(255,216,135,.38));
  filter: blur(2px);
}
.game-list .fish-icon { border-radius: 50% 50% 50% 12px; background: linear-gradient(145deg, #17a4d9, #5ed7ff); }
.game-list .sport-icon { background: linear-gradient(145deg, #1e8e4d, #90db67); }
.game-list .card-icon { background: linear-gradient(145deg, #1c2938, #8092a6); }
.game-list .wheel-icon { border-radius: 50%; background: conic-gradient(#e71922, #ffd887, #e71922, #ffffff, #e71922); }

.promo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.promo-row article { border-radius: 14px; padding: 14px; background: linear-gradient(135deg, #fff, #ffe8d5); }
.promo-row strong { display: block; font-size: 15px; }
.promo-row span { color: #d31721; font-size: 13px; }
.floating-redpack {
  position: fixed;
  right: calc(50% - min(430px, 100vw) / 2 + 10px);
  bottom: 86px;
  z-index: 12;
  width: 66px;
  min-height: 78px;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 8px 6px;
  color: #fff5bd;
  background: linear-gradient(180deg, #ee1d28, #9b0710);
  border: 1px solid rgba(255,216,135,.68);
  border-radius: 18px;
  box-shadow: 0 14px 26px rgba(137,0,9,.32), inset 0 0 16px rgba(255,216,135,.22);
  animation: redpackFloat 2.6s ease-in-out infinite;
}
.floating-redpack img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0,0,0,.24)); }
.floating-redpack span { font-size: 11px; font-weight: 900; white-space: nowrap; }

.page-title-card, .profile-card, .balance-board, .activity-list article, .agent-stats article, .copy-card, .service-list button, .mine-menu {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(126,24,24,.08);
}
.page-title-card {
  min-height: 132px;
  border-radius: 16px;
  padding: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 28%, rgba(255,216,135,.78), transparent 18%),
    linear-gradient(135deg, #8b080e, #e71922);
  overflow: hidden;
}
.page-title-card span { display: inline-flex; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.18); font-size: 12px; }
.page-title-card h1 { margin: 14px 0 8px; font-size: 26px; line-height: 1; letter-spacing: 0; }
.page-title-card p { margin: 0; max-width: 250px; font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.86); }
.agent-card { background: radial-gradient(circle at 84% 30%, rgba(255,216,135,.75), transparent 18%), linear-gradient(135deg, #7c1b00, #f06c25); }
.service-card { background: radial-gradient(circle at 84% 30%, rgba(255,255,255,.45), transparent 18%), linear-gradient(135deg, #0f5f72, #22a6c7); }

.activity-list { display: grid; gap: 10px; margin-top: 10px; }
.activity-list article { min-height: 112px; border-radius: 15px; padding: 14px; position: relative; background: linear-gradient(135deg, #fff, #fff1e8); }
.activity-list b, .activity-list strong, .activity-list span { display: block; }
.activity-list b { color: #8e1218; font-size: 14px; }
.activity-list strong { margin-top: 5px; font-size: 22px; color: var(--red); }
.activity-list span { margin-top: 4px; max-width: 230px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.activity-list button { position: absolute; right: 12px; bottom: 14px; border-radius: 18px; padding: 8px 14px; background: var(--red); color: #fff; font-weight: 800; }

.agent-stats, .balance-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.agent-stats article, .balance-board article { border-radius: 14px; padding: 13px 10px; text-align: center; }
.agent-stats span, .balance-board span { display: block; color: var(--muted); font-size: 12px; }
.agent-stats strong, .balance-board strong { display: block; margin-top: 6px; color: var(--red); font-size: 18px; }
.balance-board { grid-template-columns: repeat(2, 1fr); }
.copy-card { margin-top: 10px; border-radius: 14px; padding: 14px; }
.copy-card label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.copy-card div { display: flex; gap: 8px; }
.copy-card input { min-width: 0; flex: 1; height: 42px; border: 1px solid #ead0d0; border-radius: 12px; padding: 0 10px; color: #8b5f5f; }
.copy-card button { width: 64px; border-radius: 12px; background: var(--red); color: #fff; font-weight: 800; }

.service-list { display: grid; gap: 10px; margin-top: 10px; }
.service-list button { min-height: 72px; border-radius: 14px; padding: 14px; display: flex; align-items: center; justify-content: space-between; background: #fff; text-align: left; }
.service-list b { font-size: 16px; color: var(--ink); }
.service-list span { color: var(--muted); font-size: 12px; }

.profile-card { border-radius: 16px; padding: 14px; display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #fff, #fff0e6); }
.avatar { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, var(--red), #ffb64e); color: #fff; font-weight: 900; }
.profile-card div:nth-child(2) { flex: 1; min-width: 0; }
.profile-card strong, .profile-card span { display: block; }
.profile-card span { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.profile-card button { border-radius: 18px; padding: 8px 16px; background: var(--red); color: #fff; font-weight: 800; }
.mine-actions { box-shadow: 0 8px 22px rgba(126,24,24,.08); }
.mine-menu { margin-top: 10px; border-radius: 14px; overflow: hidden; }
.mine-menu button { width: 100%; height: 48px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid #f3dfdf; color: var(--ink); text-align: left; }
.mine-menu button:after { content: ">"; color: #c9a0a0; font-size: 22px; }
.mine-menu button:last-child { border-bottom: 0; }
.download-box { display: grid; gap: 7px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, #fff4df, #ffe0d8); border: 1px solid #f2c7b8; }
.download-box strong { color: #9f1218; font-size: 18px; }
.download-box span { color: var(--muted); font-size: 13px; }
.download-box button { min-height: 44px; border-radius: 22px; background: var(--red); color: #fff; font-weight: 900; }

.bottom-nav { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: min(430px, 100vw); height: 64px; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid #efd3d3; z-index: 10; padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav button { background: #fff; color: #8c7777; display: grid; place-items: center; gap: 2px; font-size: 12px; }
.bottom-nav span { font-size: 18px; line-height: 1; }
.bottom-nav .active { color: var(--red); font-weight: 800; }

.panel-mask, .game-room { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.46); display: grid; place-items: end center; }
.panel-mask[hidden], .game-room[hidden] { display: none; }
.sheet { width: min(430px, 100vw); max-height: 76vh; overflow: auto; border-radius: 20px 20px 0 0; background: #fff; padding: 18px; position: relative; animation: sheetIn .22s ease-out; }
.close-sheet { position: absolute; right: 12px; top: 10px; width: 32px; height: 32px; border-radius: 50%; background: #f4eeee; font-size: 22px; color: #7b5555; }
.sheet h2 { margin: 0 40px 12px 0; font-size: 20px; }
.sheet p { margin: 0 0 12px; color: var(--muted); line-height: 1.6; font-size: 14px; }
.pay-grid, .mine-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pay-grid button, .mine-grid button, .form-row button { min-height: 54px; border-radius: 12px; background: #fff4ef; color: #a9151b; font-weight: 800; border: 1px solid #f1cccc; }
.form-row { display: grid; gap: 10px; }
.form-row input, .form-row select { height: 44px; border-radius: 12px; border: 1px solid #ead0d0; padding: 0 12px; font-size: 15px; background: #fff; }
.form-row textarea { min-height: 86px; border-radius: 12px; border: 1px solid #ead0d0; padding: 10px 12px; font-size: 15px; resize: vertical; }
.form-row button { background: var(--red); color: #fff; }
.captcha-row { display: grid; grid-template-columns: 1fr 120px; gap: 8px; align-items: center; }
.captcha-row img { width: 120px; height: 44px; border-radius: 12px; border: 1px solid #ead0d0; background: #fff4ef; cursor: pointer; }
.kyc-box, .kyc-ok { margin-bottom: 10px; padding: 12px; border-radius: 14px; border: 1px solid #f0d4c5; background: #fff8f2; }
.kyc-box strong, .kyc-box span { display: block; }
.kyc-box strong { color: var(--red); margin-bottom: 4px; }
.kyc-box span, .kyc-ok { color: var(--muted); font-size: 13px; line-height: 1.5; }
.kyc-box form { margin-top: 10px; }
.chat-mask { position: fixed; inset: 0; z-index: 45; display: grid; place-items: end center; background: rgba(0,0,0,.5); }
.chat-mask[hidden] { display: none; }
.chat-window { width: min(430px, 100vw); height: min(78vh, 680px); display: grid; grid-template-rows: auto 1fr auto; background: #fff8f4; border-radius: 20px 20px 0 0; overflow: hidden; box-shadow: 0 -18px 40px rgba(0,0,0,.2); }
.chat-window header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: linear-gradient(135deg, #c90f19, #ed3941); color: #fff; }
.chat-window header span, .chat-window header strong { display: block; }
.chat-window header span { font-size: 12px; opacity: .86; }
.chat-window header strong { margin-top: 2px; font-size: 18px; }
.chat-window header button { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: 24px; line-height: 1; }
.chat-log { min-height: 0; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.empty-chat { margin: auto; color: var(--muted); font-size: 13px; }
.bubble { max-width: 82%; display: grid; gap: 4px; }
.bubble span { font-size: 11px; color: var(--muted); }
.bubble p { margin: 0; padding: 10px 12px; border-radius: 14px; line-height: 1.5; font-size: 14px; overflow-wrap: anywhere; }
.bubble.user { align-self: flex-end; justify-items: end; }
.bubble.user p { background: var(--red); color: #fff; border-bottom-right-radius: 4px; }
.bubble.agent, .bubble.pending { align-self: flex-start; }
.bubble.agent p, .bubble.pending p { background: #fff; color: var(--ink); border: 1px solid #efd2cf; border-bottom-left-radius: 4px; }
.bubble.pending p { color: var(--muted); }
.chat-input { display: grid; grid-template-columns: 1fr 72px; gap: 8px; padding: 10px; background: #fff; border-top: 1px solid #efd3d3; }
.chat-input textarea { height: 44px; min-height: 44px; max-height: 92px; resize: none; border-radius: 12px; border: 1px solid #ead0d0; padding: 10px 12px; font-size: 14px; }
.chat-input button { border-radius: 12px; background: var(--red); color: #fff; font-weight: 900; }
.form-message { margin: 0; padding: 10px 12px; border-radius: 12px; font-size: 13px; }
.form-message.ok { background: #ecfff4; color: #13743a; }
.form-message.error { background: #fff0f0; color: #c20d16; }
.pay-list { display: grid; gap: 8px; margin-bottom: 12px; }
.pay-list article { display: grid; gap: 4px; padding: 12px; border-radius: 12px; background: #fff7ef; border: 1px solid #f0d2c2; }
.pay-list b { color: #a9151b; }
.pay-list span { color: var(--muted); font-size: 12px; }
.pay-list code { overflow-wrap: anywhere; color: #4c3333; font-family: Arial, "Microsoft YaHei", sans-serif; font-size: 12px; }
.wallet-pay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.wallet-pay-card { min-height: 112px; display: grid; justify-items: center; align-content: center; gap: 7px; padding: 10px; border-radius: 14px; background: #fff8f2; border: 1px solid #efd4c5; color: var(--ink); text-align: center; }
.wallet-pay-card.active { border-color: var(--red); background: #fff1ee; box-shadow: 0 8px 18px rgba(231,25,34,.14); }
.wallet-pay-card.disabled { opacity: .55; background: #f7f1ee; }
.wallet-pay-card img { width: 44px; height: 44px; object-fit: cover; border-radius: 12px; box-shadow: 0 6px 12px rgba(126,24,24,.12); }
.wallet-pay-card b { font-size: 14px; color: #7a2026; }
.wallet-pay-card span, .empty-pay { color: var(--muted); font-size: 12px; }
.service-chat-card h2 { margin: 0 0 12px; font-size: 18px; }
.message-list { display: grid; gap: 8px; margin-top: 12px; }
.message-list article, .message-list p { margin: 0; padding: 10px; border-radius: 12px; background: #fff7ef; color: var(--muted); font-size: 13px; }
.message-list b, .message-list span { display: block; line-height: 1.5; }
.message-list b { color: var(--ink); }
.lottery-buy-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; padding: 10px 12px; border-radius: 12px; background: #fff6ea; border: 1px solid #f2d3b7; }
.lottery-buy-head span { color: #7b5555; font-size: 13px; }
.lottery-buy-head strong { color: var(--red); font-size: 13px; }
.lottery-last { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; padding: 10px 12px; border-radius: 12px; background: #fffafa; border: 1px solid #efd9d9; }
.lottery-last b { font-size: 13px; color: var(--ink); white-space: nowrap; }
.lottery-last .balls { justify-content: flex-end; margin: 0; }
.lottery-buy-form { display: grid; gap: 10px; }
.lottery-buy-form label { color: #7b5555; font-size: 13px; font-weight: 800; }
.lottery-buy-form input { height: 44px; border-radius: 12px; border: 1px solid #ead0d0; padding: 0 12px; font-size: 15px; background: #fff; }
.pick-balls { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; max-height: 220px; overflow: auto; padding: 2px 2px 8px; }
.pick-balls button { height: 40px; border-radius: 50%; background: #fff4ef; color: var(--red); border: 1px solid #f1cccc; font-weight: 900; }
.pick-balls button.active { background: var(--red); color: #fff; box-shadow: 0 8px 16px rgba(231,25,34,.22); }
.amount-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.amount-chips button { height: 38px; border-radius: 12px; background: #fff4ef; color: #9b151b; border: 1px solid #f1cccc; font-weight: 900; }
.amount-chips button.active { background: #ffe2cf; border-color: var(--red); color: var(--red); }
.buy-submit { height: 46px; border-radius: 14px; background: var(--red); color: #fff; font-size: 16px; font-weight: 900; box-shadow: 0 10px 18px rgba(231,25,34,.22); }

.game-room { place-items: stretch center; background: radial-gradient(circle at 50% 10%, #8e1420, #280407 62%, #080102); color: #fff; }
.game-room > header, .game-room > footer { width: min(430px, 100vw); margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 12px; background: #650d13; }
.game-room > header button { width: 34px; height: 34px; border-radius: 50%; color: #fff; background: rgba(255,255,255,.14); font-size: 28px; line-height: 1; }
.game-room > header strong { flex: 1; font-size: 17px; }
.game-room > header span { color: #ffd887; font-size: 12px; }
.casino-table { width: min(430px, 100vw); flex: 1; margin: 0 auto; position: relative; background: radial-gradient(ellipse at center, #1c875d 0%, #0d5b3d 42%, #6c1218 43%, #6c1218 68%, #350609 69%); overflow: hidden; }
.deluxe-room { isolation: isolate; background: #140306; }
.deluxe-room[data-room-style="slot"] .table-aura {
  width: 286px;
  height: 188px;
  border-radius: 22px;
  top: 42%;
  background: linear-gradient(135deg, rgba(255,216,135,.76), rgba(174,12,24,.92)), repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 12px, transparent 12px 24px);
  box-shadow: 0 0 38px rgba(255,216,135,.42), inset 0 0 0 8px rgba(255,255,255,.12);
}
.deluxe-room[data-room-style="fish"] .table-aura {
  width: 300px;
  height: 190px;
  background: radial-gradient(ellipse at center, rgba(33,184,233,.92), rgba(7,91,134,.82) 60%, rgba(255,216,135,.42) 64%, transparent 82%);
}
.deluxe-room[data-room-style="fish"] .studio-video { border-color: rgba(94,215,255,.58); box-shadow: 0 18px 32px rgba(0,70,120,.36), inset 0 0 24px rgba(70,212,255,.18); }
.deluxe-room[data-room-style="fish"] .studio-video img { object-fit: contain; padding: 20px; background: radial-gradient(circle at 50% 40%, rgba(50,190,255,.28), transparent 58%), #06162a; }
.deluxe-room[data-room-style="fish"] .studio-hud span, .deluxe-room[data-room-style="fish"] .live-table-card em { background: rgba(0,150,210,.9); }
.deluxe-room[data-room-style="sport"] .table-aura {
  width: 310px;
  height: 180px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(19,122,72,.95), rgba(8,79,48,.88)), repeating-linear-gradient(90deg, rgba(255,255,255,.14) 0 2px, transparent 2px 42px);
}
.deluxe-room[data-room-style="slot"] .studio-video img,
.deluxe-room[data-room-style="lottery"] .studio-video img,
.deluxe-room[data-room-style="card"] .studio-video img {
  object-fit: contain;
  padding: 18px;
  background: radial-gradient(circle at 50% 35%, rgba(255,216,135,.26), transparent 60%), linear-gradient(145deg, #260307, #070103);
}
.deluxe-room[data-room-style="slot"] .studio-hud span,
.deluxe-room[data-room-style="lottery"] .studio-hud span,
.deluxe-room[data-room-style="card"] .studio-hud span { background: rgba(255,132,22,.92); }
.deluxe-room[data-room-style="lottery"] .table-aura {
  width: 292px;
  height: 170px;
  border-radius: 24px;
  background: radial-gradient(circle at 30% 35%, #fff 0 5%, transparent 6%), radial-gradient(circle at 48% 35%, #fff 0 5%, transparent 6%), radial-gradient(circle at 66% 35%, #fff 0 5%, transparent 6%), linear-gradient(145deg, rgba(231,25,34,.92), rgba(255,184,73,.78));
}
.deluxe-room[data-room-style="card"] .table-aura {
  background: radial-gradient(ellipse at center, rgba(23,48,67,.94), rgba(9,24,38,.9) 58%, rgba(255,216,135,.45) 60%, rgba(92,10,18,.92) 66%, transparent 84%);
}
.room-backdrop { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.75)), var(--room-bg, url("/assets/img/old77/hero-casino.jpg")) center/cover; opacity: .86; z-index: -3; }
.room-backdrop:after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 18%, rgba(0,0,0,.78) 72%); }
.room-lights { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.room-lights i { position: absolute; top: -40px; width: 90px; height: 190px; background: linear-gradient(180deg, rgba(255,216,135,.36), transparent); filter: blur(4px); transform-origin: top; animation: lightSweep 4s ease-in-out infinite; }
.room-lights i:nth-child(1) { left: 8%; transform: rotate(18deg); }
.room-lights i:nth-child(2) { left: 34%; animation-delay: .7s; }
.room-lights i:nth-child(3) { right: 18%; transform: rotate(-16deg); animation-delay: 1.2s; }
.room-lights i:nth-child(4) { right: -6%; transform: rotate(-28deg); animation-delay: 1.9s; }
.room-marquee { position: absolute; left: 14px; right: 14px; top: 12px; height: 30px; overflow: hidden; border-radius: 999px; background: rgba(0,0,0,.38); border: 1px solid rgba(255,216,135,.22); }
.room-marquee span { display: inline-block; padding-left: 100%; line-height: 30px; white-space: nowrap; color: #ffd887; font-size: 12px; animation: marqueeRoom 11s linear infinite; }
.table-aura { position: absolute; left: 50%; top: 43%; width: 260px; height: 140px; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(ellipse at center, rgba(28,135,93,.92), rgba(8,68,48,.9) 58%, rgba(255,216,135,.45) 60%, rgba(94,9,17,.92) 66%, rgba(94,9,17,.26) 82%, transparent); box-shadow: 0 0 34px rgba(255,216,135,.18), inset 0 0 0 9px rgba(255,255,255,.08); }
.room-panels { position: absolute; left: 14px; right: 14px; bottom: 18%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.room-panels article { min-height: 70px; padding: 8px; border-radius: 12px; background: rgba(20,0,4,.66); border: 1px solid rgba(255,216,135,.28); backdrop-filter: blur(4px); }
.room-panels article:nth-child(2) { transform: translateY(-8px); }
.room-panels span, .room-panels b, .room-panels em { display: block; }
.room-panels span { color: #ffd887; font-size: 10px; }
.room-panels b { margin-top: 4px; font-size: 13px; }
.room-panels em { margin-top: 3px; color: rgba(255,255,255,.68); font-size: 10px; font-style: normal; }
.dealer-seat, .player { position: absolute; min-width: 62px; height: 34px; border-radius: 18px; display: grid; place-items: center; background: rgba(0,0,0,.34); border: 1px solid rgba(255,255,255,.18); font-size: 12px; }
.dealer-seat { top: 12%; left: 50%; transform: translateX(-50%); }
.p1 { left: 24px; bottom: 24%; }
.p2 { left: 50%; bottom: 17%; transform: translateX(-50%); }
.p3 { right: 24px; bottom: 24%; }
.card-run { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); display: flex; gap: 8px; }
.deluxe-room.dealing .card-run i { animation: deal .42s ease-in-out 3; }
.deluxe-room.dealing .chip-burst i { animation-duration: 1.25s; }
.live-studio { position: absolute; left: 12px; right: 12px; top: 50px; bottom: 84px; pointer-events: none; z-index: 2; }
.studio-video {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 188px;
  overflow: hidden;
  border-radius: 16px;
  background: #080102;
  border: 1px solid rgba(255,216,135,.36);
  box-shadow: 0 18px 32px rgba(0,0,0,.34), inset 0 0 0 1px rgba(255,255,255,.06);
}
.studio-video img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; animation: dealerPan 9s ease-in-out infinite; }
.studio-video:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(0,0,0,.66)), radial-gradient(circle at 78% 18%, rgba(255,216,135,.28), transparent 20%);
  z-index: 1;
}
.studio-scan { position: absolute; inset: 0; z-index: 2; background: repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 1px, transparent 1px 5px); mix-blend-mode: screen; opacity: .2; animation: scanMove 2.5s linear infinite; }
.studio-hud { position: absolute; left: 10px; right: 10px; bottom: 9px; z-index: 3; display: flex; align-items: center; justify-content: space-between; }
.studio-hud span { padding: 4px 8px; border-radius: 999px; background: rgba(231,25,34,.88); color: #fff; font-size: 10px; font-weight: 900; letter-spacing: 0; box-shadow: 0 0 14px rgba(231,25,34,.5); }
.studio-hud b { padding: 4px 9px; border-radius: 999px; background: rgba(0,0,0,.55); color: #ffd887; font-size: 11px; border: 1px solid rgba(255,216,135,.28); }
.road-map { position: absolute; left: 0; right: 0; top: 198px; min-height: 54px; display: grid; grid-template-columns: repeat(18, 1fr); grid-auto-rows: 15px; gap: 3px; padding: 7px; border-radius: 14px; background: rgba(255,255,255,.92); border: 1px solid rgba(255,216,135,.36); box-shadow: 0 10px 22px rgba(0,0,0,.18); }
.road-dot { border-radius: 50%; border: 2px solid #d91622; background: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.8); }
.road-dot.blue { border-color: #245fc9; }
.road-dot.green { border-color: #159063; }
.road-dot.red { background: #e71922; border-color: #e71922; }
.live-table-ribbon { position: absolute; left: 0; right: 0; top: 264px; height: 96px; display: flex; gap: 8px; overflow: hidden; }
.live-table-track { display: flex; gap: 8px; animation: tableRibbon 18s linear infinite; will-change: transform; }
.live-table-card { flex: 0 0 118px; min-height: 92px; position: relative; overflow: hidden; border-radius: 14px; background: rgba(20,0,4,.72); border: 1px solid rgba(255,216,135,.34); box-shadow: 0 12px 20px rgba(0,0,0,.22); }
.live-table-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.live-table-card:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 28%, rgba(0,0,0,.82)); }
.live-table-card b, .live-table-card span, .live-table-card em { position: relative; z-index: 1; display: block; margin-left: 8px; }
.live-table-card b { margin-top: 50px; font-size: 12px; color: #fff; }
.live-table-card span { margin-top: 2px; color: #ffd887; font-size: 10px; }
.live-table-card em { position: absolute; right: 7px; top: 7px; margin: 0; padding: 3px 6px; border-radius: 999px; color: #fff; background: rgba(231,25,34,.9); font-size: 9px; font-style: normal; }
.chip-burst i { position: absolute; width: 22px; height: 22px; border-radius: 50%; left: 50%; top: 55%; background: radial-gradient(circle at 34% 30%, #fff8d8, #ffc84b 42%, #bb1b21 43%, #bb1b21 72%, #ffd887 73%); box-shadow: 0 6px 12px rgba(0,0,0,.24); animation: chipFly 3.2s ease-in-out infinite; }
.chip-burst i:nth-child(2) { animation-delay: .35s; }
.chip-burst i:nth-child(3) { animation-delay: .7s; }
.chip-burst i:nth-child(4) { animation-delay: 1.05s; }
.chip-burst i:nth-child(5) { animation-delay: 1.4s; }
.chip-burst i:nth-child(6) { animation-delay: 1.75s; }
.bet-zone { position: absolute; left: 22px; right: 22px; bottom: 34%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bet-zone button { height: 58px; border-radius: 16px; background: rgba(255,255,255,.92); color: #ba101a; font-size: 20px; font-weight: 900; box-shadow: inset 0 -4px 0 rgba(0,0,0,.1); }
.game-room > footer { justify-content: center; }
.chip { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #c30f19; border: 5px dashed #f0b24d; font-weight: 900; }
.deal-btn { height: 44px; border-radius: 22px; padding: 0 18px; background: var(--gold); color: #721217; font-weight: 900; }

@keyframes pulse { 50% { transform: scale(1.05) rotate(8deg); } }
@keyframes deal { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-7px) rotate(3deg); } }
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes payoutFloat { 0%, 18% { transform: translateY(0); opacity: 1; } 92% { transform: translateY(-6px); opacity: .72; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes hallShine { to { transform: rotate(360deg); } }
@keyframes cardGlint { 0%, 72% { transform: translateX(0) rotate(18deg); opacity: 0; } 82% { opacity: .8; } 100% { transform: translateX(420%) rotate(18deg); opacity: 0; } }
@keyframes redpackFloat { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-8px) scale(1.04); } }
@keyframes lightSweep { 0%, 100% { opacity: .28; transform: rotate(-18deg); } 50% { opacity: .72; transform: rotate(18deg); } }
@keyframes marqueeRoom { to { transform: translateX(-100%); } }
@keyframes dealerPan { 0%, 100% { transform: scale(1.04) translateX(0); } 50% { transform: scale(1.1) translateX(-3%); } }
@keyframes scanMove { to { transform: translateY(18px); } }
@keyframes tableRibbon { to { transform: translateX(-50%); } }
@keyframes chipFly {
  0%, 100% { opacity: 0; transform: translate(-50%, 20px) scale(.4) rotate(0deg); }
  18% { opacity: 1; }
  58% { opacity: .96; transform: translate(calc(-50% + var(--chip-x, 70px)), var(--chip-y, -92px)) scale(1) rotate(220deg); }
  86% { opacity: 0; transform: translate(calc(-50% + var(--chip-x, 70px)), calc(var(--chip-y, -92px) - 16px)) scale(.7) rotate(360deg); }
}
.chip-burst i:nth-child(1) { --chip-x: -128px; --chip-y: -80px; }
.chip-burst i:nth-child(2) { --chip-x: -72px; --chip-y: -128px; }
.chip-burst i:nth-child(3) { --chip-x: 32px; --chip-y: -118px; }
.chip-burst i:nth-child(4) { --chip-x: 112px; --chip-y: -74px; }
.chip-burst i:nth-child(5) { --chip-x: -18px; --chip-y: -158px; }
.chip-burst i:nth-child(6) { --chip-x: 148px; --chip-y: -132px; }

/* 2026-06 layout pass: keep the lobby dense, aligned, and easier to scan. */
.page-main { padding: 10px 10px 14px; }
.hero-board { min-height: 156px; padding: 16px; }
.hero-copy h1 { margin: 10px 0 7px; font-size: 25px; line-height: 1.05; }
.hero-copy p { width: 58%; font-size: 12px; line-height: 1.45; color: rgba(255,255,255,.88); }
.jackpot { margin-top: 14px; padding: 7px 12px; }
.football-ad-img { width: 142px; }
.lottery-zone, .payout-board, .service-chat-card { padding: 11px; }
.lottery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lottery-grid button { min-height: 116px; padding: 10px; border-radius: 12px; overflow: hidden; }
.lottery-icon { float: left; margin-right: 8px; width: 32px; height: 32px; border-radius: 11px; }
.lottery-grid b { margin-top: 1px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lottery-grid em, .lottery-grid small { font-size: 11px; }
.balls { clear: both; gap: 3px; margin: 7px 0 6px; }
.balls i { width: 19px; height: 19px; font-size: 10px; }
.payout-list { display: block; max-height: 120px; overflow: hidden; }
.payout-track { display: grid; gap: 7px; animation: payoutRoll 14s linear infinite; will-change: transform; }
.payout-list article { grid-template-columns: 52px 1fr 96px; gap: 6px; min-height: 32px; padding: 0 9px; border-radius: 11px; }
@keyframes payoutRoll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.wallet-card { padding: 10px 13px; }
.member-actions { padding: 9px; }
.member-actions button { min-height: 66px; gap: 3px; }
.quick-grid { padding: 10px 8px; gap: 10px 6px; }
.quick-grid button { min-height: 56px; gap: 5px; }
.game-stage { padding: 9px; }
.featured-table { min-height: 132px; border-radius: 15px; }
.game-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 9px; }
.game-list button { min-height: 84px; border-radius: 13px; }
.ad-popup-mask { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 18px; background: rgba(0,0,0,.48); }
.ad-popup { width: min(360px, 100%); position: relative; border-radius: 18px; padding: 18px; background: #fff; border: 1px solid #f0d0d0; box-shadow: 0 22px 50px rgba(0,0,0,.24); }
.ad-popup-close { position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; border-radius: 50%; background: #f5eeee; color: #7a5555; font-size: 22px; }
.ad-popup h2 { margin: 0 36px 12px 0; font-size: 20px; }
.ad-popup img { width: 100%; max-height: 210px; object-fit: cover; border-radius: 14px; margin-bottom: 12px; }
.ad-popup p { margin: 0 0 14px; color: var(--muted); line-height: 1.6; }
.ad-popup a { display: grid; place-items: center; height: 42px; border-radius: 21px; background: var(--red); color: #fff; text-decoration: none; font-weight: 900; }
@media (max-width: 370px) {
  .football-ad-img { width: 118px; top: 28px; }
  .hero-copy p { width: 64%; }
  .lottery-grid { grid-template-columns: 1fr; }
  .payout-list article { grid-template-columns: 48px 1fr; }
  .payout-list em { display: none; }
}
