/* ============================================================
   What Would Joe Say? - interactive coaching game
   Builds on AOA tokens/fonts/buttons from styles.css.
   All game classes are namespaced jg- / vs-.
   ============================================================ */

body {
  background: var(--aoa-ink-deep);
  color: #fff;
}

/* ---- Page shell ---- */
.jg-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(245,147,27,0.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(2,102,150,0.20), transparent 60%),
    var(--aoa-ink);
  overflow-x: hidden;
}

/* ---- Minimal top bar ---- */
.jg-top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  height: 68px; padding: 0 32px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(22,27,33,0.55), rgba(22,27,33,0));
}
.jg-top--session {
  height: 72px;
}
.jg-top__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
}
.jg-top__logo img {
  height: 38px;
  width: auto;
}
.jg-top__back {
  position: absolute;
  left: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(10,13,17,0.44);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 14px 32px rgba(0,0,0,0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}
.jg-top__back:hover {
  background: rgba(10,13,17,0.66);
  border-color: rgba(255,255,255,0.24);
  transform: scale(1.04);
}
.jg-top__back:active {
  transform: scale(0.98);
}

/* ---- Main / stage ---- */
.jg-main {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 22px 24px 36px;
}
.jg-stage { width: 100%; max-width: 1240px; margin: 0 auto; }
.jg-play {
  width: 100%;
  max-width: min(1240px, calc(100vw - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(320px, 32vw, 400px);
  gap: 22px;
  align-items: start;
}
.jg-play__media { min-width: 0; }
.jg-session-title {
  grid-column: 1 / -1;
  margin: 0;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.08;
  letter-spacing: 0;
  color: #fff;
  text-align: center;
}
.jg-play__video { min-width: 0; }
.jg-side {
  min-width: 0;
  height: auto;
  min-height: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.jg-side > .jg-panel {
  height: var(--jg-video-h, auto);
}
.jg-side__footer {
  height: 34px;
  margin: 0 4px;
  display: flex;
  align-items: center;
  justify-content: stretch;
}

/* ============================================================
   INTRO
   ============================================================ */
.jg-intro {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  isolation: isolate;
}
.jg-intro__media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  filter: saturate(0.92);
}
.jg-intro__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(22,27,33,0.55) 0%, rgba(22,27,33,0.35) 35%, rgba(34,46,60,0.92) 100%),
    linear-gradient(90deg, rgba(34,46,60,0.55), rgba(34,46,60,0.15));
}
.jg-intro__inner {
  position: relative; z-index: 2;
  padding: 64px 56px 56px;
  display: flex; flex-direction: column;
  min-height: 560px;
  justify-content: flex-end;
}
.jg-intro__eyebrow { color: var(--aoa-orange); margin-bottom: 22px; }
.jg-intro__title {
  font-family: var(--font-head); font-weight: 300;
  font-size: 76px; line-height: 0.98; letter-spacing: -0.015em;
  color: #fff; margin: 0 0 22px;
  max-width: 14ch;
}
.jg-intro__hook {
  font-size: 19px; line-height: 1.55; color: rgba(255,255,255,0.92);
  max-width: 60ch; margin: 0 0 36px;
}
.jg-steps {
  display: flex; gap: 14px; margin-bottom: 40px; flex-wrap: wrap;
}
.jg-step {
  display: flex; align-items: flex-start; gap: 12px;
  flex: 1 1 180px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 16px 18px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.jg-step__num {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
  color: var(--aoa-ink); background: var(--aoa-orange);
}
.jg-step__text { font-size: 14px; line-height: 1.4; color: rgba(255,255,255,0.95); }
.jg-intro__cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.jg-intro__meta {
  font-family: var(--font-body); font-weight: 700; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.jg-btn-lg { height: 56px; padding: 0 36px; font-size: 16px; border-radius: 14px; }

.jg-error {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 54px 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}
.jg-error__eyebrow { color: var(--aoa-orange); margin-bottom: 16px; }
.jg-error__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: 0;
  color: #fff;
  margin: 0 0 14px;
}
.jg-error__body {
  color: rgba(255,255,255,0.74);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

/* ============================================================
   HOME LIBRARY
   ============================================================ */
.jg-home {
  width: 100%;
}
.jg-library {
  padding: clamp(12px, 2.5vw, 28px) 2px 0;
}
.jg-session-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.jg-session-card {
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  text-align: left;
  color: #fff;
  background: transparent;
  border: 0;
  min-width: 0;
  cursor: pointer;
}
.jg-session-card__poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #111820;
  box-shadow: 0 12px 34px rgba(0,0,0,0.24);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.jg-session-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 260ms ease, filter 180ms ease;
}
.jg-session-card:hover .jg-session-card__poster,
.jg-session-card:focus-visible .jg-session-card__poster {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.36);
}
.jg-session-card:hover .jg-session-card__poster img,
.jg-session-card:focus-visible .jg-session-card__poster img {
  transform: scale(1.04);
  filter: brightness(0.82);
}
.jg-session-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(245,147,27,0.96);
  box-shadow: 0 8px 22px rgba(0,0,0,0.32);
  opacity: 0;
  transform: translate(-50%, -44%);
  transition: opacity 180ms ease, transform 180ms ease;
}
.jg-session-card:hover .jg-session-card__play,
.jg-session-card:focus-visible .jg-session-card__play {
  opacity: 1;
  transform: translate(-50%, -50%);
}
.jg-session-card[data-progress="1"] .jg-session-card__poster img {
  filter: saturate(0.9) brightness(0.82);
}
.jg-session-progressbar {
  width: min(76%, 320px);
  height: 5px;
  margin: 10px auto 0;
  display: flex;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.18);
}
.jg-session-progressbar__segment {
  flex: 1 1 0;
  min-width: 0;
  background: rgba(255,255,255,0.22);
}
.jg-session-progressbar__segment[data-state="correct"] {
  background: var(--aoa-orange);
}
.jg-session-progressbar__segment[data-state="different"] {
  background: var(--aoa-blue-link);
}
.jg-session-progressbar__segment[data-state="empty"] {
  background: rgba(255,255,255,0.22);
}
.jg-session-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 12px 2px 0;
  text-align: center;
}
.jg-session-card__title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.18;
  color: #fff;
}
.jg-explain-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--aoa-orange);
  border: 1px solid rgba(255,255,255,0.24);
  box-shadow: 0 10px 24px rgba(245,147,27,0.28);
}
.jg-explain-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  padding: 7px 10px;
  border-radius: 6px;
  background: rgba(10,13,17,0.94);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,0.28);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(4px, -50%);
  transition: opacity 160ms ease, transform 160ms ease;
}
.jg-explain-icon:hover::after,
.jg-session-card:hover .jg-explain-icon::after {
  opacity: 1;
  transform: translate(0, -50%);
}

