:root {
  --visual-viewport-height: 100vh;
  --page: #f3f5f9;
  --surface: #ffffff;
  --surface-soft: #fafafa;
  --ink: #252525;
  --muted: #9e9e9e;
  --line: #e7e8eb;
  --gold: #d1b092;
  --gold-soft: #f3d2b3;
  --gold-pale: #fff7ee;
  --orange: #f5a43b;
  --green: #3eb693;
  --red: #ff3939;
  --charcoal: #202226;
  --shadow: 3px 3px 10px rgba(0, 0, 0, 0.16), -3px -3px 8px rgba(255, 255, 255, 0.7);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: #dfe2e7;
  font-synthesis: none;
}

@supports (height: 100dvh) {
  :root {
    --visual-viewport-height: 100dvh;
  }
}

@font-face {
  font-family: "uicon-iconfont";
  src: url("/assets/font_2225171_8kdcwk4po24.ttf") format("truetype");
  font-display: block;
}

.ui-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: none;
  overflow: visible;
  fill: currentColor;
}

.site-nav-icon .ui-icon {
  width: 17px;
  height: 17px;
}

.member-menu-icon .ui-icon,
.invite-friends-entry-icon .ui-icon,
.recharge-channel-icon .ui-icon,
.settings-row-icon .ui-icon,
.help-guide-icon .ui-icon,
.help-service-icon .ui-icon {
  width: 18px;
  height: 18px;
}

.settings-logout-button .ui-icon,
.help-intro > button .ui-icon {
  width: 16px;
  height: 16px;
}

.account-type span:first-child .ui-icon {
  width: 24px;
  height: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  min-height: 100%;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background: #dfe2e7;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  color: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

#app {
  position: relative;
  width: min(100%, 420px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--page);
  box-shadow: 0 0 34px rgba(28, 31, 36, 0.18);
}

.app-page {
  min-height: 100vh;
  background: var(--page);
}

.page-main {
  min-height: calc(100vh - 44px);
  padding: 15px 10px 30px;
}

[data-view="home"] .page-main,
[data-view="messages"] .page-main,
[data-view="profile"] .page-main {
  padding-bottom: 82px;
}

.page-main.no-bar {
  min-height: 100vh;
  padding-top: 10px;
}

.page-main.flush {
  padding-left: 0;
  padding-right: 0;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 67px 1fr 67px;
  align-items: center;
  height: 44px;
  padding: 0 3px;
  color: #000;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.top-title {
  height: 30px;
  line-height: 30px;
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  color: #1f2023;
  font-size: 28px;
  line-height: 1;
}

.icon-button:active,
.plain-action:active,
.nav-item:active {
  opacity: 0.62;
}

.icon-button::before {
  content: "\e60e";
  font-family: "uicon-iconfont";
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding: 7px 10px 5px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand-ball {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid #26272a;
  border-radius: 50%;
  background: #f6a842;
  color: #171719;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 2px 0 #ba7625;
}

.brand-ball::after {
  position: absolute;
  right: 4px;
  top: 5px;
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #252525;
  box-shadow: -7px 4px #252525, -1px 10px #252525;
}

.brand-copy strong {
  display: block;
  font-size: 17px;
  letter-spacing: 0;
}

.brand-copy span {
  display: block;
  margin-top: 1px;
  color: #777;
  font-size: 10px;
}

.brand-action {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #e1d1c1;
  border-radius: 50%;
  background: #fff;
  color: #8a6545;
  font-size: 20px;
}

.bottom-nav {
  position: fixed;
  z-index: 40;
  bottom: 0;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(100%, 420px);
  height: calc(50px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateX(-50%);
  background: #fff;
  border-top: 1px solid #e4e4e4;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  background: transparent;
  color: #666;
  font-size: 10px;
}

.nav-symbol {
  position: relative;
  display: grid;
  place-items: center;
  width: 25px;
  height: 24px;
  color: #8b8d91;
  font-size: 22px;
  line-height: 1;
}

.nav-item.active {
  color: #252525;
  font-weight: 600;
}

.nav-item.active .nav-symbol {
  color: #b58559;
}

.visual-banner {
  position: relative;
  height: 150px;
  overflow: hidden;
  border-radius: 10px;
  background: #202226;
  color: #fff;
  box-shadow: var(--shadow);
}

.visual-banner::before,
.visual-banner::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.visual-banner::before {
  left: -48px;
  top: 13px;
  width: 170px;
  height: 170px;
}

.visual-banner::after {
  right: -22px;
  bottom: -48px;
  width: 140px;
  height: 140px;
  border-color: rgba(244, 201, 161, 0.42);
}

.banner-copy {
  position: absolute;
  z-index: 2;
  left: 24px;
  top: 28px;
}

.banner-copy small {
  color: #f4c9a1;
  font-size: 12px;
}

.banner-copy h1 {
  margin-top: 5px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
}

.banner-copy p {
  margin-top: 8px;
  color: #d6d6d6;
  font-size: 12px;
}

.score-mark {
  position: absolute;
  z-index: 1;
  right: 28px;
  top: 27px;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 9px double #f4c9a1;
  border-radius: 50%;
  color: #f4c9a1;
  font-size: 28px;
  font-weight: 900;
  transform: rotate(-8deg);
}

.dots {
  position: absolute;
  z-index: 3;
  bottom: 9px;
  left: 50%;
  display: flex;
  gap: 5px;
  transform: translateX(-50%);
}

.dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.dots span:first-child {
  width: 14px;
  border-radius: 6px;
  background: #fff;
}

.notice-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  margin: 10px 0;
  padding: 0 12px;
  overflow: hidden;
  border-radius: 5px;
  background: #fff;
  color: #555;
  font-size: 12px;
  white-space: nowrap;
}

.notice-row strong {
  color: #b58559;
  font-size: 18px;
}

.account-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin-bottom: 6px;
  padding: 6px 10px;
  border-radius: 5px;
  background: #fefdfd;
  box-shadow: var(--shadow);
}

.balance-line {
  font-size: 14px;
  font-weight: 700;
}

.account-name {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
}

.account-tools {
  display: flex;
  gap: 18px;
}

.mini-tool {
  display: flex;
  min-width: 36px;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
}

.mini-tool span:first-child {
  font-size: 22px;
  color: #aa7750;
}

.category-layout {
  display: grid;
  grid-template-columns: 67px minmax(0, 1fr);
  min-height: 360px;
}

.category-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 2px 7px 0 0;
}

.category-tab {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 5px;
  border-radius: 18px;
  background: #fffdf9;
  color: #b7b5b1;
  box-shadow: var(--shadow);
  font-size: 12px;
  line-height: 1.15;
}

.category-tab.active {
  background: #f1d0b2;
  color: #252525;
  font-weight: 700;
}

.category-tab .category-glyph {
  display: block;
  margin-bottom: 2px;
  font-size: 19px;
}

.game-stage {
  padding-left: 5px;
}

.game-card {
  position: relative;
  display: flex;
  min-height: 116px;
  align-items: stretch;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 10px rgba(0, 0, 0, 0.2);
}

.game-visual {
  position: relative;
  width: 43%;
  flex: 0 0 43%;
  overflow: hidden;
  background: #24262a;
}

.game-visual::before {
  position: absolute;
  left: 50%;
  top: 50%;
  content: "";
  width: 58px;
  height: 58px;
  border: 6px solid #f4c9a1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.game-visual::after {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  content: "";
  height: 1px;
  background: rgba(255, 255, 255, 0.52);
  transform: rotate(-24deg);
}

.game-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 15px;
}

.game-copy small {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
}

.game-copy strong {
  margin-top: 4px;
  font-size: 20px;
}

.game-copy span {
  margin-top: 7px;
  color: #888;
  font-size: 11px;
}

.status-badge {
  position: absolute;
  right: 0;
  top: 0;
  padding: 3px 7px;
  border-radius: 0 0 0 6px;
  background: var(--green);
  color: #fff;
  font-size: 10px;
}

.gradient-background {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 40vh;
  background: linear-gradient(180deg, #ffe3ca -61%, rgba(209, 176, 146, 0));
  opacity: 0.9;
  pointer-events: none;
}

.auth-page {
  position: relative;
  min-height: 100vh;
  padding: 45px 22px 58px;
}

.auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 42px;
}

.auth-brand .brand-ball {
  width: 60px;
  height: 60px;
  margin-bottom: 8px;
  font-size: 28px;
}

.auth-brand h1 {
  font-size: 23px;
}

.auth-brand p {
  margin-top: 2px;
  color: #8e725b;
  font-size: 11px;
}

.segmented-tabs,
.tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.segmented-tabs button,
.tabs button {
  position: relative;
  flex: 1;
  min-height: 44px;
  padding: 0 8px;
  background: transparent;
  color: #8c8d90;
  font-size: 14px;
  white-space: nowrap;
}

.segmented-tabs button.active,
.tabs button.active {
  color: var(--orange);
  font-weight: 700;
}

.segmented-tabs button.active::after,
.tabs button.active::after {
  position: absolute;
  left: 50%;
  bottom: -1px;
  content: "";
  width: 30px;
  height: 3px;
  border-radius: 3px;
  background: var(--gold);
  transform: translateX(-50%);
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 25px;
}

.field {
  display: block;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: #252525;
  font-size: 14px;
  font-weight: 500;
}

.required {
  margin-right: 2px;
  color: #e43c3c;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 43px;
  border-bottom: 1px solid #495061;
}

.input-wrap.boxed {
  padding: 0 12px;
  border: 1px solid #dadbde;
  border-radius: 5px;
  background: #fff;
}

.input-wrap input,
.input-wrap textarea,
.input-wrap select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #303133;
  font-size: 14px;
}

.input-wrap textarea {
  min-height: 110px;
  padding: 10px 0;
  resize: vertical;
}

.input-wrap input::placeholder,
.input-wrap textarea::placeholder {
  color: #b1b3b7;
}

.suffix-button,
.plain-action {
  flex: none;
  padding: 7px 0 7px 10px;
  background: transparent;
  color: var(--gold);
  font-size: 13px;
  white-space: nowrap;
}

.suffix-button {
  min-width: 98px;
}

.suffix-button:disabled {
  color: #96999f;
  cursor: wait;
}

.password-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  background: transparent;
  color: #8c8e92;
  font-size: 18px;
}

.check-row,
.split-row,
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.check-row label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #606266;
  font-size: 14px;
}

.check-row input {
  accent-color: var(--gold);
}

.primary-button,
.secondary-button,
.danger-button {
  display: flex;
  width: 100%;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
}

.primary-button {
  background: #f4c9a1;
  color: #252525;
}

.secondary-button {
  border: 1px solid #dadbde;
  background: #fff;
  color: #303133;
}

.danger-button {
  background: #fff0f0;
  color: var(--red);
}

.helper-text {
  color: #9e9e9e;
  font-size: 11px;
  line-height: 1.55;
}

.warning-text {
  color: #d77932;
  font-size: 11px;
  line-height: 1.55;
}

.section-title {
  margin: 16px 0 10px;
  color: #4c4d50;
  font-size: 13px;
  font-weight: 700;
}

.wallet-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  margin-bottom: 15px;
  padding: 12px 14px;
  border-radius: 15px;
  background: linear-gradient(178deg, #696969 -206%, #fff);
  box-shadow: var(--shadow);
}

.wallet-card strong {
  display: block;
  font-size: 18px;
}

.wallet-card span {
  display: block;
  margin-top: 4px;
  color: #777;
  font-size: 12px;
}

.profile-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 114px;
  margin: -15px -10px 12px;
  padding: 25px 18px 16px;
  background: linear-gradient(180deg, #ffe3ca -35%, rgba(209, 176, 146, 0));
}

.avatar-placeholder {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: none;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #d9b795;
  color: #fff;
  font-size: 23px;
  box-shadow: 0 3px 8px rgba(90, 60, 35, 0.18);
}

.profile-copy strong {
  display: block;
  font-size: 18px;
}

.profile-copy span {
  display: block;
  margin-top: 5px;
  color: #797979;
  font-size: 12px;
}

.profile-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 10px 14px;
  border-radius: 15px;
  background: #f3d2b3;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 13px 8px;
  border-radius: 8px;
  background: #fff;
}

.menu-item {
  display: flex;
  min-width: 0;
  min-height: 70px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: transparent;
  color: #444;
  font-size: 11px;
  text-align: center;
}

.menu-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #fff4e8;
  color: #a16d40;
  font-size: 16px;
}

