:root {
  color-scheme: light;
  --green-950: #07261d;
  --green-900: #0b3529;
  --green-800: #10523d;
  --green-600: #19b873;
  --green-500: #28d982;
  --green-300: #9cf7c2;
  --mint-100: #eafff3;
  --mint-50: #f7fff9;
  --lime: #c8ff45;
  --yellow: #fff06a;
  --orange: #ff9d23;
  --red: #ff404f;
  --ink: #123028;
  --muted: #5d766c;
  --shadow: 0 18px 48px rgba(7, 48, 35, 0.18);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 6%, rgba(156, 247, 194, 0.6), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(255, 240, 106, 0.38), transparent 26%),
    linear-gradient(180deg, #f8fff9 0%, #e9fff2 42%, #ffffff 100%);
  color: var(--ink);
}

button {
  border: 0;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: env(safe-area-inset-top) 14px calc(92px + env(safe-area-inset-bottom));
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 224px;
  margin: 0 -14px;
  padding: 14px;
  background:
    linear-gradient(140deg, rgba(8, 39, 31, 0.94), rgba(17, 83, 61, 0.82)),
    radial-gradient(circle at 86% 8%, rgba(200, 255, 69, 0.35), transparent 32%);
  border-bottom-right-radius: 34px;
  border-bottom-left-radius: 34px;
  color: #f5fff8;
  box-shadow: 0 16px 34px rgba(7, 38, 29, 0.2);
}

.hero::before {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: 74px -80px auto auto;
  width: 220px;
  height: 220px;
  border: 28px solid rgba(156, 247, 194, 0.16);
  border-radius: 50%;
}

.hero-bg-slot {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 196px;
  border: 1px dashed rgba(156, 247, 194, 0.6);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 50% 42%, rgba(156, 247, 194, 0.18), transparent 46%);
  overflow: hidden;
}

.hero-bg-slot::after {
  content: "背景图片位";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(234, 255, 243, 0.82);
  font-size: 18px;
  font-weight: 900;
}

.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  font-size: 18px;
  color: var(--green-300);
}

.topbar strong {
  position: absolute;
  left: 50%;
  max-width: 180px;
  transform: translateX(-50%);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn,
.rules-btn {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  color: var(--green-300);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(156, 247, 194, 0.35);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.icon-btn span {
  font-size: 32px;
  line-height: 1;
}

.sound-btn span {
  font-size: 22px;
  font-weight: 900;
}

.rules-btn {
  padding: 0 12px;
  font-weight: 800;
  text-decoration: none;
}

.admin-link {
  color: var(--green-300);
}

.hero-glow {
  position: absolute;
  inset: auto 24px 8px 24px;
  height: 70px;
  background: radial-gradient(ellipse, rgba(156, 247, 194, 0.38), transparent 68%);
  filter: blur(4px);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

.profile-badge {
  display: grid;
  justify-items: center;
  gap: 0;
}

.profile-badge img {
  width: 88px;
  height: 88px;
  border: 5px solid var(--green-300);
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 0 6px rgba(40, 217, 130, 0.18), 0 14px 28px rgba(0, 0, 0, 0.28);
}

.profile-badge span {
  max-width: 110px;
  margin-top: -8px;
  padding: 5px 14px;
  overflow: hidden;
  color: #08271f;
  font-size: 17px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--green-300), var(--lime));
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(40, 217, 130, 0.28);
}

.headline-block p,
.headline-block span {
  margin: 0;
  color: var(--green-300);
  font-weight: 900;
}

.headline-block h1 {
  margin: 6px 0 8px;
  color: #dfff63;
  font-size: clamp(38px, 13vw, 52px);
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 5px 0 rgba(0, 0, 0, 0.24);
}

.headline-block span {
  display: inline-flex;
  padding: 5px 10px;
  color: var(--green-950);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 999px;
}

.chance-card {
  position: relative;
  margin-top: 14px;
  padding: 26px 16px 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(25, 184, 115, 0.16);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.seal {
  position: absolute;
  top: -22px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  color: white;
  font-weight: 900;
  transform: rotate(12deg);
  background: radial-gradient(circle, #ffc63b 0 51%, #ff9d23 52%);
  border: 4px solid #ffd965;
  border-radius: 50%;
  box-shadow: 0 12px 22px rgba(255, 157, 35, 0.28);
}

.account-line {
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 800;
}

.chance-amount {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  color: var(--red);
  font-weight: 1000;
  line-height: 0.94;
}

.chance-amount span {
  font-size: 76px;
  letter-spacing: 0;
}

.chance-amount small {
  margin-bottom: 9px;
  font-size: 28px;
}

.chance-card h2 {
  margin: 12px 0 16px;
  font-size: 22px;
}

.chance-card h2 b {
  color: var(--red);
}

.progress {
  height: 12px;
  overflow: hidden;
  background: #dff7e7;
  border-radius: 999px;
}

.progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--green-500), var(--lime));
  border-radius: inherit;
  transition: width 0.5s ease;
}

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