/* ============================================================
   VIDEO FRAME (custom chrome over local video)
   ============================================================ */
.jg-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.jg-video-host,
.jg-yt-host { position: absolute; inset: 0; }
.jg-video-host video,
.jg-video__media,
.jg-video__youtube,
.jg-video-host iframe,
.jg-yt-host iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.jg-video-host video,
.jg-video__media { object-fit: cover; }
.jg-video-host iframe { pointer-events: none; }
.jg-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 400ms ease;
  pointer-events: none;
}
/* click-catcher: blocks native media clicks */
.jg-catch { position: absolute; inset: 0; z-index: 3; }

.jg-manual-start {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  background: rgba(22,27,33,0.18);
  pointer-events: none;
}
.jg-manual-start__button {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--aoa-orange);
  border: 3px solid rgba(255,255,255,0.9);
  box-shadow: 0 18px 44px rgba(0,0,0,0.34);
  pointer-events: auto;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.jg-manual-start__button:hover,
.jg-manual-start__button:focus-visible {
  transform: scale(1.04);
  box-shadow: 0 20px 52px rgba(0,0,0,0.4);
}

.jg-video__scrim {
  position: absolute; inset: 0; z-index: 4;
  background: linear-gradient(180deg, rgba(22,27,33,0.35), rgba(22,27,33,0.62));
  opacity: 0; pointer-events: none;
  transition: opacity 320ms ease;
}
.jg-video__scrim[data-on="1"] { opacity: 1; }

