@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=IM+Fell+English&display=swap');

@font-face {
  font-family: 'MPlantin';
  src: url('../assets/fonts/MPlantin Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'LilitaOne';
  src: url('../assets/fonts/LilitaOne-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Nunito';
  src: url('../assets/fonts/Nunito-Italic-VariableFont_wght.ttf') format('truetype');
  font-style: italic;
}

@font-face {
  font-family: 'Nunito';
  src: url('../assets/fonts/Nunito-VariableFont_wght.ttf') format('truetype');
  font-style: normal;
}

/* 
==================================================================
⚠️ AVISO: ESTE É UM JOGO PROJETADO EXCLUSIVAMENTE PARA CELULAR! ⚠️
- Tudo deve caber perfeitamente em telas móveis a partir de 320px.
- NUNCA use larguras em px que possam vazar da viewport do aparelho.
- Sempre garanta centralização horizontal e responsividade completa.
==================================================================
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #111;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

#app {
  width: 100%;
  height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: #1a1a2e;
}

/* Esconde qualquer scrollbar dentro do app em todos os navegadores */
#app *::-webkit-scrollbar {
  display: none;
}

#app * {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

@media (min-width: 481px) {

  html,
  body {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #app {
    height: 100vh;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
  }
}

/* ── Telas ── */

.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

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

.hidden {
  display: none !important;
}

/* ── Vídeo Wallpaper das Telas de Autenticação ── */
#bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* ── Tela Inicial com Wallpaper ── */
#screen-menu {
  background: transparent;
}

#screen-menu::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(10, 10, 26, 0.45) 0%,
      rgba(10, 10, 26, 0.65) 60%,
      rgba(10, 10, 26, 0.88) 100%);
  z-index: 1;
  pointer-events: none;
}

#screen-menu .screen-inner {
  position: relative;
  z-index: 2;
  padding-top: 0;
  margin-top: -26px;
}




.screen-inner {
  text-align: center;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  padding: 24px 20px;
  overflow-x: hidden;
}

/* ── Fundo estrelado ── */

#bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

/* ── Título (Logo Animada Premium) ── */

.logo-container {
  position: relative;
  display: inline-block;
  margin: 0 auto 12px;
  perspective: 1000px;
  z-index: 5;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.logo-container-sm {
  margin: 0 auto 16px;
}

.animated-logo {
  display: block;
  height: auto;
  user-select: none;
  pointer-events: auto;
  transform-style: preserve-3d;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.3s ease;
  animation: logoIntro 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
    logoPulse 3.8s ease-in-out 1.2s infinite;
}

.logo-container .animated-logo {
  width: clamp(200px, 80vw, 320px);
}

.logo-container-sm .animated-logo {
  width: clamp(140px, 60vw, 220px);
}

.logo-container:hover .animated-logo {
  transform: scale(1.1) rotateY(8deg) rotateX(4deg);
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.5));
}

.logo-container:active .animated-logo {
  transform: scale(0.96) rotateY(-4deg) rotateX(-2deg);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  transition: transform 0.1s ease;
}

@keyframes logoIntro {
  0% {
    transform: scale(0.3) rotate(-10deg);
    opacity: 0;
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
  }

  70% {
    transform: scale(1.1) rotate(2deg);
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.5));
  }

  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
  }
}

@keyframes logoPulse {

  0%,
  100% {
    transform: scale(1) translateZ(0);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
  }

  50% {
    transform: scale(1.08) translateZ(40px);
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.6));
  }
}

#user-status {
  font-size: 11px;
  color: #78c850;
  height: 18px;
  line-height: 18px;
  margin-bottom: 4px;
}

/* ── Botões ── */

.btn-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.btn-group .btn {
  width: 220px;
}

#btn-signup {
  animation: shake-button 3s ease-in-out infinite;
}

#btn-signup:hover,
#btn-signup:active {
  animation: none;
}

@keyframes shake-button {

  0%,
  20%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  2% {
    transform: translate(-2px, 1px) rotate(-1.5deg);
  }

  4% {
    transform: translate(2px, -1px) rotate(1.5deg);
  }
}

@keyframes screen-shake {
  0% {
    transform: translate(0, 0);
  }

  3% {
    transform: translate(-6px, 3px) rotate(-1deg);
  }

  6% {
    transform: translate(5px, -4px) rotate(1.2deg);
  }

  9% {
    transform: translate(-4px, 2px) rotate(-0.8deg);
  }

  12% {
    transform: translate(3px, -1px) rotate(0.5deg);
  }

  15% {
    transform: translate(-2px, 1px) rotate(-0.3deg);
  }

  18% {
    transform: translate(1px, 0) rotate(0deg);
  }

  100% {
    transform: translate(0, 0);
  }
}

.shake-crit {
  animation: screen-shake 0.5s ease-out;
  transform-origin: center center;
}

.btn {
  display: inline-block;
  padding: 12px 48px;
  font-size: clamp(14px, 4vw, 16px);
  font-weight: 900;
  font-family: monospace, sans-serif;
  color: #000;
  background: linear-gradient(135deg, #ffde00, #ffb300);
  border: 2px solid #ffe600;
  border-radius: 12px;
  cursor: pointer;
  letter-spacing: 3px;
  text-transform: uppercase;
  box-shadow: 0 4px 0 #c8a000, 0 8px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 200px;
  white-space: nowrap;
}

.btn:hover {
  background: linear-gradient(135deg, #ffea00, #ffc400);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #c8a000, 0 10px 20px rgba(0, 0, 0, 0.4);
}

.btn:active {
  transform: translateY(4px);
  box-shadow: 0 0px 0 #c8a000, 0 2px 4px rgba(0, 0, 0, 0.4);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 4px 0 #c8a000, 0 4px 8px rgba(0, 0, 0, 0.2);
  filter: grayscale(0.5);
}

.btn-sm {
  padding: 10px 32px;
  font-size: clamp(11px, 3.5vw, 13px);
  min-width: 140px;
}

.btn-danger {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  border: 2px solid #f1948a;
  color: #fff;
  box-shadow: 0 4px 0 #96281b, 0 8px 16px rgba(0, 0, 0, 0.3);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #ff6b6b, #e74c3c);
  box-shadow: 0 6px 0 #96281b, 0 10px 20px rgba(0, 0, 0, 0.4);
}

.btn-danger:active {
  box-shadow: 0 0px 0 #96281b, 0 2px 4px rgba(0, 0, 0, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  border: 2px solid #58d68d;
  color: #fff;
  box-shadow: 0 4px 0 #1e8449, 0 8px 16px rgba(0, 0, 0, 0.3);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
}

.btn-success:hover {
  background: linear-gradient(135deg, #2ecc71, #2ecc71);
  box-shadow: 0 6px 0 #1e8449, 0 10px 20px rgba(0, 0, 0, 0.4);
}

.btn-success:active {
  box-shadow: 0 0px 0 #1e8449, 0 2px 4px rgba(0, 0, 0, 0.4);
}

.btn-link {
  background: none;
  color: #888;
  box-shadow: none;
  padding: 8px 16px;
  font-size: 12px;
  min-width: auto;
  letter-spacing: 1px;
}

.btn-link:active {
  color: #ffcc00;
  transform: none;
  box-shadow: none;
}

#menu-info {
  margin-top: 8px;
  font-size: 11px;
  color: #555;
}

/* ── Formulários ── */

.form-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.form-title {
  font-size: clamp(16px, 4.5vw, 18px);
  color: #ffcc00;
  letter-spacing: 3px;
  margin-bottom: 12px;
  text-shadow: 1px 1px 0 #c8a000;
}

.inp {
  width: min(260px, 80vw);
  padding: 12px 14px;
  margin-bottom: 8px;
  font-family: monospace, sans-serif;
  font-size: clamp(13px, 3.5vw, 14px);
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  outline: none;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.inp:focus {
  border-color: #ffcc00;
  background: rgba(0, 0, 0, 0.7);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 204, 0, 0.2);
}

.inp::placeholder {
  color: #777;
  font-weight: normal;
}

.msg {
  width: min(260px, 80vw);
  min-height: 20px;
  font-size: 11px;
  color: #f44;
  margin: 0 auto 4px;
  line-height: 1.3;
}

.msg.ok {
  color: #78c850;
}

.lembrar-label {
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(260px, 80vw);
  font-size: 12px;
  color: #888;
  cursor: pointer;
  margin-bottom: 6px;
}

.lembrar-label input[type="checkbox"] {
  accent-color: #ffcc00;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* ── Escolha de Ovo ── */

@keyframes chocar {

  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }

  15% {
    transform: translateX(-3px) rotate(-2deg);
  }

  30% {
    transform: translateX(3px) rotate(2deg);
  }

  45% {
    transform: translateX(-2px) rotate(-1deg);
  }

  60% {
    transform: translateX(2px) rotate(1deg);
  }

  75% {
    transform: translateX(-1px) rotate(0deg);
  }
}

@keyframes bob {
  0% {
    transform: translate(0, 0) scale(1, 1);
  }

  6.25% {
    transform: translate(-3px, -6px) scale(1, 1);
    /* Pico do arco para a esquerda (sobe 6px) */
  }

  12.5% {
    transform: translate(-6px, 0) scale(1, 1);
    /* Aterrissagem à esquerda */
  }

  18.75% {
    transform: translate(-3px, -6px) scale(1, 1);
    /* Pico do arco retornando (sobe 6px) */
  }

  25% {
    transform: translate(0, 0) scale(1, 1);
    /* Aterrissagem no centro */
  }

  31.25% {
    transform: translate(3px, -6px) scale(1, 1);
    /* Pico do arco para a direita (sobe 6px) */
  }

  37.5% {
    transform: translate(6px, 0) scale(1, 1);
    /* Aterrissagem à direita */
  }

  43.75% {
    transform: translate(3px, -6px) scale(1, 1);
    /* Pico do arco retornando (sobe 6px) */
  }

  50% {
    transform: translate(0, 0) scale(1, 1);
    /* Aterrissagem final no centro */
  }

  75% {
    transform: translate(0, 0) scale(1.028, 0.97);
    /* Respira parado: desce 3px e amassa sem mover a base */
  }

  88% {
    transform: translate(0, 0) scale(0.99, 1.01);
    /* Rebote suave */
  }

  100% {
    transform: translate(0, 0) scale(1, 1);
    /* Retorna ao baseline */
  }
}

@keyframes bob-player {

  /* Ciclo 1 (0% a 25%) */
  0% {
    transform: translate(0, 0) scale(1, 1);
  }

  6.25% {
    transform: translate(0, 0) scale(1.03, 0.97);
  }

  /* Amassa */
  12.5% {
    transform: translate(0, 0) scale(0.99, 1.01);
  }

  /* Rebote */
  25% {
    transform: translate(0, 0) scale(1, 1);
  }

  /* Ciclo 2 (25% a 50%) */
  31.25% {
    transform: translate(0, 0) scale(1.03, 0.97);
  }

  37.5% {
    transform: translate(0, 0) scale(0.99, 1.01);
  }

  50% {
    transform: translate(0, 0) scale(1, 1);
  }

  /* Ciclo 3 (50% a 75%) */
  56.25% {
    transform: translate(0, 0) scale(1.03, 0.97);
  }

  62.5% {
    transform: translate(0, 0) scale(0.99, 1.01);
  }

  75% {
    transform: translate(0, 0) scale(1, 1);
  }

  /* Ciclo 4 (75% a 100%) */
  81.25% {
    transform: translate(0, 0) scale(1.03, 0.97);
  }

  87.5% {
    transform: translate(0, 0) scale(0.99, 1.01);
  }

  100% {
    transform: translate(0, 0) scale(1, 1);
  }
}

@keyframes floatBounce {

  0%,
  100% {
    transform: scaleX(-1) scaleY(1);
  }

  50% {
    transform: scaleX(-1) scaleY(1.04);
  }
}

@keyframes bob-wild {

  /* Ciclo 1 (0% a 25%) */
  0% {
    transform: translate(0, 0) scale(1, 1);
  }

  6.25% {
    transform: translate(0, 0) scale(1.03, 0.97);
  }

  /* Amassa */
  12.5% {
    transform: translate(0, 0) scale(0.99, 1.01);
  }

  /* Rebote */
  25% {
    transform: translate(0, 0) scale(1, 1);
  }

  /* Ciclo 2 (25% a 50%) */
  31.25% {
    transform: translate(0, 0) scale(1.03, 0.97);
  }

  37.5% {
    transform: translate(0, 0) scale(0.99, 1.01);
  }

  50% {
    transform: translate(0, 0) scale(1, 1);
  }

  /* Ciclo 3 (50% a 75%) */
  56.25% {
    transform: translate(0, 0) scale(1.03, 0.97);
  }

  62.5% {
    transform: translate(0, 0) scale(0.99, 1.01);
  }

  75% {
    transform: translate(0, 0) scale(1, 1);
  }

  /* Ciclo 4 (75% a 100%) */
  81.25% {
    transform: translate(0, 0) scale(1.03, 0.97);
  }

  87.5% {
    transform: translate(0, 0) scale(0.99, 1.01);
  }

  100% {
    transform: translate(0, 0) scale(1, 1);
  }
}

#battle-wild-img,
#battle-player-img {
  transform-origin: bottom center !important;
}

.ovo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  justify-items: center;
  gap: 20px;
  margin-top: 12px;
}

.ovo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.15s;
}

.ovo-card:nth-child(1) {
  animation: chocar 1.2s ease-in-out infinite;
}

.ovo-card:nth-child(2) {
  animation: chocar 1s ease-in-out infinite 0.3s;
}

.ovo-card:nth-child(3) {
  animation: chocar 1.4s ease-in-out infinite 0.6s;
}

.ovo-card:nth-child(4) {
  animation: chocar 1.3s ease-in-out infinite 0.9s;
}

.ovo-card:active {
  transform: scale(0.95);
}

.ovo-card.selecionado {
  filter: drop-shadow(0 0 14px rgba(255, 204, 0, 0.5));
}

.ovo-img {
  width: clamp(110px, 30vw, 140px);
  height: auto;
  aspect-ratio: 1/1;
  object-fit: contain;
  pointer-events: none;
}

.ovo-label {
  font-size: clamp(12px, 3.5vw, 14px);
  color: #ddd;
  letter-spacing: 2px;
  margin-top: 6px;
  font-weight: bold;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

#msg-ovo {
  margin-top: 8px;
}

/* ── Lobby Premium ── */

.lobby-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Header Superior (Trainer Profile) */
.lobby-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(10, 10, 20, 0.6) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1.5px solid rgba(255, 204, 0, 0.12) !important;
  z-index: 10;
  height: clamp(50px, 7dvh, 60px);
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-circle {
  width: clamp(32px, 4.8dvh, 38px) !important;
  height: clamp(32px, 4.8dvh, 38px) !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #ffe066 0%, #f5b041 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 0 12px rgba(255, 204, 0, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.3) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.profile-info:hover .avatar-circle {
  transform: scale(1.08) rotate(5deg) !important;
  box-shadow: 0 0 16px rgba(255, 204, 0, 0.65) !important;
  border-color: #ffcc00 !important;
}

.trainer-details {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.trainer-name {
  font-size: clamp(12px, 1.8dvh, 14px);
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: capitalize;
  text-shadow: 0 1.5px 3px rgba(0, 0, 0, 0.5);
}

.trainer-title {
  font-size: clamp(7.5px, 1.1dvh, 8.5px);
  color: #ffcc00;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 900;
  text-shadow: 0 0 4px rgba(255, 204, 0, 0.25);
}

.btn-logout {
  background: none;
  border: none;
  color: #e74c3c;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: 50%;
}

.btn-logout:hover {
  background: rgba(231, 76, 60, 0.15);
  color: #ff4a5a;
  transform: scale(1.05);
}

.btn-logout:active {
  transform: scale(0.95);
}

/* Área Interna */
.lobby-screen-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 14px 12px 80px !important;
  overflow-y: auto;
  height: auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.lobby-screen-inner::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

#lobby-pet {
  flex: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(8px, 1.8dvh, 16px);
  box-sizing: border-box;
}

/* Egg Showcase */
.egg-showcase {
  text-align: center;
  margin-bottom: 12px;
}

.egg-podium-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}

.egg-podium-glow {
  position: absolute;
  bottom: -4px;
  width: clamp(90px, 14dvh, 120px);
  height: clamp(18px, 2.8dvh, 24px);
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  animation: breathe 3s ease-in-out infinite;
}

.ovo-chocando {
  width: clamp(86px, 26vw, 110px);
  height: auto;
  image-rendering: pixelated;
  z-index: 2;
  animation: chocar 1.2s ease-in-out infinite;
}

.egg-info-box {
  margin-top: 8px;
}

.egg-title {
  font-size: 16px;
  font-weight: bold;
  color: #ffcc00;
  letter-spacing: 2.5px;
}

.egg-subtitle {
  font-size: 12px;
  color: #888;
  letter-spacing: 1px;
  margin-top: 4px;
}

.btn-abrir-ovo-premium {
  margin-top: 10px;
  width: min(260px, 85vw) !important;
  padding: 14px 48px;
}

/* Pokémon Showcase */
.poke-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 94%;
  max-width: 440px;
  background: rgba(11, 11, 20, 0.55) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 24px !important;
  padding: clamp(6px, 1.2dvh, 12px) 10px clamp(8px, 1.4dvh, 14px) 40px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45) !important;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.poke-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.06),
      transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  transition: none;
}

.poke-showcase:hover::before {
  left: 150%;
  transition: all 1.2s ease;
}

