.activation-shell {
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 20px;
  overflow-x: hidden;
  padding:
    max(36px, env(safe-area-inset-top))
    max(24px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(24px, env(safe-area-inset-left));
  color: #ffffff;
  background-image:
    linear-gradient(
      90deg,
      rgba(18, 6, 40, 0.78) 0%,
      rgba(32, 10, 58, 0.52) 48%,
      rgba(23, 7, 47, 0.66) 100%
    ),
    url("/assets/home-hero-galaxy.webp?v=0.6.0-img1");
  background-position: center, center 52%;
  background-size: cover;
  isolation: isolate;
}

.activation-stars {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.activation-stars i {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 9px rgba(255, 235, 158, 0.7);
  opacity: 0.24;
  animation: activation-star-twinkle 4.8s ease-in-out infinite;
}

.activation-stars i:nth-child(1) {
  top: 14%;
  left: 8%;
  animation-delay: -1.2s;
}

.activation-stars i:nth-child(2) {
  top: 72%;
  left: 14%;
  width: 3px;
  height: 3px;
  animation-delay: -3.4s;
}

.activation-stars i:nth-child(3) {
  top: 25%;
  left: 37%;
  animation-delay: -2.2s;
}

.activation-stars i:nth-child(4) {
  top: 80%;
  left: 43%;
  animation-delay: -4.2s;
}

.activation-stars i:nth-child(5) {
  top: 12%;
  left: 63%;
  width: 3px;
  height: 3px;
  animation-delay: -0.5s;
}

.activation-stars i:nth-child(6) {
  top: 67%;
  left: 72%;
  animation-delay: -2.8s;
}

.activation-stars i:nth-child(7) {
  top: 22%;
  left: 88%;
  animation-delay: -3.8s;
}

.activation-stars i:nth-child(8) {
  top: 78%;
  left: 94%;
  width: 3px;
  height: 3px;
  animation-delay: -1.7s;
}

.activation-stage {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
  min-width: 0;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  grid-template-rows: 1fr auto auto 1fr;
  column-gap: clamp(54px, 8vw, 118px);
  row-gap: 18px;
}

.activation-brand {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: center;
  min-width: 0;
  text-align: left;
}

.activation-brand-copy {
  display: grid;
  justify-items: start;
  line-height: 1.25;
  text-align: left;
}

.activation-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  color: #ffffff;
  background: linear-gradient(
    100deg,
    #ffffff 8%,
    #ffffff 27%,
    #ffd45c 45%,
    #fff0aa 56%,
    #dcb7ff 73%,
    #ffffff 92%
  );
  background-size: 240% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 3px 13px rgba(14, 4, 32, 0.5));
  font-size: clamp(56px, 5vw, 74px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
  white-space: nowrap;
  animation: activation-title-shimmer 5s ease-in-out infinite;
  -webkit-text-fill-color: transparent;
}

.activation-mark-grid {
  width: 54px;
  height: 68px;
  flex: 0 0 54px;
  background: url("/assets/focus-mascot.webp?v=0.6.0-img1") center / contain
    no-repeat;
  filter: drop-shadow(0 5px 10px rgba(20, 7, 43, 0.32));
}

.activation-mark-grid i {
  display: none;
}

.activation-subtitle {
  max-width: 590px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 1.6vw, 23px);
  font-weight: 720;
  line-height: 1.55;
  letter-spacing: 0;
  word-spacing: 0.26em;
  text-shadow: 0 2px 11px rgba(15, 4, 34, 0.58);
  text-wrap: balance;
}

.activation-slogan {
  position: relative;
  margin: 0;
  padding-left: 23px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 580;
  line-height: 1.6;
  text-shadow: 0 2px 9px rgba(15, 4, 34, 0.6);
}

.activation-slogan::before {
  position: absolute;
  top: 50%;
  left: 0;
  color: #ffe27a;
  font-size: 15px;
  line-height: 1;
  text-shadow: 0 0 12px rgba(255, 212, 0, 0.65);
  content: "✦";
  transform: translateY(-52%);
}

@keyframes activation-title-shimmer {
  0%,
  100% {
    background-position: 100% 50%;
  }

  50% {
    background-position: 0% 50%;
  }
}

@keyframes activation-star-twinkle {
  0%,
  100% {
    opacity: 0.16;
    transform: translateY(0) scale(0.8);
  }

  50% {
    opacity: 0.7;
    transform: translateY(-4px) scale(1.35);
  }
}

