/* Hand-drawn scribble coach marks (homepage only) */

:root {
  --coach-ink: #f12f12;
}

.f12__coach-marks[hidden] {
  display: none !important;
}

.f12__coach-marks {
  position: fixed;
  inset: 0;
  z-index: 15000;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  background: rgba(0, 0, 0, 0.7);
}

.f12__coach-marks__arrows {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.f12__coach-mark {
  position: fixed;
  left: auto;
  right: clamp(92px, 12vw, 220px);
  top: 20vh; /* JS will override */
  color: var(--coach-ink);
  font-family: "Permanent Marker", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: 0.02em;
  transform: rotate(-1.2deg);
  max-width: min(52vw, 480px);
  text-align: right;
}

.f12__coach-mark[data-mark="2"] { transform: rotate(0.6deg); }
.f12__coach-mark[data-mark="3"] { transform: rotate(-0.2deg); }
.f12__coach-mark[data-mark="4"] { transform: rotate(1.0deg); }

.f12__coach-mark__text {
  line-height: 1.05;
}

.f12__coach-center {
  position: fixed;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: min(86vw, 680px);
  text-align: center;
}

.f12__coach-mark--center {
  position: static;
  left: auto;
  top: auto;
  transform: rotate(-0.5deg);
  max-width: none;
  text-align: center;
}

.f12__coach-marks__dismiss {
  position: fixed;
  top: max(14px, env(safe-area-inset-top, 0px));
  right: max(14px, env(safe-area-inset-right, 0px));
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--coach-ink);
  opacity: 0.98;
  transform: rotate(0.6deg);
  cursor: pointer;
}

.f12__coach-marks__dismiss-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  filter: none;
}

@media (max-width: 900px) {
  .f12__coach-mark {
    font-size: 18px;
    max-width: min(58vw, 340px);
    right: clamp(82px, 8vw, 140px);
  }

  .f12__coach-marks__dismiss {
    top: max(10px, env(safe-area-inset-top, 0px));
    right: max(10px, env(safe-area-inset-right, 0px));
  }

  .f12__coach-marks__dismiss-icon {
    width: 34px;
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .f12__coach-mark {
    transform: none;
  }

  .f12__coach-mark--center {
    transform: none;
  }

  .f12__coach-marks__dismiss {
    transform: none;
  }
}
