@font-face {
  font-family: "RetroGaming";
  font-style: normal;
  font-weight: 400;
  src: url(../fonts/RetroGaming.ttf) format("truetype");
}

* {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  display: none;
}

.text-gold {
  font-weight: bold;
  font-size: 48px;
  background: linear-gradient(45deg, #b8860b, #ffd700, #fff8b0, #ffd700, #b8860b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/*---------------------------------------------------------------------------------------------*/
/* BootScreen
/*---------------------------------------------------------------------------------------------*/
.BootScreen-bg {
  --slash: 100%;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: #000000;
  background: linear-gradient(133deg, rgba(0, 0, 0, 1) 0%, rgba(117, 117, 117, 1) var(--slash), rgba(0, 0, 0, 1) 100%);
  cursor: pointer;
}

.BootScreen-studioLogo {
  --horizontal: 14px;
  --vertical: 14px;
  position: absolute;
  left: 50%;
  top: calc(50% - 50px);
  transform: translate(-50%, -50%);
  box-shadow: var(--horizontal) var(--vertical) 0px 0px rgba(0, 0, 0, 1);
  cursor: pointer;
}

.BootScreen-studioName {
  --horizontal: 14px;
  --vertical: 14px;
  position: absolute;
  left: 50%;
  top: calc(50% + 50px);
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: #ffffff;
  text-align: center;
  cursor: pointer;
  text-shadow: var(--horizontal) var(--vertical) 12px rgb(0, 0, 0);
}

/*---------------------------------------------------------------------------------------------*/
/* StartScreen
/*---------------------------------------------------------------------------------------------*/
.StartScreen-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.StartScreen-viewUI {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}

.StartScreen-viewUI-title {
  width: 300px;
}

.StartScreen-viewUI-mainFrame {
  width: 90%;
  max-height: 50%;
  height: 400px;
  border-image-slice: 13 13 13 13;
  border-image-width: 20px 20px 20px 20px;
  border-image-source: url(../textures/menus/menu_border.png);
  border-style: solid;
  display: flex;
  flex-direction: column;
  padding: 25px;
  background-color: #000000d6;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border-radius: 14px;
  flex-wrap: wrap;
}

.StartScreen-viewUI-mainFrame-item {
  font-family: "RetroGaming";
  font-size: 40px;
  color: #ffffff;
  text-align: center;
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 10px;
  transform-origin: center;
  transition: transform 0.1s ease-in-out;
  cursor: pointer;
  width: 150px;
}

.StartScreen-viewUI-mainFrame-item:active,
.StartScreen-viewUI-mainFrame-item:hover {
  transform: scale(1.2);
}

/*---------------------------------------------------------------------------------------------*/
/* MarketplaceScreen
/*---------------------------------------------------------------------------------------------*/
.MarketplaceScreen-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.MarketplaceScreen-viewUI {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}

.MarketplaceScreen-viewUI-title {
  margin-top: 20px;
  width: 300px;
}

.MarketplaceScreen-viewUI-mainFrame {
  width: 90%;
  max-height: 50%;
  flex: 1;
  margin-top: 20px;
  margin-bottom: 20px;
  border-image-slice: 13 13 13 13;
  border-image-width: 20px 20px 20px 20px;
  border-image-source: url(../textures/menus/menu_border.png);
  border-style: solid;
  display: flex;
  flex-direction: column;
  padding: 25px;
  background-color: #000000d6;
  border-radius: 14px;
}

.MarketplaceScreen-viewUI-mainFrame-inner {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  max-height: 100%;
}

.MarketplaceScreen-viewUI-mainFrame-pack,
.MarketplaceScreen-viewUI-mainFrame-item {
  display: flex;
  flex-direction: column;
  border: 2px solid #ffcc00;
  border-radius: 12px;
  margin-bottom: 10px;
}

.MarketplaceScreen-viewUI-mainFrame-pack-header,
.MarketplaceScreen-viewUI-mainFrame-item-header {
  display: flex;
  align-items: center;
  background-color: #d1ac3c;
  font-size: 16px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  padding: 8px;
  background-image: url(../textures/menus/pack_bg.png);
  background-size: cover;
  border-bottom: 0;
}

.MarketplaceScreen-viewUI-mainFrame-pack-header-items {
  display: flex;
  margin-left: 10px;
}

.MarketplaceScreen-viewUI-mainFrame-pack-header-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 35px;
}

.MarketplaceScreen-viewUI-mainFrame-pack-header-item-nb {
  font-family: 'RetroGaming';
}

.MarketplaceScreen-viewUI-mainFrame-pack-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  background-color: #bbedff78;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  border-top: 0;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.25);
  color: #fff;
  font-family: "RetroGaming";
  font-size: 25px;
}

