html:has(body.broadcast) {
  height: 100%;
  overflow: hidden;
  background: #000;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body.broadcast {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #000;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  color: #ebe6da;
}

body.broadcast .crt {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #000;
  overflow: hidden;
}

body.broadcast canvas#screen {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  cursor: none; /* tylko kursor DOS na CRT */
  image-rendering: pixelated;
}

body.broadcast .fullbtn {
  position: fixed;
  z-index: 2;
  width: 28px;
  height: 28px;
  padding: 5px;
  border: 0;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  color: rgba(238, 236, 228, 0.55);
  cursor: pointer;
}
body.broadcast .fullbtn:hover,
body.broadcast .fullbtn:focus-visible {
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
}

.boom {
  position: fixed;
  z-index: 9;
  left: 8px;
  top: 8px;
  max-width: 90vw;
  padding: 8px;
  background: #300;
  color: #f88;
  white-space: pre-wrap;
  font: 12px/1.4 monospace;
}
