.tutorial-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  pointer-events: none;
}

.tutorial-step-container {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  pointer-events: auto;
  max-width: 90vw;

  @media (width < 48rem) {
    & {
      left: 0.5rem;
      right: 0.5rem;
      bottom: 8.5rem; /* 8rem mobile navbar height + 0.5rem margin */
      max-width: unset;
    }
  }
}

/* 9 slice*/
.tutorial-content-card {
  padding: 1.5rem;
  max-width: 400px;
  min-width: 280px;
  position: relative;
  animation: slideInUp 0.3s ease-out;

  background:
        /* Corners */
    url("/assets/tutorial-container/top_left-243ababc.png") top left no-repeat,
    url("/assets/tutorial-container/top_right-c822f334.png") top right no-repeat,
    url("/assets/tutorial-container/bottom_left-b6d04a50.png") bottom left no-repeat,
    url("/assets/tutorial-container/bottom_right-834a950d.png") bottom right no-repeat,
    /* Edges */ url("/assets/tutorial-container/top-b9b6d96c.png") top center repeat-x,
    url("/assets/tutorial-container/bottom-1317cfc9.png") bottom center repeat-x,
    url("/assets/tutorial-container/left_edge-2aeb6106.png") center left repeat-y,
    url("/assets/tutorial-container/right_edge-1ea3438c.png") center right repeat-y,
    /* Center fill */ url("/assets/tutorial-container/center-c5851347.png") center repeat;

  background-size:
    auto auto,
    auto auto,
    auto auto,
    auto auto,
    /* corners - natural size */ auto auto,
    auto auto,
    auto auto,
    auto auto,
    /* edges - stretch appropriately */ auto auto; /* center - repeat */

  border: 4px solid #562e30;

  @media (width < 48rem) {
    & {
      max-width: unset;
    }
  }
}

.tutorial-header {
  margin-bottom: 1.5rem;
}

.tutorial-text {
  flex: 1;
}

.tutorial-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #4a3b2a;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.tutorial-description {
  color: #6b5b4f;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.tutorial-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tutorial-form {
  flex: 1;
}

.tutorial-continue-btn {
  width: 100%;
  background: linear-gradient(135deg, #8b6f47 0%, #a0845c 50%, #8b6f47 100%);
  color: #f5f1eb;
  border: 2px solid #6b5439;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tutorial-continue-btn:hover {
  background: linear-gradient(135deg, #9d7b52 0%, #b8936a 50%, #9d7b52 100%);
  transform: translateY(-1px);
  box-shadow:
    0 4px 8px rgba(107, 84, 57, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-color: #7a6148;
}

.tutorial-continue-btn:active {
  transform: translateY(0);
}

/* Mascot */
.tutorial-mascot-container {
  flex-shrink: 0;
  margin-bottom: 1rem;

  @media (width < 48rem) {
    & {
      display: none;
    }
  }
}

.tutorial-mascot {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-2px);
  }
}
