/* =========================
   Portão de acesso (senha)
   ========================= */
.auth-gate {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 100000;
  background: radial-gradient(ellipse at center, #1a0010 0%, #0a000a 60%, #000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.5s ease;
  -webkit-tap-highlight-color: transparent;
}

.auth-gate.hiding { opacity: 0; pointer-events: none; }
.auth-gate.hidden { display: none !important; }

.auth-hearts-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.auth-heart {
  position: absolute;
  bottom: -50px;
  color: #ff4d6d;
  text-shadow: 0 0 15px rgba(255, 77, 109, 0.9), 0 0 32px rgba(255, 77, 109, 0.45);
  animation: authHeartFloat linear forwards;
  user-select: none;
  will-change: transform, opacity;
}

@keyframes authHeartFloat {
  0%   { transform: translateY(0) rotate(0deg) scale(1);       opacity: 0; }
  10%  { opacity: 0.95; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-120vh) rotate(360deg) scale(0.4); opacity: 0; }
}

.auth-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 24px 20px;
  max-width: 520px;
  width: 100%;
}

.auth-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0 0 26px;
  padding: 12px 0 18px;
  line-height: 1;
}

.auth-name {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 5.5rem);
  background: linear-gradient(135deg, #ff8fa3, #ff4d6d, #e8365d, #ff8fa3);
  background-size: 300% 300%;
  background-origin: padding-box;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: authTitleGlow 5s ease infinite;
  line-height: 1.4;
  /* padding em em (escala com font-size) — acomoda a descida do G/K cursivo */
  padding: 0.2em 12px 0.45em;
  display: inline-block;
  overflow: visible;
}

.auth-symbol {
  color: #ff4d6d;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 300;
  line-height: 1;
  padding: 6px 0;
  display: inline-block;
  animation: authSymbolGlow 2.2s ease-in-out infinite;
}

@keyframes authTitleGlow {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

@keyframes authSymbolGlow {
  0%, 100% {
    transform: scale(1);
    text-shadow: 0 0 14px rgba(255, 77, 109, 0.55);
  }
  50% {
    transform: scale(1.18);
    text-shadow: 0 0 28px rgba(255, 77, 109, 0.95), 0 0 55px rgba(255, 77, 109, 0.4);
  }
}

.auth-subtitle {
  color: rgba(255, 107, 138, 0.85);
  font-size: 0.9rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 40px;
  font-family: 'Poppins', sans-serif;
}

.auth-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0 auto 14px;
  max-width: 300px;
  width: 100%;
}
.auth-form[hidden] { display: none !important; }

.auth-input {
  padding: 14px 24px;
  background: rgba(255, 77, 109, 0.1);
  border: 2px solid rgba(255, 77, 109, 0.4);
  border-radius: 50px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  outline: none;
  text-align: center;
  letter-spacing: 6px;
  width: 100%;
  max-width: 280px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  backdrop-filter: blur(10px);
}

.auth-input:focus {
  border-color: #ff4d6d;
  box-shadow: 0 0 30px rgba(255, 77, 109, 0.35);
  background: rgba(255, 77, 109, 0.18);
}

.auth-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 2px;
}

.auth-btn {
  padding: 14px 34px;
  background: linear-gradient(135deg, #ff4d6d, #e8365d);
  border: none;
  border-radius: 50px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 22px rgba(255, 77, 109, 0.4);
  width: 100%;
  max-width: 280px;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(255, 77, 109, 0.6);
}

.auth-btn:active { transform: translateY(0); }

.auth-error {
  color: #ff6b8a;
  margin-top: 10px;
  min-height: 1.4em;
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
  line-height: 1.4;
}

.auth-prompt,
.auth-locked {
  min-height: 240px;
}

.auth-shake { animation: authShake 0.5s ease; }
@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-12px); }
  40%      { transform: translateX(12px); }
  60%      { transform: translateX(-8px); }
  80%      { transform: translateX(8px); }
}

/* ===== Seletor de partner (Giovanna / Kenned) no login ===== */
.auth-partner-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin: 0 auto 14px;
  max-width: 360px;
  width: 100%;
}
.auth-partner-q {
  color: rgba(255, 255, 255, 0.78);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  margin: 0;
  letter-spacing: 1px;
}
.auth-partner-options {
  display: flex;
  gap: 18px;
  width: 100%;
  justify-content: center;
}
.auth-partner-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 22px;
  background: rgba(255, 77, 109, 0.08);
  border: 2px solid rgba(255, 77, 109, 0.35);
  border-radius: 18px;
  color: #fff;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  min-width: 130px;
  backdrop-filter: blur(10px);
}
.auth-partner-btn:hover {
  transform: translateY(-3px);
  background: rgba(255, 77, 109, 0.18);
  border-color: #ff4d6d;
  box-shadow: 0 14px 32px rgba(255, 77, 109, 0.45);
}
.auth-partner-btn[data-partner="giovanna"]:hover {
  border-color: #ff8fb1;
  box-shadow: 0 14px 32px rgba(255, 143, 177, 0.55);
}
.auth-partner-btn[data-partner="kenned"]:hover {
  border-color: #6db4ff;
  box-shadow: 0 14px 32px rgba(109, 180, 255, 0.55);
}
.auth-partner-letter {
  font-family: 'Great Vibes', cursive;
  font-size: 3.6rem;
  line-height: 1;
  min-height: 6.4rem;
  /* padding-bottom generoso para acomodar a descida das letras cursivas (K, G).
     O background-clip:text so pinta dentro do padding-box, entao se a perninha
     do K passa do box, ela some — por isso o padding-bottom grande. */
  padding: 28px 14px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: linear-gradient(135deg, #ff4d6d, #ff8fb1);
  background-origin: padding-box;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-partner-btn[data-partner="kenned"] .auth-partner-letter {
  background: linear-gradient(135deg, #5d9bff, #6db4ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Garante que o botao e o picker nao cortem os ornamentos da fonte cursiva */
.auth-partner-btn { overflow: visible; }
.auth-partner-options { overflow: visible; }
.auth-partner-picker { overflow: visible; }

/* Estado "selecionado" do botao de partner: fica permanentemente no estilo de hover
   pra indicar visualmente quem esta logando. */
.auth-partner-btn.selected {
  background: rgba(255, 77, 109, 0.18);
  border-color: #ff4d6d;
  box-shadow: 0 14px 32px rgba(255, 77, 109, 0.45);
  transform: translateY(-3px);
}
.auth-partner-btn[data-partner="giovanna"].selected {
  border-color: #ff8fb1;
  box-shadow: 0 14px 32px rgba(255, 143, 177, 0.55);
}
.auth-partner-btn[data-partner="kenned"].selected {
  border-color: #6db4ff;
  box-shadow: 0 14px 32px rgba(109, 180, 255, 0.55);
}
.auth-partner-name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 2px;
}
.auth-greet {
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  margin: 0 0 4px;
  letter-spacing: 1px;
}
/* (auth-actions e auth-back removidos — Voltar nao existe mais; Entrar fica centralizado sozinho) */

@media (max-width: 480px) {
  .auth-partner-options { gap: 12px; }
  .auth-partner-btn { min-width: 110px; padding: 14px 16px; }
  .auth-partner-letter { font-size: 3rem; line-height: 1; min-height: 5.6rem; padding: 22px 10px 30px; }
}

.auth-locked { display: none; }
.auth-gate.bloqueado #auth-prompt { display: none; }
.auth-gate.bloqueado #auth-locked { display: block; }

.auth-locked-icon {
  font-size: 3rem;
  margin-bottom: 18px;
  animation: authLockedPulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255, 77, 109, 0.55));
}

@keyframes authLockedPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50%      { transform: scale(1.1); opacity: 1; }
}

.auth-locked-msg {
  color: #ff8fa3;
  font-size: 1.05rem;
  margin-bottom: 26px;
  font-weight: 300;
  font-family: 'Poppins', sans-serif;
}

.auth-locked-time {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  font-weight: 600;
  color: #ff4d6d;
  letter-spacing: 6px;
  text-shadow: 0 0 30px rgba(255, 77, 109, 0.6), 0 0 60px rgba(255, 77, 109, 0.3);
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}

.auth-locked-sub {
  color: rgba(255, 107, 138, 0.65);
  font-size: 0.82rem;
  letter-spacing: 2px;
  line-height: 1.6;
  font-family: 'Poppins', sans-serif;
}

@media (max-width: 500px) {
  .auth-input { letter-spacing: 4px; font-size: 1rem; }
  .auth-btn { padding: 14px 28px; }
  .auth-form { gap: 12px; max-width: 260px; }
  .auth-locked-time { letter-spacing: 3px; }
  .auth-content { padding: 20px 14px; }
}

/* Music toggle button */
.music-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background: rgba(255, 77, 109, 0.8);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.4rem;
  cursor: pointer;
  color: #fff;
  backdrop-filter: blur(10px);
  transition: transform 0.3s, background 0.3s;
  box-shadow: 0 4px 15px rgba(255, 77, 109, 0.4);
}

.music-toggle:hover {
  transform: scale(1.1);
  background: rgba(255, 77, 109, 1);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
  background: #1a0a0a;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #fff;
  background: #1a0a0a;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Floating Hearts Background */
.hearts-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-heart {
  position: absolute;
  bottom: -40px;
  animation: floatUp linear forwards;
  color: #ff4d6d;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translateY(-110vh) rotate(360deg) scale(0.3);
    opacity: 0;
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a0a0a 0%, #2d0a1e 30%, #4a0e2e 60%, #1a0a0a 100%);
  text-align: center;
  overflow: visible;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(255, 77, 109, 0.15) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  animation: fadeInDown 1s ease;
}

.hero-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  margin-bottom: 30px;
  animation: fadeInUp 1.2s ease;
  overflow: visible;
  padding: 0 20px;
  line-height: 1.5;
}

