:root {
  --zzz-ink: #082a52;
  --zzz-muted: #5e7695;
  --zzz-line: rgba(82, 154, 205, 0.22);
  --zzz-card: rgba(255, 255, 255, 0.78);
  --zzz-glass: rgba(255, 255, 255, 0.58);
  --zzz-cyan: #28d8c4;
  --zzz-blue: #28a9ff;
  --zzz-lime: #beff7c;
  --zzz-shadow: 0 24px 60px rgba(22, 116, 170, 0.22);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #dff8ff; }
body {
  min-height: 100%;
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", sans-serif;
  color: var(--zzz-ink);
  background:
    radial-gradient(circle at 50% 12%, rgba(255,255,255,.95), rgba(255,255,255,0) 30%),
    linear-gradient(180deg, #91ecff 0%, #dff7ff 32%, #f9fdff 72%);
  -webkit-font-smoothing: antialiased;
}
button, a, input { font: inherit; pointer-events: auto; }
button, a { -webkit-tap-highlight-color: rgba(34,216,196,.22); }
button { border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
html,
body {
  overflow-x: hidden;
}

.app-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 14px calc(104px + env(safe-area-inset-bottom));
  position: relative;
  overflow: hidden;
}
.app-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 8%, rgba(255,255,255,.88), transparent 22%),
    radial-gradient(circle at 82% 12%, rgba(171,242,255,.95), transparent 28%),
    linear-gradient(180deg, #48d5f1 0%, #e6fbff 52%, #fff 100%);
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  position: relative;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-weight: 900;
  letter-spacing: -.02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 16px;
  color: #073063;
  font-family: Georgia, serif;
  font-weight: 900;
  background: conic-gradient(from 20deg, #3de1d6, #48a8ff, #886cff, #ff6aa8, #ffd96a, #3de1d6);
  box-shadow: 0 8px 24px rgba(0, 119, 180, .22), inset 0 0 0 4px rgba(255,255,255,.72);
}
.brand strong { display: block; font-size: 21px; line-height: 1; }
.brand small { display: block; margin-top: 4px; font-size: 11px; color: rgba(8,42,82,.72); }
.mode-tabs {
  grid-column: 1 / -1;
  justify-self: center;
  display: flex;
  padding: 5px;
  border-radius: 22px;
  background: rgba(255,255,255,.38);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.65);
}
.mode-tab {
  min-width: 104px;
  padding: 9px 18px;
  border-radius: 18px;
  color: rgba(8,42,82,.52);
  background: transparent;
  font-weight: 800;
}
.mode-tab.active {
  color: var(--zzz-ink);
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 20px rgba(0,92,160,.12);
}
.top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.login-pill, .icon-btn {
  min-height: 36px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255,255,255,.58);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.74);
  color: var(--zzz-ink);
  font-weight: 800;
  white-space: nowrap;
}
.icon-btn { width: 38px; padding: 8px; display: grid; place-items: center; }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.search-box { position: relative; width: 128px; }
.search-input {
  width: 100%;
  min-height: 36px;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255,255,255,.68);
  color: var(--zzz-ink);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.78);
}
.search-results {
  position: absolute;
  top: 42px;
  right: 0;
  width: min(320px, 88vw);
  z-index: 80;
  border-radius: 18px;
  padding: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: var(--zzz-shadow);
}
.search-result-item {
  display: grid;
  width: 100%;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  background: transparent;
  color: var(--zzz-ink);
  text-align: left;
}
.search-result-item:active { background: #e7fbff; }
.search-result-item span, .search-empty { color: var(--zzz-muted); font-size: 12px; }
.search-empty { padding: 12px; }

.spin-screen { position: relative; z-index: 1; }
.spin-copy { text-align: center; padding: 8px 4px 4px; }
.eyebrow {
  display: none !important;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #168b92;
  background: rgba(255,255,255,.36);
  font-size: 13px;
  font-weight: 800;
}
.spin-copy h1 {
  margin: 0 auto 10px;
  max-width: 360px;
  font-size: clamp(34px, 10vw, 46px);
  line-height: 1.05;
  letter-spacing: -.07em;
  color: #062956;
  text-shadow: 0 5px 0 rgba(255,255,255,.45);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 0 auto 10px;
}
.stats-row span {
  padding: 10px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 8px 18px rgba(15,130,180,.1);
  font-size: 13px;
  font-weight: 900;
}
.topic-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 0 0 8px;
}
.topic-chip {
  min-height: 72px;
  border-radius: 18px;
  padding: 8px 6px;
  color: var(--zzz-ink);
  background: rgba(255,255,255,.82);
  box-shadow: 0 12px 28px rgba(20,122,180,.12);
  font-size: 13px;
  font-weight: 900;
}
.topic-chip span { display: block; font-size: 22px; margin-bottom: 3px; }
.topic-chip.active {
  color: #fff;
  background: linear-gradient(135deg, #25d6bf, #269dff 62%, #8b71ff);
}
.scope-strip, .filter-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 10px;
  scrollbar-width: none;
}
.scope-strip::-webkit-scrollbar, .filter-strip::-webkit-scrollbar { display: none; }
.scope-chip, .filter-chip {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 0 0 1px rgba(20,144,180,.16);
  color: var(--zzz-ink);
  font-size: 13px;
  font-weight: 900;
}
.scope-chip.active, .filter-chip.active {
  background: #d9ff9a;
  box-shadow: inset 0 0 0 1px #35d2c1, 0 6px 16px rgba(18,170,160,.18);
}

.wheel-stage {
  position: relative;
  width: min(100%, 390px);
  aspect-ratio: 1;
  margin: -10px auto 12px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,.96) 0 16%, rgba(255,255,255,.2) 17% 100%),
    linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,.08));
  box-shadow: 0 22px 50px rgba(0,135,190,.2), inset 0 0 0 8px rgba(255,255,255,.55);
}
.pointer {
  position: absolute;
  top: -2px;
  left: 50%;
  width: 76px;
  height: 106px;
  transform: translateX(-50%);
  z-index: 8;
  pointer-events: none;
  filter: drop-shadow(0 12px 14px rgba(16,61,98,.25));
}
.pointer::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0, 76% 66%, 50% 100%, 24% 66%);
  background: linear-gradient(180deg, #fff7b8, #ffc85a 42%, #2a77d6 43%, #53e3ff 100%);
}
#wheelCanvas { width: 100%; height: 100%; display: block; pointer-events: none !important; }
.center-badge {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  color: #083261;
  background: radial-gradient(circle at 50% 35%, #fff, #eaf9ff);
  box-shadow: 0 10px 24px rgba(0,104,160,.22), inset 0 0 0 6px rgba(255,255,255,.9);
  font-family: Georgia, serif;
}
.center-badge span { font-size: 34px; line-height: .9; font-weight: 900; }
.center-badge small { margin-top: -18px; font-family: inherit; font-size: 13px; font-weight: 900; }
.action-bar { display: grid; gap: 10px; margin: 0 12px 14px; }
.primary-action, .secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 56px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 950;
}
.primary-action {
  color: #fff;
  background: linear-gradient(135deg, #18ddc4, #20a7ff 55%, #20c389);
  box-shadow: 0 18px 34px rgba(0,151,177,.28), inset 0 0 0 1px rgba(255,255,255,.42);
}
.secondary-action {
  color: var(--zzz-ink);
  background: rgba(255,255,255,.78);
  box-shadow: inset 0 0 0 1px rgba(22,133,190,.16);
}
.primary-action svg, .secondary-action svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.3; }

