:root {
  --app-bg: #1f1c1f;
  --surface: #252225;
  --surface-2: #2f292b;
  --ink: #f7eadc;
  --muted: #b89a82;
  --line: #42342b;
  --brand: #f3c7a2;
  --brand-2: #7e5678;
  --accent: #e6b98a;
  --danger: #ff6675;
  --radius: 8px;
  --shadow: 0 16px 38px rgba(0, 0, 0, .34);
  --bottom-nav: 72px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    linear-gradient(160deg, rgba(126, 86, 120, .38), transparent 34%),
    linear-gradient(24deg, rgba(230, 185, 138, .16), transparent 28%),
    var(--app-bg);
  color: var(--ink);
  font-family: Georgia, "Microsoft YaHei", "Trebuchet MS", sans-serif;
}

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

a {
  color: inherit;
}

.app-shell {
  width: 100%;
  max-width: min(430px, 100vw);
  min-height: 100vh;
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(49, 49, 49, .82), rgba(31, 28, 31, .96) 180px),
    var(--app-bg);
  box-shadow: 0 0 0 1px rgba(243, 199, 162, .08), 0 24px 70px rgba(0, 0, 0, .45);
  position: relative;
  overflow-x: hidden;
}

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 14px;
  text-align: center;
}

.boot-mark {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  background: linear-gradient(120deg, #212121, #313131);
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 0;
  border: 1px solid #766350;
}

.boot-mark::before {
  content: "";
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, .42);
  border-top-color: #fff;
  border-radius: 50%;
  animation: app-spin .8s linear infinite;
}

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

.boot-text,
.muted {
  color: var(--muted);
}

.app-page {
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-nav) + env(safe-area-inset-bottom));
}

.page-main {
  padding: 14px;
}

.form-label,
.form-text {
  color: var(--muted);
}

.form-control,
.form-select,
textarea.form-control {
  min-height: 44px;
  color: var(--ink);
  background-color: #252225;
  border: 1px solid #766350;
  border-radius: var(--radius);
}

.form-control:focus,
.form-select:focus {
  color: #fff;
  background-color: #282528;
  border-color: var(--brand);
  box-shadow: 0 0 0 .18rem rgba(243, 199, 162, .16);
}

.form-control::placeholder {
  color: rgba(247, 234, 220, .55);
}

.topbar {
  min-height: 56px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(31, 28, 31, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #322920;
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar-title {
  min-width: 0;
}

.topbar-title strong {
  display: block;
  font-size: 16px;
  color: var(--brand);
  letter-spacing: .5px;
}

.topbar-title span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.icon-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid #766350;
  background: linear-gradient(120deg, #212121, #313131);
  color: var(--brand);
}

.app-mark::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-2), var(--accent));
  display: block;
}

.language-select {
  min-height: 38px;
  width: 116px;
  border-radius: var(--radius);
  border-color: #766350;
  color: var(--brand);
  background-color: #252225;
}

.language-select:focus {
  background-color: #252225;
}

.hero-panel {
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(33, 33, 33, .96), rgba(49, 49, 49, .94)),
    var(--surface);
  color: var(--brand);
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  border: 1px solid #766350;
}

.hero-panel::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  bottom: -70px;
  border: 24px solid rgba(243, 199, 162, .1);
  transform: rotate(18deg);
}

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

.surface {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.section-title h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--brand);
}

.section-title small {
  color: var(--muted);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.quick-action {
  min-height: 78px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #2b282b, #211f21);
  box-shadow: inset 0 1px 0 rgba(243, 199, 162, .08);
  text-align: center;
  display: grid;
  align-content: center;
  gap: 6px;
  text-decoration: none;
}

.quick-action img {
  width: 28px;
  height: 28px;
  margin: 0 auto;
  object-fit: contain;
}

.quick-action span {
  font-size: 12px;
  line-height: 1.25;
  color: var(--ink);
}

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

.metric {
  padding: 14px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #2a272a, #211f21);
  border: 1px solid var(--line);
}

.metric .label {
  font-size: 12px;
  color: var(--muted);
}

.metric .value {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 800;
  color: var(--brand);
}

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

.record-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #2a272a, #201e20);
  padding: 12px;
}

.record-item .record-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.record-item h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--brand);
}

.record-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.bottom-nav {
  max-width: 430px;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  height: calc(var(--bottom-nav) + env(safe-area-inset-bottom));
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: rgba(31, 28, 31, .98);
  border-top: 1px solid #322920;
  z-index: 40;
}

.bottom-nav a {
  display: grid;
  place-items: center;
  gap: 2px;
  color: rgba(243, 199, 162, .62);
  text-decoration: none;
  font-size: 11px;
  border-radius: 8px;
}

.bottom-nav a.active {
  background: rgba(243, 199, 162, .1);
  color: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(243, 199, 162, .16);
}

.bottom-nav img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.form-card {
  padding: 16px;
  background: rgba(37, 34, 37, .94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-page {
  min-height: 100vh;
  max-width: min(430px, 100vw);
  margin: 0 auto;
  padding: 0;
  display: block;
  position: relative;
  overflow: hidden;
  background: #1f1c1f;
}

.auth-page::before,
.auth-page::after {
  content: "";
  position: absolute;
  inset: 0;
}

.auth-page::before {
  background: url("../ref/img/newLogin/login.074628fa.gif") 0 0 / cover no-repeat;
}

.auth-page::after {
  background: rgba(0, 0, 0, .51);
}

.auth-bg-wrapper {
  min-height: 100vh;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.auth-nav {
  height: 46px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-back-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.auth-back-link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.auth-wrapper {
  flex: 1;
  padding: 54px 0 36px;
  display: flex;
  flex-direction: column;
}

.auth-page-register .auth-wrapper {
  padding-top: 58px;
}

.auth-logo-box {
  padding: 0 32px 8px;
  text-align: center;
}

.auth-logo {
  width: 230px;
  max-width: 72%;
  height: auto;
  max-height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .55));
}

.auth-logo-box p {
  margin: 16px 0 0;
  color: #ccc;
  font-size: 14px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}

.auth-title-box {
  padding: 0 32px 8px;
  text-align: left;
}

.auth-title-box h1 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .5);
}

.auth-title-box p {
  margin: 10px 0 0;
  color: #ccc;
}

