.bday-host {
  --host-ink: #2a1630;
  --host-paper: #fff5e6;
  --host-gold: #ffd76a;
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  font-family: Figtree, system-ui, sans-serif;
}
.bday-host__hit {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  min-width: 44px;
  min-height: 44px;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 40% 40% 18% 18%;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.bday-host__hit:focus-visible {
  outline: 2px solid var(--host-gold);
  outline-offset: 4px;
}
.bday-host__think {
  position: absolute;
  left: 0;
  top: 0;
  width: 5.6rem;
  height: 3.6rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.86);
  transition: opacity 0.28s ease, transform 0.35s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.bday-host.is-think .bday-host__think {
  opacity: 1;
  transform: none;
}
.bday-host__think i {
  position: absolute;
  border-radius: 50%;
  background: #fff6e8;
  box-shadow: 0 2px 0 #e8d4b8;
}
.bday-host__think i:first-child {
  width: 0.42rem;
  height: 0.42rem;
  left: 0.15rem;
  bottom: 0.05rem;
}
.bday-host__think i:nth-child(2) {
  width: 0.62rem;
  height: 0.62rem;
  left: 0.55rem;
  bottom: 0.55rem;
}
.bday-host__cloud {
  position: absolute;
  right: 0;
  top: 0;
  width: 4.4rem;
  height: 2.7rem;
  border-radius: 1.4rem;
  background: #fff6e8;
  box-shadow: 0 6px 0 #e8d4b8, 0 12px 22px rgba(16, 6, 30, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
}
.bday-host__cloud::before,
.bday-host__cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #fff6e8;
}
.bday-host__cloud::before {
  width: 1.55rem;
  height: 1.55rem;
  left: 0.25rem;
  bottom: -0.15rem;
}
.bday-host__cloud::after {
  width: 1.9rem;
  height: 1.9rem;
  right: 0.2rem;
  bottom: -0.05rem;
}
.bday-host__cloud b {
  position: relative;
  z-index: 1;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #5a2a48;
  opacity: 0.35;
  animation: host-think-dot 1.15s ease-in-out infinite;
}
.bday-host__cloud b:nth-child(2) { animation-delay: 0.18s; }
.bday-host__cloud b:nth-child(3) { animation-delay: 0.36s; }
@keyframes host-think-dot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.3; }
  40% { transform: translateY(-4px); opacity: 1; }
}
.bday-host__bubble {
  position: absolute;
  left: 0;
  top: 0;
  max-width: min(17rem, 46vw);
  background: var(--host-paper);
  color: var(--host-ink);
  border-radius: 1.1rem 1.1rem 1.1rem 0.35rem;
  padding: 0.7rem 0.85rem 0.75rem;
  box-shadow: 0 10px 28px rgba(16, 6, 30, 0.4);
  opacity: 0;
  transform: translateY(8px) scale(0.94);
  transition:
    opacity 0.24s cubic-bezier(0.2, 0, 0, 1),
    transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.bday-host.is-open .bday-host__bubble {
  opacity: 1;
  transform: none;
}
.bday-host__line {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.38;
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  .bday-host__bubble, .bday-host__think { transition: opacity 0.15s linear; transform: none; }
  .bday-host__cloud b { animation: none; opacity: 0.7; }
}

@media (max-width: 720px) {
  .bday-host__bubble {
    max-width: min(16rem, calc(100vw - 1.5rem));
    padding: 0.55rem 0.7rem 0.6rem;
    border-radius: 0.95rem 0.95rem 0.95rem 0.35rem;
  }
  .bday-host__line { font-size: 0.84rem; }
}