.result-panel, .guide-panel, .world-panel {
  margin: 12px 0;
  padding: 16px;
  border-radius: 26px;
  background: var(--zzz-card);
  box-shadow: var(--zzz-shadow), inset 0 0 0 1px rgba(255,255,255,.78);
  backdrop-filter: blur(16px);
}
.result-popup-close {
  display: none;
}
.live-heat { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--zzz-muted); font-size: 12px; font-weight: 800; }
.result-kicker { margin: 0; color: #009d9b; }
.guide-badge { padding: 4px 8px; border-radius: 999px; color: #057a77; background: #dcff9e; }
.result-panel h2 { margin: 8px 0 2px; font-size: 32px; }
.result-panel p { color: var(--zzz-muted); }
.persona-card { margin-top: 12px; padding: 14px; border-radius: 20px; background: linear-gradient(135deg, rgba(102,231,220,.7), rgba(255,255,255,.72)); }
.persona-card span { display: inline-block; padding: 5px 10px; border-radius: 999px; background: rgba(0,164,152,.18); color: #07847d; font-size: 12px; font-weight: 900; }
.persona-card strong { display: block; margin-top: 8px; font-size: 15px; }
.spot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 14px; }
.spot-grid article { min-height: 72px; padding: 10px; border-radius: 16px; background: rgba(255,255,255,.72); }
.spot-grid strong { color: #00a698; }
.spot-grid span { display: block; margin-top: 4px; font-weight: 900; }
.result-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.text-action { padding: 8px 12px; border-radius: 999px; color: #087e88; background: #e7fbff; font-weight: 800; }
.section-heading p { margin: 0; color: #00a698; font-weight: 900; }
.section-heading h2 { margin: 4px 0 14px; }
.guide-layout { display: grid; gap: 10px; }
.guide-block { padding: 12px; border-radius: 18px; background: rgba(255,255,255,.62); }
.guide-block h3 { margin: 0 0 8px; }
.guide-block ol { margin: 0; padding-left: 20px; color: var(--zzz-muted); }
.tag-cloud { display: flex; gap: 7px; flex-wrap: wrap; }
.tag-cloud span { padding: 5px 10px; border-radius: 999px; background: #e8fbff; color: #087e88; font-size: 12px; font-weight: 800; }
.search-link { display: inline-flex; margin-top: 12px; color: #087e88; font-weight: 900; }
.world-grid { display: grid; gap: 10px; }
.world-grid article { padding: 14px; border-radius: 18px; background: rgba(255,255,255,.66); }
.world-grid span { color: #00a698; font-weight: 900; }
.world-grid strong { display: block; margin: 4px 0; }
.world-grid p { margin: 0; color: var(--zzz-muted); }

.zzz-mobile-dock {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 100;
  width: min(380px, calc(100vw - 28px));
  height: 66px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 18px 42px rgba(0,103,160,.22), inset 0 0 0 1px rgba(255,255,255,.78);
  backdrop-filter: blur(18px);
}
.zzz-dock-item {
  display: grid;
  place-items: center;
  gap: 2px;
  color: #6d7f97;
  background: transparent;
  font-size: 15px;
  font-weight: 900;
}
.zzz-dock-item strong { font-size: 10px; }
.zzz-dock-item.active { color: #00a99a; }
.zzz-dock-plus {
  width: 58px;
  height: 58px;
  margin: -16px auto 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #23dcc8, #26a7ff);
  font-size: 38px;
  line-height: 1;
  box-shadow: 0 14px 30px rgba(0, 133, 170, 0.32), 0 0 0 6px rgba(255,255,255,.78);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: end center;
  padding: 16px;
  background: rgba(3,24,48,.38);
  backdrop-filter: blur(8px);
}
.auth-card {
  width: min(100%, 390px);
  padding: 20px;
  border-radius: 30px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 30px 80px rgba(0,45,90,.28);
  position: relative;
}
.auth-close { position: absolute; right: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%; background: #eef7ff; color: var(--zzz-ink); font-size: 22px; }
.auth-note, .mini-policy { color: var(--zzz-muted); }
.auth-methods { display: flex; gap: 8px; margin: 14px 0; }
.auth-method { flex: 1; min-height: 42px; border-radius: 999px; color: var(--zzz-ink); background: #eef8ff; font-weight: 900; }
.auth-method.active { color: #fff; background: linear-gradient(135deg, #21dac5, #28a9ff); }
.wechat-login, .phone-submit, #sendCode {
  min-height: 44px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #21dac5, #28a9ff);
  font-weight: 900;
}
.wechat-login { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.wechat-login svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.auth-pane label { display: grid; gap: 6px; margin: 10px 0; color: var(--zzz-muted); font-weight: 800; }
.auth-pane input { min-height: 44px; border: 0; outline: 0; border-radius: 14px; padding: 0 12px; background: #eef8ff; color: var(--zzz-ink); }
.code-row { display: grid; grid-template-columns: 1fr 88px; gap: 8px; }
.phone-submit { width: 100%; margin-top: 8px; }
.poster-canvas { display: none; }
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 180;
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  max-width: min(360px, calc(100vw - 32px));
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(5,45,82,.86);
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
  transition: opacity .18s ease, transform .18s ease;
  font-size: 13px;
  font-weight: 800;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* home-lite-5: app polish, touch states, compact short-screen layout */
.zzz-home-ready .app-shell {
  animation: zzzEnter .42s ease both;
}

/* home-lite-6: full wheel pool, keep dense 103-city wheel readable */
.wheel-stage::after {
  content: "全量城市池";
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 9;
  padding: 5px 9px;
  border-radius: 999px;
  color: #076f78;
  background: rgba(255, 255, 255, .76);
  box-shadow: inset 0 0 0 1px rgba(38, 169, 255, .18);
  font-size: 11px;
  font-weight: 900;
  pointer-events: none;
}

/* home-public-1: public beta centering and low-cost browser compatibility */
@media (max-width: 759px) {
  .app-shell {
    display: block;
  }

  .spin-screen {
    min-height: auto;
  }

.spin-copy {
    padding-top: 0;
  }

  .spin-copy h1 {
    margin-top: 0;
  }

  .wheel-stage {
    transform: translateY(-10px);
  }

  .action-bar {
    transform: translateY(-8px);
  }

  .result-panel {
    margin-top: 0;
  }
}

@keyframes zzzEnter {
  from {
    opacity: .001;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

button:not(.center-badge):active,
a:active {
  transform: scale(.985);
}

.center-badge:active {
  transform: translate(-50%, -50%) scale(.985);
}

.primary-action.is-spinning {
  animation: zzzPulse 1.05s ease-in-out infinite;
}

@keyframes zzzPulse {
  0%, 100% {
    box-shadow: 0 18px 34px rgba(0,151,177,.28), inset 0 0 0 1px rgba(255,255,255,.42);
  }
  50% {
    box-shadow: 0 20px 44px rgba(31,132,255,.34), inset 0 0 0 1px rgba(255,255,255,.62);
  }
}

.search-input:focus {
  background: #fff;
  box-shadow: 0 10px 24px rgba(23, 138, 188, .14), inset 0 0 0 2px rgba(34, 216, 196, .5);
}

.result-panel {
  scroll-margin-top: 18px;
}

.result-panel::before {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  margin: -4px auto 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #23dcc8, #28a9ff, #8b71ff);
  opacity: .62;
}

@media (max-width: 759px) and (max-height: 790px) {
  .app-shell {
    padding-top: max(8px, env(safe-area-inset-top));
  }

  .topbar {
    gap: 6px;
    margin-bottom: 4px;
  }

  .brand small,
  .eyebrow {
    display: none;
  }

  .mode-tab {
    min-width: 90px;
    padding-block: 7px;
  }

  .spin-copy h1 {
    margin-bottom: 8px;
    font-size: clamp(28px, 8vw, 34px);
  }

  .stats-row {
    margin-bottom: 7px;
  }

  .stats-row span {
    padding-block: 7px;
  }

  .topic-chip {
    min-height: 62px;
  }

  .topic-chip span {
    font-size: 18px;
  }

  .scope-strip,
  .filter-strip {
    padding-bottom: 6px;
  }

  .wheel-stage {
    width: min(100%, 318px);
    margin-top: -18px;
    margin-bottom: 4px;
    transform: translateY(-14px);
  }

  .center-badge {
    width: 94px;
    height: 94px;
  }

  .center-badge span {
    font-size: 29px;
  }

  .center-badge small {
    font-size: 12px;
  }

  .primary-action,
  .secondary-action {
    min-height: 48px;
  }
}

@media (max-width: 390px) {
  .wheel-stage {
    width: min(100%, 312px);
  }

  .center-badge {
    width: 90px;
    height: 90px;
  }
}

/* home-lite-4: tighter mobile first pass, clickable controls stay above every visual layer */
@media (max-width: 759px) {
  .app-shell {
    padding-top: max(12px, env(safe-area-inset-top));
    padding-inline: 12px;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 6px;
  }

  .brand {
    justify-content: center;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 14px;
    font-size: 17px;
  }

  .brand strong {
    font-size: 19px;
  }

  .brand small {
    font-size: 10px;
  }

  .top-actions {
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .top-actions::-webkit-scrollbar {
    display: none;
  }

  .search-box {
    flex: 0 0 132px;
    width: 132px;
  }

  .login-pill {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .icon-btn {
    width: 34px;
    min-height: 34px;
  }

  .mode-tabs {
    margin-top: 0;
    padding: 4px;
  }

  .mode-tab {
    min-width: 96px;
    padding: 8px 16px;
  }

  .spin-copy {
    padding-top: 2px;
  }

  .eyebrow {
    margin-bottom: 7px;
    padding: 6px 12px;
    font-size: 12px;
  }

  .spin-copy h1 {
    margin-bottom: 10px;
    max-width: 340px;
    font-size: clamp(31px, 9vw, 40px);
    line-height: 1.03;
  }

  .stats-row {
    gap: 7px;
    margin-bottom: 10px;
  }

  .stats-row span {
    padding: 8px 5px;
    font-size: 12px;
  }

  .topic-strip {
    display: flex;
    grid-template-columns: none;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 8px;
    padding: 2px 2px 8px;
    scrollbar-width: none;
  }

  .topic-strip::-webkit-scrollbar {
    display: none;
  }

  .topic-chip {
    flex: 0 0 84px;
    min-height: 72px;
    padding: 8px 5px;
    font-size: 12px;
  }

  .topic-chip span {
    font-size: 21px;
  }

  .scope-strip,
  .filter-strip {
    padding-bottom: 8px;
  }

  .scope-chip,
  .filter-chip {
    min-height: 32px;
    padding: 7px 12px;
    font-size: 12px;
  }

  .wheel-stage {
    width: min(100%, 356px);
    margin-top: -2px;
    margin-bottom: 10px;
  }

  .pointer {
    width: 68px;
    height: 96px;
  }

  .center-badge {
    width: 104px;
    height: 104px;
  }

  .center-badge span {
    font-size: 32px;
  }

  .action-bar {
    margin-inline: 10px;
    margin-bottom: 10px;
  }

  .primary-action,
  .secondary-action {
    min-height: 52px;
    font-size: 16px;
  }

  .result-panel,
  .guide-panel,
  .world-panel {
    border-radius: 24px;
    padding: 14px;
  }

  .result-panel h2 {
    font-size: 28px;
  }
}

.mode-tabs,
.mode-tab,
.top-actions,
.search-box,
.search-input,
.search-results,
.topic-strip,
.topic-chip,
.scope-strip,
.scope-chip,
.filter-strip,
.filter-chip,
.wheel-stage,
.center-badge,
.action-bar,
.primary-action,
.secondary-action,
.zzz-mobile-dock,
.zzz-dock-item,
.zzz-dock-plus {
  pointer-events: auto !important;
}

.app-shell::before,
.pointer,
.pointer::before {
  pointer-events: none !important;
}

.topbar,
.spin-screen,
.mode-tabs,
.topic-strip,
.scope-strip,
.filter-strip,
.wheel-stage,
.action-bar,
.zzz-mobile-dock {
  isolation: isolate;
}

.mode-tabs,
.topic-strip,
.scope-strip,
.filter-strip,
.action-bar {
  position: relative;
  z-index: 30;
}

.center-badge {
  z-index: 44;
}

.center-badge,
.center-badge * {
  pointer-events: auto !important;
}

.search-results {
  z-index: 90;
}

.zzz-mobile-dock {
  z-index: 120;
}

@media (min-width: 760px) {
  .app-shell { width: min(1120px, 100%); padding-inline: 24px; }
  .topbar { grid-template-columns: 1fr auto auto; }
  .mode-tabs { grid-column: auto; }
  .spin-screen { display: grid; grid-template-columns: 420px 1fr; gap: 24px; align-items: start; }
  .spin-copy, .topic-strip, .scope-strip, .filter-strip, .wheel-stage, .action-bar { grid-column: 1; }
  .result-panel, .guide-panel { grid-column: 2; }
  .world-panel { max-width: 760px; margin-inline: auto; }
  .topic-strip { grid-template-columns: repeat(3, 1fr); }
}


/* home-public-3: public beta compatibility polish */
html {
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  overscroll-behavior-y: none;
}

button,
a {
  touch-action: manipulation;
}

@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .result-panel,
  .guide-panel,
  .world-panel,
  .zzz-mobile-dock,
  .auth-card,
  .topbar,
  .search-results {
    background: rgba(255, 255, 255, .96) !important;
  }
}

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

@media (max-width: 759px) {
  .app-shell {
    min-height: 100svh;
  }

  .wheel-stage {
    max-height: min(356px, 48svh);
  }

  .result-panel,
  .guide-panel {
    content-visibility: auto;
    contain-intrinsic-size: 420px;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .app-shell {
    width: min(100%, 760px);
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .spin-screen {
    display: grid;
    grid-template-columns: minmax(260px, 42vw) 1fr;
    gap: 14px;
    align-items: start;
  }

  .spin-copy,
  .topic-strip,
  .scope-strip,
  .filter-strip,
  .action-bar {
    grid-column: 2;
  }

  .wheel-stage {
    grid-column: 1;
    grid-row: 1 / span 6;
    width: min(320px, 44vw, 84vh);
    margin-top: 8px;
    transform: none;
  }

  .result-panel,
  .guide-panel {
    grid-column: 1 / -1;
  }
}

/* home-public-7: remove headline statistic pills */
.stats-row {
  display: none !important;
}

.spin-copy h1 {
  margin-bottom: 14px !important;
}

@media (max-width: 759px) {
  .spin-copy h1 {
    margin-bottom: 12px !important;
  }
}

/* home-public-8: remove wheel data-pool switch buttons */
.scope-strip {
  display: none !important;
}

.filter-strip {
  margin-top: 2px !important;
}

/* home-public-9: place brand/logo at the upper-left like the reference layout */
.topbar {
  justify-content: flex-start !important;
  align-items: flex-start !important;
  padding: 14px clamp(16px, 4vw, 28px) 4px !important;
}

.topbar .brand {
  margin: 0 auto 0 0 !important;
  justify-content: flex-start !important;
  text-align: left !important;
}

.topbar .brand .brand-mark {
  flex: 0 0 auto !important;
}

@media (max-width: 520px) {
  .topbar {
    padding-top: 12px !important;
  }
}

/* home-public-10: logo left, mode switch and notice center on the upper-right */
.topbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: start !important;
  gap: 10px 10px !important;
}

.topbar .brand {
  grid-column: 1;
  justify-self: start;
  min-width: 0;
}

.topbar .mode-tabs {
  grid-column: 2;
  justify-self: end;
  align-self: start;
  margin: 0 !important;
}

.notice-button {
  position: relative;
  z-index: 6;
  display: inline-flex;
  grid-column: 3;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .88);
  border-radius: 999px;
  color: #06356f;
  background: rgba(255, 255, 255, .58);
  box-shadow: 0 12px 30px rgba(0, 88, 180, .14), inset 0 1px 0 rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  cursor: pointer;
}

.notice-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notice-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border: 2px solid rgba(255, 255, 255, .95);
  border-radius: 999px;
  background: #ff5f8e;
  box-shadow: 0 0 0 4px rgba(255, 95, 142, .16);
}

.top-actions {
  grid-column: 1 / -1;
}

.notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) 18px 18px;
  background: rgba(2, 23, 52, .28);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.notice-overlay.show {
  display: flex;
}

.notice-sheet {
  width: min(520px, 100%);
  max-height: min(66vh, 620px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 30px;
  color: #08214a;
  background: linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(225, 250, 255, .86));
  box-shadow: 0 28px 80px rgba(0, 54, 118, .24);
}

.notice-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .76));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.notice-head strong {
  display: block;
  font-size: 20px;
  letter-spacing: -.02em;
}

.notice-head small {
  display: block;
  margin-top: 2px;
  color: rgba(8, 33, 74, .58);
  font-weight: 800;
}

.notice-close {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #07356f;
  background: rgba(255, 255, 255, .86);
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
}

.notice-list {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
}

.notice-card {
  padding: 16px;
  border: 1px solid rgba(71, 191, 209, .22);
  border-radius: 22px;
  background: rgba(255, 255, 255, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.notice-card .notice-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: rgba(8, 33, 74, .62);
  font-size: 12px;
  font-weight: 900;
}

.notice-card em {
  padding: 4px 9px;
  border-radius: 999px;
  color: #006e81;
  background: rgba(94, 238, 224, .2);
  font-style: normal;
}

.notice-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.3;
}

.notice-card p {
  margin: 0;
  color: rgba(8, 33, 74, .76);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.notice-admin-link {
  display: inline-flex;
  margin: 2px 18px 18px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  color: #07356f;
  background: rgba(255, 255, 255, .66);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 520px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto 44px;
    gap: 8px;
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  .topbar .brand {
    transform: scale(.9);
    transform-origin: left top;
  }

  .topbar .mode-tabs {
    min-width: 150px;
    height: 42px;
  }

  .topbar .mode-tab {
    min-width: 72px;
    padding: 0 10px;
    font-size: 15px;
  }

  .notice-overlay {
    align-items: flex-start;
    padding: 18px 12px;
  }

  .notice-sheet {
    max-height: 66vh;
    border-radius: 26px;
  }
}

/* home-public-11: move notice into the second-row menu and align mode tabs right */
.topbar {
  grid-template-columns: minmax(0, 1fr) auto !important;
}

.topbar .mode-tabs {
  grid-column: 2 !important;
  justify-self: end !important;
  margin-right: 0 !important;
}

.top-actions {
  align-items: center !important;
}

.top-actions .notice-button {
  position: relative;
  grid-column: auto;
  width: auto;
  height: auto;
  min-height: 44px;
  padding: 0 16px;
  color: #08214a;
  font: inherit;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(0, 88, 180, .08), inset 0 1px 0 rgba(255, 255, 255, .8);
}

.top-actions .notice-button svg {
  display: none;
}

.top-actions .notice-button .notice-dot {
  top: 7px;
  right: 8px;
  width: 7px;
  height: 7px;
}

@media (max-width: 520px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .topbar .mode-tabs {
    justify-self: end !important;
  }
}

/* home-public-12: use the provided GO button image as the wheel center control */
.center-badge {
  overflow: visible !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.center-badge img {
  display: block;
  width: 118%;
  height: 118%;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 14px 28px rgba(0, 64, 140, .18));
}

/* home-public-13: replace brand mark with provided logo image */
.brand-mark {
  display: inline-flex !important;
  width: 52px !important;
  height: 52px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 88, 180, .14));
}

@media (max-width: 520px) {
  .brand-mark {
    width: 46px !important;
    height: 46px !important;
  }
}

/* home-public-15: compact notice icon and remove the old share button */
.top-actions .notice-button {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border-radius: 999px !important;
}

.top-actions .notice-button svg {
  display: block !important;
  width: 21px !important;
  height: 21px !important;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.top-actions .notice-button .notice-dot {
  top: 7px !important;
  right: 8px !important;
}

/* home-public-16: hide the all-city pool badge on the wheel */
.wheel-note {
  display: none !important;
}

/* home-public-17: optically center the provided GO image inside the wheel */
.wheel-stage .center-badge {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: translate(-50%, -50%) !important;
}

.wheel-stage .center-badge img {
  transform: translateY(-7%) !important;
  transform-origin: center center !important;
}

/* home-public-18: keep all six topic buttons visible in one row */
.topic-strip {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
  overflow: visible !important;
  padding: 0 2px !important;
}

.topic-chip {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 76px !important;
  min-height: 76px !important;
  flex: none !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 8px 3px !important;
  border-radius: 20px !important;
  font-size: 12px !important;
  line-height: 1.12 !important;
  text-align: center !important;
  white-space: normal !important;
}

.topic-chip span {
  display: block !important;
  font-size: 21px !important;
  line-height: 1 !important;
}

@media (max-width: 520px) {
  .topic-strip {
    gap: 6px !important;
  }

  .topic-chip {
    height: 70px !important;
    min-height: 70px !important;
    border-radius: 18px !important;
    font-size: 11px !important;
    padding: 7px 2px !important;
  }

  .topic-chip span {
    font-size: 19px !important;
  }
}

/* legacy: keep the main navigation dock fixed to the viewport bottom */
html,
body {
  scroll-padding-bottom: calc(116px + env(safe-area-inset-bottom)) !important;
}

.app-shell {
  padding-bottom: calc(126px + env(safe-area-inset-bottom)) !important;
}

.zzz-mobile-dock {
  position: fixed !important;
  top: auto !important;
  right: auto !important;
  bottom: calc(14px + env(safe-area-inset-bottom)) !important;
  left: 50% !important;
  z-index: 9000 !important;
  width: min(390px, calc(100vw - 28px)) !important;
  transform: translate3d(-50%, 0, 0) !important;
  will-change: transform;
  backface-visibility: hidden;
}

.auth-modal {
  padding-bottom: calc(92px + env(safe-area-inset-bottom)) !important;
}

/* home-public-21: make notice icon exactly match the register pill size */
#authOpen.login-pill,
.top-actions .notice-button {
  box-sizing: border-box !important;
  width: 58px !important;
  min-width: 58px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

.top-actions .notice-button svg {
  width: 20px !important;
  height: 20px !important;
}

.top-actions .notice-button .notice-dot {
  top: 8px !important;
  right: 10px !important;
  width: 6px !important;
  height: 6px !important;
  border-width: 1.5px !important;
  box-shadow: 0 0 0 3px rgba(255, 95, 142, .14) !important;
}

/* home-public-22: remove the generated all-city pool badge */
.wheel-stage::after {
  content: none !important;
  display: none !important;
}

/* home-public-23: remove the wheel pointer arrow */
.wheel-stage .pointer,
.wheel-stage .pointer::before,
.wheel-stage .pointer::after {
  display: none !important;
  content: none !important;
}

/* home-public-24: show all region filters in two rows on mobile */
.filter-strip {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 7px !important;
  width: 100% !important;
  overflow: visible !important;
  padding: 0 2px !important;
}

.filter-chip {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 36px !important;
  padding: 0 4px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

@media (max-width: 460px) {
  .filter-strip {
    gap: 6px !important;
  }

  .filter-chip {
    min-height: 34px !important;
    padding: 0 2px !important;
    font-size: 12px !important;
  }
}

/* home-public-25: normalize the whole top action row height */
.top-actions {
  align-items: center !important;
  gap: 8px !important;
}

.top-actions .search-box,
.top-actions .search-input,
.top-actions .login-pill,
#authOpen.login-pill,
.top-actions .notice-button {
  box-sizing: border-box !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  align-items: center !important;
}

.top-actions .search-box {
  display: flex !important;
  flex: 1 1 170px !important;
  min-width: 0 !important;
}

.top-actions .search-input {
  width: 100% !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 44px !important;
}

.top-actions .login-pill {
  display: inline-flex !important;
  justify-content: center !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1 !important;
}

.top-actions .notice-button {
  flex: 0 0 58px !important;
}

/* home-public-26: place the two main action buttons side by side */
.action-bar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
}

.primary-action,
.secondary-action {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 58px !important;
  padding: 0 10px !important;
  border-radius: 24px !important;
  font-size: 16px !important;
  white-space: nowrap !important;
}

.primary-action svg,
.secondary-action svg {
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 auto !important;
}

@media (max-width: 460px) {
  .action-bar {
    gap: 8px !important;
  }

  .primary-action,
  .secondary-action {
    min-height: 54px !important;
    padding: 0 8px !important;
    font-size: 14px !important;
    border-radius: 22px !important;
  }
}

/* home-public-27: compact one-row rainbow region filters */
.filter-strip {
  display: grid !important;
  grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
  gap: 4px !important;
  width: 100% !important;
  overflow: visible !important;
  padding: 0 1px !important;
}

.filter-chip {
  min-height: 31px !important;
  height: 31px !important;
  padding: 0 1px !important;
  border: 1px solid rgba(255, 255, 255, .82) !important;
  border-radius: 999px !important;
  color: #073063 !important;
  background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(224,247,255,.7)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 8px 18px rgba(0, 108, 180, .06) !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  letter-spacing: -.04em !important;
}

.filter-chip.active {
  color: #fff !important;
  border-color: rgba(255,255,255,.92) !important;
  background: linear-gradient(135deg, #36dbd0 0%, #29a7ff 28%, #856cff 56%, #ff68aa 78%, #ffd66b 100%) !important;
  box-shadow: 0 10px 24px rgba(38, 144, 255, .25), inset 0 1px 0 rgba(255,255,255,.48) !important;
  text-shadow: 0 1px 6px rgba(0, 35, 82, .32) !important;
}

@media (max-width: 460px) {
  .filter-strip {
    gap: 3px !important;
  }

  .filter-chip {
    min-height: 29px !important;
    height: 29px !important;
    font-size: 10px !important;
    letter-spacing: -.08em !important;
  }
}

/* home-public-30: center the two main action buttons as a group */
.action-bar {
  width: min(100%, 390px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  justify-self: center !important;
}

@media (max-width: 460px) {
  .action-bar {
    width: min(100%, 360px) !important;
  }
}

/* home-public-31: move the wheel block down to avoid overlap with filter buttons */
.wheel-stage {
  margin-top: clamp(20px, 5vw, 32px) !important;
}

.action-bar {
  margin-top: 18px !important;
}

@media (max-width: 520px) {
  .wheel-stage {
    margin-top: 26px !important;
  }

  .action-bar {
    margin-top: 16px !important;
  }
}

/* home-public-32: replace the headline with the provided slogan image */
.spin-copy h1.slogan-title {
  display: flex !important;
  width: min(100%, 440px) !important;
  height: clamp(92px, 18vw, 132px) !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 8px auto 12px !important;
  overflow: hidden !important;
  text-indent: 0 !important;
  line-height: 1 !important;
}

.spin-copy h1.slogan-title img {
  display: block !important;
  width: 112% !important;
  height: 112% !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  filter: drop-shadow(0 5px 0 rgba(255,255,255,.45));
}

@media (max-width: 520px) {
  .spin-copy h1.slogan-title {
    width: min(100%, 390px) !important;
    height: 96px !important;
    margin-top: 6px !important;
    margin-bottom: 10px !important;
  }

  .spin-copy h1.slogan-title img {
    width: 118% !important;
    height: 118% !important;
  }
}

/* home-public-33: use the provided homepage background image with a soft readability veil */
body {
  background:
    linear-gradient(180deg, rgba(222, 253, 255, .72), rgba(173, 240, 247, .66)),
    url("./背景图1.png") center top / cover fixed no-repeat !important;
}

.app-shell {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, rgba(185, 249, 255, .34), rgba(146, 231, 241, .20)) !important;
}

/* home-public-34: lock the new 1170x2532 mobile background and keep dock on viewport bottom */
html {
  background: #bff8ff !important;
}

body {
  min-height: 100svh !important;
  background: #bff8ff !important;
}

.app-shell {
  position: relative !important;
  z-index: 0 !important;
  width: min(100vw, calc(100svh * 1170 / 2532)) !important;
  min-height: 100svh !important;
  margin: 0 auto !important;
  background: url("./背景图8.png") center top / 100% 100svh no-repeat !important;
  overflow: visible !important;
}

.app-shell::after {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: -1 !important;
  width: min(100vw, calc(100svh * 1170 / 2532)) !important;
  margin: 0 auto !important;
  background: url("./背景图8.png") center top / 100% 100svh no-repeat !important;
  pointer-events: none !important;
}

.topbar,
.spin-screen,
.result-panel,
.guide-panel,
.world-panel {
  position: relative !important;
  z-index: 1 !important;
}

.zzz-mobile-dock {
  position: fixed !important;
  top: auto !important;
  right: auto !important;
  bottom: calc(10px + env(safe-area-inset-bottom)) !important;
  left: 50% !important;
  z-index: 99999 !important;
  transform: translate3d(-50%, 0, 0) !important;
}

@media (min-width: 760px) {
  .app-shell {
    width: min(520px, calc(100svh * 1170 / 2532)) !important;
    padding-inline: 14px !important;
  }
}

/* home-public-35: add soft top/bottom teal-blue readability veils over the background */
.app-shell::before {
  content: "" !important;
  position: fixed !important;
  top: 0 !important;
  left: 50% !important;
  z-index: 0 !important;
  width: min(100vw, calc(100svh * 1170 / 2532)) !important;
  height: 52svh !important;
  transform: translateX(-50%) !important;
  background: linear-gradient(180deg, rgba(174, 249, 255, .50), rgba(190, 252, 248, .24) 42%, rgba(190, 252, 248, 0) 100%) !important;
  pointer-events: none !important;
}

body::after {
  content: "" !important;
  position: fixed !important;
  bottom: 0 !important;
  left: 50% !important;
  z-index: 0 !important;
  width: min(100vw, calc(100svh * 1170 / 2532)) !important;
  height: 44svh !important;
  transform: translateX(-50%) !important;
  background: linear-gradient(0deg, rgba(155, 239, 248, .30), rgba(180, 251, 244, .15) 44%, rgba(180, 251, 244, 0) 100%) !important;
  pointer-events: none !important;
}

.topbar,
.spin-screen,
.zzz-mobile-dock,
.auth-modal,
.notice-overlay,
.toast {
  position: relative;
  z-index: 2 !important;
}

/* home-public-41: destination result as a closeable card popup, nav always on top */
body:not(.result-popup-open) #resultPanel {
  display: none !important;
}

body.result-popup-open #resultPanel {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  bottom: auto !important;
  z-index: 9500 !important;
  display: block !important;
  width: min(410px, calc(100vw - 30px)) !important;
  max-height: min(62svh, 560px) !important;
  overflow: auto !important;
  margin: 0 !important;
  padding: 18px 16px 16px !important;
  border: 1px solid rgba(255,255,255,.86) !important;
  border-radius: 30px !important;
  background:
    radial-gradient(circle at 74% 4%, rgba(255,255,255,.82), rgba(255,255,255,0) 34%),
    linear-gradient(145deg, rgba(242, 255, 255, .94), rgba(205, 250, 255, .84)) !important;
  box-shadow: 0 24px 78px rgba(0, 68, 130, .24), inset 0 1px 0 rgba(255,255,255,.95) !important;
  transform: translate3d(-50%, -50%, 0) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  backdrop-filter: blur(24px) !important;
}

body.result-popup-open #resultPanel::after {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: -1 !important;
  background: rgba(8, 35, 70, .08) !important;
  pointer-events: none !important;
}

body.result-popup-open .wheel-stage {
  z-index: 3 !important;
}

.result-popup-close {
  position: sticky !important;
  top: 0 !important;
  float: right !important;
  z-index: 2 !important;
  display: inline-flex !important;
  width: 34px !important;
  height: 34px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: -4px -2px 4px 8px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #073063 !important;
  background: rgba(255,255,255,.82) !important;
  box-shadow: 0 8px 18px rgba(0, 81, 150, .10) !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

body.result-popup-open .topbar {
  z-index: 12000 !important;
}

body.result-popup-open .zzz-mobile-dock {
  z-index: 12000 !important;
}

body.result-popup-open .action-bar {
  z-index: 2 !important;
}

.result-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.result-actions .detail-action {
  color: #fff !important;
  background: linear-gradient(135deg, #22d7ca, #2aa8ff, #8a6cff) !important;
  box-shadow: 0 12px 28px rgba(42, 168, 255, .22) !important;
}

@media (max-width: 520px) {
  body.result-popup-open #resultPanel {
    top: 48% !important;
    width: min(396px, calc(100vw - 22px)) !important;
    max-height: 60svh !important;
  }
}

/* home-public-45: keep slogan image within its real boundary */
.spin-copy h1.slogan-title {
  width: min(100%, 430px) !important;
  height: 112px !important;
  overflow: hidden !important;
}

.spin-copy h1.slogan-title img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

@media (max-width: 520px) {
  .spin-copy h1.slogan-title {
    width: min(100%, 400px) !important;
    height: 108px !important;
  }

  .spin-copy h1.slogan-title img {
    width: 100% !important;
    height: 100% !important;
  }
}

/* home-public-46: raise result popup to the visual center of the first screen */
body.result-popup-open #resultPanel {
  top: 42svh !important;
  max-height: min(52svh, 500px) !important;
}

@media (max-width: 520px) {
  body.result-popup-open #resultPanel {
    top: 41svh !important;
    max-height: 51svh !important;
  }
}

/* home-public-47: strictly keep slogan2 inside the visual boundary */
.spin-copy h1.slogan-title {
  box-sizing: border-box !important;
  width: min(86vw, 368px) !important;
  height: 96px !important;
  margin: 0 auto 6px !important;
  padding: 0 !important;
  overflow: hidden !important;
  contain: paint !important;
}

.spin-copy h1.slogan-title img {
  display: block !important;
  width: 92% !important;
  height: 92% !important;
  max-width: 92% !important;
  max-height: 92% !important;
  margin: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
}

@media (max-width: 520px) {
  .spin-copy h1.slogan-title {
    width: min(84vw, 348px) !important;
    height: 88px !important;
    margin-bottom: 5px !important;
  }

  .spin-copy h1.slogan-title img {
    width: 91% !important;
    height: 91% !important;
    max-width: 91% !important;
    max-height: 91% !important;
  }
}

/* home-public-48: show result popup fully and hide scrollbars unless content exceeds screen */
body.result-popup-open #resultPanel {
  height: auto !important;
  max-height: calc(100svh - 168px) !important;
  overflow-y: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

body.result-popup-open #resultPanel::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

@media (max-width: 520px) {
  body.result-popup-open #resultPanel {
    max-height: calc(100svh - 154px) !important;
  }
}

/* home-public-49: remove the lightweight guide panel from the home first screen */
#guidePanel {
  display: none !important;
}

/* home-public-50: popup only after user spins, with a jump-out animation from the wheel */
body.result-popup-open #resultPanel {
  animation: resultPopFromWheel .46s cubic-bezier(.2, 1.24, .34, 1) both !important;
  transform-origin: 50% 62% !important;
}

@keyframes resultPopFromWheel {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -18%, 0) scale(.34);
    filter: blur(10px);
  }
  58% {
    opacity: 1;
    transform: translate3d(-50%, -52%, 0) scale(1.035);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.result-popup-open #resultPanel {
    animation: none !important;
  }
}

/* home-public-51: nudge wheel and action buttons down slightly */
.wheel-stage {
  margin-top: 22px !important;
}

.action-bar {
  margin-top: 20px !important;
}

@media (max-width: 520px) {
  .wheel-stage {
    margin-top: 20px !important;
  }

  .action-bar {
    margin-top: 18px !important;
  }
}

/* home-public-42: replace brand text with logo wordmark image */
.brand-wordmark {
  display: inline-flex !important;
  width: 112px !important;
  height: 42px !important;
  align-items: center !important;
  justify-content: flex-start !important;
  overflow: hidden !important;
}

.brand-wordmark img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: left center !important;
}

@media (max-width: 430px) {
  .brand-wordmark {
    width: 96px !important;
    height: 38px !important;
  }
}

/* home-public-43: use slogan2 and enlarge the hero slogan */
.spin-copy h1.slogan-title {
  width: min(100%, 520px) !important;
  height: clamp(118px, 22vw, 166px) !important;
  margin-top: -2px !important;
  margin-bottom: 2px !important;
}

.spin-copy h1.slogan-title img {
  width: 128% !important;
  height: 128% !important;
}

@media (max-width: 520px) {
  .spin-copy h1.slogan-title {
    width: min(100%, 450px) !important;
    height: 130px !important;
  }

  .spin-copy h1.slogan-title img {
    width: 136% !important;
    height: 136% !important;
  }
}

/* home-public-36: stronger veils, simplified top bar, compact topics, aligned wheel result */
.app-shell::before {
  background: linear-gradient(180deg, rgba(174, 249, 255, .75), rgba(190, 252, 248, .34) 42%, rgba(190, 252, 248, 0) 100%) !important;
}

body::after {
  background: linear-gradient(0deg, rgba(155, 239, 248, .55), rgba(180, 251, 244, .25) 44%, rgba(180, 251, 244, 0) 100%) !important;
}

.topbar {
  grid-template-columns: minmax(0, 1fr) auto 44px !important;
  align-items: start !important;
  gap: 8px !important;
}

.topbar .mode-tabs {
  grid-column: 2 !important;
  height: 44px !important;
  min-height: 44px !important;
  align-self: start !important;
}

.topbar .mode-tab {
  height: 44px !important;
  min-height: 44px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.topbar > .notice-button {
  grid-column: 3 !important;
  display: inline-flex !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  align-self: start !important;
}

.topbar > .notice-button svg {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
}

.top-actions {
  display: none !important;
}

.topic-chip {
  height: 52px !important;
  min-height: 52px !important;
  padding-top: 5px !important;
  padding-bottom: 5px !important;
  border-radius: 16px !important;
  font-size: 11px !important;
  gap: 2px !important;
}

.topic-chip span {
  font-size: 17px !important;
}

.spin-copy h1.slogan-title {
  margin-top: 0 !important;
  margin-bottom: 4px !important;
}

.wheel-stage {
  margin-top: 14px !important;
}

.zzz-mobile-dock {
  position: fixed !important;
  top: auto !important;
  right: auto !important;
  bottom: calc(10px + env(safe-area-inset-bottom)) !important;
  left: 50% !important;
  z-index: 99999 !important;
  transform: translate3d(-50%, 0, 0) !important;
}

@media (max-width: 520px) {
  .topic-chip {
    height: 50px !important;
    min-height: 50px !important;
    border-radius: 15px !important;
    font-size: 10px !important;
  }

  .topic-chip span {
    font-size: 16px !important;
  }

  .wheel-stage {
    margin-top: 12px !important;
  }
}

/* home-public-37: stabilize domestic/overseas switch width beside notice icon */
.topbar {
  grid-template-columns: minmax(0, 1fr) 172px 44px !important;
}

.topbar .mode-tabs {
  width: 172px !important;
  min-width: 172px !important;
  max-width: 172px !important;
  padding: 3px !important;
  border-radius: 999px !important;
}

.topbar .mode-tab {
  min-width: 0 !important;
  width: 50% !important;
  padding: 0 6px !important;
  font-size: 14px !important;
  letter-spacing: -.04em !important;
  white-space: nowrap !important;
}

@media (max-width: 430px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) 156px 42px !important;
    gap: 6px !important;
  }

  .topbar .mode-tabs {
    width: 156px !important;
    min-width: 156px !important;
    max-width: 156px !important;
  }

  .topbar .mode-tab {
    font-size: 13px !important;
  }

  .topbar > .notice-button {
    width: 42px !important;
    min-width: 42px !important;
  }
}

/* home-public-38: use the logo image for the dock center spin button */
.zzz-dock-plus {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  padding: 0 !important;
  font-size: 0 !important;
}

.zzz-dock-plus img {
  display: block !important;
  width: 112% !important;
  height: 112% !important;
  object-fit: contain !important;
  pointer-events: none !important;
  filter: drop-shadow(0 8px 18px rgba(0, 109, 180, .2));
}

/* home-public-39: shrink and align the top-right mode + notice controls */
.topbar {
  grid-template-columns: minmax(0, 1fr) 148px 38px !important;
  align-items: start !important;
  gap: 6px !important;
  padding-right: clamp(12px, 3.4vw, 20px) !important;
}

.topbar .mode-tabs {
  justify-self: end !important;
  width: 148px !important;
  min-width: 148px !important;
  max-width: 148px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 2px !important;
}

.topbar .mode-tab {
  height: 34px !important;
  min-height: 34px !important;
  font-size: 12px !important;
  letter-spacing: -.05em !important;
  line-height: 1 !important;
}

.topbar > .notice-button {
  justify-self: end !important;
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  align-self: start !important;
}

.topbar > .notice-button svg {
  width: 18px !important;
  height: 18px !important;
}

.topbar > .notice-button .notice-dot {
  top: 6px !important;
  right: 7px !important;
}

@media (max-width: 430px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) 136px 36px !important;
    gap: 5px !important;
  }

  .topbar .mode-tabs {
    width: 136px !important;
    min-width: 136px !important;
    max-width: 136px !important;
    height: 36px !important;
    min-height: 36px !important;
  }

  .topbar .mode-tab {
    height: 32px !important;
    min-height: 32px !important;
    font-size: 11px !important;
  }

  .topbar > .notice-button {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
  }
}

/* home-public-52: bottom share entry and share support card */
.zzz-dock-plus.zzz-dock-share {
  color: #06335f;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(190,244,255,.9));
  border: 1px solid rgba(255,255,255,.92);
  box-shadow: 0 12px 28px rgba(0, 168, 210, .22), inset 0 0 18px rgba(255,255,255,.68);
}

.zzz-dock-plus.zzz-dock-share svg {
  width: 31px;
  height: 31px;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(11, 72, 122, .16));
}