.option-list,
.accordion-list,
.message-list {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.option-row,
.accordion-button,
.message-row {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.option-row:last-child,
.accordion-item:last-child .accordion-button,
.message-row:last-child {
  border-bottom: 0;
}

.row-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: #fff5eb;
  color: #a66f3f;
  font-size: 17px;
}

.row-copy {
  min-width: 0;
  flex: 1;
}

.row-copy strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.row-copy small {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: #9e9e9e;
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.chevron {
  color: #b4b4b4;
  font-family: "uicon-iconfont";
  font-size: 16px;
}

.empty-state {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #a2a4a8;
  font-size: 13px;
}

.empty-symbol {
  position: relative;
  width: 54px;
  height: 42px;
  margin-bottom: 13px;
  border: 2px solid #c7c9cd;
  border-radius: 5px;
}

.empty-symbol::before {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 12px;
  content: "";
  height: 2px;
  background: #c7c9cd;
  box-shadow: 0 8px #c7c9cd;
}

.accordion-button {
  min-height: 64px;
}

.accordion-content {
  height: 0;
  overflow: hidden;
}

.accordion-content-inner {
  padding: 12px 16px 16px;
  border-bottom: 1px solid var(--line);
  color: #606266;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-line;
}

.accordion-item.open .accordion-content {
  height: auto;
}

.accordion-item.open .chevron {
  transform: rotate(90deg);
}

.info-panel,
.bet-card,
.rule-card,
.metric-card,
.promotion-table,
.business-panel {
  border-radius: 8px;
  background: #fff;
}

.info-panel {
  padding: 15px;
  color: #555;
  font-size: 13px;
  line-height: 1.75;
}

.copy-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  background: #f4f6fa;
  font-size: 13px;
}

.copy-button {
  flex: none;
  padding: 6px 12px;
  border-radius: 16px;
  background: #fdba7a;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.stats-grid,
.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.metric-card {
  min-height: 92px;
  padding: 15px;
}

.metric-card span {
  color: #9e9e9e;
  font-size: 13px;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  color: #252525;
  font-size: 24px;
}

.metric-card .negative {
  color: var(--red);
}

.metric-card .positive {
  color: var(--green);
}

.bet-card {
  margin-top: 14px;
  overflow: hidden;
}

.bet-card-head {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  background: linear-gradient(98deg, #e9c5a4 15%, rgba(233, 197, 164, 0) 77%);
  font-size: 13px;
  font-weight: 600;
}

.bet-card-body {
  padding: 14px;
}

.bet-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.bet-option {
  min-height: 46px;
  border: 1px solid #9e9e9e;
  border-radius: 4px;
  background: #fff;
  color: #777;
  font-size: 12px;
}

.bet-option strong {
  display: block;
  margin-top: 3px;
  color: var(--gold);
  font-size: 13px;
}

.bet-option.active {
  border-color: var(--gold);
  background: var(--gold);
  color: #fff;
}

.bet-option.active strong {
  color: #fff;
}

.event-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 50px;
}

.event-tabs button {
  background: transparent;
  color: #252525;
  font-size: 13px;
  font-weight: 500;
}

.event-tabs button.active {
  color: var(--gold);
}

.rules-intro {
  margin-bottom: 13px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.rule-card {
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.rule-title {
  padding: 10px 14px;
  background: linear-gradient(180deg, #e9c5a4 15%, rgba(233, 197, 164, 0) 93%);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.rule-copy {
  padding: 8px 14px 16px;
  color: #4d4e51;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-line;
}

.chat-page {
  display: flex;
  height: calc(100vh - 44px);
  flex-direction: column;
  background: #eef0f3;
}

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.chat-bubble {
  width: fit-content;
  max-width: 78%;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 0 10px 10px;
  background: #fff;
  color: #252525;
  font-size: 14px;
  line-height: 1.45;
}

.chat-bubble.me {
  margin-left: auto;
  border-radius: 10px 0 10px 10px;
  background: #5ae66d;
}

.chat-time {
  display: block;
  margin-top: 4px;
  color: #909193;
  font-size: 10px;
}

.chat-input {
  display: grid;
  grid-template-columns: 1fr 70px;
  gap: 8px;
  min-height: 70px;
  padding: 10px;
  background: #fff;
}

.chat-input textarea {
  min-height: 48px;
  padding: 9px;
  border: 1px solid #dadbde;
  border-radius: 4px;
  outline: 0;
  resize: none;
}

.chat-input button {
  border-radius: 4px;
  background: #f4c9a1;
  color: #252525;
}

.search-bar {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 7px;
  margin-bottom: 10px;
}

.search-bar input {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 20px;
  outline: 0;
  background: #fff;
}

.search-bar button {
  background: transparent;
  font-size: 13px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.pg-card {
  position: relative;
  min-height: 112px;
  padding: 15px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(30, 34, 40, 0.08);
}

.pg-card::before {
  position: absolute;
  right: -16px;
  top: -19px;
  content: "";
  width: 80px;
  height: 80px;
  border: 10px double #e8c6a6;
  border-radius: 50%;
}

.pg-card strong,
.pg-card span {
  position: relative;
  z-index: 1;
  display: block;
}

.pg-card span {
  margin-top: 6px;
  color: #a0a1a4;
  font-size: 11px;
}

.favorite-button {
  position: absolute;
  right: 8px;
  bottom: 7px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff4e8;
  color: #b58559;
  font-size: 17px;
}

.favorite-button.active {
  background: #b58559;
  color: #fff;
}

.pg-stage,
.battle-stage {
  display: flex;
  min-height: calc(100vh - 70px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #1e2024;
  color: #fff;
  text-align: center;
}

.loader-ring {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: #f4c9a1;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.promotion-table {
  overflow: hidden;
  box-shadow: var(--shadow);
}

.promotion-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  min-height: 43px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  text-align: center;
}

.promotion-row:first-child {
  background: linear-gradient(180deg, #ffe3ca, #e9c5a4);
  font-weight: 600;
}

.promotion-row:last-child {
  border-bottom: 0;
}

.business-panel {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  padding: 56px 25px;
  background: #212327;
  color: #fff;
  text-align: center;
}

.business-panel::before {
  position: absolute;
  left: 50%;
  top: 52%;
  content: "";
  width: 230px;
  height: 230px;
  border: 18px double rgba(244, 201, 161, 0.32);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.business-panel > * {
  position: relative;
  z-index: 1;
}

.business-panel h2 {
  font-size: 27px;
}

.business-panel h3 {
  margin-top: 9px;
  color: #f4c9a1;
  font-size: 20px;
}

.business-panel p {
  margin-top: 20px;
  color: #d0d1d3;
  font-size: 13px;
}

.business-panel .primary-button {
  margin-top: 150px;
}

.upload-box {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 2px;
  background: #f4f5f7;
  color: #909193;
  font-size: 24px;
}

.upload-box small {
  display: block;
  font-size: 10px;
}

.account-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.account-type {
  display: flex;
  min-height: 76px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  color: #555;
}

.account-type.active {
  border-color: var(--gold);
  background: #fffaf5;
}

.account-type span:first-child {
  color: #aa7750;
  font-size: 23px;
}

.modal-layer {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.48);
}

.modal {
  width: min(100%, 360px);
  max-height: 82vh;
  overflow-y: auto;
  padding: 20px;
  border-radius: 12px;
  background: #fff;
}

.modal h2 {
  font-size: 17px;
  text-align: center;
}

.modal p {
  margin-top: 10px;
  color: #666;
  font-size: 13px;
  line-height: 1.65;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.sms-captcha-modal {
  width: min(100%, 340px);
  border-radius: 8px;
}

.sms-captcha-form {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.captcha-preview-row {
  display: grid;
  grid-template-columns: minmax(0, 200px) 44px;
  gap: 10px;
  align-items: stretch;
  justify-content: center;
}

.captcha-image {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  border: 1px solid #d8dbe0;
  border-radius: 5px;
  background: #fff;
  object-fit: contain;
}

.captcha-refresh-button {
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 100px;
  border: 1px solid #d8dbe0;
  border-radius: 5px;
  background: #fff;
  color: #7b5534;
  font-size: 24px;
}

.captcha-refresh-button:disabled {
  color: #a5a8ad;
  cursor: wait;
}

.sms-captcha-form .field-label {
  text-align: left;
}

.sms-captcha-form .modal-actions {
  margin-top: 0;
}

body.single-bet-open {
  overflow: hidden;
}

.single-bet-layer {
  right: auto;
  left: 50%;
  display: flex;
  width: min(100%, 420px);
  padding: 0;
  align-items: flex-end;
  justify-content: center;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, .58);
  container-type: inline-size;
}

.single-bet-sheet {
  width: 100%;
  max-height: calc(100vh - 18px);
  max-height: calc(100dvh - 18px);
  overflow-y: auto;
  border-radius: 4cqw 4cqw 0 0;
  outline: none;
  background: #202a39;
  color: #20262e;
  box-shadow: 0 -14px 44px rgba(8, 13, 22, .28);
  overscroll-behavior: contain;
}

.single-bet-layer button:disabled {
  opacity: 1;
  -webkit-text-fill-color: currentColor;
}

.single-bet-header {
  display: flex;
  height: 14.7cqw;
  min-height: 55px;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.7cqw 0 4.2cqw;
  color: #fff;
}

.single-bet-header h2 {
  color: #fff;
  font-size: 3.8cqw;
  font-weight: 700;
  line-height: 1.3;
}

.single-bet-balance {
  display: flex;
  min-width: 24.2cqw;
  height: 9.4cqw;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 1.7cqw;
  padding: 0 3cqw;
  border-radius: 6cqw;
  background: #35404c;
  color: #fff;
  font-size: 3.8cqw;
  font-weight: 600;
  white-space: nowrap;
}

.single-bet-balance svg {
  width: 3.4cqw;
  min-width: 14px;
  height: 3.4cqw;
}

.single-bet-balance.is-refreshing svg {
  animation: single-bet-spin .7s linear infinite;
}

.single-bet-body {
  padding: 2.6cqw 2.7cqw max(3.9cqw, env(safe-area-inset-bottom));
  border-radius: 4cqw 4cqw 0 0;
  background: #f5f7fa;
}

.single-bet-ticket {
  display: grid;
  min-height: 25cqw;
  grid-template-columns: minmax(0, 1fr) 24cqw;
  overflow: hidden;
  border-radius: 2.8cqw;
  background: #fff;
}

.single-bet-ticket-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 3.4cqw 2.6cqw;
}

.single-bet-ticket-main p,
.single-bet-ticket-main small {
  overflow: hidden;
  color: #96989b;
  font-size: 3.2cqw;
  font-weight: 500;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.single-bet-ticket-main strong {
  margin-top: auto;
  padding-top: 3.8cqw;
  overflow: hidden;
  color: #20262e;
  font-size: 3.6cqw;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.single-bet-ticket-odds {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  padding: 2.5cqw 3.2cqw 2.6cqw 1cqw;
  border-left: .2cqw dashed #f5f7fa;
}

.single-bet-ticket-odds::before,
.single-bet-ticket-odds::after {
  position: absolute;
  left: -1.2cqw;
  width: 2.4cqw;
  height: 2.4cqw;
  border-radius: 50%;
  background: #f5f7fa;
  content: "";
}

.single-bet-ticket-odds::before { top: -1.2cqw; }
.single-bet-ticket-odds::after { bottom: -1.2cqw; }

.single-bet-barcode {
  width: 12cqw;
  height: 3.1cqw;
  background: repeating-linear-gradient(90deg, #22252e 0 1cqw, transparent 1cqw 1.5cqw, #22252e 1.5cqw 3.2cqw, transparent 3.2cqw 3.8cqw, #22252e 3.8cqw 4.1cqw, transparent 4.1cqw 4.6cqw);
}

.single-bet-ticket-odds > span:nth-child(2) {
  width: 100%;
  margin-top: 2.7cqw;
  overflow: hidden;
  color: #92959b;
  font-size: 3.9cqw;
  font-weight: 600;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.single-bet-ticket-odds strong {
  color: #20262e;
  font-size: 5.3cqw;
  font-weight: 700;
  line-height: 1;
}

.single-bet-amount-row {
  display: grid;
  height: 12cqw;
  min-height: 45px;
  grid-template-columns: minmax(0, 1fr) 21.8cqw;
  gap: 2.6cqw;
  margin-top: 2.6cqw;
}

.single-bet-amount-field {
  display: flex;
  min-width: 0;
  align-items: center;
  padding: 0 2.6cqw;
  border: .4cqw solid #ca0d28;
  border-radius: 2.7cqw;
  background: #fff;
}

.single-bet-amount-field input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #20262e;
  font-size: 4.8cqw;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.single-bet-amount-field input::placeholder {
  color: #8c9098;
  font-size: 4cqw;
  font-weight: 500;
  opacity: 1;
}

.single-bet-amount-field button {
  display: grid;
  width: 3.8cqw;
  min-width: 15px;
  height: 3.8cqw;
  place-items: center;
  border-radius: 50%;
  background: #9699a1;
  color: #fff;
  font-size: 3.5cqw;
  line-height: 1;
}

.single-bet-reserve {
  border-radius: 2.8cqw;
  background: #fff;
  color: #20262e;
  font-size: 3.7cqw;
  font-weight: 700;
}

.single-bet-keypad {
  display: grid;
  max-height: 56cqw;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.6cqw;
  margin-top: 2.6cqw;
  overflow: hidden;
  transition: max-height .2s ease, margin-top .2s ease, opacity .2s ease;
}

.single-bet-keypad button {
  display: grid;
  height: 12cqw;
  min-height: 45px;
  place-items: center;
  border-radius: 2.8cqw;
  background: #fff;
  color: #20262e;
  font-size: 5.2cqw;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.single-bet-keypad button:active {
  background: #e8ebef;
}

.single-bet-keypad .is-max {
  color: #e0000a;
  font-size: 5.5cqw;
}

.single-bet-delete span {
  color: #20262e;
  font-size: 6.2cqw;
  font-weight: 800;
  line-height: 1;
}

.single-bet-hide span {
  color: #20262e;
  font-size: 8cqw;
  font-weight: 500;
  line-height: .6;
  transform: translateY(-.6cqw);
}

.single-bet-sheet.is-keypad-hidden .single-bet-keypad {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  pointer-events: none;
}

.single-bet-footer {
  display: grid;
  grid-template-columns: 21.8cqw minmax(0, 1fr);
  gap: 2.6cqw;
  margin-top: 2.6cqw;
}

.single-bet-footer > button:first-child {
  height: 13.4cqw;
  min-height: 50px;
  border-radius: 2.8cqw;
  background: #3d3e3e;
  color: #aaa;
  font-size: 3.8cqw;
  font-weight: 700;
}

.single-bet-submit {
  display: flex;
  min-width: 0;
  height: 13.4cqw;
  min-height: 50px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .7cqw;
  border-radius: 2.8cqw;
  background: #ed7b8c;
  color: #fff;
}

.single-bet-submit.is-ready {
  background: #d90020;
}

.single-bet-submit strong {
  font-size: 4.4cqw;
  font-weight: 700;
  line-height: 1;
}

.single-bet-submit span {
  max-width: 100%;
  overflow: hidden;
  padding: 0 2cqw;
  color: #fffdf5;
  font-size: 3.2cqw;
  font-weight: 400;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.single-bet-submit:disabled {
  cursor: default;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  border: 0;
  clip-path: inset(50%);
  white-space: nowrap;
}

@keyframes single-bet-spin {
  to { transform: rotate(360deg); }
}

.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 80px;
  max-width: min(80vw, 330px);
  padding: 11px 18px;
  border-radius: 4px;
  background: rgba(40, 40, 40, 0.9);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  transform: translateX(-50%);
  animation: toast-in 0.18s ease-out;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 7px);
  }
}

.local-note {
  margin: 12px 0;
  padding: 9px 11px;
  border-left: 3px solid var(--gold);
  background: #fffaf5;
  color: #76583e;
  font-size: 11px;
  line-height: 1.55;
}

.contact-card {
  padding: 18px;
  border-radius: 8px;
  background: #fff;
}

.contact-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact-method:last-child {
  border-bottom: 0;
}

.contact-method span {
  color: #777;
  font-size: 12px;
}

.hero-note {
  padding: 16px 18px;
  border-radius: 8px;
  background: #f0d0b2;
  color: #4d3928;
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 450px) {
  :root,
  body {
    background: var(--page);
  }

  #app {
    box-shadow: none;
  }
}

@media (max-width: 350px) {
  .menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .account-tools {
    gap: 10px;
  }

  .category-layout {
    grid-template-columns: 61px minmax(0, 1fr);
  }

  .category-tab {
    width: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Ice client home shell, matched to the supplied mobile reference. */
:root {
  --ice-blue: #179cff;
  --ice-blue-soft: #80c8ff;
  --ice-navy: #182f59;
  --ice-copy: #4e7196;
  --ice-page: #e5f6ff;
  --ice-panel-surface: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(218, 241, 255, 0.7));
  --ice-panel-shadow: inset 0 1px rgba(255, 255, 255, 0.98), inset 0 -1px rgba(80, 184, 244, 0.2), 0 4px 12px rgba(46, 117, 166, 0.12);
}

body {
  background:
    radial-gradient(at 12% 12%, rgba(255, 255, 255, 0.86), transparent 56%) fixed,
    radial-gradient(at 0 78%, rgba(153, 192, 235, 0.18), transparent 54%) fixed,
    linear-gradient(155deg, #f1f7fc 0%, #f7fafe 38%, #eef4fc 72%, #eaf0f9 100%) fixed;
}

#app {
  background: var(--ice-page);
}

[data-view="home"] {
  min-height: 100vh;
  overflow: visible;
  color: var(--ice-navy);
  background: var(--ice-page);
}

[data-view="home"] .page-main.no-bar {
  min-height: 100vh;
  padding: 0 0 calc(83px + env(safe-area-inset-bottom));
  overflow: visible;
  background: var(--ice-page);
}

.frozen-hub-action:active,
.frozen-game-card:active {
  transform: scale(0.97);
}

.frozen-home-header {
  display: flex;
  height: 47px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 12px 3px;
}

.frozen-brand {
  display: flex;
  width: 118px;
  height: 40px;
  min-width: 0;
  align-items: center;
  padding: 0;
  background: transparent;
}

.frozen-brand img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 40px;
  object-fit: contain;
  object-position: left center;
}

.frozen-header-actions {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.frozen-site-label {
  overflow: hidden;
  color: #8998ad;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.frozen-message-button {
  display: grid;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  padding: 0;
  place-items: center;
  background: transparent;
}

.frozen-message-button img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.frozen-home-banner {
  position: relative;
  width: 100%;
  height: 151px;
  overflow: hidden;
  border-radius: 12px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.frozen-home-banner.is-dragging {
  cursor: grabbing;
}

.frozen-banner-track,
.frozen-home-banner .banner-link {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.frozen-home-banner .banner-link {
  visibility: hidden;
  padding: 0 6px;
  overflow: hidden;
  opacity: 0;
  background: #fff;
  border-radius: 12px;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.4s ease, transform 0.18s ease;
}

.frozen-home-banner .banner-link.active {
  visibility: visible;
  opacity: 1;
  transform: translate3d(var(--banner-drag-x, 0px), 0, 0);
}

.frozen-home-banner.is-dragging .banner-link {
  transition: none;
}

.frozen-home-banner .banner-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.frozen-banner-dots {
  position: absolute;
  z-index: 3;
  bottom: 2px;
  left: 50%;
  display: flex;
  transform: translateX(-50%);
}

.frozen-banner-dots button {
  width: 6px;
  height: 3px;
  margin: 0 1px;
  padding: 0;
  border-radius: 3px;
  opacity: 0.5;
  background: var(--ice-blue);
  transition: width 0.4s ease, opacity 0.4s ease;
}

.frozen-banner-dots button.active {
  width: 13px;
  opacity: 1;
}

.frozen-account-hub {
  position: relative;
  isolation: isolate;
  width: calc(100% - 20px);
  height: 128px;
  min-height: 128px;
  margin: 0 10px 4px;
  padding: 5px 14px 7px;
  color: var(--ice-navy);
}

.frozen-hub-base {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.frozen-account-hub button {
  padding: 0;
  color: inherit;
  background: transparent;
}

.frozen-hub-notice {
  display: flex;
  width: 100%;
  height: 33px;
  align-items: center;
  gap: 9px;
  color: #4e678f;
  border-bottom: 1px solid #d5e7f8;
  border-radius: 6px 6px 0 0;
}

.frozen-hub-notice > img {
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.frozen-hub-notice > span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.frozen-hub-notice > b {
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 400;
}

.frozen-hub-main {
  display: grid;
  min-height: 84px;
  grid-template-columns: 37% minmax(0, 1fr);
  align-items: center;
}

.frozen-hub-account {
  display: flex;
  width: 100%;
  min-width: 0;
  height: 65px;
  padding-right: 7px !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  border-right: 1px solid #d1e4f6;
  border-radius: 5px 0 0 5px;
}

.frozen-hub-account strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--ice-navy);
  font-size: 15px;
  line-height: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.frozen-hub-account > span {
  display: flex;
  max-width: 100%;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  color: var(--ice-copy);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.frozen-hub-account b {
  font-size: 17px;
  font-weight: 400;
}

.frozen-hub-actions {
  display: grid;
  height: 100%;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 2px;
  padding: 3px 0 10px 8px;
  margin-right: -4px;
}

.frozen-hub-action {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 6px;
  transition: transform 0.15s ease;
}

.frozen-hub-action img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.frozen-hub-action span {
  color: var(--ice-navy);
  font-size: 12px;
  font-weight: 600;
  line-height: 14px;
  white-space: nowrap;
}

.frozen-game-layout {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 0 1.8% 0 1%;
  overflow: visible;
}

.frozen-category-tabs {
  position: relative;
  display: flex;
  flex: 0 0 64px;
  width: 64px;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.frozen-category-tabs::-webkit-scrollbar,
.frozen-game-stage::-webkit-scrollbar {
  display: none;
}

.frozen-category-tab {
  position: relative;
  display: block;
  flex: 0 0 58px;
  width: 56px;
  height: 58px;
  margin: 0 0 5px;
  padding: 0;
  color: var(--ice-copy);
  background: transparent;
  border-radius: 8px;
}

.frozen-category-tile,
.frozen-category-selected {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.frozen-category-selected {
  z-index: 1;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.frozen-category-tab.active .frozen-category-selected {
  opacity: 1;
}

.frozen-category-tab:not(.active) .frozen-category-tile {
  filter: saturate(0.4) brightness(1.06);
}

.frozen-category-icon {
  position: absolute;
  top: 38%;
  left: 50%;
  z-index: 2;
  width: 68%;
  aspect-ratio: 1;
  object-fit: contain;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.frozen-category-tab.active .frozen-category-icon {
  transform: translate(-50%, -50%) scale(1.06);
}

.frozen-category-tab > span {
  position: absolute;
  top: 78%;
  left: 0;
  z-index: 2;
  width: 100%;
  color: var(--ice-copy);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  transform: translateY(-50%);
}

.frozen-category-tab.active > span {
  color: #fff;
}

.frozen-game-stage {
  width: calc(100% - 64px);
  margin-left: 1%;
  overflow-x: hidden;
  overflow-y: visible;
  overscroll-behavior: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.frozen-game-category {
  width: 100%;
  scroll-margin-top: 0;
}

.frozen-game-category:last-child {
  min-height: 0;
}

.frozen-game-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 590 / 240;
  margin: 0 0 8px;
  padding: 0;
  overflow: hidden;
  color: #132a42;
  text-align: left;
  background: transparent;
  border-radius: 14px;
  transition: filter 0.16s ease, transform 0.16s ease;
}

.frozen-game-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.frozen-game-cover-title {
  position: absolute;
  top: 50%;
  left: 7%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  transform: translateY(-50%);
  color: #fff;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 2px 4px rgba(19, 10, 5, 0.86), 0 0 10px rgba(191, 116, 32, 0.72);
}

.frozen-game-cover-title strong {
  color: #ffd988;
  font-size: 24px;
  font-weight: 900;
}

.frozen-game-cover-title small {
  margin-top: 7px;
  color: #fff3d2;
  font-size: 10px;
  font-weight: 700;
}

.frozen-tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 60;
  display: flex;
  width: min(100%, 420px);
  height: calc(75px + env(safe-area-inset-bottom));
  padding: 0 12px env(safe-area-inset-bottom);
  justify-content: space-between;
  transform: translateX(-50%);
  background: #f8fcff;
  border-radius: 24px 24px 0 0 / 18px 18px 0 0;
}

.frozen-tabbar-base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  pointer-events: none;
}

.frozen-tabbar-item {
  position: relative;
  display: flex;
  flex: 1 1 0;
  height: 72px;
  min-width: 0;
  padding: 6px 0 0;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: transparent;
}

.frozen-tabbar-selection {
  position: absolute;
  top: 3px;
  left: 50%;
  width: calc(100% - 16px);
  max-width: 72px;
  height: calc(100% + 1px);
  transform: translateX(-50%);
  pointer-events: none;
}

.frozen-tabbar-icon {
  position: relative;
  z-index: 1;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  pointer-events: none;
}

.frozen-tabbar-icon img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.16s ease;
}

.frozen-tabbar-icon .selected,
.frozen-tabbar-item.active .idle {
  opacity: 0;
}

.frozen-tabbar-item.active .selected {
  opacity: 1;
}

.frozen-tabbar-label {
  position: relative;
  z-index: 1;
  width: 100%;
  color: #426b98;
  font-size: 12px;
  font-weight: 700;
  line-height: 14px;
  white-space: nowrap;
  pointer-events: none;
}

.frozen-tabbar-item.active .frozen-tabbar-label {
  color: #0575f3;
}

.frozen-message-button:focus-visible,
.frozen-account-hub button:focus-visible,
.frozen-category-tab:focus-visible,
.frozen-game-card:focus-visible,
.frozen-tabbar-item:focus-visible {
  outline: 2px solid #1679c9;
  outline-offset: -2px;
}

@media (max-width: 360px) {
  .frozen-account-hub {
    margin-right: 8px;
    margin-left: 8px;
    width: calc(100% - 16px);
    padding-right: 10px;
    padding-left: 10px;
  }

  .frozen-hub-action img {
    width: 36px;
    height: 36px;
  }

  .frozen-category-tabs {
    flex-basis: 58px;
    width: 58px;
  }

  .frozen-category-tab {
    width: 52px;
  }

  .frozen-game-stage {
    width: calc(100% - 58px);
  }

  .frozen-tabbar-icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }
}

/* Message center: use the same neutral surfaces and red accents as the main site. */
.site-page[data-view="system-messages"] .page-main,
.site-page[data-view="system-message-detail"] .page-main {
  background: #f6f7f9 !important;
}

.message-center,
.message-notice-detail,
.message-detail-state {
  width: 100%;
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
}

.message-center-heading {
  display: flex;
  min-height: 54px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 0 2px;
}

.message-center-heading > div {
  min-width: 0;
}

.message-center-heading span {
  display: block;
  margin-bottom: 2px;
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  line-height: 14px;
}

.message-center-heading h1 {
  overflow-wrap: anywhere;
  color: #1f2734;
  font-size: 22px;
  font-weight: 850;
  line-height: 29px;
}

.message-center-heading > small {
  flex: none;
  padding-bottom: 3px;
  color: #8a929e;
  font-size: 11px;
  font-weight: 650;
  line-height: 18px;
}

.message-center-tabs {
  display: grid;
  width: 100%;
  height: 46px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  margin-bottom: 10px;
  padding: 3px;
  border: 1px solid #e4e7ec;
  border-radius: var(--site-radius);
  background: #fff;
}

.message-center-tabs button {
  position: relative;
  display: flex;
  min-width: 0;
  height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #727b88;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.message-center-tabs button small {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  border-radius: 4px;
  background: #f0f2f5;
  color: #8a929e;
  font-size: 10px;
  font-weight: 750;
  line-height: 20px;
}

.message-center-tabs button.active {
  border-color: #ffd5d9;
  background: #fff0f1;
  color: var(--red);
  font-weight: 800;
}

.message-center-tabs button.active small {
  background: #fff;
  color: var(--red);
}

.message-center-list {
  display: grid;
  width: 100%;
  min-height: 0;
  align-content: start;
  gap: 8px;
}

.message-center-list.is-empty {
  min-height: clamp(230px, 38vh, 360px);
}

.message-notice-item {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 108px;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 14px 13px 14px 14px;
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: var(--site-radius);
  background: #fff;
  box-shadow: none;
  color: #4e5764;
  text-align: left;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.message-notice-item.is-unread::after {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px #fff;
  content: "";
}

.message-notice-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #ffd7db;
  border-radius: 6px;
  background: #fff0f1;
  color: var(--red);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
}

.message-notice-content {
  display: block;
  min-width: 0;
}

.message-notice-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}

.message-notice-meta > span {
  flex: none;
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  line-height: 15px;
}

.message-notice-meta time {
  min-width: 0;
  overflow: hidden;
  color: #969da7;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 550;
  line-height: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-notice-title {
  display: block;
  min-width: 0;
  margin-bottom: 4px;
  overflow: hidden;
  color: #1f2734;
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-notice-preview {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: #6f7885;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.message-notice-chevron {
  color: #a7adb6;
  font-size: 22px;
  font-weight: 400;
  line-height: 24px;
  text-align: right;
}

.message-center-empty,
.message-detail-state {
  display: flex;
  min-height: clamp(230px, 38vh, 360px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid #e4e7ec;
  border-radius: var(--site-radius);
  background: #fff;
  color: #8a929e;
  text-align: center;
}

.message-center-empty > span,
.message-detail-state > span {
  width: 30px;
  height: 4px;
  margin-bottom: 7px;
  border-radius: 2px;
  background: var(--red);
}

.message-center-empty strong,
.message-detail-state strong {
  color: #343d4a;
  font-size: 14px;
  font-weight: 800;
  line-height: 21px;
}

.message-center-empty small,
.message-detail-state small {
  color: #969da7;
  font-size: 11px;
  font-weight: 500;
  line-height: 18px;
}

.message-notice-detail {
  max-width: 820px;
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: var(--site-radius);
  background: #fff;
  box-shadow: none;
}

.message-notice-detail-head {
  padding: 24px 26px 19px;
  border-bottom: 1px solid #e8ebef;
}

.message-notice-detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.message-notice-detail-meta > span {
  display: inline-grid;
  min-height: 24px;
  place-items: center;
  padding: 0 8px;
  border: 1px solid #ffd7db;
  border-radius: 4px;
  background: #fff0f1;
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  line-height: 22px;
}

.message-notice-detail-meta time {
  color: #929aa5;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 550;
  line-height: 18px;
}

.message-notice-detail h2 {
  margin-top: 13px;
  overflow-wrap: anywhere;
  color: #1f2734;
  font-size: 22px;
  font-weight: 850;
  line-height: 31px;
}

.message-notice-detail-copy {
  min-height: 190px;
  padding: 22px 26px 30px;
  overflow-wrap: anywhere;
  color: #4e5764;
  font-size: 14px;
  font-weight: 500;
  line-height: 26px;
  white-space: pre-wrap;
}

.message-notice-detail-footer {
  display: flex;
  min-height: 55px;
  align-items: center;
  justify-content: flex-end;
  padding: 9px 14px;
  border-top: 1px solid #e8ebef;
  background: #fafbfc;
}

.message-notice-detail-footer button,
.message-detail-state button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #f3b9bf;
  border-radius: 5px;
  background: #fff;
  color: var(--red);
  font-size: 11px;
  font-weight: 750;
}

.message-detail-state button {
  margin-top: 11px;
}

.message-center-tabs button:focus-visible,
.message-notice-item:focus-visible,
.message-notice-detail-footer button:focus-visible,
.message-detail-state button:focus-visible {
  outline: 2px solid rgba(230, 0, 19, 0.34);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .message-center-tabs button:hover:not(.active) {
    background: #f7f8fa;
    color: #4e5764;
  }

  .message-notice-item:hover {
    transform: translateY(-1px);
    border-color: #f0b9bf;
    box-shadow: 0 5px 14px rgba(31, 39, 52, 0.065);
  }

  .message-notice-detail-footer button:hover,
  .message-detail-state button:hover {
    border-color: var(--red);
    background: #fff0f1;
  }
}

@media (max-width: 760px) {
  .site-page[data-view="system-messages"] .page-main,
  .site-page[data-view="system-message-detail"] .page-main {
    padding: 10px 8px calc(78px + env(safe-area-inset-bottom));
  }

  .site-page[data-view="system-message-detail"] .page-main {
    padding-bottom: 22px;
  }

  .message-center-heading {
    min-height: 48px;
    margin-bottom: 9px;
  }

  .message-center-heading h1 {
    font-size: 19px;
    line-height: 26px;
  }

  .message-center-tabs {
    height: 44px;
    margin-bottom: 8px;
  }

  .message-center-tabs button {
    height: 36px;
    padding: 0 8px;
    font-size: 12px;
  }

  .message-notice-item {
    min-height: 102px;
    grid-template-columns: 34px minmax(0, 1fr) 14px;
    gap: 10px;
    padding: 12px 10px;
  }

  .message-notice-item.is-unread::after {
    top: 10px;
    right: 10px;
  }

  .message-notice-mark {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .message-notice-meta {
    gap: 8px;
  }

  .message-notice-title {
    font-size: 13px;
    line-height: 19px;
  }

  .message-notice-preview {
    font-size: 11px;
    line-height: 17px;
  }

  .message-notice-detail-head {
    padding: 18px 16px 15px;
  }

  .message-notice-detail h2 {
    margin-top: 11px;
    font-size: 18px;
    line-height: 27px;
  }

  .message-notice-detail-copy {
    min-height: 180px;
    padding: 18px 16px 24px;
    font-size: 13px;
    line-height: 24px;
  }

  .message-notice-detail-footer {
    padding-right: 10px;
    padding-left: 10px;
  }
}

/* Mobile-site details collected from the authenticated m. experience. */
@font-face {
  font-family: "DIN2014";
  src: url("/assets/v9-mobile/din-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "DIN2014";
  src: url("/assets/v9-mobile/din-demi.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "DIN2014";
  src: url("/assets/v9-mobile/din-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}

body {
  font-family: "DIN2014", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.member-menu-list b,
.mobile-menu-feature-grid b {
  color: #a0a6af;
  font-size: 18px;
  font-weight: 400;
}

.member-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--site-radius);
  background: #fff;
}

.member-quick-grid button {
  display: flex;
  min-width: 0;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-right: 1px solid #f0f2f5;
  background: transparent;
  color: #333d4b;
  font-size: 12px;
}

.member-quick-grid button:last-child {
  border-right: 0;
}

.member-quick-grid img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.member-menu-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--site-radius);
  background: #fff;
}

.member-menu-list > button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  min-width: 0;
  height: 50px;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border-bottom: 1px solid #eef0f3;
  background: #fff;
  color: #313a48;
  text-align: left;
}

.member-menu-list > button:nth-child(odd) {
  border-right: 1px solid #eef0f3;
}

.member-menu-list > button:hover {
  background: #f8f9fa;
}

.member-menu-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 7px;
  background: #fff0f1;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
}

.member-menu-list strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-menu-page {
  width: 100%;
}

.mobile-menu-title {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: var(--site-radius);
  background: #fff;
}

.mobile-menu-title > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mobile-menu-title strong {
  color: #1f2734;
  font-size: 18px;
}

.mobile-menu-title span {
  color: #8b929d;
  font-size: 11px;
}

.mobile-menu-title > button {
  height: 30px;
  padding: 0 12px;
  border: 1px solid #e3e6eb;
  border-radius: 5px;
  background: #fff;
  color: #596270;
  font-size: 11px;
}

.mobile-menu-group {
  margin-top: 10px;
  padding: 12px;
  border-radius: var(--site-radius);
  background: #fff;
}

.mobile-menu-group h2 {
  margin-bottom: 9px;
  color: #1f2734;
  font-size: 14px;
}

.mobile-menu-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-menu-feature-grid > button {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 72px;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid #eceff3;
  border-radius: 6px;
  background: #fafbfc;
  text-align: left;
}

.mobile-menu-feature-grid img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.mobile-menu-feature-grid span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.mobile-menu-feature-grid strong {
  color: #2a3340;
  font-size: 13px;
}

.mobile-menu-feature-grid small {
  overflow: hidden;
  color: #8c939e;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-menu-tool-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.mobile-menu-tool-grid button {
  display: flex;
  min-width: 0;
  min-height: 66px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  color: #3d4653;
}

.mobile-menu-tool-grid button > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: #fff0f1;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
}

.mobile-menu-tool-grid strong {
  overflow: hidden;
  width: 100%;
  font-size: 10px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  :root {
    --site-header-height: 52px;
    --site-radius: 6px;
  }

  html,
  body,
  #app,
  .app-page.site-page {
    background: #f4f6fa;
  }

  .site-header {
    height: 52px;
    padding: 0 10px;
    border-bottom: 0;
    background: #fff;
    box-shadow: 0 1px 5px rgba(31, 39, 52, 0.08);
    backdrop-filter: none;
  }

  .site-header-center {
    min-width: 0;
  }

  .site-header-brand {
    width: 102px;
    height: 38px;
  }

  .site-header-brand img {
    height: 31px;
  }

  .site-header-account {
    min-width: 0;
    gap: 4px;
  }

  .site-balance {
    display: flex;
    min-width: 62px;
    max-width: 84px;
    align-items: flex-end;
    overflow: hidden;
  }

  .site-balance span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: #858c97;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-balance strong {
    font-size: 12px;
  }

  .site-header-link {
    display: inline-flex;
    min-width: 48px;
    height: 29px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-color: var(--red);
    background: var(--red);
    color: #fff;
    font-size: 11px;
  }

  .site-header-link:last-child {
    display: none;
  }

  .site-page:has(.site-main-column > .top-bar) > .site-header,
  .site-page[data-view="profile"] > .site-header {
    display: none;
  }

  .site-page:has(.site-main-column > .top-bar) > .site-main-column,
  .site-page[data-view="profile"] > .site-main-column {
    padding-top: 0;
  }

  .site-main-column > .top-bar {
    position: sticky;
    top: 0;
    height: 43px;
    margin: 0;
    border-bottom: 1px solid #eceef1;
    background: #fff;
  }

  .site-main-column .top-title {
    font-size: 16px;
    font-weight: 700;
  }

  .site-main-column .page-main,
  .site-main-column .page-main.no-bar,
  .site-main-column .page-main.flush {
    min-height: calc(100vh - var(--site-header-height));
    padding: 8px 8px calc(64px + env(safe-area-inset-bottom));
  }

  .site-page:has(.site-main-column > .top-bar) .page-main {
    min-height: calc(100vh - 43px);
    padding-top: 8px;
  }

  #app .site-mobile-nav {
    height: calc(52px + env(safe-area-inset-bottom));
    padding: 0 max(4px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(4px, env(safe-area-inset-left));
    border-top: 0;
    background: #fff;
    box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: none;
  }

  #app .site-mobile-nav .frozen-tabbar-item {
    height: 52px;
    gap: 0;
    padding: 4px 0 3px;
    color: rgba(31, 39, 52, 0.58);
  }

  #app .site-mobile-nav .frozen-tabbar-item.active {
    color: var(--red);
  }

  #app .site-mobile-nav .frozen-tabbar-item.active:not(.is-featured) .frozen-tabbar-icon {
    background: transparent;
  }

  #app .site-mobile-nav .frozen-tabbar-icon,
  #app .site-mobile-nav .frozen-tabbar-item.is-featured .frozen-tabbar-icon {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
  }

  #app .site-mobile-nav .frozen-tabbar-icon img {
    inset: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
  }

  #app .site-mobile-nav .frozen-tabbar-icon b {
    font-size: 15px;
    font-weight: 700;
  }

  #app .site-mobile-nav .frozen-tabbar-label,
  #app .site-mobile-nav .frozen-tabbar-item.is-featured .frozen-tabbar-label {
    margin: 0;
    font-size: 10px;
    font-weight: 500;
    line-height: 15px;
  }

  .site-mobile-announcement {
    height: 34px;
    margin-top: 8px;
    padding: 0 10px;
    border-radius: 4px;
  }

  .site-game-shelves {
    padding-bottom: 2px;
  }

  .site-home-section {
    margin-top: 11px;
  }

  .site-section-head {
    min-height: 28px;
    margin-bottom: 7px;
  }

  .site-section-head h1,
  .site-section-head h2 {
    font-size: 14px;
  }

  .site-game-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .site-game-tile {
    grid-template-rows: auto 38px;
    border: 0;
    border-radius: 5px;
  }

  .site-game-tile > span {
    height: 38px;
    padding: 0 8px;
  }

  .site-game-tile strong {
    font-size: 11px;
  }

  .site-game-tile small {
    font-size: 9px;
  }

  .site-page[data-view="billiards"] .site-page-heading,
  .site-page[data-view="competition"] .site-page-heading,
  .site-page[data-view="pg"] .site-page-heading,
  .site-page[data-view="profile"] .site-page-heading {
    display: none;
  }

  .site-page[data-view="billiards"] .wallet-card,
  .site-page[data-view="competition"] .wallet-card {
    display: none;
  }

  .site-page[data-view="billiards"] .event-tabs,
  .site-page[data-view="competition"] .event-tabs {
    position: sticky;
    z-index: 10;
    top: var(--site-header-height);
    height: 46px;
    margin: -8px -8px 8px;
    padding: 4px 8px;
    border: 0;
    border-radius: 0;
    background: #fff;
  }

  .site-page[data-view="billiards"] .event-tabs button,
  .site-page[data-view="competition"] .event-tabs button {
    height: 38px;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 12px;
  }

  .site-page[data-view="billiards"] .event-tabs button.active,
  .site-page[data-view="competition"] .event-tabs button.active {
    border-bottom: 2px solid var(--red);
    background: transparent;
    color: var(--red);
  }

  .site-page[data-view="pg"] .source-pg-search,
  .site-page[data-view="pg"] .source-pg-tabs {
    margin-right: -8px;
    margin-left: -8px;
    border: 0;
    border-radius: 0;
  }

  .site-page[data-view="pg"] .source-pg-search {
    padding: 8px;
  }

  .site-page[data-view="pg"] .source-pg-tabs {
    padding: 0 8px;
  }

  .site-page[data-view="pg"] .pg-catalog-layout {
    margin-right: -8px;
    margin-left: -8px;
  }

  .site-page[data-view="profile"] .page-main.no-bar {
    padding: 0 8px calc(64px + env(safe-area-inset-bottom));
  }

  .site-page[data-view="profile"] .profile-head {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 94px;
    gap: 10px;
    margin: 0 -8px 8px;
    padding: 15px 12px;
    border: 0;
    border-radius: 0;
  }

  .site-page[data-view="profile"] .profile-avatar-button,
  .site-page[data-view="profile"] .profile-avatar {
    width: 54px;
    height: 54px;
  }

  .site-page[data-view="profile"] .profile-copy.plain-action strong {
    font-size: 16px;
  }

  .site-page[data-view="profile"] .profile-copy.plain-action span {
    margin-top: 3px;
    font-size: 10px;
  }

  .site-page[data-view="profile"] .profile-message-actions {
    display: none;
  }

  .site-page[data-view="profile"] .profile-balance {
    position: relative;
    min-height: 78px;
    margin: 0;
    overflow: hidden;
    border: 0;
    background: #fff;
  }

  .site-page[data-view="profile"] .profile-balance::before {
    position: absolute;
    inset: 0;
    background: url("/assets/v9-mobile/wallet-header.png") center / cover no-repeat;
    content: "";
    opacity: 0.15;
    pointer-events: none;
  }

  .profile-balance-copy,
  .profile-balance-actions {
    position: relative;
    z-index: 1;
  }

  .site-page[data-view="profile"] .profile-balance strong {
    font-size: 18px;
  }

  .profile-balance-actions button {
    min-width: 53px;
    height: 30px;
    padding: 0 10px;
    font-size: 11px;
  }

  .member-quick-grid {
    margin-top: 8px;
    padding: 5px 2px;
    border: 0;
  }

  .member-quick-grid button {
    min-height: 69px;
    border-right: 0;
    font-size: 11px;
  }

  .member-quick-grid img {
    width: 39px;
    height: 39px;
  }

  .member-menu-list {
    grid-template-columns: 1fr;
    margin-top: 8px;
    border: 0;
  }

  .member-menu-list > button {
    height: 47px;
    padding: 0 12px;
  }

  .member-menu-list > button:nth-child(odd) {
    border-right: 0;
  }

  .member-menu-list strong {
    font-size: 12px;
  }

  .mobile-menu-title {
    min-height: 62px;
    margin: 0 -8px;
    padding: 10px 12px;
    border-radius: 0;
  }

  .mobile-menu-title strong {
    font-size: 16px;
  }

  .mobile-menu-groups {
    padding-top: 1px;
  }

  .mobile-menu-group {
    margin-top: 8px;
    padding: 10px;
  }

  .mobile-menu-feature-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .mobile-menu-feature-grid > button {
    min-height: 66px;
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }

  .mobile-menu-feature-grid img {
    width: 48px;
    height: 48px;
  }

  .mobile-menu-tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 6px;
  }

  .mobile-menu-tool-grid button {
    min-height: 62px;
  }

  .service-panel {
    padding: 14px;
    border-radius: 6px;
  }

  .site-page[data-view="messages"] .site-page-heading {
    display: none;
  }

  .site-page[data-view="messages"] .site-content-section {
    margin-top: 8px;
  }

  .site-page[data-view="chat"] .chat-page {
    min-height: calc(100vh - 59px);
  }
}

/* Order and account data pages: use the same restrained red/gray system as home. */
.account-period-tabs {
  gap: 4px;
  min-height: 44px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--site-radius);
  background: #fff;
}

.account-period-tabs button {
  min-height: 34px;
  border-radius: 4px;
  color: #6f7784;
  font-size: 12px;
  font-weight: 650;
}

.account-period-tabs button.active {
  background: #fff0f1;
  color: var(--red);
  font-weight: 750;
}

.account-period-tabs button.active::after {
  display: none;
}

.account-overview {
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--site-radius);
  background: #fff;
}

.account-overview-head {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 13px;
  border-bottom: 1px solid var(--line);
}

.account-overview-head > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.account-overview-head > div::before {
  width: 3px;
  height: 17px;
  flex: 0 0 3px;
  border-radius: 2px;
  background: var(--red);
  content: "";
}

.account-overview-head span {
  color: var(--type-strong);
  font-size: 14px;
  font-weight: 750;
}

.account-overview-head strong {
  padding-left: 8px;
  border-left: 1px solid var(--line);
  color: var(--type-muted);
  font-size: 11px;
  font-weight: 600;
}

.account-overview-head > b,
.account-section-head > span {
  display: inline-grid;
  min-width: 42px;
  height: 24px;
  place-items: center;
  padding: 0 8px;
  border-radius: 4px;
  background: #fff0f1;
  color: var(--red);
  font-size: 10px;
  font-weight: 750;
}

.stats-grid.account-metrics,
.report-grid.account-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background: var(--line);
}

.account-metrics .account-metric {
  min-height: 82px;
  padding: 15px 13px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.account-metric span {
  color: #7c8593;
  font-size: 11px;
  font-weight: 600;
}

.account-metric strong {
  margin-top: 7px;
  color: #202836;
  font-size: 21px;
  font-weight: 750;
  line-height: 27px;
}

.account-metric strong.positive {
  color: #18845b;
}

.account-metric strong.negative {
  color: var(--red);
}

.account-records {
  margin-top: 14px;
}

.account-section-head {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}

.account-section-head > div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 8px;
}

.account-section-head strong {
  color: var(--type-strong);
  font-size: 15px;
  font-weight: 750;
}

.account-section-head small {
  color: var(--type-muted);
  font-size: 10px;
}

.site-page[data-view="bet-info"] .record-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--site-radius);
  background: #fff;
}

.site-page[data-view="bet-info"] .record-row {
  min-height: 72px;
}

.site-page[data-view="bet-info"] .account-records > .empty-state,
.site-page[data-view="bet-details"] .bet-detail-empty {
  display: grid;
  min-height: 190px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--site-radius);
  background: #fff;
}

.site-page[data-view="bet-details"] .bet-detail-empty .empty-state {
  min-height: 188px;
}

.site-page[data-view="bet-details"] .bet-detail-card {
  border-color: var(--line);
  border-radius: var(--site-radius);
  box-shadow: none;
}

.bet-detail-event > span,
.bet-detail-event p b,
.match-list-teams b,
.account-type.active span:last-child {
  color: var(--red);
}

.row-icon {
  background: #fff0f1;
  color: var(--red);
}

.match-result-header::before {
  background: var(--red);
}

.match-result-score b {
  background: #fff0f1;
  color: var(--red);
}

[data-view="profile"] .profile-balance .helper-text {
  color: var(--type-muted);
}

@media (min-width: 761px) {
  .stats-grid.account-metrics,
  .report-grid.account-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .account-period-tabs {
    max-width: 520px;
  }

  .account-overview-head {
    padding-right: 18px;
    padding-left: 18px;
  }

  .account-metrics .account-metric {
    min-height: 92px;
    padding: 18px;
  }
}

@media (max-width: 760px) {
  .site-page[data-view="bet-info"] .site-page-heading,
  .site-page[data-view="bet-details"] .site-page-heading,
  .site-page[data-view="report"] .site-page-heading {
    display: none;
  }

  .site-page[data-view="bet-info"] .page-main,
  .site-page[data-view="bet-details"] .page-main,
  .site-page[data-view="report"] .page-main {
    padding-right: 8px;
    padding-left: 8px;
  }

  .account-period-tabs {
    width: 100%;
  }
}

.site-initial-loader {
  display: grid;
  width: 100%;
  min-height: 100dvh;
  place-items: center;
  background: #f7f8fa;
}

.site-initial-loader > span {
  width: 28px;
  height: 28px;
  border: 3px solid #e3e6eb;
  border-top-color: var(--red);
  border-radius: 50%;
  animation: site-initial-loader-spin 700ms linear infinite;
}

@keyframes site-initial-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-initial-loader > span {
    animation-duration: 1400ms;
  }
}

/* Home-aligned visual system for member, sports, games, and service routes. */
.site-page:not([data-view="home"]) .page-main:not(.flush) {
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
}

.site-page-heading {
  display: flex;
  min-height: 46px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.site-page-heading > div {
  min-width: 0;
}

.site-page-heading small {
  display: block;
  margin-bottom: 2px;
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  line-height: 14px;
}

.site-page-heading h1 {
  color: #1f2734;
  font-size: 22px;
  font-weight: 850;
  line-height: 28px;
}

.site-heading-action {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 5px;
  padding: 0 2px 0 12px;
  background: transparent;
  color: #737c89;
  font-size: 12px;
  font-weight: 700;
}

.site-heading-action span {
  color: var(--red);
  font-size: 18px;
}

.site-content-section {
  margin-top: 16px;
}

.site-page:not([data-view="home"]) .section-title {
  min-height: 30px;
  margin: 14px 0 8px;
  color: #1f2734;
  font-size: 15px;
}

.site-page:not([data-view="home"]) .section-title::before,
.details-section-title > span,
.match-result-header::before {
  background: var(--red);
}

.site-page .wallet-card {
  width: 100%;
  min-height: 72px;
  margin-bottom: 10px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--site-radius);
  background: #fff;
  box-shadow: none;
}

.site-page .wallet-card strong {
  color: #1f2734;
}

.site-page .wallet-card span {
  color: #8a919c;
}

/* Member center */
.site-page[data-view="profile"] .profile-head {
  height: auto;
  min-height: 100px;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: var(--site-radius);
  background: #fff;
}

.site-page[data-view="profile"] .profile-avatar-button,
.site-page[data-view="profile"] .profile-avatar {
  width: 58px;
  height: 58px;
}

.site-page[data-view="profile"] .avatar-edit-mark {
  width: 19px;
  height: 19px;
  background: var(--red);
  font-size: 15px;
}

.site-page[data-view="profile"] .profile-copy.plain-action {
  min-width: 0;
  flex: 1;
  margin-left: 0;
}

.site-page[data-view="profile"] .profile-copy.plain-action strong {
  overflow: hidden;
  color: #1f2734;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-page[data-view="profile"] .profile-copy.plain-action span {
  color: #8a919c;
}

.site-page[data-view="profile"] .profile-message-actions {
  gap: 7px;
}

.site-page[data-view="profile"] .profile-message-actions button {
  display: grid;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 7px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e8ebf0;
  border-radius: 7px;
  background: #f7f8fa;
}

.site-page[data-view="profile"] .profile-message-actions img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-page[data-view="profile"] .profile-balance {
  display: flex;
  width: 100%;
  height: auto;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #f3d8db;
  border-radius: var(--site-radius);
  background: #fff7f8;
}

.profile-balance-copy {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.site-page[data-view="profile"] .profile-wallet {
  width: 42px;
  height: 42px;
  flex: none;
}

.site-page[data-view="profile"] .profile-balance strong {
  color: #1f2734;
  font-size: 18px;
}

.site-page[data-view="profile"] .profile-balance .helper-text {
  color: #8a919c;
}

.profile-balance-actions {
  display: flex;
  flex: none;
  gap: 7px;
}

.profile-balance-actions button {
  min-width: 66px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--red);
  border-radius: 5px;
  background: #fff;
  color: var(--red);
  font-size: 12px;
  font-weight: 750;
}

.profile-balance-actions button:first-child {
  background: var(--red);
  color: #fff;
}

.site-page[data-view="profile"] .menu-grid {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--site-radius);
  background: #fff;
}

.site-page[data-view="profile"] .feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 0;
  padding: 7px;
}

.site-page[data-view="profile"] .feature-grid .feature-menu {
  width: 100%;
  min-height: 72px;
  margin: 0;
  padding: 8px 6px !important;
  gap: 6px;
  border-radius: 5px;
  color: #363f4c;
  font-size: 11px;
}

.site-page[data-view="profile"] .feature-grid .feature-menu + .feature-menu {
  border-left: 1px solid #eff1f4;
}

.site-page[data-view="profile"] .feature-grid .feature-menu img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.site-page[data-view="profile"] .menu-grid:not(.feature-grid) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 16px;
  padding: 7px;
}

.site-page[data-view="profile"] .menu-grid:not(.feature-grid) .menu-item {
  width: 100%;
  min-height: 62px;
  flex-direction: row;
  justify-content: flex-start;
  gap: 9px;
  margin: 0;
  padding: 8px 10px;
  color: #363f4c;
  font-size: 11px;
  text-align: left;
}

.site-page[data-view="profile"] .menu-icon-image {
  width: 32px;
  height: 32px;
  flex: none;
}

/* Sports routes */
.site-page[data-view="billiards"] .event-tabs,
.site-page[data-view="competition"] .event-tabs {
  display: grid;
  width: 100%;
  height: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 10px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--site-radius);
  background: #fff;
}

.site-page[data-view="billiards"] .event-tabs button,
.site-page[data-view="competition"] .event-tabs button {
  display: flex;
  min-width: 0;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #727b88;
  font-size: 12px;
}

.site-page[data-view="billiards"] .event-tabs button.active,
.site-page[data-view="competition"] .event-tabs button.active {
  border: 0;
  background: var(--red);
  color: #fff;
}

.site-page[data-view="billiards"] .event-tabs button.active small,
.site-page[data-view="competition"] .event-tabs button.active small {
  color: rgba(255, 255, 255, 0.78);
}

.site-page[data-view="billiards"] .event-tabs img {
  display: none;
}

.site-page .source-billiards-scroll {
  width: 100%;
  height: auto;
  min-height: 300px;
  overflow: visible;
}

.site-page .source-billiards-scroll > .empty-state {
  min-height: 280px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--site-radius);
  background: #fff;
}

.site-page .match-list,
.site-page .match-result-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.site-page[data-view="billiards"] .match-list-row,
.site-page[data-view="competition"] .match-list-row {
  min-height: 78px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--site-radius);
  background: #fff;
  box-shadow: none;
}

.site-page .match-list-teams b,
.site-page .match-result-score b {
  color: var(--red);
}

.site-page .match-result-score b {
  background: #fff0f1;
}

.competition-reload {
  width: 100%;
  min-height: 40px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: #7b8491;
}

/* Service center and chat */
.service-panel {
  display: flex;
  width: 100%;
  min-height: 94px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--site-radius);
  background: #fff;
}

.service-profile {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.service-profile > img {
  width: 48px;
  height: 48px;
  flex: none;
  padding: 9px;
  border-radius: 7px;
  background: #fff0f1;
  object-fit: contain;
}

.service-profile > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.service-profile small {
  color: #9097a1;
  font-size: 10px;
}

.service-profile strong {
  margin-top: 2px;
  color: #1f2734;
  font-size: 15px;
}

.service-profile b {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  color: #11875d;
  font-size: 10px;
}

.service-profile b i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #14a36f;
}

.service-panel > .primary-button {
  width: 108px;
  min-height: 38px;
  flex: none;
}

.site-page[data-view="messages"] .message-list {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--site-radius);
  box-shadow: none;
}

.site-page[data-view="messages"] .message-list-row {
  min-height: 66px;
  padding: 12px 14px;
}

.site-page[data-view="messages"] .guest-message-panel {
  display: flex;
  width: 100%;
  height: auto;
  min-height: 150px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--site-radius);
  background: #fff;
  color: #697281;
}

.site-page[data-view="messages"] .guest-message-panel .primary-button {
  width: 112px;
  min-height: 38px;
}

.site-page[data-view="chat"] .page-main {
  height: calc(100dvh - var(--site-header-height) - 48px);
  min-height: 480px;
  padding-top: 10px;
  padding-bottom: 14px;
}

.site-page[data-view="chat"] .chat-page {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  background: transparent;
}

.site-page[data-view="chat"] .chat-log {
  min-height: 0;
  padding: 14px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--site-radius);
  background: #fff;
}

.site-page[data-view="chat"] .chat-bubble {
  border-radius: 3px 7px 7px;
  background: #f2f4f7;
}

.site-page[data-view="chat"] .chat-bubble.me {
  border-radius: 7px 3px 7px 7px;
  background: #fff0f1;
  color: #822029;
}

.site-page[data-view="chat"] .chat-input {
  position: static;
  display: grid;
  min-height: 66px;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--site-radius);
  background: #fff;
}

.site-page[data-view="chat"] .chat-compose {
  min-width: 0;
  margin: 0;
  border: 0;
  background: transparent;
}

.site-page[data-view="chat"] .chat-compose textarea {
  width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 12px;
  border: 1px solid #dfe3e8;
  border-radius: 5px;
  background: #f7f8fa;
  resize: none;
}

