:root {
  --bg: #070b0a;
  --panel: #0e1512;
  --panel2: #121c17;
  --line: #20342a;
  --text: #f2f7f3;
  --muted: #8aa096;
  --green: #9bff36;
  --green2: #42e68b;
  --red: #ff5874;
  --gold: #ffc74a;
  --pink: #ea55c3;
  --nav: 76px;
}
body {
  font-size: 16px;
}
.topbar {
  height: 82px;
}
.brand span {
  font-size: 27px;
}
.round-chip {
  font-size: 13px;
}
.vip-pill {
  font-size: 16px;
  padding: 10px 15px;
}
.vip-pill span {
  font-size: 13px;
}
.balance small {
  font-size: 11px;
}
.balance b {
  font-size: 16px;
}
.icon-btn,
#language {
  height: 46px;
  font-size: 15px;
}
.icon-btn img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 7px;
}
.market-head {
  height: 68px;
}
.market-head b {
  font-size: 19px;
}
.market-head small {
  font-size: 12px;
}
.market-price b {
  font-size: 22px;
}
.section-title h2,
h2 {
  font-size: 22px;
}
.eyebrow {
  font-size: 11px;
}
.market-tabs button {
  font-size: 14px;
  padding: 10px 14px;
}
.options button b {
  font-size: 20px;
}
.options button span {
  font-size: 11px;
}
.bet-slip label {
  font-size: 11px;
}
.bet-slip b {
  font-size: 16px;
}
.bet-note {
  font-size: 11px;
}
.stats span {
  font-size: 12px;
}
.stats b {
  font-size: 24px;
}
.page-head p,
.notice,
.commission p {
  font-size: 14px;
}
.page-head h1 {
  font-size: 40px;
}
.bottom-nav i {
  font-size: 26px;
}
.bottom-nav span {
  font-size: 12px;
}
.bottom-nav button {
  width: 125px;
}
.chart-tools {
  min-height: 42px;
}
.intervals button {
  height: 31px;
  min-width: 42px;
  font-size: 13px;
}
.ohlc {
  font-size: 11px;
  gap: 14px;
  opacity: 0;
  transition: opacity 0.15s;
}
.market-card:hover .ohlc,
.market-card:focus-within .ohlc {
  opacity: 1;
}
.chart-tools:before {
  content: "Move over chart to view OHLC · UTC";
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.market-card:hover .chart-tools:before,
.market-card:focus-within .chart-tools:before {
  display: none;
}
.amount > div {
  display: grid;
  grid-template-columns: repeat(5, 44px) minmax(75px, 1fr) auto;
}
.amount button {
  height: 39px;
  font-size: 13px;
}
.qr {
  background: #fff;
  padding: 8px;
  border: 0;
}
.qr img {
  display: block;
  width: 154px;
  height: 154px;
  object-fit: contain;
}
.howto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.howto-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0a110e;
}
.howto-grid b {
  font-size: 17px;
  color: var(--green);
}
.howto-grid li {
  margin: 8px 0;
  color: #bdcbc4;
  font-size: 13px;
  line-height: 1.5;
}
.team-detail {
  margin-top: 24px;
}
.team-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.team-row {
  min-width: 760px;
  display: grid;
  grid-template-columns: 1.1fr repeat(5, 1fr);
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.team-row:last-child {
  border-bottom: 0;
}
.team-head {
  color: var(--muted);
  background: #09100d;
  font-weight: 700;
}
.support-head > div {
  display: grid;
  grid-template-columns: 40px auto 1fr;
  align-items: center;
  gap: 6px;
}
.support-head > div > img {
  grid-row: 1/3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}
.support-head .pulse {
  margin: 0;
}
.support-head small {
  grid-column: 2/4;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -10%, #153820 0, transparent 35%), var(--bg);
}
button,
input,
select {
  font: inherit;
}
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(155, 255, 54, 0.02) 1px, transparent 1px),
    linear-gradient(rgba(155, 255, 54, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}
.topbar {
  height: 74px;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  padding: 8px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 10, 0.92);
  backdrop-filter: blur(18px);
}
.brand {
  height: 55px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  color: white;
  cursor: pointer;
}
.brand img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 14px;
}
.brand span {
  font-size: 23px;
  font-weight: 850;
  letter-spacing: -1px;
}
.brand b {
  color: var(--green);
}
.round-chip {
  margin-left: 28px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 9px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.round-chip b {
  color: white;
  margin-left: 6px;
}
.pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--green2);
  border-radius: 50%;
  margin-right: 7px;
  box-shadow: 0 0 12px var(--green2);
}
.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.vip-pill,
.balance,
.icon-btn,
#language {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
}
.vip-pill {
  padding: 8px 12px;
  color: var(--gold);
  font-weight: 800;
}
.vip-pill span {
  font-size: 11px;
  color: var(--muted);
  margin-left: 7px;
  font-weight: 500;
}
.balance {
  padding: 7px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.balance-selector {
  position: relative;
  padding: 0;
}
.balance-toggle {
  min-height: 41px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: white;
  background: transparent;
  border: 0;
  border-radius: inherit;
  white-space: nowrap;
}
.balance-chevron {
  color: var(--green);
  font-size: 13px;
  transition: transform 0.18s ease;
}
.balance-toggle[aria-expanded="true"] .balance-chevron {
  transform: rotate(180deg);
}
.balance-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  width: 220px;
  padding: 7px;
  background: #07100c;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.balance-menu button {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
}
.balance-menu button:hover,
.balance-menu button.active {
  color: var(--green);
  background: rgba(155, 255, 54, 0.08);
  border-color: var(--line);
}
.balance-menu button b {
  font-size: 14px;
}
.balance small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
}
.balance b {
  font-size: 13px;
}
.icon-btn,
#language {
  height: 41px;
  color: white;
  padding: 0 13px;
  cursor: pointer;
}
main {
  width: min(1680px, 100%);
  margin: auto;
  padding: 18px 22px calc(var(--nav) + 22px);
}
.page {
  display: none;
}
.page.active {
  display: block;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.market-card,
.panel {
  position: relative;
  background: linear-gradient(
    145deg,
    rgba(18, 28, 23, 0.96),
    rgba(10, 15, 13, 0.98)
  );
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
}
.market-head {
  height: 58px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.market-head > div:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
}
.market-head small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.exchange {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 8px;
  font-weight: 900;
}
.binance {
  color: #171108;
  background: #f3ba2f;
}
.okx {
  color: #080808;
  background: #fff;
}
.market-price {
  text-align: right;
}
.market-price b {
  display: block;
  font-size: 18px;
}
.market-price span {
  font-size: 11px;
}
.up {
  color: var(--green2) !important;
}
.down {
  color: var(--red) !important;
}
canvas {
  display: block;
  width: 100%;
  height: 265px;
}
.chart-meta {
  height: 30px;
  display: flex;
  gap: 22px;
  padding: 7px 14px;
  color: var(--muted);
  font-size: 10px;
  border-top: 1px solid var(--line);
}
.chart-meta span:last-child {
  margin-left: auto;
}
.gold {
  color: var(--gold);
}
.pink {
  color: var(--pink);
}
.game-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 14px;
  margin-top: 14px;
}
.round-panel {
  padding: 18px;
}
.timer-wrap {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: center;
  gap: 22px;
}
.timer-ring {
  width: 172px;
  height: 172px;
  padding: 8px;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0 83%, #1d2a24 83%);
  box-shadow: 0 0 40px rgba(155, 255, 54, 0.12);
}
.timer-ring > div {
  height: 100%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0a110e;
  border: 1px solid #294331;
}
.timer-ring small {
  color: var(--green);
  font-weight: 800;
  font-size: 9px;
  letter-spacing: 0.13em;
}
.timer-ring strong {
  font-size: 36px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.timer-ring span {
  font-size: 9px;
  color: var(--muted);
}
.timeline {
  display: grid;
  gap: 20px;
}
.timeline div {
  position: relative;
  padding-left: 18px;
}
.timeline div:before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--green);
  border-radius: 50%;
}
.timeline div:not(:last-child):after {
  content: "";
  position: absolute;
  left: 4px;
  top: 18px;
  width: 1px;
  height: 32px;
  background: var(--line);
}
.timeline b {
  display: block;
  font-size: 13px;
}
.timeline span {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.12em;
}
.proof-card {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 16px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.eyebrow {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--green);
}
h1,
h2 {
  margin: 3px 0;
}
h2 {
  font-size: 18px;
}
.text-btn {
  color: var(--green);
  border: 0;
  background: none;
  cursor: pointer;
}
.calculation {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1.1fr;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.calculation > div {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  text-align: center;
  background: #0a100e;
}
.calculation span,
.calculation small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}
.calculation b {
  font-size: 30px;
}
.calculation i {
  color: var(--muted);
  font-style: normal;
  font-size: 22px;
}
.result-ball {
  border-color: rgba(155, 255, 54, 0.5) !important;
  box-shadow: inset 0 0 20px rgba(155, 255, 54, 0.08);
}
.result-ball b {
  color: var(--green);
}
.integrity {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 9px;
}
.bet-panel {
  padding: 18px;
}
.limit {
  font-size: 10px;
  color: var(--muted);
}
.market-tabs {
  display: flex;
  gap: 6px;
  overflow: auto;
  margin: 14px 0 12px;
  padding-bottom: 3px;
}
.market-tabs button,
.options button {
  border: 1px solid var(--line);
  background: #0b120f;
  color: var(--muted);
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.market-tabs button {
  padding: 8px 11px;
  font-size: 11px;
}
.market-tabs button.active,
.options button.active {
  color: #0b100d;
  border-color: var(--green);
  background: var(--green);
  font-weight: 800;
}
.market-tabs .rules-tab {
  margin-left: auto;
  border-color: rgba(155, 255, 54, 0.55);
  color: var(--green);
}
.options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  min-height: 120px;
}
.options button {
  padding: 10px 6px;
  min-height: 53px;
}
.options button b,
.options button span {
  display: block;
}
.options button b {
  font-size: 16px;
  color: white;
}
.options button.active b {
  color: #0b100d;
}
.options button span {
  font-size: 12px;
  font-weight: 700;
  margin-top: 3px;
}
.bet-slip {
  display: grid;
  grid-template-columns: 1fr 1.35fr 0.8fr 1fr;
  gap: 9px;
  align-items: end;
  padding: 12px;
  margin-top: 12px;
  border: 1px solid var(--line);
  background: #090f0d;
  border-radius: 12px;
}
.bet-slip label {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-bottom: 5px;
  text-transform: uppercase;
}
.bet-slip b {
  font-size: 13px;
}
.amount > div {
  display: flex;
}
.amount input {
  min-width: 50px;
  width: 100%;
  height: 39px;
  background: #111b16;
  border: 1px solid var(--line);
  color: white;
  padding: 0 9px;
}
.amount button,
.amount span,
.amount select {
  border: 1px solid var(--line);
  background: #111b16;
  color: var(--muted);
  padding: 0 7px;
}
.amount button {
  cursor: pointer;
}
.amount button.active {
  border-color: var(--green);
  color: var(--green);
  background: rgba(155, 255, 54, 0.12);
}
.amount span {
  display: grid;
  place-items: center;
  font-size: 9px;
}
.amount select {
  min-width: 72px;
  border-radius: 7px;
  color: white;
  font-weight: 800;
}
.primary,
.secondary {
  height: 41px;
  border-radius: 9px;
  font-weight: 850;
  font-size: 11px;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.primary {
  border: 0;
  background: linear-gradient(135deg, var(--green), #5cdd38);
  color: #081007;
  box-shadow: 0 7px 22px rgba(128, 255, 52, 0.13);
}
.secondary {
  border: 1px solid var(--line);
  background: #111b16;
  color: white;
}
.bet-note {
  color: var(--muted);
  font-size: 9px;
  margin-bottom: 0;
}
.lower-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 14px;
  margin-top: 14px;
}
.leaderboard,
.streak {
  padding: 18px;
}
.leaderboard .section-title > b {
  font-size: 10px;
  color: var(--muted);
}
#leaderboard {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px 20px;
  margin-top: 12px;
}
.rank {
  display: grid;
  grid-template-columns: 25px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 7px 4px;
  border-bottom: 1px solid rgba(32, 52, 42, 0.6);
  font-size: 11px;
}
.rank i {
  font-style: normal;
  color: var(--muted);
}
.rank b:last-child {
  color: var(--green);
}
.streak-row {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}
.streak-row div {
  flex: 1;
  padding: 14px 8px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b120f;
}
.streak-row b,
.streak-row span,
.streak-row strong {
  display: block;
}
.streak-row b {
  font-size: 23px;
}
.streak-row span {
  font-size: 9px;
  color: var(--muted);
}
.streak-row strong {
  color: var(--green);
  margin-top: 7px;
}
.streak p,
.page-head p,
.notice,
.commission p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.bottom-nav {
  position: fixed;
  z-index: 25;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav);
  display: flex;
  justify-content: center;
  gap: 3px;
  padding: 7px;
  background: rgba(8, 13, 11, 0.95);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.bottom-nav button {
  width: 110px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.bottom-nav i,
.bottom-nav span {
  display: block;
}
.bottom-nav i {
  font-size: 19px;
  font-style: normal;
  margin-bottom: 3px;
}
.bottom-nav span {
  font-size: 10px;
}
.bottom-nav button.active {
  color: var(--green);
  background: rgba(155, 255, 54, 0.08);
}
.portal {
  max-width: 1180px;
  margin: 0 auto;
}
.page-head {
  padding: 28px 3px 20px;
}
.page-head h1 {
  font-size: 34px;
}
.form-card {
  padding: 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.7fr;
  align-items: end;
  gap: 12px;
}
.form-card label {
  font-size: 11px;
  color: var(--muted);
}
.form-card input,
.form-card select,
.copy-field input {
  display: block;
  width: 100%;
  height: 46px;
  margin-top: 7px;
  padding: 0 13px;
  color: white;
  background: #0a110e;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.deposit-order {
  display: grid;
  grid-template-columns: minmax(280px, 300px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  width: min(100%, 780px);
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.qr {
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  background: white;
  border: 0;
  color: var(--green);
  font-size: 23px;
  font-weight: 900;
  text-shadow: 0 1px 4px black;
}
.deposit-order code {
  display: block;
  color: var(--green);
  margin: 12px 0;
  word-break: break-all;
}
.inline-actions {
  display: flex;
  gap: 10px;
}
.inline-actions button {
  padding: 0 18px;
}
.stack-form {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1fr;
  gap: 12px;
  align-items: end;
}
.notice {
  padding: 15px;
  margin-top: 18px;
  border: 1px solid #493e20;
  background: rgba(255, 199, 74, 0.07);
  border-radius: 10px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.stats > div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.stats span,
.stats b {
  display: block;
}
.stats span {
  color: var(--muted);
  font-size: 10px;
}
.stats b {
  margin-top: 6px;
  font-size: 20px;
}
.profile-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.reward,
.ledger div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}
.reward-priority {
  margin: 0 0 5px;
  padding: 13px 12px;
  border: 1px solid rgba(132, 255, 38, 0.44);
  border-radius: 10px;
  background: rgba(132, 255, 38, 0.06);
}
.reward-priority b {
  color: var(--green);
}
.reward span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.reward button {
  border: 1px solid var(--green);
  color: var(--green);
  background: transparent;
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 9px;
}
.ledger span,
.ledger b {
  font-size: 12px;
}
.vip-progress {
  padding: 22px;
}
.vip-progress > div:first-child {
  display: flex;
  justify-content: space-between;
}
.progress {
  height: 8px;
  background: #1b2822;
  border-radius: 20px;
  margin: 16px 0;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 20px;
  box-shadow: 0 0 15px var(--green);
}
.vip-progress small {
  color: var(--muted);
}
.vip-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 9px;
  margin-top: 14px;
}
.vip-card {
  padding: 17px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 11px;
}
.vip-card.active {
  border-color: var(--green);
  box-shadow: 0 0 25px rgba(155, 255, 54, 0.08);
}
.vip-card b,
.vip-card span,
.vip-card small {
  display: block;
}
.vip-card b {
  font-size: 18px;
  color: var(--green);
}
.vip-card span {
  font-weight: 800;
  margin: 6px 0;
}
.vip-card small {
  color: var(--muted);
}
.invite-card {
  padding: 24px;
}
.copy-field {
  display: flex;
  gap: 9px;
}
.copy-field input {
  margin: 7px 0;
}
.copy-field button {
  width: 130px;
  margin-top: 7px;
}
.invite-card .stats {
  margin: 24px 0;
}
.commission-tier-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.commission b {
  color: var(--green);
}
.commission-claim-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(230px, auto);
  gap: 14px;
  align-items: stretch;
  margin-top: 16px;
}
.commission-estimate {
  display: grid;
  gap: 4px;
  align-content: center;
  min-height: 78px;
  padding: 14px 18px;
  border: 1px solid rgba(155, 255, 54, 0.32);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(20, 49, 31, 0.72), rgba(5, 15, 9, 0.95)),
    var(--panel);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.05),
    0 12px 28px rgba(0, 0, 0, 0.2);
}
.commission-estimate span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}
.commission-estimate strong {
  color: var(--green);
  font-size: 24px;
  line-height: 1.2;
  text-shadow: 0 0 14px rgba(155, 255, 54, 0.35);
}
.commission-estimate small {
  color: #b8c9bf;
  font-size: 12px;
}
.commission-claim-row > .primary {
  width: 100%;
  min-height: 78px;
  padding: 0 24px;
  font-size: 15px;
  white-space: normal;
}
.drawer {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}
.drawer-card {
  width: min(570px, 100%);
  height: 100%;
  padding: 35px;
  background: #0d1511;
  border-left: 1px solid var(--line);
  overflow: auto;
}
.close {
  float: right;
  border: 0;
  background: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
}
.rules-copy {
  margin-top: 25px;
  color: #c3d0ca;
  line-height: 1.7;
}
.rules-copy code {
  display: block;
  white-space: normal;
  padding: 14px;
  color: var(--green);
  background: #07100b;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.support {
  position: fixed;
  z-index: 45;
  right: 20px;
  bottom: 90px;
  width: 360px;
  height: 490px;
  display: flex;
  flex-direction: column;
  background: #0e1713;
  border: 1px solid #2d4a3b;
  border-radius: 16px;
  box-shadow: 0 20px 80px #000;
  overflow: hidden;
}
.support-head {
  height: 58px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.support-head b,
.support-head small {
  display: block;
}
.support-head small {
  color: var(--green);
  font-size: 9px;
}
.support-head button {
  border: 0;
  background: none;
  color: white;
  font-size: 20px;
}
.messages {
  flex: 1;
  padding: 16px;
  overflow: auto;
}
.message {
  max-width: 82%;
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 11px;
  font-size: 12px;
  line-height: 1.45;
}
.message.agent {
  background: #18251f;
}
.message.user {
  margin-left: auto;
  background: #517f28;
}
.support-input {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 7px;
  padding: 10px;
  border-top: 1px solid var(--line);
}
.support-input input {
  background: #09100d;
  border: 1px solid var(--line);
  color: white;
  border-radius: 8px;
  padding: 0 10px;
  min-width: 0;
}
.support-input button,
.attach {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #081007;
  cursor: pointer;
}
.attach {
  min-width: 48px;
  color: #071007;
  font-size: 29px;
  font-weight: 950;
  line-height: 1;
}
.attach input {
  display: none;
}
.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 95px;
  transform: translate(-50%, 20px);
  padding: 11px 18px;
  border: 1px solid #427b56;
  border-radius: 9px;
  background: #102119;
  color: white;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.header-tool {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0d1712;
  color: white;
  cursor: pointer;
}
.timezone-tool {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0d1712;
  color: var(--muted);
  font-size: 11px;
}
.timezone-tool select {
  height: 30px;
  min-width: 76px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #08100c;
  color: white;
}
.vip-pill em {
  font-style: normal;
}
.announcement-modal {
  position: fixed;
  z-index: 220;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
}
#rulesDrawer {
  z-index: 230;
}
.announcement-modal article {
  width: min(560px, 100%);
  max-height: min(88vh, 780px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0d1712;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.65);
}
.announcement-modal .eyebrow {
  font-size: 20px;
}
.announcement-modal h2 {
  font-size: 22px;
}
.announcement-modal .close {
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 26px;
}
.announcement-modal #announcementConfirm {
  min-height: 46px;
  padding: 0 22px;
  font-size: 20px;
}
.announcement-modal article > div {
  margin: 16px 0 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
  white-space: pre-wrap;
}
.announcement-modal article > .announcement-actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
  margin: 0 0 12px;
  white-space: normal;
}
.announcement-actions button {
  width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
}
.reward-priority.announcement-target {
  animation: announcement-reward-pulse 0.72s ease-in-out 2;
}
@keyframes announcement-reward-pulse {
  50% {
    border-color: var(--green);
    background: rgba(132, 255, 38, 0.16);
    box-shadow: 0 0 26px rgba(132, 255, 38, 0.35);
    transform: translateY(-2px);
  }
}
.message .chat-media {
  display: block;
  max-width: 250px;
  max-height: 210px;
  margin-top: 7px;
  border-radius: 8px;
}
@media (max-width: 760px) {
  .announcement-modal article > .announcement-actions {
    grid-template-columns: 1fr;
  }
  .header-tool span {
    display: none;
  }
  .header-tool {
    min-width: 40px;
    padding: 0 8px;
  }
}

