/* weekly-mission.css - mobile-first weekly player coach */
:root {
  --wm-bg: #060a06;
  --wm-surface: rgba(255,255,255,.045);
  --wm-surface2: rgba(255,255,255,.075);
  --wm-border: rgba(255,255,255,.08);
  --wm-text: #9db49d;
  --wm-bright: #e6f2e6;
  --wm-muted: #6f8f6f;
  --wm-green: #4caf50;
  --wm-font-display: 'Bricolage Grotesque', sans-serif;
  --wm-font-body: 'Manrope', sans-serif;
}

body {
  background: radial-gradient(circle at 50% 0, rgba(76,175,80,.08), transparent 42%), var(--wm-bg);
  color: var(--wm-text);
  font-family: var(--wm-font-body);
  margin: 0;
}

.wm-hero {
  padding: 28px 20px 22px;
  text-align: center;
}

.wm-back {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  color: var(--wm-muted);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 10px;
}

.wm-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--wm-color) 35%, transparent);
  background: color-mix(in srgb, var(--wm-color) 12%, transparent);
  color: var(--wm-color);
  font-family: var(--wm-font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.wm-hero h1 {
  margin: 14px auto 8px;
  max-width: 560px;
  color: var(--wm-bright);
  font-family: var(--wm-font-display);
  font-size: clamp(31px, 11vw, 54px);
  line-height: .98;
  letter-spacing: 0;
}

.wm-hero p {
  margin: 0 auto;
  max-width: 420px;
  color: var(--wm-muted);
  font-size: 15px;
  line-height: 1.5;
}

.wm-progress {
  max-width: 340px;
  height: 6px;
  margin: 18px auto 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
}

.wm-progress > div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--wm-color), #66bb6a);
  transition: width .3s ease;
}

.wm-progress-label {
  color: var(--wm-muted);
  font-size: 12px;
}

.wm-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px 64px;
}

.wm-role-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-width: none;
}

.wm-role-row::-webkit-scrollbar {
  display: none;
}

.wm-role {
  min-height: 42px;
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 1px solid var(--wm-border);
  border-radius: 999px;
  background: var(--wm-surface);
  color: var(--wm-muted);
  font-family: var(--wm-font-body);
  font-weight: 700;
  cursor: pointer;
}

.wm-role.on {
  border-color: var(--wm-green);
  background: rgba(76,175,80,.12);
  color: #8ee08e;
}

.wm-card {
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid var(--wm-border);
  border-radius: 12px;
  background: var(--wm-surface);
}

.wm-principle {
  border-color: color-mix(in srgb, var(--wm-color) 32%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--wm-color) 10%, transparent), var(--wm-surface));
}

.wm-card-kicker {
  margin-bottom: 7px;
  color: var(--wm-color, var(--wm-green));
  font-family: var(--wm-font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.wm-card-title {
  color: var(--wm-bright);
  font-family: var(--wm-font-display);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.15;
}

.wm-card p {
  margin: 8px 0 0;
  color: var(--wm-text);
  line-height: 1.55;
}

.wm-cue,
.wm-home-note {
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.055);
  color: var(--wm-bright);
  font-weight: 800;
}

.wm-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.wm-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 48px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  color: var(--wm-bright);
}

.wm-check input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--wm-green);
}

.wm-done {
  width: 100%;
  min-height: 50px;
  margin: 0 0 12px;
  border: 1px solid rgba(76,175,80,.3);
  border-radius: 12px;
  background: rgba(76,175,80,.1);
  color: #8ee08e;
  font-family: var(--wm-font-display);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.wm-done.on {
  background: rgba(76,175,80,.22);
  color: #d8ffd8;
}

.wm-q {
  margin-top: 14px;
}

.wm-q-text {
  color: var(--wm-bright);
  font-weight: 800;
  line-height: 1.35;
}

.wm-q-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 9px;
}

.wm-q-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  color: var(--wm-text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.wm-q-opt span {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: var(--wm-bright);
  font-weight: 900;
}

.wm-q-opt.correct {
  border-color: rgba(76,175,80,.55);
  background: rgba(76,175,80,.14);
  color: #9be89b;
}

.wm-q-opt.wrong {
  border-color: rgba(239,83,80,.5);
  background: rgba(239,83,80,.12);
  color: #ffaaa7;
}

.wm-ex {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(76,175,80,.08);
  color: #9ecf9e;
  font-size: 13px;
  line-height: 1.45;
}

.wm-reflect {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.wm-reflect button {
  min-height: 48px;
  border: 1px solid var(--wm-border);
  border-radius: 10px;
  background: var(--wm-surface2);
  color: var(--wm-text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.wm-reflect button.on {
  border-color: var(--wm-green);
  background: rgba(76,175,80,.12);
  color: #d8ffd8;
}

.wm-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.wm-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid var(--wm-border);
  border-radius: 999px;
  background: var(--wm-surface);
  color: var(--wm-bright);
  text-decoration: none;
  font-size: 13px;
}

/* Hub widget */
.wm-hub {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--wm-color) 28%, transparent);
  border-radius: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--wm-color) 12%, transparent), rgba(255,255,255,.035));
  color: inherit;
  text-decoration: none;
}

.wm-hub-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--wm-color) 16%, transparent);
  font-size: 22px;
  flex-shrink: 0;
}

.wm-hub-body {
  flex: 1;
  min-width: 0;
}