.site-page[data-view="chat"] .chat-send {
  min-height: 48px;
  border-radius: 5px;
}

/* Game catalog */
.site-page[data-view="pg"] {
  height: auto;
  min-height: 100vh;
  overflow: visible;
}

.site-page[data-view="pg"] .page-main {
  height: calc(100dvh - var(--site-header-height));
  min-height: 560px;
  padding-bottom: 14px;
}

.site-page[data-view="pg"] .source-pg-search,
.site-page[data-view="pg"] .source-pg-tabs,
.site-page[data-view="pg"] .pg-catalog-warning,
.site-page[data-view="pg"] .pg-catalog-layout {
  width: 100%;
}

.site-page[data-view="pg"] .pg-catalog-panel {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--site-radius);
  background: #fff;
}

.site-page[data-view="pg"] .source-pg-search {
  height: 46px;
  padding: 3px 4px 3px 10px;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.site-page[data-view="pg"] .source-pg-content {
  border: 0;
  background: #f7f8fa;
}

.site-page[data-view="pg"] .source-pg-tabs {
  height: 42px;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.site-page[data-view="pg"] .source-pg-tabs button {
  height: 40px;
}

.site-page[data-view="pg"] .source-pg-tabs button.active::after {
  background: var(--red);
}

.site-page[data-view="pg"] .pg-catalog-layout {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  background: #fff;
}

@media (max-width: 760px) {
  .site-page[data-view="pg"] .pg-catalog-panel .source-pg-search,
  .site-page[data-view="pg"] .pg-catalog-panel .source-pg-tabs,
  .site-page[data-view="pg"] .pg-catalog-panel .pg-catalog-layout {
    margin-right: 0;
    margin-left: 0;
  }
}

.site-page[data-view="pg"] .pg-vendor-sidebar {
  background: #f7f8fa;
}

.site-page[data-view="pg"] .pg-vendor-sidebar button.active {
  background: #fff;
  color: var(--red);
}

.site-page[data-view="pg"] .pg-vendor-sidebar button.active::before {
  background: var(--red);
}

.site-page[data-view="pg"] .pg-vendor-sidebar button.active small {
  color: #c96f76;
}

.site-page[data-view="pg"] .pg-game-grid {
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 12px;
  padding: 12px;
}

.site-page[data-view="pg"] .pg-game-cover {
  border-radius: var(--site-radius);
}

/* Remove legacy fixed-width content on all standard routes. */
.site-page .source-history-empty,
.site-page .source-history-space,
.site-page .source-system-scroll,
.site-page .source-square-stage,
.site-page .source-welfare-empty,
.site-page .source-channel-card,
.site-page .source-field-card {
  width: 100%;
  max-width: none;
}

.site-page .source-history-space {
  display: none;
}

.site-page .source-system-scroll {
  height: auto;
  min-height: 300px;
  overflow: visible;
}

@media (max-width: 760px) {
  .site-page-heading {
    min-height: 42px;
    margin-bottom: 10px;
  }

  .site-page-heading h1 {
    font-size: 19px;
    line-height: 25px;
  }

  .site-page[data-view="profile"] .profile-head {
    min-height: 92px;
    padding: 14px;
  }

  .site-page[data-view="profile"] .profile-message-actions {
    gap: 5px;
  }

  .site-page[data-view="profile"] .profile-message-actions button {
    width: 34px;
    height: 34px;
    padding: 6px;
  }

  .site-page[data-view="profile"] .profile-balance {
    align-items: center;
    padding: 11px 12px;
  }

  .profile-balance-actions button {
    min-width: 54px;
    padding: 0 10px;
  }

  .site-page[data-view="profile"] .menu-grid:not(.feature-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-page .match-list,
  .site-page .match-result-list {
    grid-template-columns: 1fr;
  }

  .site-page .source-billiards-scroll > .empty-state {
    min-height: 240px;
  }

  .service-panel {
    min-height: 86px;
    gap: 10px;
    padding: 13px;
  }

  .service-profile > img {
    width: 42px;
    height: 42px;
    padding: 8px;
  }

  .service-panel > .primary-button {
    width: 92px;
    min-height: 36px;
  }

  .site-page[data-view="chat"] .page-main {
    height: calc(100dvh - var(--site-header-height) - 48px);
    min-height: 0;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  }

  .site-page[data-view="pg"] .page-main {
    height: calc(100dvh - var(--site-header-height));
    min-height: 0;
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }

  .site-page[data-view="pg"] .pg-catalog-layout {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .site-page[data-view="pg"] .pg-game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 8px;
    padding: 9px 8px 18px;
  }
}

@media (max-width: 390px) {
  .site-page[data-view="profile"] .profile-avatar-button,
  .site-page[data-view="profile"] .profile-avatar {
    width: 52px;
    height: 52px;
  }

  .site-page[data-view="profile"] .profile-copy.plain-action strong {
    font-size: 15px;
  }

  .site-page[data-view="profile"] .profile-message-actions button:last-child {
    display: none;
  }

  .profile-balance-actions {
    gap: 5px;
  }

  .profile-balance-actions button {
    min-width: 48px;
    height: 32px;
    padding: 0 8px;
  }

  .service-panel > .primary-button {
    width: 86px;
  }
}

@media (min-width: 451px) {
  #app,
  .frozen-tabbar {
    width: min(480px, 56.2219vh);
  }
}

@media (prefers-reduced-motion: reduce) {
  .frozen-home-banner .banner-link,
  .frozen-banner-dots button,
  .frozen-category-selected,
  .frozen-category-icon,
  .frozen-game-card,
  .frozen-tabbar-icon img {
    transition: none;
  }
}

/* Home-only layout: top triad, full-width primary games, then a two-column grid. */
#app:has([data-view="home"]) {
  width: min(100%, 480px);
}

#app [data-view="home"] .page-main.no-bar {
  padding: calc(14px + env(safe-area-inset-top)) 14px calc(83px + env(safe-area-inset-bottom));
}

[data-view="home"] .frozen-home-header {
  position: relative;
  display: grid;
  box-sizing: border-box;
  height: 60px;
  grid-template-columns: clamp(84px, 25vw, 118px) minmax(60px, 1fr) minmax(112px, 146px);
  align-items: center;
  gap: 0;
  padding: 3px;
  overflow: hidden;
  background: var(--ice-panel-surface);
  border: 1px solid rgba(88, 164, 216, 0.24);
  border-radius: 8px;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.98),
    inset 0 -1px rgba(88, 184, 241, 0.14),
    0 6px 18px rgba(43, 112, 160, 0.13);
}

[data-view="home"] .frozen-home-header::after {
  position: absolute;
  top: 0;
  right: 14px;
  left: 14px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.98), transparent);
  pointer-events: none;
}

[data-view="home"] .frozen-home-brand-cell {
  display: flex;
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  overflow: hidden;
  background: transparent;
  border-radius: 6px;
  transition: background-color 0.16s ease, transform 0.16s ease;
}

[data-view="home"] .frozen-home-brand-logo {
  display: block;
  width: calc(100% - 8px);
  max-height: 42px;
  height: auto;
  object-fit: contain;
}

[data-view="home"] .frozen-site-label {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  color: var(--ice-navy);
  font-size: 11px;
  font-weight: 800;
  line-height: 13px;
  letter-spacing: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
}

[data-view="home"] .frozen-home-header > .frozen-hub-notice {
  position: relative;
  height: 52px;
  min-width: 0;
  padding: 4px 6px 4px 8px;
  gap: 6px;
  overflow: hidden;
  color: var(--ice-copy);
  background: transparent;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  transition: background-color 0.16s ease;
}

[data-view="home"] .frozen-home-header > .frozen-hub-notice::before,
[data-view="home"] .frozen-home-account-cell::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 1px;
  content: "";
  background: linear-gradient(transparent, rgba(78, 113, 150, 0.18), transparent);
  pointer-events: none;
}

[data-view="home"] .frozen-home-header > .frozen-hub-notice > img {
  box-sizing: border-box;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(83, 170, 229, 0.2);
  border-radius: 50%;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.95), 0 2px 6px rgba(48, 129, 186, 0.1);
}

[data-view="home"] .frozen-notice-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  overflow: hidden;
  text-align: left;
}

[data-view="home"] .frozen-notice-copy em {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: clip;
}

[data-view="home"] .frozen-notice-copy em {
  color: var(--ice-copy);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 16px;
}

[data-view="home"] .frozen-notice-copy em > span {
  display: inline-block;
  min-width: max-content;
  padding-left: 100%;
  animation: frozen-notice-marquee 12s linear infinite;
  will-change: transform;
}

@keyframes frozen-notice-marquee {
  to {
    transform: translateX(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-view="home"] .frozen-notice-copy em > span {
    max-width: 100%;
    padding-left: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: none;
    transform: none;
  }
}

[data-view="home"] .frozen-home-header > .frozen-hub-notice > b {
  display: block;
  flex: 0 0 8px;
  width: 8px;
  height: auto;
  color: #4a9ed7;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

[data-view="home"] .frozen-home-account-cell {
  position: relative;
  display: grid;
  height: 52px;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 35px;
  align-items: center;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
}

[data-view="home"] .frozen-home-account-cell .frozen-hub-account {
  height: 52px;
  padding: 6px 3px 6px 7px !important;
  gap: 2px;
  background: transparent;
  border: 0;
  border-radius: 6px 0 0 6px;
  box-shadow: none;
  transition: background-color 0.16s ease;
}

[data-view="home"] .frozen-home-account-cell .frozen-hub-account strong {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--ice-navy);
  font-size: 12px;
  font-weight: 800;
  line-height: 15px;
}

[data-view="home"] .frozen-home-account-cell .frozen-hub-account strong::before {
  flex: 0 0 4px;
  width: 4px;
  height: 4px;
  content: "";
  background: var(--ice-blue);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(23, 156, 255, 0.12);
}

[data-view="home"] .frozen-home-account-cell .frozen-hub-account > span {
  gap: 3px;
  color: var(--ice-blue);
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
}

[data-view="home"] .frozen-home-account-cell .frozen-hub-account.is-guest {
  height: 52px;
  margin-left: 0;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  padding: 6px 3px 6px 9px !important;
  background: transparent;
  border: 0;
  border-radius: 6px 0 0 6px;
  box-shadow: none;
  transition: background-color 0.16s ease, transform 0.16s ease;
}

[data-view="home"] .frozen-home-account-cell .frozen-hub-account.is-guest strong {
  color: var(--ice-copy);
  font-size: 11px;
  font-weight: 600;
  line-height: 15px;
}

[data-view="home"] .frozen-home-account-cell .frozen-hub-account.is-guest > span {
  gap: 4px;
  color: var(--ice-blue);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}

[data-view="home"] .frozen-home-account-cell .frozen-hub-account.is-guest b {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  margin-left: 0;
  color: #4a9ed7;
  font-size: 14px;
  line-height: 1;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

[data-view="home"] .frozen-home-account-cell .frozen-hub-account b {
  font-size: 14px;
}

[data-view="home"] .frozen-home-account-cell .frozen-message-button {
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  justify-self: center;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(83, 170, 229, 0.2);
  border-radius: 50%;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.96), 0 2px 6px rgba(48, 129, 186, 0.1);
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

[data-view="home"] .frozen-home-account-cell .frozen-message-button img {
  width: 20px;
  height: 20px;
}

[data-view="home"] .frozen-home-brand-cell:active,
[data-view="home"] .frozen-home-header > .frozen-hub-notice:active {
  background: rgba(128, 200, 255, 0.16);
}

[data-view="home"] .frozen-home-account-cell .frozen-hub-account:active,
[data-view="home"] .frozen-home-account-cell .frozen-message-button:active {
  transform: scale(0.96);
}

@media (hover: hover) and (pointer: fine) {
  [data-view="home"] .frozen-home-brand-cell:hover,
  [data-view="home"] .frozen-home-header > .frozen-hub-notice:hover {
    background: rgba(128, 200, 255, 0.11);
  }

  [data-view="home"] .frozen-home-account-cell .frozen-hub-account.is-member:hover {
    background: rgba(128, 200, 255, 0.11);
  }

  [data-view="home"] .frozen-home-account-cell .frozen-hub-account.is-guest:hover {
    background: rgba(128, 200, 255, 0.11);
  }

  [data-view="home"] .frozen-home-account-cell .frozen-message-button:hover {
    background: rgba(224, 244, 255, 0.9);
    border-color: rgba(23, 156, 255, 0.32);
  }
}

[data-view="home"] .frozen-home-brand-cell:focus-visible,
[data-view="home"] .frozen-home-header > .frozen-hub-notice:focus-visible,
[data-view="home"] .frozen-home-account-cell .frozen-hub-account:focus-visible,
[data-view="home"] .frozen-home-account-cell .frozen-message-button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid #1679c9;
  outline-offset: -2px;
}

[data-view="home"] .frozen-home-banner {
  height: auto;
  margin-top: 12px;
  aspect-ratio: 1372 / 560;
}

[data-view="home"] .frozen-home-banner .banner-link {
  padding: 0;
}

[data-view="home"] .frozen-banner-dots {
  bottom: 8px;
}

[data-view="home"] .frozen-account-hub {
  width: 100%;
  height: 96px;
  min-height: 96px;
  margin: 12px 0 0;
}

[data-view="home"] .frozen-hub-main {
  display: block;
  height: 100%;
  min-height: 0;
}

[data-view="home"] .frozen-hub-actions {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 3px 0;
}

[data-view="home"] .frozen-game-layout {
  display: block;
  margin-top: 12px;
  padding: 0;
}

[data-view="home"] .frozen-game-stage {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  overflow: visible;
}

[data-view="home"] .frozen-game-category {
  display: contents;
}

[data-view="home"] .frozen-game-card {
  width: 100%;
  height: 104px;
  margin: 0;
  aspect-ratio: auto;
}

/* Keep two-column covers fully visible instead of cropping their wide artwork. */
[data-view="home"] #game-section-sports .frozen-game-card:not(:first-child),
[data-view="home"] #game-section-battle .frozen-game-card,
[data-view="home"] #game-section-pg .frozen-game-card {
  background: #fff;
}

[data-view="home"] #game-section-sports .frozen-game-card:not(:first-child) .frozen-game-cover,
[data-view="home"] #game-section-battle .frozen-game-cover,
[data-view="home"] #game-section-pg .frozen-game-cover {
  object-fit: contain;
}

[data-view="home"] #game-section-billiards .frozen-game-card,
[data-view="home"] #game-section-sports .frozen-game-card:first-child {
  grid-column: 1 / -1;
}

[data-view="home"] .frozen-tabbar {
  width: min(100%, 480px);
}

/* Source-aligned layout and guest-state overrides. */
.bottom-nav {
  width: min(100%, 450px);
}

[data-view="home"] .page-main.no-bar {
  padding-top: 0;
}

.brand-bar {
  position: relative;
  height: 50px;
  padding: 0 20px 0 0;
  overflow: visible;
}

.brand-logo-button {
  width: 100px;
  height: 50px;
  overflow: visible;
}

.brand-logo {
  width: 100px;
  height: 100px;
  max-width: none;
}

.brand-actions {
  gap: 20px;
}

.brand-action {
  width: 25px;
  height: 30px;
}

.brand-action img {
  width: 25px;
  height: 25px;
}

.home-banner,
.banner-track,
.banner-link {
  width: 100%;
  height: 150px;
}

.banner-track {
  position: relative;
}

.banner-link {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.banner-link.active {
  visibility: visible;
  opacity: 1;
}

.home-banner .dots {
  bottom: 7px;
  gap: 5px;
}

.home-banner .dots button,
.home-banner .dots button.active {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.36);
  box-shadow: none;
}

.home-banner .dots button.active {
  background: #000;
}

.notice-row {
  margin: 5px 0;
  color: #000;
}

.notice-row strong {
  color: #000;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 17px;
}

.account-strip {
  height: 45px;
  min-height: 45px;
  margin-bottom: 5px;
  padding: 4px 10px;
}

.account-strip > .plain-action {
  padding: 0;
  color: #252525;
  text-align: left;
}

.balance-line,
.profile-balance strong,
.wallet-card strong {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inline-reload {
  width: 18px;
  height: 18px;
  cursor: pointer;
  object-fit: contain;
}

.inline-reload.refreshing {
  animation: balance-refresh-spin 0.7s linear infinite;
}

@keyframes balance-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

.category-layout {
  grid-template-columns: 72px minmax(0, 1fr);
  height: 353px;
  min-height: 353px;
  overflow: hidden;
}

.category-tabs {
  width: 72px;
  padding: 2px 10px 0 2px;
}

.category-tab img {
  width: 30px;
  height: 40px;
  padding-top: 10px;
}

.category-tab.active img {
  width: 45px;
  height: 45px;
  padding-top: 0;
}

.game-stage {
  height: 353px;
  padding-left: 5px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.game-stage::-webkit-scrollbar {
  display: none;
}

.game-category {
  scroll-margin-top: 0;
}

.game-category:last-child {
  min-height: 353px;
}

.game-card {
  width: 310px;
  max-width: 100%;
  height: 118px;
  margin-bottom: 15px;
}

.auth-page .form-stack:first-child {
  margin-top: 25px;
}

.profile-head {
  min-height: 80px;
  height: 80px;
  margin: 0 0 10px;
  padding: 15px 0 0;
  align-items: flex-start;
  gap: 0;
  background: transparent;
}

.profile-avatar-button {
  display: block;
  position: relative;
  width: 65px;
  height: 65px;
  flex: none;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  overflow: visible;
}

.profile-avatar-control,
.settings-avatar-control {
  position: relative;
  flex: none;
}

.avatar-file-input {
  display: none;
}

.avatar-edit-mark {
  position: absolute;
  right: -1px;
  bottom: -1px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #2485dd;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.avatar-trigger.is-uploading::after {
  position: absolute;
  inset: 7px;
  border: 3px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  background: rgba(20, 34, 48, 0.38);
  content: "";
  animation: avatar-upload-spin 0.75s linear infinite;
}

@keyframes avatar-upload-spin {
  to { transform: rotate(360deg); }
}

.profile-avatar {
  width: 65px;
  height: 65px;
}

.profile-copy.plain-action {
  flex: none;
  margin-left: 10px;
  padding-left: 0;
  color: #252525;
  text-align: left;
}

.profile-copy.plain-action strong {
  width: auto;
  font-size: 18px;
  line-height: 25px;
}

.profile-message-actions {
  display: flex;
  gap: 0;
  align-items: center;
  margin-left: auto;
}

.profile-message-actions button {
  width: auto;
  height: 30px;
  margin-right: 20px;
  padding: 0;
  background: transparent;
}

.profile-message-actions img {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.profile-balance {
  height: 60px;
  min-height: 60px;
  padding: 8px 10px;
}

.profile-balance strong {
  display: flex;
  align-items: center;
  width: auto;
  height: 25px;
  color: #000;
  font-size: 18px;
  line-height: 25px;
}

.profile-balance .helper-text {
  color: #000;
  font-size: 12px;
  line-height: 16.5px;
}

.profile-balance .inline-reload {
  margin-left: 10px;
}

.profile-wallet {
  width: 45px;
  height: 45px;
}

.feature-grid {
  display: flex;
  justify-content: space-between;
  padding: 7.5px;
  border-radius: 15px;
  margin-bottom: 10px;
}

.feature-grid .feature-menu {
  width: auto;
  min-height: 0;
  padding: 0;
  gap: 0;
  color: #252525;
  font-size: 12px;
  font-weight: 500;
  line-height: 16.5px;
}

.feature-grid .feature-menu:first-child {
  padding-left: 15px;
}

.feature-grid .feature-menu:last-child {
  padding-right: 15px;
}

.menu-grid:not(.feature-grid) {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  margin-bottom: 150px;
  border-radius: 15px;
}

.menu-grid:not(.feature-grid) .menu-item {
  width: 21%;
  min-height: 0;
  margin: 6.5px;
  padding: 0;
  justify-content: flex-start;
  gap: 5.5px;
  color: #252525;
  font-size: 11px;
  font-weight: 500;
  line-height: 15px;
}

.menu-icon-image {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.help-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  color: #252525;
}

.help-contact span,
.help-contact span button {
  display: flex;
  align-items: center;
}

.help-contact > button {
  flex: none;
  background: transparent;
  color: #252525;
  text-decoration: underline;
}

.help-contact span button {
  width: 22px;
  height: 22px;
  margin-left: 3px;
  padding: 2px;
  background: transparent;
}

.help-contact img {
  width: 100%;
  height: 100%;
}

.empty-image {
  width: 160px;
  height: 120px;
}

[data-view="billiards-info"] .page-main {
  padding: 12px 10px 42px;
  background: #f2f4f7;
}

.match-head-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(32, 35, 40, 0.1);
  color: #202328;
}

.match-head-card::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  content: "";
  height: 3px;
  background: #d4aa7d;
}

.match-head-top {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 15px 0;
  border-bottom: 1px solid #eceef0;
}

.match-league {
  min-width: 0;
  overflow: hidden;
  color: #202328;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-status {
  display: inline-flex;
  min-height: 24px;
  flex: none;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid #e0e3e7;
  border-radius: 12px;
  background: #f5f6f7;
  color: #5f656d;
  font-size: 11px;
  font-weight: 600;
}

.match-status i,
.match-head-actions p i {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: #e1b68a;
  box-shadow: 0 0 0 3px rgba(225, 182, 138, 0.12);
}

.match-head-live .match-status i,
.match-head-live .match-head-actions p i {
  background: #42c59a;
  box-shadow: 0 0 0 3px rgba(66, 197, 154, 0.13);
}

.match-contest {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr);
  min-height: 144px;
  align-items: center;
  padding: 18px 12px 16px;
}