.poke-podium-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 4px;
  flex-shrink: 0;
  width: clamp(90px, 25vw, 120px);
  height: clamp(120px, 18dvh, 180px);
}

.poke-podium-glow {
  position: absolute;
  bottom: 0px;
  width: clamp(220px, 32dvh, 300px);
  height: clamp(40px, 6dvh, 60px);
  background: radial-gradient(ellipse, rgba(255, 204, 0, 0.28) 0%, transparent 70%);
  animation: breathe 3.2s ease-in-out infinite;
}

.poke-showcase-img {
  image-rendering: pixelated;
  height: clamp(100px, 16dvh, 150px);
  width: auto;
  display: block;
  z-index: 2;
  animation: floatBounce 3.2s ease-in-out infinite;
  transform-origin: bottom center;
}

/* Linha topo do showcase: imagem esquerda + info direita */
.poke-showcase-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin-bottom: clamp(6px, 1dvh, 10px);
  padding-left: 16px;
  box-sizing: border-box;
}

.poke-showcase-info {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 16px;
  margin-top: -30px;
}

.poke-showcase-name {
  font-size: clamp(14px, 2.1dvh, 19px);
  font-weight: bold;
  color: #ffcc00;
  letter-spacing: 1.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poke-showcase-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 10px;
  font-family: 'LilitaOne', sans-serif;
  font-size: 11px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  align-self: flex-start;
}

.poke-showcase-tag img {
  width: 12px;
  height: 12px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ── Barra de Energia Premium ── */
.energia-badge-bar {
  width: 100%;
  height: clamp(20px, 3dvh, 26px);
  background: rgba(0, 0, 0, 0.55);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(39, 174, 96, 0.3);
  margin-top: 8px;
  margin-bottom: clamp(4px, 0.8dvh, 8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.energia-fill-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #1a8a45, #2ecc71, #78c850);
  border-radius: 14px;
  transition: width 0.4s ease;
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.45);
}

/* Labels sobrepostos dentro da barra */
.energia-bar-labels {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  z-index: 2;
}

.lbl-energia-txt {
  font-size: clamp(7.5px, 1.1dvh, 9px);
  color: #fff;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.lbl-energia-val {
  font-size: clamp(8.5px, 1.2dvh, 10px);
  color: #fff;
  font-weight: bold;
  font-family: monospace;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* ── Barra de XP — mesma estrutura da energia ── */
.xp-badge-bar {
  width: 100%;
  height: clamp(20px, 3dvh, 26px);
  background: rgba(0, 0, 0, 0.55);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(72, 202, 228, 0.25);
  margin-bottom: clamp(4px, 0.8dvh, 8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.xp-fill-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #0056a3, #0096c7, #48cae4);
  border-radius: 14px;
  transition: width 0.5s ease;
  box-shadow: 0 0 8px rgba(72, 202, 228, 0.4);
}

/* Labels sobrepostos dentro da barra de XP */
.xp-bar-labels {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  z-index: 2;
}

.lbl-xp-txt {
  font-size: clamp(7.5px, 1.1dvh, 9px);
  color: #fff;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.lbl-xp-val {
  font-size: clamp(7.5px, 1.1dvh, 9px);
  color: #fff;
  font-weight: bold;
  font-family: monospace;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Grid de Stats */
.stats-badge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(4px, 1vw, 7px);
  width: 100%;
}

.stat-badge-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  padding: clamp(4px, 0.8dvh, 7px) clamp(5px, 1vw, 8px);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.stat-badge-card:hover {
  background: rgba(255, 255, 255, 0.03);
}

.stat-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-badge-img {
  width: clamp(16px, 2.2dvh, 20px);
  height: clamp(16px, 2.2dvh, 20px);
  image-rendering: auto;
}

.stat-badge-data {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0;
}

.stat-badge-val {
  font-size: clamp(11px, 1.6dvh, 14px);
  font-weight: bold;
  color: #fff;
  line-height: 1.1;
}

.stat-badge-lbl {
  font-size: clamp(7px, 0.9dvh, 8.5px);
  color: #fff;
  letter-spacing: 0.3px;
  order: -1;
}

.stat-hp {
  border-left: 3px solid #e74c3c;
  background: rgba(231, 76, 60, 0.14) !important;
}

.stat-atk {
  border-left: 3px solid #e67e22;
  background: rgba(241, 196, 15, 0.13) !important;
}

.stat-def {
  border-left: 3px solid #3498db;
  background: rgba(52, 152, 219, 0.14) !important;
}

.stat-spd {
  border-left: 3px solid #2ecc71;
  background: rgba(46, 204, 113, 0.13) !important;
}

/* Dock de Ações Premium */
.lobby-action-dock {
  position: fixed;
  bottom: 5px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(4px, 1dvh, 8px);
  width: 94%;
  max-width: 440px;
  margin: 0 auto;
  z-index: 50;
}

/* Cartas no lobby (2×2) */
.lobby-cards-grid {
  width: 100%;
  margin-top: 10px;
}

.lobby-cards-grid .habilidades-cards-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  padding: 0;
}

.lobby-cards-grid .habil-card {
  max-width: 115px;
}

.lobby-cards-grid .habil-card-gen {
  max-width: 115px;
}

/* Botão Centro Pokémon no Lobby */
.lobby-btn-centro {
  margin-top: clamp(5px, 0.8dvh, 8px);
  width: 100%;
  background: linear-gradient(135deg, #16a085, #1abc9c);
  border: none;
  border-radius: 12px;
  padding: clamp(7px, 1.2dvh, 10px) 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: #ffffff;
  font-family: monospace;
  font-size: clamp(10.5px, 1.45dvh, 12.5px);
  font-weight: 900;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 15px rgba(22, 160, 133, 0.35);
}

.lobby-btn-centro:hover {
  background: linear-gradient(135deg, #1abc9c, #48c9b0);
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(22, 160, 133, 0.5);
}

.lobby-btn-centro:active {
  transform: scale(0.97);
}

.lobby-btn-centro:disabled {
  opacity: 0.45;
  filter: grayscale(0.5);
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.lobby-btn-centro.lobby-centro-recuperando {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.35);
}

.lobby-btn-centro.lobby-centro-recuperando:disabled {
  opacity: 0.75;
  filter: grayscale(0.2);
  cursor: not-allowed;
  transform: none !important;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.35) !important;
}

.lobby-centro-timer {
  font-family: monospace;
  font-size: clamp(12px, 1.6dvh, 14px);
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
}

.dock-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(8px, 1.2dvh, 12px) 6px;
  background: rgba(18, 18, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: auto !important;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dock-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.dock-btn:active {
  transform: translateY(1px) scale(0.97);
}

.dock-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.dock-btn-icon {
  font-size: 20px;
  margin-bottom: 2px;
}

.dock-btn-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dock-btn-title {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  font-family: monospace;
}

.dock-btn-sub {
  font-size: 8px;
  color: #888;
  letter-spacing: 0.2px;
  margin-top: 1px;
}

/* Estilos específicos das abas do Dock */
.btn-dock-treinar {
  border-bottom: 2.5px solid #8e44ad;
}

.btn-dock-treinar-ativo {
  border-bottom: 2.5px solid #78c850;
  box-shadow: 0 0 12px rgba(120, 200, 80, 0.25);
  animation: glowPulse 2s infinite alternate;
}

.btn-dock-treinar-ativo .dock-btn-sub {
  color: #78c850;
  font-weight: bold;
}

.btn-dock-batalhar {
  border-bottom: 2.5px solid #e74c3c;
}

.btn-dock-jogar {
  flex: 1.15;
  background: linear-gradient(135deg, #ffcc00, #ff9f00) !important;
  border: 1.5px solid #fff !important;
  border-bottom: 3.5px solid #c8a000 !important;
  box-shadow: 0 4px 16px rgba(255, 204, 0, 0.35) !important;
  color: #000 !important;
  border-radius: 18px !important;
  padding: clamp(10px, 1.5dvh, 14px) 6px !important;
  animation: pulseMainBtn 2.5s infinite ease-in-out !important;
}

.btn-dock-jogar:hover {
  animation: none !important;
  border-color: #fff !important;
  transform: translateY(-3px) scale(1.04) !important;
  box-shadow: 0 8px 24px rgba(255, 204, 0, 0.6) !important;
}

.btn-dock-jogar:active {
  animation: none !important;
  border-bottom-width: 1.5px !important;
  transform: translateY(1px) scale(0.97) !important;
}

.dock-btn-icon-main {
  font-size: 24px;
  margin-bottom: 1px;
}

.dock-btn-title-main {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.5px;
  font-family: monospace;
}

/* Animações Premium */
@keyframes pulseMainBtn {
  0% {
    box-shadow: 0 4px 16px rgba(255, 204, 0, 0.35);
    transform: translateY(0) scale(1);
  }

  50% {
    box-shadow: 0 6px 22px rgba(255, 204, 0, 0.55);
    transform: translateY(-1px) scale(1.02);
  }

  100% {
    box-shadow: 0 4px 16px rgba(255, 204, 0, 0.35);
    transform: translateY(0) scale(1);
  }
}

@keyframes breathe {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 4px rgba(120, 200, 80, 0.2);
  }

  100% {
    box-shadow: 0 0 14px rgba(120, 200, 80, 0.5);
    border-color: #78c850;
  }
}

#btn-abrir-ovo {
  margin-top: 6px;
}

/* ── Pokemon Card ── */

.poke-card {
  display: inline-block;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid #ffcc00;
  border-radius: 16px;
  padding: 18px 24px 16px;
  text-align: center;
  box-shadow: 0 0 30px rgba(255, 204, 0, 0.15);
  max-width: calc(100vw - 48px);
}

.poke-img {
  image-rendering: pixelated;
  display: block;
  margin: 0 auto 6px;
  max-width: 100%;
  height: auto;
  animation: bob 3.2s ease-in-out infinite;
  transform-origin: bottom center;
}

.poke-name {
  font-size: clamp(18px, 5vw, 22px);
  font-weight: bold;
  color: #ffcc00;
  letter-spacing: 2px;
  text-shadow: 1px 1px 0 #c8a000;
  margin-bottom: 4px;
}

.poke-tipo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.poke-tipo img {
  width: 12px;
  height: 12px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

.tipo-terra {
  background: #8B6914;
  color: #fff;
}

.tipo-agua {
  background: #2980b9;
  color: #fff;
}

.tipo-fogo {
  background: #c0392b;
  color: #fff;
}

.tipo-grama {
  background: #27ae60;
  color: #fff;
}

.tipo-ar {
  background: #7f8c8d;
  color: #fff;
}

.tipo-vulcao {
  background: #d35400;
  color: #fff;
}

.tipo-tempestade {
  background: #2471a3;
  color: #fff;
}

.tipo-hibrido {
  background: #6c3483;
  color: #fff;
}

.tipo-eletrico {
  background: #f39c12;
  color: #000;
}

.tipo-psiquico {
  background: #8e44ad;
  color: #fff;
}

.tipo-gelo {
  background: #1abc9c;
  color: #fff;
}

.tipo-dragao {
  background: #2c3e95;
  color: #fff;
}

.tipo-normal {
  background: #7f8c8d;
  color: #fff;
}

.tipo-voador {
  background: #5dade2;
  color: #fff;
}

.tipo-veneno {
  background: #9b59b6;
  color: #fff;
}

.tipo-inseto {
  background: #2ecc71;
  color: #000;
}

.tipo-pedra {
  background: #95a5a6;
  color: #000;
}

.tipo-fantasma {
  background: #5b2c6f;
  color: #fff;
}

.tipo-lutador {
  background: #e74c3c;
  color: #fff;
}

.tipo-sombrio {
  background: #34495e;
  color: #fff;
}

.tipo-ferro {
  background: #bdc3c7;
  color: #000;
}

.tipo-fada {
  background: #fd79a8;
  color: #fff;
}

.poke-stats {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.poke-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
}

.stat-icon {
  width: 22px;
  height: 22px;
  image-rendering: auto;
}

.stat-val {
  font-size: 16px;
  font-weight: bold;
  color: #eee;
  line-height: 1.2;
}

.stat-label {
  font-size: 9px;
  color: #888;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── Tooltip ── */

.poke-stat {
  position: relative;
  cursor: default;
}

.poke-stat::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) scale(0.85);
  background: rgba(20, 20, 30, 0.95);
  color: #ffcc00;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  border: 1px solid rgba(255, 204, 0, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.poke-stat:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* ── Hatch screen ── */

#hatch-pokemon img {
  image-rendering: pixelated;
  max-width: 100%;
  height: auto;
  animation: bob 3.2s ease-in-out infinite;
  transform-origin: bottom center;
}

#hatch-stats {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid #ffcc00;
  border-radius: 16px;
  padding: 14px 12px 12px;
  text-align: center;
  box-shadow: 0 0 30px rgba(255, 204, 0, 0.15);
}

.hatch-name {
  font-size: clamp(18px, 5vw, 22px);
  font-weight: bold;
  color: #ffcc00;
  letter-spacing: 2px;
  text-shadow: 1px 1px 0 #c8a000;
  margin-bottom: 12px;
}

#hatch-stats .poke-stats {
  margin-top: 8px;
}

/* ── Modal ── */

#modal-overlay,
#modal-compra-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

#modal-box,
#modal-compra-box {
  background: #1a1a1a;
  border: 2px solid #ffcc00;
  border-radius: 16px;
  padding: 32px 40px 24px;
  text-align: center;
  max-width: 300px;
  width: 85vw;
  box-shadow: 0 0 40px rgba(255, 204, 0, 0.2);
}

#modal-icon,
#modal-compra-icon {
  font-size: 36px;
  color: #ffcc00;
  margin-bottom: 8px;
  font-weight: bold;
}

#modal-title,
#modal-compra-title {
  font-size: 18px;
  color: #ffcc00;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

#modal-msg,
#modal-compra-msg {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 18px;
  line-height: 1.4;
}

#modal-ok {
  min-width: 120px;
  padding: 10px 32px;
}

/* ── Energia Bar ── */

.energia-bar {
  margin-top: 10px;
  background: #222;
  border-radius: 8px;
  height: 22px;
  position: relative;
  overflow: hidden;
  border: 1px solid #444;
}

.energia-bar-lg {
  height: 28px;
  width: min(260px, 80vw);
  margin: 0 auto 14px;
}

.energia-label {
  position: absolute;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
  font-size: 9px;
  color: #fff;
  letter-spacing: 1px;
  z-index: 2;
  font-weight: bold;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.energia-fill {
  height: 100%;
  background: linear-gradient(90deg, #27ae60, #78c850);
  border-radius: 6px;
  transition: width 0.4s ease;
  min-width: 0;
}

.energia-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  color: #fff;
  font-weight: bold;
  z-index: 2;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.btn-treinar {
  margin-top: 10px;
  background: #8e44ad;
  box-shadow: 0 3px 0 #6c3483;
  color: #fff;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 48px;
  line-height: 1.3;
  min-width: auto;
  width: auto;
}

.btn-treinar:active {
  box-shadow: 0 0 0 #6c3483;
}

.btn-treinar-ativo {
  border: 2px solid #78c850;
}

.treinar-texto-principal {
  font-size: clamp(14px, 4vw, 16px);
  letter-spacing: 3px;
}

.treinar-subtexto {
  font-size: 9px;
  color: #78c850;
  letter-spacing: 1px;
  font-weight: normal;
}

.btn-batalhar {
  margin-top: 8px;
  background: #e74c3c;
  box-shadow: 0 3px 0 #c0392b;
  color: #fff;
  min-width: auto;
  width: auto;
}

.btn-batalhar:active {
  box-shadow: 0 0 0 #c0392b;
}

.btn-batalhar:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 3px 0 #c0392b;
}

/* ── Tela de Treino Premium ── */

.treino-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(4px, 1dvh, 8px);
  width: 94%;
  max-width: 440px;
  margin: 0 auto;
  padding: 0 4px;
}

.treino-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(10px, 1.8dvh, 20px) 10px clamp(8px, 1.5dvh, 16px);
  background: rgba(18, 18, 32, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
  height: clamp(125px, 20dvh, 200px);
}

.treino-card-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.treino-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.treino-card-icon {
  width: clamp(20px, 2.8dvh, 28px);
  height: clamp(20px, 2.8dvh, 28px);
  image-rendering: auto;
}

.treino-card-label {
  font-size: clamp(10px, 1.4dvh, 13px);
  font-weight: bold;
  color: #ffcc00;
  letter-spacing: 1px;
}

.treino-card-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  padding: clamp(4px, 0.8dvh, 8px) clamp(8px, 1.5vw, 16px);
  border-radius: 20px;
  margin-bottom: 4px;
}

.treino-card-val {
  font-size: clamp(12px, 1.8dvh, 16px);
  font-weight: bold;
  color: #888;
}

.treino-card-arrow {
  font-size: clamp(10px, 1.4dvh, 14px);
  color: #78c850;
}

.treino-card-val-next {
  font-size: clamp(14px, 2dvh, 19px);
  font-weight: 900;
  color: #fff;
}

.treino-card-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 4px;
}

.treino-card-time {
  font-size: clamp(8.5px, 1.2dvh, 11px);
  color: #aaa;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.btn-treino-iniciar-premium {
  padding: clamp(5px, 1dvh, 9px) clamp(12px, 2vw, 24px);
  font-size: clamp(9px, 1.2dvh, 11px);
  font-weight: bold;
  font-family: monospace;
  color: #fff;
  background: #8e44ad;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 1px;
  box-shadow: 0 2px 0 #6c3483;
  transition: all 0.1s ease;
  text-transform: uppercase;
  min-width: auto;
  width: 100%;
  max-width: clamp(80px, 12vw, 110px);
}

