@font-face {
  font-family: Tiny5;
  src: url('./Tiny5.woff2') format('woff2');
  font-display: swap;
}
:root {
  color-scheme: dark;
  color: #e8ecf6;
  background: #0a1226;
  font-family: Tiny5, monospace;
}
html, body, #console, canvas {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}
#console {
  position: relative;
  background: #0a1226;
}
canvas {
  display: block;
  outline: none;
}
[hidden] {
  display: none !important;
}
#poster, #loading {
  position: absolute;
  inset: 0;
  display: grid;
  margin: 0;
  place-items: center;
  text-align: center;
}
#loading {
  pointer-events: none;
  font-size: 1.4rem;
}
#poster {
  overflow: auto;
  background:
    repeating-linear-gradient(0deg, transparent 0 9px, #f5c51819 9px 15px, transparent 15px 24px),
    repeating-linear-gradient(90deg, transparent 0 9px, #0006 9px 15px, transparent 15px 24px);
}
.poster-card {
  box-sizing: border-box;
  width: min(calc(100% - 2rem), 34rem);
  padding: clamp(1rem, 5vw, 2.75rem) 1rem;
  border: 2px solid #f5c518;
  background: #0c1730;
}
h1 {
  margin: 0;
  color: #f5c518;
  font-size: clamp(2.4rem, 9vw, 5rem);
  font-weight: normal;
  line-height: 1;
}
.subtitle {
  margin: .2rem 0 1.4rem;
  font-size: 1.35rem;
  letter-spacing: .12em;
}
button {
  padding: .55em .85em;
  border: 1px solid #f5c518;
  border-radius: 4px;
  background: #f5c518;
  color: #0a1226;
  font: 1.35rem Tiny5, monospace;
  cursor: pointer;
}
button:focus-visible {
  outline: 2px solid #e8ecf6;
  outline-offset: 4px;
}
.credits {
  margin: 1.15rem 0 0;
  font-size: .95rem;
  color: #8a96b8;
}

.controls-legend {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  color: #e8ecf6;
  font-size: clamp(.8rem, 2.6vw, 1.05rem);
  line-height: 1.45;
  text-align: left;
}
.controls-legend li + li { margin-top: .15rem; }
.controls-legend kbd {
  display: inline-block;
  padding: 0 .28em;
  border: 1px solid #f5c518;
  color: #f5c518;
  background: #0a1226;
  font: inherit;
}
