:root {
  --black: #0a0908;
  --gold: #c9a24b;
  --gold-dim: #8a7238;
  --ink: #efe6d0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--black);
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
}

.stage {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding-top: max(0.8rem, env(safe-area-inset-top, 0px));
  padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  padding-bottom: max(0.8rem, env(safe-area-inset-bottom, 0px));
  padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
}

.status {
  flex-shrink: 0;
  font-family: "Cinzel", serif;
  font-size: clamp(0.58rem, 2.4vw, 0.68rem);
  letter-spacing: 0.38em;
  text-indent: 0.38em;
  color: var(--gold-dim);
  text-transform: uppercase;
  text-align: center;
}

.poster {
  display: block;
  width: auto;
  height: auto;
  max-width: min(86vw, 26.5rem);
  max-height: min(68vh, 38rem);
  max-height: min(68dvh, 38rem);
  object-fit: contain;
  object-position: center;
}

.error-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8vh 6vw;
  text-align: center;
}

.error-page h1 {
  font-family: "Cinzel", serif;
  color: var(--gold);
  letter-spacing: 0.18em;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.error-page p {
  color: rgba(239, 230, 208, 0.7);
  line-height: 1.6;
}

@media (max-width: 480px) {
  .status {
    letter-spacing: 0.28em;
    text-indent: 0.28em;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .stage {
    gap: 0.35rem;
  }

  .poster {
    max-width: min(48vw, 22rem);
    max-height: min(78dvh, 28rem);
  }
}
