/* SIMADDA site announcement popup — compact, fixed, 3D */

.sa-launch {
  position: fixed;
  inset: 0;
  z-index: 12050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  perspective: 1100px;
}

.sa-launch.is-open {
  display: flex;
}

.sa-window {
  position: relative;
  width: min(420px, calc(100vw - 32px));
  max-height: min(520px, 78vh);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  padding: 20px 18px 16px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: #0a0a09;
  color: #eae1d4;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.78),
    0 0 40px rgba(212, 175, 55, 0.12),
    inset 0 1px rgba(255, 255, 255, 0.08);
  transform: rotateX(3deg) translateZ(18px);
  transform-style: preserve-3d;
  animation: saRise 0.42s ease-out;
  resize: none;
  user-select: text;
}

@keyframes saRise {
  from {
    opacity: 0;
    transform: rotateX(8deg) translateY(28px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: rotateX(3deg) translateZ(18px);
  }
}

.sa-window-simadda {
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.09) 1px, transparent 1px),
    radial-gradient(circle at 82% 5%, rgba(193, 18, 31, 0.22), transparent 32%);
  background-size: 28px 28px, 28px 28px, auto;
}

.sa-window-neon {
  border-color: #23d4ff;
  background-color: #061018;
  background-image:
    linear-gradient(rgba(35, 212, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 212, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 80% 0, rgba(138, 48, 255, 0.28), transparent 36%);
  background-size: 28px 28px, 28px 28px, auto;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.78), 0 0 36px rgba(35, 212, 255, 0.18);
}

.sa-window-crystal {
  border-color: #a4f6ff;
  background: linear-gradient(140deg, #0a1620, #101216 55%, #0b1018);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.78), 0 0 36px rgba(164, 246, 255, 0.14);
}

.sa-window-ember {
  border-color: #ff6a00;
  background:
    radial-gradient(circle at 70% 0, rgba(255, 90, 0, 0.38), transparent 42%),
    linear-gradient(165deg, #2a0c00, #0a0301);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.78), 0 0 40px rgba(255, 90, 0, 0.2);
}

.sa-window-midnight {
  border-color: #b66df0;
  background:
    linear-gradient(135deg, rgba(154, 76, 235, 0.2), transparent 52%),
    linear-gradient(145deg, #100f1d, #1a1028);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.78), 0 0 36px rgba(182, 109, 240, 0.16);
}

.sa-close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #161616;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.sa-close:hover {
  border-color: rgba(212, 175, 55, 0.55);
  color: #f3cf42;
}

.sa-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  margin-bottom: 10px;
  display: block;
}

.sa-kicker {
  font: 700 10px/1.2 'JetBrains Mono', monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f3cc37;
  margin-right: 40px;
}

.sa-window[data-type="warning"] .sa-kicker {
  color: #ff8a3d;
}

.sa-window[data-type="news"] .sa-kicker {
  color: #7ad7ff;
}

.sa-title {
  margin: 8px 40px 6px 0;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(18px, 4.2vw, 22px);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}

.sa-subtitle {
  margin: 0 0 10px;
  color: #c6bfae;
  font-size: 13px;
  line-height: 1.45;
}

.sa-body {
  flex: 1 1 auto;
  overflow: auto;
  max-height: 220px;
  font-size: 13px;
  line-height: 1.55;
  color: #e8e0d2;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}

.sa-body p {
  margin: 0 0 0.7em;
}

.sa-body a {
  color: #f3cf42;
}

.sa-body ul,
.sa-body ol {
  margin: 0 0 0.7em;
  padding-left: 1.2em;
}

.sa-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  flex-shrink: 0;
}

.sa-skip {
  border: 0;
  background: transparent;
  color: #c7c0b3;
  text-decoration: underline;
  cursor: pointer;
  font-size: 13px;
  padding: 6px 0;
}

.sa-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f3cf42, #a98a18);
  color: #080808;
  font-weight: 800;
  font-size: 12px;
  text-decoration: none;
}

.sa-cta:hover {
  filter: brightness(1.05);
}

.sa-news-link {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: #9e9788;
  text-decoration: underline;
}

@media (max-width: 420px) {
  .sa-window {
    padding: 18px 14px 14px;
    max-height: min(520px, 82vh);
  }

  .sa-body {
    max-height: 180px;
  }
}
