* {
  box-sizing: border-box;
}
.music-toggle {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  right: max(12px, calc((100vw - 750px) / 2 + 12px));
  z-index: 15;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #ffffffb3;
  border-radius: 50%;
  background: #096cbe66;
  color: #fff;
  padding: 6px;
}
.music-toggle svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.music-toggle.is-playing svg {
  animation: music-turn 6s linear infinite;
}
@keyframes music-turn {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .music-toggle.is-playing svg {
    animation: none;
  }
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: #eaf7fb;
  color: #525252;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button:disabled {
  cursor: default;
  filter: grayscale(0.7);
  opacity: 0.7;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
body.locked {
  overflow: hidden;
}
body.browsing {
  overflow: hidden;
  overscroll-behavior: none;
}
body.browsing #app {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
#app {
  width: min(100%, 750px);
  margin: auto;
  position: relative;
  min-height: 100svh;
}
#app,
.scene,
.brand-scene,
.staff-page {
  background: #eaf7fb url("/assets/layers/bg.jpg") center top / 100% auto
    no-repeat;
}
.scene {
  position: relative;
  width: 100%;
  aspect-ratio: 750/1334;
  overflow: hidden;
}
.brand-header {
  position: absolute;
  top: 0;
  left: 4.96%;
  right: 5.14%;
  padding-top: 9.12%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 5;
  pointer-events: none;
}
.brand-logo {
  width: 64.53%;
}
.anniversary-logo {
  width: 18.13%;
}
.brand-header img {
  display: block;
  height: auto;
}
.art-layer {
  position: absolute;
  height: auto;
  pointer-events: none;
}
.image-button {
  border: 0;
  background: none;
  padding: 0;
  line-height: 0;
  z-index: 4;
}
.image-button img {
  display: block;
  width: 100%;
  height: auto;
}
.home-title {
  left: 9.39%;
  top: 16.48%;
  width: 81.22%;
  z-index: 2;
}
.home-subtitle {
  left: 23.03%;
  top: 41.23%;
  width: 53.94%;
  z-index: 2;
}
.home-illustration {
  left: 0;
  top: 34.66%;
  width: 100%;
}
.home-join,
.home-rules,
.home-prizes {
  position: absolute;
}
.home-join {
  left: 26.75%;
  top: 85.96%;
  width: 46.5%;
}
.home-join img {
  animation: participate-breathe 2.4s ease-in-out infinite;
  transform-origin: center;
}
@keyframes participate-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-join img {
    animation: none;
  }
}
.scene-participate {
  min-height: 100svh;
}
.home-rules {
  right: 0;
  top: 15%;
  width: 7.35%;
}
.home-prizes {
  right: 0;
  top: 28.24%;
  width: 7.35%;
}
.participate-gift {
  left: 73.34%;
  top: 14.29%;
  width: 24.18%;
}
.participate-city {
  left: 3.28%;
  bottom: 0;
  width: 94.07%;
}
.gift-entry {
  position: absolute;
  left: 0;
  width: 100%;
  height: 31.18%;
}
.gift-entry-one {
  top: 21.66%;
}
.gift-entry-two {
  top: 58.76%;
}
.gift-label {
  position: absolute;
  top: 0;
  left: 32.11%;
  width: 35.78%;
}
.gift-title {
  position: absolute;
  top: 21.88%;
  left: 11.96%;
  width: 76.08%;
}
.gift-entry-two .gift-title {
  top: 15.65%;
  left: 13.11%;
  width: 72.54%;
}
.gift-join {
  position: absolute;
  top: 66.45%;
  left: 26.75%;
  width: 46.5%;
}
.gift-entry-two .gift-join {
  top: 62.46%;
}
.back {
  position: absolute;
  z-index: 3;
  left: 3%;
  top: 13%;
  border: 1px solid #ffffffa0;
  color: #fff;
  background: #087fda90;
  border-radius: 30px;
  padding: 5px 12px;
  font-size: clamp(11px, 2.6vw, 20px);
}
.draw-wheel {
  position: absolute;
  left: 3.1%;
  top: 24.15%;
  width: 93.1%;
  aspect-ratio: 1051/943;
  z-index: 2;
}
.draw-gift {
  left: 72.45%;
  top: 15.49%;
  width: 24.18%;
}
.draw-envelope {
  left: 3.28%;
  top: 14.04%;
  width: 25.16%;
}
.draw-coins {
  left: 3.63%;
  top: 63.4%;
  width: 22.05%;
}
.wheel-rotor {
  position: absolute;
  left: 8.18%;
  top: 3.29%;
  width: 83.73%;
  height: 93.32%;
  transition: transform 5s cubic-bezier(0.12, 0.72, 0.12, 1);
  will-change: transform;
  z-index: 2;
}
.wheel-housing {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.wheel-pointer {
  position: absolute;
  z-index: 3;
  left: 36.35%;
  top: 28%;
  width: 27.3%;
  border: 0;
  padding: 0;
  background: none;
}
.wheel-pointer img {
  width: 100%;
  display: block;
}
.wheel-pointer:disabled {
  opacity: 1;
  filter: none;
}
.draw-button:disabled {
  opacity: 1;
  filter: grayscale(1);
}
.wheel-base {
  position: absolute;
  left: 20.9%;
  top: 62.8%;
  width: 60.4%;
  z-index: 1;
}
.draw-button {
  position: absolute;
  left: 13.5%;
  top: 73.95%;
  width: 73.2%;
  border: 0;
  background: none;
  padding: 0;
  z-index: 3;
}
.draw-button img {
  display: block;
  width: 100%;
}
.draw-button span {
  position: absolute;
  top: 18.4%;
  left: 0;
  width: 100%;
  color: white;
  font-size: clamp(20px, 7.7vw, 58px);
  font-weight: bold;
  line-height: 1.3;
  text-shadow: 0 2px 4px #f19523;
}
.draw-status {
  position: absolute;
  top: 88.7%;
  left: 8%;
  width: 84%;
  text-align: center;
  color: #ee7005;
  font-size: clamp(12px, 2.9vw, 22px);
  z-index: 4;
}
.text-link {
  border: 0;
  background: none;
  color: #087ada;
  text-decoration: underline;
  padding: 5px;
}
.overlay {
  position: fixed;
  inset: 0;
  background: #000b;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0 max(24px, env(safe-area-inset-bottom));
  overscroll-behavior: contain;
  overflow-y: auto;
}
.dialog {
  position: relative;
  width: 94%;
  max-width: 702px;
  max-height: 88svh;
  display: flex;
  flex-direction: column;
  filter: drop-shadow(0 6px 18px #0003);
  font-size: clamp(14px, 3.2vw, 24px);
}
.dialog-header {
  width: 100%;
  display: block;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.dialog:focus {
  outline: none;
}
.dialog-body {
  background: white;
  border: 3px solid #d9f5ff;
  border-top: 0;
  border-radius: 0 0 18px 18px;
  margin-top: -3px;
  padding: 5% 6% 6%;
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 80px;
  scrollbar-width: thin;
}
.close {
  position: absolute;
  z-index: 5;
  right: 1%;
  top: -17px;
  background: none;
  border: 0;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 22px;
  line-height: 22px;
  padding: 0;
}
.close img {
  display: block;
  width: 100%;
  height: 100%;
}
.detail-card {
  width: 90%;
}
.detail-card .dialog-header {
  width: 96%;
  margin: 0 auto;
}
.detail-card .dialog-body {
  position: relative;
  z-index: 3;
  margin-top: -8px;
  border: clamp(3px, 0.8vw, 6px) solid #dff5ff;
  border-radius: 8px;
  padding: 6%;
  background: #fff;
  min-height: 0;
}
.dialog h3 {
  font-size: 1.05em;
  color: #fc7305;
  margin: 1.2em 0 0.5em;
}
.dialog h3:first-child {
  margin-top: 0.5em;
}
.dialog h4 {
  font-size: 1em;
  color: #555;
  margin: 0.8em 0 0.2em;
}
.dialog p {
  margin: 0.15em 0 0.75em;
  line-height: 1.55;
  text-align: justify;
}
.rule-prizes {
  padding: 0;
  list-style: none;
  line-height: 1.65;
  margin: 0.4em 0;
}
.rule-note {
  text-align: center !important;
  font-size: 0.8em;
  margin-top: 1.5em !important;
  color: #777;
}
.empty-image {
  display: block;
  width: 60%;
  max-width: 389px;
  margin: 14% auto 18%;
}
.prize-row {
  display: flex;
  align-items: center;
  gap: 4%;
  padding: 3%;
  background: #f0f0f0;
  border-radius: 9px;
  margin: 0 0 4%;
}
.prize-thumb {
  width: 25%;
  height: auto;
  object-fit: contain;
  border-radius: 5px;
}
.prize-copy {
  flex: 1;
  min-width: 0;
}
.prize-copy strong {
  display: block;
  font-size: 0.9em;
  color: #333;
}
.prize-copy small {
  font-size: 0.7em;
  display: block;
  line-height: 1.5;
  margin: 5px 0;
}
.orange-button {
  display: block;
  margin: 5% auto 0;
  padding: 0.55em 1.4em;
  border: 2px solid #ffe270;
  border-radius: 100px;
  color: #fff;
  font-weight: bold;
  background: linear-gradient(100deg, #ffe000, #ff8800 55%, #ff6024);
  box-shadow: 0 4px 8px #ffc92950;
  min-width: 44%;
}
.prize-copy .orange-button {
  font-size: 0.75em;
  margin: 7px 0 0;
  padding: 0.4em 1em;
  min-width: unset;
}
.result-dialog {
  max-width: 475px;
  width: 65%;
  background: #f8ffe2;
  border: 3px solid #f9df88;
  border-radius: 24px;
  box-shadow: 0 0 18px #caff4c66;
  font-size: clamp(13px, 3.2vw, 24px);
}
.result-dialog .dialog-body {
  background: #f8ffe2;
  border: 0;
  border-radius: 0 0 21px 21px;
  margin: 0;
  text-align: center;
  padding: 3% 8% 8%;
}
.prize-tier {
  width: 58%;
  display: block;
  margin: 0 auto 3%;
}
.redeem-qr {
  display: block;
  width: 80%;
  max-width: 300px;
  margin: 12px auto;
  image-rendering: pixelated;
}
.result-dialog .dialog-body p {
  text-align: center;
}
.result-dialog .dialog-header {
  border-radius: 20px 20px 0 0;
}
.result-heading {
  font-weight: bold;
  color: #111;
  font-size: 1.1em;
  line-height: 1.5;
  white-space: pre-line;
  margin: 0 0 0.7em;
}
.fine {
  font-size: 0.7em;
  line-height: 1.55;
  color: #7a7f65;
}
.claim-fields {
  display: grid;
  gap: 10px;
}
.claim-fields input,
.claim-fields select,
.claim-fields textarea {
  background: #e5e7dc;
  border: 1px solid transparent;
  border-radius: 24px;
  color: #333;
  min-height: 2.5em;
  padding: 0.45em 0.8em;
  width: 100%;
  font-size: 0.82em;
}
.claim-fields textarea {
  border-radius: 15px;
  resize: vertical;
}
.claim-fields label {
  display: block;
  text-align: left;
  font-size: 0.75em;
  margin: 0.2em 0;
}
.form-error {
  font-size: 0.75em;
  color: #b42318;
  margin: 0.5em 0;
  line-height: 1.5;
}
.claim-fields .orange-button {
  font-size: 1em;
  width: 100%;
  margin: 6px 0;
}
.privacy-label {
  display: flex !important;
  gap: 5px;
  align-items: flex-start;
  line-height: 1.5;
}
.privacy-label input {
  width: 14px;
  min-height: 14px;
  flex-shrink: 0;
  margin-top: 4px;
}
.result-thumb {
  width: 45%;
  margin: 0 auto 5%;
  display: block;
}
.layered-result {
  width: 63%;
  max-width: 474px;
  container-type: inline-size;
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  max-height: none;
  margin: auto;
  flex-shrink: 0;
}
.result-panel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.layered-result .dialog-body {
  position: relative;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 59% 8% 9%;
  text-align: center;
  z-index: 1;
  overflow: visible;
  flex-shrink: 0;
}
.layered-result .close {
  top: 5%;
  right: 0;
  width: 8.72%;
  height: auto;
  aspect-ratio: 1;
}
.layered-result .prize-tier {
  width: 78%;
  margin-bottom: 5%;
}
.prize-tier-text {
  font-size: 1.8em;
  color: #111;
  margin: 0 0 5%;
}
.result-cash .dialog-body {
  min-height: 133cqw;
}
.result-lose .dialog-body,
.result-checkin .dialog-body {
  min-height: 108cqw;
}
.result-dialog.result-physical .dialog-body {
  padding-top: 0;
}
.result-physical .result-panel {
  top: 22cqw;
  height: calc(100% - 22cqw);
}
.result-physical .result-thumb {
  width: 50%;
  height: 56cqw;
  object-fit: contain;
  margin: 0 auto 4%;
}
.result-physical .claim-fields {
  gap: 8px;
}
.result-physical .claim-fields input,
.result-physical .claim-fields select,
.result-physical .claim-fields textarea {
  font-size: 0.85em;
  min-height: 2.2em;
}
.result-physical .claim-fields textarea {
  min-height: 3.3em;
}
.result-physical .privacy-label input {
  min-height: 14px;
}
.result-physical .form-error:empty {
  display: none;
}
.share-overlay {
  background: #081b31d9;
  align-items: flex-start;
  justify-content: flex-end;
  padding: max(12px, env(safe-area-inset-top))
    max(18px, calc((100vw - 750px) / 2 + 18px)) 24px 18px;
}
.share-coach {
  width: min(100%, 350px);
  color: #ffdb74;
  text-align: center;
  outline: none;
  font-size: 16px;
}
.share-path {
  width: 144px;
  height: 130px;
  display: block;
  margin-left: auto;
  margin-right: 0;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.share-coach h2 {
  font-size: 23px;
  margin: 6px 0 14px;
  color: #ffe18d;
}
.share-coach h2 span {
  display: inline-block;
  color: #fff;
  letter-spacing: 2px;
}
.share-coach p {
  line-height: 1.9;
  margin: 0;
}
.share-destinations {
  display: flex;
  justify-content: center;
  gap: 42px;
  margin: 22px 0 24px;
}
.share-destinations span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px #0003;
  font-size: 42px;
  line-height: 1;
}
.share-friend {
  color: #27b75a;
}
.share-moments {
  color: #ffad2c;
}
.share-coach .share-confirm-note {
  font-size: 12px;
  color: #fffbd3;
}
.share-confirm {
  display: block;
  width: 84%;
  margin: 18px auto 8px;
  padding: 12px 8px;
  border: 1px solid #ffe9a8;
  border-radius: 26px;
  background: linear-gradient(#ffe89a, #ffc54d);
  color: #71440f;
  font-weight: bold;
}
.share-dismiss {
  border: 0;
  padding: 10px 20px;
  color: #fff;
  background: transparent;
  font-size: 13px;
}
.preload-screen {
  min-height: 100svh;
  color: white;
  padding: 10% 7%;
  background: #eaf7fb url("/assets/layers/bg.jpg") top center / 100% auto
    no-repeat;
}
.preload-logo {
  width: 67%;
  height: auto;
}
.preload-content {
  padding-top: min(24vh, 210px);
  text-align: center;
}
.preload-orbit {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 0 auto 26px;
  border: 1px solid #fff8;
  border-radius: 50%;
  box-shadow:
    0 0 0 13px #ffffff14,
    0 0 42px #ffffff38;
}
.preload-orbit span {
  color: #ffe68b;
  font-size: 42px;
  font-weight: bold;
}
.preload-content h1 {
  font-size: 23px;
  letter-spacing: 2px;
}
.preload-content p {
  font-size: 13px;
  opacity: 0.85;
}
#preload-progress {
  display: block;
  appearance: none;
  -webkit-appearance: none;
  width: 76%;
  height: 8px;
  margin: 28px auto 12px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #ffffff4d;
}
#preload-progress::-webkit-progress-bar {
  background: #ffffff4d;
  border-radius: 8px;
}
#preload-progress::-webkit-progress-value {
  background: #ffdc73;
  border-radius: 8px;
  transition: width 0.15s;
}
#preload-progress::-moz-progress-bar {
  background: #ffdc73;
  border-radius: 8px;
}
#preload-percent {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.brand-scene {
  position: relative;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: min(23vw, 172px) 5% max(16px, env(safe-area-inset-bottom));
  font-size: clamp(13px, 3.3vw, 24px);
}
.brand-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4%;
  color: white;
  flex-shrink: 0;
}
.brand-top button {
  border: 0;
  border-radius: 30px;
  background: #fff9;
  color: #185180;
  padding: 0.4em 0.8em;
}
.brand-media {
  position: relative;
  overflow: hidden;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  flex: 1;
  min-height: 0;
}
.brand-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 18px;
  object-fit: contain;
  display: block;
}
.brand-media > .brand-outgoing {
  position: absolute;
  pointer-events: none;
}
.brand-media video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 18px;
  object-fit: contain;
  display: block;
  background: #111;
}
.brand-hint {
  font-size: 0.82em;
  text-align: center;
  color: #275c7f;
  line-height: 1.6;
  flex-shrink: 0;
}
.brand-cta {
  border: 0;
  background: transparent;
  padding: 0;
  display: block;
  width: 52%;
  margin: 1% auto;
  flex-shrink: 0;
}
.brand-cta img {
  width: 100%;
  display: block;
}
.brand-cta:disabled {
  filter: grayscale(1);
}
#toast {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: 14%;
  transform: translateX(-50%);
  background: #222e;
  color: #fff;
  border-radius: 9px;
  padding: 12px 18px;
  font-size: 14px;
  max-width: 85%;
  line-height: 1.6;
  display: none;
  text-align: center;
}
#toast.visible {
  display: block;
}
.loading {
  padding: 40vh 25px;
  text-align: center;
  color: #1685d9;
}
.fatal {
  padding: 25vh 8%;
  text-align: center;
  line-height: 1.8;
}
.staff-page {
  position: relative;
  min-height: 100svh;
  padding: min(23vw, 172px) 5% 6%;
  font-size: 16px;
  max-width: 750px;
  margin: auto;
}
.staff-content {
  background: #ffffffed;
  border-radius: 16px;
  padding: 20px;
}
.staff-content h1 {
  font-size: 24px;
}
.staff-page input {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
}
.staff-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.staff-page td,
.staff-page th {
  padding: 8px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}
.analytics-table-wrap {
  overflow-x: auto;
}
.analytics-table-wrap td:nth-child(2) {
  overflow-wrap: anywhere;
  min-width: 160px;
}
@media (min-width: 800px) {
  .dialog {
    max-width: 560px;
    font-size: 19px;
  }
  .result-dialog {
    max-width: 390px;
    font-size: 19px;
  }
}
