* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #e7edf5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  cursor: pointer;
  touch-action: manipulation;
}

button:disabled {
  cursor: default;
}

[v-cloak] {
  display: none;
}

.ignore.home-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100vw, 375px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background-color: #e71b06;
}

@media (max-width: 430px) {
  .ignore.home-container {
    width: 100vw;
    margin: 0;
  }

  .float-menu {
    right: 0 !important;
  }
}

@media (min-width: 431px) {
  .float-menu {
    left: 339px;
    right: auto !important;
  }
}

.ignore.home-container .hero-stage {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0;
}

.float-menu {
  position: absolute !important;
  top: 13%;
  right: 0 !important;
  left: auto;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.float-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  min-height: 78px;
  min-width: 0;
  padding: 10px 7px;
  border: 0;
  border-radius: 7px 0 0 7px;
  background: rgba(20, 20, 20, 0.74);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 2px;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
  writing-mode: vertical-rl;
  pointer-events: auto;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.float-btn:active {
  transform: translateY(1px);
}

.hero-visual {
  position: relative;
  width: 100%;
  z-index: 10;
}

.hero-visual__image {
  width: 100%;
  display: block;
  object-fit: contain;
}

.hero-visual__unlock {
  position: absolute;
  top: 43.7%;
  right: 11.3%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 16%;
  color: #fff7d0;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(169, 35, 10, 0.4);
}

.hero-visual__unlock-price {
  margin-top: 1px;
  font-size:18px;
}

.hero-visual__panel {
  --panel-border-width: 3px;
  --panel-inner-corner: 0px;
  position: relative;
  isolation: isolate;
  z-index: 20;
  width: 95%;
  margin-top: -20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 12px;
  border: 3px solid transparent;
  border-radius: 12px;
  background:
    linear-gradient(transparent, transparent) padding-box,
    linear-gradient(125deg, #feac6d 0%, #ff6c35 16%, #ffe05f 32%, #ff9f59 48%, #ffd195 64%, #ffc629 78%, #ff7c3d 100%) border-box;
  background-size: auto, 240% 240%;
  background-position: 0 0, 0% 50%;
  box-shadow: 0 4px 12px rgba(202, 42, 10, 0.18);
  animation: panel-border-flow 2.8s ease-in-out infinite;
}

.hero-visual__panel::before {
  content: "";
  position: absolute;
  inset: var(--panel-border-width);
  z-index: 0;
  pointer-events: none;
  border-radius: 8px;
  background: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 199, 124, 0.72),
    inset 0 8px 18px rgba(255, 139, 45, 0.13),
    inset 0 -5px 12px rgba(184, 38, 8, 0.08);
  -webkit-mask:
    radial-gradient(circle at 0 0, transparent 0 var(--panel-inner-corner), #000 calc(var(--panel-inner-corner) + 1px)) 0 0 / 50% 50% no-repeat,
    radial-gradient(circle at 100% 0, transparent 0 var(--panel-inner-corner), #000 calc(var(--panel-inner-corner) + 1px)) 100% 0 / 50% 50% no-repeat,
    radial-gradient(circle at 0 100%, transparent 0 var(--panel-inner-corner), #000 calc(var(--panel-inner-corner) + 1px)) 0 100% / 50% 50% no-repeat,
    radial-gradient(circle at 100% 100%, transparent 0 var(--panel-inner-corner), #000 calc(var(--panel-inner-corner) + 1px)) 100% 100% / 50% 50% no-repeat;
  mask:
    radial-gradient(circle at 0 0, transparent 0 var(--panel-inner-corner), #000 calc(var(--panel-inner-corner) + 1px)) 0 0 / 50% 50% no-repeat,
    radial-gradient(circle at 100% 0, transparent 0 var(--panel-inner-corner), #000 calc(var(--panel-inner-corner) + 1px)) 100% 0 / 50% 50% no-repeat,
    radial-gradient(circle at 0 100%, transparent 0 var(--panel-inner-corner), #000 calc(var(--panel-inner-corner) + 1px)) 0 100% / 50% 50% no-repeat,
    radial-gradient(circle at 100% 100%, transparent 0 var(--panel-inner-corner), #000 calc(var(--panel-inner-corner) + 1px)) 100% 100% / 50% 50% no-repeat;
}

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

.hero-visual__feed {
  width: 100%;
  padding: 2px 2px 0;
}

.scroll-container {
  width: 100%;
  height: 36px;
  overflow: hidden;
  position: relative;
}

.scroll-list {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
  transition: transform 0ms;
}

.scroll-list.animating {
  transition: transform 500ms ease-in-out;
  transform: translateY(-36px);
}

.scroll-item {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
}

.winner-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 0 0 auto;
}

.winner-text {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  white-space: nowrap;
}

.username {
  color: #514741;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.desc-text {
  color: #6f655f;
  font-size: 16px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.desc-highlight {
  color: #f13b35;
  font-size: 16px;
  font-weight: 700;
  flex: 0 0 auto;
}

.payment-instructions {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.payment-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 2px 2px 0;
  gap: 8px;
}

.payment-logos {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pay-text {
  min-width: 0;
  color: #5b5550;
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
}

.pay-text--accent {
  flex: 0 1 auto;
  color: #f13b35;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checked-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: #ff7b23;
  color: #ffffff;
  font-size: 10px;
}

.btn-container {
  width: 82%;
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.claim-btn {
  position: relative;
  width: 100%;
  border: none;
  padding: 0;
  background: none;
  transition: transform 0.16s ease;
}

.claim-btn::before {
  content: "";
  position: absolute;
  inset: -5px -7px;
  z-index: 0;
  border-radius: 999px;
  background: rgba(255, 77, 28, 0.18);
  opacity: 0;
  pointer-events: none;
}

.claim-btn:disabled {
  opacity: 0.85;
}

.claim-btn:disabled::before {
  animation: none;
}

.claim-btn__tag {
  position: absolute;
  right: -1px;
  top: -18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff6d4 0%, #ffd26d 100%);
  color: #e82f12;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(214, 58, 12, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.claim-btn__surface {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(180deg, #ff3318 0%, #ff2208 52%, #f71905 100%);
  box-shadow: inset 0 3px 0 rgba(255, 206, 174, 0.32), 0 8px 16px rgba(178, 22, 6, 0.26);
}

.claim-btn__text {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 0 2px 0 rgba(189, 18, 5, 0.18);
}

.breath {
  animation: claim-breath 0.92s ease-in-out infinite alternate;
}

.claim-btn.breath {
  animation: claim-button-breath 0.72s ease-in-out infinite alternate;
}

.claim-btn.breath::before {
  animation: claim-button-halo 0.96s ease-out infinite;
}

.breath:disabled {
  animation: none;
}

.claim-btn:active {
  transform: scale(0.97);
}

.page-lower-section {
  position: relative;
  z-index: 20;
  width: 100%;
  margin: 0 auto;
  padding: 30px 18px 52px;
  background: #e71b06;
}

.home-rule-section {
  width: 100%;
  padding: 22px 0 24px;
  background: #e71b06;
  color: #ffffff;
}

.home-rule-section--light {
  padding: 22px 14px 24px;
  border-radius: 20px;
  background: #ffffff;
  color: #1f1f1f;
  box-shadow: 0 10px 28px rgba(64, 26, 15, 0.16);
}

.home-rule-section--light .home-rule-title,
.home-rule-section--light .home-rule-content {
  color: #1f1f1f;
}

.home-rule-title {
  margin-bottom: 18px;
  color: #ffffff;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
}

.home-rule-content {
  margin: 0 6px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.85;
  word-break: break-word;
  text-align: left;
}

.html-content p {
  margin: 0 0 16px;
}

.html-content ol,
.html-content ul {
  margin: 0;
  padding-left: 1.4em;
}

.html-content li {
  margin-bottom: 10px;
}

.html-content span {
  white-space: normal;
}

.footer-wrapper {
  position: static;
  width: 100%;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer-company {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 1px;
}

.security-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 5px;
  width: 100%;
  margin-top: 16px;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 0;
  min-width: 0;
  height: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 2px;
  background: linear-gradient(180deg, #c9192e 0%, #a80f25 100%);
  box-shadow: 0 4px 10px rgba(130, 8, 16, 0.18);
}

.security-badge__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 100%;
  flex: 0 0 auto;
  padding: 4px;
  background: #ffffff;
}

.security-badge__mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(88, 0, 0, 0.08));
}

.security-badge__text {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 3px;
  color: #fff6ef;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
}

.security-badge__text--cloud {
  font-size: 11px;
}

.rule-dialog-mask,
.payment-confirm-mask {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: rgba(29, 12, 9, 0.62);
  backdrop-filter: blur(6px);
}

.rule-dialog {
  width: min(680px, 100%);
  height: 74vh;
  overflow: hidden;
  padding: 30px 0;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff8ed 0%, #fff1dd 100%);
  color: #7b2818;
  box-shadow: 0 24px 56px rgba(57, 17, 9, 0.32);
}

.rule-dialog__header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 80px;
  background: linear-gradient(180deg, #fff8ed 0%, #fff3e3 100%);
}

.rule-dialog__close {
  position: fixed;
  top: 14.7vh;
  right: max(16px, calc((100vw - 430px) / 2 + 16px));
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: none;
  color: #912e1b;
  font-size: 28px;
  line-height: 1;
}

.rule-dialog__title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
}

.rule-dialog__divider {
  position: sticky;
  top: 80px;
  z-index: 1;
  height: 1px;
  margin: 0 -34px;
  background: linear-gradient(90deg, rgba(182, 104, 66, 0) 0%, rgba(182, 104, 66, 0.42) 18%, rgba(182, 104, 66, 0.42) 82%, rgba(182, 104, 66, 0) 100%);
}

.rule-dialog__box {
  max-height: 65vh;
  padding: 20px 10px;
  overflow: auto;
}

.rule-dialog__content {
  font-size: 14px;
  line-height: 1.75;
  word-break: break-word;
}

.payment-confirm-mask {
  z-index: 130;
  padding: 24px;
  background: rgba(27, 12, 9, 0.58);
  backdrop-filter: blur(4px);
}

.payment-confirm-dialog {
  width: min(560px, 100%);
  padding: 24px 18px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff8ee 0%, #ffe9d0 100%);
  color: #7b2818;
  box-shadow: 0 20px 42px rgba(70, 20, 10, 0.24);
}

.payment-confirm-dialog__title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

.payment-confirm-dialog__desc {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.payment-confirm-dialog__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.payment-confirm-dialog__btn {
  width: 100%;
  min-width: 0;
  height: 46px;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
}

.payment-confirm-dialog__btn:disabled {
  opacity: 0.72;
}

.payment-confirm-dialog__btn--ghost {
  background: rgba(255, 255, 255, 0.88);
  color: #9a4427;
  box-shadow: inset 0 0 0 1px rgba(186, 111, 72, 0.3);
}

.payment-confirm-dialog__btn--primary {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(180deg, #ff824f 0%, #ef4f25 100%);
  color: #fff8f3;
  box-shadow: 0 12px 20px rgba(201, 65, 24, 0.22);
  white-space: nowrap;
}

.payment-confirm-dialog__btn-tag {
  font-size: 13px;
  line-height: 1;
}

.payment-confirm-dialog__btn-prices {
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1;
  white-space: nowrap;
}

.payment-confirm-dialog__btn-price-current {
  font-size: 17px;
  font-weight: 800;
}

.payment-confirm-dialog__btn-price-origin {
  font-size: 11px;
  color: rgba(255, 248, 243, 0.76);
  text-decoration: line-through;
}

.feedback-toast-blocker {
  position: fixed;
  inset: 0;
  z-index: 155;
  background: rgba(0, 0, 0, 0.001);
}

.feedback-toast {
  position: fixed;
  top: 28px;
  left: 50%;
  z-index: 160;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: calc(100vw - 32px);
  width: auto;
  padding: 12px 16px 12px 10px;
  border-radius: 18px;
  transform: translateX(-50%);
  background: rgba(14, 14, 14, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.feedback-toast__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.feedback-toast__icon-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feedback-toast__icon-placeholder {
  font-size: 14px;
  font-weight: 700;
}

.feedback-toast__text {
  font-size: 15px;
  line-height: 1.4;
}

.feedback-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(6px);
}

.feedback-card {
  width: min(280px, calc(100vw - 64px));
  padding: 28px 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(16, 16, 16, 0.96) 0%, rgba(28, 28, 28, 0.94) 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  text-align: center;
  color: #ffffff;
}

.feedback-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border: 4px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  animation: feedback-spin 0.8s linear infinite;
}

.feedback-card__title {
  margin-top: 18px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.redpack-interaction-mask {
  position: fixed;
  inset: 0;
  z-index: 115;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 0 28px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(1px);
}

.redpack-interaction-mask--redirecting {
  animation: redpack-page-jump-mask 0.52s ease forwards;
}

.redpack-interaction {
  position: relative;
  width: min(720px, 100vw);
  min-height: min(780px, 100dvh);
  padding: 0 8px 20px;
  overflow: hidden;
  color: #fff7c7;
}

.redpack-interaction--redirecting {
  animation: redpack-page-jump 0.52s ease forwards;
}

.redpack-interaction::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 35.5%;
  width: 470px;
  height: 390px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse at center, rgba(255, 239, 99, 0.95) 0 2.2%, rgba(255, 184, 34, 0.56) 4%, rgba(255, 184, 34, 0.14) 12%, rgba(255, 184, 34, 0) 22%),
    repeating-conic-gradient(from -6deg, rgba(255, 226, 91, 0.52) 0deg 6deg, rgba(255, 209, 83, 0.12) 6deg 9deg, rgba(143, 28, 8, 0) 9deg 22deg);
  opacity: 0.78;
  animation: redpack-rays 14s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0 36%, rgba(0, 0, 0, 0.74) 49%, rgba(0, 0, 0, 0.24) 64%, transparent 76%);
  mask-image: radial-gradient(ellipse at center, #000 0 36%, rgba(0, 0, 0, 0.74) 49%, rgba(0, 0, 0, 0.24) 64%, transparent 76%);
}

.redpack-interaction::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(72, 4, 4, 0.9) 0%, rgba(114, 18, 6, 0.56) 36%, rgba(83, 20, 6, 0.14) 70%, rgba(60, 12, 4, 0.04) 100%);
}

.redpack-interaction__topline {
  position: relative;
  z-index: 1;
  width: min(620px, calc(100vw - 32px));
  margin: 0 auto 88px;
  color: rgba(255, 221, 151, 0.28);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

.redpack-interaction__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.redpack-celebration-text {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 117;
  width: calc(100vw - 28px);
  color: #ffe66b;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.22;
  text-align: center;
  text-shadow: 0 3px 0 #b92708, 0 5px 8px rgba(73, 10, 3, 0.36), 0 0 12px rgba(255, 226, 76, 0.5);
  transform: translate(-50%, -50%);
  animation: redpack-celebration-in 0.36s ease both, redpack-celebration-pulse 1.2s ease-in-out 0.36s infinite alternate;
}

.redpack-fireworks {
  position: fixed;
  inset: 0;
  z-index: 116;
  overflow: hidden;
  pointer-events: none;
}

.redpack-fireworks__spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--spark-color);
  box-shadow: 0 0 14px var(--spark-color), 0 0 30px rgba(255, 236, 120, 0.58), 0 0 48px rgba(255, 116, 218, 0.26);
  animation: redpack-firework 1.18s ease-out var(--spark-delay) infinite;
}

.redpack-fireworks__spark::before,
.redpack-fireworks__spark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--spark-color);
  box-shadow: 0 0 10px var(--spark-color);
  transform: translate(-50%, -50%);
}

.redpack-fireworks__spark::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.redpack-fireworks__spark:nth-child(1) { left: 18%; top: 20%; }
.redpack-fireworks__spark:nth-child(2) { left: 34%; top: 15%; }
.redpack-fireworks__spark:nth-child(3) { left: 62%; top: 18%; }
.redpack-fireworks__spark:nth-child(4) { left: 82%; top: 25%; }
.redpack-fireworks__spark:nth-child(5) { left: 16%; top: 45%; }
.redpack-fireworks__spark:nth-child(6) { left: 74%; top: 46%; }
.redpack-fireworks__spark:nth-child(7) { left: 28%; top: 66%; }
.redpack-fireworks__spark:nth-child(8) { left: 54%; top: 62%; }
.redpack-fireworks__spark:nth-child(9) { left: 86%; top: 70%; }
.redpack-fireworks__spark:nth-child(10) { left: 48%; top: 31%; }
.redpack-fireworks__spark:nth-child(11) { left: 9%; top: 78%; }
.redpack-fireworks__spark:nth-child(12) { left: 71%; top: 76%; }
.redpack-fireworks__spark:nth-child(13) { left: 7%; top: 31%; }
.redpack-fireworks__spark:nth-child(14) { left: 92%; top: 38%; }
.redpack-fireworks__spark:nth-child(15) { left: 39%; top: 82%; }
.redpack-fireworks__spark:nth-child(16) { left: 63%; top: 86%; }
.redpack-fireworks__spark:nth-child(17) { left: 22%; top: 10%; }
.redpack-fireworks__spark:nth-child(18) { left: 78%; top: 11%; }
.redpack-fireworks__spark:nth-child(19) { left: 50%; top: 8%; }
.redpack-fireworks__spark:nth-child(20) { left: 48%; top: 92%; }

.redpack-interaction__pending {
  margin-bottom: 44px;
  color: rgba(255, 239, 186, 0.2);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
}

.redpack-interaction__sub-title {
  color: #fff6b2;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 0 #d62b0e, 0 0 12px rgba(255, 80, 20, 0.92);
}

.redpack-interaction__amount-row {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  margin-top: 14px;
}

.redpack-interaction__amount-prefix {
  margin-right: 5px;
  margin-bottom: 10px;
  color: #fff6b2;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  writing-mode: vertical-rl;
  text-shadow: 0 2px 0 #d62b0e, 0 0 10px rgba(255, 80, 20, 0.92);
}

.redpack-interaction__amount {
  color: #fff9b4;
  font-size: 96px;
  font-weight: 900;
  line-height: 0.86;
  text-shadow: 0 4px 0 #ee420c, 0 8px 16px rgba(112, 18, 4, 0.52);
}

.redpack-interaction__amount span {
  margin-left: 6px;
  font-size: 46px;
}

.redpack-interaction__choose {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100vw - 72px);
  max-width: 358px;
  height: 36px;
  margin-top: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff6a24 0%, #ee230b 100%);
  color: #fff9c8;
  font-size: 17px;
  font-weight: 900;
  box-shadow: inset 0 0 0 2px rgba(255, 245, 145, 0.72), 0 5px 10px rgba(101, 15, 3, 0.32);
}

.redpack-interaction__hint {
  align-self: flex-end;
  margin: 6px 32px 0 0;
  color: rgba(255, 245, 201, 0.92);
  font-size: 10px;
  font-weight: 700;
}

.redpack-interaction__packets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  width: min(414px, calc(100vw - 16px));
  margin-top: 36px;
}

.redpack-packet {
  position: relative;
  aspect-ratio: 0.82;
  min-width: 0;
  border: none;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #ff6d45 0%, #ff3218 50%, #d61908 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 162, 96, 0.62), 0 14px 18px rgba(73, 13, 5, 0.26);
  transform-origin: center bottom;
  transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
}

.redpack-packet--active {
  transform: translateY(-10px) scale(1.05);
  filter: brightness(1.12) drop-shadow(0 0 16px rgba(255, 236, 120, 0.72));
}

.redpack-packet__cover,
.redpack-packet__prize {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.redpack-packet__lid {
  position: absolute;
  left: -12%;
  right: -12%;
  top: -2%;
  height: 50%;
  border-radius: 0 0 48% 48%;
  background: linear-gradient(180deg, #ff7e57 0%, #ea3118 100%);
  box-shadow: inset 0 -3px 0 rgba(255, 190, 116, 0.28), 0 5px 0 rgba(141, 27, 6, 0.2);
}

.redpack-packet__seam {
  position: absolute;
  left: 50%;
  top: 34%;
  width: 122%;
  height: 56%;
  border: 2px solid rgba(255, 201, 104, 0.54);
  border-top: none;
  border-radius: 0 0 50% 50%;
  transform: translateX(-50%);
}

.redpack-packet__coin,
.redpack-packet__prize-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe68b 0%, #f7b23c 100%);
  color: #d14318;
  font-size: 22px;
  font-weight: 900;
  box-shadow: inset 0 0 0 3px rgba(255, 247, 177, 0.72), 0 4px 6px rgba(85, 14, 4, 0.2);
}

.redpack-packet__coin {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
}

.redpack-packet__prize {
  opacity: 0;
  justify-content: flex-start;
  transform: translateY(12px);
}

.redpack-packet__prize-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80%;
  height: 66%;
  margin-top: 9px;
  border: 4px solid rgba(255, 217, 113, 0.95);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff9e9 0%, #ffe9bd 100%);
}

.redpack-packet__prize-card--loser {
  background: linear-gradient(180deg, rgba(255, 249, 232, 0.82) 0%, rgba(255, 226, 189, 0.82) 100%);
  border-color: rgba(255, 217, 113, 0.58);
}

.redpack-packet__prize::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -11%;
  height: 42%;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, rgba(255, 103, 65, 0.95) 0%, rgba(220, 24, 7, 0.98) 72%);
}

