:root {
  --bg: #08111f;
  --panel: #111b2c;
  --panel-2: #162438;
  --line: rgba(255, 255, 255, 0.1);
  --text: #eef5ff;
  --muted: #9fb0c4;
  --gold: #f6bf38;
  --gold-2: #ffe08a;
  --blue: #2f7dff;
  --cyan: #28d8ff;
  --green: #43d182;
  --red: #ff6b6b;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Kanit", system-ui, sans-serif;
  background:
    radial-gradient(circle at 82% 0%, rgba(47, 125, 255, 0.22), transparent 34rem),
    linear-gradient(135deg, #07101d 0%, #0b1424 48%, #111724 100%);
  color: var(--text);
}

body.modal-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 0.22s ease;
}

body.sidebar-collapsed .app-shell {
  grid-template-columns: 72px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: rgba(8, 17, 31, 0.92);
  backdrop-filter: blur(18px);
  overflow-y: auto;
  transition: padding 0.22s ease, background 0.22s ease;
}

.sidebar-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  margin: 0 0 14px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(47, 125, 255, 0.1);
  color: #dbe9f8;
  font-weight: 800;
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-toggle:hover {
  background: rgba(47, 125, 255, 0.2);
  color: var(--text);
}

.sidebar-toggle-icon {
  display: grid;
  gap: 4px;
  width: 18px;
  flex: 0 0 18px;
}

.sidebar-toggle-icon span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.sidebar-toggle strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(47, 125, 255, 0.14);
  color: var(--text);
}

.nav-item:hover {
  transform: translateX(2px);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--gold);
  flex: 0 0 26px;
}

body.sidebar-collapsed .sidebar {
  padding: 14px 10px;
}

body.sidebar-collapsed .sidebar-toggle {
  justify-content: center;
  padding: 0;
}

body.sidebar-collapsed .sidebar-toggle strong,
body.sidebar-collapsed .nav-item span:not(.nav-icon) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.sidebar-collapsed .nav-item {
  justify-content: center;
  min-height: 46px;
  padding: 0;
  gap: 0;
}

body.sidebar-collapsed .nav-item:hover {
  transform: translateX(0);
}

.quick-action small,
.game-info p {
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.main-stage {
  min-width: 0;
  padding: 0 24px 42px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 14px 0;
  background: rgba(10, 18, 32, 0.86);
  backdrop-filter: blur(18px);
}

.icon-button {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.user-menu[hidden] {
  display: none;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  width: 248px;
  padding: 10px 0;
  border-radius: 0 0 8px 8px;
  background: #213f4c;
  color: #f4f8ff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.profile-dropdown[hidden] {
  display: none;
}

.profile-dropdown::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 78px;
  width: 0;
  height: 0;
  border-right: 9px solid transparent;
  border-bottom: 9px solid #213f4c;
  border-left: 9px solid transparent;
}

.profile-dropdown button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 43px;
  padding: 0 14px;
  border-radius: 0;
  background: transparent;
  color: #f4f8ff;
  text-align: left;
  font-size: 1rem;
  font-weight: 900;
}

.profile-dropdown button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.profile-dropdown span {
  color: #b9d4e5;
  font-size: 1.15rem;
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 31;
  display: grid;
  width: min(360px, calc(100vw - 24px));
  max-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #142337;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.notification-dropdown[hidden] {
  display: none;
}

.notification-heading {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #f4f8ff;
}

.user-menu .notification-heading strong {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  border: 0;
}

.notification-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  padding: 12px;
}

.notification-list > p {
  margin: 0;
  color: #b9c7d8;
  font-weight: 800;
}

.notification-item {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.notification-item p,
.notification-item time {
  margin: 0;
}

.notification-item p {
  color: #f4f8ff;
  font-weight: 800;
}

.notification-item time {
  color: #9fb0c6;
  font-size: 0.82rem;
}

.top-wallet-pill,
.top-wallet-button {
  height: 38px;
  border-radius: 8px;
  font-weight: 900;
}

.top-wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 170px;
  padding: 0 12px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111d2c;
  color: #f4f8ff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.top-wallet-pill strong {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
  border: 0;
  font-size: 0.98rem;
  letter-spacing: 0;
}

.top-wallet-coin {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2edc8b, #18a767);
  color: white;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.top-wallet-caret {
  color: #dbe9f7;
  font-size: 1rem;
  line-height: 1;
}

.top-wallet-button {
  padding: 0 18px;
  background: linear-gradient(135deg, var(--blue), #1e65ee);
  color: white;
}

.top-wallet-button:hover,
.top-wallet-pill:hover {
  transform: translateY(-1px);
}

.user-icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #153542;
  color: #f4f8ff;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.user-icon-button:hover {
  border-color: rgba(47, 125, 255, 0.62);
  background: #174154;
  transform: translateY(-1px);
}

.user-menu-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #f4f8ff;
  opacity: 0.96;
}

.user-menu-icon.search::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.user-menu-icon.search::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}

.user-menu-icon.person::before {
  content: "";
  position: absolute;
  top: 1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.user-menu-icon.person::after {
  content: "";
  position: absolute;
  bottom: 1px;
  width: 16px;
  height: 9px;
  border-radius: 10px 10px 4px 4px;
  background: currentColor;
}

.user-menu-icon.bell::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 4px;
  width: 12px;
  height: 10px;
  border-radius: 8px 8px 4px 4px;
  background: #bfe5ff;
  box-shadow: 0 -4px 0 -2px #bfe5ff;
}

.user-menu-icon.bell::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 2px;
  width: 16px;
  height: 4px;
  border-radius: 0 0 8px 8px;
  background:
    radial-gradient(circle at 50% 100%, #bfe5ff 0 2px, transparent 2.4px),
    linear-gradient(#bfe5ff, #bfe5ff);
  background-size: 100% 100%, 100% 2px;
  background-position: center, center top;
  background-repeat: no-repeat;
}

.user-menu strong {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.user-menu .top-wallet-pill strong {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
  border: 0;
}

.primary-button,
.secondary-button,
.soft-button,
.play-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.primary-button {
  background: linear-gradient(135deg, var(--blue), #1c5df0);
  box-shadow: 0 12px 26px rgba(47, 125, 255, 0.24);
}

.secondary-button,
.soft-button {
  background: rgba(255, 255, 255, 0.08);
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 20px;
  min-height: 320px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 125, 255, 0.18), rgba(246, 191, 56, 0.12)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
}

.hero-copy {
  align-self: center;
}

.hero-copy h1 {
  margin: 8px 0 10px;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 640px;
  margin: 0 0 24px;
  color: #c9d7e8;
  font-size: 1.08rem;
}

.hero-guest-copy[hidden],
.hero-ranking-card[hidden] {
  display: none;
}

.hero-ranking-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  align-items: center;
  gap: 22px;
  width: min(560px, 100%);
  padding: 24px;
  border: 2px solid rgba(87, 231, 242, 0.88);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(20, 54, 72, 0.98), rgba(12, 30, 48, 0.98)),
    rgba(17, 27, 44, 0.92);
  box-shadow:
    0 0 0 1px rgba(87, 231, 242, 0.16),
    0 18px 40px rgba(0, 0, 0, 0.28);
}

.ranking-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.ranking-copy h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.15;
}

.ranking-copy a {
  width: max-content;
  max-width: 100%;
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
}

.ranking-copy a::after {
  content: ">";
  margin-left: 8px;
  color: #e7fbff;
}

.ranking-percent {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ranking-percent strong {
  font-size: 1.15rem;
  color: var(--text);
}

.ranking-percent span {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #aee8f4;
  color: #0e3348;
  font-size: 0.78rem;
  font-weight: 900;
}

.ranking-progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(3, 14, 23, 0.82);
}

