:root {
  --bg: #090708;
  --surface: #100d0f;
  --surface-strong: #171215;
  --text: #fffafc;
  --muted: #b9afb3;
  --faint: #766c70;
  --border: rgba(255, 255, 255, 0.12);
  --accent: #9320bd;
  --accent-hover: #aa2dd2;
  --accent-ink: #fffaff;
  --focus: #fff;
  --radius-sm: 0.875rem;
  --radius-lg: 2rem;
  --control-height: 3.75rem;
  --content-width: 31rem;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding:
    max(1rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans Thai", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.4;
  background: var(--bg) url("bg/mobile.jpg") center / cover no-repeat fixed;
}

@media (min-width: 768px) {
  body {
    background-image: url("bg/desktop.jpg");
  }
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-video,
.bg-slideshow,
.bg-slideshow img,
.bg-vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bg-video {
  object-fit: cover;
  opacity: 0;
  filter: saturate(0.72) contrast(1.08);
  transition: opacity 500ms ease;
}

@media (min-width: 768px) {
  .bg-video.is-ready {
    opacity: 1;
  }
}

.bg-slideshow img {
  object-fit: cover;
  opacity: 0;
  filter: saturate(0.72) contrast(1.08);
}

.bg-slideshow img.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .bg-slideshow img {
    transition: opacity 700ms linear;
  }
}

.bg-vignette {
  background:
    radial-gradient(circle at 50% 18%, rgba(175, 37, 225, 0.2), transparent 30rem),
    linear-gradient(180deg, rgba(9, 7, 8, 0.42) 0%, rgba(9, 7, 8, 0.82) 68%, rgba(9, 7, 8, 0.97) 100%),
    radial-gradient(ellipse at center, transparent 34%, rgba(0, 0, 0, 0.56) 100%);
}

.profile {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(var(--content-width), 100%);
  min-width: 0;
  padding: clamp(1.5rem, 5vw, 3rem);
  text-align: center;
}

.brand-logo {
  display: block;
  width: min(100%, 21rem);
  height: auto;
  margin: 0 auto 0.4rem;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 1rem 2rem rgba(137, 20, 183, 0.2));
}

.profile-mark {
  position: relative;
  display: grid;
  width: 6.25rem;
  height: 6.25rem;
  place-items: center;
  margin-bottom: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: linear-gradient(145deg, #20171b, #0c090a);
  box-shadow: 0 1.25rem 3.5rem rgba(0, 0, 0, 0.42);
}

.profile-mark::before {
  content: "";
  position: absolute;
  inset: 0.35rem;
  border: 1px solid rgba(178, 57, 220, 0.48);
  border-radius: inherit;
}

.profile-mark__orbit {
  position: absolute;
  inset: -0.35rem;
  border-top: 1px solid #c545ee;
  border-right: 1px solid transparent;
  border-bottom: 1px solid rgba(178, 57, 220, 0.38);
  border-left: 1px solid transparent;
  border-radius: inherit;
  transform: rotate(24deg);
}

.profile-mark svg {
  width: 2.9rem;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.35;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1;
}

#title {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  font-size: clamp(2rem, 8vw, 3.25rem);
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 0.98;
  white-space: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
  text-shadow: 0 0.2rem 1.35rem rgba(0, 0, 0, 0.75);
}

.subtitle {
  max-width: 27rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  text-wrap: balance;
}

.action-stack {
  display: grid;
  width: 100%;
  gap: 0.75rem;
  margin-top: 2rem;
  text-align: start;
}

.country-label {
  color: #d7cdd1;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.country {
  position: relative;
  display: grid;
  min-width: 0;
  max-width: 100%;
}

#country-select {
  appearance: none;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: var(--control-height);
  margin: 0;
  padding-block: 0;
  padding-inline: 1rem 3.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

#country-select option {
  background: #181316;
  color: var(--text);
}

.country__chevron {
  position: absolute;
  top: 50%;
  inset-inline-end: 1rem;
  width: 1.15rem;
  pointer-events: none;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transform: translateY(-50%);
}

#continue-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  min-height: var(--control-height);
  margin: 0;
  padding-block: 0.9rem;
  padding-inline: 1.15rem 1rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-align: start;
  cursor: pointer;
  box-shadow: 0 0.8rem 2.2rem rgba(147, 32, 189, 0.22);
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

#continue-button svg {
  width: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

@media (hover: hover) {
  #continue-button:hover {
    background: var(--accent-hover);
    box-shadow: 0 1rem 2.8rem rgba(147, 32, 189, 0.34);
    transform: translateY(-2px);
  }

  #country-select:hover {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.1);
  }
}