.MarketplaceScreen-viewUI-mainFrame-pack-footer-buyBtn {
  background: linear-gradient(#38d964, #1fa94b);
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  padding: 8px 18px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 4px 0 #147a34, inset 0 2px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.1s;
  margin-bottom: 10px;
  font-family: "RetroGaming";
}

.MarketplaceScreen-viewUI-mainFrame-pack-footer-buyBtn:active,
.MarketplaceScreen-viewUI-mainFrame-pack-footer-buyBtn:hover {
  transform: scale(1.2);
}

.MarketplaceScreen-viewUI-mainFrame-item-header-icon {
  width: 64px;
  height: 64px;
}

.MarketplaceScreen-viewUI-mainFrame-item-header-name {
  font-family: "RetroGaming";
  font-size: 30px;
  margin-left: 15px;
}

.MarketplaceScreen-viewUI-back {
  width: 300px;
  margin-bottom: 10px;
}

@media (orientation: landscape) {
  .MarketplaceScreen-viewUI-mainFrame {
    max-height: 50%;
  }
}

@media (orientation: portrait) {
  .MarketplaceScreen-viewUI-mainFrame {
    max-height: 70%;
  }
}

/*---------------------------------------------------------------------------------------------*/
/* RankingScreen
/*---------------------------------------------------------------------------------------------*/
.RankingScreen-viewUI {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}

.RankingScreen-viewUI-title {
  width: 300px;
}

.RankingScreen-viewUI-mainFrame {
  width: 90%;
  max-height: 50%;
  flex: 1;
  margin-top: 20px;
  margin-bottom: 20px;
  border-image-slice: 13 13 13 13;
  border-image-width: 20px 20px 20px 20px;
  border-image-source: url(../textures/menus/menu_border.png);
  border-style: solid;
  display: flex;
  flex-direction: column;
  padding: 25px;
  background-color: #000000d6;
  border-radius: 14px;
}

.RankingScreen-viewUI-mainFrame-inner {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  max-height: 100%;
}

.RankingScreen-viewUI-mainFrame-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #1f2933, #111827);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.RankingScreen-viewUI-mainFrame-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.RankingScreen-viewUI-mainFrame-item-rank {
  color: #c1c1c1;
  font-weight: bold;
  font-size: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.RankingScreen-viewUI-mainFrame-item-name {
  flex: 1;
  font-size: 20px;
  color: #f9fafb;
  font-family: "RetroGaming";
}

.RankingScreen-viewUI-mainFrame-item-points {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 14px;
  font-weight: 500;
  color: #34d399;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: bold;
  letter-spacing: 2px;
  font-family: "RetroGaming";
}

.RankingScreen-viewUI-back {
  width: 300px;
  margin-bottom: 10px;
}

@media (orientation: landscape) {
  .RankingScreen-viewUI-mainFrame {
    max-height: 50%;
  }
}

@media (orientation: portrait) {
  .RankingScreen-viewUI-mainFrame {
    max-height: 70%;
  }
}

/*---------------------------------------------------------------------------------------------*/
/* SettingsScreen
/*---------------------------------------------------------------------------------------------*/
.SettingsScreen-viewUI {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}

.SettingsScreen-viewUI-title {
  width: 300px;
}

.SettingsScreen-viewUI-mainFrame {
  width: 90%;
  max-height: 50%;
  flex: 1;
  margin-top: 20px;
  margin-bottom: 20px;
  border-image-slice: 13 13 13 13;
  border-image-width: 20px 20px 20px 20px;
  border-image-source: url(../textures/menus/menu_border.png);
  border-style: solid;
  display: flex;
  flex-direction: column;
  padding: 25px;
  background-color: #000000d6;
  border-radius: 14px;
  overflow-y: scroll;
}

.SettingsScreen-viewUI-input {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  margin: 20px auto;
  font-family: "RetroGaming", monospace;
}

.SettingsScreen-viewUI-input-volume-label {
  color: #d6c4a2;
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  text-shadow:
    0 0 3px rgba(214, 196, 162, 0.4),
    0 0 6px rgba(0, 0, 0, 0.8);
}

.SettingsScreen-viewUI-input-volume {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 14px;
  background: linear-gradient(90deg,
      #3a2614,
      #5a3a1e,
      #7a4f2a,
      #5a3a1e,
      #3a2614);
  border-radius: 20px;
  outline: none;
  cursor: pointer;
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.8),
    0 2px 6px rgba(0, 0, 0, 0.8);
}

.SettingsScreen-viewUI-input-volume::-webkit-slider-runnable-track {
  height: 14px;
  border-radius: 20px;
}

.SettingsScreen-viewUI-input-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  background: radial-gradient(circle,
      #c7a16b,
      #6a3f1a);
  border-radius: 50%;
  margin-top: -6px;
  border: 2px solid #3a2614;
  box-shadow:
    inset 0 1px 3px rgba(255, 255, 255, 0.2),
    0 2px 6px rgba(0, 0, 0, 0.9);
}

@media (orientation: landscape) {
  .SettingsScreen-viewUI-mainFrame {
    max-height: 50%;
  }
}

@media (orientation: portrait) {
  .SettingsScreen-viewUI-mainFrame {
    max-height: 70%;
  }
}

/*---------------------------------------------------------------------------------------------*/
/* LocalScreen
/*---------------------------------------------------------------------------------------------*/
.LocalScreen-loadingBg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1000;
  cursor: pointer;
}