.ranking-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e8ffff, #32d7dc);
  box-shadow: 0 0 14px rgba(50, 215, 220, 0.55);
}

.ranking-copy p {
  margin: 0;
  color: #bfeef4;
  font-weight: 800;
}

.ranking-badge {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  color: #0d5565;
  font-size: 2.5rem;
  font-weight: 950;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
  background: radial-gradient(circle at 45% 42%, rgba(255, 255, 255, 0.95), rgba(124, 248, 255, 0.82) 38%, rgba(42, 184, 205, 0.98) 64%, rgba(16, 90, 116, 0.95) 100%);
  clip-path: polygon(50% 0%, 61% 25%, 88% 12%, 76% 39%, 100% 50%, 76% 61%, 88% 88%, 61% 75%, 50% 100%, 39% 75%, 12% 88%, 24% 61%, 0% 50%, 24% 39%, 12% 12%, 39% 25%);
  filter: drop-shadow(0 12px 20px rgba(37, 221, 229, 0.28));
}

.hero-actions,
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-board {
  display: grid;
  align-content: center;
  gap: 12px;
}

.stat-card,
.quick-action,
.game-card,
.activity-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 27, 44, 0.86);
}

.stat-card {
  display: grid;
  gap: 3px;
  padding: 18px;
}

.stat-card span {
  color: var(--muted);
}

.stat-card strong {
  font-size: 2rem;
}

.stat-card strong.pulse {
  animation: statPulse 0.45s ease;
}

@keyframes statPulse {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.035);
    color: var(--gold-2);
  }

  100% {
    transform: scale(1);
  }
}

.stat-card.accent {
  border-color: rgba(246, 191, 56, 0.32);
  background: rgba(246, 191, 56, 0.12);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.quick-action {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 2px 12px;
  min-height: 88px;
  padding: 16px;
  color: var(--text);
  text-align: left;
}

.quick-action span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(47, 125, 255, 0.16);
  color: var(--gold);
  font-weight: 700;
}

.content-row,
.dashboard-row {
  display: grid;
  gap: 18px;
}

body.games-only .hero-band,
body.games-only .quick-grid,
body.games-only .dashboard-row {
  display: none;
}

body.games-only .content-row {
  padding-top: 6px;
}

body.yeekee-only .hero-band,
body.yeekee-only .quick-grid,
body.yeekee-only .content-row,
body.yeekee-only .dashboard-row {
  display: none;
}

.yeekee-page {
  display: grid;
  gap: 14px;
  min-height: calc(100vh - 112px);
  padding: 0 0 26px;
  border-radius: 8px;
  background: #f6f7f9;
  color: #171d2b;
  overflow: hidden;
}

.yeekee-page[hidden] {
  display: none;
}

.yeekee-heading {
  display: grid;
  gap: 8px;
  padding: 16px 18px 0;
  border-bottom: 1px solid #d9dde4;
  background: #ffffff;
}

.yeekee-back {
  justify-self: start;
  background: transparent;
  color: #111827;
  font-size: 1.7rem;
  font-weight: 900;
}

.yeekee-heading span,
.yeekee-section-title {
  color: #171d2b;
  font-weight: 900;
}

.yeekee-heading h2 {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #05a9de;
  font-size: 1.02rem;
}

.yeekee-section-title {
  margin: 8px 18px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #05a9de;
}

.yeekee-round-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 16px;
  padding: 0 18px;
}

.yeekee-round-card {
  display: grid;
  grid-template-rows: 54px 56px;
  min-height: 110px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: #ffffff;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08);
}

.yeekee-round-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(116px, 0.95fr) auto;
  grid-template-rows: 28px 26px;
  min-width: 0;
  background: #8f8f8f;
  border-bottom: 1px solid rgba(0, 0, 0, 0.16);
}

.yeekee-round-card.open .yeekee-round-head {
  background: #df3044;
}

.yeekee-round-ribbon {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 118px;
  min-height: 28px;
  margin-top: 0;
  padding: 0 20px 0 9px;
  background: #4a4a4a;
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 50%, 100% 100%, 0 100%);
  font-size: 0.92rem;
  font-weight: 900;
}

.yeekee-round-ribbon small {
  padding: 1px 4px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.38);
  font-size: 0.58rem;
}

.yeekee-round-card strong {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  padding: 0 9px 0 0;
  font-size: 1.05rem;
  font-weight: 1000;
}

