@font-face {
  font-family: "Departure Mono";
  src:
    url("assets/DepartureMono-Regular.woff2") format("woff2"),
    url("assets/DepartureMono-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@keyframes traumaL {
  10% {
    transform: translateX(-8px);
  }

  80% {
    transform: translateX(2px);
  }

  50% {
    transform: translateX(0px);
  }
}

@keyframes traumaR {
  10% {
    transform: translateX(8px);
  }

  80% {
    transform: translateX(-2px);
  }

  50% {
    transform: translateX(0px);
  }
}

@keyframes traumaU {
  10% {
    transform: translateY(-8px);
  }

  80% {
    transform: translateY(2px);
  }

  50% {
    transform: translateY(0px);
  }
}

@keyframes traumaD {
  10% {
    transform: translateY(8px);
  }

  80% {
    transform: translateY(-2px);
  }

  50% {
    transform: translateY(0px);
  }
}

@keyframes flashColor {
  0% {
    color: white;
  }

  30% {
    color: inherit;
  }

  100% {
    color: inherit;
  }
}

.traumaR {
  animation:
    traumaR 0.2s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards,
    flashColor 0.5s ease-in-out forwards;
}

.traumaL {
  animation:
    traumaL 0.2s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards,
    flashColor 0.5s ease-in-out forwards;
}

.traumaU {
  animation:
    traumaU 0.2s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards,
    flashColor 0.5s ease-in-out forwards;
}

.traumaD {
  animation:
    traumaD 0.2s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards,
    flashColor 0.5s ease-in-out forwards;
}

@keyframes hop {
  0% {
    transform: translateY(-6px);
  }

  20% {
    transform: translateY(-8px);
  }

  50% {
    transform: translateY(-4px);
  }

  80% {
    transform: translateY(0px);
  }
}

@media (max-width: 600px) {
  @keyframes hop {
    0% {
      transform: translateY(-2px);
    }

    20% {
      transform: translateY(-4px);
    }

    50% {
      transform: translateY(-2px);
    }

    80% {
      transform: translateY(0px);
    }
  }
}

@keyframes leanL {
  0% {
    transform: rotate(-5deg);
  }

  100% {
    transform: rotate(-8deg);
  }
}

@keyframes leanR {
  0% {
    transform: rotate(5deg);
  }

  100% {
    transform: rotate(8deg);
  }
}

.moveL {
  animation:
    leanL 0.2s ease-in-out forwards,
    hop 0.2s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
}

.moveR {
  animation:
    leanR 0.2s ease-in-out forwards,
    hop 0.2s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
}

.moveU,
.moveD {
  animation: hop 0.2s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
}

@keyframes floatFade {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }

  40% {
    transform: translate3d(0, -20px, 20px) scale(0.85);
    opacity: 0.7;
  }

  80% {
    transform: translate3d(0, -40px, 40px) scale(0.65);
    opacity: 0.5;
  }

  100% {
    transform: translate3d(0, -50px, 50px) scale(0.5);
    opacity: 0;
  }
}

@media (max-width: 600px) {
  @keyframes floatFade {
    0% {
      transform: translate3d(0, 0, 0) scale(1);
      opacity: 1;
    }

    40% {
      transform: translate3d(0, -10px, 10px) scale(0.85);
      opacity: 0.7;
    }

    80% {
      transform: translate3d(0, -20px, 20px) scale(0.65);
      opacity: 0.5;
    }

    100% {
      transform: translate3d(0, -25px, 25px) scale(0.5);
      opacity: 0;
    }
  }
}

.floatFade {
  animation: floatFade 0.3s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
}

@keyframes zoomRotate {
  0% {
    transform: scale(1) rotate(0deg);
  }

  50% {
    transform: scale(1.2) rotate(5deg);
  }

  100% {
    transform: scale(1.4) rotate(10deg);
  }
}

.zoomRotate {
  animation: zoomRotate 2s linear forwards;
}

.isolate {
  isolation: isolate;
}