.btn-treino-iniciar-premium:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 #6c3483;
}

.btn-treino-iniciar-premium:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 0 #6c3483;
}

/* ── Timer de Treino Premium ── */

#treino-timer-area {
  width: 94%;
  max-width: 440px;
  margin: 0 auto 12px;
  padding: 0 4px;
}

.treino-timer-premium {
  background: rgba(18, 18, 32, 0.7);
  backdrop-filter: blur(10px);
  border: 1.5px solid #8e44ad;
  border-radius: 16px;
  padding: 10px 14px 8px;
  text-align: center;
  box-shadow: 0 0 16px rgba(142, 68, 173, 0.25);
}

.treino-timer-header-lbl {
  font-size: 11px;
  color: #fff;
  letter-spacing: 1px;
  font-weight: bold;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #e74c3c;
  border-radius: 50%;
  animation: pulseDot 1.5s infinite;
}

.treino-timer-progress-bar {
  height: 8px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 6px;
}

.treino-timer-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8e44ad, #c39bd3);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.treino-timer-clock {
  font-size: 18px;
  font-weight: bold;
  color: #ffcc00;
  letter-spacing: 2px;
  text-shadow: 1px 1px 0 #c8a000;
}

@keyframes pulseDot {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }

  100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
}

/* ── Energia bar na tela de treino ── */

#treino-energia {
  width: 100%;
  margin: 0 auto;
}

.treino-pontos-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 94%;
  max-width: 440px;
  margin: 0 auto 12px;
  padding: 8px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(50, 30, 80, 0.8), rgba(30, 15, 60, 0.9));
  border: 1.5px solid rgba(255, 204, 0, 0.25);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.treino-pontos-label {
  font-size: 12px;
  font-weight: 800;
  color: #ffcc00;
  letter-spacing: 0.5px;
  font-family: monospace;
}

.treino-pontos-val {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  font-family: monospace;
  text-shadow: 0 0 8px rgba(255, 204, 0, 0.3);
  min-width: 24px;
  text-align: center;
}

/* ── Responsivo Extra (mobile) ── */

@media (max-width: 380px) {
  .screen-inner {
    padding: 12px 6px;
  }

  .btn {
    padding: 10px 20px;
    min-width: 120px;
    font-size: 13px;
  }

  .btn-treinar {
    padding: 6px 20px;
    width: min(240px, 82vw);
  }

  .btn-batalhar {
    width: min(240px, 82vw);
  }

  .poke-card {
    padding: 12px 10px 10px;
    max-width: calc(100vw - 20px);
  }

  .poke-stat {
    min-width: 36px;
  }

  .poke-stats {
    gap: 4px;
  }

  .stat-icon {
    width: 16px;
    height: 16px;
  }

  .stat-val {
    font-size: 13px;
  }

  .stat-label {
    font-size: 8px;
  }

  .treino-grid {
    max-width: 290px;
    gap: 5px;
    padding: 0 2px;
  }

  #treino-timer-area {
    max-width: 290px;
    padding: 0 2px;
  }

  #treino-energia {
    max-width: 290px;
    padding: 0 2px;
  }

  .treino-card {
    padding: 8px 3px 6px;
    border-width: 1px;
  }

  .treino-icon {
    width: 22px;
    height: 22px;
  }

  .treino-label {
    font-size: 9px;
    letter-spacing: 1px;
  }

  .treino-stat-valor {
    font-size: 11px;
  }

  .treino-tempo-info {
    font-size: 8px;
  }

  .btn-treino-iniciar {
    padding: 3px 12px;
    font-size: 8px;
  }

  .treino-timer {
    padding: 6px 8px;
  }

  .treino-timer-tempo {
    font-size: 14px;
  }

  .energia-bar-lg {
    height: 22px;
  }

  #screen-treino .screen-inner {
    padding-top: 34px;
  }
}

@media (min-width: 381px) and (max-width: 480px) {
  .screen-inner {
    padding: 16px 10px;
  }

  .btn-treinar {
    width: min(260px, 80vw);
  }

  .btn-batalhar {
    width: min(260px, 80vw);
  }

  .poke-card {
    padding: 14px 16px 12px;
    max-width: calc(100vw - 28px);
  }

  .treino-grid {
    max-width: 310px;
  }

  #treino-timer-area {
    max-width: 310px;
  }

  #treino-energia {
    max-width: 310px;
  }
}

/* ── Jogo ── */

#screen-game {
  background: #000;
  padding: 0;
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  cursor: default;
}

/* 
==================================================================
💎 ESTILOS PREMIUM DA LOJA, MOCHILA E BOX DO BILL (MOBILE FIRST) 💎
==================================================================
*/

/* Indicador de Moedas no Header - Glassmorphic */
.trainer-cash {
  font-size: clamp(11px, 1.6dvh, 13px) !important;
  font-weight: bold !important;
  color: #ffcc00 !important;
  background: rgba(255, 204, 0, 0.08) !important;
  border: 1.5px solid rgba(255, 204, 0, 0.3) !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  text-shadow: 0 0 4px rgba(255, 204, 0, 0.4) !important;
  letter-spacing: 0.5px !important;
  animation: breathe 3.2s ease-in-out infinite !important;
  box-sizing: border-box !important;
}

/* Submenu de Navegação do Lobby - Full Width Premium Capsule Edge-to-Edge */
.lobby-submenu {
  display: flex !important;
  justify-content: space-around !important;
  align-items: center !important;
  background: rgba(13, 13, 27, 0.95) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border: none !important;
  border-top: 1.2px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 0 !important;
  padding: 10px 0 !important;
  margin: 0 !important;
  width: 100% !important;
  gap: 0 !important;
  z-index: 10;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5) !important;
  box-sizing: border-box !important;
}

.submenu-btn {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 6px 0 !important;
  cursor: pointer !important;
  min-width: auto !important;
  position: relative !important;
  overflow: visible !important;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Base line indicator at the top of the button */
.submenu-btn::after {
  content: '';
  position: absolute;
  top: -10px;
  /* Aligns exactly with the top border edge of the full-width container */
  left: 10%;
  width: 80%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: transparent;
  opacity: 0;
  transform: scaleX(0.3);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.submenu-btn:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Active scale click response */
.submenu-btn:active {
  transform: scale(0.92) !important;
}

/* Button indicator, text coloring, and icon effects */

/* Loja (Gold/Yellow) */
#btn-submenu-loja::after {
  background: #f1c40f;
  box-shadow: 0 1px 8px rgba(241, 196, 15, 0.8);
}

#btn-submenu-loja .submenu-label {
  color: #f1c40f !important;
  text-shadow: 0 0 4px rgba(241, 196, 15, 0.3);
}

#btn-submenu-loja:hover .submenu-btn-img {
  filter: drop-shadow(0 0 5px rgba(241, 196, 15, 0.6)) brightness(1.25);
}

/* Mochila (Blue) */
#btn-submenu-mochila::after {
  background: #3498db;
  box-shadow: 0 1px 8px rgba(52, 152, 219, 0.8);
}

#btn-submenu-mochila .submenu-label {
  color: #3498db !important;
  text-shadow: 0 0 4px rgba(52, 152, 219, 0.3);
}

#btn-submenu-mochila:hover .submenu-btn-img {
  filter: drop-shadow(0 0 5px rgba(52, 152, 219, 0.6)) brightness(1.25);
}

/* Box / Pokemons (Green) */
#btn-submenu-box::after {
  background: #2ecc71;
  box-shadow: 0 1px 8px rgba(46, 204, 113, 0.8);
}

#btn-submenu-box .submenu-label {
  color: #2ecc71 !important;
  text-shadow: 0 0 4px rgba(46, 204, 113, 0.3);
}

#btn-submenu-box:hover .submenu-btn-img {
  filter: drop-shadow(0 0 5px rgba(46, 204, 113, 0.6)) brightness(1.25);
}

/* Mercado (Orange) */
#btn-submenu-mercado::after {
  background: #e67e22;
  box-shadow: 0 1px 8px rgba(230, 126, 34, 0.8);
}

#btn-submenu-mercado .submenu-label {
  color: #e67e22 !important;
  text-shadow: 0 0 4px rgba(230, 126, 34, 0.3);
}

#btn-submenu-mercado:hover .submenu-btn-img {
  filter: drop-shadow(0 0 5px rgba(230, 126, 34, 0.6)) brightness(1.25);
}

/* Estadio (Red) */
#btn-submenu-estadio::after {
  background: #e74c3c;
  box-shadow: 0 1px 8px rgba(231, 76, 60, 0.8);
}

#btn-submenu-estadio .submenu-label {
  color: #e74c3c !important;
  text-shadow: 0 0 4px rgba(231, 76, 60, 0.3);
}

#btn-submenu-estadio:hover .submenu-btn-img {
  filter: drop-shadow(0 0 5px rgba(231, 76, 60, 0.6)) brightness(1.25);
}

/* Ranking (Purple) */
#btn-submenu-ranking::after {
  background: #9b59b6;
  box-shadow: 0 1px 8px rgba(155, 89, 182, 0.8);
}

#btn-submenu-ranking .submenu-label {
  color: #9b59b6 !important;
  text-shadow: 0 0 4px rgba(155, 89, 182, 0.3);
}

#btn-submenu-ranking:hover .submenu-btn-img {
  filter: drop-shadow(0 0 5px rgba(155, 89, 182, 0.6)) brightness(1.25);
}

.submenu-icon {
  margin-bottom: 3.5px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.submenu-btn-img {
  width: 22px;
  height: 22px;
  image-rendering: auto;
  display: block;
}

.submenu-label {
  font-size: 9px !important;
  font-weight: 900;
  color: #bbb;
  font-family: monospace;
  letter-spacing: 0.8px;
  transition: color 0.2s ease;
}

/* Modais de Overlay Customizados (Telas Completas) */
.overlay-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #111122;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20000;
}

.modal-content-premium {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  background: #111122;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  animation: slideUpModal 0.28s cubic-bezier(0.1, 0.76, 0.55, 0.94);
}

@keyframes slideUpModal {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Dialogs do Modal (Card flutuante com blur) */
.dialog-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 13, 26, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 110;
}

.dialog-modal-overlay .modal-content-premium {
  width: 92%;
  max-width: 440px;
  height: auto;
  max-height: 90%;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(20, 20, 35, 0.75);
  backdrop-filter: blur(20px);
  animation: zoomInModal 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding-bottom: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

@keyframes zoomInModal {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-header-premium {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.05);
  background: rgba(18, 18, 32, 0.4);
}

.modal-title-premium {
  font-size: clamp(13px, 2dvh, 16px);
  font-weight: 900;
  color: #ffcc00;
  letter-spacing: 1.5px;
  text-shadow: 0 0 6px rgba(255, 204, 0, 0.25);
  font-family: monospace;
}

.btn-back {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  border: 2px solid #f1948a;
  color: #fff;
  font-family: monospace, sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 0 #96281b, 0 3px 6px rgba(0, 0, 0, 0.25);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  line-height: 1;
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

.btn-back:hover {
  background: linear-gradient(135deg, #ff6b6b, #e74c3c);
  transform: translateY(-1px);
  box-shadow: 0 3px 0 #96281b, 0 5px 10px rgba(0, 0, 0, 0.3);
}

.btn-back:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #96281b, 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-close-modal {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #e74c3c;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-close-modal:hover {
  background: rgba(231, 76, 60, 0.18);
  transform: scale(1.1);
}

.modal-cash-indicator {
  padding: 8px 18px;
  font-size: 11.5px;
  font-weight: bold;
  color: #aaa;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.15);
}

.modal-cash-indicator .cash-val {
  color: #ffcc00;
  font-size: 13px;
  text-shadow: 0 0 3px rgba(255, 204, 0, 0.3);
}

.modal-body-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
  box-sizing: border-box;
  width: 100%;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.modal-body-scroll::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

/* Grid da Loja */
.shop-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 10px 12px;
  box-sizing: border-box;
  transition: all 0.2s;
  width: 100%;
}

.shop-card:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

.item-img-container {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
  position: relative;
}

.item-img {
  width: 76px;
  height: 76px;
  image-rendering: pixelated;
  object-fit: contain;
}

@keyframes ovo-balanco {
  0%   { transform: rotate(-4deg) scale(1);    }
  20%  { transform: rotate(4deg)  scale(1.06); }
  40%  { transform: rotate(-3deg) scale(1);    }
  60%  { transform: rotate(3deg)  scale(1.04); }
  80%  { transform: rotate(-2deg) scale(1);    }
  100% { transform: rotate(0deg)  scale(1);    }
}
.item-img.ovo-animado {
  animation: ovo-balanco 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(255, 220, 80, 0.4));
}

.item-info {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.item-name {
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-desc {
  font-size: 9px;
  color: #888;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-price {
  font-size: 11px;
  font-weight: 900;
  color: #ffcc00;
  margin-top: 1px;
}

.btn-buy-item {
  padding: 8px 14px;
  font-size: 9.5px;
  font-weight: bold;
  background: #ffcc00;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 0 #c8a000;
  transition: all 0.1s ease;
  min-width: 76px !important;
  width: 76px;
  text-transform: uppercase;
  color: #000;
  font-family: monospace;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.btn-buy-item:active {
  transform: translateY(1.5px);
  box-shadow: 0 0.5px 0 #c8a000;
}

.btn-buy-item:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 0 #c8a000;
}

/* Mochila List */
.inventory-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inventory-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 10px 12px;
  box-sizing: border-box;
  width: 100%;
}

.item-qty-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #e74c3c;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  padding: 2px 7px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-family: monospace;
  line-height: 1;
}

.btn-use-item {
  padding: 8px 14px;
  font-size: 9.5px;
  font-weight: bold;
  background: #27ae60;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 0 #1e8449;
  transition: all 0.1s ease;
  min-width: 76px !important;
  width: 76px;
  text-transform: uppercase;
  font-family: monospace;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.btn-use-item:active {
  transform: translateY(1.5px);
  box-shadow: 0 0.5px 0 #1e8449;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  color: #555;
  text-align: center;
  gap: 8px;
}

.empty-icon {
  font-size: 36px;
  opacity: 0.35;
}

.empty-text {
  font-size: 11.5px;
  letter-spacing: 0.5px;
  line-height: 1.45;
  font-family: monospace;
}

/* Box do Bill */
.box-pokemon-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.box-pk-card {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px solid rgba(52, 152, 219, 0.22) !important;
  border-radius: 16px;
  padding: 10px 12px;
  gap: 8px;
  box-sizing: border-box;
  transition: all 0.2s;
  position: relative;
  width: 100%;
}

/* Custom type backgrounds & borders */
.box-pk-card.type-grama {
  background: rgba(46, 204, 113, 0.12) !important;
  border: 1.5px solid rgba(46, 204, 113, 0.35) !important;
}

.box-pk-card.type-fogo {
  background: rgba(231, 76, 60, 0.12) !important;
  border: 1.5px solid rgba(231, 76, 60, 0.35) !important;
}

.box-pk-card.type-agua {
  background: rgba(52, 152, 219, 0.12) !important;
  border: 1.5px solid rgba(52, 152, 219, 0.35) !important;
}

.box-pk-card.type-eletrico {
  background: rgba(241, 196, 15, 0.10) !important;
  border: 1.5px solid rgba(241, 196, 15, 0.30) !important;
}

.box-pk-card.type-terra {
  background: rgba(230, 126, 34, 0.12) !important;
  border: 1.5px solid rgba(230, 126, 34, 0.35) !important;
}

.box-pk-card.type-pedra {
  background: rgba(149, 165, 166, 0.12) !important;
  border: 1.5px solid rgba(149, 165, 166, 0.35) !important;
}

.box-pk-card.type-inseto {
  background: rgba(150, 191, 12, 0.12) !important;
  border: 1.5px solid rgba(150, 191, 12, 0.35) !important;
}

.box-pk-card.type-veneno {
  background: rgba(155, 89, 182, 0.12) !important;
  border: 1.5px solid rgba(155, 89, 182, 0.35) !important;
}

.box-pk-card.type-normal {
  background: rgba(127, 140, 141, 0.10) !important;
  border: 1.5px solid rgba(127, 140, 141, 0.30) !important;
}

.box-pk-card.type-fada {
  background: rgba(253, 121, 168, 0.12) !important;
  border: 1.5px solid rgba(253, 121, 168, 0.35) !important;
}

.box-pk-card.type-voador {
  background: rgba(129, 207, 224, 0.15) !important;
  border: 1.5px solid rgba(129, 207, 224, 0.35) !important;
}

.box-pk-card.type-psiquico {
  background: rgba(224, 130, 228, 0.12) !important;
  border: 1.5px solid rgba(224, 130, 228, 0.35) !important;
}

.box-pk-card.type-lutador {
  background: rgba(192, 57, 43, 0.10) !important;
  border: 1.5px solid rgba(192, 57, 43, 0.30) !important;
}

.box-pk-card.type-ferro {
  background: rgba(149, 165, 166, 0.12) !important;
  border: 1.5px solid rgba(149, 165, 166, 0.35) !important;
}

.box-pk-card.type-dragao {
  background: rgba(37, 116, 169, 0.15) !important;
  border: 1.5px solid rgba(37, 116, 169, 0.38) !important;
}

.box-pk-card.type-sombrio {
  background: rgba(31, 58, 147, 0.12) !important;
  border: 1.5px solid rgba(31, 58, 147, 0.35) !important;
}

.box-pk-card.type-fantasma {
  background: rgba(102, 51, 153, 0.12) !important;
  border: 1.5px solid rgba(102, 51, 153, 0.35) !important;
}

.box-pk-card.type-gelo {
  background: rgba(137, 196, 244, 0.12) !important;
  border: 1.5px solid rgba(137, 196, 244, 0.35) !important;
}

.box-pk-card.active-pk-border {
  border: 2px solid #ffcc00 !important;
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.12) !important;
}