.yeekee-round-card em {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  justify-self: end;
  margin: 0 8px 0 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.yeekee-round-status {
  place-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #a8a8a8;
  font-size: 1.15rem;
  font-weight: 1000;
}

.yeekee-round-card.open .yeekee-round-status {
  color: #22a94d;
  font-size: 1.34rem;
}

.yeekee-round-card:disabled {
  cursor: not-allowed;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 14px;
}

.section-heading h2 {
  margin: 4px 0 0;
  font-size: 1.65rem;
}

.section-heading.compact {
  align-items: center;
}

.tab {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
}

.tab.active {
  background: rgba(47, 125, 255, 0.2);
  color: var(--text);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.game-card {
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.game-card:hover,
.game-card:focus {
  border-color: rgba(47, 125, 255, 0.52);
  outline: none;
  transform: translateY(-3px);
}

.game-art {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  color: white;
  font-size: 3rem;
  font-weight: 800;
}

.game-art span {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 4px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.16);
}

.wheel { background: linear-gradient(135deg, #174ccf, #f6bf38); }
.chest { background: linear-gradient(135deg, #5a34d6, #28d8ff); }
.target { background: linear-gradient(135deg, #0f8f68, #f6bf38); }
.puzzle { background: linear-gradient(135deg, #d94f69, #2f7dff); }
.rocket { background: linear-gradient(135deg, #26384f, #43d182); }
.gem { background: linear-gradient(135deg, #28d8ff, #ffffff 48%, #f6bf38); }
.lottery { background: linear-gradient(135deg, #1ba3d9, #c13d78); }

.game-info {
  padding: 16px;
}

.game-info h3,
.game-info p {
  margin: 0;
}

.game-info p {
  min-height: 48px;
  margin-top: 4px;
}

.play-button {
  width: 100%;
  margin-top: 14px;
  background: rgba(47, 125, 255, 0.92);
}

.dashboard-row {
  grid-template-columns: 1fr;
  margin-top: 22px;
}

.activity-panel {
  padding: 18px;
}

.activity-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.activity-list li {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.activity-list em {
  color: var(--gold-2);
  font-style: normal;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.win { background: var(--green); }
.dot.pay { background: var(--blue); }
.dot.lose { background: var(--red); }

.modal-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(3, 8, 15, 0.72);
  backdrop-filter: blur(8px);
}

.modal-backdrop[hidden] {
  display: none;
}

.search-overlay {
  position: fixed;
  z-index: 55;
  inset: 0;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 48px 24px;
  background: rgba(3, 10, 18, 0.76);
  backdrop-filter: blur(10px);
}

.search-overlay[hidden] {
  display: none;
}

.search-panel {
  width: min(1120px, 100%);
  max-height: calc(100vh - 96px);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #15313d;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  overflow-y: auto;
}

.search-modal-input {
  display: grid;
  grid-template-columns: 30px 1fr 42px;
  align-items: center;
  min-height: 58px;
  padding: 0 8px 0 16px;
  border: 1px solid rgba(238, 245, 255, 0.84);
  border-radius: 8px;
  background: rgba(8, 17, 31, 0.78);
}

.search-modal-input .user-menu-icon {
  color: #bfe5ff;
}

.search-modal-input input {
  width: 100%;
  height: 56px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.05rem;
}

.search-modal-input input::placeholder {
  color: #aab9ca;
}

.search-close-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: transparent;
  color: #eef5ff;
  font-size: 0;
  line-height: 1;
}

.search-close-button::before {
  content: "×";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: inherit;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 24px;
}

.search-close-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.search-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  margin: 16px 0 18px;
  border-radius: 999px;
  background: rgba(3, 8, 15, 0.42);
}

.search-tabs button {
  min-width: 92px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: transparent;
  color: #d8e5f5;
  font-weight: 700;
}

.search-tabs button.active {
  background: rgba(238, 245, 255, 0.16);
  color: var(--text);
}

.search-game-section {
  display: grid;
  gap: 14px;
}

.search-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.search-section-title h2 {
  margin: 0;
  font-size: 1.35rem;
}

.search-section-title h2::before {
  content: "⚙";
  margin-right: 8px;
  color: #c8d8e8;
}

.search-section-title button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  background: transparent;
  color: #e9f3ff;
  font-weight: 700;
}

.search-game-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.search-game-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.search-game-card .game-art {
  width: 100%;
  height: 178px;
  aspect-ratio: auto;
  border-radius: 8px;
  overflow: hidden;
  font-size: 2rem;
}

.search-game-card .game-art span {
  width: 68px;
  height: 68px;
  border-width: 3px;
}

.search-game-card strong {
  display: block;
  overflow: hidden;
  color: #f7fbff;
  font-size: 0.95rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-game-card small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #b8c8da;
  font-size: 0.82rem;
}

.search-game-card small::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #20e06a;
}

.search-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 32px;
  border-radius: 8px;
  background: rgba(8, 17, 31, 0.56);
  color: var(--muted);
  text-align: center;
}

.register-modal,
.login-modal {
  position: relative;
  width: min(630px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  padding: 22px 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #121c2d;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 0 8px 0 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 1.6rem;
}

.modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.modal-brand {
  width: 72px;
  height: 44px;
  margin: 0 0 10px;
  overflow: hidden;
}

.modal-brand img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  object-position: top left;
  display: block;
}

.register-modal h2,
.login-modal h2 {
  margin: 0 0 22px;
  font-size: 1.35rem;
}

.register-form,
.login-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.register-phone-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 174px;
  gap: 10px;
  align-items: end;
}

.register-phone-row button,
.register-next-button {
  min-height: 44px;
  border-radius: 7px;
  background: linear-gradient(135deg, #2f7dff, #1f62e7);
  color: var(--text);
  font-weight: 900;
}

.field span,
.terms-row,
.signin-note {
  color: #d9e4f2;
}

.field em,
.terms-row em {
  color: var(--gold);
  font-style: normal;
}

.field input,
.field select,
.referral-box input {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  outline: 0;
  padding: 0 12px;
  background: rgba(8, 17, 31, 0.72);
  color: var(--text);
}

.field input:focus,
.field select:focus,
.referral-box input:focus {
  border-color: rgba(47, 125, 255, 0.74);
  box-shadow: 0 0 0 3px rgba(47, 125, 255, 0.18);
}

.register-bank-section {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px dashed rgba(47, 125, 255, 0.44);
  border-radius: 8px;
  background: rgba(47, 125, 255, 0.08);
}

.register-password-section {
  display: grid;
  gap: 14px;
}

.register-password-section[hidden],
.register-bank-section[hidden] {
  display: none;
}

.register-bank-copy {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(47, 125, 255, 0.34);
  border-radius: 8px;
  background: rgba(47, 125, 255, 0.1);
}

.register-bank-copy strong {
  color: var(--gold-2);
  font-size: 0.86rem;
}

.register-bank-copy h3,
.register-bank-copy p {
  margin: 0;
}

.register-bank-copy h3 {
  font-size: 1.08rem;
}

.register-bank-copy p {
  color: #c7d6e8;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.register-otp-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px dashed rgba(47, 125, 255, 0.44);
  border-radius: 8px;
  background: rgba(47, 125, 255, 0.08);
}

.register-otp-ref {
  width: fit-content;
  margin: 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(246, 191, 56, 0.12);
  color: #ffe08a;
  font-weight: 800;
}

.register-otp-box[hidden] {
  display: none;
}

.register-otp-actions {
  display: grid;
  gap: 8px;
}

.register-otp-actions button {
  min-height: 42px;
  border-radius: 7px;
  background: linear-gradient(135deg, #2f7dff, #1f62e7);
  color: var(--text);
  font-weight: 800;
}

.register-phone-row button:disabled,
.register-next-button:disabled,
.register-otp-actions button:disabled,
.register-submit:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  box-shadow: none;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 60px;
}

.password-toggle {
  position: absolute;
  right: 4px;
  bottom: 4px;
  min-width: 52px;
  height: 36px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}

.referral-box {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.referral-box summary {
  min-height: 50px;
  padding: 13px 14px;
  color: #d9e4f2;
  cursor: pointer;
  list-style: none;
}

.referral-box summary::-webkit-details-marker {
  display: none;
}

.referral-box summary span {
  color: var(--muted);
}

.referral-box input {
  margin: 0 14px 14px;
  width: calc(100% - 28px);
}

.terms-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  line-height: 1.45;
  cursor: pointer;
}

.terms-row input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--blue);
}

.register-submit {
  min-height: 52px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), #1d5ee9);
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(47, 125, 255, 0.24);
}

.forgot-button {
  justify-self: start;
  min-height: 24px;
  padding: 0;
  background: transparent;
  color: var(--gold-2);
  font-weight: 600;
}

.form-message {
  margin: -2px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(67, 209, 130, 0.12);
  color: #a9ffc9;
  text-align: center;
}

.form-message[data-type="error"] {
  background: rgba(255, 107, 107, 0.12);
  color: #ffb8b8;
}

.divider {
  display: grid;
  place-items: center;
  position: relative;
  color: var(--muted);
  font-size: 0.9rem;
}

.divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.divider span {
  position: relative;
  padding: 0 12px;
  background: #121c2d;
}

.social-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.login-options {
  display: grid;
  gap: 12px;
}

.login-options button {
  min-height: 48px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 600;
}

.social-row button {
  min-height: 48px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 600;
}

.signin-note {
  margin: 14px 0 0;
  text-align: center;
}

.signin-note button {
  margin-left: 6px;
  background: transparent;
  color: var(--gold-2);
  font-weight: 700;
}

.wallet-page-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: start center;
  padding: 24px;
  overflow-y: auto;
  background: rgba(2, 10, 18, 0.62);
  backdrop-filter: blur(6px);
}

.wallet-page-backdrop[hidden] {
  display: none;
}

.wallet-page {
  position: relative;
  width: min(478px, 100%);
  color: #eef8ff;
}

.wallet-page:has(.lottery-demo-page:not([hidden])) {
  width: min(980px, 100%);
}

.wallet-close {
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: transparent;
  color: #a9c0d0;
  font-size: 1.55rem;
}

.wallet-summary {
  display: grid;
  padding: 0 8px 8px;
  border: 0;
  border-radius: 8px;
  background: #17313c;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.5);
}

.wallet-summary[hidden] {
  display: none;
}

.wallet-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 0 44px 0 0;
  margin: 0;
}

.wallet-title-row h2 {
  margin: 0;
  color: #f4fbff;
  font-size: 1.24rem;
  line-height: 1.1;
}

.wallet-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #bdd3df;
  font-size: 1rem;
}

.wallet-tabs {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 6px 0 13px;
  margin: 0 -8px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.wallet-tabs::-webkit-scrollbar {
  display: none;
}

.wallet-tabs::after {
  position: absolute;
  right: 8px;
  bottom: 0;
  left: 8px;
  height: 5px;
  border-radius: 999px;
  background: #496f7c;
  content: "";
}

.wallet-tabs button {
  flex: 0 0 auto;
  min-width: 102px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: transparent;
  color: #f4fbff;
  font-weight: 900;
}

.wallet-tabs button.active {
  background: #486879;
  color: #ffffff;
}

.wallet-balance-card {
  display: grid;
  gap: 16px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.member-id,
.credit-block {
  display: grid;
  gap: 2px;
}

.member-id span,
.credit-block span {
  color: #8fb2c1;
  font-size: 0.9rem;
  font-weight: 700;
}

.member-id strong {
  color: #f6fbff;
  font-size: 1.02rem;
}

.credit-block {
  padding-top: 0;
  border-top: 0;
}

.credit-block strong {
  color: #ffffff;
  font-size: 1.42rem;
  line-height: 1.2;
}

.wallet-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
}

.wallet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.wallet-actions button {
  min-height: 44px;
  border-radius: 8px;
  font-weight: 800;
}

.wallet-actions button:first-child {
  background: #476b7c;
  color: white;
}

.wallet-actions button:last-child {
  background: #1978df;
  color: #ffffff;
  border: 0;
}

.wallet-assets {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  background: #203f4d;
}

.wallet-assets-head,
.wallet-asset-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.wallet-assets-head {
  grid-template-columns: 1fr auto;
  color: #cfe3ed;
  font-weight: 800;
}

.wallet-asset-row strong,
.wallet-asset-row small {
  display: block;
}

.wallet-asset-row strong {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.2;
}

.wallet-asset-row small {
  color: #9bd0fb;
  font-size: 0.86rem;
}

.wallet-coin {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 900;
}

.wallet-coin.usdt {
  background: #25b989;
}

.wallet-coin.btc {
  background: #ff9718;
}

.wallet-asset-value {
  text-align: right;
}

.wallet-menu-grid {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.wallet-menu-grid button {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 66px;
  border: 1px solid rgba(47, 125, 255, 0.28);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(28, 72, 132, 0.9), rgba(15, 38, 72, 0.94));
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-weight: 800;
}

.wallet-menu-grid button:hover {
  border-color: rgba(88, 158, 255, 0.72);
  background: linear-gradient(180deg, rgba(47, 125, 255, 0.9), rgba(24, 70, 132, 0.96));
}

.wallet-menu-grid span {
  color: var(--gold);
  font-size: 1.35rem;
}

.wallet-logout {
  display: none;
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  border: 1px solid rgba(255, 107, 107, 0.34);
  border-radius: 8px;
  background: rgba(255, 107, 107, 0.12);
  color: #ffd6d6;
  font-weight: 900;
}

.wallet-logout:hover {
  border-color: rgba(255, 107, 107, 0.72);
  background: rgba(255, 107, 107, 0.2);
  color: #ffffff;
}

.payment-method-page,
.bank-verify-page,
.lottery-demo-page,
.deposit-page,
.withdraw-page,
.wallet-history-page,
.wallet-profile-page {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(246, 191, 56, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 125, 255, 0.18), rgba(246, 191, 56, 0.08)),
    linear-gradient(180deg, #15243a, #0d1728);
}

.payment-method-page[hidden],
.bank-verify-page[hidden],
.lottery-demo-page[hidden],
.deposit-page[hidden],
.withdraw-page[hidden],
.wallet-history-page[hidden],
.wallet-profile-page[hidden] {
  display: none;
}

.lottery-demo-shell {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 12px;
  align-items: start;
}

.lottery-demo-side,
.lottery-demo-board,
.lottery-slip-panel {
  border: 1px solid rgba(47, 125, 255, 0.32);
  border-radius: 8px;
  background: rgba(8, 17, 31, 0.62);
}

.lottery-demo-side {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.lottery-demo-side button {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 70px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
}

.lottery-demo-side button small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.lottery-demo-side button.active,
.lottery-demo-side button:hover {
  border-color: rgba(47, 125, 255, 0.72);
  background: rgba(47, 125, 255, 0.32);
}

.lottery-demo-board {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.lottery-demo-round {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(47, 125, 255, 0.16);
}

.lottery-demo-round div {
  display: grid;
  gap: 3px;
}

.lottery-demo-round strong,
.lottery-slip-head strong {
  color: var(--gold-2);
}

.lottery-demo-round span,
.lottery-slip-head span,
.lottery-tools span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.lottery-demo-round time {
  min-width: 86px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ff8799;
  text-align: center;
  font-weight: 900;
}

.lottery-mode-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(47, 125, 255, 0.24);
  border-radius: 8px;
  background: rgba(47, 125, 255, 0.1);
}

.lottery-type-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.lottery-mode-tabs button,
.lottery-type-tabs button,
.lottery-tools button,
.lottery-range-tabs button,
.lottery-slip-head button {
  min-height: 42px;
  border: 1px solid rgba(47, 125, 255, 0.42);
  border-radius: 8px;
  background: rgba(47, 125, 255, 0.14);
  color: var(--text);
  font-weight: 900;
}

.lottery-mode-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
}

.lottery-mode-tabs button.active,
.lottery-type-tabs button.active,
.lottery-range-tabs button.active,
.lottery-tools button:hover,
.lottery-slip-head button:hover {
  background: rgba(47, 125, 255, 0.92);
}

.lottery-board-panel,
.lottery-manual-panel {
  display: grid;
  gap: 12px;
}

.lottery-board-panel[hidden],
.lottery-manual-panel[hidden] {
  display: none;
}

.lottery-rate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.lottery-rate-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  min-height: 54px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 900;
  box-shadow: none;
}

.lottery-rate-button span,
.lottery-rate-button strong {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 0 12px;
}

.lottery-rate-button strong {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 0 8px 8px 0;
}

.lottery-rate-button span {
  border-radius: 8px 0 0 8px;
}

.lottery-rate-button.pink {
  border-color: rgba(230, 75, 139, 0.7);
}

.lottery-rate-button.pink span {
  background: rgba(190, 58, 112, 0.92);
}

.lottery-rate-button.pink strong {
  color: #a91958;
}

.lottery-rate-button.blue {
  border-color: rgba(55, 151, 255, 0.72);
}

.lottery-rate-button.blue span {
  background: rgba(30, 130, 240, 0.92);
}

.lottery-rate-button.blue strong {
  color: #1775d6;
}

.lottery-rate-button.green {
  border-color: rgba(39, 166, 103, 0.78);
}

.lottery-rate-button.green span {
  background: rgba(38, 162, 101, 0.95);
}

.lottery-rate-button.green strong {
  color: #1b7f4d;
}

.lottery-rate-button.soft {
  opacity: 0.82;
}

.lottery-rate-button.active,
.lottery-rate-button:hover {
  border-color: rgba(246, 191, 56, 0.95);
  box-shadow:
    0 0 0 2px rgba(246, 191, 56, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.lottery-rate-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  filter: saturate(0.65);
}

.lottery-rate-button:disabled:hover {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.lottery-selected-box {
  display: grid;
  gap: 12px;
  min-height: 106px;
  padding: 18px;
  border: 1px solid rgba(47, 125, 255, 0.22);
  border-radius: 8px;
  background: rgba(213, 233, 255, 0.12);
}

.lottery-selected-box > strong {
  justify-self: center;
  color: #d8eaff;
}

.lottery-selected-box > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  font-weight: 900;
}

.lottery-selected-box > div strong {
  color: var(--gold-2);
}

.lottery-selected-empty {
  grid-column: 1 / -1;
  text-align: center;
}

.lottery-manual-keypad {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(47, 125, 255, 0.52);
  border-radius: 8px;
  background: rgba(198, 225, 255, 0.16);
}

.lottery-manual-keypad > strong {
  justify-self: center;
  color: #9cf2c5;
  font-size: 1rem;
}

.lottery-manual-display {
  display: flex;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
}

.lottery-manual-slot {
  display: grid;
  place-items: center;
  width: 58px;
  height: 56px;
  border: 1px solid rgba(47, 125, 255, 0.28);
  border-radius: 8px;
  background: rgba(213, 233, 255, 0.22);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 1000;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 18px rgba(0, 0, 0, 0.16);
}

.lottery-manual-slot.filled {
  border-color: rgba(246, 191, 56, 0.85);
  background: rgba(15, 55, 102, 0.78);
}

.lottery-keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 430px;
  width: 100%;
  margin: 0 auto;
}

.lottery-keypad-grid button {
  min-height: 58px;
  border: 1px solid rgba(47, 125, 255, 0.24);
  border-radius: 8px;
  background: rgba(213, 233, 255, 0.18);
  color: #5fb4ff;
  font-size: 1.1rem;
  font-weight: 1000;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 18px rgba(0, 0, 0, 0.12);
}

.lottery-keypad-grid button:hover {
  border-color: rgba(47, 125, 255, 0.58);
  background: rgba(47, 125, 255, 0.28);
  color: #ffffff;
}

.lottery-keypad-grid button.danger {
  background: rgba(214, 65, 93, 0.92);
  color: #ffffff;
}

.lottery-price-button {
  justify-self: center;
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 8px;
  background: #26a267;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 1000;
}

.lottery-price-button:hover {
  background: #2bb875;
}

.lottery-demo-page {
  border-color: rgba(231, 50, 77, 0.46);
  background: #f6f7f9;
  color: #1d2734;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
}

.lottery-demo-page .deposit-heading {
  margin: -24px -24px 18px;
  padding: 14px 18px;
  border-radius: 8px 8px 0 0;
  background: #e7324d;
  color: #ffffff;
}

.lottery-demo-page .deposit-heading h2,
.lottery-demo-page .deposit-heading span {
  color: #ffffff;
}

.lottery-demo-page .deposit-heading span {
  opacity: 0.86;
}

.lottery-demo-page .deposit-back {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.lottery-demo-page .deposit-back:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lottery-demo-page .lottery-demo-side,
.lottery-demo-page .lottery-demo-board,
.lottery-demo-page .lottery-slip-panel {
  border-color: #d6dce6;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(29, 39, 52, 0.08);
}

.lottery-demo-page .lottery-demo-side {
  background: #eef2f7;
}

.lottery-demo-page .lottery-demo-side button {
  border-color: #d2d9e4;
  background: #ffffff;
  color: #2c3848;
}

.lottery-demo-page .lottery-demo-side button small,
.lottery-demo-page .lottery-demo-round span,
.lottery-demo-page .lottery-slip-head span,
.lottery-demo-page .lottery-tools span,
.lottery-demo-page .lottery-slip-item small,
.lottery-demo-page .lottery-slip-total span {
  color: #6b7687;
}

.lottery-demo-page .lottery-demo-side button.active,
.lottery-demo-page .lottery-demo-side button:hover {
  border-color: #e7324d;
  background: #e7324d;
  color: #ffffff;
}

.lottery-demo-page .lottery-demo-side button.active small,
.lottery-demo-page .lottery-demo-side button:hover small {
  color: rgba(255, 255, 255, 0.82);
}

.lottery-demo-page .lottery-demo-round,
.lottery-demo-page .lottery-mode-tabs,
.lottery-demo-page .lottery-selected-box,
.lottery-demo-page .lottery-manual-keypad,
.lottery-demo-page .lottery-safe-card,
.lottery-demo-page .lottery-rule-card {
  border: 1px solid #d8dee8;
  background: #f1f4f8;
}

.lottery-demo-page .lottery-demo-round strong,
.lottery-demo-page .lottery-slip-head strong,
.lottery-demo-page .lottery-selected-box > strong,
.lottery-demo-page .lottery-safe-card strong,
.lottery-demo-page .lottery-rule-card strong {
  color: #243145;
}

.lottery-demo-page .lottery-demo-round time {
  background: #ffffff;
  color: #e7324d;
  box-shadow: inset 0 0 0 1px #d8dee8;
}

.lottery-demo-page .lottery-mode-tabs button,
.lottery-demo-page .lottery-type-tabs button,
.lottery-demo-page .lottery-tools button,
.lottery-demo-page .lottery-range-tabs button,
.lottery-demo-page .lottery-slip-head button {
  border-color: #c8d0dd;
  background: #ffffff;
  color: #243145;
}

.lottery-demo-page .lottery-mode-tabs button.active,
.lottery-demo-page .lottery-type-tabs button.active,
.lottery-demo-page .lottery-range-tabs button.active,
.lottery-demo-page .lottery-tools button:hover,
.lottery-demo-page .lottery-slip-head button:hover {
  border-color: #2f7dff;
  background: #2f7dff;
  color: #ffffff;
}

.lottery-demo-page .lottery-rate-button {
  min-height: 54px;
  border-radius: 11px;
  border-color: #cad2df;
  background: #ffffff;
  color: #ffffff;
  box-shadow: none;
}

.lottery-demo-page .lottery-rate-button strong {
  background: #f2f7ff;
  border-radius: 0 8px 8px 0;
  color: #1768d6;
}

.lottery-demo-page .lottery-rate-button span {
  border-radius: 8px 0 0 8px;
}

.lottery-demo-page .lottery-rate-button.pink {
  border-color: #ff8f9c;
  background: #fff2f4;
}

.lottery-demo-page .lottery-rate-button.pink strong {
  background: #fff2f4;
  color: #c01346;
}

.lottery-demo-page .lottery-rate-button.blue {
  border-color: #7fc4ff;
  background: #ecf7ff;
}

.lottery-demo-page .lottery-rate-button.blue strong {
  background: #ecf7ff;
  color: #1175d6;
}

.lottery-demo-page .lottery-rate-button.green {
  border-color: #62bd75;
  background: #effbee;
}

.lottery-demo-page .lottery-rate-button.green strong {
  background: #effbee;
  color: #16843d;
}

.lottery-demo-page .lottery-rate-button.pink span {
  background: #e62f47;
}

.lottery-demo-page .lottery-rate-button.blue span {
  background: #057af5;
}

.lottery-demo-page .lottery-rate-button.green span {
  background: #28a847;
}

.lottery-demo-page .lottery-rate-button.active,
.lottery-demo-page .lottery-rate-button:hover {
  box-shadow: 0 0 0 2px rgba(47, 125, 255, 0.08);
}

.lottery-demo-page .lottery-selected-box > div {
  border-top-color: #d8dee8;
  color: #536174;
}

.lottery-demo-page .lottery-selected-box > div strong,
.lottery-demo-page .lottery-slip-item span,
.lottery-demo-page .lottery-slip-total strong,
.lottery-demo-page .lottery-slip-group h4 {
  color: #e7324d;
}

.lottery-demo-page .lottery-manual-keypad > strong {
  color: #26a267;
}

.lottery-demo-page .lottery-manual-slot {
  border-color: #cbd4e1;
  background: #ffffff;
  color: #243145;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.lottery-demo-page .lottery-manual-slot.filled {
  border-color: #e7324d;
  background: #fff2f5;
  color: #e7324d;
}

.lottery-demo-page .lottery-keypad-grid button {
  border-color: #cbd4e1;
  background: #ffffff;
  color: #2f7dff;
  box-shadow: 0 8px 18px rgba(29, 39, 52, 0.08);
}

.lottery-demo-page .lottery-keypad-grid button:hover {
  border-color: #2f7dff;
  background: #eef5ff;
  color: #1e63cc;
}

.lottery-demo-page .lottery-keypad-grid button.lottery-key-locked,
.lottery-demo-page .lottery-keypad-grid button.lottery-key-locked:disabled {
  border-color: #2f7dff;
  background: #2f7dff;
  color: #ffffff;
  cursor: not-allowed;
  opacity: 1;
  pointer-events: none;
  box-shadow: none;
}

.lottery-demo-page .lottery-keypad-grid button.lottery-key-locked:hover {
  border-color: #2f7dff;
  background: #2f7dff;
  color: #ffffff;
}

.lottery-demo-page .lottery-keypad-grid button.danger {
  border-color: #e7324d;
  background: #e7324d;
  color: #ffffff;
}

.lottery-demo-page .lottery-slip-list,
.lottery-demo-page .lottery-number-grid {
  background: #f1f4f8;
}

.lottery-demo-page .lottery-slip-group h4 {
  border-color: rgba(231, 50, 77, 0.18);
  background: #fff2f5;
}

.lottery-demo-page .lottery-slip-item {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #e2e7ef;
}

.lottery-demo-page .lottery-slip-total {
  border-top-color: #d8dee8;
}

.lottery-demo-page .lottery-safe-card span {
  background: #dff7ea;
  color: #26a267;
}

.lottery-demo-page .lottery-safe-card p {
  color: #6b7687;
}

.lottery-demo-page .lottery-rule-card p {
  background: #fff2f5;
  color: #e7324d;
}

.lottery-price-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 8, 18, 0.72);
  backdrop-filter: blur(6px);
}

.lottery-price-modal[hidden] {
  display: none;
}

.lottery-clear-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 8, 18, 0.7);
  backdrop-filter: blur(4px);
}

.lottery-clear-modal[hidden] {
  display: none;
}

.lottery-clear-dialog {
  width: min(500px, calc(100vw - 32px));
  overflow: hidden;
  border-radius: 6px;
  background: #ffffff;
  color: #1d2734;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
}

.lottery-clear-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 0 18px;
  border-bottom: 1px solid #d9dde4;
}

.lottery-clear-head h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 900;
}

.lottery-clear-head button {
  width: 32px;
  height: 32px;
  background: transparent;
  color: #7b8491;
  font-size: 1.6rem;
  line-height: 1;
}

.lottery-clear-body {
  padding: 20px 18px;
  border-bottom: 1px solid #d9dde4;
}

.lottery-clear-body p {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.lottery-clear-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 18px;
}

.lottery-clear-actions button {
  min-width: 46px;
  min-height: 38px;
  border-radius: 5px;
  color: #ffffff;
  font-weight: 900;
}

.lottery-clear-cancel {
  background: #707986;
}

.lottery-clear-confirm {
  background: #e7324d;
}

.lottery-price-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: min(780px, calc(100vh - 48px));
  overflow: hidden;
  border-radius: 8px;
  background: #f6f7f9;
  color: #1d2734;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.48);
}

