* {
  box-sizing: border-box;
}

:root {
  --blue-top: #0879f7;
  --blue-mid: #12b7ff;
  --blue-bottom: #eaf5ff;
  --purple: #6d31ef;
  --purple-dark: #371481;
  --yellow: #ffd928;
  --yellow-deep: #ffad00;
  --text: #21135f;
  --muted: #655c93;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.88);
  --shadow: 0 24px 60px rgba(44, 35, 133, 0.26);
}

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

body {
  font-family: Inter, ui-rounded, "Nunito", "Trebuchet MS", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.95) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 14%, rgba(255, 255, 255, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 62% 34%, rgba(255, 255, 255, 0.65) 0 1px, transparent 2px),
    linear-gradient(180deg, var(--blue-top) 0%, var(--blue-mid) 42%, var(--blue-bottom) 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

body::before {
  width: 360px;
  height: 360px;
  left: -160px;
  bottom: -130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
  box-shadow:
    90px -28px 0 rgba(255, 255, 255, 0.18),
    220px 20px 0 rgba(255, 255, 255, 0.16);
}

body::after {
  width: 420px;
  height: 420px;
  right: -190px;
  top: -120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) 16px max(22px, env(safe-area-inset-bottom));
}

.hero-card {
  position: relative;
  width: min(100%, 430px);
  min-height: min(760px, calc(100svh - 32px));
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 18px 18px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.72) 58%, rgba(255, 255, 255, 0.92) 100%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 239, 94, 0.52), transparent 19%),
    radial-gradient(circle at 18% 40%, rgba(255, 255, 255, 0.52), transparent 18%),
    radial-gradient(circle at 82% 48%, rgba(255, 255, 255, 0.42), transparent 20%);
  pointer-events: none;
}

.brand,
.mascot-wrap,
.content,
.install-card {
  position: relative;
  z-index: 1;
}

.brand {
  width: 100%;
  display: flex;
  justify-content: center;
}

.brand picture {
  display: contents;
}

.brand-logo {
  width: min(88%, 340px);
  height: auto;
  filter: drop-shadow(0 14px 18px rgba(32, 10, 104, 0.22));
}

.mascot-wrap {
  width: 100%;
  height: clamp(210px, 42svh, 330px);
  display: grid;
  place-items: end center;
  margin-top: 4px;
}

.mascot-glow {
  position: absolute;
  width: 230px;
  height: 110px;
  bottom: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 221, 44, 0.56), rgba(255, 255, 255, 0) 70%);
  filter: blur(4px);
}

.mascot-wrap picture {
  display: contents;
}

.mascot {
  position: relative;
  max-width: min(82%, 300px);
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(31, 21, 105, 0.26));
  transform: translateY(8px);
}

.content {
  width: 100%;
  margin-top: -8px;
  padding: 24px 18px 18px;
  border-radius: 30px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 16px 34px rgba(35, 19, 114, 0.15);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #6636d9;
  background: rgba(109, 49, 239, 0.12);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.eyebrow::before {
  content: "★";
  color: var(--yellow-deep);
  text-shadow: 0 1px 0 #ffffff;
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 0.95;
}

.subtitle {
  margin: 12px auto 20px;
  max-width: 310px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.38;
  font-weight: 650;
}

.primary-button {
  width: 100%;
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 24px;
  color: #35126f;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 950;
  background:
    linear-gradient(180deg, #fff36d 0%, var(--yellow) 43%, var(--yellow-deep) 100%);
  border: 2px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    0 12px 0 #d88200,
    0 18px 30px rgba(255, 174, 0, 0.26),
    inset 0 2px 0 rgba(255, 255, 255, 0.88);
  transform: translateY(0);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.primary-button:active {
  transform: translateY(6px);
  box-shadow:
    0 6px 0 #d88200,
    0 10px 18px rgba(255, 174, 0, 0.22),
    inset 0 2px 0 rgba(255, 255, 255, 0.88);
}

.primary-button.is-disabled {
  color: rgba(53, 18, 111, 0.52);
  cursor: default;
  filter: grayscale(0.25);
}

.arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
  font-size: 2rem;
  line-height: 0.8;
}

.status-message {
  min-height: 20px;
  margin: 18px 0 0;
  color: rgba(33, 19, 95, 0.72);
  font-size: 0.88rem;
  font-weight: 700;
}

.install-card {
  width: 100%;
  margin-top: auto;
  padding-top: 20px;
  text-align: center;
}

.install-card p {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
}

.play-link {
  display: inline-flex;
  justify-content: center;
  border-radius: 14px;
  line-height: 0;
  filter: drop-shadow(0 10px 14px rgba(16, 12, 60, 0.18));
}

.play-link img {
  width: min(210px, 74vw);
  height: auto;
}

.sparkle {
  position: absolute;
  z-index: 1;
  color: var(--yellow);
  font-size: 1.3rem;
  text-shadow: 0 2px 6px rgba(151, 93, 0, 0.32);
  animation: twinkle 2.8s ease-in-out infinite;
}

.sparkle-one {
  top: 18%;
  left: 12%;
}

.sparkle-two {
  top: 13%;
  right: 13%;
  animation-delay: 0.7s;
}

.sparkle-three {
  top: 44%;
  right: 7%;
  animation-delay: 1.4s;
}

@keyframes twinkle {
  0%, 100% {
    transform: scale(0.85) rotate(-8deg);
    opacity: 0.72;
  }

  50% {
    transform: scale(1.18) rotate(8deg);
    opacity: 1;
  }
}

@media (max-height: 700px) {
  .hero-card {
    min-height: auto;
    padding-top: 18px;
  }

  .brand-logo {
    width: min(78%, 285px);
  }

  .mascot-wrap {
    height: 185px;
  }

  .mascot {
    max-width: min(68%, 230px);
  }

  .content {
    padding: 18px 16px 15px;
  }

  h1 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .subtitle {
    margin-bottom: 14px;
  }

  .primary-button {
    min-height: 58px;
  }

  .install-card {
    padding-top: 14px;
  }
}

@media (min-width: 760px) {
  .page-shell {
    padding: 28px;
  }

  .hero-card {
    min-height: 780px;
  }
}
