/* LIVE TV · Episode 05 "The Mission That Ate Monday" (LS-007, #15507): a copy of the LS-006 page rules (the-47000-surprise/ls-006.css stays untouched), on top of the LS-003 player stylesheet. */
.ls3-bubble[data-who="stanley"] .ls3-bubble__who { color: #138f8a; }
.ls3-bubble[data-who="bleep"] .ls3-bubble__who { color: #d0338f; }
.ls3-bubble[data-who="walter"] .ls3-bubble__who { color: #2a4ba8; }
/* the decision: three options in a row, the inspections as chips under them */
.ls4 .ls3-decide { width: min(980px, calc(100vw - 24px)); }
.ls4 .ls3-decide[hidden] { display: none; }
.ls4 .ls3-decide__opts { flex-wrap: nowrap; gap: 12px; }
.ls4 .ls3-opt { flex: 1 1 0; max-width: none; min-height: 56px; }
.ls4 .ls3-opt--finish { background: #ffd8d0; }
.ls3-decide__chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-top: 12px; }
.ls3-decide__chiplab { font-size: 13px; font-weight: 700; color: #c9c2e8; }
.ls3-chip { font: 800 13px/1 Inter, system-ui, sans-serif; color: var(--aqua); background: rgba(82, 240, 255, 0.08); border: 2px solid var(--aqua); border-radius: 999px; padding: 9px 14px; min-height: 40px; cursor: pointer; }
.ls3-chip:hover, .ls3-chip:focus-visible { background: rgba(82, 240, 255, 0.2); outline: 3px solid var(--amber); outline-offset: 2px; }
.ls3-chip.is-seen { color: var(--go); border-color: var(--go); }
.ls3-chip.is-seen::before { content: '✓ '; }
/* captions (CC) */
.ls4-cc { position: absolute; z-index: 7; left: 50%; transform: translateX(-50%); bottom: calc(clamp(12px, 2.4vh, 28px) + 58px + env(safe-area-inset-bottom)); max-width: min(760px, calc(100vw - 32px));
  margin: 0; padding: 8px 14px; border-radius: 10px; background: rgba(8, 6, 20, 0.86); color: #fff; font-size: clamp(14px, 1.6vw, 18px); font-weight: 600; line-height: 1.35; text-align: center; pointer-events: none; }
.ls4-cc[hidden] { display: none; }
.ls3-player.is-deciding .ls4-cc { display: none; }
.ls3-player.is-cinema:not(.is-peek) .ls4-cc { bottom: calc(14px + env(safe-area-inset-bottom)); }
.ls4-ccbtn { min-width: 52px; }
.ls3-player.ls4 .ls3-note { max-width: 36vw; }
@media (max-width: 760px) { .ls4 .ls3-decide__opts { flex-direction: column; flex-wrap: nowrap; } .ls4 .ls3-opt { flex: 0 0 auto; min-height: 48px; } }
@media (max-width: 560px) {
  .ls4 .ls3-decide { padding: 10px 12px; }
  .ls4 .ls3-opt { padding: 9px 12px; }
  .ls3-decide__chips { gap: 6px; margin-top: 8px; } .ls3-decide__chiplab { width: 100%; text-align: center; font-size: 12px; } .ls3-chip { padding: 8px 10px; font-size: 12.5px; min-height: 44px; }
  .ls4 .ls3-ctl { gap: 6px; }
  .ls4-cc { font-size: 14px; }
}
@media (max-width: 560px) and (max-height: 740px) { .ls4 .ls3-opt span { display: none; } .ls4 .ls3-decide__kick { display: block; } }
/* landscape phones: the panel docks to the right as a column (player `dock`: the camera frames the picture left of it) */
@media (max-height: 500px) and (orientation: landscape) {
  .ls4 .ls3-decide { left: auto; right: max(10px, env(safe-area-inset-right)); top: 10px; bottom: 10px; transform: none; width: min(42vw, 360px); overflow-y: auto; padding: 8px 10px; display: flex; flex-direction: column; justify-content: center; }
  .ls4 .ls3-decide h2 { font-size: 14px; margin: 2px 0 6px; } .ls4 .ls3-decide__kick { font-size: 11px; }
  .ls4 .ls3-decide__opts { flex-direction: column; gap: 6px; } .ls4 .ls3-opt { min-height: 44px; padding: 7px 10px; } .ls4 .ls3-opt strong { font-size: 14px; } .ls4 .ls3-opt span { font-size: 11.5px; }
  .ls3-decide__chips { margin-top: 6px; gap: 5px; } .ls3-decide__chiplab { display: none; } .ls3-chip { min-height: 40px; padding: 6px 9px; font-size: 11.5px; }
  .ls3-player.ls4.is-deciding .ls3-ctl { right: calc(min(42vw, 360px) + 20px); }
  .ls3-player.ls4.is-deciding .ls3-info { max-width: calc(58vw - 30px); }
  .ls3-player.ls4.is-deciding .ls3-cine { visibility: hidden; }
  .ls4-cc { font-size: 13px; padding: 6px 10px; max-width: 70vw; }
}
@media (max-height: 420px) and (orientation: landscape) { .ls4 .ls3-opt span { display: none; } }

/* an open Inspect card during the decision on a portrait phone: the panel keeps only the options (main.js clamps the
   card above them), so the card never covers a choice; Close (or Esc) brings the chips back */
@media (max-width: 560px) and (orientation: portrait) {
  .ls3-player.ls4.is-deciding.is-inspecting .ls3-decide__chips,
  .ls3-player.ls4.is-deciding.is-inspecting .ls3-decide__kick,
  .ls3-player.ls4.is-deciding.is-inspecting .ls3-decide h2,
  .ls3-player.ls4.is-deciding.is-inspecting .ls3-opt span { display: none; }
  .ls3-player.ls4.is-inspecting .ls3-info p { font-size: 14px; line-height: 1.35; }
}
/* very short portrait phones (360x640): the frozen frame above the panel is too small for the scene hotspots, which
   would overlap; the chips in the panel open the same three inspections */
@media (max-width: 560px) and (max-height: 700px) and (orientation: portrait) { .ls3-player.ls4.is-deciding .ls3-hot { display: none; } }

/* owner review 2: the prompt takes focus when a decision opens (no option looks preselected) */
.ls4 .ls3-decide h2:focus { outline: none; }
/* end menu: back to any decision on the path */
.ls3-endmenu__steps { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 8px 0 4px; }
.ls3-endmenu__step { min-height: 44px; font-size: 14px; }
@media (max-width: 560px) { .ls3-endmenu__step { font-size: 12.5px; padding: 8px 12px; } }
@media (max-height: 500px) and (orientation: landscape) { .ls3-endmenu__steps { gap: 6px; margin: 4px 0 2px; } .ls3-endmenu__step { min-height: 40px; font-size: 12px; padding: 6px 10px; } }
.ls3-bubble[data-who="ship1"] .ls3-bubble__who { color: #b5641a; }
.ls3-bubble[data-who="coord1"] .ls3-bubble__who { color: #8a7330; }
.ls3-bubble[data-who="qa9"] .ls3-bubble__who { color: #7a4fc0; }
/* the end card: the episode's closing line, then the owner-approved fiction note, small and unobtrusive */
.ls7-close { display: block; margin-top: 12px; font-size: clamp(13px, 1.4vw, 17px); font-weight: 800; color: #f3e6bd; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
.ls7-fict { display: block; margin-top: 8px; font-size: clamp(11px, 1.1vw, 13px); font-weight: 600; letter-spacing: 0.04em; color: rgba(255, 233, 184, 0.72); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
.ls7-product { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 2px; }
.ls7-product:hover, .ls7-product:focus-visible { text-decoration-color: currentColor; }
/* LS-007's end card carries the closing line and the fiction note, and up to three "back to decision" steps: anchor it by
   its top edge (the shared card is pulled up by -78% of its own height, which clips the title once the card is this tall) */
.ls3-endcard { top: max(12px, env(safe-area-inset-top)); transform: translate(-50%, 0); }
.ls3-endcard h2 { font-size: clamp(22px, 3vw, 40px); }
.ls7-close { margin-top: 8px; } .ls7-fict { margin-top: 4px; }
.ls3-endmenu__steps { gap: 6px; margin: 6px 0 2px; } .ls3-endmenu__step { white-space: nowrap; }
@media (max-height: 500px) and (orientation: landscape) { .ls3-endcard { top: 8px; transform: translate(-50%, 0); } .ls3-endcard h2 { font-size: 20px; } .ls7-close { font-size: 12px; } .ls3-endcard p { font-size: 13px; } }
@media (max-width: 560px) { .ls3-endcard { top: calc(68px + env(safe-area-inset-top)); } }
/* short portrait phones (iPhone SE class): a compact card so three steps + replay still clear the controls */
@media (max-width: 560px) and (max-height: 700px) {
  .ls3-endcard { top: calc(56px + env(safe-area-inset-top)); padding-top: 8px; padding-bottom: 8px; }
  .ls3-endcard h2 { font-size: 20px; } .ls3-endcard p { font-size: 12.5px; margin-top: 4px; }
  .ls7-close { font-size: 12px; margin-top: 4px; } .ls7-fict { font-size: 10.5px; margin-top: 2px; }
  .ls3-endmenu { margin-top: 6px; } .ls3-endmenu__found { font-size: 12px; margin-bottom: 6px; }
  .ls3-endmenu__steps { gap: 4px; margin: 4px 0 2px; } .ls3-endmenu__step { min-height: 36px; font-size: 12px; padding: 5px 10px; }
  .ls3-endmenu__row .ls3-btn { min-height: 36px; font-size: 13px; padding: 6px 12px; }
}
