/* Fade-in ao entrar no game.html */
.game-fade-in {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #1a0933 url('../assets/images/jobs/bg-2.png') center center no-repeat;
  background-size: cover;
  z-index: 99999;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(.7,.2,.3,1);
}
.game-fade-in.hide {
  opacity: 0;
  pointer-events: none;
}
/* Layout diagonal para tela de julgamento */
.diagonal-layout {
  width: 100vw;
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  pointer-events: none;
}
.diagonal-team1 {
  position: absolute;
  top: 20vh;
  left: 4vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
  pointer-events: auto;
}
.diagonal-team2 {
  position: absolute;
  bottom: 25vh;
  right: 4vw;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 2;
  pointer-events: auto;
}
.diagonal-team1 .judging-banner {
  margin-bottom: 8px;
}
.diagonal-team2 .judging-banner {
  margin-bottom: 8px;
}
.diagonal-team1 .judging-life-bar-wrapper {
  margin-left: 12px;
}
.diagonal-team2 .judging-life-bar-wrapper {
  margin-right: 12px;
}
.diagonal-vs {
  font-family: MortalKombat1Font, monospace;
  position: absolute;
  top: 40%;
  left: 48%;
  transform: translate(-50%, -50%);
  font-size: 3.2rem;
  z-index: 3;
  pointer-events: none;
  text-align: center;
  text-shadow: 2px 2px 0 #ff2b7c, 0 0 8px #fff;
}
.diagonal-strike-row {
  position: absolute;
  left: 50%;
  bottom: 4vh;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
  gap: 32px;
  z-index: 10;
  pointer-events: auto;
}
/* Cronômetro no topo da Judge Time */
.judging-top-timer {
  position: absolute;
  top: 2.2vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  pointer-events: none;
}
.judging-joystick {
  width: 160px;
  height: 90px;
  object-fit: contain;
  margin: 0 8px 12px 8px;
  image-rendering: pixelated;
  z-index: 11;
}
.diagonal-strike-row .judging-strike-btn.team1 {
  margin-right: 0;
}
.diagonal-strike-row .judging-strike-btn.team2 {
  margin-left: 0;
}
.diagonal-strike-row .judging-strike-btn {
  min-width: 260px;
  min-height: 70px;
  font-size: 2.1rem;
  box-shadow: 6px 6px 0 #000;
  border-radius: 8px;
  border-width: 4px;
  pointer-events: auto;
}
.diagonal-team1 .judging-life-bar-wrapper {
  margin-top: 0;
}
.diagonal-team2 .judging-life-bar-wrapper {
  margin-top: 0;
}
.judging-banner.team1 {
  justify-content: flex-start;
}
.judging-banner.team2 {
  justify-content: flex-end;
}
.judging-banner-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 2.1rem;
  color: #2a1747;
  letter-spacing: 0.04em;
  margin-left: 48px;
  margin-right: 48px;
  text-shadow: 2px 2px 0 #ff2b7c;
}
.judging-banner-label.team2 {
  margin-left: 48px;
  margin-right: 80px;
}
.judging-banner-label.team1 {
  margin-left: 80px;
  margin-right: 48px;
}
.judging-time-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #1a0933 url('../assets/images/jobs/bg-2.png') center center no-repeat;
  background-size: cover;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s;
  pointer-events: auto;
  font-family: MortalKombat1Font, 'Press Start 2P', monospace;
  text-shadow: 1px 1px 0 #ff2b7c;

  
}
.judging-content {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.judging-banners-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100vw;
  margin-bottom: 0;
  gap: 0;
}
.judging-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 420px;
  max-width: 480px;
  margin: 0 0.5vw;
}
.judging-banner {
  width: 600px;
  height: 100px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5vw;
  margin-top: 0;
  position: relative;
}
.judging-banner-img {
  max-width: 320px;
  max-height: 80px;
  width: auto;
  height: 50px;
  display: block;
  margin: 0 auto;
  image-rendering: pixelated;
}
.judging-banner.team1 {
  background-image: url('../assets/images/game/faixa_diagnonal_esquerda.png');
}
.judging-banner.team2 {
  background-image: url('../assets/images/game/faixa_diagnonal_direita.png');
  justify-content: flex-end;
}
.judging-banner-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 2.1rem;
  color: #2a1747;
  letter-spacing: 0.04em;
  margin-left: 48px;
  margin-right: 48px;
  text-shadow: 2px 2px 0 #ff2b7c;
}
.judging-banner-label.team2 {
  margin-left: 48px;
  margin-right: 80px;
}
.judging-banner-label.team1 {
  margin-left: 80px;
  margin-right: 48px;
}
.judging-life-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 160px;
  margin-top: -18px;
  margin-bottom: 0;
  position: relative;
  z-index: 10;
}
.judging-life-bar-wrapper.team1 {
  flex-direction: row;
  justify-content: flex-start;
}
.judging-life-bar-wrapper.team2 {
  flex-direction: row;
  justify-content: flex-end;
}
.judging-life-bar.team1 {
  width: 200px;
  height: 33px;
  background: #ffffff;
  border: 4px solid #000000;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  image-rendering: pixelated;
  border-radius: 55px;
  z-index: 11;
  direction: ltr;
  display: block;
}
.judging-life-bar.team2 {
  width: 200px;
  height: 33px;
  background: #ffffff;
  border: 4px solid #000000;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  image-rendering: pixelated;
  border-radius: 55px;
  z-index: 11;
  direction: rtl;
  display: block;
}
.judging-life-heart {
  width: 65px;
  height: 65px;
  object-fit: contain;
  image-rendering: pixelated;
  margin-bottom: -4px;
  margin-right: -8px;
  margin-left: -8px;
}