/* HUD */
.jg-hud {
  position: absolute; z-index: 6; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: flex-end;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(22,27,33,0.5), rgba(22,27,33,0));
  pointer-events: none;
}
.jg-hud > * { pointer-events: auto; }
.jg-hud__right { display: flex; align-items: center; gap: 12px; }
.jg-volume-control {
  height: 34px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: transparent;
  border: 1px solid transparent;
  transition: gap 180ms ease, padding 180ms ease, background 180ms ease, border-color 180ms ease;
}
.jg-volume-control:hover,
.jg-volume-control:focus-within {
  gap: 9px;
  padding: 0 4px 0 12px;
  background: rgba(22,27,33,0.68);
  border-color: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.jg-volume-slider {
  appearance: none;
  -webkit-appearance: none;
  min-width: 0;
  width: 0;
  height: 18px;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: width 180ms ease, opacity 120ms ease;
}
.jg-volume-control:hover .jg-volume-slider,
.jg-volume-control:focus-within .jg-volume-slider {
  width: 86px;
  opacity: 1;
  pointer-events: auto;
}
.jg-volume-slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.38);
}
.jg-volume-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.28);
}
.jg-volume-slider::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.38);
}
.jg-volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.28);
}
.jg-iconbtn {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(22,27,33,0.5);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 200ms ease, border-color 200ms ease;
}
.jg-volume-control:hover .jg-iconbtn,
.jg-volume-control:focus-within .jg-iconbtn {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.jg-iconbtn:hover { background: rgba(22,27,33,0.75); }

/* center loading / reveal caption */
.jg-center {
  position: absolute; inset: 0; z-index: 5;
  display: grid; place-items: center; text-align: center;
  pointer-events: none;
}
.jg-loading {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  color: rgba(255,255,255,0.8);
}
.jg-spinner {
  width: 38px; height: 38px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: var(--aoa-orange);
  animation: jg-spin 0.9s linear infinite;
}
@keyframes jg-spin { to { transform: rotate(360deg); } }

.jg-caption {
  position: absolute; z-index: 6; left: 50%; top: 18px;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 9px;
  height: 34px; padding: 0 18px; border-radius: 999px;
  background: rgba(245,147,27,0.92); color: #fff;
  font-family: var(--font-head); font-weight: 500; font-size: 13px;
  box-shadow: 0 6px 20px rgba(22,27,33,0.4);
  animation: jg-cap-in 360ms cubic-bezier(0.32,0.72,0.24,1) both;
}
.jg-caption .jg-rec {
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  animation: jg-blink 1.1s steps(1) infinite;
}
@keyframes jg-blink { 50% { opacity: 0.25; } }
@keyframes jg-cap-in { from { opacity: 0; transform: translate(-50%, -8px); } }

.jg-state-overlay {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(22,27,33,0.66);
  border: 2px solid rgba(255,255,255,0.22);
  box-shadow: 0 18px 44px rgba(0,0,0,0.34);
  transform: translate(-50%, -50%);
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: jg-state-in 220ms ease both;
}
.jg-state-overlay[data-state="question"] {
  background: rgba(245,147,27,0.96);
  border-color: rgba(255,255,255,0.28);
  color: #fff;
}
.jg-state-overlay[data-state="match"] {
  background: rgba(245,147,27,0.96);
  border-color: rgba(255,255,255,0.28);
}
.jg-state-overlay[data-state="different"] {
  background: rgba(2,102,150,0.96);
  border-color: rgba(255,255,255,0.26);
}
.jg-state-overlay[data-state="complete"] {
  width: 86px;
  height: 86px;
  background: rgba(245,147,27,0.98);
  border: 3px solid rgba(255,255,255,0.96);
  box-shadow: 0 0 0 8px rgba(245,147,27,0.24), 0 20px 52px rgba(0,0,0,0.36);
}
@keyframes jg-state-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.86); }
}

