/* MooLight landing — black canvas, one red accent, system type (Apple-style restraint) */
:root {
  --bg: #0a0a0a;
  --bg-elevated: #121212;
  --surface: #161616;
  --t1: #fafafa;
  --t2: #a3a3a3;
  --t3: #737373;
  --brand: #ff2d31;
  --brand4: #ff4747;
  --card: #141418;
  --card-line: rgba(255, 255, 255, 0.09);
  --brand-deep: #c41e22;
  --gold: #e8c37a;
  --b1: rgba(255, 255, 255, 0.08);
  --b2: rgba(255, 255, 255, 0.14);
  --ov: rgba(0, 0, 0, 0.78);
  --glass: rgba(18, 18, 18, 0.88);
  --grad-brand: linear-gradient(180deg, #ff5c5c 0%, #ff2d31 55%, #c41e22 100%);
  --grad-hero-mobile: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.05) 18%,
    rgba(10, 10, 10, 0.45) 58%,
    rgba(10, 10, 10, 0.88) 82%,
    #0a0a0a 100%
  );
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  /* Apple marketing-page curve: quick start, long soft landing */
  --ease-apple: cubic-bezier(0.28, 0.11, 0.32, 1);
  --radius: 12px;
  --zh: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC", "PingFang SC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  /* Headlines: same family as body, hierarchy comes from size and weight */
  --display: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang TC", "PingFang SC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --t-soft: rgba(255, 255, 255, 0.72);
  --t-faint: rgba(255, 255, 255, 0.5);
  --hairline: rgba(255, 255, 255, 0.12);
  --material: rgba(30, 30, 32, 0.55);
  --en: Inter, "SF Pro Display", -apple-system, system-ui, sans-serif;
  --accent: var(--brand4);
  --accent-hot: var(--brand);
  --accent-soft: rgba(255, 45, 49, 0.22);
  --fg: var(--t1);
  --fg-muted: var(--t2);
  --line: var(--b1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  position: relative;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  color: var(--t1);
  font-family: var(--zh);
  font-weight: 400;
  -webkit-tap-highlight-color: transparent;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

button {
  margin: 0;
  padding: 0;
  border: 0;
  background-color: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

@media (hover: hover) {
  a:hover,
  button:hover {
    opacity: 0.9;
  }
}

.show-on-desktop {
  display: block;
}

.show-on-mobile {
  display: none;
}

.main {
  position: relative;
  background: var(--bg);
}

/* —— Brand copy —— */
.brand-copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 440px;
  padding: 0 16px;
  animation: brand-in 1s var(--ease-apple) 0.08s both;
}

.brand-copy__eyebrow,
.kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--t-faint);
  font-weight: 600;
}

.brand-copy__title {
  font-family: var(--display);
  font-size: clamp(44px, 4.6vw, 68px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--t1);
}

.brand-copy__sub {
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  color: var(--t-soft);
  max-width: 340px;
}

.brand-copy--mobile {
  align-items: flex-start;
  max-width: none;
  padding: 0;
  text-align: left;
}

.brand-copy--mobile .brand-copy__title {
  /* ~42px on a 390px phone, never wider than 5 CJK glyphs per line allows */
  font-size: clamp(36px, 10.8vw, 46px);
  line-height: 1.4;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

/* Latin copy runs longer per line than CJK — keep headlines from wrapping into 3+ lines */
html[lang="en"] .brand-copy__title {
  font-size: clamp(36px, 3.4vw, 52px);
  letter-spacing: -0.025em;
}

html[lang="en"] .brand-copy--mobile .brand-copy__title {
  font-size: clamp(30px, 8.9vw, 40px);
}

/* —— Language toggle (zh ⇄ en) —— */
.lang-toggle {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top, 0px));
  right: 18px;
  z-index: 999;
  min-width: 74px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(180deg, rgba(168, 58, 62, 0.82), rgba(108, 30, 36, 0.82));
  color: var(--t1);
  font-family: var(--en);
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.25s var(--ease-apple);
}

.lang-toggle:active {
  transform: scale(0.94);
}

/* —— Desktop —— */
@media (min-width: 1024px) {
  .lang-toggle {
    top: 44px;
    right: 60px;
    min-width: 65px;
    height: 28px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(40, 22, 24, 0.5);
  }
}