.match-team {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-mark {
  display: block;
  width: 72px;
  height: 28px;
  background: transparent;
  object-fit: contain;
}

.match-team strong {
  display: -webkit-box;
  min-height: 40px;
  overflow: hidden;
  margin-top: 9px;
  color: #202328;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.match-team small {
  margin-top: 2px;
  color: #8f949c;
  font-size: 10px;
}

.match-versus {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.match-versus > small {
  max-width: 88px;
  overflow: hidden;
  color: #d3b28f;
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-versus > strong {
  display: flex;
  min-height: 45px;
  align-items: center;
  gap: 6px;
  color: #202328;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.match-versus > strong span {
  color: #d2aa80;
  font-size: 20px;
}

.match-versus > span {
  display: flex;
  flex-direction: column;
  color: #868b93;
  font-size: 9px;
  line-height: 16px;
}

.match-versus > span b {
  color: #4d535b;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.match-head-actions {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-top: 1px solid #eceef0;
  background: #fafafa;
}

.match-record-button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: #34383e;
  font-size: 12px;
  font-weight: 600;
}

.match-record-button > span {
  position: relative;
  width: 14px;
  height: 16px;
  border: 1px solid #cda77e;
  border-radius: 2px;
}

.match-record-button > span::before,
.match-record-button > span::after {
  position: absolute;
  left: 3px;
  content: "";
  width: 6px;
  height: 1px;
  background: #cda77e;
  box-shadow: 0 4px #cda77e;
}

.match-record-button > span::before {
  top: 4px;
}

.match-head-actions p {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #737981;
  font-size: 11px;
}

[data-view="billiards-info"] .details-wallet {
  height: 70px;
  min-height: 70px;
  margin: 10px 0 0;
  padding: 10px 13px;
  border: 1px solid #e6e8eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(34, 39, 45, 0.06);
}

[data-view="billiards-info"] .details-wallet .wallet-image {
  width: 40px;
  height: 40px;
}

[data-view="billiards-info"] .details-wallet .wallet-copy strong {
  color: #272a2f;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

[data-view="billiards-info"] .details-wallet .wallet-copy > span {
  color: #898e96;
  font-size: 11px;
}

[data-view="billiards-info"] .details-wallet .mini-tool {
  min-width: 54px;
  height: 48px;
  padding-left: 12px;
  border-left: 1px solid #eceef0;
}

[data-view="billiards-info"] .details-wallet .mini-tool img {
  width: 30px;
  height: 30px;
  margin: 0 auto;
}

[data-view="billiards-info"] .details-wallet .mini-tool span {
  margin-top: 1px;
  color: #595d63;
  font-size: 10px;
}

.details-section-title {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 0 2px;
  color: #25282d;
  font-size: 16px;
  font-weight: 800;
}

.details-section-title > span {
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: #c99968;
}

.details-section-title small {
  min-height: 23px;
  margin-left: auto;
  padding: 0 8px;
  border-radius: 4px;
  background: #e8eaed;
  color: #6e737a;
  font-size: 10px;
  font-weight: 600;
  line-height: 23px;
}

.market-list {
  display: grid;
  gap: 10px;
}

.market-card {
  overflow: hidden;
  border: 1px solid #e5e7ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(34, 39, 45, 0.06);
}

.market-card > header {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  border-bottom: 1px solid #eceef1;
}

.market-card > header div {
  min-width: 0;
}

.market-card > header div > strong {
  display: block;
}

.market-card > header div > strong {
  overflow: hidden;
  color: #2d3035;
  font-size: 14px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-status {
  flex: none;
  color: #999da3;
  font-size: 10px;
  font-weight: 600;
}

.market-status.is-open {
  color: #27856e;
}

.market-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  background: #f8f9fa;
}

.odds-option {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border: 0;
  border-radius: 5px;
  background: #eef1f4;
  color: #484c52;
  text-align: left;
}

.odds-option span {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.odds-option strong {
  flex: none;
  color: #b1733e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.odds-option:not(:disabled):active {
  background: #f3e7da;
  transform: translateY(1px);
}

.odds-option:focus-visible {
  outline: 2px solid #c99b6f;
  outline-offset: 1px;
}

.odds-option:disabled {
  cursor: default;
  opacity: 1;
}

.odds-stopped {
  display: flex;
  min-height: 132px;
  padding: 22px 15px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border: 1px solid #e5e7ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(34, 39, 45, 0.06);
  color: #969aa1;
  font-size: 11px;
}

.odds-empty-mark {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 3px;
  place-items: center;
  border: 1px solid #e4d1bf;
  border-radius: 50%;
  background: #faf6f1;
  color: #b07d4f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
}

.odds-stopped strong {
  color: #3b3f45;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 350px) {
  .match-contest {
    grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
    padding-inline: 8px;
  }

  .team-mark {
    width: 60px;
    height: 24px;
  }

}

.guest-message-panel {
  height: 80vh;
  padding: 40px 15px 15px;
  border-radius: 15px;
  background: #fff;
  text-align: center;
}

.guest-message-panel .plain-action {
  padding: 0;
  color: #8d8d8d;
}

.settings-profile {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 120px;
  padding: 15px;
  background: #fff;
}

.settings-avatar-button {
  position: relative;
  display: block;
  width: 80px;
  height: 80px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  overflow: visible;
}

.settings-profile img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.contact-empty-row {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  margin: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #f5f5f5;
}

.square-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 50px;
}

.square-tile {
  display: flex;
  width: 42%;
  height: 112.5px;
  padding: 0 0 20px 20px;
  align-items: flex-end;
  background-color: transparent;
  background-position: center;
  background-size: 100% 100%;
}

.square-tile.wide {
  width: 100%;
  height: 150px;
}

.avatar-stack {
  display: flex;
}

.avatar-stack img {
  width: 28px;
  height: 28px;
  margin-left: -11px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-stack img:first-child {
  margin-left: 0;
}

.competition-frame {
  min-height: calc(100vh - 94px);
  background: #fff;
}

.competition-reload {
  position: absolute;
  z-index: 4;
  bottom: 60px;
  left: 0;
  width: 100%;
  padding: 4px;
  background: transparent;
  font-size: 10px;
  text-align: center;
  text-decoration: underline;
}

.business-panel {
  min-height: calc(100vh - 94px);
  padding: 95px 15px 50px;
  background: transparent;
  color: #fff;
}

.business-headline h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
}

.business-headline p {
  margin-top: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

.business-contact {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 80px;
  gap: 10px;
  min-height: 95px;
  align-items: center;
  margin-top: 50px;
  padding: 15px;
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow);
  color: #252525;
  text-align: left;
}

.business-contact .business-avatar {
  width: 50px;
  height: 50px;
  margin: 0;
  border: 0;
}

.business-contact strong,
.business-contact span {
  display: block;
}

.business-contact strong {
  font-size: 13px;
  font-weight: 500;
}

.business-contact div > span {
  margin-top: 4px;
  color: #9e9e9e;
  font-size: 12px;
}

.business-contact > button {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  background: transparent;
  font-size: 12px;
}

[data-view="battle"] .page-main {
  height: var(--visual-viewport-height);
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.battle-stage {
  width: 450px;
  max-width: none;
  height: var(--visual-viewport-height);
  min-height: 0;
  margin-left: -15px;
}

.battle-loading-image {
  width: 450px;
  height: 100%;
}

.first-recharge-hero {
  display: flex;
  width: 100%;
  margin-top: 25px;
  flex-direction: column;
  align-items: center;
}

.first-recharge-title {
  margin-top: 0;
}

.first-recharge-visual {
  margin: 0;
}

/* DOM-measured source states for routes whose APIs currently return no data. */
.source-wallet-card {
  height: 75px;
  min-height: 75px;
  margin-bottom: 15px;
  padding: 0 10px;
  justify-content: flex-start;
}

.source-wallet-card .wallet-image {
  width: 45px;
  height: 45px;
  margin-right: 7.5px;
}

.source-wallet-card .wallet-copy {
  width: 48px;
  flex: none;
}

.source-wallet-card .wallet-empty-balance {
  box-sizing: content-box;
  width: 48px;
  height: 25px;
  padding-bottom: 5px;
  justify-content: center;
}

.source-wallet-card .wallet-empty-balance .inline-reload {
  width: 25px;
  height: 25px;
}

.source-wallet-card .wallet-copy > span {
  width: 48px;
  margin: 0;
  color: #000;
  font-size: 12px;
  line-height: 16.5px;
}

.source-channel-card {
  width: 400px;
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow);
}

.source-channel-card-recharge {
  height: 108.5px;
  padding: 15px 15px 30px;
}

.source-channel-card-withdraw {
  min-height: 65px;
  height: auto;
  margin-top: 10px;
  padding: 15px 15px 30px;
}

.source-channel-head {
  display: flex;
  width: 370px;
  height: 20px;
  align-items: center;
  justify-content: space-between;
}

.source-channel-head h2,
.source-field-label {
  color: #252525;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.source-channel-head h2 span,
.source-field-label span {
  color: red;
}

.source-channel-head .plain-action {
  height: 18.5px;
  padding: 0;
  color: #000;
  font-size: 13px;
  font-weight: 500;
  line-height: 18.5px;
  text-decoration: underline;
}

.source-channel-closed {
  display: flex;
  width: 370px;
  height: 28.5px;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  padding: 5px;
  border: 1px solid rgba(158, 158, 158, 0.4);
  border-radius: 7.5px;
  color: red;
  font-size: 12px;
  font-weight: 600;
}

.source-recharge-form {
  display: block;
  height: 453.5px;
  margin: 0;
}

.source-field-card {
  display: block;
  width: 400px;
  height: 101.5px;
  margin-top: 15px;
  padding: 15px;
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow);
}

.source-field-label {
  display: block;
  width: 370px;
  height: 20px;
  margin-bottom: 15px;
}

.source-field-card input {
  display: block;
  width: 370px;
  height: 36.5px;
  padding: 6px 9px;
  border: 0;
  border-bottom: 0.5px solid #dadbde;
  border-radius: 0;
  color: #303133;
  font-size: 15px;
  line-height: 24px;
  outline: 0;
}

.source-field-card input::placeholder {
  color: #c0c4cc;
  opacity: 1;
}

.source-warning {
  width: 400px;
  min-height: 18px;
  margin-top: 15px;
  color: #f5a43b;
  font-size: 12px;
  line-height: 18px;
}

.source-upload-card {
  height: 105px;
}

.source-upload-card button {
  display: flex;
  width: 370px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 3px;
  background: #fff;
  color: #323233;
  font-size: 14px;
  line-height: 20px;
}

.source-upload-warning {
  height: 34.5px;
  line-height: 17px;
}

.source-submit {
  position: relative;
  display: flex;
  width: 400px;
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
  padding: 0 12px;
  overflow: hidden;
  border: 1px solid var(--charcoal);
  border-radius: 6px;
  background: var(--charcoal);
  box-shadow: 0 5px 12px rgba(32, 34, 38, 0.22);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  opacity: 1;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.source-submit:hover:not(:disabled) {
  background: #34373c;
  box-shadow: 0 7px 16px rgba(32, 34, 38, 0.26);
}

.source-submit:active:not(:disabled) {
  background: #15171a;
  box-shadow: 0 2px 5px rgba(32, 34, 38, 0.24);
  transform: translateY(1px) scale(0.995);
}

.source-submit:focus-visible {
  outline: 3px solid rgba(168, 111, 63, 0.26);
  outline-offset: 2px;
}

.source-submit:disabled {
  border-color: #d7dbe0;
  background: #e4e7eb;
  box-shadow: none;
  color: #8b929b;
  cursor: not-allowed;
  opacity: 1;
}

.source-submit.is-loading:disabled {
  border-color: var(--charcoal);
  background: var(--charcoal);
  box-shadow: 0 2px 5px rgba(32, 34, 38, 0.2);
  color: #fff;
  cursor: wait;
}

.source-submit.is-loading::before {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: #fff;
  border-radius: 50%;
  content: "";
  animation: source-submit-spin 700ms linear infinite;
}

@keyframes source-submit-spin {
  to {
    transform: rotate(360deg);
  }
}

.source-withdraw-form .source-field-card {
  height: 97px;
  margin-top: 10px;
}

.source-withdraw-form .source-field-label {
  margin-bottom: 10px;
}

.source-withdraw-form .source-field-card input {
  height: 37px;
  border: 0.5px solid #dadbde;
  border-radius: 4px;
}

.source-tabs {
  margin: 0;
}

.source-tabs button {
  min-height: 0;
}

.source-history-tabs,
.source-system-tabs {
  height: 40px;
  border-radius: 15px 15px 0 0;
  background: #fff;
}

.source-system-tabs {
  background: transparent;
}

.source-history-empty {
  display: flex;
  width: 400px;
  height: 52.5px;
  align-items: center;
  justify-content: center;
  padding: 15px 0;
  background: #fff;
  color: #606266;
  font-size: 13px;
  line-height: 22.5px;
}

.source-history-space {
  width: 400px;
  height: 604.8px;
}

[data-view="square"] .page-main.no-bar {
  padding-top: 0;
}

.source-square-stage {
  width: 400px;
  height: 597.5px;
}

.source-billiards-scroll {
  width: 400px;
  height: 576px;
  overflow-x: hidden;
  overflow-y: auto;
}

.match-load-more {
  display: flex;
  width: calc(100% - 24px);
  min-height: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  margin: 12px;
  border: 1px solid #d9dde4;
  border-radius: 6px;
  background: #fff;
  color: #4b5058;
  font-size: 13px;
  font-weight: 700;
}

.match-load-more span {
  color: #8b919a;
  font-size: 10px;
  font-weight: 500;
}

.match-load-more:disabled {
  opacity: .55;
}

[data-view="billiards"] .source-billiards-scroll .empty-state {
  margin-top: 10px;
}

[data-view="messages"] .page-main.no-bar {
  padding-top: 0;
}

[data-view="messages"] .guest-message-panel {
  height: 631px;
}

.source-system-scroll {
  display: flex;
  width: 400px;
  height: 576px;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
  padding: 12px 0 24px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: #606266;
  font-size: 14px;
}

.source-system-scroll.is-empty {
  align-items: center;
  justify-content: center;
  padding-bottom: 48px;
}

.announcement-card {
  position: relative;
  display: block;
  width: 100%;
  flex: none;
  padding: 15px 16px 17px;
  border: 1px solid #e9e2da;
  border-left: 3px solid #b98353;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(61, 47, 35, 0.05);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.announcement-card.is-unread::after {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e44949;
  box-shadow: 0 0 0 3px #fff;
  content: "";
}

.message-list-row.is-unread .row-copy strong::after {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-radius: 50%;
  background: #e44949;
  vertical-align: 2px;
  content: "";
}

.announcement-prompt-layer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  width: min(100%, 420px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
  place-items: center;
  background: rgba(24, 27, 32, 0.66);
  backdrop-filter: blur(4px);
}

.announcement-prompt {
  display: flex;
  width: 100%;
  max-width: 372px;
  max-height: calc(100dvh - 40px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
}

.announcement-prompt-head {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 18px;
  background: #20242a;
  color: #fff;
}

.announcement-prompt-head span {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
}

.announcement-prompt-head button {
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  color: #fff;
  font-size: 25px;
  font-weight: 300;
  line-height: 34px;
}

.announcement-prompt-copy {
  min-height: 0;
  padding: 22px 20px 20px;
}

.announcement-prompt-copy strong,
.announcement-prompt-copy time {
  display: block;
}

.announcement-prompt-copy strong {
  overflow-wrap: anywhere;
  color: #25282d;
  font-size: 19px;
  font-weight: 800;
  line-height: 27px;
}

.announcement-prompt-copy time {
  margin-top: 6px;
  color: #8d9299;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 17px;
}

.announcement-prompt-copy p {
  max-height: min(42vh, 300px);
  margin-top: 17px;
  overflow-y: auto;
  overflow-wrap: anywhere;
  color: #50555d;
  font-size: 14px;
  font-weight: 500;
  line-height: 23px;
  white-space: pre-wrap;
}

.announcement-prompt-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 10px;
  padding: 0 20px 20px;
}

.announcement-prompt-actions button {
  min-width: 0;
  height: 42px;
  border: 1px solid #d8dbe0;
  border-radius: 6px;
  background: #f5f6f8;
  color: #4f555d;
  font-size: 13px;
  font-weight: 750;
}

.announcement-prompt-actions button:last-child {
  border-color: #b77b47;
  background: #a96e3d;
  color: #fff;
}

.announcement-prompt-actions button:disabled,
.announcement-prompt-head button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.domain-recovery-layer {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  width: min(100%, 420px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 14px max(16px, env(safe-area-inset-bottom));
  place-items: center;
  background: rgba(24, 27, 33, 0.62);
  backdrop-filter: blur(6px);
}

.domain-recovery-dialog {
  display: flex;
  width: 100%;
  max-width: 384px;
  max-height: calc(var(--visual-viewport-height) - 32px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  background: #f4f6fa;
  box-shadow: 0 20px 54px rgba(16, 20, 27, 0.32);
}

.domain-recovery-hero {
  position: relative;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  padding: 16px 48px;
  border-bottom: 3px solid var(--red);
  background: #fff;
}

.domain-recovery-brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.domain-recovery-logo {
  display: block;
  width: 112px;
  height: 32px;
  object-fit: contain;
}

.domain-recovery-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 50%;
  background: rgba(31, 39, 52, 0.72);
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
}

.domain-recovery-copy-all {
  min-width: 0;
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--red);
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.domain-recovery-content {
  min-height: 0;
  overflow-y: auto;
  padding: 14px 16px 9px;
}

.domain-recovery-note {
  display: flex;
  padding: 10px 11px;
  border-left: 3px solid var(--red);
  border-radius: 4px;
  background: #fff0f1;
  overflow-wrap: anywhere;
}

.domain-recovery-note strong {
  flex: 0 0 auto;
  margin-right: 8px;
  color: #d92531;
  font-size: 12px;
  font-weight: 800;
  line-height: 20px;
}

.domain-recovery-note span {
  color: #646d7a;
  font-size: 12px;
  font-weight: 550;
  line-height: 20px;
}

.domain-recovery-section {
  margin-top: 14px;
}

.domain-recovery-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.domain-recovery-section-title h3 {
  color: #2a313c;
  font-size: 13px;
  font-weight: 800;
  line-height: 19px;
}

.domain-recovery-section-title span {
  color: #969da8;
  font-size: 10px;
  font-weight: 650;
  line-height: 16px;
}

.domain-recovery-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin-top: 6px;
  padding: 7px 7px 7px 11px;
  border: 1px solid #e2e5ea;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(31, 39, 52, 0.04);
}

.domain-recovery-status {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #3eb693;
  box-shadow: 0 0 0 3px rgba(62, 182, 147, 0.12);
}

.domain-recovery-link {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  color: #29313d;
  font-size: 13px;
  font-weight: 750;
  line-height: 19px;
  text-decoration: none;
}

.domain-recovery-link:hover {
  color: #d7192d;
  text-decoration: underline;
}

.domain-recovery-copy {
  min-width: 48px;
  height: 30px;
  flex: 0 0 auto;
  padding: 0 8px;
  border: 1px solid #ffd1d4;
  border-radius: 5px;
  background: #fff5f5;
  color: #db2934;
  font-size: 11px;
  font-weight: 750;
}

.domain-recovery-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 8px;
  padding: 9px 16px 16px;
}

.domain-recovery-confirm {
  min-width: 0;
  height: 42px;
  border: 1px solid #dfe3e9;
  border-radius: 6px;
  background: #fff;
  color: #505966;
  font-size: 13px;
  font-weight: 750;
}

.domain-recovery-close:hover,
.domain-recovery-close:focus-visible,
.domain-recovery-copy:hover,
.domain-recovery-copy:focus-visible,
.domain-recovery-copy-all:hover,
.domain-recovery-copy-all:focus-visible,
.domain-recovery-confirm:hover,
.domain-recovery-confirm:focus-visible {
  filter: brightness(0.96);
  outline: 2px solid rgba(255, 57, 57, 0.22);
  outline-offset: 2px;
}

.site-header-domain {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid #e8c7a9;
  border-radius: 4px;
  background: #fff8f1;
  color: #986237;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .site-header-domain {
    display: none;
  }

  .domain-recovery-hero {
    min-height: 72px;
  }

  .domain-recovery-content {
    padding-right: 15px;
    padding-left: 15px;
  }

  .domain-recovery-actions {
    padding-right: 15px;
    padding-left: 15px;
  }
}

.announcement-card:hover {
  border-color: #d9c4b1;
  border-left-color: #a86f3f;
  box-shadow: 0 4px 12px rgba(61, 47, 35, 0.08);
}

.announcement-card:active {
  transform: translateY(1px);
}

.announcement-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.announcement-meta span {
  flex: none;
  padding: 3px 7px;
  border-radius: 4px;
  background: #f5e8dc;
  color: #8f5c34;
  font-size: 10px;
  font-weight: 750;
  line-height: 15px;
}

.announcement-meta time {
  min-width: 0;
  color: #969ba2;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  line-height: 16px;
  text-align: right;
}

.announcement-title {
  display: block;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
  color: #302a25;
  font-size: 16px;
  font-weight: 800;
  line-height: 23px;
}

.announcement-preview {
  display: -webkit-box;
  overflow-wrap: anywhere;
  overflow: hidden;
  color: #555b63;
  font-size: 13px;
  font-weight: 500;
  line-height: 22px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.announcement-more {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 10px;
  color: #95623a;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
}

.announcement-more span {
  font-size: 17px;
  line-height: 14px;
}

.announcement-detail {
  width: 400px;
  max-width: 100%;
  min-height: 240px;
  padding: 20px 18px 26px;
  border: 1px solid #e9e2da;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(61, 47, 35, 0.05);
}

.announcement-detail-head {
  padding-bottom: 15px;
  border-bottom: 1px solid #eceef1;
}

.announcement-detail-type {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 4px;
  background: #f5e8dc;
  color: #8f5c34;
  font-size: 10px;
  font-weight: 750;
  line-height: 15px;
}

.announcement-detail h1 {
  margin: 10px 0 6px;
  overflow-wrap: anywhere;
  color: #302a25;
  font-size: 19px;
  font-weight: 800;
  line-height: 28px;
}

.announcement-detail time {
  color: #969ba2;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  line-height: 16px;
}

.announcement-detail-copy {
  padding-top: 17px;
  overflow-wrap: anywhere;
  color: #4c525a;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  white-space: pre-wrap;
}

.message-detail-empty {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #969ba2;
}

.message-detail-empty strong {
  color: #555b63;
  font-size: 14px;
}

.source-pg-search {
  position: relative;
  display: grid;
  width: 400px;
  height: 42px;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  background: transparent;
}

.source-pg-content {
  display: flex;
  width: 100%;
  height: 42px;
  align-items: center;
  padding: 0 10px;
  border-radius: 100px;
  background: #fff;
}

.source-pg-content > span {
  display: block;
  width: 22px;
  height: 22px;
  flex: none;
  color: #909193;
  font-family: "uicon-iconfont";
  font-size: 16px;
  line-height: 22px;
  text-align: center;
}

.source-pg-content input {
  width: auto;
  min-width: 0;
  height: 40px;
  min-height: 40px;
  flex: 1;
  margin: 0 5px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #303133;
  font-size: 14px;
  line-height: 40px;
  outline: 0;
}

.source-pg-tabs {
  display: flex;
  height: 44px;
  justify-content: flex-start;
}

.source-pg-tabs button {
  position: relative;
  width: 82px;
  height: 44px;
  flex: 0 0 82px;
  padding: 0 11px;
  font-size: 15px;
  line-height: 21px;
}

.source-pg-tabs button.active::after {
  bottom: 2px;
  width: 40px;
  height: 3px;
  border-radius: 100px;
  background: #3c9cff;
}

[data-view="pg"] {
  height: var(--visual-viewport-height);
  min-height: 0;
  overflow: hidden;
}

[data-view="pg"] .page-main {
  display: flex;
  height: calc(var(--visual-viewport-height) - 44px);
  min-height: 0;
  flex-direction: column;
  padding-bottom: 0;
  overflow: hidden;
}

[data-view="pg"] .source-pg-search,
[data-view="pg"] .source-pg-tabs,
[data-view="pg"] .pg-catalog-warning {
  flex: none;
}

.pg-catalog-layout {
  display: grid;
  width: 400px;
  height: auto;
  min-height: 0;
  flex: 1;
  grid-template-columns: 104px minmax(0, 1fr);
  border-top: 1px solid #e8eaed;
  background: #fff;
}

.pg-vendor-sidebar {
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border-right: 1px solid #e8eaed;
  background: #f5f6f7;
  scrollbar-width: none;
}

.pg-vendor-sidebar::-webkit-scrollbar {
  display: none;
}

.pg-vendor-sidebar button {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 54px;
  padding: 8px 7px 7px 11px;
  align-content: center;
  gap: 2px;
  border-bottom: 1px solid #e8eaed;
  background: transparent;
  color: #656a71;
  text-align: left;
}

.pg-vendor-sidebar button::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: transparent;
  content: "";
}

.pg-vendor-sidebar button strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 650;
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pg-vendor-sidebar button small {
  color: #a0a5ac;
  font-size: 10px;
  line-height: 14px;
}

.pg-vendor-sidebar button.active {
  background: #fff;
  color: #247ccc;
}

.pg-vendor-sidebar button.active::before {
  background: #3c9cff;
}

.pg-vendor-sidebar button.active small {
  color: #6aa7df;
}

.pg-catalog-warning {
  width: 400px;
  padding: 6px 8px;
  background: #fff5e8;
  color: #9a641e;
  font-size: 11px;
  line-height: 16px;
}

.source-pg-scroll {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.source-pg-empty {
  display: flex;
  height: 216px;
  align-items: center;
  justify-content: center;
  padding-top: 15px;
  color: #9e9e9e;
  font-size: 14px;
}

.pg-game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 9px;
  padding: 10px 8px 24px;
}

.pg-game-card {
  position: relative;
  min-width: 0;
}

.pg-game-entry {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  background: transparent;
  color: #34383e;
  text-align: left;
}

.pg-game-cover {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid #e6e8eb;
  border-radius: 8px;
  background: #f2f3f5;
}

.pg-game-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg-game-cover small {
  position: absolute;
  bottom: 5px;
  left: 5px;
  padding: 2px 5px;
  border-radius: 3px;
  background: #b64c45;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 13px;
}

.pg-game-entry > strong {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pg-game-provider {
  display: block;
  margin-top: 1px;
  overflow: hidden;
  color: #8a9098;
  font-size: 10px;
  line-height: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pg-game-entry > em {
  display: block;
  color: #9a4d47;
  font-size: 10px;
  font-style: normal;
  line-height: 15px;
}

.pg-game-card.is-maintenance .pg-game-cover {
  opacity: 0.55;
}

.pg-game-entry.is-launching .pg-game-cover::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.82);
  color: #4c5159;
  content: "启动中";
  font-size: 11px;
  font-weight: 700;
}

.pg-favorite {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: rgba(37, 41, 47, 0.58);
  color: #fff;
  font-size: 17px;
  line-height: 1;
}

.pg-favorite.active {
  color: #f4c466;
}

.pg-game-loading > div {
  display: grid;
  width: min(260px, calc(100% - 40px));
  gap: 16px;
  text-align: center;
}

.pg-game-loading .primary-button {
  width: 100%;
}

.source-welfare-tabs {
  height: 34px;
}

.source-welfare-empty {
  display: flex;
  width: 400px;
  height: 37.5px;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  padding: 7.5px;
  color: #606266;
  font-size: 13px;
  line-height: 22.5px;
}

.contact-empty-row {
  width: 400px;
  height: 42.5px;
  min-height: 42.5px;
  margin: 5px 0 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.contact-empty-row .chevron {
  color: #000;
  font-size: 20px;
  font-weight: 700;
}

[data-view="first-recharge"] .page-main {
  padding: 15px 10px 0;
  font-family: "PingFang SC", sans-serif;
}

[data-view="first-recharge"] .first-recharge-hero .rules-intro {
  width: fit-content;
  margin: 15px auto 0;
  color: #000;
  font-size: 16px;
  line-height: normal;
}

[data-view="first-recharge"] .promotion-table {
  padding-bottom: 10px;
  margin-bottom: 25px;
  border-radius: 13px;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5), -5px -5px 10px rgba(255, 255, 255, 0.2);
}

[data-view="first-recharge"] .promotion-row {
  grid-template-columns: 34% 33% 33%;
  height: 40px;
  min-height: 40px;
  border-bottom: 0;
  color: #000;
  font-size: 16px;
}

[data-view="first-recharge"] .promotion-row:first-child {
  height: 36px;
  min-height: 36px;
  margin-bottom: 10px;
  border-radius: 13px 13px 0 0;
  color: #252525;
  font-size: 13px;
  font-weight: 500;
}

[data-view="first-recharge"] .first-recharge-rules {
  height: 126.5px;
  margin: 0 0 172.5px;
  border-radius: 13px;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5), -5px -5px 10px rgba(255, 255, 255, 0.2);
}

[data-view="first-recharge"] .first-recharge-rules .rule-title {
  display: flex;
  width: 400px;
  height: 36px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  padding: 0;
  border-radius: 13px 13px 0 0;
  font-size: 13px;
  font-weight: 500;
}

[data-view="first-recharge"] .first-recharge-rules .rule-title span {
  display: flex;
  width: 132px;
  height: 18.5px;
  align-items: center;
  justify-content: center;
}

[data-view="first-recharge"] .first-recharge-rules .rule-copy {
  height: 70.5px;
  padding: 7.5px;
  color: #9e9e9e;
  font-size: 13px;
  line-height: normal;
}

[data-view="billiards"] .page-main {
  min-height: 754px;
  padding: 15px 10px 23px;
  font-family: "PingFang SC", sans-serif;
}

[data-view="billiards"] .wallet-card {
  height: 75px;
  min-height: 75px;
  margin-bottom: 15px;
  padding: 0 10px;
}

[data-view="billiards"] .wallet-card .wallet-image {
  width: 45px;
  height: 45px;
  margin-right: 7.5px;
}

[data-view="billiards"] .wallet-copy {
  width: 118px;
  flex: none;
}

[data-view="billiards"] .wallet-copy strong {
  box-sizing: content-box;
  width: fit-content;
  height: 25px;
  padding-bottom: 5px;
  color: #000;
  font-size: 18px;
  line-height: normal;
}

[data-view="billiards"] .wallet-copy span {
  width: 118px;
  margin-top: 0;
  color: #000;
  font-size: 12px;
  line-height: normal;
}

[data-view="billiards"] .event-tabs {
  display: flex;
  height: 50px;
  justify-content: space-between;
}

[data-view="billiards"] .event-tabs button {
  display: flex;
  width: auto;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 13px;
  line-height: normal;
}

[data-view="billiards"] .event-tabs button img {
  width: 15px;
  height: 15px;
  margin: 0 4px;
}

[data-view="billiards"] .event-tabs button small {
  color: #9e9e9e;
  font-size: 11.5px;
  line-height: normal;
}

[data-view="billiards"] .empty-state {
  width: 400px;
  height: 216px;
  min-height: 216px;
  margin-top: 10px;
  color: #9e9e9e;
  font-size: 14px;
  line-height: 20px;
}

[data-view="billiards"] .empty-image {
  width: 160px;
  height: auto;
  margin: 0;
}

[data-view="billiards"] .empty-state span {
  height: 35px;
  padding-top: 15px;
}

[data-view="rules"] .page-main {
  width: 400px;
  height: 720px;
  min-height: 720px;
  margin: 0 auto;
  padding: 5.5px;
  overflow-y: auto;
  font-family: "PingFang SC", sans-serif;
}

[data-view="rules"] .rule-card {
  min-height: 0;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-radius: 13px;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5), -5px -5px 10px rgba(255, 255, 255, 0.2);
}

[data-view="rules"] .rule-title {
  display: flex;
  width: 100%;
  height: 36px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  padding: 0;
  border-radius: 13px 13px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: normal;
}

[data-view="rules"] .rule-copy {
  padding: 0 10px 10px;
  color: #606266;
  font-size: 12px;
  line-height: normal;
}

.first-recharge-hero .rules-intro {
  margin: 15px 0;
}

.first-recharge-rules {
  margin-top: 25px;
}

.promotion-row:nth-child(odd):not(:first-child) span:nth-child(-n + 2) {
  background: #f8f3ef;
}

.pg-game-shell {
  position: relative;
  height: 100vh;
  min-height: 520px;
  background: #fff;
  overflow: hidden;
}

[data-view="pg-game"] {
  height: var(--visual-viewport-height);
  min-height: 0;
  overflow: hidden;
}