.judging-life-bar-fill.team1 {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  transition: width 0.5s steps(8);
  background: linear-gradient(90deg,#ff9bd8,#ff2b7c 60%,#ff9bd8);
  border-radius: 0 12px 12px 0;
  z-index: 1;
}
.judging-life-bar-fill.team2 {
  position: absolute;
  right: 0;
  left: auto;
  direction: rtl;
  top: 0;
  height: 100%;
  width: 100%;
  transition: width 0.5s steps(8);
  background: linear-gradient(90deg,#9bd9ff,#3a87ad 60%,#9bd9ff);
  border-radius: 12px 0 0 12px;
  z-index: 1;
}
.judging-vs {
  font-family: MortalKombat1Font, 'Press Start 2P', monospace;
  font-size: 2.6rem;
  color: #fff;
  text-shadow: 2px 2px 0 #ff2b7c;
  margin: 0 2vw;
  margin-top: 32px;
}
.judging-timer-center {
  
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 32px 0 32px 0;
  font-family: MortalKombat1Font, 'Press Start 2P', monospace;
}
.judging-timer-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #2a1747;
  border: 6px solid #ff9bd8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  font-family: MortalKombat1Font, 'Press Start 2P', monospace;
  text-align: center;
  box-shadow: 0 0 0 6px #3a87ad;
  text-shadow: 2px 2px 0 #ff2b7c;
}
.judging-strike-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 64px;
  margin-top: 32px;
}
.judging-strike-btn {
  font-family: MortalKombat1Font, 'Press Start 2P', monospace;
  font-size: 2rem;
  padding: 18px 48px;
  border: 4px solid #000;
  border-radius: 8px;
  box-shadow: 4px 4px 0 #000;
  cursor: pointer;
  image-rendering: pixelated;
  transition: filter 0.2s, opacity 0.2s, transform 0.15s cubic-bezier(.4,2,.6,.8);
  outline: none;
}

.judging-strike-btn:hover:not(:disabled):not(.inactive) {
  transform: translateY(-8px) scale(1.07) rotate(-3deg);
  box-shadow: 8px 12px 0 #000;
  filter: brightness(1.1) drop-shadow(0 0 8px #fff6);
}
.judging-strike-btn.team1 {
  background: #ff9bd8;
  color: #2a1747;
  text-shadow: 2px 2px 0 #fff;
}
.judging-strike-btn.team2 {
  background: #9bd9ff;
  color: #2a1747;
  text-shadow: 2px 2px 0 #fff;
}
.judging-strike-btn.inactive {
  filter: grayscale(1) brightness(0.7);
  opacity: 0.5;
  pointer-events: none;
}
/* Overlay para a tela dos juízes */
.judges-will-decide-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}
.judges-will-decide-img {
  max-width: 60vw;
  max-height: 60vh;
  image-rendering: pixelated;
}
.life-bar-wrapper.inactive,
.life-bar.inactive,
.life-heart.inactive {
  filter: grayscale(1) brightness(0.7);
  opacity: 0.5;
  transition: filter 0.3s, opacity 0.3s;
}
/* FIGHT sobreposto aos turnos */
.fight-overlay {
  position: relative;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 1;
  pointer-events: none;
  margin: 0 auto 0 auto;
  margin-top: 0;
  margin-bottom: 32px;
}