.redpack-packet__no-prize {
  position: relative;
  z-index: 1;
  color: #ba4526;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.redpack-packet__prize-label,
.redpack-packet__prize-amount,
.redpack-packet__prize-btn {
  position: relative;
  z-index: 1;
}

.redpack-packet__prize-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #f1521e;
  font-size: 12px;
  font-weight: 800;
}

.redpack-packet__prize-label::before,
.redpack-packet__prize-label::after {
  content: "";
  width: 12px;
  height: 1px;
  background: rgba(241, 82, 30, 0.48);
}

.redpack-packet__prize-amount {
  margin-top: 4px;
  color: #e62912;
  font-size: 23px;
  font-weight: 900;
  text-shadow: 0 2px 0 rgba(255, 223, 177, 0.75);
}

.redpack-packet__prize-btn {
  position: absolute;
  bottom: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  color: #ef4d1f;
  font-size: 20px;
}

.redpack-packet--opened {
  z-index: 2;
  border: 2px solid rgba(255, 223, 119, 0.86);
  animation: redpack-open-pop 0.5s ease forwards;
}

.redpack-packet--loser {
  opacity: 0.72;
  filter: saturate(0.82) brightness(0.86);
}

.redpack-packet--opened .redpack-packet__cover {
  opacity: 0;
  transform: translateY(-18px);
}

