/* STARNET — warroom.css : the LIVING WAR-ROOM visible layer.
   Always-visible approval hotspot · crew instrument-cluster pulse · cinema mode.
   All themed through the shared phosphor vars; warroom.js builds the DOM. */

/* ---------- APPROVAL HOTSPOT (pinned at the top of COMMS, can't scroll away) ---------- */
#wr-approval {
  flex: 0 0 auto; margin: 0 0 7px; border-radius: 7px; overflow: hidden;
  background: var(--panel); box-shadow: 0 0 0 2px var(--ph-dim), inset 0 0 18px rgba(0, 0, 0, .7);
}
#wr-approval .wrah-hdr {
  display: flex; justify-content: space-between; align-items: baseline;
  color: var(--ph-dim); background: rgba(0, 0, 0, .4); padding: 3px 11px; letter-spacing: 2px; font-size: 13px;
}
#wr-approval.calm .wrah-body { color: var(--ph-dim); font-size: 13px; padding: 8px 11px; line-height: 1.35; }
#wr-approval.pending {
  box-shadow: 0 0 0 2px var(--bad), 0 0 18px rgba(255, 92, 77, .45), inset 0 0 18px rgba(0, 0, 0, .7);
  animation: wrah-pulse 1.2s infinite;
}
#wr-approval.pending .wrah-hdr { color: var(--ink); background: var(--bad); text-shadow: none; }
@keyframes wrah-pulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--bad), 0 0 12px rgba(255, 92, 77, .3), inset 0 0 18px rgba(0, 0, 0, .7); }
  50%      { box-shadow: 0 0 0 2px var(--bad), 0 0 26px rgba(255, 92, 77, .65), inset 0 0 18px rgba(0, 0, 0, .7); }
}
.wrah-who { padding: 8px 11px 4px; color: var(--ph-bright); font-size: 14px; line-height: 1.3; }
.wrah-who b { color: var(--bad); font-weight: normal; }
.wrah-args { color: var(--ph-dim); }
.wrah-btns { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 11px 9px; }
.wrah-btn {
  font: inherit; font-size: 13px; letter-spacing: .5px; cursor: pointer;
  color: var(--ph); background: transparent; border: 1px solid var(--ph-dim); padding: 3px 9px; border-radius: 2px;
}
.wrah-btn:hover { color: var(--ph-bright); border-color: var(--ph); background: var(--ph-faint); }
.wrah-btn.danger { color: var(--gold); border-color: var(--gold); }
.wrah-btn.deny { color: var(--bad); border-color: var(--bad); }
.wrah-done { padding: 7px 11px; font-size: 13px; color: var(--ok, #7bc88a); letter-spacing: .5px; }
.wrah-done.deny { color: var(--bad); }

/* ---------- CREW instrument-cluster pulse (left rail dots, driven by real state) ---------- */
#crew .dot.wr-work  { background: var(--gold); box-shadow: 0 0 7px rgba(var(--gold-rgb), .7); animation: wr-dot 1.1s infinite; }
#crew .dot.wr-think { background: var(--ph-bright); box-shadow: 0 0 6px var(--ph-glow); animation: wr-dot .7s infinite; }
#crew .dot.wr-idle  { background: var(--ok, #7bc88a); box-shadow: 0 0 5px rgba(123, 200, 138, .5); }
#crew .dot.wr-await { background: var(--bad); box-shadow: 0 0 8px rgba(255, 92, 77, .85); animation: wr-dot .5s infinite; }
@keyframes wr-dot { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- CINEMA mode: the living station fills the frame ---------- */
.cam-cine {
  position: absolute; bottom: 7px; right: 12px; pointer-events: auto; z-index: 4;
  font-family: inherit; font-size: 13px; letter-spacing: 1px; cursor: pointer;
  color: var(--ph); background: rgba(3, 2, 1, .6); border: 1px solid var(--ph-dim); padding: 3px 9px; border-radius: 2px;
}
.cam-cine:hover { color: var(--ph-bright); border-color: var(--ph); }
#screen-game.cinema.active { grid-template-columns: 0 1fr 0 !important; grid-template-rows: 0 1fr 0 !important; gap: 0 !important; padding: 0 !important; }
#screen-game.cinema #topbar, #screen-game.cinema #left, #screen-game.cinema #chat-panel, #screen-game.cinema #bottombar { display: none !important; }
#screen-game.cinema #stage-wrap { border-radius: 0; }
#wr-cine-hint {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 60; display: none;
  color: var(--ph-bright); letter-spacing: 2px; background: rgba(0, 0, 0, .5); padding: 3px 14px; border: 1px solid var(--ph-dim);
}

/* ---------- CAMERA MODE chip: the feed's honest "who drives the camera" readout (world.js cameraMode) ---------- */
.cam-mode {
  position: absolute; top: 9px; right: 90px; z-index: 4; pointer-events: none;
  font-size: 13px; letter-spacing: 1px; color: var(--ph); opacity: .75;
  animation: wr-cam-mode 2.4s infinite;
}
@keyframes wr-cam-mode { 0%, 100% { opacity: .8; } 50% { opacity: .4; } }
