:root {
  color-scheme: light dark;
}

.ps-backdrop {
  position: fixed;
  inset: 0;
  background: #00000073;
  display: none;
  align-items: flex-end;
  z-index: 9999;
}

.ps-sheet {
  width: 100%;
  max-height: 85vh;
  padding: 12px 18px 16px;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  background: #1a1d21;
  color: #fff;
  transform: translateY(100%);
  animation: slideUp 0.25s ease forwards;
}

@media (prefers-color-scheme: light) {
  .ps-backdrop {
    background: #0000004d;
  }

  .ps-sheet {
    background: #ffffff;
    color: #111827;
    box-shadow: 0 -12px 30px #0000001f;
  }

  .ps-close {
    color: #111827;
  }

  .ps-sub {
    color: #4b5563;
    opacity: 1;
  }
}

@media (prefers-color-scheme: dark) {
  .ps-backdrop {
    background: #00000073;
  }

  .ps-sheet {
    background: #1a1d21;
    color: #ffffff;
  }

  .ps-close {
    color: #ffffff;
  }

  .ps-sub {
    color: #ffffff;
    opacity: 0.8;
  }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes slideDown {
  from { transform: translateY(0); }
  to { transform: translateY(100%); }
}

.ps-header {
  position: relative;
  height: 40px;
}

.ps-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.ps-close:hover {
  opacity: 0.7;
}

.ps-gif-wrap {
  display: flex;
  justify-content: center;
  margin: 10px 0;
}

.ps-gif-wrap img {
  width: 120px;
}

.ps-title {
  text-align: center;
  margin: 8px 0;
  font-size: 18px;
  font-weight: 600;
}

.ps-sub {
  text-align: center;
  font-size: 14px;
}

.ps-action {
  width: 100%;
  height: 50px;
  margin-top: 18px;
  border: none;
  border-radius: 26px;
  background: linear-gradient(135deg, #2ee68b, #18c97a);
  color: #0b1f14;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.ps-action:active {
  transform: scale(0.97);
}

.ps-action:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