.bet-slip > .bet-actions {
  grid-area: submit;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.bet-actions > button {
  width: 100%;
}
.bet-orders-modal {
  position: fixed;
  inset: 0;
  z-index: 82;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
}
.bet-orders-modal > article {
  width: min(980px, 100%);
  max-height: min(82vh, 760px);
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(155, 255, 54, 0.28);
  border-radius: 18px;
  background: #0a120e;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
}
.bet-orders-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.bet-orders-head h2 {
  margin: 5px 0 0;
  font-size: 26px;
}
.bet-orders-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #101a15;
  color: white;
  font-size: 25px;
  cursor: pointer;
}
.bet-orders-scroll {
  max-height: min(58vh, 530px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.bet-orders-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}
.bet-orders-table th,
.bet-orders-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}
.bet-orders-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #101a15;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}
.bet-orders-table td:nth-child(4),
.bet-orders-table td:nth-child(8) {
  font-weight: 800;
  white-space: nowrap;
}
.bet-order-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}
.bet-order-status.pending {
  color: #ffd75d;
  border-color: rgba(255, 215, 93, 0.35);
}
.bet-order-status.win {
  color: var(--green);
  border-color: rgba(155, 255, 54, 0.4);
}
.bet-order-status.lose {
  color: var(--red);
  border-color: rgba(255, 82, 112, 0.35);
}
.bet-order-status.void {
  color: var(--muted);
}
.bet-orders-live {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.bet-orders-live span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

@media (max-width: 760px) {
  .bet-slip > .bet-actions {
    grid-template-columns: 1fr;
  }
  .bet-orders-modal {
    padding: 10px;
  }
  .bet-orders-modal > article {
    padding: 17px;
  }
}
.hidden {
  display: none !important;
}
@media (max-width: 1000px) {
  .hero-grid,
  .game-grid,
  .lower-grid {
    grid-template-columns: 1fr;
  }
  .stack-form {
    grid-template-columns: 1fr 1fr;
  }
  .vip-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .topbar {
    padding: 8px 14px;
  }
  .round-chip {
    display: none;
  }
  .vip-pill span,
  .icon-btn span {
    display: none;
  }
}
@media (max-width: 650px) {
  :root {
    --nav: 68px;
  }
  .topbar {
    height: 65px;
  }
  .brand img {
    width: 43px;
    height: 43px;
  }
  .brand span {
    display: none;
  }
  .balance {
    padding: 6px 9px;
  }
  .balance-selector {
    padding: 0;
  }
  .balance-toggle {
    min-height: 39px;
    padding: 6px 8px;
    gap: 6px;
  }
  .balance-menu {
    width: min(220px, calc(100vw - 20px));
  }
  .balance small {
    display: none;
  }
  .balance b {
    font-size: 11px;
  }
  .vip-pill {
    font-size: 11px;
    padding: 7px;
  }
  .icon-btn {
    padding: 0 10px;
  }
  #language {
    width: 52px;
    padding: 0 6px;
  }
  main {
    padding: 10px 10px calc(var(--nav) + 15px);
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .market-card:nth-child(2) canvas {
    height: 190px;
  }
  .market-card:first-child canvas {
    height: 220px;
  }
  .market-card:nth-child(2) canvas {
    height: 220px;
  }
  .game-grid {
    margin-top: 10px;
  }
  .round-panel,
  .bet-panel,
  .leaderboard,
  .streak {
    padding: 13px;
  }
  .timer-wrap {
    grid-template-columns: 130px 1fr;
    gap: 12px;
  }
  .timer-ring {
    width: 126px;
    height: 126px;
  }
  .timer-ring strong {
    font-size: 28px;
  }
  .timeline b {
    font-size: 10px;
  }
  .calculation {
    gap: 4px;
  }
  .calculation > div {
    padding: 8px 3px;
  }
  .calculation b {
    font-size: 23px;
  }
  .integrity {
    display: none;
  }
  .options {
    grid-template-columns: repeat(3, 1fr);
  }
  .bet-slip {
    grid-template-columns: 1fr 1fr;
  }
  .bet-slip .primary {
    grid-column: 1/-1;
  }
  .bottom-nav {
    justify-content: space-around;
  }
  .bottom-nav button {
    width: auto;
    flex: 1;
  }
  .bottom-nav i {
    font-size: 16px;
  }
  .bottom-nav span {
    font-size: 8px;
  }
  #leaderboard {
    grid-template-columns: 1fr;
  }
  .form-grid,
  .stack-form,
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .deposit-order {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .vip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .commission > div {
    grid-template-columns: 1fr auto;
  }
  .support {
    right: 8px;
    bottom: 78px;
    width: calc(100% - 16px);
    height: 65vh;
  }
  .page-head {
    padding: 16px 3px;
  }
  .page-head h1 {
    font-size: 27px;
  }
}
@media (max-width: 650px) {
  .howto-grid {
    grid-template-columns: 1fr;
  }
  .page-head h1 {
    font-size: 32px;
  }
  .market-head b {
    font-size: 16px;
  }
  .market-head small {
    font-size: 10px;
  }
  .chart-tools {
    align-items: flex-start;
    overflow: hidden;
  }
  .chart-tools:before {
    font-size: 9px;
  }
  .ohlc {
    font-size: 10px;
  }
  .amount > div {
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
  }
  .amount input {
    grid-column: 1/5;
    margin-top: 4px;
  }
  .amount span {
    margin-top: 4px;
  }
  .bottom-nav i {
    font-size: 22px;
  }
  .bottom-nav span {
    font-size: 10px;
  }
}
:root {
  --chart-hint: "Move over chart to view OHLC · UTC";
}
.chart-tools:before {
  content: var(--chart-hint);
}
.exchange {
  overflow: hidden;
}
.exchange img {
  display: block;
  width: 31px;
  height: 31px;
}
.live-state {
  color: var(--green2);
  font-size: 9px !important;
  letter-spacing: 0.12em;
}
.exchange.wordmark {
  width: 42px;
  background: #000;
}
.exchange.wordmark img {
  width: 42px;
  height: 31px;
  object-fit: cover;
  object-position: left;
}
.exchange.okxmark {
  background: #000;
}
.exchange.okxmark img {
  width: 31px;
  height: 31px;
  object-fit: cover;
}
.chart-tools {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 13px;
  border-bottom: 1px solid var(--line);
  background: #09110d;
}
.intervals {
  display: flex;
  gap: 4px;
  flex: 0 0 auto;
}
.intervals button {
  height: 25px;
  min-width: 34px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #101a15;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}
.intervals button.active {
  border-color: var(--green);
  background: rgba(155, 255, 54, 0.13);
  color: var(--green);
}
.ohlc {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  color: var(--muted);
  font-size: 8px;
  scrollbar-width: none;
}
.ohlc span {
  white-space: nowrap;
}
.ohlc b {
  color: #dce9e1;
  font-weight: 650;
}
.market-card canvas {
  cursor: crosshair;
  touch-action: none;
}
.market-card canvas:focus {
  outline: 1px solid rgba(155, 255, 54, 0.45);
  outline-offset: -1px;
}

/* 2026-07-24 usability pass */
.proof-card .eyebrow,
.streak > .eyebrow,
.section-title .eyebrow {
  font-size: 12px;
}
.proof-card h2,
.streak h2,
.bet-panel h2 {
  font-size: 22px;
}
.calculation span,
.calculation small,
.integrity {
  font-size: 12px;
}
.calculation b {
  font-size: 36px;
}
.streak-row b {
  font-size: 30px;
}
.streak-row span {
  font-size: 13px;
}
.streak-row strong {
  font-size: 22px;
}
.streak p,
.bet-note {
  font-size: 13px;
}
.bet-slip {
  grid-template-columns: minmax(170px, 0.9fr) minmax(500px, 2.2fr);
  grid-template-areas:
    "selected amount"
    "return submit";
  gap: 14px 22px;
  align-items: stretch;
  padding: 18px;
}
.bet-slip > div:first-child {
  grid-area: selected;
}
.bet-slip .amount {
  grid-area: amount;
}
.bet-slip .return {
  grid-area: return;
}
.bet-slip > .primary {
  grid-area: submit;
}
.bet-slip label {
  font-size: 12px;
}
.bet-slip b {
  font-size: 17px;
}
.amount > div {
  gap: 5px;
}
.amount button {
  min-width: 52px;
  border-radius: 7px;
  font-size: 15px;
}
.amount input {
  min-width: 130px;
  font-size: 18px;
  border-radius: 7px;
}
.amount span,
.amount select {
  min-width: 56px;
  font-size: 12px;
  border-radius: 7px;
}
.bottom-nav {
  height: 82px;
  padding: 8px;
}
.bottom-nav button {
  width: 124px;
}
.bottom-nav i {
  display: grid;
  place-items: center;
  height: 38px;
  margin: 0 auto 2px;
}
.bottom-nav svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Launch controls: consent, rewards, responsive market selection */
.auth-form .auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.auth-form .auth-consent input {
  width: 17px;
  min-width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--lime);
}
.auth-form .auth-consent a {
  color: var(--lime);
}
.reward-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.reward-actions select {
  min-width: 104px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0b1510;
  color: var(--text);
  padding: 0 10px;
}
.market-tabs {
  display: flex;
  flex-wrap: wrap;
  overflow: visible;
}
.profile-operations {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.profile-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .profile-operations {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .market-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    overflow: visible;
  }
  .market-tabs button,
  .market-tabs .rules-tab {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 7px 4px;
    font-size: 11px;
    line-height: 1.15;
    white-space: normal;
  }
  .reward {
    gap: 8px;
  }
  .reward-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .reward-actions select,
  .reward-actions button {
    width: 104px;
  }
}

/* 2026-07-28 launch-ready market layout */
.market-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  overflow: visible;
}
.market-tabs button,
.market-tabs button[data-market="pattern"],
.market-tabs .rules-tab {
  grid-column: span 1;
  width: 100%;
  min-width: 0;
  margin-left: 0;
  white-space: normal;
}
.reward-modal .auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 12px 0;
  color: var(--muted);
  line-height: 1.45;
}
.reward-modal .auth-consent input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.reward-modal .auth-consent a {
  color: var(--lime);
}
@media (max-width: 760px) {
  .market-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }
  .market-tabs button,
  .market-tabs button[data-market="pattern"],
  .market-tabs .rules-tab {
    min-height: 38px;
    padding: 5px 3px;
    font-size: 10px;
    line-height: 1.15;
  }
}

