:root {
  --bg: #081017;
  --panel: #101b24;
  --panel-2: #15232d;
  --line: rgba(167, 211, 227, .15);
  --text: #f1f7f8;
  --muted: #8ba0a8;
  --cyan: #63e6ff;
  --orange: #ff9366;
  --green: #74e98a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; cursor: none !important; }
body { margin: 0; min-width: 320px; color: var(--text); background: radial-gradient(circle at 70% -10%, #173c4b 0, transparent 38%), var(--bg); cursor: none !important; }
.shell { max-width: 1500px; margin: 0 auto; padding: 38px clamp(18px, 4vw, 64px) 56px; }
.topbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.eyebrow, .label { margin: 0 0 8px; color: var(--cyan); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 700px; margin-bottom: 8px; font-size: clamp(32px, 5vw, 66px); line-height: .98; letter-spacing: -.045em; }
h2 { margin-bottom: 0; font-size: 19px; letter-spacing: -.02em; }
.subline { max-width: 680px; margin-bottom: 0; color: var(--muted); line-height: 1.55; }
.clock-card { min-width: 170px; padding: 14px 17px; border: 1px solid var(--line); border-radius: 12px; background: rgba(16, 27, 36, .84); text-align: right; box-shadow: 0 14px 40px rgba(0, 0, 0, .18); }
.clock-card strong { display: block; margin: 8px 0 2px; font-size: 36px; letter-spacing: -.05em; }
.clock-card small { color: var(--muted); }
.live-dot, .presence { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.clock-card.offline .live-dot { background: var(--orange); box-shadow: 0 0 12px var(--orange); }
.project-strip, .panel { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(21, 35, 45, .94), rgba(13, 23, 31, .94)); box-shadow: 0 18px 50px rgba(0, 0, 0, .18); }
.project-strip { display: grid; grid-template-columns: 1.35fr .95fr 1.05fr .95fr 1.2fr 1.35fr 1.2fr 1.45fr; gap: 18px; padding: 18px 20px; border-radius: 12px; margin-bottom: 20px; }
.project-strip strong { display: block; font-size: 15px; }
.community-pick-summary { min-width: 0; }
.community-pick-summary strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-pick-summary small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.project-sprint-summary { min-width: 0; }
.project-sprint-summary strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-sprint-summary small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workstream-summary { min-width: 0; }
.workstream-summary > .label { display: block; }
#workstream-mini-bars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 7px; }
.workstream-mini-item { display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 4px; align-items: center; min-width: 0; color: var(--muted); font-size: 8px; line-height: 1; }
.workstream-mini-item b { color: #b8cbd0; font-size: 8px; font-weight: 800; }
.workstream-mini-item i { display: block; height: 4px; overflow: hidden; border-radius: 2px; background: rgba(255,255,255,.1); }
.workstream-mini-item em { display: block; height: 100%; min-width: 1px; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), var(--green)); transition: width .5s ease; }
.workstream-mini-item.overall b { color: #fff4c8; }
.workstream-mini-item.overall em { background: linear-gradient(90deg, #f6cf72, var(--green)); }
.endpoint input { width: 100%; padding: 0 0 3px; color: var(--text); border: 0; border-bottom: 1px solid var(--line); outline: 0; background: transparent; font: inherit; }
.budget-line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.budget-line .label { margin: 0; }
.ai-budget strong { color: var(--green); font-size: 12px; white-space: nowrap; }
.ai-budget strong.is-low { color: var(--orange); }
.inline-progress { height: 4px; margin-top: 5px; overflow: hidden; border-radius: 2px; background: rgba(255,255,255,.1); }
.inline-progress i { display: block; width: 10%; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--green)); transition: width .5s ease; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(300px, .8fr); gap: 20px; align-items: start; }
.panel { border-radius: 12px; overflow: hidden; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 21px 22px 15px; }
.panel-heading.compact { align-items: flex-start; }
.progress-panel { margin-bottom: 20px; }
.progress-value { color: var(--green); font-size: 22px; line-height: 1; }
.phase-badge { display: inline-block; margin-left: 7px; padding: 3px 5px; border: 1px solid rgba(99,230,255,.35); border-radius: 4px; color: var(--cyan); font-size: 9px; letter-spacing: .08em; vertical-align: middle; }
.progress-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; padding: 0 22px 18px; }
.progress-row { display: grid; grid-template-columns: auto 1fr auto; gap: 7px; align-items: center; color: var(--muted); font-size: 10px; }
.progress-row > div { height: 7px; overflow: hidden; border: 1px solid rgba(116, 233, 138, .18); border-radius: 3px; background: rgba(255,255,255,.06); }
.progress-row i { display: block; height: 100%; min-width: 2px; background: linear-gradient(90deg, var(--cyan), var(--green)); box-shadow: 0 0 9px rgba(116,233,138,.4); transition: width .5s ease; }
.progress-row b { color: #dcebea; font-size: 10px; font-weight: 700; }
.project-metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 0 22px 16px; }
.project-metrics span { display: flex; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.07); }
.project-metrics small { color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.project-metrics b { color: #fff4c8; font-size: 11px; }
.hint, .muted { color: var(--muted); font-size: 12px; }
.office { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(8, minmax(66px, 1fr)); gap: 7px; min-height: 610px; padding: 12px; background: #0b141b; }
.room { position: relative; min-height: 78px; padding: 12px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 8px; background: #172630; overflow: hidden; }
.room::before { content: ""; position: absolute; top: 11px; right: 12px; width: 6px; height: 6px; border-radius: 50%; opacity: 0; background: var(--cyan); box-shadow: 0 0 0 0 rgba(99, 230, 255, .35); pointer-events: none; }
.room.is-busy::before { opacity: .9; animation: room-pulse 2.8s ease-in-out infinite; }
.room.is-social::before { background: var(--orange); box-shadow: 0 0 10px rgba(255, 147, 102, .7); }
.room::after { content: ""; position: absolute; inset: 0; opacity: .25; pointer-events: none; background: repeating-linear-gradient(0deg, transparent, transparent 11px, rgba(255,255,255,.035) 12px); }
.room-title { position: relative; z-index: 1; color: #a9c0c8; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.room-count { float: right; color: var(--cyan); }
.room-agents { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 11px; align-items: center; height: calc(100% - 15px); padding-top: 5px; }
.room.home { grid-column: 1 / 4; grid-row: 1 / 3; background: #1a202a; }
.room.lobby { grid-column: 4 / 7; grid-row: 1 / 3; background: #1d3036; }
.room.meeting { grid-column: 7 / 10; grid-row: 1 / 4; background: #24323b; }
.room.boss { grid-column: 10 / 13; grid-row: 1 / 3; background: #2a2933; }
.room.kitchen { grid-column: 1 / 5; grid-row: 3 / 6; background: #343029; }
.room.code { grid-column: 5 / 9; grid-row: 4 / 7; background: #192c35; }
.room.art { grid-column: 9 / 13; grid-row: 4 / 7; background: #302936; }
.room.qa { grid-column: 1 / 4; grid-row: 6 / 9; background: #26332d; }
.room.audio { grid-column: 4 / 7; grid-row: 7 / 9; background: #29263a; }
.room.break { grid-column: 7 / 10; grid-row: 7 / 9; background: #25342e; }
.room.restroom { grid-column: 10 / 13; grid-row: 7 / 9; background: #27303a; }
.agent { display: grid; justify-items: center; gap: 2px; min-width: 48px; animation: breathe 3.3s ease-in-out infinite; }
.agent:nth-child(2n) { animation-delay: -1.1s; }
.agent-head, .avatar { display: grid; place-items: center; border: 2px solid var(--agent, var(--avatar)); border-radius: 50%; background: color-mix(in srgb, var(--agent, var(--avatar)) 25%, #132028); color: white; font-weight: 800; }
.agent-head { position: relative; width: 31px; height: 31px; font-size: 12px; box-shadow: 0 0 18px color-mix(in srgb, var(--agent) 38%, transparent); }
.agent.is-working .agent-head::after, .agent.is-social .agent-head::after { content: ""; position: absolute; right: -2px; bottom: -1px; width: 7px; height: 7px; border: 2px solid #132028; border-radius: 50%; background: var(--green); box-shadow: 0 0 7px var(--green); }
.agent.is-social .agent-head::after { background: var(--orange); box-shadow: 0 0 7px var(--orange); }
.agent-name { color: #f2f7f8; font-size: 10px; font-weight: 700; }
.agent-activity { color: var(--muted); font-size: 9px; }
.agent.away { opacity: .4; filter: grayscale(.5); }
@keyframes breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes room-pulse { 0%, 100% { transform: scale(.8); opacity: .55; } 50% { transform: scale(1.45); opacity: 1; } }
.legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 13px 22px 18px; color: var(--muted); font-size: 11px; }
.legend-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--cyan); }
.legend-dot.away { background: #677780; }
.legend-dot.active { background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.side-column { display: grid; gap: 20px; }
.on-air-panel { border-color: rgba(99, 230, 255, .32); background: radial-gradient(circle at 90% 0, rgba(99,230,255,.12), transparent 46%), linear-gradient(145deg, rgba(21, 35, 45, .98), rgba(13, 23, 31, .96)); }
.show-badge { padding: 4px 7px; border: 1px solid rgba(116, 233, 138, .35); border-radius: 4px; color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.show-host, .show-dialogue, .show-source { padding: 0 22px; }
.show-host { margin-bottom: 8px; color: var(--cyan); font-size: 12px; font-weight: 700; }
.show-dialogue { margin-bottom: 12px; color: #d8e5e8; font-size: 13px; line-height: 1.45; }
.show-source { margin-bottom: 18px; color: var(--muted); font-size: 10px; }
.show-source a { color: var(--orange); }
.audio-bar { display: flex; align-items: center; gap: 10px; padding: 0 22px 18px; }
.audio-toggle { padding: 7px 9px; color: var(--cyan); border: 1px solid rgba(99,230,255,.35); border-radius: 5px; background: rgba(99,230,255,.08); font: inherit; font-size: 10px; font-weight: 800; letter-spacing: .08em; cursor: pointer; }
.audio-toggle:hover { border-color: var(--cyan); background: rgba(99,230,255,.16); }
#audio-status { color: var(--muted); font-size: 10px; line-height: 1.3; }
.show-dialogue-live { animation: dialogue-in .32s ease-out; }
@keyframes dialogue-in { from { opacity: .25; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.companion-cta { display: flex; align-items: center; gap: 8px; margin: 0 22px 14px; padding: 7px 9px; border: 1px solid rgba(246, 207, 114, .38); border-radius: 5px; background: rgba(246, 207, 114, .08); }
.companion-cta-label { flex: 0 0 auto; color: #f6cf72; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.companion-cta strong { min-width: 0; overflow: hidden; color: #fff4c8; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.poll-choices { display: grid; gap: 8px; padding: 0 22px 4px; }
.poll-choice { display: grid; grid-template-columns: 27px 1fr auto; gap: 9px; align-items: center; padding: 10px; color: var(--text); border: 1px solid var(--line); border-radius: 7px; background: rgba(255, 255, 255, .035); text-align: left; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.poll-choice:hover { border-color: var(--cyan); background: rgba(99, 230, 255, .1); transform: translateX(3px); }
.choice-number { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; background: rgba(99, 230, 255, .14); color: var(--cyan); font-weight: 800; }
.choice-name { font-size: 13px; }
.choice-count { color: var(--muted); font-size: 12px; }
.muted { padding: 0 22px 18px; margin-bottom: 0; }
.crew-list, .events-list { padding: 0 22px 18px; }
.crew-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.crew-row:last-child { border: 0; }
.avatar { flex: 0 0 auto; width: 29px; height: 29px; font-size: 11px; }
.crew-row strong, .crew-row small { display: block; }
.crew-row strong { font-size: 12px; }
.crew-row small { max-width: 220px; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crew-row .crew-goal { color: #9fb8c3; }
.crew-row .crew-needs { margin-left: auto; color: var(--cyan); font-size: 9px; white-space: nowrap; }
.crew-row .presence { width: 6px; height: 6px; margin-left: 0; box-shadow: 0 0 7px var(--green); }
.crew-row.is-away { opacity: .45; }
.crew-row.is-away .presence { background: #6b7a80; box-shadow: none; }
.event-row { display: grid; grid-template-columns: 42px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.event-row time { color: var(--cyan); font-size: 10px; font-variant-numeric: tabular-nums; }
.event-row p { margin: 0; color: #c3d1d5; font-size: 11px; line-height: 1.35; }
.conversation-line { margin-top: 3px; color: #9fb8c3; font-size: 10px; line-height: 1.25; }
.conversation-line strong { color: #f6cf72; }
.event-row.friendship time { color: var(--green); }
.event-row.tension time { color: var(--orange); }
.event-row.technical time { color: var(--cyan); }
.event-row.bug time { color: #ff765d; }
.event-row.breakthrough time { color: var(--green); }
.event-row.playtest time { color: var(--cyan); }
.event-row.planning time { color: #f6cf72; }
.event-row.milestone time { color: #ffd166; }
.event-row.handoff time { color: #f6cf72; }
.event-row.maintenance time { color: #a98cff; }
.game-tagline { padding: 0 22px; color: #c3d1d5; font-size: 11px; line-height: 1.4; }
.game-link { display: inline-block; margin: 0 22px 13px; padding: 8px 10px; color: #091522; background: var(--cyan); font-size: 10px; font-weight: 800; text-decoration: none; }
.game-leaderboard { padding: 0 22px 16px; }
.game-leaderboard > .label { display: block; margin-bottom: 5px; }
.game-leaderboard ol { margin: 0; padding-left: 25px; color: var(--muted); font-size: 11px; }
.game-leaderboard li { padding: 2px 0; }
.game-leaderboard li strong { color: #fff4c8; }
.game-leaderboard li span { float: right; color: var(--cyan); }
.community-ranking { padding: 0 22px 16px; }
.community-ranking > .label { display: block; margin-bottom: 5px; }
.community-ranking ol { margin: 0; padding-left: 25px; color: var(--muted); font-size: 11px; }
.community-ranking li { padding: 2px 0; }
.community-ranking li strong { color: #fff4c8; }
.community-ranking li span { float: right; color: var(--cyan); }
.community-version { color: var(--muted); font-size: 9px; font-weight: 400; }
.community-game-link { color: #fff4c8; text-decoration: none; }
.community-game-link:hover { color: var(--cyan); text-decoration: underline; }
.studio-hall-of-fame { padding: 0 22px 18px; border-top: 1px solid rgba(255,255,255,.06); margin-top: 6px; padding-top: 12px; }
.studio-hall-of-fame > .label { display: block; margin-bottom: 7px; color: #ffd166; }
.games-catalog-list { display: grid; gap: 7px; }
.catalog-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 6px; background: rgba(0,0,0,.2); font-size: 11px; }
.catalog-item strong { color: #fff4c8; }
.catalog-item small { color: var(--muted); font-size: 9px; }
.catalog-item a { color: var(--cyan); text-decoration: none; font-weight: 700; font-size: 10px; }
.catalog-item a:hover { text-decoration: underline; }
.catalog-badge { padding: 2px 5px; border-radius: 3px; font-size: 8px; font-weight: 800; }
.catalog-badge.released { background: rgba(116,233,138,.18); color: var(--green); border: 1px solid rgba(116,233,138,.4); }
.catalog-badge.rc { background: rgba(255,209,102,.18); color: #ffd166; border: 1px solid rgba(255,209,102,.4); }
.site-footer { display: flex; gap: 16px; max-width: 1500px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 64px) 28px; color: var(--muted); font-size: 11px; }
.site-footer a, .legal-card a { color: var(--cyan); }
.legal-page { max-width: 920px; }
.legal-card { margin-top: 26px; padding: 28px clamp(22px, 5vw, 50px); }
.legal-card h2 { margin: 25px 0 8px; color: var(--cyan); }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p { color: #c3d1d5; line-height: 1.65; }
.legal-card .legal-meta { margin-top: 30px; color: var(--muted); font-size: 11px; }
@media (max-width: 1000px) { .content-grid { grid-template-columns: 1fr; } .side-column { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .topbar { align-items: flex-start; flex-direction: column; } .clock-card { text-align: left; } .project-strip, .side-column { grid-template-columns: 1fr 1fr; } .endpoint, .ai-budget { grid-column: 1 / -1; } .progress-bars { grid-template-columns: repeat(2, minmax(0, 1fr)); } .office { min-height: 500px; gap: 4px; padding: 7px; } .room { padding: 8px; } .room-title { font-size: 8px; } .agent-activity { display: none; } }
@media (max-width: 500px) { .project-strip, .side-column { grid-template-columns: 1fr; } .office { display: block; min-height: 0; } .room { min-height: 82px; margin-bottom: 5px; } }

/*
 * The Pi captures a fixed 1024x720 desktop surface. The normal observer is
 * intentionally responsive for browsers, while this mode is a self-contained
 * broadcast frame: no page scroll, no stacked mobile layout, and a readable
 * first-pass 16-bit studio skin. It uses only original CSS shapes and the
 * live world JSON, so the presentation can later be swapped for a real tile
 * map without changing the runtime or Twitch integration.
 */
body.broadcast-mode {
  min-width: 1024px;
  width: 1024px;
  height: 720px;
  overflow: hidden;
  background: #101426;
  font-family: "Courier New", ui-monospace, monospace;
  image-rendering: pixelated;
}

.broadcast-mode .shell {
  width: 1024px;
  height: 720px;
  max-width: none;
  margin: 0;
  padding: 12px 14px;
  overflow: hidden;
}

.broadcast-mode .topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  height: 54px;
  margin-bottom: 8px;
  align-items: center;
  gap: 14px;
}

.broadcast-mode .topbar > div:first-child {
  min-width: 0;
  overflow: hidden;
}

.broadcast-mode .eyebrow,
.broadcast-mode .label {
  margin-bottom: 3px;
  color: #7de8d6;
  font-size: 9px;
  letter-spacing: .12em;
}

.broadcast-mode h1 {
  max-width: none;
  margin-bottom: 0;
  color: #fff4c8;
  font-size: 24px;
  letter-spacing: -.06em;
  text-shadow: 3px 3px 0 #252440;
}

.broadcast-mode .subline { display: none; }

.broadcast-mode .clock-card {
  position: relative;
  z-index: 2;
  width: 150px;
  min-width: 150px;
  flex: 0 0 150px;
  height: 54px;
  min-height: 54px;
  padding: 2px 8px;
  white-space: nowrap;
  line-height: 1;
  overflow: hidden;
  border: 2px solid #3f4d7a;
  border-radius: 3px;
  background: #1b2038;
  box-shadow: 4px 4px 0 #090b18;
}

.broadcast-mode .clock-card #connection {
  font-size: 9px;
}

.broadcast-mode .clock-card strong {
  margin: 1px 0 0;
  color: #fff4c8;
  font-size: 18px;
  line-height: 1;
}

.broadcast-mode .clock-card small { font-size: 8px; line-height: 1; }

.broadcast-mode .project-strip,
.broadcast-mode .panel {
  border: 2px solid #3f4d7a;
  border-radius: 3px;
  background: #1b2038;
  box-shadow: 4px 4px 0 #090b18;
}

.broadcast-mode .progress-panel { display: none; }

.broadcast-mode .project-strip {
  height: 50px;
  grid-template-columns: 1.2fr .75fr .85fr .9fr 1.1fr 1.55fr 1.35fr;
  gap: 12px;
  padding: 7px 12px;
  margin-bottom: 8px;
  overflow: hidden;
}

.broadcast-mode .endpoint { display: none; }
.broadcast-mode .project-strip strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.broadcast-mode .community-pick-summary small { margin-top: 1px; font-size: 8px; }
.broadcast-mode .project-sprint-summary small { margin-top: 1px; font-size: 8px; }
.broadcast-mode .ai-budget strong { color: #f6cf72; font-size: 10px; }
.broadcast-mode .workstream-summary > .label { margin-bottom: 2px; font-size: 8px; }
.broadcast-mode #workstream-mini-bars { gap: 2px 5px; }
.broadcast-mode .workstream-mini-item { grid-template-columns: 22px minmax(0, 1fr); gap: 3px; font-size: 7px; }
.broadcast-mode .workstream-mini-item b { font-size: 7px; }
.broadcast-mode .workstream-mini-item i { height: 3px; }

.broadcast-companion-indicator { display: none; }
.broadcast-stream-cta { display: none; }
.legend-items { display: flex; gap: 18px; align-items: center; }

html.broadcast-mode body,
body.broadcast-mode {
  min-width: 1024px;
  width: 1024px;
  height: 720px;
  overflow: hidden;
  background: #101426;
  font-family: "Courier New", ui-monospace, monospace;
  image-rendering: pixelated;
}

html.broadcast-mode .content-grid,
body.broadcast-mode .content-grid {
  height: 585px !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  align-items: stretch;
}

html.broadcast-mode .side-column,
body.broadcast-mode .side-column {
  display: none !important;
}

html.broadcast-mode .games-panel,
body.broadcast-mode .games-panel {
  display: none !important;
}

html.broadcast-mode .panel,
body.broadcast-mode .panel { min-height: 0; overflow: hidden; }
html.broadcast-mode .world-panel,
body.broadcast-mode .world-panel { display: grid !important; grid-template-rows: 44px minmax(0, 1fr) 34px !important; width: 100% !important; height: 100% !important; }
html.broadcast-mode .panel-heading,
body.broadcast-mode .panel-heading { padding: 8px 14px; display: flex; justify-content: space-between; align-items: center; }
html.broadcast-mode .panel-heading.compact,
body.broadcast-mode .panel-heading.compact { padding-bottom: 5px; }
html.broadcast-mode h2,
body.broadcast-mode h2 { font-size: 14px; letter-spacing: -.04em; }
html.broadcast-mode .hint,
body.broadcast-mode .hint { font-size: 9px; }

html.broadcast-mode .broadcast-companion-indicator,
body.broadcast-mode .broadcast-companion-indicator {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 3px 9px;
  background: rgba(99, 230, 255, .12);
  border: 1px solid rgba(99, 230, 255, .35);
  border-radius: 4px;
}
.broadcast-mode .companion-live-tag {
  background: #63e6ff;
  color: #081017;
  font-size: 8px;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 2px;
  letter-spacing: .08em;
}
.broadcast-mode .broadcast-companion-indicator strong {
  color: #fff4c8;
  font-size: 11px;
  letter-spacing: .03em;
}
.broadcast-mode .broadcast-companion-indicator small {
  color: #8ba0a8;
  font-size: 8px;
}

.broadcast-mode .office {
  min-height: 0;
  height: auto;
  gap: 4px;
  padding: 8px;
  border-top: 2px solid #3f4d7a;
  border-bottom: 2px solid #3f4d7a;
  background-color: #252b47;
  background-image: linear-gradient(45deg, rgba(255,255,255,.035) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.035) 75%), linear-gradient(45deg, rgba(255,255,255,.035) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.035) 75%);
  background-position: 0 0, 8px 8px;
  background-size: 16px 16px;
}

.broadcast-mode .pixel-office {
  display: block;
  position: relative;
  overflow: hidden;
  background: #171a31;
}

.broadcast-mode .pixel-canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.broadcast-mode .room {
  min-height: 0;
  padding: 8px;
  border: 2px solid rgba(133, 151, 205, .35);
  border-radius: 2px;
  box-shadow: 3px 3px 0 rgba(8, 10, 24, .55);
}

.broadcast-mode .room::after {
  opacity: .4;
  background: repeating-linear-gradient(0deg, transparent, transparent 7px, rgba(255,255,255,.045) 8px);
}

.broadcast-mode .room-title { color: #b6c8df; font-size: 9px; letter-spacing: .08em; }
.broadcast-mode .room-count { color: #f6cf72; }
.broadcast-mode .room-agents { gap: 7px; padding-top: 3px; }
.broadcast-mode .agent { min-width: 40px; gap: 1px; }
.broadcast-mode .agent-head,
.broadcast-mode .avatar {
  border-width: 2px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--agent, var(--avatar)) 30%, #171a31);
  box-shadow: 2px 2px 0 rgba(8, 10, 24, .55);
}

.broadcast-mode .agent-head { width: 25px; height: 25px; font-size: 10px; }
.broadcast-mode .agent-name { font-size: 8px; }
.broadcast-mode .agent-activity { font-size: 8px; }
.broadcast-mode .legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  font-size: 9px;
}
.broadcast-mode .legend-items {
  display: flex;
  gap: 14px;
  align-items: center;
}
.broadcast-mode .legend-dot { border-radius: 2px; }
.broadcast-mode .broadcast-stream-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffd166;
  font-size: 9px;
}
.broadcast-mode .broadcast-stream-cta b {
  color: #63e6ff;
  text-decoration: underline;
}

.broadcast-mode .side-column { display: none; }
.broadcast-mode .games-panel { display: none; }

.broadcast-mode .on-air-panel { border-color: #4e9fb0; background: #1b2942; }
.broadcast-mode .show-badge { padding: 3px 5px; border-radius: 2px; font-size: 8px; }
.broadcast-mode .show-host,
.broadcast-mode .show-dialogue,
.broadcast-mode .show-source { padding: 0 14px; }
.broadcast-mode .show-host { margin-bottom: 5px; font-size: 10px; }
.broadcast-mode .show-dialogue { max-height: 53px; margin-bottom: 6px; font-size: 11px; line-height: 1.25; overflow: hidden; }
.broadcast-mode .show-source { margin-bottom: 7px; font-size: 8px; }
.broadcast-mode .audio-bar { gap: 6px; padding: 0 14px 8px; }
.broadcast-mode .audio-toggle { padding: 5px 6px; border-radius: 2px; font-size: 8px; }
.broadcast-mode #audio-status { font-size: 8px; }
.broadcast-mode .companion-cta { display: flex; gap: 6px; margin: 0 14px 8px; padding: 5px 6px; border-color: #d5ae57; border-radius: 2px; background: rgba(246, 207, 114, .12); }
.broadcast-mode .companion-cta-label { font-size: 8px; }
.broadcast-mode .companion-cta strong { font-size: 8px; }
.broadcast-mode .poll-choices { grid-template-columns: 1fr 1fr; gap: 5px; padding: 0 14px 3px; }
.broadcast-mode .poll-choice { grid-template-columns: 20px 1fr auto; gap: 6px; padding: 5px 6px; border-radius: 2px; }
.broadcast-mode .choice-number { width: 17px; height: 17px; border-radius: 2px; font-size: 10px; }
.broadcast-mode .choice-name { font-size: 10px; }
.broadcast-mode .choice-count { font-size: 9px; }
.broadcast-mode .muted { padding: 0 14px 7px; font-size: 8px; }
.broadcast-mode #vote-status { color: #f6cf72; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.broadcast-mode .crew-list,
.broadcast-mode .events-list { padding: 0 14px 7px; overflow: hidden; }
.broadcast-mode .crew-row { gap: 6px; padding: 4px 0; }
.broadcast-mode .crew-row > div { min-width: 0; }
.broadcast-mode .crew-row strong { font-size: 9px; }
.broadcast-mode .crew-row small { max-width: 185px; font-size: 8px; }
.broadcast-mode .crew-row .crew-needs { font-size: 8px; }
.broadcast-mode .avatar { width: 21px; height: 21px; font-size: 9px; }
.broadcast-mode .event-row { grid-template-columns: 34px 1fr; gap: 5px; padding: 5px 0; }
.broadcast-mode .event-row time { font-size: 8px; }
.broadcast-mode .event-row p { font-size: 9px; line-height: 1.2; }
.broadcast-mode .conversation-line { display: none; }