.redpack-packet--opened .redpack-packet__prize {
  opacity: 1;
  transform: translateY(0);
}

.feedback-toast-enter-active,
.feedback-toast-leave-active,
.feedback-overlay-enter-active,
.feedback-overlay-leave-active,
.dialog-fade-enter-active,
.dialog-fade-leave-active,
.redpack-interaction-enter-active,
.redpack-interaction-leave-active {
  transition: all 0.22s ease;
}

.feedback-toast-enter,
.feedback-toast-leave-to,
.feedback-overlay-enter,
.feedback-overlay-leave-to,
.dialog-fade-enter,
.dialog-fade-leave-to,
.redpack-interaction-enter,
.redpack-interaction-leave-to {
  opacity: 0;
}

.feedback-toast-enter,
.feedback-toast-leave-to {
  transform: translate(-50%, -10px);
}

@keyframes panel-border-flow {
  0% { background-position: 0 0, 0% 50%; }
  50% { background-position: 0 0, 100% 50%; }
  100% { background-position: 0 0, 0% 50%; }
}

@keyframes claim-breath {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(255, 123, 72, 0.12));
  }

  100% {
    transform: scale(1.06);
    filter: drop-shadow(0 10px 18px rgba(255, 123, 72, 0.32));
  }
}

@keyframes claim-button-breath {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(255, 123, 72, 0.12));
  }

  100% {
    transform: scale(1.095);
    filter: drop-shadow(0 14px 22px rgba(255, 67, 28, 0.34));
  }
}