/* Batch prediction confirmation and equal-width action controls */
.bet-slip > .bet-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.bet-actions .bet-action-button {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 41px;
  min-height: 41px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #111b16;
  color: white;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
}
.bet-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 84;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(7px);
}
.bet-confirm-modal > article {
  width: min(920px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(155, 255, 54, 0.3);
  border-radius: 18px;
  background: #0a120e;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.65);
}
.bet-confirm-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.bet-confirm-head h2 {
  margin: 5px 0 0;
  font-size: 26px;
}
.bet-confirm-count {
  display: grid;
  min-width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--green);
  border-radius: 12px;
  color: var(--green);
  font-size: 20px;
  font-weight: 900;
}
.bet-confirm-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 12px;
}
.bet-confirm-summary > div,
.bet-confirm-item > div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d1812;
}
.bet-confirm-summary small,
.bet-confirm-item small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.bet-confirm-summary strong,
.bet-confirm-item strong {
  display: block;
  overflow-wrap: anywhere;
  color: white;
  font-size: 14px;
}
.bet-confirm-items {
  display: grid;
  gap: 9px;
  max-height: min(46vh, 420px);
  overflow-y: auto;
  padding-right: 3px;
}
.bet-confirm-item {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.bet-confirm-warning {
  margin: 14px 0;
  color: #ffd75d;
  font-size: 13px;
  font-weight: 750;
}
.bet-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.bet-confirm-actions button {
  width: 100%;
  min-height: 44px;
  font-size: 13px;
}

@media (max-width: 760px) {
  .bet-slip > .bet-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
  .bet-actions .bet-action-button {
    height: 40px;
    min-height: 40px;
    padding: 0 4px;
    font-size: 10px;
    line-height: 1.15;
  }
  .bet-confirm-modal {
    padding: 8px;
  }
  .bet-confirm-modal > article {
    max-height: 92vh;
    padding: 15px;
    border-radius: 14px;
  }
  .bet-confirm-head h2 {
    font-size: 20px;
  }
  .bet-confirm-count {
    min-width: 40px;
    height: 40px;
    font-size: 17px;
  }
  .bet-confirm-summary {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 13px;
  }
  .bet-confirm-summary > div {
    padding: 9px 10px;
  }
  .bet-confirm-item {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }
  .bet-confirm-item > div {
    padding: 8px 9px;
  }
  .bet-confirm-summary strong,
  .bet-confirm-item strong {
    font-size: 12px;
  }
  .bet-confirm-warning {
    margin: 10px 0;
    font-size: 11px;
  }
  .bet-confirm-actions button {
    min-height: 40px;
    padding: 0 6px;
    font-size: 11px;
  }
}
.bottom-nav span {
  font-size: 12px;
}
.bottom-nav button.active svg {
  filter: drop-shadow(0 0 6px rgba(155, 255, 54, 0.75));
}
.bottom-nav .eth180-mini {
  width: auto;
  color: var(--green);
  font-size: 15px;
  font-weight: 950;
  font-style: italic;
  letter-spacing: -0.08em;
  text-shadow: 0 0 9px rgba(155, 255, 54, 0.55);
}
.market-card {
  position: relative;
}
.chart-tooltip {
  position: absolute;
  z-index: 8;
  width: 208px;
  padding: 11px 12px;
  border: 1px solid rgba(155, 255, 54, 0.35);
  border-radius: 8px;
  background: rgba(4, 10, 7, 0.95);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  color: #dce9e1;
  font-size: 12px;
  line-height: 1.55;
}
.chart-tooltip strong {
  display: block;
  color: var(--green);
  margin-bottom: 5px;
}
.chart-tooltip div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.chart-tooltip span {
  color: var(--muted);
}
.wallet-address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.wallet-address-card {
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 14px;
}
.wallet-address-card span {
  display: block;
  grid-column: 1 / -1;
  color: var(--green);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 9px;
}
.wallet-address-card b {
  display: block;
  font-size: 17px;
  overflow-wrap: anywhere;
}
.wallet-copy {
  min-width: 92px;
  min-height: 42px;
}
.proof-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.proof-actions select {
  min-width: 250px;
  height: 44px;
  padding: 0 38px 0 14px;
  border: 1px solid rgba(155, 255, 54, 0.42);
  border-radius: 10px;
  background: linear-gradient(145deg, #13241a, #050c08);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.08),
    inset 0 -8px 18px rgba(0, 0, 0, 0.2),
    0 8px 20px rgba(0, 0, 0, 0.28);
  color: #fff;
  color-scheme: dark;
  font-size: 14px;
  font-weight: 800;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
  cursor: pointer;
}
.proof-actions select:hover,
.proof-actions select:focus {
  border-color: var(--green);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.1),
    0 0 0 3px rgba(155, 255, 54, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.32);
}
.proof-actions select option {
  background: #07100b;
  color: #fff;
}
.profile-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
  font-size: 16px;
}
.profile-toolbar select {
  min-width: 160px;
}
.profile-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile-toolbar-actions button {
  min-width: 116px;
  min-height: 42px;
  padding: 0 18px;
  font-size: 15px;
}
.profile-operations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.profile-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(140px, auto);
  gap: 12px;
  align-items: end;
  padding: 22px;
}
.profile-form h2,
.profile-form p {
  grid-column: 1 / -1;
  margin: 0;
}
.profile-form p {
  color: var(--muted);
}
.profile-form input,
.profile-form select,
.profile-form button {
  min-height: 46px;
  font-size: 15px;
}
.record-panel {
  margin-top: 14px;
  padding: 22px;
}
.record-panel h2 {
  margin-top: 0;
}
.record-scroll {
  overflow-x: auto;
}
.record-panel table {
  width: 100%;
  border-collapse: collapse;
}
.record-panel th,
.record-panel td {
  min-width: 120px;
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}
.deposit-record-address {
  min-width: 260px !important;
}
.deposit-record-address code {
  color: var(--green);
  white-space: nowrap;
}
.deposit-record-txid {
  min-width: 190px !important;
}
.deposit-record-txid code {
  color: var(--muted);
  white-space: nowrap;
}
.page-head .eyebrow {
  font-size: 14px;
}
.page-head h1 {
  font-size: clamp(34px, 4vw, 48px);
}
.balance b {
  font-size: 16px;
}
.balance small {
  font-size: 14px;
  letter-spacing: normal;
}
.vip-pill,
.vip-pill span {
  font-size: 14px;
}
.stats b,
.reward b,
.ledger b {
  font-size: 18px;
}
.reward span,
.ledger span {
  font-size: 14px;
}
.deposit-order .qr {
  background: #fff;
  padding: 0;
  border-radius: 10px;
}
.deposit-order .qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 650px) {
  .proof-actions {
    width: 100%;
    align-items: stretch;
  }
  .proof-actions select {
    min-width: 0;
    width: 100%;
  }
  .profile-operations {
    grid-template-columns: 1fr;
  }
  .profile-form {
    grid-template-columns: 1fr;
  }
  .profile-form h2,
  .profile-form p {
    grid-column: 1;
  }
}
.reward button {
  min-width: 78px;
  padding: 9px 13px;
  font-size: 12px;
  cursor: pointer;
}
.reward button.claimed {
  border-color: var(--line);
  color: var(--muted);
}