.box-pk-card.a-venda-pk-border {
  border: 2px solid #e67e22 !important;
  box-shadow: 0 0 10px rgba(230, 126, 34, 0.15) !important;
}

.box-pk-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.box-pk-img-container {
  background: rgba(0, 0, 0, 0.25);
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
}

.box-pk-img {
  height: 40px;
  width: auto;
  image-rendering: pixelated;
}

.box-pk-meta {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.box-pk-name {
  font-size: 13.5px;
  font-weight: 900;
  color: #ffcc00;
  letter-spacing: 0.5px;
}

.box-pk-lvl-type {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: #888;
}

.box-pk-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4.5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.box-pk-type-badge img {
  width: 11.5px;
  height: 11.5px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

.box-pk-active-badge {
  font-size: 8.5px;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: monospace;
  align-self: flex-start;
  width: max-content;
  box-shadow: none;
  transition: all 0.25s ease;
  letter-spacing: 0.5px;
}

.box-pk-active-badge.state-ativo {
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.4);
  color: #2ecc71;
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.08);
}

.box-pk-active-badge.state-recuperando {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.4);
  color: #ff7675;
  box-shadow: 0 0 10px rgba(231, 76, 60, 0.08);
}

.box-pk-active-badge.state-venda {
  background: rgba(230, 126, 34, 0.15);
  border: 1px solid rgba(230, 126, 34, 0.4);
  color: #ffaa44;
  box-shadow: 0 0 10px rgba(230, 126, 34, 0.08);
}

.box-pk-energy-bar {
  width: 60px;
  height: 5px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 2px;
}

.box-pk-energy-fill {
  height: 100%;
  background: linear-gradient(90deg, #27ae60, #78c850);
}

.btn-select-pk {
  padding: 8px 12px;
  font-size: 9.5px;
  font-weight: bold;
  background: #ffcc00;
  color: #000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 0 #c8a000;
  transition: all 0.1s ease;
  text-transform: uppercase;
  font-family: monospace;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.btn-select-pk:active {
  transform: translateY(1.5px);
  box-shadow: 0 0.5px 0 #c8a000;
}

.box-pk-stats {
  display: flex;
  justify-content: space-around;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 8px 12px;
  box-sizing: border-box;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4);
}

.box-pk-stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px !important;
  color: #ddd;
  font-weight: bold;
  font-family: monospace;
}

.box-pk-stat-icon {
  width: 18px !important;
  height: 18px !important;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.5));
}

/* Ajustes responsivos adicionais para tamanhos pequenos */
@media (max-width: 380px) {
  .modal-content-premium {
    height: 100%;
  }

  .shop-card,
  .inventory-card,
  .box-pk-card {
    padding: 8px 10px;
  }

  .btn-buy-item,
  .btn-use-item,
  .btn-select-pk {
    padding: 7px 10px;
    font-size: 9px;
    min-width: 68px !important;
    width: 68px;
  }
}

/* 
==================================================================
🌟 ESTILOS DE LAYOUT REFINADOS (HATCH OVERLAP & DETALHES PREMIUM) 🌟
==================================================================
*/

/* Sobreposição do Hatch de Pokémon */
#hatch-pokemon {
  margin-bottom: 8px;
  /* Ajuste para a imagem ficar acima do quadro e não dentro */
  position: relative;
  z-index: 5;
}

#hatch-stats {
  position: relative;
  z-index: 2;
  margin-top: 0;
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: rgba(18, 18, 32, 0.85);
  backdrop-filter: blur(12px);
  border: 2px solid #ffcc00;
  border-radius: clamp(12px, 2.5vh, 20px);
  padding: clamp(8px, 1.8vh, 16px) 12px clamp(6px, 1.5vh, 14px);
  text-align: center;
  box-shadow: 0 0 35px rgba(255, 204, 0, 0.2);
}

#btn-hatch-continuar {
  margin-top: clamp(8px, 1.8vh, 20px) !important;
  /* Espaçamento ideal e adaptável para o botão Continuar */
  box-shadow: 0 4px 0 #1e8449 !important;
}

/* Detalhes do Item - Modernizado */
.detalhe-img-container {
  background: radial-gradient(circle, rgba(255, 204, 0, 0.15) 0%, transparent 70%);
  border: 2px solid rgba(255, 204, 0, 0.25);
  border-radius: 24px;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(255, 204, 0, 0.15);
  margin: 10px 0;
  animation: floatDetailImg 4s ease-in-out infinite;
}

@keyframes floatDetailImg {

  0%,
  100% {
    transform: translateY(0);
  }

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

.loja-detalhe-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.loja-detalhe-nome {
  font-size: 16px;
  font-weight: 900;
  color: #ffcc00;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
  font-family: monospace;
}

.loja-detalhe-desc-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 10px 14px;
  margin: 2px 0;
  width: 90%;
  box-sizing: border-box;
}

.loja-detalhe-desc {
  font-size: 11px;
  color: #ccc;
  line-height: 1.45;
  font-family: monospace;
}

.loja-detalhe-preco-badge {
  background: rgba(255, 204, 0, 0.12);
  border: 1px solid rgba(255, 204, 0, 0.25);
  padding: 5px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 900;
  color: #ffcc00;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  font-family: monospace;
}

.btn-loja-detalhe-comprar-premium {
  width: min(240px, 80vw) !important;
  padding: 12px 0 !important;
  font-size: 13px !important;
  letter-spacing: 2px !important;
  background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
  box-shadow: 0 4px 0 #1e8449 !important;
  margin-top: 8px;
  color: #fff !important;
  font-family: monospace !important;
}

.btn-loja-detalhe-comprar-premium:active {
  box-shadow: 0 0 0 #1e8449 !important;
  transform: translateY(2px);
}

/* Botão continuar comprando premium pós-compra */
/* Ícone de Moeda do Dinheiro */
.coin-img {
  width: 14px;
  height: 14px;
  image-rendering: auto;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
  margin-top: -2px;
}

/* ── Perfil do Treinador Premium ── */
.perfil-avatar-preview-glow {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.perfil-avatar-preview-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffcc00, #ff9f00);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.4);
  border: 3px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.perfil-avatar-preview-circle img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.badge-gratis {
  background: rgba(39, 174, 96, 0.15);
  border: 1px solid #2ecc71;
  color: #2ecc71;
  text-shadow: 0 0 4px rgba(46, 204, 113, 0.3);
}

.badge-pago {
  background: rgba(243, 156, 18, 0.15);
  border: 1px solid #f1c40f;
  color: #f1c40f;
  text-shadow: 0 0 4px rgba(241, 196, 15, 0.3);
}

.avatar-card-premium {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 120px;
}

.avatar-card-premium img {
  width: 72px;
  height: 72px;
  image-rendering: pixelated;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.avatar-card-name {
  font-size: 9.5px;
  font-weight: 800;
  color: #bbb;
  letter-spacing: 0.5px;
  text-align: center;
  text-transform: capitalize;
  font-family: monospace;
  line-height: 1.15;
  word-break: break-word;
}

.avatar-card-premium:hover .avatar-card-name {
  color: #ffcc00;
}

.avatar-card-premium:hover {
  background: rgba(255, 204, 0, 0.08);
  border-color: rgba(255, 204, 0, 0.4);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 204, 0, 0.15);
}

.avatar-card-premium:hover img {
  transform: scale(1.1);
}

.avatar-card-premium:active {
  transform: scale(0.95);
}

.avatar-card-premium.selecionado {
  background: rgba(255, 204, 0, 0.15) !important;
  border-color: #ffcc00 !important;
  box-shadow: 0 0 14px rgba(255, 204, 0, 0.3) !important;
}

/* Personalização da Scrollbar na Grid de Avatares */
.avatar-grid-premium::-webkit-scrollbar {
  width: 5px;
}

.avatar-grid-premium::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}

.avatar-grid-premium::-webkit-scrollbar-thumb {
  background: rgba(255, 204, 0, 0.2);
  border-radius: 8px;
}

.avatar-grid-premium::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 204, 0, 0.45);
}

/* ── Modal Detalhes do Pokémon Premium ── */
.stats-badge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 100%;
}

.stat-badge-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 5px 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s;
}

.stat-badge-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.stat-badge-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-badge-img {
  width: 16px;
  height: 16px;
  image-rendering: auto;
}

.stat-badge-data {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.stat-badge-val {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  font-family: monospace;
}

.stat-badge-lbl {
  font-size: 7px;
  color: #fff;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-family: monospace;
  order: -1;
}

/* Coloração por tipo de stat */
.stat-hp .stat-badge-val {
  color: #e74c3c;
}

.stat-hp {
  border-color: rgba(231, 76, 60, 0.3);
  background: rgba(231, 76, 60, 0.14);
}

.stat-atk .stat-badge-val {
  color: #f39c12;
}

.stat-atk {
  border-color: rgba(241, 196, 15, 0.3);
  background: rgba(241, 196, 15, 0.13);
}

.stat-def .stat-badge-val {
  color: #3498db;
}

.stat-def {
  border-color: rgba(52, 152, 219, 0.3);
  background: rgba(52, 152, 219, 0.14);
}

.stat-spd .stat-badge-val {
  color: #2ecc71;
}

.stat-spd {
  border-color: rgba(46, 204, 113, 0.3);
  background: rgba(46, 204, 113, 0.13);
}

/* ── Modal Detalhes Premium Refinado ── */
#modal-pokemon-detalhes .detalhe-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#modal-pokemon-detalhes .detalhe-body::-webkit-scrollbar {
  display: none;
}

/* Card Topo */
.detalhe-top-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px;
}

.detalhe-top-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.detalhe-img-wrap {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  width: 112px;
  margin-top: -13px;
}

.detalhe-img-wrap img {
  width: 100px;
  height: 100px;
  image-rendering: pixelated;
  object-fit: contain;
}

.detalhe-tipo-badge {
  font-size: 7px;
  padding: 2px 6px;
  margin-left: 4px;
  flex-shrink: 0;
}

.detalhe-nivel-inline {
  font-size: 9px;
  font-family: monospace;
  color: rgba(255,255,255,0.5);
  margin-left: 4px;
  flex-shrink: 0;
}

.detalhe-nivel-abaixo {
  font-size: 10px;
  font-family: monospace;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.5px;
}

.detalhe-nivel-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  margin-top: -5px;
}

.detalhe-level-type {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.detalhe-nome-row {
  display: flex;
  align-items: center;
  width: 100%;
}

.detalhe-nome-row .box-pk-type-badge {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 7.5px;
  padding: 2px 8px;
}

.detalhe-nome-row .box-pk-type-badge img {
  width: 8px;
  height: 8px;
}

.detalhe-level-type span:first-child {
  font-size: 8px;
  color: #aaa;
  font-weight: 900;
  font-family: monospace;
  white-space: nowrap;
}

.detalhe-info-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.detalhe-nome {
  font-size: 11px;
  font-weight: 900;
  color: #ffcc00;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(255, 204, 0, 0.2);
  text-transform: uppercase;
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* Energia */
.detalhe-energia-row {
  display: flex;
  gap: 5px;
  align-items: center;
}

.detalhe-energia-bar {
  margin: 0;
  height: 18px;
  flex: 1;
  min-width: 0;
}

.detalhe-energia-bar .lbl-energia-val {
  font-size: 8px;
}

.detalhe-btn-centro {
  width: 100%;
  background: linear-gradient(135deg, #16a085, #1abc9c);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: #fff;
  font-family: monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.5px;
  box-shadow: 0 3px 12px rgba(26, 188, 156, 0.35), 0 3px 0 #0e6655;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  line-height: 1;
}

.detalhe-btn-centro:hover {
  background: linear-gradient(135deg, #1abc9c, #48c9b0);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(26, 188, 156, 0.5), 0 4px 0 #0e6655;
}

.detalhe-btn-centro:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #0e6655;
}

.detalhe-btn-centro:disabled {
  opacity: 0.4;
  filter: grayscale(0.6);
  cursor: not-allowed;
  transform: none;
}

/* Recovery Banner */
.detalhe-recovery {
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.2), rgba(231, 76, 60, 0.08));
  border: 1px solid #e74c3c;
  border-radius: 8px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 12px rgba(231, 76, 60, 0.15);
}

.detalhe-recovery span:first-child {
  font-size: 14px;
  animation: pulse 1.5s infinite;
}

.detalhe-recovery span:last-child {
  color: #fff;
  font-size: 13px;
  font-family: monospace;
  font-weight: 900;
  letter-spacing: 0.5px;
}

/* XP */
.detalhe-xp-bar {
  margin: 0;
}

.xp-labels-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  pointer-events: none;
}

.detalhe-xp-header .lbl-xp-txt {
  font-size: 7.5px;
}

.detalhe-xp-header .lbl-xp-val {
  font-size: 8px;
}

/* Stats Grid */
.detalhe-stats-grid {
  width: 100%;
  gap: 5px;
}

.detalhe-stats-grid .stat-badge-card {
  padding: 6px 8px;
  gap: 6px;
}

.detalhe-stats-grid .stat-badge-icon img {
  width: 17px;
  height: 17px;
}

.detalhe-stats-grid .stat-badge-val {
  font-size: 13px;
}

.detalhe-stats-grid .stat-badge-lbl {
  font-size: 7px;
}

/* Botão Habilidades */
.detalhe-btn-habilidades {
  width: 100%;
  background: linear-gradient(135deg, #8e44ad, #a569bd);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: #fff;
  font-family: monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  box-shadow: 0 3px 12px rgba(142, 68, 173, 0.35);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
}

.detalhe-btn-habilidades:hover {
  background: linear-gradient(135deg, #9b59b6, #bb8fce);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(142, 68, 173, 0.5);
}

.detalhe-btn-habilidades:active {
  transform: scale(0.97);
}

/* Apelido */
.detalhe-apelido-box {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-sizing: border-box;
}

.detalhe-apelido-label {
  font-size: 8px;
  font-weight: 900;
  color: #ffcc00;
  text-align: left;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.detalhe-apelido-row {
  display: flex;
  gap: 5px;
  width: 100%;
}

.detalhe-apelido-row input {
  flex: 1;
  margin-bottom: 0 !important;
  font-size: 10px !important;
  height: 28px;
  padding: 0 8px;
  box-sizing: border-box;
}

.detalhe-btn-ok {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  border: none;
  border-radius: 6px;
  padding: 0 12px;
  height: 28px;
  cursor: pointer;
  color: #fff;
  font-family: monospace;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(230, 126, 34, 0.3);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.detalhe-btn-ok:hover {
  background: linear-gradient(135deg, #e67e22, #d35400);
  transform: scale(1.03);
}

.detalhe-btn-ok:active {
  transform: scale(0.95);
}

.detalhe-btn-ok:disabled {
  opacity: 0.35;
  filter: grayscale(0.6);
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.detalhe-apelido-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.detalhe-apelido-footer span:first-child {
  font-size: 7.5px;
  font-weight: 700;
  color: #ffcc00;
  font-family: monospace;
}

.detalhe-apelido-footer span:first-child span {
  color: #2ecc71;
}

#msg-pokemon-apelido {
  font-size: 7.5px;
  font-weight: 700;
  font-family: monospace;
  text-align: right;
}

/* Botões de Ação */
.detalhe-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.detalhe-btn-ativar {
  width: 100%;
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 0;
  color: #fff;
  font-family: monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.5px;
  cursor: pointer;
  box-shadow: 0 3px 0 #1e8449, 0 4px 12px rgba(39, 174, 96, 0.3);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.detalhe-btn-ativar:hover {
  background: linear-gradient(135deg, #2ecc71, #58d68d);
  transform: translateY(-1px);
  box-shadow: 0 4px 0 #1e8449, 0 6px 16px rgba(39, 174, 96, 0.4);
}

.detalhe-btn-ativar:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #1e8449;
}

.detalhe-btn-vender {
  width: 100%;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 0;
  color: #fff;
  font-family: monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.5px;
  cursor: pointer;
  box-shadow: 0 3px 0 #96281b, 0 4px 12px rgba(231, 76, 60, 0.3);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.detalhe-btn-vender:hover {
  background: linear-gradient(135deg, #ff6b6b, #e74c3c);
  transform: translateY(-1px);
}

.detalhe-btn-vender:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #96281b;
}

.detalhe-btn-voltar {
  width: 100%;
  justify-content: center;
  height: 36px;
  font-size: 10px;
  margin-top: 0;
}

.energia-badge-bar {
  width: 100%;
  height: clamp(20px, 3dvh, 26px);
  background: rgba(0, 0, 0, 0.55);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(39, 174, 96, 0.3);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.energia-fill-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #1a8a45, #2ecc71, #78c850);
  border-radius: 14px;
  transition: width 0.4s ease;
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.45);
}

.energia-bar-labels {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;
}

.lbl-energia-txt {
  font-size: 8px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.lbl-energia-val {
  font-size: 9px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* ==================================================================
💎 ESTILOS PREMIUM DO NOVO SISTEMA JOGAR & COMBATES (REGIONAL HUNT) 💎
================================================================== */

.game-subscreen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.game-subscreen.hidden {
  display: none !important;
}

.regions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  overflow-y: auto;
  padding: 4px 2px;
  box-sizing: border-box;
  flex: 1;
  align-content: start;
}

.regions-grid::-webkit-scrollbar {
  display: none;
}

/* Lista de Pokémons Selvagens */
.wild-pokemon-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  box-sizing: border-box;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  background: rgba(39, 174, 96, 0.12);
  border: 1.5px solid rgba(39, 174, 96, 0.35);
  border-radius: 16px;
  box-shadow: inset 0 0 20px rgba(39, 174, 96, 0.08);
  margin-bottom: 8px;
}

.wild-pokemon-list::-webkit-scrollbar {
  display: none;
}

#game-wild-search:focus {
  border-color: #ffcc00 !important;
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.25);
  background: rgba(0, 0, 0, 0.65) !important;
}

/* Card de Pokémon Selvagem */
.wild-pk-card {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  border: 2px solid rgba(230, 126, 34, 0.7);
  background: linear-gradient(135deg, rgba(243, 156, 18, 0.95) 0%, rgba(211, 84, 0, 0.98) 100%);
  box-sizing: border-box;
  gap: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(211, 84, 0, 0.25);
  flex-shrink: 0;
}

.wild-pk-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.wild-pk-card:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(211, 84, 0, 0.2);
}

.wild-pk-card-battle {
  justify-content: space-between;
}

.wild-pk-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 16px;
  z-index: 5;
  pointer-events: none;
}