[data-view="pg-game"] .page-main.no-bar.flush {
  height: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

[data-view="pg-game"] .pg-game-shell {
  height: 100%;
  min-height: 0;
}

.pg-game-shell iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.pg-game-frame-loading {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  background: #fff;
  color: #888;
  font-size: 14px;
}

.pg-game-shell.is-loading .pg-game-frame-loading {
  display: grid;
}

.pg-game-loading {
  display: grid;
  height: 100%;
  place-items: center;
  color: #999;
}

.fb-sports-shell {
  height: 100dvh;
  min-height: 480px;
}

[data-view="fb-sports"] .page-main {
  height: 100dvh;
  min-height: 480px;
  padding: 0;
}

.fb-sports-shell header small {
  overflow: hidden;
  max-width: 55%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fb-sports-error > div {
  display: grid;
  width: min(280px, calc(100% - 40px));
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.fb-sports-error strong {
  color: #555;
  font-size: 15px;
  line-height: 1.6;
}

.fb-sports-error .primary-button {
  width: 160px;
  margin: 0;
}

.chat-page {
  height: calc(100vh - 94px);
}

/* Original site assets and component proportions. */
.page-main {
  position: relative;
}

.brand-bar {
  height: 50px;
  padding: 0 20px 0 0;
}

.brand-logo-button,
.brand-actions,
.brand-action {
  display: flex;
  align-items: center;
  background: transparent;
}

.brand-logo-button {
  width: 50px;
  height: 50px;
  padding: 0;
}

.brand-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.brand-actions {
  gap: 22px;
}

.brand-action {
  width: 18px;
  height: 30px;
  padding: 0;
  border: 0;
}

.brand-action img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.nav-symbol {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.home-banner {
  position: relative;
  height: 150px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.banner-link {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  background: #fff;
}

.banner-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-banner .dots {
  bottom: 7px;
}

.home-banner .dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.22);
}

.home-banner .dots button.active {
  width: 14px;
  border-radius: 6px;
  background: #fff;
}

.notice-row span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notice-row {
  width: 100%;
  max-width: 100%;
}

.mini-tool img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.mini-tool span:first-child {
  font-size: inherit;
  color: inherit;
}

.category-layout {
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: 49vh;
}

.category-tabs {
  gap: 0;
  padding: 2px 10px 0 2px;
}

.category-tab {
  display: flex;
  width: 58px;
  height: 58px;
  margin: 0 0 8px;
  padding: 2px;
  flex-direction: column;
  gap: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fffbf6);
}

.category-tab img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.category-tab.active {
  background: linear-gradient(180deg, #ffe3ca, #e9c5a4);
}

.category-tab.active img {
  width: 45px;
  height: 45px;
  margin-bottom: -5px;
}

.category-tab span {
  font-size: 13px;
}

.game-stage {
  padding-left: 0;
  border-radius: 10px;
  background: #fff;
}

.game-card {
  display: block;
  width: 100%;
  min-height: 0;
  height: 118px;
  margin-bottom: 15px;
  padding: 0;
  border-radius: 8px;
}

.game-card > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-page {
  padding-top: 20px;
}

.auth-brand {
  min-height: 170px;
  margin-bottom: 5px;
  justify-content: center;
}

.auth-brand.compact {
  min-height: 128px;
}

.auth-logo {
  display: block;
  width: min(300px, 92%);
  height: auto;
  object-fit: contain;
}

.auth-brand.compact .auth-logo {
  width: 220px;
}

.wallet-card {
  justify-content: flex-start;
}

.wallet-image {
  width: 48px;
  height: 48px;
  margin-right: 11px;
  object-fit: contain;
}

.wallet-copy {
  flex: 1;
}

.profile-avatar {
  width: 65px;
  height: 65px;
  flex: none;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 3px 8px rgba(90, 60, 35, 0.18);
}

.profile-wallet {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.profile-balance > div:nth-child(2) {
  flex: 1;
  margin-left: 7.5px;
}

.feature-menu img {
  width: 50px;
  height: auto;
  margin-bottom: -10px;
  object-fit: contain;
}

.row-image {
  width: 40px;
  height: 40px;
  flex: none;
  object-fit: contain;
}

.tutorial-image {
  display: block;
  width: min(100%, 376px);
  height: auto;
  margin: 14px auto 0;
}

.empty-image {
  width: 146px;
  height: auto;
  margin-bottom: 12px;
  object-fit: contain;
}

[data-view="invite"] .page-main {
  min-height: calc(100vh - 44px);
  overflow: hidden;
  color: #fff;
}

.invite-background {
  position: absolute;
  z-index: 0;
  inset: 0;
  min-height: calc(100vh - 44px);
  background: #7f1d14 url("/assets/invitation_bk-Cu1b_zLm.webp") center top / cover no-repeat;
}

.invite-content {
  position: relative;
  z-index: 1;
  display: flex;
  padding: 38px 30px;
  flex-direction: column;
  align-items: center;
}

.invite-content h1 {
  font-size: 32px;
  font-weight: 600;
}

.invite-glass {
  width: 100%;
  margin-top: 30px;
  padding: 30px 10px;
  border: 1px solid #fff;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.invite-code-mark {
  display: grid;
  width: 150px;
  height: 150px;
  margin: 0 auto 15px;
  place-items: center;
  border: 15px solid #fff;
  border-radius: 8px;
  background-color: #f5f5f5;
  background-image: repeating-conic-gradient(#171717 0 25%, #fff 0 50%);
  background-size: 16px 16px;
}

.invite-code-mark img {
  width: 34px;
  height: 42px;
  padding: 3px;
  background: #fff;
  object-fit: contain;
}

.invite-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 28px;
  gap: 7px;
  min-height: 40px;
  align-items: center;
  margin-top: 15px;
  padding: 0 10px;
  border: 1px solid #fff;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.5);
  color: #252525;
  font-size: 13px;
}

.invite-line strong {
  overflow: hidden;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.invite-line button {
  width: 28px;
  height: 28px;
  padding: 5px;
  background: transparent;
}

.invite-line button img {
  width: 100%;
  height: 100%;
}

.match-score img {
  width: 110px;
  height: auto;
  object-fit: contain;
}

[data-view="business"] .page-main {
  min-height: calc(100vh - 44px);
  background: #63120d url("/assets/sw_bg-wYgTxBkP.webp") center top / cover no-repeat;
}

[data-view="business"] .business-panel {
  min-height: calc(100vh - 44px);
  padding: 66px 30px 35px;
  background: transparent;
}

[data-view="business"] .business-panel::before {
  display: none;
}

.business-avatar {
  width: 65px;
  height: 65px;
  margin: 0 auto 20px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  object-fit: cover;
}

[data-view="business"] .business-panel .primary-button {
  margin-top: 260px;
}

.battle-stage {
  position: relative;
  min-height: var(--visual-viewport-height);
  padding: 0;
  overflow: hidden;
  background: #000;
}

.battle-loading-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.battle-local-note,
.battle-back {
  position: absolute;
  z-index: 2;
  bottom: 24px;
  padding: 8px 11px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 11px;
}

.battle-local-note {
  left: 14px;
}

.battle-back {
  right: 14px;
}

.first-recharge-title,
.first-recharge-visual {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.first-recharge-title {
  margin-top: 24px;
}

.first-recharge-visual {
  margin: 15px 0;
}

.welfare-empty {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #9e9e9e;
  font-size: 13px;
}

.welfare-empty img {
  width: 82px;
  height: auto;
  margin-bottom: 10px;
  object-fit: contain;
}

/* Final specificity pass after the legacy asset overrides above. */
[data-view="home"] .brand-bar,
[data-view="messages"] .brand-bar,
[data-view="head-tools"] .brand-bar,
[data-view="head-tools-guest"] .brand-bar {
  height: 50px;
  padding: 0 20px 0 0;
  overflow: visible;
}

.brand-logo-button {
  width: 100px;
  height: 50px;
  overflow: visible;
}

.brand-logo {
  width: 100px;
  height: 100px;
  max-width: none;
}

.brand-action,
.profile-message-actions button {
  width: 25px;
}

.brand-action img,
.profile-message-actions img {
  width: 25px;
  height: 25px;
}

.home-banner .dots button,
.home-banner .dots button.active {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.36);
  box-shadow: none;
}

.home-banner .dots button.active {
  background: #000;
}

.notice-row {
  margin: 5px 0;
  color: #000;
}

.notice-row strong {
  color: #000;
}

.category-layout {
  grid-template-columns: 72px minmax(0, 1fr);
  height: 353px;
  min-height: 353px;
}

.category-tab img {
  width: 30px;
  height: 40px;
  padding-top: 10px;
}

.category-tab.active img {
  width: 45px;
  height: 45px;
  padding-top: 0;
}

.game-stage {
  height: 353px;
  padding-left: 5px;
  overflow-y: auto;
}

.game-card {
  width: 310px;
  max-width: 100%;
  height: 118px;
}

.profile-avatar,
.profile-avatar-button {
  width: 65px;
  height: 65px;
}

.profile-wallet {
  width: 45px;
  height: 45px;
}

[data-view="profile"] .page-main {
  padding: 0 10px 22.5px;
  font-family: "PingFang SC", sans-serif;
}

[data-view="profile"] .profile-copy.plain-action {
  align-self: center;
  padding: 0;
}

[data-view="profile"] .profile-copy.plain-action strong {
  font-weight: 600;
}

[data-view="profile"] .profile-message-actions {
  align-items: flex-start;
}

[data-view="profile"] .profile-message-actions button {
  width: auto;
  height: auto;
}

[data-view="profile"] .profile-message-actions button:first-child img {
  width: 25px;
  height: auto;
  margin-top: 1.43px;
}

[data-view="profile"] .profile-message-actions button:last-child img {
  width: 24px;
  height: 24px;
}

[data-view="profile"] .profile-balance {
  padding: 0 10px;
}

[data-view="profile"] .profile-balance strong {
  box-sizing: content-box;
  height: 22.5px;
  padding-bottom: 5px;
  line-height: normal;
}

[data-view="profile"] .profile-balance .inline-reload {
  margin-left: 0;
}

[data-view="profile"] .profile-balance > div:nth-child(2) {
  transform: translateY(-0.5px);
}

[data-view="profile"] .section-title {
  height: 20px;
  margin: 10px 0;
  color: #252525;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

[data-view="profile"] .feature-grid + .section-title {
  margin-top: 0;
}

[data-view="profile"] .menu-icon-image {
  width: 35px;
  height: auto;
}

.empty-image {
  width: 160px;
  height: 120px;
}

[data-view="business"] .business-panel {
  min-height: calc(100vh - 94px);
  padding: 95px 15px 50px;
  background: transparent;
}

[data-view="business"] .page-main {
  min-height: calc(100vh - 44px);
  padding: 0 10px;
  overflow: visible;
  background: #f3f5f9;
  font-family: "PingFang SC", sans-serif;
}

[data-view="business"] .business-background {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  display: block;
  width: 420px;
  height: auto;
}

[data-view="business"] .business-panel {
  z-index: 1;
  width: 400px;
  min-height: 0;
  padding: 117.5px 0 50px;
  overflow: visible;
}

[data-view="business"] .business-headline h2,
[data-view="business"] .business-headline p {
  width: 400px;
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2.4px;
  line-height: normal;
}

[data-view="business"] .business-contact {
  display: flex;
  width: 400px;
  min-height: 0;
  height: 81.5px;
  align-items: center;
  gap: 0;
  margin-top: 72.5px;
  padding: 15px;
}

[data-view="business"] .business-contact .business-avatar {
  width: 50px;
  height: 50px;
  flex: none;
  margin: 0 10px 0 0;
}

[data-view="business"] .business-contact > div {
  min-width: 0;
  flex: 1;
}

[data-view="business"] .business-contact strong {
  font-size: 13px;
  font-weight: 500;
  line-height: 18.5px;
}

[data-view="business"] .business-contact div > span {
  margin-top: 0;
  font-size: 12px;
  line-height: normal;
}

[data-view="business"] .business-contact > button {
  width: 73.27px;
  height: 51.5px;
  flex: none;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  color: #000;
  font-size: 12px;
  font-weight: 500;
}

[data-view="business"] .business-contact > button .chevron {
  width: 16px;
  height: 16px;
  margin-left: 5px;
  color: #9e9e9e;
  line-height: 16px;
}

.business-contact .business-avatar {
  width: 50px;
  height: 50px;
  margin: 0;
  border: 0;
}

[data-view="battle"] .battle-stage {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  width: 100%;
  max-width: 450px;
  height: var(--visual-viewport-height);
  min-height: 0;
  margin: 0 auto;
  transform: none;
}

[data-view="battle"] .battle-loading-image {
  width: 100%;
  height: 100%;
}

[data-view="battle"] .battle-game-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

[data-view="battle"] .battle-loading-image {
  z-index: 1;
  pointer-events: none;
  transition: opacity 160ms ease;
}

[data-view="battle"] .battle-loading-progress {
  position: absolute;
  right: 24px;
  bottom: max(28px, calc(env(safe-area-inset-bottom) + 20px));
  left: 24px;
  z-index: 2;
  display: grid;
  gap: 9px;
  color: #fff;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  transition: opacity 160ms ease;
}

[data-view="battle"] .battle-loading-track {
  width: 100%;
  height: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 4px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

[data-view="battle"] .battle-loading-fill {
  display: block;
  width: 5%;
  height: 100%;
  background: #f2c45f;
  transition: width 180ms ease-out;
}

[data-view="battle"] .battle-loading-progress > strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

[data-view="battle"] .battle-loading-progress.is-error .battle-loading-fill {
  background: #d95f58;
}

[data-view="battle"] .battle-stage:not(.is-loading) .battle-loading-image,
[data-view="battle"] .battle-stage:not(.is-loading) .battle-loading-progress {
  opacity: 0;
}

[data-view="battle"] .battle-auth-required {
  gap: 14px;
  color: #fff;
}

[data-view="battle"] .battle-auth-required .primary-button {
  width: 140px;
  margin: 0;
}

.wallet-card .wallet-image {
  width: 45px;
  height: 45px;
}

[data-view="help"] .page-main {
  padding: 15px 10px 0;
  font-family: "PingFang SC", sans-serif;
}

[data-view="help"] .accordion-list {
  border-radius: 15px;
}

[data-view="help"] .accordion-button {
  position: relative;
  height: 66px;
  min-height: 66px;
  gap: 0;
  padding: 13px 15px;
  border-bottom: 0;
}

[data-view="help"] .accordion-button > .row-image {
  margin-left: 4px;
  margin-right: 10px;
}

[data-view="help"] .accordion-button > .row-copy {
  display: flex;
  height: 40px;
  align-items: center;
  justify-content: space-between;
}

[data-view="help"] .accordion-button > .chevron {
  width: 16px;
  height: 16px;
  margin-left: 4px;
  color: #606266;
  line-height: 16px;
}

[data-view="help"] .row-copy strong {
  width: auto;
  font-size: 13px;
  font-weight: 500;
  line-height: 18.5px;
}

[data-view="help"] .row-copy small {
  width: auto;
  margin-top: 0;
  font-size: 12px;
  line-height: 16.5px;
}

[data-view="help"] .accordion-content-inner {
  padding: 12px 15px;
  font-size: 14px;
  line-height: 18px;
}

[data-view="help"] .accordion-content-inner p {
  line-height: 18px;
}

[data-view="help"] .accordion-content-inner p + p {
  margin-top: 18px;
}

[data-view="help"] .accordion-content-inner .tutorial-image + p {
  margin-top: 22px;
}

[data-view="help"] .tutorial-image {
  width: auto;
  max-width: none;
  margin: 0;
}

[data-view="help"] .help-contact {
  min-height: 18px;
  height: 18px;
  margin-bottom: 25px;
  color: #606266;
  font-size: 13px;
  line-height: 18px;
}

[data-view="help"] .help-contact:last-child {
  margin-bottom: 0;
}

[data-view="help"] .help-contact > button {
  display: flex;
  height: 18px;
  align-items: center;
  gap: 0;
  padding: 0;
  color: #606266;
  font-size: 13px;
  line-height: 18px;
}

[data-view="help"] .help-contact > button .chevron {
  width: 16px;
  height: 16px;
  color: #606266;
  line-height: 16px;
}

[data-view="help"] .help-contact span button {
  width: 16px;
  height: 16px;
  margin-left: 0;
  padding: 0;
}

[data-view="login"] .page-main.no-bar {
  min-height: 100vh;
  padding: max(24px, env(safe-area-inset-top)) 11.2px 84px;
}

[data-view="login"] .auth-page {
  min-height: 0;
  padding: 0;
}

[data-view="login"] .auth-brand {
  min-height: 112px;
  height: auto;
  margin-bottom: 28px;
}

[data-view="login"] .auth-logo {
  position: static;
  width: min(280px, 86vw);
  max-width: 100%;
  transform: none;
}

[data-view="login"] .segmented-tabs {
  justify-content: flex-start;
}

[data-view="login"] .segmented-tabs button {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 0 11px;
  font-size: 15px;
}

[data-view="login"] .segmented-tabs button:not(.active) {
  color: #9f9f9f;
}

[data-view="login"] .segmented-tabs button.active::after {
  bottom: 2px;
  width: 60px;
}

[data-view="login"] .form-stack {
  display: block;
  margin-top: 32.6px;
}

[data-view="login"] .field-label {
  margin-bottom: 0;
  font-size: 16px;
}

[data-view="login"] .required,
[data-view="register"] .required {
  color: red;
}

[data-view="login"] .field + .field {
  margin-top: 33.6px;
}

[data-view="login"] .input-wrap input {
  height: 24px;
  font-size: 15px;
}

[data-view="login"] .input-wrap {
  height: 36.5px;
  min-height: 36.5px;
  padding: 0 9px;
}

[data-view="login"] .password-toggle {
  width: 18px;
  height: 18px;
  color: #606266;
  font-family: "uicon-iconfont";
}

[data-view="login"] .check-row {
  height: 32.5px;
  margin-top: 33.6px;
}

[data-view="login"] .check-row label {
  font-size: 15px;
}

[data-view="login"] .primary-button,
[data-view="login"] .secondary-button {
  font-size: 16px;
}

[data-view="login"] .check-row .plain-action {
  padding: 0;
  font-size: 16px;
}

[data-view="login"] .primary-button {
  min-height: 50px;
  margin-top: 33.6px;
  color: #fff;
}

[data-view="login"] .secondary-button {
  min-height: 50px;
  margin-top: 16.8px;
}

[data-view="register"] .page-main.no-bar {
  min-height: 100vh;
  padding: max(20px, env(safe-area-inset-top)) 11.2px 84px;
}

[data-view="register"] .auth-page {
  min-height: 0;
  padding: 0;
}

[data-view="register"] .auth-brand {
  min-height: 82px;
  height: auto;
  margin-bottom: 16px;
}

[data-view="register"] .auth-logo {
  width: min(230px, 76vw);
  max-width: 100%;
}

[data-view="register"] .form-stack:first-child {
  display: block;
  margin-top: 0;
}

[data-view="register"] .field-label {
  margin-bottom: 0;
  font-size: 15.68px;
}

[data-view="register"] .field + .field {
  margin-top: 34.1px;
}

[data-view="register"] .helper-text + .field {
  margin-top: 35.6px;
}

[data-view="register"] .input-wrap {
  height: 36.5px;
  min-height: 36.5px;
  padding: 0 9px;
}

[data-view="register"] .input-wrap input {
  height: 24px;
  font-size: 15px;
  transform: translateY(-0.75px);
}

[data-view="register"] .password-toggle {
  width: 18px;
  height: 18px;
  color: #606266;
  font-family: "uicon-iconfont";
  transform: translateY(-0.75px);
}

[data-view="register"] .suffix-button {
  padding: 0;
  color: #d1b092;
  font-size: 14.56px;
  transform: translateY(-0.75px);
}

[data-view="register"] .helper-text {
  margin-top: 4px;
  color: red;
  font-size: 12.32px;
  line-height: 19.75px;
}

[data-view="register"] .primary-button {
  min-height: 50px;
  margin-top: 33.6px;
  color: #fff;
  font-size: 16px;
}

[data-view="register"] .auth-switch-link {
  display: flex;
  width: auto;
  min-height: 22px;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  margin-top: 17.3px;
  padding: 0;
  color: #000;
  font-size: 15.68px;
  text-decoration: none;
}

[data-view="register"] .auth-switch-link strong {
  margin-left: 6px;
  color: #d1b092;
  font-weight: 400;
}

[data-view="chat"] .chat-page {
  width: 100%;
  height: calc(100dvh - 44px);
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #f3f5f9;
}

[data-view="chat"] .chat-log {
  width: 100%;
  min-height: 0;
  flex: 1;
  padding: 16px 12px 20px;
  scroll-behavior: smooth;
}

[data-view="chat"] .chat-input {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  min-height: 68px;
  grid-template-columns: minmax(0, 1fr) 72px;
  align-items: center;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid #e5e8ec;
  background: #fff;
  font-family: "PingFang SC", sans-serif;
}

[data-view="chat"] .chat-compose {
  display: block;
  height: 46px;
  min-width: 0;
  padding: 0;
  border: 1px solid #dfe3e8;
  border-radius: 6px;
  background: #f7f8fa;
}

[data-view="chat"] .chat-compose textarea {
  display: block;
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 11px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #34383e;
  font-size: 14px;
  line-height: 21px;
  outline: 0;
  resize: none;
}

[data-view="chat"] .chat-compose textarea::placeholder {
  color: #c0c4cc;
}

[data-view="chat"] .chat-input .chat-send {
  width: 72px;
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: #b77a46;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  line-height: 20px;
}

[data-view="chat"] .chat-input .chat-send:disabled {
  background: #c9b7a7;
  color: rgba(255, 255, 255, 0.86);
}

[data-view="chat"] .chat-bubble {
  max-width: min(82%, 310px);
  margin-bottom: 12px;
  padding: 10px 12px 8px;
  overflow-wrap: anywhere;
  border: 1px solid #e5e8ec;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(40, 46, 54, 0.04);
}

[data-view="chat"] .chat-bubble.me {
  border-color: #cfe3d8;
  border-radius: 7px;
  background: #e4f2ea;
}

[data-view="chat"] .chat-message-text {
  display: block;
  white-space: pre-wrap;
}

[data-view="chat"] .chat-time {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 5px;
}

.chat-delivery.is-read {
  color: #27866e;
}

.chat-delivery.is-unread {
  color: #9a7a5c;
}

.chat-empty {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #969ca5;
  text-align: center;
}

.chat-empty strong {
  color: #555b63;
  font-size: 14px;
  font-weight: 750;
}

.chat-empty span {
  font-size: 12px;
  line-height: 18px;
}

.first-recharge-title {
  margin-top: 0;
}

.first-recharge-visual {
  margin: 0;
}

/* Keep the measured desktop geometry while allowing the same tree to fit narrow devices. */
@media (max-width: 419px) {
  .source-channel-card,
  .source-field-card,
  .source-warning,
  .source-submit,
  .source-history-empty,
  .source-history-space,
  .source-square-stage,
  .source-billiards-scroll,
  .source-billiards-scroll .empty-state,
  .source-system-scroll,
  .source-pg-search,
  .source-pg-content,
  .pg-catalog-layout,
  .pg-catalog-warning,
  .source-pg-scroll,
  .source-pg-empty,
  .source-welfare-empty,
  .contact-empty-row {
    width: 100%;
  }

  .source-channel-head,
  .source-channel-closed,
  .source-field-label,
  .source-field-card input,
  .source-upload-card button {
    width: 100%;
  }

  [data-view="rules"] .page-main {
    width: 100%;
  }

  [data-view="chat"] .chat-page,
  [data-view="chat"] .chat-log {
    width: 100%;
  }

  [data-view="first-recharge"] .first-recharge-rules .rule-title {
    width: 100%;
  }

  [data-view="business"] .business-background,
  [data-view="business"] .business-panel,
  [data-view="business"] .business-headline,
  [data-view="business"] .business-headline h2,
  [data-view="business"] .business-headline p,
  [data-view="business"] .business-contact {
    width: 100%;
  }

  [data-view="help"] .tutorial-image {
    width: auto;
    max-width: 100%;
    height: auto;
  }
}

/* Unified member typography and text hierarchy. */
#app {
  --type-strong: #202329;
  --type-body: #454a52;
  --type-muted: #858b94;
  --type-faint: #aeb3ba;
  --type-accent: #a86f3f;
  --type-positive: #27866e;
  --type-warning: #ad6b2f;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--type-body);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

#app,
#app * {
  letter-spacing: 0;
}

#app button,
#app input,
#app textarea,
#app select {
  font-family: inherit;
}

.top-title {
  color: var(--type-strong);
  font-size: 17px;
  font-weight: 750;
  line-height: 24px;
}

.top-bar {
  border-bottom-color: #e8eaed;
}

.nav-item {
  color: #777d85;
  font-size: 11px;
  font-weight: 550;
  line-height: 15px;
}

.nav-item.active {
  color: #282b30;
  font-weight: 750;
}

.brand-copy strong {
  color: var(--type-strong);
  font-size: 18px;
  font-weight: 800;
  line-height: 24px;
}

.brand-copy span {
  color: var(--type-muted);
  font-size: 11px;
  line-height: 16px;
}

.notice-row {
  min-height: 42px;
  gap: 8px;
  padding: 7px 10px;
  text-align: left;
}

.notice-row strong {
  display: grid;
  width: 24px;
  height: 24px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: #f5e5d5;
  color: #976438;
  font-size: 14px;
}

.notice-row span {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  color: #5f646c;
  font-size: 12px;
  font-weight: 550;
  line-height: 17px;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.balance-line,
.profile-balance strong,
.wallet-card strong {
  color: var(--type-strong);
  font-family: "DIN Alternate", "Avenir Next", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.balance-line {
  font-size: 16px;
  line-height: 21px;
}

.account-name {
  color: var(--type-muted);
  font-size: 11px;
  font-weight: 550;
  line-height: 15px;
}

.category-tab span {
  color: #8d929a;
  font-size: 12px;
  font-weight: 650;
  line-height: 17px;
}

.category-tab.active span {
  color: #2c2f34;
  font-weight: 800;
}

.status-badge {
  color: #fff;
  font-size: 10px;
  font-weight: 750;
  line-height: 20px;
}

.section-title {
  display: flex;
  min-height: 25px;
  align-items: center;
  gap: 8px;
  color: var(--type-strong);
  font-size: 16px;
  font-weight: 800;
  line-height: 22px;
}

.section-title::before {
  content: "";
  width: 3px;
  height: 15px;
  flex: none;
  border-radius: 2px;
  background: #c58d5a;
}

.plain-action,
.suffix-button {
  color: var(--type-accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
}

.tabs button,
.source-tabs button,
.event-tabs button {
  color: #757b84;
  font-size: 13px;
  font-weight: 650;
  line-height: 19px;
}

.tabs button.active,
.source-tabs button.active,
.event-tabs button.active {
  color: #99663b;
  font-weight: 800;
}

.event-tabs button small {
  color: #a2a7ae;
  font-size: 10px;
  font-weight: 600;
}

.option-list,
.accordion-list,
.message-list {
  border: 1px solid #e8eaed;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(35, 39, 45, 0.05);
}

.option-row,
.accordion-button,
.message-row {
  min-height: 62px;
  padding: 11px 13px;
  border-bottom-color: #eceef1;
}

.row-copy strong {
  color: var(--type-strong);
  font-size: 14px;
  font-weight: 750;
  line-height: 20px;
}

.row-copy small {
  margin-top: 4px;
  color: var(--type-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
}

[data-view="billiards"] .match-list-row {
  min-height: 80px;
  align-items: center;
  padding-block: 18px;
  border: 1px solid #e7e9ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(35, 39, 45, 0.05);
}

[data-view="billiards"] .match-list {
  display: grid;
  gap: 14px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

[data-view="billiards"] .match-list-row:active {
  background: #f8f9fa;
}

.match-result-list {
  display: grid;
  gap: 16px;
  padding-bottom: 16px;
}

.match-result-card {
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e7e9ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(35, 39, 45, 0.055);
  text-align: inherit;
}

.match-result-card:active {
  background: #f8f9fa;
}

.match-result-card:focus-visible {
  outline: 2px solid #a86f3f;
  outline-offset: 2px;
}

.match-result-header {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid #eff0f2;
  background: #fff;
  color: var(--type-strong);
  font-size: 13px;
  font-weight: 800;
  line-height: 20px;
  text-align: left;
}

.match-result-header::before {
  content: "";
  width: 3px;
  height: 15px;
  flex: none;
  border-radius: 2px;
  background: #c58d5a;
}

.match-result-meta,
.match-result-score {
  display: grid;
  grid-template-columns: minmax(76px, .72fr) repeat(2, minmax(0, 1fr));
  align-items: center;
  column-gap: 10px;
  padding-inline: 14px;
  text-align: center;
}

.match-result-meta {
  padding-top: 14px;
}

.match-result-meta time {
  color: var(--type-muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 16px;
  white-space: nowrap;
}

.match-result-meta strong {
  min-width: 0;
  overflow: hidden;
  color: var(--type-strong);
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-result-score {
  padding-top: 10px;
  padding-bottom: 15px;
}

.match-result-score span {
  color: var(--type-muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 18px;
}

.match-result-score b {
  display: grid;
  min-height: 44px;
  place-items: center;
  border-radius: 6px;
  background: #f5f1ed;
  color: #8c572f;
  font-family: "DIN Alternate", "Avenir Next", sans-serif;
  font-size: 19px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.match-list-row .row-copy {
  flex: 0 1 38%;
}

.match-list-teams {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: #4b5058;
  font-size: 12px;
  font-weight: 650;
  line-height: 18px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-list-teams b {
  display: inline-block;
  margin: 0 3px;
  color: #9c6739;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 700;
}

.message-list-row .row-copy small {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.record-row {
  gap: 12px;
}

.record-row:active {
  background: #f7f8f9;
}

.record-title-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.record-title-line strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-source {
  display: inline-flex;
  flex: none;
  min-height: 18px;
  align-items: center;
  padding: 0 5px;
  border: 1px solid #f2d7d9;
  border-radius: 3px;
  background: #fff5f5;
  color: #c53542;
  font-size: 9px;
  font-weight: 750;
  line-height: 16px;
  white-space: nowrap;
}

.record-chevron {
  flex: none;
  color: #a9adb3;
  font-size: 20px;
  line-height: 20px;
}

.record-value {
  flex: none;
  text-align: right;
}

.record-value strong {
  display: block;
  color: #2f3339;
  font-family: "DIN Alternate", "Avenir Next", sans-serif;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  line-height: 21px;
}

.record-value small,
.account-state {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  margin-top: 4px;
  padding: 0 7px;
  border-radius: 4px;
  background: #eef0f2;
  color: #717780;
  font-size: 10px;
  font-weight: 700;
  line-height: 20px;
}

.account-state.is-active {
  background: #e7f3ef;
  color: var(--type-positive);
}

.bet-detail-card {
  overflow: hidden;
  border: 1px solid #e4e6e9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(35, 39, 45, 0.05);
}

.bet-detail-head {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 15px;
  border-bottom: 1px solid #eceef1;
}

.bet-detail-head > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bet-detail-head > div > span {
  color: #34383e;
  font-size: 15px;
  font-weight: 800;
}

.bet-detail-head small {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border-radius: 4px;
  background: #eef0f2;
  color: #686f78;
  font-size: 10px;
  font-weight: 750;
}

.bet-detail-head small.is-won { background: #e7f3ef; color: var(--type-positive); }
.bet-detail-head small.is-lost { background: #faeceb; color: #a84d45; }
.bet-detail-head small.is-pending { background: #fbf0df; color: var(--type-warning); }
.bet-detail-head small.is-settled { background: #e7f3ef; color: var(--type-positive); }

.bet-detail-head > strong {
  color: #2f3339;
  font-family: "DIN Alternate", "Avenir Next", sans-serif;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.bet-detail-event {
  padding: 18px 15px;
  border-bottom: 1px solid #eceef1;
}

.bet-detail-event > span {
  color: #98643a;
  font-size: 11px;
  font-weight: 750;
}

.bet-detail-event h2 {
  margin: 8px 0 7px;
  overflow-wrap: anywhere;
  color: #30343a;
  font-size: 17px;
  line-height: 25px;
}

.bet-detail-event h2 small {
  margin: 0 5px;
  color: #a3a7ad;
  font-size: 10px;
}

.bet-detail-event p {
  color: #737981;
  font-size: 12px;
  line-height: 19px;
}

.bet-detail-event p strong { color: #3d4249; }
.bet-detail-event p b { margin-left: 5px; color: #a66f3f; }

.bet-detail-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid #eceef1;
}

.bet-detail-values div {
  min-width: 0;
  padding: 15px 8px;
  text-align: center;
}

.bet-detail-values div + div { border-left: 1px solid #eceef1; }

.bet-detail-values span,
.bet-detail-values strong {
  display: block;
}

.bet-detail-values span {
  color: #858a91;
  font-size: 10px;
}

.bet-detail-values strong {
  margin-top: 6px;
  overflow-wrap: anywhere;
  color: #33383f;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.bet-detail-values strong.positive { color: var(--type-positive); }
.bet-detail-values strong.negative { color: #a84d45; }

.bet-detail-rows {
  margin: 0;
  padding: 5px 15px;
}

.bet-detail-rows > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #f0f1f3;
  font-size: 12px;
  line-height: 18px;
}

.bet-detail-rows > div:last-child { border-bottom: 0; }
.bet-detail-rows dt { color: #8a8f96; }
.bet-detail-rows dd { margin: 0; overflow-wrap: anywhere; color: #3c4148; text-align: right; }

.bet-detail-note {
  padding: 14px 15px;
  border-top: 1px solid #eceef1;
  background: #f7f8f9;
}

.bet-detail-note span {
  color: #777d85;
  font-size: 11px;
  font-weight: 750;
}

.bet-detail-note p {
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: #454a51;
  font-size: 12px;
  line-height: 19px;
}

.field-label,
.source-field-label {
  color: #33373d;
  font-size: 14px;
  font-weight: 750;
  line-height: 20px;
}

.input-wrap input,
.input-wrap textarea,
.input-wrap select,
.source-field-card input,
.source-pg-content input {
  color: #2f3339;
  font-size: 15px;
  font-weight: 550;
  line-height: 22px;
}

.input-wrap input::placeholder,
.input-wrap textarea::placeholder,
.source-field-card input::placeholder,
.source-pg-content input::placeholder {
  color: #a8adb5;
  font-size: 13px;
  font-weight: 450;
}

.helper-text {
  color: var(--type-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 17px;
}

.source-channel-head h2 {
  color: var(--type-strong);
  font-size: 16px;
  font-weight: 800;
  line-height: 22px;
}

.source-channel-closed,
.source-history-empty,
.source-pg-empty,
.source-welfare-empty {
  color: var(--type-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 19px;
}

.source-warning,
.source-upload-warning {
  color: var(--type-warning);
  font-size: 11px;
  font-weight: 550;
  line-height: 17px;
}

.primary-button,
.secondary-button,
.danger-button,
.source-submit {
  font-size: 15px;
  font-weight: 750;
  line-height: 21px;
}

.account-type span:last-child {
  color: #41464d;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
}

.account-type.active span:last-child {
  color: #8f5d34;
}

.metric-card span {
  color: var(--type-muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 16px;
}

.metric-card strong {
  color: var(--type-strong);
  font-family: "DIN Alternate", "Avenir Next", -apple-system, sans-serif;
  font-size: 23px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  line-height: 29px;
}

.empty-state {
  color: var(--type-muted);
  font-size: 13px;
  font-weight: 550;
  line-height: 19px;
}

.empty-state strong {
  color: #4d525a;
  font-size: 14px;
  font-weight: 750;
  line-height: 20px;
}

.empty-state.compact {
  min-height: 150px;
  gap: 5px;
}

.empty-state.compact span {
  color: var(--type-faint);
  font-size: 11px;
}

[data-view="profile"] .profile-copy.plain-action strong {
  color: var(--type-strong);
  font-size: 19px;
  font-weight: 800;
  line-height: 26px;
}

[data-view="profile"] .profile-copy.plain-action span {
  color: var(--type-muted);
  font-size: 12px;
  font-weight: 550;
  line-height: 17px;
}

[data-view="profile"] .section-title {
  font-size: 16px;
  font-weight: 800;
}

[data-view="profile"] .menu-item span {
  color: #454a51;
  font-size: 12px;
  font-weight: 650;
  line-height: 17px;
}

[data-view="profile"] .feature-menu span {
  color: #30343a;
  font-size: 13px;
  font-weight: 750;
}

[data-view="profile"] .profile-balance .helper-text {
  color: #77604b;
  font-size: 11px;
  font-weight: 650;
}

[data-view="help"] .row-copy strong {
  color: var(--type-strong);
  font-size: 14px;
  font-weight: 750;
  line-height: 20px;
}

[data-view="help"] .row-copy small {
  color: var(--type-muted);
  font-size: 11px;
  font-weight: 550;
  line-height: 16px;
}

[data-view="help"] .accordion-content-inner,
[data-view="help"] .accordion-content-inner p {
  color: #555b63;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
}

[data-view="help"] .help-contact,
[data-view="help"] .help-contact > button {
  color: #454a52;
  font-size: 13px;
  font-weight: 650;
}

[data-view="login"] .segmented-tabs button,
[data-view="register"] .segmented-tabs button {
  color: #8d9299;
  font-size: 16px;
  font-weight: 650;
}

[data-view="login"] .segmented-tabs button.active,
[data-view="register"] .segmented-tabs button.active {
  color: #a96f3e;
  font-weight: 800;
}

[data-view="login"] .field-label,
[data-view="register"] .field-label {
  color: #2d3137;
  font-size: 14px;
  font-weight: 750;
  line-height: 20px;
}

[data-view="login"] .input-wrap input,
[data-view="register"] .input-wrap input {
  color: #25292f;
  font-size: 15px;
  font-weight: 550;
}

[data-view="login"] .check-row label {
  color: #666c74;
  font-size: 13px;
  font-weight: 550;
}

[data-view="login"] .check-row .plain-action,
[data-view="register"] .auth-switch-link {
  font-size: 13px;
  font-weight: 650;
}

[data-view="register"] .auth-switch-link strong {
  color: var(--type-accent);
  font-weight: 800;
}

[data-view="register"] .helper-text {
  color: #a25349;
  font-size: 11px;
  font-weight: 550;
  line-height: 17px;
}

[data-view="rules"] .rule-title {
  color: #33291f;
  font-size: 15px;
  font-weight: 800;
  line-height: 22px;
}

[data-view="rules"] .rule-copy {
  color: #50565e;
  font-size: 13px;
  font-weight: 500;
  line-height: 23px;
}

.settings-profile strong {
  color: var(--type-strong);
  font-size: 16px;
  font-weight: 800;
  line-height: 22px;
}

.modal h2 {
  color: var(--type-strong);
  font-size: 18px;
  font-weight: 800;
  line-height: 25px;
}

.modal p {
  color: #666c74;
  font-size: 13px;
  font-weight: 500;
  line-height: 21px;
}

.toast {
  font-size: 13px;
  font-weight: 650;
  line-height: 19px;
}

.chat-bubble {
  color: #33373d;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
}

.chat-time {
  color: #868c94;
  font-size: 10px;
  font-weight: 550;
  line-height: 15px;
}

.invite-content h1 {
  font-size: 25px;
  font-weight: 850;
  line-height: 33px;
}

.invite-line span {
  font-size: 12px;
  font-weight: 650;
  line-height: 17px;
}

.invite-line strong {
  font-family: "DIN Alternate", "Avenir Next", sans-serif;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  line-height: 18px;
}

[data-view="business"] .business-headline h2 {
  font-size: 30px;
  font-weight: 850;
  line-height: 39px;
}

[data-view="business"] .business-headline p {
  font-size: 16px;
  font-weight: 700;
  line-height: 23px;
}

[data-view="business"] .business-contact strong {
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
}

[data-view="business"] .business-contact div > span {
  color: #70767f;
  font-size: 11px;
  font-weight: 550;
  line-height: 16px;
}

[data-view="business"] .business-contact > button {
  color: #8c5a32;
  font-size: 12px;
  font-weight: 800;
}

[data-view="first-recharge"] .rules-intro {
  color: #735234;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
}

[data-view="first-recharge"] .promotion-row {
  color: #4b5058;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}

[data-view="first-recharge"] .promotion-row:first-child {
  color: #382c21;
  font-weight: 800;
}

.pg-game-loading {
  color: #4c5159;
  font-size: 13px;
  font-weight: 700;
  line-height: 19px;
}

@media (max-width: 350px) {
  .match-list-row .row-copy {
    flex-basis: 34%;
  }

  .match-list-teams {
    font-size: 11px;
  }

  [data-view="business"] .business-headline h2 {
    font-size: 27px;
    line-height: 35px;
  }
}

/* Complete typography coverage for detail, commerce, and conversational views. */
.record-value small.is-won {
  background: #e7f3ef;
  color: var(--type-positive);
}

.record-value small.is-lost {
  background: #faeceb;
  color: #a84d45;
}

.record-value small.is-pending {
  background: #fbf0df;
  color: var(--type-warning);
}

.record-value small.is-void {
  background: #eef0f2;
  color: #686f78;
}

.details-section-title {
  color: var(--type-strong);
  font-size: 16px;
  font-weight: 800;
  line-height: 22px;
}

.details-section-title small {
  color: var(--type-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
}

.match-league {
  color: #202328;
  font-size: 12px;
  font-weight: 700;
  line-height: 17px;
}

.match-status,
.market-status {
  font-size: 10px;
  font-weight: 750;
  line-height: 16px;
}

.match-team strong {
  font-size: 15px;
  font-weight: 800;
  line-height: 21px;
}

.match-team small,
.match-versus span {
  color: var(--type-muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 15px;
}

.match-versus strong {
  font-family: "DIN Alternate", "Avenir Next", sans-serif;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.market-card header span {
  color: var(--type-muted);
  font-size: 10px;
  font-weight: 650;
  line-height: 15px;
}

.market-card header strong {
  color: var(--type-strong);
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
}

.odds-option span {
  color: #555b63;
  font-size: 12px;
  font-weight: 650;
  line-height: 17px;
}

.odds-option strong {
  color: #945f35;
  font-family: "DIN Alternate", "Avenir Next", sans-serif;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 22px;
}

.odds-stopped strong {
  color: #555b63;
  font-size: 14px;
  font-weight: 750;
  line-height: 20px;
}

.odds-stopped > span:last-child {
  color: var(--type-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
}

.copy-line {
  color: #4b5058;
  font-weight: 600;
  line-height: 19px;
}

.copy-button,
.chat-send,
.competition-reload {
  font-size: 13px;
  font-weight: 750;
  line-height: 19px;
}

.chat-compose textarea {
  color: #34383e;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.chat-compose textarea::placeholder {
  color: #a3a8b0;
  font-size: 13px;
  font-weight: 450;
}

/* V9-inspired application shell. Brand, content, and product assets remain Mango Sports. */
:root {
  --page: #f4f6fa;
  --surface: #ffffff;
  --surface-soft: #f4f6fa;
  --ink: #1f2734;
  --muted: rgba(31, 39, 52, 0.52);
  --line: #e8ebf0;
  --gold: #e60013;
  --gold-soft: #ffe7e9;
  --gold-pale: #fff4f5;
  --orange: #e60013;
  --green: #14a36f;
  --red: #e60013;
  --charcoal: #1f2734;
  --shadow: none;
  --site-header-height: 54px;
  --site-left-width: 208px;
  --site-right-width: 248px;
  --site-radius: 7px;
  --type-strong: #1f2734;
  --type-body: #4e5969;
  --type-muted: #89909b;
  --type-positive: #11875d;
  --type-warning: #b76b00;
  color: var(--ink);
  background: var(--page);
}

* {
  letter-spacing: 0;
}

html,
body {
  background: var(--page);
}

body {
  color: var(--ink);
}

#app {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  overflow: visible;
  background: var(--page);
  box-shadow: none;
}

#app:has(.site-page) {
  width: 100% !important;
  max-width: none !important;
}

.app-page.site-page {
  position: relative;
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh;
  margin: 0 !important;
  overflow: visible !important;
  background: var(--page);
  color: var(--ink);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: var(--site-left-width) minmax(0, 1fr) var(--site-right-width);
  align-items: center;
  width: 100%;
  height: var(--site-header-height);
  padding: 0 7px;
  border-bottom: 1px solid rgba(222, 226, 233, 0.82);
  background: rgba(244, 246, 250, 0.94);
  backdrop-filter: blur(16px);
}

.site-header button,
.site-left-rail button,
.site-right-rail button {
  font: inherit;
}

.site-header-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  width: 194px;
  height: 32px;
  overflow: hidden;
  border: 1px solid #e5e8ed;
  border-radius: var(--site-radius);
  background: #fff;
}

.site-header-products button {
  height: 100%;
  background: transparent;
  color: #737b88;
  font-size: 13px;
  font-weight: 700;
}

.site-header-products button.active {
  background: #1f2734;
  color: #fff;
}

.site-header-center {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
}

.site-header-brand {
  display: grid;
  width: 112px;
  height: 38px;
  flex: none;
  place-items: center;
  background: transparent;
}

.site-header-brand img {
  display: block;
  width: 100%;
  height: 34px;
  object-fit: contain;
}

.site-header-notice {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 9px;
  height: 32px;
  padding: 0 12px;
  overflow: hidden;
  border-radius: var(--site-radius);
  background: #fff;
  color: #697281;
  text-align: left;
}

.site-header-notice strong {
  flex: none;
  color: var(--red);
  font-size: 12px;
}

.site-header-notice span {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-header-account {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-left: 10px;
}

.site-login-button,
.site-register-button,
.site-header-link {
  min-width: 70px;
  height: 32px;
  padding: 0 15px;
  border-radius: var(--site-radius);
  font-size: 13px;
  font-weight: 750;
}

.site-login-button,
.site-header-link {
  border: 1px solid #dfe3e9;
  background: #fff;
  color: #313a48;
}

.site-register-button {
  background: var(--red);
  color: #fff;
}

.site-balance {
  display: flex;
  min-width: 104px;
  flex-direction: column;
  align-items: flex-end;
  background: transparent;
  color: #6e7785;
  font-size: 10px;
}

.site-balance strong {
  margin-top: 1px;
  color: #202836;
  font-size: 13px;
}

.site-left-rail,
.site-right-rail {
  position: fixed;
  z-index: 50;
  top: 0;
  bottom: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

.site-left-rail::-webkit-scrollbar,
.site-right-rail::-webkit-scrollbar {
  display: none;
}

.site-left-rail {
  left: 0;
  width: var(--site-left-width);
  padding: 0 0 14px 7px;
}

.site-right-rail {
  right: 0;
  width: var(--site-right-width);
  padding: 0 7px 14px 0;
}

.site-rail-spacer {
  height: var(--site-header-height);
}

.site-nav-card {
  padding: 7px;
  border-radius: var(--site-radius);
  background: #fff;
}

.site-nav-card + .site-nav-card {
  margin-top: 7px;
}

.site-nav-item {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  width: 100%;
  height: 38px;
  align-items: center;
  padding: 0 10px;
  border-radius: 5px;
  background: transparent;
  color: #626b79;
  font-size: 13px;
  text-align: left;
}

.site-nav-item:hover {
  background: #f4f6fa;
  color: #1f2734;
}

.site-nav-item.active {
  background: #ffecee;
  color: var(--red);
  font-weight: 750;
}

.site-nav-item.active::before {
  position: absolute;
  left: 0;
  width: 3px;
  height: 18px;
  border-radius: 0 3px 3px 0;
  background: var(--red);
  content: "";
}

.site-nav-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 5px;
  color: currentColor;
  font-size: 15px;
  line-height: 1;
}

.site-nav-item small {
  min-width: 22px;
  padding: 2px 5px;
  border-radius: 8px;
  background: #eef0f4;
  color: #8a919c;
  font-size: 9px;
  font-style: normal;
  text-align: center;
}

.site-nav-item.active small {
  background: var(--red);
  color: #fff;
}

.site-promo-card {
  display: flex;
  width: 100%;
  height: 54px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--site-radius);
  text-align: left;
}

.site-promo-card span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-promo-card strong {
  font-size: 13px;
}

.site-promo-card small {
  opacity: 0.7;
  font-size: 10px;
}

.site-promo-card b {
  font-size: 21px;
}

.site-promo-card.is-invite {
  border-color: #d8eafb;
  background: linear-gradient(90deg, #fff, #e5f3ff);
  color: #2278bc;
}

.site-promo-card.is-reward {
  border-color: #f4d9dc;
  background: linear-gradient(90deg, #fff, #ffe7e9);
  color: #b52626;
}

.site-app-card {
  display: flex;
  min-height: 214px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: var(--site-radius);
  background: #fff;
  color: #687180;
  text-align: center;
}

.site-app-card > img {
  width: 118px;
  height: 52px;
  object-fit: contain;
}

.site-app-card > strong {
  margin-top: 14px;
  color: #1f2734;
  font-size: 15px;
}

.site-app-card > span {
  max-width: 170px;
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.6;
}

.site-app-card > button {
  height: 32px;
  margin-top: 16px;
  padding: 0 18px;
  border-radius: 5px;
  background: #1f2734;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.site-main-column {
  min-width: 0;
  min-height: 100vh;
  margin-right: var(--site-right-width);
  margin-left: var(--site-left-width);
  padding-top: var(--site-header-height);
}

.site-main-column > .top-bar {
  position: sticky;
  z-index: 30;
  top: var(--site-header-height);
  grid-template-columns: 56px 1fr 56px;
  height: 48px;
  margin: 0 14px;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.site-main-column .top-title {
  color: #1f2734;
  font-size: 15px;
  font-weight: 750;
}

.site-main-column .icon-button {
  width: 40px;
  height: 40px;
  color: #5d6674;
  font-family: inherit;
  font-size: 25px;
}

.site-main-column .icon-button::before {
  content: "‹";
  font-family: inherit;
}

.site-main-column .page-main {
  width: 100%;
  max-width: none;
  min-height: 640px;
  padding: 14px;
  background: transparent !important;
  color: var(--ink);
}

.site-main-column .page-main.no-bar {
  min-height: 640px;
  padding-top: 14px;
}

.site-main-column .page-main.flush {
  padding-right: 14px;
  padding-left: 14px;
}

.site-home-banner {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 4.36 / 1;
  min-height: 150px;
  max-height: 220px;
  overflow: hidden;
  border-radius: var(--site-radius);
  background: #dfe3ea;
  box-shadow: none;
  touch-action: pan-y;
}

#app [data-view="home"] .site-home-banner {
  height: auto !important;
  aspect-ratio: 4.36 / 1 !important;
}

.site-home-banner .frozen-banner-track,
.site-home-banner .banner-link,
.site-home-banner .banner-link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.site-home-banner .banner-link {
  display: block;
  padding: 0;
  opacity: 0;
  background: transparent;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.site-home-banner .banner-link.active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}

.site-home-banner .banner-link img {
  display: block;
  object-fit: cover;
}

.site-home-banner .frozen-banner-dots {
  position: absolute;
  z-index: 4;
  right: auto;
  bottom: 12px;
  left: 14px;
  display: flex;
  gap: 5px;
  transform: none;
}

.site-home-banner .frozen-banner-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.site-home-banner .frozen-banner-dots button.active {
  width: 20px;
  border-radius: 6px;
  background: #fff;
}

.site-mobile-announcement {
  display: none;
}

.site-home-section {
  margin-top: 14px;
}

.site-section-head {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.site-section-head h1,
.site-section-head h2 {
  color: #1f2734;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.site-section-head h2 small {
  color: #9097a1;
  font-size: 11px;
  font-weight: 600;
}

.site-section-head > button {
  padding: 7px 0 7px 10px;
  background: transparent;
  color: #8a919c;
  font-size: 11px;
}

.site-section-head > button span {
  color: var(--red);
  font-size: 15px;
}

.site-explore-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.site-explore-card {
  position: relative;
  height: 158px;
  overflow: hidden;
  border-radius: var(--site-radius);
  background: #202733;
  color: #fff;
  text-align: left;
}

.site-explore-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 22, 29, 0.92), rgba(18, 22, 29, 0.2));
  content: "";
}

.site-live-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 4px;
  background: rgba(201, 0, 17, 0.92);
  box-shadow: 0 3px 10px rgba(31, 39, 52, 0.2);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.site-live-badge i {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
  animation: site-live-pulse 1.6s ease-in-out infinite;
}

@keyframes site-live-pulse {
  50% {
    opacity: 0.48;
    transform: scale(0.72);
  }
}

.site-explore-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-explore-card > span {
  position: relative;
  z-index: 1;
  display: flex;
  width: 70%;
  height: 100%;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
}

.site-explore-card-billiards.has-live-match > span {
  justify-content: flex-start;
  padding-top: 46px;
}

.site-explore-card strong {
  font-size: 20px;
}

.site-explore-card small {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
}

.site-explore-card b {
  position: absolute;
  bottom: 10px;
  left: 20px;
  min-width: 104px;
  margin-top: 0;
  padding: 8px 16px;
  border-radius: 18px;
  background: #fff;
  color: #1f2734;
  font-size: 11px;
  text-align: center;
}

.site-game-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: 10px;
}

.site-game-shelf {
  min-width: 0;
}

.site-game-tile {
  position: relative;
  display: grid;
  grid-template-rows: auto 42px;
  width: 100%;
  height: auto;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #edf0f4;
  border-radius: var(--site-radius);
  background: #fff;
  text-align: left;
}

.site-game-tile > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.1 / 1;
  object-fit: cover;
}

.site-game-tile > span {
  display: flex;
  height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.site-game-tile strong {
  color: #1f2734;
  font-size: 12px;
}

.site-game-tile small {
  color: #939aa5;
  font-size: 9px;
}

/* Shared component restyle across every existing route. */
.wallet-card,
.profile-head,
.profile-balance,
.menu-grid,
.option-list,
.rule-card,
.source-channel-card,
.source-field-card,
.source-warning,
.source-history-empty,
.source-system-scroll,
.source-pg-search,
.source-pg-tabs,
.source-pg-empty,
.source-welfare-empty,
.event-tabs,
.match-result-card,
.market-card,
.details-wallet,
.guest-message-panel,
.announcement-card,
.accordion-item,
.chat-log,
.chat-compose,
.business-card,
.settings-card,
.stats-grid,
.metric-card,
.promotion-table {
  border-color: var(--line);
  border-radius: var(--site-radius);
  background: #fff;
  box-shadow: none;
}

.primary-button,
.source-submit,
.chat-send,
.copy-button,
.match-load-more {
  border-radius: 5px;
  background: var(--red);
  color: #fff;
  box-shadow: none;
}

.primary-button:hover,
.source-submit:hover:not(:disabled),
.chat-send:hover,
.copy-button:hover {
  background: #c90011;
}

.secondary-button {
  border: 1px solid #dde1e7;
  border-radius: 5px;
  background: #fff;
  color: #4d5664;
}

.plain-action,
.suffix-button,
.auth-switch-link strong,
.announcement-more,
.chevron {
  color: var(--red);
}

.tabs,
.segmented-tabs,
.source-tabs {
  border-color: var(--line);
  background: #fff;
}

.tabs button.active,
.segmented-tabs button.active,
.source-tabs button.active,
.source-pg-tabs button.active {
  color: var(--red);
}

.tabs button.active::after,
.segmented-tabs button.active::after,
.source-tabs button.active::after,
.source-pg-tabs button.active::after {
  background: var(--red);
}

.input-wrap,
.input-wrap.boxed,
.source-field-card,
.source-pg-content,
.chat-compose textarea {
  border-color: #dfe3e8;
  border-radius: 5px;
  background: #f7f8fa;
}

.input-wrap {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #dfe3e8;
}

.password-toggle {
  width: 36px;
  min-width: 36px;
  flex: 0 0 36px;
  padding: 0;
  overflow: hidden;
}

.input-wrap:focus-within,
.source-field-card:focus-within,
.source-pg-content:focus-within,
.chat-compose textarea:focus {
  border-color: var(--red);
  box-shadow: none;
}

.auth-page {
  width: min(100%, 520px);
  min-height: 0;
  margin: 36px auto;
  padding: 38px 44px 44px;
  border: 1px solid var(--line);
  border-radius: var(--site-radius);
  background: #fff;
}

.gradient-background {
  display: none;
}

.auth-brand {
  margin-bottom: 30px;
}

.auth-logo {
  width: 180px;
  max-height: 72px;
  object-fit: contain;
}

.form-stack {
  gap: 16px;
  margin-top: 20px;
}

.field-label,
.source-field-label,
.section-title,
.details-section-title {
  color: #1f2734;
}

.required,
.source-channel-head h2 span,
.source-field-label span {
  color: var(--red);
}

.profile-head {
  min-height: 110px;
  padding: 20px;
}

.profile-avatar,
.profile-avatar-button {
  border-color: #fff;
  box-shadow: 0 0 0 2px #e4e8ed;
}

.profile-balance {
  margin-top: 10px;
  padding: 18px 20px;
}

.menu-grid {
  padding: 8px;
}

.menu-item {
  border-radius: 5px;
  background: transparent;
}

.menu-item:hover {
  background: #f4f6fa;
}

.option-row,
.record-row,
.message-list-row {
  border-color: var(--line);
  background: #fff;
}

.account-type.active,
.odds-option.active,
.event-tabs button.active {
  border-color: var(--red);
  background: #fff0f1;
  color: var(--red);
}

.source-warning {
  border: 1px solid #f4e1c1;
  background: #fff9ef;
  color: #9a670e;
}

.source-channel-card,
.source-field-card,
.wallet-card,
.event-tabs,
.source-pg-search,
.source-pg-tabs {
  margin-bottom: 10px;
}

.source-pg-content {
  flex: 1;
}

.pg-vendor-sidebar {
  border-color: var(--line);
  background: #fff;
}

.pg-vendor-button.active {
  border-color: var(--red);
  background: #fff0f1;
  color: var(--red);
}

.pg-game-card,
.pg-game-tile {
  border-color: var(--line);
  border-radius: var(--site-radius);
  background: #fff;
  box-shadow: none;
}

.toast {
  z-index: 300;
  border-radius: 5px;
  background: rgba(31, 39, 52, 0.94);
  box-shadow: 0 8px 30px rgba(20, 26, 35, 0.2);
}

.announcement-prompt-layer,
.modal-layer {
  z-index: 250;
}

.announcement-prompt,
.modal,
.single-bet-sheet {
  border-radius: var(--site-radius);
}

.immersive-page {
  width: 100%;
  max-width: none;
  min-height: var(--visual-viewport-height);
  background: #0e1116;
}

.immersive-page .page-main {
  width: 100%;
  max-width: none;
  min-height: var(--visual-viewport-height);
  padding: 0;
}

@media (max-width: 1080px) {
  :root {
    --site-left-width: 196px;
  }

  .site-header {
    grid-template-columns: var(--site-left-width) minmax(0, 1fr) 228px;
  }

  .site-right-rail {
    display: none;
  }

  .site-main-column {
    margin-right: 0;
  }

}

@media (min-width: 761px) {
  .site-mobile-nav {
    display: none !important;
  }
}

@media (max-width: 760px) {
  :root {
    --site-header-height: 56px;
  }

  body {
    min-width: 0;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.96);
  }

  .site-header-products,
  .site-header-notice,
  .site-left-rail,
  .site-right-rail,
  .site-header-link,
  .site-balance span {
    display: none;
  }

  .site-header-center {
    padding: 0;
  }

  .site-header-brand {
    width: 116px;
    justify-content: start;
  }

  .site-header-account {
    gap: 6px;
    padding: 0;
  }

  .site-login-button,
  .site-register-button {
    min-width: 56px;
    height: 31px;
    padding: 0 11px;
    font-size: 12px;
  }

  .site-balance {
    min-width: 80px;
    align-items: flex-end;
  }

  .site-main-column {
    width: 100%;
    margin: 0;
  }

  .site-main-column > .top-bar {
    top: var(--site-header-height);
    margin: 0;
    border-radius: 0;
  }

  .site-main-column .page-main,
  .site-main-column .page-main.no-bar,
  .site-main-column .page-main.flush {
    min-height: calc(100vh - var(--site-header-height));
    padding: 10px 10px calc(84px + env(safe-area-inset-bottom));
  }

  .site-main-column .page-main.flush {
    padding-right: 0;
    padding-left: 0;
  }

  #app [data-view="home"] .site-home-banner {
    min-height: 0;
    max-height: none;
    aspect-ratio: 2.45 / 1 !important;
  }

  .site-mobile-announcement {
    display: flex;
    width: 100%;
    height: 38px;
    align-items: center;
    gap: 8px;
    margin-top: 9px;
    padding: 0 11px;
    overflow: hidden;
    border-radius: 5px;
    background: #fff;
    text-align: left;
  }

  .site-mobile-announcement strong {
    flex: none;
    color: var(--red);
    font-size: 11px;
  }

  .site-mobile-announcement > .site-announcement-viewport {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: #747d8b;
    font-size: 11px;
    white-space: nowrap;
  }

  .site-announcement-track {
    display: flex;
    width: max-content;
    animation: site-announcement-marquee var(--announcement-duration, 18s) linear infinite;
    will-change: transform;
  }

  .site-announcement-copy {
    flex: none;
    padding-right: 40px;
  }

  .site-mobile-announcement:hover .site-announcement-track,
  .site-mobile-announcement:focus-visible .site-announcement-track {
    animation-play-state: paused;
  }

  .site-mobile-announcement b {
    color: var(--red);
  }

  .site-home-section {
    margin-top: 12px;
  }

  .site-section-head h1,
  .site-section-head h2 {
    font-size: 15px;
  }

  .site-explore-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-explore-card {
    height: 132px;
  }

  .site-live-badge {
    top: 10px;
    left: 10px;
  }

  .site-explore-card-billiards.has-live-match > span {
    padding-top: 40px;
  }

  .site-explore-card > span {
    width: 76%;
    padding: 16px;
  }

  .site-explore-card strong {
    font-size: 17px;
  }

  .site-explore-card b {
    bottom: 8px;
    left: 16px;
    padding: 7px 14px;
  }

  .site-game-strip {
    gap: 8px;
  }

  #app .site-mobile-nav {
    position: fixed;
    z-index: 90;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    height: calc(64px + env(safe-area-inset-bottom));
    padding: 0 max(8px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px, env(safe-area-inset-left));
    transform: none;
    border: 0;
    border-top: 1px solid rgba(222, 226, 233, 0.9);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -6px 22px rgba(31, 39, 52, 0.08);
    backdrop-filter: blur(14px);
  }

  #app .site-mobile-nav .frozen-tabbar-item {
    position: relative;
    display: flex;
    min-width: 0;
    height: 64px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    padding: 6px 0 5px;
    border-radius: 0;
    background: transparent;
    color: #7d8592;
    touch-action: manipulation;
  }

  #app .site-mobile-nav .frozen-tabbar-item.active {
    color: var(--red);
  }

  #app .site-mobile-nav .frozen-tabbar-item.active::before {
    display: none;
  }

  #app .site-mobile-nav .frozen-tabbar-icon {
    position: relative;
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    color: inherit;
    font-family: inherit;
    font-size: 16px;
    line-height: 1;
  }

  #app .site-mobile-nav .frozen-tabbar-item.active:not(.is-featured) .frozen-tabbar-icon {
    background: #fff0f1;
  }

  #app .site-mobile-nav .frozen-tabbar-icon img {
    position: absolute;
    inset: 3px;
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    object-fit: contain;
  }

  #app .site-mobile-nav .frozen-tabbar-item.is-featured .frozen-tabbar-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    margin-top: -12px;
    overflow: visible;
    border: 3px solid #fff;
    border-radius: 12px;
    background: var(--red);
    box-shadow: 0 5px 13px rgba(230, 0, 19, 0.24);
    color: #fff;
  }

  #app .site-mobile-nav .frozen-tabbar-item.is-featured.active .frozen-tabbar-icon {
    background: #c90011;
  }

  #app .site-mobile-nav .frozen-tabbar-item.is-featured .frozen-tabbar-icon b {
    font-size: 15px;
    line-height: 1;
  }

  #app .site-mobile-nav .frozen-tabbar-label {
    color: inherit;
    font-size: 10px;
    font-weight: 700;
    line-height: 13px;
    text-align: center;
  }

  #app .site-mobile-nav .frozen-tabbar-item.is-featured .frozen-tabbar-label {
    margin-top: -2px;
  }

  .auth-page {
    width: 100%;
    margin: 0;
    padding: 28px 22px 38px;
    border: 0;
  }

  .profile-head,
  .profile-balance,
  .menu-grid {
    border-radius: var(--site-radius);
  }
}

@media (max-width: 360px) {
  .site-header-brand {
    width: 102px;
  }

  .site-login-button,
  .site-register-button {
    min-width: 50px;
    padding: 0 8px;
  }
}

/* Final mobile override: the target serves a dedicated m. layout. */
@media (max-width: 760px) {
  :root {
    --site-header-height: 52px;
    --site-radius: 6px;
  }

  html,
  body,
  #app,
  .app-page.site-page {
    background: #f4f6fa;
  }

  .site-header {
    height: 52px;
    padding: 0 10px;
    border-bottom: 0;
    background: #fff;
    box-shadow: 0 1px 5px rgba(31, 39, 52, 0.08);
    backdrop-filter: none;
  }

  .site-header-center {
    min-width: 0;
    padding: 0;
  }

  .site-header-brand {
    width: 102px;
    height: 38px;
  }

  .site-header-brand img {
    height: 31px;
  }

  .site-header-account {
    min-width: 0;
    gap: 4px;
    padding: 0;
  }

  .site-balance {
    display: flex;
    min-width: 62px;
    max-width: 84px;
    align-items: flex-end;
    overflow: hidden;
  }

  .site-balance span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: #858c97;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-balance strong {
    font-size: 12px;
  }

  .site-header-link {
    display: inline-flex;
    min-width: 48px;
    height: 29px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-color: var(--red);
    background: var(--red);
    color: #fff;
    font-size: 11px;
  }

  .site-header-link:last-child {
    display: none;
  }

  .site-page:has(.site-main-column > .top-bar) > .site-header,
  .site-page[data-view="profile"] > .site-header {
    display: none;
  }

  .site-page:has(.site-main-column > .top-bar) > .site-main-column,
  .site-page[data-view="profile"] > .site-main-column {
    padding-top: 0;
  }

  .site-main-column > .top-bar {
    position: sticky;
    top: 0;
    height: 43px;
    margin: 0;
    border-bottom: 1px solid #eceef1;
    background: #fff;
  }

  .site-main-column .top-title {
    font-size: 16px;
    font-weight: 700;
  }

  .site-main-column .page-main,
  .site-main-column .page-main.no-bar,
  .site-main-column .page-main.flush {
    min-height: calc(100vh - var(--site-header-height));
    padding: 8px 8px calc(64px + env(safe-area-inset-bottom));
  }

  .site-page:has(.site-main-column > .top-bar) .page-main {
    min-height: calc(100vh - 43px);
    padding-top: 8px;
  }

  #app .site-mobile-nav {
    height: calc(52px + env(safe-area-inset-bottom));
    padding: 0 max(4px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(4px, env(safe-area-inset-left));
    border-top: 0;
    background: #fff;
    box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: none;
  }

  #app .site-mobile-nav .frozen-tabbar-item {
    height: 52px;
    gap: 0;
    padding: 4px 0 3px;
    color: rgba(31, 39, 52, 0.58);
  }

  #app .site-mobile-nav .frozen-tabbar-item.active {
    color: var(--red);
  }

  #app .site-mobile-nav .frozen-tabbar-item.active:not(.is-featured) .frozen-tabbar-icon {
    background: transparent;
  }

  #app .site-mobile-nav .frozen-tabbar-icon,
  #app .site-mobile-nav .frozen-tabbar-item.is-featured .frozen-tabbar-icon {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
  }

  #app .site-mobile-nav .frozen-tabbar-icon img {
    inset: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
  }

  #app .site-mobile-nav .frozen-tabbar-icon b {
    font-size: 15px;
    font-weight: 700;
  }

  #app .site-mobile-nav .frozen-tabbar-label,
  #app .site-mobile-nav .frozen-tabbar-item.is-featured .frozen-tabbar-label {
    margin: 0;
    font-size: 10px;
    font-weight: 500;
    line-height: 15px;
  }

  .site-mobile-announcement {
    height: 34px;
    margin-top: 8px;
    padding: 0 10px;
    border-radius: 4px;
  }

  .site-home-section {
    margin-top: 11px;
  }

  .site-section-head {
    min-height: 28px;
    margin-bottom: 7px;
  }

  .site-section-head h1,
  .site-section-head h2 {
    font-size: 14px;
  }

  .site-game-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .site-game-tile {
    grid-template-rows: auto 38px;
    border: 0;
    border-radius: 5px;
  }

  .site-game-tile > span {
    height: 38px;
    padding: 0 8px;
  }

  .site-page[data-view="billiards"] .site-page-heading,
  .site-page[data-view="competition"] .site-page-heading,
  .site-page[data-view="pg"] .site-page-heading,
  .site-page[data-view="profile"] .site-page-heading,
  .site-page[data-view="messages"] .site-page-heading {
    display: none;
  }

  .site-page[data-view="billiards"] .wallet-card,
  .site-page[data-view="competition"] .wallet-card {
    display: none;
  }

  .site-page[data-view="billiards"] .event-tabs,
  .site-page[data-view="competition"] .event-tabs {
    position: sticky;
    z-index: 10;
    top: var(--site-header-height);
    height: 46px;
    margin: -8px -8px 8px;
    padding: 4px 8px;
    border: 0;
    border-radius: 0;
    background: #fff;
  }

  .site-page[data-view="billiards"] .event-tabs button,
  .site-page[data-view="competition"] .event-tabs button {
    height: 38px;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 12px;
  }

  .site-page[data-view="billiards"] .event-tabs button.active,
  .site-page[data-view="competition"] .event-tabs button.active {
    border-bottom: 2px solid var(--red);
    background: transparent;
    color: var(--red);
  }

  .site-page[data-view="pg"] .source-pg-search,
  .site-page[data-view="pg"] .source-pg-tabs {
    margin-right: -8px;
    margin-left: -8px;
    border: 0;
    border-radius: 0;
  }

  .site-page[data-view="pg"] .source-pg-search {
    padding: 8px;
  }

  .site-page[data-view="pg"] .source-pg-tabs {
    padding: 0 8px;
  }

  .site-page[data-view="pg"] .pg-catalog-layout {
    margin-right: -8px;
    margin-left: -8px;
  }

  .site-page[data-view="profile"] .page-main.no-bar {
    padding: 0 8px calc(64px + env(safe-area-inset-bottom));
  }

  .site-page[data-view="profile"] .profile-head {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 94px;
    gap: 10px;
    margin: 0 -8px 8px;
    padding: 15px 12px;
    border: 0;
    border-radius: 0;
  }

  .site-page[data-view="profile"] .profile-avatar-button,
  .site-page[data-view="profile"] .profile-avatar {
    width: 54px;
    height: 54px;
  }

  .site-page[data-view="profile"] .profile-copy.plain-action strong {
    font-size: 16px;
  }

  .site-page[data-view="profile"] .profile-copy.plain-action span {
    margin-top: 3px;
    font-size: 10px;
  }

  .site-page[data-view="profile"] .profile-message-actions {
    display: none;
  }

  .site-page[data-view="profile"] .profile-balance {
    position: relative;
    min-height: 78px;
    margin: 0;
    overflow: hidden;
    border: 0;
    background: #fff;
  }

  .site-page[data-view="profile"] .profile-balance::before {
    position: absolute;
    inset: 0;
    background: url("/assets/v9-mobile/wallet-header.png") center / cover no-repeat;
    content: "";
    opacity: 0.15;
    pointer-events: none;
  }

  .profile-balance-copy,
  .profile-balance-actions {
    position: relative;
    z-index: 1;
  }

  .profile-balance-actions button {
    min-width: 53px;
    height: 30px;
    padding: 0 10px;
    font-size: 11px;
  }

  .member-quick-grid {
    margin-top: 8px;
    padding: 5px 2px;
    border: 0;
  }

  .member-quick-grid button {
    min-height: 69px;
    border-right: 0;
    font-size: 11px;
  }

  .member-quick-grid img {
    width: 39px;
    height: 39px;
  }

  .member-menu-list {
    grid-template-columns: 1fr;
    margin-top: 8px;
    border: 0;
  }

  .member-menu-list > button {
    height: 47px;
    padding: 0 12px;
  }

  .member-menu-list > button:nth-child(odd) {
    border-right: 0;
  }

  .mobile-menu-title {
    min-height: 62px;
    margin: 0 -8px;
    padding: 10px 12px;
    border-radius: 0;
  }

  .mobile-menu-title strong {
    font-size: 16px;
  }

  .mobile-menu-group {
    margin-top: 8px;
    padding: 10px;
  }

  .mobile-menu-feature-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .mobile-menu-feature-grid > button {
    min-height: 66px;
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }

  .mobile-menu-feature-grid img {
    width: 48px;
    height: 48px;
  }

  .mobile-menu-tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 6px;
  }

  .mobile-menu-tool-grid button {
    min-height: 62px;
  }

  .service-panel {
    padding: 14px;
    border-radius: 6px;
  }

  .site-page[data-view="messages"] .site-content-section {
    margin-top: 8px;
  }

  .site-page[data-view="chat"] .chat-page {
    min-height: calc(100vh - 59px);
  }
}

/* Unified route surfaces: keep every member page in the current mobile visual system. */
.site-page[data-view="invite"] .page-main,
.site-page[data-view="business"] .page-main,
.site-page[data-view="first-recharge"] .page-main,
.site-page[data-view="rules"] .page-main,
.site-page[data-view="help"] .page-main,
.site-page[data-view="contact"] .page-main,
.site-page[data-view="agreement"] .page-main {
  width: 100%;
  height: auto;
  min-height: calc(100vh - 43px);
  margin: 0;
  padding: 18px;
  overflow: visible;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
}

.invite-background,
.invite-content,
.invite-glass,
.invite-code-mark,
.business-background,
.business-panel {
  display: none;
}

.invite-summary,
.promotion-summary,
.about-summary,
.agreement-card,
.contact-service-panel {
  border: 1px solid var(--line);
  border-radius: var(--site-radius);
  background: #fff;
  box-shadow: none;
}

.invite-summary {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 18px;
}

.invite-summary > img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.invite-summary small,
.about-summary small,
.promotion-summary > span {
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.invite-summary h1,
.about-summary h1,
.promotion-summary h1 {
  margin: 3px 0 0;
  color: var(--type-strong);
  font-size: 20px;
  line-height: 1.3;
}

.invite-summary p,
.about-summary p,
.promotion-summary p {
  margin: 7px 0 0;
  color: var(--type-muted);
  font-size: 12px;
  line-height: 1.6;
}

.invite-summary > div > p,
.about-summary > p,
.promotion-summary > p {
  margin-top: 0;
}

.invite-details {
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--site-radius);
  background: #fff;
}

.invite-detail-row {
  display: grid;
  min-height: 56px;
  grid-template-columns: 72px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}

.invite-detail-row:last-child {
  border-bottom: 0;
}

.invite-detail-row > span {
  color: var(--type-muted);
  font-size: 12px;
}

.invite-detail-row > strong {
  min-width: 0;
  overflow: hidden;
  color: var(--type-strong);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invite-detail-row > button {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 7px;
  place-items: center;
  border-radius: 5px;
  background: #fff0f1;
}

.invite-detail-row > button img {
  width: 18px;
  height: 18px;
}

.invite-note {
  margin: 10px 2px 0;
  color: var(--type-muted);
  font-size: 11px;
  line-height: 1.6;
}

.contact-service-panel {
  padding: 16px;
}

.contact-link-list {
  margin-top: 10px;
}

.contact-link-list .option-row {
  min-height: 62px;
}

.contact-link-list .member-menu-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 5px;
  background: #fff0f1;
  color: var(--red);
  font-size: 12px;
}

.site-page[data-view="help"] .accordion-list {
  display: grid;
  gap: 8px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.site-page[data-view="help"] .accordion-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--site-radius);
  background: #fff;
}

.site-page[data-view="help"] .accordion-button {
  width: 100%;
  height: 64px;
  min-height: 64px;
  padding: 11px 13px;
  border: 0;
  background: #fff;
}

.site-page[data-view="help"] .accordion-content-inner {
  padding: 12px 14px 16px;
  border-top: 1px solid var(--line);
  background: #fafbfc;
  color: var(--type-body);
  font-size: 13px;
  line-height: 1.75;
}

.site-page[data-view="help"] .accordion-content-inner p,
.site-page[data-view="help"] .accordion-content-inner p + p {
  margin: 0 0 8px;
  line-height: 1.75;
}

.site-page[data-view="help"] .accordion-content-inner p:last-child {
  margin-bottom: 0;
}

.site-page[data-view="help"] .help-contact {
  display: flex;
  width: 100%;
  height: auto;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  color: var(--type-body);
}

.site-page[data-view="help"] .help-contact:last-child {
  border-bottom: 0;
}

.site-page[data-view="help"] .help-contact span,
.site-page[data-view="help"] .help-contact strong,
.site-page[data-view="help"] .help-contact small {
  display: block;
}

.site-page[data-view="help"] .help-contact small {
  margin-top: 3px;
  color: var(--type-muted);
  font-size: 11px;
}

.site-page[data-view="help"] .help-contact > button {
  flex: none;
  color: var(--red);
  font-size: 12px;
}

.site-page[data-view="invite"] .rule-card,
.site-page[data-view="rules"] .rule-card,
.site-page[data-view="first-recharge"] .rule-card {
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0 0 10px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--site-radius);
  background: #fff;
  box-shadow: none;
}

.site-page[data-view="invite"] .rule-title,
.site-page[data-view="rules"] .rule-title,
.site-page[data-view="first-recharge"] .rule-title {
  display: flex;
  width: 100%;
  height: auto;
  min-height: 44px;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--type-strong);
  font-size: 14px;
  font-weight: 700;
}

.site-page[data-view="invite"] .rule-title::before,
.site-page[data-view="rules"] .rule-title::before,
.site-page[data-view="first-recharge"] .rule-title::before {
  width: 3px;
  height: 16px;
  flex: 0 0 3px;
  border-radius: 2px;
  background: var(--red);
  content: "";
}

.site-page[data-view="invite"] .rule-copy,
.site-page[data-view="rules"] .rule-copy,
.site-page[data-view="first-recharge"] .rule-copy {
  width: 100%;
  height: auto;
  padding: 13px;
  background: #fff;
  color: var(--type-body);
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-line;
}

.promotion-summary {
  padding: 18px;
  border-color: #ffd6da;
  background: #fff7f8;
}

.site-page[data-view="invite"] .promotion-table,
.site-page[data-view="first-recharge"] .promotion-table {
  width: 100%;
  margin: 10px 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--site-radius);
  background: #fff;
  box-shadow: none;
}

.site-page[data-view="invite"] .promotion-row,
.site-page[data-view="invite"] .promotion-row:first-child,
.site-page[data-view="first-recharge"] .promotion-row,
.site-page[data-view="first-recharge"] .promotion-row:first-child {
  display: grid;
  width: 100%;
  height: auto;
  min-height: 42px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  margin: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--type-body);
  font-size: 12px;
  font-weight: 500;
}

.site-page[data-view="invite"] .promotion-row:first-child,
.site-page[data-view="first-recharge"] .promotion-row:first-child {
  min-height: 44px;
  background: #fff0f1;
  color: var(--red);
  font-weight: 700;
}

.site-page[data-view="invite"] .promotion-row:last-child,
.site-page[data-view="first-recharge"] .promotion-row:last-child {
  border-bottom: 0;
}

.site-page[data-view="invite"] .promotion-row > span,
.site-page[data-view="first-recharge"] .promotion-row > span {
  padding: 9px 5px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.site-page[data-view="invite"] .promotion-row > span:last-child,
.site-page[data-view="first-recharge"] .promotion-row > span:last-child {
  border-right: 0;
}

.site-page[data-view="first-recharge"] .first-recharge-rules {
  height: auto;
  margin: 0;
}

.first-recharge-state {
  display: flex;
  width: 100%;
  min-height: 112px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  padding: 16px;
  border: 1px solid #ffd6da;
  border-radius: var(--site-radius);
  background: #fff;
}

.first-recharge-state-copy {
  min-width: 0;
}

.first-recharge-state-copy.is-wide {
  width: min(520px, 100%);
}

.first-recharge-state-copy > span,
.first-recharge-state-copy > strong,
.first-recharge-state-copy > small {
  display: block;
}

.first-recharge-state-copy > span {
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
}

.first-recharge-state-copy > strong {
  margin-top: 4px;
  color: var(--type-strong);
  font-size: 18px;
  line-height: 1.35;
}

.first-recharge-state-copy > small {
  margin-top: 5px;
  color: var(--type-muted);
  font-size: 11px;
  line-height: 1.55;
}

.first-recharge-action {
  min-width: 96px;
  min-height: 40px;
  flex: none;
  padding: 0 16px;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.first-recharge-action.is-secondary {
  border: 1px solid #ffc5ca;
  background: #fff0f1;
  color: var(--red);
}

.first-recharge-action:disabled {
  cursor: wait;
  opacity: 0.65;
}

.first-recharge-state-badge {
  display: inline-flex;
  min-width: 66px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  flex: none;
  padding: 5px 10px;
  border-radius: 4px;
  background: #fff0f1;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
}

.first-recharge-state-badge.is-complete {
  background: #eaf8f0;
  color: #16834b;
}

.first-recharge-state-badge.is-muted {
  background: #f1f3f5;
  color: var(--type-muted);
}

.first-recharge-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.first-recharge-checks span {
  padding: 4px 7px;
  border-radius: 4px;
  background: #f1f3f5;
  color: var(--type-muted);
  font-size: 10px;
  line-height: 1.4;
}

.first-recharge-checks span.is-done {
  background: #eaf8f0;
  color: #16834b;
}

.first-recharge-progress {
  width: 100%;
  height: 6px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 3px;
  background: #edf0f2;
}

.first-recharge-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
}

.site-page[data-view="invite"] .invite-rule-card {
  margin-bottom: 10px;
}

.site-page[data-view="invite"] .invite-details {
  margin-top: 0;
}

.invite-friends-entry {
  display: grid;
  width: 100%;
  min-height: 64px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--site-radius);
  background: #fff;
  color: var(--type-strong);
  text-align: left;
}

.invite-friends-entry:hover {
  border-color: #e8b8b4;
  background: #fffafa;
}

.invite-friends-entry-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 4px;
  background: #fcebea;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.invite-friends-entry > span:nth-child(2) {
  min-width: 0;
}

.invite-friends-entry strong,
.invite-friends-entry small {
  display: block;
}

.invite-friends-entry strong {
  font-size: 13px;
  line-height: 18px;
}

.invite-friends-entry small {
  margin-top: 2px;
  color: var(--type-muted);
  font-size: 10px;
  line-height: 15px;
}

.invite-friends-entry b {
  color: #9aa0aa;
  font-size: 20px;
  font-weight: 400;
}

.invite-friends {
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--site-radius);
  background: #fff;
}

