:root {
  color-scheme: dark;
  --ink: #fff8df;
  --gold: #f5c24d;
  --gold-light: #fff09d;
  --gold-deep: #9c5a10;
  --green: #063b28;
  --green-light: #0f8a58;
}

* {
  box-sizing: border-box;
}

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

body {
  display: grid;
  min-height: 100vh;
  margin: 0;
  place-items: center;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(245, 194, 77, 0.18), transparent 20rem),
    linear-gradient(135deg, #030303, #0b0907 45%, #030303);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.phone-page {
  position: relative;
  width: min(100vw, 480px);
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #030303;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.phone-page::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.1) 18%, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, 0.24) 100%),
    radial-gradient(circle at 50% 28%, transparent 0 12rem, rgba(0, 0, 0, 0.16) 24rem);
}

.topbar {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: max(9px, env(safe-area-inset-top)) 14px 9px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
  direction: ltr;
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  flex: 0 0 auto;
  color: #fff8ca;
  background:
    radial-gradient(circle at 68% 22%, rgba(245, 194, 77, 0.24), transparent 2rem),
    #151923;
  border: 1px solid rgba(245, 194, 77, 0.5);
  font-size: 10px;
  font-style: italic;
  font-weight: 1000;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

.brand-mark span {
  color: #ffda36;
}

.brand strong {
  overflow: hidden;
  font-size: clamp(15px, 4vw, 20px);
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.76);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff9da;
  font-weight: 1000;
  letter-spacing: 0;
  text-shadow: 0 2px 0 rgba(91, 43, 4, 0.52);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), transparent 24%),
    linear-gradient(180deg, #ffec94 0%, #eeb331 48%, #a76310 100%);
  border: 1px solid rgba(255, 244, 153, 0.92);
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.17),
    inset 0 -8px 12px rgba(97, 48, 5, 0.32),
    0 11px 28px rgba(0, 0, 0, 0.45),
    0 0 25px rgba(245, 194, 77, 0.3);
}

.download-btn::before,
.download-btn::after {
  position: absolute;
  top: 50%;
  width: 11px;
  height: 11px;
  content: "";
  border-radius: 50%;
  background: linear-gradient(135deg, #fff7a6, #b96d14);
  transform: translateY(-50%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28);
}

.download-btn::before {
  left: 12px;
}

.download-btn::after {
  right: 12px;
}

.top-download {
  min-width: 132px;
  min-height: 45px;
  padding: 0 24px;
  font-size: clamp(15px, 3.8vw, 18px);
}

.language-switcher {
  position: absolute;
  z-index: 11;
  top: max(66px, calc(env(safe-area-inset-top) + 58px));
  right: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 3px;
  color: #fff7d2;
  border: 1px solid rgba(245, 194, 77, 0.55);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.62);
  box-shadow:
    inset 0 0 16px rgba(245, 194, 77, 0.08),
    0 8px 22px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(8px);
}

.language-switcher span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.language-switcher select {
  width: 68px;
  min-height: 24px;
  padding-left: 7px;
  color: #fff8d8;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  border: 0;
  border-radius: 999px;
  outline: 0;
  background: rgba(245, 194, 77, 0.18);
}

.language-switcher option {
  color: #111;
}

.bonus-card {
  position: absolute;
  z-index: 4;
  top: 84px;
  left: 50%;
  display: grid;
  width: min(63vw, 284px);
  min-height: 102px;
  place-items: center;
  align-content: center;
  padding: 12px 16px;
  text-align: center;
  border: 1px solid rgba(245, 194, 77, 0.48);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 42%),
    rgba(7, 6, 8, 0.64);
  box-shadow:
    inset 0 0 26px rgba(245, 194, 77, 0.1),
    0 16px 42px rgba(0, 0, 0, 0.42);
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
}

.bonus-card > span {
  color: var(--gold-light);
  font-size: clamp(16px, 4.2vw, 21px);
  font-weight: 950;
  line-height: 1;
}

.bonus-card strong {
  position: relative;
  display: flex;
  align-items: baseline;
  direction: ltr;
  color: var(--gold-light);
  font-size: clamp(48px, 13.2vw, 68px);
  font-weight: 1000;
  line-height: 0.92;
  text-shadow:
    0 3px 0 #6d3108,
    0 0 25px rgba(255, 227, 82, 0.68);
}

.bonus-card small {
  margin-right: 5px;
  font-size: 0.78em;
}

.bonus-card em {
  position: absolute;
  right: -43px;
  bottom: 3px;
  color: #fff5bd;
  font-size: clamp(12px, 3vw, 15px);
  font-style: normal;
  font-weight: 1000;
  line-height: 1;
  text-shadow:
    0 2px 0 rgba(91, 43, 4, 0.75),
    0 0 12px rgba(255, 227, 82, 0.72);
  transform: rotate(-4deg);
}

.offer-panel {
  position: absolute;
  z-index: 6;
  left: 18px;
  right: 18px;
  bottom: 172px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(245, 194, 77, 0.55);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 38%),
    rgba(11, 10, 12, 0.8);
  box-shadow:
    inset 0 0 24px rgba(245, 194, 77, 0.09),
    0 16px 34px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(10px);
}

