/* ===== Tablet & Below (768px) ===== */
@media screen and (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: var(--bg-dungeon);
    border-bottom: 2px solid var(--border);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  /* Dropdown becomes inline on mobile */
  .nav-item-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
  }

  .dropdown-trigger {
    display: none;
  }

  .dropdown-menu li a {
    padding: 0.4rem 0;
  }

  .burger-menu {
    display: flex;
  }

  .depth-indicator {
    display: none;
  }

  .torch {
    display: none !important;
  }

  .corridor-content {
    grid-template-columns: 1fr;
  }

  .armory-grid {
    grid-template-columns: 1fr;
  }

  .treasure-grid {
    grid-template-columns: 1fr;
  }

  .entrance-name {
    font-size: 1.5rem;
  }

  /* Single column: stack form over dragon, both centered */
  .lair-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2.5rem;
  }

  .lair-form-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }

  .lair-dragon-area {
    width: 100%;
    min-height: 0;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-left {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ===== Mobile (480px) ===== */
@media screen and (max-width: 480px) {
  .entrance-cta {
    flex-direction: column;
    align-items: center;
  }

  .quest-item {
    flex-direction: column;
  }

  .lair-dragon-area {
    min-height: 0;
  }
}
