.lwa-hp-shell {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.07);
  padding: 20px;
}
.lwa-hp-intro { text-align:center; margin-bottom: 18px; }
.lwa-hp-title { margin: 0 0 8px; color: #0F2A44; font-size: 30px; line-height: 1.15; }
.lwa-hp-subtitle { margin: 0; color: #5f6b7a; }
.lwa-hp-meta-bar { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-bottom: 14px; }
.lwa-hp-meta-pill { background: rgba(91,212,109,0.15); color: #0F2A44; border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 700; }
.lwa-hp-video-wrap { position: relative; border-radius: 18px; overflow: hidden; background: #edf2f6; }

.lwa-hp-player-notice {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(246,173,85,0.18);
  color: #6f4d00;
  border: 1px solid rgba(246,173,85,0.35);
  text-align: left;
  font-size: 14px;
  line-height: 1.45;
}
.lwa-hp-player-notice strong { color: #5c3d00; }
.lwa-hp-video { display:block; width:100%; border-radius:18px; }
.lwa-hp-video-flash { position:absolute; inset:0; pointer-events:none; background: rgba(91,212,109,0.25); opacity:0; }
.lwa-hp-video-flash.is-active { animation: lwaHpFlash 0.18s ease-out; }
.lwa-hp-controls { display:flex; gap:12px; flex-wrap:wrap; margin-top: 14px; }
.lwa-hp-start, .lwa-hp-click-btn, .lwa-hp-next, .lwa-hp-restart-mock {
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.lwa-hp-start { background: #0F2A44; color: #fff; flex: 1 1 200px; }
.lwa-hp-click-btn { background: #5BD46D; color: #0F2A44; flex: 2 1 260px; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.lwa-hp-click-btn.is-registered { transform: scale(0.98); box-shadow: 0 0 0 8px rgba(91,212,109,0.22); }
.lwa-hp-next, .lwa-hp-restart-mock { background: #eef4ef; color: #0F2A44; }
.lwa-hp-next[hidden] { display:none !important; }
.lwa-hp-click-btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.lwa-hp-status {
  margin-top: 14px;
  padding: 12px 16px;
  background: #f0f4f8;
  border: 1px solid rgba(15,42,68,.12);
  border-left: 4px solid #0F2A44;
  border-radius: 10px;
  color: #0F2A44;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.lwa-hp-result { margin-top: 14px; }
.lwa-hp-result-box { border-radius: 18px; padding: 16px 18px; font-size: 16px; }
.lwa-hp-result-box p { margin: 8px 0 0; }
.lwa-hp-good { background: rgba(91,212,109,0.14); color: #0F2A44; }
.lwa-hp-bad { background: rgba(229,57,53,0.10); color: #7a1f1b; }
.lwa-hp-error { background: rgba(246,173,85,0.15); color: #6f4d00; }
.lwa-hp-mock-breakdown { margin-top: 14px; display: grid; gap: 8px; }
.lwa-hp-breakdown-row { display:flex; justify-content:space-between; background:#f7fafc; border-radius: 14px; padding: 10px 14px; color:#0F2A44; }
.lwa-hp-empty { background:#fff; border-radius: 18px; padding: 18px; box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.lwa-hp-dashboard-tile,
.lwa-hp-promo-card {
  background: linear-gradient(135deg, #0F2A44 0%, #16395d 100%);
  border-radius: 22px;
  padding: 22px;
  color: #fff;
  box-shadow: 0 12px 30px rgba(15,42,68,0.12);
}
.lwa-hp-dashboard-tile { display:flex; gap:16px; align-items:flex-start; }
.lwa-hp-dashboard-icon {
  width: 52px;
  height: 52px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 16px;
  background: rgba(91,212,109,0.18);
  font-size: 24px;
  flex: 0 0 52px;
}
.lwa-hp-dashboard-body h3,
.lwa-hp-promo-copy h3 { margin: 0 0 8px; color: #fff; }
.lwa-hp-dashboard-body p,
.lwa-hp-promo-copy p { margin: 0 0 14px; color: rgba(255,255,255,0.86); }
.lwa-hp-tile-btn,
.lwa-hp-promo-btn {
  display:inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration:none;
  font-weight:700;
  background:#5BD46D;
  color:#0F2A44;
}
.lwa-hp-promo-card { display:flex; justify-content:space-between; gap:20px; align-items:center; }
.lwa-hp-promo-eyebrow {
  display:inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(91,212,109,0.15);
  color: #d4ffd8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
@keyframes lwaHpFlash {
  from { opacity: 1; }
  to { opacity: 0; }
}
@media (max-width: 700px) {
  .lwa-hp-shell { padding: 16px; border-radius: 18px; }
  .lwa-hp-title { font-size: 24px; }
  .lwa-hp-controls { flex-direction: column; }
  .lwa-hp-start, .lwa-hp-click-btn, .lwa-hp-next, .lwa-hp-restart-mock { width: 100%; }
  .lwa-hp-dashboard-tile,
  .lwa-hp-promo-card { flex-direction: column; align-items: flex-start; }
}

.lwa-hp-warn { background: rgba(246,173,85,0.18); color: #6f4d00; }
.lwa-hp-reaction-row { margin-top: 10px; }
.lwa-hp-reaction-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.lwa-hp-reaction-summary { font-weight: 700; }
.lwa-hp-coach { color: inherit; }
.lwa-hp-session-summary {
  margin-top: 14px;
  background: #f7fafc;
  border-radius: 18px;
  padding: 16px 18px;
}
.lwa-hp-session-summary h4 { margin: 0 0 12px; color: #0F2A44; }
.lwa-hp-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}
.lwa-hp-summary-stat {
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  box-shadow: inset 0 0 0 1px rgba(15,42,68,0.06);
}
.lwa-hp-summary-stat span { display:block; font-size: 12px; color: #5f6b7a; margin-bottom: 4px; }
.lwa-hp-summary-stat strong { font-size: 20px; color: #0F2A44; }
.lwa-hp-session-insight, .lwa-hp-session-complete { margin: 12px 0 0; }
.lwa-hp-session-complete { font-weight: 700; color: #0F2A44; }


.lwa-hp-weak-types {
  margin-top: 14px;
  background: #f7fafc;
  border-radius: 18px;
  padding: 16px 18px;
}
.lwa-hp-weak-types h3,
.lwa-hp-weak-types h4 { margin: 0 0 12px; color: #0F2A44; }
.lwa-hp-weak-list { display: grid; gap: 10px; }
.lwa-hp-weak-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15,42,68,0.06);
}
.lwa-hp-weak-icon { font-size: 20px; line-height: 1; margin-top: 2px; }
.lwa-hp-weak-copy strong { display:block; color:#0F2A44; margin-bottom: 4px; }
.lwa-hp-weak-copy p { margin:0; color:#5f6b7a; }
.lwa-hp-weak-item--missed_hazards,
.lwa-hp-weak-item--late_reactions,
.lwa-hp-weak-item--pattern_clicking { background: rgba(229,57,53,0.08); }
.lwa-hp-weak-item--slightly_late { background: rgba(246,173,85,0.14); }
.lwa-hp-weak-empty { margin: 0; color: #5f6b7a; }

.lwa-hp-video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b1e32;
  overflow: hidden;
  border-radius: 18px;
}
.lwa-hp-video,
.lwa-hp-youtube,
.lwa-hp-youtube iframe {
  width: 100%;
  height: 100%;
  display: block;
}
.lwa-hp-youtube iframe {
  border: 0;
}
.lwa-hp-click-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  cursor: crosshair;
  background: transparent;
}
.lwa-hp-video-flash {
  z-index: 4;
  pointer-events: none;
}


.lwa-hp-dashboard-stats-kicker {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #5BD46D;
  margin-bottom: 4px;
}
.lwa-hp-dashboard-stats-card {
  background: #fff;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(15,42,68,0.08);
}
.lwa-hp-dashboard-stat--pass strong { color: #2a9d5c; }
.lwa-hp-dashboard-stat--fail strong { color: #64748b; }

.lwa-hp-gate-card,.lwa-hp-rules-card{max-width:900px;margin:0 auto;background:#fff;border-radius:24px;padding:24px;box-shadow:0 12px 30px rgba(15,42,68,.08)}
.lwa-hp-gate-eyebrow{display:inline-block;margin-bottom:10px;padding:6px 10px;border-radius:999px;background:rgba(91,212,109,.16);color:#0F2A44;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.lwa-hp-gate-card h2,.lwa-hp-rules-card h2{margin:0 0 10px;color:#0F2A44}.lwa-hp-gate-card p{margin:0;color:#5f6b7a}.lwa-hp-gate-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}.lwa-hp-gate-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 18px;border-radius:999px;text-decoration:none;font-weight:800}.lwa-hp-gate-btn--primary{background:#0F2A44;color:#fff}.lwa-hp-gate-btn--ghost{background:#edf2f6;color:#0F2A44}.lwa-hp-rules-list{margin:0;padding-left:18px;color:#334155;display:grid;gap:10px}.lwa-hp-rules-card .lwa-hp-gate-btn{margin-top:18px}@media (max-width:700px){.lwa-hp-gate-actions{flex-direction:column}.lwa-hp-gate-btn{width:100%}}


.lwa-hp-practice-upsell { margin-top: 18px; }
.lwa-hp-practice-upsell-card {
  border: 1px solid rgba(91,212,109,0.45);
  background: linear-gradient(180deg, rgba(91,212,109,0.10), rgba(15,42,68,0.03));
  border-radius: 18px;
  padding: 18px;
  text-align: center;
}
.lwa-hp-practice-upsell-eyebrow {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(91,212,109,0.16);
  color: #0F2A44;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.lwa-hp-practice-upsell-title { margin: 12px 0 8px; font-size: 22px; }
.lwa-hp-practice-upsell-text { margin: 0 0 14px; }
.lwa-hp-practice-upsell-btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  background: #0F2A44;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.lwa-hp-practice-upsell-btn:hover { opacity: .95; }


/* ── Mobile live mode ─────────────────────────────────────────────────────
   Two blocks only: portrait/default and landscape.
   All earlier versioned blocks (v1.8.8, v1.8.13, v1.8.14) are removed.
   The class .lwa-hp-mobile-live on the shell is the single source of truth.
   ───────────────────────────────────────────────────────────────────────── */

@media (max-width: 1024px), (hover: none) and (pointer: coarse) {

  /* Shell becomes a fixed full-screen overlay */
  .lwa-hp-shell.lwa-hp-mobile-live {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    overflow: hidden !important;
  }

  /* Hide everything except the video and the action bar */
  .lwa-hp-shell.lwa-hp-mobile-live .lwa-hp-intro,
  .lwa-hp-shell.lwa-hp-mobile-live .lwa-hp-meta-bar,
  .lwa-hp-shell.lwa-hp-mobile-live .lwa-hp-player-notice,
  .lwa-hp-shell.lwa-hp-mobile-live .lwa-hp-status,
  .lwa-hp-shell.lwa-hp-mobile-live .lwa-hp-result,
  .lwa-hp-shell.lwa-hp-mobile-live .lwa-hp-practice-upsell,
  .lwa-hp-shell.lwa-hp-mobile-live .lwa-hp-start,
  .lwa-hp-shell.lwa-hp-mobile-live .lwa-hp-next {
    display: none !important;
  }

  /* Video fills the screen above the pinned action bar (portrait: bar ≈ 72px) */
  .lwa-hp-shell.lwa-hp-mobile-live .lwa-hp-video-wrap {
    width: 100% !important;
    height: calc(100vh - 72px - env(safe-area-inset-bottom, 0px)) !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }

  /* Action bar pinned to the bottom edge */
  .lwa-hp-shell.lwa-hp-mobile-live .lwa-hp-controls {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1000000 !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    align-items: stretch !important;
    margin: 0 !important;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    background: #fff !important;
    box-shadow: 0 -6px 20px rgba(15, 42, 68, 0.12) !important;
    box-sizing: border-box !important;
  }

  /* Single action button (click-to-respond) — fills the whole bar */
  .lwa-hp-shell.lwa-hp-mobile-live .lwa-hp-click-btn,
  .lwa-hp-shell.lwa-hp-mobile-live .lwa-hp-restart-mock {
    flex: 1 1 auto !important;
    width: auto !important;
    min-height: 48px !important;
    height: 48px !important;
    max-height: 48px !important;
    padding: 0 16px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
  }

  body.lwa-hp-body-mobile-live {
    background: #fff;
  }
}

/* Landscape: bar is shorter — give more height to the video */
@media (max-width: 1024px) and (orientation: landscape),
       (hover: none) and (pointer: coarse) and (orientation: landscape) {

  /* Bar ≈ 58px in landscape */
  .lwa-hp-shell.lwa-hp-mobile-live .lwa-hp-video-wrap {
    height: calc(100vh - 58px - env(safe-area-inset-bottom, 0px)) !important;
  }

  .lwa-hp-shell.lwa-hp-mobile-live .lwa-hp-controls {
    padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 8px !important;
  }

  .lwa-hp-shell.lwa-hp-mobile-live .lwa-hp-click-btn,
  .lwa-hp-shell.lwa-hp-mobile-live .lwa-hp-restart-mock {
    min-height: 42px !important;
    height: 42px !important;
    max-height: 42px !important;
    font-size: 15px !important;
    border-radius: 10px !important;
  }
}


/* v1.8.19 mobile video overlay controls */
.lwa-hp-overlay-controls {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 25;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 0 !important;
}

.lwa-hp-overlay-controls::before {
  content: "";
  position: absolute;
  inset: -4px;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 14px;
  backdrop-filter: blur(2px);
  z-index: -1;
}

.lwa-hp-overlay-controls .lwa-hp-start,
.lwa-hp-overlay-controls .lwa-hp-click-btn,
.lwa-hp-overlay-controls .lwa-hp-next {
  flex: 1 1 0;
  height: 44px;
  max-height: 44px;
  min-height: 44px;
  padding: 0 12px;
  font-size: 14px;
  line-height: 1;
  border-radius: 10px;
  margin: 0 !important;
}

.lwa-hp-overlay-controls .lwa-hp-start {
  max-width: 220px;
}

.lwa-hp-overlay-controls .lwa-hp-next[hidden],
.lwa-hp-overlay-controls .lwa-hp-click-btn[hidden],
.lwa-hp-overlay-controls .lwa-hp-start[hidden] {
  display: none !important;
}

.lwa-hp-video-wrap {
  margin-bottom: 0 !important;
}

@media (max-width: 1024px) {
  .lwa-hp-shell {
    overflow: hidden;
  }
  .lwa-hp-overlay-controls {
    left: 8px;
    right: 8px;
    bottom: 8px;
    gap: 6px;
  }
  .lwa-hp-overlay-controls::before {
    inset: -3px;
    border-radius: 12px;
  }
  .lwa-hp-overlay-controls .lwa-hp-start,
  .lwa-hp-overlay-controls .lwa-hp-click-btn,
  .lwa-hp-overlay-controls .lwa-hp-next {
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    font-size: 13px;
    border-radius: 9px;
  }
  .lwa-hp-status {
    margin-top: 10px;
  }
}

@media (max-width: 1024px) and (orientation: landscape) {
  .lwa-hp-overlay-controls {
    left: 6px;
    right: 6px;
    bottom: 6px;
    gap: 6px;
  }
  .lwa-hp-overlay-controls .lwa-hp-start,
  .lwa-hp-overlay-controls .lwa-hp-click-btn,
  .lwa-hp-overlay-controls .lwa-hp-next {
    height: 38px;
    min-height: 38px;
    max-height: 38px;
    font-size: 12px;
    padding: 0 10px;
  }
}


/* v1.8.21 minimal transparent overlay tweak */
.lwa-hp-overlay-controls::before {
  background: rgba(0, 0, 0, 0.22) !important;
}


/* v1.8.22 lock overlay properly in plugin */
.lwa-hp-video-wrap { position: relative !important; }

.lwa-hp-video-wrap > .lwa-hp-controls,
.lwa-hp-video-wrap > .lwa-hp-overlay-controls,
.lwa-hp-shell .lwa-hp-video-wrap > .lwa-hp-controls,
.lwa-hp-shell .lwa-hp-video-wrap > .lwa-hp-overlay-controls {
  position: absolute !important;
  left: 10px !important;
  right: 10px !important;
  bottom: 10px !important;
  z-index: 9999 !important;
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  width: auto !important;
  float: none !important;
  clear: none !important;
  flex-wrap: nowrap !important;
}

.lwa-hp-video-wrap > .lwa-hp-controls::before,
.lwa-hp-video-wrap > .lwa-hp-overlay-controls::before,
.lwa-hp-shell .lwa-hp-video-wrap > .lwa-hp-controls::before,
.lwa-hp-shell .lwa-hp-video-wrap > .lwa-hp-overlay-controls::before {
  content: "" !important;
  position: absolute !important;
  inset: -4px !important;
  background: rgba(0, 0, 0, 0.22) !important;
  border-radius: 14px !important;
  backdrop-filter: blur(2px) !important;
  z-index: -1 !important;
}

.lwa-hp-video-wrap > .lwa-hp-controls button,
.lwa-hp-video-wrap > .lwa-hp-overlay-controls button,
.lwa-hp-shell .lwa-hp-video-wrap > .lwa-hp-controls button,
.lwa-hp-shell .lwa-hp-video-wrap > .lwa-hp-overlay-controls button {
  flex: 1 1 0 !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  font-size: 14px !important;
  border-radius: 10px !important;
  margin: 0 !important;
  padding: 0 12px !important;
}

@media (max-width: 1024px) and (orientation: landscape) {
  .lwa-hp-video-wrap > .lwa-hp-controls button,
  .lwa-hp-video-wrap > .lwa-hp-overlay-controls button,
  .lwa-hp-shell .lwa-hp-video-wrap > .lwa-hp-controls button,
  .lwa-hp-shell .lwa-hp-video-wrap > .lwa-hp-overlay-controls button {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    font-size: 12px !important;
  }
}


/* v1.8.24 mobile unsupported notice */
.lwa-hp-mobile-block {
  max-width: 760px;
  margin: 18px auto;
  padding: 24px;
  background: #fff7f0;
  border: 1px solid #f0d3b8;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  text-align: center;
}
.lwa-hp-mobile-block__title {
  margin: 0 0 10px;
  color: #0F2A44;
  font-size: 32px;
  line-height: 1.1;
}
.lwa-hp-mobile-block__text {
  margin: 0;
  color: #5b6673;
  font-size: 18px;
}
@media (max-width: 700px) {
  .lwa-hp-mobile-block {
    margin: 14px;
    padding: 18px;
    border-radius: 16px;
  }
  .lwa-hp-mobile-block__title {
    font-size: 28px;
  }
  .lwa-hp-mobile-block__text {
    font-size: 17px;
  }
}

/* ── Click counter overlay ─────────────────────────────────────────────── */
.lwa-hp-click-counter {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 30;
  color: #ff2222;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 1px 1px 2px rgba(0,0,0,.9);
  pointer-events: none;
}
