:root {
  color-scheme: dark;
  --page-bg: #06111f;
  --text: #f7fbff;
  --muted: rgba(226, 239, 255, 0.72);
  --line: rgba(159, 215, 255, 0.22);
  --blue: #168cff;
  --cyan: #4ddcff;
  --accent: #168cff;
  --accent-2: #4ddcff;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--page-bg); }

body {
  min-height: 100svh;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--page-bg) url("future-city.jpg") center top / cover no-repeat;
}

body.android {
  --accent: #21c96b;
  --accent-2: #78eea5;
}

body::before {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 7%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 34%),
    linear-gradient(180deg, rgba(2, 9, 19, 0.24), rgba(2, 10, 20, 0.9));
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 520px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 18px max(30px, calc(env(safe-area-inset-bottom) + 20px));
  flex-direction: column;
  justify-content: center;
}

.panel {
  padding: 25px 20px 22px;
  border: 1px solid var(--line);
  border-radius: 29px;
  background: rgba(5, 18, 35, 0.8);
  box-shadow: 0 22px 70px rgba(0, 23, 61, 0.54);
  text-align: center;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.app-logo {
  width: 82px;
  height: 82px;
  border: 1px solid rgba(126, 205, 255, 0.34);
  border-radius: 23px;
  box-shadow: 0 14px 42px color-mix(in srgb, var(--accent) 25%, transparent);
}

.platform-mark {
  display: grid;
  width: 68px;
  height: 68px;
  margin: 18px auto 0;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: 21px;
  color: #fff;
  background: color-mix(in srgb, var(--accent) 19%, rgba(7, 25, 46, 0.88));
  box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 16%, transparent);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

.android .platform-mark {
  font-size: 13px;
  letter-spacing: 0.08em;
}

h1 {
  margin: 18px 0 8px;
  font-size: clamp(27px, 8vw, 36px);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.lead {
  margin: 0 auto 20px;
  max-width: 390px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.48;
}

.hold-instruction {
  margin: 0 0 18px;
  padding: 16px 15px;
  border: 1px solid color-mix(in srgb, var(--accent-2) 46%, transparent);
  border-radius: 17px;
  color: #fff;
  background: color-mix(in srgb, var(--accent) 18%, rgba(8, 30, 54, 0.86));
  box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 13%, transparent);
  font-size: clamp(18px, 5.2vw, 22px);
  font-weight: 900;
  letter-spacing: -0.018em;
  line-height: 1.3;
}

.hold-instruction strong {
  color: var(--accent-2);
}

.url-label {
  margin: 0 0 8px;
  color: rgba(204, 232, 255, 0.72);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.browser-link {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  padding: 14px 15px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: #aeeaff;
  background: rgba(7, 33, 59, 0.67);
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.button {
  display: flex;
  width: 100%;
  min-height: 58px;
  padding: 14px 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--accent-2) 48%, transparent);
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 82%, #006ad9), var(--accent));
  box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 27%, transparent);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.button:active { transform: scale(0.985); }

.button.secondary {
  margin-top: 10px;
  border-color: var(--line);
  color: #dff4ff;
  background: rgba(13, 45, 76, 0.72);
  box-shadow: none;
}

.copy-icon {
  position: relative;
  width: 18px;
  height: 18px;
  margin-right: 10px;
}

.copy-icon::before,
.copy-icon::after {
  position: absolute;
  width: 10px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 3px;
  content: "";
}

.copy-icon::before { left: 1px; top: 1px; opacity: 0.58; }
.copy-icon::after { right: 1px; bottom: 1px; background: rgba(13, 45, 76, 1); }

.hint {
  margin: 16px 0 0;
  color: rgba(222, 241, 255, 0.68);
  font-size: 13px;
  line-height: 1.5;
}

.status {
  min-height: 20px;
  margin: 11px 0 0;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
}

.back {
  display: inline-block;
  margin-top: 14px;
  color: rgba(222, 241, 255, 0.74);
  font-size: 14px;
  text-decoration: none;
}

@media (max-width: 380px) {
  .panel { padding: 22px 16px 20px; }
  .page { padding-inline: 14px; }
}