.chance-stats div {
  padding: 12px 8px;
  background: var(--mint-100);
  border-radius: 16px;
}

.chance-stats span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.chance-stats strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  color: var(--ink);
}

.chance-stats em {
  color: var(--red);
  font-style: normal;
}

.wheel-panel,
.invite-panel {
  position: relative;
  margin-top: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(25, 184, 115, 0.18);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.wheel-panel {
  margin-top: -20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(234, 255, 243, 0.96)),
    radial-gradient(circle at 50% 28%, rgba(255, 240, 106, 0.3), transparent 46%);
}

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

.section-title span,
.section-title strong {
  font-size: 17px;
  font-weight: 1000;
}

.section-title strong {
  flex: 0 0 auto;
  padding: 6px 10px;
  color: var(--green-950);
  background: linear-gradient(90deg, var(--green-300), var(--lime));
  border-radius: 999px;
}

.wheel-count-row {
  justify-content: flex-end;
}

.wheel-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 332px;
}

.wheel-wrap::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(25, 184, 115, 0.14), transparent 64%);
  border-radius: 50%;
}

.wheel {
  position: relative;
  width: min(320px, 84vw);
  aspect-ratio: 1;
  border: 8px solid #bbffd7;
  border-radius: 50%;
  background:
    conic-gradient(
      from -22.5deg,
      #eafff3 0 45deg,
      #1dbf78 45deg 90deg,
      #f7ffd9 90deg 135deg,
      #139963 135deg 180deg,
      #eafff3 180deg 225deg,
      #1dbf78 225deg 270deg,
      #f7ffd9 270deg 315deg,
      #139963 315deg 360deg
    );
  box-shadow: inset 0 0 0 6px rgba(7, 38, 29, 0.12), 0 16px 30px rgba(15, 112, 75, 0.22);
  transition: transform 2.6s cubic-bezier(0.16, 0.9, 0.25, 1);
}

.wheel::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(7, 38, 29, 0.14);
  border-radius: 50%;
}

.wheel::after {
  content: "";
  position: absolute;
  top: -16px;
  left: 50%;
  width: 18px;
  height: 18px;
  background: var(--yellow);
  border: 4px solid white;
  border-radius: 50%;
  box-shadow:
    0 168px 0 -4px var(--yellow),
    0 168px 0 0 white,
    -118px 50px 0 -4px var(--yellow),
    -118px 50px 0 0 white,
    118px 50px 0 -4px var(--yellow),
    118px 50px 0 0 white,
    -118px 248px 0 -4px var(--yellow),
    -118px 248px 0 0 white,
    118px 248px 0 -4px var(--yellow),
    118px 248px 0 0 white;
  transform: translateX(-50%);
}

.wheel-label {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-height: 54px;
  max-height: 68px;
  padding: 4px 2px;
  color: var(--green-950);
  font-size: 15px;
  font-weight: 1000;
  line-height: 1;
  text-align: center;
  overflow-wrap: anywhere;
  transform: translate(-50%, -50%) rotate(var(--label-angle));
  pointer-events: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.wheel-label span {
  display: block;
  flex: 0 0 auto;
}

.wheel-label.is-compact {
  min-height: 58px;
  font-size: 13px;
  line-height: 0.96;
}

.wheel-label .number-token {
  min-width: 1.2em;
  white-space: nowrap;
  writing-mode: horizontal-tb;
}

.draw-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  color: white;
  background: radial-gradient(circle at 50% 30%, #b6ffd0, var(--green-500) 42%, #10a565 76%);
  border: 8px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(156, 247, 194, 0.32), 0 16px 26px rgba(16, 165, 101, 0.34);
}

.draw-btn::before {
  content: "";
  position: absolute;
  top: -28px;
  width: 0;
  height: 0;
  border-right: 18px solid transparent;
  border-bottom: 34px solid var(--red);
  border-left: 18px solid transparent;
  filter: drop-shadow(0 4px 0 rgba(255, 255, 255, 0.7));
}

.draw-btn span {
  margin-top: 14px;
  font-size: 34px;
  font-weight: 1000;
  line-height: 1;
}

.draw-btn small {
  font-size: 13px;
  font-weight: 900;
}

.toast-tip {
  width: fit-content;
  max-width: 100%;
  margin: 4px auto 0;
  padding: 9px 16px;
  color: white;
  font-weight: 900;
  background: rgba(7, 38, 29, 0.88);
  border-radius: 999px;
}

.task-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.task-list li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  padding: 14px;
  background: var(--mint-50);
  border: 1px solid rgba(25, 184, 115, 0.16);
  border-radius: 18px;
}

