* { box-sizing: border-box; }

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #050505;
  color: #fff;
  font-family: monospace;
}

#app {
  position: relative;
  width: 100%;
  height: 100%;
}

#stage {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  outline: none;
  touch-action: none;
}

#start-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: rgba(0, 0, 0, 0.9);
}

#start-overlay h1,
#start-overlay p {
  margin: 0;
}

#start-button {
  margin-top: 12px;
  padding: 12px 34px;
  border: 1px solid #fff;
  background: #111;
  color: #fff;
  font: bold 18px monospace;
  cursor: pointer;
}

#start-button:hover,
#start-button:focus-visible {
  background: #fff;
  color: #111;
  outline: 2px solid #fff;
  outline-offset: 3px;
}

#start-overlay.hidden {
  display: none;
}

body[data-narrator-phase="4"] #stage {
  animation: fracture 0.5s steps(2) infinite;
}

@keyframes fracture {
  50% { filter: contrast(1.08) brightness(0.94); }
}

input,
textarea,
select,
[contenteditable="true"] {
  display: none !important;
}
