/* wish.css — whisper a wish to Mooshak, then RSVP + venue. */

.wish__lore {
  max-width: 30ch;
  margin: 0 auto 10px;
  font: italic 500 18.5px/1.5 var(--font-poem);
  color: var(--ivory-dim);
}

.wish__mooshak {
  position: relative;
  width: 148px;
  margin: 14px auto 24px;
}

.wish__mooshak > img {
  width: 100%;
  height: auto;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.5));
  animation: mooshak-idle 3.4s var(--ease-soft) infinite;
}

.wish__mooshak.is-hop > img {
  animation: mooshak-hop 1000ms var(--ease-out);
}

@keyframes mooshak-idle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-3px) rotate(-1.4deg); }
}

@keyframes mooshak-hop {
  0%   { transform: translateY(0) scale(1, 1); }
  16%  { transform: translateY(0) scale(1.07, 0.9); }
  40%  { transform: translateY(-30px) scale(0.95, 1.06) rotate(-4deg); }
  60%  { transform: translateY(0) scale(1.06, 0.93); }
  76%  { transform: translateY(-10px) scale(1, 1) rotate(2deg); }
  100% { transform: translateY(0) scale(1, 1); }
}

/* the ear (measured on mooshak.webp at 21%, 10%) */
.wish__ear {
  position: absolute;
  left: 21%;
  top: 10%;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.wish__ear-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(246, 196, 69, 0.75);
  animation: ear-ring 2.3s var(--ease-out) infinite;
}

@keyframes ear-ring {
  0%   { transform: scale(0.45); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* the rolled note that flies into the ear */
.wish__note {
  position: absolute;
  left: 21%;
  top: 10%;
  width: 36px;
  height: 12px;
  margin: -6px 0 0 -18px;
  border-radius: 6px;
  background: linear-gradient(180deg, #fff6df, #e7cf9f);
  box-shadow: inset 0 0 0 1px rgba(143, 92, 29, 0.5), 0 3px 6px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
}

.wish__note::after {
  content: "";
  position: absolute;
  left: 44%;
  top: -2px;
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: #c8102e;
}

.wish__form {
  display: grid;
  gap: 10px;
  max-width: 380px;
  margin: 0 auto;
}

.wish__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}

.chip {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(27, 6, 9, 0.45);
  color: var(--ivory);
  font: 500 14px/1.35 var(--font-body);
  text-align: left;
  cursor: pointer;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out);
}

.chip[aria-pressed="true"] {
  border-color: var(--haldi);
  background: rgba(246, 196, 69, 0.14);
}

.wish__form .btn {
  justify-self: center;
  margin-top: 6px;
}

.wish__deliver {
  justify-self: center;
}

.wish__deliver[hidden] {
  display: none;
}

.wish__status {
  min-height: 1.5em;
  margin: 6px 0 0;
  text-align: center;
  font: 500 18px/1.4 var(--font-poem);
  color: var(--haldi);
}

/* ---- rsvp + venue ---------------------------------------------------------------- */
.rsvp__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 38px;
}

.venue {
  max-width: 340px;
  margin: 0 auto 28px;
}

.venue__name {
  margin: 0 0 4px;
  font: 600 24px/1.2 var(--font-display);
  color: var(--ivory);
}

.venue__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.rsvp__contacts {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--ivory-dim);
}

.rsvp__contacts a {
  color: var(--brass-hi);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
