:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

html {
  min-height: 100%;
  background-color: #041a34;
  background-image: radial-gradient(circle at 50% 44%, #174f7c 0, #0a315b 36%, #041a34 78%, #020e1d 100%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px;
  color: #171717;
  background: transparent;
}

.connection-window {
  width: min(92vw, 590px);
  padding: 20px 20px 30px;
  background: #faf8ed;
  border: 3px solid #0b4774;
  box-shadow:
    0 0 0 2px #a7bed0,
    0 0 0 5px #031e3b,
    15px 18px 0 rgb(0 0 0 / 32%);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  margin-bottom: 9px;
  user-select: none;
}

.brand-logo {
  display: block;
  width: min(100%, 390px);
  height: auto;
  filter: drop-shadow(2px 3px 1px rgb(0 0 0 / 18%));
}

.connection-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stage {
  position: relative;
  aspect-ratio: 1.45 / 1;
  overflow: hidden;
  background: #c9caf8;
  border: 5px solid #f4f0df;
  outline: 4px solid #062f57;
  box-shadow:
    inset 3px 3px 0 #a8a7dc,
    inset -3px -3px 0 #e2e2ff,
    5px 6px 0 #b7b5a9;
}

.runner {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 64px;
  transform: translate(-50%, -48%) rotate(-4deg);
  filter: drop-shadow(2px 2px 0 #0f2740);
  animation: jog 0.66s steps(2, jump-none) infinite;
}

.runner span {
  position: absolute;
  display: block;
  background: #ffd55b;
  border: 2px solid #1b2734;
}

.runner-head {
  top: 0;
  left: 25px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
}

.runner-body {
  top: 16px;
  left: 25px;
  width: 15px;
  height: 29px;
  border-radius: 8px 8px 6px 6px;
  transform: rotate(18deg);
}

.runner-arm,
.runner-leg {
  height: 12px;
  border-radius: 8px;
  transform-origin: 7px 6px;
}

.runner-arm-left {
  top: 19px;
  left: 8px;
  width: 27px;
  transform: rotate(-30deg);
}

.runner-arm-right {
  top: 22px;
  left: 34px;
  width: 25px;
  transform: rotate(36deg);
}

.runner-leg-left {
  top: 40px;
  left: 8px;
  width: 29px;
  transform: rotate(-40deg);
}

.runner-leg-right {
  top: 43px;
  left: 29px;
  width: 30px;
  transform: rotate(45deg);
}

.status-copy {
  margin: 17px 0 8px;
  text-align: center;
  font-family: "Times New Roman", Times, serif;
  font-size: 20px;
  line-height: 1;
}

.progress {
  width: 78%;
  height: 7px;
  margin: 0 auto;
  background: #fffef6;
  border: 2px solid #474747;
  box-shadow: inset 1px 1px 0 #a9a9a9;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
}

@keyframes jog {
  from { transform: translate(-50%, -48%) rotate(-5deg); }
  to { transform: translate(-50%, -54%) rotate(3deg); }
}

@media (max-width: 520px) {
  body {
    padding: 16px;
  }

  .connection-window {
    padding: 15px 13px 24px;
    box-shadow:
      0 0 0 2px #a7bed0,
      0 0 0 4px #031e3b,
      9px 11px 0 rgb(0 0 0 / 30%);
  }

  .brand {
    min-height: 88px;
  }

  .connection-status {
    gap: 10px;
  }

  .stage {
    border-width: 3px;
    outline-width: 3px;
  }

  .runner {
    transform: translate(-50%, -48%) scale(0.72);
  }

  .status-copy {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .runner {
    animation: none;
  }
}
