:root {
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.88);
  --install-gradient: linear-gradient(
    135deg,
    rgba(125, 242, 255, 0.94) 0%,
    rgba(138, 130, 255, 0.94) 58%,
    rgba(233, 141, 255, 0.94) 100%
  );
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: #0a0a12;
  -webkit-tap-highlight-color: transparent;
}

.home-app {
  position: relative;
  min-height: 100%;
  min-height: 100dvh;
}

.home-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0a0a12;
}

.home-bg-layer {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 1;
  transition: opacity 2.8s ease-in-out;
  will-change: opacity;
}

.home-bg-layer.is-current {
  z-index: 1;
}

.home-bg-layer.is-incoming {
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}

.home-bg-layer.is-incoming.is-visible {
  opacity: 1;
}

.home-meteor {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.home-shell {
  position: relative;
  z-index: 2;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px
    calc(18px + var(--safe-bottom));
  max-width: 520px;
  margin: 0 auto;
}

.home-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
}

.home-brand {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.home-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 8px 16px;
}

.home-title {
  margin: 0;
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.home-subtitle {
  margin: 8px 0 0;
  font-size: clamp(14px, 3.6vw, 16px);
  font-weight: 500;
  color: var(--text-muted);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.home-actions {
  width: 100%;
  padding-bottom: 24px;
}

.home-icp {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.home-icp a {
  color: inherit;
  text-decoration: none;
}

.home-icp a:hover {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: underline;
}

.install-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 14px 24px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 16px;
  background: var(--install-gradient);
  color: #0a1535;
  font-family: inherit;
  font-size: clamp(18px, 4.8vw, 22px);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition:
    transform 120ms ease,
    box-shadow 120ms ease;
  -webkit-appearance: none;
  appearance: none;
}

.install-btn:active {
  transform: scale(0.98);
}

.install-btn--sub {
  min-height: 44px;
  font-size: 15px;
  font-weight: 700;
}

.home-desktop-hint {
  margin: -16px 0 12px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.home-desktop-hint p {
  margin: 0 0 10px;
}

.home-desktop-hint__links {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.home-desktop-hint__links .install-btn {
  flex: 1;
  max-width: 160px;
}

@media (min-width: 768px) {
  .home-shell {
    max-width: 440px;
  }
}
