/* Introduction — menu bar button + modal */

.intro-menu-btn {
  cursor: pointer;
}

/* Modal overlay */
.introduction-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.introduction-overlay.visible {
  opacity: 1;
}

/* Modal card — wider than patch notes to fit the video embed */
.introduction-modal {
  background: linear-gradient(to bottom, #0f172a, #1e293b);
  border: 1px solid #334155;
  border-top: 3px solid #cc6600;
  border-radius: 6px;
  width: 560px;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Header */
.introduction-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #334155;
}

.introduction-header h3 {
  margin: 0;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: #e0e0e0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex: 1;
}

.introduction-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 16px;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  transition: color 0.2s;
  flex-shrink: 0;
}

.introduction-close:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* Body */
.introduction-body {
  padding: 14px 16px;
  overflow-y: auto;
  color: #94a3b8;
  font-size: var(--font-size-xs);
  line-height: 1.5;
}

/* 16:9 video embed */
.introduction-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin-bottom: 14px;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
}

.introduction-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Rendered env-var message */
.introduction-message {
  color: #cbd5e1;
  font-size: 12.5px;
  line-height: 1.65;
}

.introduction-message p {
  margin: 0 0 8px;
}

.introduction-message p:last-child {
  margin-bottom: 0;
}

.introduction-message h1,
.introduction-message h2,
.introduction-message h3,
.introduction-message h4,
.introduction-message h5,
.introduction-message h6 {
  color: #e2e8f0;
  margin: 12px 0 6px;
  font-size: var(--font-size-sm);
  line-height: 1.3;
}

.introduction-message h1:first-child,
.introduction-message h2:first-child,
.introduction-message h3:first-child {
  margin-top: 0;
}

.introduction-message ul,
.introduction-message ol {
  margin: 0 0 8px;
  padding-left: 20px;
}

.introduction-message li {
  margin-bottom: 2px;
}

.introduction-message strong {
  color: #e2e8f0;
}

.introduction-message code {
  font-family: var(--gd-font-mono);
  font-size: 0.92em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  padding: 0 4px;
}

.introduction-message a {
  color: #e8943a;
  text-decoration: underline;
}

.introduction-message a:hover {
  color: #f0a952;
}

/* Generic re-open hint */
.introduction-hint {
  margin-top: 12px;
  padding: 8px 10px;
  background: rgba(204, 102, 0, 0.08);
  border: 1px solid rgba(204, 102, 0, 0.25);
  border-radius: 4px;
  color: #b0c4d8;
}

.introduction-hint i {
  color: #cc6600;
}

/* Footer */
.introduction-footer {
  padding: 10px 16px;
  border-top: 1px solid #334155;
  display: flex;
  justify-content: flex-end;
}

.introduction-dismiss {
  padding: 6px 16px;
  background: #333;
  color: white;
  border: 1px solid #555;
  border-radius: 2px;
  font-size: var(--font-size-xs);
  font-weight: 500;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: background 0.2s;
}

.introduction-dismiss:hover {
  background: #444;
}