.lottery-price-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 18px;
  background: #e7324d;
  color: #ffffff;
}

.lottery-price-head h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  margin: 0;
  font-size: 1rem;
  font-weight: 1000;
}

.lottery-price-head small {
  padding: 3px 8px;
  border-radius: 999px;
  background: #0d62c8;
  color: #ffffff;
  font-size: 0.78rem;
}

.lottery-price-close {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
}

.lottery-price-body {
  max-height: min(470px, calc(100vh - 330px));
  overflow: auto;
  background: #ffffff;
}

.lottery-price-group {
  display: grid;
  border-bottom: 1px solid #d9dde4;
}

.lottery-price-group h4 {
  margin: 0;
  padding: 14px 32px;
  background: #f0f1f3;
  color: #e7324d;
  font-size: 0.98rem;
  font-weight: 1000;
}

.lottery-price-row {
  display: grid;
  grid-template-columns: 42px 56px minmax(130px, 1fr) 62px minmax(110px, 0.7fr) 46px;
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 8px 18px 8px 0;
  border-top: 1px solid #e3e6eb;
}

.lottery-price-index {
  display: grid;
  place-items: center;
  align-self: stretch;
  background: #d6dae0;
  color: #2d3642;
  font-weight: 900;
}

.lottery-price-row strong {
  display: grid;
  place-items: center;
  min-height: 24px;
  border-radius: 6px;
  background: #e7324d;
  color: #ffffff;
  font-size: 0.78rem;
}

