.grove-panel {
  position: fixed;
  z-index: 12;
  inset: 0;
  color: #fff6dd;
  pointer-events: none;
  font-family: Arial, sans-serif;
}
.grove-masthead {
  position: absolute;
  top: 26px;
  left: 30px;
  padding: 0 0 0 16px;
  border-left: 2px solid #eac876;
  text-shadow: 0 2px 16px #071f18;
}
.grove-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: #eef1d5;
}
.grove-eyebrow > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #efcc73;
}
.grove-panel h2 {
  font-family: Georgia, serif;
  font-size: 36px;
  letter-spacing: -1.4px;
  line-height: 1.1;
  margin: 7px 0 0;
  font-weight: 400;
}
.grove-panel h2 span {
  color: #efc26a;
}
.grove-invitation {
  position: absolute;
  bottom: 23px;
  left: 26px;
  width: 410px;
  padding: 15px 17px 10px;
  border: 1px solid #d7e2b838;
  border-radius: 15px;
  background: linear-gradient(135deg, #102b24e8, #183d2ed9);
  box-shadow: 0 10px 40px #06201433;
  backdrop-filter: blur(18px);
  pointer-events: auto;
}
.grove-now {
  display: flex;
  align-items: center;
  gap: 10px;
}
.grove-story {
  flex: 1;
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
  color: #edf0d7;
}
.grove-steps {
  display: flex;
  gap: 4px;
  margin: 10px 0;
}
.grove-steps i {
  height: 2px;
  flex: 1;
  border-radius: 3px;
  background: #d3dfb624;
  transition: background 0.6s;
}
.grove-steps i.done {
  background: #e1bc6d;
}
.grove-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.grove-actions button,
.grove-follow {
  font:
    600 11px Arial,
    sans-serif;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 8px;
  background: #e2ebbf12;
  color: #f1efd6;
  border: 1px solid #cbdbaa3c;
  cursor: pointer;
  text-align: left;
}
.grove-actions button:hover,
.grove-follow:hover {
  background: #d4e8ac2e;
  border-color: #e4c67d;
}
.grove-actions button:focus-visible,
.grove-follow:focus-visible {
  outline: 3px solid #edc579;
  outline-offset: 3px;
}
.grove-actions span {
  color: #d8bf81;
  font-size: 14px;
}
.grove-response {
  font-size: 9px;
  line-height: 1.4;
  color: #becaa9;
  margin: 8px 0 0;
}
.grove-follow {
  padding: 0 10px;
  min-width: 66px;
  color: #e6cf90;
  border-color: transparent;
  background: transparent;
}
.grove-follow:disabled {
  opacity: 0.3;
  cursor: default;
}
html[data-broadcast='true'] .grove-panel,
body:has(#watch-sheet[open]) .grove-panel {
  display: none;
}
body:not(.fallback):not([data-mode='word']) #habitat::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #071e183d, transparent 25%, transparent 75%, #071e1824);
}
html:not([data-broadcast='true']) body.stream-view #director-caption {
  bottom: 160px;
}
@media (max-width: 760px) {
  .grove-masthead {
    top: max(20px, env(safe-area-inset-top));
    left: 20px;
    padding-left: 12px;
  }
  .grove-panel h2 {
    font-size: 29px;
  }
  .grove-eyebrow {
    font-size: 8px;
    letter-spacing: 1.6px;
  }
  .grove-invitation {
    bottom: max(74px, calc(env(safe-area-inset-bottom) + 64px));
    left: 12px;
    right: 12px;
    width: auto;
    padding: 11px 13px 8px;
  }
  .grove-story {
    font-size: 11px;
  }
  .grove-steps {
    margin: 7px 0;
  }
  .grove-actions button {
    font-size: 10px;
    padding: 0 8px;
  }
  .grove-actions span {
    display: none;
  }
  .grove-response {
    font-size: 8px;
    margin-top: 6px;
  }
  html:not([data-broadcast='true']) body.stream-view #director-caption {
    bottom: 223px;
    font-size: 11px;
  }
}
@media (max-height: 520px) and (min-width: 761px) {
  .grove-invitation {
    width: 360px;
    padding: 9px 12px;
    bottom: 12px;
  }
  .grove-response {
    display: none;
  }
  .grove-masthead {
    top: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .grove-steps i {
    transition: none;
  }
}
/* The grove masthead replaces the older duplicate corner wordmark. */
body:has(.grove-panel):not(.fallback) .topbar .brand {
  visibility: hidden;
}