.hero-title .name {
  display: inline-block;
  /* padding generoso em todas as direcoes — acomoda a descida e os ornamentos
     laterais da Great Vibes (curva do G volta pra esquerda, etc). */
  padding-top: 0.25em;
  padding-bottom: 0.7em;
  padding-right: 0.3em;
  padding-left: 0.15em;
  background: linear-gradient(135deg, #ff6b8a, #ff4d6d, #e8365d, #ff6b8a);
  background-size: 300% 300%;
  background-origin: padding-box;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
  overflow: visible;
}

.heart-icon {
  display: inline-block;
  color: #ff4d6d;
  -webkit-text-fill-color: #ff4d6d;
  font-size: 0.6em;
  margin: 0 15px;
  animation: heartbeat 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255, 77, 109, 0.6));
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.3); }
  30% { transform: scale(1); }
  45% { transform: scale(1.2); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-phrase {
  font-size: 1.3rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  min-height: 4em;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.typewriter::after {
  content: '|';
  animation: blink 0.8s infinite;
  color: #ff4d6d;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.btn-scroll {
  display: inline-block;
  padding: 14px 40px;
  border: 2px solid #ff4d6d;
  color: #ff4d6d;
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.btn-scroll::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff4d6d, #e8365d);
  transition: left 0.4s ease;
  z-index: -1;
}

.btn-scroll:hover::before {
  left: 0;
}

.btn-scroll:hover {
  color: #fff;
  box-shadow: 0 0 30px rgba(255, 77, 109, 0.4);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  animation: fadeInUp 2s ease;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 15px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.wheel {
  width: 4px;
  height: 10px;
  background: #ff4d6d;
  border-radius: 2px;
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(15px); }
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.section-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
  margin-bottom: 60px;
  color: #ff6b8a;
  text-shadow: 0 0 30px rgba(255, 77, 109, 0.3);
}

/* Fade in animation */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sobre / Timeline */
.sobre {
  background: linear-gradient(180deg, #1a0a0a 0%, #1f0f15 100%);
}

.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #ff4d6d, transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
}

.timeline-icon {
  position: absolute;
  left: -40px;
  top: 0;
  width: 28px;
  height: 28px;
  background: #2d0a1e;
  border: 2px solid #ff4d6d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #ff4d6d;
  box-shadow: 0 0 15px rgba(255, 77, 109, 0.3);
}

.timeline-content {
  background: rgba(255, 77, 109, 0.08);
  border: 1px solid rgba(255, 77, 109, 0.15);
  border-radius: 16px;
  padding: 30px;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-content h3,
.timeline-content p {
  width: 100%;
}

.timeline-content h3 {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8rem;
  color: #ff6b8a;
  margin-bottom: 12px;
}

.timeline-content p {
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

/* Infinito Animation */
.infinito-container {
  text-align: center;
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
}

.infinito-letra {
  font-family: 'Great Vibes', cursive;
  font-size: 4rem;
  color: #ff6b8a;
  text-shadow: 0 0 15px rgba(255, 77, 109, 0.4);
  animation: letraPulse 2s ease-in-out infinite;
}

@keyframes letraPulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.infinito-simbolo {
  font-size: 4.5rem;
  color: #ff4d6d;
  text-shadow: 0 0 20px rgba(255, 77, 109, 0.6);
  animation: infinitoGlow 2s ease-in-out infinite;
  padding: 10px 15px;
}

@keyframes infinitoGlow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(255, 77, 109, 0.3);
    transform: scale(1);
  }
  50% {
    text-shadow: 0 0 30px rgba(255, 77, 109, 0.8), 0 0 60px rgba(255, 77, 109, 0.4);
    transform: scale(1.15);
  }
}

.infinito-text {
  font-family: 'Great Vibes', cursive;
  font-size: 1.3rem;
  color: #ff6b8a;
  margin-top: 5px;
  opacity: 0.8;
  width: 100%;
}

/* Dica animada */
.infinito-dica {
  width: 100%;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 12px;
  animation: dicaPulse 2.5s ease-in-out infinite;
  font-style: italic;
}

@keyframes dicaPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

.infinito-simbolo {
  cursor: pointer;
  transition: transform 0.2s ease;
  user-select: none;
}

.infinito-simbolo:active {
  transform: scale(1.4);
}

/* Popup Surpresa */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.popup-overlay * {
  animation-iteration-count: 1 !important;
}

.popup-overlay.active {
  display: flex;
  opacity: 1;
}

.popup-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 90vw;
}

.popup-close {
  position: absolute;
  top: -40px;
  right: -10px;
  background: none;
  border: none;
  color: #ff4d6d;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.3s ease;
}

.popup-close:hover {
  transform: rotate(90deg) scale(1.2);
}

/* Foto Reveal */
.foto-reveal {
  width: 280px;
  max-width: 80vw;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid rgba(255, 77, 109, 0.4);
  box-shadow: 0 0 40px rgba(255, 77, 109, 0.2);
}

.popup-foto {
  width: 100%;
  height: auto;
  display: block;
  transform: none !important;
  animation: none !important;
}

/* Fireworks Text */
.fireworks-text {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  opacity: 0;
  animation: showFireworks 0.5s ease forwards;
  animation-delay: 1s;
}

.firework-letra {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  color: #ff4d6d;
  opacity: 0;
  transform: translateY(30px) scale(0);
  animation: letraExplode 0.6s ease forwards;
  animation-delay: calc(1s + var(--i) * 0.08s);
  text-shadow: 0 0 10px rgba(255, 77, 109, 0.6), 0 0 30px rgba(255, 77, 109, 0.3);
  position: relative;
}

.firework-letra::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: #ff6b8a;
  border-radius: 50%;
  opacity: 0;
  animation: sparkBurst 0.8s ease forwards;
  animation-delay: calc(1s + var(--i) * 0.08s);
}

@keyframes letraExplode {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0);
    text-shadow: 0 0 40px #ff4d6d, 0 0 80px #ff4d6d;
  }
  50% {
    transform: translateY(-10px) scale(1.3);
    text-shadow: 0 0 40px #ff4d6d, 0 0 80px #ff4d6d, 0 0 120px #ff6b8a;
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    text-shadow: 0 0 10px rgba(255, 77, 109, 0.6), 0 0 30px rgba(255, 77, 109, 0.3);
  }
}

@keyframes sparkBurst {
  0% {
    opacity: 1;
    box-shadow:
      0 0 0 0 #ff4d6d,
      0 0 0 0 #ff6b8a,
      0 0 0 0 #e8365d,
      0 0 0 0 #ff8fa3;
  }
  100% {
    opacity: 0;
    box-shadow:
      -20px -20px 0 0 #ff4d6d,
      20px -15px 0 0 #ff6b8a,
      -15px 20px 0 0 #e8365d,
      25px 18px 0 0 #ff8fa3;
  }
}

@keyframes showFireworks {
  to { opacity: 1; }
}

/* Sparkles */
.sparkles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: sparkleFloat 1.5s ease-out forwards;
}

@keyframes sparkleFloat {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(0);
    opacity: 0;
  }
}

/* Qualidades / Cards */
.qualidades {
  background: linear-gradient(180deg, #1f0f15 0%, #1a0a0a 100%);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.card {
  background: rgba(255, 77, 109, 0.06);
  border: 1px solid rgba(255, 77, 109, 0.12);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 77, 109, 0.4);
  box-shadow: 0 20px 60px rgba(255, 77, 109, 0.15);
}

.card-emoji {
  font-size: 3rem;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #ff6b8a;
}

.card p {
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

/* Carrossel */
.carrossel {
  background: linear-gradient(180deg, #1f0f15 0%, #1a0a0a 100%);
  text-align: center;
}

.carrossel-desc {
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 50px;
  font-size: 1.05rem;
}

.carrossel-moldura {
  position: relative;
  width: min(480px, 90vw);
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  padding: 12px;
  border-radius: 24px;
  background: #0d0505;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(255, 77, 109, 0.25);
}

.carrossel-moldura::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, #ff4d6d, #ff6b8a, #e8365d, #ff8fa3, #ff4d6d);
  animation: molduraRotate 6s linear infinite;
  z-index: 0;
}

.carrossel-moldura::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 20px;
  background: #0d0505;
  z-index: 1;
}

@keyframes molduraRotate {
  to { transform: rotate(1turn); }
}

.carrossel-viewport {
  position: absolute;
  inset: 12px;
  z-index: 2;
  border-radius: 16px;
  overflow: hidden;
}

.carrossel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carrossel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.2s ease;
  pointer-events: none;
}

.carrossel-slide.active {
  opacity: 1;
  transform: scale(1);
  animation: slideKenBurns 6s ease forwards;
  pointer-events: auto;
}

@keyframes slideKenBurns {
  0% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.carrossel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.moldura-cantos {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.canto {
  position: absolute;
  color: #ff4d6d;
  font-size: 1.4rem;
  text-shadow: 0 0 12px rgba(255, 77, 109, 0.9), 0 0 24px rgba(255, 77, 109, 0.5);
  animation: cantoPulse 2s ease-in-out infinite;
}

.canto-tl { top: 14px; left: 14px; animation-delay: 0s; }
.canto-tr { top: 14px; right: 14px; animation-delay: 0.5s; }
.canto-bl { bottom: 14px; left: 14px; animation-delay: 1s; }
.canto-br { bottom: 14px; right: 14px; animation-delay: 1.5s; }

@keyframes cantoPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.35); opacity: 1; }
}

.carrossel-indicadores {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 35px;
  flex-wrap: wrap;
}

.indicador {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 77, 109, 0.25);
  border: 1px solid rgba(255, 77, 109, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicador.active {
  background: #ff4d6d;
  box-shadow: 0 0 15px #ff4d6d;
  transform: scale(1.3);
}

/* Carta */
.carta {
  background: linear-gradient(180deg, #1a0a0a 0%, #200e18 50%, #1a0a0a 100%);
}

.carta-envelope {
  max-width: 700px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(255, 77, 109, 0.1), rgba(255, 107, 138, 0.05));
  border: 1px solid rgba(255, 77, 109, 0.2);
  border-radius: 24px;
  padding: 50px 40px;
  position: relative;
  overflow: hidden;
}

.carta-envelope::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 77, 109, 0.05) 0%, transparent 50%);
}

.carta-header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.carta-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 10px;
}

.carta-header h2 {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  color: #ff6b8a;
}

.carta-body {
  position: relative;
}