body.auth-locked {
  overflow: hidden;
  max-width: 100vw;
}
html:has(body.auth-locked) {
  overflow: hidden;
}
.welcome-gate {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  background: #030806;
}
.welcome-models,
.welcome-shade {
  position: absolute;
  inset: 0;
}
.welcome-models {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr)) minmax(420px, 32vw)
    repeat(3, minmax(0, 1fr));
  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(64, 255, 83, 0.08),
      transparent 28%
    ),
    #020805;
  overflow: hidden;
}
.welcome-models figure {
  position: relative;
  min-width: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #07100b;
  animation: welcomeModelFloat 9s ease-in-out infinite alternate;
}
.welcome-models figure:nth-child(1) {
  grid-column: 1;
}
.welcome-models figure:nth-child(2) {
  grid-column: 2;
  animation-delay: -1.5s;
}
.welcome-models figure:nth-child(3) {
  grid-column: 3;
  animation-delay: -3s;
}
.welcome-models figure:nth-child(4) {
  grid-column: 5;
  animation-delay: -4.5s;
}
.welcome-models figure:nth-child(5) {
  grid-column: 6;
  animation-delay: -6s;
}
.welcome-models figure:nth-child(6) {
  grid-column: 7;
  animation-delay: -7.5s;
}
.welcome-models figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(2, 9, 5, 0.18),
      transparent 35%,
      rgba(2, 8, 5, 0.42)
    ),
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.12),
      transparent 45%,
      rgba(0, 0, 0, 0.2)
    );
  box-shadow: inset 0 0 42px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.welcome-models img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.88) contrast(1.08) brightness(0.82);
  transform: scale(1.035);
}
.welcome-shade {
  background:
    linear-gradient(
      90deg,
      rgba(1, 7, 4, 0.04),
      rgba(2, 10, 6, 0.62) 32%,
      rgba(2, 10, 6, 0.96) 40%,
      rgba(2, 10, 6, 0.96) 60%,
      rgba(2, 10, 6, 0.62) 68%,
      rgba(1, 7, 4, 0.04)
    ),
    linear-gradient(
      0deg,
      rgba(2, 8, 5, 0.86),
      transparent 45%,
      rgba(2, 8, 5, 0.48)
    );
  backdrop-filter: saturate(1.05);
}
.welcome-center {
  position: relative;
  z-index: 2;
  width: min(460px, calc(100% - 30px));
  padding: 30px 0;
}
.welcome-logo {
  display: grid;
  justify-items: center;
  margin: 0 0 12px;
  color: #fff;
  text-align: center;
  filter: drop-shadow(0 0 24px rgba(155, 255, 54, 0.48));
  animation: welcomeBrandFloat 3.4s ease-in-out infinite;
}
.welcome-product-line {
  max-width: 430px;
  margin: 0 auto 14px;
  color: #c7dace;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
  text-shadow: 0 0 14px rgba(155, 255, 54, 0.18);
}
.welcome-logo img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(176, 255, 92, 0.5);
  box-shadow:
    0 0 18px rgba(125, 255, 42, 0.52),
    0 0 46px rgba(66, 255, 57, 0.25);
  animation: welcomeLogoPulse 2.2s ease-in-out infinite;
}
.welcome-logo strong {
  display: block;
  margin-top: 4px;
  padding: 0 16px 4px;
  font-size: clamp(44px, 7vw, 68px);
  font-style: italic;
  letter-spacing: -4px;
  line-height: 1;
  background: linear-gradient(
    100deg,
    #ffffff 0%,
    #ffffff 30%,
    #c7ff91 43%,
    #ffffff 50%,
    #91ff39 62%,
    #8fff34 100%
  );
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
  animation: welcomeTextShine 3.4s linear infinite;
}
.welcome-logo strong span {
  color: transparent;
}
.welcome-logo small {
  margin-top: 8px;
  color: #d5e8dd;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  text-shadow:
    0 0 9px rgba(255, 255, 255, 0.45),
    0 0 16px rgba(155, 255, 54, 0.35);
  animation: welcomeSubtitleGlow 2.5s ease-in-out infinite;
}
.auth-card {
  padding: 24px;
  border: 1px solid rgba(155, 255, 54, 0.35);
  border-radius: 20px;
  background: rgba(5, 14, 9, 0.9);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(18px);
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}
.auth-tabs button,
.auth-submit,
#refreshCaptcha {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #101a15;
  color: #fff;
  font-size: 16px;
  font-weight: 850;
  cursor: pointer;
}
.auth-tabs button.active,
.auth-submit {
  border-color: var(--green);
  background: linear-gradient(135deg, var(--green), #53df2f);
  color: #071006;
}
.auth-form {
  display: grid;
  gap: 13px;
}
.auth-form label {
  display: grid;
  gap: 7px;
  color: #c4d6cc;
  font-size: 14px;
  font-weight: 700;
}
.auth-form input,
#welcomeLanguage {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid #2b493a;
  border-radius: 10px;
  background: #09110d;
  color: #fff;
  font-size: 16px;
  outline: none;
}
.auth-form input:focus,
#welcomeLanguage:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(155, 255, 54, 0.1);
}
.remember-account {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 9px !important;
}
.remember-account input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}
.captcha-row {
  display: grid;
  grid-template-columns: 1fr 52px;
  gap: 9px;
  align-items: end;
}
.captcha-row #refreshCaptcha {
  min-height: 48px;
  color: var(--green);
  font-size: 25px;
}
.auth-message {
  min-height: 20px;
  margin: 12px 0 0;
  color: #ff7890;
  font-size: 14px;
  text-align: center;
}
#welcomeLanguage {
  margin-top: 10px;
}
.welcome-seo-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 15px;
}
.welcome-seo-links a {
  color: #b8cdc0;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}
.welcome-seo-links a:hover {
  color: var(--green);
  text-decoration: underline;
}
.welcome-source {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
}
@keyframes welcomeModelFloat {
  from {
    transform: translateY(-0.8%) scale(1.01);
  }
  to {
    transform: translateY(0.8%) scale(1.025);
  }
}
@keyframes welcomeLogoPulse {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1) saturate(1);
  }
  50% {
    transform: scale(1.055);
    filter: brightness(1.28) saturate(1.2)
      drop-shadow(0 0 16px rgba(155, 255, 54, 0.8));
  }
}
@keyframes welcomeBrandFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}
@keyframes welcomeTextShine {
  from {
    background-position: 140% 50%;
  }
  to {
    background-position: -90% 50%;
  }
}
@keyframes welcomeSubtitleGlow {
  0%,
  100% {
    opacity: 0.82;
  }
  50% {
    opacity: 1;
    color: #f4ffeb;
  }
}

