* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  width: 100%;     
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
canvas {
  display: block;
}

#hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  font-family: "Courier New", monospace;
  color: #aaf8f2;
  font-size: 15px;
}
.corner {
  position: absolute;
  width: 56px;
  height: 56px;
  border-color: #5bdbce;
  border-style: solid;
  opacity: 0.55;
}
.tl {
  top: 14px;
  left: 14px;
  border-width: 2px 0 0 2px;
}
.tr {
  top: 14px;
  right: 14px;
  border-width: 2px 2px 0 0;
}
.bl {
  bottom: 14px;
  left: 14px;
  border-width: 0 0 2px 2px;
}
.br {
  bottom: 14px;
  right: 14px;
  border-width: 0 2px 2px 0;
}
.hud-tl {
  position: absolute;
  top: 20px;
  left: 80px;
  line-height: 1.9;
  opacity: 0.7;
}
.hud-tr {
  position: absolute;
  top: 20px;
  right: 80px;
  text-align: right;
  line-height: 1.9;
  opacity: 0.7;
}
.hud-bc {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color:rgb(247, 247, 153);
  font-size: 18px;
  opacity: 0.7;
}
.hint {
  position: absolute;
  bottom: 20px;
  right: 80px;
  text-align: right;
  line-height: 2;
  opacity: 0.8;
}

@keyframes blink {
  0%, 100% {
    opacity: 0.35;
  } 50% {
    opacity: 1;
  }
}
.blink{
  animation: blink 2s ease-in-out infinite
}

/* CRT scanlines */
#crt {
  position: fixed; inset: 0; pointer-events: none; z-index: 10;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px, transparent 2px,
    rgba(0,0,0,0.05) 2px, rgba(0,0,0,0.02) 4px
  );
}