.auth-form-card {
  padding: 0 32px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.exact-auth-form {
  width: 100%;
}

.exact-auth-input {
  width: 100%;
  min-height: 54px;
  margin-top: 20px;
  padding: 13px 10px;
  box-sizing: border-box;
  color: #e6b98a;
  text-align: center;
  font-size: 16px;
  border: 1px solid #766350;
  border-radius: 5px;
  background: linear-gradient(120deg, #212121, #313131);
  outline: none;
}

.exact-auth-input::placeholder {
  color: rgba(230, 185, 138, .72);
}

.exact-auth-input:focus {
  border-color: #e6b98a;
  box-shadow: 0 0 0 3px rgba(230, 185, 138, .14);
}

.exact-auth-submit {
  width: 100%;
  height: 42px;
  margin-top: 42px;
  color: #68302c;
  font-size: 16px;
  font-weight: 800;
  border: 0;
  border-radius: 25px;
  background: linear-gradient(#fde3ca, #e7b486);
  box-shadow: none;
}

.exact-register-form .exact-auth-submit {
  margin-top: 28px;
}

.auth-link-row {
  margin-top: 16px;
  font-size: 13px;
}

.auth-link-center {
  text-align: center;
}

.auth-link-row a,
.auth-form-card a {
  color: #e6b98a;
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}

.auth-agreement {
  margin: 18px 2px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #d9c2ab;
  font-size: 12px;
  line-height: 1.45;
}

.auth-agreement input {
  margin-top: 2px;
  accent-color: #e6b98a;
}

.auth-language {
  display: none;
}

.auth-mark {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  margin: 0 auto 14px;
  background:
    linear-gradient(135deg, rgba(15, 143, 118, .92), rgba(20, 102, 195, .88)),
    var(--brand);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.auth-mark::before {
  content: "";
  width: 28px;
  height: 28px;
  border: 8px solid rgba(255, 255, 255, .9);
  border-right-color: rgba(255, 255, 255, .3);
  border-radius: 50%;
  transform: rotate(-28deg);
}

.brand-card p {
  margin: 4px 0 0;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}

.btn-brand {
  --bs-btn-color: var(--brand);
  --bs-btn-bg: #252225;
  --bs-btn-border-color: #766350;
  --bs-btn-hover-color: var(--brand);
  --bs-btn-hover-bg: #313131;
  --bs-btn-hover-border-color: #8d7359;
  background: linear-gradient(120deg, #212121, #313131) !important;
  border-top-color: #766350 !important;
  border-bottom-color: #766350 !important;
}

.btn-accent {
  --bs-btn-color: #211408;
  --bs-btn-bg: #f2d0ad;
  --bs-btn-border-color: #f2d0ad;
  --bs-btn-hover-color: #211408;
  --bs-btn-hover-bg: #e6b98a;
  --bs-btn-hover-border-color: #e6b98a;
  background: linear-gradient(180deg, #f5d8b8, #e6b98a) !important;
}

.btn-outline-secondary,
.btn-outline-primary,
.btn-outline-danger {
  --bs-btn-color: var(--brand);
  --bs-btn-border-color: #766350;
  --bs-btn-hover-color: #211408;
  --bs-btn-hover-bg: #e6b98a;
  --bs-btn-hover-border-color: #e6b98a;
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-2);
}

.avatar-lg {
  width: 78px;
  height: 78px;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(243, 199, 162, .1);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.tab-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 8px;
}

.tab-strip .btn {
  white-space: nowrap;
}

.empty-state {
  padding: 28px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  background: rgba(37, 34, 37, .7);
}

.loading-row {
  min-height: 84px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.article-body {
  overflow-wrap: anywhere;
  line-height: 1.75;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.wheel {
  width: min(82vw, 340px);
  aspect-ratio: 1;
  margin: 10px auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background:
    conic-gradient(from -18deg, #7e5678 0 45deg, #e6b98a 45deg 90deg, #313131 90deg 135deg, #ff6675 135deg 180deg, #7e5678 180deg 225deg, #e6b98a 225deg 270deg, #313131 270deg 315deg, #ff6675 315deg 360deg);
  box-shadow: var(--shadow);
}

.toast {
  border-radius: var(--radius);
}

.modal-content {
  color: var(--ink);
  background: #252225;
  border: 1px solid #766350;
  border-radius: var(--radius);
}

.modal-header,
.modal-footer {
  border-color: var(--line);
}

.btn-close {
  filter: invert(1);
}

.ref-page {
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(49, 49, 49, .74), rgba(31, 28, 31, .98) 230px),
    url("../ref/img/neww/room_bg.gif") center top / cover no-repeat fixed,
    var(--app-bg);
}

.ref-home-page {
  background: #1f1c1f;
}

.ref-home-header {
  height: 58px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1f1c1f;
  color: #fff;
}

.ref-home-header img {
  width: 48px;
  height: 40px;
  object-fit: contain;
}

.ref-home-header strong {
  font-size: 16px;
  color: #fff;
  font-weight: 700;
}

.ref-home-main {
  padding: 0 10px 14px;
}

.ref-home-carousel {
  height: 160px;
  overflow: hidden;
  border-radius: 8px;
  background: #252225;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.ref-home-carousel.is-dragging {
  cursor: grabbing;
}

.ref-home-carousel .carousel-inner,
.ref-home-carousel .carousel-item {
  height: 100%;
}

.ref-home-carousel img {
  width: 100%;
  height: 160px;
  display: block;
  object-fit: cover;
}

.ref-home-banner {
  height: 164px;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  justify-items: end;
  padding: 16px 12px 16px 118px;
  border-radius: 8px;
  color: #1f1c1f;
  background:
    radial-gradient(circle at 16% 35%, rgba(255, 255, 255, .92), transparent 5%),
    radial-gradient(circle at 28% 30%, rgba(255, 255, 255, .86), transparent 7%),
    linear-gradient(180deg, #efc1bd 0%, #f1c7c3 46%, #eab5b0 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}

.ref-home-banner img {
  width: 54px;
  position: absolute;
  right: 18px;
  top: 12px;
  object-fit: contain;
  opacity: .82;
}

.ref-home-banner h1 {
  margin: 8px 0 8px;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 900;
  color: #161113;
  white-space: nowrap;
}

.ref-home-banner p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: .5px;
  color: #161113;
}

.ref-heart-line {
  position: absolute;
  left: -8px;
  top: 22px;
  width: 178px;
  height: 118px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, .88);
  border-bottom-color: transparent;
  border-right-color: transparent;
  transform: rotate(-36deg);
  filter:
    drop-shadow(0 0 7px rgba(255, 255, 255, .96))
    drop-shadow(0 0 12px rgba(255, 116, 116, .82));
}

.ref-heart-line::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 4px;
  left: 48px;
  top: 74px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 0 10px rgba(255, 116, 116, .86);
  transform: rotate(36deg);
}

.ref-home-notice {
  height: 44px;
  margin: 14px 0;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  border: 1px solid #766350;
  border-radius: 8px;
  background: #252225;
  color: #f3c7a2;
}

.ref-home-notice img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  flex: 0 0 auto;
}

.ref-home-notice-viewport {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.ref-home-notice-track {
  margin: 0;
  display: inline-flex;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  color: #f3c7a2;
  will-change: transform;
  animation: ref-notice-marquee 18s linear infinite;
}

.ref-home-notice-track span {
  padding-right: 46px;
}

@keyframes ref-notice-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.ref-dating-button {
  min-height: 96px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  gap: 6px;
  text-decoration: none;
  border: 1px solid #766350;
  border-radius: 8px;
  background: linear-gradient(180deg, #2a2a2a, #222);
  color: #f3c7a2;
}

.ref-dating-button img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.ref-dating-button span {
  font-size: 16px;
  color: #f3c7a2;
}

.ref-city-panel {
  padding: 18px 12px 14px;
  border: 1px solid #766350;
  border-radius: 8px;
  background: linear-gradient(180deg, #252525, #202020);
}

.ref-city-panel h2 {
  margin: 0 0 14px;
  padding-left: 10px;
  position: relative;
  font-size: 16px;
  line-height: 1.2;
  color: #f3c7a2;
  font-weight: 800;
}

.ref-city-panel h2::before {
  content: "";
  width: 4px;
  height: 18px;
  position: absolute;
  left: 0;
  top: 0;
  background: #f3c7a2;
}

.ref-city-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 16px;
}

.ref-city-grid a {
  min-width: 0;
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.ref-city-grid a:nth-child(11) {
  grid-column: span 2;
}

.ref-city-grid a:nth-child(12) {
  grid-column: span 1;
}

.ref-waiter-section {
  margin-top: 14px;
}

.ref-choose-main {
  padding: 0 0 calc(var(--bottom-nav) + 12px + env(safe-area-inset-bottom));
}

.ref-tu-list {
  padding-top: 0;
}

.ref-waiter-list {
  display: block;
}

.ref-waiter-card {
  min-height: 0;
  margin: 3.467vw 2.667vw 2.133vw;
  padding: 4vw 5.333vw 4vw 3.467vw;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24.8vw;
  gap: 2.667vw;
  align-items: center;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  border: 1px solid #766350;
  border-radius: 8px;
  background: linear-gradient(180deg, #2a272a, #201e20);
}

.ref-waiter-photo {
  width: 24.8vw;
  height: 24.8vw;
  justify-self: end;
  border-radius: 50%;
  object-fit: cover;
  border: 0;
}

.ref-waiter-info {
  display: grid;
  gap: 0;
  align-content: start;
  min-width: 0;
}

.ref-waiter-card strong {
  width: 26.667vw;
  min-width: 0;
  max-width: none;
  min-height: 0;
  display: inline-grid;
  place-items: center;
  padding: 0 .8vw;
  border-radius: 999px;
  background: linear-gradient(90deg, #efcba7, #dcab76);
  color: #8d5825;
  font-size: 3.467vw;
  line-height: 1.45;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ref-waiter-card p {
  margin: 0;
  padding-top: 1.333vw;
  color: #ddd;
  font-size: 3.467vw;
  line-height: 1.15;
}

.ref-waiter-card p b {
  font-weight: 400;
}

.ref-waiter-card span,
.ref-waiter-card small {
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
}

.ref-waiter-stats {
  margin-top: 0;
  padding-top: 2.133vw;
  display: flex;
  align-items: center;
  gap: 0;
}

.ref-waiter-stats span {
  display: inline-flex;
  align-items: center;
  gap: .533vw;
  color: #777;
  font-size: 2.933vw;
}

.ref-waiter-stats span + span {
  margin-left: 2.133vw;
}

.ref-waiter-stats img {
  width: 4vw;
  height: 4vw;
  object-fit: contain;
}

.ref-verified {
  width: auto;
  height: auto;
  position: absolute;
  top: 4.267vw;
  right: -4.667vw;
  display: grid;
  place-items: center;
  z-index: 2;
  color: #000 !important;
  padding: 1px 7.867vw;
  background: linear-gradient(90deg, #efcba7, #dcab76);
  font-size: 3.2vw !important;
  font-style: normal;
  transform: rotate(45deg);
  transform-origin: center;
}

@media (max-width: 360px) {
  .ref-waiter-card {
    grid-template-columns: minmax(0, 1fr) 96px;
    padding: 14px;
  }

  .ref-waiter-photo {
    width: 86px;
    height: 86px;
  }

  .ref-waiter-card p {
    font-size: 13px;
  }
}

/* Legacy values retained for older card variants. */
.ref-waiter-card .legacy-title {
  color: #f3c7a2;
  font-size: 16px;
}

.ref-load-state {
  min-height: 44px;
  display: grid;
  place-items: center;
  color: rgba(243, 199, 162, .72);
  font-size: 13px;
}

.ref-header {
  min-height: 56px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  background: rgba(31, 28, 31, .96);
  border-bottom: 1px solid #322920;
  position: sticky;
  top: 0;
  z-index: 20;
}

.ref-header strong {
  color: var(--brand);
  font-size: 17px;
  letter-spacing: .2px;
}

.ref-back,
.ref-logo-dot,
.ref-header-link {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #766350;
  border-radius: 8px;
  color: var(--brand);
  text-decoration: none;
  background: linear-gradient(120deg, #212121, #313131);
}

.ref-logo-dot img {
  width: 30px;
  max-height: 28px;
  object-fit: contain;
}

.ref-logo-dot::before {
  content: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7e5678, #e6b98a);
}

.ref-header-link {
  width: auto;
  padding: 0 10px;
  font-size: 13px;
}

.ref-lang {
  width: 112px;
}

.ref-main {
  padding: 14px;
}

.ref-main.with-nav {
  padding-bottom: calc(var(--bottom-nav) + 18px + env(safe-area-inset-bottom));
}

.ref-hero,
.ref-panel,
.ref-user-card,
.ref-bank-card,
.ref-notice,
.ref-video {
  border: 1px solid #766350;
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(33, 33, 33, .96), rgba(49, 49, 49, .9)),
    var(--surface);
  box-shadow: var(--shadow);
}

.ref-hero {
  min-height: 150px;
  padding: 18px;
  display: grid;
  align-content: end;
  gap: 12px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(33, 33, 33, .65), rgba(49, 49, 49, .84)),
    url("../ref/img/neww/user-bg.png") center / cover no-repeat,
    var(--surface);
}

.ref-hero-logo {
  width: 132px;
  max-height: 54px;
  object-fit: contain;
  margin-bottom: 6px;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .52));
}

.ref-hero::after,
.ref-user-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -72px;
  bottom: -84px;
  border: 26px solid rgba(243, 199, 162, .1);
  transform: rotate(18deg);
}

.ref-hero > *,
.ref-user-card > * {
  position: relative;
  z-index: 1;
}

.ref-hero small,
.ref-bank-card small {
  color: var(--muted);
  letter-spacing: 1px;
}

.ref-hero h1,
.ref-panel h2,
.ref-profile-hero h1 {
  color: var(--brand);
  margin: 0;
  font-weight: 900;
}

.ref-hero p,
.ref-panel p,
.ref-profile-hero p {
  margin: 0;
  color: var(--ink);
}

.ref-notice {
  margin-top: 12px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.ref-notice span {
  flex: 0 0 auto;
  color: #211408;
  background: linear-gradient(180deg, #f5d8b8, #e6b98a);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 800;
}

.ref-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

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

.ref-card,
.ref-profile-card {
  min-height: 122px;
  padding: 14px 10px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #2a272a, #201e20);
}

.ref-card img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.ref-card strong,
.ref-profile-card strong,
.ref-model strong,
.ref-record strong {
  color: var(--brand);
}

.ref-card span,
.ref-profile-card span,
.ref-model span,
.ref-record span {
  color: var(--muted);
  font-size: 12px;
}

.ref-model-list,
.ref-list {
  display: grid;
  gap: 10px;
}

.ref-model,
.ref-row,
.ref-record {
  min-height: 58px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #2a272a, #201e20);
}

.ref-model img,
.ref-user-card img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
}

.ref-model div,
.ref-record div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.ref-chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.ref-chip-row a,
.ref-pill {
  flex: 0 0 auto;
  padding: 8px 12px;
  color: var(--brand);
  border: 1px solid #766350;
  border-radius: 999px;
  text-decoration: none;
  background: #252225;
}

.ref-photo {
  width: 100%;
  aspect-ratio: 1 / 1.12;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(31, 28, 31, .05), rgba(31, 28, 31, .42)),
    url("../ref/img/neww/user-bg.png") center / cover no-repeat,
    linear-gradient(135deg, #7e5678, #313131);
}

.ref-photo.lg {
  width: min(74vw, 280px);
  margin: 0 auto;
}

.ref-profile-hero {
  text-align: center;
  display: grid;
  gap: 12px;
}

.ref-user-card {
  padding: 16px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(33, 33, 33, .66), rgba(49, 49, 49, .88)),
    url("../ref/img/neww/user-bg.png") center / cover no-repeat,
    var(--surface);
}

.ref-user-card h1 {
  margin: 0;
  color: var(--brand);
  font-size: 20px;
}

.ref-user-card p {
  margin: 4px 0 0;
  color: var(--muted);
}

.ref-user-card a {
  color: var(--brand);
  text-decoration: none;
}

.ref-row-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ref-row-left img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.ref-bank-card {
  min-height: 160px;
  padding: 20px;
  display: grid;
  align-content: space-between;
  background:
    linear-gradient(135deg, rgba(126, 86, 120, .92), rgba(230, 185, 138, .75)),
    #2a272a;
}

.ref-bank-card strong {
  color: #fff;
  font-size: 24px;
  letter-spacing: 1px;
}

.ref-video {
  height: 220px;
  display: grid;
  place-items: center;
  color: var(--brand);
  font-size: 40px;
  font-weight: 900;
  background:
    linear-gradient(180deg, rgba(33, 33, 33, .72), rgba(31, 28, 31, .9)),
    url("../ref/img/neww/room_bg.gif") center / cover no-repeat,
    var(--surface);
}

.ref-tabbar {
  max-width: min(430px, 100vw);
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  height: calc(var(--bottom-nav) + env(safe-area-inset-bottom));
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: rgba(31, 28, 31, .98);
  border-top: 1px solid #322920;
  z-index: 99;
}

.ref-tabbar a {
  display: grid;
  place-items: center;
  gap: 2px;
  color: rgba(243, 199, 162, .62);
  text-decoration: none;
  font-size: 11px;
  border-radius: 8px;
}

.ref-tabbar a.active {
  color: var(--brand);
  background: rgba(243, 199, 162, .1);
  box-shadow: inset 0 0 0 1px rgba(243, 199, 162, .16);
}

.ref-tabbar img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.tipping-page {
  --tipping-vw: min(1vw, 4.3px);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #1f1c1f;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

.tipping-main {
  min-height: 100vh;
  padding: min(35vw, 150.5px) 0 min(26vw, 111.8px);
  background: url("../ref/tipping/bg.05b95674.png") center top / 100% auto no-repeat #1f1c1f;
  box-sizing: border-box;
}

.tipping-userinfo {
  padding: 0 min(7vw, 30.1px);
}

.tipping-userinfo h1 {
  margin: 0;
  min-height: min(10.4vw, 44.72px);
  color: #fff;
  font-size: min(8vw, 34.4px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0;
}

.tipping-stat-row,
.tipping-order-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.tipping-stat {
  width: 48%;
  margin-top: min(3vw, 12.9px);
}

.tipping-stat span {
  display: block;
  color: #ffcd9c;
  font-size: min(3.5vw, 15.05px);
  line-height: 1.35;
  font-weight: 700;
}

.tipping-stat strong {
  display: block;
  margin-top: min(1vw, 4.3px);
  color: #fff;
  font-size: min(5vw, 21.5px);
  line-height: 1.2;
  font-weight: 700;
}

.tipping-order-card {
  width: 48%;
  margin-top: min(4vw, 17.2px);
  position: relative;
  display: block;
  color: #1f1c1f;
  text-decoration: none;
}

.tipping-order-card img {
  width: 100%;
  display: block;
}

.tipping-order-card > span {
  position: absolute;
  inset: 0 0 0 min(14vw, 60.2px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #2f2723;
  text-align: center;
  font-size: min(3.3vw, 14.19px);
  line-height: 1.28;
  font-weight: 700;
}

.tipping-order-card small {
  display: block;
  margin-top: min(.6vw, 2.58px);
  font-size: min(3vw, 12.9px);
  line-height: 1.15;
  font-weight: 700;
}

.tipping-body {
  padding: 0 min(3.5vw, 15.05px);
}

.tipping-vip {
  height: min(13.8vw, 59.34px);
  margin-top: min(4vw, 17.2px);
  padding: 0 min(4vw, 17.2px) 0 min(16vw, 68.8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  text-decoration: none;
  background: url("../ref/tipping/vip.14fa0a6d.png") center / 100% 100% no-repeat;
}

.tipping-vip strong {
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
}

.tipping-vip span {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-size: 16px;
  line-height: 1;
}

.tipping-vip b {
  color: #f3c7a2;
  font-weight: 400;
}

.tipping-vip img {
  width: min(10vw, 43px);
  height: min(10vw, 43px);
  object-fit: contain;
}

.tipping-vip i,
.tipping-menu-item i {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  color: #655142;
  font-style: normal;
}

.tipping-vip i::before,
.tipping-menu-item i::before {
  content: "›";
  font-size: 24px;
  line-height: 16px;
}

.tipping-menu-list {
  margin-top: min(4vw, 17.2px);
  padding: 0 min(3vw, 12.9px);
  overflow: hidden;
  border-radius: min(3vw, 12.9px);
  background: #fff;
}

.tipping-menu-item {
  height: min(14vw, 60.2px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #1f1c1f;
  text-decoration: none;
  border-bottom: 1px solid #51473f;
  font-size: 16px;
  line-height: 1;
}

.tipping-menu-item:last-child {
  border-bottom: 0;
}

.tipping-menu-left {
  display: inline-flex;
  align-items: center;
}

.tipping-menu-left img {
  width: min(10vw, 43px);
  height: min(10vw, 43px);
  margin-right: min(4vw, 17.2px);
  object-fit: contain;
}

.tipping-tabbar {
  --tipping-vw: min(1vw, 4.3px);
  width: 100%;
  max-width: min(430px, 100vw);
  height: calc(min(14.667vw, 63.1px) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 99;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  transform: translateX(-50%);
  background: #1f1c1f;
}

.tipping-tabbar a {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8b8b8b;
  text-decoration: none;
  font-size: min(3.467vw, 14.91px);
  line-height: 1;
  letter-spacing: 0;
}

.tipping-tabbar a.active {
  color: #f3c7a2;
  animation: tipping-scale .4s;
}

.tipping-tabbar img {
  width: auto;
  height: min(7vw, 30.1px);
  margin-bottom: min(.533vw, 2.29px);
  object-fit: contain;
}

@keyframes tipping-scale {
  0% {
    transform: scale(.5);
  }

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

.tipping-sub-page {
  overflow-y: auto;
}

.tipping-sub-header {
  height: 44px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  color: #fff;
  background: #1f1c1f;
}

.tipping-sub-header a {
  color: #fff;
  text-decoration: none;
  font-size: 34px;
  line-height: 1;
}

.tipping-sub-header strong {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}

.tipping-sub-main {
  min-height: calc(100vh - 44px);
  padding: 16px 14px calc(min(14.667vw, 63.1px) + 22px + env(safe-area-inset-bottom));
  background: url("../ref/tipping/bg.05b95674.png") center top / 100% auto no-repeat #1f1c1f;
}

.tipping-sub-card,
.tipping-start-card,
.tipping-form {
  border-radius: 8px;
  background: #fff;
  color: #1f1c1f;
}

.tipping-sub-card {
  min-height: 112px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  column-gap: 12px;
}

.tipping-sub-card img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  grid-row: span 2;
}

.tipping-sub-card h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.tipping-sub-card p {
  margin: 5px 0 0;
  color: #8b8b8b;
  font-size: 13px;
}

.tipping-record-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.tipping-record-item {
  min-height: 62px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 8px;
  background: #fff;
  color: #1f1c1f;
}

.tipping-record-item div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.tipping-record-item strong {
  font-size: 14px;
  font-weight: 700;
}

.tipping-record-item span {
  color: #8b8b8b;
  font-size: 12px;
}

.tipping-record-item b {
  color: #9f6c4c;
  font-size: 14px;
  white-space: nowrap;
}

.tipping-start-card {
  padding: 24px 18px;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.tipping-start-card img {
  width: min(62vw, 266px);
  max-height: 120px;
  object-fit: contain;
}

.tipping-start-card h1 {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 700;
}

.tipping-start-card p {
  margin: 0;
  color: #8b8b8b;
  font-size: 14px;
}

.tipping-start-card button,
.tipping-form button {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 6px;
  color: #1f1c1f;
  background: linear-gradient(180deg, #ffd1a3, #c18b5f);
  font-weight: 700;
}

.tipping-sub-list {
  margin-top: 14px;
}

.tipping-form {
  margin-top: 14px;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.tipping-form label {
  display: grid;
  gap: 7px;
  color: #1f1c1f;
  font-size: 14px;
}

.tipping-form input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #e3ded9;
  border-radius: 6px;
  color: #1f1c1f;
  background: #f9f7f5;
  outline: 0;
}

.exact-tipping-page {
  min-height: 100vh;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  color: #fff;
  background: #1f1c1f;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

.exact-tipping-navbar {
  height: min(13.333vw, 57.33px);
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(#1f1c1f, #1f1c1f);
}

.exact-tipping-navbar-border {
  border-bottom: 1px solid rgba(243, 199, 162, .16);
}

.exact-tipping-back {
  width: 42px;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.exact-tipping-back img {
  width: 20px;
  height: 15px;
  display: block;
  object-fit: contain;
}

.exact-tipping-title {
  color: #f3c7a2;
  font-size: min(4.267vw, 18.35px);
  line-height: 1.55;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0;
}

.exact-order-content {
  min-height: calc(100vh - min(13.333vw, 57.33px));
  display: flex;
  flex-direction: column;
  background: #1f1c1f;
}

.exact-order-tabs {
  height: min(6.25vw, 26.88px);
  padding-bottom: min(5vw, 21.5px);
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  color: #fff;
}

.exact-order-tab {
  min-width: 0;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 14px;
  line-height: 19px;
  font-weight: 400;
}

.exact-order-tab.active {
  color: #f3c7a2;
}

.exact-recharge-page .exact-tipping-navbar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
}

.exact-recharge {
  min-height: 100vh;
  background: #1f1c1f;
}

.exact-recharge-balance {
  height: min(42.253vw, 181.7px);
  padding: min(23.33vw, 100.35px) min(10vw, 43px) min(13vw, 55.9px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: #000;
  background: linear-gradient(90deg, #efcba7, #dcab76);
  font-size: min(4.5vw, 19.35px);
  line-height: 1.32;
  font-weight: 700;
}

.exact-recharge-balance-money {
  display: flex;
  align-items: flex-start;
}

.exact-recharge-body {
  min-height: calc(100vh - min(42.253vw, 181.7px) + min(4vw, 17.2px));
  margin-top: max(-4vw, -17.2px);
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: min(4vw, 17.2px) min(4vw, 17.2px) 0 0;
  background: #1f1c1f;
}

.exact-recharge-money-input {
  min-height: min(25vw, 107.5px);
  padding: min(10vw, 43px) min(20vw, 86px) min(5vw, 21.5px);
  display: flex;
  align-items: baseline;
  color: #f3c7a2;
  font-size: min(6vw, 25.8px);
  line-height: 1.15;
  font-weight: 400;
}

.exact-recharge-title {
  margin: 0;
  padding: min(4vw, 17.2px);
  color: #f3c7a2;
  font-size: min(4vw, 17.2px);
  line-height: 1.35;
  font-weight: 700;
}

.exact-money-list {
  padding: 0 min(3.953vw, 17px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: min(3.64vw, 15.65px);
  row-gap: min(3vw, 12.9px);
}

.exact-money-item {
  height: min(10vw, 43px);
  padding: 0;
  border: 0;
  border-radius: min(2vw, 8.6px);
  color: #fff;
  background: #2c3038;
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
}

.exact-recharge-confirm {
  width: calc(100% - min(7.906vw, 34px));
  height: 44px;
  margin: min(10vw, 43px) min(3.953vw, 17px) 0;
  padding: 0 15px;
  border: 0;
  border-radius: 2px;
  color: #68302c;
  background: linear-gradient(#fde3ca, #e7b486);
  font-size: min(4vw, 17.2px);
  line-height: 44px;
  font-weight: 700;
}

.exact-recharge-tips {
  margin: min(4vw, 17.2px) min(3.953vw, 17px);
  color: #f3c7a2;
  font-size: min(3.5vw, 15.05px);
  line-height: 1.4;
  font-weight: 400;
}

.exact-vip-list {
  min-height: calc(100vh - min(13.333vw, 57.33px));
  padding: min(4vw, 17.2px) min(4vw, 17.2px) min(8vw, 34.4px);
  background: #1f1c1f;
}

.exact-vip-item {
  min-height: min(18vw, 77.4px);
  margin-bottom: min(4vw, 17.2px);
  padding: min(4vw, 17.2px) min(4vw, 17.2px) min(4vw, 17.2px) min(2vw, 8.6px);
  display: flex;
  align-items: center;
  border-radius: min(2vw, 8.6px);
  background: #272727;
}

.exact-vip-img {
  width: min(10vw, 43px);
  height: min(10vw, 43px);
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}

.exact-vip-info {
  min-width: 0;
  margin-left: min(1.5vw, 6.45px);
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 400;
}

.exact-vip-level {
  margin-right: min(2vw, 8.6px);
  color: #f3c7a2;
  font-size: 16px;
  line-height: 18px;
  font-weight: 400;
}

.exact-vip-recharge {
  color: #a2a2a2;
  font-size: 12px;
  line-height: 14px;
  font-weight: 400;
}

.exact-vip-quantity {
  margin-top: min(2vw, 8.6px);
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
}

.exact-vip-value {
  font-size: 14px;
  line-height: 17px;
}

.exact-lottery-page {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  color: #fff;
  background: #1f1c1f;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

.exact-lottery-back {
  width: 36px;
  height: 43px;
  position: fixed;
  left: calc(50% - min(215px, 50vw));
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exact-lottery-back img {
  width: 20px;
  height: 15px;
  display: block;
  object-fit: contain;
}

.exact-lottery-body {
  min-height: 100vh;
  padding-bottom: 24px;
}

.exact-lottery-card {
  min-height: 945px;
  padding: 9px;
  color: #fff;
}

.exact-lottery-balance {
  height: 21px;
  text-align: center;
  color: #fff;
  font-size: 16px;
  line-height: 21px;
  font-weight: 400;
}

.exact-lottery-balance b {
  color: #fff;
  font-weight: 400;
}

.exact-turntable-wrap {
  width: min(68vw, 292px);
  height: min(68vw, 292px);
  margin: 6px auto 0;
  position: relative;
}

.exact-turntable-wheel {
  width: 100%;
  height: 100%;
  position: relative;
  background: url("../ref/tipping/turntable/zphd_bj_s3.2589aa40.png") center / 100% 100% no-repeat;
}

.exact-turntable-item {
  width: 27%;
  height: 90%;
  position: absolute;
  left: 36.5%;
  top: 5%;
  transform: rotate(calc(var(--i) * 36deg));
  transform-origin: 50% 50%;
  text-align: center;
  color: #fff;
  font-size: min(3.25vw, 13.98px);
  line-height: 1.12;
  font-weight: 400;
  pointer-events: none;
}

.exact-turntable-item span {
  display: inline-block;
  max-width: 100%;
  padding-top: min(1vw, 4.3px);
  word-break: break-all;
}

.exact-turntable-center {
  width: 33.2%;
  height: 36.4%;
  position: absolute;
  left: 33.4%;
  top: 31.8%;
  background: url("../ref/tipping/turntable/zphd_ljcj_s3.b13c2ac3.png") center / contain no-repeat;
}

.exact-turntable-pointer {
  width: 35%;
  height: 64%;
  position: absolute;
  left: 32.5%;
  top: -1%;
  background: url("../ref/tipping/turntable/zphd_zz_s3.3d0efb03.png") center / contain no-repeat;
  pointer-events: none;
}

.exact-lottery-draw {
  width: calc(100% - 30px);
  height: 32px;
  margin: 10px 15px 0;
  padding: 0 15px;
  border: 0;
  border-radius: 2px;
  color: #68302c;
  background: linear-gradient(#fde3ca, #e7b486);
  font-size: 13px;
  line-height: 32px;
  font-weight: 700;
  opacity: .62;
}

.exact-lottery-desc {
  margin-top: 18px;
  color: #fff;
  font-size: 12px;
  line-height: 1.48;
}

.exact-lottery-desc p {
  margin: 0 0 6px;
}

.exact-lottery-value,
.exact-lottery-records {
  padding: 0 9px;
}

.exact-lottery-value h2,
.exact-lottery-record-title {
  margin: 0 0 8px;
  color: #f3c7a2;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
}

.exact-lottery-value img {
  width: 100%;
  display: block;
  object-fit: contain;
}

.exact-lottery-records {
  margin-top: 12px;
}

.exact-lottery-record-title {
  display: flex;
  justify-content: space-between;
}

.exact-lottery-record-list {
  display: grid;
}

.exact-lottery-record {
  height: 38px;
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 13px;
}

.exact-lottery-record img {
  width: 19px;
  height: 19px;
  object-fit: contain;
}

.exact-lottery-record b {
  color: #f3c7a2;
  font-weight: 400;
}

.exact-password-page {
  min-height: 100vh;
  color: #f3c7a2;
  background: #1f1c1f;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

.exact-password-nav {
  height: 43px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1f1c1f;
}

.exact-password-nav a {
  width: 36px;
  height: 43px;
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exact-password-nav img {
  width: 20px;
  height: 15px;
  display: block;
  object-fit: contain;
}

.exact-password-nav strong {
  color: #f3c7a2;
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
}

.exact-password-main {
  min-height: calc(100vh - 43px);
}

.exact-password-form {
  display: grid;
}

.exact-password-field {
  min-height: 70px;
  display: grid;
  align-content: start;
  gap: 0;
}

.exact-password-field span {
  padding: 11px 13px;
  color: #f3c7a2;
  font-size: 11px;
  line-height: 16px;
  font-weight: 400;
}

.exact-password-field input {
  width: calc(100% - 26px);
  height: 32px;
  margin: 0 13px;
  padding: 8px 11px;
  border: .8px solid #766350;
  border-radius: 4px;
  color: #f3c7a2;
  background: linear-gradient(120deg, #212121, #313131);
  font-size: 12px;
  line-height: 14px;
  outline: 0;
}

.exact-password-field input::placeholder {
  color: #f3c7a2;
  opacity: .8;
}

.exact-password-form button {
  width: calc(100% - 34px);
  min-height: 36px;
  margin: 26px 17px;
  padding: 9px 0;
  border: 0;
  border-radius: 32px;
  color: #68302c;
  background: linear-gradient(#fde3ca, #e7b486);
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
}

.mine-page,
.ref-detail-page {
  min-height: 100vh;
  color: #fff;
  background: #1f1c1f;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.mine-header,
.ref-detail-header {
  height: 58px;
  display: grid;
  align-items: center;
  justify-items: center;
  color: #f3c7a2;
  font-size: 16px;
  font-weight: 500;
  background: #1f1c1f;
}

.ref-detail-header {
  height: 43px;
  color: #fff;
}

.ref-detail-header {
  grid-template-columns: 42px 1fr 42px;
}

.ref-detail-header a {
  width: 42px;
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-size: 32px;
  line-height: 1;
}

.ref-detail-main {
  padding: 0 13px calc(var(--bottom-nav) + 18px + env(safe-area-inset-bottom));
}

.ref-detail-info {
  padding: 11px 4px 16px;
  display: grid;
  gap: 7px;
}

.ref-detail-info h1 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.ref-detail-info p {
  margin: 0;
  color: #fff;
  font-size: 13px;
  line-height: 1.3;
}

.ref-detail-info span {
  color: #fff;
}

.ref-detail-info b {
  color: #f3c7a2;
  font-weight: 500;
}

.ref-detail-stars {
  display: flex;
  gap: 4px;
  color: #f3c7a2;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
}

.ref-detail-section-title {
  margin: 0 0 6px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

.ref-detail-gallery {
  display: grid;
  gap: 4px;
}

.ref-detail-gallery img {
  width: 100%;
  height: min(147.7vw, 635px);
  display: block;
  border-radius: 0;
  object-fit: cover;
}

.ref-detail-thumbs {
  margin: 14px 0;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 3px;
}

.ref-detail-thumbs img {
  flex: 0 0 100px;
  width: 100px;
  height: 100px;
  object-fit: cover;
}

.mine-main {
  min-height: calc(100vh - 58px);
  padding: 0 0 calc(88px + env(safe-area-inset-bottom));
  background: #1f1c1f;
}

.mine-profile {
  min-height: 100px;
  padding: 0 23px;
  display: grid;
  grid-template-columns: 60px 1fr 28px;
  align-items: center;
  gap: 22px;
  background: #e6b98a;
}

.mine-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .85);
  object-fit: cover;
}

.mine-profile div {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.mine-profile strong {
  color: #000;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 500;
}

.mine-profile span {
  color: #000;
  font-size: 16px;
  line-height: 1.1;
}

.mine-profile a {
  display: grid;
  place-items: center;
}

.mine-profile a img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.mine-list {
  margin-top: 0;
  padding: 13px 17px 0;
  display: grid;
}

.mine-row {
  height: 44px;
  display: grid;
  grid-template-columns: 1fr auto 16px;
  align-items: center;
  gap: 8px;
  color: #e6b98a;
  text-decoration: none;
}

.mine-row > span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
}

.mine-row > span img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.mine-row b {
  color: #dcab76;
  font-size: 14px;
  font-weight: 400;
}

.mine-arrow {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.mine-tabbar {
  width: 100%;
  max-width: min(430px, 100vw);
  height: calc(64px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 98;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  transform: translateX(-50%);
  background: #1f1c1f;
}

.mine-tabbar a {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
}

.mine-tabbar img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.wheel img,
.wheel span {
  grid-area: 1 / 1;
}

.wheel img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .38));
}

.wheel span {
  align-self: end;
  margin-bottom: 58px;
  font-size: 26px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}

@media (max-width: 420px) {
  .topbar {
    gap: 8px;
    padding: 10px;
  }

  .topbar-title span {
    display: none;
  }

  .language-select {
    width: 96px;
  }

  .auth-language {
    display: none;
  }
}

@media (min-width: 768px) {
  .app-shell {
    margin-top: 18px;
    margin-bottom: 18px;
    min-height: calc(100vh - 36px);
    border-radius: 12px;
    overflow: hidden;
  }

  .app-page,
  .auth-page {
    min-height: calc(100vh - 36px);
  }
}

html[data-theme="midnight"] {
  --app-bg: #071019;
  --surface: #0e1a27;
  --surface-2: #172537;
  --ink: #f6ead4;
  --muted: #91a0b4;
  --line: #2d4158;
  --brand: #f4c979;
  --brand-2: #315b82;
  --accent: #75d1c7;
  --danger: #ff6d7a;
  --radius: 6px;
  --shadow: 0 14px 30px rgba(0, 0, 0, .42);
}

html[data-theme="champagne"] {
  --app-bg: #f6efe3;
  --surface: #fffaf1;
  --surface-2: #efe1cc;
  --ink: #212722;
  --muted: #6d766d;
  --line: #dfc7a6;
  --brand: #a56c2d;
  --brand-2: #315f59;
  --accent: #b68a3d;
  --danger: #bd3b4c;
  --radius: 6px;
  --shadow: 0 10px 26px rgba(89, 62, 31, .16);
}

html[data-theme="midnight"] body {
  background:
    linear-gradient(180deg, rgba(9, 21, 35, .96), rgba(6, 13, 22, .98)),
    var(--app-bg);
  color: var(--ink);
}

html[data-theme="champagne"] body {
  background:
    linear-gradient(180deg, #fffaf1 0%, #efe0c9 54%, #d9e3dc 100%),
    var(--app-bg);
  color: var(--ink);
}

html[data-theme="midnight"] .app-shell,
html[data-theme="champagne"] .app-shell {
  background: var(--app-bg);
  color: var(--ink);
}

html[data-theme="midnight"] .app-shell {
  box-shadow: 0 0 0 1px rgba(244, 201, 121, .1), 0 24px 70px rgba(0, 0, 0, .48);
}

html[data-theme="champagne"] .app-shell {
  box-shadow: 0 0 0 1px rgba(165, 108, 45, .12), 0 24px 70px rgba(67, 45, 20, .22);
}

html[data-theme="midnight"] .topbar,
html[data-theme="midnight"] .ref-home-header,
html[data-theme="midnight"] .mine-header,
html[data-theme="midnight"] .ref-detail-header,
html[data-theme="midnight"] .tipping-sub-header {
  background: #09131f;
  border-color: #1d3045;
  color: var(--brand);
}

html[data-theme="champagne"] .topbar,
html[data-theme="champagne"] .ref-home-header,
html[data-theme="champagne"] .mine-header,
html[data-theme="champagne"] .ref-detail-header,
html[data-theme="champagne"] .tipping-sub-header {
  background: #fff8ec;
  border-color: #e1c59d;
  color: #8d5c26;
}

html[data-theme="midnight"] .topbar-title strong,
html[data-theme="midnight"] .ref-home-header strong,
html[data-theme="champagne"] .topbar-title strong,
html[data-theme="champagne"] .ref-home-header strong {
  color: var(--brand);
}

html[data-theme="champagne"] .topbar-title span,
html[data-theme="champagne"] .muted {
  color: var(--muted);
}

html[data-theme="midnight"] .ref-home-page,
html[data-theme="midnight"] .mine-page,
html[data-theme="midnight"] .ref-detail-page,
html[data-theme="midnight"] .mine-main,
html[data-theme="midnight"] .tipping-page,
html[data-theme="midnight"] .exact-tipping-page {
  background: var(--app-bg);
  color: var(--ink);
}

html[data-theme="champagne"] .ref-home-page,
html[data-theme="champagne"] .mine-page,
html[data-theme="champagne"] .ref-detail-page,
html[data-theme="champagne"] .mine-main,
html[data-theme="champagne"] .tipping-page,
html[data-theme="champagne"] .exact-tipping-page {
  background: #f6efe3;
  color: var(--ink);
}

html[data-theme="midnight"] .ref-home-main {
  padding: 10px 12px 18px;
}

html[data-theme="champagne"] .ref-home-main {
  padding: 12px 14px 20px;
}

html[data-theme="midnight"] .ref-home-carousel,
html[data-theme="champagne"] .ref-home-carousel {
  height: 154px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

html[data-theme="midnight"] .ref-home-carousel img,
html[data-theme="champagne"] .ref-home-carousel img {
  height: 154px;
}

html[data-theme="midnight"] .ref-home-notice,
html[data-theme="midnight"] .ref-dating-button,
html[data-theme="midnight"] .ref-city-panel,
html[data-theme="midnight"] .ref-waiter-card,
html[data-theme="midnight"] .ref-hero,
html[data-theme="midnight"] .ref-panel,
html[data-theme="midnight"] .ref-user-card,
html[data-theme="midnight"] .ref-bank-card,
html[data-theme="midnight"] .ref-notice,
html[data-theme="midnight"] .ref-video,
html[data-theme="midnight"] .ref-card,
html[data-theme="midnight"] .ref-profile-card,
html[data-theme="midnight"] .ref-model,
html[data-theme="midnight"] .ref-row,
html[data-theme="midnight"] .ref-record,
html[data-theme="midnight"] .tipping-sub-card,
html[data-theme="midnight"] .tipping-start-card,
html[data-theme="midnight"] .tipping-form,
html[data-theme="midnight"] .tipping-record-item {
  border-color: var(--line);
  background:
    linear-gradient(180deg, rgba(23, 37, 55, .98), rgba(10, 20, 33, .98)),
    var(--surface);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
}

html[data-theme="champagne"] .ref-home-notice,
html[data-theme="champagne"] .ref-dating-button,
html[data-theme="champagne"] .ref-city-panel,
html[data-theme="champagne"] .ref-waiter-card,
html[data-theme="champagne"] .ref-hero,
html[data-theme="champagne"] .ref-panel,
html[data-theme="champagne"] .ref-user-card,
html[data-theme="champagne"] .ref-bank-card,
html[data-theme="champagne"] .ref-notice,
html[data-theme="champagne"] .ref-video,
html[data-theme="champagne"] .ref-card,
html[data-theme="champagne"] .ref-profile-card,
html[data-theme="champagne"] .ref-model,
html[data-theme="champagne"] .ref-row,
html[data-theme="champagne"] .ref-record,
html[data-theme="champagne"] .tipping-sub-card,
html[data-theme="champagne"] .tipping-start-card,
html[data-theme="champagne"] .tipping-form,
html[data-theme="champagne"] .tipping-record-item {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

html[data-theme="midnight"] .ref-home-notice-track,
html[data-theme="midnight"] .ref-dating-button,
html[data-theme="midnight"] .ref-dating-button span,
html[data-theme="midnight"] .ref-city-panel h2,
html[data-theme="midnight"] .ref-card strong,
html[data-theme="midnight"] .ref-profile-card strong,
html[data-theme="midnight"] .ref-model strong,
html[data-theme="midnight"] .ref-record strong,
html[data-theme="midnight"] .ref-user-card h1,
html[data-theme="midnight"] .ref-user-card a,
html[data-theme="midnight"] .ref-detail-info b,
html[data-theme="midnight"] .ref-detail-stars {
  color: var(--brand);
}

html[data-theme="champagne"] .ref-home-notice-track,
html[data-theme="champagne"] .ref-dating-button,
html[data-theme="champagne"] .ref-dating-button span,
html[data-theme="champagne"] .ref-city-panel h2,
html[data-theme="champagne"] .ref-card strong,
html[data-theme="champagne"] .ref-profile-card strong,
html[data-theme="champagne"] .ref-model strong,
html[data-theme="champagne"] .ref-record strong,
html[data-theme="champagne"] .ref-user-card h1,
html[data-theme="champagne"] .ref-user-card a,
html[data-theme="champagne"] .ref-detail-info b,
html[data-theme="champagne"] .ref-detail-stars {
  color: var(--brand);
}

html[data-theme="midnight"] .ref-city-panel h2::before {
  background: var(--accent);
}

html[data-theme="champagne"] .ref-city-panel h2::before {
  background: var(--brand-2);
}

html[data-theme="midnight"] .ref-home-banner {
  background:
    linear-gradient(135deg, rgba(49, 91, 130, .92), rgba(9, 19, 31, .94)),
    #0e1a27;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(244, 201, 121, .16);
}

html[data-theme="champagne"] .ref-home-banner {
  background:
    linear-gradient(135deg, #fff7ea 0%, #eacb9b 58%, #a9c2b7 100%),
    #f6efe3;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(165, 108, 45, .18);
}

html[data-theme="midnight"] .ref-home-banner h1,
html[data-theme="midnight"] .ref-home-banner p {
  color: #fff3d6;
}

html[data-theme="champagne"] .ref-home-banner h1,
html[data-theme="champagne"] .ref-home-banner p {
  color: #22342e;
}

html[data-theme="midnight"] .ref-city-grid a,
html[data-theme="midnight"] .ref-waiter-card p,
html[data-theme="midnight"] .ref-detail-info h1,
html[data-theme="midnight"] .ref-detail-info p,
html[data-theme="midnight"] .ref-detail-info span,
html[data-theme="midnight"] .ref-detail-section-title {
  color: var(--ink);
}

html[data-theme="champagne"] .ref-city-grid a,
html[data-theme="champagne"] .ref-waiter-card p,
html[data-theme="champagne"] .ref-detail-info h1,
html[data-theme="champagne"] .ref-detail-info p,
html[data-theme="champagne"] .ref-detail-info span,
html[data-theme="champagne"] .ref-detail-section-title {
  color: var(--ink);
}

html[data-theme="midnight"] .ref-waiter-card {
  margin: 10px 8px;
  padding: 13px 18px 13px 14px;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 12px;
}

html[data-theme="champagne"] .ref-waiter-card {
  margin: 12px 4px;
  padding: 14px 16px 14px 14px;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 14px;
}

html[data-theme="midnight"] .ref-waiter-photo,
html[data-theme="champagne"] .ref-waiter-photo {
  width: 92px;
  height: 92px;
}

html[data-theme="midnight"] .ref-waiter-card strong {
  width: 110px;
  background: linear-gradient(90deg, #f4c979, #d79a43);
  color: #132034;
}

html[data-theme="champagne"] .ref-waiter-card strong {
  width: 112px;
  background: #315f59;
  color: #fffaf1;
}

html[data-theme="midnight"] .ref-waiter-stats span,
html[data-theme="champagne"] .ref-waiter-stats span,
html[data-theme="midnight"] .ref-card span,
html[data-theme="midnight"] .ref-profile-card span,
html[data-theme="midnight"] .ref-model span,
html[data-theme="midnight"] .ref-record span,
html[data-theme="champagne"] .ref-card span,
html[data-theme="champagne"] .ref-profile-card span,
html[data-theme="champagne"] .ref-model span,
html[data-theme="champagne"] .ref-record span {
  color: var(--muted);
}

html[data-theme="midnight"] .ref-tabbar,
html[data-theme="midnight"] .mine-tabbar,
html[data-theme="midnight"] .tipping-tabbar,
html[data-theme="midnight"] .bottom-nav {
  background: rgba(7, 16, 25, .98);
  border-top: 1px solid #1d3045;
  box-shadow: 0 -12px 24px rgba(0, 0, 0, .22);
}

html[data-theme="champagne"] .ref-tabbar,
html[data-theme="champagne"] .mine-tabbar,
html[data-theme="champagne"] .tipping-tabbar,
html[data-theme="champagne"] .bottom-nav {
  background: rgba(255, 248, 236, .98);
  border-top: 1px solid #e1c59d;
  box-shadow: 0 -12px 24px rgba(112, 80, 39, .12);
}

html[data-theme="midnight"] .ref-tabbar a,
html[data-theme="midnight"] .mine-tabbar a,
html[data-theme="midnight"] .tipping-tabbar a,
html[data-theme="midnight"] .bottom-nav a {
  color: #91a0b4;
}

html[data-theme="champagne"] .ref-tabbar a,
html[data-theme="champagne"] .mine-tabbar a,
html[data-theme="champagne"] .tipping-tabbar a,
html[data-theme="champagne"] .bottom-nav a {
  color: #6d766d;
}

html[data-theme="midnight"] .ref-tabbar a.active,
html[data-theme="midnight"] .tipping-tabbar a.active,
html[data-theme="midnight"] .bottom-nav a.active {
  color: var(--brand);
  background: rgba(244, 201, 121, .12);
  box-shadow: inset 0 0 0 1px rgba(244, 201, 121, .18);
}

html[data-theme="champagne"] .ref-tabbar a.active,
html[data-theme="champagne"] .tipping-tabbar a.active,
html[data-theme="champagne"] .bottom-nav a.active {
  color: var(--brand);
  background: rgba(165, 108, 45, .12);
  box-shadow: inset 0 0 0 1px rgba(165, 108, 45, .18);
}

html[data-theme="midnight"] .mine-profile {
  min-height: 92px;
  background: linear-gradient(135deg, #315b82, #0e1a27);
}

html[data-theme="champagne"] .mine-profile {
  min-height: 92px;
  background: linear-gradient(135deg, #f3d6a9, #a9c2b7);
}

html[data-theme="midnight"] .mine-profile strong,
html[data-theme="midnight"] .mine-profile span {
  color: #fff3d6;
}

html[data-theme="champagne"] .mine-profile strong,
html[data-theme="champagne"] .mine-profile span {
  color: #1f2d28;
}

html[data-theme="midnight"] .mine-row {
  color: var(--brand);
}

html[data-theme="champagne"] .mine-row {
  color: #315f59;
}

html[data-theme="midnight"] .mine-row b,
html[data-theme="champagne"] .mine-row b {
  color: var(--brand);
}

html[data-theme="midnight"] .tipping-sub-main {
  background:
    linear-gradient(180deg, rgba(7, 16, 25, .78), rgba(7, 16, 25, .98)),
    url("../ref/tipping/bg.05b95674.png") center top / 100% auto no-repeat,
    var(--app-bg);
}

html[data-theme="champagne"] .tipping-sub-main {
  background:
    linear-gradient(180deg, rgba(255, 248, 236, .92), rgba(246, 239, 227, .98)),
    url("../ref/tipping/bg.05b95674.png") center top / 100% auto no-repeat,
    #f6efe3;
}

html[data-theme="midnight"] .tipping-sub-card p,
html[data-theme="midnight"] .tipping-start-card p,
html[data-theme="midnight"] .tipping-record-item span {
  color: var(--muted);
}

html[data-theme="champagne"] .tipping-sub-card p,
html[data-theme="champagne"] .tipping-start-card p,
html[data-theme="champagne"] .tipping-record-item span {
  color: var(--muted);
}

html[data-theme="midnight"] .tipping-record-item b,
html[data-theme="champagne"] .tipping-record-item b {
  color: var(--brand);
}

html[data-theme="midnight"] .tipping-start-card button,
html[data-theme="midnight"] .tipping-form button {
  color: #132034;
  background: linear-gradient(180deg, #f4c979, #d79a43);
}

html[data-theme="champagne"] .tipping-start-card button,
html[data-theme="champagne"] .tipping-form button {
  color: #fffaf1;
  background: linear-gradient(180deg, #315f59, #23423e);
}

html[data-theme="midnight"] .tipping-form label,
html[data-theme="midnight"] .tipping-form input {
  color: var(--ink);
}

html[data-theme="champagne"] .tipping-form label,
html[data-theme="champagne"] .tipping-form input {
  color: var(--ink);
}

html[data-theme="midnight"] .tipping-form input {
  border-color: var(--line);
  background: #09131f;
}

html[data-theme="champagne"] .tipping-form input {
  border-color: var(--line);
  background: #fffdf8;
}

html[data-theme="midnight"] .auth-page::after {
  background: rgba(3, 9, 16, .68);
}

html[data-theme="champagne"] .auth-page::after {
  background: rgba(255, 244, 229, .28);
}

html[data-theme="midnight"] .exact-auth-input,
html[data-theme="midnight"] .form-control,
html[data-theme="midnight"] .form-select,
html[data-theme="midnight"] textarea.form-control {
  color: var(--ink);
  border-color: var(--line);
  background-color: rgba(9, 19, 31, .92);
}

html[data-theme="champagne"] .exact-auth-input,
html[data-theme="champagne"] .form-control,
html[data-theme="champagne"] .form-select,
html[data-theme="champagne"] textarea.form-control {
  color: var(--ink);
  border-color: var(--line);
  background-color: rgba(255, 250, 241, .94);
}

html[data-theme="midnight"] .exact-auth-submit,
html[data-theme="midnight"] .btn-brand,
html[data-theme="champagne"] .exact-auth-submit,
html[data-theme="champagne"] .btn-brand {
  border: 0;
}

html[data-theme="midnight"] .exact-auth-submit,
html[data-theme="midnight"] .btn-brand {
  color: #132034;
  background: linear-gradient(180deg, #f4c979, #d79a43);
}

html[data-theme="champagne"] .exact-auth-submit,
html[data-theme="champagne"] .btn-brand {
  color: #fffaf1;
  background: linear-gradient(180deg, #315f59, #23423e);
}

html[data-theme="midnight"] .auth-link-row a,
html[data-theme="midnight"] .auth-form-card a,
html[data-theme="champagne"] .auth-link-row a,
html[data-theme="champagne"] .auth-form-card a {
  color: var(--brand);
}

html[data-theme="champagne"] .auth-title-box h1,
html[data-theme="champagne"] .auth-title-box p,
html[data-theme="champagne"] .auth-logo-box p {
  color: #fffaf1;
}

html[data-theme="midnight"] {
  --app-bg: #1b0710;
  --surface: #2a1019;
  --surface-2: #3a1623;
  --ink: #fff1e7;
  --muted: #c9939e;
  --line: #653044;
  --brand: #ffbea9;
  --brand-2: #a93d5a;
  --accent: #f0a05f;
  --danger: #ff657f;
  --radius: 6px;
  --shadow: 0 16px 34px rgba(45, 5, 18, .42);
}

html[data-theme="midnight"] body {
  background:
    linear-gradient(180deg, rgba(53, 10, 27, .96), rgba(20, 4, 13, .98)),
    var(--app-bg);
  color: var(--ink);
}

html[data-theme="midnight"] .app-shell {
  background: var(--app-bg);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(255, 190, 169, .12), 0 24px 70px rgba(45, 5, 18, .46);
}

html[data-theme="midnight"] .topbar,
html[data-theme="midnight"] .ref-home-header,
html[data-theme="midnight"] .mine-header,
html[data-theme="midnight"] .ref-detail-header,
html[data-theme="midnight"] .tipping-sub-header,
html[data-theme="midnight"] .exact-tipping-navbar,
html[data-theme="midnight"] .exact-password-nav {
  background: #210812;
  border-color: var(--line);
  color: var(--brand);
}

html[data-theme="midnight"] .topbar-title strong,
html[data-theme="midnight"] .ref-home-header strong,
html[data-theme="midnight"] .exact-tipping-title,
html[data-theme="midnight"] .exact-password-nav strong {
  color: var(--brand);
}

html[data-theme="midnight"] .ref-home-page,
html[data-theme="midnight"] .mine-page,
html[data-theme="midnight"] .ref-detail-page,
html[data-theme="midnight"] .tipping-page,
html[data-theme="midnight"] .exact-tipping-page,
html[data-theme="midnight"] .exact-lottery-page,
html[data-theme="midnight"] .exact-password-page {
  background: var(--app-bg);
  color: var(--ink);
}

html[data-theme="midnight"] .ref-home-banner {
  background:
    linear-gradient(135deg, rgba(169, 61, 90, .94), rgba(47, 10, 25, .96)),
    #2a1019;
  box-shadow: inset 0 0 0 1px rgba(255, 190, 169, .2);
}

html[data-theme="midnight"] .ref-home-banner h1,
html[data-theme="midnight"] .ref-home-banner p {
  color: #fff1e7;
}

html[data-theme="midnight"] .ref-home-notice,
html[data-theme="midnight"] .ref-dating-button,
html[data-theme="midnight"] .ref-city-panel,
html[data-theme="midnight"] .ref-waiter-card,
html[data-theme="midnight"] .ref-hero,
html[data-theme="midnight"] .ref-panel,
html[data-theme="midnight"] .ref-user-card,
html[data-theme="midnight"] .ref-bank-card,
html[data-theme="midnight"] .ref-notice,
html[data-theme="midnight"] .ref-video,
html[data-theme="midnight"] .ref-card,
html[data-theme="midnight"] .ref-profile-card,
html[data-theme="midnight"] .ref-model,
html[data-theme="midnight"] .ref-row,
html[data-theme="midnight"] .ref-record {
  border-color: var(--line);
  background:
    linear-gradient(180deg, rgba(58, 22, 35, .98), rgba(32, 9, 19, .98)),
    var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

html[data-theme="midnight"] .ref-home-notice-track,
html[data-theme="midnight"] .ref-dating-button,
html[data-theme="midnight"] .ref-dating-button span,
html[data-theme="midnight"] .ref-city-panel h2,
html[data-theme="midnight"] .ref-card strong,
html[data-theme="midnight"] .ref-profile-card strong,
html[data-theme="midnight"] .ref-model strong,
html[data-theme="midnight"] .ref-record strong,
html[data-theme="midnight"] .ref-user-card h1,
html[data-theme="midnight"] .ref-user-card a,
html[data-theme="midnight"] .ref-detail-info b,
html[data-theme="midnight"] .ref-detail-stars {
  color: var(--brand);
}

html[data-theme="midnight"] .ref-city-panel h2::before {
  background: var(--accent);
}

html[data-theme="midnight"] .ref-city-grid a,
html[data-theme="midnight"] .ref-waiter-card p,
html[data-theme="midnight"] .ref-detail-info h1,
html[data-theme="midnight"] .ref-detail-info p,
html[data-theme="midnight"] .ref-detail-info span,
html[data-theme="midnight"] .ref-detail-section-title {
  color: var(--ink);
}

html[data-theme="midnight"] .ref-waiter-card strong {
  background: linear-gradient(90deg, #ffbea9, #e3777c);
  color: #3a0718;
}

html[data-theme="midnight"] .ref-waiter-stats span,
html[data-theme="midnight"] .ref-card span,
html[data-theme="midnight"] .ref-profile-card span,
html[data-theme="midnight"] .ref-model span,
html[data-theme="midnight"] .ref-record span {
  color: var(--muted);
}

html[data-theme="midnight"] .tipping-main {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 190, 169, .22), transparent 28%),
    linear-gradient(180deg, rgba(70, 13, 34, .84), rgba(27, 7, 16, .96) 56%, #1b0710),
    url("../ref/tipping/bg.05b95674.png") center top / 100% auto no-repeat,
    var(--app-bg);
}

html[data-theme="midnight"] .tipping-userinfo h1 {
  color: #fff1e7;
  text-shadow: 0 2px 18px rgba(88, 16, 36, .65);
}

html[data-theme="midnight"] .tipping-stat {
  min-height: min(18vw, 77.4px);
  padding: min(3vw, 12.9px);
  border: 1px solid rgba(255, 190, 169, .2);
  border-radius: min(3vw, 12.9px);
  background: rgba(42, 16, 25, .72);
  box-shadow: 0 10px 28px rgba(28, 4, 14, .22);
}

html[data-theme="midnight"] .tipping-stat span {
  color: #ffbea9;
}

html[data-theme="midnight"] .tipping-stat strong {
  color: #fff;
}

html[data-theme="midnight"] .tipping-order-card {
  border-radius: min(3vw, 12.9px);
  filter: drop-shadow(0 10px 18px rgba(28, 4, 14, .28));
}

html[data-theme="midnight"] .tipping-order-card > span {
  color: #4a1220;
}

html[data-theme="midnight"] .tipping-vip {
  border: 1px solid rgba(255, 190, 169, .22);
  border-radius: min(2.6vw, 11.18px);
  background:
    linear-gradient(90deg, rgba(58, 22, 35, .94), rgba(35, 9, 20, .96)),
    url("../ref/tipping/vip.14fa0a6d.png") center / 100% 100% no-repeat;
  box-shadow: 0 12px 28px rgba(28, 4, 14, .28);
}

html[data-theme="midnight"] .tipping-vip strong,
html[data-theme="midnight"] .tipping-vip span {
  color: #fff1e7;
}

html[data-theme="midnight"] .tipping-vip b {
  color: var(--brand);
}

html[data-theme="midnight"] .tipping-vip i,
html[data-theme="midnight"] .tipping-menu-item i {
  color: #f0a05f;
}

html[data-theme="midnight"] .tipping-menu-list {
  border: 1px solid rgba(255, 190, 169, .2);
  background: rgba(42, 16, 25, .92);
  box-shadow: 0 14px 30px rgba(28, 4, 14, .25);
}

html[data-theme="midnight"] .tipping-menu-item {
  color: #fff1e7;
  border-bottom-color: rgba(255, 190, 169, .16);
}

html[data-theme="midnight"] .tipping-menu-left img {
  filter: saturate(1.08) contrast(1.04);
}

html[data-theme="midnight"] .tipping-tabbar,
html[data-theme="midnight"] .ref-tabbar,
html[data-theme="midnight"] .mine-tabbar,
html[data-theme="midnight"] .bottom-nav {
  background: rgba(27, 7, 16, .98);
  border-top: 1px solid rgba(255, 190, 169, .16);
  box-shadow: 0 -14px 28px rgba(28, 4, 14, .35);
}

html[data-theme="midnight"] .tipping-tabbar a,
html[data-theme="midnight"] .ref-tabbar a,
html[data-theme="midnight"] .mine-tabbar a,
html[data-theme="midnight"] .bottom-nav a {
  color: #c9939e;
}

html[data-theme="midnight"] .tipping-tabbar a.active,
html[data-theme="midnight"] .ref-tabbar a.active,
html[data-theme="midnight"] .bottom-nav a.active {
  color: var(--brand);
  background: rgba(255, 190, 169, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 190, 169, .16);
}

html[data-theme="midnight"] .tipping-sub-main {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 190, 169, .18), transparent 26%),
    linear-gradient(180deg, rgba(54, 12, 27, .88), rgba(27, 7, 16, .98)),
    url("../ref/tipping/bg.05b95674.png") center top / 100% auto no-repeat,
    var(--app-bg);
}

html[data-theme="midnight"] .tipping-sub-card,
html[data-theme="midnight"] .tipping-start-card,
html[data-theme="midnight"] .tipping-form,
html[data-theme="midnight"] .tipping-record-item {
  border: 1px solid rgba(255, 190, 169, .18);
  background:
    linear-gradient(180deg, rgba(58, 22, 35, .98), rgba(35, 9, 20, .98)),
    var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

html[data-theme="midnight"] .tipping-sub-card p,
html[data-theme="midnight"] .tipping-start-card p,
html[data-theme="midnight"] .tipping-record-item span {
  color: var(--muted);
}

html[data-theme="midnight"] .tipping-record-item b,
html[data-theme="midnight"] .tipping-sub-card h2,
html[data-theme="midnight"] .tipping-start-card h1 {
  color: var(--brand);
}

html[data-theme="midnight"] .tipping-start-card button,
html[data-theme="midnight"] .tipping-form button,
html[data-theme="midnight"] .exact-recharge-confirm,
html[data-theme="midnight"] .exact-lottery-draw,
html[data-theme="midnight"] .exact-password-form button {
  color: #3a0718;
  background: linear-gradient(180deg, #ffd0bd, #e3777c);
}

html[data-theme="midnight"] .tipping-form label,
html[data-theme="midnight"] .tipping-form input {
  color: var(--ink);
}

html[data-theme="midnight"] .tipping-form input {
  border-color: var(--line);
  background: rgba(27, 7, 16, .92);
}

html[data-theme="midnight"] .exact-order-content,
html[data-theme="midnight"] .exact-recharge,
html[data-theme="midnight"] .exact-recharge-body,
html[data-theme="midnight"] .exact-vip-list,
html[data-theme="midnight"] .exact-lottery-page,
html[data-theme="midnight"] .exact-password-main {
  background: var(--app-bg);
}

html[data-theme="midnight"] .exact-recharge-balance {
  color: #3a0718;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, .25), transparent 18%),
    linear-gradient(115deg, #ffd0bd, #d65d72 58%, #8f2647);
}

html[data-theme="midnight"] .exact-recharge-money-input,
html[data-theme="midnight"] .exact-recharge-title,
html[data-theme="midnight"] .exact-recharge-tips,
html[data-theme="midnight"] .exact-order-tab.active,
html[data-theme="midnight"] .exact-vip-level,
html[data-theme="midnight"] .exact-lottery-value h2,
html[data-theme="midnight"] .exact-lottery-record-title,
html[data-theme="midnight"] .exact-lottery-record b {
  color: var(--brand);
}

html[data-theme="midnight"] .exact-order-tabs,
html[data-theme="midnight"] .exact-order-tab,
html[data-theme="midnight"] .exact-vip-info,
html[data-theme="midnight"] .exact-vip-quantity,
html[data-theme="midnight"] .exact-lottery-balance,
html[data-theme="midnight"] .exact-lottery-balance b,
html[data-theme="midnight"] .exact-lottery-desc,
html[data-theme="midnight"] .exact-lottery-record {
  color: var(--ink);
}

html[data-theme="midnight"] .exact-money-item,
html[data-theme="midnight"] .exact-vip-item {
  border: 1px solid rgba(255, 190, 169, .15);
  background: linear-gradient(180deg, #3a1623, #240b16);
  color: #fff1e7;
}

html[data-theme="midnight"] .exact-vip-recharge {
  color: var(--muted);
}

html[data-theme="midnight"] .exact-password-field span {
  color: var(--brand);
}

html[data-theme="midnight"] .exact-password-field input {
  border-color: var(--line);
  color: var(--brand);
  background: linear-gradient(120deg, #2a1019, #3a1623);
}

html[data-theme="midnight"] .exact-password-field input::placeholder {
  color: var(--brand);
}

html[data-theme="champagne"] .tipping-main {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .78), transparent 27%),
    linear-gradient(180deg, rgba(255, 248, 236, .9), rgba(246, 239, 227, .98) 52%, #f6efe3),
    url("../ref/tipping/bg.05b95674.png") center top / 100% auto no-repeat,
    #f6efe3;
}

html[data-theme="champagne"] .tipping-userinfo h1 {
  color: #22342e;
  text-shadow: 0 2px 14px rgba(255, 255, 255, .74);
}

html[data-theme="champagne"] .tipping-stat {
  min-height: min(18vw, 77.4px);
  padding: min(3vw, 12.9px);
  border: 1px solid rgba(165, 108, 45, .18);
  border-radius: min(3vw, 12.9px);
  background: rgba(255, 250, 241, .8);
  box-shadow: 0 10px 22px rgba(112, 80, 39, .12);
}

html[data-theme="champagne"] .tipping-stat span {
  color: #8d5c26;
}

html[data-theme="champagne"] .tipping-stat strong {
  color: #22342e;
}

html[data-theme="champagne"] .tipping-order-card {
  border-radius: min(3vw, 12.9px);
  filter: drop-shadow(0 10px 18px rgba(112, 80, 39, .12));
}

html[data-theme="champagne"] .tipping-order-card > span {
  color: #1f2d28;
}

html[data-theme="champagne"] .tipping-vip {
  border: 1px solid rgba(165, 108, 45, .18);
  border-radius: min(2.6vw, 11.18px);
  background:
    linear-gradient(90deg, rgba(255, 250, 241, .94), rgba(239, 225, 204, .95)),
    url("../ref/tipping/vip.14fa0a6d.png") center / 100% 100% no-repeat;
  box-shadow: 0 10px 22px rgba(112, 80, 39, .12);
}

html[data-theme="champagne"] .tipping-vip strong,
html[data-theme="champagne"] .tipping-vip span {
  color: #22342e;
}

html[data-theme="champagne"] .tipping-vip b {
  color: #a56c2d;
}

html[data-theme="champagne"] .tipping-vip i,
html[data-theme="champagne"] .tipping-menu-item i {
  color: #315f59;
}

html[data-theme="champagne"] .tipping-menu-list {
  border: 1px solid rgba(165, 108, 45, .18);
  background: rgba(255, 250, 241, .96);
  box-shadow: 0 14px 26px rgba(112, 80, 39, .12);
}

html[data-theme="champagne"] .tipping-menu-item {
  color: #22342e;
  border-bottom-color: rgba(49, 95, 89, .24);
}

html[data-theme="champagne"] .tipping-menu-left img {
  filter: saturate(1.02) contrast(1.02);
}