.wild-pk-lock-badge {
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.btn-locked {
  background: rgba(60, 60, 60, 0.7) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
  color: #888 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  opacity: 0.6;
}

.wild-pk-img-wrap {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.15);
}

.wild-pk-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35));
}

.battle-skill-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 68px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  font-family: monospace;
}

.battle-skill-card:hover {
  border-color: rgba(255, 204, 0, 0.3);
  background: rgba(255, 255, 255, 0.02);
}

.battle-skill-card.selected {
  border-color: #ffcc00 !important;
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.3) !important;
  background: rgba(255, 204, 0, 0.05) !important;
}

.battle-skill-card.selected::after {
  content: attr(data-order-label);
  position: absolute;
  top: 5px;
  left: 5px;
  background: linear-gradient(135deg, #ffe066 0%, #f5b041 100%) !important;
  color: #0b0b14 !important;
  font-size: 9.5px !important;
  font-weight: 950 !important;
  font-family: monospace;
  padding: 2.2px 6.5px !important;
  border-radius: 20px !important;
  border: 1.2px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 2px 6px rgba(245, 176, 65, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1.5px;
  z-index: 5;
  text-shadow: none !important;
  letter-spacing: -0.2px;
  line-height: 1 !important;
  width: auto !important;
  height: auto !important;
}

.battle-skill-card .skill-name {
  font-size: 8.5px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-align: center;
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.battle-skill-card .skill-meta {
  font-size: 7.5px;
  color: #888;
  margin-top: 2px;
}

/* Arena de Batalha Styles */
.battle-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 12px 14px;
  position: relative;
}

.battle-opponent-row,
.battle-player-row {
  display: flex;
  width: 100%;
  z-index: 1;
  align-items: center;
}

.battle-opponent-row {
  justify-content: flex-end;
}

.battle-player-row {
  justify-content: flex-start;
}

.battle-opponent-card-container,
.battle-player-card-container {
  display: flex;
  align-items: center;
  gap: 6px;
}

.battle-status-card {
  width: 174px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-sizing: border-box;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.battle-pokemon-sprite-container {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.battle-control-panel {
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  height: max(140px, 22dvh);
  min-height: 100px;
  max-height: 180px;
  box-sizing: border-box;
  z-index: 2;
}

#battle-console-log {
  flex: 1;
  padding: 8px 12px;
  overflow-y: auto;
  text-align: left;
  font-family: monospace;
  font-size: 10px;
  color: #ccc;
  line-height: 1.35;
  background: rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

#battle-console-log::-webkit-scrollbar {
  display: none;
}

.battle-moves-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px 14px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.45);
  height: max(100px, 14dvh);
  min-height: 70px;
  max-height: 140px;
  align-items: center;
}

.btn-game-wild-cacar-premium {
  min-width: auto !important;
  width: 74px !important;
  padding: 6px 0 !important;
  margin: 0 !important;
  font-size: 10.5px !important;
  font-weight: bold !important;
  letter-spacing: 1px !important;
  box-shadow: 0 2.5px 0 #1e8449 !important;
  border-radius: 8px !important;
  cursor: pointer;
  color: #fff;
  border: none;
  font-family: monospace;
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  transition: all 0.1s ease;
}

.btn-game-wild-cacar-premium:active {
  transform: translateY(1.5px);
  box-shadow: 0 1px 0 #1e8449 !important;
}

@media (max-width: 380px) {
  .regions-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

/* ── Custom Premium Select Dropdown ── */

.custom-select-wrapper {
  position: relative;
  width: 50%;
  font-family: monospace;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  font-size: 11.5px;
  background: rgba(0, 0, 0, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  user-select: none;
  height: 33px;
  box-sizing: border-box;
}

.custom-select-trigger:hover {
  border-color: #ffcc00;
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.15);
  background: rgba(0, 0, 0, 0.65);
}

.custom-select-trigger.active {
  border-color: #ffcc00;
  box-shadow: 0 0 12px rgba(255, 204, 0, 0.25);
  background: rgba(10, 10, 20, 0.85);
}

.custom-select-trigger-content {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-trigger-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: inline-block;
  flex-shrink: 0;
}

.custom-select-trigger-emoji {
  font-size: 13px;
  line-height: 1;
  display: inline-block;
}

.custom-select-arrow {
  width: 6px;
  height: 6px;
  border-left: 1.8px solid #aaa;
  border-bottom: 1.8px solid #aaa;
  transform: rotate(-45deg) translateY(-1px);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease;
  margin-right: 2px;
  flex-shrink: 0;
}

.custom-select-trigger.active .custom-select-arrow {
  transform: rotate(135deg) translateY(1.5px) translateX(1.5px);
  border-color: #ffcc00;
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  max-height: 220px;
  overflow-y: auto;
  background: rgba(10, 10, 20, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  z-index: 10000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.85), 0 0 15px rgba(255, 204, 0, 0.05);
  transform-origin: top center;
  animation: dropdownFadeIn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.custom-select-dropdown.hidden {
  display: none !important;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: scaleY(0.9) translateY(-6px);
  }

  to {
    opacity: 1;
    transform: scaleY(1) translateY(0);
  }
}

.custom-select-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 11px;
  color: #ccc;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.03);
}

.custom-select-option:last-child {
  border-bottom: none;
}

.custom-select-option:hover {
  color: #fff;
  padding-left: 17px;
}

/* Custom background glows based on hover type */
.custom-select-option.hover-normal:hover {
  background: rgba(127, 140, 141, 0.22);
  text-shadow: 0 0 6px #7f8c8d;
}

.custom-select-option.hover-fogo:hover {
  background: rgba(192, 57, 43, 0.22);
  text-shadow: 0 0 6px #c0392b;
  color: #ffadad;
}

.custom-select-option.hover-agua:hover {
  background: rgba(41, 128, 185, 0.22);
  text-shadow: 0 0 6px #2980b9;
  color: #adcfff;
}

.custom-select-option.hover-grama:hover {
  background: rgba(39, 174, 96, 0.22);
  text-shadow: 0 0 6px #27ae60;
  color: #adffc8;
}

.custom-select-option.hover-eletrico:hover {
  background: rgba(243, 156, 18, 0.22);
  text-shadow: 0 0 6px #f39c12;
  color: #ffe6ad;
}

.custom-select-option.hover-gelo:hover {
  background: rgba(26, 188, 156, 0.22);
  text-shadow: 0 0 6px #1abc9c;
  color: #adffef;
}

.custom-select-option.hover-lutador:hover {
  background: rgba(231, 76, 60, 0.22);
  text-shadow: 0 0 6px #e74c3c;
  color: #ffb8ad;
}

.custom-select-option.hover-veneno:hover {
  background: rgba(155, 89, 182, 0.22);
  text-shadow: 0 0 6px #9b59b6;
  color: #e1adff;
}

.custom-select-option.hover-terra:hover {
  background: rgba(139, 105, 20, 0.22);
  text-shadow: 0 0 6px #8b6914;
  color: #ffe5ad;
}

.custom-select-option.hover-voador:hover {
  background: rgba(93, 173, 226, 0.22);
  text-shadow: 0 0 6px #5dade2;
  color: #cde6ff;
}

.custom-select-option.hover-psiquico:hover {
  background: rgba(142, 68, 173, 0.22);
  text-shadow: 0 0 6px #8e44ad;
  color: #f0adff;
}

.custom-select-option.hover-inseto:hover {
  background: rgba(46, 204, 113, 0.22);
  text-shadow: 0 0 6px #2ecc71;
  color: #cbf9d8;
}

.custom-select-option.hover-pedra:hover {
  background: rgba(149, 165, 166, 0.22);
  text-shadow: 0 0 6px #95a5a6;
  color: #e1e6e6;
}

.custom-select-option.hover-fantasma:hover {
  background: rgba(91, 44, 111, 0.22);
  text-shadow: 0 0 6px #5b2c6f;
  color: #dcb3ff;
}

.custom-select-option.hover-dragao:hover {
  background: rgba(44, 62, 149, 0.22);
  text-shadow: 0 0 6px #2c3e95;
  color: #adc0ff;
}

.custom-select-option.hover-ferro:hover {
  background: rgba(189, 195, 199, 0.22);
  text-shadow: 0 0 6px #bdc3c7;
  color: #ebebeb;
}

.custom-select-option.hover-sombrio:hover {
  background: rgba(52, 73, 94, 0.22);
  text-shadow: 0 0 6px #34495e;
  color: #cde2f5;
}

.custom-select-option.hover-fada:hover {
  background: rgba(253, 121, 168, 0.22);
  text-shadow: 0 0 6px #fd79a8;
  color: #ffd6e6;
}

.custom-select-option.hover-all:hover {
  background: rgba(255, 204, 0, 0.15);
  text-shadow: 0 0 6px #ffcc00;
  color: #fffeb3;
}

.custom-select-option.selected {
  background: rgba(255, 204, 0, 0.14) !important;
  color: #ffcc00 !important;
  font-weight: bold;
  border-left: 3.5px solid #ffcc00;
  padding-left: 10px;
}

.custom-select-option-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: inline-block;
  flex-shrink: 0;
}

.custom-select-option-emoji {
  font-size: 13px;
  line-height: 1;
  display: inline-block;
  width: 14px;
  text-align: center;
}

.custom-select-option-text {
  flex: 1;
  text-transform: capitalize;
  letter-spacing: 0.5px;
}

/* ── Box Card Shaking Market Icon ── */

.box-pk-market-badge-shake {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px !important;
  height: 44px !important;
  background: rgba(230, 126, 34, 0.25) !important;
  border: 2px solid rgba(230, 126, 34, 0.8) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 0 15px rgba(230, 126, 34, 0.45) !important;
  animation: marketIconShake 1.2s ease-in-out infinite !important;
  z-index: 10 !important;
  pointer-events: none !important;
}

.box-pk-market-badge-shake img {
  width: 26px !important;
  height: 26px !important;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* Double-sized absolute positioned recovery badge in top-right */
.box-pk-recovery-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(231, 76, 60, 0.22) !important;
  border: 1.5px solid rgba(231, 76, 60, 0.7) !important;
  border-radius: 24px !important;
  padding: 6px 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 0 15px rgba(231, 76, 60, 0.35) !important;
  z-index: 10 !important;
  height: 38px !important;
  width: auto !important;
  transition: all 0.25s ease;
  pointer-events: none;
}

.box-pk-recovery-badge .status-pulse-dot {
  width: 10px !important;
  height: 10px !important;
}

/* Double-sized absolute positioned shop/venda badge in top-right */
.box-pk-venda-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(230, 126, 34, 0.22) !important;
  border: 1.5px solid rgba(230, 126, 34, 0.7) !important;
  border-radius: 24px !important;
  padding: 6px 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 0 15px rgba(230, 126, 34, 0.35) !important;
  z-index: 10 !important;
  height: 38px !important;
  width: auto !important;
  transition: all 0.25s ease;
  pointer-events: none;
}

.box-pk-venda-badge .status-pulse-dot {
  width: 10px !important;
  height: 10px !important;
}

/* Compact absolute positioned active badge in top-right */
.box-pk-ativo-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(46, 204, 113, 0.22) !important;
  border: 1px solid rgba(46, 204, 113, 0.7) !important;
  border-radius: 12px !important;
  padding: 3px 8px !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.25) !important;
  z-index: 10 !important;
  height: 22px !important;
  width: auto !important;
  transition: all 0.25s ease;
  pointer-events: none;
}

.box-pk-ativo-badge .status-pulse-dot {
  width: 6px !important;
  height: 6px !important;
}

@keyframes marketIconShake {

  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }

  15%,
  35%,
  55%,
  75% {
    transform: rotate(-10deg) scale(1.06);
  }

  25%,
  45%,
  65%,
  85% {
    transform: rotate(10deg) scale(1.06);
  }
}

/* ── Mobile UI Specialist CSS Enhancements ── */

/* 1. Search Box Height & Layout Alignment */
#inp-box-busca,
#game-wild-search {
  height: 33px !important;
  padding: 8px 12px !important;
  font-size: 11px !important;
  background: rgba(0, 0, 0, 0.45) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px !important;
  color: #fff !important;
  font-family: monospace !important;
  outline: none !important;
  transition: all 0.2s ease-in-out !important;
}

#inp-box-busca:focus,
#game-wild-search:focus {
  border-color: #ffcc00 !important;
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.15) !important;
  background: rgba(0, 0, 0, 0.65) !important;
}

/* 2. Premium Status Pulsing Dots */
.status-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status-pulse-dot.green {
  background: #2ecc71;
  box-shadow: 0 0 8px #2ecc71;
  animation: statusPulse 1.5s ease-in-out infinite;
}

.status-pulse-dot.red {
  background: #ff7675;
  box-shadow: 0 0 8px #ff7675;
  animation: statusPulse 1.5s ease-in-out infinite;
}

.status-pulse-dot.orange {
  background: #ffaa44;
  box-shadow: 0 0 8px #ffaa44;
  animation: statusPulse 1.5s ease-in-out infinite;
}

@keyframes statusPulse {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.85);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* 3. Card Hover Micro-Interactions & Glows */
.box-pk-card {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  background: rgba(18, 18, 32, 0.4) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.box-pk-card:hover {
  transform: translateY(-2.5px);
  background: rgba(25, 25, 45, 0.55) !important;
  border-color: rgba(52, 152, 219, 0.5) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
}

.box-pk-card.active-pk-border:hover {
  border-color: #ffcc00 !important;
  box-shadow: 0 8px 26px rgba(255, 204, 0, 0.22) !important;
}

.box-pk-card.a-venda-pk-border:hover {
  border-color: #e67e22 !important;
  box-shadow: 0 8px 26px rgba(230, 126, 34, 0.25) !important;
}

/* 4. Beautiful Nickname Styled Tag */
.box-pk-apelido {
  font-size: 10.5px;
  font-weight: 700;
  color: #a3e4d7;
  font-family: monospace;
  display: block;
  margin-top: -1px;
  text-shadow: 0 0 5px rgba(163, 228, 215, 0.45);
  font-style: italic;
  text-transform: none;
}

/* 5. Holographic Metallic Foil Sweep Reflection */
.box-pk-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.02) 45%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.02) 55%, transparent 60%);
  background-size: 200% 200%;
  background-position: 0% 0%;
  transition: background-position 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
  pointer-events: none;
}

.box-pk-card:hover::before {
  background-position: 100% 100%;
}

/* 6. Dynamic Halos of Elemental Energy Behind Sprite */
.box-pk-img-container.bg-glow-normal {
  background: radial-gradient(circle, rgba(127, 140, 141, 0.25) 0%, rgba(0, 0, 0, 0.35) 75%) !important;
}

.box-pk-img-container.bg-glow-fogo {
  background: radial-gradient(circle, rgba(192, 57, 43, 0.3) 0%, rgba(0, 0, 0, 0.35) 75%) !important;
}

.box-pk-img-container.bg-glow-agua {
  background: radial-gradient(circle, rgba(41, 128, 185, 0.3) 0%, rgba(0, 0, 0, 0.35) 75%) !important;
}

.box-pk-img-container.bg-glow-grama {
  background: radial-gradient(circle, rgba(39, 174, 96, 0.3) 0%, rgba(0, 0, 0, 0.35) 75%) !important;
}

.box-pk-img-container.bg-glow-eletrico {
  background: radial-gradient(circle, rgba(243, 156, 18, 0.3) 0%, rgba(0, 0, 0, 0.35) 75%) !important;
}

.box-pk-img-container.bg-glow-gelo {
  background: radial-gradient(circle, rgba(26, 188, 156, 0.28) 0%, rgba(0, 0, 0, 0.35) 75%) !important;
}

.box-pk-img-container.bg-glow-lutador {
  background: radial-gradient(circle, rgba(231, 76, 60, 0.3) 0%, rgba(0, 0, 0, 0.35) 75%) !important;
}

.box-pk-img-container.bg-glow-veneno {
  background: radial-gradient(circle, rgba(155, 89, 182, 0.28) 0%, rgba(0, 0, 0, 0.35) 75%) !important;
}

.box-pk-img-container.bg-glow-terra {
  background: radial-gradient(circle, rgba(139, 105, 20, 0.28) 0%, rgba(0, 0, 0, 0.35) 75%) !important;
}

.box-pk-img-container.bg-glow-voador {
  background: radial-gradient(circle, rgba(93, 173, 226, 0.28) 0%, rgba(0, 0, 0, 0.35) 75%) !important;
}

