* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Nunito', sans-serif; background: #fef7f0; overflow-x: hidden; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes bounce { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes sparkle { 0%,100% { opacity: 0; transform: scale(0) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(180deg); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,182,193,0.4); } 50% { box-shadow: 0 0 20px 10px rgba(255,182,193,0.2); } }
@keyframes heartFloat { 0% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(-60px) scale(0.5); } }
@keyframes zzz { 0% { opacity: 0; transform: translateY(0) translateX(0); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(-30px) translateX(15px); } }
@keyframes wiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes walkAcross { 0% { transform: translateX(-50px); } 100% { transform: translateX(calc(100vw + 50px)); } }
@keyframes titleBounce { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-15px) rotate(2deg); } }

.float-anim { animation: float 3s ease-in-out infinite; }
.bounce-anim { animation: bounce 2s ease-in-out infinite; }
.slide-up { animation: slideUp 0.4s ease-out; }
.fade-in { animation: fadeIn 0.3s ease-out; }
.wiggle { animation: wiggle 0.5s ease-in-out; }
.pulse-glow { animation: pulse 2s ease-in-out infinite; }

.stat-bar { height: 12px; border-radius: 6px; background: #e8e0d8; overflow: hidden; position: relative; }
.stat-bar-fill { height: 100%; border-radius: 6px; transition: width 0.5s ease; }

.country-avatar {
  width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 32px; border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: linear-gradient(135deg, #ffecd2, #fcb69f);
}
.country-avatar-sm { width: 40px; height: 40px; font-size: 20px; border-width: 2px; }
.country-avatar-lg { width: 96px; height: 96px; font-size: 48px; border-width: 4px; }
.country-avatar-xl { width: 120px; height: 120px; font-size: 60px; border-width: 4px; }

.room-card {
  border-radius: 16px; padding: 12px; cursor: pointer; transition: all 0.3s;
  border: 2px solid transparent; position: relative; overflow: hidden;
}
.room-card:hover { transform: translateY(-2px); border-color: #f8b4c8; }

.event-card {
  border-radius: 12px; padding: 10px 14px; margin-bottom: 8px;
  animation: slideUp 0.3s ease-out; border-left: 4px solid;
}

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px);
  z-index: 100; display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s ease-out;
}
.modal-content {
  background: #fff; border-radius: 24px; padding: 28px; max-width: 520px;
  width: 90%; max-height: 85vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  animation: slideUp 0.3s ease-out;
}

.nav-btn {
  padding: 10px 18px; border-radius: 14px; font-weight: 700; font-family: 'Nunito', sans-serif;
  border: none; cursor: pointer; transition: all 0.2s; font-size: 14px;
}
.nav-btn:hover { transform: translateY(-1px); }
.nav-btn.active { box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

.chat-bubble {
  padding: 10px 16px; border-radius: 16px; max-width: 280px;
  animation: slideUp 0.3s ease-out; line-height: 1.4;
}

.speed-btn {
  padding: 6px 12px; border-radius: 10px; font-weight: 700; border: 2px solid transparent;
  cursor: pointer; transition: all 0.2s; font-family: 'Nunito', sans-serif; font-size: 13px;
}
.speed-btn.active { border-color: #f472b6; background: #fdf2f8; color: #ec4899; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #ccc; }

.walking-footer-char {
  position: absolute; bottom: 4px; animation: walkAcross linear infinite;
  font-size: 20px;
}