/* Dialog artwork stays inside the scrollable surface at every height. */
.live-aid-dialog{box-sizing:border-box;width:min(540px,calc(100% - 28px));max-width:calc(100% - 28px);max-height:calc(100dvh - 28px);margin:auto;padding:clamp(16px,3dvh,28px) clamp(16px,4vw,32px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;overflow-wrap:anywhere}
.live-aid-dialog .aid-dialog-icon{position:relative;inset:auto;transform:none;width:clamp(60px,12dvh,90px);height:clamp(60px,12dvh,90px);margin:0 auto 12px;flex:none}
.live-aid-dialog .aid-dialog-icon svg{width:65%;height:70%}
.live-aid-dialog h2{font-size:clamp(23px,4dvh,35px);margin:8px 0 14px}
.live-aid-dialog p{font-size:clamp(14px,2.5dvh,19px);margin-bottom:16px}
.live-aid-dialog>strong{font-size:clamp(13px,2.3dvh,17px);margin-bottom:16px}
.live-aid-dialog .aid-countdown{width:clamp(76px,17dvh,123px);height:clamp(76px,17dvh,123px);margin-bottom:16px}
.live-aid-dialog>.live-primary{font-size:clamp(16px,3dvh,22px);min-height:44px}
.session-setup-dialog,.leave-game-dialog,.category-info-dialog{max-width:calc(100% - 28px);max-height:calc(100dvh - 28px);overflow:auto;overscroll-behavior:contain}
.live-question-content{justify-content:safe center}
@media(max-width:400px){.live-question-layout{grid-template-columns:94px minmax(0,1fr);gap:7px;padding-inline:7px}.live-question-meta{grid-template-columns:minmax(0,1fr) auto}.live-question-meta>span{grid-column:1;padding-inline:5px}.live-question-meta>b{grid-column:2}.live-question-actions{justify-content:center}.live-timer{max-width:100%;gap:6px;padding:6px 8px}.live-timer b{font-size:18px}.live-timer button{font-size:18px}}
@media(max-width:400px){.live-sidebar .live-team-aids{width:100%;min-width:0;gap:3px}.live-sidebar .live-team-aid{flex:1 1 0;min-width:0;max-width:33.333%}.live-sidebar .live-team-aid>span{width:100%;max-width:30px}.live-sidebar .live-team-aid>small{white-space:normal;overflow-wrap:anywhere;font-size:7px}.live-sidebar .live-aid-notice{font-size:11px;overflow-wrap:anywhere}}
@media(max-height:450px){.live-aid-dialog{padding:12px 20px}.live-aid-dialog .aid-dialog-icon{width:44px;height:44px;margin-bottom:4px}.live-aid-dialog h2{font-size:23px;margin:4px 0 8px}.live-aid-dialog p{font-size:14px;line-height:1.6;margin-bottom:8px}.live-aid-dialog>strong{font-size:12px;line-height:1.5;margin-bottom:8px}.live-aid-dialog .aid-countdown{width:65px;height:65px;margin-bottom:10px;border-width:4px}.live-aid-dialog .aid-countdown b{font-size:24px}.live-aid-dialog .aid-countdown span{font-size:11px}.live-aid-dialog>.live-primary{font-size:16px;padding:9px}}
.category-peek-window,.category-peek-window .category-peek-card{cursor:grab;user-select:none;-webkit-user-select:none}.category-peek-window img{-webkit-user-drag:none;user-select:none}.category-peek-window.is-dragging,.category-peek-window.is-dragging *{cursor:grabbing!important}.category-peek-window{touch-action:pan-x pan-y}.category-peek-window .category-info-button{cursor:pointer}
/* Eleven larger cards; the card nearest the viewport center is emphasized. */
.category-peek-window{padding:65px 28px 72px;overflow-y:hidden}
.category-peek-track{gap:36px;align-items:center}
.category-peek-card{flex:0 0 clamp(230px,23vw,330px)!important;width:clamp(230px,23vw,330px)!important;transform:scale(var(--card-scale,1))!important;transform-origin:center;transition:transform .12s ease-out;position:relative;z-index:var(--card-layer,0)}
.category-peek-art{height:clamp(290px,29vw,390px)!important}
.category-peek-copy{padding:21px 23px 24px!important}
.category-peek-copy h3{font-size:clamp(23px,2.1vw,30px)!important}
@media(max-width:600px){.category-peek-window{padding:48px 22px 56px}.category-peek-track{gap:30px}.category-peek-card{flex-basis:230px!important;width:230px!important}.category-peek-art{height:290px!important}}
@media(prefers-reduced-motion:reduce){.category-peek-card{transition:none}}
/* Slightly smaller cards with a stronger centered focus and release alignment. */
.category-peek-card{flex-basis:clamp(210px,20vw,290px)!important;width:clamp(210px,20vw,290px)!important;scroll-snap-align:center}
.category-peek-art{height:clamp(260px,25vw,345px)!important}
.category-peek-track{gap:48px;padding-inline:max(0px,calc((100vw - clamp(210px,20vw,290px))/2 - 28px))}
.category-peek-window{scroll-snap-type:x mandatory;padding-block:76px 82px}
.category-peek-window.is-dragging{scroll-snap-type:none;scroll-behavior:auto}
@media(max-width:600px){.category-peek-card{flex-basis:210px!important;width:210px!important}.category-peek-art{height:260px!important}.category-peek-track{gap:42px;padding-inline:max(0px,calc((100vw - 210px)/2 - 22px))}.category-peek-window{padding-block:60px 65px}}
.category-peek-window .category-peek-track>.category-peek-card:nth-child(n){transform:scale(var(--card-scale,1))!important}
/* Stop at the real card edges rather than centering the end cards in blank space. */
.category-peek-window .category-peek-track{padding-inline:0!important}
.category-peek-window{scroll-snap-type:none!important;scroll-behavior:auto}
.category-peek-window .category-peek-card{transition:transform .22s cubic-bezier(.22,.61,.36,1)}
.category-peek-window.is-dragging .category-peek-card{transition:none}
/* Reduce the category cards while retaining the center emphasis. */
.category-peek-window .category-peek-track>.category-peek-card{flex-basis:clamp(185px,17vw,245px)!important;width:clamp(185px,17vw,245px)!important}
.category-peek-window .category-peek-art{height:clamp(225px,21vw,290px)!important}
.category-peek-window .category-peek-copy{padding:17px 18px 19px!important}
.category-peek-window .category-peek-copy h3{font-size:clamp(21px,1.7vw,26px)!important}
@media(max-width:600px){.category-peek-window .category-peek-track>.category-peek-card{flex-basis:185px!important;width:185px!important}.category-peek-window .category-peek-art{height:225px!important}}

/* Team naming dialog */
#sessionSetupDialog {
  --setup-ink: #2c1537;
  --setup-purple: #553668;
  --setup-paper: #fff5df;
  --setup-orange: #ee9b62;
  width: min(432px, calc(100% - 20px));
  max-width: none;
  max-height: calc(100dvh - 20px);
  margin: auto;
  padding: clamp(14px, 2.2vw, 19px) clamp(14px, 2vw, 18px) clamp(20px, 3vw, 26px);
  border: 0;
  border-radius: clamp(21px, 3vw, 26px);
  background: var(--setup-paper);
  color: var(--setup-ink);
  box-shadow: 0 14px 42px #2c15374d;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#sessionSetupDialog::backdrop { background: #2c153742; backdrop-filter: blur(7px); }
#sessionSetupForm .setup-dialog-heading { position: relative; padding-top: 23px; text-align: center; }
#sessionSetupForm .close-modal {
  position: absolute; top: -5px; left: -4px; display: grid; place-items: center;
  width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%;
  color: var(--setup-purple); background: transparent; font: 400 36px/1 Arial, sans-serif;
}
#sessionSetupForm .close-modal:hover { background: #55366814; }
#sessionSetupForm #sessionSetupTitle {
  margin: 0; padding-inline: 24px; color: var(--setup-ink);
  font-size: clamp(21px, 3.6vw, 27px); font-weight: 900; text-align: center; line-height: 1.45;
}
.setup-dialog-heading p { margin: 4px 0 0; font-size: 15px; font-weight: 700; line-height: 1.45; }
#chosenCategoryChips { justify-content: center; gap: 4px; margin: 11px 0 19px; }
#chosenCategoryChips > span {
  min-width: min(74px, 25%); max-width: 100%; padding: 3px 10px; border: 0;
  background: var(--setup-purple); color: #fff; text-align: center; border-radius: 99px;
  font-size: 13px; line-height: 1.45; overflow-wrap: anywhere;
}
#sessionSetupForm input:not([type=checkbox]) {
  display: block; min-width: 0; width: 100%; min-height: 44px;
  margin: 0; padding: 8px 16px; box-sizing: border-box;
  border: 1px solid #b59abf; border-radius: 999px;
  color: var(--setup-ink); background: #fff; box-shadow: none;
  font: inherit; font-size: 16px; line-height: 1.4;
}
#sessionSetupForm input::placeholder { color: #705e77; opacity: 1; }
#sessionSetupForm :is(input:not([type=checkbox]), button):focus-visible,
#setupAids .setup-aid:has(input:focus-visible) > b { outline: 3px solid #80549c; outline-offset: 2px; }
#sessionTeamInputs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 8px; margin-top: 13px; }
#sessionTeamInputs .optional-team { grid-column: 1/-1; }
.setup-team-actions { display: grid; gap: 11px; margin-top: 14px; }
.setup-team-actions > button {
  width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 7px;
  border: 1.5px dashed #ee793e; border-radius: 99px; background: transparent; color: #71431e;
  font: inherit; font-size: 16px; font-weight: 800; cursor: pointer;
}
.setup-team-actions > button:hover { background: #ffd9ae40; }
.setup-team-actions button[hidden], #teamRemovalChoices[hidden] { display: none; }
#removeSessionTeam { color: #ad342a; border-color: #dd5245; }
.setup-team-actions svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#teamRemovalChoices { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
#teamRemovalChoices button { border: 1px solid #da8a7d; border-radius: 20px; padding: 7px 13px; background: #fff8f1; color: #952d23; font: inherit; cursor: pointer; overflow-wrap: anywhere; }
#sessionSetupForm .aid-fieldset { min-width: 0; margin: 16px 0 0; padding: 0; border: 0; text-align: center; }
#sessionSetupForm .aid-fieldset legend { width: 100%; margin: 0; padding: 0; font-size: 18px; font-weight: 900; text-align: center; line-height: 1.5; }
.setup-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#setupAidHint { min-height: 1.6em; margin: 3px 0 12px; font-size: 15px; line-height: 1.6; text-align: center; text-wrap: balance; }
#setupAidHint strong { font-weight: 900; }
#setupAids { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 5px; }
#setupAids .setup-aid { position: relative; flex: 0 1 57px; width: auto; min-width: 0; }
#setupAids .setup-aid::before { display: none; }
#setupAids .setup-aid > b {
  width: 100%; height: clamp(44px, 6.8vw, 52px); margin: 0; box-sizing: border-box;
  background: #ead7f3; border: 2px solid transparent; border-radius: 12px; box-shadow: none;
}
#setupAids .setup-aid svg { width: 73%; height: 83%; fill: #fff5df; stroke: var(--setup-purple); filter: drop-shadow(2px 2px 0 #553668); }
#setupAids .setup-aid:has(input:checked) > b { border-color: var(--setup-purple); background: var(--setup-orange); box-shadow: 0 3px 7px #8a480c22; }
#setupAids .setup-aid:has(input:checked)::after {
  content: '✓'; position: absolute; right: -2px; top: -4px; background: var(--setup-purple); color: white;
  border-radius: 50%; width: 16px; height: 16px; text-align: center; font: bold 12px/16px sans-serif;
}
#setupAids .setup-aid:has(input:disabled) { opacity: .54; }
#sessionSetupError { text-align: center; color: #9c2e24; }
#sessionSetupError:empty { display: none; }
#sessionSetupForm .session-start {
  position: relative; display: block; width: 86%; min-height: 51px; margin: 21px auto 0; padding: 9px 16px;
  border: 0; border-radius: 999px; background: var(--setup-orange); color: var(--setup-ink); text-align: center;
  font-size: 22px; font-weight: 900; line-height: 1.45; box-shadow: inset 0 -3px 3px #b04e1e50, 0 3px 2px #56361950;
}
#sessionSetupForm .session-start::before, #sessionSetupForm .session-start::after {
  content: ''; position: absolute; top: 6px; width: 13px; height: 9px; border: 3px solid #ffd5b3;
  border-bottom: 0; pointer-events: none;
}
#sessionSetupForm .session-start::before { left: 10px; border-right: 0; border-radius: 100% 0 0 0; }
#sessionSetupForm .session-start::after { right: 10px; border-left: 0; border-radius: 0 100% 0 0; }
@media (max-width: 350px) {
  #sessionSetupForm #sessionSetupTitle { font-size: 20px; padding-inline: 15px; }
  #sessionSetupForm input:not([type=checkbox]) { padding-inline: 12px; }
  #setupAids { padding: 0; }
}