/* Ações de turno (END TURN) */
.turn-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px 0 12px 0;
  gap: 12px;
}

#end-turn-btn {
  font-family: MortalKombat1Font, 'Press Start 2P', monospace;
  font-size: clamp(0.9rem, 1.3vw, 1.2rem);
  padding: 10px 18px;
  color: #2a1747;
  background: linear-gradient(180deg, #b6e1ff 0%, #3a87ad 100%); /* default: azul */
  border: 4px solid #000;
  border-radius: 10px;
  box-shadow: 4px 4px 0 #000;
  cursor: pointer;
  text-shadow: 1px 1px 0 #fff;
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease, opacity 0.2s ease;
}

/* Temas por time */
#end-turn-btn.end-turn-pink {
  background: linear-gradient(180deg, #ffb6e1 0%, #ff69b4 100%);
}

#end-turn-btn.end-turn-blue {
  background: linear-gradient(180deg, #b6e1ff 0%, #3a87ad 100%);
}

#end-turn-btn:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.05);
  box-shadow: 8px 8px 0 #000;
}

#end-turn-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

#end-turn-btn:disabled {
  opacity: 0.6;
  filter: grayscale(0.3);
  cursor: default;
}
/* Turnos fixos no topo estilo pixel art */
.turns-top-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  margin-top: 32px;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}
/* Bloco de turno contendo banner + barra de vida */
.turn-block {
  display: flex;
  flex-direction: column;
  align-items: left;
  gap: 6px;
}
/* Barra de vida */
.life-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 160px;
  margin-top: -50px;
  margin-left: 24px; /* Added margin-left for team1 */
  position: relative;
  z-index: 10;
}
.life-bar-wrapper.team1 {
  margin-left: 24px;
  flex-direction: row;
  justify-content: flex-start;
}
.life-bar-wrapper.team2 {
  margin-right: 24px;
  flex-direction: row;
  justify-content: flex-end;
}
.life-bar.team1 {
  width: 200px;
  height: 33px;
  background: #ffffff;
  border: 4px solid #000000;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  image-rendering: pixelated;
  border-radius: 55px;
  z-index: 11;
  direction: ltr;
  display: block;
}
.life-bar.team2 {
  width: 200px;
  height: 33px;
  background: #ffffff;
  border: 4px solid #000000;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  image-rendering: pixelated;
  border-radius: 55px;
  z-index: 11;
  direction: rtl;
  display: block;
}
.life-heart {
  width: 65px;
  height: 65px;
  object-fit: contain;
  image-rendering: pixelated;
  margin-bottom: -4px;
  margin-right: -8px;
  margin-left: -8px;
}
.life-bar-fill.team1 {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  transition: width 0.5s steps(8);
  background: linear-gradient(90deg,#ff9bd8,#ff2b7c 60%,#ff9bd8);
  border-radius: 0 12px 12px 0;
  z-index: 1;
}
.life-bar-fill.team2 {
  position: absolute;
  right: 0;
  left: auto;
  direction: rtl;
  top: 0;
  height: 100%;
  width: 100%;
  transition: width 0.5s steps(8);
  background: linear-gradient(90deg,#9bd9ff,#3a87ad 60%,#9bd9ff);
  border-radius: 12px 0 0 12px;
  z-index: 1;
}

/* ===== PULSE ANIMATIONS FOR ACTIVE TEAM (sync with banners) ===== */
@keyframes heartbeat {
  0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255,255,255,0)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 8px rgba(255,255,255,0.35)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255,255,255,0)); }
}

@keyframes pulseGlowPink {
  0% { box-shadow: 0 0 0 0 rgba(255,43,124,0.0), inset 0 0 0 0 rgba(255,255,255,0); }
  50% { box-shadow: 0 0 14px 4px rgba(255,43,124,0.5), inset 0 0 6px 0 rgba(255,255,255,0.35); }
  100% { box-shadow: 0 0 0 0 rgba(255,43,124,0.0), inset 0 0 0 0 rgba(255,255,255,0); }
}

@keyframes pulseGlowBlue {
  0% { box-shadow: 0 0 0 0 rgba(58,135,173,0.0), inset 0 0 0 0 rgba(255,255,255,0); }
  50% { box-shadow: 0 0 14px 4px rgba(58,135,173,0.5), inset 0 0 6px 0 rgba(255,255,255,0.35); }
  100% { box-shadow: 0 0 0 0 rgba(58,135,173,0.0), inset 0 0 0 0 rgba(255,255,255,0); }
}