.carta-body p {
  font-weight: 300;
  line-height: 2;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.carta-assinatura {
  text-align: right;
  font-style: italic;
  margin-top: 30px;
  color: #ff6b8a;
}

.carta-assinatura strong {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  display: block;
  margin-top: 5px;
}

/* Promessas */
.promessas {
  background: linear-gradient(180deg, #1a0a0a 0%, #1f0f15 100%);
}

.promessas-grid {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.promessa-item {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 25px 30px;
  background: rgba(255, 77, 109, 0.06);
  border: 1px solid rgba(255, 77, 109, 0.1);
  border-radius: 16px;
  transition: all 0.4s ease;
}

.promessa-item:hover {
  border-color: rgba(255, 77, 109, 0.35);
  box-shadow: 0 10px 40px rgba(255, 77, 109, 0.1);
  transform: translateX(8px);
}

.promessa-number {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  color: #ff4d6d;
  min-width: 50px;
  text-align: center;
  text-shadow: 0 0 20px rgba(255, 77, 109, 0.4);
}

.promessa-item p {
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
}

/* Contador */
.contador {
  background: linear-gradient(180deg, #1f0f15 0%, #1a0a0a 100%);
  text-align: center;
}

.contador-desc {
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 50px;
  font-size: 1.1rem;
}

.contador-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: nowrap;
  margin-bottom: 30px;
}

.contador-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}

.contador-num {
  font-size: 2.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, #ff6b8a, #ff4d6d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.contador-label {
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
}

.contador-sub {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8rem;
  color: #ff6b8a;
}

/* Blocos de contador (relacionamento + namoro) */
.contador-bloco {
  margin-bottom: 38px;
}

.contador-bloco-titulo {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 18px;
}

/* =====================================================
   Pop-up de aniversario mensal (dia 09 e dia 29)
   ===================================================== */
.milestone-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 3, 6, 0.92);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.milestone-overlay.active {
  display: flex;
  opacity: 1;
}

.milestone-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, #2a1119 0%, #1a0a0f 100%);
  border: 1px solid rgba(255, 77, 109, 0.35);
  border-radius: 22px;
  box-shadow: 0 0 50px rgba(255, 77, 109, 0.25);
  padding: 28px 24px 26px;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.milestone-overlay.active .milestone-card {
  transform: scale(1);
}

.milestone-close {
  position: absolute;
  top: 10px;
  right: 16px;
  background: none;
  border: none;
  color: #ff6b8a;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.milestone-close:hover {
  transform: rotate(90deg) scale(1.15);
}

.milestone-emoji {
  font-size: 2.6rem;
  margin-bottom: 4px;
  animation: milestonePop 0.6s ease;
}

@keyframes milestonePop {
  0% { transform: scale(0) rotate(-20deg); opacity: 0; }
  70% { transform: scale(1.25) rotate(8deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.milestone-titulo {
  font-family: 'Great Vibes', cursive;
  font-size: 2.2rem;
  color: #ff6b8a;
  margin-bottom: 4px;
}

.milestone-sub {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 18px;
}

.milestone-carrossel {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255, 77, 109, 0.4);
  box-shadow: 0 0 28px rgba(255, 77, 109, 0.18);
  background: #100407;
}

.milestone-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.milestone-track img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.milestone-track img.active {
  opacity: 1;
}

.milestone-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.milestone-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.3s ease, transform 0.3s ease;
}

.milestone-dots span.active {
  background: #ff4d6d;
  transform: scale(1.3);
}

.milestone-dias {
  margin-top: 18px;
  font-size: 1.35rem;
  font-weight: 600;
  background: linear-gradient(135deg, #ff6b8a, #ff4d6d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.milestone-frase {
  margin-top: 6px;
  font-family: 'Great Vibes', cursive;
  font-size: 1.5rem;
  color: #ff6b8a;
}

/* Footer */
.footer {
  text-align: center;
  padding: 60px 20px 30px;
  background: #0d0505;
  position: relative;
  z-index: 1;
}

.footer-hearts {
  font-size: 1.5rem;
  color: #ff4d6d;
  margin-bottom: 20px;
  letter-spacing: 10px;
  animation: heartbeat 2s infinite;
}

.footer-phrase {
  font-style: italic;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
  font-size: 1.1rem;
  letter-spacing: 1px;
  word-spacing: 3px;
}

.footer-names {
  font-family: 'Great Vibes', cursive;
  font-size: 2.2rem;
  color: #ff6b8a;
  margin-bottom: 30px;
  letter-spacing: 3px;
  word-spacing: 8px;
  padding: 0 20px;
}

.footer-dev {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 2px;
  border-top: 1px solid rgba(255, 77, 109, 0.1);
  padding-top: 20px;
}

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

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

/* Responsive */
@media (max-width: 768px) {
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .hero-title {
    font-size: 3.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-title .name {
    display: block;
    text-align: center;
  }

  .heart-icon {
    display: block;
    margin: 5px auto;
    font-size: 0.5em;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 2px;
  }

  .hero-phrase {
    font-size: 1.1rem;
    padding: 0 10px;
    min-height: 7em;
  }

  .section {
    padding: 70px 0;
  }

  .carta-envelope {
    padding: 30px 20px;
  }

  .contador-grid {
    gap: 20px;
  }

  .contador-num {
    font-size: 2.5rem;
  }

  .promessa-item {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .infinito-container {
    gap: 5px;
  }

  .infinito-letra {
    font-size: 3rem;
  }

  .infinito-simbolo {
    font-size: 3.5rem;
    padding: 8px 12px;
  }

  .footer-names {
    font-size: 1.8rem;
    word-spacing: 5px;
  }

  .canto { font-size: 1.1rem; }
  .canto-tl, .canto-tr { top: 10px; }
  .canto-bl, .canto-br { bottom: 10px; }
  .canto-tl, .canto-bl { left: 10px; }
  .canto-tr, .canto-br { right: 10px; }
}

/* =====================
   Planner de Viagens
   ===================== */

/* Ícone do avião (botão flutuante) */
.plane-icon {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  background: linear-gradient(135deg, rgba(255, 107, 138, 0.9), rgba(255, 77, 109, 0.95));
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  color: #fff;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(255, 77, 109, 0.45);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.plane-icon:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 25px rgba(255, 77, 109, 0.75);
}

.plane-emoji {
  display: inline-block;
  font-size: 1.4rem;
  transform: rotate(-35deg);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
  animation: planeFly 2.8s ease-in-out infinite;
}

@keyframes planeFly {
  0%, 100% { transform: rotate(-35deg) translate(0, 0); }
  25% { transform: rotate(-42deg) translate(-2px, -3px); }
  50% { transform: rotate(-35deg) translate(0, -2px); }
  75% { transform: rotate(-28deg) translate(2px, -3px); }
}

@keyframes planeHover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.plane-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  right: calc(100% + 4px);
  width: 28px;
  height: 2px;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.75), transparent);
  transform: translateY(-50%);
  border-radius: 2px;
  animation: planeTrail 1.8s ease-in-out infinite;
}

@keyframes planeTrail {
  0%, 100% { width: 16px; opacity: 0.35; }
  50% { width: 36px; opacity: 0.85; }
}

/* Overlay do planner */
.globe-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background:
    radial-gradient(ellipse at center, rgba(40, 15, 40, 0.4) 0%, transparent 60%),
    #070010;
  z-index: 10000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 40px 20px;
}

body.planner-aberto {
  overflow: hidden;
}

.globe-overlay.active { display: flex; }

.globe-modal {
  position: relative;
  max-width: 860px;
  width: 100%;
  text-align: center;
  padding: 20px;
}

.globe-close {
  position: absolute;
  top: 0;
  right: 10px;
  background: none;
  border: none;
  color: #ff6b8a;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.3s ease;
  line-height: 1;
}

.globe-close:hover { transform: rotate(90deg); }

.globe-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.2rem, 5vw, 3rem);
  color: #ff6b8a;
  margin-bottom: 8px;
  text-shadow: 0 0 30px rgba(255, 77, 109, 0.3);
}

.globe-subtitle {
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
  font-size: 0.95rem;
  padding: 0 10px;
}

/* Globo rotativo */
.globe-stage {
  position: relative;
  width: min(280px, 70vw);
  height: min(280px, 70vw);
  margin: 0 auto 40px;
}

.globe {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.globe canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  filter:
    drop-shadow(0 0 14px rgba(120, 200, 255, 0.7))
    drop-shadow(0 0 32px rgba(76, 153, 255, 0.4))
    drop-shadow(0 0 60px rgba(40, 110, 200, 0.25));
}

.globe-stage {
  touch-action: none;
}

.globe-ring {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 77, 109, 0.4);
  animation: ringSpin 30s linear infinite;
  pointer-events: none;
}

.globe-ring::before,
.globe-ring::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff4d6d;
  box-shadow: 0 0 12px #ff4d6d;
}

.globe-ring::before { top: -5px; left: calc(50% - 5px); }
.globe-ring::after { bottom: -5px; left: calc(50% - 5px); background: #ff6b8a; }

@keyframes ringSpin {
  to { transform: rotate(360deg); }
}

/* Navegação entre as views do planner */
.globe-view,
.continente-view,
.pais-view,
.pasta-view,
.biblioteca-view { display: none; }

.globe-overlay[data-view="globo"] .globe-view { display: block; }
.globe-overlay[data-view="continente"] .continente-view { display: block; }
.globe-overlay[data-view="pais"] .pais-view { display: block; }
.globe-overlay[data-view="pasta"] .pasta-view { display: block; }
.globe-overlay[data-view="biblioteca"] .biblioteca-view { display: block; }

/* Continentes */
.continentes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  max-width: 720px;
  margin: 0 auto 30px;
}

.continente-card {
  background: rgba(255, 77, 109, 0.08);
  border: 1px solid rgba(255, 77, 109, 0.2);
  border-radius: 16px;
  padding: 22px 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  color: #fff;
  backdrop-filter: blur(8px);
}

.continente-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 77, 109, 0.6);
  box-shadow: 0 12px 32px rgba(255, 77, 109, 0.25);
  background: rgba(255, 77, 109, 0.14);
}

.continente-emoji {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 8px;
}

.continente-card-nome {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 4px;
}

.continente-card-count {
  display: block;
  font-size: 0.72rem;
  color: rgba(255, 107, 138, 0.9);
  letter-spacing: 1px;
}

/* Botão biblioteca */
.biblioteca-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  background: linear-gradient(135deg, rgba(255, 77, 109, 0.2), rgba(232, 54, 93, 0.25));
  color: #ff8fa3;
  border: 1px solid rgba(255, 77, 109, 0.45);
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 1px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.biblioteca-btn:hover {
  background: linear-gradient(135deg, #ff4d6d, #e8365d);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 77, 109, 0.4);
  transform: translateY(-2px);
}

.biblioteca-btn-icon { font-size: 1.1rem; }

/* Tela do continente - busca e lista de países */
.continente-nome {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.2rem, 5vw, 3rem);
  color: #ff6b8a;
  margin-bottom: 8px;
  text-shadow: 0 0 25px rgba(255, 77, 109, 0.3);
}

.busca-wrapper {
  position: relative;
  max-width: 420px;
  margin: 20px auto 25px;
}

.busca-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 107, 138, 0.7);
  font-size: 1rem;
  pointer-events: none;
}

.pais-search {
  width: 100%;
  padding: 12px 18px 12px 42px;
  background: rgba(255, 77, 109, 0.08);
  border: 1px solid rgba(255, 77, 109, 0.3);
  border-radius: 30px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

.pais-search::placeholder { color: rgba(255, 255, 255, 0.45); }

.pais-search:focus {
  border-color: #ff4d6d;
  background: rgba(255, 77, 109, 0.14);
  box-shadow: 0 0 20px rgba(255, 77, 109, 0.2);
}

/* Grid de países do continente */
.paises-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

.pais-card {
  background: rgba(255, 77, 109, 0.08);
  border: 1px solid rgba(255, 77, 109, 0.2);
  border-radius: 14px;
  padding: 16px 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  color: #fff;
  backdrop-filter: blur(8px);
}

.pais-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 77, 109, 0.55);
  box-shadow: 0 10px 28px rgba(255, 77, 109, 0.2);
  background: rgba(255, 77, 109, 0.14);
}

.pais-card-flag {
  font-size: 2rem;
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0;
}

.pais-card-nome {
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
}

.pais-card-count {
  display: block;
  margin-top: 4px;
  font-size: 0.7rem;
  color: rgba(255, 107, 138, 0.9);
  letter-spacing: 1px;
}

.pais-card.tem-fotos {
  border-color: rgba(255, 77, 109, 0.5);
  background: rgba(255, 77, 109, 0.14);
}

