/* Frontend finishing layer: incumbent palette, restrained interactive motion. */
body.hp-v2.hp-v3 {
  background-image: linear-gradient(180deg,rgba(8,6,28,.94),rgba(5,4,20,.97)),url('../assets/bg.jpg') !important;
}
body.hp-v2.hp-v3 :is(.hp-result-tab,.hp-v2-action-card) { text-shadow: none !important; }
body.hp-v2.hp-v3 .hp-result-tab { box-shadow: none !important; }
body[data-ui="frontend"] #authMain {
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,.24);
}
body[data-ui="frontend"] #authMain .brand h1 { font-size: clamp(22px,5vw,28px); line-height: 1.45; }
body[data-ui="frontend"] #authMain .brand p { line-height: 1.7; }
body[data-ui="frontend"] #authMain input { min-height: 48px; font-size: 16px; }
body[data-ui="frontend"] #authMain .field label { font-weight: 500; }
@media (prefers-reduced-motion:no-preference) {
  body[data-ui="frontend"] #authMain { animation: hp-auth-arrive 240ms ease-out both; }
  @keyframes hp-auth-arrive { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
}
body[data-ui="frontend"] {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  accent-color: #7c64da;
}
body[data-ui="frontend"] ::selection { background: #564593; color: #fff; }
body[data-ui="frontend"] :is(input,textarea) { caret-color: #80d8ff; }
body[data-ui="frontend"] :is(button,a,input,select,textarea):focus-visible {
  outline: 2px solid #80d8ff !important;
  outline-offset: 3px;
}
body.hp-v2.hp-v3 .neon-text { text-shadow: none !important; }
body.hp-v2.hp-v3 :is(.huaypang-logo-float,.animate-ping) { animation: none !important; }
body.hp-v2.hp-v3 .hp-brand-copy > span:last-child { letter-spacing: .04em !important; }
body.hp-v2.hp-v3 :is(.hp-home-results-heading,.hp-model-heading) h2 {
  font-weight: 600;
  line-height: 1.45;
  text-wrap: balance;
}
body.hp-v2.hp-v3 :is(.hp-home-results-heading,.hp-model-heading) > span {
  color: #c3bed6;
  line-height: 1.6;
}
body.hp-v2.hp-v3 #contact {
  padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px));
  border-top-color: rgba(151,135,255,.24);
}
body.hp-v2.hp-v3 .hp-contact-fallback {
  max-width: 620px;
  margin: 12px auto 20px;
  color: #c3bed6;
  line-height: 1.8;
  font-size: 14px;
}
body.member-neon .lottery-picker-card { box-shadow: none !important; }
body.member-neon .lottery-picker-card .lottery-card-media img { image-rendering: auto; }
body.member-neon :is(#creditBadge,.lottery-card-countdown,.lottery-card-date) {
  font-variant-numeric: tabular-nums;
}
body.member-neon .lottery-picker-card.is-closed .lottery-card-media img {
  filter: saturate(.5) brightness(.85);
}
body[data-ui="frontend"] :is(.neon-button,.nav-link,.lottery-picker-card button,.member-topnav button) {
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
@media (hover:hover) and (pointer:fine) {
  body.member-neon .lottery-picker-card.is-open { transition: border-color 180ms ease, box-shadow 180ms ease; }
  body.member-neon .lottery-picker-card.is-open:hover {
    border-color: #a4d4ff;
    box-shadow: 0 8px 24px rgba(0,0,0,.22) !important;
  }
  body.hp-v2.hp-v3 .neon-button:hover { box-shadow: 0 4px 18px rgba(124,77,255,.3) !important; }
}
body[data-ui="frontend"] :is(button,.neon-button):active:not(:disabled) { filter: brightness(.94); }
body[data-ui="frontend"] button:disabled { cursor: not-allowed; }
@media (max-width:640px) {
  body.hp-v2.hp-v3 { background-attachment: scroll !important; }
  body.hp-v2.hp-v3 #contact { padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
  body.hp-v2.hp-v3 .hp-contact-fallback { padding-inline: 12px; }
}
@media (prefers-reduced-motion:reduce) {
  body[data-ui="frontend"] *, body[data-ui="frontend"] *::before, body[data-ui="frontend"] *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