.task-list li > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: white;
  font-weight: 1000;
  background: var(--green-500);
  border-radius: 50%;
}

.task-list strong,
.task-list p {
  margin: 0;
}

.task-list p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.sticky-cta,
.primary-btn {
  min-height: 56px;
  color: var(--green-950);
  font-size: 18px;
  font-weight: 1000;
  background: linear-gradient(90deg, var(--green-500), var(--lime));
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(25, 184, 115, 0.28);
}

.sticky-cta {
  position: fixed;
  right: max(14px, calc((100vw - 430px) / 2 + 14px));
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: max(14px, calc((100vw - 430px) / 2 + 14px));
  z-index: 8;
  max-width: 402px;
  margin: 0 auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.sticky-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(3, 20, 16, 0.62);
  backdrop-filter: blur(8px);
}

.modal.is-open {
  display: grid;
}

.modal-card {
  position: relative;
  width: min(100%, 380px);
  padding: 26px 18px 20px;
  text-align: center;
  background: white;
  border: 1px solid rgba(156, 247, 194, 0.5);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--muted);
  font-size: 25px;
  background: var(--mint-100);
  border-radius: 50%;
}

.modal-avatar img {
  width: 72px;
  height: 72px;
  background: var(--mint-100);
  border: 4px solid var(--green-300);
  border-radius: 50%;
}

.modal-kicker {
  display: inline-flex;
  margin: 10px 0 8px;
  padding: 5px 10px;
  color: var(--green-800);
  font-weight: 900;
  background: var(--mint-100);
  border-radius: 999px;
}

.modal-card h2 {
  margin: 0 auto 12px;
  max-width: 290px;
  font-size: 24px;
  line-height: 1.25;
}

.shield {
  width: min(72%, 210px);
  margin: 2px auto 8px;
  filter: drop-shadow(0 12px 18px rgba(255, 157, 35, 0.2));
}

.modal-desc,
.rules-card p {
  color: var(--muted);
  line-height: 1.55;
}

.primary-btn {
  width: 100%;
  margin-top: 8px;
}

.rules-card {
  text-align: left;
}

.rules-card h2 {
  margin-left: 0;
}

@media (max-width: 360px) {
  .hero-content {
    grid-template-columns: 78px 1fr;
  }

  .profile-badge img {
    width: 76px;
    height: 76px;
  }

  .headline-block h1 {
    font-size: 34px;
  }

  .chance-amount span {
    font-size: 64px;
  }

  .wheel-label {
    width: 24px;
    min-height: 54px;
    max-height: 66px;
    font-size: 13px;
  }

  .wheel-label.is-compact {
    min-height: 58px;
    font-size: 12px;
  }
}

@keyframes pulse {
  0%,
  100% {
    filter: brightness(1);
    box-shadow: 0 0 0 10px rgba(255, 240, 106, 0.18), 0 0 28px rgba(255, 198, 59, 0.72);
  }

  50% {
    filter: brightness(1.08);
    box-shadow: 0 0 0 14px rgba(255, 240, 106, 0.26), 0 0 42px rgba(255, 198, 59, 0.9);
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-8px) rotate(8deg);
  }
}

