/* ── Tutorial Panel ─────────────────────────────────────────────────────────── */

#tut-panel {
  position: fixed;
  top: 124px;
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  z-index: 8000;
  background: rgba(4, 12, 24, 0.96);
  border: 1px solid rgba(0, 190, 255, 0.40);
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.80), 0 0 0 1px rgba(0, 190, 255, 0.08);
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 0;
  animation: tutSlideIn 0.28s ease-out;
  overflow: hidden;
}

@keyframes tutSlideIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-18px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0);     }
}

@keyframes tutSlideOut {
  from { opacity: 1; transform: translateX(-50%) translateY(0);     }
  to   { opacity: 0; transform: translateX(-50%) translateY(-18px); }
}

/* ── Header ─────────────────────────────────────────────────────────────────── */

.tut-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px;
  border-bottom: 1px solid rgba(0, 190, 255, 0.18);
  gap: 8px;
}

.tut-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 215, 255, 0.95);
  flex: 1;
}

.tut-step {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(0, 190, 255, 0.45);
  white-space: nowrap;
}

/* ── Body ───────────────────────────────────────────────────────────────────── */

.tut-body {
  padding: 14px 16px;
  font-size: 13px;
  color: #ccc;
  line-height: 1.7;
  flex: 1;
}

.tut-body strong {
  color: #fff;
}

.tut-body em {
  color: rgba(0, 210, 255, 0.75);
  font-style: normal;
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */

.tut-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(0, 190, 255, 0.12);
  gap: 8px;
}

.tut-skip-all {
  background: none;
  border: none;
  color: rgba(180, 180, 180, 0.40);
  font-size: 11px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 0.15s;
}

.tut-skip-all:hover {
  color: rgba(220, 80, 80, 0.80);
}

.tut-next-btn {
  padding: 8px 22px;
  background: rgba(0, 180, 255, 0.12);
  border: 1px solid rgba(0, 200, 255, 0.45);
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}

.tut-next-btn:hover:not(:disabled) {
  background: rgba(0, 200, 255, 0.24);
  border-color: rgba(0, 220, 255, 0.75);
}

.tut-next-btn:disabled {
  opacity: 0.50;
  cursor: default;
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* ── Highlight system ───────────────────────────────────────────────────────── */
/* Applied dynamically to any DOM element via JS */

.tut-highlight {
  outline: 2px solid rgba(0, 215, 255, 0.85) !important;
  outline-offset: 3px !important;
  border-radius: 4px;
  animation: tutPulse 1.6s ease-in-out infinite;
  position: relative;
  z-index: 500;
}

@keyframes tutPulse {
  0%,  100% { box-shadow: 0 0 0 4px rgba(0, 210, 255, 0.12), 0 0 18px rgba(0, 210, 255, 0.35); }
  50%        { box-shadow: 0 0 0 8px rgba(0, 210, 255, 0.06), 0 0 28px rgba(0, 210, 255, 0.55); }
}
