/* ==========================================================
   SCREEN BREAK — LEAD AGENT
   Shared-screen game board. Loaded only on lead-agent.html.
   Built to be read across a room and across a video call:
   big type, high contrast, nothing that needs a mouse hover.
   ========================================================== */

/* The tokens sit on :root, not on .la-wrap, because the modals are appended to
   <body> — outside the wrap — and would otherwise lose every colour. */
:root {
  --la-blue: #0F55BE;
  --la-ink: #011E2E;
  --la-line: #D7E3F3;
  --la-cream: #F7F9FC;
  --la-card: #FFFFFF;
}
.la-wrap {
  background: var(--la-cream);
  padding-block: clamp(28px, 5vw, 64px) clamp(56px, 8vw, 104px);
  min-height: 70vh;
}
.la-wrap * { box-sizing: border-box; }

#la-root {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

/* ---------- shared bits ---------- */

.la-wrap .la-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--la-blue);
}
.la-wrap h1 { font-family: var(--font-head); font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; line-height: 1.06; color: var(--navy); margin: 8px 0 0; }
.la-wrap h2 { font-family: var(--font-head); font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; color: var(--navy); margin: 0; }
.la-wrap h3 { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--navy); margin: 0; }
.la-wrap p, .la-wrap li, .la-wrap dd, .la-wrap dt { margin: 0; color: var(--la-ink); }

.la-wrap .la-lede { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: var(--muted); margin-top: 12px !important; }
.la-wrap .la-hint { font-size: 15px; line-height: 1.6; color: var(--muted); margin-top: 14px !important; }
.la-wrap .la-note { font-size: 15px; line-height: 1.6; font-style: italic; margin-top: 14px !important; }