#continue-button:active {
  background: #7e179f;
  transform: translateY(0);
}

#country-select:focus-visible,
#continue-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.links-profile {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(31rem, 100%);
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.25rem, 5vw, 2rem);
  text-align: center;
}

.links-profile .brand-logo {
  width: min(100%, 19rem);
  margin-bottom: 0.15rem;
}

.links-eyebrow {
  margin: 0 0 0.55rem;
  color: #d15af1;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 1;
}

.links-profile h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.65rem, 7vw, 2.15rem);
  font-weight: 780;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-wrap: balance;
}

.links-subtitle {
  max-width: 26rem;
  margin: 0.65rem 0 1.35rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  text-wrap: balance;
}

.offer-list {
  display: grid;
  width: 100%;
  gap: 0.62rem;
}

.offer-link {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr) auto 1.15rem;
  min-width: 0;
  min-height: 3.45rem;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(220, 166, 243, 0.15);
  border-radius: 0.85rem;
  background: #78139d;
  color: #fffaff;
  text-align: start;
  text-decoration: none;
  box-shadow: 0 0.5rem 1.6rem rgba(50, 5, 65, 0.16);
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.offer-link.is-recommended {
  background: #9a20c2;
  border-color: rgba(237, 199, 255, 0.55);
}

.offer-code {
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(20, 4, 29, 0.24);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.offer-name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.25;
}

.offer-recommended {
  color: #f4c9ff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: end;
}

.offer-link svg {
  width: 1.1rem;
  fill: none;
  stroke: rgba(255, 255, 255, 0.76);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

@media (hover: hover) {
  .offer-link:hover {
    border-color: rgba(237, 199, 255, 0.55);
    background: #8c18b5;
    transform: translateY(-1px);
  }
}

.offer-link:focus-visible,
.links-switch a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.links-switch {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.links-switch a {
  color: #d7a4e8;
  text-decoration-color: rgba(215, 164, 232, 0.45);
  text-underline-offset: 0.2em;
}

.profile--offers {
  width: min(29rem, 100%);
  padding: clamp(0.75rem, 3vh, 1.5rem) clamp(0.25rem, 3vw, 1rem);
  padding-bottom: 0.8rem;
}

.profile--offers .brand-logo {
  width: min(64vw, 14rem);
  margin-bottom: 0.45rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.profile--offers .country-picker {
  width: min(13.5rem, 100%);
  margin: 0 auto 0.85rem;
}

.profile--offers > .language-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 2.15rem;
  margin: 0 auto 1.35rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(198, 121, 255, 0.38);
  border-radius: 999px;
  background: linear-gradient(110deg, rgba(119, 31, 168, 0.34), rgba(154, 32, 194, 0.2));
  color: #e5c7ff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
}

.profile--offers .country {
  position: relative;
}

.profile--offers #country-select {
  min-height: 2.75rem;
  padding-inline: 2.8rem 2.6rem;
  border-color: rgba(226, 160, 255, 0.38);
  border-radius: 0.72rem;
  background: rgba(15, 9, 18, 0.9);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
  font-size: 0.92rem;
}

.country-flag {
  position: absolute;
  z-index: 1;
  top: 50%;
  inset-inline-start: 0.8rem;
  display: grid;
  width: 1.35rem;
  height: 1rem;
  place-items: center;
  overflow: hidden;
  border-radius: 0.12rem;
  color: var(--text);
  font-size: 0.5rem;
  font-weight: 800;
  transform: translateY(-50%);
}

.country-flag img,
.offer-flag img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.country-flag.is-fallback {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

.profile--offers #title {
  margin: 0 0 0.9rem;
  max-width: 27rem;
  font-size: clamp(1.15rem, 3.6vw, 1.4rem);
  font-weight: 680;
  letter-spacing: -0.02em;
  line-height: 1.48;
  text-wrap: balance;
  text-shadow: 0 0.15rem 1rem rgba(0, 0, 0, 0.72);
}

.profile--offers .subtitle {
  margin: 0.5rem 0 1.15rem;
  color: #e2d7e7;
  font-size: 0.9rem;
  font-weight: 560;
  line-height: 1.5;
  text-wrap: balance;
}

.profile--offers .telegram-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  margin: 0.75rem 0 1.15rem;
  padding: 0.38rem 0.72rem 0.38rem 0.42rem;
  border: 1px solid rgba(63, 179, 232, 0.33);
  border-radius: 999px;
  background: rgba(26, 111, 151, 0.14);
  color: #85d9ff;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: start;
  text-transform: uppercase;
}

.profile--offers .telegram-note svg {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0.3rem;
  overflow: visible;
  border-radius: 50%;
  background: #229ed9;
  fill: #fff;
}

