.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  width: 90%;
  max-width: 480px;
  background: #3a0a0d;
  border-radius: 8px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: scale(0.8) translateY(-20px);
  transition: transform 0.3s ease;
  border-radius: 8px;
}

.modal-overlay.show .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: clamp(2.25rem, 1.713rem + 2.68vw, 3rem);
  cursor: pointer;
  color: white;
  width: clamp(2.625rem, 1.82rem + 4.03vw, 3.75rem);
  height: clamp(2.5rem, 1.874rem + 3.13vw, 3.375rem);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-logo {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.modal-logo img {
  width: 64%;
  max-width: 180px;
  height: auto;
}

.comingsoon {
  width: 100%;
  display: block;
  margin: 1em auto 0;
}

.modal-body {
  padding: 40px clamp(0.625rem, 0.178rem + 2.24vw, 1.25rem) 30px;
}

.modal-body ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.625rem, 0.178rem + 2.24vw, 1.25rem);
  list-style: none;
  padding: 0;
  margin: 1.6em auto 0;
}

.modal-body ul li {
  margin-bottom: 0;
}

.modal-body ul li:last-child {
  margin-bottom: 0;
}

.modal-body ul li a {
  font-size: clamp(0.75rem, 0.482rem + 1.34vw, 1.125rem);
  display: block;
  padding: 8px 0px;
  background-color: #fbecc7;
  border-radius: 20px;
  text-decoration: none;
  color: #340e0f;
  text-align: center;
  font-weight: 500;
  transition: all 0.2s ease;
}

.modal-body ul li a:hover {
  background: #ffe73a;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.modal-body ul li a span {
  display: block;
  margin-top: 5px;
  font-size: clamp(0.65rem, 0.399rem + 1.25vw, 1rem);
}

body.modal-open {
  overflow: hidden;
}

.modal {
  display: none !important;
}

.modal-platform-content {
  text-align: center;
  padding: 20px 0;
}

.modal-platform-content p {
  margin-bottom: 20px;
  color: #666;
}

.platform-link {
  display: inline-block;
  padding: 12px 24px;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: all 0.2s ease;
}

.platform-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
  .modal-dialog {
    width: 640px;
    max-width: 90vw;
  }

  .modal-logo {
    display: flex;
    flex-direction: row;
    justify-content: center;
  }

  .modal-logo img {
    max-width: 160px;
  }

  .comingsoon {
    display: inline-block;
    margin: 0 0 0 20px;
  }

  .modal-body ul {
    gap: 15px;
    max-width: 500px;
    margin: 2em auto 0;
  }

  .modal-body ul li:nth-child(5):last-child {
    grid-column: 1;
  }

  .modal-body ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .modal-body ul li a span {
    display: inline-block;
    font-size: 0.9rem;
    margin: 0 0 0 0.5em;
  }

  .modal-close:hover {
    opacity: 0.7;
  }
}
