@font-face {
  font-family: 'Perfect DOS VGA 437';
  src: url('/doom/fonts/Perfect%20DOS%20VGA%20437.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: 'Perfect DOS VGA 437', monospace;
  font-size: 16px;
  line-height: 1.25;
  --bg: blue;
  --text: white;
  --meta: white;
  --panel: #000;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

body {
  min-height: 100vh;
  overflow: hidden;
}

a,
button {
  color: inherit;
}

button {
  appearance: none;
  border: 1px solid #001b1b;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: inherit;
  min-height: 44px;
  padding: 0 14px;
}

.button-primary {
  background: #000;
  color: white;
}

.button-secondary {
  background: transparent;
  color: white;
  border-color: white;
}

canvas {
  display: block;
}

.play-shell {
  width: 100vw;
  min-height: 100vh;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  padding: 12px 0 0;
  background: var(--bg);
}

.play-meta {
  width: min(100vw, calc((100vh - 240px) * 4 / 3));
  margin: 0;
  color: var(--meta);
  font: inherit;
  display: grid;
  gap: 0;
}

.play-line {
  display: block;
  font-weight: 700;
  color: white;
}

.play-status,
.play-actions {
  width: min(100vw, calc((100vh - 240px) * 4 / 3));
  color: white;
  font: inherit;
}

.play-status {
  font-weight: 700;
}

.play-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  width: min(100vw, calc((100vh - 240px) * 4 / 3));
  background: var(--panel);
  box-shadow: 2rem 2rem 0 black;
}

.doom-canvas {
  width: 100%;
  height: 100%;
  background: #000;
  outline: none;
}

.focus-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.55);
  text-align: center;
  color: white;
  transition: opacity 120ms ease;
  z-index: 1;
}

.focus-overlay[data-visible='false'] {
  opacity: 0;
  pointer-events: none;
}

.play-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