#fundsPasswordForm {
  grid-template-columns: minmax(180px, 280px) 160px;
  align-content: start;
}
#bindWalletForm {
  grid-template-columns: 138px minmax(180px, 1fr) 122px;
  gap: 10px;
  align-content: start;
  overflow: hidden;
}
#bindWalletForm select,
#bindWalletForm input,
#bindWalletForm button {
  min-width: 0;
  width: 100%;
}
#bindWalletForm button {
  padding-inline: 10px;
  white-space: nowrap;
}
#bindWalletForm .bound-wallet-list {
  grid-column: 1 / -1;
}
.bound-wallet-list {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.bound-wallet-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #09110d;
}
.bound-wallet-row b {
  color: var(--green);
  font-size: 14px;
}
.bound-wallet-row span {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 14px;
}
@media (max-width: 720px) {
  .welcome-models {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }
  .welcome-models figure:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }
  .welcome-models img {
    object-position: center 28%;
  }
  .welcome-shade {
    background: rgba(2, 9, 5, 0.76);
  }
  .welcome-center {
    padding: 18px 0 32px;
  }
  .welcome-logo img {
    width: 72px;
    height: 72px;
  }
  .auth-card {
    padding: 18px;
  }
  #fundsPasswordForm,
  #bindWalletForm {
    grid-template-columns: 1fr;
  }
  #bindWalletForm .bound-wallet-list {
    grid-column: 1;
  }
  .bound-wallet-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .commission-claim-row {
    grid-template-columns: 1fr;
  }
}
.reward-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
}
.reward-modal > div {
  width: min(390px, 100%);
  padding: 30px;
  text-align: center;
  border: 1px solid rgba(155, 255, 54, 0.35);
  border-radius: 18px;
  background: #0b130f;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
}
.reward-check {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--green);
  color: #071006;
  font-size: 34px;
  font-weight: 900;
}
.reward-modal h2 {
  font-size: 24px;
}
.reward-modal p {
  color: var(--muted);
  font-size: 15px;
}
.reward-modal button {
  width: 100%;
  margin-top: 10px;
}
.subaccount-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0;
}
.subaccount-tools article,
.subaccount-list {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b120f;
}
.subaccount-tools p {
  color: var(--muted);
  font-size: 13px;
}
.subaccount-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 122px;
  gap: 8px;
}
.subaccount-form input,
.subaccount-form select {
  min-width: 0;
  height: 41px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101a15;
  color: white;
}
.subaccount-form button {
  width: 122px;
  min-width: 122px;
  min-height: 42px;
  padding: 0 12px;
  font-size: 14px;
}
.subaccount-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.subaccount-row span:last-child {
  text-align: right;
  color: var(--green);
}