body.admin-page {
  background:
    radial-gradient(circle at 20% 10%, rgba(156, 247, 194, 0.45), transparent 26%),
    radial-gradient(circle at 85% 0%, rgba(255, 240, 106, 0.24), transparent 18%),
    linear-gradient(180deg, #f6fffa 0%, #eefdf4 100%);
}

.admin-shell {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(25, 184, 115, 0.14);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.admin-header h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.15;
}

.admin-header p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.admin-header span {
  display: inline-flex;
  margin-top: 12px;
  padding: 6px 10px;
  color: var(--green-800);
  background: var(--mint-100);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.admin-action {
  min-height: 44px;
  padding: 0 14px;
  color: var(--green-950);
  font-weight: 900;
  background: white;
  border: 1px solid rgba(25, 184, 115, 0.18);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(7, 48, 35, 0.08);
}

.admin-action.primary {
  background: linear-gradient(90deg, var(--green-500), var(--lime));
  border-color: transparent;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
}

.admin-panel {
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(25, 184, 115, 0.14);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.admin-panel h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.admin-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-field {
  display: grid;
  gap: 6px;
}

.admin-field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-field input,
.admin-field textarea,
.admin-field select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  background: #fbfffc;
  border: 1px solid #d4efdd;
  border-radius: 14px;
}

.admin-field textarea {
  min-height: 110px;
  resize: vertical;
}

.prize-list {
  display: grid;
  gap: 12px;
}

.prize-row {
  display: grid;
  grid-template-columns: 1.15fr 0.65fr 0.8fr 0.55fr 1fr 0.45fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  background: var(--mint-50);
  border: 1px solid rgba(25, 184, 115, 0.12);
  border-radius: 18px;
}

.prize-row .mini {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 12px;
}

.prize-row .check {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}

.prize-row .check input {
  width: 18px;
  height: 18px;
  accent-color: var(--green-600);
}

.odds-pill {
  display: grid;
  place-items: center;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--green-950);
  font-weight: 900;
  background: linear-gradient(90deg, var(--green-300), var(--lime));
  border-radius: 999px;
}

.odds-pill.is-locked {
  color: var(--muted);
  background: #e7f3ec;
}

.admin-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.admin-json {
  min-height: 260px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre;
}

.admin-status {
  margin-top: 12px;
  padding: 10px 12px;
  color: var(--green-800);
  background: var(--mint-100);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 920px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .prize-row {
    grid-template-columns: 1fr 1fr;
  }

  .admin-field-grid {
    grid-template-columns: 1fr;
  }
}

/* H5 activity screen: the campaign design uses a compact blue mobile canvas. */
.lottery-page {
  min-height: 100vh;
  background: #118bd7;
  color: #17406a;
}

.lottery-page .app-shell {
  width: min(100%, 412px);
  min-height: 100vh;
  padding: 0 12px 24px;
  overflow: visible;
  background: #118bd7;
}

.lottery-page button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.lottery-screen {
  isolation: isolate;
}

.event-hero {
  margin: 0 -12px;
  color: white;
  background: #118bd7;
}

.event-art {
  position: relative;
  height: 348px;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 22%, rgba(255, 255, 255, 0.72) 0 2px, transparent 3px),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.45) 0 2px, transparent 3px),
    linear-gradient(180deg, #24a2ed 0%, #57c5f0 62%, #168bd7 100%);
}

.event-art::before {
  position: absolute;
  right: -54px;
  bottom: -85px;
  width: 300px;
  height: 220px;
  content: "";
  background: radial-gradient(ellipse, rgba(255, 221, 101, 0.42), transparent 70%);
  transform: rotate(-8deg);
}

.event-art::after {
  position: absolute;
  right: 26px;
  bottom: 86px;
  width: 240px;
  height: 110px;
  content: "";
  background: repeating-linear-gradient(165deg, transparent 0 18px, rgba(255, 255, 255, 0.13) 19px 21px);
  opacity: 0.8;
  transform: rotate(-10deg);
}

.brand-mark {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 14px;
  display: grid;
  gap: 0;
  color: #fff86c;
  font-size: 12px;
  font-weight: 1000;
  line-height: 0.92;
  text-shadow: 1px 1px 0 rgba(35, 83, 132, 0.35);
}

.brand-mark b {
  color: white;
  font-size: 16px;
}

