/* Ask Maya — far right of the stage, flat, site colours. */

.help-me {
  position: absolute;
  top: 28px;
  inset-inline-end: 24px;
  z-index: 6;
}

.stage:has(.help-me.is-open) {
  overflow: visible;
}

.help-core {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 4px;
  border: 1.5px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(9, 40, 50, .16);
  transition: opacity .2s ease, box-shadow .2s ease, background .2s ease;
}

.help-me.is-locked .help-core {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}

.help-me.is-ready .help-core {
  box-shadow:
    0 8px 20px rgba(9, 40, 50, .16),
    0 0 0 0 rgba(11, 154, 180, .35);
  animation: help-ready 2.4s ease-out infinite;
}

.help-me.is-ready .help-core:hover {
  background: #fff;
  border-color: #fff;
}

.help-me.is-open .help-core {
  background: #fff;
  border-color: var(--line);
  animation: none;
}

@keyframes help-ready {
  0%, 100% { box-shadow: 0 8px 20px rgba(9, 40, 50, .16), 0 0 0 0 rgba(11, 154, 180, .0); }
  50%      { box-shadow: 0 8px 20px rgba(9, 40, 50, .16), 0 0 0 8px rgba(11, 154, 180, .16); }
}

.help-core-ring {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: #E8F6F8;
}

.help-face {
  display: block;
  width: 100%;
  height: 100%;
}

.help-core-label {
  font: 800 14px/1 'Nunito', sans-serif;
  color: var(--teal);
  padding-inline-end: 4px;
}

.help-menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  width: min(280px, calc(100vw - 32px));
}

.help-card {
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  border: 2px solid var(--line);
  box-shadow: 0 18px 40px rgba(42, 33, 64, .16);
}

.help-menu-kicker {
  margin: 2px 8px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.help-langs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.help-lang {
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: 800 14px/1.2 'Nunito', sans-serif;
  text-align: start;
  cursor: pointer;
}

.help-lang:hover {
  background: #F3FBFD;
  color: var(--teal);
}

.help-lang.is-here {
  color: var(--orange);
  background: #FFF3E6;
}

.help-lang.is-on {
  background: var(--teal);
  color: #fff;
}

.help-again {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 6px;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: 800 12px/1 'Nunito', sans-serif;
  cursor: pointer;
}

.help-again:hover { color: var(--teal); }

.help-talk {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 6px 4px 12px;
}

.help-me.is-talking .help-talk {
  border-bottom: 0;
}

.help-bubble {
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px 14px 14px 6px;
  background: #E7F6F8;
}

.help-caption {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
}

.help-caption .w.is-now {
  background: #FFE3BC;
  border-radius: 3px;
}

.help-cast,
.help-svg {
  width: 72px;
  height: 72px;
}

.help-cast.is-speaking {
  animation: help-bob 1.15s ease-in-out infinite;
  filter: drop-shadow(0 6px 12px rgba(9, 100, 119, .28));
}

@keyframes help-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .help-me.is-ready .help-core,
  .help-cast.is-speaking { animation: none; }
}

@media (max-width: 720px) {
  .help-me {
    top: 14px;
    inset-inline-end: 10px;
  }

  .help-core {
    gap: 0;
    padding: 2px;
  }

  .help-core-label { display: none; }

  .help-core-ring {
    width: 32px;
    height: 32px;
  }

  .help-menu {
    width: min(260px, calc(100vw - 20px));
  }

  .help-lang { font-size: 13px; padding: 7px 8px; }

  .help-cast,
  .help-svg { width: 56px; height: 56px; }
}
