#popup-kartu {
  width: min(96vw, 640px);
  max-width: 96vw;
  max-height: 96vh;
  max-height: 96dvh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  scrollbar-width: none;
}
#popup-kartu::-webkit-scrollbar { display: none; }
#popup-kartu::backdrop {
  background: rgba(0, 0, 0, 0.08);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
#popup-kartu form {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0;
  text-align: right;
}
#popup-kartu button {
  width: 40px;
  height: 40px;
  border: 1px solid #ccc;
  border-radius: 50%;
  background: #171717;
  color: white;
  font: 24px/1 sans-serif;
  cursor: pointer;
}
#popup-kartu iframe { display: block; width: 100%; height: calc(96vh - 44px); height: calc(96dvh - 44px); border: 0; }

#popup-kartu .popup-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

#popup-kartu .popup-header button {
  flex: none;
}

.popup-ticker {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  background: #171717;
  color: #fff;
  border-radius: 6px;
  line-height: 36px;
  text-align: left;
}

.popup-ticker span {
  display: inline-block;
  padding-left: 100%;
  white-space: nowrap;
  animation: teks-berjalan 12s linear infinite;
}

@keyframes teks-berjalan {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  .popup-ticker span {
    padding-left: 8px;
    white-space: normal;
    animation: none;
  }
}