@import url('https://fonts.googleapis.com/css?family=IM+Fell+English|IM+Fell+English+SC&display=swap');

* {
  box-sizing: border-box;
}

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

html {
  height: 100%;
}

body.landing {
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  background-image: url('../images/Background.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  color: #919191;
  font-family: 'IM Fell English SC', 'IM Fell English', "Times New Roman", serif;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

@supports (background-attachment: fixed) {
  @media (min-width: 761px) {
    body.landing {
      background-attachment: fixed;
      background-position: top center;
    }
  }
}

.landing-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding:
    max(24px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
  text-align: center;
  animation: landing-fade 1.1s ease both;
}

.landing-enter {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: min(100%, 320px);
  padding: 12px;
  margin: 0;
  line-height: 0;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  border-radius: 0;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.landing-enter:hover,
.landing-enter:focus-visible {
  transform: scale(1.03);
  outline: none;
}

.landing-enter:focus-visible {
  border-color: #8a000c;
}

.landing-enter:active {
  transform: scale(0.98);
}

.landing-icon {
  display: block;
  width: min(280px, 58vw);
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid #8a000c;
  background: #000;
  transition: border-color 0.35s ease;
}

.landing-enter:hover .landing-icon,
.landing-enter:focus-visible .landing-icon,
.landing-enter:active .landing-icon {
  border-color: #d30a0a;
}

.landing-hint {
  display: block;
  margin: 0;
  padding: 10px 16px;
  min-height: 44px;
  line-height: 24px;
  color: #777;
  font-size: 12px;
  letter-spacing: 0.28em;
  opacity: 0;
  animation: landing-hint 0.8s ease 0.7s both;
  transition: color 0.25s ease;
}

.landing-enter:hover .landing-hint,
.landing-enter:focus-visible .landing-hint,
.landing-enter:active .landing-hint {
  color: #dadada;
}

@keyframes landing-fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes landing-hint {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Phones */
@media (max-width: 760px) {
  body.landing {
    background-attachment: scroll;
    background-position: center top;
  }

  .landing-enter {
    width: min(100%, 300px);
    gap: 16px;
    padding: 16px;
  }

  .landing-icon {
    width: min(240px, 72vw);
  }

  .landing-hint {
    font-size: 11px;
    letter-spacing: 0.22em;
    min-height: 48px;
    line-height: 28px;
    padding: 10px 12px;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .landing-icon {
    width: min(200px, 78vw);
  }

  .landing-hint {
    font-size: 10px;
    letter-spacing: 0.18em;
  }
}

/* Short landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .landing-stage {
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .landing-enter {
    flex-direction: row;
    gap: 20px;
    width: auto;
    max-width: 92vw;
  }

  .landing-icon {
    width: min(140px, 28vh, 40vw);
  }

  .landing-hint {
    min-height: 0;
    padding: 8px 0;
    line-height: 1.2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-stage,
  .landing-hint,
  .landing-enter,
  .landing-icon {
    animation: none;
    transition: none;
  }

  .landing-hint {
    opacity: 1;
  }

  .landing-enter:hover,
  .landing-enter:focus-visible,
  .landing-enter:active {
    transform: none;
  }
}