.offer-item {
  display: grid;
  min-height: 70px;
  place-items: center;
  align-content: center;
  padding: 7px 4px;
  text-align: center;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 0, rgba(245, 194, 77, 0.16), transparent 3.2rem),
    rgba(255, 255, 255, 0.06);
}

.offer-item > span {
  font-size: clamp(11px, 3vw, 14px);
  font-weight: 900;
  line-height: 1.05;
}

.offer-item strong {
  direction: ltr;
  color: var(--gold-light);
  font-size: clamp(18px, 5vw, 24px);
  font-weight: 1000;
  line-height: 0.96;
  text-shadow:
    0 2px 0 #5f2b07,
    0 0 18px rgba(255, 231, 89, 0.48);
}

.feature-dock {
  position: absolute;
  z-index: 7;
  left: 13px;
  right: 13px;
  bottom: 82px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 82px;
  overflow: hidden;
  border: 1px solid rgba(245, 194, 77, 0.6);
  border-radius: 17px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 36%),
    rgba(6, 58, 38, 0.86);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 10px 30px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
}

.feature-item {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
  align-content: center;
  gap: 2px;
  padding: 8px 3px 7px;
  text-align: center;
}

.feature-item + .feature-item {
  border-left: 1px solid rgba(255, 236, 151, 0.22);
}

.feature-item strong,
.feature-item em {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.62);
}

.feature-item strong {
  font-size: clamp(13px, 3.35vw, 16px);
  font-style: normal;
  font-weight: 1000;
  line-height: 1.02;
}

.feature-item em {
  color: #e8d8ae;
  font-size: clamp(10px, 2.6vw, 12px);
  font-style: normal;
  font-weight: 800;
  line-height: 1.02;
}

.feature-icon {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
  color: #fff7d0;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.34));
}

.gamepad {
  width: 34px;
  height: 22px;
  border: 5px solid currentColor;
  border-radius: 13px 13px 10px 10px;
}

.gamepad::before,
.gamepad::after {
  position: absolute;
  content: "";
  background: currentColor;
}

.gamepad::before {
  left: 5px;
  top: 5px;
  width: 11px;
  height: 4px;
  box-shadow: 3px -3px 0 -1px currentColor, 3px 3px 0 -1px currentColor;
}

.gamepad::after {
  right: 5px;
  top: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  box-shadow: 7px 4px 0 -1px currentColor;
}

.football {
  border: 4px solid currentColor;
  border-radius: 50%;
}

.football::before {
  position: absolute;
  inset: 7px;
  content: "";
  background: currentColor;
  clip-path: polygon(50% 0, 96% 35%, 79% 91%, 21% 91%, 4% 35%);
}

.cricket::before,
.cricket::after {
  position: absolute;
  content: "";
  background: currentColor;
}

.cricket::before {
  left: 12px;
  top: -1px;
  width: 8px;
  height: 31px;
  border-radius: 7px 7px 3px 3px;
  transform: rotate(42deg);
}

.cricket::after {
  right: 2px;
  bottom: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  box-shadow: inset 3px 0 0 rgba(6, 58, 38, 0.72);
}

.bolt {
  border: 4px solid currentColor;
  border-radius: 50%;
}

.bolt::before {
  position: absolute;
  left: 9px;
  top: 3px;
  width: 11px;
  height: 21px;
  content: "";
  background: currentColor;
  clip-path: polygon(45% 0, 100% 0, 64% 42%, 100% 42%, 34% 100%, 48% 55%, 8% 55%);
}

.trust-dock {
  position: absolute;
  z-index: 7;
  left: 16px;
  right: 16px;
  bottom: 62px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.trust-dock span {
  display: grid;
  min-height: 24px;
  place-items: center;
  padding: 0 4px;
  color: #ffeeb2;
  font-size: clamp(9px, 2.55vw, 12px);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  border: 1px solid rgba(245, 194, 77, 0.45);
  border-radius: 999px;
  background: rgba(5, 34, 24, 0.72);
  box-shadow: inset 0 0 12px rgba(245, 194, 77, 0.08);
  backdrop-filter: blur(7px);
}

.cta-area {
  position: absolute;
  z-index: 8;
  left: 26px;
  right: 26px;
  bottom: 12px;
}

.main-download {
  width: 100%;
  min-height: 56px;
  font-size: clamp(28px, 7.8vw, 38px);
}

@media (max-width: 390px) {
  .topbar {
    padding-inline: 12px;
  }

  .top-download {
    min-width: 122px;
    padding-inline: 20px;
  }

  .bonus-card {
    width: 72vw;
  }

  .offer-panel {
    left: 12px;
    right: 12px;
    bottom: 170px;
  }

  .feature-dock {
    left: 8px;
    right: 8px;
  }

  .cta-area {
    left: 20px;
    right: 20px;
  }
}

@media (max-width: 340px) {
  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 43px;
    height: 43px;
  }

  .brand strong {
    font-size: 15px;
  }

  .top-download {
    min-width: 112px;
    font-size: 14px;
  }

  .offer-item strong {
    font-size: 16px;
  }

  .feature-item strong {
    font-size: 12px;
  }
}

@media (min-width: 769px) {
  .phone-page {
    width: 480px;
    min-height: min(100vh, 900px);
    border: 1px solid rgba(245, 194, 77, 0.28);
    border-radius: 24px;
  }
}
