.ydao-showcase {
  max-width: var(--ydao-max-width, 1180px);
  margin: 42px auto;
  padding: 0;
}

.ydao-section-title {
  margin: 0 0 22px;
  font-size: clamp(1.45rem, 2vw, 2.15rem);
  line-height: 1.15;
  text-align: center;
}

.ydao-offer-period + .ydao-modal-open {
  margin-top: 16px;
}

.ydao-offers-grid {
  display: grid;
  grid-template-columns: repeat(var(--ydao-columns, 3), minmax(0, 1fr));
  gap: var(--ydao-gap, 24px);
}

.ydao-card {
  min-width: 0;
  text-align: center;
}

.ydao-image-wrap {
  position: relative;
  overflow: hidden;
  background: #f4f4f5;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
}

.ydao-ratio-1-1 .ydao-image-wrap { aspect-ratio: 1 / 1; }
.ydao-ratio-4-5 .ydao-image-wrap { aspect-ratio: 4 / 5; }
.ydao-ratio-3-4 .ydao-image-wrap { aspect-ratio: 3 / 4; }
.ydao-ratio-4-3 .ydao-image-wrap { aspect-ratio: 4 / 3; }

.ydao-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ydao-modal-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease;
}

.ydao-modal-open:hover,
.ydao-modal-open:focus-visible {
  transform: translateY(-1px);
  opacity: 0.9;
  color: #fff;
}

.ydao-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw;
  height: 100vh;
  z-index: 2147483647 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  isolation: isolate;
}

.ydao-modal[aria-hidden="false"] {
  display: flex;
}

.ydao-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.62);
}

.ydao-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  background: #fff;
  color: #111827;
  border-radius: 18px;
  padding: 28px;
  text-align: left;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.ydao-modal-dialog h3 {
  margin: 0 42px 16px 0;
  font-size: 1.35rem;
  line-height: 1.25;
}

.ydao-modal-content {
  font-size: 1rem;
  line-height: 1.65;
}

.ydao-modal-content p:first-child {
  margin-top: 0;
}

.ydao-modal-content p:last-child {
  margin-bottom: 0;
}

.ydao-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.ydao-modal-close:hover,
.ydao-modal-close:focus-visible {
  background: #e5e7eb;
}

html.ydao-modal-active,
body.ydao-modal-active {
  overflow: hidden !important;
}

@media (max-width: 900px) {
  .ydao-offers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ydao-showcase {
    margin: 30px auto;
    padding: 0;
  }

  .ydao-offers-grid {
    grid-template-columns: 1fr;
  }

  .ydao-modal {
    padding: 14px;
  }

  .ydao-modal-dialog {
    padding: 22px;
    border-radius: 14px;
  }
}

.ydao-legal-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 22px;
  text-align: center;
}

.ydao-legal-block + .ydao-legal-block {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.ydao-legal-block h4 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.ydao-offer-period {
  margin: 16px 0 0;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
}
