/* Wave start overlay and button */
.wave-start-overlay {
  /* Scoped to canvas-wrapper: allow clicking other UI except the panel itself */
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50; /* sits above canvas but below HUD/fusion panels */
  background: transparent; /* don't darken entire screen */
  pointer-events: none; /* let clicks pass through except for the panel */
}

.wave-start-panel {
  background: linear-gradient(135deg, #0f0f1a 0%, #1a0f2e 100%);
  border: 2px solid #4a9eff;
  padding: 24px 36px;
  text-align: center;
  box-shadow: 0 0 40px rgba(74, 158, 255, 0.4);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  pointer-events: auto; /* make the panel interactive while overlay is passthrough */
}

.wave-start-panel h2 {
  font-size: 40px;
  color: #64c8ff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
}

/* Moved inline styles for the instructions block */
.wave-start-panel .wave-start-instructions {
  font-size: 14px;
  color: #9db4ff;
  text-align: center;
}

/* Styling for the inline focus SVG used inside the instructions */
.wave-start-panel .focus-svg {
  vertical-align: middle;
  margin-right: 6px;
  display: inline-block;
}

/* Boss warning inline text (moved from inline styles to stylesheet).
   Ensure it appears on its own line and uses theme colors. */
.wave-start-panel .boss-warning {
  display: block;
  color: #ffb86b;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 14px;
  text-transform: uppercase;
}

.wave-start-button {
  padding: 12px 40px;
  font-size: 16px;
  color: #64c8ff;
  border: 2px solid #4a9eff;
  background: rgba(74, 158, 255, 0.1);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  font-family: 'Space Mono', monospace;
  font-weight: 600;
}

.wave-start-button:hover {
  border-color: #64c8ff;
  background: rgba(100, 200, 255, 0.2);
  box-shadow: 0 0 20px rgba(100, 200, 255, 0.3);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .wave-start-panel {
    padding: 30px 40px;
    gap: 20px;
  }

  .wave-start-panel h2 {
    font-size: 28px;
  }

  .wave-start-button {
    padding: 10px 30px;
    font-size: 14px;
  }

  /* On mobile avoid covering the equipped-spells area by honoring the
     --equipped-spells-width variable (set by JS). The overlay itself will
     inset from the right so the panel and its content will not sit over
     the slot column; falls back to 56px if variable is not set. */
  .wave-start-overlay {
    right: var(--equipped-spells-width, 56px);
    left: 0;
    justify-content: center;
    align-items: center;
  }

  /* Limit panel max-width so long text wraps without overlapping the slots */
  .wave-start-panel {
    max-width: calc(100% - var(--equipped-spells-width, 56px) - 20px);
  }
}

@media (max-width: 480px) {
  .wave-start-panel {
    padding: 20px 30px;
  }

  .wave-start-panel h2 {
    font-size: 22px;
  }

  .wave-start-button {
    padding: 8px 20px;
    font-size: 13px;
  }
}