/* ══════════════════════════════════════
   HOW TO PLAY PAGE — how-to-play.css
══════════════════════════════════════ */

/* ── Hero ── */
.htp-hero .split {
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.htp-hero__copy h1 {
  margin-bottom: 1.25rem;
}

/* Tutorial-badge frame */
.htp-hero__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.htp-hero__frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.htp-tutorial-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
}

.htp-tutorial-badge__dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: badge-pulse 1.8s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1);    }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

/* ── Controls ── */
.htp-controls__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.htp-steps {
  display: flex;
  flex-direction: column;
}

.htp-steps .label {
  margin-bottom: 0.625rem;
}

.htp-steps h2 {
  margin-bottom: 2rem;
}

.htp-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.htp-step:first-of-type {
  border-top: 1px solid var(--line);
}

.htp-step__number {
  flex-shrink: 0;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--green);
  text-stroke: 1.5px var(--green);
  min-width: 2.5rem;
  margin-top: 0.1rem;
}

.htp-step__title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.htp-step__desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.htp-controls__shot {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.htp-controls__shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

/* ── Passing & Shooting (annotated) ── */
.htp-annotations__head {
  margin-bottom: 2.5rem;
}

.htp-annotations__head h2 {
  margin-bottom: 0.875rem;
}

.htp-annotations__lead {
  max-width: 38rem;
  margin: 0;
}

.htp-annot-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  margin-bottom: 2.5rem;
}

.htp-annot-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.htp-annot-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 11, 53, 0.5) 0%, transparent 50%);
  pointer-events: none;
}

/* Annotation pins */
.annot-pin {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.annot-pin__num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green);
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(70, 255, 87, 0.45);
}

.annot-pin__label {
  padding: 0.375rem 0.75rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}

.annot-pin--1 { top: 24%; left:  14%; }
.annot-pin--2 { top: 48%; left:  50%; transform: translateX(-50%); }
.annot-pin--3 { bottom: 14%; right: 12%; }

/* Annotation legend */
.htp-annot-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.htp-annot-legend__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.htp-annot-legend__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: var(--navy);
  font-size: 0.8125rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.htp-annot-legend__title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.htp-annot-legend__desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ── Defending ── */
.htp-defend .split {
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.htp-defend__shot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

.htp-defend__shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.htp-defend h2 {
  margin-bottom: 1.25rem;
}

.htp-defend__body {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.68;
  margin-bottom: 1.75rem;
}

.htp-defend__tips {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.htp-defend__tip {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.875rem 1rem 0.875rem 1.25rem;
  border-left: 3px solid var(--cyan);
  background: rgba(18, 217, 255, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 0.625rem;
}

.htp-defend__tip:last-child {
  margin-bottom: 0;
}

.htp-defend__tip-marker {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  margin-top: 0.5rem;
}

.htp-defend__tip p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Formations ── */
.htp-formations__head {
  margin-bottom: 2.5rem;
}

.htp-formations__head h2 {
  margin-bottom: 0.875rem;
}

.htp-formations__lead {
  max-width: 38rem;
  margin: 0;
}

.htp-formations__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.125rem;
}

.htp-form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  transition: background 0.25s, border-color 0.25s;
}

.htp-form-card:hover {
  background: var(--panel-hover);
  border-color: rgba(70, 255, 87, 0.3);
}

/* CSS field diagram */
.htp-form-field {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.625rem;
  padding: 1.25rem 1rem;
  background: linear-gradient(to bottom, #1b5e2e, #0e3d1c);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.htp-form-field::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-50%);
}

.htp-form-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.htp-form-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.htp-form-row:last-child .htp-form-dot {
  background: var(--yellow);
  border-color: rgba(255, 213, 46, 0.5);
  box-shadow: 0 2px 8px rgba(255, 213, 46, 0.4);
}

.htp-form-card__body {
  padding: 1.125rem 1.125rem 1.25rem;
}

.htp-form-card__name {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 0.35rem;
}

.htp-form-card__title {
  font-size: clamp(1rem, 1.8vw, 1.375rem);
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
}

.htp-form-card__desc {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ── Tips ── */
.htp-tips__head {
  margin-bottom: 2.5rem;
}

.htp-tips__head h2 {
  margin-bottom: 0;
}

.htp-tips__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.htp-tip-card {
  display: flex;
  gap: 1.125rem;
  align-items: flex-start;
  padding: 1.375rem 1.375rem 1.375rem 1.625rem;
  border-left: 3px solid var(--green);
  background: rgba(70, 255, 87, 0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: background 0.25s;
}

.htp-tip-card:hover {
  background: rgba(70, 255, 87, 0.09);
}

.htp-tip-card__num {
  flex-shrink: 0;
  font-size: 1.375rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(70, 255, 87, 0.5);
  text-stroke: 1.5px rgba(70, 255, 87, 0.5);
  line-height: 1;
  margin-top: 0.15rem;
  min-width: 2rem;
}

.htp-tip-card__title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.htp-tip-card__desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ── Download CTA ── */
.htp-cta {
  text-align: center;
  background: linear-gradient(150deg, rgba(70, 255, 87, 0.09), rgba(18, 217, 255, 0.06));
  border-top: 1px solid var(--line);
}

.htp-cta__inner {
  max-width: 36rem;
  margin: 0 auto;
}

.htp-cta__inner h2 {
  margin-bottom: 1.25rem;
}

.htp-cta__inner .lead {
  margin-bottom: 2.25rem;
}

.htp-cta__badge {
  display: inline-block;
  transition: transform 0.22s var(--ease-out), opacity 0.2s;
}

.htp-cta__badge:hover { transform: translateY(-3px); opacity: 0.85; }

.htp-cta__badge:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
  border-radius: 8px;
}

/* ── Responsive: Tablet ── */
@media (max-width: 1020px) {
  .htp-controls__grid {
    grid-template-columns: 1fr;
  }

  .htp-controls__shot {
    position: static;
    order: -1;
  }

  .htp-annot-legend {
    grid-template-columns: 1fr;
  }

  .htp-formations__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .htp-tips__grid {
    grid-template-columns: 1fr;
  }
}

/* ── Responsive: Mobile ── */
@media (max-width: 640px) {
  .annot-pin--2,
  .annot-pin--3 { display: none; }

  .annot-pin--1 {
    top: 10%;
    left: 5%;
  }

  .htp-formations__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .htp-form-dot {
    width: 11px;
    height: 11px;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .htp-tutorial-badge__dot { animation: none; }
}
