@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1
  }
}

@keyframes slide-in-full {
  from {
    translate: 0 100%;
  }

  to {
    translate: 0 0;
  }
}

@keyframes handheld {
  0% {
    translate: 0 0;
  }

  50% {
    translate: 0 2%;
  }

  100% {
    translate: 0 0;
  }
}

html {
  --intro-darkness-duration: 5s;
  --color-blue: #12548e;
  --text-shadow: #0c3458 0.05em 0.05em, #12548e50 0 0 10px, #12548e20 0 0 20px;
}

html,
body {
  background-color: black;
  font-family: "Fraunces", serif;
  font-optical-sizing: auto;
  font-size: 16px;
  margin: 0;
  padding: 0;
  color: var(--color-blue);
}

body {
  min-width: 100vw;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-image: radial-gradient(circle,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.6) 6%,
      rgba(141, 141, 141, 0.5) 28%,
      rgba(100, 100, 100, 0.9) 32%,
      rgba(30, 30, 30, 0.9) 39%,
      rgba(50, 50, 50, 0.8) 56%,
      rgba(0, 0, 0, 1) 100%);
  background-repeat: no-repeat;
  opacity: 0;
}

body.game-on::before {
  --halo-delay: 1s;
  opacity: 1;
  animation: fade-in alternate both;
  animation-delay: var(--halo-delay);
  animation-duration: calc(var(--intro-darkness-duration) / 2 - var(--halo-delay));
  animation-iteration-count: 2;
}

*::selection {
  background: #fffc3c;
}

.debug * {
  animation-delay: 0 !important;
  animation-duration: 0 !important;
  transition-delay: 0 !important;
  transition-duration: 0 !important;
}

@keyframes dreamz {
  from {
    filter: hue-rotate(0deg) saturate(1.6);
  }

  to {
    filter: hue-rotate(360deg) saturate(1.6);
  }
}

a {
  color: red;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-decoration-color: #f00a;
}

a:visited, a:visited:hover {
  color: rgb(143, 0, 0);
  text-decoration-color: rgb(143, 0, 0);
}

.map-container {
  height: 100vh;
  animation: fade-in 3s var(--intro-darkness-duration) both;
  filter: brightness(0.95) contrast(1.2);
}

.map-container[hidden] {
  animation: none;
  opacity: 0;
}

.dreamz .map-container canvas {
  animation: dreamz 240s 15s infinite;
}

.overlay {
  align-items: center;
  background: white;
  color: white;
  display: flex;
  height: 100vh;
  justify-content: center;
  flex-direction: column;
  left: 0;
  position: fixed;
  top: 0;
  width: 100vw;
  z-index: 5;
  opacity: 1;
}

.overlay[hidden] {
  opacity: 0;
  pointer-events: none;
}

.overlay--full {
  background: black;
  transition: opacity 2s linear;
}

p.subtitle {
  margin-top: 0;
  font-size: 1.75rem;
}

.text-overlay {
  font-size: 2rem;
  color: var(--color-blue);
  position: absolute;
  text-align: center;
  width: 100%;
  z-index: 1;
}

.text-overlay--top {
  top: 8rem;
}

.text-overlay--bottom {
  top: calc(100vh - 16rem);
}

.text-overlay--middle {
  bottom: 50%;
  translate: 0 50%;
}

#text-display {
  color: white;
  font-weight: bold;
  text-shadow: var(--text-shadow);
  line-height: 1.15;
  padding: 0.25rem 0.5ch;
  pointer-events: none;
  max-width: 900px;
  margin: 0 auto;
  text-wrap: balance;
}

.status-display {
  font-size: 4rem;
  font-weight: bold;
  visibility: hidden;
  color: white;
  text-shadow: var(--text-shadow);
}

.text-overlay.fade-in {
  animation: fade-in 1s;
  visibility: visible;
}

#help-display {
  font-size: 2rem;
  font-weight: normal;
  color: white;
  text-shadow: var(--text-shadow);
  pointer-events: none;
}