.la-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border: 2px solid transparent; border-radius: 999px;
  font-family: var(--font-body); font-size: 15px; font-weight: 800;
  letter-spacing: 0.01em; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.la-btn-primary { background: var(--la-blue); color: #fff; }
.la-btn-primary:hover { background: #0B3F92; }
.la-btn-primary[disabled] { background: #7E9BC9; cursor: progress; }
.la-btn-ghost { background: #fff; color: var(--la-blue); border-color: var(--la-line); }
.la-btn-ghost:hover { border-color: var(--la-blue); }

/* ---------- gate ---------- */

.la-gate {
  max-width: 560px; margin-inline: auto;
  background: var(--la-card); border: 1px solid var(--la-line);
  border-radius: 24px; padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 18px 50px rgba(1, 35, 106, .07);
  text-align: center;
}
.la-gate form { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.la-gate label { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.la-gate input {
  width: 100%; min-height: 54px; padding: 0 18px;
  border: 2px solid var(--la-line); border-radius: 14px;
  background: #fff; color: var(--la-ink);
  font-family: var(--font-body); font-size: 19px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.la-gate input:focus { border-color: var(--la-blue); outline: none; }
.la-gate .la-btn { margin-top: 6px; }
.la-wrap .la-gate-status { min-height: 22px; font-size: 14px; line-height: 1.5; }
.la-wrap .la-gate-status.is-busy { color: var(--muted); }
.la-wrap .la-gate-status.is-bad  { color: #B3261E; font-weight: 700; }
.la-wrap .la-gate-help { margin-top: 22px !important; font-size: 14px; color: var(--muted); }

/* ---------- resume bar ---------- */

.la-resume {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  justify-content: space-between;
  background: #FFF6E0; border: 1px solid #F0DCA8;
  border-radius: 14px; padding: 12px 16px; margin-bottom: 20px;
  font-size: 15px; font-weight: 600; color: #6B4E00;
}

/* ---------- setup ---------- */

.la-setup {
  --la-pad: clamp(24px, 4vw, 48px);
  background: var(--la-card); border: 1px solid var(--la-line);
  border-radius: 24px; padding: var(--la-pad);
  box-shadow: 0 18px 50px rgba(1, 35, 106, .06);
  overflow: hidden;
}
.la-setup h2 { margin-top: 36px; }

/* The opening screen gets the artwork beside the copy. It is decoration only:
   every word stays in the copy column, so nothing sits on top of the picture. */
.la-open-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.58fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
  position: relative;
  margin: calc(var(--la-pad) * -1) calc(var(--la-pad) * -1) 0;
  padding: var(--la-pad);
}
.la-open-copy { position: relative; z-index: 1; min-width: 0; }
.la-open-art {
  position: relative;
  align-self: stretch;
  min-height: 320px;
  margin: calc(var(--la-pad) * -1) calc(var(--la-pad) * -1) calc(var(--la-pad) * -1) 0;
  background: url("../images/lead-agent-opening.jpg") right center / cover no-repeat;
}
.la-open-art::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 84%, #FFFFFF 100%),
    linear-gradient(90deg, #FFFFFF 0%, rgba(255,255,255,.72) 22%, rgba(255,255,255,0) 62%);
}
@media (max-width: 880px) {
  .la-open-hero { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .la-open-art {
    order: -1;
    min-height: 0; height: clamp(130px, 26vw, 200px);
    margin: calc(var(--la-pad) * -1) calc(var(--la-pad) * -1) 24px;
    background-position: center 30%;
  }
  .la-open-art::before {
    background: linear-gradient(180deg, rgba(255,255,255,0) 58%, rgba(255,255,255,.92) 100%);
  }
}
.la-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.la-meta span {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px;
  border-radius: 999px; background: var(--tint); color: var(--navy-2);
  font-size: 13px; font-weight: 700;
}
.la-teamlist { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.la-teamrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  background: var(--la-cream); border: 1px solid var(--la-line);
  border-radius: 14px; padding: 10px 12px;
}
.la-teamname {
  flex: 1 1 200px; min-width: 0; min-height: 44px; padding: 0 14px;
  border: 2px solid var(--la-line); border-radius: 10px; background: #fff;
  font-family: var(--font-body); font-size: 16px; font-weight: 700; color: var(--la-ink);
}
.la-teamname:focus { border-color: var(--la-blue); outline: none; }
.la-swatches { display: flex; gap: 6px; }
.la-sw {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid transparent; padding: 0; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
.la-sw.on { border-color: var(--la-ink); }
.la-x {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--la-line); background: #fff;
  font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer;
}
.la-x:hover { border-color: #B3261E; color: #B3261E; }
#la-addteam { margin-top: 14px; }
.la-setup-go { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- board bar ---------- */

.la-board { margin-bottom: 18px; overflow-x: auto; }
.la-steps { display: flex; align-items: flex-start; gap: 0; min-width: max-content; }
.la-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1 0 auto; min-width: 88px; position: relative; }
.la-step::before {
  content: ""; position: absolute; top: 7px; left: -50%; width: 100%; height: 2px;
  background: var(--la-line);
}
.la-step:first-child::before { display: none; }
.la-step-dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--la-line); position: relative; z-index: 1;
}
.la-step-label { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; color: #5D7390; text-align: center; }
.la-step.done .la-step-dot { background: var(--la-blue); border-color: var(--la-blue); }
.la-step.done .la-step-label { color: var(--muted); }
.la-step.now .la-step-dot { background: var(--green); border-color: var(--green); transform: scale(1.25); }
.la-step.now .la-step-label { color: var(--navy); }

/* ---------- stage ---------- */

.la-stage {
  background: var(--la-card); border: 1px solid var(--la-line);
  border-radius: 24px; padding: clamp(20px, 3.4vw, 40px);
  box-shadow: 0 18px 50px rgba(1, 35, 106, .06);
}
.la-stage-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; }
.la-timerbox { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.la-timer {
  font-family: var(--font-head); font-size: clamp(34px, 5vw, 54px); font-weight: 800;
  line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums;
}
.la-timer.is-low { color: #B3261E; }
.la-timer.is-done { color: #B3261E; }
#la-timer-btn { min-height: 40px; padding: 0 16px; font-size: 14px; }

.la-prompt {
  margin-top: 24px; padding: 18px 20px;
  background: var(--la-blue); color: #fff;
  border-radius: 16px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55;
}
.la-prompt strong { display: block; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; opacity: .8; margin-bottom: 4px; }

/* ---------- desk / tasks ---------- */

.la-desk { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 24px; }
.la-task {
  background: var(--la-cream); border: 1px solid var(--la-line);
  border-left: 5px solid var(--la-blue);
  border-radius: 14px; padding: 16px;
}
.la-task-key {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 7px; flex: none;
  background: var(--la-blue); color: #fff;
  font-size: 14px; font-weight: 800;
}
.la-task-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.la-task-chan { font-size: 10px; font-weight: 800; letter-spacing: 0.14em; color: var(--la-blue);
  background: #fff; border: 1px solid #C9DCF6; border-radius: 4px; padding: 2px 7px; }
.la-task-when { font-size: 11px; color: #5D7390; margin-left: auto; white-space: nowrap; }
.la-wrap .la-task-from { display: block; font-size: 12px; font-weight: 700; color: var(--navy-2); margin-bottom: 4px; }
.la-task h3 { margin-bottom: 8px; }
.la-task p { font-size: 14px; line-height: 1.55; color: var(--muted); }
.la-task.is-small { border-left-width: 5px; }
.la-task.is-small h3 { margin: 8px 0 6px; }

/* the calendar card: the 10:00 line is the one that matters */
.la-cal { margin: 0 0 10px; padding: 10px 12px; list-style: none;
  background: #fff; border: 1px solid var(--la-line); border-radius: 10px; }
.la-wrap .la-cal li { font-size: 13.5px; line-height: 1.5; font-weight: 700; color: var(--navy);
  padding: 4px 0; border-bottom: 1px dashed var(--la-line); }
.la-wrap .la-cal li:last-child { border-bottom: 0; }

.la-toolstrip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.la-toolstrip-label { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.la-chip {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px;
  border-radius: 999px; background: var(--tint); border: 1px solid var(--la-line);
  color: var(--navy-2); font-size: 13px; font-weight: 700;
}

/* ---------- tools ---------- */

.la-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 24px; }
.la-tool {
  background: #fff; border: 2px solid var(--la-line);
  border-radius: 14px; padding: 16px;
}
.la-tool h3 { color: var(--la-blue); margin-bottom: 6px; }
.la-tool p { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* ---------- AI panel / message ---------- */

.la-ai {
  margin-top: 24px; padding: 20px 22px;
  background: #0B1B33; color: #E8F0FF;
  border-radius: 16px; border-left: 5px solid var(--green);
}
.la-ai-tag { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.18em; color: var(--green); margin-bottom: 8px; }
.la-wrap .la-ai p { color: #E8F0FF; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.6; }

.la-msg {
  margin-top: 24px; padding: 18px 20px;
  background: var(--la-cream); border: 1px solid var(--la-line);
  border-radius: 16px 16px 16px 4px; max-width: 640px;
}
.la-msg-from { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.la-msg p { font-size: clamp(16px, 1.6vw, 18px); line-height: 1.6; }

/* ---------- options ---------- */

.la-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 20px; }
.la-option {
  background: #fff; border: 2px solid var(--la-blue);
  border-radius: 14px; padding: 18px; text-align: center;
}
.la-option h3 { font-size: 17px; letter-spacing: 0.06em; margin-bottom: 6px; }
.la-option p { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ---------- reveal ---------- */

.la-reveal {
  margin-top: 28px; padding: clamp(20px, 3vw, 32px);
  background: #EAF2FF; border: 2px solid #BBD3F5;
  border-radius: 20px;
}
.la-reveal h2 { margin-top: 6px; }
.la-highlight {
  margin-top: 18px; padding: 18px 20px;
  background: var(--navy); color: #fff;
  border-radius: 14px; font-size: clamp(17px, 1.8vw, 21px); font-weight: 700; line-height: 1.45;
}
.la-reveal ul { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.la-reveal li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.55; }
.la-reveal li::before { content: ""; position: absolute; left: 6px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--la-blue); }
.la-pairs { margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; }
.la-pairs > div { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr); gap: 4px 18px; padding-bottom: 10px; border-bottom: 1px solid #C9DCF6; }
.la-pairs > div:last-child { border-bottom: 0; padding-bottom: 0; }
.la-pairs dt { font-weight: 800; color: var(--navy); font-size: 15px; }
.la-pairs dd { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------- scoring ---------- */

.la-scoring { margin-top: 28px; padding-top: 24px; padding-bottom: 76px; border-top: 2px dashed var(--la-line); }
.la-scoring-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.la-undo { min-height: 38px; padding: 0 14px; font-size: 13px; }
.la-scoregrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.la-scorecard {
  --c: var(--la-blue);
  background: #fff; border: 1px solid var(--la-line);
  border-top: 5px solid var(--c); border-radius: 14px; padding: 14px;
}
.la-scorecard-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.la-scorecard-top strong { flex: 1; min-width: 0; font-size: 16px; color: var(--navy); overflow-wrap: anywhere; }
.la-teamdot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex: none; display: inline-block; }
.la-pts { font-family: var(--font-head); font-size: 26px; font-weight: 800; color: var(--c); font-variant-numeric: tabular-nums; }
.la-awards { display: flex; flex-direction: column; gap: 6px; }
.la-award {
  display: flex; align-items: center; gap: 8px; width: 100%;
  min-height: 42px; padding: 6px 12px; text-align: left;
  border: 1px solid var(--la-line); border-radius: 10px;
  background: var(--la-cream); color: var(--navy);
  font-family: var(--font-body); font-size: 13px; font-weight: 800; cursor: pointer;
}
.la-award span { font-weight: 600; color: var(--muted); line-height: 1.35; }
.la-award:hover { background: var(--tint); border-color: var(--la-blue); }
.la-award:active { transform: translateY(1px); }
/* the bonus is optional, so it reads as an aside — not as a suggestion */
.la-award-bonus { background: #fff; border-color: var(--la-line); }
.la-award-bonus span { color: var(--muted); }
.la-award-bonus::after { content: "bonus"; margin-left: auto; font-size: 10px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; color: #8095B0; }
.la-award-bonus.on { background: #EAF3FF; border-color: var(--c); }
.la-award-bonus.on::after { color: var(--c); }

/* ---------- controls ---------- */

.la-controls { position: sticky; bottom: 0; z-index: 5; margin-top: 18px; padding: 12px 0 0; }
.la-controls-in {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  background: #fff; border: 1px solid var(--la-line);
  border-radius: 999px; padding: 10px;
  box-shadow: 0 10px 30px rgba(1, 35, 106, .12);
}

/* ---------- modal ---------- */

.la-modal {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(1, 30, 46, .6);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; overflow-y: auto;
}
.la-modal-card {
  background: #fff; border-radius: 22px; padding: clamp(22px, 4vw, 36px);
  max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto;
}
.la-modal-card ol { margin: 18px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.la-modal-card li { font-size: 16px; line-height: 1.55; }
.la-modal-card .la-btn { margin-top: 24px; }

/* ---------- finale ---------- */

.la-pieces, .la-ripple { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.la-piece {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 2px solid var(--la-blue);
  background: #fff; color: var(--la-blue);
  font-size: 14px; font-weight: 800; letter-spacing: 0.1em;
}
.la-piece.is-on { background: var(--la-blue); color: #fff; }

.la-finale {
  background: var(--la-card); border: 1px solid var(--la-line);
  border-radius: 24px; padding: clamp(24px, 4vw, 52px);
  box-shadow: 0 18px 50px rgba(1, 35, 106, .06);
  text-align: center;
}
.la-finale h1 { margin-top: 28px; }
.la-wrap .la-under { max-width: 640px; margin: 14px auto 0 !important; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: var(--muted); }
.la-final-scores { margin-top: 36px; }
.la-finale .la-controls-in { margin-top: 32px; box-shadow: none; border-radius: 16px; }

.la-table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.la-table th { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 8px 10px; }
.la-table td { padding: 12px 10px; border-top: 1px solid var(--la-line); font-size: 16px; text-align: left; }
.la-table td:first-child { width: 40px; color: var(--muted); font-weight: 800; }
.la-table td:last-child { width: 80px; text-align: right; font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--navy); }
.la-table tr.win td { background: #F2FAE8; }
.la-table tr.win td:last-child { color: #4A7A18; }
.la-table .la-teamdot { margin-right: 8px; vertical-align: baseline; }

/* ---------- narrow screens ---------- */

@media (max-width: 720px) {
  .la-stage-head { grid-template-columns: minmax(0, 1fr); }
  .la-timerbox { flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; }
  .la-controls-in { border-radius: 18px; }
}

@media print {
  .la-controls, .la-scoring, .la-timerbox { display: none !important; }
}

/* ---------- the host's cue to start the timer ---------- */

.la-wrap .la-hostaction {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 10px !important; padding: 12px 16px;
  background: #FFF6E0; border: 1px solid #F0DCA8; border-radius: 12px;
  font-size: 15px; line-height: 1.5; color: #6B4E00; font-weight: 600;
}
.la-wrap .la-hostaction span {
  flex: none; font-size: 10px; font-weight: 800; letter-spacing: 0.14em;
  background: #6B4E00; color: #FFF6E0; border-radius: 4px; padding: 3px 7px; margin-top: 2px;
}
#la-timer-btn { min-height: 42px; padding: 0 18px; font-size: 14px; white-space: nowrap; }
#la-timer-btn.is-waiting { box-shadow: 0 0 0 0 rgba(15, 85, 190, .5); animation: la-pulse 2.4s ease-out infinite; }
@keyframes la-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(15, 85, 190, .45); }
  70%  { box-shadow: 0 0 0 12px rgba(15, 85, 190, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 85, 190, 0); }
}
@media (prefers-reduced-motion: reduce) { #la-timer-btn.is-waiting { animation: none; } }

/* ---------- TOOL UP: tasks beside tools ---------- */

.la-matchgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 24px; }
.la-colhead { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--la-blue); margin-bottom: 10px; }
.la-mini { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; margin-bottom: 8px;
  background: var(--la-cream); border: 1px solid var(--la-line); border-radius: 11px; }
.la-mini-tool { background: #fff; border-color: #C9DCF6; }
.la-mini strong { display: block; font-family: var(--font-head); font-size: 15px; color: var(--navy); }
.la-mini-tool strong { color: var(--la-blue); }
.la-mini > div > span { display: block; font-size: 13px; line-height: 1.45; color: var(--muted); margin-top: 2px; }

/* ---------- recording each team's answer ---------- */

.la-capture {
  margin-top: 28px; padding: 20px; border-radius: 16px;
  background: var(--la-cream); border: 2px solid var(--la-line);
}
.la-cap-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 14px; }
.la-cap-hint { font-size: 13.5px; color: var(--muted); }

.la-caprow {
  --c: var(--la-blue);
  display: grid; grid-template-columns: minmax(130px, 190px) minmax(0, 1fr) minmax(110px, 170px);
  gap: 10px 16px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--la-line);
}
.la-caprow:last-child { border-bottom: 0; padding-bottom: 0; }
.la-capname { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--navy);
  font-size: 15px; overflow-wrap: anywhere; }
.la-mark { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.la-mark.is-yes { background: #DFF3CE; color: #3A6614; }
.la-mark.is-no  { background: #FBDAD7; color: #9B1C12; }

.la-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.la-pick {
  position: relative; min-height: 42px; padding: 0 14px;
  border: 2px solid var(--la-line); border-radius: 10px; background: #fff;
  font-family: var(--font-body); font-size: 14px; font-weight: 800; color: var(--navy);
  cursor: pointer;
}
.la-pick:hover { border-color: var(--la-blue); }
.la-pick.on { background: var(--c); border-color: var(--c); color: #fff; }
.la-pick em {
  position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px;
  border-radius: 50%; background: var(--navy); color: #fff;
  font-size: 11px; font-style: normal; font-weight: 800; line-height: 19px; text-align: center;
}
.la-clear { min-height: 42px; padding: 0 12px; border: 0; background: none; cursor: pointer;
  font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--muted);
  text-decoration: underline; }
.la-clear:hover { color: #B3261E; }

.la-said {
  font-family: var(--font-head); font-size: 15px; font-weight: 800; color: var(--navy);
  letter-spacing: 0.04em; text-align: right; overflow-wrap: anywhere;
}
.la-said.is-empty { font-family: var(--font-body); font-size: 13px; font-weight: 500;
  color: #5D7390; font-style: italic; letter-spacing: 0; }

/* ---------- points as ticks, not counters ---------- */

.la-award.on { background: #EAF3FF; border-color: var(--c); color: var(--navy); }
.la-award.is-suggested { border-color: var(--green); border-style: dashed; background: #F6FCEF; }
.la-award.is-suggested::after { content: "suggested"; margin-left: auto; font-size: 10px;
  font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #4A7A18; }
.la-tick { flex: none; min-width: 26px; display: inline-flex; align-items: center;
  justify-content: center; font-weight: 800; color: var(--c); }
.la-award.on .la-tick { color: var(--c); }

@media (max-width: 760px) {
  .la-caprow { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .la-said { text-align: left; }
  .la-matchgrid { gap: 18px; }
}

/* ---------- numbered sections inside a round ---------- */

.la-sectionhead {
  display: flex; align-items: center; gap: 10px;
  margin: 28px 0 12px;
  font-family: var(--font-head); font-size: 14px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy);
}
.la-stepnum {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--la-blue); color: #fff;
  font-size: 13px; letter-spacing: 0; display: inline-flex;
  align-items: center; justify-content: center;
}
.la-sectionhead::after { content: ""; flex: 1; height: 2px; background: var(--la-line); }

.la-writebox {
  padding: 16px 20px; border: 2px dashed var(--la-line); border-radius: 14px;
  background: var(--la-cream);
}
.la-wrap .la-writebox p { font-size: clamp(16px, 1.6vw, 18px); font-weight: 700; color: var(--navy); }
.la-writebox span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }

/* ---------- the clock runs out ---------- */

.la-timesup {
  display: none; align-items: baseline; flex-wrap: wrap; gap: 4px 14px;
  margin-top: 26px; padding: 16px 20px;
  background: #FBE9E7; border: 2px solid #E8A9A0; border-radius: 14px;
}
.la-timesup.is-on { display: flex; }
.la-timesup strong {
  font-family: var(--font-head); font-size: 15px; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase; color: #9B1C12;
}
.la-timesup span { font-size: 15.5px; line-height: 1.5; color: #6B241C; font-weight: 600; }

/* ---------- points stay off the screen until the reveal ---------- */

.la-wrap .la-locked {
  margin-top: 28px !important; padding-top: 22px;
  border-top: 2px dashed var(--la-line);
  font-size: 14px; line-height: 1.55; color: #5D7390; font-style: italic;
}

/* ---------- how many teams ---------- */

.la-count { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.la-cbtn {
  width: 54px; height: 54px; border-radius: 14px;
  border: 2px solid var(--la-line); background: #fff;
  font-family: var(--font-head); font-size: 20px; font-weight: 800; color: var(--navy);
  cursor: pointer;
}
.la-cbtn:hover { border-color: var(--la-blue); }
.la-cbtn.on { background: var(--la-blue); border-color: var(--la-blue); color: #fff; }

/* ---------- before you start ---------- */

.la-before {
  margin: 22px 0; padding: 16px 20px;
  background: #FFF6E0; border: 1px solid #F0DCA8; border-radius: 14px;
}
.la-before-tag {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; background: #6B4E00; color: #FFF6E0;
  border-radius: 4px; padding: 3px 8px; margin-bottom: 8px;
}
.la-wrap .la-before p, .la-modal-card .la-before p {
  font-size: 15px; line-height: 1.55; color: #6B4E00; font-weight: 600;
}
.la-before .la-btn { margin-top: 12px; min-height: 40px; font-size: 13px; }

/* ---------- what the host may show ---------- */

.la-chipmark {
  display: inline-flex; align-items: center; flex: none;
  font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 4px; padding: 4px 8px;
}
.la-chipmark.is-say    { background: rgba(255,255,255,.22); color: #fff; }
.la-modal-card .la-chipmark.is-say { background: var(--la-blue); color: #fff; }
.la-chipmark.is-host   { background: #6B4E00; color: #FFF6E0; }
.la-chipmark.is-reveal { background: var(--la-blue); color: #fff; }
.la-chipmark.is-score  { background: #2F5D0F; color: #F2FAE8; }
.la-chipmark.is-timesup{ background: #9B1C12; color: #FBE9E7; }
/* in the how-to the chip sits beside a line of explanation */
.la-legend li { align-items: flex-start; gap: 14px; }
.la-legend .la-chipmark { margin-top: 3px; width: 146px; justify-content: center; text-align: center; line-height: 1.25; }
.la-legend li > span:last-child { flex: 1; color: var(--muted); }

.la-legend { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.la-legend li { display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 1.5; }
.la-howto-h3 { margin-top: 28px !important; font-size: 17px !important; }

/* ---------- a task per team ---------- */

.la-assignbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin-top: 24px; padding: 12px 14px;
  background: #FFF6E0; border: 1px solid #F0DCA8; border-radius: 12px;
}
.la-modeswitch { display: flex; gap: 0; border: 2px solid #E0CB93; border-radius: 999px; overflow: hidden; }
.la-mode {
  border: 0; background: transparent; cursor: pointer;
  padding: 8px 16px; font-family: var(--font-body); font-size: 13px; font-weight: 800; color: #6B4E00;
}
.la-mode.on { background: #6B4E00; color: #FFF6E0; }
.la-rotate { margin-left: auto; min-height: 38px; padding: 0 14px; font-size: 13px; }

.la-assigns { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 14px; }
.la-assign {
  --c: var(--la-blue);
  background: #fff; border: 1px solid var(--la-line); border-top: 5px solid var(--c);
  border-radius: 14px; padding: 14px 16px;
}
/* the dot carries the team colour; the name stays readable */
.la-assign-team {
  display: flex; align-items: center; gap: 7px; margin-bottom: 10px;
  font-size: 13px; font-weight: 800; color: var(--navy); overflow-wrap: anywhere;
}
.la-assign .la-task-top { margin-bottom: 8px; }
.la-assign h3 { margin-bottom: 5px; }
.la-wrap .la-assign p { font-size: 13.5px; line-height: 1.5; color: var(--muted); }

.la-okline { display: block; margin-top: 5px; font-size: 13px; font-weight: 700; color: var(--la-blue); }

@media (max-width: 720px) {
  .la-assignbar { flex-direction: column; align-items: stretch; }
  .la-rotate { margin-left: 0; }
  .la-modeswitch { justify-content: center; }
}

/* ---------- which tasks the round has played ---------- */

.la-covwrap { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.la-cov {
  width: 26px; height: 26px; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 2px solid #E0CB93; color: #6B4E00;
  font-size: 12px; font-weight: 800;
}
.la-cov.done { background: #6B4E00; border-color: #6B4E00; color: #FFF6E0; }
.la-cov.now  { border-color: var(--la-blue); color: var(--la-blue); box-shadow: 0 0 0 2px rgba(15,85,190,.18); }
/* played before, and on the board again now */
.la-cov.done.now { background: var(--la-blue); border-color: var(--la-blue); color: #fff; }
.la-covtext { margin-left: 6px; font-size: 12px; font-weight: 700; color: #6B4E00; }


/* The closing round. Nothing is scored, so it reads as a list the host works
   through rather than a board teams play on. */
.la-turns { display: grid; gap: 10px; }
@media (min-width: 900px) { .la-turns { grid-template-columns: 1fr 1fr; } }
.la-turn { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px;
  width: 100%; text-align: left; padding: 14px 16px; border: 1.5px solid var(--la-line);
  border-radius: 14px; background: var(--la-card); cursor: pointer; font: inherit;
  transition: border-color 0.15s ease, background 0.15s ease; }
.la-turn:hover { border-color: var(--la-blue); }
.la-turn:focus-visible { outline: 3px solid var(--la-blue); outline-offset: 2px; }
.la-turn-n { width: 30px; height: 30px; border-radius: 50%; background: #E4EEFC;
  color: var(--la-blue); font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center; }
.la-turn-q { color: var(--la-ink); font-size: 15.5px; line-height: 1.4; }
.la-turn-mark { font-family: inherit; font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: #5A7085; white-space: nowrap; }
.la-turn.is-used { background: #EEF5FF; border-color: var(--la-blue); }
.la-turn.is-used .la-turn-q { opacity: 0.6; }
.la-turn.is-used .la-turn-mark { color: var(--la-blue); }

.la-notice p { font-size: 16px; }
.la-takeback { border: 1.5px solid var(--la-line); border-radius: 16px; background: var(--la-card);
  padding: 18px 20px; }
.la-tb-intro { margin: 0 0 14px; }
.la-takeback ol { list-style: none; counter-reset: tb; display: flex; flex-direction: column;
  gap: 12px; margin: 0; padding: 0; }
/* the number in column one, the label and its line stacked in column two.
   Without the explicit placement the line lands under the number and wraps to
   one word per row. */
.la-takeback li { counter-increment: tb; display: grid; grid-template-columns: 28px 1fr;
  column-gap: 12px; row-gap: 2px; }
.la-takeback li::before { content: counter(tb); grid-column: 1; grid-row: 1 / span 2;
  width: 28px; height: 28px; border-radius: 50%; background: var(--la-blue); color: #FFFFFF;
  font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.la-takeback li > strong { grid-column: 2; grid-row: 1; }
.la-takeback li > span { grid-column: 2; grid-row: 2; }
.la-takeback strong { display: block; font-family: inherit; font-size: 13px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--la-blue); }
.la-takeback span { font-size: 15px; line-height: 1.45; }
.la-tb-close { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--la-line);
  font-style: italic; }
.la-closing-line { font-family: inherit; font-size: 17px; font-weight: 700;
  color: var(--la-blue); margin-top: 6px; }


/* WORK, then CALL PLAY ---------------------------------------------------- */

.la-waiting { border: 1.5px dashed var(--la-line); border-radius: 16px; background: var(--la-card);
  padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.la-waiting strong { font-size: 17px; color: var(--la-ink); }
.la-waiting span { font-size: 15px; line-height: 1.5; color: #5A7085; }

.la-saybox { border: 1.5px solid var(--la-line); border-radius: 16px; background: var(--la-card);
  padding: 16px 18px; }
.la-saybox strong { display: block; font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--la-blue); margin-bottom: 4px; }
.la-saybox p { margin: 0; font-size: 16px; }

.la-callbox { border: 1.5px solid var(--la-line); border-radius: 16px; background: var(--la-card);
  padding: 16px 18px; }
.la-callhead { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.la-callhead strong { font-size: 17px; }
.la-callrows { display: grid; gap: 8px; }
@media (min-width: 760px) { .la-callrows { grid-template-columns: 1fr 1fr; } }
.la-callrow { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--la-line);
  border-radius: 12px; padding: 6px 8px 6px 6px; }
.la-callrow.is-in { border-color: var(--la-blue); background: #EEF5FF; }
.la-callrow.is-jump { border-color: #C2410C; background: #FFF4EF; }
.la-callbtn { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; border: 0;
  background: none; font: inherit; font-weight: 700; color: var(--la-ink); cursor: pointer;
  padding: 7px 4px; text-align: left; }
.la-callpos { width: 28px; height: 28px; flex: none; border-radius: 50%; background: #E4EEFC;
  color: var(--la-blue); font-weight: 800; font-size: 14px; display: flex; align-items: center;
  justify-content: center; }
.la-callrow.is-in .la-callpos { background: var(--la-blue); color: #FFFFFF; }
.la-callrow .la-teamdot { background: var(--c); }
.la-jump { flex: none; border: 1px solid var(--la-line); background: transparent; border-radius: 999px;
  font: inherit; font-size: 12px; font-weight: 700; color: #5A7085; padding: 5px 10px; cursor: pointer; }
.la-jump.on { background: #C2410C; border-color: #C2410C; color: #FFFFFF; }
.la-callbtn:focus-visible, .la-jump:focus-visible { outline: 3px solid var(--la-blue); outline-offset: 2px; }
.la-justify { margin: 12px 0 0; padding-top: 11px; border-top: 1px solid var(--la-line);
  font-size: 15px; color: #3A4A5C; }

.la-calltag { font-size: 11px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--la-blue); background: #E4EEFC; border-radius: 999px; padding: 3px 9px; }
.la-calltag.is-jump { color: #FFFFFF; background: #C2410C; }
.la-award-bonus.is-off { opacity: 0.55; cursor: not-allowed; }


/* The opening: who a Lead Agent is, before anybody picks teams ------------ */
.la-wrap .la-mission-h { font-size: clamp(26px, 4vw, 40px); line-height: 1.1; margin: 6px 0 16px; }
.la-open { display: flex; flex-direction: column; gap: 10px; max-width: 62ch; }
.la-open p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--la-ink); }
.la-wrap .la-open-pull { font-weight: 800; color: var(--la-blue); font-size: 19px !important; }
.la-wrap .la-mission { margin: 18px 0 4px; display: inline-block; align-self: flex-start;
  background: var(--la-blue); color: #FFFFFF; font-weight: 800; letter-spacing: 1.2px;
  font-size: 14px; padding: 10px 18px; border-radius: 999px; }
.la-where { margin: 14px 0 6px; border: 1.5px solid var(--la-line); border-radius: 14px;
  background: var(--la-card); max-width: 62ch; }
.la-where summary { cursor: pointer; padding: 12px 16px; font-weight: 700; color: var(--la-blue); }
.la-where summary:focus-visible { outline: 3px solid var(--la-blue); outline-offset: 2px; }
.la-where > p { margin: 0; padding: 0 16px 10px; font-size: 15px; color: #3A4A5C; }
.la-where dl { margin: 0; padding: 0 16px 14px; display: grid; gap: 8px; }
.la-where dl div { display: grid; grid-template-columns: 140px 1fr; gap: 10px; }
.la-where dt { font-weight: 800; font-size: 13px; letter-spacing: 0.8px; color: var(--la-blue); }
.la-where dd { margin: 0; font-size: 15px; }
@media (max-width: 560px) { .la-where dl div { grid-template-columns: 1fr; gap: 2px; } }

/* The host brief in the how-to */
.la-brief { display: grid; gap: 10px; margin: 14px 0; }
.la-brief div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; }
.la-brief dt { font-weight: 800; font-size: 13.5px; color: var(--la-blue); }
.la-brief dd { margin: 0; font-size: 15px; line-height: 1.5; }
@media (max-width: 620px) { .la-brief div { grid-template-columns: 1fr; gap: 2px; } }
.la-fairness { background: #EEF5FF; border-left: 3px solid var(--la-blue); border-radius: 8px;
  padding: 12px 14px; font-size: 15px; margin-top: 14px; }
.la-fairness strong { display: block; margin-bottom: 4px; color: var(--navy); font-size: 14px;
  letter-spacing: .06em; text-transform: uppercase; }
.la-fairness p + p { margin-top: 6px; }
/* Your role, and the short early-call recap under the five steps */
.la-role { margin-top: 6px; }
.la-role p { font-size: 15px; line-height: 1.55; margin-top: 8px; }
.la-early { margin-top: 14px; background: #F7F9FC; border: 1.5px solid var(--la-line);
  border-radius: 12px; padding: 12px 16px; }
.la-early strong { font-size: 14px; color: var(--navy); }
.la-early ul { margin: 6px 0 0; padding-left: 18px; }
.la-early li { font-size: 15px; line-height: 1.5; margin-bottom: 4px; }
.la-falsestart { border: 1.5px solid #E6B9A4; background: #FFF4EF; border-radius: 14px;
  padding: 14px 16px; margin-top: 14px; }
.la-falsestart ul { margin: 8px 0; padding-left: 18px; }
.la-falsestart li { margin-bottom: 5px; font-size: 15px; }
.la-why { font-style: italic; color: #5A3828; font-size: 14.5px; margin: 8px 0 0; }
