* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background:
    linear-gradient(180deg, rgba(125, 161, 255, 0.9), rgba(102, 134, 233, 0.94)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  color: #1b2a4a;
  min-height: 100vh;
}

[v-cloak] {
  display: none;
}

.mobile-shell,
.auth-shell {
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 28px 18px 110px;
  overflow-x: hidden;
}

.loading-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.loading-card {
  min-width: 240px;
  border-radius: 24px;
  padding: 22px 28px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  text-align: center;
  box-shadow: 0 18px 48px rgba(37, 61, 128, 0.18);
}

.draw-card,
.panel,
.auth-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(37, 61, 128, 0.22);
}

.draw-card {
  padding: 26px;
}

.landing-page {
  display: grid;
  gap: 22px;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

.landing-hero {
  position: relative;
  display: grid;
  gap: 28px;
  justify-items: center;
  padding: 30px 24px 22px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 60px rgba(37, 61, 128, 0.22);
  backdrop-filter: blur(14px);
  text-align: center;
}

.landing-hero__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.landing-copy {
  display: grid;
  gap: 10px;
  justify-items: center;
  color: #f8fbff;
}

.landing-copy__eyebrow {
  font-size: 15px;
  letter-spacing: 0.08em;
  opacity: 0.88;
}

.landing-copy__title {
  margin: 0;
  font-size: clamp(42px, 10vw, 68px);
  line-height: 1;
}

.landing-copy__text {
  margin: 0;
  max-width: 320px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(248, 251, 255, 0.9);
}

.landing-wheel {
  position: relative;
  width: min(82vw, 340px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.landing-wheel__image {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 30px rgba(32, 53, 118, 0.24));
}

.landing-wheel__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.03);
}

.landing-wheel__ring--outer {
  animation: slowSpin 18s linear infinite;
}

.landing-wheel__ring--middle {
  inset: 11%;
  border-style: dashed;
  animation: reverseSpin 14s linear infinite;
}

.landing-wheel__ring--inner {
  inset: 23%;
  border-color: rgba(255, 224, 125, 0.42);
  box-shadow:
    0 0 34px rgba(255, 224, 125, 0.16),
    inset 0 0 0 8px rgba(255, 255, 255, 0.04);
}

.landing-wheel__core {
  position: relative;
  z-index: 2;
  width: 39%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  gap: 2px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(214, 226, 255, 0.82)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(210, 223, 255, 0.88));
  color: #3156b8;
  box-shadow: 0 18px 36px rgba(32, 55, 125, 0.22);
}

.landing-wheel__core span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.landing-wheel__core strong {
  font-size: 44px;
  line-height: 1;
}

.landing-wheel__chip {
  position: absolute;
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.95);
  color: #3557b4;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(26, 43, 93, 0.18);
}

.landing-wheel__chip--a {
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
}

.landing-wheel__chip--b {
  right: 10%;
  top: 46%;
  transform: translateY(-50%);
}

.landing-wheel__chip--c {
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
}

.landing-wheel__chip--d {
  left: 10%;
  top: 46%;
  transform: translateY(-50%);
}

.landing-dots {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.landing-dots__dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

.landing-dots__dot--active {
  width: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

.landing-hero--image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: none;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  line-height: 0;
}

.landing-hero-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

.landing-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: transparent;
  max-width: 100%;
}

.image-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 18px;
}

.image-preview-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(10, 16, 31, 0.72);
}

.image-preview-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  max-height: 92dvh;
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.image-preview-modal__panel img {
  display: block;
  width: 100%;
  height: auto;
}

.image-preview-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #22304d;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.room-list-modal {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 148;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: min(100vw, 430px);
  padding: 0;
  transform: translateX(-50%);
  overflow: hidden;
}

.room-list-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(11, 15, 28, 0.58);
}

.room-list-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  height: min(599px, calc(100dvh - 18px));
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: #fff;
  box-shadow: 0 22px 72px rgba(22, 27, 43, 0.26);
  animation: roomSheetIn 0.22s ease-out;
}

@keyframes roomSheetIn {
  from {
    transform: translateY(26px);
    opacity: 0.8;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.room-list-panel__head {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 76px;
  padding: 18px 58px 12px;
  color: #44506c;
  font-size: 22px;
  font-weight: 900;
}

.room-list-panel__head button {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #f2f4f8;
  color: #a8adba;
  font-size: 30px;
  line-height: 1;
}

.room-list-panel__body {
  display: grid;
  align-content: end;
  grid-auto-rows: 132px;
  gap: 12px;
  height: calc(100% - 76px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 12px 14px 18px;
}

.room-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  width: 100%;
  min-height: 0;
  height: 132px;
  overflow: hidden;
  border: 1px solid #f0ca38;
  border-radius: 13px;
  background: linear-gradient(100deg, #fffdf7, #fff9e8);
  color: #3c3218;
  text-align: left;
  box-shadow: 0 10px 26px rgba(210, 162, 40, 0.12);
}

.room-card img,
.room-card__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.room-card__fallback {
  display: grid;
  place-items: center;
  color: rgba(244, 206, 79, 0.46);
  font-size: 36px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  background:
    radial-gradient(circle at 18% 80%, rgba(108, 70, 29, 0.18), transparent 32%),
    linear-gradient(100deg, #fffef9, #fff2ba);
}

.room-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 253, 242, 0.2) 42%, rgba(255, 247, 191, 0.88) 63%, rgba(255, 223, 75, 0.92));
}

.room-card__content {
  position: relative;
  z-index: 1;
  grid-column: 2;
  display: grid;
  justify-items: start;
  min-width: 132px;
  padding: 0 68px 0 8px;
}

.room-card__content em {
  color: #9c7b1c;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.room-card__content strong {
  color: #55401a;
  font-size: 30px;
  font-weight: 1000;
}

.room-card i {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 27px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: linear-gradient(180deg, #8069df, #5c42b7);
  color: #fff;
  font-style: normal;
  font-size: 24px;
  font-weight: 1000;
  box-shadow: 0 10px 22px rgba(93, 66, 183, 0.28);
}

@media (max-width: 420px) {
  .room-list-modal {
    width: 100vw;
  }

  .room-list-panel {
    width: 100%;
    height: min(599px, calc(100dvh - 14px));
  }

  .room-list-panel__head {
    min-height: 60px;
    padding: 12px 48px 8px;
    font-size: 17px;
  }

  .room-list-panel__body {
    height: calc(100% - 60px);
    grid-auto-rows: 118px;
    gap: 10px;
    padding: 10px 10px 16px;
  }

  .room-card {
    height: 118px;
  }

  .room-card__content {
    min-width: 110px;
    padding-right: 54px;
  }

  .room-card__content em {
    font-size: 11px;
  }

  .room-card__content strong {
    font-size: 23px;
  }

  .room-card i {
    right: 8px;
    bottom: 22px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}

.room-card--disabled {
  filter: grayscale(0.25);
  opacity: 0.72;
}

.room-list-panel__empty {
  padding: 28px 12px;
  color: #78839a;
  text-align: center;
}

.home-announcement-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 22px;
}

.home-announcement-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(20, 24, 36, 0.62);
}

.home-announcement-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 338px);
  display: grid;
  gap: 14px;
  padding: 24px 20px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdf5, #ffffff);
  color: #25314c;
  box-shadow: 0 20px 60px rgba(19, 28, 52, 0.28);
  text-align: center;
}

.home-announcement-modal__panel strong {
  font-size: 19px;
  font-weight: 900;
}

.home-announcement-modal__panel p {
  margin: 0;
  color: #5f6980;
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.home-announcement-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #f2f4f8;
  color: #5d6678;
  font-size: 20px;
  cursor: pointer;
}

.home-announcement-modal__confirm {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd43a, #f0ad00);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.notice-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f6f9ff;
  box-shadow: 0 14px 30px rgba(34, 55, 116, 0.12);
}

.notice-strip__label {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #3458b6;
  font-size: 12px;
  font-weight: 800;
}

.notice-strip__marquee {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.notice-strip__text {
  display: inline-block;
  min-width: 100%;
  padding-left: 100%;
  font-size: 14px;
  line-height: 1.6;
  animation: noticeMarquee 12s linear infinite;
}

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

.quick-card {
  border: 0;
  border-radius: 24px;
  padding: 18px 12px;
  display: grid;
  gap: 10px;
  justify-items: center;
  background: rgba(255, 255, 255, 0.9);
  color: #2b4a97;
  box-shadow: 0 14px 28px rgba(31, 49, 105, 0.1);
  cursor: pointer;
}

.quick-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #4e8cff, #2f5fd8);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.quick-card__label {
  font-size: 14px;
  font-weight: 700;
}

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

.game-section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.game-section__eyebrow {
  display: block;
  color: rgba(248, 251, 255, 0.86);
  font-size: 13px;
}

.game-section__title {
  margin: 4px 0 0;
  color: #fff;
  font-size: 24px;
}

.game-entry {
  width: 100%;
  border: 0;
  border-radius: 28px;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(232, 239, 255, 0.88));
  color: #234695;
  box-shadow: 0 18px 38px rgba(32, 53, 118, 0.14);
  cursor: pointer;
  text-align: left;
}

.game-entry__badge {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 12px;
  background: #ff5959;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.game-entry__content {
  flex: 1 1 auto;
  display: grid;
  gap: 6px;
}

.game-entry__label {
  font-size: 30px;
  font-weight: 800;
}

.game-entry__hint {
  font-size: 14px;
  color: #677ca8;
}

.game-entry__arrow {
  flex: 0 0 auto;
  color: #4c6fcb;
  font-size: 14px;
  font-weight: 700;
}

.draw-card--animating {
  animation: cardPulse 0.9s ease-in-out infinite;
}

.draw-card__top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.draw-headline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  color: #f8fbff;
  font-size: 18px;
}

.draw-headline__brand,
.draw-headline__accent {
  font-weight: 700;
}

.draw-headline__accent {
  color: #ffe07d;
}

.draw-toolbar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.time-block {
  display: grid;
  gap: 6px;
  color: #eff4ff;
}

.time-block__label {
  font-size: 13px;
  opacity: 0.88;
}

.time-block__value {
  font-size: 20px;
  font-weight: 700;
}

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

.countdown__item {
  min-width: 60px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: #3557b4;
  font-size: 32px;
  font-weight: 700;
  text-align: center;
}

.countdown__split {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

.draw-card__bottom {
  display: grid;
  gap: 20px;
  margin-top: 26px;
}

.result-meta {
  display: grid;
  gap: 8px;
  justify-items: center;
  color: #fff;
}

.result-meta__value {
  font-size: 54px;
  font-weight: 800;
  letter-spacing: 2px;
}

.result-meta__label {
  font-size: 18px;
  opacity: 0.92;
}

.result-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.number-box {
  width: 76px;
  height: 104px;
  border-radius: 18px;
  border: 2px solid #f6c744;
  background: #2d3341;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 56px;
  line-height: 1;
}

.number-box--sum {
  width: 98px;
}

.number-box--result {
  background: #ff3b3f;
}

.number-box--pending {
  padding: 0;
}

.operator {
  color: #fff;
  font-size: 44px;
  font-weight: 400;
}

.operator--sum {
  color: rgba(255, 255, 255, 0.9);
}

.result-tags {
  display: flex;
  gap: 10px;
  align-items: center;
}

.result-tag {
  min-width: 68px;
  padding: 10px 16px;
  border-radius: 16px;
  background: rgba(255, 238, 238, 0.92);
  color: #ef4747;
  text-align: center;
  font-size: 30px;
  font-weight: 700;
}

.result-tag--accent {
  background: rgba(233, 241, 255, 0.96);
  color: #1b58d9;
}

.mobile-shell.mobile-shell--draw {
  width: min(100%, 430px);
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  padding: 0;
  background: #eef1fb;
  overflow: hidden;
}

.mobile-shell--draw .draw-page {
  position: relative;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #eef1fb;
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
  box-shadow: none;
  padding: 0;
  overflow: hidden;
}

.draw-page__header {
  flex: 0 0 56px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: #fff;
  color: #222b43;
}

.draw-page__back,
.draw-page__header-space {
  width: 44px;
  height: 44px;
}

.draw-page__back {
  border: 0;
  background: transparent;
  color: #4d5877;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.draw-page__title {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}

.draw-page__board {
  flex: 0 0 auto;
  padding: 7px 14px 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 35%),
    linear-gradient(135deg, #6f8cf3 0%, #5e7fea 100%);
  position: relative;
  overflow: hidden;
}

.draw-page__board::before,
.draw-page__board::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.draw-page__board::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%) 0 0 / 48px 48px,
    linear-gradient(315deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%) 0 0 / 48px 48px;
  opacity: 0.55;
}

.draw-page__board::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(43, 63, 157, 0.16));
}

.draw-page__board-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  color: #fff;
}

.draw-page__expect {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.draw-page__timer {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.draw-page__timer-info {
  display: grid;
  gap: 2px;
  justify-items: end;
  font-size: 12px;
}

.draw-page__timer-info strong {
  font-size: 16px;
}

.draw-page__timer-slots {
  display: flex;
  gap: 4px;
}

.draw-page__timer-slot {
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  color: #5362a2;
  font-size: 15px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(101, 117, 182, 0.16);
}

.draw-page__result-panel {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(108, 134, 241, 0.44);
  display: grid;
  grid-template-columns: minmax(82px, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.draw-page__result-meta {
  display: grid;
  gap: 4px;
  margin: 0;
  color: #fff;
}

.draw-page__result-meta strong {
  font-size: 15px;
}

.draw-page__result-meta span {
  color: #ffeb59;
  font-size: 13px;
  font-weight: 700;
}

.draw-page__result-row {
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 5px;
}

.draw-page .number-box {
  width: 38px;
  height: 48px;
  border-radius: 8px;
  border-width: 2px;
  font-size: 25px;
}

.draw-page .number-box--sum {
  width: 44px;
}

.draw-page .operator {
  font-size: 23px;
}

.draw-page .digit-reel {
  width: 20px;
  height: 44px;
}

.draw-page .digit-reel__digit {
  height: 44px;
  font-size: 25px;
}

.draw-page .result-tags {
  display: none;
}

.draw-page__user-strip {
  position: relative;
  z-index: 1;
  margin: 6px -14px 0;
  padding: 6px 14px 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(86, 112, 210, 0.95);
}

.draw-page__user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.draw-page__user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e1b84e;
  color: #4561b2;
  font-size: 22px;
  font-weight: 700;
  overflow: hidden;
}

.draw-page__user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.draw-page__user-meta {
  display: grid;
  gap: 2px;
  color: #fff;
}

.draw-page__user-meta strong {
  font-size: 16px;
}

.draw-page__user-meta span {
  color: #f7f4ff;
  font-size: 13px;
  font-weight: 700;
}

.draw-page__user-actions {
  display: flex;
  gap: 6px;
}

.draw-page__user-actions button,
.draw-page__tools button,
.draw-page__composer button {
  border: 0;
  cursor: pointer;
}

.draw-page__user-actions button {
  min-width: 44px;
  padding: 7px 8px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #dfe7ff);
  color: #536091;
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(111, 132, 210, 0.22);
}

.draw-page__chat {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 10px 14px 8px;
}

.draw-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.draw-message--system {
  display: grid;
  justify-items: end;
}

.draw-message--self {
  justify-content: flex-end;
}

.draw-message__avatar {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(77, 90, 136, 0.16);
  overflow: hidden;
}

.draw-message__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.draw-message__content {
  display: grid;
  gap: 6px;
}

.draw-message--self .draw-message__content {
  justify-items: end;
}

.draw-message__head,
.draw-message__system-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #566382;
  font-size: 13px;
}

.draw-message--self .draw-message__head {
  justify-content: flex-end;
}

.draw-message__bubble {
  max-width: 292px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  color: #52607f;
  line-height: 1.6;
  box-shadow: 0 8px 20px rgba(60, 73, 119, 0.08);
}

.draw-message__bubble--system {
  max-width: 320px;
}

.draw-message__system-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.draw-message__system-avatar {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #7ac6ff, #ffd07d);
  color: #ffffff;
  font-size: 18px;
  box-shadow: 0 6px 14px rgba(77, 90, 136, 0.16);
}

.draw-message__system-accent {
  color: #4dcb2e;
  font-weight: 700;
}

.draw-message__system-loss {
  color: #ef5350;
  font-weight: 700;
}

.draw-page__tools {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  padding: 7px 10px 8px;
  position: relative;
  bottom: auto;
  z-index: 4;
  background: linear-gradient(180deg, rgba(238, 241, 251, 0), rgba(238, 241, 251, 0.96) 22%);
}

.draw-page__tools button {
  height: 36px;
  border-radius: 999px;
  background: #fff;
  color: #49587b;
  font-size: 14px;
  box-shadow: inset 0 0 0 1px rgba(164, 176, 212, 0.35);
}

.draw-page__composer {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 74px 42px;
  gap: 8px;
  padding: 0 10px 10px;
  align-items: center;
  position: relative;
  bottom: auto;
  z-index: 5;
  background: #eef1fb;
}

.draw-page__composer-label {
  height: 46px;
  border-radius: 8px 8px 0 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #e9f0ff, #cfdcff);
  color: #5771c6;
  font-size: 14px;
  text-align: center;
}

.draw-page__composer input {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: #445271;
  font-size: 15px;
}

.draw-page__composer-input {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: #445271;
  font-size: 15px;
  text-align: left;
}

.draw-page__composer input:disabled {
  color: #9aa5bf;
  background: #f4f6fb;
}

.draw-page__composer-input:disabled {
  color: #9aa5bf;
  background: #f4f6fb;
}

.draw-page__composer button {
  height: 44px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
}

.draw-page__composer button:not(.draw-page__composer-more):not(.draw-page__composer-input) {
  background: #1cc857;
  color: #fff;
}

.draw-page__composer button:disabled {
  background: #b5c2da !important;
  color: #eef3fb;
  cursor: not-allowed;
}

.draw-page__composer-more {
  background: #ff5f7a;
  color: #fff;
  font-size: 20px !important;
}

.draw-page__status {
  display: none;
  margin: 0;
  padding: 0 14px 2px;
  color: #5b6784;
  font-size: 13px;
}

.draw-page__status--error {
  color: #de5252;
}

.draw-toast {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 112px;
  z-index: 30;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(35, 48, 76, 0.92);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 12px 26px rgba(37, 49, 80, 0.2);
  pointer-events: none;
}

.draw-toast--error {
  background: rgba(239, 70, 82, 0.95);
}

.draw-info-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: stretch center;
}

.draw-info-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.34);
}