@keyframes claim-button-halo {
  0% {
    opacity: 0.22;
    transform: scale(0.96);
  }

  72% {
    opacity: 0.08;
  }

  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@keyframes feedback-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes redpack-rays {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes redpack-open-pop {
  0% { transform: translateY(0) scale(1); }
  42% { transform: translateY(-18px) scale(1.1) rotate(-2deg); }
  100% { transform: translateY(-8px) scale(1.04); }
}

@keyframes redpack-firework {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
  }

  18% {
    opacity: 1;
  }

  72% {
    opacity: 0.95;
    transform: translate(calc(var(--spark-x) * 0.9), calc(var(--spark-y) * 0.9)) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(var(--spark-x), var(--spark-y)) scale(0.18);
  }
}

@keyframes redpack-celebration-in {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.84);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes redpack-celebration-pulse {
  0% {
    filter: brightness(1);
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    filter: brightness(1.08) drop-shadow(0 0 8px rgba(255, 232, 99, 0.42));
    transform: translate(-50%, -50%) scale(1.025);
  }
}

@keyframes redpack-page-jump {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-36px) scale(0.94);
  }
}

@keyframes redpack-page-jump-mask {
  0% { background: rgba(0, 0, 0, 0.84); }
  55% { background: rgba(255, 244, 188, 0.22); }
  100% { background: rgba(0, 0, 0, 0); }
}

