/* =============================================
   FISHING EMPIRE - Lobby Premium
   ============================================= */

:root {
  --azul-profundo: #01579B;
  --azul-oceano: #0288D1;
  --azul-claro: #4FC3F7;
  --azul-ceu: #29B6F6;
  --laranja-suave: #FFB74D;
  --laranja-medio: #FFA726;
  --laranja-forte: #FB8C00;
  --dourado-claro: #FFD54F;
  --dourado: #FFC107;
  --branco-frio: #F5F7FA;
  --branco: #FFFFFF;
  --verde-suave: #66BB6A;
  --sombra-card: 0 8px 30px rgba(0, 0, 0, 0.12);
  --sombra-btn: 0 6px 20px rgba(255, 152, 0, 0.35);
  --sombra-glow: 0 0 30px rgba(255, 193, 7, 0.3);
  --borda-xl: 28px;
  --borda-lg: 22px;
  --borda-btn: 60px;
  --fonte-nunito: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --fonte-fredoka: 'Fredoka', 'Segoe UI', system-ui, sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--fonte-nunito);
  color: var(--branco-frio);
}

/* =============================================
   ANIMAÇÕES GLOBAIS
   ============================================= */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 193, 7, 0.3); }
  50% { box-shadow: 0 0 40px rgba(255, 152, 0, 0.5); }
}

@keyframes waveAnim {
  0%, 100% { transform: translateX(0) translateY(0); }
  25% { transform: translateX(2%) translateY(-3px); }
  75% { transform: translateX(-2%) translateY(3px); }
}

@keyframes bubbleRise {
  0% { transform: translateY(0) scale(0); opacity: 0; }
  20% { opacity: 0.8; transform: scale(1); }
  100% { transform: translateY(-120vh) scale(0.3); opacity: 0; }
}

@keyframes peixePulo {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translateY(-60px) rotate(-15deg); opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(0) rotate(0deg); opacity: 0; }
}

@keyframes gaivotaVoo {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(40px, -25px) rotate(5deg); }
  50% { transform: translate(80px, -10px) rotate(-3deg); }
  75% { transform: translate(40px, -20px) rotate(3deg); }
}

@keyframes brilhoAgua {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.6; }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* =============================================
   LOBBY BODY
   ============================================= */
.lobby-body {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #01579B 0%, #0277BD 30%, #0288D1 60%, #01579B 100%);
}

/* =============================================
   BACKGROUND CINEMATOGRÁFICO
   ============================================= */
.lobby-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.lobby-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.1) saturate(1.1);
}

.lobby-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(1, 87, 155, 0.2) 0%,
    rgba(2, 119, 189, 0.1) 40%,
    rgba(1, 87, 155, 0.3) 80%,
    rgba(1, 87, 155, 0.6) 100%
  );
}

/* =============================================
   ONDAS ANIMADAS
   ============================================= */
.lobby-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  pointer-events: none;
}

.lobby-wave {
  position: absolute;
  bottom: 0;
  left: -10%;
  width: 120%;
  border-radius: 50%;
  opacity: 0.4;
}

.wave-1 {
  height: 100px;
  background: rgba(79, 195, 247, 0.3);
  animation: waveAnim 6s ease-in-out infinite;
  bottom: -30px;
}

.wave-2 {
  height: 80px;
  background: rgba(41, 182, 246, 0.25);
  animation: waveAnim 8s ease-in-out infinite reverse;
  bottom: -50px;
}

.wave-3 {
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  animation: waveAnim 10s ease-in-out infinite;
  bottom: -60px;
}

/* =============================================
   PARTÍCULAS
   ============================================= */
.lobby-particulas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particula-lobby {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: bubbleRise 8s ease-in infinite;
}

/* =============================================
   PEIXES PULANDO
   ============================================= */
.lobby-peixes {
  position: absolute;
  bottom: 15%;
  left: 0;
  right: 0;
  pointer-events: none;
}

.peixe-pulando {
  position: absolute;
  font-size: 2rem;
  opacity: 0;
}

#peixe1 {
  left: 20%;
  animation: peixePulo 4s ease-in-out 1s infinite;
}

#peixe2 {
  left: 65%;
  animation: peixePulo 4s ease-in-out 3s infinite;
}

/* =============================================
   GAIVOTAS
   ============================================= */
.lobby-gaivotas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gaivota-lobby {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.7;
}

.g1 { top: 8%; left: 10%; animation: gaivotaVoo 8s ease-in-out infinite; }
.g2 { top: 15%; left: 50%; animation: gaivotaVoo 10s ease-in-out 2s infinite reverse; }

/* =============================================
   BRILHOS NA ÁGUA
   ============================================= */
.lobby-brilhos {
  position: absolute;
  bottom: 20%;
  left: 0;
  right: 0;
  height: 100px;
  pointer-events: none;
}

.brilho-agua {
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  animation: brilhoAgua 3s ease-in-out infinite;
}

/* =============================================
   CONTAINER PRINCIPAL
   ============================================= */
.lobby-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  width: 100%;
  max-width: 440px;
  animation: fadeInUp 0.8s ease;
}