.help-keys {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.help-keys__key {
  display: flex;
  align-items: end;
  border: solid 1px white;
  border-radius: 0.25rem;
  height: 2em;
  width: 2em;
  padding: 0.5rem;
  line-height: 1;
}

.fake-captcha {
  position: fixed;
  top: 50vh;
  left: 50vw;
  transform: translate(-50%, -50%);
  background: #f9f9f9;
  color: #4c4a4b;
  z-index: 6;
  padding: 1rem;
  border: solid 1px #d3d3d3;
  border-radius: 3px;
  box-shadow: 0px 0px 4px 1px rgba(0, 0, 0, 0.08);
}

.fake-captcha input {
  display: none;
}

.fake-captcha__checkbox {
  display: inline-block;
  height: 28px;
  width: 28px;
  border: 2px solid #c1c1c1;
  border-radius: 2px;
  background-color: white;
  vertical-align: middle;
  margin-right: 12px;
  position: relative;
}

@keyframes checkmark-bg {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 0 -600px;
  }
}

.fake-captcha__checkbox:hover {
  border: 2px solid #b2b2b2;
}

.fake-captcha__checkbox--checked,
.fake-captcha__checkbox--checked:hover {
  border: none;
  background: transparent;
}

.fake-captcha__checkbox--checked .icon {
  background-repeat: no-repeat;
  border: none;
  height: 30px;
  left: -5px;
  outline: 0;
  position: absolute;
  width: 38px;
  font-size: 1px;
  animation: checkmark-bg 500ms forwards steps(20, end);
  background-image: url(data:image/png;base64,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);
}

.fake-captcha__label {
  display: inline-block;
  vertical-align: middle;
  font-family: Roboto, helvetica, arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 17px;
}

.fake-captcha__logo {
  display: inline-block;
  font-size: 10px;
  text-align: center;
  vertical-align: middle;
  margin-left: 50px;
}

.fake-captcha__icon {
  display: block;
  font-size: 40px;
}

/* this disables styling of GMaps Info Windows */
.gm-style .gm-style-iw-c {
  background: none;
  box-shadow: none;
  overflow: visible !important;
}

.gm-style .gm-style-iw-c:has(.gustavo-item--noninteractive) {
  pointer-events: none;
}

.gm-style-iw-tc {
  display: none;
}

.gm-style-iw-d {
  overflow: hidden !important;
}

.gm-compass {
  scale: 1.1;
  translate: -0.25rem 0.5rem;
}

.cinema .gm-compass {
  display: none !important;
}

.gm-compass > img:first-of-type {
  filter: invert(100%) brightness(1.1);
}

.gm-compass::before,
.gm-compass::after,
.gm-compass button:first-of-type::before,
.gm-compass button:last-of-type::after {
  display: block;
  color: var(--color-blue);
  left: 50%;
  translate: -50% 0;
  position: absolute;
  font-weight: bold;
  font-size: 0.9em;
  font-family: monospace;
  opacity: 0.8;
  z-index: 1;
}

.gm-compass::before {
  color: #c3131a;
  content: 'N';
  top: 0;
  opacity: 1;
}

.gm-compass::after {
  content: 'S';
  bottom: 0;
}

.gm-compass button:first-of-type img,
.gm-compass button:last-of-type img {
  opacity: 0;
}

.gm-compass button:first-of-type::before,
.gm-compass button:last-of-type::after {
  top: 50%;
  translate: -50% -50%;
}

.gm-compass button:first-of-type::before {
  content: 'E';
}

.gm-compass button:last-of-type::after {
  content: 'W';
}

.hud {
  animation: fade-in 3s var(--intro-darkness-duration) both;
  position: fixed;
  top: 1.25rem;
  left: 2rem;
  z-index: 1;
  display: flex;
  justify-content: end;
  gap: 0.5rem;
  align-items: center;
  width: calc(100% - 6.8rem);
}

.hud[hidden],
.cinema .hud {
  animation: none;
  opacity: 0;
}

.hud__dialog,
.intro__content {
  box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.2);
}

.hud__dialog {
  background: #fffe;
  border: solid 1px var(--color-blue);
  color: var(--color-blue);
  margin: 0;
  position: fixed;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  z-index: 2;
  padding: 0;
  min-width: 300px;
  width: 50vw;
  min-height: 150px;
  height: 50vh;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
}