.sunflower {
  position: absolute;
  z-index: 1;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: repeating-conic-gradient(#ffc52f 0 12deg, #ffe170 12deg 25deg);
  opacity: 0.9;
  filter: drop-shadow(0 8px 12px rgba(80, 104, 34, 0.18));
}

.sunflower::after {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 26px;
  height: 26px;
  content: "";
  background: #8a5c2d;
  border: 5px dotted #c58a3b;
  border-radius: 50%;
}

.sunflower-a {
  right: -12px;
  top: 90px;
  transform: scale(1.18);
}

.sunflower-b {
  right: 82px;
  top: 170px;
  transform: scale(0.78);
}

.sunflower-c {
  left: -32px;
  bottom: 84px;
  transform: scale(0.95);
}

.event-art h1 {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 7px;
  left: 0;
  margin: 0;
  color: white;
  font-family: "STKaiti", "KaiTi", "FZKai-Z03", serif;
  font-size: 39px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-shadow: 0 3px 0 rgba(24, 112, 180, 0.28);
}

.event-nav {
  display: flex;
  justify-content: space-between;
  padding: 9px 18px 11px;
  background: #118bd7;
}

.event-nav button {
  padding: 0;
  color: white;
  font-size: 12px;
  font-weight: 800;
  background: transparent;
}

.lottery-stage {
  margin: 0 -12px;
  padding: 0 12px 22px;
  background: #118bd7;
}

.prize-board {
  padding: 9px 9px 8px;
  background: #f1ffb1;
  border: 1px solid rgba(97, 181, 65, 0.42);
  border-radius: 10px;
  box-shadow: 0 7px 0 rgba(22, 111, 182, 0.2);
}

.board-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.board-heading h2 {
  margin: 0;
  color: #315e2f;
  font-size: 15px;
  font-weight: 1000;
}

.board-heading span,
.pool-label,
.board-footnote {
  color: #75a942;
  font-size: 10px;
  font-weight: 800;
}

.board-heading span {
  flex: 0 0 auto;
}

.pool-label {
  margin: 6px 0 4px;
}

.prize-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.prize-tile {
  display: grid;
  min-width: 0;
  min-height: 66px;
  padding: 4px 3px 3px;
  place-items: center;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(126, 187, 80, 0.18);
  border-radius: 5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prize-tile.is-featured {
  background: rgba(220, 255, 180, 0.75);
  box-shadow: inset 0 0 0 2px rgba(128, 193, 73, 0.2);
}

.prize-tile.is-spinning {
  animation: prize-pulse 0.34s ease-in-out infinite alternate;
}

.prize-art {
  display: grid;
  width: 37px;
  height: 36px;
  place-items: center;
  background-color: #f4f5e8;
  background-image: linear-gradient(45deg, rgba(172, 197, 168, 0.3) 25%, transparent 25%), linear-gradient(-45deg, rgba(172, 197, 168, 0.3) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(172, 197, 168, 0.3) 75%), linear-gradient(-45deg, transparent 75%, rgba(172, 197, 168, 0.3) 75%);
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
  border-radius: 4px;
}

.prize-art img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.prize-name {
  width: 100%;
  margin-top: 2px;
  overflow: hidden;
  color: #467036;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-footnote {
  margin: 6px 0 0;
  text-align: right;
}

.board-footnote b {
  color: #2d7d42;
  font-size: 13px;
}

.draw-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 14px 24px 15px;
}

.draw-action {
  min-height: 34px;
  color: #37672e;
  font-size: 14px;
  font-weight: 1000;
  background: #fff24c;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 4px;
  box-shadow: 0 3px 0 rgba(14, 103, 170, 0.23);
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
}

.draw-action-triple {
  color: #22623d;
  background: #54f07a;
}

.draw-action:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: none;
}

