* {
  box-sizing:border-box;
}
html,body,#world {
  width:100%;
  height:100%;
  margin:0;
  overflow:hidden;
}
body {
  color:#edf0f6;
  background:radial-gradient(ellipse at 47% 43%,#29223f 0,#191a33 55%,#0b1022 100%);
  font-family:"Helvetica Neue",Arial,sans-serif;
}
#world {
  position:absolute;
  inset:0;
}
canvas {
  display:block;
  touch-action:none;
}
header,.controls,.hint {
  position:fixed;
  z-index:1;
}
header {
  top:max(24px,env(safe-area-inset-top));
  left:28px;
  display:flex;
  align-items:center;
  gap:12px;
  pointer-events:none;
  text-shadow:0 2px 12px #101025;
}
h1 {
  font-size:21px;
  line-height:1.1;
  letter-spacing:-.8px;
  font-weight:550;
  margin:0 0 5px;
}
header span {
  font-size:9px;
  letter-spacing:.2em;
  color:#99b4c7;
}
.mark {
  display:flex;
  gap:3px;
  width:31px;
  height:34px;
  align-items:center;
  justify-content:center;
  transform:skewY(-18deg);
}
.mark i {
  display:block;
  width:4px;
  background:#97ffef;
  border-radius:1px;
  box-shadow:0 0 10px #30ffdd33;
}
.mark i:nth-child(1) {
  height:12px;
}
.mark i:nth-child(2) {
  height:26px;
}
.mark i:nth-child(3) {
  height:18px;
}
.controls {
  right:max(24px,env(safe-area-inset-right));
  bottom:max(22px,env(safe-area-inset-bottom));
  padding:11px 15px;
  display:grid;
  gap:8px;
  background:#101425df;
  border:1px solid #9aafda32;
  box-shadow:0 4px 24px #07091645;
  border-radius:10px;
  backdrop-filter:blur(12px);
}
label {
  display:grid;
  grid-template-columns:54px 80px 32px;
  gap:9px;
  align-items:center;
  font-size:11px;
  font-weight:550;
  letter-spacing:.03em;
  --accent:#ffa2de;
}
label+label {
  --accent:#8ee6f4;
}
.label {
  display:flex;
  gap:8px;
  align-items:center;
}
.label i {
  font:normal 16px/1 monospace;
  width:10px;
  text-align:center;
  color:var(--accent);
}
output {
  font:10px/1 ui-monospace,monospace;
  color:#b5bed2;
  text-align:right;
}
input {
  width:100%;
  accent-color:var(--accent);
  appearance:none;
  height:18px;
  background:transparent;
  margin:0;
  cursor:pointer;
}
input::-webkit-slider-runnable-track {
  height:3px;
  border-radius:4px;
  background:linear-gradient(to right,var(--accent) 0 var(--fill,67%),#485063 var(--fill,67%) 100%);
}
input::-moz-range-track {
  height:3px;
  background:#485063;
}
input::-moz-range-progress {
  height:3px;
  background:var(--accent);
}
input::-webkit-slider-thumb {
  appearance:none;
  width:9px;
  height:9px;
  margin-top:-3px;
  border-radius:50%;
  background:#f1f5fa;
  box-shadow:0 0 4px #171a21;
}
input::-moz-range-thumb {
  width:9px;
  height:9px;
  border:0;
  border-radius:50%;
  background:white;
}
.hint {
  bottom:25px;
  left:28px;
  color:#a1a8c1;
  display:flex;
  align-items:center;
  gap:9px;
  font-size:10px;
  letter-spacing:.05em;
  pointer-events:none;
}
.hint b {
  padding:0 4px;
  font-weight:400;
}
.hint i {
  border:1px solid #939bb4;
  border-radius:6px;
  width:10px;
  height:14px;
  position:relative;
}
.hint i:after {
  content:"";
  position:absolute;
  width:1px;
  height:3px;
  background:#c7d0e0;
  top:2px;
  left:4px;
}
.touch {
  display:none;
}
@media(pointer:coarse) {
  .desktop {
    display:none;
  }
  .touch {
    display:inline;
  }
}
@media(max-width:600px) {
  header {
    left:17px;
    top:18px;
  }
  .controls {
    right:14px;
    bottom:max(14px,env(safe-area-inset-bottom));
    padding:9px 12px;
  }
  .hint {
    left:16px;
    bottom:20px;
    font-size:9px;
  }
}
@media(max-width:420px) {
  .hint {
    bottom:94px;
    left:auto;
    right:17px;
  }
}
@media(max-height:490px) {
  header {
    left:14px;
    top:12px;
  }
  .controls {
    right:12px;
    bottom:12px;
  }
  .hint {
    left:14px;
    bottom:14px;
  }
}