@media (max-width: 760px) {
  .bet-slip {
    grid-template-columns: 1fr;
    grid-template-areas: "selected" "amount" "return" "submit";
  }
  .amount > div {
    flex-wrap: wrap;
  }
  .amount input {
    flex: 1 1 130px;
  }
  .wallet-address-grid {
    grid-template-columns: 1fr;
  }
  .subaccount-tools {
    grid-template-columns: 1fr;
  }
  .subaccount-form {
    grid-template-columns: 1fr;
  }
  .subaccount-form button {
    width: 100%;
  }
  .profile-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .profile-toolbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .wallet-address-card {
    padding: 17px;
  }
  .bottom-nav button {
    width: auto;
    flex: 1;
  }
  .bottom-nav svg {
    width: 27px;
    height: 27px;
  }
  .bottom-nav span {
    font-size: 11px;
  }
}

/* 2026-07-25 compact mobile trading workspace */
.install-app {
  display: none;
}
.install-app.ready {
  border-color: rgba(155, 255, 54, 0.65);
  box-shadow: 0 0 16px rgba(155, 255, 54, 0.12);
}
.install-app-icon {
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}
@media (max-width: 760px) {
  :root {
    --nav: 58px;
  }
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  body {
    font-size: 12px;
    touch-action: manipulation;
  }
  button,
  select,
  .vip-pill,
  .balance,
  .round-chip,
  .timezone-tool,
  .bottom-nav span {
    white-space: nowrap;
  }
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
  .topbar {
    box-sizing: border-box;
    width: 100%;
    height: 52px;
    padding: 5px 7px;
    gap: 5px;
    overflow: hidden;
  }
  .brand {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    gap: 0;
  }
  .brand img {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }
  .brand span,
  .round-chip {
    display: none;
  }
  .top-actions {
    min-width: 0;
    flex: 1 1 auto;
    gap: 4px;
    margin-left: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .top-actions::-webkit-scrollbar {
    display: none;
  }
  .install-app {
    display: inline-flex;
    align-items: center;
    gap: 3px;
  }
  .header-tool,
  .timezone-tool,
  .icon-btn,
  #language,
  .vip-pill,
  .balance {
    flex: 0 0 auto;
    box-sizing: border-box;
    min-height: 36px;
    height: 36px;
    border-radius: 8px;
  }
  .header-tool {
    min-width: 36px;
    padding: 0 8px;
    font-size: 10px;
  }
  .header-tool span {
    display: inline;
  }
  #announcementBtn span,
  .icon-btn span {
    display: none;
  }
  .timezone-tool {
    gap: 4px;
    padding: 0 4px 0 7px;
    font-size: 9px;
  }
  .timezone-tool > span {
    display: none;
  }
  .timezone-tool select {
    min-width: 66px;
    width: 66px;
    height: 28px;
    padding: 0 3px;
    font-size: 11px !important;
  }
  .vip-pill {
    padding: 0 7px;
    font-size: 10px;
    line-height: 34px;
  }
  .vip-pill span {
    display: none;
  }
  .balance {
    gap: 3px;
    padding: 0 7px;
  }
  .balance small {
    display: none;
  }
  .balance b {
    font-size: 11px;
  }
  .icon-btn {
    width: 38px;
    padding: 0 4px;
  }
  .icon-btn img {
    width: 27px;
    height: 27px;
    margin: 0;
  }
  #language {
    width: 74px;
    padding: 0 5px;
    font-size: 11px !important;
  }
  main {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 7px 7px calc(var(--nav) + 9px);
  }
  .page,
  .hero-grid,
  .game-grid,
  .lower-grid {
    min-width: 0;
    max-width: 100%;
  }
  .hero-grid,
  .game-grid {
    gap: 7px;
  }
  .market-card,
  .panel {
    border-radius: 10px;
  }
  .market-head {
    box-sizing: border-box;
    height: 48px;
    padding: 5px 8px;
  }
  .market-head > div:first-child {
    min-width: 0;
    gap: 6px;
  }
  .exchange,
  .exchange img,
  .exchange.okxmark img {
    width: 25px;
    height: 25px;
    border-radius: 6px;
  }
  .exchange.wordmark,
  .exchange.wordmark img {
    width: 34px;
    height: 25px;
  }
  .market-head b {
    font-size: 13px;
  }
  .market-head small {
    max-width: 125px;
    overflow: hidden;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .market-price {
    flex: 0 0 auto;
  }
  .market-price b {
    font-size: 14px;
  }
  .live-state {
    font-size: 7px !important;
  }
  .chart-tools {
    box-sizing: border-box;
    min-height: 47px;
    padding: 3px 7px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: 23px 18px;
    gap: 2px 6px;
    align-items: center;
    overflow: hidden;
  }
  .intervals {
    grid-column: 1;
    grid-row: 1;
    gap: 3px;
  }
  .intervals button {
    width: 31px;
    min-width: 31px;
    height: 22px;
    padding: 0;
    font-size: 9px;
  }
  .chart-tools:before {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    overflow: hidden;
    font-size: 8px;
    text-overflow: ellipsis;
  }
  .ohlc {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, 9px);
    gap: 1px 5px;
    overflow: hidden;
    font-size: 7px;
    line-height: 9px;
  }
  .ohlc span {
    min-width: 0;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
  }
  .market-card canvas,
  .market-card:first-child canvas,
  .market-card:nth-child(2) canvas {
    height: 146px !important;
  }
  .chart-meta {
    box-sizing: border-box;
    height: 20px;
    padding: 4px 8px;
    font-size: 8px;
  }
  .game-grid {
    margin-top: 7px;
  }
  .round-panel,
  .bet-panel,
  .leaderboard,
  .streak,
  .page-panel {
    padding: 9px;
  }
  .timer-wrap {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 8px;
  }
  .timer-ring {
    width: 100px;
    height: 100px;
    padding: 5px;
  }
  .timer-ring strong {
    font-size: 23px;
  }
  .timeline {
    gap: 11px;
  }
  .timeline b {
    font-size: 9px;
  }
  .timeline span,
  .timer-ring small,
  .timer-ring span {
    font-size: 7px;
  }
  .proof-card {
    margin-top: 9px;
    padding-top: 9px;
  }
  .section-title h2,
  .proof-card h2,
  .streak h2,
  .bet-panel h2,
  h2 {
    font-size: 16px;
  }
  .eyebrow,
  .proof-card .eyebrow,
  .streak > .eyebrow,
  .section-title .eyebrow {
    font-size: 8px;
  }
  .calculation {
    gap: 3px;
    margin-top: 8px;
  }
  .calculation > div {
    padding: 6px 2px;
    border-radius: 7px;
  }
  .calculation b {
    font-size: 18px;
  }
  .calculation span,
  .calculation small {
    font-size: 7px;
  }
  .market-tabs {
    gap: 4px;
    margin: 8px 0 7px;
  }
  .market-tabs button {
    min-height: 30px;
    padding: 4px 8px;
    font-size: 10px;
  }
  .options {
    min-height: 0;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }
  .options button {
    min-width: 0;
    min-height: 40px;
    padding: 4px 2px;
    overflow: hidden;
  }
  .options button b {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
  }
  .options button span {
    overflow: hidden;
    margin-top: 1px;
    font-size: 8px;
    text-overflow: ellipsis;
  }
  .bet-slip {
    grid-template-columns: 1fr;
    grid-template-areas: "selected" "amount" "return" "submit";
    gap: 6px;
    margin-top: 7px;
    padding: 8px;
  }
  .bet-slip > .bet-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
  .bet-slip label {
    margin-top: 4px;
    font-size: 9px;
  }
  .bet-slip b {
    font-size: 13px;
  }
  .amount > div {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
  }
  .amount button {
    min-width: 0;
    height: 31px;
    padding: 0 2px;
    font-size: 10px;
  }
  .amount input {
    grid-column: 1 / 5;
    box-sizing: border-box;
    min-width: 0;
    height: 35px;
    margin-top: 1px;
  }
  .amount span {
    box-sizing: border-box;
    height: 35px;
    margin-top: 1px;
  }
  button.primary,
  .bet-actions button,
  .stack-form button,
  .subaccount-form button {
    min-height: 36px;
    padding: 0 9px;
    font-size: 11px;
  }
  .page-head {
    padding: 12px 2px;
  }
  .page-head h1 {
    font-size: 24px;
  }
  .page-head p,
  .notice,
  .commission p {
    font-size: 11px;
  }
  .stats {
    gap: 6px;
  }
  .stats span {
    font-size: 9px;
  }
  .stats b {
    font-size: 18px;
  }
  .bottom-nav {
    box-sizing: border-box;
    width: 100%;
    height: var(--nav);
    padding: 3px 2px max(3px, env(safe-area-inset-bottom));
    justify-content: stretch;
    overflow: hidden;
  }
  .bottom-nav button {
    min-width: 0;
    width: auto;
    flex: 1 1 0;
    gap: 1px;
    padding: 3px 1px;
  }
  .bottom-nav i,
  .bottom-nav svg {
    width: 19px;
    height: 19px;
    font-size: 12px;
  }
  .bottom-nav .eth180-mini {
    width: auto;
    font-size: 8px;
  }
  .bottom-nav span {
    max-width: 100%;
    overflow: hidden;
    font-size: 7px;
    text-overflow: ellipsis;
  }
  .subaccount-tools {
    gap: 8px;
  }
  .subaccount-tools article,
  .subaccount-list,
  .wallet-address-card {
    padding: 10px;
  }
  .subaccount-form {
    gap: 5px;
  }
  .subaccount-form input,
  .subaccount-form select {
    height: 38px;
  }
  .bet-orders-modal {
    padding: 6px;
  }
  .bet-orders-modal > article {
    padding: 11px;
    border-radius: 12px;
  }
  .bet-orders-head h2 {
    font-size: 18px;
  }
  .announcement-modal {
    padding: 10px;
  }
  .announcement-modal article {
    padding: 18px;
  }
  .welcome-center,
  .auth-card,
  .auth-card * {
    box-sizing: border-box;
  }
  .welcome-center {
    width: calc(100% - 20px);
    max-width: 420px;
    padding: 12px 0 26px;
  }
  .welcome-logo {
    margin-bottom: 7px;
  }
  .welcome-logo img {
    width: 64px;
    height: 64px;
    border-radius: 15px;
  }
  .welcome-logo strong {
    margin-top: 3px;
    padding-inline: 8px;
    font-size: clamp(40px, 14vw, 52px);
    letter-spacing: -3px;
  }
  .welcome-logo small {
    max-width: 100%;
    margin-top: 5px;
    overflow: hidden;
    font-size: 8px;
    letter-spacing: 1.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .welcome-product-line {
    max-width: 340px;
    margin-bottom: 9px;
    padding-inline: 4px;
    font-size: 11px;
    line-height: 1.4;
  }
  .auth-card {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
  }
  .auth-tabs {
    gap: 6px;
    margin-bottom: 12px;
  }
  .auth-tabs button,
  .auth-submit,
  #refreshCaptcha {
    min-width: 0;
    min-height: 40px;
    padding-inline: 7px;
    font-size: 13px;
  }
  .auth-form {
    gap: 9px;
  }
  .auth-form label {
    gap: 5px;
    font-size: 11px;
  }
  .auth-form input,
  #welcomeLanguage {
    min-width: 0;
    min-height: 42px;
  }
  .welcome-seo-links {
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .welcome-seo-links a {
    flex: 0 0 auto;
    font-size: 9px;
    white-space: nowrap;
  }
  .welcome-source {
    right: 6px;
    bottom: 5px;
    font-size: 7px;
  }
}