.wm-hub-kicker {
  color: var(--wm-color);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.wm-hub-title {
  margin-top: 2px;
  color: var(--bright, var(--wm-bright));
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wm-hub-sub {
  margin-top: 2px;
  color: var(--text2, var(--wm-muted));
  font-size: 12px;
}

.wm-hub-go {
  color: var(--wm-color);
  font-size: 20px;
  font-weight: 900;
}

/* Pitch-Visualizer */
.wm-pitch-card {
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid var(--wm-border);
  border-radius: 12px;
  background: var(--wm-surface);
}

.wm-pitch-copy {
  margin: 8px 0 12px;
  color: var(--wm-text);
  line-height: 1.5;
  font-size: 14px;
}

.wm-mini {
  display: flex;
  gap: 6px;
  margin: 6px 0 12px;
}

.wm-mini-step {
  flex: 1;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wm-border);
  border-radius: 6px;
  background: rgba(255,255,255,.04);
  color: var(--wm-muted);
  font-size: 12px;
  font-weight: 800;
}

.wm-mini-step.on {
  background: rgba(242,201,76,.16);
  border-color: rgba(242,201,76,.42);
  color: #f0c940;
}

.wm-mini-step.done {
  background: rgba(76,175,80,.14);
  border-color: rgba(76,175,80,.42);
  color: #8ee08e;
}

.wm-pitch-wrap {
  margin: 0 0 14px;
}

.wm-pitch {
  position: relative;
  width: 100%;
  aspect-ratio: 10/13;
  min-height: 380px;
  max-height: 68vh;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background:
    linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px) 50% 0/50% 100% no-repeat,
    repeating-linear-gradient(180deg, #14572a 0, #14572a 48px, #177634 48px, #177634 96px);
  isolation: isolate;
}

.wm-pitch::before,
.wm-pitch::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  border: 2px solid rgba(255,255,255,.26);
  z-index: 1;
}

.wm-pitch::before { top: 3%; height: 18%; }
.wm-pitch::after { bottom: 3%; height: 18%; }

.wm-pitch-half {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 2px;
  background: rgba(255,255,255,.22);
  z-index: 1;
}

.wm-pitch-circle {
  position: absolute;
  width: 80px;
  height: 80px;
  left: calc(50% - 40px);
  top: calc(50% - 40px);
  border: 2px solid rgba(255,255,255,.18);
  border-radius: 50%;
  z-index: 1;
}

.wm-marker {
  position: absolute;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.45);
  color: #061006;
  font-size: 11px;
  font-weight: 900;
  z-index: 6;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
  transform: translate(-50%, -50%);
}

.wm-m-mate { background: #8ee08e; }
.wm-m-opp  { background: #ff7a80; }
.wm-m-ghost {
  background: rgba(242,201,76,.16);
  color: #ffe68a;
  border-style: dashed;
}
.wm-m-you {
  background: #f2c94c;
  border-color: #fff;
  box-shadow: 0 0 0 6px rgba(242,201,76,.18), 0 12px 28px rgba(0,0,0,.42);
}
.wm-m-ball {
  width: 16px;
  height: 16px;
  background: #f7faf7;
  box-shadow: 0 0 20px rgba(255,255,255,.35);
}

.wm-arrow {
  position: absolute;
  height: 5px;
  background: #f2c94c;
  border-radius: 999px;
  transform-origin: left center;
  z-index: 5;
  opacity: 0;
  transition: opacity .25s ease;
  box-shadow: 0 0 20px rgba(242,201,76,.25);
}

.wm-arrow::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 12px solid #f2c94c;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  transform: translateY(-50%);
}

.wm-pitch.answered .wm-arrow { opacity: 1; }

.wm-pitch-caption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 8;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  background: rgba(4,8,4,.78);
  backdrop-filter: blur(10px);
  color: #eefbee;
  font-size: 13px;
  line-height: 1.35;
}

.wm-pitch-question {
  margin: 0 0 10px;
  color: var(--wm-bright);
  font-family: var(--wm-font-display);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.wm-pitch-answers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wm-pitch-answer {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  color: var(--wm-text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.wm-pitch-answer span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: var(--wm-bright);
  font-weight: 900;
  flex-shrink: 0;
}

.wm-pitch-answer.good {
  border-color: rgba(76,175,80,.6);
  background: rgba(76,175,80,.16);
  color: #c4eec4;
}

.wm-pitch-answer.bad {
  border-color: rgba(239,83,80,.55);
  background: rgba(239,83,80,.14);
  color: #ffcdca;
}

.wm-pitch-explain {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(76,175,80,.28);
  border-radius: 12px;
  background: rgba(76,175,80,.08);
}

.wm-pitch-explain b {
  display: block;
  margin-bottom: 4px;
  color: #c4eec4;
}

.wm-pitch-explain p {
  margin: 0;
  color: #aac7ad;
  line-height: 1.45;
  font-size: 13px;
}

.wm-pitch-next {
  width: 100%;
  min-height: 50px;
  margin-top: 12px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--wm-green), #2e9f44);
  color: #041004;
  font-family: var(--wm-font-display);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

@media (min-width: 720px) {
  .wm-pitch {
    aspect-ratio: 13/9;
    min-height: 0;
    max-height: none;
  }
  .wm-pitch::before { top: 8%; height: 16%; }
  .wm-pitch::after { bottom: 8%; height: 16%; }
}

@media (max-width: 380px) {
  .wm-wrap {
    padding-left: 12px;
    padding-right: 12px;
  }

  .wm-reflect {
    grid-template-columns: 1fr;
  }

  .wm-hub-title {
    white-space: normal;
  }
}