/* Three- and four-team rounds */
#liveBoardFooter.many-teams {
  grid-template-columns: repeat(var(--team-count),minmax(0,1fr));
  gap: clamp(6px,1.4vw,18px);
}
#liveBoardFooter.many-teams .live-team-dock { grid-area: auto; direction: rtl; min-width: 0; }
#liveBoardFooter.many-teams .live-team-score { flex: 1; max-width: 300px; }
#liveBoardFooter.many-teams h2 { flex-wrap: wrap; white-space: normal; gap: 4px 8px; }
.live-team-score.live-team-2, .live-team-2 .live-score-controls button { background: #abcfc4; }
.live-team-score.live-team-3, .live-team-3 .live-score-controls button { background: #f0d393; }
.live-judge-choices .live-choice-2 { background: #abcfc4 !important; }
.live-judge-choices .live-choice-3 { background: #f0d393 !important; }
.live-judge-choices { width: 100%; }
.live-judge-choices button { min-width: min(100%, 135px); max-width: 100%; overflow-wrap: anywhere; }
#blockOpponentField:not([hidden]) { display: grid; gap: 6px; margin: 12px auto; width: min(100%, 265px); }
#blockOpponent { font: inherit; color: #392343; padding: 8px; background: #fff6e6; border: 1px solid #ac91b1; border-radius: 10px; }
@media (max-width: 650px) {
  #liveBoardFooter.many-teams { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #liveBoardFooter.many-teams > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Categories awaiting their supplied artwork. */
.category-without-art::before, .category-without-art::after { display: none; }
.live-category-art.category-without-art { background: #fff0ce !important; }
.live-category-art.category-without-art h2 {
  top: auto; bottom: 0; left: 0; right: 0; border-radius: 0;
  background: #fff7e9ed; color: #50365c;
}
.team-pick > div > span.category-pick-text {
  font-size: 10px; line-height: 1.3; padding: 2px;
  overflow-wrap: anywhere; border-style: solid;
}
.previous-game-tile { overflow-wrap: anywhere; text-align: center; }

.live-category-art.live-category-art:has(> img) {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
}
.live-category-art.live-category-art > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}
.live-category-art.live-category-art:has(> img) h2 {
  position: static;
  overflow-wrap: anywhere;
}

#liveBoard {
  grid-template-rows: none;
  grid-auto-rows: minmax(144px, 1fr);
}

.category-bank-status {
  display: block;
  padding: 0 4px 8px;
  color: #593b60;
  font-weight: 700;
}
.bank-question-text, .bank-answer-note { white-space: pre-line; }
.bank-answer-note { text-align: center; margin: 0; max-width: 90%; }
.bank-image {
  position: relative;
  display: inline-block;
  max-width: 90%;
  flex: 0 0 auto;
}
.live-question-content .bank-image > img {
  display: block;
  max-width: 100%;
  max-height: 42cqh;
}
.bank-image-mask, .bank-image > svg {
  position: absolute;
  pointer-events: none;
}
.bank-image > svg { inset: 0; width: 100%; height: 100%; }
.bank-image.bank-sprite { width: min(90%, 57cqh, 520px); overflow: hidden; }
.live-question-content .bank-sprite > img {
  position: absolute;
  max-width: none;
  max-height: none;
  object-fit: fill;
}
.bank-question-audio { width: min(100%, 380px); flex: 0 0 auto; }
.live-question-content:has(.bank-answer-players-trigger) > .live-answer-title { display: none; }
.live-question-content .bank-answer-players-trigger {
  width: min(100%, 960px);
  flex: 1 1 0;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
}
.bank-answer-players-trigger .bank-answer-players {
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
}
.bank-answer-players-trigger .bank-image-tile {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 4px;
  min-height: 0;
  overflow-wrap: anywhere;
  font-size: clamp(13px, 2.2cqw, 20px);
}
.bank-answer-players-trigger .bank-image {
  min-height: 0;
}
.live-question-content .bank-answer-players-trigger .bank-image > img {
  max-width: 100%;
  max-height: 100%;
  height: 100%;
  aspect-ratio: auto;
}
.bank-answer-players {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(6px, 2vw, 16px);
  width: 100%;
  text-align: center;
}
.bank-answer-players > .bank-image-tile { max-width: none; }
.bank-answer-players .bank-image { display: block; max-width: none; }
.live-question-content .bank-answer-players img,
.bank-image-zoom .bank-answer-players img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}
.bank-image-zoom > .bank-answer-players {
  width: min(95vw, calc((100dvh - 120px) * 2));
  color: #fff5df;
}

/* Align artwork to the top even when a neighboring card adds a status line. */
#setupCategories .setup-category-frame > .setup-category {
  display: flex;
  flex-direction: column;
  padding: 0;
}
#setupCategories .setup-category-art {
  align-self: stretch;
  flex: 0 0 auto;
  border-radius: 19px 19px 0 0;
}
#setupCategories .setup-category > strong {
  flex: 1;
  align-self: stretch;
  display: grid;
  place-items: center;
}
#setupCategories .setup-category > .category-bank-status {
  align-self: stretch;
}
#setupCategories .setup-category-art > :is(
  img[src*="celebrity-voice-redrawn"],
  img[src*="flag-color-redrawn"]
) {
  object-position: center;
  transform: scale(1.17);
}
#setupCategories .setup-category-art > img[src*="auction-cover"] {
  object-position: center bottom;
}