.pais-back {
  background: none;
  border: 1px solid rgba(255, 77, 109, 0.4);
  color: #ff6b8a;
  border-radius: 30px;
  padding: 8px 20px;
  cursor: pointer;
  font-size: 0.85rem;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.pais-back:hover {
  background: rgba(255, 77, 109, 0.15);
  border-color: #ff4d6d;
}

.pais-nome {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  color: #ff6b8a;
  margin-bottom: 8px;
  text-shadow: 0 0 25px rgba(255, 77, 109, 0.3);
}

.pais-desc {
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
}

.pais-upload {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #ff4d6d, #e8365d);
  color: #fff;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(255, 77, 109, 0.35);
  margin-bottom: 30px;
}

.pais-upload:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 77, 109, 0.55);
}

.pais-upload-icon { font-size: 1.2rem; }

.pais-vazio {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  font-weight: 300;
  margin: 20px 0;
}

.pais-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.pais-foto {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 77, 109, 0.25);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease;
}

.pais-foto:hover { transform: scale(1.04); }

.pais-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pais-foto-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.pais-foto:hover .pais-foto-remove { opacity: 1; }
.pais-foto-remove:hover { background: #ff4d6d; }

/* ===== Pastas (estado/cidade) dentro de um pais ===== */
.pasta-nova-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  background: linear-gradient(135deg, #ff4d6d, #e8365d);
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-family: inherit;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(255, 77, 109, 0.35);
  margin-bottom: 22px;
}
.pasta-nova-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 77, 109, 0.55);
}
.pasta-nova-icon { font-size: 1.2rem; }

.pasta-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  margin: 0 auto 26px;
  background: rgba(255, 77, 109, 0.06);
  border: 1px solid rgba(255, 77, 109, 0.22);
  border-radius: 16px;
  padding: 18px;
}
.pasta-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 77, 109, 0.3);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.pasta-input::placeholder { color: rgba(255, 255, 255, 0.4); }
.pasta-input:focus { border-color: #ff4d6d; }
.pasta-form-acoes { display: flex; gap: 10px; }
.pasta-form-criar,
.pasta-form-cancelar {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.pasta-form-criar {
  background: linear-gradient(135deg, #ff4d6d, #e8365d);
  color: #fff;
  border: none;
  font-weight: 600;
}
.pasta-form-criar:hover { filter: brightness(1.1); }
.pasta-form-cancelar {
  background: none;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.pasta-form-cancelar:hover { border-color: rgba(255, 255, 255, 0.4); }

.pastas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
}
.pasta-card {
  position: relative;
  background: rgba(255, 77, 109, 0.08);
  border: 1px solid rgba(255, 77, 109, 0.25);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  color: #fff;
}
.pasta-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 77, 109, 0.6);
  box-shadow: 0 10px 28px rgba(255, 77, 109, 0.22);
}
.pasta-card-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: rgba(0, 0, 0, 0.3);
}
.pasta-card-cover.vazia {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: rgba(255, 255, 255, 0.35);
}
.pasta-card-info { padding: 10px 12px 12px; }
.pasta-card-cidade { font-size: 0.95rem; font-weight: 500; }
.pasta-card-estado { font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); margin-top: 2px; }
.pasta-card-count {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  color: rgba(255, 107, 138, 0.95);
}
.pasta-card-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
  z-index: 2;
}
.pasta-card:hover .pasta-card-remove { opacity: 1; }
.pasta-card-remove:hover { background: #ff4d6d; }

/* Card de status do upload de fotos */
.pasta-upload-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto 8px;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid rgba(255, 77, 109, 0.3);
  background: rgba(255, 77, 109, 0.08);
  color: #fff;
}
.pasta-upload-status.enviando { border-color: rgba(255, 77, 109, 0.45); }
.pasta-upload-status.sucesso {
  border-color: rgba(80, 220, 130, 0.5);
  background: rgba(60, 200, 110, 0.12);
  color: #b6f5cf;
}
.pasta-upload-status.erro {
  border-color: rgba(255, 90, 90, 0.5);
  background: rgba(220, 70, 70, 0.12);
  color: #ffc2c2;
}
.pasta-upload-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #ff4d6d;
  border-radius: 50%;
  animation: pastaSpin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes pastaSpin { to { transform: rotate(360deg); } }
.pasta-upload-progress {
  width: 100%;
  max-width: 420px;
  height: 6px;
  margin: 0 auto 16px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.pasta-upload-progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff6b8a, #ff4d6d);
  transition: width 0.3s ease;
}

.pais-soltas {
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
}
.pais-soltas-titulo {
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 4px;
}

/* Biblioteca de viagens */
.biblioteca-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 20px;
}

.biblioteca-pais {
  background: rgba(255, 77, 109, 0.06);
  border: 1px solid rgba(255, 77, 109, 0.18);
  border-radius: 18px;
  padding: 22px 20px;
  text-align: left;
  backdrop-filter: blur(8px);
}

.biblioteca-pais-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.biblioteca-pais-flag {
  font-size: 2rem;
  flex-shrink: 0;
}

.biblioteca-pais-info {
  flex: 1;
  min-width: 120px;
}