/* Pulso real na espessura da barra (não altera a largura/percentual) */
@keyframes throbBar {
  0%   { transform: scaleY(1); }
  50%  { transform: scaleY(1.12); }
  100% { transform: scaleY(1); }
}

/* Aplica o pulso somente ao time ATIVO (wrapper sem .inactive) */
.life-bar-wrapper:not(.inactive) .life-heart {
  animation: heartbeat 1.8s ease-in-out infinite;
  transform-origin: center; 
  will-change: transform, filter;
}

.life-bar-wrapper:not(.inactive) .life-bar-fill.team1 {
  transform-origin: center;
  will-change: transform, box-shadow;
  animation: throbBar 1.2s ease-in-out infinite;
}

.life-bar-wrapper:not(.inactive) .life-bar-fill.team2 {
  transform-origin: center;
  will-change: transform, box-shadow;
  animation: throbBar 1.2s ease-in-out infinite;
}
.turn-label {
  font-family: MortalKombat1Font, 'Press Start 2P', monospace;
  font-size: 3.1rem;
  color: #2a1747;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  min-width: unset !important;
  text-align: center;
  letter-spacing: 0.04em;
  position: relative;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center center;
  box-shadow: none !important;
  text-shadow: none !important;
  outline: none !important;
  width: 650px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 3px 0 #f859f8 !important; /* Sombra sólida apenas em baixo */

  }

/* Banner rosa para TEAM 1 */
#turn-team1.turn-label {
  background-image: url('../assets/images/game/marquise_rosa.png');
}
#turn-team2.turn-label {
  background-image: url('../assets/images/game/marquise_azul.png');
}
.turn-label:last-child {
  text-align: right;
  padding-left: 48px;
  padding-right: 80px;
}
.inactive-turn-label {
  filter: grayscale(1) brightness(0.7);
  opacity: 0.5;
  box-shadow: none;
  text-shadow: none;
  outline: 4px solid #888;
}
.active-turn-label {
  filter: none;
  opacity: 1;
  box-shadow: 0 0 24px 4px #fff, 0 0 8px 2px #ff2b7c;
  z-index: 2;
}
.timer-center-only {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  margin: 0 0 0 0;
  transform: translateY(-65px);
  font-family: MortalKombat1Font, 'Press Start 2P', monospace;
  
}
/* Destaque de turno no placar do topo */
.team-score.active-turn {
  filter: none;
  opacity: 1;
  box-shadow: 0 0 16px 2px #fff, 0 0 8px 2px #ff2b7c;
  z-index: 2;
  transition: filter 0.3s, opacity 0.3s, box-shadow 0.3s;
}
.team-score.inactive-turn {
  filter: grayscale(1) brightness(0.7);
  opacity: 0.5;
  box-shadow: none;
  z-index: 1;
  transition: filter 0.3s, opacity 0.3s, box-shadow 0.3s;
}

.timer-center-only {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  margin: 48px 0 32px 0;
  font-family: MortalKombat1Font, 'Press Start 2P', monospace;
  

}

/* Labels de turno */
.turn-label {
  transition: 
    filter 0.5s ease, 
    opacity 0.5s ease, 
    box-shadow 0.5s ease, 
    transform 0.5s ease;
}

/* Inativo */
.inactive-turn-label {
  filter: grayscale(1) brightness(0.7);
  opacity: 0.5;
  box-shadow: none;
  text-shadow: none;
  outline: 4px solid #888;
  transform: scale(0.95);
}

/* Ativo */
.active-turn-label {
  filter: none;
  opacity: 1;
  box-shadow: 0 0 24px 4px #fff, 0 0 8px 2px #ff2b7c;
  z-index: 2;
  transform: scale(1.1);
  animation: pulseActive 1.2s ease-in-out infinite alternate;
}

/* Pulsar suave quando ativo */
@keyframes pulseActive {
  from { transform: scale(1.1); }
  to   { transform: scale(1.05); }
}

/* Destaque no placar */
.team-score {
  transition: 
    filter 0.4s ease, 
    opacity 0.4s ease, 
    box-shadow 0.4s ease, 
    transform 0.4s ease;
}