/* ---- progress timeline ---- */
.jg-timeline {
  position: relative;
  margin: 16px 4px 0;
  height: 34px;
  display: flex; align-items: center;
}
.jg-timeline__track {
  position: relative; width: 100%; height: 7px; border-radius: 999px;
  background: rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.jg-timeline__fill {
  position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px;
  background: var(--aoa-orange);
  transition: width 90ms linear;
}
.jg-marker {
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  cursor: pointer;
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  z-index: 2;
  width: 26px; height: 26px; border-radius: 50%;
  background: #34465c; border: 4px solid rgba(255,255,255,0.42);
  box-shadow: 0 0 0 4px rgba(34,46,60,0.85);
  transition: border-color 200ms ease, background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.jg-marker[data-result="match"] { background: var(--aoa-orange); border-color: var(--aoa-orange); color: #fff; }
.jg-marker[data-result="different"] { background: var(--aoa-blue-link); border-color: var(--aoa-blue-link); color: #fff; }
.jg-marker[data-current="1"] {
  z-index: 4;
  transform: translate(-50%,-50%) scale(1.18);
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(34,46,60,0.95), 0 0 0 7px rgba(255,255,255,0.16);
}
.jg-marker:hover {
  z-index: 8;
  border-color: #fff;
  transform: translate(-50%, -50%) scale(1.18);
}
.jg-marker[data-current="1"]:hover { transform: translate(-50%, -50%) scale(1.35); }
.jg-marker:focus-visible {
  z-index: 9;
  outline: 2px solid #fff;
  outline-offset: 4px;
}
.jg-marker__icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

/* ---- feedback overlay ---- */
.jg-overlay {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  padding: clamp(18px, 3vw, 44px);
  background: rgba(22,27,33,0.74);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: jg-overlay-in 220ms ease both;
}
.jg-overlay__card {
  width: min(1120px, calc(100vw - 48px));
  max-height: calc(100dvh - 48px);
  overflow: auto;
  overscroll-behavior: contain;
  background: rgba(22,27,33,0.94);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 18px;
  padding: clamp(22px, 2.6vw, 38px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.42);
}
.jg-overlay__body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
  align-items: stretch;
}
.jg-overlay__body[data-explanations="0"] {
  grid-template-columns: minmax(0, 760px);
}
.jg-overlay__moves {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
@keyframes jg-overlay-in { from { opacity: 0; transform: translateY(8px); } }

/* ============================================================
   DECISION / FEEDBACK PANELS
   ============================================================ */
.jg-panel {
  margin: 0;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 18px;
  height: 100%;
  max-height: none;
  overflow: hidden;
  overscroll-behavior: contain;
  box-sizing: border-box;
  animation: jg-panel-in 420ms cubic-bezier(0.32,0.72,0.24,1) both;
}
.jg-decision-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  overflow: hidden;
}
@keyframes jg-panel-in { from { opacity: 0; transform: translateX(12px); } }
.jg-cue {
  font-family: var(--font-body); font-weight: 700; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--aoa-orange); margin: 0 0 12px;
}
.jg-clientline {
  font-family: var(--font-head); font-weight: 300;
  font-size: clamp(19px, 1.75vw, 26px); line-height: 1.22; letter-spacing: 0;
  color: #fff; margin: 0;
  text-wrap: pretty;
}
.jg-clientline__who {
  display: block; font-family: var(--font-body); font-weight: 700;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-top: 14px;
}
.jg-prompt {
  display: block;
  margin: 0;
  font-family: var(--font-body); font-weight: 700; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.62);
}

.jg-options {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.jg-opt {
  min-height: 0;
  display: flex; align-items: center; gap: 11px; text-align: left;
  background: rgba(255,255,255,0.94);
  border: 1.5px solid transparent;
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--aoa-body);
  transition: transform 200ms cubic-bezier(0.32,0.72,0.24,1),
              box-shadow 200ms ease, border-color 200ms ease, background 200ms ease, opacity 200ms ease;
}
.jg-opt:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--aoa-orange); }
.jg-opt:disabled { cursor: default; }
.jg-opt__badge {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 600; font-size: 12px;
  background: var(--aoa-pale); color: var(--aoa-ink);
  transition: background 200ms ease, color 200ms ease;
}
.jg-opt:hover .jg-opt__badge { background: var(--aoa-orange); color: #fff; }
.jg-opt__text {
  font-family: var(--font-head); font-weight: 400;
  font-size: clamp(12.5px, 1.04vw, 14px);
  line-height: 1.24; color: var(--aoa-ink);
}

/* post-pick option states */
.jg-opt[data-mark="joe"] { border-color: var(--aoa-orange); background: #fff; }
.jg-opt[data-mark="joe"] .jg-opt__badge { background: var(--aoa-orange); color: #fff; }
.jg-opt[data-mark="yours"] { border-color: var(--aoa-blue-link); }
.jg-opt[data-dim="1"] { opacity: 0.5; }
.jg-opt[data-mark] { transform: none; box-shadow: none; }

/* ---- feedback ---- */
.jg-fb__verdict {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-bottom: 10px;
}
.jg-fb__icon {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
}
.jg-fb__icon[data-joe="1"] { background: var(--aoa-orange); }
.jg-fb__icon[data-joe="0"] { background: var(--aoa-blue-link); }
.jg-fb__verdict-title {
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(19px, 1.65vw, 23px);
  line-height: 1.1;
  color: #fff; margin: 0; text-align: center;
}
.jg-feedback-panel__body {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.jg-feedback-panel {
  overflow: visible;
}
.jg-feedback-panel__moves {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jg-move {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 11px; padding: 11px 12px; margin-bottom: 0;
}
.jg-move[data-kind="joe"] {
  border-color: var(--aoa-orange);
  background: rgba(245,147,27,0.09);
}
.jg-move__label,
.jg-choice-note__label,
.jg-explanation__label {
  display: block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.jg-move__label {
  margin-bottom: 6px;
}
.jg-move[data-kind="joe"] .jg-move__label { color: var(--aoa-orange); }
.jg-move[data-kind="yours"] .jg-move__label { color: rgba(255,255,255,0.6); }
.jg-move__text,
.jg-choice-note__text,
.jg-explanation__text {
  font-family: var(--font-head); font-weight: 400;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.22;
  color: #fff;
  margin: 0;
}
.jg-move__text {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.jg-choice-note {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.10);
}
.jg-choice-note__label {
  flex: 0 0 auto;
  color: rgba(255,255,255,0.52);
}
.jg-choice-note__text {
  min-width: 0;
  color: rgba(255,255,255,0.9);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jg-explanation {
  position: relative;
  margin: 0;
  padding: 12px 44px 13px 12px;
  border-radius: 12px;
  border: 1px solid rgba(245,147,27,0.68);
  background:
    linear-gradient(135deg, rgba(245,147,27,0.16), rgba(255,255,255,0.045) 46%, rgba(255,255,255,0.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 12px 26px rgba(17,24,32,0.16);
}
.jg-explanation__copy {
  min-width: 0;
}
.jg-explanation__head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-bottom: 8px;
}
.jg-explanation__source {
  position: absolute;
  top: 11px;
  right: 11px;
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  outline: none;
  cursor: help;
}
.jg-explanation__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--aoa-orange);
  box-shadow: 0 8px 18px rgba(245,147,27,0.22);
}
.jg-explanation__source:focus-visible .jg-explanation__icon {
  box-shadow: 0 0 0 3px rgba(255,255,255,0.24), 0 8px 18px rgba(245,147,27,0.22);
}
.jg-source-popover {
  position: absolute;
  right: -2px;
  bottom: calc(100% + 10px);
  width: min(360px, calc(100vw - 48px));
  max-height: min(48vh, 340px);
  overflow: auto;
  padding: 12px 13px 13px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(17,24,32,0.97);
  box-shadow: 0 18px 44px rgba(0,0,0,0.36);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  z-index: 20;
}
.jg-source-popover::after {
  content: "";
  position: absolute;
  right: 11px;
  bottom: -6px;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  background: rgba(17,24,32,0.97);
  border-right: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.jg-explanation__source:hover .jg-source-popover,
.jg-explanation__source:focus-visible .jg-source-popover,
.jg-explanation__source:focus-within .jg-source-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.jg-source-popover__title {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
}
.jg-source-line {
  display: block;
  margin-top: 7px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.36;
  color: rgba(255,255,255,0.84);
  text-align: left;
}
.jg-source-line:first-of-type {
  margin-top: 0;
}
.jg-source-speaker {
  display: inline;
  margin-right: 5px;
  font-weight: 800;
}
.jg-source-line[data-speaker="joe"] .jg-source-speaker {
  color: #7ee0a3;
}
.jg-source-line[data-speaker="brett"] .jg-source-speaker {
  color: var(--aoa-orange);
}
.jg-explanation__label {
  color: var(--aoa-orange);
}
.jg-explanation__text {
  color: rgba(255,255,255,0.94);
  text-wrap: pretty;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.jg-explanation__avatar {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 2px solid rgba(255,255,255,0.78);
  box-shadow: 0 8px 16px rgba(17,24,32,0.2);
}
.jg-waiting-panel {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.jg-waiting-panel__meta {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.48);
}
.jg-fb__continue {
  width: 100%;
  height: 34px;
  padding: 0 18px;
  border-radius: 999px;
}

.jg-complete-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.jg-complete-panel__hero {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.jg-complete-panel__hero .jg-cue {
  margin-bottom: 5px;
}
.jg-complete-panel__title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(22px, 1.95vw, 29px);
  line-height: 1.1;
  letter-spacing: 0;
  color: #fff;
  margin: 0;
  text-wrap: balance;
}
.jg-complete-score {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.045);
}
.jg-complete-score__cell {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  padding: 18px 14px;
  text-align: center;
}
.jg-complete-score__num {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(42px, 4.4vw, 58px);
  line-height: 1;
  color: var(--aoa-orange);
}
.jg-complete-score__label {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.58);
}
.jg-complete-panel__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.jg-complete-panel__library,
.jg-complete-panel__restart {
  width: 100%;
  height: 40px;
  border-radius: 999px;
}
.jg-complete-panel__library svg {
  transform: rotate(180deg);
}
.jg-danger-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid rgba(255,255,255,0.42);
  background: rgba(255,255,255,0.94);
  color: #9d2727;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.jg-danger-btn:hover {
  background: #9d2727;
  border-color: #9d2727;
  color: #fff;
}

/* ============================================================
   RESULTS
   ============================================================ */
.jg-results { max-width: 860px; margin: 0 auto; text-align: center; }
.jg-results__eyebrow { color: var(--aoa-orange); margin-bottom: 22px; }
.jg-results__title {
  font-family: var(--font-head); font-weight: 300;
  font-size: 56px; line-height: 1.04; letter-spacing: -0.01em; color: #fff;
  margin: 0 0 18px; text-wrap: balance;
}
.jg-results__sub { font-size: 18px; line-height: 1.55; color: rgba(255,255,255,0.85); max-width: 60ch; margin: 0 auto 34px; }

.jg-scorecard {
  display: inline-flex; align-items: stretch; gap: 0;
  border: 1px solid rgba(255,255,255,0.14); border-radius: 16px;
  overflow: hidden; margin-bottom: 44px;
  background: rgba(255,255,255,0.04);
}
.jg-scorecard__cell { padding: 22px 34px; display: flex; flex-direction: column; gap: 6px; }
.jg-scorecard__cell + .jg-scorecard__cell { border-left: 1px solid rgba(255,255,255,0.14); }
.jg-scorecard__num { font-family: var(--font-head); font-weight: 300; font-size: 44px; line-height: 1; color: var(--aoa-orange); }
.jg-scorecard__lbl { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.6); font-weight: 700; }

.jg-recap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  text-align: left; margin-bottom: 18px;
}
.jg-recap__card {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px; padding: 20px 22px;
}
.jg-recap__tag {
  font-family: var(--font-body); font-weight: 700; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--aoa-orange);
  margin: 0 0 8px;
}
.jg-recap__text { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,0.85); margin: 0; }
.jg-view-note {
  font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.6);
  max-width: 64ch; margin: 0 auto 44px;
}
.jg-view-note b { color: rgba(255,255,255,0.92); font-weight: 600; }