.lottery-price-row input,
.lottery-equal-price input {
  min-height: 38px;
  width: 100%;
  border: 1px solid #c8ced7;
  border-radius: 5px;
  background: #ffffff;
  color: #263241;
  font-weight: 800;
}

.lottery-price-rate {
  color: #111827;
  font-weight: 1000;
  text-align: center;
}

.lottery-price-row output {
  min-height: 38px;
  display: grid;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #c8ced7;
  border-radius: 5px;
  background: #e9edf2;
  color: #435061;
  font-weight: 900;
}

.lottery-price-row button {
  min-height: 38px;
  border: 0;
  border-radius: 5px;
  background: #e7324d;
  color: #ffffff;
  font-weight: 1000;
}

.lottery-price-empty {
  margin: 0;
  padding: 36px;
  text-align: center;
  color: #657286;
  font-weight: 900;
}

.lottery-price-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.95fr);
  gap: 18px;
  padding: 16px 22px 18px;
  background: #ffffff;
}

.lottery-equal-price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: end;
}

.lottery-equal-price label {
  display: grid;
  gap: 6px;
}

.lottery-equal-price label span {
  color: #202938;
  text-align: center;
  font-weight: 900;
}

.lottery-equal-price > button[data-lottery-apply-equal] {
  display: grid;
  place-items: center;
  min-height: 38px;
  border: 1px solid #24a653;
  border-radius: 5px;
  background: #ffffff;
  color: #24a653;
  font-size: 1.4rem;
  font-weight: 1000;
}

