:root {
  color-scheme: dark;
  --void: #000;
  --green: #24f25a;
  --green-hot: #9dffb1;
  --ice: #c7ffd0;
  --ink: #030503;
  --muted: rgba(191, 238, 199, 0.56);
  --hairline: rgba(140, 255, 181, 0.24);
  --title-menu-typeface: "Times New Roman", Times, serif;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--void);
}

* {
  box-sizing: border-box;
}

html,
body,
#experience {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--void);
}

body {
  color: var(--ice);
  overscroll-behavior: none;
  user-select: none;
}

button,
iframe {
  font: inherit;
}

#city {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

.atmosphere,
.atmosphere > div {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.atmosphere {
  z-index: 4;
}

body.is-game-runtime-active #city,
body.is-game-runtime-active .atmosphere,
body.is-game-runtime-active .city-instructions {
  visibility: hidden;
}

.vignette {
  background: radial-gradient(ellipse at center, transparent 61%, rgba(0, 0, 0, 0.42) 118%);
}

.feed-window {
  position: fixed;
  z-index: 3;
  overflow: hidden;
  width: 0;
  height: 0;
  opacity: 0;
  background: #020504;
  transform-origin: 0 0;
  transition: opacity 220ms linear;
  will-change: transform;
  pointer-events: none;
}

.feed-window.is-visible {
  opacity: 1;
}

.feed-window iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #020504;
  contain: strict;
  pointer-events: none;
}

.feed-window.is-fullscreen {
  z-index: 60;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto;
}

.feed-window.is-fullscreen iframe {
  pointer-events: auto;
}

.game-transition {
  position: fixed;
  z-index: 70;
  inset: 0;
  background: #000;
  opacity: 0;
  transition: opacity 480ms ease;
  pointer-events: none;
}

.game-transition.is-active {
  opacity: 1;
}

.boot {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
  transition: opacity 900ms ease, visibility 900ms;
}

.boot.is-finished {
  visibility: hidden;
  opacity: 0;
}

.boot__logo {
  display: block;
  width: min(160px, 31vw);
  height: auto;
  margin-bottom: 28px;
  opacity: 0;
  transition: opacity 160ms linear;
}

.boot.is-logo-ready .boot__logo {
  opacity: 1;
}

.boot__meter {
  width: min(230px, 55vw);
  height: 2px;
  overflow: hidden;
  background: rgba(196, 249, 226, 0.12);
  opacity: 0;
  transition: opacity 160ms linear;
}

.boot__meter span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 100ms linear;
}

.boot__status,
.city-instructions {
  color: var(--green);
  font-family: var(--title-menu-typeface);
  font-size: 17px;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  text-shadow: none;
}

.boot__status {
  margin: 14px 0 0;
  opacity: 0;
  transition: opacity 160ms linear;
}

.boot.is-logo-ready .boot__meter,
.boot.is-logo-ready .boot__status {
  opacity: 1;
}

.city-instructions {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 0;
  margin: 0;
  text-align: center;
  pointer-events: none;
}

.city-instructions__sentence {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  padding: 0 16px;
  opacity: 0;
  line-height: 1.15;
}

.city-instructions.is-visible .city-instructions__sentence {
  animation: city-instruction-cycle 39s linear infinite both;
}

.city-instructions.is-visible .city-instructions__sentence:nth-child(2) {
  animation-delay: 3s;
}

.city-instructions.is-visible .city-instructions__sentence:nth-child(3) {
  animation-delay: 6s;
}

.building-map {
  position: fixed;
  z-index: 24;
  top: 18px;
  left: 18px;
  width: min(560px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(59, 246, 101, 0.34);
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.58);
  color: rgba(223, 255, 233, 0.86);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  user-select: none;
}

.building-map[hidden] {
  display: none;
}

.building-map header,
.building-map__header-actions,
.building-map__actions,
.building-map__legend {
  display: flex;
  align-items: center;
}

.building-map header {
  justify-content: space-between;
  gap: 20px;
}

.building-map h2 {
  margin: 4px 0 0;
  color: rgba(237, 255, 242, 0.94);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.building-map__eyebrow {
  color: var(--green);
  font-family: "Courier New", monospace;
  font-size: 8px;
  letter-spacing: 0.18em;
}

.building-map__header-actions {
  flex: 0 0 auto;
  gap: 12px;
  color: rgba(206, 232, 214, 0.58);
  font-family: "Courier New", monospace;
  font-size: 9px;
}

.building-map button {
  min-height: 30px;
  border: 1px solid rgba(59, 246, 101, 0.28);
  background: rgba(7, 20, 11, 0.72);
  color: rgba(218, 255, 228, 0.82);
  cursor: pointer;
}

.building-map button:hover,
.building-map button:focus-visible {
  border-color: var(--green);
  color: #fff;
  outline: none;
}

.building-map button:disabled {
  cursor: default;
  opacity: 0.32;
}

#building-map-close {
  width: 30px;
  padding: 0;
  color: var(--green);
  font-size: 17px;
}