.main-desktop {
  position: relative;
  display: flex;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 720px;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 0% 0%, rgba(62, 14, 66, 0.55), transparent 70%),
    radial-gradient(70% 50% at 30% 100%, rgba(66, 10, 16, 0.55), transparent 70%),
    #0c0c0f;
}

.main-desktop__promotion {
  position: relative;
  z-index: 2;
  width: 46%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 0 0 7.8vw;
}

.main-desktop__promotion--content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.main-desktop__promotion--logo {
  width: clamp(200px, 18.8vw, 300px);
  height: auto;
  margin-bottom: clamp(36px, 4.2vw, 64px);
  animation: brand-in 0.9s var(--ease-apple) both;
}

.main-desktop .brand-copy {
  align-items: flex-start;
  gap: clamp(20px, 2.8vw, 40px);
  max-width: none;
  padding: 0;
  text-align: left;
}

.main-desktop .brand-copy__title {
  font-size: clamp(36px, 3.5vw, 57px);
  line-height: 1.2;
}

html[lang="en"] .main-desktop .brand-copy__title {
  font-size: clamp(36px, 3.5vw, 57px);
  letter-spacing: -0.02em;
}

.main-desktop .brand-copy__sub {
  max-width: none;
  font-size: clamp(14px, 1.14vw, 18px);
  line-height: 1.3;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.6);
}

/* Glass card: QR on the left, copy and highlights on the right */
.main-desktop__promotion--qrcode {
  display: flex;
  align-items: center;
  gap: 22px;
  width: clamp(430px, 34.3vw, 540px);
  margin-top: clamp(40px, 4.8vw, 70px);
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
  animation: brand-in 1s var(--ease) 0.16s both;
}

.qr-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.qr-card__title {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}

.sell-points--desktop {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 4px;
}

.sell-points--desktop .sell-points__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: #fff;
}

.sell-points__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand4);
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes brand-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-ken {
  from { transform: scale(1.04); }
  to { transform: scale(1); }
}

.main-desktop__promotion--qrcode-loading {
  animation: rotate 2s linear infinite;
  display: block;
  width: 40px;
  height: 40px;
  margin: 38px;
}

.main-desktop__promotion--qrcode-container {
  display: none;
  flex: none;
}

.main-desktop__promotion--qrcode-wrapper {
  width: 116px;
  height: 116px;
  padding: 10px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.55);
}

/* The code is generated at 2x for crisp edges, shown at the wrapper size */
.main-desktop__promotion--qrcode-wrapper #qrcode,
.main-desktop__promotion--qrcode-wrapper #qrcode img,
.main-desktop__promotion--qrcode-wrapper #qrcode canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.qrcode-hint {
  max-width: 12.5em;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
}

.desktop-footer {
  position: absolute;
  left: 7.8vw;
  bottom: clamp(40px, 6.2vw, 90px);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.3);
}

.desktop-footer__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.main-desktop__bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  overflow: hidden;
  /* Fade into the page background so the glow behind the copy stays intact */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 16%, #000 42%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 16%, #000 42%);
}

.main-desktop__bg--cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-position: right center;
  object-fit: cover;
  animation: hero-ken 1.8s var(--ease-apple) both;
}

/* Hero video sits over the image and only fades in once it is really playing */
video.hero-video {
  opacity: 0;
  animation: none;
  pointer-events: none;
  transition: opacity 1s var(--ease-apple);
}

video.hero-video.is-playing {
  opacity: 1;
}

/* Hot-drama covers row on a frosted material; tap a cover to jump the hero carousel to its clip */
.hero-covers[hidden] {
  display: none;
}

.hero-covers {
  width: 100%;
  animation: brand-in 1.1s var(--ease-apple) 0.16s both;
}

.hero-covers__label {
  margin-bottom: 10px;
  font-size: 12px;
}

.hero-covers__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(30, 30, 32, 0.72);
  border: 0.5px solid var(--hairline);
}

.hero-covers__item {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  appearance: none;
  /* Keeps rounded corners clipping the image during the scale transition in Safari */
  isolation: isolate;
  transition: transform 0.5s var(--ease-apple), opacity 0.5s var(--ease-apple);
}

button.hero-covers__item {
  cursor: pointer;
  opacity: 0.45;
  transform: scale(0.92);
}

button.hero-covers__item:active {
  transform: scale(0.88);
}

.hero-covers__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button.hero-covers__item.is-active {
  opacity: 1;
  transform: scale(1);
}