.task-card {
  padding: 12px 13px 11px;
  color: #3b6d8d;
  background: linear-gradient(180deg, #dbf4ff, #bfe9fa);
  border: 1px solid #75c3e8;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 4px 0 rgba(20, 111, 182, 0.18);
}

.task-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.task-card-heading strong {
  color: #176c9e;
  font-size: 13px;
}

.task-card-heading span {
  color: #579bc1;
  font-size: 10px;
  white-space: nowrap;
}

.task-card p {
  margin: 9px 0;
  color: #5a8dab;
  font-size: 11px;
  line-height: 1.45;
}

.task-button {
  width: 100%;
  min-height: 31px;
  color: #2176a6;
  font-size: 12px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid #78bfe3;
  border-radius: 4px;
}

.task-button:not(:disabled):hover {
  background: white;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lottery-page .modal {
  background: rgba(17, 74, 123, 0.64);
}

.lottery-page .modal-card {
  width: min(100%, 350px);
  border: 1px solid #9cd9f4;
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(13, 65, 106, 0.35);
}

.lottery-page .modal-close {
  color: #4385a9;
  background: #e4f6ff;
}

.lottery-page .modal-kicker {
  color: #2175a6;
  background: #e3f6ff;
}

.lottery-page .primary-btn {
  color: #205b81;
  background: #57ed7c;
  border-radius: 5px;
  box-shadow: none;
}

.lottery-page .modal-desc,
.lottery-page .rules-card p {
  color: #527b93;
}

@keyframes prize-pulse {
  from {
    transform: scale(0.96);
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }

  to {
    transform: scale(1.04);
    box-shadow: 0 0 0 3px rgba(255, 246, 116, 0.7);
  }
}

@media (max-width: 360px) {
  .event-art {
    height: 326px;
  }

  .event-art h1 {
    font-size: 35px;
  }

  .draw-actions {
    gap: 16px;
    padding-right: 14px;
    padding-left: 14px;
  }
}

/* Exact node 1:2 geometry and exported assets. */
.lottery-page,
.lottery-page .app-shell {
  background: #1788e4;
}

.lottery-page {
  scrollbar-width: none;
}

.lottery-page::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

html:has(.lottery-page) {
  scrollbar-width: none;
}

html:has(.lottery-page)::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.lottery-page .event-hero {
  position: relative;
  height: 406px;
}

.lottery-page .event-art {
  height: 406px;
  background: #1788e4 url("./assets/figma-background.png") top center / 412px 446px no-repeat;
}

.lottery-page .event-art::before,
.lottery-page .event-art::after,
.lottery-page .sunflower {
  display: none;
}

.lottery-page .brand-mark {
  display: none;
}

.lottery-page .event-art h1 {
  color: transparent;
  text-shadow: none;
}

.lottery-page .event-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  height: 29px;
  padding: 0 21px 1px;
  background: transparent;
}

.lottery-page .event-nav button {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: normal;
}

.lottery-page .lottery-stage {
  padding: 0 12px 22px;
}

.lottery-page .prize-board {
  position: relative;
  width: 370px;
  min-height: 240px;
  margin: 0 9px;
  padding: 60px 0 10px;
  overflow: hidden;
  background: #f4ffe4;
  border: 0;
  border-radius: 10px 10px 5px 5px;
  box-shadow: 0 4px 4px rgba(255, 255, 255, 0.5);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.lottery-page .board-heading {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 38px;
  align-items: flex-start;
  padding: 11px 10px 0;
  background: linear-gradient(90deg, #d2ef69, #edfcb6);
}

.lottery-page .board-heading h2 {
  color: #235b00;
  font-size: 16px;
  font-weight: 900;
}

.lottery-page .board-heading span {
  color: #6fa03c;
  font-size: 10px;
}

.lottery-page .pool-label {
  position: absolute;
  top: 43px;
  left: 12px;
  z-index: 2;
  margin: 0;
  color: #ffbb00;
  font-size: 10px;
}

.lottery-page .prize-grid {
  position: relative;
  top: auto;
  left: auto;
  margin: 0 12px;
  grid-template-columns: repeat(4, 75px);
  grid-auto-rows: 75px;
  gap: 10px 15px;
}

.lottery-page .draw-animation {
  position: fixed;
  inset: 0;
  z-index: 19;
  display: none;
  overflow: hidden;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.5);
}

.lottery-page .draw-animation.is-visible {
  display: block;
}

.lottery-page .draw-animation img {
  position: absolute;
  top: 0;
  left: 50%;
  width: 360px;
  max-width: none;
  height: auto;
  opacity: 1;
  transform: translateX(-50%);
}

.lottery-page .prize-tile {
  position: relative;
  display: block;
  width: 75px;
  height: 75px;
  min-height: 75px;
  padding: 0;
  overflow: hidden;
  background: rgba(35, 91, 0, 0.15);
  border: 0;
  border-radius: 5px;
  box-shadow: none;
}

.lottery-page .prize-tile.is-locked {
  opacity: 1;
}

.lottery-page .prize-tile.is-locked .prize-art,
.lottery-page .prize-tile.is-locked .prize-name {
  opacity: 0.3;
}

.lottery-page .prize-art {
  display: block;
  width: 75px;
  height: 59px;
  background: transparent;
  border-radius: 5px 5px 0 0;
}

.lottery-page .prize-art img {
  display: block;
  width: 75px;
  height: 59px;
  object-fit: contain;
  object-position: center;
}

.lottery-page .prize-name {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  margin: 0;
  color: #000;
  font-size: 10px;
  font-weight: 800;
  line-height: 14px;
}

.lottery-page .lock-label {
  position: absolute;
  top: 25px;
  right: 0;
  left: 0;
  display: none;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: white;
  font-size: 10px;
  font-weight: 600;
  line-height: 0;
  text-align: center;
  /* Keep the white lock copy legible over the prize artwork. */
  -webkit-text-stroke: 1.5px rgba(147, 86, 63, 0.82);
  paint-order: stroke fill;
  text-shadow: 0 1px 1px rgba(112, 65, 45, 0.5);
  white-space: nowrap;
  word-break: break-word;
  -webkit-font-smoothing: antialiased;
}

.lottery-page .prize-tile.is-locked .lock-label {
  display: block;
}

.lottery-page .lock-label p {
  margin: 0;
  line-height: normal;
}

.lottery-page .board-footnote {
  margin: 9px 20px 0 12px;
  color: white;
  font-size: 10px;
  line-height: 12px;
  text-align: right;
}

.lottery-page .board-footnote b {
  color: white;
  font-size: inherit;
}

.lottery-page .draw-actions {
  height: 76px;
  display: grid;
  grid-template-columns: 136px 138px;
  gap: 0;
  justify-content: space-between;
  padding: 15px 34px 15px 33px;
}

.lottery-page .draw-action {
  position: relative;
  display: block;
  width: 100%;
  height: 46px;
  min-height: 46px;
  padding: 0;
  overflow: hidden;
  color: white;
  font-size: 16px;
  font-weight: 1000;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  clip-path: none;
}

.lottery-page .draw-action img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 46px;
  object-fit: fill;
}

.lottery-page .draw-action span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-bottom: 2px;
  color: white;
  font-size: 16px;
  font-weight: 1000;
  text-shadow: 1px 1px 1px rgba(0, 55, 120, 0.5);
}