.LocalScreen-loadingLabel {
  position: absolute;
  bottom: 20px;
  display: block;
  width: 100%;
  font-size: 24px;
  color: #ffffffa4;
  text-align: center;
  z-index: 99999999;
  font-family: "Montserrat", sans-serif;
  font-display: block;
  font-weight: 700;
  font-style: italic;
  animation: blink 3s infinite;
  cursor: pointer;
}

/*---------------------------------------------------------------------------------------------*/
/* StagesScreen
/*---------------------------------------------------------------------------------------------*/
.StagesScreen-viewUI {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}

.StagesScreen-viewUI-title {
  width: 300px;
}

.StagesScreen-viewUI-inner {
  display: block;
  overflow-y: scroll;
  max-height: 70%;
  width: 100%;
}

.StagesScreen-map {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 40px;
  margin-top: 85px;
}

.StagesScreen-map-stage {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-top: -60px;
  margin-right: -80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.StagesScreen-map-stage-number {
  position: absolute;
  top: -10px;
  right: -40px;
  font-family: "RetroGaming";
}

.StagesScreen-map-stage-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(../levels/beach/background.gif);
  background-size: cover;
  border-radius: 50%;
  z-index: -1;
  box-shadow: inset 0 -6px 0 #4d5529, inset 0 -13px 0 #fffabc;
}

