/* ==========================================================
   lobby.css — Tela principal do espírito e tela de eclosão
   ========================================================== */

/* ── Botão apelido (lápis verde pulsante) ── */
.btn-apelido-pulso {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: apelido-pulso 2s ease-in-out infinite;
}
.btn-apelido-pulso:hover {
  animation: none;
  opacity: 1;
  transform: scale(1.2);
}
@keyframes apelido-pulso {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.15); }
}

/* ── Botão hambúrguer ── */
.lobby-header {
  padding-left: 0;
}
@keyframes hamburger-pulso {
  0%, 100% { opacity: 0.85; box-shadow: 0 0 0px rgba(255, 204, 0, 0); }
  50%       { opacity: 1;    box-shadow: 0 0 8px rgba(255, 204, 0, 0.35); }
}
.btn-hamburger {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  width: auto;
  min-width: 38px;
  height: 42px;
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-left: none;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  padding: 0 10px 0 8px;
  flex-shrink: 0;
  animation: hamburger-pulso 2.5s ease-in-out infinite;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-hamburger.hamburger-hidden {
  transform: translateX(-160%);
  pointer-events: none;
  animation: none;
}
.btn-hamburger-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.btn-hamburger-label {
  font-size: 12px;
  font-weight: 700;
  color: #ffcc00;
  letter-spacing: 1px;
  line-height: 1;
  align-self: center;
}
.btn-hamburger-lines span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ── Overlay escuro ao abrir o drawer ── */
.lobby-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lobby-drawer-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ── Painel lateral ── */
.lobby-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 230px;
  height: 100%;
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  border-right: 1.5px solid rgba(255,255,255,0.08);
  box-shadow: 6px 0 30px rgba(0,0,0,0.6);
  z-index: 901;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 0;
}
.lobby-drawer.active {
  transform: translateX(0);
}

/* Cabeçalho do drawer com título e botão fechar */
.lobby-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.lobby-drawer-title {
  font-family: 'LilitaOne', sans-serif;
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Botão fechar — vermelho com X branco */
.lobby-drawer-close {
  background: #e74c3c;
  border: none;
  color: #fff;
  font-family: 'LilitaOne', sans-serif;
  font-size: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(231,76,60,0.4);
}
.lobby-drawer-close:hover {
  background: #c0392b;
  transform: scale(1.08);
}

/* Lista de itens do menu */
.lobby-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 6px 10px;
  flex: 1;
}

/* Cada item do menu */
.lobby-drawer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  background: transparent;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, transform 0.15s ease;
}
.lobby-drawer-item:hover,
.lobby-drawer-item:active {
  background: rgba(255,255,255,0.08);
  transform: translateX(4px);
}

.lobby-drawer-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
  flex-shrink: 0;
}

.lobby-drawer-label {
  font-family: 'LilitaOne', sans-serif;
  font-size: 16px;
  color: #fff;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ── Botão "Ver Cartas" no lobby ── */
.btn-ver-cartas {
  margin-top: clamp(6px, 1.2dvh, 10px);
  width: 100%;
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
  border: none;
  border-radius: 12px;
  padding: clamp(7px, 1.2dvh, 10px) 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  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(142, 68, 173, 0.4);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.btn-ver-cartas:hover {
  background: linear-gradient(135deg, #9b59b6, #a569bd);
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(142, 68, 173, 0.6);
}
.btn-ver-cartas:active {
  transform: scale(0.97);
}

/* ── Apelido do Pokémon no showcase ── */
.poke-showcase-apelido {
  font-size: 13.5px;
  font-weight: bold;
  color: #ffcc00;
  font-family: monospace;
  display: block;
  margin-bottom: 4px;
}

/* ── Ovo showcase ── */
.egg-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  padding-top: 40px;
}
.egg-info-box {
  text-align: center;
}
.egg-title {
  font-size: 20px;
}
.egg-subtitle {
  color: white;
  margin-top: 14px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.egg-subtitle .poke-showcase-tag {
  margin-top: 0;
  padding: 4px 12px;
  font-size: 12px;
}

/* ── Tela de eclosão (hatch stats) ── */
.hatch-name {
  margin-bottom: clamp(4px, 1.2vh, 8px);
  font-size: clamp(13px, 2vh, 16px);
  font-weight: 900;
  color: #ffcc00;
  font-family: monospace;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
.hatch-stats-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 3.5vw, 20px);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: clamp(6px, 1.2vh, 10px) clamp(8px, 2vw, 14px);
  border-radius: clamp(10px, 1.5vh, 14px);
  width: 100%;
  box-sizing: border-box;
}
.hatch-stats-img-col {
  flex: 1.1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hatch-stats-img {
  height: clamp(65px, 11.5vh, 90px);
  width: auto;
  object-fit: contain;
}
.hatch-stats-info-col {
  flex: 0.9;
  display: flex;
  flex-direction: column;
  gap: clamp(3px, 0.8vh, 6px);
  align-items: flex-start;
  justify-content: center;
}
.hatch-stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.hatch-stat-icon {
  width: clamp(12px, 1.8vh, 15px);
  height: clamp(12px, 1.8vh, 15px);
  object-fit: contain;
}
.hatch-stat-label {
  font-size: clamp(9px, 1.4vh, 11px);
  color: #aaa;
  font-family: monospace;
}
.hatch-stat-value {
  font-size: clamp(9px, 1.4vh, 11px);
  color: #fff;
  font-family: monospace;
  margin-left: 2px;
}
