:root { color-scheme: dark; }

html, body {
  margin: 0;
  height: 100%;
  background: #000;
  color: #f4f4f4;
  font: 18px/1.35 system-ui, sans-serif;
  overflow: hidden;
}

.stage {
  position: fixed;
  inset: 0;
  background: #000;
  overflow: hidden;
}

#player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#player iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw !important;
  height: 56.25vw !important;
  min-height: 100vh;
  min-width: 177.78vh !important;
  transform: translate(-50%, -50%);
  border: 0;
}

#slate, #toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  margin: 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #ccc;
  font-size: 14px;
  z-index: 2;
  pointer-events: none;
}

#toast { color: #ffb4a8; }

#gate {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 24px;
  margin: 0;
  text-align: center;
  background: #111;
}

#gate[hidden] { display: none; }

#gate h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

#gate input, #gate button {
  width: min(92vw, 420px);
  font: inherit;
  border-radius: 10px;
  border: 0;
  padding: 14px;
}

#gate input { background: #222; color: #fff; }
#gate button { background: #f0a202; color: #1a1203; font-weight: 700; cursor: pointer; }
#gate .hint { margin: 0; font-size: 13px; color: #999; }