.team-score.active-turn {
  filter: none;
  opacity: 1;
  box-shadow: 0 0 16px 2px #fff, 0 0 8px 2px #ff2b7c;
  z-index: 2;
  transform: scale(1.1);
}

.team-score.inactive-turn {
  filter: grayscale(1) brightness(0.7);
  opacity: 0.5;
  box-shadow: none;
  z-index: 1;
  transform: scale(0.95);
}

/* TURN BANNERS */
.turns-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin-top: 32px;
  margin-bottom: 32px;
}
.team-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 260px;
  padding: 0 12px;
  border-radius: 12px;
  transition: filter 0.3s, opacity 0.3s;
}
.team-banner.active {
  filter: none;
  opacity: 1;
}
.team-banner.inactive {
  filter: grayscale(1) brightness(0.7);
  opacity: 0.5;
}
.team-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.2rem;
  color: #fff;
  background: linear-gradient(90deg, #ffb6ff 60%, #fff 100%);
  border-radius: 8px;
  padding: 8px 18px;
  margin-bottom: 8px;
  margin-top: 0;
  box-shadow: 2px 2px 0 #ff2b7c;
  border: 2px solid #fff;
  text-shadow: 2px 2px 0 #2a1747;
}
.team-banner.inactive .team-label {
  background: #888;
  color: #ccc;
  box-shadow: none;
  border: 2px solid #888;
  text-shadow: none;
}
.team-icon {
  width: 48px;
  height: 48px;
  margin-top: 4px;
  image-rendering: pixelated;
}
.timer-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  font-family: MortalKombat1Font, 'Press Start 2P', monospace;

}
/* FIGHT SCREEN */
.fight-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60vh;
  min-height: 300px;
  width: 100vw;
  position: relative;
  z-index: 10;
}

.fight-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  background: url('../assets/images/game/faixa.png') center center no-repeat;
  background-size: contain;
  width: 800px;
  max-width: 95vw;
  height: 180px;
  position: relative;
}

.fight-img {
  max-width: 90%;
  max-height: 140px;
  image-rendering: pixelated;
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

body {
  margin: 0;
  font-family: 'Press Start 2P', monospace;
  color: white;
  text-align: center;
  background: #2a1747 url('../assets/images/jobs/bg-2.png') center center no-repeat;
  background-size: cover;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

/* BG choose-job elements reaproveitados */
.choose-job-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}
.choose-job-bg-triangle-left {
  position: absolute;
  top: 50%;
  left: -10%;
  width: 32vw;
  height: 40vh;
  background: url('../assets/images/jobs/bg-triangulo.png') no-repeat left center;
  background-size: contain;
  z-index: 0;
  pointer-events: none;
  transform: translateY(-50%);
}
.choose-job-bg-triangle-right {
  position: absolute;
  top: 50%;
  right: -10%;
  width: 32vw;
  height: 40vh;
  background: url('../assets/images/jobs/bg-triangulo.png') no-repeat right center;
  background-size: contain;
  z-index: 0;
  pointer-events: none;
  transform: translateY(-50%);
}
.choose-job-bg-copas {
  position: absolute;
  top: 3.5rem;
  left: 3.5rem;
  width: 150px;
  height: 150px;
  background: url('../assets/images/jobs/copas.png') no-repeat center center;
  background-size: contain;
  z-index: 1;
  pointer-events: none;
}
.choose-job-bg-espadas {
  position: absolute;
  bottom: 3.5rem;
  left: 3.5rem;
  width: 150px;
  height: 150px;
  background: url('../assets/images/jobs/espadas.png') no-repeat center center;
  background-size: contain;
  z-index: 1;
  pointer-events: none;
}
.choose-job-bg-ouros {
  position: absolute;
  top: 3.5rem;
  right: 3.5rem;
  width: 150px;
  height: 150px;
  background: url('../assets/images/jobs/ouros.png') no-repeat center center;
  background-size: contain;
  z-index: 1;
  pointer-events: none;
}
.choose-job-bg-paus {
  position: absolute;
  bottom: 3.5rem;
  right: 3.5rem;
  width: 150px;
  height: 150px;
  background: url('../assets/images/jobs/paus.png') no-repeat center center;
  background-size: contain;
  z-index: 1;
  pointer-events: none;
}

/* LOADING */
#loading-screen {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background-color: #1a0933;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

.loading-bar-blocks {
  display: flex;
  gap: 4px;
}

.loading-block {
  width: 10px;
  height: 30px;
  background-color: blue;
  opacity: 0.25;
  transition: all 0.2s ease;
}

.loading-block-pink {
  background-color: hotpink;
}



/* OVERLAY ÚNICO PARA ANTECIPAÇÃO E CONTAGEM */
.game-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 20001;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a0933 url('../assets/images/jobs/bg-2.png') center center no-repeat;
  background-size: cover;
  overflow: hidden;
  pointer-events: none;
}
.overlay-bg-triangle-left {
  position: absolute;
  top: 50%;
  left: -10%;
  width: 32vw;
  height: 40vh;
  background: url('../assets/images/jobs/bg-triangulo.png') no-repeat left center;
  background-size: contain;
  z-index: 1;
  pointer-events: none;
  transform: translateY(-50%);
}
.overlay-bg-triangle-right {
  position: absolute;
  top: 50%;
  right: -10%;
  width: 32vw;
  height: 40vh;
  background: url('../assets/images/jobs/bg-triangulo.png') no-repeat right center;
  background-size: contain;
  z-index: 1;
  pointer-events: none;
  transform: translateY(-50%);
}
.overlay-bg-copas {
  position: absolute;
  top: 3.5rem;
  left: 3.5rem;
  width: 150px;
  height: 150px;
  background: url('../assets/images/jobs/copas.png') no-repeat center center;
  background-size: contain;
  z-index: 2;
  pointer-events: none;
}
.overlay-bg-espadas {
  position: absolute;
  bottom: 3.5rem;
  left: 3.5rem;
  width: 150px;
  height: 150px;
  background: url('../assets/images/jobs/espadas.png') no-repeat center center;
  background-size: contain;
  z-index: 2;
  pointer-events: none;
}
.overlay-bg-ouros {
  position: absolute;
  top: 3.5rem;
  right: 3.5rem;
  width: 150px;
  height: 150px;
  background: url('../assets/images/jobs/ouros.png') no-repeat center center;
  background-size: contain;
  z-index: 2;
  pointer-events: none;
}
.overlay-bg-paus {
  position: absolute;
  bottom: 3.5rem;
  right: 3.5rem;
  width: 150px;
  height: 150px;
  background: url('../assets/images/jobs/paus.png') no-repeat center center;
  background-size: contain;
  z-index: 2;
  pointer-events: none;
}