/* 2026-07-25 mobile header, install guide and betting alignment */
.install-guide-modal {
  position: fixed;
  z-index: 102;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
}
.install-guide-modal article {
  position: relative;
  width: min(560px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0d1712;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.68);
}
.install-guide-modal .close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #09100d;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
.install-guide-modal .eyebrow,
.install-guide-modal h2 {
  display: block;
  padding-right: 45px;
}
.install-guide-modal h2 {
  margin: 7px 0 12px;
  font-size: 24px;
}
.install-guide-modal p,
.install-guide-modal li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.install-guide-modal ol {
  margin: 14px 0;
  padding-left: 24px;
}
.install-link-row,
.install-guide-actions {
  display: grid;
  gap: 9px;
}
.install-link-row {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 18px;
}
.install-link-row input {
  min-width: 0;
  height: 42px;
}
.install-link-row button {
  min-width: 112px;
}
.install-guide-actions {
  grid-template-columns: 1fr 1fr;
  margin-top: 12px;
}
.install-guide-actions button {
  width: 100%;
}
.announcement-modal .eyebrow,
.announcement-modal h2 {
  display: block;
  text-align: center;
}
.announcement-modal #announcementConfirm {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

@media (max-width: 760px) {
  .topbar {
    height: 50px;
    padding: 5px;
    gap: 0;
  }
  .topbar .brand {
    display: none;
  }
  .top-actions {
    display: grid;
    grid-template-columns: 1.05fr 0.8fr 0.56fr 1.35fr 0.6fr 1.1fr;
    width: 100%;
    min-width: 0;
    gap: 2px;
    overflow: hidden;
  }
  .top-actions > *,
  .header-tool,
  .timezone-tool,
  .icon-btn,
  #language,
  .balance {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 36px;
    padding-inline: 3px;
    overflow: hidden;
  }
  .install-app {
    justify-content: center;
    gap: 2px;
    font-size: 9px;
  }
  .install-app-icon {
    display: none !important;
  }
  .timezone-tool {
    padding: 0;
  }
  .timezone-tool select {
    width: 100%;
    min-width: 0;
    height: 30px;
    padding-inline: 2px;
    font-size: 9px !important;
    text-align: center;
  }
  #announcementBtn {
    justify-content: center;
    font-size: 10px;
  }
  #announcementBtn .announcement-icon {
    display: none;
  }
  #announcementBtn span[data-i18n="headerAnnouncement"] {
    display: inline;
  }
  .balance {
    justify-content: center;
    padding-inline: 2px;
  }
  .balance b {
    max-width: 100%;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
  }
  .icon-btn {
    display: flex;
    justify-content: center;
    padding: 0;
  }
  .icon-btn img {
    width: 25px;
    height: 25px;
  }
  #language {
    padding-inline: 3px;
    font-size: 9px !important;
    text-align: center;
  }
  .proof-card .section-title {
    align-items: flex-start;
    gap: 6px;
  }
  .proof-card .section-title > div:first-child {
    min-width: 0;
    flex: 1 1 auto;
  }
  .proof-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    flex: 0 1 58%;
    width: auto;
    max-width: 58%;
    gap: 4px;
  }
  .proof-actions select {
    width: 100%;
    min-width: 0;
    height: 34px;
    padding: 0 20px 0 7px;
    font-size: 9px !important;
  }
  .proof-actions .text-btn {
    min-width: 0;
    padding: 2px;
    font-size: 9px;
    line-height: 1.15;
    white-space: normal;
  }
  .market-tabs button {
    flex: 0 0 78px;
    width: 78px;
    min-height: 42px;
    padding: 4px 5px;
    font-size: 10px;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .market-tabs .rules-tab {
    margin-left: 0;
  }
  .options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .options button {
    min-height: 52px;
    padding: 5px 3px;
    overflow: visible;
    line-height: 1.12;
    white-space: normal;
  }
  .options button b,
  .options button span {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .options button b {
    font-size: 13px;
  }
  .options button span {
    font-size: 9px;
  }
  .amount > div {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }
  .amount button {
    width: 100%;
    min-width: 0;
    height: 38px;
    padding: 0 3px;
    border-radius: 7px;
    font-size: 12px;
  }
  .amount input,
  .amount select {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    height: 38px;
    margin-top: 0;
    border-radius: 7px;
  }
  .amount input {
    grid-column: 1 / 4;
    font-size: 16px !important;
  }
  .amount select {
    grid-column: 4 / 6;
    padding-inline: 6px;
    font-size: 12px !important;
  }
  .bet-slip > .bet-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .bet-actions button {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    height: 40px;
    padding: 0 6px;
    font-size: 10px;
    white-space: normal;
  }
  .bet-actions .primary {
    grid-column: auto;
  }
  .commission-claim-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .commission-estimate {
    min-height: 0;
    padding: 11px 13px;
  }
  .commission-estimate strong {
    font-size: 20px;
  }
  .commission-claim-row > .primary {
    justify-self: start;
    width: min(230px, 100%);
    min-height: 42px;
    height: auto;
    padding: 8px 13px;
    font-size: 11px;
  }
  .install-guide-modal {
    padding: 10px;
  }
  .install-guide-modal article {
    padding: 19px 16px 16px;
    border-radius: 14px;
  }
  .install-guide-modal .close {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
  }
  .install-guide-modal h2 {
    margin-top: 6px;
    font-size: 19px;
    line-height: 1.25;
  }
  .install-guide-modal p,
  .install-guide-modal li {
    font-size: 12px;
    line-height: 1.55;
  }
  .install-guide-modal ol {
    margin: 10px 0;
    padding-left: 21px;
  }
  .install-link-row {
    grid-template-columns: minmax(0, 1fr) 86px;
    gap: 6px;
    margin-top: 12px;
  }
  .install-link-row input,
  .install-link-row button,
  .install-guide-actions button {
    min-width: 0;
    height: 40px;
    font-size: 11px;
  }
  .announcement-modal .eyebrow {
    padding: 0 38px;
  }
}

@media (max-width: 360px) {
  .install-app,
  #language,
  .timezone-tool select {
    font-size: 8px !important;
  }
  .balance b {
    font-size: 9px;
  }
}

/* 2026-07-26 unified header and combined UTC/language control */
.top-actions > .header-tool,
.top-actions > .balance,
.top-actions > .icon-btn,
.locale-tool,
.locale-summary {
  height: 46px;
}
.top-actions > .header-tool,
.top-actions > .balance,
.top-actions > .icon-btn,
.locale-summary {
  display: flex;
  align-items: center;
  justify-content: center;
}
.top-actions > .header-tool,
.locale-summary,
.top-actions > .icon-btn {
  margin: 0;
  text-align: center;
  line-height: 1.1;
}
.top-actions > .icon-btn img {
  flex: 0 0 auto;
  margin: 0 7px 0 0;
}
.locale-tool {
  position: relative;
  min-width: 142px;
}
.locale-summary {
  width: 100%;
  min-width: 0;
  padding: 0 25px;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.locale-summary::-webkit-details-marker {
  display: none;
}
#timezoneSummary {
  color: var(--green);
  font-weight: 800;
}
#languageSummary {
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.locale-chevron {
  position: absolute;
  right: 10px;
  color: var(--muted);
  font-size: 14px;
  transition: transform 0.18s ease;
}
.locale-tool[open] .locale-chevron {
  transform: rotate(180deg);
}
.locale-menu {
  position: absolute;
  z-index: 70;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  padding: 12px;
  display: grid;
  gap: 10px;
  border: 1px solid #345343;
  border-radius: 12px;
  background: #0b1410;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.72);
}
.locale-menu.hidden {
  display: none;
}
.locale-menu label {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.locale-menu select,
.locale-menu #language {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #08100c;
  color: var(--text);
  font-size: 13px;
}

@media (max-width: 760px) {
  .topbar {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    width: 100%;
    height: 50px;
    padding: 5px;
    gap: 2px;
    overflow: visible;
  }
  .topbar .brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 40px;
    min-width: 0;
    padding: 0;
    overflow: hidden;
  }
  .topbar .brand img {
    width: 34px;
    height: 34px;
    margin: 0;
    border-radius: 9px;
  }
  .topbar .brand span {
    display: none;
  }
  .top-actions {
    display: grid;
    grid-template-columns:
      minmax(0, 0.9fr) minmax(0, 1.15fr) minmax(0, 0.9fr)
      minmax(0, 1.25fr) 38px;
    align-items: center;
    width: 100%;
    min-width: 0;
    height: 40px;
    gap: 2px;
    margin: 0;
    overflow: visible;
  }
  .top-actions > .header-tool,
  .top-actions > .balance,
  .top-actions > .icon-btn,
  .locale-tool,
  .locale-summary {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 40px;
    min-height: 40px;
    margin: 0;
    border-radius: 8px;
  }
  .top-actions > .header-tool,
  .locale-summary {
    padding: 0 3px;
    gap: 0;
    overflow: hidden;
    font-size: 9px;
    white-space: normal;
  }
  .install-app {
    line-height: 1.05;
  }
  .locale-tool {
    position: relative;
    overflow: visible;
  }
  .locale-summary {
    position: relative;
    flex-direction: column;
    justify-content: center;
    padding: 2px 10px;
    line-height: 1;
  }
  #timezoneSummary {
    width: 100%;
    font-size: 10px;
    line-height: 1.1;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #languageSummary {
    width: 100%;
    font-size: 8px;
    line-height: 1.1;
    text-align: center;
  }
  .locale-chevron {
    right: 3px;
    font-size: 10px;
  }
  #announcementBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 3px;
    font-size: 9px;
    line-height: 1.05;
    overflow: hidden;
    text-align: center;
    white-space: normal;
  }
  .balance {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
    overflow: hidden;
    text-align: center;
  }
  .balance b {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    gap: 2px;
    font-size: 9px;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .top-actions > .icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
  }
  .top-actions > .icon-btn img {
    width: 27px;
    height: 27px;
    margin: 0;
  }
  .top-actions > .icon-btn span {
    display: none;
  }
  .locale-menu {
    position: fixed;
    top: 52px;
    left: 50%;
    right: auto;
    width: min(300px, calc(100vw - 20px));
    transform: translateX(-50%);
    padding: 12px;
  }
  .locale-menu label {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .locale-menu select,
  .locale-menu #language {
    height: 40px;
    font-size: 16px !important;
  }
}

