:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #08090b;
  color: #fff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: #08090b;
}

body {
  display: grid;
  place-items: start center;
}

main {
  width: min(100%, 1280px);
  text-align: center;
}

#g {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  cursor: crosshair;
}

#c {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

#ts,
#msg,
#h,
#a {
  position: absolute;
  pointer-events: none;
  text-shadow:
    0 2px 0 #000,
    0 0 8px #000;
}

#ts {
  inset: auto 0 12%;
  font-size: clamp(0.85rem, 1.8vw, 1.4rem);
  font-weight: 700;
}

#ts h1 {
  margin: 0;
  font-size: clamp(4rem, 16vw, 12rem);
  line-height: 0.9;
}

#msg {
  inset: 12% 0 auto;
  font-size: clamp(1rem, 2vw, 1.6rem);
  font-weight: 700;
}

#h,
#a {
  bottom: 3%;
  width: 50%;
  font-size: clamp(1.4rem, 4vw, 3rem);
  font-weight: 700;
}

#h {
  left: 0;
}

#a {
  right: 0;
}

[hidden] {
  display: none !important;
}

.settings,
.controls {
  margin: 0;
  padding: 0.65rem 1rem;
  background: #11151a;
  font-size: 0.85rem;
}

.settings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

#m {
  width: min(14rem, 45vw);
}

.controls {
  padding-top: 0;
  color: #b9c0c8;
}

@media (max-height: 620px) and (min-aspect-ratio: 16/10) {
  main {
    width: min(100%, calc(100vh * 16 / 9));
  }

  .settings,
  .controls {
    display: none;
  }
}
