[hidden] { display: none !important; }

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

#tela {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

/* ?4k: backing store fixo em 3840x2160, a caixa CSS só encolhe pra caber na janela */
#tela.forcado { object-fit: contain; }

#pausa {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  gap: 0.6em;
  text-align: center;
  background: rgba(11, 10, 12, 0.55);
  color: #E9E4D6;
  font: 700 clamp(28px, 7vw, 96px)/1 ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: 0.2em;
  pointer-events: none;
}

#pausa small {
  font-size: clamp(12px, 1.4vw, 18px);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #BDB7A6;
}

#perf {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2;
  margin: 0;
  padding: 6px 8px;
  max-width: calc(100% - 32px);
  background: rgba(11, 10, 12, 0.82);
  color: #E9E4D6;
  font: 12px/1.4 ui-monospace, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  pointer-events: none;
}

#aviso, #sem-js {
  position: fixed;
  inset: 0;
  z-index: 3;
  margin: auto;
  width: min(36em, calc(100% - 32px));
  height: fit-content;
  box-sizing: border-box;
  padding: 1.25em 1.5em;
  background: #E9E4D6;
  color: #0B0A0C;
  box-shadow: 0 0 0 4px #C8202C;
  font: 16px/1.45 ui-monospace, Menlo, Consolas, monospace;
}
