html, body {
  height: auto;
  min-height: 100%;
  overflow: visible;
  background: #10050b;
}

main {
  --landing-edge: max(24px, env(safe-area-inset-left), env(safe-area-inset-right));
  display: block;
  height: auto;
  padding: 0 0 max(24px, env(safe-area-inset-bottom));
}

.landing-hero {
  display: grid;
  justify-items: center;
  padding-inline: max(env(safe-area-inset-left), env(safe-area-inset-right));
  background: #060306;
}

.landing-hero .landing-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.landing-video-player {
  position: relative;
  width: min(100%, 1120px);
  width: min(100%, 1120px, calc(72dvh * 16 / 9));
}

.landing-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
}

.landing-video:focus-visible {
  outline: 2px solid #ffcfab;
  outline-offset: -2px;
}

main > nav, .install-note, .install-guides {
  width: min(1040px, calc(100% - var(--landing-edge) - var(--landing-edge)));
  margin-inline: auto;
}

main > nav { margin-top: 12px; }

.install-note {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  column-gap: clamp(10px, 2vw, 28px);
  align-items: center;
  margin-top: clamp(24px, 3vw, 36px);
  padding: clamp(16px, 2.7vw, 36px) clamp(20px, 4vw, 60px);
  border: 1px solid #78404a;
  border-radius: 7px;
  background:
    radial-gradient(ellipse at 84% 76%, #882c386b, transparent 47%),
    linear-gradient(122deg, #251119, #140a10 58%, #2e121a);
  box-shadow: inset 0 1px #eeab8e23, 0 9px 28px #0004;
}

.install-copy {
  padding-block: 14px;
}

.install-note h2 {
  max-width: 18ch;
  margin: 0;
  color: #ff635c;
  font: clamp(23px, 3.5vw, 47px)/1.09 LegendsMetal, Arial, sans-serif;
  text-shadow: 0 2px #270811;
}

.install-copy p {
  max-width: 37ch;
  margin: 16px 0 0;
  color: #f7ddd9;
  font: clamp(17px, 1.7vw, 22px)/1.45 Arial, sans-serif;
}

.install-copy a {
  color: #ffd5b3;
  font-weight: 700;
  text-underline-offset: .2em;
}

.install-preview {
  position: relative;
  width: 100%;
  max-width: 450px;
  margin-inline: auto;
  pointer-events: none;
}

.install-phone-crop {
  aspect-ratio: 2 / 1;
  overflow: hidden;
  mask-image: linear-gradient(#000 90%, transparent);
}

.install-phone {
  display: block;
  width: 90%;
  height: auto;
  filter: drop-shadow(0 10px 12px #0a0208aa);
}

.install-app-icon {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  width: clamp(83px, 32%, 128px);
  padding: clamp(8px, 2.8%, 13px);
  border: 1px solid #bd7f78;
  border-radius: 15%;
  background: radial-gradient(ellipse at 55% 30%, #6a272d, #25101a 72%);
  box-shadow: inset 0 0 0 3px #160a0e, 5px 5px 0 #10050b, 0 11px 24px #0a0107ab;
  transform: rotate(-8deg);
}

.install-app-icon img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 23%;
  box-shadow: 0 7px 17px #0d0309a3, 0 0 0 1px #ffbf9c5f;
}

.install-app-icon span {
  color: #ffede4;
  font: 600 clamp(9px, .88vw, 12px)/1.25 Arial, sans-serif;
  text-align: center;
}

.install-guides { margin-top: clamp(30px, 4vw, 56px); }

.install-guide + .install-guide { margin-top: clamp(32px, 4vw, 56px); }

.install-guide h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 17px;
  padding-block: 0 12px;
  border-bottom: 1px solid #78404a;
  color: #ffe8dc;
  font: clamp(21px, 2.3vw, 31px)/1.2 LegendsMetal, Arial, sans-serif;
  scroll-margin-top: max(24px, env(safe-area-inset-top));
}

.install-guide h3:target { border-color: #ff766d; }

.install-guide h3 img {
  object-fit: contain;
  filter: brightness(0) invert(.95);
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-step;
}

.guide-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-increment: guide-step;
}

.guide-caption {
  position: relative;
  flex: 1;
  padding-inline-start: 31px;
}

.guide-caption::before {
  content: counter(guide-step, decimal-leading-zero);
  position: absolute;
  inset: 1px auto auto 0;
  color: #ff8379;
  font: 14px/1.2 LegendsMetal, Arial, sans-serif;
}

.guide-caption strong { color: #ffe6dc; font-size: 17px; }

.guide-caption p {
  margin: 5px 0 0;
  color: #e3c9c7;
  font: 15px/1.45 Arial, sans-serif;
}

.guide-step > img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin-inline: auto;
  border: 1px solid #78404a;
  border-radius: 7px;
  background: #ece0df;
}

.landing-footer {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(1040px, calc(100% - 2 * max(24px, env(safe-area-inset-left), env(safe-area-inset-right))));
  margin: clamp(14px, 3vw, 38px) auto 0;
  padding: clamp(28px, 5vw, 64px) 0 max(34px, env(safe-area-inset-bottom));
  border-top: 1px solid #78404a;
  background: radial-gradient(ellipse at 50% 46%, #66272a30, transparent 62%);
}

.dojo-logo {
  display: block;
  width: clamp(176px, 25vw, 260px);
  border-radius: 50%;
}

.dojo-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.dojo-socials {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.dojo-socials a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #965a61;
  border-radius: 50%;
  background: #25121b;
  color: #ffe9dd;
}

.dojo-socials svg { width: 23px; height: 23px; }

.landing-footer a:focus-visible { outline: 2px solid #ffcfab; outline-offset: 4px; }

@media (hover: hover) and (pointer: fine) {
  .dojo-socials a:hover { border-color: #ffd5b3; background: #47212c; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .dojo-socials a { transition: border-color .16s ease-out, background-color .16s ease-out; }
}

@media (max-width: 760px) {
  .guide-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) and (orientation: portrait) {
  .install-note, .install-guides { width: min(340px, 88vw); }

  .install-note {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 20px 17px 18px;
  }

  .install-copy { padding-block: 0; }
  .install-note h2 { font-size: clamp(23px, 6.4vw, 30px); }
  .install-copy p { margin-top: 12px; }
  .install-phone { width: 88%; }
  .guide-caption { padding-inline-start: 25px; }
  .guide-caption::before { font-size: 11px; }
}

@media (max-width: 640px) and (max-height: 480px) and (orientation: landscape) {
  main > nav { flex-wrap: wrap; gap: 9px; }
  main > nav .access { gap: 8px; padding-inline: 8px; }
}