.draw-info-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  max-height: 100dvh;
  overflow: hidden;
  background: #fff;
  color: #263856;
  box-shadow: 0 18px 48px rgba(22, 33, 70, 0.22);
}

.draw-info-panel--trend {
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.draw-info-panel__top {
  flex: 0 0 auto;
  height: 56px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  border-bottom: 1px solid #eef2fb;
  background: #fff;
}

.draw-info-panel__top button,
.draw-info-panel__close {
  border: 0;
  background: transparent;
  color: #6d7894;
  cursor: pointer;
}

.draw-info-panel__top button {
  height: 56px;
  font-size: 30px;
}

.draw-info-panel__top strong {
  text-align: center;
  color: #101827;
  font-size: 18px;
}

.trend-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.trend-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.trend-table th,
.trend-table td {
  border: 1px solid #e9edf5;
  padding: 9px 8px;
  text-align: center;
  white-space: nowrap;
}

.trend-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7f9ff;
  color: #52617f;
  font-weight: 700;
}

.trend-red {
  color: #ff2020;
  font-weight: 700;
}

.trend-green {
  color: #00a83a;
  font-weight: 700;
}

.draw-info-panel--rules {
  align-self: center;
  width: min(calc(100% - 16px), 436px);
  max-height: calc(100dvh - 24px);
  padding: 22px 26px;
  overflow-y: auto;
}

.draw-info-panel__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  font-size: 26px;
}

.rules-content {
  padding-right: 22px;
  color: #31405f;
  line-height: 1.95;
  font-size: 14px;
}

.rules-content p {
  margin: 0 0 8px;
}

.wallet-modal-card--quick-bet {
  width: min(100%, 430px);
  height: min(86dvh, 620px);
  max-height: 86dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 18px 14px 0;
}

.wallet-modal-card--quick-bet .wallet-modal-card__top {
  flex: 0 0 auto;
}

.quick-bet-tabs {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.quick-bet-tabs__item {
  height: 42px;
  border-radius: 12px;
  background: #f5f7fd;
  color: #536486;
  font-size: 15px;
  font-weight: 700;
}

.quick-bet-tabs__item--active {
  background: linear-gradient(135deg, #ffc337, #ff9f1b);
  color: #ffffff;
}

.quick-bet-grid {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
  margin: 14px -4px 0;
  padding: 0 4px 12px;
}

.quick-bet-option {
  min-height: 64px;
  border-radius: 14px;
  border: 1px solid #ffd470;
  background: #fffaf0;
  color: #556480;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 10px 8px;
}

.quick-bet-option span {
  font-size: 18px;
  font-weight: 700;
}

.quick-bet-option small {
  color: #f1a800;
  font-size: 16px;
}

.quick-bet-option--selected {
  background: linear-gradient(145deg, #fff0c4, #ffe09e);
  box-shadow: inset 0 0 0 1px rgba(255, 172, 35, 0.45);
}

.quick-bet-selected-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wallet-modal-card--quick-bet .wallet-modal-card__section {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 12px;
}

.quick-bet-selected-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff3d1;
  color: #9f6b08;
  font-size: 13px;
  font-weight: 700;
}

.quick-bet-amount-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 10px;
}

.quick-bet-amount-row__clear {
  border-radius: 12px;
  background: #edf2fb;
  color: #5f7093;
  font-weight: 700;
}

.quick-bet-amount-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-bet-amount-presets button {
  min-width: 62px;
  height: 40px;
  border-radius: 12px;
  background: #edf2fb;
  color: #536486;
  font-weight: 700;
}

.quick-bet-footer {
  flex: 0 0 auto;
  display: grid;
  gap: 10px;
  margin: 0 -14px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid #eef1f7;
}

.quick-bet-footer__summary {
  color: #4f5f82;
  font-size: 16px;
}

.quick-bet-error {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff0f0;
  color: #e53d3d;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.quick-bet-footer__summary strong {
  color: #ef3131;
}

.quick-bet-footer__actions {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
}

.quick-bet-footer__ghost,
.quick-bet-footer__primary {
  height: 46px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
}

.quick-bet-footer__ghost {
  background: #eff3fb;
  color: #617395;
}

.quick-bet-footer__primary {
  background: linear-gradient(135deg, #ffc842, #ffad22);
  color: #ffffff;
}

.quick-bet-footer__primary:disabled {
  background: #d9dfeb;
  color: #f8fbff;
}

.result-tag--pending {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.digit-reel {
  display: block;
  width: 28px;
  height: 84px;
  overflow: hidden;
}

.digit-reel--1 .digit-reel__track {
  animation-duration: 0.52s;
}

.digit-reel--2 .digit-reel__track {
  animation-duration: 0.68s;
}

.digit-reel__track {
  display: flex;
  flex-direction: column;
  animation: digitRoll 0.6s linear infinite;
}

.digit-reel__digit {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  color: #fff;
  font-size: 38px;
}

.panel {
  padding: 24px;
}

.panel__header {
  display: grid;
  gap: 6px;
  color: #f8fbff;
}

.panel__header h2 {
  margin: 0;
  font-size: 28px;
}

.stat-grid,
.support-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat-card,
.support-item,
.profile-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 12px 28px rgba(34, 57, 120, 0.12);
}

.stat-card__label,
.profile-card__meta,
.support-item span,
.auth-tip,
.auth-api-tip {
  color: #63759b;
}

.stat-card__value {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  color: #244286;
}

.stat-card__value--up {
  color: #d23d3d;
}

.stat-card__value--down {
  color: #f08f29;
}

.panel--wallet {
  padding: 18px 16px 20px;
  background: rgba(236, 238, 255, 0.92);
}

.panel--profile {
  padding: 18px 16px 20px;
  background: rgba(236, 238, 255, 0.92);
}

.wallet-shell {
  display: grid;
  gap: 18px;
}

.wallet-shell--request {
  gap: 16px;
}

.wallet-shell__top {
  display: grid;
  gap: 14px;
}

.wallet-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(219, 228, 246, 0.9);
  box-shadow: 0 10px 24px rgba(34, 57, 120, 0.08);
}

.wallet-stats-bar__item {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 16px 10px;
  background: rgba(255, 255, 255, 0.98);
  text-align: center;
}

.wallet-stats-bar__item span {
  color: #3e4d70;
  font-size: 13px;
}

.wallet-stats-bar__item strong {
  color: #ea9b11;
  font-size: 18px;
}

.wallet-stats-bar__value--up {
  color: #d86e1d !important;
}

.wallet-stats-bar__value--down {
  color: #4f74b9 !important;
}

.wallet-promo-banner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  gap: 12px;
  min-height: 176px;
  border-radius: 18px;
  padding: 20px 18px;
  background:
    radial-gradient(circle at top right, rgba(255, 221, 159, 0.36), transparent 34%),
    linear-gradient(135deg, #b31c17 0%, #c43520 42%, #9d1214 100%);
  box-shadow: 0 14px 30px rgba(125, 29, 30, 0.24);
  color: #fff8e8;
}

.wallet-promo-banner__content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 10px;
}

.wallet-promo-banner__eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 228, 165, 0.18);
  border: 1px solid rgba(255, 222, 161, 0.35);
  color: #ffe5a2;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.wallet-promo-banner__title {
  font-size: 28px;
  line-height: 1.15;
  color: #fff4cf;
}

.wallet-promo-banner__text {
  margin: 0;
  color: rgba(255, 244, 214, 0.9);
  line-height: 1.6;
  font-size: 13px;
}

.wallet-promo-banner__tips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wallet-promo-banner__tips span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(91, 10, 9, 0.24);
  border: 1px solid rgba(255, 235, 192, 0.22);
  color: #ffe39f;
  font-size: 12px;
}

.wallet-promo-banner__visual {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
}

.wallet-promo-banner__badge,
.wallet-promo-banner__coin {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
  color: #fff8db;
}

.wallet-promo-banner__badge {
  width: 54px;
  height: 54px;
  border: 2px solid rgba(255, 228, 164, 0.75);
  background: rgba(122, 13, 14, 0.34);
  font-size: 16px;
}

.wallet-promo-banner__coin {
  width: 90px;
  height: 90px;
  background: radial-gradient(circle at 30% 30%, #ffedb1 0%, #f3b63f 52%, #b77214 100%);
  color: #8d2910;
  font-size: 30px;
  box-shadow: 0 10px 22px rgba(102, 20, 14, 0.35);
}

.wallet-promo-banner__visual img {
  position: absolute;
  inset: 12px 0 0 auto;
  width: 116px;
  height: 116px;
  object-fit: cover;
  opacity: 0.18;
  filter: saturate(1.2);
  pointer-events: none;
}

.wallet-shell--compact-banner {
  gap: 8px;
}

.wallet-promo-banner--image {
  display: block;
  min-height: 0;
  aspect-ratio: 670 / 275;
  padding: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.wallet-promo-banner__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wallet-user-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 2px 0;
}

.wallet-user-card__avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #d5bb72, #c9a95b);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  overflow: hidden;
}

.wallet-user-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar-upload {
  position: relative;
  display: inline-grid;
  place-items: center;
  margin-top: 8px;
  cursor: pointer;
}

.profile-avatar-upload input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.profile-avatar-upload span {
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef4ff;
  color: #3475eb;
  font-size: 12px;
  font-weight: 700;
}

.profile-feedback {
  margin-top: 6px;
  color: #22a05a;
  font-size: 12px;
  font-weight: 700;
}

.profile-feedback--error {
  color: #e54a4a;
}

.wallet-user-card__name {
  color: #31589f;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.wallet-balance-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  background: linear-gradient(145deg, #2d8ef6, #2778e7);
  color: #fff;
  box-shadow: 0 12px 26px rgba(37, 101, 201, 0.18);
}

.wallet-balance-strip__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
}

.wallet-balance-strip__label::before {
  content: "□";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  font-size: 10px;
}

.wallet-balance-strip__value {
  font-size: 28px;
}

.wallet-benefit-card,
.wallet-request-card,
.wallet-menu,
.wallet-records,
.wallet-record-item {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(34, 57, 120, 0.08);
}

.wallet-benefit-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 16px;
  position: relative;
  overflow: hidden;
}

.wallet-benefit-card::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -38px;
  height: 82px;
  border-radius: 50%;
  background: rgba(240, 244, 255, 0.95);
}

.wallet-request-card {
  display: grid;
  gap: 14px;
  padding: 18px 16px;
}

.wallet-shell--request .wallet-request-card {
  gap: 0;
  overflow: hidden;
  padding: 0;
}

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

.wallet-shell--request .wallet-request-switch {
  gap: 0;
  border-bottom: 1px solid #edf2fb;
}

.wallet-request-switch__tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: #f6f8ff;
  color: #6d7ea4;
  padding: 12px 10px;
  font-size: 18px;
  cursor: pointer;
}

.wallet-request-switch__tab--active {
  color: #e39d22;
  border-bottom-color: #e39d22;
  background: #fff8ea;
}

.wallet-shell--request .wallet-request-switch__tab {
  background: #fff;
  padding: 18px 10px 14px;
}

.wallet-shell--request .wallet-request-switch__tab--active {
  background: #fff;
}

.wallet-request-methods {
  display: grid;
  gap: 16px;
}

.wallet-shell--request .wallet-request-methods,
.wallet-shell--request .wallet-request-form-sheet,
.wallet-shell--request .wallet-request-field,
.wallet-shell--request .wallet-request-proof-preview {
  padding-left: 16px;
  padding-right: 16px;
}

.wallet-shell--request .wallet-request-methods {
  padding-top: 18px;
}

.wallet-shell--request .wallet-request-form-sheet,
.wallet-shell--request .wallet-request-field {
  padding-top: 16px;
}

.wallet-shell--request .wallet-request-submit {
  margin: 14px 16px 18px;
}

.wallet-request-methods__title {
  color: #2b3d67;
  font-size: 16px;
  font-weight: 700;
}

.wallet-request-methods__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.wallet-request-method {
  min-height: 54px;
  border: 1px solid #e3e9f5;
  border-radius: 18px;
  background: #fff;
  color: #526482;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 8px 6px;
  font-size: 14px;
  cursor: pointer;
}

.wallet-request-method--active {
  border-color: #f1b20f;
  color: #d09000;
  box-shadow: inset 0 0 0 1px rgba(241, 178, 15, 0.18);
}

.wallet-request-method__icon {
  font-size: 20px;
  line-height: 1;
}

