/* Game-style spotlight coach marks */
.coach-root {
  position: fixed;
  inset: 0;
  z-index: 140;
  pointer-events: none;
}

.coach-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: auto;
}

.coach-spotlight {
  position: absolute;
  border-radius: 14px;
  box-shadow:
    0 0 0 9999px rgba(6, 22, 32, 0.62),
    0 0 0 3px #f4c95f,
    0 0 28px rgba(244, 201, 95, 0.55);
  background: transparent;
  pointer-events: none;
  transition:
    top 0.22s ease,
    left 0.22s ease,
    width 0.22s ease,
    height 0.22s ease,
    border-radius 0.22s ease;
  animation: coach-pulse 1.6s ease-in-out infinite;
}

@keyframes coach-pulse {
  0%, 100% { box-shadow: 0 0 0 9999px rgba(6, 22, 32, 0.62), 0 0 0 3px #f4c95f, 0 0 22px rgba(244, 201, 95, 0.4); }
  50% { box-shadow: 0 0 0 9999px rgba(6, 22, 32, 0.62), 0 0 0 5px #ffe08a, 0 0 34px rgba(244, 201, 95, 0.7); }
}

.coach-target-live {
  position: relative !important;
  z-index: 141 !important;
  pointer-events: auto !important;
  filter: none !important;
  animation: coach-target-glow 1.4s ease-in-out infinite;
}

@keyframes coach-target-glow {
  0%, 100% { outline: 3px solid rgba(244, 201, 95, 0.95); outline-offset: 3px; }
  50% { outline: 3px solid rgba(255, 232, 150, 1); outline-offset: 5px; }
}

.coach-tip {
  position: absolute;
  z-index: 142;
  width: min(320px, calc(100vw - 28px));
  padding: 16px 16px 14px;
  border-radius: 16px;
  background: #102a38;
  color: #f3f8fb;
  border: 1px solid rgba(244, 201, 95, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
  font-family: "Manrope", "Segoe UI", sans-serif;
  transform: translateY(0);
  animation: coach-tip-in 0.24s ease;
}

@keyframes coach-tip-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.coach-tip-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(244, 201, 95, 0.18);
  color: #f4c95f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.coach-tip h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.25;
  font-family: "Source Serif 4", Georgia, serif;
  letter-spacing: -0.02em;
}

.coach-tip p {
  margin: 0 0 14px;
  color: rgba(243, 248, 251, 0.86);
  font-size: 14px;
  line-height: 1.45;
}

.coach-tip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.coach-tip button {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 9px 12px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.coach-btn-primary {
  background: #f4c95f;
  color: #1a2a14;
}

.coach-btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #f3f8fb;
}

.coach-tip-arrow {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #102a38;
  border-left: 1px solid rgba(244, 201, 95, 0.45);
  border-top: 1px solid rgba(244, 201, 95, 0.45);
  transform: rotate(45deg);
}

.coach-tip[data-place="bottom"] .coach-tip-arrow {
  top: -7px;
  left: 28px;
}
.coach-tip[data-place="top"] .coach-tip-arrow {
  bottom: -7px;
  left: 28px;
  transform: rotate(225deg);
}
.coach-tip[data-place="left"] .coach-tip-arrow {
  right: -7px;
  top: 22px;
  transform: rotate(135deg);
}
.coach-tip[data-place="right"] .coach-tip-arrow {
  left: -7px;
  top: 22px;
  transform: rotate(-45deg);
}

.coach-progress-dots {
  display: flex;
  gap: 5px;
  margin: 0 0 10px;
}
.coach-progress-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.coach-progress-dots span.on {
  background: #f4c95f;
}

body.coach-lock {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .coach-spotlight,
  .coach-target-live,
  .coach-tip {
    animation: none !important;
    transition: none !important;
  }
}
