:root {
  --android-green: #a7d773;
  --android-green-soft: rgba(167, 215, 115, 0.14);
}

.android-page {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 73% 48%, rgba(91, 66, 170, 0.18), transparent 26rem),
    radial-gradient(circle at 16% 10%, rgba(224, 182, 76, 0.1), transparent 22rem),
    #050711;
}

.android-page::after {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 78%);
}

[hidden] { display: none !important; }

.android-header,
.android-footer {
  width: var(--page);
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-inline: auto;
}

.android-header {
  min-height: 88px;
  border-bottom: 1px solid var(--line-soft);
}

.platform-mark {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: #a6a3ad;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.platform-mark i {
  width: 7px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--android-green);
  box-shadow: 0 0 15px rgba(167, 215, 115, 0.75);
}

.install-state {
  width: var(--page);
  min-height: calc(100svh - 168px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.8fr);
  gap: clamp(30px, 7vw, 110px);
  align-items: center;
  margin: 0 auto;
  padding: 56px 0 74px;
}

.install-copy { position: relative; z-index: 2; }

.install-copy h1,
.wrong-realm-copy h1 {
  margin: 0;
  font-size: clamp(4.1rem, 7.4vw, 7rem);
  letter-spacing: -0.048em;
  line-height: 0.88;
}

.install-copy h1 em,
.wrong-realm-copy h1 em { color: var(--gold-bright); }

.install-lead,
.wrong-realm-copy > p {
  max-width: 620px;
  margin: 28px 0 0;
  color: #b7b4bd;
  font-size: clamp(0.98rem, 1.45vw, 1.14rem);
}

.install-actions { margin-top: 34px; }

.install-button {
  width: min(100%, 430px);
  min-height: 72px;
  justify-content: flex-start;
  padding: 13px 17px;
  text-transform: none;
}

.install-button > span:nth-child(2) { display: grid; gap: 2px; }
.install-button b { font-size: 0.84rem; letter-spacing: 0.11em; text-transform: uppercase; }
.install-button small { font-size: 0.63rem; font-weight: 600; letter-spacing: 0.08em; opacity: 0.72; }

.android-glyph {
  width: 40px;
  aspect-ratio: 1;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(18, 21, 15, 0.4);
  background: rgba(15, 17, 12, 0.08);
}

.android-glyph svg { width: 27px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.download-arrow { margin-left: auto; font-family: var(--serif); font-size: 1.35rem; }

.package-note {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 12px 0 0;
  color: #777680;
  font-size: 0.66rem;
}
.package-note span { color: var(--android-green); }

.install-steps {
  max-width: 620px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.install-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.018);
}