@media (max-width: 360px) {
  .hero-visual__panel {
    gap: 10px;
    padding: 9px 14px 11px;
  }

  .username {
    font-size: 16px;
  }

  .desc-text,
  .desc-highlight {
    font-size: 14px;
  }

  .pay-text {
    font-size: 15px;
  }

  .pay-text--accent {
    font-size: 12px;
  }

  .claim-btn__text {
    font-size: 24px;
  }
}

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

/* H5 统一字号标准：正文 13-14，说明 11-12，小标题 18-20，主按钮 22。 */
.float-btn {
  font-size: 12px;
}

.username {
  font-size: 15px;
}

.desc-text,
.desc-highlight {
  font-size: 12px;
}

.pay-text {
  font-size: 15px;
}

.pay-text--accent {
  font-size: 11px;
}

.claim-btn__tag {
  font-size: 12px;
}

.claim-btn__text {
  font-size: 22px;
}

.home-rule-title {
  font-size: 18px;
}

.home-rule-content {
  font-size: 13px;
  line-height: 1.75;
}

.footer-company {
  font-size: 12px;
}

.security-badge__text {
  font-size: 10px;
}

.security-badge__text--cloud {
  font-size: 10px;
}

.rule-dialog__title,
.payment-confirm-dialog__title {
  font-size: 20px;
}

.rule-dialog__content,
.payment-confirm-dialog__desc {
  font-size: 13px;
}

.payment-confirm-dialog__btn {
  font-size: 14px;
}

.feedback-toast__text {
  font-size: 14px;
}

.feedback-card__title {
  font-size: 16px;
}

.redpack-celebration-text {
  font-size: 24px;
}

.redpack-interaction__sub-title {
  font-size: 21px;
}

.redpack-interaction__amount-prefix {
  font-size: 14px;
}

.redpack-interaction__amount {
  font-size: 82px;
}

.redpack-interaction__amount span {
  font-size: 38px;
}

.redpack-interaction__choose {
  font-size: 15px;
}

.redpack-packet__coin,
.redpack-packet__prize-btn {
  font-size: 18px;
}

.redpack-packet__no-prize {
  font-size: 15px;
}

.redpack-packet__prize-amount {
  font-size: 20px;
}
