.sandaga-poster-simulator {
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
  grid-template-columns: minmax(300px, .85fr) minmax(420px, 1.15fr);
  gap: clamp(38px, 6vw, 86px);
  padding: clamp(30px, 4vw, 58px);
  overflow: hidden;
}

.sandaga-simulator-copy {
  min-width: 0;
  max-width: 520px;
}

.sandaga-simulator-copy h3 {
  max-width: 500px;
  font-size: clamp(36px, 4vw, 62px);
  line-height: .98;
  overflow-wrap: normal;
  word-break: normal;
}

.sandaga-simulator-copy p,
.sandaga-simulator-copy li {
  overflow-wrap: normal;
  word-break: normal;
}

.sandaga-poster-stage {
  width: 100%;
  min-width: 0;
}

.sandaga-poster-preview,
.sandaga-poster-preview-story {
  width: min(100%, 520px);
  max-width: 520px;
  padding: 0;
  justify-self: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 24px;
  background: #07131f;
}

.sandaga-poster-preview.no-template {
  background-color: #0a2132;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.035) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,.035) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,.035) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.035) 75%);
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-size: 24px 24px;
}

.sandaga-poster-preview:before,
.sandaga-poster-preview:after {
  display: none;
}

.sandaga-fallback-poster {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 14%;
  background: linear-gradient(160deg, rgba(7,19,31,.25), rgba(7,19,31,.78));
  text-align: center;
}

.sandaga-fallback-poster strong {
  color: #fff;
  font-size: clamp(19px, 2.2vw, 29px);
  line-height: 1.1;
}

.sandaga-fallback-poster span {
  color: #b9d1de;
  font-size: clamp(10px, 1.2vw, 14px);
  line-height: 1.55;
}

.sandaga-poster-logo-overlay {
  z-index: 1 !important;
  box-sizing: border-box;
  margin: 0;
  padding: 4px;
  border: 2px dashed #f3b729;
  border-radius: 10px;
  background: rgba(255,255,255,.92);
}

.sandaga-poster-logo-overlay span {
  color: #607786;
  font-size: clamp(8px, 1vw, 12px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: .03em;
}

.sandaga-template-image {
  position: absolute;
  z-index: 2 !important;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.sandaga-fallback-poster[hidden],
.sandaga-template-image[hidden] {
  display: none !important;
}

.sandaga-fake-qr-overlay {
  z-index: 3 !important;
}

.sandaga-poster-preview .sandaga-simulation-badge {
  z-index: 4 !important;
  top: 14px;
  right: 14px;
  padding: 7px 11px;
}

@media (max-width: 960px) {
  .sandaga-poster-simulator {
    grid-template-columns: 1fr;
  }

  .sandaga-simulator-copy {
    max-width: 720px;
  }
}

@media (max-width: 560px) {
  .sandaga-poster-simulator {
    margin-right: 0;
    margin-left: 0;
    padding: 22px 16px;
    border-radius: 18px;
  }

  .sandaga-simulator-copy h3 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .sandaga-poster-preview,
  .sandaga-poster-preview-story {
    width: 100%;
    border-radius: 16px;
  }
}