.site-page[data-view="invite-friends"] .invite-friends-page {
  margin-bottom: 0;
}

.invite-friends-head {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
}

.invite-friends-head h2 {
  color: var(--type-strong);
  font-size: 14px;
  line-height: 20px;
}

.invite-friends-head small {
  display: block;
  margin-top: 2px;
  color: var(--type-muted);
  font-size: 10px;
}

.invite-friends-head > span {
  flex: none;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}

.invite-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
}

.invite-stat-grid > div {
  display: flex;
  min-width: 0;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.invite-stat-grid > div:last-child {
  border-right: 0;
}

.invite-stat-grid strong {
  color: var(--type-strong);
  font-size: 18px;
  line-height: 22px;
}

.invite-stat-grid span {
  margin-top: 2px;
  color: var(--type-muted);
  font-size: 10px;
}

.invite-friend-row {
  padding: 13px;
  border-bottom: 1px solid var(--line);
}

.invite-friend-row:last-child {
  border-bottom: 0;
}

.invite-friend-main {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.invite-friend-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #f0f2f5;
  color: #596273;
  font-size: 13px;
  font-weight: 800;
}

.invite-friend-main > div {
  min-width: 0;
}

.invite-friend-main strong,
.invite-friend-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invite-friend-main strong {
  color: var(--type-strong);
  font-size: 13px;
  line-height: 18px;
}

.invite-friend-main small {
  margin-top: 2px;
  color: var(--type-muted);
  font-size: 10px;
}

.invite-status {
  min-width: 44px;
  padding: 4px 7px;
  border-radius: 4px;
  background: #f0f2f5;
  color: #777f8b;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.invite-status.is-valid {
  background: #eaf7ef;
  color: #20834c;
}

.invite-condition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.invite-condition-grid span {
  display: grid;
  min-width: 0;
  min-height: 44px;
  padding: 6px;
  place-items: center;
  border: 1px solid #e7e9ed;
  border-radius: 4px;
  background: #fafbfc;
  color: #7d8490;
  font-size: 9px;
  line-height: 14px;
  text-align: center;
  overflow-wrap: anywhere;
}

.invite-condition-grid span.is-done {
  border-color: #cce9d7;
  background: #f1faf5;
  color: #20834c;
}

.invite-friend-action {
  display: flex;
  min-height: 34px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

.invite-friend-action > span:first-child {
  color: var(--type-muted);
  font-size: 10px;
  line-height: 16px;
}

.invite-claim-button {
  min-width: 92px;
  min-height: 32px;
  flex: none;
  padding: 0 10px;
  border-radius: 5px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.invite-claim-button:disabled {
  opacity: 0.6;
}

.invite-claim-state {
  flex: none;
  color: #8b929d;
  font-size: 11px;
  font-weight: 700;
}

.invite-claim-state.is-claimed {
  color: #20834c;
}

.invite-friends-empty {
  display: grid;
  min-height: 96px;
  place-items: center;
  color: var(--type-muted);
  font-size: 12px;
}

.invite-login-prompt {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--site-radius);
  background: #fff;
  color: var(--type-muted);
  font-size: 11px;
}

.invite-login-prompt button {
  min-width: 64px;
  min-height: 32px;
  border-radius: 5px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.about-summary {
  padding: 22px 18px;
  text-align: center;
}

.about-summary > img {
  width: 142px;
  height: 44px;
  margin-bottom: 10px;
  object-fit: contain;
}

.about-list {
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--site-radius);
  background: #fff;
}

.about-list > div {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 13px;
  border-bottom: 1px solid var(--line);
}

.about-list > div:last-child {
  border-bottom: 0;
}

.about-list span {
  color: var(--type-muted);
  font-size: 12px;
}

.about-list strong {
  color: var(--type-strong);
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}

.about-service-button {
  width: 100%;
  margin-top: 12px;
}

.agreement-card {
  overflow: hidden;
}

.agreement-card > section {
  padding: 15px;
  border-bottom: 1px solid var(--line);
}

.agreement-card > section:last-child {
  border-bottom: 0;
}

.agreement-card h2 {
  color: var(--type-strong);
  font-size: 14px;
}

.agreement-card p {
  margin: 7px 0 0;
  color: var(--type-body);
  font-size: 12px;
  line-height: 1.8;
}

.source-history-empty,
.source-welfare-empty,
.source-pg-empty,
.site-page[data-view="billiards"] .empty-state,
.site-page[data-view="competition"] .empty-state {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 760px) {
  .site-home-banner,
  .site-home-banner .banner-link,
  .site-home-banner .banner-link img {
    border-radius: 12px;
  }

  .site-page[data-view="invite"] .page-main,
  .site-page[data-view="business"] .page-main,
  .site-page[data-view="first-recharge"] .page-main,
  .site-page[data-view="rules"] .page-main,
  .site-page[data-view="help"] .page-main,
  .site-page[data-view="contact"] .page-main,
  .site-page[data-view="agreement"] .page-main {
    width: 100%;
    min-height: calc(100vh - 43px);
    padding: 8px 8px calc(20px + env(safe-area-inset-bottom));
  }

  .invite-summary {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
  }

  .invite-summary > img {
    width: 50px;
    height: 50px;
  }

  .invite-summary h1,
  .about-summary h1,
  .promotion-summary h1 {
    font-size: 17px;
  }

  .invite-detail-row {
    grid-template-columns: 64px minmax(0, 1fr) 34px;
  }

  .promotion-summary,
  .about-summary,
  .contact-service-panel {
    padding: 14px;
  }
}

/* Final consistency pass for secondary and signed-out game routes. */
.site-page[data-view="help"] .accordion-list {
  box-shadow: none;
}

.source-history-tabs,
.source-system-tabs {
  border: 1px solid var(--line);
  border-radius: var(--site-radius);
  background: #fff;
  box-shadow: none;
}

.game-access-panel {
  display: grid;
  width: min(420px, 100%);
  min-height: 260px;
  align-content: center;
  justify-items: center;
  gap: 10px;
  margin: 28px auto;
  padding: 32px 24px;
  border: 1px solid var(--line);
  border-radius: var(--site-radius);
  background: #fff;
  box-shadow: none;
  text-align: center;
}

.game-access-panel::before {
  width: 34px;
  height: 4px;
  border-radius: 2px;
  background: var(--red);
  content: "";
}

.game-access-panel strong {
  color: var(--type-strong);
  font-size: 17px;
}

.game-access-panel p {
  color: var(--type-muted);
  font-size: 12px;
}

.game-access-panel .primary-button {
  width: 160px;
  margin-top: 8px;
}

@media (max-width: 760px) {
  .first-recharge-state {
    min-height: 104px;
    gap: 10px;
    padding: 13px;
  }

  .first-recharge-state-copy > strong {
    font-size: 16px;
  }

  .first-recharge-action {
    min-width: 76px;
    padding: 0 12px;
  }

  .first-recharge-state-badge {
    min-width: 58px;
  }

  .game-access-panel {
    min-height: 230px;
    margin: 0;
  }
}

/* Visual polish pass: consistent hierarchy, controls, and responsive navigation. */
:root {
  --gold: #e60013;
  --gold-soft: #ffd9dd;
  --gold-pale: #fff5f6;
  --orange: #e60013;
  --surface-soft: #f7f8fa;
  --line: #e5e8ed;
  --muted: #7c8593;
}

button,
input,
select,
textarea {
  letter-spacing: 0;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(230, 0, 19, 0.42);
  outline-offset: 2px;
}

.site-header-products button.active,
.site-app-card > button {
  background: var(--red);
  color: #fff;
}

.site-section-head h1,
.site-section-head h2 {
  display: flex;
  align-items: center;
  gap: 7px;
}

.site-section-head h1::before,
.site-section-head h2::before {
  width: 3px;
  height: 16px;
  flex: 0 0 3px;
  border-radius: 2px;
  background: var(--red);
  content: "";
}

.site-game-tile {
  border-color: #e6e9ee;
  box-shadow: 0 2px 8px rgba(31, 39, 52, 0.045);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.site-game-tile > span {
  gap: 8px;
}

.site-game-tile strong {
  font-size: 13px;
}

.site-game-tile small {
  font-size: 10px;
}

.site-mobile-announcement {
  border: 1px solid #e8ebf0;
}

[data-view="login"] .segmented-tabs button.active,
[data-view="register"] .segmented-tabs button.active,
[data-view="register"] .suffix-button {
  color: var(--red);
}

[data-view="login"] .segmented-tabs button.active::after,
[data-view="register"] .segmented-tabs button.active::after {
  background: var(--red);
}

.auth-page {
  box-shadow: 0 8px 24px rgba(31, 39, 52, 0.06);
}

.auth-page .input-wrap {
  border-color: #dfe3e9;
  background: #f8f9fb;
}

.auth-page .field-label {
  color: #4d5664;
  font-size: 12px;
  font-weight: 650;
}

.auth-page .check-row input {
  accent-color: var(--red);
}

.section-title::before {
  background: var(--red);
}

.member-menu-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 6px;
  background: #fff0f1;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
}

@media (hover: hover) and (pointer: fine) {
  .site-game-tile:hover {
    transform: translateY(-1px);
    border-color: #f3b8be;
    box-shadow: 0 7px 18px rgba(31, 39, 52, 0.09);
  }

  .site-login-button:hover,
  .secondary-button:hover {
    border-color: #f1b6bc;
    background: #fff7f8;
    color: var(--red);
  }
}

@media (min-width: 761px) {
  .site-header {
    border-bottom-color: #e4e7ec;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 12px rgba(31, 39, 52, 0.045);
    backdrop-filter: blur(12px);
  }

  .site-left-rail,
  .site-right-rail {
    background: #f6f7f9;
  }

  .site-left-rail {
    border-right: 1px solid #e7e9ed;
  }

  .site-right-rail {
    border-left: 1px solid #e7e9ed;
  }

  .site-nav-card,
  .site-app-card {
    border: 1px solid #e6e9ee;
  }

  .site-page-heading h1 {
    font-size: 22px;
  }
}

@media (max-width: 760px) {
  .site-header {
    border-bottom: 1px solid #eceef2;
    box-shadow: none;
  }

  .site-main-column .page-main,
  .site-main-column .page-main.no-bar,
  .site-main-column .page-main.flush {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }

  #app .site-mobile-nav {
    height: calc(58px + env(safe-area-inset-bottom));
    border-top: 1px solid #e5e8ed;
    box-shadow: 0 -4px 16px rgba(31, 39, 52, 0.07);
  }

  #app .site-mobile-nav .frozen-tabbar-item {
    height: 58px;
    gap: 1px;
    padding: 5px 0 4px;
  }

  #app .site-mobile-nav .frozen-tabbar-icon,
  #app .site-mobile-nav .frozen-tabbar-item.is-featured .frozen-tabbar-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    border-radius: 6px;
  }

  #app .site-mobile-nav .frozen-tabbar-item.active .frozen-tabbar-icon {
    background: #fff0f1;
  }

  #app .site-mobile-nav .frozen-tabbar-label,
  #app .site-mobile-nav .frozen-tabbar-item.is-featured .frozen-tabbar-label {
    font-size: 10px;
    font-weight: 600;
    line-height: 14px;
  }

  .site-section-head {
    min-height: 31px;
    margin-bottom: 8px;
  }

  .site-section-head h1,
  .site-section-head h2 {
    font-size: 15px;
  }

  .site-section-head h1::before,
  .site-section-head h2::before {
    height: 15px;
  }

  .site-game-tile {
    border: 1px solid #e6e9ee;
    box-shadow: 0 2px 7px rgba(31, 39, 52, 0.04);
  }

  .site-page[data-view="profile"] .profile-head {
    border-bottom: 1px solid #eceef2;
  }

  .site-page[data-view="profile"] .profile-balance,
  .member-quick-grid,
  .member-menu-list {
    border: 1px solid #e6e9ee;
  }

  .member-menu-list > button {
    min-height: 50px;
    height: 50px;
  }

  .auth-page {
    width: 100%;
    margin: 0;
    padding: 24px 16px 28px;
    border-color: #e5e8ed;
    box-shadow: 0 5px 18px rgba(31, 39, 52, 0.05);
  }

  .auth-brand {
    margin-bottom: 22px;
  }

  .auth-logo {
    width: 160px;
    max-height: 60px;
  }

  .auth-page .form-stack {
    gap: 14px;
    margin-top: 18px;
  }
}

