/* Add TTF font */
@font-face {
  font-family: "8bitOperatorPlus";
  src: url("../../assets/fonts/8-bit-operator/8bitOperatorPlus8-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
.pane {
  padding: 1rem;
  border: 3px solid white;
  font-family: "8bitOperatorPlus", sans-serif;
  color: white;
}

.full-background {
  background: linear-gradient(to top, #C474CB, #040B4A);
}

#new-player {
  position: absolute;
  z-index: 4;
  font-family: "8bitOperatorPlus", sans-serif;
  width: min(90%, 20rem);
  top: 40%;
  left: calc(50% - min(90%, 20rem) / 2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(to top, #C474CB, #040B4A);
  transition: 1s;
}
#new-player form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
#new-player form .fieldset {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
#new-player form .fieldset input {
  background-color: transparent;
  border: 3px solid white;
  color: white;
  padding: 0.25rem;
  font-family: "8bitOperatorPlus", sans-serif;
}
#new-player form button {
  color: white;
  padding: 0.5rem;
  border: 3px solid white;
  background-color: transparent;
  cursor: pointer;
  width: 100%;
}
#new-player form button:hover {
  background-color: white;
  color: #C474CB;
}

@keyframes shakeFlash {
  /* position jitter */
  0%, 100% {
    transform: translate(0, 0);
    background: none;
  }
  10% {
    transform: translate(-6px, -6px);
    background: rgba(255, 0, 0, 0.35);
  }
  20% {
    transform: translate(6px, 6px);
    background: rgba(255, 0, 0, 0.4);
  }
  30% {
    transform: translate(-5px, 4px);
    background: rgba(255, 0, 0, 0.25);
  }
  40% {
    transform: translate(5px, -4px);
    background: rgba(255, 0, 0, 0.3);
  }
  50% {
    transform: translate(-4px, 3px);
    background: rgba(255, 0, 0, 0.2);
  }
  60% {
    transform: translate(4px, -3px);
    background: rgba(255, 0, 0, 0.15);
  }
  70% {
    transform: translate(-2px, 2px);
    background: rgba(255, 0, 0, 0.1);
  }
  80% {
    transform: translate(2px, -2px);
    background: rgba(255, 0, 0, 0.08);
  }
  90% {
    transform: translate(-1px, 1px);
    background: rgba(255, 0, 0, 0.05);
  }
}
@keyframes killFlash {
  0%, 100% {
    background: none;
  } /* normal */
  12% {
    background: rgba(255, 255, 255, 0.15);
  } /* muted white pop   */
  38% {
    background: rgba(196, 116, 203, 0.05);
  } /* gentle purple glow */
  75% {
    background: rgba(4, 11, 74, 0.02);
  }
}
@keyframes lastLife {
  0%, 100% {
    background: none;
  }
  50% {
    background: rgba(255, 0, 0, 0.05);
  }
}
@keyframes playerEvent {
  0% {
    transform: scale(1.01);
    color: white;
  }
  100% {
    transform: scale(0.1);
    color: transparent;
    transform: translate(0, -20px);
  }
}
@keyframes slowPulse {
  0%, 100% {
    transform: scale(1) rotate(-10deg);
  }
  50% {
    transform: scale(1.05) rotate(-10deg);
  }
}
@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

body {
  height: 100vh;
  width: 100vw;
  line-height: 1.5;
  overflow: hidden;
  background: linear-gradient(to top, #C474CB, #040B4A);
  position: relative;
}
body #game-canvas {
  z-index: 0;
  position: relative;
  width: 100%;
  height: 100%;
}
body .player-hurt {
  animation: shakeFlash 0.5s ease-in-out;
}
body .kill-flash {
  animation: killFlash 0.5s ease-in-out both;
}
body .last-life {
  animation: lastLife 1s ease-in-out both infinite;
}
body .hidden {
  display: none;
}
body .game-ui {
  z-index: 1;
}
body .game-ui.always-visible {
  display: block;
}
body #game-events {
  position: absolute;
  top: 2rem;
  left: 2rem;
  margin: 0;
  padding: 0;
  font-family: "8bitOperatorPlus", sans-serif;
  color: white;
  list-style: none;
  -webkit-mask-image: linear-gradient(#000 30%, transparent);
  mask-image: linear-gradient(#000 30%, transparent);
}
@media (max-width: 768px) {
  body #game-events {
    display: none;
  }
}
body #game-events li {
  padding: 0;
  margin: 0 0 0.8rem;
}
body #player-stats {
  position: absolute;
  width: min(500px, 20rem);
  bottom: 2rem;
  left: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