.wallet-request-method__icon-img {
  width: 32px;
  height: 32px;
  display: block;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.wallet-request-method--active .wallet-request-method__icon-img {
  box-shadow: 0 8px 18px rgba(241, 178, 15, 0.18);
  transform: translateY(-1px);
}

.wallet-request-form-sheet {
  display: grid;
  gap: 20px;
  padding: 8px 0 2px;
}

.wallet-request-line {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.wallet-request-line--upload {
  align-items: start;
}

.wallet-request-line__label {
  color: #2d3e66;
  font-size: 15px;
  font-weight: 700;
}

.wallet-request-line input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e2e8f6;
  padding: 12px 2px;
  font-size: 16px;
  color: #243866;
  background: transparent;
}

.wallet-request-field {
  display: grid;
  gap: 8px;
  color: #34518e;
  font-weight: 700;
}

.wallet-request-field input {
  border: 0;
  border-bottom: 1px solid #e2e8f6;
  padding: 12px 2px;
  font-size: 16px;
  color: #243866;
  background: transparent;
}

.wallet-request-upload {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 0 4px;
}

.wallet-request-upload__input {
  display: none;
}

.wallet-request-upload__trigger {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px dashed #d6e0f2;
  background: #f7f9ff;
  color: #4b95ff;
  display: grid;
  place-items: center;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.wallet-request-upload--qr {
  align-items: flex-start;
}

.wallet-request-upload__trigger--large {
  width: 144px;
  height: 144px;
  border-radius: 0;
  font-size: 34px;
  color: #a8b2c7;
}

.wallet-request-upload__clear {
  border: 0;
  background: transparent;
  color: #8796ba;
  font-size: 14px;
  cursor: pointer;
}

.wallet-request-proof-preview {
  display: flex;
  justify-content: center;
}

.wallet-request-proof-preview img {
  width: 100%;
  max-width: 220px;
  border-radius: 16px;
  border: 1px solid #dbe5f5;
  object-fit: cover;
  background: #f8fbff;
}

.wallet-request-feedback {
  margin: 2px 16px 0;
  border-radius: 10px;
  padding: 10px 12px;
  background: #edf9f2;
  color: #15924f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.wallet-request-feedback--error {
  background: #fff1ef;
  color: #e34938;
}

.wallet-request-submit {
  border: 0;
  border-radius: 10px;
  background: linear-gradient(145deg, #f4d57f, #eac35f);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  padding: 14px 16px;
  cursor: pointer;
}

.wallet-request-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.wallet-request-history-link {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
  color: #27458c;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(34, 57, 120, 0.08);
  cursor: pointer;
}

.wallet-benefit-card__item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wallet-benefit-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.wallet-benefit-card__icon--diamond {
  background: linear-gradient(145deg, #ffcc4d, #f5a623);
}

.wallet-benefit-card__icon--gift {
  background: linear-gradient(145deg, #ffc84d, #f7a200);
}

.wallet-benefit-card__content {
  display: grid;
  gap: 5px;
}

.wallet-benefit-card__content strong {
  color: #2f4b87;
}

.wallet-benefit-card__content span {
  color: #f39b1d;
  font-size: 13px;
}

.wallet-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 10px 8px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(34, 57, 120, 0.08);
}

.wallet-shortcuts__item {
  border: 0;
  background: transparent;
  display: grid;
  gap: 10px;
  justify-items: center;
  color: #455784;
  font-size: 13px;
  cursor: pointer;
}

.wallet-shortcuts__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #27395f;
  font-size: 18px;
  box-shadow: 0 6px 16px rgba(47, 72, 136, 0.16);
}

.wallet-menu {
  overflow: hidden;
}

.wallet-menu__item {
  width: 100%;
  border: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  color: #233766;
  cursor: pointer;
}

.wallet-menu__item--link {
  text-decoration: none;
}

.wallet-menu__item + .wallet-menu__item {
  border-top: 1px solid #eef2fb;
}

.wallet-menu__main {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
}

.wallet-menu__icon {
  width: 18px;
  color: #515f80;
  font-size: 14px;
}

.wallet-menu__side {
  color: #8a97b8;
  font-size: 14px;
}

.wallet-records {
  padding: 18px;
}

.wallet-records--compact {
  margin-top: 2px;
}

.profile-shell {
  display: grid;
  gap: 18px;
}

.profile-shell__top {
  display: grid;
  gap: 14px;
}

.profile-balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff, #eff4ff);
  box-shadow: 0 12px 28px rgba(34, 57, 120, 0.08);
  color: #27458c;
}

.profile-balance-card span {
  color: #6d7ea4;
  font-size: 14px;
}

.profile-balance-card strong {
  font-size: 28px;
}

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

.profile-overview__item {
  display: grid;
  gap: 6px;
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(34, 57, 120, 0.08);
}

.profile-overview__item span {
  color: #6d7ea4;
  font-size: 12px;
}

.profile-overview__item strong {
  color: #27458c;
  font-size: 18px;
}

.wallet-records__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.wallet-records__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.wallet-records__head h3 {
  margin: 0;
  font-size: 20px;
  color: #243866;
}

.wallet-record-list {
  display: grid;
  gap: 12px;
}

.wallet-request-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wallet-request-filter__tab {
  border: 1px solid #dbe5f5;
  border-radius: 999px;
  background: #f7f9ff;
  color: #6c7aa0;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}

.wallet-request-filter__tab--active {
  border-color: #f0bb57;
  background: #fff4da;
  color: #db8e0d;
}

.wallet-kpi-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.wallet-kpi {
  display: grid;
  gap: 6px;
  padding: 14px 12px;
  border-radius: 14px;
  background: #f5f8ff;
}

.wallet-kpi span {
  color: #6a7aa3;
  font-size: 12px;
}

.wallet-kpi strong {
  color: #27458c;
  font-size: 18px;
}

.wallet-kpi__value--up {
  color: #d23d3d !important;
}

.wallet-kpi__value--down {
  color: #f08f29 !important;
}

.wallet-record-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.wallet-request-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(34, 57, 120, 0.08);
}

.wallet-record-item__meta,
.wallet-record-item__side,
.wallet-request-item__meta,
.wallet-request-item__side {
  display: grid;
  gap: 6px;
}

.wallet-record-item__meta strong,
.wallet-record-item__side strong,
.wallet-request-item__meta strong {
  color: #22355f;
}

.wallet-request-item__proof {
  color: #4b95ff;
  font-size: 13px;
  text-decoration: none;
}

.detail-content--bet-records {
  background: #eef2ff;
}

.bet-record-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 14px 10px;
  border-radius: 6px;
  background: #050505;
  color: #fff;
}

.bet-record-summary article {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.bet-record-summary strong {
  font-size: 18px;
  color: #fff;
}

.bet-record-summary span {
  font-size: 14px;
  color: #fff;
}

.bet-record-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
}

.bet-record-filter label {
  display: grid;
  gap: 5px;
  color: #5f6d8e;
  font-size: 12px;
}

.bet-record-filter input {
  width: 100%;
  min-width: 0;
  border: 1px solid #dce4f4;
  border-radius: 6px;
  padding: 9px 8px;
  color: #24324f;
}

.bet-record-filter button {
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  background: #f2b706;
  color: #fff;
  font-weight: 700;
}

.bet-record-list {
  display: grid;
  gap: 10px;
}

.bet-record-card {
  padding: 12px;
  border-radius: 6px;
  background: #fff;
  color: #17233f;
  box-shadow: 0 8px 20px rgba(42, 58, 102, 0.06);
}

.bet-record-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.bet-record-card__head strong {
  color: #52617f;
  font-size: 15px;
}

.bet-record-card__status {
  border: 1px solid currentColor;
  border-radius: 2px;
  padding: 2px 8px;
  font-weight: 700;
  font-size: 13px;
}

.bet-record-card__status--win {
  color: #00c800;
}

.bet-record-card__status--lose {
  color: #ff2020;
}

.bet-record-card__status--pending {
  color: #f0a000;
}

.bet-record-card__rows {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 7px 10px;
  font-size: 13px;
}

.bet-record-card__rows span {
  color: #17233f;
}

.bet-record-card__rows strong {
  min-width: 0;
  text-align: right;
  color: #17233f;
  font-weight: 500;
  word-break: break-word;
}

.bet-record-card__accent {
  color: #f0a000 !important;
}

.bet-record-card__money {
  color: #00bd00 !important;
}

.bet-record-card__loss {
  color: #ef3d3d !important;
}

.detail-shell--flat {
  background: #f1f3fb;
}

.detail-topbar--flat {
  border-bottom: 1px solid #eef2fb;
  background: #fff;
}

.detail-topbar--flat .detail-topbar__title span {
  display: none;
}

.balance-detail-page {
  display: grid;
  gap: 10px;
  background: #f1f3fb;
}

.balance-tabs {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  border-radius: 0 0 6px 6px;
  background: #fff;
}

.balance-tabs button {
  position: relative;
  height: 62px;
  border: 0;
  background: transparent;
  color: #343b4e;
  font-size: 16px;
  cursor: pointer;
}

.balance-tabs__item--active {
  color: #f0a000 !important;
  font-weight: 700;
}

.balance-tabs__item--active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 24px;
  height: 4px;
  border-radius: 999px;
  background: #f0b000;
  transform: translateX(-50%);
}

.balance-detail-list {
  display: grid;
  gap: 10px;
  padding: 0 7px 14px;
}

.balance-detail-card {
  display: grid;
  gap: 5px;
  padding: 11px 14px;
  border-radius: 6px;
  background: #fff;
  color: #101827;
}

.balance-detail-card__row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  font-size: 14px;
  line-height: 1.35;
}

.balance-detail-card__row span {
  color: #121827;
}

.balance-detail-card__row strong {
  min-width: 0;
  text-align: right;
  font-weight: 500;
  word-break: break-word;
}

.balance-detail-card__green {
  color: #00bd00 !important;
}

.balance-detail-card__red {
  color: #ff2020 !important;
}

.balance-detail-card__orange {
  color: #f0a000 !important;
}

.wallet-record-item__meta span,
.wallet-record-item__side span,
.wallet-request-item__meta span,
.wallet-request-item__side span,
.wallet-records__empty {
  color: #6d7ca2;
}

.wallet-record-item__side,
.wallet-request-item__side {
  text-align: right;
}

.wallet-record-item__amount--credit {
  color: #d23d3d;
}

.wallet-record-item__amount--debit {
  color: #f08f29;
}

.wallet-records__empty {
  padding: 20px 6px 6px;
}

.wallet-request-item__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
}

.wallet-request-item__status--pending {
  background: #fff2d9;
  color: #d68b00;
}

.wallet-request-item__status--approved {
  background: #e7f7ea;
  color: #3d9b51;
}

.wallet-request-item__status--rejected {
  background: #ffe8e8;
  color: #df4f4f;
}

.wallet-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 14px 96px;
}

.wallet-modal-shell__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 31, 72, 0.42);
}

.wallet-modal-card {
  position: relative;
  width: min(100%, 480px);
  max-height: calc(100vh - 120px);
  overflow: auto;
  border-radius: 22px;
  background: #fff;
  padding: 20px 18px;
  box-shadow: 0 18px 44px rgba(28, 49, 110, 0.18);
}

.wallet-modal-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wallet-modal-card__top h3 {
  margin: 0;
  color: #243866;
  font-size: 24px;
}

.wallet-modal-card__close {
  border: 0;
  background: transparent;
  color: #9aa8c4;
  font-size: 28px;
  cursor: pointer;
}

.wallet-modal-card__section {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.wallet-modal-card__line,
.wallet-modal-card__invite-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: #f5f8ff;
  color: #40527a;
  line-height: 1.6;
}

.wallet-modal-card__line strong {
  color: #243866;
}

.wallet-modal-card__section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.wallet-modal-card__invite-list {
  display: grid;
  gap: 10px;
}

.wallet-modal-card__invite-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.wallet-modal-card__invite-item div {
  display: grid;
  gap: 4px;
}

.wallet-modal-card__invite-item strong {
  color: #243866;
}

.wallet-modal-card__invite-item span,
.wallet-modal-card__empty {
  color: #6d7ea4;
}

.wallet-modal-card__empty {
  padding: 12px 4px;
}

.detail-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #edf1ff 0%, #f8faff 100%);
}

.detail-shell {
  width: min(100%, 420px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 16px 28px;
}

.detail-topbar {
  position: sticky;
  top: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  padding: 16px 0 12px;
  background: linear-gradient(180deg, rgba(237, 241, 255, 0.98), rgba(237, 241, 255, 0.92));
  backdrop-filter: blur(12px);
}

.detail-topbar__title {
  text-align: center;
}

.detail-topbar__title strong {
  display: block;
  color: #243866;
  font-size: 18px;
}

.detail-topbar__title span {
  color: #8391b2;
  font-size: 12px;
}

.detail-topbar__button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: #27458c;
  font-size: 18px;
  box-shadow: 0 10px 24px rgba(34, 57, 120, 0.08);
  cursor: pointer;
}

.detail-content {
  display: grid;
  gap: 16px;
}

.detail-hero,
.detail-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(34, 57, 120, 0.08);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 22px 18px;
  color: #fff;
}

.detail-hero--wallet {
  background:
    radial-gradient(circle at top right, rgba(255, 227, 167, 0.34), transparent 34%),
    linear-gradient(135deg, #2b87ef 0%, #4aa4ff 100%);
}

.detail-hero--referral {
  background:
    radial-gradient(circle at top right, rgba(255, 224, 160, 0.28), transparent 34%),
    linear-gradient(135deg, #5868f2 0%, #7b7cff 100%);
}

.detail-hero__eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.detail-hero__title {
  display: block;
  margin-top: 12px;
  font-size: 28px;
  line-height: 1.15;
}

.detail-hero__text {
  margin: 10px 0 0;
  max-width: 280px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.65;
  font-size: 14px;
}

.detail-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.detail-hero__chips span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
}

.detail-card {
  padding: 18px 16px;
}

.detail-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.detail-card__head h2,
.detail-card__head h3 {
  margin: 0;
  color: #243866;
  font-size: 20px;
}

.detail-card__head span {
  color: #7e8daf;
  font-size: 13px;
}

.detail-user-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.detail-user-row__avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #d5bb72, #c9a95b);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

.detail-user-row__meta {
  display: grid;
  gap: 4px;
}

.detail-user-row__meta strong {
  color: #243866;
  font-size: 20px;
}

.detail-user-row__meta span {
  color: #7f8db0;
  font-size: 13px;
}

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

.detail-kpi {
  display: grid;
  gap: 6px;
  padding: 14px 12px;
  border-radius: 16px;
  background: #f5f8ff;
}

.detail-kpi span {
  color: #6d7ea4;
  font-size: 12px;
}

.detail-kpi strong {
  color: #27458c;
  font-size: 18px;
}

.detail-kpi__value--up {
  color: #d23d3d !important;
}

.detail-kpi__value--down {
  color: #f08f29 !important;
}

.detail-list {
  display: grid;
  gap: 12px;
}

.detail-list__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: #f7f9ff;
}

.detail-list__meta,
.detail-list__side {
  display: grid;
  gap: 6px;
}

.detail-list__meta strong,
.detail-list__side strong {
  color: #243866;
}

.detail-list__meta span,
.detail-list__side span,
.detail-empty {
  color: #6d7ea4;
  font-size: 13px;
  line-height: 1.6;
}

.detail-list__side {
  text-align: right;
}

.detail-list--bets {
  gap: 10px;
}

.detail-list__item--bet {
  align-items: flex-start;
}

.detail-list__item--bet .detail-list__side strong {
  max-width: 220px;
  word-break: break-word;
}

.detail-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #4c6aa6;
  font-size: 12px;
}

.detail-referral-stack {
  display: grid;
  gap: 12px;
}

.detail-referral-line {
  padding: 14px 16px;
  border-radius: 16px;
  background: #f7f9ff;
  color: #40527a;
  line-height: 1.7;
}

.detail-referral-line strong {
  color: #243866;
}

.detail-empty {
  padding: 18px 2px 4px;
}

.detail-empty--notice {
  padding: 18px 16px;
  border-radius: 18px;
  background: rgba(99, 142, 255, 0.1);
  color: #39518f;
  text-align: left;
}

.referral-agent-page {
  background: #f4f6fb;
}

.agent-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  color: #17213a;
  background: #f4f6fb;
}

.agent-topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 78px;
  align-items: center;
  height: 58px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #eef0f5;
  backdrop-filter: blur(12px);
}

.agent-topbar strong {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
}

.agent-topbar__button,
.agent-invite-button {
  border: 0;
  background: transparent;
  color: #273348;
  cursor: pointer;
}

.agent-topbar__button {
  justify-self: start;
  font-size: 34px;
  line-height: 1;
}

.agent-invite-button {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #9a6b00;
  font-size: 14px;
}

.agent-invite-button span {
  font-size: 24px;
  line-height: 1;
}

.agent-content {
  display: grid;
  gap: 10px;
  padding: 12px 0 28px;
}

.agent-summary-card,
.agent-tabs-card {
  background: #fff;
  border-radius: 4px;
}

.agent-summary-card__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  min-height: 108px;
  border-top: 1px solid #202020;
}

.agent-summary-card__row:first-child {
  border-top: 0;
}

.agent-summary-card__row--top {
  grid-template-columns: 1fr 1.35fr 1.1fr;
}

.agent-summary-card article {
  display: grid;
  gap: 8px;
  min-height: 58px;
  align-content: center;
  justify-items: center;
  border-left: 1px solid #202020;
}

.agent-summary-card article:first-child {
  border-left: 0;
}

.agent-summary-card span {
  color: #1c2740;
  font-size: 15px;
}

.agent-summary-card strong {
  color: #1b2a44;
  font-size: 16px;
  font-weight: 500;
}

.agent-summary-card__money {
  color: #f00000 !important;
  font-size: 21px !important;
  white-space: nowrap;
}

.agent-summary-card button {
  justify-self: center;
  width: 104px;
  height: 42px;
  border: 0;
  border-radius: 7px;
  background: #0877ee;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.agent-text-green {
  color: #0aa45f !important;
}

.agent-text-red {
  color: #f00000 !important;
}

.agent-tabs-card {
  padding: 18px 10px 0;
}

.agent-level-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 4px;
  height: 42px;
}

.agent-level-tabs button {
  height: 38px;
  border: 0;
  background: transparent;
  color: #1e2c44;
  font-size: 16px;
}

.agent-level-tabs__item--active {
  color: #2456ff !important;
  border-bottom: 2px solid #2456ff !important;
}

.agent-level-tabs__date {
  color: #17213a !important;
}

.agent-downline-list {
  display: grid;
}

.agent-downline-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 80px;
  align-items: center;
  gap: 8px;
  min-height: 100px;
  border-top: 1px solid #333;
}

