:root {
  --page-scale: 1;
  --blue-100: #def4ff;
  --blue-300: #76dcff;
  --blue-500: #02afec;
  --ink: #303139;
  --muted: #8c93a5;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: #dff7ff;
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

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

.phone {
  width: 100vw;
  min-height: 100vh;
  margin: 0;
  background: var(--white);
  overflow-x: hidden;
}

.activity-page {
  position: relative;
  width: 375px;
  min-height: 1136px;
  overflow: hidden;
  transform: scale(var(--page-scale));
  transform-origin: top left;
}

.bg-stack {
  position: absolute;
  inset: 0;
  height: 1136px;
  background: url("https://file.cfbxt.com/gw/kt/bg.png") center top / 375px 1136px no-repeat;
  pointer-events: none;
}

.bg-hero,
.bg-water,
.bg-seabed,
.bg-glow,
.bubble {
  display: none;
}

.bg-hero {
  position: absolute;
  top: 0;
  left: 0;
  width: 375px;
  height: 400px;
  object-fit: cover;
  object-position: top center;
}

.bg-water {
  position: absolute;
  top: 400px;
  left: 0;
  width: 375px;
  height: 736px;
  background: linear-gradient(180deg, #52cbe8 0%, #26c2e7 18%, #08aadd 62%, #d9f0ed 100%);
}

.bg-seabed {
  position: absolute;
  left: -19px;
  bottom: 0;
  width: 414px;
  height: 736px;
  object-fit: cover;
  pointer-events: none;
}

.bg-glow {
  position: absolute;
  top: 377px;
  left: -14px;
  width: 402px;
  height: 715px;
  background-image: url("./assets/water-glow.png");
  background-size: cover;
  mix-blend-mode: soft-light;
  opacity: 0.9;
  -webkit-mask-image: url("./assets/soft-mask.png");
  mask-image: url("./assets/soft-mask.png");
  -webkit-mask-size: 375px 715px;
  mask-size: 375px 715px;
  -webkit-mask-position: 14px 0;
  mask-position: 14px 0;
}

.bubble {
  position: absolute;
  background-image: url("./assets/bubble.png");
  background-size: cover;
  mix-blend-mode: hard-light;
  opacity: 0.7;
  animation: float 5.5s ease-in-out infinite;
}

.b1 {
  top: 493px;
  left: 165px;
  width: 19px;
  height: 19px;
  opacity: 1;
}

.b2 {
  top: 555px;
  left: 331px;
  width: 26px;
  height: 26px;
  opacity: 1;
  animation-delay: -1s;
}

.b3 {
  top: 681px;
  left: 61px;
  width: 11px;
  height: 11px;
  opacity: 0.5;
  animation-delay: -2.1s;
}

.b4 {
  top: 740px;
  left: 56px;
  width: 18px;
  height: 18px;
  opacity: 1;
  animation-delay: -3s;
}

.b5 {
  top: 721px;
  left: 316px;
  width: 8px;
  height: 8px;
  opacity: 0.45;
  animation-delay: -1.7s;
}

.quick-file-button {
  position: absolute;
  top: 80px;
  left: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 36px;
  padding: 0 8px 0 0;
  border: 1px solid var(--blue-200, #b6ebff);
  border-left: 0;
  border-radius: 0 24px 24px 0;
  background: rgba(78, 194, 255, 0.64);
  backdrop-filter: blur(2px);
  appearance: none;
}

.quick-file-button img {
  width: 20px;
  height: 20px;
}

.quick-file-button:active {
  transform: translateX(-1px) scale(0.98);
}

.status-bar {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  width: 375px;
  height: 38px;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.time {
  position: absolute;
  left: 32px;
  top: 13px;
}

.signal {
  position: absolute;
  top: 18px;
  right: 64px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 18px;
  height: 11px;
}

.signal i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--white);
}

.signal i:nth-child(1) {
  height: 4px;
}

.signal i:nth-child(2) {
  height: 6px;
}

.signal i:nth-child(3) {
  height: 8px;
}

.signal i:nth-child(4) {
  height: 10px;
}

.wifi {
  position: absolute;
  top: 16px;
  right: 43px;
  width: 15px;
  height: 12px;
  border: 3px solid transparent;
  border-top-color: var(--white);
  border-radius: 50%;
}

.wifi::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--white);
}

