html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100%;
  width: 100%;
  font-family: Arial, sans-serif;
  background: linear-gradient(180deg,#cfeff0,#e7fbf9 60%);
}

/* Header - modern glass look with animated logo */
.header {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 14px;
  backdrop-filter: blur(6px) saturate(1.05);
  -webkit-backdrop-filter: blur(6px) saturate(1.05);
  background: linear-gradient(135deg, rgba(39,174,96,0.95) 0%, rgba(34,153,84,0.92) 60%, rgba(40,180,120,0.86) 100%);
  box-shadow: 0 10px 30px rgba(14, 30, 37, 0.28), inset 0 1px 0 rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
}

/* Decorative accent on the left side */
.header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.20), rgba(255,255,255,0.02));
  mix-blend-mode: screen;
  pointer-events: none;
}

/* Animated logo */
.logo {
  width: 56px;
  height: 56px;
  display: block;
  flex-shrink: 0;
  transform-origin: 50% 50%;
  animation: logo-bounce 2200ms ease-in-out infinite;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.18));
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
  object-fit: contain;
}

/* Logo animation */
@keyframes logo-bounce {
  0%   { transform: translateY(0) rotate(0deg); }
  25%  { transform: translateY(-5px) rotate(-4deg); }
  50%  { transform: translateY(0) rotate(0deg); }
  75%  { transform: translateY(-3px) rotate(3deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* Heading text */
.header h1 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.6px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* Small subtitle */
.header .subtitle {
  margin-left: 6px;
  color: rgba(255,255,255,0.92);
  font-size: 13px;
  opacity: 0.95;
  font-weight: 500;
}

/* Canvas: leave room for header */
canvas {
  display: block;
  background: #70c5ce;
  width: 100%;
  height: calc(100% - 92px);
  margin-top: 92px;
}

/* Header bird position indicator (right side) */
.header-indicator {
  margin-left: auto;
  display: flex;
  align-items: center;
  padding-left: 12px;
  padding-right: 6px;
  pointer-events: none;
}

/* the moving bird dot */
.indicator-bird {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 50%;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #f1c40f 30%, #e0ac12 100%);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: top 120ms linear; /* smooth following */
}

/* pulse on hit */
.indicator-bird.hit {
  animation: hit-pulse 420ms ease-out;
}
@keyframes hit-pulse {
  0% { transform: translateX(-50%) scale(1); box-shadow: 0 6px 14px rgba(0,0,0,0.35); }
  50% { transform: translateX(-50%) scale(1.35); box-shadow: 0 10px 26px rgba(0,0,0,0.45); }
  100% { transform: translateX(-50%) scale(1); box-shadow: 0 6px 14px rgba(0,0,0,0.35); }
}

/* make indicator responsive */
@media (max-width: 480px) {
  .indicator-track { height: 48px; width: 12px; }
  .indicator-bird { width: 12px; height: 12px; }
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .header { padding: 8px 10px; gap: 10px; top: 8px; left: 8px; right: 8px; border-radius: 10px; }
  .logo { width: 46px; height: 46px; }
  .header h1 { font-size: 18px; }
  .header .subtitle { display: none; }
  canvas { height: calc(100% - 84px); margin-top: 84px; }
}

/* HUD in header */
.hud {
  display: flex;
  gap: 12px;
  margin-left: 16px;
  align-items: center;
}
.hud-item {
  background: rgba(255,255,255,0.06);
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 700;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.14);
  border: 1px solid rgba(255,255,255,0.03);
}
@media (max-width:480px) {
  .hud { display: none; }
}
