:root {
  color-scheme: dark;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #000;
  transition: background-color 0.05s ease;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.image-container {
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.image-container img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.1s ease;
  opacity: 1;
  transform-origin: center;
  display: block;
}

.center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
  flex-wrap: nowrap;
  font-family: "Courier New", Courier, monospace;
  font-size: var(--line-font-size, 8vw);
  max-width: none;
  pointer-events: none;
  z-index: 2;
}

.center-text.is-portrait {
  transform: translate(-50%, -50%) rotate(90deg);
}

.center-text__word {
  display: inline-flex;
  gap: 0.05em;
  align-items: center;
}

.center-text__word + .center-text__word {
  margin-left: 0.5em;
}

.center-text__letter {
  display: inline-block;
  font-size: 1em;
  line-height: 1;
}

.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: clamp(24px, 6vw, 48px);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 999999;
  cursor: pointer;
}

.word-scroll {
  position: absolute;
  bottom: 5vh;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(18px, 3vw, 32px);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  z-index: 3;
}

.hidden {
  display: none !important;
}

#wakelock-video {
  position: fixed;
  top: 0;
  left: -9999px;
  width: 320px;
  height: 180px;
  z-index: -1;
}