@media (max-width: 768px) {
  body #player-stats {
    font-size: 0.8rem;
    width: calc(50% - 1.2rem);
    gap: 0.5rem;
    top: 1rem;
    left: 1rem;
    bottom: auto;
  }
}
body #player-stats .player-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media (max-width: 768px) {
  body #player-stats .player-stats-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
body #player-stats #player-boost {
  width: 100%;
  height: 2rem;
  position: relative;
  border: 2px solid white;
}
body #player-stats #player-boost #player-boost-bar {
  position: absolute;
  height: 100%;
  width: 100%;
  background-color: white;
  transition: width 0.3s;
}
body #player-stats #player-lives {
  width: 100%;
  height: 1rem;
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 2rem;
}
body #player-stats #player-lives li {
  display: block;
  height: 100%;
  width: 100%;
  border: 1px solid white;
}
body #player-stats #player-lives li div {
  height: 100%;
  background-color: white;
  transition: width 0.3s;
}
body #player-stats #player-lives li div.regenerating {
  animation: regenerate 1s linear infinite;
}
@keyframes regenerate {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
body #top-5-players {
  position: absolute;
  top: 2rem;
  right: 2rem;
  overflow-y: auto;
  overflow-x: hidden;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (max-width: 768px) {
  body #top-5-players {
    font-size: 0.8rem;
    top: 1rem;
    right: 1rem;
    width: calc(50% - 1.2rem);
  }
}
body #top-5-players li {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0 0.5rem;
}
body #top-5-players li.active-player {
  color: #040B4A;
  background-color: white;
  border-radius: 5px;
}
body #top-5-players li:last-child {
  margin-bottom: 0;
}
body #top-5-players li span:last-child {
  font-family: monospace;
  font-size: 1rem;
}
@media (max-width: 768px) {
  body #top-5-players li span:last-child {
    font-size: 0.8rem;
  }
}
body #player-event-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}
body #player-event-container p {
  position: absolute;
  display: block;
  font-family: "8bitOperatorPlus", sans-serif;
  font-size: 1.5rem;
  color: transparent;
  animation: playerEvent 0.5s ease-in-out;
}
body #overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}
body #loading {
  position: absolute;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 4rem;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, #C474CB, #040B4A);
  font-family: "8bitOperatorPlus", sans-serif;
  color: white;
}
body #loading #loading-title-container {
  position: relative;
  text-align: center;
}
body #loading #loading-title-container h1 {
  font-size: 4rem;
}
@media (max-width: 768px) {
  body #loading #loading-title-container h1 {
    font-size: 2.5rem;
  }
}
body #loading #loading-title-container h2 {
  font-size: 2rem;
  position: absolute;
  bottom: 0;
  right: -20%;
  color: lightgreen;
  font-weight: bold;
  animation: slowPulse 3s ease-in-out infinite;
}
@media (max-width: 768px) {
  body #loading #loading-title-container h2 {
    font-size: 1.5rem;
  }
}
body #loading #loading-spinner {
  width: 5rem;
  height: 5rem;
  border-top-color: white;
  animation: spin 5s linear infinite;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
body .fade-out {
  animation: fadeOut 0.5s ease-in-out forwards;
}/*# sourceMappingURL=styles.css.map */