* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  background: #111;
  color: #eee;
  font-family: system-ui, sans-serif;
}
#app {
  height: 100dvh;
  display: grid;
  grid-template-columns: 310px 1fr;
}
#ui {
  padding: 18px;
  background: #1b1b1b;
  overflow: auto;
}
#view {
  position: relative;
  min-width: 0;
  overflow: hidden;
  touch-action: none;
}
canvas {
  display: block;
  touch-action: none;
}
h1 {
  font-size: 20px;
  margin: 0 0 8px;
}
.lead {
  font-size: 13px;
  line-height: 1.45;
  color: #bbb;
}
label {
  display: block;
  margin-top: 16px;
  font-size: 13px;
}
.v {
  float: right;
  font-variant-numeric: tabular-nums;
}
input[type="range"] {
  width: 100%;
}
button {
  width: 100%;
  padding: 10px;
  margin-top: 12px;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  background: #eee;
  color: #111;
}
.secondary {
  background: #333;
  color: #eee;
}
.box {
  margin-top: 16px;
  padding: 11px;
  background: #252525;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}
#badge {
  position: absolute;
  left: 14px;
  top: 14px;
  background: #111c;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 13px;
  pointer-events: none;
}
@media (max-width: 700px) {
  #app {
    height: auto;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }
  #ui {
    padding: 12px;
  }
  #view {
    height: 60dvh;
    min-height: 420px;
  }
}
