@font-face {
  font-family: "Arcade8x8ASCII";
  src: url("arcade_8x8_ascii_font.svg#Arcade8x8ASCII") format("svg");
}

:root {
  color-scheme: dark;
  --screen-green: #78ff70;
  --screen-amber: #ffd95c;
  --screen-red: #ff5959;
  --screen-cyan: #58e7ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  background: #050807;
  color: var(--screen-green);
  font-family: "Arcade8x8ASCII", monospace;
  overflow: hidden;
}

body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  user-select: none;
  touch-action: none;
}

.cabinet {
  width: min(100vw, 160vh);
  height: min(100vh, 62.5vw);
  width: min(100vw, 160dvh);
  height: min(100dvh, 62.5vw);
  display: grid;
  place-items: center;
  background: #050807;
}

.bezel {
  position: relative;
  width: 100%;
  height: 100%;
  background: #050606;
}

svg {
  display: block;
  width: 100%;
  height: 100%;
  background: #050807;
  image-rendering: pixelated;
  shape-rendering: crispEdges;
}

.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, .04) 0,
    rgba(255, 255, 255, .04) 1px,
    rgba(0, 0, 0, .08) 2px,
    rgba(0, 0, 0, .08) 4px
  );
  mix-blend-mode: screen;
  opacity: .45;
}