.lottery-price-presets {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.lottery-price-presets button {
  min-height: 38px;
  border: 1px solid #d3d7de;
  border-radius: 6px;
  background: #f7f7f8;
  color: #1e2732;
  font-weight: 900;
}

.lottery-price-summary {
  display: grid;
  gap: 8px;
}

.lottery-price-summary p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: #263241;
  font-weight: 900;
}

.lottery-price-summary button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  font-weight: 1000;
}

.lottery-price-clear {
  background: #e7324d;
}

.lottery-price-submit {
  background: #28a94f;
}

@media (max-width: 760px) {
  .lottery-price-modal {
    padding: 12px;
  }

  .lottery-price-dialog {
    width: min(100%, 520px);
    max-height: calc(100vh - 24px);
  }

  .lottery-price-body {
    max-height: calc(100vh - 360px);
  }

  .lottery-price-row {
    grid-template-columns: 34px 52px minmax(82px, 1fr) 54px;
    gap: 8px;
    padding-right: 10px;
  }

  .lottery-price-row output {
    grid-column: 3 / 4;
  }

  .lottery-price-row button {
    grid-column: 4 / 5;
    grid-row: 1 / 3;
    align-self: stretch;
  }

  .lottery-price-footer {
    grid-template-columns: 1fr;
  }
}

.lottery-safe-card,
.lottery-rule-card {
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(47, 125, 255, 0.18);
  border-radius: 8px;
  background: rgba(213, 233, 255, 0.1);
}

.lottery-safe-card span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(38, 162, 101, 0.2);
  color: #72e1a8;
}

.lottery-safe-card strong,
.lottery-rule-card strong {
  color: #d8eaff;
}

.lottery-safe-card p,
.lottery-rule-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.lottery-rule-card {
  display: grid;
}

.lottery-rule-card p {
  padding: 14px 16px;
  border-radius: 6px;
  background: rgba(226, 95, 149, 0.24);
  color: #ffc2d5;
}

.lottery-tools {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(120px, 0.5fr) 120px;
  gap: 10px;
  align-items: end;
}

.lottery-tools label {
  display: grid;
  gap: 6px;
}

.lottery-tools input {
  min-height: 42px;
  padding: 0 12px;
}

.lottery-range-tabs {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
}

.lottery-number-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
  max-height: 430px;
  overflow: auto;
  padding: 10px;
  border-radius: 8px;
  background: rgba(187, 220, 255, 0.12);
}