.hud__dialog--big {
  width: 100%;
  max-width: 1000px;
  max-height: 75vh;
}

.hud__dialog--bigger {
  height: 90vh;
}

.hud__dialog[open] {
  animation: fade-in 500ms both;
  display: grid;
}

.hud__dialog-header {
  background-color: white;
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hud__dialog-header::after {
  --height: 2.5rem;
  content: '';
  display: block;
  position: absolute;
  bottom: calc(-1 * var(--height));
  left: 0;
  height: var(--height);
  width: 100%;
  background: linear-gradient(#fff 0%, #fff0 100%);
  pointer-events: none;
}

.hud__dialog-content {
  padding: 1rem;
  overflow-x: hidden;
  overflow-y: auto;
  font-size: 1.25rem;
}

.hud__button {
  justify-content: center;
  align-items: center;
  display: flex;
  gap: 0.5rem;
  position: relative;
}

.hud__button[hidden] {
  display: none;
}

.hud__button svg[hidden="true"] {
  display: none;
}

.hud__button svg {
  height: 1.5em;
}

.hud__button,
.hud__dialog-close {
  cursor: pointer;
  color: var(--color-blue);
  background: white;
  border: solid 1px var(--color-blue);
  font-family: inherit;
  font-size: 1rem;
  font-weight: bold;
  padding: 0.5rem;
  line-height: 1;
}

.hud__button--small {
  padding: 0.1rem 0.25rem;
}

.hud__button:hover,
.hud__dialog-close:hover,
.intro__cta:hover {
  background: #ebf1f6;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: red;
}

.hud__button--on {
  color: #0eac0e;
}

.hud__title {
  color: white;
  margin: 0;
}

.hud__title-link,
.hud__title-link:visited {
  color: inherit;
  transition: color 100ms;
}

.hud__title-link:hover {
  color: var(--color-blue);
}

.hud__title svg {
  width: auto;
  height: 2.5rem;
  display: block;
  margin-right: 1rem;
  position: relative;
  top: 3px;
  /* adjust for F descender */
}

.data-display {
  font: 0.75rem monospace;
  color: white;
  opacity: 0.5;
  margin-left: 0;
  margin-right: auto;
  transition: opacity 500ms;
  position: fixed;
  bottom: 1rem;
  left: 50%;
  translate: -50% 0;
  text-align: center;
  z-index: 1;
}

.data-display ::selection {
  color: black;
}

.data-display:hover {
  opacity: 0.8;
}

.intro {
  font-size: 1.382rem;
  transition: opacity 5s;
}

.intro__landscape {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  filter: contrast(1.5);
}

@keyframes intro-h1-slide-in {
  from {
    translate: 0 15%;
  }

  to {
    translate: 0 0%;
  }
}

.intro h1 {
  animation: fade-in 1s 500ms both, intro-h1-slide-in 1s 500ms both;
  color: white;
  position: absolute;
  top: 2rem;
  margin-top: 0;
  left: 0;
  width: 100%;
  text-align: center;
}

.intro__content {
  animation: fade-in 500ms 1.5s both;
  background: white;
  border: solid 1px var(--color-blue);
  color: var(--color-blue);
  padding: 2rem 2rem 1.5rem;
  position: relative;
  z-index: 1;
  text-align: center;
  max-height: 90vh;
  max-width: 90vw;
  overflow-y: auto;
}

.intro__disclaimer {
  display: none;
  font-size: 0.75rem;
  max-width: 700px;
  margin: 0 auto;
}

.kiosk .intro__disclaimer,
.kiosk .intro__links,
.kiosk .intro__tips {
  display: none;
}

p.intro__links {
  margin: 2rem 0 0;
  font-size: 1.15rem;
}

.intro__links a:hover {
  text-decoration: solid underline 2px;
}

.intro__ctas {
  display: none;
}

.intro__cta {
  appearance: none;
  background: none;
  border: solid 1px var(--color-blue);
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 1rem;
  flex-basis: 15ch;
}

.intro__cta:first-of-type,
.intro__cta:first-of-type[hidden] + .intro__cta {
  border-width: 3px;
}

.intro__tips {
  list-style-type: none;
  margin: 2rem auto 1rem;
  padding: 0;
  display: none;
  gap: 1rem;
  font-size: 0.8em;
  justify-content: center;
}

.intro__tips li {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  max-width: 300px;
  text-wrap: balance;
}

.intro__tips li+li {
  border-left: solid 1px var(--color-blue);
  padding-left: 1rem;
}

.intro__mobile p {
  margin-top: 0;
}

.intro__mobile::before,
.intro__mobile::after {
  content: '~';
  display: block;
  margin: 0.5rem auto;
  opacity: 0.5;
}

@media screen and (min-width: 1024px) {
  .intro__disclaimer {
    display: block;
  }

  .intro__tips {
    display: flex;
  }

  .intro__ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
  }

  .intro__mobile {
    display: none;
  }
}

.map-container .vg-item {
  animation: none;
  width: 300px;
  height: 300px;
  position: relative;
  top: 3rem;
}

.map-container .vg-item--big {
  width: 1000px;
  height: 1000px;
}

.debug .vg-item {
  border: solid 1px red;
}

.handheld-item {
  animation: handheld 1s infinite;
  position: fixed;
  z-index: 1;
  bottom: -14rem;
  right: 55%;
  pointer-events: none;
  transform-origin: center center;
  scale: 0.5 0.5;
  color: #36bdcc;
}

.handheld-item .vg-item {
  animation: slide-in-full 1s both;
}

.gustavo-card {
  border-radius: 10px;
  transform: perspective(1000px) rotate3d(1, 0, 0, 75deg) translateY(200%) scale(0.4);
  transform-origin: top center;
  filter: drop-shadow(4px 7px 4px rgba(0, 0, 0, 0.3));
}

.gm-style-iw-d:has(.gustavo-card),
.gm-style-iw-d:has(.gustavo-item),
.gm-style-iw-d:has(.gustavo-image) {
  overflow: visible !important;
}

.gm-style-iw-d:has(.gustavo-item--on-ground) {
  translate: 0 15vh;
}

.gm-style-iw-d:has(.gustavo-item--animita) {
  translate: 0 20vh;
}

.gm-style-iw-d:has(.gustavo-item--noninteractive) {
  pointer-events: none;
}

.gustavo-item {
  transition: filter 150ms;
  cursor: pointer;
  scale: 1;
  user-select: none;
}

.vg-item {
  cursor: default;
}

.gustavo-item--highlighted,
#coca-cola-truck:hover {
  filter: brightness(200%);
}