.lottery-page .draw-action:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: none;
}

.lottery-page .task-card {
  position: relative;
  width: 370px;
  height: 110px;
  margin: 10px 9px 0;
  padding: 0;
  overflow: hidden;
  color: white;
  background: #cde8ff;
  border: 3px solid white;
  border-radius: 15px 3px 15px 3px;
  box-shadow: none;
}

.lottery-page .task-card-heading {
  position: absolute;
  top: -3px;
  right: -3px;
  left: -3px;
  height: 45px;
  justify-content: center;
  background: linear-gradient(90deg, #20b3ff, #bbf7ff);
}

.lottery-page .task-card-heading strong {
  color: white;
  font-size: 16px;
  text-shadow: 0 1px 1px rgba(10, 93, 148, 0.28);
}

.lottery-page .task-card-heading span {
  display: none;
}

.lottery-page .task-card p {
  position: absolute;
  top: 56px;
  left: 5px;
  width: 215px;
  overflow: hidden;
  margin: 0;
  color: white;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 1px rgba(10, 93, 148, 0.3);
}

.lottery-page .task-button {
  position: absolute;
  top: 53px;
  right: 30px;
  width: 100px;
  height: 33px;
  min-height: 33px;
  padding: 0;
  overflow: hidden;
  color: white;
  appearance: none;
  -webkit-appearance: none;
  background: transparent !important;
  background-color: transparent !important;
  border: 0;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  transform: none;
}

.lottery-page .task-button img {
  position: absolute;
  inset: 0;
  width: 100px;
  height: 33px;
  object-fit: cover;
}

.lottery-page .task-button span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 1px 1px rgba(0, 55, 120, 0.4);
}

.lottery-page .task-button:hover,
.lottery-page .task-button:active,
.lottery-page .task-button:focus,
.lottery-page .task-button:focus-visible {
  outline: none;
  box-shadow: none;
  transform: none;
  filter: none;
}

.lottery-page button:disabled {
  opacity: 1;
}

.lottery-page .draw-action:disabled img {
  filter: saturate(1.2) contrast(1.05) brightness(1.02);
}