.install-steps li > span { color: rgba(224,182,76,0.55); font-family: var(--serif); font-size: 0.68rem; }
.install-steps p { margin: 0; color: #797782; font-size: 0.66rem; line-height: 1.55; }
.install-steps b { display: block; margin-bottom: 2px; color: #d7d2c7; font-family: var(--serif); font-size: 0.94rem; font-weight: 400; }

.install-art {
  min-height: 590px;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.install-art::after {
  width: 70%;
  height: 8%;
  position: absolute;
  z-index: -1;
  bottom: 4%;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  filter: blur(19px);
  content: "";
}

.android-phone {
  width: min(70%, 315px);
  aspect-ratio: 720 / 1558;
  position: relative;
  z-index: 2;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 217, 121, 0.48);
  border-radius: 40px;
  background: #02030a;
  box-shadow: 0 35px 100px rgba(0,0,0,0.7), 0 0 90px rgba(99, 77, 181, 0.19);
  transform: rotate(2.5deg);
}

.android-phone::before {
  width: 31%;
  height: 20px;
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 50%;
  border-radius: 0 0 14px 14px;
  background: #02030a;
  content: "";
  transform: translateX(-50%);
}

.android-phone img { width: 100%; height: 100%; object-fit: cover; }

.portal-ring {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(224,182,76,0.22);
  border-radius: 50%;
}

.portal-ring::before,
.portal-ring::after {
  position: absolute;
  border-radius: inherit;
  content: "";
}

.portal-ring::before { inset: 11%; border: 1px dashed rgba(130,96,215,0.36); }
.portal-ring::after { inset: 28%; border: 1px solid rgba(167,215,115,0.22); }
.portal-ring-outer { width: min(41vw, 530px); aspect-ratio: 1; animation: slow-turn 28s linear infinite; }
.portal-ring-inner { width: min(32vw, 410px); aspect-ratio: 1; border-style: dashed; animation: slow-turn 21s linear infinite reverse; }

.signal-card {
  position: absolute;
  z-index: 3;
  right: -3%;
  bottom: 17%;
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 13px 16px;
  border: 1px solid rgba(167,215,115,0.3);
  background: rgba(6,9,18,0.9);
  box-shadow: 0 18px 45px rgba(0,0,0,0.34);
  backdrop-filter: blur(16px);
}

.signal-dot { width: 8px; aspect-ratio: 1; border-radius: 50%; background: var(--android-green); box-shadow: 0 0 17px rgba(167,215,115,0.8); }
.signal-card p { margin: 0; line-height: 1.3; }
.signal-card b,
.signal-card small { display: block; }
.signal-card b { color: #e5e0d5; font-family: var(--serif); font-size: 0.85rem; font-weight: 400; }
.signal-card small { margin-top: 2px; color: #777780; font-size: 0.53rem; letter-spacing: 0.08em; text-transform: uppercase; }

.floating-rune { position: absolute; z-index: 3; color: var(--gold); text-shadow: 0 0 18px rgba(224,182,76,0.55); }
.rune-one { top: 19%; left: 0; font-size: 1.2rem; }
.rune-two { right: 3%; top: 28%; color: #8f72d7; font-size: 1.6rem; transform: rotate(35deg); }

.wrong-realm {
  width: var(--page);
  min-height: calc(100svh - 168px);
  display: grid;
  grid-template-columns: minmax(370px, 0.82fr) minmax(0, 1.1fr);
  gap: clamp(45px, 8vw, 120px);
  align-items: center;
  margin: 0 auto;
  padding: 64px 0 80px;
}

.wrong-realm-art {
  min-height: 490px;
  position: relative;
  display: grid;
  place-items: center;
}

.wrong-orbit {
  width: min(39vw, 480px);
  aspect-ratio: 1;
  position: absolute;
  border: 1px solid rgba(224,182,76,0.24);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(130,96,215,0.14), transparent 62%);
}

.wrong-orbit::before,
.wrong-orbit::after { position: absolute; inset: 14%; border: 1px dashed rgba(255,255,255,0.13); border-radius: inherit; content: ""; }
.wrong-orbit::after { inset: 32%; border-style: solid; border-color: rgba(167,215,115,0.19); }

.device-party { width: 310px; height: 230px; position: relative; z-index: 2; }
.device-icon { position: absolute; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(8,11,24,0.91); box-shadow: 0 24px 65px rgba(0,0,0,0.45); transform: rotate(var(--tilt)); }
.device-icon svg { width: 58%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.device-icon-laptop { --tilt: -7deg; width: 140px; aspect-ratio: 1; left: 0; bottom: 5px; color: #807d88; }
.device-icon-phone { --tilt: 8deg; width: 128px; aspect-ratio: 0.82; right: 0; top: 0; color: #8b72c5; }
.device-icon-android { --tilt: -2deg; width: 126px; aspect-ratio: 1; left: 93px; top: 48px; z-index: 3; color: var(--android-green); border-color: rgba(167,215,115,0.43); }
.orbit-joke { position: absolute; z-index: 4; right: 0; bottom: 7%; color: #6e6c77; font-size: 0.57rem; letter-spacing: 0.2em; text-transform: uppercase; transform: rotate(-7deg); }

.wrong-realm-copy { position: relative; z-index: 2; }
.wrong-actions { display: flex; gap: 25px; align-items: center; margin-top: 34px; }
.wrong-actions p { max-width: 290px; margin: 0; color: #706e78; font-size: 0.64rem; line-height: 1.55; }
.wrong-actions p span { color: var(--gold); }

.android-footer {
  min-height: 80px;
  border-top: 1px solid var(--line-soft);
  color: #66646e;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.android-footer p { margin: 0; }
.android-footer div { display: flex; gap: 26px; }
.android-footer a { color: #8c8993; text-decoration: none; }
.android-footer a:hover { color: var(--gold-bright); }

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

@media (max-width: 900px) {
  .install-state { grid-template-columns: minmax(0, 1fr) minmax(290px, 0.65fr); gap: 20px; }
  .install-copy h1,
  .wrong-realm-copy h1 { font-size: clamp(3.8rem, 9vw, 5.6rem); }
  .install-art { min-height: 510px; }
  .signal-card { right: -6%; }
  .wrong-realm { grid-template-columns: minmax(290px, 0.7fr) minmax(0, 1fr); gap: 35px; }
  .wrong-realm-art { min-height: 430px; }
}

@media (max-width: 680px) {
  .android-page { display: block; }
  .android-header { min-height: 72px; }
  .platform-mark { font-size: 0.53rem; letter-spacing: 0.11em; }
  .install-state,
  .wrong-realm { min-height: 0; grid-template-columns: 1fr; padding: 70px 0 65px; }
  .install-copy h1,
  .wrong-realm-copy h1 { font-size: clamp(3.65rem, 17vw, 5.5rem); }
  .install-lead,
  .wrong-realm-copy > p { margin-top: 24px; font-size: 0.97rem; }
  .install-button { width: 100%; }
  .install-steps { grid-template-columns: 1fr; margin-top: 32px; }
  .install-art { min-height: 465px; margin-top: 22px; }
  .android-phone { width: min(56vw, 235px); border-radius: 30px; }
  .portal-ring-outer { width: 88vw; }
  .portal-ring-inner { width: 68vw; }
  .signal-card { right: 0; bottom: 11%; }
  .rune-one { left: 4%; }
  .wrong-realm { display: flex; flex-direction: column; gap: 16px; }
  .wrong-realm-art { width: 100%; min-height: 350px; order: 2; }
  .wrong-realm-copy { order: 1; }
  .wrong-orbit { width: min(88vw, 390px); }
  .device-party { transform: scale(0.84); }
  .wrong-actions { align-items: flex-start; flex-direction: column; }
  .wrong-actions .button { width: 100%; }
  .android-footer { min-height: 110px; align-items: flex-start; flex-direction: column; gap: 13px; justify-content: center; }
  .android-footer div { flex-wrap: wrap; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .portal-ring-outer,
  .portal-ring-inner { animation: none; }
}