/* Conteúdo dinâmico do overlay */
#overlay-content {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 480px;
  height: 480px;
  max-width: 90vw;
  max-height: 90vh;
  margin: 0 auto;
  pointer-events: none;
}

/* Imagem de antecipação */
#overlay-content .anticipation-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 32px #fff8) drop-shadow(0 0 8px #ff2b7c);
  opacity: 0;
  transform: scale(0.7);
  animation: anticipationIn var(--anticipation-in, 1.2s) cubic-bezier(.25,.8,.25,1) forwards;
}
#overlay-content .anticipation-img[src*="../assets/images/game/antecipation.png"] {
  width: 170%;
  height: 170%;
  max-width: none;
  max-height: none;
}
#overlay-content .anticipation-img.show {
  opacity: 1;
  transform: scale(1.08);
  animation: anticipationShow var(--anticipation-exit, 1.2s) cubic-bezier(.25,.8,.25,1) forwards;
}
@keyframes anticipationIn {
  0%   { opacity: 0; transform: scale(0.7); }
  60%  { opacity: 1; transform: scale(1.12); }
  80%  { opacity: 1; transform: scale(1.0); }
  100% { opacity: 0.95; transform: scale(0.98); }
}
@keyframes anticipationShow {
  0%   { opacity: 0.95; transform: scale(0.98); }
  60%  { opacity: 1; transform: scale(1.08); }
  100% { opacity: 0; transform: scale(0.7); }
}

/* Contagem regressiva (countdown) */
#overlay-content .countdown-number {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 420px;
  height: 420px;
  max-width: 80vw;
  max-height: 80vh;
  margin: 0 auto;
  pointer-events: none;
}
#overlay-content .countdown-number img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 32px #fff8) drop-shadow(0 0 8px #9b184a);
  opacity: 0;
  transform: scale(0.7);
  animation: countdownNumberIn 1s cubic-bezier(.25,.8,.25,1) forwards;
}
#overlay-content .countdown-number img.show {
  opacity: 1;
  transform: scale(1.08);
  animation: countdownNumberShow 1s cubic-bezier(.25,.8,.25,1) forwards;
}
#overlay-content .countdown-number img[src*="ready.png"] {
  width: 240%;
  height: 240%;
  max-width: none;
  max-height: none;
}
@keyframes countdownNumberIn {
  0%   { opacity: 0; transform: scale(0.7); }
  60%  { opacity: 1; transform: scale(1.12); }
  80%  { opacity: 1; transform: scale(1.0); }
  100% { opacity: 0.95; transform: scale(0.98); }
}
@keyframes countdownNumberShow {
  0%   { opacity: 0.95; transform: scale(0.98); }
  60%  { opacity: 1; transform: scale(1.08); }
  100% { opacity: 0; transform: scale(0.7); }
}