.box-pk-img-container.bg-glow-psiquico {
  background: radial-gradient(circle, rgba(142, 68, 173, 0.28) 0%, rgba(0, 0, 0, 0.35) 75%) !important;
}

.box-pk-img-container.bg-glow-inseto {
  background: radial-gradient(circle, rgba(46, 204, 113, 0.28) 0%, rgba(0, 0, 0, 0.35) 75%) !important;
}

.box-pk-img-container.bg-glow-pedra {
  background: radial-gradient(circle, rgba(149, 165, 166, 0.28) 0%, rgba(0, 0, 0, 0.35) 75%) !important;
}

.box-pk-img-container.bg-glow-fantasma {
  background: radial-gradient(circle, rgba(91, 44, 111, 0.28) 0%, rgba(0, 0, 0, 0.35) 75%) !important;
}

.box-pk-img-container.bg-glow-dragao {
  background: radial-gradient(circle, rgba(44, 62, 149, 0.3) 0%, rgba(0, 0, 0, 0.35) 75%) !important;
}

.box-pk-img-container.bg-glow-ferro {
  background: radial-gradient(circle, rgba(189, 195, 199, 0.28) 0%, rgba(0, 0, 0, 0.35) 75%) !important;
}

.box-pk-img-container.bg-glow-sombrio {
  background: radial-gradient(circle, rgba(52, 73, 94, 0.28) 0%, rgba(0, 0, 0, 0.35) 75%) !important;
}

.box-pk-img-container.bg-glow-fada {
  background: radial-gradient(circle, rgba(253, 121, 168, 0.28) 0%, rgba(0, 0, 0, 0.35) 75%) !important;
}

/* 7. Inertial Momentum Rolling for Smooth Mobile Scrolls */
.modal-body-scroll,
.wild-pokemon-list,
.regions-grid,
.avatar-grid-premium,
.shop-grid,
.box-pokemon-grid {
  -webkit-overflow-scrolling: touch !important;
  scroll-behavior: smooth !important;
}

/* 8. Premium Region Select Screen Cards */
.region-select-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 16px 12px;
  border-radius: 18px;
  border: 1.5px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.region-select-card:hover {
  transform: scale(1.04) translateY(-2px);
}

.region-select-card:hover img {
  filter: drop-shadow(0 0 20px rgba(255, 204, 0, 0.5)) brightness(1.15);
}

.region-count-badge {
  background: rgba(255, 204, 0, 0.1);
  border: 1px solid rgba(255, 204, 0, 0.35);
  color: #ffcc00;
  padding: 3.5px 12px;
  border-radius: 12px;
  font-size: 9.5px;
  font-weight: bold;
  letter-spacing: 0.5px;
  font-family: monospace;
  box-shadow: 0 0 8px rgba(255, 204, 0, 0.06);
  position: relative;
  z-index: 2;
}

/* 9. Premium Glass Overhaul for Wild Area Cards */
.wild-pk-card {
  border: 1.5px solid rgba(255, 255, 255, 0.05) !important;
  background: rgba(18, 18, 32, 0.55) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.wild-pk-card:hover {
  transform: translateY(-2px);
  background: rgba(25, 25, 45, 0.65) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55) !important;
}

.wild-pk-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.02) 45%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.02) 55%, transparent 60%);
  background-size: 200% 200%;
  background-position: 0% 0%;
  transition: background-position 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
  pointer-events: none;
}

.wild-pk-card:hover::before {
  background-position: 100% 100%;
}

.wild-pk-img-wrap {
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.2s ease;
}

/* 10. Shaking Market Indicators / Small status capsules inside wild cards */
.box-pk-defeated-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(241, 196, 15, 0.12);
  border: 1.2px solid rgba(241, 196, 15, 0.35);
  color: #f1c40f;
  padding: 2.5px 7px;
  border-radius: 8px;
  font-size: 8.5px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-shadow: 0 0 4px rgba(241, 196, 15, 0.3);
  margin-top: 2px;
}

.box-pk-owned-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(46, 204, 113, 0.12);
  border: 1.2px solid rgba(46, 204, 113, 0.35);
  color: #2ecc71;
  padding: 2.5px 7px;
  border-radius: 8px;
  font-size: 8.5px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-shadow: 0 0 4px rgba(46, 204, 113, 0.3);
  margin-top: 2px;
}

/* 11. Premium Battle Log Dropdown Popover Modal */

.btn-battle-header-log {
  font-size: 9.5px;
  font-weight: bold;
  padding: 3px 10px;
  border-radius: 8px;
  background: rgba(255, 204, 0, 0.12);
  border: 1.5px solid rgba(255, 204, 0, 0.35);
  color: #ffcc00;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 4.5px;
  font-family: monospace;
}

.btn-battle-header-log:hover {
  background: rgba(255, 204, 0, 0.25);
  border-color: #ffcc00;
  box-shadow: 0 0 8px rgba(255, 204, 0, 0.2);
}

.btn-battle-header-log:active {
  transform: scale(0.95);
}

.btn-fuga-battle {
  background: rgba(231, 76, 60, 0.15) !important;
  border: 1.5px solid rgba(231, 76, 60, 0.65) !important;
  border-radius: 8px !important;
  color: #ff7675 !important;
  font-size: 9.5px !important;
  font-weight: bold !important;
  font-family: monospace !important;
  padding: 4px 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 0 10px rgba(231, 76, 60, 0.1) !important;
  height: 22px !important;
  box-sizing: border-box !important;
  outline: none !important;
  user-select: none !important;
}

.btn-fuga-battle:hover {
  background: rgba(231, 76, 60, 0.28) !important;
  border-color: rgba(231, 76, 60, 1) !important;
  color: #ff8a80 !important;
  box-shadow: 0 0 12px rgba(231, 76, 60, 0.3) !important;
  transform: scale(1.02);
}

.btn-fuga-battle:active {
  transform: scale(0.96);
}

/* ── Botão Pronto na Batalha (Premium & Profissional) ── */
.btn-battle-pronto {
  background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
  border: 1.5px solid #58d68d !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: 1.2px !important;
  padding: 4px 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  outline: none !important;
  user-select: none !important;
  box-shadow: 0 2.5px 0 #1e8449, 0 3px 8px rgba(46, 204, 113, 0.25) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  animation: readyPulse 2s infinite !important;
  height: 22px !important;
  box-sizing: border-box !important;
}

@keyframes readyPulse {

  0%,
  100% {
    box-shadow: 0 2.5px 0 #1e8449, 0 3px 8px rgba(46, 204, 113, 0.25);
  }

  50% {
    box-shadow: 0 2.5px 0 #1e8449, 0 5px 14px rgba(46, 204, 113, 0.5);
    border-color: #a3e4d7 !important;
  }
}

.btn-battle-pronto:hover:not(:disabled) {
  background: linear-gradient(135deg, #2ecc71, #2ecc71) !important;
  transform: translateY(-1px) scale(1.02) !important;
  box-shadow: 0 3.5px 0 #1e8449, 0 6px 14px rgba(46, 204, 113, 0.4) !important;
}

.btn-battle-pronto:active:not(:disabled) {
  transform: translateY(1.5px) scale(0.97) !important;
  box-shadow: 0 0.5px 0 #1e8449, 0 2px 4px rgba(46, 204, 113, 0.2) !important;
}

.btn-battle-pronto:disabled {
  background: linear-gradient(135deg, #2c3e50, #1a252f) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  color: #7f8c8d !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
  animation: waitingPulse 2.5s infinite !important;
  opacity: 0.85 !important;
}

@keyframes waitingPulse {

  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
  }

  50% {
    border-color: rgba(52, 152, 219, 0.4);
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.2);
  }
}

/* ── Barra de Tempo de Batalha (Premium & Profissional) ── */
#battle-timer-bar-container {
  position: absolute !important;
  bottom: 6px !important;
  /* Subiu os 4px+ solicitados, flutuando como uma cápsula elegante */
  left: 8px !important;
  width: calc(100% - 16px) !important;
  height: 18px !important;
  background: rgba(0, 0, 0, 0.65) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  z-index: 20 !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(4px) !important;
  box-sizing: border-box !important;
}

#battle-timer-bar-fill {
  height: 100% !important;
  transition: width 0.15s linear !important;
  border-radius: 20px !important;
  box-shadow: 0 0 12px rgba(255, 204, 0, 0.3) !important;
}

#battle-timer-bar-text {
  position: absolute !important;
  width: 100% !important;
  height: 100% !important;
  top: 0 !important;
  left: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 4px rgba(0, 0, 0, 0.8) !important;
  z-index: 12 !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase !important;
}

/* ── Indicador de Energia de Batalha (Mesma Fonte do Pronto) ── */
.battle-energy-indicator {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  color: #ffcc00 !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  user-select: none !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

.battle-log-dropdown {
  position: absolute;
  top: 40px;
  left: 10px;
  width: calc(100% - 20px);
  max-height: 230px;
  background: rgba(12, 12, 22, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  z-index: 102;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 15px rgba(255, 204, 0, 0.05);
  display: flex;
  flex-direction: column;
  transform-origin: top right;
  animation: battleLogSlideDown 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.battle-log-dropdown.hidden {
  display: none !important;
}

@keyframes battleLogSlideDown {
  from {
    opacity: 0;
    transform: scale(0.88) translate(10px, -10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translate(0, 0);
  }
}

.battle-log-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.01);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.04);
  font-size: 9.5px;
  font-weight: bold;
  color: #ffcc00;
  letter-spacing: 0.5px;
}

.battle-log-dropdown-close {
  background: none;
  border: none;
  color: #777;
  cursor: pointer;
  font-size: 11px;
  padding: 2px;
  transition: color 0.15s, transform 0.1s;
  outline: none;
}

.battle-log-dropdown-close:hover {
  color: #ff3333;
}

.battle-log-dropdown-close:active {
  transform: scale(0.9);
}

.battle-log-dropdown-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
  max-height: 176px;
  text-align: left;
  font-family: monospace;
  font-size: 9.5px;
  color: #ddd;
  line-height: 1.45;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.battle-log-dropdown-body::-webkit-scrollbar {
  display: none;
}

/* 12. Larger premium card-like style for battle moves skills */
#battle-moves-container .battle-skill-card {
  height: 82px !important;
  border-radius: 14px !important;
  padding: 8px 6px !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border: 2px solid transparent !important;
}

/* Skill meta text — one stat per line, left-aligned inside card */
#battle-moves-container .skill-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 1px;
  font-size: 7.5px;
  color: #a4b0be;
  text-transform: uppercase;
  letter-spacing: 0px;
  line-height: 1.2;
  padding-left: 4px;
  box-sizing: border-box;
}

/* Card healing type */
#battle-moves-container .battle-skill-card.skill-card-heal {
  background: linear-gradient(135deg, #134e1e 0%, #1e7e34 50%, #28a745 100%) !important;
  border-color: #2ecc71 !important;
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.2) !important;
}

/* Card attack type */
#battle-moves-container .battle-skill-card.skill-card-attack {
  background: linear-gradient(135deg, #5c0f16 0%, #bd2130 50%, #dc3545 100%) !important;
  border-color: #ff7675 !important;
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.2) !important;
}

/* Hover effects */
#battle-moves-container .battle-skill-card:hover {
  transform: translateY(-4px) scale(1.04) !important;
}

#battle-moves-container .battle-skill-card.skill-card-heal:hover {
  border-color: #2ecc71 !important;
  box-shadow: 0 8px 20px rgba(46, 204, 113, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.3) !important;
}

#battle-moves-container .battle-skill-card.skill-card-attack:hover {
  border-color: #ff7675 !important;
  box-shadow: 0 8px 20px rgba(231, 76, 60, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.3) !important;
}

/* Selected State */
#battle-moves-container .battle-skill-card.selected {
  border-color: #ffcc00 !important;
  box-shadow: 0 0 18px rgba(255, 204, 0, 0.75), inset 0 0 8px rgba(255, 204, 0, 0.4) !important;
  transform: translateY(-4px) scale(1.04) !important;
}

/* Holographic sweep shine effect */
#battle-moves-container .battle-skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.25),
      transparent);
  transform: skewX(-25deg);
  pointer-events: none;
  transition: none;
}

#battle-moves-container .battle-skill-card:hover::before {
  left: 150%;
  transition: all 0.75s ease;
}

#battle-moves-container .battle-skill-card .skill-name {
  font-size: 8px !important;
  font-weight: 900 !important;
  letter-spacing: 0.5px !important;
  margin-top: 14px !important;
  margin-bottom: 1px !important;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 0 4px rgba(0, 0, 0, 0.5) !important;
  text-align: left;
  line-height: 1.2;
  width: 100%;
  padding: 0 14px 0 4px !important;
  box-sizing: border-box !important;
}

#battle-moves-container .battle-skill-card .skill-meta {
  font-size: 8px !important;
  font-weight: 800 !important;
  margin-bottom: 6px !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
  text-align: left;
  width: 100% !important;
  padding-left: 4px !important;
  box-sizing: border-box !important;
}

#battle-moves-container .battle-skill-card.skill-card-heal .skill-meta {
  color: #e2fcd4 !important;
}

#battle-moves-container .battle-skill-card.skill-card-attack .skill-meta {
  color: #ffe5e5 !important;
}

/* Premium golden-yellow energy capsule badge */
#battle-moves-container .battle-skill-card .skill-energy-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background: linear-gradient(135deg, #ffe066 0%, #f5b041 100%) !important;
  color: #0b0b14 !important;
  font-size: 9.5px !important;
  font-weight: 950 !important;
  font-family: monospace;
  padding: 2.2px 6.5px !important;
  border-radius: 20px !important;
  border: 1.2px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 2px 6px rgba(245, 176, 65, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5px;
  z-index: 5;
  text-shadow: none !important;
  letter-spacing: -0.2px;
  line-height: 1 !important;
}

/* ── Overlay de Vitória e Derrota Premium ── */
#battle-result-overlay .glass-modal {
  width: 90% !important;
  max-width: 320px !important;
  padding: 24px 20px !important;
  border-radius: 24px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85) !important;
  transition: all 0.3s ease !important;
  background: rgba(13, 13, 26, 0.96) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
}

/* Estado de Vitória */
#battle-result-overlay.victory-theme .glass-modal {
  border-color: rgba(255, 204, 0, 0.35) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 204, 0, 0.15) !important;
}

/* Estado de Derrota */
#battle-result-overlay.defeat-theme .glass-modal {
  border-color: rgba(231, 76, 60, 0.35) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(231, 76, 60, 0.15) !important;
}

#battle-result-icon {
  font-size: 54px !important;
  margin-bottom: 8px !important;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3)) !important;
}

/* Animações dos ícones */
#battle-result-overlay.victory-theme #battle-result-icon {
  animation: floatGold 3s ease-in-out infinite !important;
}

#battle-result-overlay.defeat-theme #battle-result-icon {
  animation: floatRed 3.5s ease-in-out infinite !important;
}

@keyframes floatGold {

  0%,
  100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 4px 10px rgba(255, 204, 0, 0.2));
  }

  50% {
    transform: translateY(-8px) scale(1.05);
    filter: drop-shadow(0 12px 20px rgba(255, 204, 0, 0.45));
  }
}

@keyframes floatRed {

  0%,
  100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 4px 10px rgba(231, 76, 60, 0.2));
  }

  50% {
    transform: translateY(-6px) scale(0.96);
    filter: drop-shadow(0 10px 18px rgba(231, 76, 60, 0.4));
  }
}

#battle-result-title {
  font-family: 'Outfit', sans-serif !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  letter-spacing: 1.5px !important;
  margin: 0 0 10px 0 !important;
  text-transform: uppercase !important;
}

#battle-result-overlay.victory-theme #battle-result-title {
  color: #ffcc00 !important;
  text-shadow: 0 0 15px rgba(255, 204, 0, 0.3) !important;
}

#battle-result-overlay.defeat-theme #battle-result-title {
  color: #ff7675 !important;
  text-shadow: 0 0 15px rgba(231, 76, 60, 0.3) !important;
}

#battle-result-msg {
  font-family: 'Outfit', sans-serif !important;
  font-size: 13px !important;
  color: #e2e2e2 !important;
  line-height: 1.5 !important;
  margin-bottom: 16px !important;
  font-weight: 500 !important;
  padding: 0 8px !important;
}

#battle-result-rewards {
  font-family: 'Outfit', sans-serif !important;
  border-radius: 16px !important;
  padding: 12px 14px !important;
  margin-bottom: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  text-align: left !important;
  box-sizing: border-box !important;
  transition: all 0.3s ease !important;
}

#battle-result-overlay.victory-theme #battle-result-rewards {
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1.5px solid rgba(255, 204, 0, 0.1) !important;
}

#battle-result-overlay.defeat-theme #battle-result-rewards {
  background: rgba(10, 5, 5, 0.6) !important;
  border: 1.5px solid rgba(231, 76, 60, 0.25) !important;
  border-radius: 18px !important;
  padding: 14px 16px !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6) !important;
  z-index: 1 !important;
  position: relative;
}

#btn-battle-result-ok {
  font-family: 'Outfit', sans-serif !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: 1px !important;
  padding: 10px 0 !important;
  border-radius: 12px !important;
  width: 100% !important;
  min-width: auto !important;
  margin-top: 0 !important;
}

/* ── DERROTA NÍVEL DEUS (God-Level Defeat Screen Atmosfera) ── */

/* Fundo do modal com vinheta vermelha sinistra */
#battle-result-overlay.defeat-theme {
  background: radial-gradient(circle, rgba(20, 8, 8, 0.93) 0%, rgba(5, 1, 1, 0.99) 100%) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

