/* AI IMPOSTOR: SPACE SHIP — role intro, meeting Q&A + chat, ejection, killed overlay, end screen (owner: flow) */
.flow-screen.active { align-items: center; justify-content: center; flex-direction: column; background: rgba(2, 4, 12, .92); z-index: 2; overflow: hidden; }
.flow-meeting.active { background: rgba(2, 4, 12, .75); }
.fl-por { display: block; }
.fl-shh { font: 700 clamp(64px, 14vw, 140px) var(--font-display); color: #fff; animation: pop-in .4s var(--ease); }
.fl-role { display: flex; flex-direction: column; align-items: center; gap: 14px; animation: fade-in .5s; padding: 16px; text-align: center; }
.fl-role-t { font: 700 clamp(44px, 9vw, 96px) var(--font-display); letter-spacing: .04em; }
.fl-role.crew .fl-role-t { color: var(--cyan); }
.fl-role.imp .fl-role-t { color: var(--red); }
.fl-role-s { font-size: 20px; font-weight: 800; }
.fl-role-h { color: var(--text-dim); }
.fl-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 900px; }
.fl-mate { display: flex; flex-direction: column; align-items: center; font-weight: 800; font-size: 14px; animation: pop-in .5s var(--ease) both; }
.fl-mate.me { transform: scale(1.12); }
.fl-splash { text-align: center; animation: pop-in .35s var(--ease); }
.fl-splash-t { font: 700 clamp(40px, 9vw, 90px) var(--font-display); color: #fff; }
.fl-splash.body .fl-splash-t { color: var(--red); }
.fl-splash.em .fl-splash-t { color: var(--yellow); }
.fl-splash-row { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 14px 0; }
.fl-arrow { font-size: 48px; }
.fl-splash-s { font-size: 20px; font-weight: 800; }
/* voting tablet + chat */
.fl-tab { display: flex; gap: 12px; width: min(1180px, 97vw); height: min(680px, 94vh); padding: 12px; background: linear-gradient(#26304f, #151a2e); }
.fl-tab-main { flex: 1.6; display: flex; flex-direction: column; min-width: 0; }
.fl-tab-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 10px; }
.fl-tab-head b { font: 700 26px var(--font-display); }
.fl-stage { font-weight: 900; color: var(--yellow); }
.fl-cards { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; overflow: auto; }
.fl-card { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: #e6ecf7; color: #10131f; border-radius: 12px; border: 3px solid #10131f; min-height: 64px; }
.fl-card.can { cursor: pointer; }
.fl-card.can:hover { background: #fff; }
.fl-card.dead { background: #6b7280; opacity: .75; }
.fl-card.picked { outline: 4px solid var(--yellow); }
.fl-card.myvote { outline: 4px solid var(--green); }
.fl-card-n { display: flex; flex-direction: column; min-width: 0; }
.fl-card-n b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-card-n small { color: #444; font-weight: 800; }
.fl-chips, .fl-skipvotes { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.fl-anon { width: 22px; height: 22px; border-radius: 50%; background: #888; display: inline-block; }
.fl-voted { position: absolute; right: 8px; top: 6px; background: var(--red); color: #fff; font-size: 11px; font-weight: 900; padding: 2px 6px; border-radius: 6px; transform: rotate(8deg); }
.fl-confirm { margin-left: auto; display: flex; gap: 4px; }
.fl-tab-foot { display: flex; align-items: center; gap: 10px; padding-top: 8px; flex-wrap: wrap; }
.fl-skip.picked { outline: 3px solid var(--yellow); }
.fl-hint { color: var(--text-dim); font-size: 14px; }
.fl-chat { flex: 1; display: flex; flex-direction: column; min-width: 240px; background: rgba(0,0,0,.28); border-radius: 14px; padding: 8px; }
.fl-chat-head { font: 700 18px var(--font-display); padding-bottom: 6px; color: var(--cyan); }
.fl-chat-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 4px; }
.fl-msg { display: flex; gap: 6px; align-items: flex-start; animation: fade-in .2s; }
.fl-msg > div { background: rgba(255,255,255,.92); color: #10131f; border-radius: 10px; padding: 4px 8px; max-width: 85%; }
.fl-msg b { -webkit-text-stroke: .4px #10131f; font-size: 13px; }
.fl-msg p { margin: 0; font-size: 14px; word-break: break-word; }
.fl-msg.mine { flex-direction: row-reverse; }
.fl-msg.mine > div { background: #cfe9ff; }
.fl-msg.ghost > div { background: rgba(180, 200, 255, .5); }
.fl-typing { min-height: 18px; font-size: 12px; color: var(--text-dim); font-style: italic; padding: 2px 4px; }
.fl-chat-form { display: flex; gap: 6px; }
.fl-chat-in { flex: 1; min-width: 0; }
@media (max-width: 760px), (max-height: 500px) {
  .fl-tab { flex-direction: column; height: 96vh; }
  .fl-cards { grid-template-columns: 1fr 1fr; }
  .fl-card { min-height: 46px; padding: 3px 6px; }
  .fl-chat { flex: 0 0 38%; min-width: 0; }
  .fl-tab-head b { font-size: 18px; }
}
@media (max-height: 500px) and (min-width: 700px) { .fl-tab { flex-direction: row; } .fl-chat { flex: 1; } }
/* ejection */
.flow-eject.active { background: #02030a; }
.fl-space { position: absolute; inset: 0; background-image: radial-gradient(2px 2px at 20% 30%, #fff, transparent), radial-gradient(2px 2px at 70% 60%, #fff, transparent), radial-gradient(1px 1px at 40% 80%, #fff, transparent), radial-gradient(1px 1px at 85% 20%, #fff, transparent); background-size: 300px 300px; animation: fl-stars 6s linear infinite; }
@keyframes fl-stars { to { background-position: -600px 0; } }
.fl-tumble { position: absolute; top: 40%; left: -200px; animation: fl-tumble 6s linear forwards; }
@keyframes fl-tumble { to { left: 110%; transform: rotate(900deg); } }
.fl-ej-text { position: relative; font: 700 clamp(22px, 4vw, 40px) var(--font-display); color: #fff; text-align: center; padding: 0 16px; min-height: 1.3em; }
.fl-ej-left { position: relative; margin-top: 10px; font-size: 20px; font-weight: 800; color: var(--text-dim); }
/* killed */
.fl-killed { position: absolute; inset: 0; background: rgba(120, 0, 10, .55); display: flex; flex-direction: column; align-items: center; justify-content: center; animation: fade-in .2s; pointer-events: none; }
.fl-killed.out { opacity: 0; transition: opacity .4s; }
.fl-killed-in { display: flex; align-items: center; gap: 20px; animation: pop-in .3s var(--ease); }
.fl-slash { width: 90px; height: 10px; background: #fff; transform: rotate(-30deg); border-radius: 5px; box-shadow: 0 0 20px #fff; }
.fl-killed-t { font: 700 clamp(36px, 7vw, 70px) var(--font-display); color: var(--red); }
.fl-killed-h { font-weight: 800; color: #fff; }
/* end */
.fl-end { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 16px; animation: fade-in .5s; }
.fl-end-t { font: 700 clamp(48px, 10vw, 110px) var(--font-display); }
.fl-end.win .fl-end-t { color: var(--cyan); }
.fl-end.lose .fl-end-t { color: var(--red); }
.fl-end-s { font-size: 18px; font-weight: 800; }
.fl-end-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* meeting: question & answer pane + conditional free chat */
.fl-side { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 260px; min-height: 0; }
.fl-side .fl-chat { flex: 0 1 auto; min-width: 0; }
.fl-side .fl-chat:not(.closed) { flex: 0.8; min-height: 120px; }
.fl-chat.closed .fl-chat-list, .fl-chat.closed .fl-typing, .fl-chat.closed .fl-chat-form { display: none; }
.fl-chat:not(.closed) .fl-chat-lock { display: none; }
.fl-chat-lock { font-size: 12px; color: var(--text-dim); padding: 2px 4px 4px; }
.fl-chat.closed .fl-chat-head { font-size: 14px; padding-bottom: 2px; }
.fl-qa { flex: 2.2; min-height: 0; display: flex; flex-direction: column; background: rgba(0,0,0,.28); border-radius: 14px; padding: 8px; }
.fl-qa-head { display: flex; justify-content: space-between; align-items: baseline; }
.fl-qa-head b { font: 700 18px var(--font-display); color: var(--yellow); }
.fl-qa-timer { font-weight: 900; font-variant-numeric: tabular-nums; }
.fl-qa-q { font: 700 18px var(--font-display); padding: 4px 2px 8px; line-height: 1.25; }
.fl-qa-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; padding-right: 4px; }
.fl-qa-rh { font-size: 12px; font-weight: 900; color: var(--text-dim); padding: 6px 2px 0; border-top: 1px solid rgba(255,255,255,.12); }
.fl-qa-rh.cur { color: var(--cyan); }
.fl-qa-list > .fl-qa-rh:first-child { border-top: 0; padding-top: 0; }
.fl-qa-row { display: flex; gap: 6px; align-items: flex-start; animation: fade-in .2s; }
.fl-qa-row > div { background: rgba(255,255,255,.92); color: #10131f; border-radius: 10px; padding: 3px 8px; min-width: 0; max-width: 90%; }
.fl-qa-row.mine > div { background: #cfe9ff; }
.fl-qa-row.turn > div { outline: 2px solid var(--yellow); }
.fl-qa-row.skip > div { opacity: .6; }
.fl-qa-row b { -webkit-text-stroke: .4px #10131f; font-size: 13px; }
.fl-qa-row p { margin: 0; font-size: 14px; word-break: break-word; }
.fl-qa-row p.dim { color: #556; font-style: italic; }
.fl-qa-row p.typing { animation: fl-blink 1s infinite; }
@keyframes fl-blink { 50% { opacity: .3; } }
.fl-qa-status { padding: 6px 2px; font-weight: 800; font-size: 14px; color: var(--text-dim); }
.fl-qa-status.mine { color: var(--green); }
.fl-qa-form { display: flex; gap: 6px; }
.fl-qa-in { flex: 1; min-width: 0; }
@media (max-width: 760px), (max-height: 500px) {
  .fl-side { flex: 0 0 46%; min-width: 0; }
}
@media (max-height: 500px) and (min-width: 700px) { .fl-side { flex: 1; } }