.bank-image-tile { max-width: 90%; flex: 0 0 auto; min-width: 0; }
.bank-image-trigger {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2c1537;
  cursor: zoom-in;
}
.bank-image-zoom-label {
  display: block;
  padding: 5px 12px;
  border-radius: 16px;
  background: #ead7f3;
  font-size: 13px;
  font-weight: 700;
}
.bank-image-trigger .bank-sprite { width: min(70vw, 57cqh, 520px); }
.bank-image-zoom[open] {
  position: fixed;
  inset: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 12px;
  border: 0;
  background: transparent;
}
.bank-image-zoom > .bank-image { max-width: 100%; }
.bank-image-zoom .bank-image > img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 82px);
  object-fit: contain;
}
.bank-image-zoom > .bank-sprite { width: min(95vw, calc((100dvh - 82px) * 1.5)); }
.bank-image-zoom .bank-sprite > img { max-width: none; max-height: none; object-fit: fill; }
.bank-image-zoom > button { color: #2c1537; background: #fff5df; }

.bank-image-zoom::backdrop { background: rgb(33 18 45 / 72%); }

/* The logo SVGs specify a viewBox but no intrinsic width or height. */
.bank-image.bank-logo-choices { width: min(68vw, 620px); }
.bank-logo-choices > img { width: 100%; height: auto; }
.bank-image-zoom > .bank-logo-choices { width: min(94vw, 1100px); }

#setupCategories .setup-category-art > img[src$="game-poster-approved.webp"] {
  object-fit: contain;
  object-position: center;
  padding: 0;
}