/* Unified account access pages. These use their own structure so legacy auth rules cannot leak in. */
.site-page[data-view="login"] .site-login-button,
.site-page[data-view="register"] .site-register-button {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.site-page[data-view="login"] .site-register-button {
  border: 1px solid #dfe3e9;
  background: #fff;
  color: #313a48;
}

.site-page[data-view="login"] .page-main.no-bar,
.site-page[data-view="register"] .page-main.no-bar {
  min-height: calc(100vh - var(--site-header-height));
  padding: 30px 24px 56px;
  background: #f4f6fa !important;
}

.auth-layout {
  width: min(100%, 560px);
  margin: 0 auto;
}

.auth-layout-register {
  width: min(100%, 720px);
}

.auth-intro {
  position: relative;
  margin-bottom: 18px;
  padding-top: 38px;
}

.auth-home-link {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 4px;
  padding: 0;
  background: transparent;
  color: #68717e;
  font-size: 12px;
  font-weight: 650;
}

.auth-home-link span {
  color: var(--red);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

.auth-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
}

.auth-eyebrow::before {
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--red);
  content: "";
}

.auth-intro h1 {
  margin-top: 7px;
  color: #1f2734;
  font-size: 26px;
  font-weight: 800;
  line-height: 34px;
}

.auth-intro p {
  margin-top: 4px;
  color: #7c8593;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}

.auth-panel {
  padding: 26px 30px 30px;
  border: 1px solid #e4e7ec;
  border-radius: var(--site-radius);
  background: #fff;
  box-shadow: 0 5px 18px rgba(31, 39, 52, 0.055);
}

.auth-panel-head {
  display: flex;
  min-height: 48px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 17px;
  border-bottom: 1px solid #eceef2;
}

.auth-panel-head small,
.auth-panel-head h2 {
  display: block;
}

.auth-panel-head small {
  color: #8a929e;
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
}

.auth-panel-head h2 {
  margin-top: 3px;
  color: #252d39;
  font-size: 18px;
  font-weight: 800;
  line-height: 25px;
}

.auth-panel-head > button {
  display: inline-flex;
  min-height: 34px;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  border: 1px solid #f1c4c8;
  border-radius: 5px;
  background: #fff7f8;
  color: var(--red);
  font-size: 12px;
  font-weight: 750;
}

.auth-panel-head > button span {
  font-size: 17px;
  line-height: 1;
}

.auth-login-modes {
  display: grid;
  height: 44px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  margin-top: 20px;
  padding: 3px;
  border: 1px solid #e5e8ed;
  border-radius: 5px;
  background: #f4f6f8;
}

.auth-login-modes button {
  min-width: 0;
  border-radius: 4px;
  background: transparent;
  color: #747d89;
  font-size: 13px;
  font-weight: 650;
}

.auth-login-modes button.active {
  background: #fff;
  color: var(--red);
  font-weight: 800;
  box-shadow: 0 1px 4px rgba(31, 39, 52, 0.1);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.auth-form .field {
  min-width: 0;
  margin: 0 !important;
}

.site-page[data-view="login"] .auth-form .field-label,
.site-page[data-view="register"] .auth-form .field-label {
  min-height: 19px;
  margin: 0 0 7px;
  color: #404854;
  font-size: 12px;
  font-weight: 750;
  line-height: 19px;
}

.site-page[data-view="login"] .auth-form .required,
.site-page[data-view="register"] .auth-form .required {
  margin-right: 3px;
  color: var(--red);
}

.site-page[data-view="login"] .auth-form .input-wrap,
.site-page[data-view="register"] .auth-form .input-wrap {
  width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid #dfe3e8;
  border-radius: 5px;
  background: #f7f8fa;
}

.site-page[data-view="login"] .auth-form .input-wrap:focus-within,
.site-page[data-view="register"] .auth-form .input-wrap:focus-within {
  border-color: var(--red);
  background: #fff;
  box-shadow: none;
}

.site-page[data-view="login"] .auth-form .input-wrap input:focus-visible,
.site-page[data-view="register"] .auth-form .input-wrap input:focus-visible {
  outline: none;
  outline-offset: 0;
}

.site-page[data-view="login"] .auth-form .input-wrap input,
.site-page[data-view="register"] .auth-form .input-wrap input {
  height: 46px;
  min-width: 0;
  padding: 0;
  color: #252d39;
  font-size: 14px;
  font-weight: 550;
  transform: none;
}

.site-page[data-view="login"] .auth-form .input-wrap input::placeholder,
.site-page[data-view="register"] .auth-form .input-wrap input::placeholder {
  color: #a2a8b1;
  font-size: 13px;
  font-weight: 450;
}

.site-page[data-view="login"] .auth-form .password-toggle,
.site-page[data-view="register"] .auth-form .password-toggle {
  width: 38px;
  height: 38px;
  min-width: 38px;
  flex: 0 0 38px;
  color: #727b87;
  font-family: "uicon-iconfont";
  font-size: 17px;
  transform: none;
}

.site-page[data-view="login"] .auth-form .password-toggle.is-visible,
.site-page[data-view="register"] .auth-form .password-toggle.is-visible {
  color: var(--red);
}

.site-page[data-view="login"] .auth-form .suffix-button,
.site-page[data-view="register"] .auth-form .suffix-button {
  min-width: 94px;
  height: 32px;
  margin-left: 9px;
  padding: 0 10px;
  border-radius: 4px;
  background: #fff0f1;
  color: var(--red);
  font-size: 12px;
  font-weight: 750;
  transform: none;
}

.site-page[data-view="login"] .auth-form .suffix-button:disabled,
.site-page[data-view="register"] .auth-form .suffix-button:disabled {
  background: #f0f1f3;
  color: #9aa0a9;
}

.auth-utility {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.auth-utility label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: #6f7783;
  font-size: 12px;
  font-weight: 550;
}

.auth-utility input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--red);
}

.auth-utility button {
  min-width: 0;
  padding: 5px 0;
  background: transparent;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  white-space: normal;
  text-align: right;
}

.auth-password-hint {
  margin: -5px 0 0;
  padding-left: 10px;
  border-left: 2px solid #f0a9af;
  color: #7e5b5f;
  font-size: 11px;
  font-weight: 500;
  line-height: 17px;
}

.auth-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(112px, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.site-page[data-view="login"] .auth-actions .primary-button,
.site-page[data-view="login"] .auth-actions .secondary-button,
.site-page[data-view="register"] .auth-actions .primary-button,
.site-page[data-view="register"] .auth-actions .secondary-button {
  min-height: 48px;
  height: 48px;
  margin: 0;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 750;
}

.site-page[data-view="login"] .auth-actions .primary-button,
.site-page[data-view="register"] .auth-actions .primary-button {
  background: var(--red);
  color: #fff;
}

.site-page[data-view="login"] .auth-actions .secondary-button,
.site-page[data-view="register"] .auth-actions .secondary-button {
  border: 1px solid #dde1e7;
  background: #fff;
  color: #535c69;
}

.auth-register-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.auth-register-form .auth-password-hint,
.auth-register-form .auth-actions {
  grid-column: 1 / -1;
}

.auth-register-form > .field:last-of-type {
  grid-column: 1 / -1;
}

@media (hover: hover) and (pointer: fine) {
  .auth-home-link:hover,
  .auth-utility button:hover {
    color: #bd0010;
  }

  .auth-panel-head > button:hover,
  .site-page[data-view="login"] .auth-actions .secondary-button:hover,
  .site-page[data-view="register"] .auth-actions .secondary-button:hover {
    border-color: #f0aeb4;
    background: #fff5f6;
    color: var(--red);
  }
}

@media (max-width: 760px) {
  .site-page[data-view="login"] .page-main.no-bar,
  .site-page[data-view="register"] .page-main.no-bar {
    padding: 18px 14px calc(32px + env(safe-area-inset-bottom));
  }

  .auth-intro {
    margin-bottom: 14px;
    padding-top: 34px;
  }

  .auth-intro h1 {
    margin-top: 5px;
    font-size: 23px;
    line-height: 30px;
  }

  .auth-intro p {
    margin-top: 2px;
  }

  .auth-panel {
    padding: 19px 16px 20px;
    box-shadow: 0 3px 12px rgba(31, 39, 52, 0.045);
  }

  .auth-panel-head {
    min-height: 44px;
    gap: 10px;
    padding-bottom: 14px;
  }

  .auth-panel-head h2 {
    font-size: 16px;
    line-height: 23px;
  }

  .auth-panel-head > button {
    min-height: 32px;
    padding: 0 8px;
    font-size: 11px;
  }

  .auth-login-modes {
    margin-top: 16px;
  }

  .auth-form {
    gap: 14px;
    margin-top: 16px;
  }

  .auth-register-form {
    display: flex;
    align-items: stretch;
  }

  .auth-actions {
    grid-template-columns: minmax(0, 1.55fr) minmax(102px, 1fr);
  }
}

@media (max-width: 360px) {
  .auth-panel {
    padding-right: 13px;
    padding-left: 13px;
  }

  .auth-panel-head > button {
    padding: 0 7px;
  }

  .auth-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Unified site chrome: account entry and mobile primary navigation. */
.site-header-account.is-guest {
  display: flex;
  width: max-content;
  min-width: 0;
  height: 38px;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 3px;
  padding: 3px;
  border: 1px solid #e2e5ea;
  border-radius: 7px;
  background: #f5f6f8;
}

.site-header-account.is-guest .site-login-button,
.site-header-account.is-guest .site-register-button {
  display: inline-grid;
  min-width: 68px;
  height: 30px;
  place-items: center;
  padding: 0 14px;
  border: 0;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 750;
  line-height: 30px;
  white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.site-header-account.is-guest .site-login-button {
  background: transparent;
  color: #4d5664;
  box-shadow: none;
}

.site-header-account.is-guest .site-register-button {
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 7px rgba(230, 0, 19, 0.2);
}

.site-page[data-view="login"] .site-header-account.is-guest .site-login-button,
.site-page[data-view="register"] .site-header-account.is-guest .site-register-button {
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 7px rgba(230, 0, 19, 0.2);
}

.site-page[data-view="login"] .site-header-account.is-guest .site-register-button {
  background: transparent;
  color: #4d5664;
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  .site-header-account.is-guest .site-login-button:hover {
    background: #fff0f1;
    color: var(--red);
  }

  .site-header-account.is-guest .site-register-button:hover,
  .site-page[data-view="login"] .site-header-account.is-guest .site-login-button:hover {
    background: #c90011;
    color: #fff;
  }
}

@media (max-width: 760px) {
  .site-header-account.is-guest {
    width: max-content;
    height: 34px;
    gap: 2px;
    padding: 2px;
    border-radius: 6px;
  }

  .site-header-account.is-guest .site-login-button,
  .site-header-account.is-guest .site-register-button {
    min-width: 48px;
    width: 48px;
    height: 28px;
    padding: 0 7px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 750;
    line-height: 28px;
  }

  .site-main-column .page-main,
  .site-main-column .page-main.no-bar,
  .site-main-column .page-main.flush {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  #app .site-mobile-nav {
    position: fixed;
    z-index: 90;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    width: 100%;
    height: calc(64px + env(safe-area-inset-bottom));
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 0 max(6px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(6px, env(safe-area-inset-left));
    transform: none;
    border: 0;
    border-top: 1px solid #e4e7ec;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 -5px 18px rgba(31, 39, 52, 0.08);
    backdrop-filter: none;
  }

  #app .site-mobile-nav .frozen-tabbar-item {
    position: relative;
    display: flex;
    min-width: 0;
    height: 64px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    padding: 6px 0 5px;
    border-radius: 0;
    background: transparent;
    color: #737c89;
    touch-action: manipulation;
  }

  #app .site-mobile-nav .frozen-tabbar-icon,
  #app .site-mobile-nav .frozen-tabbar-item.is-featured .frozen-tabbar-icon {
    position: relative;
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    margin: 0;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    box-shadow: none;
    color: inherit;
    transition: border-color 150ms ease, background-color 150ms ease;
  }

  #app .site-mobile-nav .frozen-tabbar-item.active .frozen-tabbar-icon,
  #app .site-mobile-nav .frozen-tabbar-item.active:not(.is-featured) .frozen-tabbar-icon {
    border-color: #ffd4d8;
    background: #fff0f1;
  }

  #app .site-mobile-nav .frozen-tabbar-icon img {
    position: absolute;
    inset: 4px;
    display: block;
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    object-fit: contain;
    opacity: 0.72;
    filter: grayscale(1) saturate(0) brightness(0.68);
    transition: filter 150ms ease, opacity 150ms ease, transform 150ms ease;
  }

  #app .site-mobile-nav .frozen-tabbar-item.active .frozen-tabbar-icon img {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(12%) sepia(98%) saturate(6838%) hue-rotate(351deg) brightness(89%) contrast(111%);
    transform: scale(1.04);
  }

  #app .site-mobile-nav .frozen-tabbar-label,
  #app .site-mobile-nav .frozen-tabbar-item.is-featured .frozen-tabbar-label {
    width: 100%;
    margin: 0;
    color: inherit;
    font-size: 10px;
    font-weight: 650;
    line-height: 14px;
    text-align: center;
    white-space: nowrap;
  }

  #app .site-mobile-nav .frozen-tabbar-item.active {
    color: var(--red);
  }

  #app .site-mobile-nav .frozen-tabbar-item.active .frozen-tabbar-label {
    font-weight: 800;
  }

  #app .site-mobile-nav .frozen-tabbar-item:active {
    background: #f7f8fa;
  }
}

@media (max-width: 360px) {
  .site-header-account.is-guest .site-login-button,
  .site-header-account.is-guest .site-register-button {
    min-width: 46px;
    width: 46px;
    padding: 0 5px;
  }

  #app .site-mobile-nav {
    padding-right: max(3px, env(safe-area-inset-right));
    padding-left: max(3px, env(safe-area-inset-left));
  }
}

@keyframes site-announcement-marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-live-badge i {
    animation: none;
  }

  .site-announcement-track {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: none;
    transform: none;
  }

  .site-announcement-copy {
    display: block;
    overflow: hidden;
    padding-right: 0;
    text-overflow: ellipsis;
  }

  .site-announcement-copy[aria-hidden="true"] {
    display: none;
  }
}

/* Final bet ledger treatment: keep this after shared legacy components. */
.site-page[data-view="bet-info"] .page-main {
  background: #f4f6fa !important;
}

.bet-summary-view {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

#app .site-page[data-view="bet-info"] .account-period-tabs {
  display: grid;
  width: 100%;
  max-width: none;
  min-height: 44px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid #e3e7ed;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
}

#app .site-page[data-view="bet-info"] .account-period-tabs button {
  min-width: 0;
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #737c89;
  font-size: 12px;
  font-weight: 650;
  line-height: 34px;
}

#app .site-page[data-view="bet-info"] .account-period-tabs button.active {
  background: var(--red);
  color: #fff;
  font-weight: 750;
}

#app .site-page[data-view="bet-info"] .account-period-tabs button::after {
  display: none;
}

.site-page[data-view="bet-info"] .bet-overview {
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid #e3e7ed;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
}

.site-page[data-view="bet-info"] .account-overview-head {
  min-height: 48px;
  padding: 8px 13px;
  border-bottom: 1px solid #eceff3;
  background: #fff;
}

.site-page[data-view="bet-info"] .account-overview-head > div::before {
  width: 3px;
  height: 16px;
  flex: 0 0 3px;
  border-radius: 2px;
  background: var(--red);
}

.site-page[data-view="bet-info"] .account-overview-head span {
  color: #202734;
  font-size: 14px;
  font-weight: 800;
}

.site-page[data-view="bet-info"] .account-overview-head strong {
  color: #8a929e;
  font-size: 10px;
  font-weight: 600;
}

.site-page[data-view="bet-info"] .account-overview-head > b,
.site-page[data-view="bet-info"] .account-section-head > span {
  min-width: 0;
  height: 24px;
  padding: 0 8px;
  border: 1px solid #ffd8dc;
  border-radius: 4px;
  background: #fff3f4;
  color: var(--red);
  font-size: 10px;
  font-weight: 750;
  line-height: 22px;
}

#app .site-page[data-view="bet-info"] .bet-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #eceff3;
  box-shadow: none;
}

#app .site-page[data-view="bet-info"] .bet-metrics .account-metric {
  display: flex;
  min-width: 0;
  min-height: 76px;
  justify-content: center;
  flex-direction: column;
  padding: 12px 13px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.site-page[data-view="bet-info"] .account-metric span {
  color: #838c99;
  font-size: 10px;
  font-weight: 650;
  line-height: 16px;
}

.site-page[data-view="bet-info"] .account-metric strong {
  margin-top: 5px;
  overflow: hidden;
  color: #202734;
  font-size: 19px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 25px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-page[data-view="bet-info"] .account-metric strong.positive {
  color: #16815a;
}

.site-page[data-view="bet-info"] .account-metric strong.negative {
  color: var(--red);
}

.site-page[data-view="bet-info"] .account-records {
  margin-top: 13px;
}

.site-page[data-view="bet-info"] .account-section-head {
  min-height: 38px;
  padding: 0 2px;
}

.site-page[data-view="bet-info"] .account-section-head strong {
  color: #202734;
  font-size: 14px;
  font-weight: 800;
}

.site-page[data-view="bet-info"] .account-section-head small {
  color: #8a929e;
  font-size: 10px;
  font-weight: 550;
}

#app .site-page[data-view="bet-info"] .record-list {
  display: grid;
  gap: 8px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#app .site-page[data-view="bet-info"] .record-row {
  min-height: 76px;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #e3e7ed;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(31, 39, 52, 0.035);
}

#app .site-page[data-view="bet-info"] .record-row:last-child {
  border-bottom: 1px solid #e3e7ed;
}

.site-page[data-view="bet-info"] .record-row .row-copy strong {
  overflow: hidden;
  color: #202734;
  font-size: 13px;
  font-weight: 750;
  line-height: 19px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-page[data-view="bet-info"] .record-row .row-copy small {
  overflow: hidden;
  margin-top: 5px;
  color: #858e9b;
  font-size: 10px;
  font-weight: 550;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-page[data-view="bet-info"] .record-value strong {
  color: #202734;
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
}

.site-page[data-view="bet-info"] .record-value small {
  min-height: 20px;
  margin-top: 4px;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 750;
  line-height: 20px;
}

.site-page[data-view="bet-info"] .record-value small.is-won {
  background: #eaf6f1;
  color: #16815a;
}

.site-page[data-view="bet-info"] .record-value small.is-lost {
  background: #fff0f1;
  color: var(--red);
}

.site-page[data-view="bet-info"] .record-value small.is-pending {
  background: #fff7e8;
  color: #9a670e;
}

.site-page[data-view="bet-info"] .record-value small.is-settled {
  background: #eaf6f1;
  color: #16815a;
}

.site-page[data-view="bet-info"] .record-value small.is-void {
  background: #f0f2f5;
  color: #697381;
}

.site-page[data-view="bet-info"] .record-chevron {
  color: #c1c7cf;
  font-size: 18px;
}

#app .site-page[data-view="bet-info"] .account-records > .empty-state {
  min-height: 210px;
  border: 1px solid #e3e7ed;
  border-radius: 6px;
  background: #fff;
  color: #8a929e;
}

.site-page[data-view="bet-info"] .record-row:focus-visible,
.site-page[data-view="bet-info"] .account-period-tabs button:focus-visible {
  outline: 2px solid rgba(230, 0, 19, 0.3);
  outline-offset: 2px;
}

.site-page[data-view="bet-details"] .bet-detail-card {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid #e3e7ed;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
}

.site-page[data-view="bet-details"] .bet-detail-head,
.site-page[data-view="bet-details"] .bet-detail-values,
.site-page[data-view="bet-details"] .bet-detail-rows > div {
  border-color: #eceff3;
}

.site-page[data-view="bet-details"] .bet-detail-event > span,
.site-page[data-view="bet-details"] .bet-detail-event p b {
  color: var(--red);
}

.site-page[data-view="bet-details"] .bet-detail-values {
  background: #f8f9fb;
}

@media (min-width: 761px) {
  #app .site-page[data-view="bet-info"] .bet-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-page[data-view="bet-info"] .page-main {
    padding: 8px 8px calc(72px + env(safe-area-inset-bottom));
  }

  .site-page[data-view="bet-info"] .account-metric strong {
    font-size: 18px;
  }
}

/* Recharge flow: aligned with the current red, white and neutral account UI. */
.site-page[data-view="recharge"] .page-main {
  background: #f4f6fa !important;
}

.recharge-view {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

.recharge-balance-summary {
  display: flex;
  min-height: 86px;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  border: 1px solid #e3e7ed;
  border-radius: 6px;
  background: #fff;
}

.recharge-balance-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 6px;
  background: #202734;
  color: #fff;
  font-size: 21px;
  font-weight: 750;
}

.recharge-balance-copy {
  min-width: 0;
  flex: 1;
}

.recharge-balance-copy > span {
  display: block;
  color: #858e9b;
  font-size: 10px;
  font-weight: 650;
  line-height: 15px;
}

.recharge-balance-copy > strong {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  overflow: hidden;
  color: #202734;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 30px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recharge-balance-copy .inline-reload {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  opacity: 0.62;
}

.recharge-record-action {
  display: inline-flex;
  min-width: 96px;
  height: 34px;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 12px;
  border: 1px solid #dfe3e9;
  border-radius: 5px;
  background: #fff;
  color: #4e5866;
  font-size: 11px;
  font-weight: 700;
}

.recharge-record-action span {
  color: #a3aab4;
  font-size: 17px;
}

.recharge-record-action:hover {
  border-color: #f0b7bd;
  background: #fff5f6;
  color: var(--red);
}

.recharge-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.recharge-panel {
  min-width: 0;
  padding: 0 16px 16px;
  border: 1px solid #e3e7ed;
  border-radius: 6px;
  background: #fff;
}

.recharge-section-head {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #eceff3;
}

.recharge-section-head > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.recharge-section-head h2 {
  overflow: hidden;
  color: #202734;
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recharge-section-head > small {
  flex: none;
  color: #8a929e;
  font-size: 10px;
  font-weight: 650;
}

.recharge-step {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border-radius: 50%;
  background: #fff0f1;
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
}

.recharge-channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.recharge-channel-option {
  display: grid;
  min-width: 0;
  min-height: 66px;
  grid-template-columns: 36px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #e2e6ec;
  border-radius: 5px;
  background: #f8f9fb;
  color: #56606e;
  text-align: left;
}

.recharge-channel-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 5px;
  background: #edf0f4;
  color: #596372;
  font-size: 13px;
  font-weight: 800;
}

.recharge-channel-option > span:nth-child(2) {
  min-width: 0;
}

.recharge-channel-option strong,
.recharge-channel-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recharge-channel-option strong {
  color: #303846;
  font-size: 12px;
  font-weight: 750;
  line-height: 18px;
}

.recharge-channel-option small {
  margin-top: 2px;
  color: #949ba6;
  font-size: 9px;
  line-height: 14px;
}

.recharge-channel-option > i {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: #d8dde4;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  opacity: 0;
}

.recharge-channel-option:hover {
  border-color: #cfd5dd;
  background: #fff;
}

.recharge-channel-option.active {
  border-color: var(--red);
  background: #fff5f6;
  box-shadow: 0 0 0 1px rgba(230, 0, 19, 0.04);
}

.recharge-channel-option.active .recharge-channel-icon {
  background: var(--red);
  color: #fff;
}

.recharge-channel-option.active strong {
  color: #202734;
}

.recharge-channel-option.active > i {
  background: var(--red);
  opacity: 1;
}

.recharge-channel-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 5px;
  background: #e9edf2;
}

.recharge-channel-detail > div {
  min-width: 0;
  min-height: 56px;
  padding: 9px 11px;
  background: #f7f8fa;
}

.recharge-channel-detail span,
.recharge-channel-detail strong {
  display: block;
}

.recharge-channel-detail span {
  color: #8a929e;
  font-size: 9px;
  font-weight: 650;
  line-height: 14px;
}

.recharge-channel-detail strong {
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: #414a57;
  font-size: 11px;
  font-weight: 700;
  line-height: 17px;
  white-space: pre-line;
}

.recharge-empty-channel {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-top: 12px;
  border: 1px dashed #d9dee6;
  border-radius: 5px;
  background: #f8f9fb;
}

.recharge-empty-channel strong {
  color: #505a68;
  font-size: 12px;
}

.recharge-empty-channel span {
  margin-top: 4px;
  color: #969da8;
  font-size: 10px;
}

.recharge-input-group {
  display: flex;
  height: 48px;
  align-items: center;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #dfe3e9;
  border-radius: 5px;
  background: #f8f9fb;
}

.recharge-input-group:focus-within {
  border-color: var(--red);
  background: #fff;
  box-shadow: none;
}

.recharge-input-prefix {
  display: grid;
  width: 42px;
  height: 28px;
  flex: 0 0 42px;
  place-items: center;
  border-right: 1px solid #dfe3e9;
  color: #202734;
  font-size: 16px;
  font-weight: 750;
}

.recharge-input-group input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #202734;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.recharge-input-group input::placeholder {
  color: #a6adb7;
  font-size: 12px;
  font-weight: 450;
}

.recharge-input-group.is-invalid {
  border-color: #d7192d;
  box-shadow: 0 0 0 2px rgba(215, 25, 45, 0.08);
}

.recharge-input-group input[type="number"]::-webkit-outer-spin-button,
.recharge-input-group input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.recharge-quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 9px;
}

.recharge-quick-amounts button {
  min-width: 0;
  height: 34px;
  overflow: hidden;
  padding: 0 4px;
  border: 1px solid #e0e4ea;
  border-radius: 4px;
  background: #fff;
  color: #596372;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recharge-quick-amounts button:hover,
.recharge-quick-amounts button.active {
  border-color: var(--red);
  background: #fff0f1;
  color: var(--red);
}

.recharge-field-hint {
  min-height: 16px;
  margin-top: 9px;
  color: #8b939f;
  font-size: 9px;
  font-weight: 550;
  line-height: 16px;
}

.recharge-field-hint.is-error {
  color: #c81226;
  font-weight: 700;
}

.recharge-submit-area {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 15px;
  border: 1px solid #e3e7ed;
  border-radius: 6px;
  background: #fff;
}

.recharge-submit-area > p {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 7px;
  color: #7c8592;
  font-size: 10px;
  font-weight: 550;
  line-height: 17px;
}

.recharge-submit-area > p span {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  border-radius: 50%;
  background: #eaf6f1;
  color: #16815a;
  font-size: 9px;
  font-weight: 800;
}

#app .site-page[data-view="recharge"] .recharge-submit {
  width: 220px;
  height: 44px;
  flex: 0 0 220px;
  margin: 0;
  border: 1px solid var(--red);
  border-radius: 5px;
  background: var(--red);
  box-shadow: none;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
}

#app .site-page[data-view="recharge"] .recharge-submit:hover:not(:disabled) {
  background: #c90011;
}

#app .site-page[data-view="recharge"] .recharge-submit:disabled {
  border-color: #d9dde3;
  background: #e6e9ed;
  color: #9299a4;
}