.StagesScreen-map-stage-line {
  position: absolute;
  left: 50%;
  top: 45px;
  height: 75%;
  width: 6px;
  z-index: -3;
  background: #2f2f2f;
  transform: translateX(-50%);
  border-radius: 10px;
  transform: rotate(55deg) translateX(-6px);
  transition: transform 0.2s ease;
  transform-origin: top left;
  border-radius: 10px;
  background: repeating-linear-gradient(to bottom, #00f7ff, #00f7ff 6px, #121212 6px, #121212 12px);
  box-shadow: 0 0 12px #00f7ff, 0 0 24px #00f7ff inset;
  background-size: 100% 12px;
  animation: dottedMove 1s linear infinite;
}

.StagesScreen-map-stage-status {
  display: none;
}

.StagesScreen-map-stage:last-of-type .StagesScreen-map-stage-line {
  display: none;
}

.StagesScreen-map-stage:hover {
  transform: scale(1.1);
}

.StagesScreen-map-stage.left {
  margin-left: -160px;
}

.StagesScreen-map-stage.left .StagesScreen-map-stage-line {
  transform: rotate(-55deg) translateX(-6px);
}

.StagesScreen-map-stage.left .StagesScreen-map-stage-number {
  left: -50px;
}

.StagesScreen-map-stage.current .StagesScreen-map-stage-number {
  font-family: "RetroGaming", monospace;
  font-size: 28px;
  font-weight: bold;
  color: #7fff00;
  text-align: center;
  text-shadow: 0 0 4px #7fff00, 0 0 8px #7fff00, 0 0 12px #7fff00;
  animation: glowPulse 1.5s ease-in-out infinite alternate;
}

.StagesScreen-map-stage.done .StagesScreen-map-stage-status {
  display: block;
}

.StagesScreen-map-stage.current {
  background: #ffd43b;
  box-shadow: inset 0 -6px 0 #e6b800, 0 0 15px #ffd43b;
  color: #111;
  animation: pulse 1.5s infinite;
  transform: scale(1.2);
}

.StagesScreen-map-stage.locked {
  background: #3a3a3a;
  box-shadow: inset 0 -6px 0 #2a2a2a;
  color: #777;
  cursor: not-allowed;
}

.StagesScreen-map-stage.locked .StagesScreen-map-stage-bg {
  box-shadow: inset 0 89px 0 #000000ad;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 212, 59, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(255, 212, 59, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 212, 59, 0);
  }
}

@keyframes dottedMove {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 0 12px;
  }
}

@media (orientation: landscape) {
  .StagesScreen-viewUI-inner {
    max-height: 50%;
  }
}

@media (orientation: portrait) {
  .StagesScreen-viewUI-inner {
    max-height: 70%;
  }
}

/*---------------------------------------------------------------------------------------------*/
/* Game TopUI
/*---------------------------------------------------------------------------------------------*/

.Game-topUI {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  right: 0;
  height: 100px;
  width: 100%;
  max-width: 760px;
}

.Game-topUI-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.Game-topUI-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 110%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 23%, rgba(0, 0, 0, 0.66) 68%, rgba(0, 0, 0, 0.52) 83%, rgba(0, 0, 0, 0) 100%);
  z-index: -1;
  border-bottom-left-radius: 65px;
  border-bottom-right-radius: 65px;
}

.Game-topUI-bar {
  position: absolute;
  width: 90%;
  left: 50%;
  height: 20px;
  top: 32px;
  transform: translate(-50%, 0);
  overflow-x: hidden;
  border-radius: 20px;
}

.Game-topUI-bar-label {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  color: #000000;
  top: 0;
  z-index: 22;
}

.Game-topUI-bar-bg,
.Game-topUI-bar-progression {
  position: absolute;
  width: 100%;
  height: 20px;
  border-radius: 20px;
}

.Game-topUI-star {
  position: absolute;
  top: 75px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  transform-origin: center center;
}

.Game-topUI-moves {
  position: absolute;
  top: 77px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  font-family: "RetroGaming";
  text-align: center;
  color: #000;
  font-size: 20px;
}

.Game-topUI-player-avatar {
  width: 50px;
}

.Game-topUI-player-items {
  position: relative;
  display: flex;
}

.Game-topUI-player-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 25px;
}

.Game-topUI-player-items-bomb-count {
  background-color: #ff3800;
  width: 15px;
  font-size: 13px;
  font-weight: bold;
  border-radius: 100%;
  text-align: center;
}

.Game-topUI-player {
  position: absolute;
  left: 10px;
  bottom: -5px;
  display: flex;
  align-items: center;
}

.Game-topUI-player.right {
  right: 10px;
  left: auto;
  flex-direction: row-reverse;
}

.Game-topUI-points {
  position: absolute;
  left: 25px;
  top: 5px;
  color: #fff;
  font-size: 20px;
  font-family: "RetroGaming";
}

.Game-topUI-score {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  top: 15px;
  color: #fff;
  font-size: 30px;
  font-family: "RetroGaming";
}

.Game-topUI-levels {
  position: absolute;
  right: 25px;
  top: 5px;
  color: #fff;
  font-size: 20px;
  font-family: "RetroGaming";
}