.agent-downline-card__profile {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.agent-avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(145deg, #d8c386, #c6a85f);
  color: #fff;
  font-size: 28px;
}

.agent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-downline-card__profile strong {
  max-width: 78px;
  color: #1c2740;
  font-size: 15px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-downline-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  text-align: center;
}

.agent-downline-card__metrics div {
  display: grid;
  gap: 6px;
}

.agent-downline-card__metrics span {
  color: #1d2a43;
  font-size: 13px;
  white-space: nowrap;
}

.agent-downline-card__metrics strong {
  color: #17213a;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.agent-order-button {
  width: 78px;
  height: 36px;
  border: 0;
  border-radius: 7px;
  background: #d2ba7a;
  color: #17213a;
  font-size: 15px;
}

.agent-empty {
  padding: 28px 12px;
  color: #7a8499;
  text-align: center;
}

.agent-status {
  margin: 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eef4ff;
  color: #244b93;
  font-size: 13px;
  text-align: center;
}

.agent-status--error {
  background: #ffecec;
  color: #d42c2c;
}

.agent-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.agent-sheet__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.36);
}

.agent-sheet__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  max-height: 82vh;
  overflow-y: auto;
  border-radius: 10px 10px 0 0;
  background: #fff;
  padding: 28px 18px 18px;
}

.agent-sheet__panel h3 {
  margin: 0 0 24px;
  color: #20283a;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
}

.agent-share-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 28px;
}

.agent-share-grid button {
  display: grid;
  justify-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #2b2f39;
  font-size: 14px;
}

.agent-share-grid span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #2b2f39;
  font-size: 34px;
  font-weight: 600;
}

.agent-qr-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 16px 12px;
  border-radius: 14px;
  background: #f6f8fd;
}

.agent-qr-card img {
  width: 188px;
  height: 188px;
  border-radius: 12px;
  background: #fff;
}

.agent-qr-card strong {
  color: #17213a;
}

.agent-qr-card p {
  max-width: 100%;
  margin: 0;
  color: #667189;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  word-break: break-all;
}

.agent-sheet__cancel {
  display: block;
  width: 100%;
  height: 46px;
  margin-top: 26px;
  border: 0;
  background: transparent;
  color: #20283a;
  font-size: 18px;
}

.agent-sheet__panel--orders {
  padding-top: 22px;
}

.agent-order-list {
  display: grid;
  gap: 10px;
}

.agent-order-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: #f6f8fd;
}

.agent-order-card div:first-child,
.agent-order-card__money {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.agent-order-card strong {
  color: #17213a;
}

.agent-order-card span,
.agent-order-card p {
  margin: 0;
  color: #657189;
  font-size: 13px;
  line-height: 1.45;
}

.profile-card {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.profile-card__name {
  font-size: 30px;
  font-weight: 700;
  color: #23325f;
}

.profile-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.inline-link {
  color: #2a63de;
  font-weight: 600;
  text-decoration: none;
}

.inline-link--button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.status-text {
  margin: 18px 8px 0;
  text-align: center;
  color: #edf3ff;
}

.status-text--error {
  color: #ffe4e4;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(16, 31, 72, 0.9);
  backdrop-filter: blur(18px);
}

.bottom-nav__item {
  border: 0;
  border-radius: 18px;
  padding: 12px 10px;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.bottom-nav__item--active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.bottom-nav--light {
  background: #fff;
  border-top: 1px solid #eceef7;
  backdrop-filter: none;
}

.bottom-nav__item--light {
  color: #4a5570;
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 10px 6px;
}

.bottom-nav__item--light.bottom-nav__item--active {
  color: #e3a600;
  background: transparent;
}

.bottom-nav__icon {
  font-size: 22px;
  line-height: 1;
}

.bottom-nav__icon {
  --nav-icon-color: #ffc363;
  --nav-icon-mask: none;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  font-size: 0;
  line-height: 0;
}

.bottom-nav__icon::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--nav-icon-color);
  -webkit-mask: var(--nav-icon-mask) center / contain no-repeat;
  mask: var(--nav-icon-mask) center / contain no-repeat;
}

.bottom-nav__icon--home {
  --nav-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23000' d='M28 125.5 118.8 35a13 13 0 0 1 18.4 0L228 125.5a13 13 0 0 1-18.4 18.4l-4.6-4.6V212a18 18 0 0 1-18 18h-45v-65a14 14 0 0 0-14-14h-18a14 14 0 0 0-14 14v65H69a18 18 0 0 1-18-18v-72.7l-4.6 4.6A13 13 0 0 1 28 125.5Z'/%3E%3C/svg%3E");
}

.bottom-nav__icon--wallet {
  --nav-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23000' d='M89 24c15 16 28 22 39 22s24-6 39-22c15-2 27 7 26 22-5 20-22 40-36 47H99C85 86 68 66 63 46 62 31 74 22 89 24Zm39 78c58 0 87 56 101 115 3 13-7 25-20 25H47c-13 0-23-12-20-25 14-59 43-115 101-115Z'/%3E%3C/svg%3E");
}

.bottom-nav__icon--wallet::after {
  content: "￥";
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
}

.bottom-nav__icon--support {
  --nav-icon-color: #ff477d;
  --nav-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='none' stroke='%23000' stroke-width='18' stroke-linecap='round' stroke-linejoin='round' d='M44 146v-28a84 84 0 0 1 168 0v28M55 116h11a14 14 0 0 1 14 14v44a14 14 0 0 1-14 14H55a22 22 0 0 1-22-22v-28a22 22 0 0 1 22-22Zm146 0h-11a14 14 0 0 0-14 14v44a14 14 0 0 0 14 14h11a22 22 0 0 0 22-22v-28a22 22 0 0 0-22-22Zm-25 64c0 30-18 48-49 48h-16'/%3E%3Cpath fill='none' stroke='%23000' stroke-width='22' stroke-linecap='round' d='M102 228h28'/%3E%3C/svg%3E");
}

.bottom-nav__icon--profile {
  --nav-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='none' stroke='%23000' stroke-width='18' stroke-linecap='round' d='M128 31a48 48 0 1 1 0 96 48 48 0 0 1 0-96Zm-91 196c0-51 40-83 91-83s91 32 91 83'/%3E%3C/svg%3E");
}

.bottom-nav__item--active .bottom-nav__icon {
  transform: translateY(-1px) scale(1.04);
}

.auth-page-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-page-body--light {
  background: #f7f7fb;
}

.auth-screen {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 18px 120px;
  background: #fff;
}

.auth-screen__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.auth-screen__icon {
  border: 0;
  background: transparent;
  color: #2a2a2a;
  font-size: 34px;
  line-height: 1;
  padding: 4px 0;
  cursor: pointer;
}

.auth-screen__icon--dots {
  letter-spacing: 4px;
}

.auth-login-card {
  display: grid;
  gap: 22px;
  padding: 18px 14px 10px;
}

.auth-feedback--inline {
  min-height: 22px;
  margin-top: 0;
  color: #6a748d;
  text-align: left;
}

.auth-line-field {
  display: grid;
  gap: 14px;
  border-bottom: 1px solid #ececf3;
  padding-bottom: 18px;
}

.auth-line-field__label {
  color: #242c3d;
  font-size: 18px;
  font-weight: 500;
}

.auth-line-field__control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.auth-line-field__control input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #20283a;
  font-size: 18px;
  padding: 6px 0;
}

.auth-code-btn {
  min-width: 120px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #3f9af9, #2979e8);
  color: #fff;
  font-size: 16px;
  padding: 12px 14px;
  cursor: pointer;
}

.auth-code-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.auth-submit-btn {
  min-height: 64px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #f7bf0d, #efaf00);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 0 0 2px rgba(199, 140, 0, 0.22);
}

.auth-submit-btn:disabled {
  opacity: 0.75;
  cursor: wait;
}

.auth-help-text {
  margin: 0;
  text-align: right;
  color: #71788f;
  font-size: 16px;
}

.auth-help-link {
  border: 0;
  background: transparent;
  color: #2c74ea;
  font-size: 16px;
  cursor: pointer;
}

@media (min-width: 769px) {
  .auth-page-body--light {
    padding: 24px;
    background: linear-gradient(180deg, #f2f5fb, #e8eef9);
  }

  .auth-screen {
    min-height: auto;
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(25, 47, 92, 0.08);
  }

  .mobile-shell {
    width: min(100%, 1180px);
    padding: 28px 24px 110px;
  }
}

.auth-card {
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 36px 28px 30px;
  text-align: center;
}

.auth-card__header {
  display: flex;
  justify-content: center;
}

.auth-card__headline {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.auth-card__eyebrow {
  color: #eef4ff;
  font-size: 16px;
  font-weight: 700;
}

.auth-card__title {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 9vw, 58px);
  line-height: 1.06;
}

.auth-tabs {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  justify-content: center;
}

.auth-tab {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 20px;
  min-height: 64px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.auth-tab--active {
  background: rgba(255, 255, 255, 0.94);
  color: #3255af;
}

.auth-feedback {
  min-height: 28px;
  margin-top: 16px;
  color: #eef5ff;
  text-align: center;
}

.auth-feedback--error {
  color: #ffe2e2;
}

.auth-form {
  display: grid;
  gap: 18px;
  margin-top: 10px;
}

.field {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.field__label {
  color: #f2f6ff;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.field__input {
  width: 100%;
  border: 0;
  border-radius: 20px;
  min-height: 58px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.96);
  color: #1f315c;
  font-size: 17px;
  text-align: center;
}

.primary-btn {
  border: 0;
  border-radius: 22px;
  min-height: 62px;
  padding: 14px 16px;
  background: #2f61dc;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

@keyframes digitRoll {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-420px);
  }
}

@keyframes cardPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.015);
  }
}

@keyframes slowSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes reverseSpin {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@keyframes noticeMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

@media (max-width: 768px) {
  .mobile-shell {
    width: 100%;
    padding: 16px 14px 100px;
  }

  .auth-page-body--light {
    display: block;
  }

  .auth-screen {
    width: 100%;
    min-height: 100vh;
    padding: 18px 18px 120px;
    border-radius: 0;
    box-shadow: none;
  }

  .auth-shell {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 14px 104px;
  }

  .auth-card {
    width: min(100%, 100%);
    padding: 30px 20px 24px;
    border-radius: 26px;
  }

  .auth-tab {
    min-height: 58px;
    font-size: 17px;
  }

  .field__input {
    min-height: 56px;
    font-size: 16px;
  }

  .auth-line-field__label {
    font-size: 16px;
  }

  .auth-line-field__control {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-code-btn {
    width: 100%;
    min-width: 0;
  }

  .primary-btn {
    min-height: 58px;
  }

  .landing-hero {
    padding: 26px 18px 20px;
  }

  .landing-hero__badge {
    top: 14px;
    right: 14px;
  }

  .landing-copy__title {
    font-size: clamp(34px, 11vw, 52px);
  }

  .landing-wheel {
    width: min(84vw, 300px);
  }

  .landing-wheel__chip {
    width: 46px;
    height: 46px;
    font-size: 22px;
  }

  .wallet-request-line {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .wallet-request-methods__grid {
    gap: 10px;
  }

  .wallet-request-method {
    min-height: 50px;
    font-size: 13px;
  }

  .wallet-request-upload__trigger--large {
    width: 128px;
    height: 128px;
  }

  .landing-wheel__core strong {
    font-size: 36px;
  }

  .notice-strip {
    align-items: flex-start;
  }

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

  .quick-card {
    border-radius: 20px;
    padding: 16px 10px;
  }

  .quick-card__label {
    font-size: 13px;
  }

  .game-entry {
    border-radius: 24px;
    padding: 18px 16px;
  }

  .game-entry__label {
    font-size: 26px;
  }

  .game-entry__arrow {
    font-size: 13px;
  }

  .wallet-user-card__name {
    font-size: 18px;
  }

  .wallet-balance-strip__value {
    font-size: 24px;
  }

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

  .wallet-shortcuts {
    gap: 8px;
    padding-inline: 6px;
  }

  .wallet-shortcuts__item {
    font-size: 12px;
  }

  .wallet-shortcuts__icon {
    width: 38px;
    height: 38px;
  }

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

  .profile-overview {
    grid-template-columns: 1fr;
  }

  .wallet-modal-card__invite-item {
    flex-direction: column;
  }

  .wallet-record-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .wallet-record-item__side {
    text-align: left;
  }

  .wallet-promo-banner {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .wallet-promo-banner__visual {
    justify-items: start;
    grid-auto-flow: column;
    justify-content: space-between;
  }

  .wallet-promo-banner__visual img {
    inset: auto 0 0 auto;
    width: 92px;
    height: 92px;
  }

  .detail-topbar {
    padding-top: 12px;
  }

  .detail-list__item {
    flex-direction: column;
  }

  .detail-list__side {
    text-align: left;
  }

  .draw-card {
    padding: 18px;
  }

  .result-meta__value {
    font-size: 42px;
  }

  .number-box {
    width: 58px;
    height: 84px;
    font-size: 42px;
  }

  .number-box--sum {
    width: 82px;
  }

  .operator {
    font-size: 32px;
  }

  .result-tag {
    min-width: 54px;
    font-size: 24px;
  }
}

/* Frontend mobile app frame: keep all user pages in one stable phone layout. */
#webApp {
  width: min(100%, 430px);
  height: 100dvh;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: #eef1fb;
  box-shadow: 0 0 0 1px rgba(36, 48, 82, 0.08);
}

#webApp .mobile-shell {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0 0 calc(76px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #eef1fb;
}

#webApp .mobile-shell.mobile-shell--draw {
  width: 100%;
  height: 100%;
  max-height: 100%;
  padding: 0;
  overflow: hidden;
}

#webApp .bottom-nav {
  left: 50%;
  right: auto;
  width: min(100%, 430px);
  transform: translateX(-50%);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 22px rgba(47, 61, 101, 0.08);
  z-index: 80;
}

#webApp .bottom-nav__item {
  min-width: 0;
  border-radius: 12px;
  padding: 7px 4px 6px;
  font-size: 13px;
}

#webApp .bottom-nav__icon {
  font-size: 21px;
}

#webApp .status-text {
  display: none;
}

#webApp .panel,
#webApp .draw-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

#webApp .panel {
  min-height: 100%;
  padding: 0 12px 12px;
  background: #eef1fb;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 56px;
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) 62px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.96);
  color: #151f36;
  box-shadow: 0 1px 0 rgba(218, 224, 238, 0.8);
}

.app-topbar--plain {
  margin: 0 -12px 12px;
}

.app-topbar__title {
  text-align: center;
  font-size: 19px;
  line-height: 1.2;
}

.app-topbar__pill,
.app-topbar__icon {
  border: 0;
  min-height: 34px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.app-topbar__pill {
  background: #12c46c;
  color: #fff;
  font-size: 15px;
}

.app-topbar__icon {
  background: transparent;
  color: #111a2e;
  font-size: 13px;
}

.app-topbar__space {
  min-height: 34px;
}

#webApp .landing-page {
  min-height: 100%;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 0 12px 12px;
  background: #eef1fb;
}

#webApp .mobile-shell {
  padding: 0 0 96px;
  background: #eef1fb;
}

#webApp .landing-page .app-topbar {
  margin: 0 -12px;
}

#webApp .landing-hero {
  min-height: 210px;
  gap: 12px;
  justify-items: stretch;
  padding: 16px 16px 12px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(222, 28, 21, 0.92), rgba(204, 38, 24, 0.94)),
    linear-gradient(135deg, #fff1c2, #f8c44f);
  box-shadow: none;
  text-align: left;
}

#webApp .landing-hero--image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: none;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: #fff;
  overflow: hidden;
  box-shadow: none;
}

#webApp .landing-hero__badge {
  top: 12px;
  right: 12px;
  background: #12c46c;
  color: #fff;
}

#webApp .landing-copy {
  justify-items: start;
  max-width: 250px;
  gap: 6px;
}

#webApp .landing-copy__eyebrow {
  font-size: 12px;
}

#webApp .landing-copy__title {
  font-size: 36px;
}

#webApp .landing-copy__text {
  max-width: 230px;
  font-size: 13px;
  line-height: 1.45;
}

#webApp .landing-wheel {
  position: absolute;
  right: 8px;
  bottom: 28px;
  width: 156px;
  opacity: 0.96;
}

#webApp .landing-wheel__ring {
  animation: none;
}

#webApp .landing-wheel__chip {
  width: 32px;
  height: 32px;
  font-size: 16px;
}

#webApp .landing-wheel__core strong {
  font-size: 30px;
}

#webApp .landing-dots {
  align-self: end;
  justify-content: center;
}

#webApp .notice-strip {
  border: 0;
  border-radius: 0;
  padding: 10px 12px;
  background: #fff;
  color: #5b6478;
  box-shadow: none;
}