.gustavo-item > iframe {
  box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.2);
}

@property --vignette-size {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 75%;
}

@property --vignette-pos-x {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 50%;
}

@property --vignette-pos-y {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 50%;
}

@keyframes image-fade-pulse {
  0% {
    --vignette-size: 70%;
    --vignette-pos-x: 50%;
    --vignette-pos-y: 50%;
    filter: brightness(1.1);
  }

  20% {
    --vignette-pos-x: 52%;
    --vignette-pos-y: 48%;
  }

  25% {
    --vignette-size: 72%;
    filter: brightness(1.17);
  }

  30% {
    filter: brightness(1.08);
  }

  40% {
    --vignette-pos-x: 48%;
    --vignette-pos-y: 49%;
  }

  47% {
    filter: brightness(1.12);
  }

  50% {
    --vignette-size: 66%;
    filter: brightness(1.08);
  }

  63% {
    --vignette-pos-x: 51%;
    --vignette-pos-y: 48%;
  }

  77% {
    filter: brightness(1.15);
  }

  90% {
    --vignette-size: 71%;
    filter: brightness(1.09);
  }

  93% {
    filter: brightness(1.13);
  }

  95% {
    --vignette-pos-x: 49%;
    --vignette-pos-y: 51%;
  }

  100% {
    --vignette-size: 70%;
    --vignette-pos-x: 50%;
    --vignette-pos-y: 50%;
    filter: brightness(1.1);
  }
}