.share-modal {
  position: fixed;
  inset: 0;
  z-index: 14000;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 16px max(88px, env(safe-area-inset-bottom));
  background: radial-gradient(circle at 50% 34%, rgba(163, 244, 255, .3), transparent 36%), rgba(4, 35, 65, .22);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.share-modal.hidden {
  display: none !important;
}

.share-card {
  position: relative;
  width: min(430px, calc(100vw - 28px));
  max-height: min(76svh, 720px);
  overflow: auto;
  border-radius: 34px;
  padding: 24px 22px 20px;
  color: #06335f;
  background: linear-gradient(155deg, rgba(255,255,255,.88), rgba(189,238,255,.78) 48%, rgba(166,246,244,.72));
  border: 1.5px solid rgba(255,255,255,.92);
  box-shadow: 0 26px 70px rgba(12, 83, 148, .28), inset 0 1px 0 rgba(255,255,255,.9);
  animation: shareCardPop .34s cubic-bezier(.18, .92, .28, 1.18) both;
}

@keyframes shareCardPop {
  from { opacity: 0; transform: translateY(42px) scale(.84); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.share-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #073761;
  background: rgba(255,255,255,.62);
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}

.share-eyebrow {
  margin: 0 0 8px;
  color: #00a7a5;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
}

.share-card h2 {
  margin: 0 46px 8px 0;
  font-size: clamp(26px, 7vw, 36px);
  line-height: 1.08;
  color: #062e59;
  letter-spacing: -.04em;
}

.share-subtitle {
  margin: 0 0 16px;
  color: rgba(6, 51, 95, .72);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 700;
}

.share-destination,
.share-copy-box,
.share-support-note {
  border-radius: 24px;
  background: rgba(255,255,255,.48);
  border: 1px solid rgba(255,255,255,.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

.share-destination {
  padding: 16px;
  display: grid;
  gap: 3px;
}

.share-destination span {
  color: #008f96;
  font-size: 13px;
  font-weight: 900;
}

.share-destination strong {
  font-size: 34px;
  line-height: 1.05;
  color: #06335f;
}

.share-destination small {
  color: rgba(6, 51, 95, .62);
  font-size: 14px;
  line-height: 1.45;
}

.share-copy-box {
  margin-top: 12px;
  padding: 15px 16px;
  color: #06335f;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.62;
  background: linear-gradient(135deg, rgba(117,245,232,.48), rgba(216,239,255,.62));
}

.share-support-note {
  margin-top: 12px;
  padding: 15px 16px;
  color: rgba(6, 51, 95, .76);
  font-size: 14px;
  line-height: 1.62;
}

.share-support-note strong {
  display: block;
  color: #06335f;
  font-size: 16px;
  margin-bottom: 6px;
}

.share-support-note p {
  margin: 6px 0 0;
}

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

.share-actions button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  color: #06335f;
  background: rgba(255,255,255,.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86), 0 10px 24px rgba(34,142,180,.14);
  cursor: pointer;
}

.share-actions .share-primary,
.share-actions .share-support {
  color: #fff;
  background: linear-gradient(120deg, #12cdd4, #1aa4ff 55%, #7d6bff);
}

.share-actions .share-wechat {
  grid-column: 1 / -1;
  color: #007a86;
}

@media (max-width: 460px) {
  .share-card {
    border-radius: 30px;
    padding: 22px 18px 18px;
  }

  .share-actions {
    gap: 8px;
  }

  .share-actions button {
    min-height: 44px;
    font-size: 14px;
  }
}

/* home-public-53: lower wheel a small-chip height and stack main actions */
.wheel-stage {
  margin-top: clamp(26px, 6vw, 38px) !important;
}

.action-bar {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  width: 100% !important;
  margin-top: clamp(14px, 3.5vw, 20px) !important;
}

.action-bar .primary-action,
.action-bar .secondary-action {
  width: min(66.666vw, 360px) !important;
  max-width: calc(100vw - 72px) !important;
  min-width: 248px !important;
  min-height: 54px !important;
  justify-content: center !important;
  text-align: center !important;
}

@media (max-width: 520px) {
  .wheel-stage {
    margin-top: 30px !important;
  }

  .action-bar {
    gap: 10px !important;
    margin-top: 14px !important;
  }

  .action-bar .primary-action,
  .action-bar .secondary-action {
    width: min(68vw, 320px) !important;
    min-width: 270px !important;
    min-height: 52px !important;
  }
}

/* home-public-54: make dock center a real share button, not a spin button */
.zzz-mobile-dock .zzz-dock-plus.zzz-dock-share {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(232,250,255,.92)) !important;
  color: #062e59 !important;
  border: 1.5px solid rgba(255,255,255,.95) !important;
  box-shadow: 0 12px 28px rgba(8,72,120,.16), inset 0 0 20px rgba(255,255,255,.82) !important;
}

.zzz-mobile-dock .zzz-dock-plus.zzz-dock-share::before,
.zzz-mobile-dock .zzz-dock-plus.zzz-dock-share::after {
  display: none !important;
  content: none !important;
}

.zzz-mobile-dock .zzz-dock-plus.zzz-dock-share svg {
  width: 30px !important;
  height: 30px !important;
  display: block !important;
  color: #062e59 !important;
  transform: translateY(-1px) !important;
  filter: drop-shadow(0 4px 8px rgba(6,46,89,.12)) !important;
}

.zzz-mobile-dock .zzz-dock-plus.zzz-dock-share:active {
  transform: translateY(-1px) scale(.98) !important;
}

/* home-public-55: clearer dock labels and teal share center */
.zzz-mobile-dock .zzz-dock-item span {
  font-size: 18px !important;
  line-height: 1 !important;
}

.zzz-mobile-dock .zzz-dock-item strong {
  font-size: 12px !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
  margin-top: 4px !important;
}

.zzz-mobile-dock .zzz-dock-plus.zzz-dock-share {
  background: linear-gradient(145deg, #12cdd4 0%, #18a7ef 54%, #14c994 100%) !important;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,.88) !important;
  box-shadow: 0 14px 34px rgba(0, 178, 190, .34), inset 0 1px 0 rgba(255,255,255,.46) !important;
}

.zzz-mobile-dock .zzz-dock-plus.zzz-dock-share svg {
  width: 31px !important;
  height: 31px !important;
  color: #fff !important;
  filter: drop-shadow(0 4px 8px rgba(0, 56, 92, .22)) !important;
}

@media (max-width: 430px) {
  .zzz-mobile-dock .zzz-dock-item span { font-size: 17px !important; }
  .zzz-mobile-dock .zzz-dock-item strong { font-size: 11.5px !important; }
}

/* home-public-56: share modal links behave like buttons */
.share-actions a {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 15px;
  font-weight: 900;
  color: #06335f;
  background: rgba(255,255,255,.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86), 0 10px 24px rgba(34,142,180,.14);
}

.share-actions .share-page-link {
  color: #007a86;
}


/* home-public-59: access gate for guide/share actions */
.access-gate-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 36, 72, .28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.access-gate-modal.hidden { display: none !important; }
.access-gate-card {
  width: min(390px, 92vw);
  border-radius: 30px;
  padding: 22px;
  position: relative;
  border: 1px solid rgba(255,255,255,.86);
  background: linear-gradient(155deg, rgba(255,255,255,.94), rgba(198,241,255,.86), rgba(176,248,241,.78));
  box-shadow: 0 28px 72px rgba(0, 92, 150, .28);
  color: #06335f;
}
.access-gate-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.72);
  color: #06335f;
  font-size: 24px;
  font-weight: 900;
}
.access-gate-kicker { margin: 0 44px 8px 0; color: #008f96; font-weight: 950; }
.access-gate-card h2 { margin: 0 38px 10px 0; color: #06335f; font-size: clamp(24px, 7vw, 32px); line-height: 1.12; }
.access-gate-card p { color: rgba(6,51,95,.72); font-weight: 750; line-height: 1.7; }
.access-gate-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 12px; }
.access-gate-actions button,
.access-gate-actions a {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #06335f;
  background: rgba(255,255,255,.78);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}
.access-gate-actions .primary { color: #fff; background: linear-gradient(120deg,#12cdd4,#1aa4ff 55%,#7d6bff); }
.access-gate-note { display: block; color: rgba(6,51,95,.62); font-weight: 750; line-height: 1.55; }

/* home-public-60: Tencent/WeChat mobile fit pass
   Goal: keep the first-screen hierarchy usable on real phone webviews.
   The previous layout used a large wheel plus fixed dock, so CTA buttons were
   pushed under the dock on Tencent Cloud mobile preview. */
html,
body {
  overflow-x: hidden !important;
}

@media (max-width: 540px) {
  body {
    min-width: 0 !important;
    width: 100vw !important;
  }

  .app-shell {
    width: 100vw !important;
    max-width: 430px !important;
    min-height: 100svh !important;
    margin: 0 auto !important;
    padding: max(10px, env(safe-area-inset-top)) 18px calc(104px + env(safe-area-inset-bottom)) !important;
    box-sizing: border-box !important;
    background-size: 100% 100svh !important;
  }

  .topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 0 4px !important;
    margin: 0 0 4px !important;
  }

  .topbar .brand {
    min-width: 0 !important;
    justify-content: flex-start !important;
    gap: 7px !important;
  }

  .brand-mark {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
  }

  .brand-wordmark {
    width: 116px !important;
    max-width: 116px !important;
    height: 32px !important;
    overflow: hidden !important;
  }

  .brand-wordmark img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: left center !important;
  }

  .topbar .mode-tabs {
    width: 158px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 3px !important;
  }

  .topbar .mode-tab {
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
    letter-spacing: -.02em !important;
  }

  .topbar > .notice-button {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
  }

  .spin-screen {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    min-height: auto !important;
  }

  .spin-copy {
    padding: 2px 0 0 !important;
    margin: 0 !important;
  }

  .spin-copy .eyebrow,
  .stats-row,
  .scope-strip {
    display: none !important;
  }

  .spin-copy h1.slogan-title {
    width: 100% !important;
    height: clamp(82px, 23vw, 104px) !important;
    margin: 4px auto 6px !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .spin-copy h1.slogan-title img {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  .topic-strip {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
    min-height: 58px !important;
    height: 58px !important;
    margin: 4px 0 7px !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .topic-chip {
    width: auto !important;
    min-width: 0 !important;
    height: 58px !important;
    min-height: 58px !important;
    padding: 5px 2px !important;
    border-radius: 15px !important;
    font-size: 10.5px !important;
    line-height: 1.08 !important;
    white-space: normal !important;
  }

  .topic-chip span {
    font-size: 17px !important;
    line-height: 1 !important;
    margin: 0 0 3px !important;
  }

  .filter-strip {
    display: grid !important;
    grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
    gap: 4px !important;
    width: 100% !important;
    height: 28px !important;
    min-height: 28px !important;
    margin: 0 0 9px !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .filter-chip {
    min-width: 0 !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 2px !important;
    border-radius: 999px !important;
    font-size: 10px !important;
    line-height: 1 !important;
    letter-spacing: -.04em !important;
  }

  .wheel-stage {
    width: min(76vw, 306px) !important;
    height: auto !important;
    max-width: 306px !important;
    max-height: none !important;
    aspect-ratio: 1 / 1 !important;
    margin: 10px auto 0 !important;
    padding: 0 !important;
  }

  #wheelCanvas {
    width: 100% !important;
    height: 100% !important;
  }

  .wheel-stage .center-badge {
    width: 30% !important;
    height: 30% !important;
  }

  .action-bar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
    width: min(68vw, 282px) !important;
    margin: 12px auto 0 !important;
    padding: 0 !important;
  }

  .primary-action,
  .secondary-action {
    width: 100% !important;
    min-height: 45px !important;
    height: 45px !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
    font-size: 15px !important;
  }

  .primary-action svg,
  .secondary-action svg {
    width: 18px !important;
    height: 18px !important;
  }

  .guide-panel {
    display: none !important;
  }

  .zzz-mobile-dock {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    transform: translateX(-50%) !important;
    width: min(390px, calc(100vw - 32px)) !important;
    height: 72px !important;
    min-height: 72px !important;
    padding: 7px 14px !important;
    grid-template-columns: 1fr 1fr 68px 1fr 1fr !important;
    z-index: 9999 !important;
  }

  .zzz-mobile-dock .zzz-dock-item {
    min-height: 54px !important;
    gap: 3px !important;
  }

  .zzz-mobile-dock .zzz-dock-item span {
    font-size: 19px !important;
  }

  .zzz-mobile-dock .zzz-dock-item strong {
    font-size: 12px !important;
  }

  .zzz-mobile-dock .zzz-dock-plus.zzz-dock-share {
    width: 62px !important;
    height: 62px !important;
    min-width: 62px !important;
    min-height: 62px !important;
    margin-top: -18px !important;
  }
}

@media (max-width: 540px) and (max-height: 760px) {
  .app-shell {
    padding-inline: 16px !important;
  }

  .spin-copy h1.slogan-title {
    height: 78px !important;
    margin-bottom: 4px !important;
  }

  .topic-strip {
    height: 52px !important;
    min-height: 52px !important;
    gap: 5px !important;
    margin-bottom: 6px !important;
  }

  .topic-chip {
    height: 52px !important;
    min-height: 52px !important;
    font-size: 9.5px !important;
  }

  .topic-chip span {
    font-size: 15px !important;
  }

  .filter-strip {
    height: 26px !important;
    min-height: 26px !important;
    margin-bottom: 7px !important;
  }

  .filter-chip {
    height: 26px !important;
    min-height: 26px !important;
    font-size: 9px !important;
  }

  .wheel-stage {
    width: min(72vw, 282px) !important;
    max-width: 282px !important;
    margin-top: 8px !important;
  }

  .action-bar {
    width: min(70vw, 280px) !important;
    gap: 8px !important;
    margin-top: 10px !important;
  }

  .primary-action,
  .secondary-action {
    height: 42px !important;
    min-height: 42px !important;
    font-size: 14px !important;
  }
}
/* home-public-62: Tencent/WeChat mobile public-beta hardening */
@media (max-width: 540px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  body {
    min-height: 100svh;
    background-attachment: scroll !important;
  }

  .app-shell {
    width: 100%;
    max-width: 459px;
    min-height: 100svh;
    margin: 0 auto;
    padding: max(16px, env(safe-area-inset-top)) 14px calc(96px + env(safe-area-inset-bottom)) !important;
    box-sizing: border-box;
  }

  .topbar {
    display: grid !important;
    grid-template-columns: minmax(116px, 1fr) auto auto !important;
    align-items: center !important;
    gap: 7px !important;
    margin: 0 0 7px !important;
    position: relative;
    z-index: 90;
  }

  .brand {
    min-width: 0 !important;
    gap: 6px !important;
  }

  .brand-mark,
  .brand-mark img {
    width: 34px !important;
    height: 34px !important;
  }

  .brand-wordmark {
    width: 100px !important;
    max-width: 100px !important;
    height: 34px !important;
  }

  .brand-wordmark img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: left center !important;
  }

  .mode-tabs {
    width: 150px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 3px !important;
    border-radius: 999px !important;
    justify-self: end !important;
  }

  .mode-tab {
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 8px !important;
    font-size: 13px !important;
    line-height: 30px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
  }

  .notice-button {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    justify-self: end !important;
  }

  .notice-button svg {
    width: 19px !important;
    height: 19px !important;
  }

  .top-actions,
  .stats-row,
  .scope-strip,
  .guide-panel,
  .spin-copy .eyebrow {
    display: none !important;
  }

  .spin-copy {
    margin: 2px 0 4px !important;
  }

  .spin-copy h1.slogan-title {
    width: min(86vw, 360px) !important;
    max-width: 360px !important;
    height: clamp(82px, 23vw, 108px) !important;
    margin: 2px auto 8px !important;
    overflow: hidden !important;
  }

  .spin-copy h1.slogan-title img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
  }

  .topic-strip {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
    margin: 4px auto 6px !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .topic-chip {
    width: 100% !important;
    min-width: 0 !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 4px 2px !important;
    border-radius: 15px !important;
    font-size: 10px !important;
    line-height: 1.08 !important;
    gap: 2px !important;
    white-space: normal !important;
  }

  .topic-chip span {
    font-size: 15px !important;
    line-height: 1 !important;
  }

  .filter-strip {
    display: grid !important;
    grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
    gap: 4px !important;
    width: 100% !important;
    margin: 0 auto 10px !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .filter-chip {
    width: 100% !important;
    min-width: 0 !important;
    height: 24px !important;
    min-height: 24px !important;
    padding: 0 2px !important;
    border-radius: 999px !important;
    font-size: 9.5px !important;
    line-height: 24px !important;
    white-space: nowrap !important;
  }

  .filter-chip.active {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.9) !important;
    background: linear-gradient(135deg, #24d9cf 0%, #30a7ff 34%, #8a7cff 66%, #ff68a9 100%) !important;
    box-shadow: 0 8px 18px rgba(36, 169, 255, 0.24) !important;
  }

  .wheel-stage {
    width: min(82vw, 354px) !important;
    height: min(82vw, 354px) !important;
    margin: 10px auto 0 !important;
  }

  .wheel-stage canvas {
    width: 100% !important;
    height: 100% !important;
  }

  .center-badge {
    width: 28% !important;
    height: 28% !important;
  }

  .action-bar {
    width: min(76vw, 312px) !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin: 10px auto 0 !important;
    padding: 0 !important;
  }

  .action-bar .primary-action,
  .action-bar .secondary-action {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    line-height: 1 !important;
  }

  .zzz-mobile-dock {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    transform: translateX(-50%) !important;
    width: min(calc(100vw - 28px), 400px) !important;
    height: 70px !important;
    min-height: 70px !important;
    z-index: 120 !important;
    border-radius: 999px !important;
  }

  .zzz-mobile-dock .zzz-dock-item span {
    font-size: 18px !important;
  }

  .zzz-mobile-dock .zzz-dock-item strong {
    font-size: 12px !important;
  }

  .zzz-mobile-dock .zzz-dock-plus.zzz-dock-share {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;
    color: #fff !important;
    background: linear-gradient(135deg, #20d2c7 0%, #18b7ff 52%, #15c58e 100%) !important;
    box-shadow: 0 14px 28px rgba(19, 184, 190, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
  }

  .zzz-mobile-dock .zzz-dock-plus.zzz-dock-share svg {
    width: 28px !important;
    height: 28px !important;
    color: #fff !important;
  }

  body:not(.result-popup-open) #resultPanel {
    display: none !important;
  }

  body.result-popup-open {
    overflow: hidden !important;
  }

  body.result-popup-open #resultPanel {
    display: block !important;
    position: fixed !important;
    z-index: 110 !important;
    left: max(18px, env(safe-area-inset-left)) !important;
    right: max(18px, env(safe-area-inset-right)) !important;
    top: 50% !important;
    bottom: auto !important;
    max-width: 420px !important;
    max-height: min(68svh, 610px) !important;
    margin: 0 auto !important;
    padding: 20px !important;
    border-radius: 28px !important;
    transform: translateY(-50%) scale(1) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    animation: qqqResultPop 420ms cubic-bezier(.2, .9, .18, 1.08) both !important;
  }

  #resultPanel h2 {
    font-size: clamp(31px, 8vw, 42px) !important;
    line-height: 1.12 !important;
    margin: 12px 0 14px !important;
  }

  #resultPanel #resultMeta {
    font-size: 16px !important;
    line-height: 1.45 !important;
  }

  #resultPanel .persona-card strong {
    font-size: 16px !important;
    line-height: 1.5 !important;
  }

  #resultPanel .spot-grid {
    gap: 10px !important;
  }

  #resultPanel .spot-grid article,
  #resultPanel .spot-card {
    min-height: 78px !important;
    padding: 13px !important;
  }

  #resultPanel .result-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  #resultPanel .result-actions .text-action {
    min-height: 40px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
  }

  .qqq-share-overlay,
  .qqq-gate-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 160 !important;
    display: grid !important;
    place-items: center !important;
    padding: 18px !important;
    background: rgba(8, 40, 76, 0.28) !important;
    backdrop-filter: blur(14px) !important;
  }

  .qqq-share-card,
  .qqq-gate-card {
    width: min(100%, 392px) !important;
    max-height: min(78svh, 660px) !important;
    overflow: auto !important;
    border-radius: 30px !important;
    padding: 22px !important;
    background: linear-gradient(145deg, rgba(239, 254, 255, 0.94), rgba(202, 245, 250, 0.82)) !important;
    border: 1px solid rgba(255, 255, 255, 0.72) !important;
    box-shadow: 0 28px 80px rgba(18, 95, 132, 0.28) !important;
    color: #082f5c !important;
  }

  .qqq-share-actions,
  .qqq-gate-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-top: 18px !important;
  }

  .qqq-share-actions button,
  .qqq-share-actions a,
  .qqq-gate-actions button,
  .qqq-gate-actions a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    border-radius: 999px !important;
    border: 0 !important;
    text-decoration: none !important;
    font-weight: 800 !important;
    color: #08345f !important;
    background: rgba(255, 255, 255, 0.72) !important;
  }

  .qqq-share-actions .primary,
  .qqq-gate-actions .primary {
    color: #fff !important;
    background: linear-gradient(135deg, #16d1c5, #1fa6ff, #796dff) !important;
  }
}

