/* One-time new-user coachmarks. Overlay only — does not change page layout. */
.cotinder-coach[hidden] {
  display: none !important;
}

.cotinder-coach {
  position: fixed;
  inset: 0;
  z-index: 2147483640;
  pointer-events: none;
}

/* Logout / identity confirm must stay clickable above the tour veil */
body.cotinder-coach-on .cotinder-rating-popup-overlay {
  z-index: 2147483647 !important;
}

.cotinder-coach.is-on {
  display: block;
}

.cotinder-coach__spot {
  position: fixed;
  pointer-events: none;
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(18, 22, 28, 0.52);
  outline: 3px solid #fd7728;
  outline-offset: 3px;
  transition: top 0.2s ease, left 0.2s ease, width 0.2s ease, height 0.2s ease;
}

.cotinder-coach__arrow {
  position: fixed;
  width: 52px;
  height: 78px;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
  z-index: 2147483641;
  transform-origin: 50% 90%;
}

.cotinder-coach__card {
  position: fixed;
  z-index: 2147483642;
  pointer-events: auto;
  max-width: min(320px, calc(100vw - 24px));
  padding: 14px 16px 12px;
  border-radius: 16px;
  background: #fff;
  color: #222;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  font: 500 15px/1.35 Inter, system-ui, sans-serif;
}

.cotinder-coach__text {
  margin: 0 0 12px;
}

.cotinder-coach__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cotinder-coach__ok,
.cotinder-coach__skip {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 10px;
  font: 700 14px/1.2 Inter, system-ui, sans-serif;
  padding: 8px 12px;
}

.cotinder-coach__ok {
  background: #fd7728;
  color: #fff;
}

.cotinder-coach__skip {
  background: transparent;
  color: #667;
  text-decoration: underline;
  padding-left: 4px;
  padding-right: 4px;
}

body.cotinder-coach-on #cotinder-index-feed-hint {
  display: none !important;
}

.cotinder-coach-miss {
  outline: 2px solid #e23a3a !important;
  outline-offset: 2px;
  background-color: #fff1ee !important;
  border-color: #e23a3a !important;
}

.cotinder-coach-field-msg {
  display: block;
  margin: 6px 0 0;
  color: #c0392b;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
}

.cotinder-coach-legend {
  margin: 6px 0 0;
  color: #667;
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 429.98px) {
  .cotinder-coach__card {
    max-width: calc(100vw - 16px);
    font-size: 14px;
  }
  .cotinder-coach__arrow {
    width: 40px;
    height: 60px;
  }
}
