:root {
  --paper: #ecebe6;
  --ink: #0c0c0f;
  --red: #ff2a1d;
  --mid: #8e8b84;
  --line: rgba(12, 12, 15, 0.18);
  --disp: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  box-sizing: border-box;
}
html {
  height: 100%;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  height: 100%;
  background: #ecebe6;
  color: var(--ink);
  overflow: hidden;
  touch-action: none;
  font-family: var(--mono);
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
canvas#gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}
.scr {
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s,
    visibility 0s 0.35s;
  padding: max(18px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
}
.scr.on {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s;
}
.mono {
  font: 500 11px/1.2 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
#loader {
  background: var(--paper);
  z-index: 60;
  justify-content: space-between;
}
.ld-top,
.ld-bot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.ld-mid {
  position: relative;
  z-index: 2;
}
.ld-title {
  margin: 0;
  font: 900 clamp(104px, 29vw, 320px)/0.8 var(--disp);
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.ld-title .ln {
  display: block;
  overflow: hidden;
  padding-top: 0.04em;
}
.ld-title .ln span {
  display: inline-block;
  transform: translateY(108%);
  animation: rise 0.9s cubic-bezier(0.2, 0.9, 0.1, 1) forwards;
  animation-delay: calc(var(--i) * 55ms + 150ms);
}
.ld-title .dot {
  color: var(--red);
}
@keyframes rise {
  to {
    transform: none;
  }
}
.ld-bar {
  height: 18px;
  margin-top: 22px;
  background: repeating-linear-gradient(90deg, rgba(12, 12, 15, 0.12) 0 2px, transparent 2px 10px);
  position: relative;
}
.ld-bar i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--red);
}
.ld-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 12px;
}
.ld-pct {
  font: 900 clamp(48px, 11vw, 120px)/0.8 var(--disp);
  -webkit-text-stroke: 2px var(--ink);
  color: transparent;
}
.ld-pct small {
  font-size: 0.35em;
}
#ld-go {
  background: var(--ink);
  color: #fff;
  border: 0;
  padding: 16px 22px;
  font: 700 13px var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.25;
  pointer-events: none;
}
#ld-go.rdy {
  opacity: 1;
  pointer-events: auto;
  background: var(--red);
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink {
  50% {
    background: var(--ink);
  }
}
.reg {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 0 solid var(--ink);
  opacity: 0.6;
}
.reg.a {
  top: 10px;
  left: 10px;
  border-width: 2px 0 0 2px;
}
.reg.b {
  bottom: 10px;
  right: 10px;
  border-width: 0 2px 2px 0;
}
#menu {
  justify-content: space-between;
  background: linear-gradient(90deg, rgba(236, 235, 230, 0.95), rgba(236, 235, 230, 0.62) 42%, rgba(236, 235, 230, 0) 80%);
}
@media (max-aspect-ratio: 1/1) {
  #menu {
    background: linear-gradient(0deg, rgba(236, 235, 230, 0.96), rgba(236, 235, 230, 0.78) 50%, rgba(236, 235, 230, 0) 85%);
  }
}
.mn-top {
  display: flex;
  justify-content: space-between;
}
.mn-main {
  max-width: 640px;
}
.mn-kicker {
  margin: 0 0 10px;
}
.mn-title {
  margin: 0 0 22px;
  font: 900 clamp(92px, 25vw, 250px)/0.78 var(--disp);
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.mn-title span {
  display: block;
}
.mn-title i {
  font-style: normal;
  color: var(--red);
}
.mn-title.glitch span:first-child {
  animation: slice 5.2s infinite;
}
@keyframes slice {
  0%,
  93%,
  100% {
    clip-path: none;
    transform: none;
  }
  94% {
    clip-path: inset(30% 0 52% 0);
    transform: translateX(-14px);
  }
  96% {
    clip-path: inset(60% 0 12% 0);
    transform: translateX(10px);
  }
  98% {
    clip-path: none;
    transform: none;
  }
}
.mn-list {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
}
.mn-list button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: left;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 14px 0;
  font: 800 clamp(28px, 6.4vw, 46px)/1 var(--disp);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition:
    padding 0.25s,
    color 0.2s;
}
.mn-list button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: translateX(-101%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: -1;
}
.mn-list button:hover,
.mn-list button:active {
  color: #fff;
  padding-left: 16px;
}
.mn-list button:hover::before,
.mn-list button:active::before {
  transform: none;
}
.mn-list button.main {
  font-size: clamp(40px, 10vw, 72px);
}
.mn-bot {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
}
.panel {
  background: var(--paper);
  z-index: 50;
}
.pn-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 10px;
  margin-bottom: 6px;
}
.pn-head h2 {
  margin: 0;
  font: 900 clamp(48px, 11vw, 96px)/0.8 var(--disp);
  text-transform: uppercase;
}
.back {
  background: var(--ink);
  color: #fff;
  border: 0;
  padding: 12px 16px;
  font: 700 12px var(--mono);
  letter-spacing: 0.18em;
}
.back:hover {
  background: var(--red);
}
.pn-body {
  flex: 1;
  overflow-y: auto;
  touch-action: pan-y;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 6px 2px 30px;
  max-width: 900px;
  width: 100%;
}
.sec {
  font: 900 26px/1 var(--disp);
  text-transform: uppercase;
  margin: 26px 0 4px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.sec::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--ink);
}
.row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(140px, 1.3fr);
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.row label {
  font: 500 11px/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.row label small {
  display: block;
  opacity: 0.55;
  margin-top: 3px;
  letter-spacing: 0.04em;
  text-transform: none;
}
.rg {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rg output {
  font: 700 12px var(--mono);
  min-width: 52px;
  text-align: right;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 30px;
  background: transparent;
  margin: 0;
  touch-action: pan-y;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  background: var(--ink);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 28px;
  background: var(--red);
  border: 0;
  margin-top: -12px;
  border-radius: 0;
}
input[type="range"]::-moz-range-track {
  height: 3px;
  background: var(--ink);
}
input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 28px;
  background: var(--red);
  border: 0;
  border-radius: 0;
}
.seg {
  display: flex;
  border: 2px solid var(--ink);
}
.seg button {
  flex: 1;
  background: none;
  border: 0;
  padding: 9px 4px;
  font: 700 11px var(--mono);
  letter-spacing: 0.1em;
}
.seg button + button {
  border-left: 2px solid var(--ink);
}
.seg button.on {
  background: var(--ink);
  color: #fff;
}
.tg {
  justify-self: end;
  width: 64px;
  height: 30px;
  border: 2px solid var(--ink);
  background: none;
  position: relative;
  padding: 0;
}
.tg::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--ink);
  transition:
    transform 0.2s,
    background 0.2s;
}
.tg.on {
  background: var(--ink);
}
.tg.on::after {
  transform: translateX(34px);
  background: var(--red);
}
.lab {
  border: 2px solid var(--ink);
  padding: 14px;
  margin: 8px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.lab .m {
  border-left: 3px solid var(--ink);
  padding-left: 10px;
}
.lab .m b {
  display: block;
  font: 900 38px/1 var(--disp);
}
.lamps {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lamps span {
  font: 700 10px var(--mono);
  letter-spacing: 0.12em;
  padding: 6px 9px;
  border: 2px solid var(--ink);
  opacity: 0.4;
  transition: background 0.1s;
}
.lamps span.hit {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  opacity: 1;
}
.btn {
  background: var(--ink);
  color: #fff;
  border: 0;
  padding: 13px 18px;
  font: 700 12px var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.btn:hover {
  background: var(--red);
}
.btn.alt {
  background: none;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn.alt:hover {
  background: var(--ink);
  color: #fff;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  border-top: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
}
.card {
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 16px;
}
.card h3 {
  margin: 12px 0 6px;
  font: 900 40px/0.9 var(--disp);
  text-transform: uppercase;
}
.card p {
  margin: 0;
  font: 400 12px/1.5 var(--mono);
}
.ico {
  position: relative;
  height: 84px;
  border-bottom: 2px dashed var(--line);
}
.ph {
  position: absolute;
  left: 50%;
  top: 50%;
  background: transparent;
  border: 3px solid var(--ink);
  border-radius: 3px;
}
.ico.turn .ph {
  width: 8px;
  height: 44px;
  margin: -22px 0 0 -4px;
  animation: a-turn 2.6s cubic-bezier(0.3, 0, 0.1, 1) infinite;
}
.ico.leap .ph {
  width: 8px;
  height: 44px;
  margin: -22px 0 0 -4px;
  transform-origin: 50% 100%;
  animation: a-up 2.2s infinite;
}
.ico.slide .ph {
  width: 8px;
  height: 44px;
  margin: -22px 0 0 -4px;
  transform-origin: 50% 100%;
  animation: a-down 2.2s infinite;
}
.ico.dash .ph {
  width: 30px;
  height: 48px;
  margin: -24px 0 0 -15px;
  animation: a-roll 2.2s infinite;
}
.ico::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 6px;
  width: 10px;
  height: 10px;
  background: var(--red);
}
@keyframes a-turn {
  0%,
  15% {
    transform: rotate(0);
  }
  35%,
  70% {
    transform: rotate(-85deg);
  }
  90%,
  100% {
    transform: rotate(0);
  }
}
@keyframes a-up {
  0%,
  15% {
    transform: rotate(0);
  }
  25%,
  40% {
    transform: rotate(-38deg);
  }
  60%,
  100% {
    transform: rotate(0);
  }
}
@keyframes a-down {
  0%,
  15% {
    transform: rotate(0);
  }
  25%,
  40% {
    transform: rotate(38deg);
  }
  60%,
  100% {
    transform: rotate(0);
  }
}
@keyframes a-roll {
  0%,
  15% {
    transform: rotate(0);
  }
  30%,
  50% {
    transform: rotate(26deg);
  }
  70%,
  100% {
    transform: rotate(0);
  }
}
#calib,
#pause {
  background: rgba(236, 235, 230, 0.9);
  justify-content: center;
  align-items: flex-start;
  z-index: 55;
}
.cal-t {
  font: 900 clamp(60px, 15vw, 150px)/0.82 var(--disp);
  text-transform: uppercase;
  margin: 0 0 18px;
}
.cal-p {
  max-width: 420px;
  margin: 0 0 22px;
  font: 400 13px/1.6 var(--mono);
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: min(320px, 100%);
}
#hud {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}
#hud.on {
  opacity: 1;
}
#hd {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  left: max(18px, env(safe-area-inset-left));
  font: 900 54px/0.85 var(--disp);
  color: var(--ink);
}
#hd i {
  font: 700 12px var(--mono);
  font-style: normal;
  margin-left: 6px;
  letter-spacing: 0.14em;
}
#hp {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  width: 46px;
  height: 46px;
  background: var(--paper);
  border: 2px solid var(--ink);
  pointer-events: auto;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 0;
}
#hp span {
  width: 5px;
  height: 18px;
  background: var(--ink);
}
#hflow {
  position: absolute;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 50%;
  width: min(46vw, 300px);
  transform: translateX(-50%);
  height: 4px;
  background: rgba(12, 12, 15, 0.18);
}
#hflow i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--red);
}
#hhint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24%;
  display: flex;
  justify-content: center;
}
#hhs,
#hbs {
  display: inline-block;
  background: var(--paper);
  color: var(--red);
  font: 900 clamp(28px, 7vw, 52px)/1 var(--disp);
  padding: 6px 14px 4px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  opacity: 0;
}
#hhs.on {
  opacity: 1;
  animation: slam 0.22s cubic-bezier(0.2, 1.4, 0.3, 1);
}
#hbig {
  position: absolute;
  left: 0;
  right: 0;
  top: 36%;
  display: flex;
  justify-content: center;
  text-align: center;
}
#hbs {
  font-size: clamp(54px, 17vw, 150px);
  padding: 8px 20px 2px;
}
#hbs.on {
  animation: big 1.5s forwards;
}
@keyframes slam {
  from {
    transform: scale(1.35);
  }
  to {
    transform: none;
  }
}
@keyframes big {
  0% {
    opacity: 0;
    transform: scale(1.6);
  }
  8% {
    opacity: 1;
    transform: scale(1);
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
#fxf,
#fxr {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 35;
  opacity: 0;
}
#fxf {
  background: #fff;
  z-index: 70;
}
#fxr {
  background: radial-gradient(circle at 50% 50%, transparent 38%, rgba(255, 30, 20, 0.55));
}
#wipe {
  position: fixed;
  inset: 0;
  background: var(--red);
  z-index: 90;
  transform: translateX(-101%);
  pointer-events: none;
}
#wipe.in {
  animation: wi 0.42s cubic-bezier(0.7, 0, 0.2, 1) forwards;
}
#wipe.out {
  animation: wo 0.5s cubic-bezier(0.7, 0, 0.2, 1) forwards;
}
@keyframes wi {
  from {
    transform: translateX(-101%);
  }
  to {
    transform: none;
  }
}
@keyframes wo {
  from {
    transform: none;
  }
  to {
    transform: translateX(101%);
  }
}
.hide-s {
  display: inline;
}
@media (max-width: 560px) {
  .hide-s {
    display: none;
  }
  .row {
    grid-template-columns: 1fr;
  }
  .tg {
    justify-self: start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ld-title .ln span {
    animation-duration: 0.01s;
  }
  .mn-title.glitch span:first-child {
    animation: none;
  }
  #ld-go.rdy {
    animation: none;
  }
}
.mt {
  margin: 10px 0;
}
.mh {
  display: flex;
  justify-content: space-between;
}
.mb {
  position: relative;
  height: 16px;
  border: 2px solid var(--ink);
}
.mb i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--ink);
}
.mb i.tk {
  left: 66.7%;
  top: -4px;
  bottom: -4px;
  width: 3px;
  background: var(--red);
}
.lab2 {
  grid-template-columns: 1fr 1fr;
}
.sm {
  font-size: 20px !important;
  padding-top: 8px;
}
.note {
  text-transform: none;
  letter-spacing: 0.04em;
  line-height: 1.6;
  opacity: 0.8;
  margin: 8px 0;
}
.mt2 {
  margin-top: 14px;
}
.btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 6px 0;
}
.how-p {
  line-height: 1.7;
  max-width: 560px;
  margin: 14px 0;
  text-transform: none;
  letter-spacing: 0.04em;
}
.rd {
  background: var(--red) !important;
}
