.snake-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--spacing-xl);
  animation: fadeIn var(--transition-fast);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.snake-modal {
  position: relative;
  background-color: #101010;
  border: 1px solid #3a3a3a;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  animation: slideIn var(--transition-normal);
}

@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Sizes */
.snake-modal--small {
  width: 90%;
  max-width: 400px;
}

.snake-modal--medium {
  width: 90%;
  max-width: 600px;
}

.snake-modal--large {
  width: 90%;
  max-width: 800px;
}

.snake-modal--full {
  width: 95%;
  max-width: 1200px;
  height: 90vh;
}

/* Header */
.snake-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg);
  border-bottom: 1px solid #3a3a3a;
}

.snake-modal__title {
  margin: 0;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
}

.snake-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: transparent;
  border: 1px solid #3a3a3a;
  color: #8e8e90;
  font-size: 18px;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.snake-modal__close:hover {
  background-color: rgba(31, 29, 32, 0.8);
  border-color: #4a4a4a;
  color: var(--color-text-primary);
}

.snake-modal__close:active {
  transform: scale(0.95);
}

/* Content */
.snake-modal__content {
  flex: 1;
  padding: var(--spacing-lg);
  overflow-y: auto;
  color: var(--color-text-primary);
}

.snake-modal__content::-webkit-scrollbar {
  width: 8px;
}

.snake-modal__content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.snake-modal__content::-webkit-scrollbar-thumb {
  background-color: #3a3a3a;
  border-radius: 0;
}

.snake-modal__content::-webkit-scrollbar-thumb:hover {
  background-color: #4a4a4a;
}

/* Footer */
.snake-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--spacing-sm);
  padding: var(--spacing-lg);
  border-top: 1px solid #3a3a3a;
}

/* Corner decorations */
.snake-modal__corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid #8e8e90;
  pointer-events: none;
}

.snake-modal__corner--top-left {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}

.snake-modal__corner--top-right {
  top: -1px;
  right: -1px;
  border-left: none;
  border-bottom: none;
}

.snake-modal__corner--bottom-left {
  bottom: -1px;
  left: -1px;
  border-right: none;
  border-top: none;
}

.snake-modal__corner--bottom-right {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .snake-modal-overlay {
    padding: 0;
  }

  .snake-modal {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
  }

  .snake-modal--small,
  .snake-modal--medium,
  .snake-modal--large {
    width: 100%;
    height: 100%;
    max-width: 100%;
  }
}