.gustavo-image--fade {
  --vignette-size: 75%;
  animation: image-fade-pulse 2s linear infinite;
  mask-image: radial-gradient(at var(--vignette-pos-x) var(--vignette-pos-y),
      rgb(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 0) var(--vignette-size),
      transparent 100%);
  opacity: 0.85;
  filter: brightness(1.1);
}

.sky-images:not([hidden]) {
  animation: fade-in 2s var(--intro-darkness-duration) both;
  mix-blend-mode: screen;
}

.sky-image {
  position: fixed;
  width: 100vw;
  top: 0;
  left: 0;
  z-index: 4;
  opacity: 0.3;
  pointer-events: none;
  transform: perspective(100px) rotate3d(1, 0, 0, -7deg) translateY(45px);
}

#jaywalk,
#donate {
  animation: fade-in 700ms both;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 6;
  padding: 3rem;
  translate: -50% -50%;
}

#jaywalk {
  background: #5252ff;
  box-shadow: 4px 7px 4px rgba(0, 0, 0, 0.3);
}

#jaywalk-button,
#donate-button {
  appearance: none;
  border: none;
  cursor: pointer;
  background: none;
  display: flex;
  padding: 0;
  transition: top 0.05s linear, filter 0.05s linear;
}

#donate-button {
  width: 20rem;
}

#donate-button:hover {
  filter: brightness(90%);
}

#jaywalk-button {
  width: 10rem;
  height: 10rem;
  filter: drop-shadow(0 10px 0 #f27a7a);
  position: relative;
  top: -5px;
  transition: top 0.05s linear, filter 0.05s linear;
}

#jaywalk-button:active {
  filter: drop-shadow(0 2px 0 #f27a7a);
  top: -2px;
}

#jaywalk-button img,
#donate-button img {
  width: 100%;
  height: 100%;
}

#jaywalk-button img {
  overflow: hidden;
  border-radius: 5rem;
}

@keyframes drone-flyby {
  0% {
    translate: -100% 0;
    scale: 1;
  }

  35% {
    translate: 100vw 25vh;
    scale: 0.9;
  }

  100% {
    translate: calc(50vw - 50%) 15vh;
    scale: 0.01;
  }
}

#drone {
  animation: drone-flyby 3s ease-in-out both paused;
  position: fixed;
  z-index: 6;
  top: 0;
  left: 0;
  width: 400px;
  pointer-events: none;
}

#drone-hovering {
  opacity: 0;
  pointer-events: none;
  translate: 0 -100vh;
  transition: translate 2s cubic-bezier(0.475, -0.070, 0.445, 1.360);
}

#drone-hovering.drone-hovering--visible {
  opacity: 1;
  translate: 0 0;
}

#bus-dialog-form {
  font-size: 1.5rem;
  padding: 1rem;
}

#bus-dialog-form p {
  margin: 0 0 1rem;
}

#bus-dialog-form button {
  display: block;
  margin: 0 auto;
}

.handheld-explosion {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

#toast {
  transition: opacity 0.5s, translate 0.5s;
  position: fixed;
  font-weight: bold;
  bottom: 4rem;
  left: 50%;
  font-size: 1.5rem;
  color: white;
  text-shadow: var(--text-shadow);
}

#toast[hidden] {
  display: block;
  opacity: 0;
  pointer-events: none;
  translate: -50% 30%;
}

#toast:not([hidden]) {
  opacity: 1;
  translate: -50% 0%;
}

#task:not([hidden]) {
  animation: fade-in 500ms both;
  color: white;
  text-shadow: var(--text-shadow);
  padding: 0.5rem;
  font-size: 1.25rem;
  background: #12548ed0;
  order: -1;
  margin-left: -0.8rem;
  margin-right: auto;
}

#task::before {
  content: "\01f449";
  margin-right: 0.5ch;
}

.cme-logos {
  display: block;
  max-width: 50%;
  margin: 2rem auto;
}

#journal-entries {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.journal__entry {
  padding: 1rem;
}

.journal__entry+.journal__entry {
  border-top: solid 1px rgba(0, 0, 0, 0.1);
}