@media (max-width: 360px) {
  .topbar {
    grid-template-columns: 36px minmax(0, 1fr);
  }
  .topbar .brand {
    width: 36px;
  }
  .topbar .brand img {
    width: 32px;
    height: 32px;
  }
  .top-actions {
    grid-template-columns:
      minmax(0, 0.88fr) minmax(0, 1.08fr) minmax(0, 0.82fr)
      minmax(0, 1.22fr) 36px;
  }
  .top-actions > .header-tool,
  #announcementBtn {
    font-size: 8px;
  }
  #timezoneSummary {
    font-size: 9px;
  }
  #languageSummary {
    font-size: 7px;
  }
  .balance b {
    font-size: 8px;
  }
  .top-actions > .icon-btn img {
    width: 25px;
    height: 25px;
  }
}

/* UTC and language share one permanent header control */
.locale-tool {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}
.locale-tool #timezone,
.locale-tool #language {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 38px;
  margin: 0;
  padding: 0 6px;
  border: 0;
  border-radius: 7px;
  background: #08100c;
  color: var(--text);
  font-size: 12px;
  text-align: center;
  cursor: pointer;
}
.locale-tool #timezone {
  color: var(--green);
  font-weight: 800;
}

@media (max-width: 760px) {
  .locale-tool {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 1px;
    padding: 2px;
    overflow: hidden;
  }
  .locale-tool #timezone,
  .locale-tool #language {
    width: 100%;
    min-width: 0;
    height: 17px;
    min-height: 17px;
    padding: 0 1px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    font-size: 8px !important;
    line-height: 17px;
    text-align: center;
    text-align-last: center;
  }
}

@media (max-width: 360px) {
  .locale-tool #timezone,
  .locale-tool #language {
    font-size: 7px !important;
  }
}

/* 2026-07-26 larger navigation and centered login/announcement headings */
.bottom-nav {
  height: 86px;
}
.bottom-nav i {
  height: 42px;
}
.bottom-nav svg {
  width: 34px;
  height: 34px;
  stroke-width: 2;
}
.bottom-nav span {
  font-size: 14px;
  font-weight: 750;
}
.bottom-nav .eth180-mini {
  font-size: 18px;
}
.announcement-modal .eyebrow,
.announcement-modal h2,
#announcementModalTitle {
  display: block;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
#announcementModalContent {
  text-align: left;
}
.auth-card,
.auth-tabs button,
.auth-submit,
.auth-form label,
.auth-form input,
#welcomeLanguage,
#captchaQuestion {
  text-align: center;
}
.auth-tabs button,
.auth-submit,
#refreshCaptcha {
  display: flex;
  align-items: center;
  justify-content: center;
}
.remember-account {
  justify-content: center;
}
#welcomeLanguage {
  text-align-last: center;
}

@media (max-width: 760px) {
  :root {
    --nav: 76px;
  }
  .bottom-nav {
    height: var(--nav);
    padding: 4px 2px max(4px, env(safe-area-inset-bottom));
  }
  .bottom-nav button {
    min-width: 0;
    padding: 2px 1px;
  }
  .bottom-nav i {
    width: 30px;
    height: 32px;
    margin: 0 auto 2px;
  }
  .bottom-nav svg {
    width: 28px;
    height: 28px;
    stroke-width: 2;
  }
  .bottom-nav span {
    font-size: 11px;
    line-height: 1.15;
  }
  .bottom-nav .eth180-mini {
    width: auto;
    font-size: 12.5px;
  }
}

@media (max-width: 360px) {
  .bottom-nav span {
    font-size: 10.5px;
  }
  .bottom-nav svg {
    width: 27px;
    height: 27px;
  }
}

body.telegram-mini-app {
  min-height: var(--tg-viewport-stable-height, 100dvh);
}

body.telegram-mini-app .topbar {
  padding-top: max(5px, var(--tg-content-safe-area-inset-top, 0px));
}

/* 2026-07-26 fixed two-row market navigation */
.market-tabs {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  overflow: visible;
}

.market-tabs button {
  grid-column: span 2;
  width: 100%;
  min-width: 0;
  white-space: normal;
}

.market-tabs button[data-market="pattern"],
.market-tabs .rules-tab {
  grid-column: span 5;
  margin-left: 0;
}

@media (max-width: 760px) {
  .market-tabs {
    gap: 5px;
  }

  .market-tabs button {
    width: 100%;
    min-height: 40px;
    padding: 4px 3px;
    font-size: 10px;
    line-height: 1.15;
    overflow-wrap: normal;
  }
}

/* 2026-07-28 final launch market layout */
.market-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  overflow: visible;
}
.market-tabs button,
.market-tabs button[data-market="pattern"],
.market-tabs .rules-tab {
  grid-column: span 1;
  width: 100%;
  min-width: 0;
  margin-left: 0;
  white-space: normal;
}
@media (max-width: 760px) {
  .market-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }
  .market-tabs button,
  .market-tabs button[data-market="pattern"],
  .market-tabs .rules-tab {
    min-height: 38px;
    padding: 5px 3px;
    font-size: 10px;
    line-height: 1.15;
  }
}
