.ds-overlay {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100vw;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease-in-out;
  padding: 2rem 0;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
}

.ds-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.ds-notification-wrapper {
  position: relative;
  display: inline-block;
}

.ds-notification {
  text-align: center;
  font-family: 'Times New Roman', 'Georgia', serif;
  font-size: 5rem;
  font-weight: 100;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  word-spacing: 0.1em;
  user-select: none;
  line-height: 1.2;
  white-space: nowrap;
  animation: ds-fade-in 0.8s ease-out;
}

.ds-notification.ghost {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  opacity: 0.5;
  animation: ds-ghost-expand 5.2s ease-out forwards;
  pointer-events: none;
}

.ds-notification.red {
  color: #cc0000;
  text-shadow: 
    0 0 15px rgba(204, 0, 0, 0.8),
    0 0 30px rgba(204, 0, 0, 0.6),
    0 0 45px rgba(204, 0, 0, 0.4),
    2px 2px 8px rgba(0, 0, 0, 0.9),
    4px 4px 12px rgba(0, 0, 0, 0.7);
}

.ds-notification.gold {
  color: #e1c857;
  text-shadow: 
    0 0 15px rgba(225, 200, 87, 0.8),
    0 0 30px rgba(225, 200, 87, 0.6),
    0 0 45px rgba(225, 200, 87, 0.4),
    2px 2px 8px rgba(0, 0, 0, 0.9),
    4px 4px 12px rgba(0, 0, 0, 0.7);
}

@keyframes ds-fade-in {
  from {
    opacity: 0;
    transform: translateY(-2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ds-fade-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-2px);
  }
}

@keyframes ds-ghost-expand {
  from {
    opacity: 0.5;
    transform: translateY(-50%) scaleX(1);
  }
  to {
    opacity: 0;
    transform: translateY(-50%) scaleX(1.3);
  }
}

.ds-overlay.fade-out {
  transition: opacity 0.6s ease-in-out;
}

.ds-overlay.fade-out .ds-notification:not(.ghost) {
  animation: ds-fade-out 0.6s ease-in forwards;
}