.building-map__instructions,
.building-map__status {
  font-family: "Courier New", monospace;
  font-size: 9px;
  line-height: 1.55;
}

.building-map__instructions {
  margin: 14px 0 12px;
  color: rgba(190, 222, 199, 0.52);
}

.building-map__stage {
  position: relative;
  width: 100%;
  max-height: 58vh;
  overflow: hidden;
  border: 1px solid rgba(115, 255, 154, 0.17);
  background:
    linear-gradient(rgba(56, 245, 102, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 245, 102, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 50% 100%, rgba(36, 242, 90, 0.08), transparent 56%),
    #020503;
  background-size: 10% 10%, 10% 10%, 100% 100%, 100% 100%;
}

.building-map__stage::after {
  position: absolute;
  right: 9px;
  bottom: 8px;
  color: rgba(98, 255, 139, 0.34);
  content: "FRONT";
  font-family: "Courier New", monospace;
  font-size: 7px;
  letter-spacing: 0.15em;
  pointer-events: none;
}

.building-map .building-map__building {
  position: absolute;
  z-index: 1;
  min-width: 6px;
  min-height: 6px;
  padding: 0;
  border-color: rgba(196, 255, 211, 0.56);
  background: rgba(102, 142, 111, 0.68);
  color: #001304;
  font-family: "Courier New", monospace;
  font-size: 7px;
  font-weight: 700;
  line-height: 1;
}

.building-map .building-map__building--fat {
  background: rgba(57, 201, 91, 0.62);
}

.building-map .building-map__building--chunky {
  background: rgba(159, 255, 179, 0.72);
}

.building-map .building-map__building.is-hero,
.building-map .building-map__building.is-landmark {
  z-index: 2;
  border-color: #eaffef;
  box-shadow: 0 0 0 1px rgba(36, 242, 90, 0.42), 0 0 10px rgba(36, 242, 90, 0.32);
}

.building-map .building-map__building.is-deleted {
  border-color: rgba(255, 91, 91, 0.74);
  background:
    linear-gradient(45deg, transparent 43%, rgba(255, 83, 83, 0.9) 44% 56%, transparent 57%),
    rgba(42, 7, 7, 0.66);
  box-shadow: none;
  color: rgba(255, 193, 193, 0.74);
  opacity: 0.64;
}

.building-map__legend {
  flex-wrap: wrap;
  gap: 8px 15px;
  margin: 11px 0 13px;
  color: rgba(202, 231, 211, 0.48);
  font-family: "Courier New", monospace;
  font-size: 8px;
}

.building-map__legend span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.building-map__legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(196, 255, 211, 0.56);
  background: rgba(102, 142, 111, 0.68);
}

.building-map__legend .is-fat {
  background: rgba(57, 201, 91, 0.62);
}

.building-map__legend .is-chunky {
  background: rgba(159, 255, 179, 0.72);
}

.building-map__legend .is-deleted {
  border-color: rgba(255, 91, 91, 0.74);
  background: rgba(85, 14, 14, 0.72);
}

.building-map__actions {
  gap: 9px;
}

.building-map__actions button {
  flex: 1 1 0;
  padding: 7px 12px;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#building-map-copy {
  border-color: rgba(63, 255, 110, 0.58);
  background: rgba(22, 96, 40, 0.56);
  color: #e3ffea;
}

.building-map__status {
  min-height: 28px;
  margin: 11px 0 0;
  color: rgba(137, 255, 167, 0.7);
}

.building-map__clipboard-fallback {
  position: fixed;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

@media (max-width: 640px) {
  .building-map {
    padding: 14px;
  }

  .building-map h2 {
    font-size: 12px;
  }

  .building-map__stage {
    max-height: 52vh;
  }
}

.error-panel {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: none;
  place-content: center;
  padding: 30px;
  background: #020403;
  color: #c7ffd0;
  font-family: "Courier New", monospace;
  letter-spacing: 0.16em;
  text-align: center;
}

.error-panel.is-visible {
  display: grid;
}

.error-panel p {
  color: var(--green);
}

.error-panel small {
  max-width: 560px;
  color: rgba(211, 244, 236, 0.54);
  line-height: 1.7;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes city-instruction-cycle {
  0% {
    opacity: 0;
  }

  1.282051%,
  6.410256% {
    opacity: 1;
  }

  7.692308%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .boot,
  .boot__logo,
  .boot__meter,
  .boot__meter span,
  .boot__status {
    transition: none;
  }
}