body {
  font-family: "Departure Mono", sans-serif;
  background: #ebebeb;
  color: #0d0d0d;
  margin: 0;
  user-select: none;
  /* disable scroll */
  touch-action: none;
  -ms-touch-action: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.overflow-hidden {
  overflow: hidden;
}

.z-40 {
  z-index: 40;
}

.z-50 {
  z-index: 50;
}

.rotate3D {
  transform: rotate3d(0, 0, 1, 360deg);
}

.opacity-0 {
  opacity: 0;
  pointer-events: none;
}

.min-w-4\/5 {
  width: 80%;
}

.w-4\/5 {
  width: 80%;
}

.min-w-\[480px\] {
  min-width: 480px;
}

.min-h-\[480px\] {
  min-height: 480px;
}

.opacity-transition-fast {
  transition: opacity 0.5s ease-in;
}

.opacity-transition-faster {
  transition: opacity 0.25s ease-in;
}

.opacity-transition {
  transition: opacity 6s ease-in;
}

.fadeIn {
  opacity: 0.2;
  transition: opacity 4s ease-in;
}

.fadeIn-full {
  opacity: 1;
  transition: opacity 1s ease-in 1s;
}

.fadeOut {
  opacity: 0;
  transition: opacity 1s ease-in;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.top-0 {
  top: 0;
}

.left-0 {
  left: 0;
}

translate-x-1\/2 {
  transform: translate(50%, 0);
}

.disable-zoom {
  user-select: none;
  touch-action: none;
  -ms-touch-action: none;
}

.hidden {
  display: none;
}

.\!hidden {
  display: none !important;
}

.h-screen {
  height: 100dvh;
}

.w-screen {
  width: 100vw;
}

.h-full {
  height: 100%;
}

.w-full {
  width: 100%;
}

.d-pad-button {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  width: 40px;
  padding: 4px;
}

.ml-\[32px\] {
  margin-left: 32px;
}

.border {
  border: 1px solid;
}

.border-2 {
  border: 2px solid;
}

.border-4 {
  border: 4px solid;
}

.min-w-\[100px\] {
  min-width: 100px;
}

.max-w-\[90px\] {
  max-width: 90px;
}

.max-w-\[144px\] {
  max-width: 144px;
}

.w-\[200px\] {
  width: 200px;
}

.w-\[260px\] {
  width: 260px;
}

.w-\[540px\] {
  width: 540px;
}

.px-2 {
  padding-left: 1em;
  padding-right: 1em;
}

.p-2 {
  padding: 1em;
}

.p-4 {
  padding: 2em;
}

.border-primary {
  border-color: #575757;
}

.text-primary {
  color: #575757;
}

.grid {
  display: grid;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0px, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0px, 1fr));
}

.grid-cols-16 {
  grid-template-columns: repeat(16, minmax(0px, 1fr));
}

.items-center {
  place-items: center;
}

.items-start {
  place-items: start;
}

.border-box {
  box-sizing: border-box;
}

.rounded-xs {
  border-radius: 0.25em;
}

.cell {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  box-sizing: border-box;
}

.bg-black {
  background: #0a0a0a;
}

.base {
  color: #0d0d0d;
  background: #ebebeb;
}

.invert {
  background: transparent;
  color: #ebebeb;
}

.color-yellow {
  color: #dfa404;
}

.color-warning {
  color: #e97d6f;
}

.color-faded {
  color: #7d8381;
}

.color-gray {
  color: #afaca4;
}

.color-green {
  color: #329a79;
}

.glyph {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  background: transparent;
}

.is-obscured {
  opacity: 0.5;
}

.bg-white {
  background: #ebebeb;
}

.fg-black {
  color: #000000;
}

.isSelected {
  border: 4px solid #7cc6fe;
}

.cursor-pointer {
  cursor: pointer;
}

.pointer-none {
  pointer-events: none;
}

.disabled {
  pointer-events: none;
  opacity: 0.5;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.text-lg {
  font-size: 1.6em;
}

.text-xl {
  font-size: 2em;
}

.text-2xl {
  font-size: 2.4em;
}

.text-3xl {
  font-size: 2.8em;
}

.text-4xl {
  font-size: 3.2em;
}

.text-5xl {
  font-size: 3.6em;
}

.content-center {
  justify-items: center;
  justify-content: center;
  align-items: center;
}

.align-center {
  text-align: center;
}

.justify-evenly {
  justify-content: space-evenly;
}

.gap-2 {
  gap: 2em;
}

.gap-4 {
  gap: 4em;
}

.gap-6 {
  gap: 6em;
}

.dark {
  background: #0a0a0a;
  color: #575757;
}

.text-transparent {
  color: transparent;
}

.warp {
  background: repeating-linear-gradient(45deg,
      #cccccc 0px,
      #cccccc 2px,
      transparent 1px,
      transparent 8px);
}

#announcement {
  width: 560px;
}

@keyframes blink {

  0%,
  20%,
  80%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.blinkCursor:after {
  content: "_";
  animation: blink 1.4s infinite;
}

@media (max-width: 600px) {
  .min-w-\[480px\] {
    min-width: 240px;
  }

  .min-h-\[480px\] {
    min-height: 240px;
  }

  .text-sm {
    font-size: 0.8em;
  }

  .text-lg {
    font-size: 1em;
  }

  .cell {
    width: 20px;
    height: 20px;
  }

  .glyph {
    width: 20px;
    height: 20px;
  }

  #announcement {
    width: 260px;
  }
}

.role-tab {
  background: #575757;
  color: #0a0a0a;
  border: 1px solid #575757;
  border-bottom: none;
  padding: 0.3em 0.6em;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 0 0 0.25em 0;
  z-index: 60;
}

.role-tab::before {
  content: "";
  position: absolute;
  top: 30px;
  left: -1px;
  height: 8px;
  width: 8px;
  border-top-left-radius: 50%;
  box-shadow: -2px -2px 0 0 #575757;
}

.role-tab::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -9px;
  height: 8px;
  width: 8px;
  border-top-left-radius: 50%;
  box-shadow: -2px -2px 0 0 #575757;
}