/* =============================================
   LOGO
   ============================================= */
.lobby-logo-area {
  text-align: center;
  margin-bottom: 4px;
}

.lobby-logo-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: 50px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: floatSlow 4s ease-in-out infinite;
}

.lobby-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
  animation: floatSlow 4s ease-in-out infinite;
}

.lobby-logo-titulo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

.logo-parte {
  font-family: var(--fonte-fredoka);
  font-weight: 700;
  text-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.logo-parte.fishing {
  font-size: 2rem;
  color: var(--branco);
  letter-spacing: 2px;
}

.logo-parte.empire {
  font-size: 3.5rem;
  background: linear-gradient(180deg, #FFD54F 0%, #FFA726 50%, #FB8C00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 3px 6px rgba(255,152,0,0.4));
}

/* ⭐ REMOVIDO: .logo-parte.tycoon */

.lobby-logo-separador {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--dourado), transparent);
  border-radius: 3px;
  margin: 10px auto;
}

.lobby-logo-slogan {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  font-style: italic;
  font-weight: 400;
}

/* =============================================
   HUD RECURSOS
   ============================================= */
.lobby-hud-recursos {
  display: flex;
  gap: 10px;
  width: 100%;
  justify-content: center;
}

.recurso-capsula {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 14px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.recurso-icone {
  font-size: 1.1rem;
}

.recurso-valor {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--branco-frio);
}

.recurso-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =============================================
   BOTÕES PREMIUM
   ============================================= */
.lobby-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.lobby-btn {
  position: relative;
  width: 100%;
  max-width: 340px;
  padding: 16px 22px;
  border: none;
  border-radius: var(--borda-btn);
  cursor: pointer;
  font-family: var(--fonte-nunito);
  font-weight: 700;
  transition: all 0.2s ease;
  text-decoration: none;
  overflow: hidden;
}

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

.lobby-btn-conteudo {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.lobby-btn-icone {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.lobby-btn-textos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  line-height: 1.2;
}

.lobby-btn-titulo {
  font-size: 1.2rem;
  font-weight: 800;
}

.lobby-btn-sub {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.85;
}

.lobby-btn-seta {
  font-size: 1.4rem;
  opacity: 0.7;
}

/* --- Botão CONTINUAR (principal) --- */
.lobby-btn-continuar {
  background: linear-gradient(135deg, #FFB74D 0%, #FFA726 50%, #FB8C00 100%);
  color: var(--branco);
  box-shadow: 0 6px 24px rgba(255, 152, 0, 0.4);
  animation: glowPulse 3s ease-in-out infinite;
}

.lobby-btn-continuar .lobby-btn-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 3s infinite;
  pointer-events: none;
}

/* --- Botão NOVO JOGO --- */
.lobby-btn-novo {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--branco);
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* --- Botão AJUSTES --- */
.lobby-btn-ajustes {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.7);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 4px;
}

.lobby-btn-ajustes:active {
  background: rgba(255,255,255,0.2);
  transform: scale(0.95);
}

/* --- Botão pequeno --- */
.lobby-btn-sm {
  padding: 12px 20px;
  font-size: 0.9rem;
  max-width: 250px;
  text-align: center;
}

.lobby-btn-reset {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.15);
}

/* =============================================
   MODAL GLASS
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(1, 87, 155, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.modal-glass {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--borda-xl);
  padding: 24px;
  width: 100%;
  max-width: 340px;
  box-shadow: var(--sombra-card), inset 0 1px 0 rgba(255,255,255,0.6);
  text-align: center;
  animation: fadeInUp 0.4s ease;
  border: 1px solid rgba(255,255,255,0.3);
}

.modal-titulo {
  font-family: var(--fonte-fredoka);
  font-size: 1.2rem;
  color: var(--azul-profundo);
  margin-bottom: 4px;
}

.separador {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--dourado), transparent);
  border-radius: 3px;
  margin: 8px auto 16px;
}

.ajustes-lista {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ajuste-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(79, 195, 247, 0.1);
  border-radius: 16px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--azul-profundo);
}

.toggle {
  padding: 6px 18px;
  border-radius: 20px;
  border: none;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--fonte-nunito);
}

.toggle.on {
  background: var(--verde-suave);
  color: var(--branco);
}

.toggle.off {
  background: #E0E0E0;
  color: #888;
}

/* =============================================
   UTILITÁRIOS
   ============================================= */
.hidden { display: none !important; }
.mt-8 { margin-top: 8px; }
.mt-24 { margin-top: 24px; }

/* =============================================
   RESPONSIVO
   ============================================= */
@media (max-width: 360px) {
  .logo-parte.fishing { font-size: 1.6rem; }
  .logo-parte.empire { font-size: 2.8rem; }
  .lobby-btn-titulo { font-size: 1rem; }
  .lobby-btn { padding: 14px 18px; }
  .lobby-container { gap: 16px; padding: 16px; }
  .recurso-capsula { padding: 6px 10px; }
  .recurso-valor { font-size: 0.8rem; }
}

@media (min-width: 768px) {
  .lobby-container { gap: 28px; }
  .logo-parte.empire { font-size: 4rem; }
}