.bank-image.bank-game-poster { width: min(50vw, 36cqh, 320px); }
.bank-game-poster > img { width: 100%; height: auto; }
.bank-image-zoom > .bank-game-poster { width: min(94vw, 610px); }

#liveQuestionContent[data-category="celebrity-voice"] .voice-player {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(7px, 1.5vw, 16px);
  width: min(95%, 520px);
  flex: 0 0 auto;
  padding: clamp(8px, 2vw, 18px);
  border: 2px solid #2c1537;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff8e7, #ead7f3);
  box-shadow: 3px 4px 0 #2c1537;
}
.voice-player audio { display: none; }
.voice-player-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff5df;
  background: #553668;
  font-size: 19px;
}
.voice-player-seek { width: 100%; min-width: 0; accent-color: #80549c; direction: ltr; }
.voice-player-time { color: #442652; white-space: nowrap; font: 700 clamp(10px, 2vw, 14px)/1 sans-serif; }
.voice-player-message { grid-column: 1 / -1; color: #862d45; }
.voice-player-message:empty { display: none; }

.zoom-question-stages { flex: 0 0 auto; width: min(95%, 540px); }
.zoom-question-stages > .bank-image-tile { margin-inline: auto; }
#liveQuestionContent[data-category="image-zoom"] > button { flex: 0 0 auto; }
#liveQuestionContent[data-category="image-zoom"] > button:disabled { opacity: .55; cursor: default; }

#liveQuestionContent[data-category="auction"] > #liveTimer:not([hidden]) {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 2cqw, 18px);
  width: min(96%, 380px);
  padding: clamp(8px, 2cqh, 18px);
  border: 2px solid #9775b0;
  border-radius: 22px;
  background: linear-gradient(145deg, #4e2c62, #281535);
  color: #fff1cd;
  box-shadow: 0 5px 0 #b18ad0;
  direction: ltr;
}
#liveQuestionContent[data-category="auction"] #timerValue {
  font-size: clamp(28px, min(9cqw, 13cqh), 76px);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1;
}
#liveQuestionContent[data-category="auction"] #liveTimer button {
  flex: 0 0 auto;
  width: clamp(29px, 7cqw, 44px);
  height: clamp(29px, 7cqw, 44px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #2c1537;
  background: #ead7f3;
}

.category-loading {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(100%, 280px);
  margin: 12px auto;
  padding: 10px;
  background: #fffaf0;
  border: 1px solid #d6bfd9;
  border-radius: 16px;
  color: #2c1537;
}
.category-loading-mark {
  position: relative;
  display: grid;
  width: 86px;
}
.category-loading-mark img {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: auto;
}
.category-logo-fill { animation: category-logo-color 2.2s ease-in-out infinite; }
@keyframes category-logo-color {
  0%, 26%, 95%, 100% { opacity: 0; }
  40%, 80% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .category-logo-fill { animation: none; }
}

dialog#categoryLoading:not([open]) { display: none; }
dialog#categoryLoading[open] {
  position: fixed;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  box-sizing: border-box;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 24px;
  gap: clamp(14px, 4dvh, 32px);
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(ellipse at 50% 42%, #fff7e5 0 15%, transparent 64%),
    linear-gradient(145deg, #ead7f3, #fff0d3 58%, #efab78);
  color: #2c1537;
}
#categoryLoading .category-loading-mark { width: min(54vw, 39dvh, 260px); }
#categoryLoading [role="status"] { font-size: clamp(16px, 3vw, 23px); font-weight: 700; }

.bank-video-player {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(100%, 840px);
}
.bank-video-player > video {
  display: block;
  width: 100%;
  max-height: 48cqh;
  object-fit: contain;
  background: #171219;
}
.bank-video-zoom[open] {
  grid-template-rows: minmax(0, 1fr) auto;
  background: #171219;
}
.bank-video-zoom > video {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.bank-media-error { display: block; padding: 12px; color: #50365c; }

#liveBoardFooter.many-teams.turn-quartet {
  direction: ltr;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: repeat(2, auto);
  column-gap: clamp(8px, 2vw, 26px);
  row-gap: 6px;
}

#liveBoardFooter.turn-quartet .live-turn-picker-group { grid-area: 1 / 2 / 3; direction: rtl; }
#liveBoardFooter.turn-quartet .live-team-dock-0 { grid-area: 1 / 3; }
#liveBoardFooter.turn-quartet .live-team-dock-1 { grid-area: 2 / 3; }
#liveBoardFooter.turn-quartet .live-team-dock-2 { grid-area: 1 / 1; }
#liveBoardFooter.turn-quartet .live-team-dock-3 { grid-area: 2 / 1; }

#liveBoardFooter.many-teams.turn-quartet > .live-team-dock {
  justify-self: stretch;
  width: auto;
}

#liveBoardFooter.turn-quartet .live-team-dock-0,
#liveBoardFooter.turn-quartet .live-team-dock-1 { justify-content: right; }

#liveBoardFooter.turn-quartet .live-team-dock-2,
#liveBoardFooter.turn-quartet .live-team-dock-3 { justify-content: left; }

#liveBoardFooter.turn-quartet .live-turn-picker {
  width: clamp(47px, 7vw, 82px);
}