.battery {
  position: absolute;
  top: 17px;
  right: 16px;
  width: 24px;
  height: 12px;
  border: 1.5px solid var(--white);
  border-radius: 3px;
}

.battery::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 3px;
  width: 2px;
  height: 5px;
  border-radius: 1px;
  background: var(--white);
}

.battery i {
  position: absolute;
  inset: 2px 4px 2px 2px;
  border-radius: 2px;
  background: var(--white);
}

.claim-card {
  position: absolute;
  top: 252px;
  left: 21px;
  z-index: 3;
  width: 335px;
  min-height: 176px;
  padding: 24px;
  border: 2px solid var(--blue-300);
  border-radius: 24px;
  background: #effaff;
  box-shadow:
    inset 0 -2px 4px rgba(164, 229, 250, 0.48),
    0 6px 8px rgba(129, 145, 181, 0.16);
}

.claim-card.is-claimed {
  display: flex;
  align-items: center;
  min-height: 152px;
  padding: 16px 24px;
}

.claim-card.is-claimed .phone-field,
.claim-card.is-claimed .captcha-field,
.claim-card.is-claimed .claim-button,
.claim-card.is-claimed .form-message {
  display: none;
}

.phone-field,
.captcha-field {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 48px;
  border: 1px solid #2ecbff;
  border-radius: 1000px;
  background: rgba(2, 175, 236, 0.1);
  padding: 0 16px;
}

.captcha-field img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.captcha-field {
  margin-top: 16px;
}

.phone-field img {
  width: 12px;
  height: 20px;
  flex: 0 0 auto;
}

.captcha-icon {
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 2px solid #2ecbff;
  border-radius: 8px;
}

.captcha-icon::before {
  position: absolute;
  left: 4px;
  top: 5px;
  width: 8px;
  height: 4px;
  border-left: 2px solid #2ecbff;
  border-bottom: 2px solid #2ecbff;
  transform: rotate(-45deg);
  content: "";
}

.phone-input,
.captcha-input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 48px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 20px;
  outline: none;
}

.captcha-input {
  padding-right: 4px;
  margin-left: -4px;
}

.phone-input::placeholder,
.captcha-input::placeholder {
  color: var(--muted);
}

.phone-field:focus-within,
.captcha-field:focus-within {
  box-shadow: 0 0 0 2px rgba(2, 175, 236, 0.2);
}

.captcha-image-button {
  flex: 0 0 auto;
  width: 107px;
  height: 32px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.64);
  appearance: none;
}

.captcha-image-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.captcha-image-button.is-loading img {
  opacity: 0.42;
}