@media (max-width: 600px) {
  #overlay-content {
    width: 220px;
    height: 220px;
  }
  .overlay-bg-copas,
  .overlay-bg-espadas,
  .overlay-bg-ouros,
  .overlay-bg-paus {
    width: 80px;
    height: 80px;
  }
  #overlay-content .countdown-number {
    width: 220px;
    height: 220px;
  }
}


@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');


body {
    background-color: #1a0033;
    font-family: 'Press Start 2P', cursive;
    color: white;
    text-align: center;
    padding: 30px;
}

#game-container {
    display: none;
}

#job-title {
    font-family: MortalKombat1Font, monospace;
    color: #ffccff;
    margin-bottom: 20px;
    font-size: 16px;
}

#questions-container p {
    display: inline-flex;
    padding: 30px 50px;
    min-width: 400px;
    max-width: 90vw;
    font-family: MortalKombat1Font;
    text-transform: uppercase;
    min-height: 150px;
    max-height: 300px;
    overflow: hidden; /* evita texto estourar */
    font-size: clamp(1.4rem, 2vw, 2.6rem);
    line-height: 1.4;
    text-align: center;
    background: url('../assets/images/game/small_question.png') center center no-repeat;
    background-size: 100% 100%;
    color: #2a1747;
    text-shadow: 2px 2px 0 #ca2bff89;
    image-rendering: pixelated;
    margin: 40px auto;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

/* Ações da pergunta (ex.: Skip thinking time) */
.question-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}

#skip-thinking-btn {
  font-family: MortalKombat1Font, 'Press Start 2P', monospace;
  font-size: clamp(0.9rem, 1.3vw, 1.2rem);
  padding: 12px 20px;
  color: #2a1747;
  background: linear-gradient(180deg, #ffb6e1 0%, #ff69b4 100%);
  border: 4px solid #000;
  border-radius: 10px;
  box-shadow: 4px 4px 0 #000;
  cursor: pointer;
  text-shadow: 1px 1px 0 #fff;
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease, opacity 0.2s ease;
}

#skip-thinking-btn:hover:not(:disabled) {
  transform: translateY(-4px) scale(1.03);
  filter: brightness(1.05);
  box-shadow: 8px 8px 0 #000;
}

#skip-thinking-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

#skip-thinking-btn:disabled {
  opacity: 0.6;
  filter: grayscale(0.3);
  cursor: default;
}

/* Transições suaves para trocar pergunta -> fight */
.fade-out-up {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.35s ease forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Revelar fight overlay com fade/scale sutis */
.fight-overlay {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.fight-overlay.show {
  opacity: 1;
  transform: scale(1);
}

/* Timer circular igual para equipes */
.timer-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: conic-gradient(#a5dfff 0deg, #f69ac1 0deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #333;
  margin: 20px auto;
  position: relative;
  font-family: MortalKombat1Font, 'Press Start 2P', monospace;
  text-shadow: 1px 1px 0 #ff2b7c;
}

.timer-circle span {
  position: absolute;
  font-weight: bold;
  font-size: 24px;
  color: #fff;
  text-shadow: 2px 2px #000;
  font-family: MortalKombat1Font, 'Press Start 2P', monospace;
  text-shadow: 1px 1px 0 #ff2b7c;
}

/* Barras de pontuação */

.score-bar {
  width: 0%;
  height: 20px;
  border-radius: 12px;
  transition: width 0.5s ease;
  margin: 10px 0;
}

#team1bar {
  background-color: #3a87ad; /* Azul */
  border-radius: 12px 0 0 12px;
}

#team2bar {
  background-color: #e37ea3; /* Rosa */
  border-radius: 12px 0 0 12px;
}


.timer-circle::before {
    content: '';
    position: absolute;
    inset: 10px;
    background-color: #1a0033;
    border-radius: 50%;
    font-family: MortalKombat1Font, 'Press Start 2P', monospace;

}