.journal__entry--chapter+.journal__entry {
  border-top: solid 1px var(--color-blue);
}

.journal__entry--chapter {
  padding-left: 0;
}

.journal__entry--item {
  padding-left: 2rem;
}

.journal__entry--moment {
  display: flex;
  gap: 0.5rem;
}

.journal__entry--moment::before {
  content: '\002014';
  margin-right: 1ch;
  opacity: 0.4;
}

.journal__entry h1,
.journal__entry h2 {
  align-items: center;
  display: flex;
  font-size: inherit;
  margin: 0;
}

.journal__entry figure {
  margin: 0;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.journal__entry img,
#animita-dialog-form img {
  height: 4rem;
}

.replay-chapter {
  margin-right: 0;
  margin-left: auto;
}

.replay-chapter:hover {
  text-decoration: none;
}

.replay-chapter::before {
  content: '▶';
  margin-right: 0.5ch;
}

.journal-button__indicator:not([hidden]) {
  position: absolute;
  height: 2rem;
  width: 2rem;
  font-size: 1rem;
  line-height: 1;
  align-items: center;
  justify-content: center;
  display: flex;
  background: red;
  border-radius: 50%;
  left: 0.25rem;
}

.about-frame {
  border: none;
  height: 100%;
  width: 100%;
}

@keyframes thumb {
  from {
    rotate: -90deg;
  }

  to {
    rotate: 0;
  }
}

#hitch-thumb:not([hidden]) {
  animation: thumb 1s both;
  transform-origin: 100% 100%;
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
  width: 30vw;
}

#coca-cola-truck:not([hidden]) {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 0;
  translate: 0 -50%;
  transition: filter 150ms;
  cursor: pointer;
}

.hud__dialog--modal::backdrop {
  animation: fade-in 1s both;
  background: #0005;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

#safari-dialog {
  width: 30vw;
  height: 40vh;
}

#safari-ok {
  display: block;
  margin: 2rem auto;
}

#iching-dialog {
  height: max-content;
  width: 30vw;
}

.hud__form {
  position: relative;
  width: 100%;
  margin-top: 1rem;
  box-sizing: border-box;
  padding: 1rem;
}

.hud__form fieldset {
  border-color: var(--color-blue);
  border-width: 1px;
  margin-bottom: 1rem;
}

.hud__form legend {
  font-weight: bold;
}

.hud__form button[type="submit"] {
  margin: 2rem auto 0;
}

.hud__form input[type="text"] {
  appearance: none;
  border: solid 1px var(--color-blue);
  border-radius: 0;
  font: inherit;
  padding: 0.5rem;
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0.5rem 0 1rem;
  background: white;
  color: inherit;
}

.hud__form p {
  margin: 1rem 0 2rem;
}

.hud__form label {
  cursor: pointer;
}

#credits:not([hidden]) {
  border: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
}

#credits-map {
  opacity: 0;
}

#animita-editor:not([hidden]) {
  position: fixed;
  bottom: 3rem;
  left: 50%;
  translate: -50% 0;
  animation: fade-in 1s both;
  z-index: 3;
}

#animita-dialog-form {
  font-size: 1.25rem;
}

#animita-dialog-items {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

#animita-dialog-items label {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.promo {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  align-items: center;
  justify-content: center;
  flex-flow: column wrap;
}

#intro-video {
  aspect-ratio: 16 / 9;
  max-width: 100%;
  height: auto;
}

#new-game-button {
  align-self: stretch;
}

#next-checkpoint-button {
  animation: fade-in 1s both;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  font-size: 1.25rem;
  background-color: var(--color-blue);
  color: white;
}

.demo #next-checkpoint-button {
  bottom: 3rem;
}

#demo-view {
  animation: fade-in 1s 3s both;
  position: fixed;
  bottom: 0;
  z-index: 10;
  width: 100vw;
  color: white;
  padding: 0.5rem 0.25rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  background: #0003;
  backdrop-filter: blur(20px);
}

#demo-view[hidden] {
  display: none;
}

#demo-part {
  font-weight: bold;
}
