:root {
  color-scheme: dark;
  background: #000;
  font-family: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  height: 100%;
  margin: 0;
  background: #000;
}

body {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

a,
iframe {
  font: inherit;
}

.demo-shell,
.loading-screen,
.entry-screen,
.video-screen {
  min-height: 100dvh;
  width: 100%;
}

.loading-screen,
.entry-screen,
.video-screen {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #000;
}

.loading-screen {
  z-index: 3;
  color: rgb(255 255 255 / 80%);
  text-align: center;
  transition: opacity 320ms ease-out, visibility 320ms ease-out;
}

.loading-screen p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.loading-dots {
  display: inline-flex;
  margin-left: 0.2em;
}

.loading-dots span {
  animation: loading-dot 1200ms steps(1, end) infinite;
  opacity: 0;
}

.loading-dots span:nth-child(2) {
  animation-delay: 200ms;
}

.loading-dots span:nth-child(3) {
  animation-delay: 400ms;
}

.entry-screen {
  z-index: 2;
  background: #000;
  opacity: 0;
  transition: opacity 300ms ease-out, visibility 300ms ease-out;
}

.enter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4rem;
  border: 2px solid #e2c48b;
  border-radius: 0.375rem;
  padding: 1.25rem 2.5rem;
  background: #14181d;
  color: #e2c48b;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-transform: uppercase;
  box-shadow: 0 10px 34px rgb(0 0 0 / 42%);
  animation: enter-pulse 1800ms ease-in-out infinite;
  text-decoration: none;
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.enter-button:hover {
  background: #1c2328;
  box-shadow: 0 12px 38px rgb(0 0 0 / 52%);
}

.enter-button:focus-visible {
  outline: 2px solid #e2c48b;
  outline-offset: 4px;
}

.video-screen {
  z-index: 1;
  padding: 0;
  opacity: 0;
  transition: opacity 300ms ease-out;
}

.video-frame,
.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-frame {
  background: #000;
}

.video-frame video {
  object-fit: contain;
  background: #000;
}

.screen-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.screen-visible {
  opacity: 1;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes enter-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

@keyframes loading-dot {
  0%, 20% { opacity: 0; }
  35%, 75% { opacity: 1; }
  90%, 100% { opacity: 0; }
}

@media (max-width: 767px) {
  .enter-button {
    min-height: 3.5rem;
    padding: 1rem 2rem;
    font-size: 0.875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-dots span,
  .enter-button {
    animation: none;
  }

  .loading-dots span {
    opacity: 1;
  }
}
