:root {
  color-scheme:dark;
  --bg:#080e1b;
  --panel:#101a2b;
  --card:#162237;
  --line:#ffffff12;
  --text:#e9f0fb;
  --muted:#8b9bb4;
  --cyan:#84ecdc;
  --red:#ff697b;
  --gold:#f2cc79;
  --purple:#b6a0ff;
  font-family:-apple-system,"PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif;
  font-size:15px
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--bg);
  color:var(--text)
}
button,input,a {
  -webkit-tap-highlight-color:transparent
}
button,input {
  font:inherit
}
button {
  color:inherit;
  cursor:pointer;
  border:1px solid var(--line);
  background:#ffffff06;
  border-radius:10px;
  min-height:42px;
  padding:8px 14px;
  transition:background .2s,border-color .2s,transform .2s
}
button:hover {
  background:#ffffff10;
  border-color:#ffffff2c
}
button:active {
  transform:translateY(1px)
}
button:disabled {
  opacity:.35;
  cursor:default
}
button:focus-visible,a:focus-visible,summary:focus-visible {
  outline:2px solid var(--cyan);
  outline-offset:3px
}
button.primary {
  background:var(--cyan);
  color:#0b2829;
  border-color:transparent;
  font-weight:700
}
button.primary:hover {
  background:#aff9ed
}
button.quiet {
  border-color:transparent;
  background:transparent;
  color:var(--muted)
}
button.icon-button {
  padding:9px;
  min-width:42px;
  display:grid;
  place-items:center
}
button svg {
  width:19px;
  height:19px;
  vertical-align:middle;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round
}
button svg.fill {
  fill:currentColor;
  stroke:none
}
a {
  color:inherit;
  text-decoration:none
}
h1,h2,h3,p {
  margin:0
}
small,.muted {
  color:var(--muted)
}
[hidden] {
  display:none!important
}
.boot {
  height:100dvh;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:18px
}
.boot h1 {
  font-size:26px;
  letter-spacing:.1em
}
.boot p {
  color:var(--muted)
}
.boot-orbit {
  font-size:52px;
  color:var(--cyan)
}
.shell {
  height:100dvh;
  min-height:500px;
  display:grid;
  grid-template-rows:76px minmax(0,1fr);
  overflow:hidden
}
.masthead {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:0 26px;
  border-bottom:1px solid var(--line);
  background:#0b1322;
  z-index:2
}
.brand {
  display:flex;
  align-items:center;
  gap:14px
}
.station-sigil {
  width:40px;
  height:40px;
  border:1px solid #84ecdc42;
  display:grid;
  place-items:center;
  border-radius:12px;
  color:var(--cyan);
  background:#84ecdc08
}
.station-sigil svg {
  width:28px;
  height:28px
}
.brand h1 {
  font-size:20px;
  font-weight:650;
  letter-spacing:.08em
}
.eyebrow {
  font-size:10px;
  letter-spacing:.2em;
  color:var(--muted);
  margin-bottom:6px
}
.header-right {
  display:flex;
  align-items:center;
  gap:18px
}
.header-caption {
  font-size:12px;
  color:var(--muted)
}
.status-dot {
  display:inline-block;
  background:var(--cyan);
  width:6px;
  height:6px;
  border-radius:50%;
  margin-right:7px;
  box-shadow:0 0 8px #84ecdc50
}
.workspace {
  display:grid;
  grid-template-columns:minmax(0,1fr) 358px;
  min-height:0
}
.theater {
  min-width:0;
  display:flex;
  flex-direction:column;
  min-height:0;
  position:relative
}
.map-area {
  flex:1;
  position:relative;
  min-height:180px;
  background:#070c18;
  overflow:hidden
}
.map-area:after {
  position:absolute;
  content:"";
  inset:0;
  box-shadow:inset 0 0 100px #02071560;
  pointer-events:none
}
#station {
  display:block;
  width:100%;
  height:100%;
  touch-action:none;
  cursor:grab
}
#station:active {
  cursor:grabbing
}
.map-top {
  position:absolute;
  top:20px;
  left:22px;
  right:22px;
  display:flex;
  justify-content:space-between;
  pointer-events:none;
  gap:12px;
  z-index:1
}
.map-view-label {
  font-size:11px;
  min-width:0;
  line-height:1.4;
  letter-spacing:.13em;
  color:#aec3d5;
  display:flex;
  align-items:center;
  gap:9px
}
.map-view-label:before {
  content:"";
  flex-shrink:0;
  height:7px;
  width:7px;
  background:var(--cyan);
  border-radius:50%
}
.map-clock {
  flex-shrink:0;
  background:#0a1425c9;
  border:1px solid #ffffff16;
  border-radius:12px;
  padding:9px 15px;
  text-align:right;
  backdrop-filter:blur(10px)
}
.map-clock small {
  display:block;
  font-size:9px;
  letter-spacing:.16em;
  margin-bottom:3px
}
.map-clock strong {
  font-variant-numeric:tabular-nums;
  font-size:24px;
  font-weight:500;
  letter-spacing:.06em
}
.map-bottom {
  position:absolute;
  bottom:17px;
  left:22px;
  right:22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  z-index:1;
  pointer-events:none
}
.map-bottom button {
  flex-shrink:0;
  pointer-events:auto;
  background:#0b1425d9;
  font-size:12px;
  min-height:40px;
  backdrop-filter:blur(10px)
}
.map-tip {
  font-size:11px;
  color:#a1afc5;
  opacity:.75
}
.map-selection {
  overflow-wrap:anywhere;
  position:absolute;
  bottom:66px;
  left:22px;
  font-size:12px;
  border:1px solid #84ecdc30;
  border-radius:10px;
  background:#0b1425e6;
  padding:10px 14px;
  max-width:calc(100% - 44px);
  pointer-events:none;
  z-index:1;
  box-shadow:0 10px 30px #0005
}
.crew-strip {
  display:flex;
  padding:12px 20px;
  gap:5px;
  border-top:1px solid var(--line);
  background:#0c1423;
  min-height:68px;
  justify-content:space-between
}
.crew-seat {
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
  border:0;
  border-radius:9px;
  padding:4px 8px;
  background:transparent;
  position:relative
}
.crew-seat .seat-text {
  font-size:11px;
  white-space:nowrap
}
.crew-seat small {
  display:block;
  white-space:normal;
  font-size:9px;
  margin-top:2px;
  letter-spacing:.04em
}
.crew-seat.is-selected {
  background:#84ecdc0b;
  box-shadow:inset 0 0 0 1px #84ecdc3c
}
.crew-seat.is-dead {
  opacity:.4
}
.crew-seat.is-impostor .seat-text {
  color:var(--red)
}
.logo {
  width:26px;
  height:26px;
  display:inline-flex;
  background:#f7f8fa;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  flex-shrink:0;
  padding:5px
}
.logo img {
  width:100%;
  height:100%;
  object-fit:contain
}
.portrait {
  width:42px;
  height:48px;
  object-fit:contain;
  filter:drop-shadow(0 3px 3px #0006);
  flex-shrink:0
}
.controls {
  border-top:1px solid var(--line);
  padding:16px 24px 14px;
  background:#0e1727
}
.timeline-heading {
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  margin-bottom:3px;
  font-size:11px;
  color:var(--muted);
  font-variant-numeric:tabular-nums
}
.timeline-heading>span:last-child {
  flex-shrink:0;
  white-space:nowrap
}
.timeline-current {
  color:#c6d8e8
}
.timeline-wrap {
  position:relative;
  height:40px;
  display:flex;
  align-items:center;
  margin:0 9px
}
.timeline-track {
  position:absolute;
  left:0;
  right:0;
  height:4px;
  background:#273348;
  border-radius:9px;
  pointer-events:none
}
.timeline-progress {
  height:100%;
  background:var(--cyan);
  border-radius:9px
}
.timeline-markers {
  position:absolute;
  inset:0;
  pointer-events:none
}
.timeline-marker {
  position:absolute;
  top:0;
  height:40px;
  width:40px;
  min-height:40px;
  padding:0;
  border:0;
  background:none!important;
  transform:translateX(-50%);
  pointer-events:auto;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center
}
.timeline-marker:active {
  transform:translateX(-50%)
}
.timeline-marker:after {
  content:"";
  position:absolute;
  top:7px;
  width:7px;
  height:7px;
  border-radius:2px;
  background:var(--event-color);
  box-shadow:0 0 7px color-mix(in srgb,var(--event-color),transparent 70%)
}
.timeline-marker:before {
  content:"";
  height:6px;
  width:1px;
  position:absolute;
  top:15px;
  background:var(--event-color);
  opacity:.6
}
.timeline-marker .marker-label {
  display:none;
  position:absolute;
  bottom:35px;
  font-size:11px;
  white-space:nowrap;
  padding:7px 10px;
  border:1px solid var(--line);
  background:#18263a;
  border-radius:6px;
  pointer-events:none
}
.timeline-marker:hover .marker-label,.timeline-marker:focus-visible .marker-label {
  display:block
}
.timeline-marker:nth-child(even) {
  top:16px;
  height:40px
}
.timeline-marker:nth-child(even):after {
  top:17px
}
.timeline-marker:nth-child(even):before {
  top:10px
}
.timeline-marker:nth-child(even) .marker-label {
  bottom:42px
}
.timeline-range {
  appearance:none;
  position:relative;
  width:100%;
  height:40px;
  margin:0;
  background:transparent;
  cursor:pointer;
  z-index:1;
  touch-action:none
}
.timeline-range::-webkit-slider-runnable-track {
  height:4px;
  background:transparent
}
.timeline-range::-webkit-slider-thumb {
  appearance:none;
  height:13px;
  width:13px;
  border-radius:50%;
  background:#e6fffa;
  border:3px solid var(--cyan);
  margin-top:-4.5px;
  box-shadow:0 0 12px #84ecdc60
}
.timeline-range::-moz-range-track {
  height:4px;
  background:transparent
}
.timeline-range::-moz-range-thumb {
  height:10px;
  width:10px;
  border-radius:50%;
  background:var(--cyan);
  border:0
}
.control-row {
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:13px;
  flex-wrap:wrap
}
.transport {
  display:flex;
  gap:5px;
  align-items:center
}
.play-button {
  min-width:44px
}
.speed-group {
  display:flex;
  border:1px solid var(--line);
  border-radius:9px;
  margin-left:5px;
  overflow:hidden
}
.speed-group button {
  border:0;
  min-width:40px;
  padding:8px 10px;
  border-radius:0;
  font-size:12px;
  color:var(--muted)
}
.speed-group button[aria-pressed=true] {
  background:#84ecdc13;
  color:var(--cyan)
}
.view-switches {
  margin-left:auto;
  display:flex;
  flex-wrap:wrap;
  gap:8px
}
.toggle {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:12px;
  padding:8px 10px;
  white-space:normal
}
.switch {
  width:24px;
  height:14px;
  border-radius:10px;
  background:#3a4557;
  position:relative;
  flex-shrink:0
}
.switch:after {
  content:"";
  position:absolute;
  width:10px;
  height:10px;
  left:2px;
  top:2px;
  border-radius:50%;
  background:#b1bdcd;
  transition:transform .2s
}
.toggle[aria-pressed=true] .switch {
  background:#84ecdc3d
}
.toggle[aria-pressed=true] .switch:after {
  background:var(--cyan);
  transform:translateX(10px)
}
.timeline-legend {
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  align-items:center;
  margin-top:12px;
  font-size:10px;
  color:var(--muted)
}
.timeline-legend i {
  width:5px;
  height:5px;
  border-radius:1px;
  display:inline-block;
  margin-right:5px;
  background:var(--event-color)
}
.key-hint {
  margin-left:auto;
  opacity:.6
}
.sidebar {
  border-left:1px solid var(--line);
  display:flex;
  flex-direction:column;
  min-height:0;
  background:#0e1726;
  min-width:0
}
.drawer-handle {
  display:none
}
.tabs {
  display:flex;
  gap:18px;
  padding:17px 22px 0;
  border-bottom:1px solid var(--line);
  flex-shrink:0
}
.tab {
  background:none!important;
  border:0;
  border-radius:0;
  color:var(--muted);
  font-size:14px;
  padding:10px 1px 16px;
  position:relative
}
.tab[aria-selected=true] {
  color:var(--text);
  font-weight:650
}
.tab[aria-selected=true]:after {
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:2px;
  background:var(--cyan)
}
.tab-count {
  font-size:10px;
  color:var(--muted);
  background:#ffffff07;
  padding:2px 5px;
  border-radius:4px;
  margin-left:5px;
  font-weight:400
}
.sidebar-content {
  min-height:0;
  display:flex;
  flex:1;
  flex-direction:column
}
.feed-intro {
  padding:18px 22px 12px;
  font-size:11px;
  color:var(--muted);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px
}
.feed {
  overflow:auto;
  flex:1;
  padding:0 20px 22px;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#34405a transparent
}
.record {
  padding:15px 0 15px 17px;
  border-left:1px solid #2c3b51;
  position:relative;
  margin-left:4px
}
.record:before {
  content:"";
  position:absolute;
  left:-3px;
  top:21px;
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--record-color,#586d8c)
}
.record-meta {
  display:flex;
  gap:9px;
  align-items:center;
  color:var(--muted);
  font-size:10px;
  margin-bottom:7px
}
.record-meta time {
  font-variant-numeric:tabular-nums;
  color:#c2cfe2
}
.record-meta span:last-child {
  color:var(--record-color,var(--muted))
}
.record-text {
  font-size:13px;
  line-height:1.8;
  color:#c8d4e6;
  overflow-wrap:anywhere
}
.record.kill {
  --record-color:var(--red)
}
.record.meeting,.record.meeting_start,.record.button {
  --record-color:var(--gold)
}
.record.ghost {
  --record-color:var(--purple)
}
.record.vent {
  --record-color:var(--purple)
}
.record.game_over {
  --record-color:var(--cyan)
}
.thought-toggle {
  font-size:11px;
  padding:3px 9px;
  min-height:40px;
  border:0;
  background:none;
  color:var(--cyan);
  margin-top:4px
}
.thought-toggle:hover {
  background:#84ecdc09
}
.note {
  color:#b7c9dd;
  font-size:13px;
  line-height:1.85;
  padding:13px 14px;
  border-radius:9px;
  background:#84ecdc07;
  border:1px solid #84ecdc12;
  overflow-wrap:anywhere;
  margin-top:6px;
  animation:enter .25s ease
}
.note:before {
  content:"Private note";
  display:block;
  color:var(--cyan);
  font-size:10px;
  letter-spacing:.12em;
  margin-bottom:5px
}
.player-picker {
  display:grid;
  grid-template-columns:repeat(9,1fr);
  gap:2px;
  padding:15px 15px 12px;
  border-bottom:1px solid var(--line);
  flex-shrink:0
}
.player-pick {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  padding:3px 0 7px;
  border:1px solid transparent;
  background:none;
  border-radius:9px;
  min-width:0;
  min-height:64px
}
.player-pick .portrait {
  width:25px;
  height:34px
}
.player-pick span {
  font-size:8px;
  color:var(--muted);
  max-width:100%;
  letter-spacing:-.03em
}
.player-pick[aria-pressed=true] {
  background:#84ecdc0b;
  border-color:#84ecdc35
}
.player-pick[aria-pressed=true] span {
  color:var(--cyan)
}
.thinker {
  display:flex;
  align-items:center;
  gap:10px;
  padding:17px 21px 12px;
  flex-shrink:0
}
.thinker strong {
  font-size:15px
}
.thinker p {
  color:var(--muted);
  font-size:10px;
  margin-top:5px
}
.thought-card {
  padding:16px;
  margin-top:10px;
  background:#142035;
  border:1px solid #ffffff09;
  border-radius:12px
}
.thought-card .record-text {
  color:#e0e9f7;
  font-size:13px
}
.thought-card .note {
  background:none;
  border:0;
  border-top:1px solid var(--line);
  border-radius:0;
  margin-top:12px;
  padding:12px 0 0;
  font-size:12px;
  color:#98acc6
}
.empty {
  padding:32px 10px;
  text-align:center;
  color:var(--muted);
  font-size:13px;
  line-height:1.8
}
.sidebar-foot {
  border-top:1px solid var(--line);
  padding:11px 20px;
  font-size:10px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
  justify-content:space-between;
  color:#6b7e99;
  flex-shrink:0
}
.sidebar-foot span:first-child {
  letter-spacing:.14em
}
.modal-backdrop {
  position:fixed;
  inset:0;
  z-index:10;
  background:#020611c2;
  backdrop-filter:blur(10px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px;
  animation:fade-in .25s ease
}
.story-panel {
  width:min(1060px,100%);
  height:min(730px,calc(100dvh - 56px));
  border:1px solid #52637b50;
  border-radius:22px;
  background:linear-gradient(145deg,#18273b,#0c1526 70%);
  box-shadow:0 32px 120px #0009;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  position:relative
}
.story-panel.lobby-panel {
  width:760px
}
.story-header {
  padding:27px 30px 21px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  flex-shrink:0
}
.story-header>div:first-child {
  min-width:0
}
.story-kicker {
  color:var(--gold);
  font-size:10px;
  letter-spacing:.19em;
  margin-bottom:9px;
  display:flex;
  align-items:center;
  gap:8px
}
.lobby-panel .story-kicker {
  color:var(--cyan)
}
.story-header h2 {
  font-size:26px;
  letter-spacing:.06em;
  font-weight:650
}
.story-header p {
  color:#9aafc9;
  font-size:13px;
  margin-top:11px;
  line-height:1.65
}
.story-actions {
  display:flex;
  gap:5px;
  flex-shrink:0
}
.story-actions button {
  font-size:11px;
  white-space:nowrap
}
.story-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 260px;
  min-height:0;
  flex:1
}
.chat-feed {
  padding:24px 30px;
  overflow:auto;
  scrollbar-width:thin;
  scrollbar-color:#3b4961 transparent;
  overscroll-behavior:contain;
  scroll-behavior:smooth;
  min-height:0;
  flex:1
}
.chat-message {
  display:flex;
  gap:12px;
  margin-bottom:21px;
  animation:enter .28s ease;
  align-items:flex-start
}
.chat-avatar {
  width:48px;
  height:58px;
  position:relative;
  flex-shrink:0;
  display:flex;
  justify-content:center;
  border-radius:12px;
  background:#ffffff04;
  border:1px solid #ffffff08
}
.chat-avatar .portrait {
  height:51px;
  width:35px;
  margin-top:1px
}
.chat-avatar .logo {
  width:20px;
  height:20px;
  padding:4px;
  position:absolute;
  bottom:-4px;
  right:-5px;
  box-shadow:0 0 0 3px #111c2e
}
.chat-body {
  flex:1;
  min-width:0
}
.chat-name {
  font-size:11px;
  color:var(--muted);
  margin-bottom:7px;
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  align-items:center
}
.chat-name strong {
  color:#d0ddec;
  font-size:12px
}
.chat-bubble {
  font-size:15px;
  line-height:1.85;
  background:#1c2c44;
  border:1px solid #ffffff08;
  padding:14px 17px;
  border-radius:3px 14px 14px 14px;
  color:#e6edf8;
  overflow-wrap:anywhere
}
.chat-message:last-child .chat-bubble {
  border-color:#84ecdc2a;
  background:#1b3045
}
.chat-message.is-impostor .chat-name strong {
  color:var(--red)
}
.chat-message .note {
  font-size:13px
}
.ghost-channel {
  border-left:1px solid #b6a0ff20;
  background:#a580ff03;
  padding:24px 18px;
  overflow:auto;
  min-height:0;
  scrollbar-width:thin;
  scrollbar-color:#4a3a6b transparent
}
.ghost-channel h3 {
  color:var(--purple);
  font-size:13px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  justify-content:space-between
}
.ghost-channel h3 span {
  font-size:9px;
  color:#9587af;
  font-weight:400;
  border:1px solid #b6a0ff20;
  padding:4px 5px;
  border-radius:4px
}
.ghost-channel .empty {
  font-size:11px;
  padding:30px 8px;
  text-align:left;
  color:#7b7596
}
.ghost-message {
  margin-top:18px;
  animation:enter .3s ease
}
.ghost-message strong {
  font-size:11px;
  color:var(--purple)
}
.ghost-message p {
  font-size:12px;
  color:#b1a4c8;
  line-height:1.9;
  margin-top:6px
}
.ghost-message .note {
  font-size:12px;
  background:#a580ff06;
  border-color:#b6a0ff15
}
.ghost-message .thought-toggle {
  color:var(--purple);
  font-size:10px
}
.story-footer {
  padding:17px 30px;
  border-top:1px solid var(--line);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-shrink:0;
  background:#0b1525c9
}
.story-footer .footer-caption {
  color:var(--muted);
  font-size:11px;
  line-height:1.7
}
.story-footer .footer-caption span {
  display:block;
  font-size:9px;
  opacity:.6
}
.story-nav {
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  margin-left:auto;
  gap:8px;
  align-items:center
}
.story-nav button {
  font-size:12px;
  white-space:normal
}
.story-progress {
  height:2px;
  background:#84ecdc1f;
  flex-shrink:0
}
.story-progress div {
  height:100%;
  background:var(--cyan);
  width:0;
  transition:width .15s linear
}
.vote-scene {
  overflow:auto;
  flex:1;
  min-height:0;
  padding:30px
}
.scene-eyebrow {
  font-size:11px;
  color:var(--gold);
  letter-spacing:.15em;
  margin-bottom:10px
}
.vote-scene h3 {
  font-size:25px;
  font-weight:500;
  margin-bottom:25px
}
.vote-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px
}
.vote-column {
  border:1px solid #ffffff14;
  background:#152239;
  border-radius:13px;
  padding:15px;
  min-height:150px
}
.vote-target {
  display:flex;
  flex-wrap:wrap;
  overflow-wrap:anywhere;
  align-items:center;
  gap:9px;
  min-height:48px;
  padding-bottom:10px;
  border-bottom:1px solid var(--line);
  font-size:13px
}
.vote-target .portrait {
  width:30px;
  height:40px
}
.vote-target strong {
  margin-left:auto;
  color:var(--gold);
  font-size:21px;
  font-weight:400
}
.vote-chips {
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  padding-top:15px
}
.vote-chip {
  display:flex;
  align-items:center;
  flex-direction:column;
  gap:5px;
  animation:vote-in .35s ease both
}
.vote-chip .portrait {
  height:40px;
  width:28px
}
.vote-chip span {
  font-size:9px;
  color:var(--muted)
}
.eject-scene {
  position:relative;
  flex:1;
  min-height:0;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  background:radial-gradient(ellipse at 50% 50%,#28325255,transparent 66%)
}
.eject-stars {
  position:absolute;
  inset:0;
  opacity:.7;
  background-image:radial-gradient(1px 1px at 15% 22%,#cde5ff 98%,transparent),radial-gradient(1px 1px at 72% 34%,#cde5ff 98%,transparent),radial-gradient(2px 2px at 31% 64%,#9bc7df 98%,transparent),radial-gradient(1px 1px at 85% 70%,#fff 98%,transparent),radial-gradient(1px 1px at 42% 15%,#fff 98%,transparent);
  background-size:310px 250px
}
.ejected-crew {
  position:absolute;
  width:85px;
  height:130px;
  object-fit:contain;
  animation:eject 3.8s ease-in-out both;
  top:25%;
  left:44%;
  filter:drop-shadow(0 0 20px #a5bfe122)
}
.eject-title {
  position:relative;
  font-size:25px;
  letter-spacing:.08em;
  min-height:38px;
  margin-top:105px;
  text-align:center;
  padding:0 20px
}
.eject-sub {
  font-size:12px;
  color:var(--muted);
  margin-top:16px;
  position:relative;
  text-align:center;
  padding:0 20px
}
.ghost-inline {
  color:var(--purple);
  font-size:11px;
  padding:12px 20px;
  text-align:center;
  position:relative
}
.ending-panel {
  width:min(970px,100%);
  overflow:auto;
  display:block;
  scrollbar-width:thin;
  scrollbar-color:#3b4961 transparent
}
.ending-head {
  text-align:center;
  padding:36px 26px 25px;
  background:radial-gradient(ellipse at top,#84ecdc14,transparent 70%);
  border-bottom:1px solid var(--line)
}
.victory-emblem {
  width:58px;
  height:58px;
  margin:0 auto 18px;
  border:1px solid #84ecdc45;
  display:grid;
  place-items:center;
  color:var(--cyan);
  border-radius:18px;
  background:#84ecdc0b;
  font-size:29px
}
.ending-head .eyebrow {
  color:var(--cyan)
}
.ending-head h2 {
  font-size:36px;
  letter-spacing:.08em;
  font-weight:600;
  margin:12px 0
}
.ending-head p {
  font-size:12px;
  line-height:1.9;
  color:var(--muted)
}
.ending-roster {
  display:grid;
  grid-template-columns:repeat(9,minmax(0,1fr));
  gap:7px;
  padding:25px
}
.result-seat {
  text-align:center;
  padding:13px 3px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#ffffff03;
  min-width:0
}
.result-seat .portrait {
  display:block;
  width:45px;
  height:66px;
  margin:0 auto 8px
}
.result-seat strong {
  font-size:11px;
  display:block;
  overflow-wrap:anywhere
}
.result-seat .role {
  font-size:10px;
  color:var(--cyan);
  margin-top:7px
}
.result-seat.impostor {
  border-color:#ff697b33;
  background:#ff697b04
}
.result-seat.impostor .role {
  color:var(--red)
}
.result-seat small {
  display:block;
  overflow-wrap:anywhere;
  font-size:9px;
  margin-top:5px
}
.postgame-heading {
  font-size:14px;
  padding:0 30px 20px;
  display:flex;
  align-items:center;
  gap:10px
}
.postgame-heading span {
  font-size:10px;
  color:var(--muted);
  font-weight:400
}
.ending-panel .chat-feed {
  padding-top:0;
  overflow:visible
}
.ending-footer {
  padding:22px 30px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
  border-top:1px solid var(--line);
  background:#101a2b;
  position:sticky;
  bottom:0
}
.info-panel {
  width:min(600px,100%);
  height:auto;
  max-height:calc(100dvh - 56px);
  overflow:auto;
  padding:30px
}
.info-panel h2 {
  font-size:23px;
  margin-bottom:18px
}
.info-panel p {
  font-size:14px;
  color:#a9bcd2;
  line-height:1.9;
  margin-bottom:20px
}
.model-list {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-bottom:22px
}
.model-item {
  display:flex;
  align-items:center;
  gap:8px;
  background:#ffffff04;
  border:1px solid var(--line);
  border-radius:9px;
  padding:11px 10px;
  font-size:11px
}
.info-panel .keyboard-help {
  font-size:11px;
  color:var(--muted);
  line-height:2
}
.info-panel .primary {
  width:100%;
  margin-top:15px
}
.toast {
  position:fixed;
  left:50%;
  bottom:28px;
  transform:translateX(-50%);
  z-index:20;
  max-width:90vw;
  padding:12px 18px;
  border:1px solid #84ecdc30;
  border-radius:12px;
  background:#16263df2;
  color:var(--text);
  font-size:12px;
  box-shadow:0 8px 35px #0006;
  pointer-events:none
}
.canvas-fallback {
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  padding:24px;
  background:#101a2be8;
  text-align:center;
  line-height:1.9
}
.error-box {
  max-width:550px;
  margin:auto;
  padding:28px;
  text-align:center;
  line-height:2
}
.error-box button {
  margin-top:20px
}
@keyframes fade-in {
  from {
    opacity:0
  }
  to {
    opacity:1
  }
}
@keyframes enter {
  from {
    opacity:0;
    transform:translateY(7px)
  }
  to {
    opacity:1;
    transform:translateY(0)
  }
}
@keyframes vote-in {
  from {
    opacity:0;
    transform:translate(35px,-25px) scale(.6)
  }
  to {
    opacity:1;
    transform:translate(0) scale(1)
  }
}
@keyframes eject {
  0% {
    transform:translate(-280px,40px) rotate(-65deg) scale(.7);
    opacity:0
  }
  15% {
    opacity:1
  }
  70% {
    opacity:1
  }
  100% {
    transform:translate(320px,-90px) rotate(310deg) scale(.28);
    opacity:0
  }
}
@media(min-width:1450px) {
  .workspace {
    grid-template-columns:minmax(0,1fr) 390px
  }
  .crew-seat .seat-text {
    font-size:12px
  }
  .crew-seat small {
    font-size:10px
  }
  .crew-strip {
    padding-left:30px;
    padding-right:30px
  }
  .controls {
    padding-left:32px;
    padding-right:32px
  }
}
@media(max-width:1200px) and (min-width:701px) {
  .workspace {
    grid-template-columns:minmax(0,1fr) 320px
  }
  .crew-seat {
    padding:4px 3px;
    flex-direction:column;
    gap:3px
  }
  .crew-seat .logo {
    width:22px;
    height:22px
  }
  .crew-seat small {
    display:none
  }
  .crew-strip {
    padding:9px 10px;
    min-height:65px
  }
  .crew-seat .seat-text {
    font-size:9px
  }
  .controls {
    padding:12px 16px
  }
  .toggle {
    font-size:11px;
    padding:7px 8px
  }
  .control-row {
    gap:5px
  }
  .speed-group {
    margin-left:0
  }
  .speed-group button {
    min-width:34px
  }
  .view-switches {
    gap:3px
  }
  .key-hint {
    display:none
  }
  .map-tip {
    display:none
  }
}
@media(max-width:700px) and (orientation:portrait) {
  :root {
    font-size:15px
  }
  .shell {
    min-height:0;
    grid-template-rows:64px minmax(0,1fr)
  }
  .masthead {
    padding:0 16px
  }
  .brand {
    gap:10px
  }
  .station-sigil {
    width:34px;
    height:34px;
    border-radius:10px
  }
  .station-sigil svg {
    width:24px;
    height:24px
  }
  .brand h1 {
    font-size:17px;
    letter-spacing:.04em
  }
  .eyebrow {
    font-size:8px;
    letter-spacing:.14em;
    margin-bottom:4px
  }
  .header-caption {
    display:none
  }
  .header-right {
    gap:4px
  }
  .workspace {
    display:flex;
    flex-direction:column
  }
  .theater {
    flex-shrink:0;
    display:block
  }
  .map-area {
    width:100%;
    height:auto;
    aspect-ratio:16/9;
    min-height:0
  }
  .map-top {
    top:10px;
    left:14px;
    right:14px
  }
  .map-view-label {
    font-size:8px;
    gap:5px;
    align-self:flex-start;
    margin-top:4px
  }
  .map-view-label:before {
    height:5px;
    width:5px
  }
  .map-clock {
    padding:5px 9px;
    border-radius:8px
  }
  .map-clock small {
    font-size:7px
  }
  .map-clock strong {
    font-size:17px
  }
  .map-bottom {
    bottom:7px;
    left:10px;
    right:10px
  }
  .map-bottom button {
    font-size:10px;
    min-height:40px;
    padding:6px 9px
  }
  .map-tip {
    display:none
  }
  .map-selection {
    bottom:48px;
    left:10px;
    max-width:calc(100% - 20px);
    font-size:10px;
    padding:8px 10px
  }
  .crew-strip {
    display:none
  }
  .controls {
    padding:10px 15px 10px
  }
  .timeline-heading {
    font-size:10px
  }
  .timeline-wrap {
    height:38px
  }
  .control-row {
    margin-top:10px;
    gap:6px
  }
  .transport {
    gap:1px
  }
  .transport .icon-button {
    min-width:40px;
    padding:9px
  }
  .speed-group {
    margin-left:4px
  }
  .speed-group button {
    font-size:12px;
    min-width:36px;
    padding:8px
  }
  .view-switches {
    gap:5px;
    margin-left:0;
    width:100%;
    justify-content:space-between;
    margin-top:2px
  }
  .toggle {
    font-size:12px;
    min-height:40px;
    border-color:transparent;
    background:transparent;
    padding:6px
  }
  .timeline-legend {
    font-size:9px;
    gap:12px;
    margin-top:6px
  }
  .key-hint {
    display:none
  }
  .sidebar {
    flex:1;
    min-height:150px;
    border-left:0;
    border-top:1px solid #ffffff18;
    border-radius:18px 18px 0 0;
    background:#101a2b;
    margin-top:0;
    box-shadow:0 -5px 24px #0002
  }
  .drawer-handle {
    display:block;
    width:32px;
    height:3px;
    border-radius:5px;
    background:#3d4b63;
    margin:9px auto 0
  }
  .tabs {
    padding:0 20px;
    gap:24px
  }
  .tab {
    font-size:15px;
    padding:9px 0 13px
  }
  .feed-intro {
    padding:12px 21px 6px;
    font-size:10px
  }
  .feed {
    padding:0 20px 25px
  }
  .record {
    padding-top:12px;
    padding-bottom:12px
  }
  .record-text {
    font-size:15px;
    line-height:1.85
  }
  .record-meta {
    font-size:11px
  }
  .thought-toggle {
    font-size:12px
  }
  .note {
    font-size:15px
  }
  .sidebar-foot {
    display:none
  }
  .player-picker {
    padding:9px 13px 7px
  }
  .player-pick {
    min-height:66px
  }
  .player-pick .portrait {
    height:37px;
    width:29px
  }
  .player-pick span {
    font-size:9px
  }
  .thinker {
    padding:12px 20px 6px
  }
  .thinker p {
    font-size:11px
  }
  .thought-card {
    padding:15px
  }
  .thought-card .record-text,.thought-card .note {
    font-size:15px
  }
  .empty {
    font-size:15px
  }
  .modal-backdrop {
    padding:0;
    background:#050b16
  }
  .story-panel {
    height:100dvh;
    max-height:none;
    width:100%!important;
    border:0;
    border-radius:0
  }
  .story-header {
    padding:calc(22px + env(safe-area-inset-top)) 20px 17px;
    flex-wrap:wrap;
    gap:10px
  }
  .story-header h2 {
    font-size:23px
  }
  .story-header p {
    font-size:15px;
    line-height:1.7;
    margin-top:9px
  }
  .story-kicker {
    font-size:9px;
    margin-bottom:9px
  }
  .story-actions {
    flex-direction:column
  }
  .story-actions button {
    font-size:11px;
    white-space:normal;
    padding:8px 9px
  }
  .story-layout {
    display:flex;
    flex-direction:column
  }
  .chat-feed {
    padding:22px 18px;
    flex:1;
    min-height:100px
  }
  .chat-message {
    gap:10px;
    margin-bottom:22px
  }
  .chat-avatar {
    width:40px;
    height:50px;
    border-radius:10px
  }
  .chat-avatar .portrait {
    width:30px;
    height:43px
  }
  .chat-avatar .logo {
    height:19px;
    width:19px
  }
  .chat-name {
    font-size:11px
  }
  .chat-name strong {
    font-size:13px
  }
  .chat-bubble {
    padding:12px 14px;
    font-size:15px;
    line-height:1.85
  }
  .chat-message .note {
    font-size:15px
  }
  .ghost-channel {
    border-left:0;
    border-top:1px solid #b6a0ff22;
    padding:13px 20px;
    max-height:170px;
    flex-shrink:0
  }
  .ghost-channel h3 {
    font-size:12px
  }
  .ghost-channel h3 span {
    font-size:10px
  }
  .ghost-channel .empty {
    padding:10px 0;
    font-size:12px
  }
  .ghost-message {
    margin-top:12px
  }
  .ghost-message strong {
    font-size:12px
  }
  .ghost-message p,.ghost-message .note {
    font-size:15px
  }
  .story-footer {
    padding:13px 16px calc(13px + env(safe-area-inset-bottom));
    gap:6px
  }
  .story-footer .footer-caption {
    font-size:11px;
    max-width:100px;
    flex:1 1 70px
  }
  .story-footer .footer-caption span {
    display:none
  }
  .story-nav {
    gap:4px;
    flex:0 1 auto
  }
  .story-nav button {
    font-size:12px;
    padding:9px 9px
  }
  .vote-scene {
    padding:24px 20px
  }
  .vote-grid {
    grid-template-columns:1fr 1fr;
    gap:10px
  }
  .vote-column {
    padding:13px 10px
  }
  .vote-target {
    font-size:13px;
    gap:4px
  }
  .vote-target strong {
    font-size:19px
  }
  .vote-chip span {
    font-size:10px
  }
  .eject-title {
    font-size:22px
  }
  .ending-panel {
    display:block;
    overflow:auto
  }
  .ending-head {
    padding-top:calc(30px + env(safe-area-inset-top))
  }
  .ending-head h2 {
    font-size:34px
  }
  .ending-head p {
    font-size:15px
  }
  .ending-roster {
    grid-template-columns:repeat(3,1fr);
    gap:9px;
    padding:20px
  }
  .result-seat {
    padding:12px 6px
  }
  .result-seat .portrait {
    height:55px;
    width:40px
  }
  .result-seat strong {
    font-size:13px
  }
  .result-seat .role {
    font-size:12px
  }
  .result-seat small {
    font-size:11px
  }
  .postgame-heading {
    font-size:16px;
    padding:8px 20px 18px
  }
  .ending-panel .chat-feed {
    padding:0 18px
  }
  .ending-footer {
    padding:15px 20px calc(15px + env(safe-area-inset-bottom))
  }
  .ending-footer button {
    font-size:15px
  }
  .info-panel {
    padding:26px 22px;
    display:block;
    overflow:auto;
    max-height:100dvh
  }
  .info-panel h2 {
    padding-top:env(safe-area-inset-top)
  }
  .info-panel p {
    font-size:15px
  }
  .model-list {
    grid-template-columns:1fr
  }
  .model-item {
    font-size:15px;
    padding:9px 12px
  }
  .info-panel .keyboard-help {
    font-size:12px
  }
}
@media(orientation:landscape) and (max-height:600px) {
  .shell {
    grid-template-rows:53px minmax(0,1fr);
    min-height:0
  }
  .masthead {
    padding:0 16px
  }
  .brand h1 {
    font-size:17px
  }
  .brand .eyebrow {
    display:none
  }
  .station-sigil {
    width:32px;
    height:32px
  }
  .workspace {
    grid-template-columns:minmax(0,1fr) 290px
  }
  .crew-strip {
    display:none
  }
  .controls {
    padding:7px 12px
  }
  .timeline-heading {
    font-size:9px
  }
  .timeline-wrap {
    height:30px
  }
  .control-row {
    margin-top:6px;
    gap:3px
  }
  .control-row button {
    min-height:40px
  }
  .speed-group button {
    min-width:30px;
    padding:6px;
    font-size:11px
  }
  .view-switches {
    gap:2px
  }
  .toggle {
    font-size:10px;
    padding:6px
  }
  .timeline-legend {
    display:none
  }
  .map-top {
    top:9px;
    left:12px;
    right:12px
  }
  .map-clock {
    padding:5px 10px
  }
  .map-clock strong {
    font-size:18px
  }
  .map-bottom {
    bottom:5px;
    left:10px;
    right:10px
  }
  .map-tip {
    display:none
  }
  .tabs {
    padding-top:4px
  }
  .feed-intro {
    padding-top:10px
  }
  .sidebar-foot {
    display:none
  }
  .story-panel {
    height:calc(100dvh - 24px);
    border-radius:14px
  }
  .modal-backdrop {
    padding:12px
  }
  .story-header {
    padding:14px 20px
  }
  .story-header h2 {
    font-size:20px
  }
  .story-header p {
    margin-top:5px;
    font-size:12px
  }
  .story-kicker {
    margin-bottom:4px
  }
  .story-footer {
    padding:10px 20px
  }
  .chat-feed {
    padding:17px 20px
  }
  .story-layout {
    grid-template-columns:minmax(0,1fr) 230px
  }
  .ghost-channel {
    padding:17px 14px
  }
  .vote-scene {
    padding:20px
  }
  .ending-head {
    padding:20px
  }
  .ending-head h2 {
    font-size:26px
  }
  .victory-emblem {
    display:none
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation-duration:.01ms!important;
    animation-delay:0ms!important;
    transition:none!important;
    scroll-behavior:auto!important
  }
  .ejected-crew {
    opacity:.5!important;
    transform:rotate(25deg)!important
  }
}
.marker-more {
  position:absolute;
  font-size:9px;
  color:var(--event-color);
  left:25px;
  top:2px
}
.timeline-marker:nth-child(even) .marker-more {
  top:12px
}
.marker-menu {
  position:fixed;
  z-index:8;
  width:210px;
  padding:9px;
  background:#17243a;
  border:1px solid #ffffff24;
  border-radius:13px;
  box-shadow:0 12px 45px #0009
}
.marker-menu p {
  font-size:10px;
  color:var(--muted);
  padding:7px 8px 9px
}
.marker-menu button {
  display:flex;
  gap:8px;
  align-items:center;
  width:100%;
  text-align:left;
  border:0;
  font-size:12px;
  background:none
}
.marker-menu i {
  height:6px;
  width:6px;
  border-radius:2px
}
.marker-menu time {
  font-variant-numeric:tabular-nums;
  color:var(--muted);
  font-size:11px
}
.story-panel:focus {
  outline:none
}
.sidebar-content:focus {
  outline:none
}
.player-picker {
  grid-template-columns:repeat(9,minmax(40px,1fr));
  overflow-x:auto;
  scrollbar-width:thin
}
.vote-chip {
  border:0;
  background:transparent;
  padding:4px;
  min-width:40px;
  border-radius:8px
}
.vote-chip:hover {
  background:#84ecdc10
}
.vote-thought {
  margin-top:24px
}
.vote-thought>p {
  font-size:13px;
  color:var(--cyan)
}
.vote-thought .note {
  font-size:14px
}
@media(max-width:700px) and (orientation:portrait) {
  .player-picker {
    padding-left:8px;
    padding-right:8px;
    gap:0
  }
  .vote-thought>p,.vote-thought .note {
    font-size:15px
  }
}
.timeline-marker:nth-child(even) {
  top:0;
  height:40px
}
.timeline-marker:nth-child(even):after {
  top:27px
}
.timeline-marker:nth-child(even):before {
  top:21px
}
.marker-extra {
  position:absolute;
  top:7px;
  width:6px;
  height:7px;
  border-radius:2px;
  pointer-events:none
}
.timeline-marker:nth-child(even) .marker-extra {
  top:27px
}
@media(orientation:landscape) and (max-height:600px) {
  .record-text,.note,.thought-card .record-text,.thought-card .note,.ghost-message p,.ghost-message .note {
    font-size:15px
  }
}
.speed-group button {
  min-width:40px
}
@media(orientation:landscape) and (max-height:600px) {
  .map-area {
    min-height:0
  }
  .speed-group button {
    min-width:40px
  }
}