.profile--offers .landing-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.profile--offers .landing-footer .telegram-note,
.profile--offers .landing-footer .language-note {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 0;
  max-width: 100%;
  min-height: 2.35rem;
  margin: 0;
  padding: 0.42rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
}

.profile--offers .landing-footer .telegram-note svg {
  flex: 0 0 1.35rem;
}

.profile--offers .landing-footer .telegram-note {
  border-color: rgba(63, 179, 232, 0.33);
  background: rgba(26, 111, 151, 0.14);
  color: #85d9ff;
}

.profile--offers .landing-footer .telegram-note svg {
  width: 1.35rem;
  height: 1.35rem;
  padding: 0.3rem;
  border-radius: 50%;
  background: #229ed9;
  fill: #fff;
}

.profile--offers .offer-list {
  gap: 0.55rem;
  margin-top: 0.15rem;
}

.profile--offers .offer-link {
  display: grid;
  grid-template-columns: 1.2rem minmax(0, 1fr) auto 1rem;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.15rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.72rem;
}

.profile--offers .offer-link[hidden] {
  display: none;
}

.profile--offers .offer-name {
  min-width: 0;
  font-size: 0.94rem;
  line-height: 1.25;
}

.profile--offers .offer-emoji {
  font-size: 1.12rem;
  line-height: 1;
  text-align: center;
}

.profile--offers .offer-flag {
  display: grid;
  width: 1.45rem;
  height: 1rem;
  place-items: center;
  overflow: hidden;
  border-radius: 0.12rem;
  font-size: 0.5rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.profile--offers .offer-flag.is-fallback {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

.profile--offers .offer-link--primary {
  grid-template-columns: 1.2rem minmax(0, 1fr) auto auto 1rem;
  min-height: 4rem;
  border-color: rgba(255, 226, 250, 0.52);
  background: linear-gradient(112deg, #c72178 0%, #a327ce 58%, #7627b8 100%);
  color: #fffaff;
  box-shadow: 0 0.7rem 2.1rem rgba(176, 31, 179, 0.34), inset 0 1px rgba(255, 255, 255, 0.25);
}

.profile--offers .offer-link--primary .offer-recommended {
  padding: 0.28rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(41, 7, 53, 0.24);
  color: #fff1fc;
  font-size: 0.58rem;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

.profile--offers .offer-link--primary svg {
  stroke: rgba(255, 255, 255, 0.94);
}

.profile--offers .offer-link--alternate {
  grid-template-columns: 1.2rem minmax(0, 1fr) auto 1rem;
  border-color: rgba(231, 174, 255, 0.2);
  background: rgba(91, 13, 117, 0.93);
}

.profile--offers .country__chevron {
  inset-inline-end: 0.75rem;
}

.profile--offers .offer-link:focus-visible,
.profile--offers #country-select:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (hover: hover) {
  .profile--offers .offer-link--primary:hover {
    background: linear-gradient(112deg, #d52b88 0%, #b331d7 58%, #862fc8 100%);
    box-shadow: 0 0.85rem 2.35rem rgba(193, 39, 191, 0.43), inset 0 1px rgba(255, 255, 255, 0.3);
  }

  .profile--offers .offer-link--alternate:hover {
    background: #741093;
  }
}

@media (max-width: 360px) {
  .profile--offers .offer-link {
    gap: 0.4rem;
    padding-inline: 0.65rem;
  }

  .profile--offers .offer-link--primary {
    grid-template-columns: 1.1rem minmax(0, 1fr) auto 0.9rem;
  }

  .profile--offers .offer-link--primary .offer-recommended {
    display: none;
  }

  .profile--offers .offer-name {
    font-size: 0.86rem;
  }
}

html[dir="rtl"] .offer-link svg {
  transform: scaleX(-1);
}

.trust-line {
  margin: 1.4rem 0 0;
  color: var(--faint);
  font-size: 0.73rem;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

@media (min-width: 640px) {
  .profile {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(8, 6, 7, 0.88);
    box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.48);
  }

  .links-profile {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(8, 6, 10, 0.88);
    box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.48);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-height: 480px) {
  body {
    align-items: start;
  }

  .profile {
    padding-block: 1rem;
  }

  .profile-mark {
    width: 4.25rem;
    height: 4.25rem;
    margin-bottom: 0.8rem;
  }

  .profile .brand-logo {
    width: min(62vw, 12rem);
  }

  .links-profile .brand-logo {
    width: min(58vw, 10rem);
  }

  .profile-mark svg {
    width: 2rem;
  }

  .subtitle,
  .trust-line {
    display: none;
  }

  .action-stack {
    margin-top: 1.1rem;
  }
}
