body {
  background: #0f172a;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-family: Arial;
}

#game {
  width: 480px;
  height: 360px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;

  background-size: cover;
  background-position: center;
}

/* PLAYER */
#player {
  width: 90px;
  height: 90px;
  position: absolute;
  bottom: 10px;
  left: 200px;

  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* TAGS (mesma cor) */
.tag {
  position: absolute;
  padding: 5px 10px;
  color: white;
  border-radius: 6px;
  font-size: 12px;
  background: #3b82f6;
}

/* HUD */
#hud {
  position: absolute;
  top: 5px;
  left: 5px;
  color: white;
  z-index: 5;
}

/* FADE */
#fade {
  position: absolute;
  width: 100%;
  height: 100%;
  background: black;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 10;
}

/* TEXTO DE FASE */
#faseTexto {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);

  font-size: 32px;
  font-weight: bold;
  text-align: center;

  opacity: 0;
  z-index: 15;

  transition: all 0.5s ease;
}

#faseTexto.ativo {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

/* CORES DAS FASES */
.fase-html {
  color: #f97316;
  text-shadow: 0 0 10px #f97316;
}

.fase-css {
  color: #3b82f6;
  text-shadow: 0 0 10px #3b82f6;
}

.fase-js {
  color: #facc15;
  text-shadow: 0 0 10px #facc15;
}

/* TELA FINAL */
#endScreen {
  position: absolute;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  background: linear-gradient(135deg, #4c1d95, #1e3a8a);
  color: white;

  z-index: 20;
}

/* BOTÃO JOGAR NOVAMENTE */
.btn-restart {
  position: absolute;
  bottom: 10px;
  width: 222px;
  left: 50%;
  transform: translateX(-50%);

  padding: 8px 20px;
  font-size: 16px;

  border: none;
  border-radius: 8px;

  background: #3b82f6;
  color: white;

  cursor: pointer;
  transition: 0.3s;
}

.btn-restart:hover {
  background: #2563eb;
}

/* tela incial */
#startScreen {
  position: absolute;
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background: linear-gradient(135deg, #020617, #1e293b);
  color: white;
  text-align: center;

  z-index: 30;
}

#startScreen h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

#startScreen p {
  font-size: 14px;
  margin-bottom: 20px;
}

#startBtn {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  background: #3b82f6;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

#startBtn:hover {
  background: #2563eb;
}