#webApp .notice-strip__label {
  background: transparent;
  color: #f33a2f;
}

#webApp .quick-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#webApp .quick-card {
  min-height: 72px;
  border: 0;
  border-radius: 8px;
  padding: 12px 8px;
  background: #fff;
  box-shadow: none;
}

#webApp .quick-card__icon {
  width: 34px;
  height: 34px;
  font-size: 15px;
}

#webApp .game-section {
  display: grid;
  gap: 10px;
}

#webApp .game-section__head {
  padding: 2px 2px 0;
}

#webApp .game-section__eyebrow {
  color: #8090ad;
}

#webApp .game-section__title {
  font-size: 20px;
  color: #1e2e50;
}

#webApp .game-entry {
  min-height: 92px;
  border: 0;
  border-radius: 8px;
  padding: 16px 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(50, 63, 100, 0.08);
}

#webApp .game-entry__label {
  font-size: 28px;
}

#webApp .panel--wallet,
#webApp .panel--profile {
  background: #eef1fb;
}

#webApp .wallet-shell,
#webApp .profile-shell {
  gap: 12px;
}

#webApp .wallet-stats-bar {
  border-radius: 0;
  box-shadow: none;
}

#webApp .wallet-stats-bar__item {
  padding: 12px 8px;
}

#webApp .wallet-promo-banner {
  min-height: 154px;
  grid-template-columns: minmax(0, 1fr) 86px;
  border-radius: 8px;
  padding: 16px 14px;
}

#webApp .wallet-promo-banner__title {
  font-size: 25px;
}

#webApp .wallet-promo-banner__text {
  font-size: 12px;
}

#webApp .wallet-promo-banner__coin {
  width: 72px;
  height: 72px;
  font-size: 26px;
}

#webApp .wallet-promo-banner--image {
  display: block;
  grid-template-columns: none;
  min-height: 0;
  aspect-ratio: 670 / 275;
  padding: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

#webApp .wallet-promo-banner__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#webApp .wallet-request-card,
#webApp .wallet-benefit-card,
#webApp .wallet-menu,
#webApp .wallet-shortcuts,
#webApp .profile-balance-card,
#webApp .profile-overview__item,
#webApp .support-item {
  border-radius: 8px;
  box-shadow: none;
}

#webApp .wallet-request-card {
  padding: 0;
}

#webApp .wallet-request-methods,
#webApp .wallet-request-form-sheet,
#webApp .wallet-request-field,
#webApp .wallet-request-proof-preview {
  padding-inline: 14px;
}

#webApp .wallet-request-submit {
  margin: 14px;
  width: calc(100% - 28px);
}

#webApp .wallet-request-history-link {
  min-height: 42px;
  border-radius: 8px;
  background: #fff;
}

#webApp .support-list {
  gap: 10px;
  margin-top: 0;
}

#webApp .support-item {
  display: grid;
  gap: 6px;
  padding: 16px;
}

#webApp .support-item strong {
  color: #22365d;
}

#webApp .profile-shell__top {
  gap: 10px;
}

#webApp .wallet-user-card {
  padding: 10px 4px 0;
}

#webApp .wallet-user-card__avatar {
  width: 52px;
  height: 52px;
}

#webApp .profile-balance-card {
  padding: 14px 16px;
}

#webApp .profile-balance-card strong {
  font-size: 24px;
}

#webApp .wallet-benefit-card {
  padding: 14px;
}

#webApp .wallet-shortcuts {
  padding: 12px 8px;
}

#webApp .profile-overview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#webApp .wallet-menu__item {
  padding: 15px 14px;
}

#webApp .wallet-menu__side {
  max-width: 128px;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Home v3 is isolated from the old landing-* carousel to stop image stretch bugs. */
#webApp .home-v3 {
  width: min(100%, 430px);
  min-height: 100%;
  margin: 0 auto;
  padding: 0 8px 92px;
  display: grid;
  align-content: start;
  gap: 9px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.22) 0 13%, transparent 14% 29%, rgba(255, 255, 255, 0.16) 30% 38%, transparent 39%),
    radial-gradient(circle at 82% 34%, rgba(255, 251, 183, 0.66), transparent 30%),
    linear-gradient(180deg, #ffe432 0%, #ffd71f 48%, #fff7c9 100%);
  color: #142341;
  overflow-x: hidden;
}

#webApp .home-v3__topbar {
  height: 58px;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
}

#webApp .home-v3__brand,
#webApp .home-v3__link {
  border: 0;
  border-radius: 12px;
  background: #11c673;
  color: #fff;
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(18, 164, 100, 0.22);
}

#webApp .home-v3__title {
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #101b35;
}

#webApp .home-v3__link {
  background: transparent;
  color: #101b35;
  box-shadow: none;
  cursor: pointer;
  font-size: 14px;
}

#webApp .home-v3__banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(159, 55, 18, 0.18);
}

#webApp .home-v3__banner--image {
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

#webApp .home-v3__preload {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

#webApp .home-v3__banner--fallback {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
  padding: 22px;
  text-align: left;
  background:
    radial-gradient(circle at 82% 48%, rgba(255, 232, 145, 0.9), rgba(255, 232, 145, 0) 30%),
    linear-gradient(135deg, #f33724, #b71412);
  color: #fff;
}

#webApp .home-v3__banner--fallback strong {
  font-size: 38px;
  line-height: 1;
}

#webApp .home-v3__banner--fallback em,
#webApp .home-v3__banner-kicker {
  font-style: normal;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.92;
}

#webApp .home-v3__notice {
  height: 42px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.86);
  overflow: hidden;
}

#webApp .home-v3__notice span {
  color: #ef332f;
  font-weight: 900;
}

#webApp .home-v3__notice div {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

#webApp .home-v3__notice strong {
  display: inline-block;
  min-width: 100%;
  color: #6a7287;
  font-size: 14px;
  font-weight: 600;
  animation: noticeMarquee 18s linear infinite;
}

#webApp .home-v3__quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#webApp .home-v3__quick button,
#webApp .home-v3__game-card {
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #18306d;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(57, 80, 142, 0.08);
}

#webApp .home-v3__quick button {
  min-height: 92px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
}

#webApp .home-v3__quick span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #4387ff, #2664df);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

#webApp .home-v3__quick strong {
  font-size: 14px;
}

#webApp .home-v3__account {
  min-height: 74px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px 8px;
  border-radius: 0;
  background:
    radial-gradient(circle at 24% 10%, rgba(255, 255, 255, 0.45), transparent 30%),
    linear-gradient(135deg, #ffe257 0%, #ffd526 44%, #ffe779 100%);
  color: #25385f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

#webApp .home-v3__avatar {
  width: 43px;
  height: 43px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(164, 143, 84, 0.35);
  color: #fff;
  font-size: 25px;
  font-weight: 700;
}

#webApp .home-v3__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#webApp .home-v3__account-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

#webApp .home-v3__account-main strong {
  max-width: 138px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  color: #4d4a2b;
}

#webApp .home-v3__account-main em {
  font-style: normal;
  color: #4a65b8;
  font-size: 19px;
  line-height: 1.1;
  font-weight: 900;
}

#webApp .home-v3__account-actions {
  display: grid;
  grid-template-columns: repeat(2, 45px);
  gap: 6px;
}

#webApp .home-v3__account-actions button {
  border: 0;
  background: transparent;
  color: #111827;
  display: grid;
  justify-items: center;
  gap: 4px;
  cursor: pointer;
}

#webApp .home-v3__account-actions span {
  width: 30px;
  height: 28px;
  border: 3px solid currentColor;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 17px;
  line-height: 1;
  font-weight: 900;
}

#webApp .home-v3__account-actions strong {
  font-size: 12px;
  font-weight: 800;
}

#webApp .home-v3__game-tabs {
  height: 56px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  padding: 5px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

#webApp .home-v3__game-tab {
  position: relative;
  border: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  color: rgba(58, 62, 78, 0.72);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

#webApp .home-v3__game-tab span {
  font-size: 16px;
  line-height: 1;
}

#webApp .home-v3__game-tab::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 22px;
  height: 4px;
  border-radius: 999px;
  background: transparent;
  transform: translateX(-50%);
}

#webApp .home-v3__game-tab--active {
  color: #d4a100;
}

#webApp .home-v3__game-tab--active::after {
  background: #f4bd05;
}

#webApp .home-v3__games {
  display: grid;
  gap: 10px;
}

#webApp .home-v3__section-title {
  display: grid;
  justify-items: center;
  gap: 3px;
  color: rgba(60, 66, 84, 0.7);
}

#webApp .home-v3__section-title span {
  color: rgba(60, 66, 84, 0.58);
  font-size: 12px;
}

#webApp .home-v3__section-title strong {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  width: 100%;
  font-size: 17px;
  line-height: 1.2;
  color: rgba(52, 58, 74, 0.62);
  font-weight: 900;
  text-align: center;
}

#webApp .home-v3__section-title strong::before,
#webApp .home-v3__section-title strong::after {
  content: "";
  height: 1px;
  background: rgba(255, 255, 255, 0.78);
}

#webApp .home-v3__game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

#webApp .home-v3__game-card {
  position: relative;
  min-height: 0;
  aspect-ratio: 1.64 / 1;
  border-radius: 11px;
  padding: 12px 11px 10px;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 7px;
  text-align: left;
  overflow: hidden;
  border: 1px solid rgba(32, 42, 74, 0.16);
  background:
    radial-gradient(circle at 86% 80%, rgba(0, 146, 101, 0.2), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 2px 0 rgba(31, 39, 66, 0.48), 0 7px 14px rgba(58, 70, 112, 0.12);
}

#webApp .home-v3__hot {
  position: absolute;
  right: 42px;
  bottom: 10px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #27325e;
  border: 3px solid #ff9238;
  font-size: 10px;
  font-weight: 900;
  z-index: 2;
}

#webApp .home-v3__game-card div {
  display: grid;
  gap: 4px;
  position: relative;
  z-index: 2;
}

#webApp .home-v3__game-card strong {
  font-size: 16px;
  line-height: 1.15;
  color: #30436c;
}

#webApp .home-v3__game-card em {
  font-style: normal;
  color: #4b5775;
  font-size: 12px;
}

#webApp .home-v3__enter {
  width: fit-content;
  min-width: 64px;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f21135;
  color: #fff;
  font-weight: 900;
  font-size: 11px;
  position: relative;
  z-index: 2;
}

#webApp .home-v3__game-orb {
  position: absolute;
  right: -20px;
  bottom: -30px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 34%, rgba(255, 255, 255, 0.96) 0 18%, transparent 19%),
    radial-gradient(circle at 55% 52%, rgba(255, 255, 255, 0.55) 0 23%, transparent 24%),
    linear-gradient(135deg, #00a46a, #1c78c7);
  opacity: 0.92;
}

#webApp .home-v3__empty-game {
  min-height: 92px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px dashed rgba(93, 96, 108, 0.28);
  color: rgba(56, 60, 78, 0.7);
  text-align: center;
}

#webApp .home-v3__empty-game strong {
  font-size: 16px;
  color: rgba(48, 54, 72, 0.78);
}

#webApp .home-v3__empty-game span {
  font-size: 12px;
}

#webApp .home-v3__game-card:nth-child(2n) .home-v3__game-orb {
  background:
    radial-gradient(circle at 36% 34%, rgba(255, 255, 255, 0.96) 0 18%, transparent 19%),
    radial-gradient(circle at 55% 52%, rgba(255, 255, 255, 0.55) 0 23%, transparent 24%),
    linear-gradient(135deg, #7aa3ff, #d6e5ff);
}

#webApp .home-v3__game-card:nth-child(3n) .home-v3__game-orb {
  background:
    radial-gradient(circle at 36% 34%, rgba(255, 255, 255, 0.96) 0 18%, transparent 19%),
    radial-gradient(circle at 55% 52%, rgba(255, 255, 255, 0.55) 0 23%, transparent 24%),
    linear-gradient(135deg, #d51f30, #ffffff 62%, #d51f30);
}

/* Auth mobile refresh: keep the login screen focused and remove extra navigation noise. */
body.auth-page-body--light {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: start center;
  background: linear-gradient(180deg, #f1f5fb 0%, #eaf0fa 100%);
}

body.auth-page-body--light #authApp {
  width: min(100%, 430px);
  min-height: 100vh;
  display: grid;
  place-items: start center;
}

body.auth-page-body--light .auth-screen--mobile {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 24px 26px 24px;
  display: grid;
  align-content: start;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
}

body.auth-page-body--light .auth-screen__close {
  width: 30px;
  height: 30px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #1c2536;
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}

body.auth-page-body--light .auth-login-card {
  margin-top: clamp(58px, 16vh, 120px);
  padding: 0;
  display: grid;
  gap: 22px;
}

body.auth-page-body--light .auth-line-field {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0 0 15px;
  border-bottom: 1px solid #ebedf4;
}

body.auth-page-body--light .auth-line-field__label {
  color: #172033;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
}

body.auth-page-body--light .auth-line-field__control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

body.auth-page-body--light .auth-line-field__control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 6px 0;
  background: transparent;
  color: #182033;
  font-size: 16px;
  line-height: 1.4;
}

body.auth-page-body--light .auth-line-field__control input::placeholder {
  color: #7a8190;
}

body.auth-page-body--light .auth-code-btn {
  min-width: 100px;
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  padding: 0 12px;
  background: linear-gradient(180deg, #439cf9, #2f7ee8);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(47, 126, 232, 0.18);
}

body.auth-page-body--light .auth-code-btn:disabled {
  opacity: 0.68;
  cursor: default;
}

body.auth-page-body--light .auth-submit-btn {
  min-height: 52px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffc313 0%, #f0ad00 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(184, 126, 0, 0.16), 0 8px 16px rgba(240, 173, 0, 0.16);
}

body.auth-page-body--light .auth-submit-btn:disabled {
  opacity: 0.78;
  cursor: wait;
}

body.auth-page-body--light .auth-feedback--inline {
  min-height: 18px;
  margin: -6px 0 0;
  color: #6d7586;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

body.auth-page-body--light .auth-feedback--error {
  color: #e13d45;
}

@media (min-width: 769px) {
  body.auth-page-body--light {
    padding: 32px 0;
  }

  body.auth-page-body--light .auth-screen--mobile {
    min-height: min(680px, calc(100vh - 64px));
    border-radius: 24px 24px 0 0;
    box-shadow: 0 20px 48px rgba(36, 57, 98, 0.08);
  }
}

@media (max-width: 360px) {
  body.auth-page-body--light .auth-screen--mobile {
    padding-inline: 20px;
  }

  body.auth-page-body--light .auth-line-field__control {
    grid-template-columns: minmax(0, 1fr) auto;
  }

body.auth-page-body--light .auth-code-btn {
    width: auto;
    min-width: 92px;
    padding-inline: 10px;
  }
}

/* Nuxt UI inspired frontend refresh. */
:root {
  --ui-primary: #00dc82;
  --ui-primary-600: #00a76f;
  --ui-primary-soft: rgba(0, 220, 130, 0.12);
  --ui-info: #0284c7;
  --ui-danger: #f43f5e;
  --ui-warning: #f59e0b;
  --ui-bg: #f8fafc;
  --ui-bg-muted: #f1f5f9;
  --ui-bg-elevated: #ffffff;
  --ui-text: #0f172a;
  --ui-text-muted: #64748b;
  --ui-text-toned: #334155;
  --ui-border: #e2e8f0;
  --ui-border-strong: #cbd5e1;
  --ui-ring: rgba(0, 220, 130, 0.28);
  --ui-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --ui-shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --ui-shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.16);
  --ui-radius-sm: 10px;
  --ui-radius-md: 14px;
  --ui-radius-lg: 20px;
  --ui-radius-xl: 26px;
}

body {
  background:
    radial-gradient(circle at 50% -12%, rgba(0, 220, 130, 0.18), transparent 34%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  color: var(--ui-text);
  font-family: "Avenir Next", "Nunito Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

#webApp {
  background: var(--ui-bg);
  color: var(--ui-text);
  box-shadow: 0 0 0 1px var(--ui-border), var(--ui-shadow-lg);
}

#webApp .mobile-shell,
#webApp .panel,
#webApp .panel--wallet,
#webApp .panel--profile,
#webApp .landing-page {
  background: var(--ui-bg);
}

#webApp button,
#webApp input {
  font-family: inherit;
}

#webApp button {
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

#webApp button:active {
  transform: translateY(1px) scale(0.99);
}

#webApp button:focus-visible,
#webApp input:focus-visible {
  outline: 3px solid var(--ui-ring);
  outline-offset: 2px;
}