/* Playback progress of the active clip, driven by --progress (0..1) */
.hero-covers__progress {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.4s var(--ease-apple);
}

.hero-covers__progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform-origin: left center;
  transform: scaleX(var(--progress, 0));
}

.hero-covers__item.is-active .hero-covers__progress {
  opacity: 1;
}

.hero-covers__title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 4px 12px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.6));
}

.hero-covers--mobile {
  max-width: 400px;
  padding: 0 16px;
  text-align: center;
}

/* The desktop design has no covers row */
.hero-covers--desktop {
  display: none;
}

.main-desktop__bg--gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(0deg, rgba(30, 8, 12, 0.7) 0%, rgba(30, 8, 12, 0) 26%);
  pointer-events: none;
}

.main-desktop__bg--vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.main-mobile__shadow {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 9;
  width: 100%;
  height: 180px;
  pointer-events: none;
  display: none;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 14%, #0a0a0a 48%);
  transition: opacity 0.3s var(--ease);
}

@media only screen and (max-width: 1023px) {
  .show-on-desktop {
    display: none;
  }

  .show-on-mobile {
    display: block;
  }

  .main-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    background-color: var(--bg);
    overflow: hidden;
  }

  .main-mobile__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
  }

  .main-mobile__bg--cover {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-position: top center;
    object-fit: cover;
    animation: hero-ken 1.35s var(--ease) both;
  }

  /* Clips are cropped to the top 600px (the subtitle band sits below); they fill the upper part
     of the hero and fade into the dark area behind the copy */
  .main-mobile__bg video.main-mobile__bg--cover {
    bottom: auto;
    height: 66%;
    -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent);
    mask-image: linear-gradient(180deg, #000 74%, transparent);
  }

  .main-mobile__bg img.main-mobile__bg--cover {
    transition: opacity 0.8s var(--ease-apple);
  }

  /* Once a clip plays, the poster steps aside so it does not show through the fade */
  .main-mobile__bg:has(.hero-video.is-playing) img.main-mobile__bg--cover {
    opacity: 0;
  }

  .main-mobile__gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--grad-hero-mobile);
    pointer-events: none;
  }

  .main-mobile__promotion {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 0 18px;
    margin-bottom: 8px;
    z-index: 10;
    width: 100%;
    animation: brand-in 1s var(--ease-apple) both;
  }

  .main-mobile__logo {
    width: 164px;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.35));
  }

  /* H5 design has no covers row in the hero; swiping the hero still switches clips */
  .hero-covers--mobile {
    display: none;
  }

  .main-mobile__cta-container {
    height: 120px;
    width: 100%;
  }

  .main-mobile__cta {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    left: 0;
    bottom: 0;
    z-index: 1000;
    position: fixed;
    padding: 24px 18px calc(16px + env(safe-area-inset-bottom, 0px));
    background: transparent;
  }

  /* Gradient under the bar fades in on scroll (opacity only, no layout) */
  .main-mobile__cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0) 10%, #0a0a0a 45%);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    pointer-events: none;
  }

  .is-scrolled .main-mobile__cta::before {
    opacity: 1;
  }

  .main-mobile__shadow {
    display: block;
    opacity: 0;
  }

  .is-scrolled .main-mobile__shadow {
    opacity: 1;
  }

  .main-mobile__button {
    width: 100%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
  }

  .main-mobile__cta--loading-container {
    position: relative;
    width: 100%;
    max-width: 420px;
  }

  .main-mobile__cta--loading {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    animation: rotate 2s linear infinite;
    display: none;
  }

  .main-mobile__cta--btn {
    width: 100%;
  }

  .cta-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 10px;
    min-height: 54px;
    padding: 14px 24px;
    border-radius: 999px;
    background: var(--brand4);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: transform 0.25s var(--ease-apple), background-color 0.25s var(--ease-apple);
  }

  .main-mobile__button:active .cta-pill {
    transform: scale(0.97);
    background: var(--brand-deep);
  }

  .cta-pill--dark {
    border-radius: 999px;
  }

  .cta-pill__icon {
    flex: none;
  }

  .cta-link,
  .main-mobile__cta--notice {
    display: inline-flex;
    align-items: center;
    margin-top: 4px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    background: transparent;
  }

  /* Chevron pointing down at the guide below */
  .cta-link::after,
  .main-mobile__cta--notice::after {
    content: "";
    width: 7px;
    height: 7px;
    margin: -3px 0 0 9px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
  }

  .footer {
    width: 100%;
    background-color: var(--bg);
    text-align: center;
    padding: 40px 24px 160px;
  }

  .footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .footer__logo {
    width: 122px;
  }

  .footer__tag {
    font-size: 12px;
    color: var(--t2);
  }

  .footer__copy {
    font-size: 10px;
    color: var(--t3);
  }

  .modal {
    position: fixed;
    inset: 0;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  }

  .modal.show {
    opacity: 1;
    visibility: visible;
  }

  .modal__backdrop {
    position: absolute;
    inset: 0;
    background: var(--ov);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
  }

  .modal.show .modal__backdrop {
    opacity: 1;
  }

  .modal__content {
    position: absolute;
    border-radius: 16px;
    background: #161616;
    color: var(--t1);
    border: 1px solid var(--b1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.94);
    width: min(320px, calc(100vw - 40px));
    padding: 28px 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 0;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  }

  .modal.show .modal__content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  .modal__content--body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }

  .modal-brand {
    width: 150px;
    margin-bottom: 4px;
  }

  .modal-title {
    font-family: var(--display);
    font-size: 20px;
    font-weight: 700;
  }

  .modal-desc {
    font-size: 13px;
    color: var(--t2);
  }

  .modal__content--button {
    width: 100%;
    border: none;
    border-radius: 999px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 54px;
    background: transparent;
  }

  .modal__content--button.is-countdown {
    cursor: wait;
  }

  .modal__content--button.is-countdown .modal-countdown-label {
    opacity: 0.85;
  }

  .modal__content--button--text--container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .modal-countdown-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--t1);
  }

  .modal__content--button--text--loading {
    animation: rotate 2s linear infinite;
    width: 18px;
    height: 18px;
    filter: invert(1) brightness(1.4);
  }

  .modal__content--button--container {
    position: relative;
    display: none;
    width: 100%;
  }

  .modal__content--footer {
    position: relative;
  }

  .modal__content--loading {
    animation: rotate 2s linear infinite;
    display: none;
    height: 18px;
    width: 18px;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
  }

  .modal__progress {
    display: none;
    width: 100%;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -18px;
    padding: 0 2px;
    pointer-events: none;
    z-index: 2;
  }

  .modal__progress--bar-wrap {
    width: 100%;
    height: 4px;
    background: #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
  }

  .modal__progress--bar {
    width: 0%;
    height: 100%;
    background: var(--grad-brand);
    transition: width 0.2s var(--ease);
  }

  .modal__progress--text {
    display: none;
  }

  .modal-error {
    position: fixed;
    inset: 0;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  }

  .modal-error.show {
    opacity: 1;
    visibility: visible;
  }

  .modal-error__backdrop {
    position: absolute;
    inset: 0;
    background: var(--ov);
  }

  .modal-error__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(320px, calc(100vw - 40px));
    background: #161616;
    border: 1px solid var(--b1);
    border-radius: 16px;
    padding: 28px 24px;
  }

  .modal-error__content--body {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .modal-error__lead {
    font-family: var(--display);
    font-size: 18px;
    font-weight: 700;
  }

  .modal-error__text {
    font-size: 13px;
    color: var(--t2);
    line-height: 1.55;
  }

  .modal-error__content--button {
    width: 100%;
    margin-top: 8px;
  }

  .modal-error__content--button--img {
    width: 100%;
  }

  .sell-strip {
    background: var(--bg);
    padding: 6px 18px 32px;
  }

  /* Three cards with an icon badge */
  .sell-points {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    max-width: 420px;
    margin: 0 auto;
    padding: 0;
  }

  .sell-points__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
    padding: 15px 4px 16px;
    border-radius: 16px;
    border: 1px solid var(--card-line);
    background: var(--card);
  }

  .sell-points__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 6px;
  }

  .sell-points__item strong {
    font-family: var(--display);
    font-size: 11.2px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--t1);
  }

  .sell-points__item span {
    font-size: 10px;
    line-height: 1.3;
    color: #8b8b95;
  }

  .main-mobile__install-guide {
    background-color: var(--bg);
  }

  .guide-head {
    width: 100%;
    max-width: 420px;
    padding: 0 18px;
    margin-bottom: 18px;
  }

  .guide-head__kicker {
    margin-bottom: 18px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand4);
  }

  .guide-head__title {
    font-family: var(--display);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -0.02em;
  }

  .main-mobile__install-guide--content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .guide-brand-picker {
    width: 100%;
    max-width: 420px;
    padding: 0 18px 12px;
  }

  .guide-brand-picker__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
  }

  .guide-brand-picker__title {
    font-family: var(--display);
    font-size: 14px;
    font-weight: 600;
  }

  .guide-brand-picker__guess {
    font-size: 11px;
    color: var(--t3);
    white-space: nowrap;
  }

  .guide-brand-chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .brand-chip {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #17171b;
    color: var(--t1);
    font-size: 14px;
    font-weight: 600;
    height: 36px;
    padding: 0 8px;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
  }

  .brand-chip.is-active {
    color: #fff;
    background: var(--brand4);
    border-color: transparent;
  }

  .guide-brand-picker__tip {
    margin-top: 12px;
    font-size: 11.5px;
    color: #9a9aa3;
  }

  .guide-brand-picker__switch {
    appearance: none;
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    color: var(--t1);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
  }

  .guide-brand-chips[hidden] {
    display: none;
  }

  .main-mobile__install-guide--content--wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 420px;
    margin: 8px 0 48px;
    padding: 0 18px;
    width: 100%;
  }

  #guide-android-steps {
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .main-mobile__install-guide--content--img {
    width: 100%;
    height: auto;
  }

  .step-arrow {
    display: flex;
    justify-content: center;
    padding: 14px 0;
    color: var(--brand4);
  }

  /* Android steps: HTML cards with a mock settings screen */
  .step-card {
    padding: 20px 20px 22px;
    border-radius: 24px;
    border: 1px solid var(--card-line);
    background: #1a1a1e;
  }

  .step-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .step-card__num {
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand4);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
  }

  .step-card__title {
    font-family: var(--display);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    padding-right: 10px;
  }

  .step-card__body,
  .step-card__line {
    font-size: 12px;
    line-height: 1.6;
    color: #a1a1aa;
  }

  .step-card__body {
    margin-top: 16px;
  }

  .step-card__line {
    margin-top: 18px;
  }

  .step-card__line b {
    margin-right: 8px;
    font-weight: 600;
    color: var(--brand4);
  }

  .step-card__line small {
    font-size: 10px;
  }

  .mock {
    width: calc(100% - 28px);
    margin: 16px auto 0;
    border-radius: 14px;
    background: #fff;
    color: #555;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  }

  .mock__bar {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    padding: 0 14px;
    border-radius: 14px 14px 0 0;
    background: #efeff1;
    font-size: 13px;
    color: #111;
  }

  .mock__bar svg,
  .mock__chev {
    color: #b4b4b9;
  }

  .mock__row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 10px 8px 14px;
    font-size: 12px;
  }

  .mock__row + .mock__row:not(.mock__row--hot) {
    border-top: 1px solid #efeff1;
  }

  .mock__text {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
  }

  .mock__sub,
  .mock__hint {
    font-size: 9.5px;
    color: #b4b4b9;
  }

  .mock__chev {
    flex: none;
    margin-left: auto;
  }

  .mock__hint + .mock__chev {
    margin-left: 0;
  }

  .mock__label {
    white-space: nowrap;
  }

  .mock__hint {
    flex: 0 1 auto;
    min-width: 0;
    margin-left: auto;
    font-size: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Highlighted row pops out wider than the screen */
  .mock__row--hot {
    position: relative;
    z-index: 1;
    margin: 4px -14px;
    min-height: 44px;
    padding: 8px 10px 8px 14px;
    border: 1px solid var(--brand4);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
    font-size: 14px;
    color: #444;
  }

  .mock__nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 38px;
    border-top: 1px solid #efeff1;
  }

  .mock__nav i {
    width: 12px;
    height: 12px;
    border: 1.5px solid #cfcfd4;
    border-radius: 3px;
  }

  .ios-step {
    display: none;
  }

  .apk-step {
    display: block;
  }

  .main-mobile__install-guide--go-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: fixed;
    right: 16px;
    bottom: 96px;
    z-index: 1001;
    pointer-events: none;
  }

  .main-mobile__install-guide--go-top--img,
  .go-top-btn {
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--b1);
    color: var(--t1);
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
  }

  .is-scrolled .go-top-btn {
    opacity: 1;
    visibility: visible;
  }
}
