/* Desktop screen sharing: the important text survives a phone-sized stream. */
.meta-keyword .keyword-label { display: none; }
.broadcast-button, .broadcast-utility {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 34px; padding: 7px 12px; border: 1px solid #b8954d80;
  border-radius: 9px; background: #f5c65e0d; color: #f9d88f;
  font: inherit; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.broadcast-button svg { width: 17px; height: 17px; }
.broadcast-button:hover, .broadcast-utility:hover { background: #f5c65e20; border-color: #f5c65e; }
.broadcast-button:disabled, .broadcast-utility:disabled { opacity: .45; cursor: default; }
.broadcast-utility { border-color: #ffffff24; background: #ffffff05; color: #d6dbe5; }
.broadcast-room { min-width: 0; max-width: 24vw; color: #b8c0ce; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.winner-pagination { display: flex; align-items: center; justify-content: center; gap: 18px; flex-shrink: 0; }
.winner-pagination button { padding: 7px 17px; border: 1px solid #d8bc7944; border-radius: 9px; background: #f5c65e0c; color: #ffe2a2; font: inherit; }
.winner-pagination button:disabled { opacity: .35; cursor: default; }
.winner-pagination span { color: #e6d9bd; font-variant-numeric: tabular-nums; }
.broadcast-controls-dialog { width: min(530px, calc(100vw - 48px)); padding: 25px; max-height: calc(100dvh - 40px); }
.broadcast-controls-dialog .dialog-heading { margin-bottom: 18px; }
.broadcast-controls-dialog .control-panel {
  display: flex; width: 100%; height: auto; min-height: 0; overflow: visible;
  padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none;
}
.broadcast-controls-dialog .collection-status { margin-bottom: 0; }
.broadcast-controls-dialog .panel-heading { display: none; }
.broadcast-controls-dialog #audience-home, .broadcast-controls-dialog .demo-button { display: none; }
.broadcast-controls-dialog .room-copy strong { font-size: 16px; }
.broadcast-controls-dialog .room-copy small, .broadcast-controls-dialog .connection-detail { font-size: 12px; }
.broadcast-controls-dialog .field-label, .broadcast-controls-dialog .section-label { font-size: 14px; }
.broadcast-controls-dialog .keyword-field input { font-size: 20px; }
.broadcast-controls-dialog .style-dock { display: block; margin-top: 20px; width: 100%; }
.broadcast-controls-dialog .style-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.broadcast-controls-dialog .style-tab { min-height: 64px; flex-direction: row; padding: 8px; }
.broadcast-controls-dialog .style-name { font-size: 14px; }
.broadcast-controls-dialog .style-name small { display: block; font-size: 10px; }

@media (min-width: 961px) and (min-height: 600px) {
  .control-panel .participant-row { font-size: 15px; line-height: 1.5; }
  .control-panel .participant-index, .control-panel .participant-row .joined { font-size: 11px; }
  .control-panel .chat-name { font-size: 14px; }
  .control-panel .chat-text { font-size: 16px; line-height: 1.7; color: #e6e9f0; }
  .stage-meta { font-size: 13px; }
  .stage-meta strong { font-size: 26px; color: #fff0ce; }
  .stage-meta .meta-keyword b { font-size: 28px; line-height: 1.25; }
  .stage-meta .meta-keyword { border-color: #f5c65e44; }
  .stage-kicker > #stage-phase-label, .kicker-line { display: none; }
  .winner-card strong { font-size: 22px; }
  .winner-cards.single .winner-card strong { font-size: 32px; }
}

body.broadcast-mode { display: block; height: 100dvh; min-height: 0; overflow: hidden; background: #0d1017; }
.broadcast-mode > .site-header, .broadcast-mode > .page-footer { display: none; }
.broadcast-mode .workspace, .broadcast-mode.collection-expanded .workspace {
  display: block; width: 100%; max-width: none; height: 100dvh; min-height: 0; max-height: none;
  padding: 12px; margin: 0;
}
.broadcast-mode .workspace > .control-panel { display: none; }
.broadcast-mode .stage-panel, .broadcast-mode .stage-panel:fullscreen {
  width: 100%; height: 100%; min-height: 0; max-height: none;
  border-radius: 20px; border-color: #58503e;
  background: radial-gradient(ellipse at 50% 40%, #a9822712, transparent 58%), #11151d;
}
.broadcast-mode .stage-panel:fullscreen { border-radius: 0; height: 100dvh; }
.broadcast-mode .stage-toolbar { padding: 12px 22px; min-height: 58px; gap: 18px; flex-shrink: 0; }
.broadcast-mode .stage-identity { gap: 10px; min-width: 0; }
.broadcast-mode .stage-identity > strong { font-size: 20px; white-space: nowrap; }
.broadcast-mode .broadcast-room { font-size: 16px; }
.broadcast-mode .stage-tools { gap: 8px; flex-shrink: 0; }
.broadcast-mode .broadcast-button, .broadcast-mode .broadcast-utility { min-height: 36px; font-size: 13px; padding: 7px 10px; }
.broadcast-mode .live-pill { font-size: 11px; }
.broadcast-mode #sound-state-label, .broadcast-mode #sound-test-btn, .broadcast-mode #audience-shrink-btn { display: none; }
.broadcast-mode .stage-tools .icon-button { width: 34px; height: 34px; }
.broadcast-mode .demo-banner { padding: 5px 22px; font-size: 12px; }
.broadcast-mode .room-stats, .broadcast-mode.collection-expanded .room-stats { margin: 6px 22px 0; flex-shrink: 0; }
.broadcast-mode .room-stat, .broadcast-mode.collection-expanded .room-stat { padding: 8px 16px; display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 13px; row-gap: 0; }
.broadcast-mode .room-stat > span, .broadcast-mode.collection-expanded .room-stat > span { font-size: clamp(15px, 1.4vw, 24px); color: #c1cad8; }
.broadcast-mode .room-stat strong, .broadcast-mode.collection-expanded .room-stat strong { font-size: clamp(28px, 2.5vw, 46px); line-height: 1.15; color: #f4f6fb; }
.broadcast-mode .room-stat > div { margin: 0; }
.broadcast-mode .room-stat p { display: none; }
.broadcast-mode .room-stat[data-stale=true] p { display: block; width: 100%; color: #edba7a; font-size: 11px; margin: 2px 0 0; }
.broadcast-mode .stage-panel[data-phase=drawn] > .room-stats { display: none; }
.broadcast-mode .stage-content, .broadcast-mode .stage-panel:fullscreen .stage-content {
  display: flex; flex: 1 1 0; min-height: 0; padding: 12px 24px 16px;
  justify-content: flex-start; overflow: hidden;
}
.broadcast-mode.collection-expanded .stage-content { display: none; }
.broadcast-mode .stage-intro { display: block; width: 100%; flex-shrink: 0; }
.broadcast-mode .stage-intro h1, .broadcast-mode .stage-description, .broadcast-mode .stage-kicker { display: none; }
.broadcast-mode .stage-meta {
  display: grid; grid-template-columns: minmax(0,1fr) auto auto;
  gap: 12px 30px; width: 100%; margin: 0; font-size: clamp(18px,1.8vw,28px); align-items: center;
}
.broadcast-mode .stage-meta > i { display: none; }
.broadcast-mode .stage-meta > span { grid-row: 1; gap: 10px; white-space: nowrap; }
.broadcast-mode .stage-meta > span:first-child { grid-column: 2; }
.broadcast-mode .stage-meta > span:nth-of-type(2) { grid-column: 3; }
.broadcast-mode .stage-meta > span > svg { display: none; }
.broadcast-mode .stage-meta strong { font-size: clamp(36px,3.5vw,64px); font-weight: 750; color: #ffe1a0; }
.broadcast-mode .stage-meta .meta-keyword {
  grid-column: 1; grid-row: 1; justify-content: flex-start; gap: 14px; min-width: 0;
  padding: 8px 20px; border-radius: 14px; border: 1px solid #ddbb6c55; color: #d9b969;
  background: linear-gradient(110deg,#e3bd6418,#e3bd6405); white-space: normal;
}
.broadcast-mode .meta-keyword .keyword-label { display: inline-block; flex-shrink: 0; font-size: clamp(20px,1.8vw,30px); font-weight: 600; line-height: 1.5; color: #d9c395; white-space: nowrap; }
.broadcast-mode .meta-keyword .keyword-hash { display: none; }
.broadcast-mode .stage-meta .meta-keyword b { min-width: 0; max-width: none; font-size: clamp(60px,6.1vw,112px); line-height: 1.12; color: #ffe3a4; overflow-wrap: anywhere; font-weight: 850; letter-spacing: .02em; }
.broadcast-mode .stage-panel[data-keyword-length=long] .stage-meta .meta-keyword b { font-size: clamp(32px,3.7vw,64px); }
.broadcast-mode .draw-arena, .broadcast-mode .stage-panel:fullscreen .draw-arena {
  flex: 1 1 0; min-height: 0; height: auto; max-height: none; width: 100%; margin: 12px 0;
}
.broadcast-mode .arena-topline { top: 7px; font-size: 15px; }
.broadcast-mode .arena-bottomline { font-size: 13px; bottom: 6px; }
.broadcast-mode #effect-label { font-size: 15px; letter-spacing: .08em; }
.broadcast-mode #animation-countdown { font-size: 21px; letter-spacing: 0; }
.broadcast-mode .stage-actions { flex-shrink: 0; margin: 0; }
.broadcast-mode .draw-button { min-width: 290px; height: 58px; padding: 12px 28px; border-radius: 14px; font-size: 22px; }
.broadcast-mode .draw-hint { font-size: 13px; margin-top: 7px; line-height: 1.4; min-height: 18px; color: #bac1ce; }
.broadcast-mode .stage-content > .style-dock, .broadcast-mode .stage-footer { display: none; }
.broadcast-mode .winner-result { inset: 26px 0; gap: 12px; }
.broadcast-mode .winner-label { font-size: clamp(21px,2vw,34px); font-weight: 600; letter-spacing: .1em; color: #e9ca83; flex-shrink: 0; }
.broadcast-mode .winner-cards { gap: 18px; padding: 3px 12px 7px; flex: 1 1 0; min-height: 0; width: 100%; align-items: stretch; }
.broadcast-mode .winner-card, .broadcast-mode .winner-cards.single .winner-card {
  min-width: 0; max-width: none; min-height: min-content; padding: 16px 20px; gap: 10px;
  justify-content: center; border-radius: 20px; background: radial-gradient(ellipse at 50% 0,#f5c65e1d,transparent 70%),#24231ff5;
}
.broadcast-mode .winner-cards.single { max-width: 1000px; }
.broadcast-mode .winner-cards.single .winner-card { flex-direction: row; flex-wrap: wrap; column-gap: 26px; }
.broadcast-mode .winner-cards.single .winner-position { flex-basis: 100%; }
.broadcast-mode .winner-card .effect-avatar { width: clamp(72px,7.5vw,128px); height: clamp(72px,7.5vw,128px); border-radius: 24px; }
.broadcast-mode .winner-cards.single .effect-avatar { width: clamp(100px,11vw,176px); height: clamp(100px,11vw,176px); margin: 0; }
.broadcast-mode .winner-card strong { font-size: clamp(34px,3.6vw,66px); line-height: 1.25; text-wrap: balance; font-weight: 800; }
.broadcast-mode .winner-cards.single .winner-card strong { font-size: clamp(52px,5.2vw,96px); max-width: 68%; }
.broadcast-mode .winner-card[data-name-length=long] strong { font-size: clamp(26px,2.2vw,42px); }
.broadcast-mode .winner-cards.single .winner-card[data-name-length=long] strong { font-size: clamp(34px,3.4vw,60px); }
.broadcast-mode .winner-card .profile-link svg { display: none; }
.broadcast-mode .winner-card .profile-link { text-decoration-thickness: 1px; text-underline-offset: .13em; }
.broadcast-mode .winner-position, .broadcast-mode .winner-cards.single .winner-position { font-size: clamp(16px,1.5vw,25px); letter-spacing: .04em; color: #d6c39b; }
.broadcast-mode .winner-card small { display: none; }
.broadcast-mode .winner-pagination { gap: 24px; font-size: 19px; }
.broadcast-mode .winner-pagination button { min-height: 38px; font-size: 17px; padding: 7px 20px; }
.broadcast-mode .case-card-top, .broadcast-mode .case-card > small { display: none; }
.broadcast-mode .case-strip { --card-width: 230px; gap: 16px; }
.broadcast-mode .case-lane { height: 236px; }
.broadcast-mode .case-card { height: 214px; gap: 14px; padding: 20px 14px; }
.broadcast-mode .case-card .effect-avatar { width: 84px; height: 84px; margin-top: 4px; border-radius: 22px; flex-shrink: 0; }
.broadcast-mode .case-card strong { font-size: 27px; line-height: 1.4; }
.broadcast-mode .case-focus-frame { width: 238px; }
.broadcast-mode .case-layout.multi .case-lane { height: 106px; }
.broadcast-mode .case-layout.multi .case-strip { --card-width: 258px; }
.broadcast-mode .case-layout.multi .case-card { height: 88px; padding: 12px; gap: 14px; }
.broadcast-mode .case-layout.multi .case-card strong { font-size: 25px; }
.broadcast-mode .case-layout.multi .case-card .effect-avatar { width: 58px; height: 58px; }
.broadcast-mode .case-layout.multi .case-focus-frame { width: 266px; }
.broadcast-mode .case-lane-label { display: none; }
.broadcast-mode .lucky-grid { width: 470px; gap: 12px; }
.broadcast-mode .lucky-cell { height: 106px; font-size: 23px; gap: 8px; }
.broadcast-mode .lucky-cell .effect-avatar { width: 46px; height: 46px; border-radius: 12px; }

/* Collection gets two readable columns instead of a wall of tiny names. */
.broadcast-mode .collection-focus { padding: 12px 24px 16px; gap: 12px; min-height: 0; }
.broadcast-mode .focus-intro { gap: 24px; flex-shrink: 0; }
.broadcast-mode .focus-intro h1, .broadcast-mode .focus-intro p { display: none; }
.broadcast-mode .focus-kicker { font-size: 22px; }
.broadcast-mode .focus-kicker > span:last-child { font-size: 18px; }
.broadcast-mode .focus-total strong { font-size: clamp(48px,5.4vw,92px); line-height: 1; }
.broadcast-mode .focus-total > span { font-size: 23px; }
.broadcast-mode .collection-focus .focus-keyword { padding: 12px 22px; gap: 20px; flex-shrink: 0; }
.broadcast-mode .collection-focus .focus-keyword strong { font-size: clamp(64px,6.5vw,120px); line-height: 1.12; letter-spacing: .04em; }
.broadcast-mode .stage-panel[data-keyword-length=long] .focus-keyword strong { font-size: clamp(32px,3.7vw,64px); }
.broadcast-mode .collection-focus .focus-keyword > span:first-child { font-size: 24px; }
.broadcast-mode .collection-focus .focus-keyword > span:last-child { font-size: 19px; }
.broadcast-mode #audience-focus-home .audience-panel { padding: 12px 22px 0; min-height: 0; background: #0c1019; }
.broadcast-mode #audience-focus-home .audience-tabs { gap: 28px; }
.broadcast-mode #audience-focus-home .audience-tabs button { font-size: 22px; }
.broadcast-mode #audience-focus-home .audience-tabs b { font-size: 22px; padding: 2px 9px; }
.broadcast-mode #audience-focus-home .participants-list:not([hidden]) { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-content: start; gap: 0 32px; }
.broadcast-mode #audience-focus-home .participant-row { padding: 12px 3px; gap: 14px; font-size: clamp(32px,3.3vw,62px); line-height: 1.35; }
.broadcast-mode #audience-focus-home .participant-name { white-space: normal; overflow-wrap: anywhere; }
.broadcast-mode #audience-focus-home .participant-index { width: 35px; font-size: 21px; color: #9aa5ba; flex-shrink: 0; }
.broadcast-mode #audience-focus-home .joined { display: none; }
.broadcast-mode #audience-focus-home .chat-row { padding: 14px 0; }
.broadcast-mode #audience-focus-home .chat-name { font-size: 26px; color: #efd59f; }
.broadcast-mode #audience-focus-home .chat-text { font-size: clamp(30px,3vw,56px); line-height: 1.5; margin-top: 5px; color: #f2f4fa; }
.broadcast-mode #audience-focus-home .chat-time, .broadcast-mode #audience-focus-home .chat-joined { display: none; }
.broadcast-mode #audience-focus-home .participants-note, .broadcast-mode #audience-focus-home .chat-note { font-size: 13px; margin: 6px 0; color: #a5aec0; }
.broadcast-mode .focus-footer > span { font-size: 14px; color: #b6c1d1; }
.broadcast-mode .focus-footer button { min-height: 48px; font-size: 19px; }

@media (min-width: 1500px) and (min-height: 900px) {
  .broadcast-mode .workspace { padding: 20px; }
  .broadcast-mode .stage-toolbar { min-height: 72px; padding: 16px 32px; }
  .broadcast-mode .stage-identity > strong { font-size: 26px; }
  .broadcast-mode .broadcast-room { font-size: 22px; }
  .broadcast-mode .broadcast-button, .broadcast-mode .broadcast-utility { font-size: 17px; min-height: 42px; }
  .broadcast-mode .room-stats { margin: 10px 32px 0; }
  .broadcast-mode .stage-content { padding: 18px 36px 24px; }
  .broadcast-mode .draw-button { height: 68px; font-size: 28px; }
  .broadcast-mode .draw-hint { font-size: 18px; }
  .broadcast-mode .collection-focus { padding: 18px 36px 24px; gap: 18px; }
  .broadcast-mode .focus-footer > span { font-size: 18px; }
  .broadcast-mode .focus-footer button { font-size: 24px; min-height: 58px; }
}