#webApp .app-topbar {
  min-height: 54px;
  background: rgba(248, 250, 252, 0.9);
  color: var(--ui-text);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

#webApp .app-topbar__title,
#webApp .home-v3__title {
  color: var(--ui-text);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

#webApp .app-topbar__icon,
#webApp .app-topbar__pill {
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-bg-elevated);
  color: var(--ui-text-toned);
  box-shadow: var(--ui-shadow-sm);
}

#webApp .home-v3 {
  gap: 12px;
  padding: 0 12px 98px;
  background:
    radial-gradient(circle at 82% 2%, rgba(0, 220, 130, 0.18), transparent 28%),
    radial-gradient(circle at 12% 18%, rgba(2, 132, 199, 0.12), transparent 28%),
    var(--ui-bg);
  color: var(--ui-text);
}

#webApp .home-v3__topbar {
  height: 62px;
  grid-template-columns: 98px minmax(0, 1fr) 62px;
  padding-inline: 0;
}

#webApp .home-v3__brand {
  min-height: 38px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  box-shadow: var(--ui-shadow-md);
  font-size: 13px;
  letter-spacing: -0.01em;
}

#webApp .home-v3__link {
  min-height: 38px;
  border: 1px solid var(--ui-border);
  border-radius: 999px;
  background: var(--ui-bg-elevated);
  color: var(--ui-text-toned);
  box-shadow: var(--ui-shadow-sm);
}

#webApp .home-v3__banner {
  border-radius: var(--ui-radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--ui-shadow-md);
}

#webApp .home-v3__banner--image {
  background-color: var(--ui-bg-elevated);
  background-size: cover;
}

#webApp .home-v3__banner--fallback {
  padding: 22px;
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.46), transparent 28%),
    radial-gradient(circle at 88% 78%, rgba(0, 220, 130, 0.55), transparent 32%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 58%, #064e3b 100%);
}

#webApp .home-v3__banner--fallback strong {
  font-size: 34px;
  letter-spacing: -0.06em;
}

#webApp .home-v3__notice,
#webApp .home-v3__account,
#webApp .home-v3__game-tabs,
#webApp .home-v3__game-card,
#webApp .wallet-request-card,
#webApp .wallet-stats-bar,
#webApp .wallet-promo-banner,
#webApp .wallet-request-history-link,
#webApp .wallet-benefit-card,
#webApp .wallet-shortcuts,
#webApp .wallet-menu,
#webApp .profile-balance-card,
#webApp .profile-overview__item,
#webApp .support-item {
  border: 1px solid var(--ui-border);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--ui-shadow-sm);
}

#webApp .home-v3__notice {
  height: 40px;
  border-radius: var(--ui-radius-md);
  grid-template-columns: 54px minmax(0, 1fr);
}

#webApp .home-v3__notice span {
  color: var(--ui-primary-600);
}

#webApp .home-v3__notice strong {
  color: var(--ui-text-muted);
  font-weight: 650;
}

#webApp .home-v3__account {
  min-height: 82px;
  border-radius: var(--ui-radius-lg);
  background:
    radial-gradient(circle at 92% 12%, rgba(0, 220, 130, 0.16), transparent 34%),
    var(--ui-bg-elevated);
}

#webApp .home-v3__avatar,
#webApp .wallet-user-card__avatar,
#webApp .draw-page__user-avatar {
  border: 1px solid var(--ui-border);
  background:
    linear-gradient(135deg, rgba(0, 220, 130, 0.18), rgba(2, 132, 199, 0.12)),
    var(--ui-bg-elevated);
  color: var(--ui-primary-600);
}

#webApp .home-v3__account-main strong {
  color: var(--ui-text);
  font-weight: 800;
}

#webApp .home-v3__account-main em {
  color: var(--ui-primary-600);
  font-size: 20px;
}

#webApp .home-v3__account-actions {
  grid-template-columns: repeat(2, 48px);
}

#webApp .home-v3__account-actions button {
  color: var(--ui-text-toned);
}

#webApp .home-v3__account-actions span {
  width: 34px;
  height: 32px;
  border: 0;
  border-radius: 12px;
  background: var(--ui-primary-soft);
  color: var(--ui-primary-600);
}

#webApp .home-v3__game-tabs {
  height: 50px;
  padding: 4px;
  border-radius: 999px;
  background: var(--ui-bg-muted);
}

#webApp .home-v3__game-tab {
  border-radius: 999px;
  color: var(--ui-text-muted);
}

#webApp .home-v3__game-tab--active {
  background: var(--ui-bg-elevated);
  color: var(--ui-text);
  box-shadow: var(--ui-shadow-sm);
}

#webApp .home-v3__game-tab::after {
  display: none;
}

#webApp .home-v3__section-title span {
  color: var(--ui-text-muted);
}

#webApp .home-v3__section-title strong {
  color: var(--ui-text-toned);
  font-size: 16px;
}

#webApp .home-v3__section-title strong::before,
#webApp .home-v3__section-title strong::after {
  background: var(--ui-border);
}

#webApp .home-v3__game-grid {
  gap: 10px;
}

#webApp .home-v3__game-card {
  border-radius: var(--ui-radius-lg);
  border-color: var(--ui-border);
  background:
    radial-gradient(circle at 92% 78%, rgba(0, 220, 130, 0.16), transparent 34%),
    linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  box-shadow: var(--ui-shadow-md);
}

#webApp .home-v3__game-card strong {
  color: var(--ui-text);
  font-size: 15px;
  letter-spacing: -0.02em;
}

#webApp .home-v3__game-card em {
  color: var(--ui-text-muted);
}

#webApp .home-v3__hot {
  right: 12px;
  top: 12px;
  bottom: auto;
  border: 0;
  background: var(--ui-primary-soft);
  color: var(--ui-primary-600);
}

#webApp .home-v3__enter {
  background: #0f172a;
  color: #fff;
}

#webApp .home-v3__game-orb {
  opacity: 0.72;
  background:
    radial-gradient(circle at 38% 32%, rgba(255, 255, 255, 0.98) 0 18%, transparent 19%),
    linear-gradient(135deg, var(--ui-primary), #67e8f9);
}

#webApp .bottom-nav {
  width: min(calc(100% - 18px), 412px);
  bottom: 8px;
  padding: 6px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--ui-shadow-lg);
  backdrop-filter: blur(18px);
}

#webApp .bottom-nav__item {
  border-radius: 16px;
  color: var(--ui-text-muted);
  font-weight: 750;
}

#webApp .bottom-nav__item--light.bottom-nav__item--active {
  background: #0f172a;
  color: #fff;
  box-shadow: var(--ui-shadow-md);
}

#webApp .bottom-nav__icon {
  color: currentColor;
  transform: scale(0.92);
}

#webApp .wallet-shell,
#webApp .profile-shell {
  gap: 14px;
}

#webApp .wallet-stats-bar {
  gap: 8px;
  padding: 8px;
  border-radius: var(--ui-radius-lg);
  background: var(--ui-bg-elevated);
}

#webApp .wallet-stats-bar__item {
  border-radius: var(--ui-radius-md);
  background: var(--ui-bg-muted);
}

#webApp .wallet-stats-bar__item span,
#webApp .profile-overview__item span,
#webApp .support-item span {
  color: var(--ui-text-muted);
}

#webApp .wallet-stats-bar__item strong,
#webApp .profile-balance-card strong,
#webApp .profile-overview__item strong {
  color: var(--ui-text);
}

#webApp .wallet-promo-banner {
  border-radius: var(--ui-radius-lg);
  background:
    radial-gradient(circle at 90% 14%, rgba(0, 220, 130, 0.22), transparent 30%),
    linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
}

#webApp .wallet-promo-banner--image {
  border-radius: var(--ui-radius-lg);
  overflow: hidden;
}

#webApp .wallet-request-card {
  overflow: hidden;
  border-radius: var(--ui-radius-lg);
}

#webApp .wallet-request-switch {
  padding: 6px;
  gap: 6px;
  border-bottom: 1px solid var(--ui-border);
  background: var(--ui-bg-muted);
}

#webApp .wallet-request-switch__tab {
  border: 0;
  border-radius: var(--ui-radius-md);
  background: transparent;
  color: var(--ui-text-muted);
  font-size: 15px;
  font-weight: 850;
}

#webApp .wallet-request-switch__tab--active,
#webApp .wallet-shell--request .wallet-request-switch__tab--active {
  background: var(--ui-bg-elevated);
  color: var(--ui-text);
  box-shadow: var(--ui-shadow-sm);
}

#webApp .wallet-request-field,
#webApp .wallet-request-line__label,
#webApp .wallet-request-methods__title {
  color: var(--ui-text-toned);
}

#webApp .wallet-request-field input,
#webApp .wallet-request-line input {
  border-bottom-color: var(--ui-border);
  color: var(--ui-text);
}

#webApp .wallet-request-method {
  border-color: var(--ui-border);
  border-radius: var(--ui-radius-md);
  background: var(--ui-bg-elevated);
  color: var(--ui-text-toned);
}

#webApp .wallet-request-method--active {
  border-color: var(--ui-primary);
  color: var(--ui-primary-600);
  background: var(--ui-primary-soft);
  box-shadow: 0 0 0 3px var(--ui-ring);
}

#webApp .wallet-request-upload__trigger,
#webApp .wallet-request-upload__trigger--large {
  border-color: var(--ui-border-strong);
  border-radius: var(--ui-radius-md);
  background: var(--ui-bg-muted);
  color: var(--ui-primary-600);
}

#webApp .wallet-request-feedback {
  border: 1px solid rgba(0, 167, 111, 0.22);
  background: var(--ui-primary-soft);
  color: var(--ui-primary-600);
}

#webApp .wallet-request-feedback--error {
  border-color: rgba(244, 63, 94, 0.24);
  background: rgba(244, 63, 94, 0.08);
  color: var(--ui-danger);
}

#webApp .wallet-request-submit,
#webApp .quick-bet-footer__primary,
#webApp .draw-page__composer button:not(.draw-page__composer-more):not(.draw-page__composer-input) {
  border-radius: var(--ui-radius-md);
  background: linear-gradient(180deg, var(--ui-primary), var(--ui-primary-600));
  color: #052e20;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0, 167, 111, 0.22);
}

#webApp .wallet-request-history-link,
#webApp .profile-avatar-upload span {
  color: var(--ui-primary-600);
  background: var(--ui-primary-soft);
  box-shadow: none;
}

#webApp .support-list {
  padding-top: 2px;
}

#webApp .support-item {
  border-radius: var(--ui-radius-lg);
}

#webApp .support-item strong {
  color: var(--ui-text);
}

#webApp .wallet-user-card {
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  padding: 18px 12px;
  background: var(--ui-bg-elevated);
  box-shadow: var(--ui-shadow-sm);
}

#webApp .wallet-user-card__name {
  color: var(--ui-text);
  font-weight: 850;
}

#webApp .profile-balance-card,
#webApp .wallet-benefit-card,
#webApp .wallet-shortcuts,
#webApp .wallet-menu,
#webApp .profile-overview__item {
  border-radius: var(--ui-radius-lg);
}

#webApp .wallet-shortcuts__icon,
#webApp .wallet-menu__icon,
#webApp .wallet-benefit-card__icon {
  background: var(--ui-primary-soft);
  color: var(--ui-primary-600);
}

#webApp .wallet-menu__item {
  border-bottom-color: var(--ui-border);
}

#webApp .wallet-menu__main,
#webApp .wallet-menu__side {
  color: var(--ui-text-toned);
}

.room-list-modal__backdrop,
.home-announcement-modal__backdrop,
.image-preview-modal__backdrop {
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(8px);
}

.room-list-panel {
  border: 1px solid rgba(226, 232, 240, 0.96);
  background: var(--ui-bg);
  box-shadow: var(--ui-shadow-lg);
}

.room-list-panel__head {
  min-height: 64px;
  color: var(--ui-text);
  font-size: 17px;
  border-bottom: 1px solid var(--ui-border);
}

.room-list-panel__head button {
  background: var(--ui-bg-elevated);
  color: var(--ui-text-muted);
  border: 1px solid var(--ui-border);
}

.room-card {
  border-color: var(--ui-border);
  border-radius: var(--ui-radius-lg);
  background:
    radial-gradient(circle at 88% 78%, rgba(0, 220, 130, 0.22), transparent 34%),
    linear-gradient(180deg, #fff, #f8fafc);
  box-shadow: var(--ui-shadow-md);
}

.room-card::after {
  background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.58) 42%, rgba(248,250,252,0.92));
}

.room-card__fallback {
  color: rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(circle at 16% 80%, rgba(0, 220, 130, 0.14), transparent 34%),
    linear-gradient(135deg, #fff, #f8fafc);
}

.room-card__content em {
  color: var(--ui-primary-600);
}

.room-card__content strong {
  color: var(--ui-text);
}

.room-card i {
  background: #0f172a;
  color: #fff;
  box-shadow: var(--ui-shadow-md);
}

#webApp .mobile-shell--draw .draw-page {
  background:
    radial-gradient(circle at 85% 0%, rgba(0, 220, 130, 0.16), transparent 28%),
    var(--ui-bg);
}

#webApp .draw-page__header,
#webApp .draw-page__board,
#webApp .draw-page__chat,
#webApp .draw-page__tools,
#webApp .draw-page__composer {
  border-color: var(--ui-border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--ui-shadow-sm);
}

#webApp .draw-page__board {
  border-radius: var(--ui-radius-xl);
}

#webApp .draw-page__result-panel {
  border-color: var(--ui-border);
  background: var(--ui-bg-muted);
}

#webApp .draw-page .number-box {
  border-color: var(--ui-border);
  background: var(--ui-bg-elevated);
  color: var(--ui-text);
}

#webApp .draw-page__tools button,
#webApp .draw-page__user-actions button,
#webApp .draw-page__composer-input {
  border: 1px solid var(--ui-border);
  background: var(--ui-bg-elevated);
  color: var(--ui-text-toned);
}

#webApp .draw-message__bubble {
  border: 1px solid var(--ui-border);
  background: var(--ui-bg-elevated);
  color: var(--ui-text-toned);
}

#webApp .draw-message__bubble--system {
  border-color: rgba(0, 167, 111, 0.22);
  background: var(--ui-primary-soft);
}

body.auth-page-body--light {
  background:
    radial-gradient(circle at 50% -8%, rgba(0, 220, 130, 0.16), transparent 32%),
    linear-gradient(180deg, var(--ui-bg), var(--ui-bg-muted));
}

body.auth-page-body--light .auth-screen--mobile {
  background: var(--ui-bg-elevated);
}

body.auth-page-body--light .auth-code-btn,
body.auth-page-body--light .auth-submit-btn {
  background: linear-gradient(180deg, var(--ui-primary), var(--ui-primary-600));
  color: #052e20;
  box-shadow: 0 10px 24px rgba(0, 167, 111, 0.18);
}

/* Draw page readability pass: Nuxt UI style, high contrast, no pale-on-white text. */
#webApp .mobile-shell.mobile-shell--draw {
  background: var(--ui-bg);
}

#webApp .mobile-shell--draw .draw-page {
  background:
    radial-gradient(circle at 88% 2%, rgba(0, 220, 130, 0.14), transparent 28%),
    linear-gradient(180deg, var(--ui-bg), var(--ui-bg-muted));
  color: var(--ui-text);
}

#webApp .draw-page__header {
  flex-basis: 58px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--ui-border);
  color: var(--ui-text);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

#webApp .draw-page__back {
  color: var(--ui-text-toned);
  font-size: 30px;
}

#webApp .draw-page__title {
  color: var(--ui-text);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

#webApp .draw-page__board {
  padding: 10px 12px 8px;
  display: grid;
  gap: 8px;
  background: transparent;
  overflow: visible;
}

#webApp .draw-page__board::before,
#webApp .draw-page__board::after {
  display: none;
}

#webApp .draw-page__board-top {
  position: relative;
  z-index: 1;
  min-height: 66px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ui-text);
  box-shadow: var(--ui-shadow-sm);
}

#webApp .draw-page__expect {
  color: var(--ui-text);
  font-size: 15px;
  font-weight: 900;
}

#webApp .draw-page__timer {
  gap: 7px;
}

#webApp .draw-page__timer-info {
  color: var(--ui-text-muted);
  font-size: 11px;
  font-weight: 750;
}

#webApp .draw-page__timer-info strong {
  color: var(--ui-text);
  font-size: 15px;
  font-weight: 900;
}

#webApp .draw-page__timer-slots {
  gap: 5px;
}