@media (max-width: 540px) and (max-height: 760px) {
  .app-shell {
    padding-top: max(12px, env(safe-area-inset-top)) !important;
  }

  .spin-copy h1.slogan-title {
    height: clamp(68px, 20vw, 92px) !important;
    margin-bottom: 5px !important;
  }

  .topic-chip {
    height: 42px !important;
    min-height: 42px !important;
    font-size: 9px !important;
  }

  .topic-chip span {
    font-size: 13px !important;
  }

  .filter-chip {
    height: 21px !important;
    min-height: 21px !important;
    line-height: 21px !important;
    font-size: 8.5px !important;
  }

  .wheel-stage {
    width: min(76vw, 312px) !important;
    height: min(76vw, 312px) !important;
    margin-top: 8px !important;
  }

  .action-bar {
    width: min(76vw, 300px) !important;
    gap: 7px !important;
    margin-top: 8px !important;
  }

  .action-bar .primary-action,
  .action-bar .secondary-action {
    height: 40px !important;
    min-height: 40px !important;
    font-size: 13px !important;
  }

  .zzz-mobile-dock {
    height: 64px !important;
    min-height: 64px !important;
  }

  .zzz-mobile-dock .zzz-dock-plus.zzz-dock-share {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
  }

  body.result-popup-open #resultPanel {
    max-height: min(72svh, 560px) !important;
    padding: 18px !important;
  }
}

@keyframes qqqResultPop {
  0% {
    opacity: 0;
    transform: translateY(-42%) scale(0.72);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}