.announcement {
  background-color: white;
  color: #aa00ff;
  font-size: 32px;
  font-weight: bold;
  padding: 20px 40px;
  border: 4px solid black;
  margin-bottom: 40px;
  text-shadow: 2px 2px #000;
}

.continue-btn {
  background-color: white;
  border: 3px solid black;
  padding: 10px 20px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 2px 2px black;
  color: black;
}

.teams {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  max-width: 700px;
  margin-bottom: 30px;
}

.team {
  width: 200px;
  text-align: center;
}

.team-label {
  background-color: white;
  color: black;
  font-weight: bold;
  padding: 10px;
  margin-bottom: 10px;
}

.health-bar {
  height: 25px;
  width: 100%;
  border: 2px solid black;
  background-color: grey;
  transition: width 0.5s;
}

.health-bar.pink {
  background-color: pink;
}

.health-bar.blue {
  background-color: lightblue;
}

.vs {
  font-size: 32px;
  color: fuchsia;
  font-weight: bold;
}

.winner {
  font-size: 26px;
  margin-bottom: 20px;
  color: #00ffcc;
}

.hidden {
  display: none;
}

.continue-btn.small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  margin: 0.3rem;
}

#scoreboard {
    display: flex;
    justify-content: space-around;
    margin: 10px 0;
}

.team-score {
    text-align: center;
    width: 40%;
}

.team-name {
    font-weight: bold;
    font-size: 18px;
}

.score-bar {
    width: 100%;
    height: 20px;
    background: #333;
    border-radius: 10px;
    overflow: hidden;
    margin: 5px 0;
}

.score-fill {
    height: 100%;
    width: 0%;
    background: #4caf50;
    transition: width 0.5s ease;
}

#questions-container {
    margin-top: 20px;
    font-size: 20px;
}


.team-timer {
    font-size: 22px;
    margin-top: 20px;
    font-family: MortalKombat1Font, 'Press Start 2P', monospace;
}

.hidden {
    display: none;
}

#judgmentOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.judgment-screen, .result-screen {
    background: #222;
    padding: 20px;
    border-radius: 10px;
}

.vote-btn, .continue-btn {
    background: #f69ac1;
    border: none;
    padding: 10px 20px;
    margin: 10px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

.vote-btn:hover, .continue-btn:hover {
    background: #a5dfff;
}




.tutorial-frase {
  opacity: 0;
  transition: .5s ease-out;
  z-index: 10000;
}

.tutorial-frase.active {
  opacity: 1;
}

.tutorial-frase-1 {
  background-image: url('../assets/images/tutorial/team-1-speak.png');
  width: 650px;
  height: 450px;
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  left: 5vw;
  top: 20vh;
}

.tutorial-frase-2 {
  background-image: url('../assets/images/tutorial/team-2-speak.png');
  width: 650px;
  height: 450px;
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  right: 5vw;
  bottom: -15vh;
}

.tutorial-frase-3 {
  background-image: url('../assets/images/tutorial/how-to-judge-1.png');
  width: 500px;
  height: 400px;
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  left: 5vw;
  bottom: 5vh;
}

.tutorial-frase-4 {
  background-image: url('../assets/images/tutorial/team-1-tip.png');
  width: 500px;
  height: 400px;
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  right: 5vw;
  top: 5vh;
}

.tutorial-frase-5 {
  background-image: url('../assets/images/tutorial/how-to-judge-2.png');
  width: 500px;
  height: 400px;
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  left: 5vw;
  bottom: 5vh;
}

.tutorial-frase-6 {
  background-image: url('../assets/images/tutorial/team-2-tip.png');
  width: 500px;
  height: 400px;
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  right: 5vw;
  top: 5vh;
}


.tutorial-frase-7 {
  background-image: url('../assets/images/tutorial/how-to-judge-3.png');
  width: 650px;
  height: 350px;
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  left: 65vw;
  top: 2vh;
}

.tutorial-frase-8 {
  background-image: url('../assets/images/tutorial/how-to-judge-4.png');
  width: 650px;
  height: 400px;
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  left: 5vw;
  bottom: 2vh;
}
.tutorial-overlay {
  opacity: 0;
  transition: .5s ease-out;
  background-color: #0000008f;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 999;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px); /* Safari support */
}

.tutorial-overlay.active {
  opacity: 1;
  pointer-events: none;
}