/* Training coach marks, display popover, and simplified-console pieces. */

.coach-spot {
  position: fixed; z-index: 70; pointer-events: none;
  border: 2px solid var(--sig); border-radius: 10px;
  box-shadow: 0 0 0 200vmax rgba(0, 0, 0, 0.45), 0 0 24px var(--glow);
  opacity: 0; transition: left 0.35s, top 0.35s, width 0.35s, height 0.35s, opacity 0.3s;
}
.coach-spot.show { opacity: 1; animation: coach-pulse 2.4s ease-in-out infinite; }
@keyframes coach-pulse { 50% { border-color: var(--sig-dim); } }

.coach-card {
  position: fixed; z-index: 71; width: 360px; max-width: calc(100vw - 24px);
  background: var(--panel-2); border: 1px solid var(--sig-dim); border-radius: var(--radius);
  padding: 0.9rem 1rem 1rem; display: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  transition: left 0.35s, top 0.35s;
}
.coach-card.show { display: block; animation: fade 0.3s ease; }
[data-view="tv"] .coach-card { width: 520px; }
.coach-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.coach-x { background: none; border: 0; color: var(--ink-3); cursor: pointer; font-size: 0.78rem; text-decoration: underline; }
.coach-title { font-family: var(--font-display); font-size: 1.5rem; color: var(--sig); line-height: 1.1; margin-bottom: 0.4rem; }
.coach-text { margin: 0 0 0.6rem; line-height: 1.5; }
.coach-hint { margin: -0.2rem 0 0.6rem; color: var(--ink-3); font-size: 0.8rem; }
.coach-wait { color: var(--ink-3); font-size: 0.82rem; animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.4; } }
.coach-done { display: none; margin-top: 0.6rem; color: var(--ok); font-family: var(--font-display); font-size: 1.2rem; }
.coach-done.show { display: block; }

/* Display settings popover */
.popover {
  position: fixed; top: calc(var(--top-h) + 6px); right: 16px; z-index: 72; width: 300px;
  background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 0.8rem; display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.85rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

/* Top bar XP meter, rail teaser */
.xpbar { height: 3px; margin-top: 3px; width: 100%; }
.next-unlock { margin: 1rem 0.8rem 0.5rem; padding: 0.6rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); font-size: 0.82rem; }

/* Simplified receiver */
.rx-target { font-family: var(--font-display); font-size: 1.6rem; color: var(--sig); line-height: 1; }
.cad { display: flex; flex-direction: column; align-items: center; gap: 0; line-height: 1.2; }
.cad small { font-size: 0.6rem; opacity: 0.7; }
.wf-legend { display: flex; justify-content: space-between; color: var(--ink-3); padding-top: 0.25rem; }
.insp-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.6rem; }
.clues { display: flex; flex-direction: column; gap: 0.45rem; }
.clue { border-left: 3px solid var(--line-strong); padding: 0.2rem 0 0.2rem 0.6rem; }
.clue.yes { border-left-color: var(--sig); }
.clue.no { border-left-color: var(--ink-3); }
.clue-q { font-size: 0.72rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }
.clue-a { font-size: 0.95rem; }
.clue-n { font-size: 0.75rem; color: var(--ink-2); }
.choices { display: flex; flex-direction: column; gap: 0.4rem; }
.choice {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 0.5rem 0.7rem; cursor: pointer;
}
.choice span { font-size: 0.95rem; }
.choice small { font-size: 0.72rem; color: var(--ink-3); }
.choice:hover { border-color: var(--sig-dim); }
.choice.sel { border-color: var(--sig); background: var(--sig-faint); }
.choice[data-choice="candidate"] span { color: var(--sig); }
details.raw { margin-top: 0.7rem; font-size: 0.8rem; color: var(--ink-3); }
details.raw summary { cursor: pointer; }
.decwrap { flex: 1; min-height: 300px; display: flex; }
.decwrap .decgrid { flex: 1; }

/* Group briefing (TV) */
.briefing { position: fixed; inset: 0; z-index: 80; display: none; background: var(--bg); padding: 4vh 4vw; }
.briefing.show { display: block; animation: fade 0.4s ease; }
.brief-inner { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 30%); gap: 3vw; }
.brief-main { display: flex; flex-direction: column; justify-content: center; gap: 1.2rem; }
.brief-title { font-family: var(--font-display); font-size: clamp(2.2rem, 4.6vw, 4.6rem); color: var(--sig); line-height: 1.02; }
.brief-text { font-size: clamp(1.05rem, 1.6vw, 1.6rem); max-width: 40ch; line-height: 1.5; margin: 0; }
.brief-art { color: var(--ink-2); max-width: 560px; }
.brief-svg { width: 100%; height: auto; }
.brief-svg .t { fill: currentColor; font: 11px var(--font-mono); opacity: .8; }
.brief-svg .hot { stroke: var(--sig); }
.brief-dots { display: flex; gap: 8px; }
.brief-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.brief-dots i.past { background: var(--sig-dim); }
.brief-dots i.on { background: var(--sig); }
.brief-side { border-left: 1px solid var(--line); padding-left: 2vw; display: flex; flex-direction: column; justify-content: center; gap: 0.35rem; }
.brief-join { font-size: 1.1rem; color: var(--ink); word-break: break-all; }
.brief-code { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 5rem); letter-spacing: 0.25em; color: var(--sig); line-height: 1; }
.brief-roster { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.6rem; }
.brief-player { display: grid; grid-template-columns: 1.4rem 1fr auto; gap: 0.5rem; font-size: 1.1rem; color: var(--ink-3); }
.brief-player.ok { color: var(--ok); }