/* Modal de Derrota Nível Deus */
#battle-result-overlay.defeat-theme .glass-modal {
  width: 92% !important;
  max-width: 320px !important;
  background: rgba(16, 10, 10, 0.94) !important;
  border: 1.5px solid rgba(231, 76, 60, 0.4) !important;
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.95),
    0 0 30px rgba(231, 76, 60, 0.3),
    inset 0 0 20px rgba(231, 76, 60, 0.15) !important;
  border-radius: 28px !important;
  padding: 26px 20px !important;
  transform: scale(0.9);
  animation: modalEntranceDefeat 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
  overflow: hidden !important;
  position: relative !important;
}

@keyframes modalEntranceDefeat {
  0% {
    transform: scale(0.6) translateY(50px);
    opacity: 0;
    filter: blur(5px);
  }

  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
    filter: blur(0);
  }
}

/* Efeito de fumaça cinzenta/avermelhada no fundo do modal */
#battle-result-overlay.defeat-theme .glass-modal::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(231, 76, 60, 0.04) 0%, transparent 60%);
  animation: slowSmoke 12s linear infinite !important;
  pointer-events: none;
  z-index: 0;
}

@keyframes slowSmoke {
  0% {
    transform: rotate(0deg) translate(0, 0);
  }

  50% {
    transform: rotate(180deg) translate(-10px, 15px);
  }

  100% {
    transform: rotate(360deg) translate(0, 0);
  }
}

/* Ícone de Caveira Ominosa 3D Pulsante */
#battle-result-overlay.defeat-theme #battle-result-icon {
  font-size: 64px !important;
  margin-bottom: 12px !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9) !important;
  animation: skullPulseDeus 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
  z-index: 1 !important;
  position: relative;
}

@keyframes skullPulseDeus {

  0%,
  100% {
    transform: translateY(0) scale(1) rotate(0deg);
    filter: drop-shadow(0 0 12px rgba(231, 76, 60, 0.45));
  }

  30% {
    transform: translateY(-8px) scale(1.08) rotate(-4deg);
    filter: drop-shadow(0 8px 25px rgba(231, 76, 60, 0.75));
  }

  60% {
    transform: translateY(0) scale(0.96) rotate(4deg);
    filter: drop-shadow(0 0 12px rgba(231, 76, 60, 0.45));
  }
}

/* Título de Derrota Ominoso com Gradiente e Brilho */
#battle-result-overlay.defeat-theme #battle-result-title {
  font-family: 'Outfit', sans-serif !important;
  font-size: 24px !important;
  font-weight: 950 !important;
  letter-spacing: 3px !important;
  background: linear-gradient(180deg, #ffffff 0%, #ff7675 60%, #c0392b 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: 0 4px 15px rgba(231, 76, 60, 0.3) !important;
  margin-bottom: 6px !important;
  z-index: 1 !important;
  position: relative;
}

/* Subtítulo de Derrota */
#battle-result-overlay.defeat-theme #battle-result-msg {
  font-family: 'Outfit', sans-serif !important;
  font-size: 13.5px !important;
  color: #ffcccc !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  padding: 0 12px !important;
  margin-bottom: 18px !important;
  z-index: 1 !important;
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6) !important;
}

/* Animação do Batimento Cardíaco Enfraquecido */
@keyframes heartFadePulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
    filter: drop-shadow(0 0 5px rgba(231, 76, 60, 0.7));
  }

  50% {
    transform: scale(0.85);
    opacity: 0.35;
    filter: drop-shadow(0 0 1px rgba(231, 76, 60, 0.1));
  }
}

/* Botão Continuar Ominoso */
#battle-result-overlay.defeat-theme #btn-battle-result-ok {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
  border: 1.5px solid #ff7675 !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: 1.5px !important;
  box-shadow: 0 4px 0 #96281b, 0 8px 20px rgba(231, 76, 60, 0.35) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 14px !important;
  z-index: 1 !important;
  position: relative;
  margin-top: 4px !important;
}

#battle-result-overlay.defeat-theme #btn-battle-result-ok:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 6px 0 #96281b, 0 12px 25px rgba(231, 76, 60, 0.5) !important;
  background: linear-gradient(135deg, #ff6b6b 0%, #e74c3c 100%) !important;
}

#battle-result-overlay.defeat-theme #btn-battle-result-ok:active {
  transform: translateY(3px) scale(0.97) !important;
  box-shadow: 0 1px 0 #96281b, 0 4px 8px rgba(231, 76, 60, 0.2) !important;
}

/* ==================================================================
   CAPTURA DE POKÉMON (pokebola lançada, shake, poof, chip)
   ================================================================== */

#pokeball-flight {
  pointer-events: none;
  z-index: 300;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

@keyframes pokeballShake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-18px);
  }

  75% {
    transform: translateX(18px);
  }
}

.pokeball-shaking {
  animation: pokeballShake 0.25s ease-in-out 3;
}

@keyframes pokeballShakeHorizontal {
  0% {
    transform: translateX(0) rotate(0deg);
  }

  12% {
    transform: translateX(-28px) rotate(-7deg);
  }

  25% {
    transform: translateX(28px) rotate(7deg);
  }

  37% {
    transform: translateX(-18px) rotate(-4deg);
  }

  50% {
    transform: translateX(18px) rotate(4deg);
  }

  62% {
    transform: translateX(-10px) rotate(-2deg);
  }

  75% {
    transform: translateX(10px) rotate(2deg);
  }

  87% {
    transform: translateX(-4px) rotate(-1deg);
  }

  100% {
    transform: translateX(0) rotate(0deg);
  }
}

.pokeball-shake-horizontal {
  animation: pokeballShakeHorizontal 1.3s ease-in-out 1;
}

@keyframes pokeballSlideUp {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.capture-pokeball-card {
  animation: pokeballSlideUp 0.3s ease-out;
}

/* Chip de notificação estilizado (esquerda p/ direita) */
.capture-toast-chip {
  position: fixed;
  top: 20px;
  left: -100%;
  z-index: 999;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 1.5px solid rgba(255, 204, 0, 0.3);
  border-radius: 14px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: bold;
  color: #ffcc00;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
  transition: left 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  max-width: 90%;
}

.capture-toast-chip.show {
  left: 5%;
}

.capture-toast-chip .chip-icon {
  margin-right: 8px;
}

.capture-toast-chip .chip-text {
  color: #fff;
}

/* 
═════════════════════════════════════════════════════════════════
📱 MEDIA QUERIES RESPONSIVAS MOBILE (ALTURA E LARGURA REDUZIDAS)
═════════════════════════════════════════════════════════════════
*/

/* Telas de altura média (ex: Galaxy S8, iPhone X) */
@media (max-height: 720px) {
  .lobby-header {
    padding: 8px 14px;
    height: clamp(42px, 6dvh, 50px);
  }

  .lobby-submenu {
    padding: 3px 6px !important;
    gap: 3px !important;
  }

  .submenu-btn {
    padding: 5px 3px !important;
  }

  .submenu-label {
    font-size: 7.5px !important;
  }

  .submenu-btn-img {
    width: 16px !important;
    height: 16px !important;
  }

  .avatar-circle {
    width: clamp(26px, 4dvh, 32px) !important;
    height: clamp(26px, 4dvh, 32px) !important;
  }

  .trainer-name {
    font-size: clamp(10px, 1.6dvh, 12px);
  }

  .trainer-cash {
    font-size: clamp(9px, 1.4dvh, 11px) !important;
    padding: 3px 8px !important;
  }

  .poke-podium-container {
    height: clamp(100px, 16dvh, 160px);
  }

  .poke-podium-glow {
    width: clamp(140px, 20dvh, 200px);
    height: clamp(24px, 4dvh, 36px);
  }

  .poke-showcase-img {
    height: clamp(90px, 14dvh, 140px);
  }

  .poke-showcase {
    padding: 6px 14px 8px !important;
  }

  .poke-showcase-name {
    font-size: clamp(12px, 1.8dvh, 16px);
  }

  .poke-showcase-info {
    margin-bottom: 2px;
  }

  .energia-badge-bar,
  .xp-badge-bar {
    height: clamp(18px, 2.6dvh, 22px);
    margin-bottom: clamp(4px, 0.8dvh, 8px);
  }
}

/* Telas muito curtas (ex: landscape, celulares pequenos) */
@media (max-height: 680px) {
  .battle-status-card {
    padding: 4px 6px !important;
    gap: 2px !important;
  }

  .battle-status-card #battle-wild-name,
  .battle-status-card #battle-player-name {
    font-size: 10px !important;
  }

  .battle-status-card #battle-wild-lvl,
  .battle-status-card #battle-player-lvl {
    font-size: 8px !important;
  }

  .battle-status-card .energia-badge-bar {
    height: 12px !important;
    margin-bottom: 1px !important;
  }

  .battle-status-card #battle-wild-hp-txt,
  .battle-status-card #battle-player-hp-txt {
    font-size: 9px !important;
  }

  .battle-status-card div[style*="justify-content: space-between; align-items: center; margin-top: 2px"] {
    margin-top: 1px !important;
    gap: 2px !important;
  }

  .battle-status-card div[style*="justify-content: space-between; align-items: center; margin-top: 2px"] div {
    padding: 1px 3px !important;
    font-size: 7.5px !important;
  }

  #battle-wild-img,
  #battle-player-img {
    height: 80px !important;
    width: 80px !important;
  }

  .battle-pokemon-sprite-container {
    width: 80px !important;
    height: 80px !important;
  }

  .battle-moves-grid .battle-skill-card {
    height: 72px;
    min-height: 66px;
  }

  #battle-moves-container .battle-skill-card {
    height: 72px;
  }

  #battle-moves-container .battle-skill-card .skill-name {
    font-size: 7.5px;
  }

  #battle-moves-container .battle-skill-card .skill-energy-badge {
    font-size: 7px;
    padding: 1px 4px;
    top: 2px;
    right: 2px;
  }
}

@media (max-height: 620px) {
  #app {
    height: 100dvh;
  }

  .battle-control-panel {
    height: max(90px, 13dvh);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.6);
    border-top: 2px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(11px);
    -webkit-backdrop-filter: blur(11px);
    padding: 6px 8px 8px;
    gap: 4px;
    box-sizing: border-box;
  }

  /* ── Dano Flutuante Crítico Premium ── */
  .dmg-critico-badge {
    display: inline-block;
    font-size: 8px;
    font-weight: 900;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffd700;
    text-shadow:
      0 0 6px rgba(255, 215, 0, 0.6),
      0 0 14px rgba(255, 100, 0, 0.4),
      0 1px 0 #6a3800,
      0 2px 4px rgba(0, 0, 0, 0.8);
    margin-top: 2px;
    display: block;
    text-align: center;
    position: relative;
  }

  .dmg-critico-badge::before {
    content: '';
    position: absolute;
    inset: -3px -10px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.18), rgba(255, 60, 0, 0.08));
    border-radius: 4px;
    filter: blur(2px);
    z-index: -1;
  }

  .battle-moves-grid {
    height: max(44px, 7dvh) !important;
    min-height: 38px;
    gap: 3px;
    padding: 3px 6px;
  }

  .battle-status-card {
    width: 120px !important;
    padding: 3px 5px !important;
    gap: 2px !important;
  }

  .battle-status-card #battle-wild-name,
  .battle-status-card #battle-player-name {
    font-size: 9px !important;
  }

  .battle-status-card #battle-wild-lvl,
  .battle-status-card #battle-player-lvl {
    font-size: 7.5px !important;
  }

  .battle-status-card .energia-badge-bar {
    height: 10px !important;
    margin-bottom: 1px !important;
  }

  .battle-status-card #battle-wild-hp-txt,
  .battle-status-card #battle-player-hp-txt {
    font-size: 8px !important;
  }

  .battle-status-card div[style*="justify-content: space-between; align-items: center; margin-top: 2px"] {
    margin-top: 1px !important;
    font-size: 7px !important;
    gap: 1px !important;
  }

  .battle-status-card div[style*="justify-content: space-between; align-items: center; margin-top: 2px"] div {
    padding: 1px 2px !important;
  }

  #battle-wild-img,
  #battle-player-img {
    height: 64px !important;
    width: 64px !important;
  }

  .battle-pokemon-sprite-container {
    width: 64px !important;
    height: 64px !important;
  }

  .battle-moves-grid .battle-skill-card {
    height: 64px;
    min-height: 58px;
  }

  #battle-moves-container .battle-skill-card {
    height: 64px;
  }

  #battle-moves-container .battle-skill-card .skill-name {
    font-size: 7px;
  }

  #battle-moves-container .battle-skill-card .skill-energy-badge {
    font-size: 6.5px;
    padding: 1px 3px;
  }

  #battle-moves-container .battle-skill-card .skill-meta {
    font-size: 6.5px;
  }

  .battle-field {
    padding: 6px 8px;
  }

  .btn-battle-pronto {
    font-size: 8.5px !important;
    padding: 3px 10px !important;
    height: 20px !important;
  }

  .battle-energy-indicator {
    font-size: 8.5px !important;
  }

  .modal-header-premium {
    padding: 8px 14px;
    height: 36px;
  }

  #battle-timer-bar-container {
    height: 14px !important;
  }

  #battle-timer-bar-text {
    font-size: 8px !important;
  }

  .lobby-header {
    padding: 6px 12px;
  }

  .lobby-screen-inner {
    padding: 3px 8px 8px !important;
  }

  .btn-logout svg {
    width: 16px;
    height: 16px;
  }

  .coin-img {
    width: 14px;
    height: 14px;
  }
}

/* Safe area insets para celulares com notch/barras de navegação */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  #app {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .battle-control-panel {
    padding-bottom: env(safe-area-inset-bottom) !important;
  }

  .lobby-screen-inner {
    padding-bottom: calc(8px + env(safe-area-inset-bottom)) !important;
  }
}

@supports (padding-bottom: constant(safe-area-inset-bottom)) {
  #app {
    padding-bottom: constant(safe-area-inset-bottom);
  }

  .battle-control-panel {
    padding-bottom: constant(safe-area-inset-bottom) !important;
  }

  .lobby-screen-inner {
    padding-bottom: calc(8px + constant(safe-area-inset-bottom)) !important;
  }
}

/* ── Modal Header (PvP, Estádio, Ranking) ── */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.05);
  background: rgba(18, 18, 32, 0.4);
}

.modal-header span {
  font-size: clamp(13px, 2dvh, 16px);
  font-weight: 900;
  color: #ffcc00;
  letter-spacing: 1.5px;
  text-shadow: 0 0 6px rgba(255, 204, 0, 0.25);
  font-family: monospace;
}

/* ── TELA PvP ── */
#screen-pvp .modal-body-scroll {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#screen-pvp .pvp-matchmaking {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  text-align: center;
}

#screen-pvp .pvp-matchmaking .pvp-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

#screen-pvp .pvp-matchmaking .pvp-title {
  font-size: 16px;
  color: #ffcc00;
  font-weight: 900;
  margin-bottom: 8px;
  font-family: monospace;
}

#screen-pvp .pvp-matchmaking .pvp-desc {
  color: #aaa;
  font-family: monospace;
  font-size: 12px;
  margin-bottom: 16px;
}

#screen-pvp #btn-pvp-procurar {
  width: 100%;
  padding: 14px 0;
  font-size: 14px;
  letter-spacing: 1.5px;
}

#screen-pvp #pvp-status {
  margin-top: 12px;
  font-size: 11px;
  color: #ffcc00;
  min-height: 20px;
}

#screen-pvp #pvp-arena {
  width: 100%;
}

#screen-pvp #pvp-battle-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 220px;
}

#screen-pvp #pvp-oponente-info {
  text-align: center;
  padding: 10px 12px;
  background: rgba(255, 0, 0, 0.08);
  border: 1px solid rgba(255, 0, 0, 0.15);
  border-radius: 12px;
  font-family: monospace;
  color: #ff7675;
  font-size: 11px;
  font-weight: bold;
}

#screen-pvp #pvp-player-info {
  text-align: center;
  padding: 10px 12px;
  background: rgba(0, 255, 0, 0.06);
  border: 1px solid rgba(0, 255, 0, 0.12);
  border-radius: 12px;
  font-family: monospace;
  color: #78c850;
  font-size: 11px;
  font-weight: bold;
}

#screen-pvp #pvp-battle-log {
  font-size: 10px;
  font-family: monospace;
  color: #ccc;
  max-height: 120px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  padding: 8px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  line-height: 1.4;
}

#screen-pvp #pvp-battle-log::-webkit-scrollbar {
  display: none;
}

#screen-pvp #pvp-skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

#screen-pvp #pvp-skills-grid .battle-skill-card {
  height: 76px;
}

#screen-pvp .pvp-actions {
  display: flex;
  gap: 8px;
}

#screen-pvp .pvp-actions button {
  flex: 1;
  padding: 12px 0;
  font-size: 12px;
  font-family: monospace;
  font-weight: 900;
  letter-spacing: 1px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}

#screen-pvp #btn-pvp-pronto {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: #fff;
  box-shadow: 0 3px 0 #1e8449;
}

#screen-pvp #btn-pvp-pronto:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #1e8449;
}

#screen-pvp #btn-pvp-desistir {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  box-shadow: 0 3px 0 #96281b;
}

#screen-pvp #btn-pvp-desistir:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #96281b;
}

/* ── TELA ESTÁDIO ── */
#screen-estadio .modal-body-scroll {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#screen-estadio #estadio-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0;
  width: 100%;
}

#screen-estadio .estadio-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px solid rgba(255, 215, 0, 0.2);
  border-radius: 16px;
  padding: 14px 16px;
  box-sizing: border-box;
  width: 100%;
}

