/* Share button + fallback popup styles. Pinyon Script + Caveat throughout. */

.share-row {
  display: flex;
  justify-content: center;
  margin: 2rem 0 0.6rem;
}
.share-row--top {
  margin: 0.4rem 0 1.2rem;
}
.share-btn {
  font-family: 'Caveat', cursive;
  font-weight: 600;
  font-size: clamp(1.15rem, 4.2vw, 1.4rem);
  line-height: 1.1;
  color: #1a2348;
  background: rgba(243, 234, 218, 0.7);
  border: 1.5px solid #1a2348;
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  transition: background 120ms ease, transform 120ms ease;
}
.share-btn:hover,
.share-btn:focus-visible {
  background: #f8f1dd;
  transform: translateY(-1px);
  outline: none;
}
.share-btn:active { transform: translateY(0); }
.share-btn__icon { width: 1.05em; height: 1.05em; flex: none; }

/* Fallback popup (desktop / no navigator.share) */
.share-fallback {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(20, 12, 6, 0.55);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
  animation: share-fade 160ms ease-out;
}
body.share-fallback-open { overflow: hidden; }
@keyframes share-fade { from { opacity: 0; } to { opacity: 1; } }

.share-fallback__box {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: #f3eada;
  color: #1a2348;
  border-radius: 18px;
  padding: 1.4rem 1.25rem 1.6rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  text-align: center;
}
.share-fallback__close {
  position: absolute;
  top: 0.4rem; right: 0.6rem;
  background: transparent;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  color: #1a2348;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}
.share-fallback__title {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 0 0.3rem;
}
.share-fallback__sub {
  font-family: 'Caveat', cursive;
  font-size: 1.05rem;
  margin: 0 0 1rem;
  opacity: 0.85;
}
.share-fallback__choices {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.share-fallback__choice {
  font-family: 'Caveat', cursive;
  font-weight: 600;
  font-size: 1.2rem;
  color: #1a2348;
  background: rgba(255, 255, 255, 0.5);
  border: 1.5px solid #1a2348;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  text-decoration: none;
  cursor: pointer;
}
.share-fallback__choice:hover,
.share-fallback__choice:focus-visible {
  background: #ffffff;
  outline: none;
}
.share-fallback__feedback {
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  margin: 0.9rem 0 0;
  color: #1a2348;
  opacity: 0.85;
  word-break: break-all;
}