.lottery-number {
  min-height: 44px;
  border: 1px solid rgba(47, 125, 255, 0.32);
  border-radius: 8px;
  background: rgba(213, 233, 255, 0.16);
  color: #d8eaff;
  font-weight: 900;
}

.lottery-number.selected {
  border-color: rgba(246, 191, 56, 0.9);
  background: linear-gradient(180deg, rgba(246, 191, 56, 0.92), rgba(47, 125, 255, 0.7));
  color: #071224;
}

.lottery-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
}

.lottery-slip-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.lottery-slip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lottery-slip-head div {
  display: grid;
  gap: 3px;
}

.lottery-slip-list {
  display: grid;
  gap: 8px;
  min-height: 180px;
  max-height: 360px;
  overflow: auto;
  padding: 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.lottery-slip-list p {
  margin: auto;
  color: var(--muted);
  font-weight: 800;
}

.lottery-slip-group {
  display: grid;
  gap: 6px;
}

.lottery-slip-group h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 4px 0 0;
  padding: 7px 9px;
  border: 1px solid rgba(246, 191, 56, 0.18);
  border-radius: 7px;
  background: rgba(246, 191, 56, 0.12);
  color: var(--gold-2);
  font-size: 0.82rem;
  font-weight: 1000;
}

.lottery-slip-group h4 small {
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.lottery-slip-item,
.lottery-slip-total {
  display: grid;
  grid-template-columns: minmax(70px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 40px;
}

.lottery-slip-item {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(47, 125, 255, 0.12);
}

.lottery-slip-item span,
.lottery-slip-total strong {
  color: var(--gold-2);
  font-weight: 900;
}

.lottery-slip-item small,
.lottery-slip-total span {
  color: var(--muted);
  font-weight: 800;
}

.lottery-slip-total {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.deposit-heading,
.deposit-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.deposit-heading h2,
.deposit-heading span,
.deposit-subhead span {
  margin: 0;
}

.deposit-heading span {
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.deposit-heading h2 {
  font-size: 1.35rem;
}

.deposit-back,
.deposit-subhead button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 800;
}

.payment-method-list {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(8, 17, 31, 0.62);
}

.payment-method-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 82px;
  padding: 16px;
  border: 1px solid rgba(47, 125, 255, 0.42);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(47, 125, 255, 0.26), rgba(14, 35, 67, 0.92));
  color: var(--text);
  text-align: left;
}

.payment-method-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: rgba(246, 191, 56, 0.16);
  color: var(--gold-2);
  font-weight: 900;
}

.payment-method-card strong,
.payment-method-card small {
  display: block;
}

.payment-method-card strong {
  color: var(--gold-2);
  font-size: 1.08rem;
}

.payment-method-card small {
  margin-top: 2px;
  color: #cbd8eb;
  font-weight: 700;
}

.payment-method-card em {
  color: var(--gold-2);
  font-size: 1.8rem;
  font-style: normal;
  font-weight: 900;
}

.usdt-deposit-card {
  display: grid;
  gap: 14px;
}

.usdt-network-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.usdt-network-grid > div,
.usdt-address-box {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(8, 17, 31, 0.68);
}

.usdt-network-grid span,
.usdt-address-box > span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.usdt-network-grid strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--gold-2);
  font-size: 1rem;
}

.usdt-address-box code {
  display: block;
  min-height: 52px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.32);
  color: #eef5ff;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.usdt-address-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.usdt-address-actions button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2f7dff, #1f62e7);
  color: #fff;
  font-weight: 900;
}

.usdt-address-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.wallet-history-list {
  display: block;
}

.wallet-history-list > p {
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(8, 17, 31, 0.62);
  color: #cbd8eb;
  font-weight: 800;
}

.wallet-history-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(8, 17, 31, 0.7);
}

.wallet-history-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.wallet-history-table th,
.wallet-history-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  text-align: left;
  vertical-align: middle;
}

.wallet-history-table th {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
  color: #d9e5f4;
  font-weight: 900;
}

.wallet-history-table td {
  color: #f2f7ff;
  font-weight: 800;
}

.wallet-history-table tbody tr:last-child td {
  border-bottom: 0;
}

.wallet-history-table strong {
  color: var(--gold-2);
  font-size: 1.05rem;
}

.wallet-history-table strong.withdraw {
  color: #ff9f9f;
}

.wallet-history-type {
  display: inline-grid;
  width: fit-content;
  min-height: 32px;
  place-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: #06111f;
  font-weight: 900;
}

.wallet-history-type.deposit {
  background: #3dda83;
}

.wallet-history-type.withdraw {
  background: #f56b6b;
  color: white;
}

.wallet-profile-card {
  padding: 16px;
  border: 1px solid rgba(47, 125, 255, 0.28);
  border-radius: 8px;
  background: rgba(8, 17, 31, 0.72);
}

.wallet-profile-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.wallet-profile-grid {
  display: grid;
  gap: 10px;
}

.wallet-profile-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(47, 125, 255, 0.14), rgba(11, 24, 43, 0.84));
}

.wallet-profile-row span {
  color: var(--muted);
  font-weight: 800;
}

.wallet-profile-row strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 1.02rem;
}

.deposit-bank-section,
.deposit-summary-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(8, 17, 31, 0.62);
}

.deposit-bank-list {
  display: grid;
  gap: 10px;
}

.deposit-bank-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(8, 17, 31, 0.76);
}

.deposit-bank-card.active {
  border-color: rgba(47, 125, 255, 0.72);
  background: rgba(47, 125, 255, 0.16);
}

.deposit-bank-main {
  display: grid;
  gap: 10px;
}

.deposit-bank-main strong {
  color: var(--gold-2);
  font-size: 1.28rem;
  line-height: 1.2;
}

.deposit-bank-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.deposit-bank-row small {
  color: #9eb0ca;
  font-size: 0.92rem;
  font-weight: 900;
}

.deposit-bank-row b {
  color: #f2f7ff;
  font-size: 1.08rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.deposit-bank-row.account-number b {
  color: var(--gold-2);
  font-size: 1.22rem;
  letter-spacing: 0;
}

.deposit-bank-main em {
  color: #cbd8eb;
  font-style: normal;
  font-weight: 700;
}

.deposit-bank-card button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  font-weight: 900;
}

.deposit-summary-card span {
  color: var(--gold-2);
  font-weight: 900;
}

.deposit-summary-card ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: #d9e6f7;
  font-weight: 700;
}

.deposit-note {
  margin: 0;
  color: #f5c84f;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
}

.deposit-summary-card > button {
  min-height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), #1c5df0);
  color: white;
  font-weight: 900;
}

.deposit-summary-card > button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
}

.slip-upload {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px dashed rgba(47, 125, 255, 0.58);
  border-radius: 8px;
  background: rgba(47, 125, 255, 0.12);
  color: #d9e6f7;
  font-weight: 800;
}

.slip-upload input {
  min-height: 44px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(5, 12, 23, 0.74);
  color: var(--text);
}

.slip-preview {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(5, 12, 23, 0.82);
}

.slip-preview[hidden] {
  display: none;
}

.slip-upload strong {
  color: var(--gold-2);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.deposit-message {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(67, 209, 130, 0.14);
  color: #bfffd9;
  font-weight: 800;
}

.deposit-message[data-type="error"] {
  background: rgba(255, 107, 107, 0.14);
  color: #ffcaca;
}

.bank-verify-form,
.withdraw-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(8, 17, 31, 0.66);
}

.withdraw-form {
  grid-template-columns: 1fr;
}

.bank-verify-form label,
.withdraw-form label,
.bank-verify-form .deposit-message,
.withdraw-form .deposit-message {
  display: grid;
  gap: 8px;
}

.bank-verify-form label span,
.withdraw-form label span {
  color: #d9e6f7;
  font-weight: 900;
}