.recharge-record-action:focus-visible,
.recharge-channel-option:focus-visible,
.recharge-quick-amounts button:focus-visible,
.recharge-submit:focus-visible {
  outline: 2px solid rgba(230, 0, 19, 0.28);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .site-page[data-view="recharge"] .page-main {
    padding: 8px 8px calc(24px + env(safe-area-inset-bottom));
  }

  .recharge-balance-summary {
    min-height: 74px;
    gap: 10px;
    padding: 11px 12px;
  }

  .recharge-balance-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 18px;
  }

  .recharge-balance-copy > strong {
    font-size: 19px;
    line-height: 25px;
  }

  .recharge-record-action {
    min-width: 82px;
    height: 32px;
    padding: 0 9px;
    font-size: 10px;
  }

  .recharge-form {
    gap: 8px;
    margin-top: 8px;
  }

  .recharge-panel {
    padding: 0 11px 12px;
  }

  .recharge-section-head {
    min-height: 46px;
  }

  .recharge-section-head h2 {
    font-size: 13px;
  }

  .recharge-channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
  }

  .recharge-channel-option {
    min-height: 64px;
    grid-template-columns: 32px minmax(0, 1fr) 16px;
    gap: 7px;
    padding: 7px;
  }

  .recharge-channel-icon {
    width: 32px;
    height: 32px;
  }

  .recharge-channel-option > i {
    width: 16px;
    height: 16px;
  }

  .recharge-channel-detail {
    grid-template-columns: 1fr;
  }

  .recharge-channel-detail > div {
    min-height: 50px;
  }

  .recharge-input-group {
    margin-top: 10px;
  }

  .recharge-submit-area {
    min-height: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  #app .site-page[data-view="recharge"] .recharge-submit {
    width: 100%;
    flex-basis: 44px;
  }
}

@media (max-width: 350px) {
  .recharge-channel-option {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .recharge-channel-option > i {
    display: none;
  }

  .recharge-quick-amounts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Unified account settings. */
#app .site-page[data-view="settings"] .page-main {
  background: #f4f6f8;
}

#app .site-page[data-view="settings"] .top-bar {
  border-bottom-color: #e7e9ed;
  background: #fff;
}

.settings-page {
  display: grid;
  width: min(100%, 680px);
  margin: 0 auto;
  gap: 12px;
}

.settings-identity-card {
  display: grid;
  min-height: 112px;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(31, 39, 52, 0.05);
}

.settings-avatar-control {
  width: 68px;
  height: 68px;
}

.settings-avatar-button {
  width: 68px;
  height: 68px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #f0f2f5;
  box-shadow: 0 0 0 1px #dfe3e8;
}

.settings-profile img,
.settings-avatar-button img {
  display: block;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
}

.settings-avatar-button .avatar-edit-mark {
  right: -3px;
  bottom: -3px;
  width: 22px;
  height: 22px;
  border-color: #fff;
  background: var(--red);
  font-size: 15px;
}

.settings-identity-copy {
  min-width: 0;
}

.settings-identity-copy > span {
  display: block;
  margin-bottom: 4px;
  color: #8a919c;
  font-size: 11px;
  font-weight: 650;
}

.settings-identity-copy strong {
  display: block;
  overflow: hidden;
  color: #1f2734;
  font-size: 18px;
  font-weight: 800;
  line-height: 25px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-identity-copy small {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: #6f7783;
  font-size: 12px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-edit-profile {
  min-width: 58px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid #efb8bd;
  border-radius: 5px;
  background: #fff7f8;
  color: var(--red);
  font-size: 12px;
  font-weight: 750;
}

.settings-section {
  min-width: 0;
}

.settings-section-head {
  display: flex;
  height: 38px;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.settings-section-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #222a36;
  font-size: 14px;
  font-weight: 800;
}

.settings-section-head h2::before {
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: var(--red);
  content: "";
}

.settings-section-head > span {
  color: #adb3bc;
  font-size: 9px;
  font-weight: 750;
}

.settings-list {
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
}

.settings-row {
  display: grid;
  width: 100%;
  min-height: 66px;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  border-bottom: 1px solid #eceef2;
  background: #fff;
  text-align: left;
}

.settings-row:last-child {
  border-bottom: 0;
}

.settings-row:hover,
.settings-row:focus-visible {
  background: #fafbfc;
}

.settings-row:focus-visible,
.settings-edit-profile:focus-visible,
.settings-logout-button:focus-visible {
  outline: 2px solid rgba(255, 57, 57, 0.24);
  outline-offset: -2px;
}

.settings-row-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 7px;
  background: #fff0f1;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
}

.settings-row-copy {
  min-width: 0;
}

.settings-row-copy strong {
  display: block;
  color: #252d39;
  font-size: 14px;
  font-weight: 750;
  line-height: 20px;
}

.settings-row-copy small {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: #8b929c;
  font-size: 11px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-row-chevron {
  color: #aeb4bd;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  text-align: right;
}

.settings-row.is-danger .settings-row-icon {
  background: #f7f8fa;
  color: #747b86;
}

.settings-row.is-danger .settings-row-copy strong {
  color: #5e6570;
}

.settings-logout-button {
  display: flex;
  width: 100%;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  border: 1px solid #efb8bd;
  border-radius: 6px;
  background: #fff;
  color: var(--red);
}

.settings-logout-button > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 5px;
  background: #fff0f1;
  font-size: 10px;
  font-weight: 800;
}

.settings-logout-button strong {
  font-size: 14px;
  font-weight: 800;
}

[data-view="settings"] .modal-layer {
  padding: 16px;
  background: rgba(22, 27, 35, 0.5);
  backdrop-filter: blur(3px);
}

[data-view="settings"] .settings-modal {
  width: min(100%, 380px);
  max-height: min(82vh, 560px);
  padding: 22px;
  border: 1px solid #e1e5ea;
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(20, 26, 35, 0.22);
}

.settings-modal-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}

.settings-modal-head > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 7px;
  background: #fff0f1;
  color: var(--red);
  font-size: 11px;
  font-weight: 850;
}

.settings-modal-head small {
  display: block;
  margin-bottom: 2px;
  color: #a0a6af;
  font-size: 9px;
  font-weight: 750;
}

#app [data-view="settings"] .settings-modal-head h2 {
  color: #202834;
  font-size: 17px;
  font-weight: 800;
  line-height: 24px;
  text-align: left;
}

.settings-modal-form {
  display: grid;
  gap: 20px;
  margin-top: 22px;
}

.settings-modal-form .field-label {
  margin-bottom: 8px;
  color: #4d5663;
  font-size: 12px;
  font-weight: 700;
}

.settings-modal-form .input-wrap {
  min-height: 46px;
  border-color: #dfe3e8;
  background: #f7f8fa;
}

.settings-modal-form .input-wrap:focus-within {
  border-color: var(--red);
  box-shadow: none;
}

.settings-modal-form .input-wrap input:focus {
  outline: none;
  box-shadow: none;
}

[data-view="feedback"] .feedback-form .input-wrap:focus-within {
  border-color: var(--red);
  background: #fff;
  box-shadow: none;
}

[data-view="feedback"] .feedback-form input:focus,
[data-view="feedback"] .feedback-form input:focus-visible,
[data-view="feedback"] .feedback-form select:focus,
[data-view="feedback"] .feedback-form select:focus-visible,
[data-view="feedback"] .feedback-form textarea:focus,
[data-view="feedback"] .feedback-form textarea:focus-visible {
  outline: none;
  box-shadow: none;
}

[data-view="settings"] .settings-modal-message {
  margin-top: 18px;
  padding: 13px 14px;
  border: 1px solid #f1d8da;
  border-radius: 6px;
  background: #fff7f8;
  color: #686f79;
  font-size: 13px;
  line-height: 21px;
}

.settings-modal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.settings-modal-form .settings-modal-actions {
  margin-top: 0;
}

.settings-modal-actions .primary-button,
.settings-modal-actions .secondary-button,
.settings-modal-actions .danger-button {
  min-height: 44px;
  margin: 0;
  border-radius: 5px;
}

.settings-modal-actions .primary-button {
  background: var(--red);
  color: #fff;
}

.settings-modal-actions .danger-button {
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
}

@media (max-width: 420px) {
  .settings-identity-card {
    min-height: 104px;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 11px;
    padding: 15px 13px;
  }

  .settings-avatar-control,
  .settings-avatar-button {
    width: 60px;
    height: 60px;
  }

  .settings-profile img,
  .settings-avatar-button img {
    width: 54px;
    height: 54px;
  }

  .settings-edit-profile {
    min-width: 50px;
    padding: 0 10px;
  }

  .settings-row {
    min-height: 62px;
    padding: 9px 12px;
  }
}

/* Unified help center. */
#app .site-page[data-view="help"] .page-main {
  background: #f4f6f8 !important;
}

.help-center {
  display: grid;
  width: min(100%, 760px);
  margin: 0 auto;
  gap: 10px;
}

.help-intro {
  display: grid;
  min-height: 104px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid #e3e7ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(31, 39, 52, 0.05);
}

.help-intro > div {
  min-width: 0;
}

.help-intro > div > small {
  display: block;
  margin-bottom: 3px;
  color: var(--red);
  font-size: 9px;
  font-weight: 800;
  line-height: 14px;
}

.help-intro h2 {
  color: #202834;
  font-size: 19px;
  font-weight: 850;
  line-height: 27px;
}

.help-intro p {
  margin-top: 4px;
  color: #7b838f;
  font-size: 11px;
  font-weight: 600;
  line-height: 17px;
}

.help-intro > button {
  display: grid;
  height: 42px;
  grid-template-columns: 24px auto 12px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #efb8bd;
  border-radius: 6px;
  background: #fff7f8;
  color: var(--red);
}

.help-intro > button > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 5px;
  background: #fff;
  font-size: 10px;
  font-weight: 800;
}

.help-intro > button strong {
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.help-intro > button b {
  font-size: 18px;
  font-weight: 400;
}

.help-section-head {
  display: flex;
  height: 38px;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.help-section-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #252d39;
  font-size: 14px;
  font-weight: 800;
}

.help-section-head h2::before {
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: var(--red);
  content: "";
}

.help-section-head > span {
  color: #9aa1ab;
  font-size: 10px;
  font-weight: 650;
}

#app .site-page[data-view="help"] .help-accordion-list {
  display: grid;
  gap: 8px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#app .site-page[data-view="help"] .help-accordion-list .accordion-item {
  overflow: hidden;
  border: 1px solid #e3e7ec;
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
}

#app .site-page[data-view="help"] .help-accordion-list .accordion-item.open {
  border-color: #efb8bd;
}

#app .site-page[data-view="help"] .help-accordion-list .accordion-button {
  display: grid;
  width: 100%;
  height: 70px;
  min-height: 70px;
  grid-template-columns: 38px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border: 0;
  background: #fff;
}

#app .site-page[data-view="help"] .help-accordion-list .accordion-button:hover,
#app .site-page[data-view="help"] .help-accordion-list .accordion-button:focus-visible {
  background: #fafbfc;
}

.help-guide-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 7px;
  background: #fff0f1;
  color: var(--red);
  font-size: 11px;
  font-weight: 850;
}

#app .site-page[data-view="help"] .help-accordion-list .row-copy {
  display: flex;
  height: auto;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

#app .site-page[data-view="help"] .help-accordion-list .row-copy strong {
  width: 100%;
  color: #252d39;
  font-size: 14px;
  font-weight: 780;
  line-height: 20px;
}

#app .site-page[data-view="help"] .help-accordion-list .row-copy small {
  width: 100%;
  margin-top: 2px;
  color: #8b929c;
  font-size: 11px;
  font-weight: 550;
  line-height: 16px;
}

.help-guide-chevron {
  color: #aeb4bd;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  text-align: center;
  transition: transform 160ms ease;
}

.help-accordion-list .accordion-item.open .help-guide-chevron {
  color: var(--red);
  transform: rotate(90deg);
}

#app .site-page[data-view="help"] .help-accordion-list .accordion-content {
  height: auto;
  overflow: visible;
}

#app .site-page[data-view="help"] .help-accordion-list .accordion-content[hidden] {
  display: none;
}

#app .site-page[data-view="help"] .help-accordion-list .accordion-content-inner {
  padding: 14px;
  border-top: 1px solid #eceef2;
  background: #fafbfc;
}

.help-step-list {
  display: grid;
  gap: 10px;
  list-style: none;
  counter-reset: help-step;
}

.help-step-list li {
  display: grid;
  min-width: 0;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  color: #59616d;
  font-size: 12px;
  font-weight: 550;
  line-height: 20px;
  counter-increment: help-step;
}

.help-step-list li::before {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 5px;
  background: #fff0f1;
  color: var(--red);
  content: counter(help-step);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.help-service-head {
  margin-top: 2px;
}

.help-service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.help-service-item {
  display: grid;
  min-width: 0;
  min-height: 66px;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border: 1px solid #e3e7ec;
  border-radius: 7px;
  background: #fff;
  text-align: left;
}

.help-service-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 7px;
  background: #fff0f1;
  color: var(--red);
  font-size: 11px;
  font-weight: 850;
}

.help-service-item > span:nth-child(2) {
  min-width: 0;
}

.help-service-item strong,
.help-service-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.help-service-item strong {
  color: #252d39;
  font-size: 13px;
  font-weight: 780;
  line-height: 19px;
}

.help-service-item small {
  margin-top: 2px;
  color: #8b929c;
  font-size: 10px;
  line-height: 15px;
}

.help-service-item > b {
  color: #aeb4bd;
  font-size: 21px;
  font-weight: 300;
  text-align: right;
}

@media (max-width: 520px) {
  .help-intro {
    min-height: 96px;
    gap: 10px;
    padding: 15px 13px;
  }

  .help-intro h2 {
    font-size: 17px;
    line-height: 24px;
  }

  .help-intro > button {
    grid-template-columns: 22px auto;
    padding: 0 10px;
  }

  .help-intro > button b {
    display: none;
  }

  .help-service-list {
    grid-template-columns: 1fr;
  }
}

/* Inputs with a styled container use that container as their single focus ring. */
#app .site-page .input-wrap input:focus,
#app .site-page .input-wrap select:focus,
#app .site-page .input-wrap textarea:focus,
#app .site-page .source-field-card input:focus,
#app .site-page .recharge-input-group input:focus,
#app .site-page[data-view="pg"] .source-pg-content input:focus,
#app .site-page[data-view="chat"] .chat-compose textarea:focus,
.sms-captcha-layer .input-wrap input:focus {
  outline: none;
  outline-offset: 0;
  box-shadow: none;
}

#app .site-page .input-wrap:focus-within,
#app .site-page .source-field-card:focus-within,
#app .site-page .recharge-input-group:focus-within,
.sms-captcha-layer .input-wrap:focus-within {
  border-color: var(--red);
  box-shadow: none;
}

#app .site-page[data-view="pg"] .source-pg-content {
  border: 1px solid transparent;
}

#app .site-page[data-view="pg"] .source-pg-content:focus-within {
  border-color: var(--red);
  box-shadow: none;
}

#app .site-page[data-view="chat"] .chat-compose textarea:focus {
  border-color: var(--red);
  box-shadow: none;
}

/* Withdrawal flow: use the same restrained account treatment as recharge. */
.site-page[data-view="withdraw"] .page-main {
  background: #f4f6fa !important;
}

.withdraw-view {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

.withdraw-balance-summary {
  display: flex;
  min-height: 86px;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  border: 1px solid #e3e7ed;
  border-radius: 6px;
  background: #fff;
}

.withdraw-balance-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid #ffd4d8;
  border-radius: 6px;
  background: #fff0f1;
  color: var(--red);
  font-size: 21px;
  font-weight: 800;
}

.withdraw-balance-copy {
  min-width: 0;
  flex: 1;
}

.withdraw-balance-copy > span,
.withdraw-balance-copy > small {
  display: block;
  color: #858e9b;
  font-size: 10px;
  font-weight: 650;
  line-height: 15px;
}

.withdraw-balance-copy > strong {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  margin-top: 1px;
  overflow: hidden;
  color: #202734;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 30px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.withdraw-balance-copy > small {
  margin-top: 1px;
  color: #a1a8b2;
  font-size: 9px;
  font-weight: 500;
}

.withdraw-balance-copy .inline-reload {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  opacity: 0.62;
}

.withdraw-record-action,
.withdraw-manage-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #dfe3e9;
  border-radius: 5px;
  background: #fff;
  color: #4e5866;
  font-size: 11px;
  font-weight: 700;
}

.withdraw-record-action {
  min-width: 96px;
  height: 34px;
  flex: none;
  padding: 0 12px;
}

.withdraw-record-action span,
.withdraw-manage-action span {
  color: #a3aab4;
  font-size: 17px;
  line-height: 1;
}

.withdraw-record-action:hover,
.withdraw-manage-action:hover {
  border-color: #f0b7bd;
  background: #fff5f6;
  color: var(--red);
}

.withdraw-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.withdraw-panel,
.withdraw-submit-area {
  min-width: 0;
  border: 1px solid #e3e7ed;
  border-radius: 6px;
  background: #fff;
}

.withdraw-panel {
  padding: 0 16px 16px;
}

.withdraw-section-head {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #eceff3;
}

.withdraw-section-head > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.withdraw-section-head h2 {
  overflow: hidden;
  color: #202734;
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.withdraw-section-head > small {
  flex: none;
  color: #8a929e;
  font-size: 10px;
  font-weight: 650;
}

.withdraw-step {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border-radius: 50%;
  background: #fff0f1;
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
}

.withdraw-manage-action {
  min-height: 30px;
  padding: 0 7px 0 10px;
  border-color: transparent;
  background: transparent;
  color: #737c89;
  font-size: 11px;
}

.withdraw-account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.withdraw-account-option {
  display: grid;
  min-width: 0;
  min-height: 70px;
  grid-template-columns: 36px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #e2e6ec;
  border-radius: 5px;
  background: #f8f9fb;
  color: #56606e;
  text-align: left;
}

.withdraw-account-option:hover {
  border-color: #cfd5dd;
  background: #fff;
}

.withdraw-account-option.active {
  border-color: var(--red);
  background: #fff5f6;
  box-shadow: 0 0 0 1px rgba(230, 0, 19, 0.04);
}

.withdraw-account-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 5px;
  background: #edf0f4;
  color: #596372;
}

.withdraw-account-icon .ui-icon {
  width: 18px;
  height: 18px;
}

.withdraw-account-option.active .withdraw-account-icon {
  background: var(--red);
  color: #fff;
}

.withdraw-account-copy {
  min-width: 0;
}

.withdraw-account-copy strong,
.withdraw-account-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.withdraw-account-copy strong {
  color: #303846;
  font-size: 12px;
  font-weight: 750;
  line-height: 18px;
}

.withdraw-account-copy small {
  margin-top: 2px;
  color: #949ba6;
  font-size: 10px;
  line-height: 14px;
}

.withdraw-account-option > i {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  opacity: 0;
}

.withdraw-account-option.active > i {
  opacity: 1;
}

.withdraw-account-empty {
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 11px;
  border: 1px dashed #d9dee6;
  border-radius: 5px;
  background: #f8f9fb;
}

.withdraw-empty-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  background: #fff0f1;
  color: var(--red);
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
}

.withdraw-account-empty > div {
  min-width: 0;
  flex: 1;
}

.withdraw-account-empty strong,
.withdraw-account-empty small {
  display: block;
}

.withdraw-account-empty strong {
  color: #505a68;
  font-size: 12px;
  line-height: 18px;
}

.withdraw-account-empty small {
  margin-top: 2px;
  color: #969da8;
  font-size: 10px;
  line-height: 14px;
}

.withdraw-account-empty > button {
  display: inline-flex;
  min-height: 30px;
  flex: none;
  align-items: center;
  gap: 3px;
  padding: 0 4px 0 8px;
  background: transparent;
  color: var(--red);
  font-size: 11px;
  font-weight: 750;
}

.withdraw-account-empty > button span {
  color: #c14d57;
  font-size: 17px;
  line-height: 1;
}

.withdraw-account-empty.is-closed .withdraw-empty-icon {
  background: #fff7eb;
  color: #b76b00;
}

.withdraw-account-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: #7d8793;
  font-size: 10px;
  line-height: 16px;
}

.withdraw-account-hint span {
  display: grid;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  place-items: center;
  border-radius: 50%;
  background: #eaf6f1;
  color: #16815a;
  font-size: 9px;
  font-weight: 800;
}

.withdraw-input-group {
  display: flex;
  height: 48px;
  align-items: center;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #dfe3e9;
  border-radius: 5px;
  background: #f8f9fb;
}

.withdraw-input-group:focus-within {
  border-color: var(--red);
  background: #fff;
}

.withdraw-input-prefix {
  display: grid;
  width: 42px;
  height: 28px;
  flex: 0 0 42px;
  place-items: center;
  border-right: 1px solid #dfe3e9;
  color: #202734;
  font-size: 16px;
  font-weight: 750;
}

.withdraw-input-group input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #202734;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.withdraw-input-group input::placeholder {
  color: #a6adb7;
  font-size: 12px;
  font-weight: 450;
}

.withdraw-input-group input[type="number"]::-webkit-outer-spin-button,
.withdraw-input-group input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.withdraw-amount-meta {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  padding: 0 2px;
}

.withdraw-amount-meta span,
.withdraw-amount-meta strong {
  min-width: 0;
  font-size: 10px;
  line-height: 16px;
}

.withdraw-amount-meta span {
  flex: none;
  color: #8b939f;
  font-weight: 550;
}

.withdraw-amount-meta strong {
  overflow: hidden;
  color: #7d8793;
  font-weight: 550;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.withdraw-submit-area {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 15px;
}

.withdraw-submit-area > p {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 7px;
  color: #7c8592;
  font-size: 10px;
  font-weight: 550;
  line-height: 17px;
}

.withdraw-submit-area > p span {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  border-radius: 50%;
  background: #eaf6f1;
  color: #16815a;
  font-size: 9px;
  font-weight: 800;
}

#app .site-page[data-view="withdraw"] .withdraw-submit {
  width: 220px;
  height: 44px;
  flex: 0 0 220px;
  margin: 0;
  border: 1px solid var(--red);
  border-radius: 5px;
  background: var(--red);
  box-shadow: none;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
}

#app .site-page[data-view="withdraw"] .withdraw-submit:hover:not(:disabled) {
  background: #c90011;
}

#app .site-page[data-view="withdraw"] .withdraw-submit:disabled {
  border-color: #d9dde3;
  background: #e6e9ed;
  color: #9299a4;
}

.withdraw-record-action:focus-visible,
.withdraw-manage-action:focus-visible,
.withdraw-account-option:focus-visible,
.withdraw-account-empty > button:focus-visible,
.withdraw-submit:focus-visible {
  outline: 2px solid rgba(230, 0, 19, 0.28);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .site-page[data-view="withdraw"] .page-main {
    padding: 8px 8px calc(24px + env(safe-area-inset-bottom));
  }

  .withdraw-balance-summary {
    min-height: 74px;
    gap: 10px;
    padding: 11px 12px;
  }

  .withdraw-balance-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 18px;
  }

  .withdraw-balance-copy > strong {
    font-size: 19px;
    line-height: 25px;
  }

  .withdraw-record-action {
    min-width: 82px;
    height: 32px;
    padding: 0 9px;
    font-size: 10px;
  }

  .withdraw-form {
    gap: 8px;
    margin-top: 8px;
  }

  .withdraw-panel {
    padding: 0 11px 12px;
  }

  .withdraw-section-head {
    min-height: 46px;
  }

  .withdraw-section-head h2 {
    font-size: 13px;
  }

  .withdraw-account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
  }

  .withdraw-account-option {
    min-height: 64px;
    grid-template-columns: 32px minmax(0, 1fr) 16px;
    gap: 7px;
    padding: 7px;
  }

  .withdraw-account-icon {
    width: 32px;
    height: 32px;
  }

  .withdraw-account-option > i {
    width: 16px;
    height: 16px;
  }

  .withdraw-account-empty {
    min-height: 70px;
    margin-top: 10px;
    padding: 9px;
  }

  .withdraw-input-group {
    margin-top: 10px;
  }

  .withdraw-amount-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
    margin-top: 7px;
  }

  .withdraw-amount-meta strong {
    max-width: 100%;
    text-align: left;
  }

  .withdraw-submit-area {
    min-height: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  #app .site-page[data-view="withdraw"] .withdraw-submit {
    width: 100%;
    flex-basis: 44px;
  }
}

@media (max-width: 350px) {
  .withdraw-account-grid {
    grid-template-columns: 1fr;
  }

  .withdraw-account-option {
    min-height: 60px;
  }
}

/* Match detail uses the same restrained red, white, and gray system as the site shell. */
.site-page[data-view="billiards-info"] .page-main {
  width: 100%;
  max-width: 1120px;
  padding: 14px;
  background: var(--page);
}

.match-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: start;
  gap: 14px;
}

.match-detail-summary,
.match-betting-panel {
  min-width: 0;
}

.site-page[data-view="billiards-info"] .match-head-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--site-radius);
  background: #fff;
  box-shadow: none;
  color: var(--type-strong);
}

.site-page[data-view="billiards-info"] .match-head-card::before {
  display: none;
}

.site-page[data-view="billiards-info"] .match-head-top {
  min-height: 50px;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
}

.site-page[data-view="billiards-info"] .match-league {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  color: var(--type-strong);
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
}

.site-page[data-view="billiards-info"] .match-league::before {
  width: 3px;
  height: 17px;
  flex: 0 0 3px;
  border-radius: 2px;
  background: var(--red);
  content: "";
}

.site-page[data-view="billiards-info"] .match-status {
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid #f2cfd2;
  border-radius: 4px;
  background: #fff0f1;
  color: var(--red);
  font-size: 10px;
  font-weight: 750;
}

.site-page[data-view="billiards-info"] .match-status i,
.site-page[data-view="billiards-info"] .match-head-actions p i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: none;
}

.site-page[data-view="billiards-info"] .match-head-live .match-status {
  border-color: #cce9dd;
  background: #edf8f3;
  color: var(--type-positive);
}

.site-page[data-view="billiards-info"] .match-head-closed .match-status,
.site-page[data-view="billiards-info"] .match-head-settled .match-status {
  border-color: #dfe3e8;
  background: #f4f6f8;
  color: #727a86;
}

.site-page[data-view="billiards-info"] .match-contest {
  min-height: 168px;
  grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
  padding: 23px 16px 20px;
  background: #fff;
}

.site-page[data-view="billiards-info"] .team-mark {
  width: 82px;
  height: 32px;
  background: transparent;
  object-fit: contain;
}

.site-page[data-view="billiards-info"] .match-team strong {
  min-height: 42px;
  margin-top: 11px;
  color: var(--type-strong);
  font-size: 15px;
  font-weight: 800;
  line-height: 21px;
}

.site-page[data-view="billiards-info"] .match-versus > strong {
  min-height: 40px;
  color: var(--red);
  font-family: "DIN Alternate", "Avenir Next", sans-serif;
  font-size: 24px;
  font-weight: 850;
}

.site-page[data-view="billiards-info"] .match-versus.has-score > strong {
  color: var(--type-strong);
  font-size: 28px;
}

.site-page[data-view="billiards-info"] .match-versus > strong span {
  color: var(--red);
  font-size: 18px;
}

.site-page[data-view="billiards-info"] .match-versus > span {
  color: var(--type-muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 17px;
}

.site-page[data-view="billiards-info"] .match-versus > span b {
  color: var(--type-body);
  font-size: 13px;
  font-weight: 750;
}

.site-page[data-view="billiards-info"] .match-head-actions {
  min-height: 46px;
  padding: 0 14px;
  border-top: 1px solid var(--line);
  background: #f8f9fb;
}

.site-page[data-view="billiards-info"] .match-record-button {
  min-height: 34px;
  gap: 7px;
  color: var(--red);
  font-size: 11px;
  font-weight: 750;
}

.site-page[data-view="billiards-info"] .match-record-icon {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 0;
}

.site-page[data-view="billiards-info"] .match-record-icon::before,
.site-page[data-view="billiards-info"] .match-record-icon::after {
  display: none;
}

.site-page[data-view="billiards-info"] .match-record-icon .ui-icon {
  width: 17px;
  height: 17px;
}

.site-page[data-view="billiards-info"] .match-head-actions p {
  color: var(--type-positive);
  font-size: 10px;
  font-weight: 700;
}

.site-page[data-view="billiards-info"] .match-head-closed .match-head-actions p,
.site-page[data-view="billiards-info"] .match-head-settled .match-head-actions p {
  color: #7f8792;
}

.site-page[data-view="billiards-info"] .details-wallet {
  min-height: 74px;
  margin: 10px 0 0;
  padding: 11px 14px;
  border: 1px solid #f3d8db;
  border-radius: var(--site-radius);
  background: #fff7f8;
  box-shadow: none;
}

.site-page[data-view="billiards-info"] .details-wallet .wallet-image {
  width: 40px;
  height: 40px;
}

.site-page[data-view="billiards-info"] .details-wallet .wallet-copy {
  min-width: 0;
  flex: 1;
  padding-left: 10px;
}

.site-page[data-view="billiards-info"] .details-wallet .wallet-copy strong {
  color: var(--type-strong);
  font-size: 17px;
  font-weight: 800;
}

.site-page[data-view="billiards-info"] .details-wallet .wallet-copy > span {
  margin-top: 2px;
  color: var(--type-muted);
  font-size: 10px;
}

.site-page[data-view="billiards-info"] .details-wallet .mini-tool {
  min-width: 58px;
  height: 46px;
  padding-left: 13px;
  border-left: 1px solid #f0dfe1;
}

.site-page[data-view="billiards-info"] .details-wallet .mini-tool img {
  width: 28px;
  height: 28px;
}

.site-page[data-view="billiards-info"] .details-wallet .mini-tool span {
  margin-top: 1px;
  color: var(--red);
  font-size: 10px;
  font-weight: 750;
}

.site-page[data-view="billiards-info"] .details-section-title {
  min-height: 50px;
  padding: 0 2px;
  color: var(--type-strong);
  font-size: 15px;
  font-weight: 800;
}

.site-page[data-view="billiards-info"] .details-section-title > span {
  width: 3px;
  height: 17px;
  background: var(--red);
}

.site-page[data-view="billiards-info"] .details-section-title small {
  min-width: 58px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  background: #fff0f1;
  color: var(--red);
  font-size: 10px;
  font-weight: 750;
  line-height: 24px;
  text-align: center;
}

.site-page[data-view="billiards-info"] .market-list {
  gap: 10px;
}

.site-page[data-view="billiards-info"] .market-card {
  border: 1px solid var(--line);
  border-radius: var(--site-radius);
  background: #fff;
  box-shadow: none;
}

.site-page[data-view="billiards-info"] .market-card > header {
  min-height: 52px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
}

.site-page[data-view="billiards-info"] .market-card > header div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.site-page[data-view="billiards-info"] .market-card > header div::before {
  width: 3px;
  height: 15px;
  flex: 0 0 3px;
  border-radius: 2px;
  background: var(--red);
  content: "";
}

.site-page[data-view="billiards-info"] .market-card > header div > strong {
  color: var(--type-strong);
  font-size: 14px;
  font-weight: 800;
}

.site-page[data-view="billiards-info"] .market-status {
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #dfe3e8;
  border-radius: 4px;
  background: #f4f6f8;
  color: #7a828e;
  font-size: 10px;
  font-weight: 750;
  line-height: 22px;
}

.site-page[data-view="billiards-info"] .market-status.is-open {
  border-color: #cce9dd;
  background: #edf8f3;
  color: var(--type-positive);
}

.site-page[data-view="billiards-info"] .market-options {
  gap: 8px;
  padding: 10px;
  background: #fff;
}

.site-page[data-view="billiards-info"] .odds-option {
  min-height: 52px;
  padding: 8px 11px;
  border: 1px solid #e4e7ec;
  border-radius: 5px;
  background: #f7f8fa;
  color: var(--type-body);
}

.site-page[data-view="billiards-info"] .odds-option span {
  color: var(--type-body);
  font-size: 12px;
  font-weight: 700;
}

.site-page[data-view="billiards-info"] .odds-option strong {
  color: var(--red);
  font-family: "DIN Alternate", "Avenir Next", sans-serif;
  font-size: 17px;
  font-weight: 850;
}

.site-page[data-view="billiards-info"] .odds-option:not(:disabled):hover,
.site-page[data-view="billiards-info"] .odds-option:not(:disabled):active {
  border-color: #efb8bd;
  background: #fff0f1;
  transform: none;
}

.site-page[data-view="billiards-info"] .odds-option:focus-visible {
  outline: 2px solid rgba(230, 0, 19, 0.25);
  outline-offset: 2px;
}

.site-page[data-view="billiards-info"] .odds-stopped {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: var(--site-radius);
  background: #fff;
  box-shadow: none;
  color: var(--type-muted);
}

.site-page[data-view="billiards-info"] .odds-empty-mark {
  border-color: #f2cfd2;
  background: #fff0f1;
  color: var(--red);
}

@media (max-width: 900px) {
  .match-detail-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}

@media (max-width: 760px) {
  .site-page[data-view="billiards-info"] .page-main {
    padding: 8px 8px calc(24px + env(safe-area-inset-bottom));
  }

  .site-page[data-view="billiards-info"] .match-head-top {
    min-height: 46px;
    padding: 0 12px;
  }

  .site-page[data-view="billiards-info"] .match-league {
    font-size: 13px;
  }

  .site-page[data-view="billiards-info"] .match-contest {
    min-height: 148px;
    grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr);
    padding: 20px 10px 16px;
  }

  .site-page[data-view="billiards-info"] .team-mark {
    width: 72px;
    height: 30px;
  }

  .site-page[data-view="billiards-info"] .match-team strong {
    min-height: 40px;
    margin-top: 9px;
    font-size: 14px;
    line-height: 20px;
  }

  .site-page[data-view="billiards-info"] .match-versus > strong {
    font-size: 22px;
  }

  .site-page[data-view="billiards-info"] .match-versus.has-score > strong {
    font-size: 26px;
  }

  .site-page[data-view="billiards-info"] .details-section-title {
    min-height: 44px;
  }
}

@media (max-width: 350px) {
  .site-page[data-view="billiards-info"] .match-contest {
    grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
    padding-right: 7px;
    padding-left: 7px;
  }

  .site-page[data-view="billiards-info"] .team-mark {
    width: 62px;
    height: 26px;
  }

  .site-page[data-view="billiards-info"] .market-options {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Welfare promotions use the same campaign artwork as the home carousel. */
.welfare-promotion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.welfare-promotion-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--site-radius);
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.welfare-promotion-card:hover {
  border-color: #efb8bd;
  box-shadow: 0 6px 18px rgba(29, 34, 45, 0.08);
  transform: translateY(-1px);
}

.welfare-promotion-card:focus-visible {
  outline: 2px solid rgba(230, 0, 19, 0.28);
  outline-offset: 2px;
}

.welfare-promotion-cover {
  display: block;
  width: 100%;
  aspect-ratio: 1372 / 560;
  background: #eef0f4;
  object-fit: cover;
}

.welfare-promotion-copy {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 13px;
}

.welfare-promotion-text {
  min-width: 0;
  flex: 1;
}

.welfare-promotion-copy strong,
.welfare-promotion-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.welfare-promotion-copy strong {
  color: var(--type-strong);
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
}

.welfare-promotion-copy small {
  margin-top: 3px;
  color: var(--type-muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
}

.welfare-promotion-action {
  display: inline-flex;
  min-height: 34px;
  flex: none;
  align-items: center;
  gap: 4px;
  padding: 0;
  background: transparent;
  color: var(--red);
  font-size: 11px;
  font-weight: 750;
}

.welfare-promotion-action b {
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.welfare-promotion-card:hover .welfare-promotion-action {
  color: #c90011;
}

@media (max-width: 760px) {
  .welfare-promotion-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  .welfare-promotion-copy {
    min-height: 66px;
    padding: 9px 11px;
  }
}