.activation-version-tabs {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  gap: 0;
  margin-bottom: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 26px rgba(12, 3, 31, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.activation-version-tab {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: all 0.25s ease;
}

.activation-version-tab.active {
  background: linear-gradient(135deg, #62358A, #8B5CF6);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.activation-version-tab:not(.active):hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.activation-panel {
  grid-column: 2;
  grid-row: 3;
  width: 100%;
  min-width: 0;
  padding: 36px 34px 30px;
  border: 1px solid rgba(232, 224, 241, 0.94);
  border-top: 4px solid #ffd400;
  border-radius: 8px;
  color: #251d2d;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 24px 62px rgba(12, 3, 31, 0.42),
    0 0 34px rgba(255, 212, 0, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.activation-panel-header {
  margin-bottom: 26px;
}

.activation-kicker {
  display: block;
  margin-bottom: 7px;
  color: #a86f00;
  font-size: 12px;
  font-weight: 850;
}

.activation-panel h3 {
  margin: 0 0 8px;
  color: #62358a;
  font-size: 38px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
}

.activation-panel-header p {
  margin: 0;
  color: #716979;
  font-size: 13px;
  line-height: 1.6;
}

.activation-panel form {
  display: grid;
  gap: 11px;
}

.activation-panel label {
  color: #39303f;
  font-size: 13px;
  font-weight: 800;
}

.activation-panel input {
  width: 100%;
  min-height: 58px;
  padding: 0 14px;
  border: 1px solid #d8cce4;
  border-radius: 8px;
  color: #251d2d;
  background: #ffffff;
  box-shadow: inset 0 1px 3px rgba(58, 36, 74, 0.06);
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-align: center;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.activation-panel input::placeholder {
  color: #aaa2af;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
}

.activation-panel input:focus {
  border-color: #8b5cf6;
  outline: 0;
  box-shadow:
    0 0 0 4px rgba(139, 92, 246, 0.15),
    inset 0 1px 3px rgba(58, 36, 74, 0.06);
}

.activation-panel button {
  min-height: 54px;
  margin-top: 5px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: #62358a;
  box-shadow: 0 10px 24px rgba(98, 53, 138, 0.25);
  font-size: 16px;
  font-weight: 850;
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.activation-panel button:hover:not(:disabled) {
  background: #75429e;
  box-shadow: 0 12px 28px rgba(98, 53, 138, 0.3);
  transform: translateY(-1px);
}

.activation-panel button:active:not(:disabled) {
  transform: translateY(0) scale(0.99);
}

.activation-panel button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.activation-message {
  min-height: 20px;
  margin: 11px 0 3px;
  color: #d83b43;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.activation-message[data-type="success"] {
  color: #168b61;
}

.activation-panel > small {
  display: block;
  color: #7d7482;
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.activation-channel {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3px;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid #eee7f3;
  color: #5d5561;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.activation-channel strong {
  color: #62358a;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.activation-copyright {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 2px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.5;
  text-align: center;
  text-shadow: 0 2px 8px rgba(15, 4, 34, 0.6);
}

.activation-test-note {
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .activation-shell {
    padding-top: max(28px, env(safe-area-inset-top));
  }

  .activation-stage {
    width: min(100%, 480px);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    column-gap: 0;
    row-gap: 24px;
  }

  .activation-brand,
  .activation-version-tabs,
  .activation-panel {
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
  }

  .activation-brand-copy {
    justify-items: center;
    text-align: center;
  }

  .activation-title {
    margin-bottom: 16px;
    font-size: 48px;
  }

  .activation-subtitle {
    margin-bottom: 12px;
    font-size: 18px;
  }
}

@media (max-width: 520px) {
  .activation-shell {
    gap: 14px;
    padding:
      max(22px, env(safe-area-inset-top))
      max(18px, env(safe-area-inset-right))
      max(18px, env(safe-area-inset-bottom))
      max(18px, env(safe-area-inset-left));
    background-position: center, 52% center;
  }

  .activation-stage {
    align-content: center;
    gap: 22px;
  }

  .activation-title {
    gap: 10px;
    margin-bottom: 13px;
    font-size: 36px;
  }

  .activation-mark-grid {
    width: 31px;
    height: 39px;
    flex-basis: 31px;
  }

  .activation-subtitle {
    max-width: 350px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.55;
    word-spacing: 0.15em;
  }

  .activation-slogan {
    padding-left: 19px;
    font-size: 12px;
  }

  .activation-slogan::before {
    font-size: 13px;
  }

  .activation-panel {
    padding: 27px 20px 23px;
  }

  .activation-panel-header {
    margin-bottom: 21px;
  }

  .activation-panel h3 {
    font-size: 32px;
  }

  .activation-panel input {
    min-height: 56px;
  }

  .activation-panel button {
    min-height: 52px;
  }

  .activation-stars i:nth-child(n + 6) {
    display: none;
  }
}

@media (max-height: 700px) and (max-width: 900px) {
  .activation-shell {
    padding-top: max(14px, env(safe-area-inset-top));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .activation-stage {
    gap: 16px;
  }

  .activation-title {
    margin-bottom: 8px;
    font-size: 32px;
  }

  .activation-subtitle {
    margin-bottom: 5px;
    font-size: 13px;
  }

  .activation-slogan {
    font-size: 11px;
  }

  .activation-panel {
    padding-top: 22px;
    padding-bottom: 19px;
  }

  .activation-panel-header {
    margin-bottom: 17px;
  }

  .activation-panel h3 {
    font-size: 29px;
  }

  .activation-channel {
    margin-top: 12px;
    padding-top: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .activation-title,
  .activation-stars i {
    animation: none;
  }
}