/*---------------------------------------------------------------------------------------------*/
/* Game BtnsUI
/*---------------------------------------------------------------------------------------------*/
.Game-btnsUI {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  display: flex;
  justify-content: space-between;
}

.Game-btnsUI-left {
  display: flex;
}

.Game-btnsUI-right {
  display: flex;
}

.Game-btnsUI-btn {
  width: 13vw;
  cursor: pointer;
}

.Game-btnsUI-btn.hide {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.Game-btnsUI-left .Game-btnsUI-btn:active {
  animation: btn-active-left 0.3s ease-in-out;
}

.Game-btnsUI-right .Game-btnsUI-btn:active {
  animation: btn-active-right 0.3s ease-in-out;
}

@keyframes btn-active-left {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }

  50% {
    transform: scale(1.2) rotate(7deg);
  }
}

@keyframes btn-active-right {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }

  50% {
    transform: scale(1.2) rotate(-7deg);
  }
}

.Game-starterUI {
  position: absolute;
  left: 50%;
  right: 0;
  top: 50%;
  bottom: 0;
  transform: translate(-50%, -50%);
  width: 80px;
}

.Game-confetti {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
}

/*---------------------------------------------------------------------------------------------*/
/* Game WinnerUI
/*---------------------------------------------------------------------------------------------*/
.Game-winnerUI {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: 0;
  padding-left: 20px;
  padding-right: 20px;
  height: 100vh;
  justify-content: center;
  align-items: center;
  background: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .85)) no-repeat;
  font-family: 'RetroGaming', sans-serif;
}

.Game-winnerUI.show {
  display: flex;
}

.Game-winnerUI-panel {
  background: rgba(0, 0, 0, .7);
  border: 3px solid #ffde00;
  padding: 40px 70px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 0 20px #ffde00, 0 0 60px rgba(255, 222, 0, .5);
  animation: winner-pulse 2s infinite alternate;
}

.Game-winnerUI-panel-title {
  font-size: 52px;
  color: #ffde00;
  text-shadow: 0 0 10px #ffde00, 0 0 25px #ffde00;
  margin-bottom: 10px;
}

.Game-winnerUI-panel-subtitle {
  font-size: 26px;
  color: #ffffff;
  margin-bottom: 20px;
}

.Game-winnerUI-panel-hint {
  font-size: 25px;
  color: #4dff4d;
  animation: winner-blink 1.2s infinite;
}

.Game-winnerUI-panel-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 13px;
  z-index: -1;
}

.Game-winnerUI-panel.red .Game-winnerUI-panel-title {
  color: #ff0000;
  text-shadow: 0 0 10px #ff0000, 0 0 25px #ff0000;
}
.Game-winnerUI-panel.red {
  border-color: #ff0000;
  box-shadow: 0 0 20px #ff0000, 0 0 60px rgba(255, 0, 0, .5);
}

@keyframes winner-blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .2;
  }
}

@keyframes winner-pulse {
  from {
    box-shadow: 0 0 20px #ffde00;
  }

  to {
    box-shadow: 0 0 40px #ffde00, 0 0 80px rgba(255, 222, 0, .7);
  }
}

/*---------------------------------------------------------------------------------------------*/
/* Themes
/*---------------------------------------------------------------------------------------------*/
#APP.forest {
  background-image: url(../stages/forest/background.gif);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center center;
}

#APP.forest #UI_ROOT {
  background-image: url(../stages/forest/foreground.gif);
  background-size: 100%;
  background-position: 9px -70px;
}

#APP.beach {
  background-image: url(../stages/beach/background.gif);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center center;
}

#APP.beach #UI_ROOT {
  background-image: url(../stages/beach/foreground.gif);
  background-size: 23%;
  background-repeat: no-repeat;
  background-position: 36px 98px;
  background-position-y: bottom;
}

#APP.snow {
  background-image: url(../stages/snow/background.gif);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center center;
}

#APP.snow #UI_ROOT {
  background-image: url(../stages/snow/foreground.gif);
  background-size: 100%;
  background-position: 9px -70px;
}

#APP.mountains {
  background-image: url(../stages/mountains/background.gif);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center center;
}

#APP.mountains #UI_ROOT {
  background-image: url(../stages/mountains/foreground.gif);
  background-size: 20%;
  background-repeat: no-repeat;
  animation: mountains 60s infinite linear;
}