#webApp .draw-page__timer-slot {
  min-width: 30px;
  height: 30px;
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  background: var(--ui-bg-elevated);
  color: var(--ui-primary-600);
  font-size: 14px;
  font-weight: 900;
  box-shadow: var(--ui-shadow-sm);
}

#webApp .draw-page__result-panel {
  margin: 0;
  grid-template-columns: minmax(82px, 0.74fr) minmax(0, 1.26fr);
  padding: 12px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--ui-shadow-sm);
}

#webApp .draw-page__result-meta {
  color: var(--ui-text);
}

#webApp .draw-page__result-meta strong {
  color: var(--ui-text);
  font-size: 14px;
  font-weight: 900;
}

#webApp .draw-page__result-meta span {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  font-size: 12px;
  font-weight: 900;
}

#webApp .draw-page__result-row {
  justify-content: flex-end;
  gap: 5px;
}

#webApp .draw-page .number-box {
  width: 36px;
  height: 44px;
  border: 1px solid var(--ui-border-strong);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  color: var(--ui-text);
  font-size: 24px;
  font-weight: 950;
  box-shadow: inset 0 -2px 0 rgba(15, 23, 42, 0.04), var(--ui-shadow-sm);
}

#webApp .draw-page .number-box--sum {
  width: 42px;
}

#webApp .draw-page .operator {
  color: var(--ui-text-muted);
  font-size: 20px;
  font-weight: 900;
}

#webApp .draw-page .digit-reel,
#webApp .draw-page .digit-reel__digit {
  height: 40px;
}

#webApp .draw-page .digit-reel__digit {
  color: var(--ui-text);
  font-size: 23px;
}

#webApp .draw-page__user-strip {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  background: #0f172a;
  color: #fff;
  box-shadow: var(--ui-shadow-md);
}

#webApp .draw-page__user-card {
  gap: 9px;
}

#webApp .draw-page__user-avatar {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(0, 220, 130, 0.22), rgba(14, 165, 233, 0.18));
  color: var(--ui-primary);
  box-shadow: none;
}

#webApp .draw-page__user-meta {
  color: #fff;
}

#webApp .draw-page__user-meta strong {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

#webApp .draw-page__user-meta span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
}

#webApp .draw-page__user-actions {
  gap: 6px;
}

#webApp .draw-page__user-actions button {
  min-width: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: none;
}

#webApp .draw-page__chat {
  margin: 0 12px;
  padding: 10px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--ui-shadow-sm);
}

#webApp .draw-message__head,
#webApp .draw-message__system-head {
  color: var(--ui-text-muted);
  font-size: 12px;
  font-weight: 750;
}

#webApp .draw-message__bubble {
  max-width: 288px;
  border: 1px solid var(--ui-border);
  border-radius: 14px;
  background: var(--ui-bg-elevated);
  color: var(--ui-text-toned);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
  box-shadow: var(--ui-shadow-sm);
}

#webApp .draw-message__bubble--system {
  border-color: rgba(0, 167, 111, 0.22);
  background: rgba(0, 220, 130, 0.1);
  color: #064e3b;
}

#webApp .draw-message__avatar,
#webApp .draw-message__system-avatar {
  box-shadow: var(--ui-shadow-sm);
}

#webApp .draw-page__tools {
  padding: 8px 12px;
  background: transparent;
}

#webApp .draw-page__tools button {
  height: 38px;
  border: 1px solid var(--ui-border);
  border-radius: 999px;
  background: var(--ui-bg-elevated);
  color: var(--ui-text-toned);
  font-size: 14px;
  font-weight: 850;
  box-shadow: var(--ui-shadow-sm);
}

#webApp .draw-page__composer {
  grid-template-columns: 66px minmax(0, 1fr) 78px 42px;
  gap: 8px;
  padding: 0 12px 10px;
  background: transparent;
}

#webApp .draw-page__composer-label,
#webApp .draw-page__composer-input,
#webApp .draw-page__composer button {
  height: 44px;
  border-radius: 12px;
}

#webApp .draw-page__composer-label {
  background: var(--ui-primary-soft);
  color: var(--ui-primary-600);
  font-size: 13px;
  font-weight: 900;
}

#webApp .draw-page__composer-input {
  border: 1px solid var(--ui-border);
  background: var(--ui-bg-elevated);
  color: var(--ui-text);
  font-weight: 850;
  box-shadow: var(--ui-shadow-sm);
}

#webApp .draw-page__composer-input:disabled {
  border-color: var(--ui-border);
  background: var(--ui-bg-muted);
  color: var(--ui-text-muted);
}

#webApp .draw-page__composer button:not(.draw-page__composer-more):not(.draw-page__composer-input) {
  border: 1px solid rgba(0, 167, 111, 0.18);
  background: linear-gradient(180deg, var(--ui-primary), var(--ui-primary-600));
  color: #052e20;
  font-size: 14px;
}

#webApp .draw-page__composer button:disabled {
  border-color: var(--ui-border) !important;
  background: #cbd5e1 !important;
  color: #475569 !important;
}

#webApp .draw-page__composer-more {
  border: 0;
  background: var(--ui-danger);
  color: #fff;
}

/* Macau28 room compact pass: keep chat as the primary visual area. */
#webApp .draw-card.draw-page .draw-page__header {
  flex-basis: 44px;
  min-height: 44px;
  padding: 0 10px;
}

#webApp .draw-card.draw-page .draw-page__back,
#webApp .draw-card.draw-page .draw-page__header-space {
  width: 36px;
  height: 36px;
}

#webApp .draw-card.draw-page .draw-page__title {
  font-size: 16px;
  font-weight: 900;
}

#webApp .draw-card.draw-page .draw-page__board {
  flex: 0 0 auto;
  padding: 6px 10px 5px;
  gap: 5px;
}

#webApp .draw-card.draw-page .draw-page__board-top {
  min-height: 46px;
  padding: 8px 10px;
  border-radius: 18px;
}

#webApp .draw-card.draw-page .draw-page__expect {
  font-size: 13px;
  line-height: 1.2;
}

#webApp .draw-card.draw-page .draw-page__timer {
  gap: 4px;
}

#webApp .draw-card.draw-page .draw-page__timer-info {
  font-size: 10px;
  line-height: 1.1;
}

#webApp .draw-card.draw-page .draw-page__timer-info strong {
  font-size: 13px;
}

#webApp .draw-card.draw-page .draw-page__timer-slot {
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  border-radius: 9px;
  font-size: 12px;
}

#webApp .draw-card.draw-page .draw-page__result-panel {
  grid-template-columns: minmax(76px, 0.72fr) minmax(0, 1.28fr);
  padding: 8px 10px;
  border-radius: 18px;
}

#webApp .draw-card.draw-page .draw-page__result-meta {
  gap: 3px;
}

#webApp .draw-card.draw-page .draw-page__result-meta strong {
  font-size: 13px;
}

#webApp .draw-card.draw-page .draw-page__result-meta span {
  padding: 3px 7px;
  font-size: 11px;
}

#webApp .draw-card.draw-page .draw-page__result-row {
  gap: 4px;
}

#webApp .draw-card.draw-page .number-box {
  width: 30px;
  height: 36px;
  border-radius: 11px;
  font-size: 20px;
}

#webApp .draw-card.draw-page .number-box--sum {
  width: 36px;
}

#webApp .draw-card.draw-page .operator {
  font-size: 16px;
}

#webApp .draw-card.draw-page .digit-reel,
#webApp .draw-card.draw-page .digit-reel__digit {
  height: 34px;
}

#webApp .draw-card.draw-page .digit-reel__digit {
  font-size: 20px;
}

#webApp .draw-card.draw-page .draw-page__user-strip {
  padding: 7px 9px;
  border-radius: 18px;
}

#webApp .draw-card.draw-page .draw-page__user-card {
  gap: 7px;
}

#webApp .draw-card.draw-page .draw-page__user-avatar {
  width: 34px;
  height: 34px;
}

#webApp .draw-card.draw-page .draw-page__user-meta strong {
  font-size: 13px;
}

#webApp .draw-card.draw-page .draw-page__user-meta span {
  font-size: 11px;
}

#webApp .draw-card.draw-page .draw-page__user-actions {
  gap: 5px;
}

#webApp .draw-card.draw-page .draw-page__user-actions button {
  min-width: 36px;
  padding: 6px 7px;
  border-radius: 11px;
  font-size: 12px;
}

#webApp .draw-card.draw-page .draw-page__chat {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 10px;
  padding: 8px 8px 6px;
  gap: 8px;
  overscroll-behavior: contain;
}

#webApp .draw-card.draw-page .draw-message__avatar,
#webApp .draw-card.draw-page .draw-message__system-avatar {
  width: 34px;
  height: 34px;
}

#webApp .draw-card.draw-page .draw-message__bubble {
  max-width: min(282px, calc(100vw - 118px));
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
}

#webApp .draw-card.draw-page .draw-page__tools {
  flex: 0 0 auto;
  padding: 6px 10px;
}

#webApp .draw-card.draw-page .draw-page__tools button {
  height: 34px;
  font-size: 13px;
}

#webApp .draw-card.draw-page .draw-page__composer {
  flex: 0 0 auto;
  grid-template-columns: 62px minmax(0, 1fr) 70px 38px;
  gap: 6px;
  padding: 0 10px 8px;
}

#webApp .draw-card.draw-page .draw-page__composer-label,
#webApp .draw-card.draw-page .draw-page__composer-input,
#webApp .draw-card.draw-page .draw-page__composer button {
  height: 40px;
  border-radius: 12px;
  font-size: 13px;
}

/* Quick bet should rise from the bottom like a mobile room sheet, never overflow. */
#webApp .wallet-modal-shell--quick-bet {
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

#webApp .wallet-modal-shell--quick-bet .wallet-modal-shell__backdrop {
  background: rgba(15, 23, 42, 0.46);
}

#webApp .wallet-modal-shell--quick-bet .wallet-modal-card--quick-bet {
  width: min(100vw, 430px);
  height: min(68dvh, 540px);
  min-height: 430px;
  max-height: calc(100dvh - 96px);
  margin: 0 auto;
  border-radius: 22px 22px 0 0;
  padding: 20px 14px 0;
  position: relative;
  transform-origin: bottom center;
  animation: quickBetSheetIn 0.2s ease-out both;
}

#webApp .wallet-modal-shell--quick-bet .wallet-modal-card--quick-bet::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 46px;
  height: 5px;
  border-radius: 999px;
  background: rgba(83, 100, 134, 0.28);
  transform: translateX(-50%);
}

#webApp .wallet-modal-shell--quick-bet .wallet-modal-card__top h3 {
  font-size: 20px;
  line-height: 1.1;
}

#webApp .wallet-modal-shell--quick-bet .wallet-modal-card__close {
  width: 34px;
  height: 34px;
  line-height: 1;
}

#webApp .wallet-modal-shell--quick-bet .quick-bet-tabs {
  gap: 7px;
  margin-top: 12px;
}

#webApp .wallet-modal-shell--quick-bet .wallet-modal-card--mark-six .quick-bet-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#webApp .wallet-modal-shell--quick-bet .quick-bet-tabs__item {
  height: 34px;
  border-radius: 12px;
  font-size: 13px;
}

#webApp .wallet-modal-shell--quick-bet .quick-bet-grid {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  margin: 10px -2px 0;
  padding: 0 8px 10px 2px;
  gap: 7px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: auto;
  scrollbar-color: rgba(97, 115, 149, 0.7) rgba(234, 239, 248, 0.9);
}

#webApp .wallet-modal-shell--quick-bet .quick-bet-option {
  min-height: 48px;
  border-radius: 13px;
  padding: 6px 6px;
}

#webApp .wallet-modal-shell--quick-bet .quick-bet-option span {
  font-size: 15px;
}

#webApp .wallet-modal-shell--quick-bet .quick-bet-option small {
  font-size: 13px;
}

#webApp .wallet-modal-shell--quick-bet .quick-bet-grid::-webkit-scrollbar,
#webApp .wallet-modal-shell--quick-bet .wallet-modal-card__section::-webkit-scrollbar {
  width: 8px;
}

#webApp .wallet-modal-shell--quick-bet .quick-bet-grid::-webkit-scrollbar-track,
#webApp .wallet-modal-shell--quick-bet .wallet-modal-card__section::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(234, 239, 248, 0.9);
}

#webApp .wallet-modal-shell--quick-bet .quick-bet-grid::-webkit-scrollbar-thumb,
#webApp .wallet-modal-shell--quick-bet .wallet-modal-card__section::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(97, 115, 149, 0.7);
}

#webApp .wallet-modal-shell--quick-bet .quick-bet-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  gap: 7px;
  padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -14px 28px rgba(255, 255, 255, 0.92);
}

#webApp .wallet-modal-shell--quick-bet .quick-bet-footer__summary {
  font-size: 14px;
}

#webApp .wallet-modal-shell--quick-bet .quick-bet-footer__ghost,
#webApp .wallet-modal-shell--quick-bet .quick-bet-footer__primary {
  height: 38px;
  border-radius: 13px;
  font-size: 14px;
}

#webApp .wallet-modal-shell--quick-bet .wallet-modal-card__section {
  margin-top: 10px;
  scrollbar-width: auto;
  scrollbar-color: rgba(97, 115, 149, 0.7) rgba(234, 239, 248, 0.9);
}

@keyframes quickBetSheetIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-height: 680px) {
  #webApp .wallet-modal-shell--quick-bet .wallet-modal-card--quick-bet {
    height: min(72dvh, 470px);
    min-height: 390px;
    max-height: calc(100dvh - 76px);
  }

  #webApp .wallet-modal-shell--quick-bet .quick-bet-option {
    min-height: 44px;
  }
}

@media (max-width: 380px) {
  #webApp .draw-page__result-panel {
    grid-template-columns: 1fr;
  }

  #webApp .draw-page__result-row {
    justify-content: flex-start;
  }

  #webApp .draw-page .number-box {
    width: 34px;
    height: 42px;
  }

  #webApp .draw-page__composer {
    grid-template-columns: 58px minmax(0, 1fr) 66px 38px;
  }
}

/* Mark Six mobile page */
#webApp .mark-six-page {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  background: #eef3ff;
  color: #1f2a44;
  overflow: hidden;
}

#webApp .mark-six-page__header {
  height: 48px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 52px;
  align-items: center;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

#webApp .mark-six-page__header strong {
  text-align: center;
  font-size: 16px;
  font-weight: 950;
}

#webApp .mark-six-page__back,
#webApp .mark-six-page__refresh {
  border: 0;
  background: transparent;
  color: #1f2a44;
  font-weight: 900;
}

#webApp .mark-six-page__back {
  font-size: 30px;
  line-height: 1;
}

#webApp .mark-six-page__refresh {
  font-size: 13px;
}

#webApp .mark-six-page__board {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.26), transparent 22%),
    linear-gradient(135deg, #8097ff 0%, #4567d8 100%);
  color: #fff;
  min-height: 0;
}

#webApp .mark-six-page__board-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#webApp .mark-six-page__board-top div:first-child {
  display: grid;
  gap: 2px;
}

#webApp .mark-six-page__board-top span {
  font-size: 17px;
  font-weight: 900;
}

#webApp .mark-six-page__board-top em {
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  opacity: 0.86;
}

#webApp .mark-six-page__timer {
  display: flex;
  gap: 5px;
}

#webApp .mark-six-page__timer b {
  min-width: 34px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #1e293b;
  font-size: 17px;
  box-shadow: 0 8px 18px rgba(30, 41, 59, 0.16);
}

#webApp .mark-six-page__latest {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-height: 56px;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

#webApp .mark-six-page__latest > span {
  font-size: 14px;
  font-weight: 900;
}

#webApp .mark-six-balls {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  overflow-x: auto;
  padding-bottom: 1px;
}

#webApp .mark-six-ball {
  width: 30px;
  min-width: 30px;
  height: 38px;
  display: grid;
  place-items: center;
  gap: 0;
  border-radius: 999px 999px 12px 12px;
  background: #ef4444;
  color: #fff;
  font-style: normal;
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.22);
}

#webApp .mark-six-ball strong {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-size: 13px;
  font-weight: 950;
}

#webApp .mark-six-ball em {
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

#webApp .mark-six-ball--blue {
  background: #3b82f6;
}

#webApp .mark-six-ball--green {
  background: #22c55e;
}

#webApp .mark-six-ball--red {
  background: #ef4444;
}

#webApp .mark-six-balls__plus {
  color: #fff;
  font-size: 16px;
}

#webApp .mark-six-balls__empty {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 800;
}

#webApp .mark-six-page__user {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 48px 48px;
  align-items: center;
  gap: 7px;
}

#webApp .mark-six-page__avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

