.viewer {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(180deg, #09121ee6 0%, #09121eef 65%, #09121e 100%),
              #09121e url('/tlo-strony') center top / cover;
}
.page-width { width: min(1540px, 92%); margin-inline: auto; }
.viewer-credit { margin-top: auto; padding: 18px 0; border-top: 1px solid var(--edge); color: var(--muted); font-size: 13px; text-align: center; }
.viewer-credit a { color: var(--ink); text-underline-offset: .2em; }
.masthead { background: var(--canvas); border-bottom: 1px solid var(--edge); }
.masthead .page-width { min-height: 76px; display: flex; align-items: center; gap: 12px; }
.masthead img { width: 43px; height: 48px; object-fit: contain; }
.masthead strong, .event-heading h1, .boards > section > header h2 { font-family: "Bebas Neue", "Arial Narrow", sans-serif; font-weight: 700; }
.masthead strong { font-size: 30px; text-transform: uppercase; }
.masthead strong span { color: var(--gold); }
.association { margin-left: auto; color: var(--muted); font-size: 14px; }
.event-heading { padding-block: clamp(32px, 6vw, 78px) clamp(22px, 3vw, 44px); text-align: center; }
.event-heading p { color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.event-heading h1 { font-size: clamp(48px, 6vw, 86px); line-height: 1; margin: 8px 0 0; }
.boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); padding-bottom: 40px; }
.boards > section { min-width: 0; border: 1px solid var(--edge); border-radius: 9px; overflow: hidden; background: var(--panel); }
.boards > section > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px clamp(12px, 1.6vw, 24px); }
.boards > section > header h2 { margin: 0; font-size: clamp(26px, 2.4vw, 38px); line-height: 1.1; letter-spacing: 0; }
.board-view { position: relative; }
.board-toggle { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; cursor: zoom-in; }
.board-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.board-view.expanded, .board-view:fullscreen {
  position: fixed; inset: 0; z-index: 10; width: 100%; height: 100%; display: grid; place-items: center; background: #020816;
}
.board-view.expanded .broadcast, .board-view:fullscreen .broadcast { width: min(100%, 177.77778dvh); }
.board-view.expanded .board-toggle, .board-view:fullscreen .board-toggle { cursor: zoom-out; }
body:has(.board-view.expanded) { overflow: hidden; }
.boards .film-slide { width: 100%; }
.boards.single-board { grid-template-columns: minmax(0, 1fr); }
.boards .broadcast { --board-background: url('/tlo-strony'); }
@media (max-width: 940px) { .boards { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .page-width { width: calc(100% - 24px); }
  .masthead .page-width { min-height: 64px; }
  .association { font-size: 12px; max-width: 14ch; text-align: right; }
}
