:root {
  color-scheme: dark;
}

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

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  font-family: system-ui, sans-serif;
}

[hidden] {
  display: none !important;
}

.trailer-stage {
  position: fixed;
  inset: 0;
  display: grid;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  place-items: center;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}

.trailer-stage::after {
  position: absolute;
  inset: 0;
  z-index: 10;
  content: "";
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 560ms ease;
}

.is-ending .trailer-stage::after {
  opacity: 1;
}

.trailer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.start-button {
  position: relative;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 14rem;
  min-height: 3.6rem;
  padding: .9rem 1.4rem;
  border: 1px solid rgb(209 158 91 / .85);
  border-radius: .25rem;
  color: #f1d2a3;
  background: linear-gradient(180deg, rgb(45 37 28 / .96), rgb(16 15 14 / .98));
  box-shadow: 0 0 2rem rgb(196 127 48 / .22), inset 0 0 0 1px rgb(255 226 180 / .08);
  font: 700 1rem/1 system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.start-button:is(:hover, :focus-visible) {
  color: #ffe2b6;
  border-color: #e7b26b;
  background: linear-gradient(180deg, rgb(66 49 31 / .98), rgb(21 18 15 / .98));
  outline: none;
}

.start-button:active {
  transform: scale(.985);
}

.start-symbol {
  width: 0;
  height: 0;
  margin-right: .75rem;
  border-top: .5rem solid transparent;
  border-bottom: .5rem solid transparent;
  border-left: .8rem solid currentColor;
}

.video-error {
  position: relative;
  z-index: 6;
  padding: 1.5rem;
  color: #ead6b7;
  text-align: center;
}

.video-error p {
  margin: 0 0 1rem;
}

.video-error a {
  color: #e7b26b;
}

@media (prefers-reduced-motion: reduce) {
  .trailer-stage::after {
    transition-duration: .01ms;
  }
}
