* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  background: #faf9f6;
  font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
  
}
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 8px;
}
h1 {
  font-size: 32px;
  font-weight: 400;
  color: #202124;
  letter-spacing: -0.01em;
  text-align: center;
}
.sub {
  font-size: 16px;
  font-weight: 400;
  color: #5f6368;
  margin-bottom: 28px;
  text-align: center;
}
.neighborhood {
  position: relative;
  width: 420px;
  height: 260px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 28px;
}
.house {
  width: 130px;
  height: 130px;
  z-index: 2;
  display: block;
  animation: float 4s ease-in-out infinite;
}
.house svg { width: 100%; height: 100%; }
.neighbor {
  width: 52px;
  height: 44px;
  opacity: 0.85;
  animation: float 4s ease-in-out infinite;
}
.neighbor svg { width: 100%; height: 100%; }
.n1 { animation-delay: -0.5s; }
.n2 { animation-delay: -1.2s; width: 36px; height: 40px; }
.n3 { animation-delay: -2s; width: 36px; height: 40px; }
.n4 { animation-delay: -2.8s; }
.b1 { animation: fly 12s linear infinite; }
.b2 { animation: fly 15s linear infinite; animation-delay: -6s; top: 28%; }
footer {
  position: absolute;
  bottom: 24px;
  font-size: 13px;
  color: #5f6368;
  text-align: center;
  font-weight: 400;
}
footer a { color: #1a73e8; text-decoration: none; }
footer a:hover { text-decoration: underline; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
  8% { opacity: 0.6; }
  92% { opacity: 0.6; }
  100% { left: calc(100% + 40px); opacity: 0; }
}

.house:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.08));
  transition: transform 0.2s ease, filter 0.2s ease;
}
footer a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  h1 { font-size: 24px; padding: 0 16px; }
  .sub { font-size: 14px; margin-bottom: 16px; padding: 0 16px; }
  .neighborhood {
    width: 100%;
    max-width: 340px;
    height: 200px;
    gap: 12px;
    padding: 0 8px;
  }
  .house { width: 100px; height: 100px; }
  .neighbor { width: 40px; height: 34px; }
  .n2, .n3 { width: 28px; height: 32px; }
  footer {
    font-size: 12px;
    padding: 0 16px;
    bottom: 16px;
  }
}