@keyframes mountains {
  0% {
    background-position-x: 2200px;
    background-position-y: 100px;
  }

  100% {
    background-position-x: -2200px;
    background-position-y: 100px;
  }
}

#APP.city {
  background-image: url(../stages/city/background.gif);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center center;
}

#APP.city #UI_ROOT {
  background-image: url(../stages/city/foreground.gif);
  background-size: 39%;
  background-repeat: no-repeat;
}

#APP.cyber {
  background-image: url(../stages/cyber/background.gif);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center center;
}

#APP.cyber #UI_ROOT {
  background-image: url(../stages/cyber/foreground.webp);
  background-size: 50%;
  background-repeat: repeat;
}

#APP.fire {
  background-image: url(../stages/fire/background.gif);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center center;
}

#APP.fire #UI_ROOT {
  background-image: url(../stages/fire/foreground.webp);
  background-size: 50%;
  background-repeat: repeat;
}

#APP.moon {
  background-image: url(../stages/moon/background.gif);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center center;
}

#APP.moon #UI_ROOT {
  background-image: url(../stages/moon/foreground.gif);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

#APP.cosmos {
  background-image: url(../stages/cosmos/background.gif);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center center;
}

#APP.cosmos #UI_ROOT {
  background-image: url(../stages/cosmos/foreground.gif);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

#APP.sub {
  background-image: url(../stages/sub/background.gif);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center center;
}

#APP.sub #UI_ROOT {
  background-image: url(../stages/sub/foreground.gif);
  background-size: 41%;
  background-repeat: repeat-x;
  background-position-x: 306px;
  background-position-y: 191px;
}

#APP.halloween {
  background-image: url(../stages/halloween/background.gif);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center center;
}

#APP.halloween #UI_ROOT {
  background-image: url(../stages/halloween/foreground.gif);
  background-size: 16%;
  background-repeat: no-repeat;
  background-position-y: 62px;
  background-position-x: 252px;
}

/*---------------------------------------------------------------------------------------------*/
/* Animations
/*---------------------------------------------------------------------------------------------*/
.rotate-scale-up-centered {
  animation: rotate-scale-up-centered 0.65s linear both;
}

.heartbeat {
  animation: heartbeat 3.5s ease-in-out infinite both;
}

.slide-top {
  animation: slide-top 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@keyframes blink {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes rotate-scale-up-centered {
  0% {
    -webkit-transform: translate(-50%, -50%) scale(1) rotateZ(0);
    transform: translate(-50%, -50%) scale(1) rotateZ(0);
  }

  50% {
    -webkit-transform: translate(-50%, -50%) scale(2) rotateZ(180deg);
    transform: translate(-50%, -50%) scale(2) rotateZ(180deg);
  }

  100% {
    -webkit-transform: translate(-50%, -50%) scale(1) rotateZ(360deg);
    transform: translate(-50%, -50%) scale(1) rotateZ(360deg);
  }
}

@keyframes heartbeat {
  from {
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-transform-origin: center center;
    transform-origin: center center;
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }

  10% {
    -webkit-transform: scale(0.91);
    transform: scale(0.91);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }

  17% {
    -webkit-transform: scale(0.98);
    transform: scale(0.98);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }

  33% {
    -webkit-transform: scale(0.87);
    transform: scale(0.87);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }

  45% {
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }
}

@keyframes glowPulse {
  0% {
    text-shadow:
      0 0 2px #7fff00,
      0 0 4px #7fff00,
      0 0 6px #7fff00;
    color: #7fff00;
  }

  50% {
    text-shadow:
      0 0 6px #7fff00,
      0 0 12px #7fff00,
      0 0 18px #7fff00;
    color: #bfff40;
    /* vert légèrement plus clair */
  }

  100% {
    text-shadow:
      0 0 4px #7fff00,
      0 0 8px #7fff00,
      0 0 12px #7fff00;
    color: #7fff00;
  }
}

@keyframes slide-top {
  0% {
    -webkit-transform: translateY(100px);
    transform: translateY(100px);
  }

  100% {
    -webkit-transform: translateY(0px);
    transform: translateY(0px);
  }
}