:root {
  color-scheme: dark;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  background: #020b22;
}

* {
  box-sizing: border-box;
}

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

body {
  -webkit-tap-highlight-color: transparent;
}

.landing-page {
  display: flex;
  justify-content: center;
  background: #020b22;
}

.poster {
  position: relative;
  width: min(100%, 640px);
  line-height: 0;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 95, 255, 0.2);
}

.poster > img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

.claim-button {
  position: absolute;
  top: 44.8%;
  left: 23.5%;
  width: 53%;
  height: 10.2%;
  border-radius: 999px;
  cursor: pointer;
  touch-action: manipulation;
}

.claim-button:focus-visible {
  outline: 4px solid #fff;
  outline-offset: 5px;
}

.claim-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0);
  transition: background 160ms ease;
}

.claim-button:active::after {
  background: rgba(255, 255, 255, 0.16);
}

.qr-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(28px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
  color: #fff;
  background:
    radial-gradient(circle at 50% 28%, rgba(0, 126, 255, 0.35), transparent 38%),
    linear-gradient(160deg, #051b4c 0%, #02091e 70%);
}

.qr-card {
  width: 100%;
  max-width: 430px;
  min-width: 0;
  padding: 32px 24px 26px;
  text-align: center;
  border: 1px solid rgba(92, 191, 255, 0.45);
  border-radius: 28px;
  background: rgba(3, 20, 60, 0.82);
  box-shadow: 0 20px 80px rgba(0, 104, 255, 0.25), inset 0 0 40px rgba(0, 102, 255, 0.08);
  backdrop-filter: blur(12px);
}

.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  color: #fff;
  font-size: 25px;
  font-weight: 800;
  font-style: italic;
  border: 1px solid #68deff;
  border-radius: 17px;
  background: linear-gradient(145deg, #04c8ff, #0754e8 70%);
  box-shadow: 0 0 24px rgba(0, 196, 255, 0.58);
}

.qr-card h1 {
  margin: 0;
  font-size: clamp(24px, 7vw, 32px);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.subtitle {
  margin: 10px 0 22px;
  color: #a9d7ff;
  font-size: 16px;
}

.qr-frame {
  width: min(100%, 320px);
  margin: 0 auto;
  padding: 10px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(51, 177, 255, 0.16), 0 15px 45px rgba(0, 0, 0, 0.3);
}

.qr-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 13px;
}

.hint {
  margin: 21px 0 18px;
  color: #bdd1ef;
  font-size: 13px;
  line-height: 1.6;
}

.back-link {
  display: inline-block;
  padding: 8px 16px;
  color: #65d8ff;
  font-size: 14px;
  text-decoration: none;
}

@media (max-width: 380px) {
  .qr-card {
    padding: 24px 18px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
