/* BYLBY V3 — partage des duels */

.by3-share-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(8px);
}

.by3-share-overlay[hidden] {
  display: none !important;
}

.by3-share-dialog {
  position: relative;
  width: min(100%, 460px);
  max-height: 90dvh;
  overflow-y: auto;
  padding: 30px;
  border: 1px solid var(--by-border, #38383c);
  border-radius: 25px;
  background: var(--by-card, #fff);
  color: var(--by-text, #111);
  box-shadow: 0 25px 80px rgba(0,0,0,.3);
}

.by3-share-close {
  position: absolute;
  top: 18px;
  right: 20px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 27px;
  cursor: pointer;
}

.by3-share-eyebrow {
  margin: 0 0 8px;
  color: var(--by-muted, #777782);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.by3-share-dialog h2 {
  margin: 0 0 10px;
  font-size: 29px;
  font-weight: 850;
  letter-spacing: -.04em;
}

.by3-share-subtitle {
  margin: 0 0 23px;
  color: var(--by-muted, #777782);
  font-size: 14px;
  line-height: 1.5;
}

.by3-share-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 1.8;
  background: var(--by-secondary, #eee);
}

.by3-share-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.by3-share-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.by3-share-options button,
.by3-share-copy {
  min-height: 47px;
  border: 1px solid var(--by-border, #ddd);
  border-radius: 12px;
  background: var(--by-secondary, #f5f5f5);
  color: var(--by-text, #111);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.by3-share-options button:hover {
  border-color: #B5FF4D;
}

.by3-share-copy {
  width: 100%;
  margin-top: 12px;
  border-color: #B5FF4D;
  background: #B5FF4D;
  color: #111;
}

.by3-share-feedback {
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--by-muted, #777782);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 600px) {
  .by3-share-dialog {
    padding: 25px 20px;
  }
}