.bank-verify-form input,
.bank-verify-form select,
.withdraw-form input {
  width: 100%;
  min-height: 48px;
  border-radius: 8px;
}

.bank-verify-form button,
.bank-verify-form .deposit-message,
.bank-verify-note,
.withdraw-form button,
.withdraw-form .deposit-message {
  grid-column: 1 / -1;
}

.bank-verify-step {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 14px;
}

.bank-verify-step[hidden] {
  display: none;
}

.bank-step-copy {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(47, 125, 255, 0.28);
  border-radius: 8px;
  background: rgba(47, 125, 255, 0.12);
}

.bank-step-copy strong {
  color: var(--gold-2);
  font-size: 0.92rem;
}

.bank-step-copy h3,
.bank-step-copy p {
  margin: 0;
}

.bank-step-copy h3 {
  color: #f4f8ff;
  font-size: 1.18rem;
}

.bank-step-copy p {
  color: #b8c7da;
  font-weight: 800;
}

.otp-digit-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, minmax(42px, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px dashed rgba(47, 125, 255, 0.5);
  border-radius: 8px;
  background: rgba(47, 125, 255, 0.1);
}

.otp-digit-grid input {
  min-height: 58px;
  padding: 0;
  text-align: center;
  font-size: 1.45rem;
  font-weight: 900;
}

.otp-action-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.otp-action-row button {
  grid-column: auto;
  width: 100%;
  min-width: 0;
}

.bank-verify-step:not(.bank-verify-bank-step) > button {
  grid-column: auto;
  height: 48px;
  min-height: 48px;
}

.bank-verify-bank-step > button {
  grid-column: 1 / -1;
}

.bank-verify-step button:disabled {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1b2635;
  color: #8f9caf;
  opacity: 1;
  box-shadow: none;
  cursor: not-allowed;
}

.bank-verify-note {
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(47, 125, 255, 0.28);
  border-radius: 8px;
  background: rgba(47, 125, 255, 0.12);
  color: #d9e6f7;
  font-weight: 800;
}

.bank-verify-form button,
.withdraw-form button {
  min-height: 50px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), #1c5df0);
  color: white;
  font-weight: 900;
}

.bank-verify-form button:disabled {
  cursor: not-allowed;
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  body.sidebar-collapsed .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    z-index: 30;
    inset: auto 0 0;
    width: 100%;
    height: auto;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 0;
    background: rgba(14, 31, 43, 0.96);
    box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.36);
    overflow: visible;
    transform: none;
  }

  body.sidebar-collapsed .sidebar {
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  }

  .sidebar-toggle {
    display: none;
  }

  .side-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }

  .side-nav .nav-item:nth-child(n + 6) {
    display: none;
  }

  .nav-item,
  body.sidebar-collapsed .nav-item {
    display: grid;
    place-items: center;
    gap: 4px;
    min-height: 56px;
    padding: 6px 4px;
    border-radius: 8px;
    font-size: 0.72rem;
    line-height: 1.05;
    text-align: center;
    transform: none;
  }

  .nav-item:hover {
    transform: none;
  }

  .nav-icon {
    width: 22px;
    height: 22px;
    font-size: 1rem;
    flex-basis: 22px;
  }

  body.sidebar-collapsed .nav-icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  .nav-item span:not(.nav-icon),
  body.sidebar-collapsed .sidebar-toggle strong,
  body.sidebar-collapsed .nav-item span:not(.nav-icon) {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  .main-stage {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .icon-button {
    display: none;
  }

  .hero-band,
  .dashboard-row {
    grid-template-columns: 1fr;
  }

  .search-game-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lottery-demo-shell {
    grid-template-columns: 1fr;
  }

  .lottery-demo-side {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lottery-demo-side button {
    min-height: 58px;
  }

  .lottery-slip-panel {
    order: 3;
  }
}

@media (max-width: 820px) {
  .main-stage {
    padding: 0 14px calc(92px + env(safe-area-inset-bottom));
  }

  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: auto;
    padding: 12px 0;
  }

  .top-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-left: 0;
  }

  .top-wallet-pill {
    min-width: 136px;
    padding-inline: 10px;
  }

  .top-wallet-button {
    display: none;
  }

  .secondary-button {
    display: inline-flex;
  }

  .primary-button,
  .secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 0.92rem;
    white-space: nowrap;
  }

  .hero-band {
    padding: 24px;
  }

  .hero-ranking-card {
    grid-template-columns: minmax(0, 1fr) 86px;
    padding: 20px;
  }

  .ranking-badge {
    width: 82px;
    height: 82px;
    font-size: 2rem;
  }

  .quick-grid,
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yeekee-round-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-overlay {
    padding: 18px 12px;
  }

  .search-panel {
    max-height: calc(100vh - 36px);
  }

  .search-game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .search-game-card .game-art {
    height: 150px;
  }

  .lottery-demo-page {
    padding: 18px;
  }

  .lottery-tools {
    grid-template-columns: 1fr 120px;
  }

  .lottery-rate-grid {
    grid-template-columns: 1fr;
  }

  .lottery-tools button {
    grid-column: 1 / -1;
  }

  .lottery-range-tabs,
  .lottery-number-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .hero-copy h1 {
    font-size: 3.4rem;
  }

  .hero-ranking-card {
    grid-template-columns: 1fr;
  }

  .ranking-badge {
    width: 76px;
    height: 76px;
    font-size: 1.75rem;
  }

  .quick-grid,
  .game-grid {
    grid-template-columns: 1fr;
  }

  .register-phone-row {
    grid-template-columns: 1fr;
  }

  .yeekee-round-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .top-actions {
    gap: 8px;
  }

  .top-wallet-pill {
    min-width: auto;
    max-width: 118px;
  }

  .top-wallet-caret {
    display: none;
  }

  .primary-button,
  .secondary-button,
  .soft-button {
    padding: 0 12px;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .register-modal {
    max-height: calc(100vh - 24px);
  }

  .social-row {
    grid-template-columns: 1fr;
  }

  .wallet-page-backdrop {
    padding: 12px;
  }

  .wallet-summary {
    padding: 18px;
  }

  .wallet-menu-grid {
    grid-template-columns: 1fr;
  }

  .deposit-heading,
  .deposit-subhead,
  .payment-method-card,
  .deposit-bank-card,
  .wallet-profile-row,
  .otp-control,
  .otp-action-row,
  .bank-verify-form,
  .withdraw-form {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .search-modal-input {
    grid-template-columns: 26px 1fr 36px;
    min-height: 52px;
  }

  .search-modal-input input {
    height: 50px;
  }

  .search-tabs,
  .search-section-title {
    width: 100%;
  }

  .search-tabs button {
    flex: 1;
    min-width: 0;
  }

  .search-game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-game-card .game-art {
    height: 132px;
  }

  .lottery-demo-page {
    padding: 14px;
  }

  .lottery-demo-side,
  .lottery-type-tabs,
  .lottery-tools,
  .lottery-mode-tabs {
    grid-template-columns: 1fr;
  }

  .lottery-rate-button {
    grid-template-columns: minmax(0, 1fr) 74px;
  }

  .lottery-manual-keypad {
    padding: 12px;
  }

  .lottery-manual-slot {
    width: 50px;
    height: 52px;
  }

  .lottery-keypad-grid {
    gap: 8px;
  }

  .lottery-keypad-grid button {
    min-height: 52px;
  }

  .lottery-range-tabs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .lottery-number-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-height: 360px;
  }

  .lottery-slip-head,
  .lottery-demo-round {
    align-items: stretch;
    flex-direction: column;
  }

  .lottery-slip-head button,
  .lottery-demo-round time {
    width: 100%;
  }

  .lottery-slip-item,
  .lottery-slip-total {
    grid-template-columns: 1fr auto;
  }

  .lottery-slip-item small {
    grid-column: 1 / -1;
  }
}