.biblioteca-pais-nome {
  font-size: 1.15rem;
  color: #ff8fa3;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.biblioteca-pais-meta {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

.biblioteca-pais-acao {
  background: none;
  border: 1px solid rgba(255, 77, 109, 0.4);
  color: #ff6b8a;
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.biblioteca-pais-acao:hover {
  background: rgba(255, 77, 109, 0.15);
  border-color: #ff4d6d;
}

.biblioteca-pais-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.biblioteca-pais-foto {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 77, 109, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.biblioteca-pais-foto:hover { transform: scale(1.04); }

.biblioteca-pais-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 600px) {
  .plane-icon { bottom: 20px; left: 20px; width: 46px; height: 46px; }
  .plane-emoji { font-size: 1.2rem; }
  .globe-overlay { padding: 30px 12px; }
  .globe-close { font-size: 2.2rem; }
  .continente-emoji { font-size: 2rem; }
  .pais-card-flag { font-size: 1.7rem; }
}

/* =====================================================
   Chat IA — Cupida
   ===================================================== */
.chat-icon {
  position: fixed;
  bottom: 88px;
  right: 20px;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4d6d 0%, #c9184a 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(201, 24, 74, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  isolation: isolate;
  transform: translateZ(0);
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.chat-icon:hover {
  transform: translateZ(0) scale(1.08) rotate(-6deg);
  box-shadow: 0 10px 30px rgba(201, 24, 74, 0.6);
}
.chat-emoji { font-size: 1.5rem; }

.chat-overlay {
  position: fixed;
  inset: 0;
  background: #0a050a;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  z-index: 10500;
  opacity: 0;
  transition: opacity 0.3s ease;
}
/* Esconde os botões flutuantes quando o chat está aberto (evita o avião animado e o music aparecerem por trás da overlay) */
body.chat-open .music-toggle,
body.chat-open .plane-icon,
body.chat-open .chat-icon {
  visibility: hidden;
  pointer-events: none;
}
.chat-overlay.active {
  display: flex;
  opacity: 1;
}

.chat-modal {
  width: 100%;
  max-width: 1100px;
  height: 80vh;
  height: 80dvh;
  max-height: 800px;
  background: #1a0e1a;
  border-radius: 20px;
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  border: 1px solid rgba(255, 77, 109, 0.2);
}

.chat-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.chat-close:hover { background: rgba(255, 77, 109, 0.4); }

/* Sidebar */
.chat-sidebar {
  background: #15091a;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-sidebar-header {
  padding: 20px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.chat-sidebar-header h3 {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: #fff;
  letter-spacing: 0.4px;
}
.chat-new-btn {
  background: linear-gradient(135deg, #ff4d6d 0%, #c9184a 100%);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.chat-new-btn:hover { transform: translateY(-1px); }

.chat-conversations {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}
.chat-empty {
  padding: 20px 14px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
  text-align: center;
  margin: 0;
}
.chat-conv-item {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  margin-bottom: 4px;
  transition: background 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.chat-conv-item:hover { background: rgba(255, 77, 109, 0.12); }
.chat-conv-item.active {
  background: rgba(255, 77, 109, 0.22);
  color: #fff;
}
.chat-conv-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-conv-meta {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Main */
.chat-main {
  display: flex;
  flex-direction: column;
  background: #1a0e1a;
  overflow: hidden;
}
.chat-header {
  padding: 18px 60px 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.chat-title {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  color: #fff;
}
.chat-subtitle {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}
.chat-delete-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.chat-delete-btn.visible { display: flex; }
.chat-delete-btn:hover { background: rgba(255, 77, 109, 0.2); color: #fff; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chat-welcome {
  margin: auto;
  text-align: center;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.85);
}
.chat-welcome-emoji {
  font-size: 3rem;
  margin-bottom: 12px;
}
.chat-welcome h4 {
  margin: 0 0 10px;
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  color: #ff8fa3;
  font-weight: 400;
}
.chat-welcome p {
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.75);
}
.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.chat-suggest {
  background: rgba(255, 77, 109, 0.12);
  border: 1px solid rgba(255, 77, 109, 0.3);
  color: #ffd7e1;
  padding: 8px 14px;
  border-radius: 18px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.chat-suggest:hover {
  background: rgba(255, 77, 109, 0.25);
  transform: translateY(-1px);
}

.chat-msg {
  display: flex;
  gap: 10px;
  max-width: 85%;
  animation: chat-fade-in 0.25s ease;
}
@keyframes chat-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.chat-msg.user .chat-avatar {
  background: linear-gradient(135deg, #ff4d6d 0%, #c9184a 100%);
  color: #fff;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
}
.chat-msg.user .chat-avatar.partner-giovanna {
  background: linear-gradient(135deg, #ff8fb1 0%, #ff4d6d 100%);
  box-shadow: 0 0 0 2px rgba(255, 143, 177, 0.5);
}
.chat-msg.user .chat-avatar.partner-kenned {
  background: linear-gradient(135deg, #6db4ff 0%, #2d6cdf 100%);
  box-shadow: 0 0 0 2px rgba(109, 180, 255, 0.5);
}
.chat-msg.assistant .chat-avatar {
  background: rgba(255, 255, 255, 0.08);
  color: #ffd7e1;
}
.chat-bubble {
  padding: 12px 16px;
  border-radius: 14px;
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.chat-msg.user .chat-bubble {
  background: linear-gradient(135deg, #c9184a 0%, #800f2f 100%);
  border-bottom-right-radius: 4px;
}
.chat-msg.assistant .chat-bubble {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 4px;
}
.chat-bubble strong { color: #ffd7e1; }
.chat-bubble code {
  background: rgba(0, 0, 0, 0.35);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}
.chat-bubble.error {
  background: rgba(255, 77, 109, 0.15);
  border: 1px solid rgba(255, 77, 109, 0.4);
  color: #ffd7e1;
}
.chat-bubble.thinking::after {
  content: "▋";
  color: rgba(255, 255, 255, 0.6);
  animation: chat-blink 1s steps(1) infinite;
  margin-left: 2px;
}
@keyframes chat-blink {
  50% { opacity: 0; }
}

/* Input */
.chat-input-form {
  display: flex;
  gap: 10px;
  /* Bottom padding considera safe-area pra nao ser cortado pelo home indicator */
  padding: 14px 18px max(18px, calc(env(safe-area-inset-bottom, 0px) + 14px));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #150811;
}
.chat-input {
  flex: 1;
  resize: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  line-height: 1.5;
  max-height: 160px;
  outline: none;
  transition: border-color 0.15s ease;
}
.chat-input:focus { border-color: rgba(255, 77, 109, 0.5); }
.chat-input::placeholder { color: rgba(255, 255, 255, 0.4); }
.chat-send {
  background: linear-gradient(135deg, #ff4d6d 0%, #c9184a 100%);
  color: #fff;
  border: none;
  width: 46px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, opacity 0.2s ease;
}
.chat-send:hover { transform: scale(1.05); }
.chat-send:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.chat-send-icon { font-size: 1.1rem; transform: rotate(0deg); }

/* ----- Tablet ----- */
@media (max-width: 1024px) and (min-width: 761px) {
  .chat-modal {
    height: 85vh;
    height: 85dvh;
    max-height: 85vh;
    max-height: 85dvh;
    grid-template-columns: 240px 1fr;
  }
  .chat-overlay { padding: 20px; }
}

/* ----- Mobile (<= 760px) ----- */
@media (max-width: 760px) {
  .chat-overlay {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
  }
  .chat-modal {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
    border: none;
  }
  .chat-sidebar {
    max-height: 30vh;
    max-height: 30dvh;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .chat-sidebar-header {
    padding: 16px 64px 10px 16px;
  }
  .chat-header { padding: 14px 60px 12px 18px; }
  .chat-messages { padding: 16px; gap: 12px; }
  .chat-input-form { padding: 10px 12px 14px; gap: 8px; }
  .chat-icon { bottom: 88px; right: 20px; width: 48px; height: 48px; }
  .chat-emoji { font-size: 1.3rem; }
  .chat-close { top: 10px; right: 12px; width: 34px; height: 34px; font-size: 1.6rem; }
  .chat-msg { max-width: 92%; }
}

/* ----- Telefones pequenos / estreitos ----- */
@media (max-width: 400px) {
  .chat-sidebar { max-height: 26vh; max-height: 26dvh; }
  .chat-sidebar-header { padding: 14px 60px 8px 14px; }
  .chat-sidebar-header h3 { font-size: 0.92rem; }
  .chat-new-btn { padding: 5px 10px; font-size: 0.75rem; }
  .chat-welcome-emoji { font-size: 2.4rem; margin-bottom: 8px; }
  .chat-welcome h4 { font-size: 1.6rem; margin-bottom: 6px; }
  .chat-welcome p { font-size: 0.86rem; line-height: 1.45; margin-bottom: 14px; }
  .chat-suggest { font-size: 0.76rem; padding: 6px 11px; }
  .chat-input { font-size: 1rem; padding: 10px 12px; }
  .chat-send { width: 42px; }
  .chat-bubble { font-size: 0.88rem; padding: 10px 13px; }
  .chat-title { font-size: 1rem; }
  .chat-subtitle { font-size: 0.74rem; }
}

/* ----- Landscape em telefones (altura curta) ----- */
@media (max-height: 480px) and (orientation: landscape) {
  .chat-sidebar { max-height: 100%; }
  .chat-modal {
    grid-template-columns: 200px 1fr;
    grid-template-rows: 1fr;
  }
  .chat-welcome-emoji { font-size: 2rem; margin-bottom: 4px; }
  .chat-welcome h4 { font-size: 1.4rem; margin-bottom: 4px; }
  .chat-welcome p { font-size: 0.82rem; margin-bottom: 10px; }
}

/* =====================================================
   Menu lateral (card no canto superior esquerdo)
   ===================================================== */
.menu-toggle-btn {
  position: fixed;
  /* Em PWA standalone, env(safe-area-inset-top) é a altura do notch/status bar.
     No browser comum o env() retorna 0 (com fallback de 18px). */
  top: max(18px, calc(env(safe-area-inset-top, 0px) + 14px));
  left: max(18px, calc(env(safe-area-inset-left, 0px) + 14px));
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #ff4d6d 0%, #c9184a 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  z-index: 9100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 77, 109, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  isolation: isolate;
}
.menu-toggle-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 77, 109, 0.6);
}
.menu-toggle-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.menu-toggle-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle-btn.open span:nth-child(2) { opacity: 0; }
.menu-toggle-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu-card-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.menu-card-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.menu-card {
  position: fixed;
  /* Acompanha o offset do safe-area: fica logo abaixo do botao do menu */
  top: max(76px, calc(env(safe-area-inset-top, 0px) + 72px));
  left: max(18px, calc(env(safe-area-inset-left, 0px) + 14px));
  width: 230px;
  max-width: calc(100vw - 36px);
  background: linear-gradient(180deg, #1a0e1a 0%, #2d0a1e 100%);
  border: 1px solid rgba(255, 77, 109, 0.3);
  border-radius: 16px;
  padding: 14px;
  z-index: 9200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transform-origin: top left;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.menu-card.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.menu-card-title {
  margin: 2px 4px 6px;
  font-family: 'Great Vibes', cursive;
  font-size: 1.6rem;
  color: #ff8fa3;
  text-align: center;
  font-weight: 400;
  line-height: 1;
}

.menu-card-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 77, 109, 0.18);
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  font-size: 0.94rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  text-align: left;
  width: 100%;
}
.menu-card-item:hover {
  background: rgba(255, 77, 109, 0.18);
  border-color: rgba(255, 77, 109, 0.55);
  transform: translateX(3px);
}
.menu-card-item:active {
  transform: translateX(1px) scale(0.98);
}

.menu-card-icon {
  font-size: 1.25rem;
  width: 26px;
  text-align: center;
  flex-shrink: 0;
}
.menu-card-label { flex: 1; }

/* Esconde os ícones flutuantes antigos — agora são acessados pelo menu */
.music-toggle,
.plane-icon,
.chat-icon {
  display: none !important;
}

/* Divisor entre os itens normais do menu e o botao "Sair da conta" */
.menu-card-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 6px 4px;
}

/* Botao destrutivo "Sair da conta" com tonalidade de alerta */
.menu-card-item-danger {
  color: #ff8da3 !important;
}
.menu-card-item-danger .menu-card-icon { filter: hue-rotate(0deg); }
.menu-card-item-danger:hover {
  background: rgba(255, 77, 109, 0.15) !important;
  color: #ff4d6d !important;
}

/* Botao "Notificacoes" — cor verde quando ativo, dourado quando inativo */
.menu-card-item-notif { color: #ffd966 !important; }
.menu-card-item-notif:hover {
  background: rgba(255, 215, 0, 0.15) !important;
  color: #ffea7d !important;
}
.menu-card-item-notif.is-active { color: #6ee07e !important; }
.menu-card-item-notif.is-active:hover {
  background: rgba(110, 224, 126, 0.18) !important;
  color: #8aff9c !important;
}
.menu-card-item-notif.is-busy {
  pointer-events: none;
  opacity: 0.7;
}
.menu-card-item-notif.is-busy .menu-card-icon {
  display: inline-block;
  animation: gk-update-spin 1s linear infinite;
}

/* Botao "Atualizar App" — cor azul/violeta, neutra (nao alarmante) */
.menu-card-item-update { color: #b0a3ff !important; }
.menu-card-item-update:hover {
  background: rgba(124, 77, 255, 0.15) !important;
  color: #d0c4ff !important;
}
.menu-card-item-update.is-updating {
  pointer-events: none;
  opacity: 0.7;
}
.menu-card-item-update.is-updating .menu-card-icon {
  display: inline-block;
  animation: gk-update-spin 1s linear infinite;
}
@keyframes gk-update-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Esconde botão de menu quando overlays estão abertos */
body.chat-open .menu-toggle-btn,
body.chat-open .menu-card,
body.chat-open .menu-card-backdrop,
body.planner-aberto .menu-toggle-btn,
body.planner-aberto .menu-card,
body.planner-aberto .menu-card-backdrop {
  visibility: hidden;
  pointer-events: none;
}

/* Esconde corações apenas para overlays opacos (chat/planner/popup têm fundo solido). */
body.chat-open .hearts-bg,
body.planner-aberto .hearts-bg,
body.popup-aberto .hearts-bg {
  visibility: hidden;
}

/* Pausa animações de texto/icones que poderiam pulsar atrás dos overlays.
   Mas NAO afeta os coraçoes flutuantes nem a propria overlay. */
body.chat-open *,
body.planner-aberto *,
body.popup-aberto *,
body.dm-open *,
body.games-open *,
body.notify-open *,
body.game-open *,
body.placar-open *,
body.checkers-open *,
body.rps-open * {
  animation-play-state: paused !important;
}

/* Permite animações DENTRO da própria overlay (mensagens chegando, etc) */
body.chat-open #chat-overlay,
body.chat-open #chat-overlay *,
body.planner-aberto #globe-overlay,
body.planner-aberto #globe-overlay *,
body.popup-aberto #popup-overlay,
body.popup-aberto #popup-overlay *,
body.dm-open #dm-overlay,
body.dm-open #dm-overlay *,
body.games-open #games-hub-overlay,
body.games-open #games-hub-overlay *,
body.notify-open #dm-notify-overlay,
body.notify-open #dm-notify-overlay *,
body.game-open #game-overlay,
body.game-open #game-overlay *,
body.placar-open #placar-overlay,
body.placar-open #placar-overlay *,
body.checkers-open #checkers-overlay,
body.checkers-open #checkers-overlay *,
body.rps-open #rps-overlay,
body.rps-open #rps-overlay * {
  animation-play-state: running !important;
}

/* Permite que os coraçoes flutuantes continuem subindo nos overlays semi-transparentes
   (DM, games-hub, notify, game, placar) — eles ficam visiveis com blur por tras. */
body.dm-open .hearts-bg,
body.dm-open .hearts-bg *,
body.games-open .hearts-bg,
body.games-open .hearts-bg *,
body.notify-open .hearts-bg,
body.notify-open .hearts-bg *,
body.game-open .hearts-bg,
body.game-open .hearts-bg *,
body.placar-open .hearts-bg,
body.placar-open .hearts-bg *,
body.checkers-open .hearts-bg,
body.checkers-open .hearts-bg * {
  animation-play-state: running !important;
}

/* Esconde menu/hamburguer quando esses overlays estão abertos */
body.dm-open .menu-toggle-btn,
body.dm-open .menu-card,
body.dm-open .menu-card-backdrop,
body.games-open .menu-toggle-btn,
body.games-open .menu-card,
body.games-open .menu-card-backdrop,
body.notify-open .menu-toggle-btn,
body.notify-open .menu-card,
body.notify-open .menu-card-backdrop,
body.game-open .menu-toggle-btn,
body.game-open .menu-card,
body.game-open .menu-card-backdrop {
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 480px) {
  .menu-card {
    width: 220px;
    left: max(14px, calc(env(safe-area-inset-left, 0px) + 12px));
    top: max(70px, calc(env(safe-area-inset-top, 0px) + 64px));
  }
  .menu-toggle-btn {
    top: max(14px, calc(env(safe-area-inset-top, 0px) + 10px));
    left: max(14px, calc(env(safe-area-inset-left, 0px) + 12px));
    width: 44px;
    height: 44px;
  }
}

/* =====================================================
   DM (Pra Voce) - chat peer-to-peer
   ===================================================== */
/* Icone flutuante DM removido da UI: agora vive apenas no menu hamburguer.
   Mantemos o elemento no DOM com display:none para que o codigo JS antigo
   (e o handler do menu via .click()) continuem funcionando. */
.dm-icon { display: none !important; }
.dm-badge { display: none !important; }

.dm-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 6, 12, 0.78);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.dm-overlay.active { display: flex; }
.dm-modal {
  width: 100%;
  max-width: 520px;
  height: min(80vh, 720px);
  background: linear-gradient(160deg, #1a0510 0%, #2b0a1a 100%);
  border: 1px solid rgba(255, 77, 109, 0.25);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.dm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 77, 109, 0.2);
  background: rgba(255, 77, 109, 0.08);
}
.dm-peer-info { display: flex; align-items: center; gap: 12px; }
.dm-peer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  background: linear-gradient(135deg, #ff4d6d, #c9184a);
  text-transform: uppercase;
}
.dm-peer-avatar.partner-giovanna {
  background: linear-gradient(135deg, #ff8fb1, #ff4d6d);
}
.dm-peer-avatar.partner-kenned {
  background: linear-gradient(135deg, #6db4ff, #2d6cdf);
}
.dm-peer-name { margin: 0; color: #fff; font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 600; }
.dm-peer-status {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 1px;
}
.dm-peer-status.online { color: #4ade80; }
.dm-peer-status.online::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  margin-right: 6px;
  vertical-align: middle;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
}
.dm-actions { display: flex; gap: 8px; align-items: center; }
.dm-close,
.dm-clear {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.dm-close { font-size: 1.4rem; }
.dm-clear { font-size: 1rem; }
.dm-close:hover,
.dm-clear:hover { background: rgba(255, 77, 109, 0.22); }

.dm-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dm-msg {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  max-width: 80%;
  animation: dm-pop 0.25s ease;
}
@keyframes dm-pop {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.dm-msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.dm-msg-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.94rem;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  word-break: break-word;
  white-space: pre-wrap;
}
.dm-msg.mine .dm-msg-bubble {
  background: linear-gradient(135deg, #ff4d6d, #c9184a);
  border-color: transparent;
}
.dm-msg-bubble.kind-emoji { font-size: 2.2rem; line-height: 1.1; padding: 6px 10px; background: transparent; border: none; }
.dm-msg.mine .dm-msg-bubble.kind-emoji { background: transparent; }
.dm-msg-bubble.kind-photo { padding: 4px; max-width: 280px; }
.dm-msg-bubble.kind-photo img {
  display: block;
  max-width: 100%;
  border-radius: 12px;
  cursor: zoom-in;
}
.dm-msg-bubble.kind-game_invite,
.dm-msg-bubble.kind-game_result {
  background: rgba(255, 215, 0, 0.12);
  border-color: rgba(255, 215, 0, 0.35);
  color: #ffd966;
  font-style: italic;
}
.dm-msg.mine .dm-msg-bubble.kind-game_invite,
.dm-msg.mine .dm-msg-bubble.kind-game_result {
  background: rgba(255, 215, 0, 0.18);
  color: #ffea7d;
}
.dm-msg-meta {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  align-self: flex-end;
  font-family: 'Poppins', sans-serif;
  margin: 0 4px;
}
.dm-typing {
  padding: 0 18px 6px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  font-family: 'Poppins', sans-serif;
  font-style: italic;
}

.dm-input-form {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  /* Bottom padding respeita home indicator do iPhone em PWA */
  padding: 12px 14px max(14px, calc(env(safe-area-inset-bottom, 0px) + 10px));
  border-top: 1px solid rgba(255, 77, 109, 0.2);
  background: rgba(0, 0, 0, 0.2);
  position: relative;
}
.dm-attach,
.dm-emoji-btn,
.dm-send {
  background: rgba(255, 77, 109, 0.15);
  border: 1px solid rgba(255, 77, 109, 0.3);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.dm-attach:hover,
.dm-emoji-btn:hover,
.dm-send:hover { background: rgba(255, 77, 109, 0.32); }
.dm-send {
  background: linear-gradient(135deg, #ff4d6d, #c9184a);
  border-color: transparent;
}
.dm-input {
  flex: 1;
  resize: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  max-height: 120px;
  outline: none;
}
.dm-input:focus { border-color: rgba(255, 77, 109, 0.5); }

.dm-emoji-picker {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(15, 6, 14, 0.97);
  border: 1px solid rgba(255, 77, 109, 0.25);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  z-index: 10;
  max-height: 40vh;
  overflow-y: auto;
}
.dm-emoji-picker[hidden] { display: none !important; }
.dm-emoji-picker span {
  font-size: 1.5rem;
  cursor: pointer;
  text-align: center;
  padding: 6px 0;
  border-radius: 8px;
  transition: background 0.15s ease;
}
.dm-emoji-picker span:hover { background: rgba(255, 77, 109, 0.2); }

/* =====================================================
   Jogo da Velha
   ===================================================== */
.game-overlay {
  position: fixed;
  inset: 0;
  z-index: 1010;
  background: rgba(10, 6, 12, 0.85);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.game-overlay.active { display: flex; }
.game-modal {
  background: linear-gradient(160deg, #1a0510 0%, #2b0a1a 100%);
  border: 1px solid rgba(255, 77, 109, 0.3);
  border-radius: 18px;
  padding: 22px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  text-align: center;
}
.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.game-header h3 {
  margin: 0;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
}
.game-close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  cursor: pointer;
}
.game-status {
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  margin: 0 0 16px;
  min-height: 1.3em;
}
.game-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 auto 16px;
  max-width: 280px;
}
.game-cell {
  aspect-ratio: 1 / 1;
  background: rgba(255, 77, 109, 0.08);
  border: 2px solid rgba(255, 77, 109, 0.25);
  border-radius: 12px;
  font-family: 'Great Vibes', cursive;
  font-size: 3.4rem;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.game-cell:hover:not(:disabled) { background: rgba(255, 77, 109, 0.18); transform: scale(1.03); }
.game-cell:disabled { cursor: not-allowed; opacity: 0.85; }
.game-cell.x { color: #ff8fb1; }
.game-cell.o { color: #6db4ff; }
.game-cell.win {
  background: rgba(255, 215, 0, 0.18);
  border-color: rgba(255, 215, 0, 0.6);
  animation: game-win 0.6s ease infinite alternate;
}
@keyframes game-win {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
.game-actions { display: flex; gap: 10px; justify-content: center; }
.game-btn,
.game-btn-secondary {
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.game-btn {
  background: linear-gradient(135deg, #ff4d6d, #c9184a);
  border: none;
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 77, 109, 0.4);
}
.game-btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* =====================================================
   Popup de notificacoes pendentes (ao logar com mensagens nao lidas)
   ===================================================== */
.dm-notify-overlay {
  position: fixed;
  inset: 0;
  z-index: 1020;
  background: rgba(10, 6, 12, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.dm-notify-overlay.active { display: flex; }
.dm-notify-modal {
  background: linear-gradient(160deg, #2b0a1a 0%, #1a0510 100%);
  border: 1px solid rgba(255, 77, 109, 0.4);
  border-radius: 22px;
  padding: 28px 24px 24px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: dm-notify-in 0.35s ease;
}
@keyframes dm-notify-in {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.dm-notify-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.5rem;
  cursor: pointer;
}
.dm-notify-title {
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  margin: 0 0 6px;
  font-weight: 600;
}
.dm-notify-sub {
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  margin: 0 0 16px;
}
.dm-notify-list {
  text-align: left;
  max-height: 260px;
  overflow-y: auto;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dm-notify-item {
  background: rgba(255, 77, 109, 0.1);
  border: 1px solid rgba(255, 77, 109, 0.2);
  border-radius: 10px;
  padding: 8px 12px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dm-notify-item img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.dm-notify-item-text { flex: 1; word-break: break-word; }
.dm-notify-item-time { font-size: 0.72rem; color: rgba(255, 255, 255, 0.5); flex-shrink: 0; }
.dm-notify-open {
  background: linear-gradient(135deg, #ff4d6d, #c9184a);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 28px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 77, 109, 0.4);
  transition: transform 0.15s ease;
}
.dm-notify-open:hover { transform: translateY(-2px); }

@media (max-width: 480px) {
  .dm-icon { right: 16px; bottom: 80px; width: 50px; height: 50px; font-size: 1.4rem; }
  .dm-modal { height: 90vh; }
  .dm-emoji-picker { grid-template-columns: repeat(6, 1fr); }
  .game-cell { font-size: 2.8rem; }
}

/* =====================================================
   Botao flutuante de Jogos + Hub de Jogos
   ===================================================== */
/* Icone flutuante de jogos removido da UI: agora vive apenas no menu hamburguer. */
.games-icon { display: none !important; }
.games-badge { display: none !important; }

/* Badge dentro do item do menu hamburguer (sem animacao de pulso) */
.menu-card-item { position: relative; }
.menu-card-badge {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #ffd700;
  color: #1a0510;
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.menu-card-item[data-action="dm"] .menu-card-badge {
  background: #ff4d6d;
  color: #fff;
}

.games-hub-overlay {
  position: fixed;
  inset: 0;
  z-index: 1005;
  background: rgba(10, 6, 12, 0.82);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.games-hub-overlay.active { display: flex; }
.games-hub-modal {
  background: linear-gradient(160deg, #1a0a2b 0%, #0e0518 100%);
  border: 1px solid rgba(124, 77, 255, 0.35);
  border-radius: 20px;
  padding: 20px 18px 18px;
  max-width: 460px;
  width: 100%;
  max-height: 88vh;       /* nunca passa da tela */
  overflow-y: auto;       /* rola dentro do card se precisar */
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.games-hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.games-hub-header h3 {
  margin: 0;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
}
.games-hub-close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  cursor: pointer;
}
.games-hub-sub {
  color: rgba(255, 255, 255, 0.65);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  margin: 0 0 16px;
}
.games-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.games-hub-card {
  background: rgba(124, 77, 255, 0.1);
  border: 1px solid rgba(124, 77, 255, 0.3);
  border-radius: 14px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 96px;
  cursor: pointer;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.games-hub-card:hover:not(.games-hub-card-soon) {
  transform: translateY(-3px);
  background: rgba(124, 77, 255, 0.22);
  border-color: rgba(124, 77, 255, 0.6);
}
.games-hub-card.games-hub-card-soon {
  cursor: not-allowed;
  opacity: 0.45;
  filter: grayscale(0.4);
}
.games-hub-card-emoji { font-size: 1.7rem; line-height: 1; }
.games-hub-card-title { font-size: 0.85rem; font-weight: 600; line-height: 1.15; }
.games-hub-card-desc {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.3px;
  line-height: 1.25;
}
.games-hub-active {
  margin: 16px 0 0;
  padding: 10px 14px;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 10px;
  color: #ffd966;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  text-align: center;
  cursor: pointer;
}

@media (max-width: 480px) {
  .games-icon { right: 16px; bottom: 144px; width: 50px; height: 50px; font-size: 1.3rem; }
  /* Mantem 2 colunas no celular pra nao ficar gigante e exigir rolagem */
  .games-hub-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .games-hub-modal { padding: 16px 14px 14px; max-height: 90vh; }
  .games-hub-card { padding: 11px 6px; min-height: 90px; }
  .games-hub-card-emoji { font-size: 1.5rem; }
  .games-hub-card-title { font-size: 0.8rem; }
  .games-hub-card-desc { font-size: 0.64rem; }
}

/* =====================================================
   Placar
   ===================================================== */
.placar-overlay {
  position: fixed;
  inset: 0;
  z-index: 1006;
  background: rgba(10, 6, 12, 0.82);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.placar-overlay.active { display: flex; }
.placar-modal {
  background: linear-gradient(160deg, #1a0a2b 0%, #0e0518 100%);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 20px;
  padding: 24px 22px 22px;
  max-width: 540px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.placar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.placar-header h3 {
  margin: 0;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
}
.placar-close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  cursor: pointer;
}
.placar-sub {
  color: rgba(255, 255, 255, 0.65);
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  margin: 0 0 18px;
}

.placar-versus {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.placar-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 12px;
  border-radius: 14px;
  background: rgba(255, 77, 109, 0.08);
  border: 1px solid rgba(255, 77, 109, 0.25);
}
.placar-side.winner {
  background: rgba(255, 215, 0, 0.12);
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.18);
}
.placar-side-giovanna {
  background: rgba(255, 143, 177, 0.1);
  border-color: rgba(255, 143, 177, 0.3);
}
.placar-side-kenned {
  background: rgba(109, 180, 255, 0.1);
  border-color: rgba(109, 180, 255, 0.3);
}
.placar-letter {
  font-family: 'Great Vibes', cursive;
  font-size: 2.6rem;
  line-height: 1;
  padding: 8px 8px 18px;
  background: linear-gradient(135deg, #ff8fb1, #ff4d6d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.placar-side-kenned .placar-letter {
  background: linear-gradient(135deg, #6db4ff, #2d6cdf);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.placar-name {
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
}
.placar-score {
  font-family: 'Poppins', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-top: 4px;
}
.placar-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.placar-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
}
.placar-vs-text {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 2px;
}
.placar-draws {
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  color: rgba(255, 215, 0, 0.7);
  letter-spacing: 0.5px;
  text-align: center;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.18);
}

.placar-leader {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffd966;
  margin: 0 0 18px;
  padding: 10px 12px;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 10px;
}

.placar-section-title {
  margin: 16px 0 8px;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.placar-empty {
  color: rgba(255, 255, 255, 0.4);
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  margin: 0;
  font-style: italic;
}
.placar-by-type-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 6px;
}
.placar-by-type-row.placar-by-type-head {
  background: transparent;
  border: none;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
}
.placar-by-type-game { color: #fff; font-weight: 600; font-size: 0.92rem; }
.placar-by-type-cell { text-align: center; font-size: 0.92rem; color: rgba(255, 255, 255, 0.85); }

.placar-recent-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  align-items: center;
  margin-bottom: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
}
.placar-recent-icon { font-size: 1.2rem; }
.placar-recent-text { color: #fff; }
.placar-recent-text .placar-recent-result-giovanna { color: #ff8fb1; font-weight: 600; }
.placar-recent-text .placar-recent-result-kenned { color: #6db4ff; font-weight: 600; }
.placar-recent-text .placar-recent-result-draw { color: #ffd966; font-weight: 600; }
.placar-recent-time { color: rgba(255, 255, 255, 0.4); font-size: 0.74rem; }

/* =====================================================
   Damas (Brazilian Checkers)
   ===================================================== */
.checkers-overlay {
  position: fixed;
  inset: 0;
  z-index: 1011;
  background: rgba(10, 6, 12, 0.88);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.checkers-overlay.active { display: flex; }
.checkers-modal {
  background: linear-gradient(160deg, #2b0a1a 0%, #1a0510 100%);
  border: 1px solid rgba(255, 77, 109, 0.3);
  border-radius: 18px;
  padding: 18px;
  max-width: 520px;
  width: 100%;
  max-height: 95vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.checkers-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.checkers-header h3 {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  font-size: 1.1rem;
}
.checkers-close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  cursor: pointer;
}
.checkers-status {
  text-align: center;
  margin: 0 0 10px;
  font-family: 'Poppins', sans-serif;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  min-height: 1.3em;
}

.checkers-board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 0;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 12px;
  border: 3px solid rgba(255, 77, 109, 0.5);
  border-radius: 8px;
  overflow: hidden;
  background: #2b0a1a;
}
.checkers-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  transition: background 0.15s ease;
}
/* Casas claras (rosa muito claro/transparente) e escuras (rosa profundo) */
.checkers-cell.light {
  background: linear-gradient(145deg, #4a1830, #3a1224);
}
.checkers-cell.dark {
  background: linear-gradient(145deg, #1a0510, #0d030a);
  cursor: pointer;
}
.checkers-cell.dark.selectable { background: linear-gradient(145deg, #2b0a1a, #1a0510); }
.checkers-cell.dark.selected {
  background: linear-gradient(145deg, #c9184a, #8b0e35);
  box-shadow: inset 0 0 0 3px rgba(255, 215, 0, 0.7);
}
.checkers-cell.dark.target {
  background: linear-gradient(145deg, #3d6b2b, #2a4a1c);
  box-shadow: inset 0 0 0 3px rgba(150, 255, 100, 0.6);
}
.checkers-cell.dark.target::after {
  content: "";
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: rgba(150, 255, 100, 0.45);
  pointer-events: none;
}
.checkers-cell.dark.last-move {
  box-shadow: inset 0 0 0 2px rgba(255, 215, 0, 0.4);
}

.checkers-piece {
  width: 76%;
  height: 76%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  user-select: none;
  transition: transform 0.1s ease;
}
.checkers-piece.p1 {
  /* Topo / convidante: rosa claro */
  background: radial-gradient(circle at 30% 25%, #ffc8d8 5%, #ff8fb1 45%, #d65a82 100%);
  border: 2px solid rgba(255, 200, 220, 0.85);
  box-shadow: 0 4px 10px rgba(255, 143, 177, 0.45), inset 0 -2px 4px rgba(120, 30, 60, 0.5);
}
.checkers-piece.p2 {
  /* Base / aceitante: roxo profundo */
  background: radial-gradient(circle at 30% 25%, #b48fff 5%, #7c4dff 45%, #4f2fb5 100%);
  border: 2px solid rgba(180, 143, 255, 0.85);
  box-shadow: 0 4px 10px rgba(124, 77, 255, 0.45), inset 0 -2px 4px rgba(40, 20, 90, 0.6);
}
.checkers-piece.king::after {
  content: "♛";
  font-size: 1rem;
  color: #ffd700;
  text-shadow: 0 0 4px rgba(255, 215, 0, 0.8);
}
.checkers-piece.movable {
  cursor: pointer;
}
.checkers-piece.movable:hover { transform: scale(1.05); }

.checkers-info {
  display: flex;
  justify-content: space-around;
  gap: 12px;
  margin-bottom: 12px;
}
.checkers-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  font-size: 0.88rem;
}
.checkers-counter.active { background: rgba(255, 215, 0, 0.12); border-color: rgba(255, 215, 0, 0.45); }
.checkers-counter-piece {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
}
.checkers-counter-piece.checkers-piece-p1 {
  background: radial-gradient(circle at 30% 25%, #ffc8d8 5%, #ff8fb1 60%, #d65a82 100%);
  border: 1px solid rgba(255, 200, 220, 0.85);
}
.checkers-counter-piece.checkers-piece-p2 {
  background: radial-gradient(circle at 30% 25%, #b48fff 5%, #7c4dff 60%, #4f2fb5 100%);
  border: 1px solid rgba(180, 143, 255, 0.85);
}
.checkers-counter-name { color: rgba(255, 255, 255, 0.75); font-weight: 500; }
.checkers-counter-num { font-weight: 700; color: #fff; min-width: 18px; text-align: right; }

.checkers-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

@media (max-width: 480px) {
  .checkers-modal { padding: 12px; }
  .checkers-board { max-width: 360px; }
  .checkers-piece { font-size: 1rem; }
  .checkers-piece.king::after { font-size: 0.8rem; }
}

.placar-reset-btn {
  display: block;
  margin: 22px auto 4px;
  padding: 10px 22px;
  background: transparent;
  border: 1px solid rgba(255, 77, 109, 0.4);
  color: #ff8da3;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.placar-reset-btn:hover {
  background: rgba(255, 77, 109, 0.18);
  color: #ff4d6d;
  border-color: #ff4d6d;
}

@media (max-width: 480px) {
  .placar-versus { grid-template-columns: 1fr auto 1fr; }
  .placar-side { padding: 12px 8px; }
  .placar-letter { font-size: 2rem; padding: 6px 6px 12px; }
  .placar-score { font-size: 1.9rem; }
  .placar-vs-text { font-size: 1rem; }
}

/* =====================================================
   Pedra, Papel, Tesoura (RPS)
   ===================================================== */
.rps-overlay {
  position: fixed;
  inset: 0;
  z-index: 1012;
  background: rgba(10, 6, 12, 0.88);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.rps-overlay.active { display: flex; }
.rps-modal {
  background: linear-gradient(160deg, #2b0a1a 0%, #1a0510 100%);
  border: 1px solid rgba(255, 77, 109, 0.3);
  border-radius: 18px;
  padding: 22px;
  max-width: 400px;
  width: 100%;
  max-height: 95vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  text-align: center;
}
.rps-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.rps-header h3 {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  font-size: 1rem;
}
.rps-close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  cursor: pointer;
  flex-shrink: 0;
}
.rps-status {
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  margin: 0 0 12px;
  min-height: 1.3em;
}
.rps-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
  font-family: 'Poppins', sans-serif;
}
.rps-score-name { color: rgba(255, 255, 255, 0.7); font-size: 0.82rem; }
.rps-score-num { color: #ff4d6d; font-size: 1.5rem; font-weight: 700; min-width: 1.2ch; }
.rps-score-sep { color: rgba(255, 255, 255, 0.35); font-size: 1rem; }
.rps-choices {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 18px;
}
.rps-choice-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: rgba(255, 77, 109, 0.08);
  border: 2px solid rgba(255, 77, 109, 0.25);
  border-radius: 14px;
  padding: 14px 18px;
  cursor: pointer;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  min-width: 80px;
}
.rps-choice-btn span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
  letter-spacing: 0.5px;
}
.rps-choice-btn:hover:not(:disabled) {
  background: rgba(255, 77, 109, 0.22);
  border-color: rgba(255, 77, 109, 0.7);
  transform: scale(1.08);
}
.rps-choice-btn.selected {
  background: rgba(255, 77, 109, 0.32);
  border-color: #ff4d6d;
  box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.2);
}
.rps-choice-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.rps-round-result {
  background: rgba(255, 77, 109, 0.1);
  border: 1px solid rgba(255, 77, 109, 0.3);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-family: 'Poppins', sans-serif;
}
.rps-round-choices {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 1.3rem;
  margin-bottom: 4px;
  color: #fff;
}
.rps-vs { color: rgba(255, 255, 255, 0.4); font-size: 0.75rem; }
.rps-round-label { color: #fff; font-size: 0.88rem; font-weight: 600; }
.rps-history {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 130px;
  overflow-y: auto;
  margin-bottom: 14px;
}
.rps-history-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  padding: 4px 8px;
  border-radius: 8px;
}
.rps-history-row.win { background: rgba(50, 200, 100, 0.1); color: rgba(110, 230, 150, 0.9); }
.rps-history-row.loss { background: rgba(255, 77, 109, 0.1); color: rgba(255, 140, 170, 0.9); }
.rps-history-row.draw { background: rgba(255, 200, 50, 0.1); color: rgba(255, 220, 110, 0.9); }
.rps-history-round { font-weight: 600; min-width: 70px; text-align: left; font-size: 0.73rem; }
.rps-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
@media (max-width: 480px) {
  .rps-modal { padding: 14px; }
  .rps-choice-btn { padding: 10px 12px; min-width: 68px; font-size: 1.9rem; }
}

/* =====================================================
   Disputa de Pênaltis — layout mobile-first
   ===================================================== */
.penalty-overlay {
  position: fixed;
  inset: 0;
  z-index: 1012;
  background: rgba(8, 14, 20, 0.94);
  backdrop-filter: blur(10px);
  display: none;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}
.penalty-overlay.active { display: flex; }
.penalty-modal {
  background: linear-gradient(165deg, #0a1b2a 0%, #050d18 100%);
  border: 1px solid rgba(120, 200, 255, 0.25);
  border-radius: 0;
  padding: 12px 12px 14px;
  max-width: 420px;
  width: 100%;
  height: 100%;
  max-height: 100dvh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  -webkit-overflow-scrolling: touch;
}
.penalty-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  flex-shrink: 0;
}
.penalty-header h3 {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}
.penalty-close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.penalty-status {
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  margin: 0;
  min-height: 1.2em;
  font-weight: 600;
  line-height: 1.3;
  flex-shrink: 0;
}

/* ---------- Placar compacto ---------- */
.penalty-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  flex-shrink: 0;
}
.penalty-side {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}
.penalty-side-giovanna { justify-content: flex-start; }
.penalty-side-kenned   { justify-content: flex-end; }
.penalty-side.active-kicker {
  border-color: rgba(255, 220, 80, 0.75);
  box-shadow: 0 0 0 2px rgba(255, 220, 80, 0.18);
}
.penalty-side.active-keeper {
  border-color: rgba(120, 200, 255, 0.6);
}
.penalty-player {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.penalty-player-name {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.penalty-goals {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  min-width: 1.4ch;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  line-height: 1;
}
.penalty-vs { color: rgba(255, 255, 255, 0.4); font-size: 0.85rem; font-weight: 600; }

/* ---------- Camisa #7 simplificada ---------- */
.penalty-jersey {
  position: relative;
  width: 28px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px 6px 8px 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}
.penalty-jersey-num {
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  line-height: 1;
}
.penalty-jersey-giovanna {
  background: linear-gradient(160deg, #ff7fb8 0%, #d63b85 100%);
}
.penalty-jersey-kenned {
  background: linear-gradient(160deg, #3a9bff 0%, #1a55cc 100%);
}

.penalty-roundinfo {
  color: rgba(255, 255, 255, 0.55);
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  margin: 0;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* ---------- Campo / gol ---------- */
.penalty-pitch {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  max-height: 320px;
  min-height: 200px;
  background: #1f7842;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  box-shadow: inset 0 -20px 30px rgba(0, 0, 0, 0.18);
}
.penalty-grass {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.penalty-goal {
  position: absolute;
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: 84%;
  height: 48%;
}
.penalty-goal-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
}
.penalty-zones {
  position: absolute;
  inset: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  z-index: 3;
}
.penalty-zone {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
/* Cada zona vira um ALVO de mira circular */
.penalty-zone-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  max-width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.02) 70%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.3rem;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  transition: transform 0.15s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
/* Quando e a vez do jogador (zona habilitada): alvo aceso, convidando a mirar */
.penalty-zone:not(:disabled) .penalty-zone-label {
  border-color: rgba(255, 220, 80, 0.85);
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 220, 80, 0.35);
  animation: penaltyTargetPulse 1.6s ease-in-out infinite;
}
.penalty-zone:hover:not(:disabled) .penalty-zone-label,
.penalty-zone:active:not(:disabled) .penalty-zone-label {
  transform: scale(1.12);
  background: radial-gradient(circle, rgba(255,220,80,0.45) 0%, rgba(255,220,80,0.12) 70%);
  border-color: #ffd24a;
  box-shadow: 0 0 22px rgba(255, 220, 80, 0.6);
  animation: none;
}
.penalty-zone:disabled { cursor: default; }
.penalty-zone:disabled .penalty-zone-label {
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}
.penalty-zone.chosen .penalty-zone-label {
  background: radial-gradient(circle, rgba(255,220,80,0.6) 0%, rgba(255,180,40,0.2) 70%);
  border-color: #ffd24a;
  color: #1a0a0a;
  box-shadow: 0 0 22px rgba(255, 220, 80, 0.7);
  animation: none;
}
@keyframes penaltyTargetPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 12px rgba(255, 220, 80, 0.3); }
  50% { transform: scale(1.06); box-shadow: 0 0 20px rgba(255, 220, 80, 0.55); }
}

/* ---------- Variaveis de uniforme ---------- */
.penalty-keeper.uniform-giovanna,
.penalty-kicker.uniform-giovanna {
  --jersey-main: #e63a85;
  --jersey-light: #ff7fb8;
  --jersey-shorts: #b8205f;
  --jersey-trim: #fff;
}
.penalty-keeper.uniform-kenned,
.penalty-kicker.uniform-kenned {
  --jersey-main: #1a55cc;
  --jersey-light: #3a9bff;
  --jersey-shorts: #0f3a8c;
  --jersey-trim: #fff;
}
/* aplica as variaveis em elementos SVG */
.penalty-svg-jersey { fill: var(--jersey-main, #888); }
.penalty-svg-shorts { fill: var(--jersey-shorts, #444); }
.penalty-svg-trim   { fill: var(--jersey-trim, #fff); }

/* ---------- Goleiro ---------- */
.penalty-keeper {
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 22%;
  max-width: 70px;
  aspect-ratio: 60 / 110;
  transform: translateX(-50%);
  z-index: 2;
  transition: left 0.45s cubic-bezier(0.45, 1.6, 0.55, 1), transform 0.45s cubic-bezier(0.45, 1.6, 0.55, 1);
}
.penalty-keeper-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.penalty-keeper.dive-left  { left: 18%; transform: translateX(-50%) rotate(-22deg); }
.penalty-keeper.dive-center{ left: 50%; transform: translateX(-50%) translateY(-6px); }
.penalty-keeper.dive-right { left: 82%; transform: translateX(-50%) rotate(22deg); }

/* ---------- Batedor ---------- */
.penalty-kicker {
  position: absolute;
  bottom: 3%;
  left: 50%;
  width: 18%;
  max-width: 64px;
  aspect-ratio: 60 / 110;
  transform: translateX(-50%);
  z-index: 2;
}
.penalty-kicker-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- Bola SVG animada ---------- */
.penalty-ball {
  position: absolute;
  bottom: 22%;
  left: 50%;
  width: 8%;
  max-width: 28px;
  aspect-ratio: 1 / 1;
  z-index: 4;
  transition: left 0.55s cubic-bezier(0.3, 0.85, 0.4, 1.1), bottom 0.55s cubic-bezier(0.3, 0.85, 0.4, 1.1);
  pointer-events: none;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,0.45));
  transform: translateX(-50%);
}
.penalty-ball svg { width: 100%; height: 100%; display: block; }
.penalty-ball.shoot-left  { left: 22%; bottom: 60%; }
.penalty-ball.shoot-center{ left: 50%; bottom: 60%; }
.penalty-ball.shoot-right { left: 78%; bottom: 60%; }

.penalty-roleinfo {
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Poppins', sans-serif;
  font-size: 0.74rem;
  margin: 0;
  min-height: 1em;
  line-height: 1.3;
  flex-shrink: 0;
}

/* ---------- Histórico de pênaltis ---------- */
.penalty-history {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin: 0;
  flex-shrink: 0;
}
.penalty-history-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.6rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  line-height: 1;
  flex-shrink: 0;
}
.penalty-history-dot.goal-giovanna  { background: linear-gradient(160deg, #ff7fb8 0%, #d63b85 100%); }
.penalty-history-dot.goal-kenned    { background: linear-gradient(160deg, #3a9bff 0%, #1a55cc 100%); }
.penalty-history-dot.save           { background: rgba(80, 80, 80, 0.7); color: rgba(255,255,255,0.55); }
.penalty-history-dot.pending        { background: rgba(255, 255, 255, 0.06); color: rgba(255,255,255,0.3); border: 1px dashed rgba(255,255,255,0.18); }

.penalty-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: auto;
  padding-top: 4px;
  flex-shrink: 0;
}
.penalty-actions .game-btn,
.penalty-actions .game-btn-secondary {
  min-height: 38px;
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Telas muito pequenas: ainda mais enxuto */
@media (max-width: 360px) {
  .penalty-modal { padding: 10px 10px 12px; gap: 6px; }
  .penalty-status { font-size: 0.8rem; }
  .penalty-side { padding: 4px 6px; gap: 6px; }
  .penalty-player-name { font-size: 0.68rem; }
  .penalty-goals { font-size: 1.3rem; }
  .penalty-jersey { width: 24px; height: 28px; }
  .penalty-jersey-num { font-size: 0.78rem; }
  .penalty-history-dot { width: 16px; height: 16px; font-size: 0.55rem; }
}

/* Telas maiores (tablet/desktop): vira modal centralizado */
@media (min-width: 560px) {
  .penalty-overlay { padding: 14px; align-items: center; }
  .penalty-modal {
    border-radius: 18px;
    height: auto;
    max-height: 92vh;
    padding: 18px;
    gap: 10px;
  }
  .penalty-status { font-size: 0.92rem; }
}