.lottery-page .draw-action:disabled span {
  color: #195b7c;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

.lottery-page .task-card p {
  color: white;
  font-weight: 600;
  text-shadow: 0 1px 1px rgba(10, 93, 148, 0.3);
}

.lottery-page .task-button:disabled img {
  filter: none;
}

.lottery-page .task-button:disabled span {
  color: #185d87;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.78);
}

.lottery-page:not(.is-authenticated) .task-card p {
  color: #23648b;
  font-weight: 800;
  text-shadow: none;
}

.lottery-page .modal.is-result-draw .result-shell {
  gap: 22px;
}

.lottery-page .modal:has(.result-shell) {
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: none;
}

.lottery-page .modal.is-result-assist .result-shell {
  gap: 24px;
}

.lottery-page .result-shell {
  display: flex;
  width: 370px;
  flex-direction: column;
  align-items: center;
}

.lottery-page .result-card {
  position: relative;
  width: 370px;
  height: 240px;
  overflow: hidden;
  background: #dcefff;
  border-radius: 10px 10px 5px 5px;
  box-shadow: 0 4px 4px rgba(255, 255, 255, 0.5);
}

.lottery-page .result-card.is-assist-result {
  height: 188px;
}

.lottery-page .result-card-gradient {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 38px;
  background: linear-gradient(90deg, #69a5ef, #b6f4fc);
}

.lottery-page .result-title {
  position: absolute;
  top: 56px;
  right: 0;
  left: 0;
  z-index: 1;
  margin: 0;
  color: #1788e4;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 20px;
  font-weight: 900;
  line-height: normal;
  text-align: center;
  white-space: nowrap;
}

.lottery-page .result-prizes {
  position: absolute;
  top: 113px;
  left: 46px;
  display: grid;
  grid-template-columns: repeat(3, 75px);
  gap: 27px;
}

.lottery-page .result-prize {
  position: relative;
  width: 75px;
  height: 75px;
  overflow: hidden;
  background: rgba(23, 136, 228, 0.15);
  border-radius: 5px;
}

.lottery-page .result-prize-art {
  display: block;
  width: 75px;
  height: 59px;
}

.lottery-page .result-prize-art img {
  display: block;
  width: 75px;
  height: 59px;
  object-fit: contain;
  object-position: center;
}

.lottery-page .result-prize-name {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  color: black;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 10px;
  font-weight: 800;
  line-height: 14px;
  text-align: center;
  white-space: nowrap;
}

.lottery-page .result-desc {
  position: absolute;
  top: 102px;
  left: 31px;
  width: 308px;
  margin: 0;
  color: white;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
}

.lottery-page .result-action {
  position: relative;
  width: 136px;
  height: 46px;
  padding: 0;
  color: white;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 900;
  line-height: normal;
  background: transparent;
}

.lottery-page .result-action img {
  position: absolute;
  inset: 0;
  width: 136px;
  height: 46px;
  object-fit: cover;
  pointer-events: none;
}

.lottery-page .result-action span {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
}

.lottery-page .subpage {
  position: relative;
  width: min(100%, 412px);
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
  background: #1788e4;
  color: white;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.lottery-page .subpage[hidden] {
  display: none;
}

.lottery-page .subpage-hero {
  position: relative;
  height: 406px;
}

.lottery-page .subpage-art {
  position: absolute;
  inset: 0;
  height: 406px;
  background: #1788e4 url("./assets/figma-background.png") top center / 412px 446px no-repeat;
}

.lottery-page .subpage-titlebar {
  position: absolute;
  top: 383px;
  right: 0;
  left: 0;
  z-index: 1;
  height: 15px;
}

.lottery-page .subpage-back,
.lottery-page .subpage-titlebar h1 {
  position: absolute;
  padding: 0;
  color: white;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 600;
  line-height: normal;
  text-align: center;
  white-space: nowrap;
}

.lottery-page .subpage-back {
  top: 4px;
  left: 24px;
  width: 40px;
  font-size: 10px;
  background: transparent;
}

.lottery-page .subpage-titlebar h1 {
  top: 0;
  left: 50%;
  margin: 0;
  font-size: 15px;
  transform: translateX(-50%);
}

.lottery-page .history-content {
  width: 392px;
  margin: 28px 0 0;
  padding-bottom: 32px;
}

.lottery-page .history-grid {
  display: grid;
  grid-template-columns: 92px 118px 112px 70px;
  align-items: start;
  width: 392px;
  text-align: center;
}

.lottery-page .history-head,
.lottery-page .history-row {
  font-size: 12px;
  font-weight: 600;
  line-height: normal;
  white-space: nowrap;
}

.lottery-page .history-head {
  height: 14px;
}

.lottery-page .history-row {
  margin-top: 17px;
}

.lottery-page .history-row + .history-row {
  margin-top: 36px;
}

.lottery-page .history-row > span {
  min-width: 0;
}

.lottery-page .history-status-note {
  display: block;
  font-size: 10px;
  line-height: 0;
  white-space: nowrap;
}

.lottery-page .history-status-note span {
  display: block;
  line-height: normal;
}

.lottery-page .history-copy {
  padding: 0;
  color: white;
  font: inherit;
  background: transparent;
  white-space: nowrap;
}

.lottery-page .history-empty,
.lottery-page .history-error {
  margin-top: 17px;
  color: white;
  font-size: 12px;
  font-weight: 600;
  line-height: normal;
  text-align: center;
}

.lottery-page .rules-content {
  width: 354px;
  margin: 28px auto 0;
  padding-bottom: 32px;
  color: white;
  font-size: 12px;
  font-weight: 600;
  line-height: 0;
  word-break: break-word;
}

.lottery-page .rules-content p,
.lottery-page .rules-content li {
  margin: 0;
  line-height: normal;
}

.lottery-page .rules-content ol,
.lottery-page .rules-content ul {
  margin: 0;
  padding-left: 18px;
}

.lottery-page .rules-content ul {
  list-style-type: disc;
  padding-left: 18px;
}

.lottery-page .rules-content ol {
  list-style-type: decimal;
}

@media (max-width: 411px) {
  .lottery-page .event-art {
    background-size: auto 446px;
  }

  .lottery-page .prize-board,
  .lottery-page .task-card {
    width: calc(100vw - 42px);
  }

  .lottery-page .prize-grid {
    transform: scale(calc((100vw - 42px) / 370));
    transform-origin: top left;
  }
}