/* email capture */
.jg-capture {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 44px 40px;
  margin-bottom: 26px;
}
.jg-capture__title { font-family: var(--font-head); font-weight: 400; font-size: 30px; color: #fff; margin: 0 0 12px; }
.jg-capture__body { font-size: 16px; line-height: 1.55; color: rgba(255,255,255,0.82); max-width: 52ch; margin: 0 auto 26px; }
.jg-form {
  display: flex; gap: 8px; width: 100%; max-width: 460px; margin: 0 auto;
  background: #fff; border-radius: 14px; padding: 5px;
}
.jg-form input {
  flex: 1; border: 0; background: transparent; height: 46px;
  padding: 0 18px; font: inherit; font-size: 15px; color: var(--aoa-body-2);
}
.jg-form input:focus { outline: none; }
.jg-form .btn { height: 46px; border-radius: 11px; }
.jg-capture__fine { font-size: 12px; color: rgba(255,255,255,0.55); margin: 16px 0 0; }
.jg-capture__success {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.jg-capture__check {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--aoa-orange); color: #fff;
}
.jg-results__foot { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }
.jg-textlink {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; color: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.25); padding-bottom: 2px;
  transition: color 200ms ease, border-color 200ms ease;
}
.jg-textlink:hover { color: #fff; border-color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .jg-play {
    grid-template-columns: 1fr;
    max-width: min(1000px, calc(100vw - 32px));
  }
  .jg-side {
    height: auto;
  }
  .jg-side > .jg-panel {
    height: auto;
  }
  .jg-side__footer {
    height: auto;
    margin: 0;
    justify-content: flex-start;
  }
  .jg-panel {
    height: auto;
    max-height: none;
  }
}
@media (max-width: 880px) {
  .jg-top {
    height: 58px;
    padding: 0 18px;
  }
  .jg-top--session {
    height: 60px;
  }
  .jg-top__logo img {
    height: 32px;
  }
  .jg-top__back {
    left: 18px;
    width: 42px;
    height: 42px;
  }
  .jg-main {
    align-items: flex-start;
    padding: 10px 16px 34px;
  }
  .jg-stage { max-width: 100%; }
  .jg-play {
    gap: 12px;
  }
  .jg-session-title {
    font-size: 30px;
    line-height: 1.05;
  }
  .jg-timeline {
    margin-top: 10px;
  }
  .jg-side {
    gap: 12px;
  }
  .jg-session-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
  }
  .jg-intro__inner { padding: 40px 28px 36px; min-height: 480px; }
  .jg-intro__title { font-size: 50px; }
  .jg-intro__hook { font-size: 17px; }
  .jg-panel { padding: 18px; }
  .jg-overlay {
    align-items: start;
    overflow: auto;
    padding: 12px;
  }
  .jg-overlay__card {
    width: 100%;
    max-height: none;
    overflow: visible;
    padding: 18px 18px 20px;
    border-radius: 13px;
  }
  .jg-overlay__body { grid-template-columns: 1fr; }
  .jg-overlay .jg-fb__icon { flex-basis: 42px; width: 42px; height: 42px; }
  .jg-overlay .jg-fb__verdict-title { font-size: 26px; }
  .jg-overlay .jg-move { padding: 14px 16px; }
  .jg-overlay .jg-move__text { font-size: 20px; }
  .jg-clientline { font-size: 22px; }
  .jg-options { grid-template-columns: 1fr; }
  .jg-results__title { font-size: 40px; }
  .jg-recap { grid-template-columns: 1fr; }
  .jg-scorecard__cell { padding: 18px 24px; }
  .jg-capture { padding: 32px 22px; }
  .jg-form { flex-direction: column; background: transparent; padding: 0; gap: 10px; }
  .jg-form input { background: #fff; border-radius: 12px; height: 50px; }
  .jg-form .btn { height: 50px; }
}
@media (max-width: 560px) {
  .jg-top {
    height: 54px;
  }
  .jg-top--session {
    height: 56px;
  }
  .jg-top__logo img {
    height: 30px;
  }
  .jg-top__back {
    left: 16px;
    width: 38px;
    height: 38px;
  }
  .jg-main {
    padding: 8px 14px 28px;
  }
  .jg-play {
    max-width: calc(100vw - 28px);
    gap: 10px;
  }
  .jg-session-title {
    font-size: 28px;
  }
  .jg-session-grid {
    grid-template-columns: 1fr;
  }
  .jg-intro__title { font-size: 40px; }
  .jg-steps { gap: 10px; }
  .jg-step { flex-basis: 100%; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .jg-panel, .jg-caption { animation: none; }
  .jg-spinner { animation-duration: 2s; }
}