#screen-estadio .estadio-card-title {
  font-size: 12px;
  font-weight: 900;
  color: #ffcc00;
  letter-spacing: 1px;
  font-family: monospace;
  display: flex;
  align-items: center;
  gap: 6px;
}

#screen-estadio .estadio-card .btn {
  width: 100%;
  min-width: auto;
  margin-top: 4px;
}

#screen-estadio .estadio-defensores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

#screen-estadio .estadio-defensor-slot {
  background: rgba(0, 0, 0, 0.25);
  border: 1.5px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  box-sizing: border-box;
}

#screen-estadio .estadio-defensor-slot.ocupado {
  border-style: solid;
  border-color: rgba(46, 204, 113, 0.4);
  background: rgba(46, 204, 113, 0.08);
  cursor: default;
}

#screen-estadio .estadio-defensor-slot .slot-empty-icon {
  font-size: 24px;
  opacity: 0.3;
}

#screen-estadio .estadio-defensor-slot .slot-empty-label {
  font-size: 9px;
  color: #666;
  font-family: monospace;
  letter-spacing: 0.5px;
}

#screen-estadio .estadio-defensor-slot img {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
  object-fit: contain;
}

#screen-estadio .estadio-defensor-slot .def-nome {
  font-size: 9px;
  font-weight: bold;
  color: #fff;
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

#screen-estadio .estadio-defensor-slot .def-nivel {
  font-size: 8px;
  color: #aaa;
}

#screen-estadio .estadio-invadiveis-lista {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#screen-estadio .estadio-invadir-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 10px 12px;
  box-sizing: border-box;
  width: 100%;
  transition: all 0.2s;
}

#screen-estadio .estadio-invadir-card .invadir-info {
  flex: 1;
  font-family: monospace;
  font-size: 11px;
  color: #ccc;
  text-align: left;
}

#screen-estadio .estadio-invadir-card .invadir-info strong {
  color: #ffcc00;
}

#screen-estadio .estadio-invadir-card .btn {
  min-width: auto;
  width: auto;
  padding: 6px 14px;
  font-size: 10px;
  margin: 0;
  flex-shrink: 0;
}

/* ── MAPA DE ESTÁDIOS ── */
#screen-estadio .estadio-mapa-wrapper {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 300px;
  overflow: hidden;
  border-radius: 12px;
  background: #1a3a1a;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

#screen-estadio .estadio-mapa-wrapper:active {
  cursor: grabbing;
}

#screen-estadio .estadio-mapa {
  position: absolute;
  top: 0;
  left: 0;
  background: #3a7a28;
  background-image: url('../assets/map/mapa_mundi.png');
  background-repeat: repeat;
  background-size: auto;
  image-rendering: auto;
  transition: none;
}

/* Terrain decorations */
/* Stadium marker */
#screen-estadio .estadio-mapa-marker {
  position: absolute;
  z-index: 5;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translate(-50%, -100%);
}

#screen-estadio .estadio-mapa-marker:hover {
  transform: translate(-50%, -100%) scale(1.15);
}

#screen-estadio .estadio-mapa-marker:active {
  transform: translate(-50%, -100%) scale(0.95);
}

#screen-estadio .estadio-mapa-marker .marker-building {
  font-size: 42px;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  transition: filter 0.2s;
}

#screen-estadio .estadio-mapa-marker:hover .marker-building {
  filter: drop-shadow(0 0 20px rgba(255, 204, 0, 0.6)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

#screen-estadio .estadio-mapa-marker .marker-name {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 900;
  color: #ffcc00;
  font-family: 'Outfit', 'Segoe UI', sans-serif;
  text-shadow: 0 0 6px rgba(255, 204, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  background: linear-gradient(135deg, rgba(15, 10, 30, 0.95), rgba(30, 15, 55, 0.95));
  border: 1px solid rgba(255, 204, 0, 0.7);
  box-shadow: 0 0 8px rgba(255, 204, 0, 0.3), 0 3px 6px rgba(0, 0, 0, 0.5);
  padding: 3px 8px;
  border-radius: 5px;
  pointer-events: none;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  margin-bottom: 0px;
}

#screen-estadio .estadio-mapa-marker .marker-avatar {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid rgba(255, 204, 0, 0.6);
  background: rgba(0, 0, 0, 0.3);
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
}

/* Active (selected) marker glow */
#screen-estadio .estadio-mapa-marker.ativo .marker-building {
  filter: drop-shadow(0 0 30px rgba(255, 204, 0, 0.8)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  animation: markerPulse 1s ease-in-out infinite alternate;
}

@keyframes markerPulse {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.1);
  }
}

#screen-estadio .estadio-mapa-marker.marker-proprio .marker-building {
  filter: drop-shadow(0 0 12px rgba(46, 204, 113, 0.7)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

/* Stadium popup */
#screen-estadio .estadio-mapa-popup {
  position: absolute;
  z-index: 10;
  background: rgba(15, 10, 30, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 204, 0, 0.5);
  border-radius: 12px;
  padding: 10px 12px;
  width: 220px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.7), inset 0 0 12px rgba(255, 204, 0, 0.05);
  transform: translate(-50%, -100%);
  pointer-events: auto;
  animation: popupIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Outfit', 'Segoe UI', sans-serif;
  display: flex;
  align-items: center;
  gap: 12px;
}

@keyframes popupIn {
  from {
    opacity: 0;
    transform: translate(-50%, -95%) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -100%) scale(1);
  }
}

#screen-estadio .estadio-mapa-popup .popup-avatar-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 204, 0, 0.6);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#screen-estadio .estadio-mapa-popup .popup-avatar-square {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

#screen-estadio .estadio-mapa-popup .popup-content-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  flex-grow: 1;
  overflow: hidden;
}

#screen-estadio .estadio-mapa-popup .popup-nome {
  font-size: 11.5px;
  font-weight: 900;
  color: #ffcc00;
  text-shadow: 0 0 4px rgba(255, 204, 0, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-align: left;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

#screen-estadio .estadio-mapa-popup .popup-info {
  font-size: 9.5px;
  font-weight: 700;
  color: #bbb;
  margin: 0;
  text-align: left;
}

#screen-estadio .estadio-mapa-popup .popup-btn {
  width: 100%;
  padding: 6px 0;
  font-size: 9.5px;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  box-shadow: 0 2px 0 #962d22;
}

#screen-estadio .estadio-mapa-popup .popup-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 0 #962d22, 0 4px 10px rgba(231, 76, 60, 0.3);
}

#screen-estadio .estadio-mapa-popup .popup-btn:active {
  transform: translateY(1px);
  box-shadow: 0 0px 0 #962d22;
}

/* Zoom controls (top-right) */
#screen-estadio .mapa-zoom-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  pointer-events: none;
}

#screen-estadio .mapa-zoom-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  font-family: monospace;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  line-height: 1;
  user-select: none;
  -webkit-user-select: none;
}

#screen-estadio .mapa-zoom-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

#screen-estadio .mapa-zoom-btn:active {
  transform: scale(0.9);
}

#screen-estadio .mapa-zoom-level {
  font-size: 9px;
  font-weight: 900;
  font-family: monospace;
  color: #ffcc00;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  padding: 2px 6px;
  border-radius: 6px;
  pointer-events: none;
  margin: 1px 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Coordinates display (top-left) */
#screen-estadio .mapa-coords {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 20;
  font-size: 10px;
  font-weight: 700;
  font-family: monospace;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  padding: 4px 8px;
  border-radius: 6px;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Scroll indicator on map */
#screen-estadio .mapa-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  font-family: monospace;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px 10px;
  border-radius: 8px;
  pointer-events: none;
  white-space: nowrap;
}

/* Empty state */
#screen-estadio .mapa-empty {
  text-align: center;
  padding: 30px 0;
  color: #aaa;
  font-family: monospace;
  font-size: 10px;
}

/* ── TELA RANKING ── */
#screen-ranking {
  transition: background 0.6s ease-in-out !important;
}

#screen-ranking .modal-content-premium {
  background: rgba(13, 10, 25, 0.45) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.05) !important;
}

#screen-ranking .modal-body-scroll {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#screen-ranking .tab-ranking {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  font-size: 13px;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-family: monospace;
  font-weight: 900;
  letter-spacing: 1px;
  outline: none;
  min-width: 0;
  box-sizing: border-box;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}

#screen-ranking .tab-ranking:hover:not(.ativo) {
  transform: translateY(-1px);
  filter: brightness(1.2);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.45), 0 4px 8px rgba(0, 0, 0, 0.3);
}

#screen-ranking .tab-ranking:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2);
}

#screen-ranking .tab-ranking.ativo {
  background: linear-gradient(135deg, #f1c40f, #d68910);
  border: 2px solid #f9d77e;
  box-shadow: 0 3px 0 #7e5109, 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 10px rgba(241, 196, 15, 0.3);
  color: #fff;
}

/* --- Cores Customizadas Premium (Igual .btn-back) --- */

/* PVE: Azul */
#screen-ranking .tab-pve.ativo {
  background: linear-gradient(135deg, #3498db, #2980b9) !important;
  border: 2px solid #5dade2 !important;
  box-shadow: 0 3px 0 #1b4f72, 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 12px rgba(52, 152, 219, 0.35) !important;
}

#screen-ranking .tab-pve:not(.ativo) {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(41, 128, 185, 0.2)) !important;
  border: 2px solid rgba(93, 173, 226, 0.35) !important;
  color: #d0e8f5 !important;
  text-shadow: 0 0 8px rgba(52, 152, 219, 0.6) !important;
}

/* PVP: Vermelho */
#screen-ranking .tab-pvp.ativo {
  background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
  border: 2px solid #f1948a !important;
  box-shadow: 0 3px 0 #78281f, 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 12px rgba(231, 76, 60, 0.35) !important;
}

#screen-ranking .tab-pvp:not(.ativo) {
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.2), rgba(192, 57, 43, 0.2)) !important;
  border: 2px solid rgba(241, 148, 138, 0.35) !important;
  color: #f5d0d0 !important;
  text-shadow: 0 0 8px rgba(231, 76, 60, 0.6) !important;
}

/* ESTÁDIO: Dourado/Amarelo */
#screen-ranking .tab-estadio.ativo {
  background: linear-gradient(135deg, #f1c40f, #d68910) !important;
  border: 2px solid #f9d77e !important;
  box-shadow: 0 3px 0 #7e5109, 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 12px rgba(241, 196, 15, 0.35) !important;
}

#screen-ranking .tab-estadio:not(.ativo) {
  background: linear-gradient(135deg, rgba(241, 196, 15, 0.2), rgba(214, 137, 16, 0.2)) !important;
  border: 2px solid rgba(249, 215, 126, 0.35) !important;
  color: #f5edc0 !important;
  text-shadow: 0 0 8px rgba(241, 196, 15, 0.6) !important;
}

/* BUSCAR: Verde */
#screen-ranking .tab-buscar {
  background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
  border: 2px solid #58d68d !important;
  box-shadow: 0 3px 0 #1e8449, 0 4px 8px rgba(0, 0, 0, 0.3) !important;
  color: #fff !important;
}

#screen-ranking .tab-buscar:hover {
  background: linear-gradient(135deg, #58d68d, #2ecc71) !important;
  box-shadow: 0 4px 0 #1e8449, 0 6px 12px rgba(0, 0, 0, 0.35) !important;
}

#screen-ranking .tab-buscar:active {
  box-shadow: 0 1px 0 #1e8449, 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

#ranking-busca-input:focus {
  border-color: rgba(255, 204, 0, 0.4) !important;
  background: rgba(0, 0, 0, 0.5) !important;
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.12) !important;
}

#screen-ranking #ranking-lista {
  width: 100%;
}

#screen-ranking .ranking-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 6px;
  box-sizing: border-box;
  width: 100%;
  transition: all 0.2s;
}

#screen-ranking .ranking-pos {
  font-size: 14px;
  font-weight: 900;
  color: #ffcc00;
  font-family: monospace;
  min-width: 28px;
  text-align: center;
}

#screen-ranking .ranking-pos.gold {
  color: #ffd700;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
}

#screen-ranking .ranking-pos.silver {
  color: #c0c0c0;
}

#screen-ranking .ranking-pos.bronze {
  color: #cd7f32;
}

#screen-ranking .ranking-info {
  flex: 1;
  text-align: left;
  font-family: monospace;
  min-width: 0;
}

#screen-ranking .ranking-info .rank-name {
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#screen-ranking .ranking-info .rank-detail {
  font-size: 9px;
  color: #888;
  margin-top: 1px;
}

#screen-ranking .ranking-stat {
  font-size: 13px;
  font-weight: 900;
  color: #ffcc00;
  font-family: monospace;
  text-align: right;
  flex-shrink: 0;
}

/* ── Centro Pokémon — Tela Cheia Premium ── */
#screen-centro-confirmar.overlay-modal {
  background: linear-gradient(170deg, #0a221a 0%, #0f2d22 20%, #0a1c14 45%, #06120c 70%, #030a06 100%);
}

#screen-centro-confirmar .modal-content-premium {
  background: transparent !important;
}

#screen-centro-confirmar .modal-header-premium {
  border-bottom: 1.5px solid rgba(46, 204, 113, 0.12) !important;
  background: rgba(6, 18, 12, 0.7) !important;
}

#screen-centro-confirmar .modal-title-premium {
  color: #2ecc71 !important;
  text-shadow: 0 0 10px rgba(46, 204, 113, 0.35) !important;
}

#screen-centro-confirmar .modal-body-scroll {
  padding: 28px 22px 32px !important;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

/* Pokémon image + name row */
#screen-centro-confirmar .centro-pk-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 340px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 14px 18px;
  box-sizing: border-box;
}

#screen-centro-confirmar .centro-pk-img-wrap {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  background: rgba(46, 204, 113, 0.08);
  border: 1.5px solid rgba(46, 204, 113, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#screen-centro-confirmar .centro-pk-img-wrap img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

#screen-centro-confirmar .centro-pk-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

#screen-centro-confirmar .centro-pk-nome {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
}

#screen-centro-confirmar .centro-pk-lvl {
  font-size: 11px;
  color: #55efc4;
  font-weight: 700;
  background: rgba(46, 204, 113, 0.12);
  padding: 3px 14px;
  border-radius: 20px;
  border: 1px solid rgba(46, 204, 113, 0.2);
  display: inline-block;
  width: fit-content;
}

/* Recovery time card */
#screen-centro-confirmar .centro-time-card {
  width: 100%;
  max-width: 340px;
  background: rgba(46, 204, 113, 0.06);
  border: 1.5px solid rgba(46, 204, 113, 0.12);
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  box-sizing: border-box;
  box-shadow: 0 0 20px rgba(46, 204, 113, 0.06);
}

#screen-centro-confirmar .centro-time-label {
  font-size: 9px;
  font-weight: 700;
  color: #55efc4;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: monospace;
  opacity: 0.6;
}

#screen-centro-confirmar .centro-time-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

#screen-centro-confirmar .centro-time-number {
  font-size: 34px;
  font-weight: 900;
  color: #2ecc71;
  font-family: monospace;
  text-shadow: 0 0 14px rgba(46, 204, 113, 0.35);
  line-height: 1;
}

#screen-centro-confirmar .centro-time-unit {
  font-size: 13px;
  font-weight: 700;
  color: #a0d6b0;
  font-family: monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#screen-centro-confirmar .centro-time-sub {
  font-size: 10px;
  color: #6c9;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Info box */
#screen-centro-confirmar .centro-info-box {
  width: 100%;
  max-width: 340px;
  background: rgba(46, 204, 113, 0.04);
  border: 1px solid rgba(46, 204, 113, 0.08);
  border-radius: 12px;
  padding: 11px 13px;
  box-sizing: border-box;
  font-size: 11.5px;
  line-height: 1.6;
  color: #b0dcc0;
  text-align: left;
}

/* Green intern button */
#screen-centro-confirmar .centro-btn-internar {
  width: 100%;
  max-width: 340px;
  padding: 14px 0;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: monospace;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #00b894, #00a381);
  border: 2px solid rgba(46, 204, 113, 0.35);
  border-radius: 12px;
  box-shadow: 0 4px 0 #007a5e, 0 4px 18px rgba(0, 184, 148, 0.35);
  color: #fff;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
}

#screen-centro-confirmar .centro-btn-internar:hover {
  background: linear-gradient(135deg, #00d2a0, #00b894);
  transform: translateY(-1px);
  box-shadow: 0 5px 0 #007a5e, 0 6px 22px rgba(0, 184, 148, 0.5);
}

#screen-centro-confirmar .centro-btn-internar:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 #007a5e;
}

#screen-centro-confirmar .centro-btn-internar:disabled {
  opacity: 0.5;
  filter: grayscale(0.4);
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 0 #007a5e;
}

/* 🎴 Estilos Premium para Grid e Zoom de Cartas */
.card-zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cardFadeIn 0.22s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
  pointer-events: auto;
}

.card-zoom-modal {
  position: relative;
  max-width: clamp(260px, 85vw, 320px);
  width: 100%;
  animation: cardScaleUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.zoomed-card-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 30px rgba(255, 204, 0, 0.25);
  object-fit: contain;
}

.btn-close-zoom {
  position: absolute;
  top: -45px;
  right: 0;
  background: #e74c3c;
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  font-family: 'LilitaOne', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.btn-close-zoom:hover {
  background: rgba(255, 107, 107, 0.4);
  border-color: #ff5252;
  color: #fff;
  transform: scale(1.1) rotate(90deg);
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes cardScaleUp {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}