.claim-button {
  width: 100%;
  height: 48px;
  margin-top: 16px;
  border: 2.25px solid var(--white);
  border-radius: 200px;
  background: linear-gradient(236deg, rgba(199, 240, 255, 0.8) 10%, rgba(94, 212, 255, 0.74) 60%, rgba(199, 240, 255, 0.8) 103%);
  box-shadow:
    0 41px 16px rgba(94, 212, 255, 0.02),
    0 23px 14px rgba(94, 212, 255, 0.08),
    0 10px 10px rgba(94, 212, 255, 0.13),
    0 3px 6px rgba(94, 212, 255, 0.15);
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.claim-button:disabled {
  opacity: 0.72;
  cursor: wait;
}

.form-message {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 5px;
  min-height: 18px;
  margin: 0;
  color: #067ba8;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

.form-message.error {
  color: #d04b50;
}

.claimed-state {
  width: 100%;
  padding-bottom: 4px;
  color: var(--ink);
  font-size: 14px;
  line-height: 20px;
}

.claimed-greeting,
.claimed-copy {
  margin: 0;
}

.claimed-greeting {
  margin-bottom: 8px;
  font-weight: 800;
}

.claimed-copy {
  word-break: break-word;
}

.claimed-phone {
  color: var(--blue-500);
}

.blind-box {
  position: absolute;
  top: 426px;
  left: 0;
  z-index: 2;
  width: 375px;
  height: 375px;
  padding: 0;
  border: 0;
  background: transparent;
  touch-action: manipulation;
  appearance: none;
}

.blind-box img {
  position: absolute;
  pointer-events: none;
}

.blindbox-art {
  inset: 0;
  width: 375px;
  height: 375px;
  object-fit: cover;
}

.glass-panel {
  border: 2px solid var(--white);
  background: linear-gradient(253deg, rgba(146, 226, 255, 0.4) 10%, rgba(94, 212, 255, 0.42) 60%, rgba(146, 226, 255, 0.4) 103%);
  box-shadow:
    0 41px 8px rgba(94, 212, 255, 0.02),
    0 23px 7px rgba(94, 212, 255, 0.08),
    0 10px 5px rgba(94, 212, 255, 0.13),
    0 3px 3px rgba(94, 212, 255, 0.15);
  backdrop-filter: blur(5px);
}

.video-card {
  position: absolute;
  top: 783px;
  left: 16.25px;
  z-index: 2;
  width: 343px;
  height: 207px;
  padding: 10px;
  border-radius: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  touch-action: manipulation;
}

.video-card:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
}

.video-card video {
  display: block;
  width: 100%;
  height: 175px;
  object-fit: cover;
  object-position: bottom;
  border-radius: 16px;
  background: #0e6f99;
  pointer-events: none;
}

.video-play-indicator {
  position: absolute;
  top: 76px;
  left: 139.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: rgba(19, 31, 38, 0.28);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.2);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.video-play-indicator::before {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 20px solid var(--white);
  content: "";
}

.video-card.is-playing .video-play-indicator {
  opacity: 0;
  transform: scale(0.92);
}

.video-fullscreen-button {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: none;
  appearance: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.video-fullscreen-button img {
  display: block;
  width: 16px;
  height: 16px;
}

.resource-actions {
  position: absolute;
  top: 1006px;
  left: 16px;
  z-index: 2;
  display: flex;
  gap: 10px;
}

.resource-button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 166.5px;
  height: 60px;
  padding: 12px 16px;
  border-radius: 24px;
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
  text-align: left;
}

.resource-button:nth-child(2) {
  width: 166.5px;
}

.resource-button img {
  width: 36px;
  height: 36px;
  object-fit: cover;
}

.home-indicator {
  position: absolute;
  left: 113px;
  bottom: 8px;
  z-index: 3;
  width: 148px;
  height: 5px;
  border-radius: 10px;
  background: #111111;
}

.toast {
  position: absolute;
  top: 244px;
  left: 50%;
  z-index: 30;
  max-width: 280px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(10, 68, 94, 0.72);
  box-shadow:
    0 10px 22px rgba(0, 80, 120, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 375px;
  height: 1136px;
  padding-top: 274px;
  background: rgba(0, 48, 78, 0.34);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.rules-modal {
  position: relative;
  width: 315px;
  min-height: 200px;
  padding: 24px 20px 20px;
  border: 2px solid var(--blue-300);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #effaff 100%);
  box-shadow:
    inset 0 -2px 4px rgba(164, 229, 250, 0.48),
    0 14px 32px rgba(0, 105, 146, 0.24);
  color: var(--ink);
  transform: translateY(14px) scale(0.96);
  transition: transform 180ms ease;
}

.modal-backdrop.is-open .rules-modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: linear-gradient(180deg, #77dcff 0%, #02afec 100%);
  box-shadow: 0 4px 10px rgba(2, 175, 236, 0.22);
  appearance: none;
}

.modal-close::before,
.modal-close::after {
  position: absolute;
  top: 12px;
  left: 7px;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  content: "";
}

.modal-close::before {
  transform: rotate(45deg);
}

.modal-close::after {
  transform: rotate(-45deg);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal-kicker {
  margin: 0;
  color: var(--blue-500);
  font-size: 12px;
  font-weight: 800;
  line-height: 16px;
}

.modal-title {
  margin: 0;
  color: #171717;
  font-size: 22px;
  font-weight: 800;
  line-height: 30px;
}

.rules-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: rules;
}

.rules-list li {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 30px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #303139;
  font-size: 14px;
  line-height: 20px;
  box-shadow: none;
}


@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes slow-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

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