#webApp .mark-six-page__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#webApp .mark-six-page__user div:nth-child(2) {
  display: grid;
  gap: 2px;
}

#webApp .mark-six-page__user strong,
#webApp .mark-six-page__user span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#webApp .mark-six-page__user span {
  font-size: 11px;
  font-weight: 800;
}

#webApp .mark-six-page__user button,
#webApp .mark-six-page__tools button {
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  color: #243b75;
  font-weight: 900;
}

#webApp .mark-six-page__history {
  min-height: 0;
  overflow-y: auto;
  padding: 12px 14px;
  display: grid;
  align-content: start;
  gap: 8px;
}

#webApp .mark-six-history-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 5px 10px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

#webApp .mark-six-history-row strong {
  font-size: 13px;
  color: #243b75;
}

#webApp .mark-six-history-row span {
  min-width: 0;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#webApp .mark-six-history-row em {
  grid-column: 2;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#webApp .mark-six-history-row--empty {
  display: block;
  color: #64748b;
  text-align: center;
}

#webApp .mark-six-page__chat {
  min-height: 0;
  overflow-y: auto;
  margin: 8px 10px 0;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(31, 42, 68, 0.08);
}

#webApp .mark-six-page__tools {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  padding: 6px 10px 4px;
  background: transparent;
  border-top: 0;
}

#webApp .mark-six-page__tools button {
  height: 30px;
  border-color: rgba(148, 163, 184, 0.24);
  background: #fff;
  font-size: 11px;
}

#webApp .mark-six-page__composer {
  grid-template-columns: 58px minmax(0, 1fr) 64px 38px;
  gap: 6px;
  padding: 0 10px calc(8px + env(safe-area-inset-bottom, 0px));
}

#webApp .mark-six-page__composer .draw-page__composer-label,
#webApp .mark-six-page__composer .draw-page__composer-input,
#webApp .mark-six-page__composer button {
  height: 38px;
  border-radius: 10px;
  font-size: 12px;
}

#webApp .mark-six-page__composer .draw-page__composer-label {
  background: rgba(69, 103, 216, 0.1);
  color: #243b75;
}

#webApp .mark-six-page__composer button:not(.draw-page__composer-more):not(.draw-page__composer-input) {
  border-color: rgba(69, 103, 216, 0.18);
  background: linear-gradient(180deg, #9db0ff, #4567d8);
  color: #fff;
}

#webApp .mark-six-page__composer .draw-page__composer-more {
  background: #ef4444;
}

#webApp .quick-bet-grid--mark-six {
  max-height: min(52dvh, 460px);
  overflow-y: auto;
}

#webApp .wallet-modal-card--mark-six .quick-bet-footer__summary {
  color: #64748b;
  font-size: 12px;
}

#webApp .mark-six-trend-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  background: #f4f6fb;
}

#webApp .mark-six-trend-panel__top {
  border-bottom-color: #edf1f7;
}

#webApp .mark-six-trend-panel__top strong {
  color: #1f2937;
  font-size: 20px;
  font-weight: 700;
}

#webApp .mark-six-trend-toolbar {
  flex: 0 0 auto;
  height: 44px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 74px;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #f4f6fb;
  border-bottom: 1px solid #e8edf6;
}

#webApp .mark-six-trend-toolbar span {
  min-width: 0;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#webApp .mark-six-trend-toolbar button {
  height: 28px;
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

#webApp .mark-six-trend-state {
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

#webApp .mark-six-trend-state--error {
  color: #dc2626;
}

#webApp .mark-six-trend-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
}

#webApp .mark-six-trend-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background: #fff;
  color: #1f2a44;
}

#webApp .mark-six-trend-table th,
#webApp .mark-six-trend-table td {
  border: 1px solid #edf0f5;
  text-align: center;
}

#webApp .mark-six-trend-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 52px;
  background: #fff;
  color: #2f3d5c;
  font-size: 16px;
  font-weight: 800;
}

#webApp .mark-six-trend-table th:first-child,
#webApp .mark-six-trend-table td:first-child {
  width: 104px;
}

#webApp .mark-six-trend-table td {
  height: 52px;
  padding: 6px 5px;
}

#webApp .mark-six-trend-issue {
  color: #34456c;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

#webApp .mark-six-trend-numbers {
  min-width: 0;
}

#webApp .mark-six-trend-balls {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

#webApp .mark-six-trend-ball {
  width: 30px;
  min-width: 30px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px 999px 11px 11px;
  color: #fff;
  font-style: normal;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
}

#webApp .mark-six-trend-ball strong {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

#webApp .mark-six-trend-ball em {
  color: #ffe600;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);
}

@media (max-width: 380px) {
  #webApp .mark-six-page__timer b {
    min-width: 33px;
    height: 31px;
    font-size: 16px;
  }

  #webApp .mark-six-page__latest {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  #webApp .mark-six-ball {
    width: 31px;
    min-width: 31px;
  }

  #webApp .mark-six-trend-table th:first-child,
  #webApp .mark-six-trend-table td:first-child {
    width: 88px;
  }

  #webApp .mark-six-trend-balls {
    gap: 3px;
  }

  #webApp .mark-six-trend-ball {
    width: 27px;
    min-width: 27px;
    height: 35px;
  }

  #webApp .mark-six-trend-ball strong {
    width: 23px;
    height: 23px;
    font-size: 12px;
  }

  #webApp .mark-six-trend-ball em {
    font-size: 9px;
  }
}

/* Theme picker: Nuxt UI inspired tokens with compact mobile-safe controls. */
#webApp.theme-rose-gold {
  --ui-primary: #f7b58f;
  --ui-primary-600: #b45309;
  --ui-primary-soft: rgba(247, 181, 143, 0.22);
  --ui-bg: #fff7ed;
  --ui-bg-muted: #ffedd5;
  --ui-bg-elevated: rgba(255, 255, 255, 0.92);
  --ui-text: #28120a;
  --ui-text-muted: #8a5a37;
  --ui-text-toned: #5f351c;
  --ui-border: rgba(180, 83, 9, 0.16);
  --ui-border-strong: rgba(180, 83, 9, 0.28);
  --ui-ring: rgba(247, 181, 143, 0.36);
  --theme-deep: #7c2d12;
  --theme-glow: rgba(247, 181, 143, 0.34);
  --theme-gradient: linear-gradient(135deg, #fff7ed 0%, #fed7aa 48%, #fb923c 100%);
  --theme-button-text: #2b1207;
}

#webApp.theme-sky-blue {
  --ui-primary: #7dd3fc;
  --ui-primary-600: #0284c7;
  --ui-primary-soft: rgba(125, 211, 252, 0.22);
  --ui-bg: #eff6ff;
  --ui-bg-muted: #dbeafe;
  --ui-bg-elevated: rgba(255, 255, 255, 0.92);
  --ui-text: #082f49;
  --ui-text-muted: #42708f;
  --ui-text-toned: #164e63;
  --ui-border: rgba(2, 132, 199, 0.16);
  --ui-border-strong: rgba(2, 132, 199, 0.3);
  --ui-ring: rgba(56, 189, 248, 0.34);
  --theme-deep: #075985;
  --theme-glow: rgba(125, 211, 252, 0.32);
  --theme-gradient: linear-gradient(135deg, #eff6ff 0%, #bae6fd 50%, #38bdf8 100%);
  --theme-button-text: #062235;
}

#webApp.theme-frosted-gray {
  --ui-primary: #94a3b8;
  --ui-primary-600: #334155;
  --ui-primary-soft: rgba(148, 163, 184, 0.2);
  --ui-bg: #f8fafc;
  --ui-bg-muted: #e2e8f0;
  --ui-bg-elevated: rgba(255, 255, 255, 0.86);
  --ui-text: #0f172a;
  --ui-text-muted: #64748b;
  --ui-text-toned: #334155;
  --ui-border: rgba(100, 116, 139, 0.18);
  --ui-border-strong: rgba(51, 65, 85, 0.28);
  --ui-ring: rgba(148, 163, 184, 0.36);
  --theme-deep: #111827;
  --theme-glow: rgba(148, 163, 184, 0.24);
  --theme-gradient: linear-gradient(135deg, #ffffff 0%, #e2e8f0 50%, #94a3b8 100%);
  --theme-button-text: #0f172a;
}

#webApp.theme-rose-red {
  --ui-primary: #fb7185;
  --ui-primary-600: #be123c;
  --ui-primary-soft: rgba(251, 113, 133, 0.2);
  --ui-bg: #fff1f2;
  --ui-bg-muted: #ffe4e6;
  --ui-bg-elevated: rgba(255, 255, 255, 0.92);
  --ui-text: #3f0715;
  --ui-text-muted: #9f5061;
  --ui-text-toned: #881337;
  --ui-border: rgba(190, 18, 60, 0.16);
  --ui-border-strong: rgba(190, 18, 60, 0.28);
  --ui-ring: rgba(251, 113, 133, 0.36);
  --theme-deep: #881337;
  --theme-glow: rgba(251, 113, 133, 0.32);
  --theme-gradient: linear-gradient(135deg, #fff1f2 0%, #fecdd3 50%, #fb7185 100%);
  --theme-button-text: #3f0715;
}

body:has(#webApp.theme-rose-gold) {
  --ui-bg: #fff7ed;
  --ui-bg-muted: #ffedd5;
  --theme-glow: rgba(247, 181, 143, 0.34);
}

body:has(#webApp.theme-sky-blue) {
  --ui-bg: #eff6ff;
  --ui-bg-muted: #dbeafe;
  --theme-glow: rgba(125, 211, 252, 0.32);
}

body:has(#webApp.theme-frosted-gray) {
  --ui-bg: #f8fafc;
  --ui-bg-muted: #e2e8f0;
  --theme-glow: rgba(148, 163, 184, 0.24);
}

body:has(#webApp.theme-rose-red) {
  --ui-bg: #fff1f2;
  --ui-bg-muted: #ffe4e6;
  --theme-glow: rgba(251, 113, 133, 0.32);
}

body:has(#webApp.theme-rose-gold),
body:has(#webApp.theme-sky-blue),
body:has(#webApp.theme-frosted-gray),
body:has(#webApp.theme-rose-red) {
  background:
    radial-gradient(circle at 50% -16%, var(--theme-glow, rgba(0, 220, 130, 0.18)), transparent 36%),
    linear-gradient(180deg, var(--ui-bg, #f8fafc) 0%, var(--ui-bg-muted, #eef2f7) 100%);
}

#webApp.theme-rose-gold .home-v3,
#webApp.theme-sky-blue .home-v3,
#webApp.theme-frosted-gray .home-v3,
#webApp.theme-rose-red .home-v3 {
  background:
    radial-gradient(circle at 82% 2%, var(--theme-glow), transparent 28%),
    radial-gradient(circle at 10% 16%, var(--ui-primary-soft), transparent 30%),
    var(--ui-bg);
}

#webApp.theme-rose-gold .home-v3__brand,
#webApp.theme-sky-blue .home-v3__brand,
#webApp.theme-frosted-gray .home-v3__brand,
#webApp.theme-rose-red .home-v3__brand,
#webApp.theme-rose-gold .home-v3__enter,
#webApp.theme-sky-blue .home-v3__enter,
#webApp.theme-frosted-gray .home-v3__enter,
#webApp.theme-rose-red .home-v3__enter {
  background: linear-gradient(135deg, var(--theme-deep), var(--ui-primary-600));
  color: #fff;
}

#webApp.theme-rose-gold .home-v3__link,
#webApp.theme-sky-blue .home-v3__link,
#webApp.theme-frosted-gray .home-v3__link,
#webApp.theme-rose-red .home-v3__link {
  border-color: var(--ui-border-strong);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ui-primary-600);
  font-weight: 900;
}

#webApp.theme-rose-gold .home-v3__game-card,
#webApp.theme-sky-blue .home-v3__game-card,
#webApp.theme-frosted-gray .home-v3__game-card,
#webApp.theme-rose-red .home-v3__game-card {
  background:
    radial-gradient(circle at 92% 78%, var(--ui-primary-soft), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), var(--ui-bg-muted));
}

#webApp.theme-rose-gold .bottom-nav,
#webApp.theme-sky-blue .bottom-nav,
#webApp.theme-frosted-gray .bottom-nav,
#webApp.theme-rose-red .bottom-nav {
  border-top: 1px solid var(--ui-border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

#webApp.theme-rose-gold .bottom-nav__item--light.bottom-nav__item--active,
#webApp.theme-sky-blue .bottom-nav__item--light.bottom-nav__item--active,
#webApp.theme-frosted-gray .bottom-nav__item--light.bottom-nav__item--active,
#webApp.theme-rose-red .bottom-nav__item--light.bottom-nav__item--active {
  background: linear-gradient(135deg, var(--theme-deep), var(--ui-primary-600));
  color: #fff;
}

#webApp.theme-rose-gold .wallet-request-submit,
#webApp.theme-sky-blue .wallet-request-submit,
#webApp.theme-frosted-gray .wallet-request-submit,
#webApp.theme-rose-red .wallet-request-submit,
#webApp.theme-rose-gold .quick-bet-footer__primary,
#webApp.theme-sky-blue .quick-bet-footer__primary,
#webApp.theme-frosted-gray .quick-bet-footer__primary,
#webApp.theme-rose-red .quick-bet-footer__primary,
#webApp.theme-rose-gold .draw-page__composer button:not(.draw-page__composer-more):not(.draw-page__composer-input),
#webApp.theme-sky-blue .draw-page__composer button:not(.draw-page__composer-more):not(.draw-page__composer-input),
#webApp.theme-frosted-gray .draw-page__composer button:not(.draw-page__composer-more):not(.draw-page__composer-input),
#webApp.theme-rose-red .draw-page__composer button:not(.draw-page__composer-more):not(.draw-page__composer-input) {
  border-color: transparent;
  background: linear-gradient(180deg, var(--ui-primary), var(--ui-primary-600));
  color: var(--theme-button-text);
}

.theme-panel-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: end center;
  pointer-events: none;
}

.theme-panel-modal__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

.theme-panel {
  position: relative;
  width: min(100%, 430px);
  max-height: min(76dvh, 640px);
  display: grid;
  gap: 14px;
  padding: 18px 14px calc(16px + env(safe-area-inset-bottom, 0px));
  border: 1px solid var(--ui-border);
  border-radius: 26px 26px 0 0;
  background:
    radial-gradient(circle at 86% 0%, var(--theme-glow, rgba(0, 220, 130, 0.16)), transparent 34%),
    var(--ui-bg-elevated);
  color: var(--ui-text);
  box-shadow: var(--ui-shadow-lg);
  pointer-events: auto;
  overflow: hidden;
}

.theme-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.theme-panel__head div {
  display: grid;
  gap: 3px;
}

.theme-panel__head span {
  color: var(--ui-primary-600);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.theme-panel__head strong {
  color: var(--ui-text);
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.theme-panel__head button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--ui-border);
  border-radius: 999px;
  background: var(--ui-bg);
  color: var(--ui-text-muted);
  font-size: 20px;
  font-weight: 800;
}

.theme-panel__list {
  display: grid;
  gap: 9px;
  max-height: min(50dvh, 420px);
  overflow-y: auto;
  padding-right: 2px;
}

.theme-option {
  width: 100%;
  min-height: 70px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--ui-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ui-text);
  text-align: left;
  box-shadow: var(--ui-shadow-sm);
}

.theme-option--active {
  border-color: var(--ui-primary-600);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), var(--ui-primary-soft));
  box-shadow: 0 0 0 3px var(--ui-primary-soft), var(--ui-shadow-md);
}

.theme-option__swatches {
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-option__swatches i {
  width: 26px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  box-shadow: var(--ui-shadow-sm);
}

.theme-option__swatches i + i {
  margin-left: -10px;
}

.theme-option__copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.theme-option__copy strong {
  color: var(--ui-text);
  font-size: 15px;
  font-weight: 950;
}

.theme-option__copy em {
  color: var(--ui-text-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
}

.theme-option b {
  justify-self: end;
  min-width: 42px;
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--ui-primary-soft);
  color: var(--ui-primary-600);
  font-size: 12px;
  font-weight: 950;
  text-align: center;
}

.theme-panel__confirm {
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--ui-primary), var(--ui-primary-600));
  color: var(--theme-button-text, #052e20);
  font-size: 15px;
  font-weight: 950;
  box-shadow: var(--ui-shadow-md);
}

@media (max-width: 380px) {
  .theme-option {
    grid-template-columns: 54px minmax(0, 1fr) 44px;
    gap: 8px;
  }

  .theme-option__swatches i {
    width: 23px;
    height: 40px;
  }

  .theme-option__copy em {
    font-size: 11px;
  }
}
