/* Court UI art is shared by the public lobby, split screen, and match HUD. */
.dodgeball-game {
  --cream: #fff0ce;
  --edge: #bd9a65;
  --wood: #33241d;
  --canvas: repeating-linear-gradient(135deg, #fff1 0 1px, transparent 1px 5px), #2d241e;
}
#roll-call:not([data-entry]),
#couch-setup,
#handle-keys,
#court-menu {
  color: var(--cream);
  background: var(--canvas);
  border-color: var(--edge);
}
#roll-call button,
#roll-call .bench-home,
#couch-setup button,
#match-lobby #dock button:not([data-team]):not(#brain-dots button),
#court-menu button,
#handle-keys button {
  color: var(--cream);
  background: linear-gradient(165deg, #493a30, #221b17);
  border: 1px solid var(--edge);
  border-radius: 5px;
  font-family: Bahnschrift, 'Arial Narrow', sans-serif;
  font-weight: 800;
  box-shadow:
    inset 0 1px #fff3,
    0 2px #190e0b;
}
#roll-call #start-round,
#couch-setup [data-local],
#match-lobby #dock :is(#player, #join-match),
#court-menu button:focus {
  color: #fff4cf;
  background: linear-gradient(160deg, #c4482c, #82261d);
  border-color: #ffcd80;
}
#roll-call button:focus-visible,
#couch-setup button:focus,
#roll-call[data-pad-nav] :focus,
#court-menu :focus-visible {
  outline: 3px solid #ffda83;
  outline-offset: 2px;
}
#roll-call[data-entry] {
  background: #19100c url(./locker/ui-entry.webp?v=77b1117b8b14) center/100% 100% no-repeat;
}
#roll-call[data-entry] .rc-head {
  display: contents;
}
#roll-call[data-entry] .rc-head > div {
  display: none;
}
#roll-call[data-entry] #roll-call-status:not(:empty),
#roll-call[data-entry] #retry-match {
  position: relative;
  background: #221810;
  color: #fff4dc;
  padding: 9px 14px;
  border-radius: 5px;
  z-index: 1;
}
#roll-call[data-entry] .rc-controls {
  display: contents;
}
#roll-call[data-entry] :is(#enter-bench, #open-couch),
#roll-call[data-entry] .bench-home {
  position: absolute;
  box-sizing: border-box;
  margin: 0;
  display: grid;
  place-items: center;
  min-height: 0;
  border: 0;
  color: transparent;
  background: transparent;
  box-shadow: none;
}
#roll-call[data-entry] #enter-bench {
  left: 2%;
  bottom: 3%;
  width: 47%;
  height: 17%;
}
#roll-call[data-entry] #open-couch {
  right: 2%;
  bottom: 3%;
  width: 47%;
  height: 17%;
}
#roll-call[data-entry] .bench-home {
  right: 1%;
  top: 1.5%;
  height: 10%;
  width: 14%;
}
#roll-call[data-entry] #enter-bench[data-invite] {
  color: var(--cream);
  background: #9a271c;
  font:
    italic 900 clamp(18px, 3vw, 42px) Impact,
    sans-serif;
}
#roll-call[data-entry] :is(#enter-bench, #open-couch)[hidden] {
  display: none;
}
@media (pointer: coarse) {
  #roll-call[data-entry] #open-couch {
    display: none;
  }
  #roll-call[data-entry] #enter-bench {
    width: 94%;
    left: 3%;
    bottom: 1%;
    height: 19%;
    background: linear-gradient(150deg, #ba3c26, #762017);
    color: var(--cream);
    font:
      italic 900 clamp(22px, 3.7vw, 38px) Impact,
      sans-serif;
    border: 2px solid #eab879;
  }
}
@media (orientation: portrait) and (pointer: coarse) {
  #roll-call[data-entry] {
    background-image: url(./locker/ui-entry-phone.webp?v=70a8a6c7325e);
  }
  #roll-call[data-entry] #enter-bench:not([data-invite]) {
    height: 14%;
    color: transparent;
    background: transparent;
    border: 0;
  }
  #roll-call[data-entry] .bench-home {
    width: 28%;
    height: 7%;
    top: 0;
  }
  #roll-call:not([data-entry]) {
    background: #19120d url(./locker/ui-rotate.webp?v=6a22fec57480) center/contain no-repeat;
  }
  #roll-call:not([data-entry]) > :not(.rc-rotate) {
    display: none;
  }
  #roll-call:not([data-entry]) .rc-rotate {
    display: block;
    color: transparent;
  }
}
.rc-head,
#roll-call .rc-controls {
  color: var(--cream);
}
#roll-call:not([data-entry]) .rc-head {
  border-bottom: 2px ridge #aa8054;
}
#roll-call:not([data-entry]) #roll-call-title,
#couch-title,
#court-menu h2 {
  color: var(--cream);
  font:
    italic 900 clamp(24px, 3.5vw, 53px)/1 Impact,
    'Arial Narrow',
    sans-serif;
}
.rc-bench {
  --cloth: #4a4138;
  --ink: #ffeac3;
}
.rc-bench[data-club='gold'],
.round-scoreboard [data-club='gold'] {
  --cloth: #e9aa30;
  --ink: #842515;
}
.rc-bench[data-club='purple'],
.round-scoreboard [data-club='purple'] {
  --cloth: #652777;
  --ink: #ffe9c8;
}
#roll-call .rc-bench h3,
.round-scoreboard caption {
  background:
    repeating-linear-gradient(44deg, #fff1 0 1px, transparent 1px 4px), var(--cloth, #54483b);
  clip-path: polygon(0 0, 32% 4%, 100% 51%, 32% 96%, 0 100%);
  color: var(--ink, #fff0ce);
  padding: 0.3em 19% 0.3em 2%;
  font:
    italic 900 clamp(16px, 2.35vw, 39px)/1.1 Georgia,
    serif;
  letter-spacing: -0.05em;
  text-transform: none;
  white-space: nowrap;
}
#roll-call .rc-bench[data-team='1'] h3,
.round-scoreboard table:last-of-type caption {
  clip-path: polygon(100% 0, 68% 4%, 0 51%, 68% 96%, 100% 100%);
  padding-right: 2%;
  padding-left: 19%;
  text-align: right;
  justify-content: flex-end;
}
.rc-bench h3 canvas {
  display: none !important;
}
.rc-bench[data-club='gold'] h3::before,
.round-scoreboard [data-club='gold'] caption::before,
.rc-bench[data-club='purple'] h3::before,
.round-scoreboard [data-club='purple'] caption::before,
#match-lobby [data-team='Purple']::before {
  content: '';
  display: inline-block;
  width: 1.25em;
  height: 1.2em;
  vertical-align: middle;
  margin-right: 0.2em;
  background: center/contain no-repeat url(./locker/ui-brain.webp?v=3930957d5538);
}
.rc-bench[data-club='gold'] h3::before,
.round-scoreboard [data-club='gold'] caption::before {
  background-image: url(./locker/ui-hoe.webp?v=0fbc4c8f099a);
}
#roll-call .rc-stage {
  border: 2px ridge #bba075;
  background: linear-gradient(155deg, #493b30, #251e18);
  overflow: hidden;
}
#roll-call .rc-uniform {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 26%;
  transform: none;
}
.rc-tile[data-empty='true'] .rc-uniform {
  visibility: hidden;
}
.rc-tile[data-empty='true'] .rc-stage::after {
  content: '–';
  position: absolute;
  inset: 10%;
  display: grid;
  place-items: center;
  color: #baab8e;
  border: 1px dashed #988970;
}
#roll-call .rc-tile .rc-name,
.rc-tile .rc-info {
  color: var(--cream);
  background: #34271e;
}
#roll-call .rc-kit-card {
  padding: 2px;
}
#roll-call .bench-rules,
#roll-call .bench-chat {
  background: #352a23;
  color: #ffecc8;
  border: 1px solid #b18e61;
}
#roll-call .bench-rules :is(h3, p, summary, label, li),
#roll-call .bench-chat h3 {
  color: inherit;
}
#roll-call .opponent-choices,
#roll-call .rc-controls label {
  color: var(--cream);
}
#couch-setup {
  width: min(1000px, 96vw);
}
#couch-setup .couch-seats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
#couch-setup .couch-seats fieldset,
#couch-setup .lineup-choice {
  background: #33271f;
  color: var(--cream);
  border-color: var(--edge);
}
#couch-setup .vacant-seat {
  height: 100%;
  min-height: 78px;
  border: 2px dashed #a18b70;
}
#couch-setup .seat-card img {
  object-fit: cover;
  object-position: 50% 25%;
}
#couch-setup .seat-card[data-club=''] img {
  opacity: 0;
}
#couch-setup .seat-card[data-club='']::before {
  content: '✎';
  position: absolute;
  top: 22%;
  left: 45%;
  font-size: 2rem;
}
#couch-setup .lineup-choice legend,
#couch-setup .lineup-guide,
#lineup-ready {
  color: var(--cream);
}
#court-menu[open] {
  width: clamp(270px, 35vw, 530px);
  inset: 0 4.5vw 0 auto;
  margin: auto;
  border: 2px ridge var(--edge);
  border-radius: 8px;
}
#court-menu h2 {
  background: linear-gradient(110deg, #932f21, #48221c);
  padding: 0.35em 0.4em;
  border-bottom: 2px solid var(--edge);
  text-transform: uppercase;
}
#court-menu [data-menu-page] button {
  text-align: left;
  min-height: 44px;
  padding: 0.3em 0.7em;
  font:
    italic bold clamp(19px, 2vw, 30px)/1.1 Impact,
    sans-serif;
}
#court-menu [data-menu-page][hidden] {
  display: none;
}
#court-menu .pad-menu-hints {
  color: var(--cream);
}
#match-lobby #dock [data-team] {
  border: 2px solid #e6c392;
  border-radius: 6px;
  box-shadow: inset 0 2px #fff4;
}
#match-lobby #dock [data-team='Nomads'] {
  background: #4c4238;
  color: #ffeecb;
}
#match-lobby #dock #return-bench {
  color: var(--cream);
  background: #352b23;
}
#match-lobby #teams .player-name {
  color: #352623;
}
#match-lobby #dock #brain-dots button {
  min-height: 0;
}
@media (max-height: 520px) {
  #roll-call .rc-bench h3 {
    font-size: clamp(14px, 2vw, 24px);
    margin-bottom: 2px;
  }
  #roll-call .rc-stage {
    max-height: 22vh;
  }
  #court-menu[open] {
    padding: 9px;
    gap: 4px;
    max-height: 96dvh;
  }
  #court-menu h2 {
    font-size: 25px;
  }
}

.basket-call:not([hidden]),
.couch-view .basket-call:not([hidden]) {
  box-sizing: border-box;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  width: clamp(145px, 23vw, 335px);
  aspect-ratio: 2.65;
  height: auto;
  background: transparent center/contain no-repeat url(./locker/ui-shot.webp?v=8adc81e4693c);
  clip-path: none;
  font-size: 0;
  color: transparent;
  padding: 0;
  border: 0;
  box-shadow: none;
  pointer-events: none;
}
.basket-call[data-prompt='powerup']:not([hidden]) {
  background-image: url(./locker/ui-powerup.webp?v=32e0b885f77c);
}
.couch-view .basket-call:not([hidden]) {
  top: 2.2rem;
  width: clamp(90px, 17%, 180px);
}
.basket-call[data-prompt='approach']:not([hidden]) {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  width: fit-content;
  max-width: 46%;
  height: auto;
  aspect-ratio: auto;
  padding: 0.35em 0.6em;
  background: #282019f2;
  border-left: 3px solid #ffc36a;
  border-radius: 3px;
  color: #fff1d5;
  font: 750 clamp(11px, 1.25vw, 18px)/1.15 system-ui;
  transform: none;
}
.basket-call[data-prompt='shot']:not([hidden]) {
  z-index: 1;
  width: clamp(175px, 27%, 400px);
  max-width: 49%;
  aspect-ratio: 2170 / 725;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .basket-call[data-prompt='shot']:not([hidden]) {
    animation: basket-prompt-in 0.25s ease-out;
  }
  @keyframes basket-prompt-in {
    from {
      transform: scale(0.88);
    }
    to {
      transform: scale(1);
    }
  }
}
.round-scoreboard:not([hidden]) {
  width: min(96vw, 1250px);
  max-height: 90dvh;
  overflow: auto;
  pointer-events: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
  border: 2px ridge #be9d73;
  border-radius: 9px;
  background: var(--canvas);
  color: #fff0ce;
}
.round-scoreboard header {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #96764f;
}
.round-scoreboard header div {
  margin-right: auto;
  text-align: left;
}
.round-scoreboard header strong {
  display: block;
  font:
    italic 900 clamp(21px, 3vw, 44px)/1.15 Impact,
    sans-serif;
  text-transform: uppercase;
}
.round-scoreboard header small,
.round-scoreboard button {
  font-weight: 800;
}
.round-scoreboard button {
  min-height: 40px;
  padding: 0.3em 0.8em;
  border: 2px solid #eac07f;
  border-radius: 5px;
  background: #a33823;
  color: #fff0ce;
  cursor: pointer;
  pointer-events: auto;
}
.round-scoreboard button:disabled {
  background: #453d33;
  color: #dbcbb2;
}
.round-scoreboard table {
  table-layout: fixed;
  background: #f6e6c8;
  color: #35271e;
}
.round-scoreboard caption {
  font-size: clamp(16px, 2.3vw, 34px);
  padding-bottom: 0.3em;
}
.round-scoreboard thead {
  background: #563822;
  color: #ffefd2;
  font-size: 0.9em;
}
.round-scoreboard table[data-club='purple'] thead {
  background: #513050;
}
.round-scoreboard tbody td,
.round-scoreboard tbody th {
  border-bottom: 1px solid #bdab8c;
}
.round-scoreboard tbody td {
  font:
    700 clamp(14px, 1.6vw, 24px) Consolas,
    monospace;
}
.round-scoreboard tr[data-local] {
  background: #ffdf93;
}
.round-scoreboard th:first-child {
  width: 31%;
  max-width: none;
}
.round-scoreboard tbody th img {
  width: clamp(20px, 2.6vw, 38px);
  height: clamp(23px, 3.2vw, 46px);
  object-fit: cover;
  object-position: center 26%;
  vertical-align: middle;
  border-radius: 3px;
  margin-right: 4px;
}
.round-scoreboard tbody th span {
  display: inline-block;
  vertical-align: middle;
  max-width: 63%;
  line-height: 1.1;
}
.round-scoreboard tbody th small {
  display: block;
  font-size: 0.7em;
}
.round-scoreboard header .round-clock {
  font-variant-numeric: tabular-nums;
  color: #ffcd72;
}
.using-pad
  :is(#roll-call, #couch-setup, #court-menu)
  button:focus:not(:has(kbd:not(:empty)))::after,
.using-pad .round-scoreboard button:not(:disabled):only-of-type::after {
  content: var(--select-button);
  display: inline-grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: #fff8dc;
  background: #44382c;
  font: bold 14px/1 system-ui;
  min-width: 1.45em;
  height: 1.45em;
  margin-left: 0.35em;
}
@media (max-height: 540px) {
  .round-scoreboard:not([hidden]) {
    gap: 4px;
    padding: 6px;
    max-height: 88dvh;
  }
  .round-scoreboard th,
  .round-scoreboard td {
    padding: 1px;
  }
  .round-scoreboard thead th {
    font-size: clamp(8px, 1.2vw, 12px);
  }
  .round-scoreboard tbody th {
    font-size: 11px;
  }
  .round-scoreboard header {
    gap: 5px;
    flex-wrap: wrap;
  }
}

/* The approved club flags contain the same embroidery as the jerseys. */
#roll-call .rc-bench[data-team='0'][data-club='gold'] h3,
.round-scoreboard table:first-of-type[data-club='gold'] caption {
  --flag: url(./locker/ui-pennant-gold.webp?v=4cb63db336aa);
}
#roll-call .rc-bench[data-team='1'][data-club='purple'] h3,
.round-scoreboard table:last-of-type[data-club='purple'] caption {
  --flag: url(./locker/ui-pennant-purple.webp?v=252942faf0d0);
}
#roll-call .rc-bench:is([data-team='0'][data-club='gold'], [data-team='1'][data-club='purple']) h3,
.round-scoreboard
  :is(table:first-of-type[data-club='gold'], table:last-of-type[data-club='purple'])
  caption {
  background: var(--flag) center/100% 100% no-repeat;
  color: transparent;
  clip-path: none;
  border: 0;
  box-sizing: border-box;
  text-shadow: none;
}
.round-scoreboard caption {
  height: clamp(32px, 5.7vw, 96px);
}
body:not(.using-pad) #court-menu [data-menu-hint] .back-key {
  display: none;
}
#roll-call
  .rc-bench:is([data-team='0'][data-club='gold'], [data-team='1'][data-club='purple'])
  h3::before,
.round-scoreboard
  :is(table:first-of-type[data-club='gold'], table:last-of-type[data-club='purple'])
  caption::before {
  display: none;
}
#roll-call
  .rc-bench:is([data-team='0'][data-club='gold'], [data-team='1'][data-club='purple'])
  h3
  span {
  color: transparent;
  text-shadow: none;
}
#roll-call:not([data-entry]) .rc-controls {
  background: #33271e;
}
#roll-call .rc-tile[data-club='gold'][data-empty='false'] .rc-stage::after {
  content: '';
  position: absolute;
  top: 2%;
  left: 2%;
  width: 22%;
  aspect-ratio: 1;
  background: center/contain no-repeat url(./locker/ui-hoe.webp?v=0fbc4c8f099a);
}
.round-scoreboard header .round-score {
  margin: 0 auto;
  color: #ffcc76;
  text-align: center;
  line-height: 1.05;
}
.round-scoreboard .round-score small {
  display: block;
  text-transform: uppercase;
  font-size: 0.72em;
}
.round-scoreboard .round-score b {
  display: block;
  font:
    bold clamp(18px, 2.4vw, 35px)/1.1 Consolas,
    monospace;
}
@media (min-width: 800px) and (min-height: 480px) {
  #couch-setup form {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(200px, 1fr);
  }
  #couch-setup :is(.lineup-heading, .lineup-guide, footer, p[role='status']) {
    grid-column: 1/-1;
  }
  #couch-setup form > label {
    grid-row: 2;
    grid-column: 2;
  }
  #couch-setup .couch-seats {
    grid-row: 2 / span 2;
    grid-column: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #couch-setup .lineup-settings {
    grid-column: 2;
    display: flex;
    flex-direction: column;
  }
  #couch-setup .lineup-choice label {
    color: #39291e;
  }
  #couch-setup .seat-card img {
    height: clamp(50px, 10vh, 118px);
  }
}

#roll-call:not([data-entry]) .rc-bench {
  background: #31251c;
  border-color: #886b4a;
}
#roll-call:not([data-entry]) .rc-bench[data-club='gold'] .rc-stage {
  border-color: #dba737;
}
#roll-call:not([data-entry]) .rc-bench[data-club='purple'] .rc-stage {
  border-color: #a57bb5;
}
#roll-call:not([data-entry]) #roll-call-status {
  color: #ffe7b4;
}

.round-scoreboard header {
  position: static;
  flex-direction: row;
  pointer-events: auto;
}
.round-scoreboard small {
  color: inherit;
  margin-top: 0;
}
#match-hud:has(#round-stats:not([hidden]) .ready-count) {
  background-color: rgb(28 17 10 / 37%);
}
.hud-stack:has(#round-stats:not([hidden]) .ready-count) {
  top: 50%;
  transform: translateY(-50%);
}
.hud-stack:has(#round-stats:not([hidden]) .ready-count) :is(#round-message, #hud-toasts),
#match-hud:has(#round-stats:not([hidden])) :is(#match-reticle, #match-actions) {
  display: none;
}

/* The locker controls sit on top of the moving 3D view. */
body:has(#match-lobby:not([hidden])) > .locker-home {
  display: none;
}
#match-lobby #return-bench {
  position: absolute;
  z-index: 2;
  right: max(1.5vw, env(safe-area-inset-right));
  top: max(1.5vh, env(safe-area-inset-top));
  width: clamp(100px, 13vw, 190px);
  aspect-ratio: 3.1;
  background: transparent url(./locker/ui-kit-return.webp?v=5f5738aa7788) center/100% 100%;
  color: transparent;
  border: 0;
  box-shadow: none;
}
#match-lobby #return-bench kbd:not(:empty) {
  position: absolute;
  left: -1.3em;
  top: 25%;
}
#match-lobby #dock,
#match-lobby #dock.choosing {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: max(2.2vh, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  max-width: 96vw;
  text-align: center;
}
#match-lobby #dock.choosing {
  width: min(720px, max(48vw, 345px), 96vw);
  padding: clamp(4px, 0.7vw, 10px);
  background: #282019;
  border: 2px solid #825f43;
  border-radius: 8px;
  box-shadow: 0 4px 10px #0008;
}
#match-lobby #dock.choosing #navigation,
#match-lobby #dock.choosing #brain-dots {
  display: none;
}
#match-lobby #dock #player {
  color: #fff0ce;
  background: linear-gradient(155deg, #c54426, #8c261a);
  border: 2px ridge #ddb682;
  font:
    italic 900 clamp(21px, 2.4vw, 38px)/1 Impact,
    sans-serif;
  min-width: 6em;
  padding: 0.18em 0.6em;
}
#match-lobby #dock #navigation button:not(#player) {
  font-size: clamp(18px, 2vw, 30px);
  color: #ffe8bd;
  border: 2px solid #d6b687;
  background: #32271e;
  padding: 0.15em 0.35em;
}
#match-lobby #dock #hint {
  background: #261d16;
  color: #fff0ce;
  padding: 4px 9px;
}
#match-lobby #dock #teams:not([hidden]) {
  display: grid;
  grid-template-columns: 1.1fr 1.55fr 1.4fr;
  align-items: end;
  gap: 0.45vw;
}
#match-lobby #dock #teams .teams {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1.4fr 1.6fr 0.85fr;
  gap: 0.3vw;
  margin: 0;
}
#match-lobby #dock #teams button,
#match-lobby #dock #teams [data-team] {
  position: relative;
  min-width: 0;
  width: 100%;
  min-height: clamp(28px, 4.2vw, 61px);
  margin: 0;
  border: 0;
  box-shadow: none;
  outline-offset: 0;
  background: transparent var(--kit) center/100% 100% no-repeat;
  color: transparent;
  font-size: 0;
}
#match-lobby #teams [data-team='Gold'] {
  --kit: url(./locker/ui-kit-gold.webp?v=87a21651c459);
}
#match-lobby #teams [data-team='Purple'] {
  --kit: url(./locker/ui-kit-purple.webp?v=97e646ab9115);
}
#match-lobby #teams [data-team='Nomads'] {
  --kit: url(./locker/ui-kit-nomads.webp?v=56aeb4aab47d);
}
#match-lobby #dock #teams [data-team]::before,
#match-lobby #dock #teams canvas {
  display: none;
}
#match-lobby #dock #teams [aria-pressed='true'] {
  outline: 2px solid #fff0c6;
}
#match-lobby #dock #teams [data-team] kbd:not(:empty),
#match-lobby #dock #teams button:focus kbd:not(:empty) {
  font-size: 13px;
  position: absolute;
  right: 3%;
  top: -0.35em;
}
#match-lobby #teams #back {
  grid-row: 2;
  grid-column: 1;
  --kit: url(./locker/ui-kit-back.webp?v=885d78177a56);
}
#match-lobby #teams #join-match {
  grid-row: 2;
  grid-column: 3;
  --kit: url(./locker/ui-kit-confirm.webp?v=274d3d35913c);
}
#match-lobby #dock #teams :is(#back, #join-match) {
  min-height: clamp(26px, 3.6vw, 52px);
}
#match-lobby #dock .player-name:not([hidden]) {
  grid-row: 2;
  grid-column: 2;
  display: block;
  text-align: left;
  font: 700 clamp(10px, 1vw, 15px)/1.1 system-ui;
  margin: 0;
  color: #ffe4bb;
}
#match-lobby #display-name {
  width: 100%;
  height: 1.9em;
  border: 1px solid #90795f;
  background: #1a1512;
  color: white;
}
#match-lobby #lobby-status:empty {
  display: none;
}
#match-lobby #dock .handle-hint:empty {
  display: none;
}
/* The same menu face is used over the live court in single player and split-screen. */
#court-menu[open]:has([data-menu-page='Start menu']:not([hidden])) {
  display: block;
  inset: 0 4vw 0 auto;
  width: min(35vw, 62vh);
  min-width: min(230px, 44vw);
  aspect-ratio: 271/256;
  height: auto;
  max-height: 80dvh;
  margin: auto 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent url(./locker/ui-start-menu.webp?v=84433d0d371b) center/100% 100% no-repeat;
}
#court-menu:has([data-menu-page='Start menu']:not([hidden])) h2 {
  position: absolute;
  inset: 0 0 auto;
  height: 20%;
  margin: 0;
  background: none;
  border: none;
  color: transparent;
}
#court-menu [data-menu-page='Start menu']:not([hidden]) {
  position: absolute;
  inset: 23% 4.5% 5%;
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 2%;
}
#court-menu [data-menu-page='Start menu'] button {
  position: relative;
  min-height: 0;
  min-width: 0;
  margin: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  color: transparent;
}
#court-menu [data-menu-page='Start menu'] button:is(:focus, :hover) {
  background: #d240243b;
  outline: 2px solid #f7cf89;
  outline-offset: -2px;
}
.using-pad #court-menu [data-menu-page='Start menu'] button:focus::after {
  position: absolute;
  right: 0.65em;
  top: 50%;
  transform: translateY(-50%);
}
#court-menu:has([data-menu-page='Start menu']:not([hidden])) .pad-menu-hints {
  position: absolute;
  bottom: -2em;
  right: 0.5em;
  background: #251b16;
  color: #ffedc3;
}
#couch-setup[open] {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #231b15 url(./locker/ui-split-room.webp?v=4f9604d8d31f) center/100% 100% no-repeat;
}
#couch-setup form {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}
#couch-setup .lineup-heading {
  display: contents;
}
#couch-setup #couch-title,
#couch-setup .lineup-guide {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
#couch-setup #lineup-ready {
  position: absolute;
  inset: 9.3% 6.5% auto auto;
  color: #fff0d2;
  font:
    italic 800 clamp(17px, 3.3vw, 55px)/1 Impact,
    sans-serif;
}
#couch-setup .couch-seats {
  position: absolute;
  inset: 19.7% 31.3% 18.2% 3.5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 61% 37%;
  gap: 2%;
  margin: 0;
  padding: 0;
}
#couch-setup .couch-seats fieldset {
  display: block;
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: none;
  border: 0;
  box-shadow: none;
}
#couch-setup .couch-seats :is(.seat-card, .vacant-seat) {
  position: absolute;
  inset: 1%;
  height: 98%;
  width: 98%;
  min-height: 0;
  background: none;
  border: 0;
  border-radius: 5px;
  box-shadow: none;
  color: transparent;
  font-size: 0;
}
#couch-setup .couch-seats fieldset:has(select) .seat-card {
  height: 80%;
}
#couch-setup .seat-card[data-club='']::before,
#couch-setup .seat-card[data-club=''] > * {
  visibility: hidden;
}
#couch-setup .seat-card:not([data-club='']) {
  overflow: hidden;
  background: #29231d;
}
#couch-setup .seat-card:not([data-club='']) img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #31291e;
  border: 0;
}
#couch-setup .seat-card:not([data-club='']) strong,
#couch-setup .seat-card:not([data-club='']) span:not(.kit-action) {
  position: absolute;
  left: 2%;
  color: #fff0ce;
  padding: 0.18em 0.5em;
  background: #2d221bec;
  font: italic bold clamp(13px, 1.65vw, 25px)/1.1 system-ui;
}
#couch-setup .seat-card strong {
  top: 0;
}
#couch-setup .seat-card span:not(.kit-action) {
  bottom: 1%;
}
#couch-setup .seat-card .kit-action {
  display: none;
}
#couch-setup .couch-seats select {
  position: absolute;
  left: 3%;
  bottom: 3%;
  width: 94%;
  height: 15%;
  min-height: 20px;
  max-height: 45px;
  padding: 0 4%;
  margin: 0;
  color: #ffedc3;
  font: italic 750 clamp(11px, 1.65vw, 24px)/1.1 system-ui;
  background: #261f19;
  border: 2px solid #d9c8a3;
  border-radius: 5px;
  text-align: center;
}
#couch-setup .couch-seats :is(button, select):focus-visible {
  outline: 3px solid #ffda75;
  outline-offset: -2px;
}
#couch-setup .seat-count {
  position: absolute;
  inset: 18.8% 2.8% auto 70.9%;
  height: 7.6%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  color: #ffedcb;
  background: #231e19;
  font:
    italic bold clamp(14px, 2.2vw, 32px) Impact,
    sans-serif;
}
#couch-setup .seat-count button,
#couch-setup .lineup-choice label:has([type='radio']) {
  color: #ffedcb;
  background: #2e251f;
  border: 1px solid #baaa87;
  font:
    italic bold clamp(12px, 1.9vw, 27px)/1.1 Impact,
    sans-serif;
  margin: 0;
  padding: 0.12em 0.4em;
  min-height: 0;
  border-radius: 4px;
}
#couch-setup .seat-count button[aria-pressed='true'],
#couch-setup .lineup-choice label:has([type='radio']:checked) {
  background: #ad301e;
}
#couch-setup .lineup-settings {
  position: absolute;
  inset: 28% 2.3% 20% 70.8%;
  display: flex;
  flex-direction: column;
  gap: 2%;
  padding: 0;
  overflow: auto;
  scrollbar-width: thin;
}
#couch-setup .lineup-choice {
  display: block;
  flex: none;
  margin: 0;
  padding: 0 0 2%;
  background: none;
  border: 0;
  border-bottom: 1px solid #a18a6b;
}
#couch-setup .lineup-choice[hidden] {
  display: none;
}
#couch-setup .lineup-choice legend {
  background: #292018;
  color: #fff0d1;
  font:
    italic 800 clamp(12px, 1.9vw, 28px)/1.12 Impact,
    sans-serif;
  padding: 0.1em 0.45em;
  margin: 0 0 0.25em;
}
#couch-setup .lineup-choice label:has([type='radio']) {
  display: inline-flex;
  position: relative;
  margin-right: 2%;
}
#couch-setup .lineup-choice input[type='radio'] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
#couch-setup #couch-pickups {
  display: grid;
  gap: 1px;
}
#couch-setup #couch-pickups label {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font: italic 750 clamp(11px, 1.55vw, 25px)/1.2 system-ui;
  color: #291e16;
  background: none;
  border: 0;
  border-bottom: 1px solid #bcad98;
  padding: 0;
  margin: 0;
  min-height: 0;
}
#couch-setup #couch-pickups input {
  width: 1.1em;
  height: 1.1em;
  accent-color: #ae3121;
}
#couch-setup form > [role='status']:not(:empty) {
  position: absolute;
  left: 3%;
  right: 31%;
  bottom: 17%;
  color: white;
  background: #341d13;
}
#couch-setup footer {
  display: contents;
}
#couch-setup footer button {
  position: absolute;
  margin: 0;
  border: 0;
  border-radius: 5px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: transparent;
}
#couch-setup footer [data-back] {
  top: 1%;
  right: 1.5%;
  width: 10.5%;
  height: 7%;
  min-width: 0;
}
#couch-setup footer [data-local] {
  bottom: 2.5%;
  left: 1.8%;
  width: 53%;
  height: 14%;
  background: none;
  color: transparent;
}
#couch-setup footer [data-local]:enabled {
  color: #fff3d2;
  background: linear-gradient(155deg, #c84229, #841a13);
  border: 3px solid #efc080;
  clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
  font:
    italic 900 clamp(16px, 3.4vw, 60px)/1 Impact,
    sans-serif;
}
#couch-setup footer [data-online] {
  bottom: 2.5%;
  right: 1.8%;
  width: 43%;
  height: 14%;
}

/* A live bench sits in the illustrated gym frame. The frame contains no roster data. */
@media (orientation: landscape), (pointer: fine) {
  #roll-call:not([data-entry]) {
    --board-top: 17.2%;
    --board-bottom: 38%;
    --bottom-top: 64.2%;
    --bottom-end: 16.5%;
    --bench-gap: 7.8%;
    display: block;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    color: #ffedce;
    background: #241a15 url(./locker/ui-bench-room.webp?v=0bd268abd2e2) center/100% 100% no-repeat;
  }
  #roll-call:not([data-entry])[hidden] {
    display: none;
  }
  #roll-call:not([data-entry]) .rc-head {
    display: contents;
  }
  #roll-call:not([data-entry]) .rc-head > div:first-child {
    position: absolute;
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    overflow: hidden;
  }
  #roll-call:not([data-entry]) #roll-call-status {
    position: absolute;
    left: 18.3%;
    top: 10.8%;
    max-width: 55%;
    text-align: left;
    line-height: 1;
    font: 600 clamp(10px, 1.25vw, 20px)/1.05 system-ui;
  }
  #roll-call:not([data-entry]) .bench-invite {
    position: absolute;
    inset: 5.8% 11.4% auto auto;
    width: 14%;
    height: 6.6%;
    display: flex;
    align-items: center;
    z-index: 3;
  }
  #roll-call:not([data-entry]) #copy-invite,
  #roll-call:not([data-entry]) .bench-home,
  #roll-call:not([data-entry]) #start-round,
  #roll-call:not([data-entry]) #bench-send {
    background: transparent var(--action-art) center/100% 100% no-repeat;
    color: transparent;
    border: 0;
    border-radius: 4px;
    box-shadow: none;
    padding: 0;
  }
  #roll-call:not([data-entry]) #copy-invite {
    --action-art: url(./locker/ui-invite.webp?v=c778b0ea5c27);
    width: 100%;
    height: 100%;
    min-height: 0;
  }
  #roll-call:not([data-entry]) #invite-feedback:not(:empty),
  #invite-fallback:not([hidden]) {
    background: #2d211a;
    color: #fff0cf;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 100%;
    font-size: 12px;
  }
  #roll-call:not([data-entry]) .bench-home {
    --action-art: url(./locker/ui-home.webp?v=540ed9929159);
    position: fixed;
    right: 1.8%;
    top: 5.8%;
    width: 9%;
    height: 6.6%;
    min-height: 0;
  }
  #roll-call:not([data-entry]) #roll-call-load {
    position: absolute;
    top: 15.4%;
    left: 1.8%;
    width: 96%;
    height: 3px;
  }
  #roll-call:not([data-entry]) .rc-benches {
    position: absolute;
    inset: var(--board-top) 2.3% var(--board-bottom);
    display: grid;
    grid-template-columns: 1fr var(--bench-gap) 1fr;
    gap: 0;
    align-items: stretch;
  }
  #roll-call:not([data-entry]) .rc-bench {
    position: relative;
    display: grid;
    grid-template-rows: 31% minmax(0, 1fr);
    gap: 2%;
    background: none;
    border: 0;
    box-shadow: none;
    margin: 0;
    padding: 0;
    min-height: 0;
  }
  #roll-call:not([data-entry]) .rc-bench h3 {
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    font-size: clamp(14px, 2.4vw, 40px);
    overflow: hidden;
  }
  #roll-call:not([data-entry]) .rc-list {
    width: 100%;
    height: 100%;
    display: grid;
    align-items: stretch;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1%;
    margin: 0;
    padding: 0;
    max-width: none;
    border: 0;
  }
  #roll-call:not([data-entry]) .rc-vs {
    align-self: start;
    width: 100%;
    aspect-ratio: 64/65;
    margin: 0;
    position: relative;
    top: 39%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: url(./locker/ui-vs.webp?v=31a09cb015f6) center/cover;
    color: transparent;
  }
  #roll-call:not([data-entry]) .rc-tile {
    --rim: #bc9c79;
    --face: #32231a;
    --cut: clamp(5px, 1.25vw, 23px);
    --outline: polygon(
      var(--cut) 0,
      calc(100% - var(--cut)) 0,
      100% var(--cut),
      100% calc(100% - var(--cut)),
      calc(100% - var(--cut)) 100%,
      var(--cut) 100%,
      0 calc(100% - var(--cut)),
      0 var(--cut)
    );
    position: relative;
    isolation: isolate;
    height: 100%;
    min-height: 0;
    padding: clamp(2px, 0.38vw, 6px);
    border: 0;
    border-radius: 0;
    clip-path: var(--outline);
    background: linear-gradient(140deg, #ffedc3, var(--rim) 45%, #f2ddb1 75%, var(--rim));
    overflow: hidden;
    box-shadow: none;
  }
  #roll-call:not([data-entry]) .rc-tile::before {
    content: '';
    position: absolute;
    inset: clamp(2px, 0.38vw, 6px);
    clip-path: var(--outline);
    background: var(--face);
    z-index: -1;
  }
  #roll-call:not([data-entry]) .rc-tile:has(:focus-visible) {
    background: #fff7bb;
  }
  #roll-call:not([data-entry]) [data-club='gold'] .rc-tile {
    --rim: #d89936;
    --face: #65301a;
  }
  #roll-call:not([data-entry]) [data-club='purple'] .rc-tile {
    --rim: #bb87c9;
    --face: #45264c;
  }
  #roll-call:not([data-entry]) .rc-tile,
  #roll-call:not([data-entry]) .rc-kit-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto auto;
    gap: 0;
    text-align: left;
  }
  #roll-call:not([data-entry]) .rc-kit-card {
    grid-area: 1/1/-1/-1;
    position: relative;
    padding: 0;
    margin: 0;
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: none;
  }
  #roll-call:not([data-entry]) .rc-stage {
    grid-row: 1;
    height: 100%;
    max-height: none;
    min-height: 0;
    aspect-ratio: auto;
    background: linear-gradient(145deg, #503828, #322218);
    border: 0;
    border-bottom: 1px solid #98704d;
    border-radius: 0;
  }
  #roll-call:not([data-entry]) [data-club='purple'] .rc-stage {
    background: linear-gradient(145deg, #58355c, #2b2035);
  }
  #roll-call:not([data-entry]) .rc-info {
    grid-row: 2;
    margin: 0;
    padding: 2% 5% 0;
    background: none;
  }
  #roll-call:not([data-entry]) .rc-tags {
    gap: 0.15em;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }
  #roll-call:not([data-entry]) .rc-tag {
    font: 800 clamp(8px, 0.95vw, 17px)/1 system-ui;
    background: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #f5d098;
  }
  #roll-call:not([data-entry]) .rc-name {
    grid-row: 3;
    margin: 0;
    padding: 1% 5% 5%;
    background: none;
    text-align: left;
    color: #ffeccc;
    font: italic 750 clamp(11px, 1.5vw, 23px)/1.05 system-ui;
  }
  #roll-call:not([data-entry]) .rc-kit-card .kit-action {
    position: absolute;
    top: 4%;
    right: 4%;
    color: transparent;
    font-size: 0;
    background: #312419d9;
    border: 1px solid #edcd98;
    border-radius: 4px;
    padding: 0.2vw;
  }
  #roll-call:not([data-entry]) .rc-kit-card .kit-action::before {
    content: '✎';
    color: #ffe7b2;
    font: 700 clamp(14px, 2.4vw, 32px)/1 system-ui;
  }
  #roll-call:not([data-entry]) .bench-bottom {
    position: absolute;
    inset: var(--bottom-top) 2.5% var(--bottom-end);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2%;
    margin: 0;
  }
  #roll-call:not([data-entry]) .bench-bottom section {
    position: relative;
    min-width: 0;
    border: 0;
    box-shadow: none;
    background: none;
    padding: 0;
  }
  #roll-call:not([data-entry]) .bench-bottom h3 {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  #roll-call:not([data-entry]) #bench-messages {
    position: absolute;
    inset: 33% 3% 41%;
    margin: 0;
    padding: 0;
    height: auto;
    color: #fff1da;
    font: 500 clamp(10px, 1.2vw, 18px)/1.1 system-ui;
  }
  #roll-call:not([data-entry]) #bench-messages:empty::before {
    content: 'No messages yet.';
  }
  #roll-call:not([data-entry]) #bench-form {
    position: absolute;
    inset: 59% 2.8% 8%;
    gap: 2%;
  }
  #roll-call:not([data-entry]) #bench-message {
    background: #211b17;
    color: #fff0d6;
    border: 1px solid #c6ad81;
    min-width: 0;
    width: 70%;
    height: 100%;
    padding: 0 0.6em;
  }
  #roll-call:not([data-entry]) #bench-send {
    --action-art: url(./locker/ui-send.webp?v=695666ecd58b);
    width: 16%;
    min-height: 0;
  }
  #roll-call:not([data-entry]) #bench-feedback:not(:empty) {
    position: absolute;
    bottom: -1.15em;
    background: #321b12;
    color: #fff0cc;
    font-size: 12px;
  }
  #roll-call:not([data-entry]) .bench-rules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 36% 21% 33%;
    gap: 2%;
    padding: 0 2%;
  }
  #roll-call:not([data-entry]) .bench-rules > p {
    grid-column: 1/-1;
    grid-row: 2;
    margin: 0;
    align-self: center;
    color: #302117;
    font: 650 clamp(9px, 1.15vw, 17px)/1.05 system-ui;
  }
  #roll-call:not([data-entry]) .bench-rules details {
    position: relative;
    grid-row: 3;
    align-self: stretch;
    background: #271f1b;
    color: #fff0d5;
    border: 1px solid #8a704b;
    border-radius: 4px;
    margin: 0;
    padding: 0;
  }
  #roll-call:not([data-entry]) .bench-rules summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    margin: 0;
    padding: 0 5%;
    color: #ffedcf;
    font: 750 clamp(10px, 1.4vw, 21px)/1.05 system-ui;
  }
  #roll-call:not([data-entry]) .bench-rules summary::after {
    content: '▾';
  }
  #roll-call:not([data-entry]) .bench-rules details[open] > :not(summary) {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    z-index: 5;
    padding: 0.6em;
    background: #2c211b;
    color: #fff0d2;
    max-height: 44vh;
    overflow: auto;
    box-shadow: 0 2px 8px #0007;
  }
  #roll-call:not([data-entry]) .rc-controls {
    position: absolute;
    inset: auto 2% 2%;
    height: 11.5%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 1.3vw;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    font-size: clamp(10px, 1.4vw, 23px);
  }
  #roll-call:not([data-entry]) .rc-controls label {
    display: flex;
    align-items: center;
    gap: 0.4em;
  }
  #roll-call:not([data-entry]) #start-round {
    --action-art: url(./locker/ui-start-round.webp?v=70796fad7714);
    order: 9;
    width: 23%;
    height: 100%;
    min-height: 0;
  }
  #roll-call:not([data-entry]) #start-round .confirm-key:not(:empty) {
    float: right;
    margin-right: 2%;
  }
  #roll-call:not([data-entry]) #leave-lobby {
    margin-left: auto;
    background: #30241fcc;
  }
  #roll-call:not([data-entry]) .rc-controls [data-pad-list] {
    max-width: 12%;
    line-height: 1.05;
    color: #fff3d4;
  }
}
@media (pointer: coarse) and (orientation: landscape) {
  #roll-call:not([data-entry]) .bench-invite,
  #roll-call:not([data-entry]) .bench-home {
    top: 1.5%;
    height: 9%;
  }
  #roll-call:not([data-entry]) .rc-controls {
    height: 13%;
  }
}
#roll-call .rc-bench[data-team='0'][data-club='purple'] h3,
.round-scoreboard table:first-of-type[data-club='purple'] caption {
  --reverse-flag: url(./locker/ui-pennant-purple-reverse.webp?v=309e4915a4ba);
}
#roll-call .rc-bench[data-team='1'][data-club='gold'] h3,
.round-scoreboard table:last-of-type[data-club='gold'] caption {
  --reverse-flag: url(./locker/ui-pennant-gold-reverse.webp?v=09b79b5e33c7);
}
#roll-call .rc-bench:is([data-team='0'][data-club='purple'], [data-team='1'][data-club='gold']) h3,
.round-scoreboard
  :is(table:first-of-type[data-club='purple'], table:last-of-type[data-club='gold'])
  caption {
  background: var(--reverse-flag) center/100% 100% no-repeat;
  color: transparent;
  clip-path: none;
}
#roll-call
  .rc-bench:is([data-team='0'][data-club='purple'], [data-team='1'][data-club='gold'])
  h3::before,
.round-scoreboard
  :is(table:first-of-type[data-club='purple'], table:last-of-type[data-club='gold'])
  caption::before {
  display: none;
}

#match-lobby #dock.choosing #teams button:is(#join-match, #back) {
  background: transparent var(--kit) center/100% 100% no-repeat;
  border: 0;
  box-shadow: none;
  color: transparent;
}
#match-lobby #dock #navigation button#player {
  background: linear-gradient(155deg, #bf4129, #8a2618);
  color: #fff1cf;
}
#match-lobby #dock #teams .player-name:not([hidden]) {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
}
#match-lobby #dock #teams .player-name .handle-hint {
  display: none;
}
.using-pad #match-lobby #dock #teams .player-name:focus-within .handle-hint {
  display: inline;
}
@media (orientation: landscape), (pointer: fine) {
  #roll-call:not([data-entry]) .bench-bottom {
    grid-template-rows: 100%;
    align-content: stretch;
    align-items: stretch;
  }
  #roll-call:not([data-entry]) .bench-bottom section {
    height: 100%;
  }
  #roll-call:not([data-entry]) .bench-rules > p {
    text-align: left;
  }
  #roll-call:not([data-entry]) .bench-rules details ul {
    background: #32291f;
  }
  #roll-call:not([data-entry]) #bench-feedback:empty {
    display: none;
  }
  #roll-call:not([data-entry]) .rc-controls [data-pad-list] {
    font-size: clamp(9px, 1vw, 14px);
  }
}
#couch-setup .lineup-settings {
  align-items: stretch;
}
#couch-setup .lineup-settings .lineup-choice {
  width: 100%;
}
#couch-setup .lineup-settings .lineup-choice label:has([type='radio']) {
  padding: 0.12em 0.55em;
}
#couch-setup .lineup-settings #couch-pickups label {
  font-size: clamp(12px, 1.85vw, 30px);
  line-height: 1.4;
}
#couch-setup .couch-seats select {
  bottom: 1.8%;
  left: 1.5%;
  width: 97%;
  height: 19%;
  background: #211b17;
}
.round-scoreboard .round-score {
  grid-area: 2/1/3/-1;
  z-index: 1;
  align-self: start;
  justify-self: center;
  margin-top: 1.1vw;
  padding: 0.35em 0.55em;
  color: #ffce78;
  text-align: center;
  background: #231b15;
  border: 1px solid #a07a4c;
  border-radius: 4px;
  line-height: 1;
}
.round-scoreboard .round-score small {
  display: block;
  font: 750 clamp(8px, 0.85vw, 14px)/1 system-ui;
  text-transform: uppercase;
}
.round-scoreboard .round-score b {
  font:
    800 clamp(16px, 2.5vw, 38px)/1.05 Consolas,
    monospace;
}
.round-scoreboard table:first-of-type {
  grid-area: 2/1;
}
.round-scoreboard table:last-of-type {
  grid-area: 2/2;
}
.round-scoreboard table:first-of-type caption {
  background-size: 92% 100%;
  background-position: left center;
}
.round-scoreboard table:last-of-type caption {
  background-size: 92% 100%;
  background-position: right center;
}

#roll-call:not([data-entry]) .rc-kit-card .kit-action {
  background: transparent url(./locker/ui-pencil.webp?v=2acd41ec5271) center/contain no-repeat;
  border: 0;
  width: clamp(17px, 2.5vw, 40px);
  aspect-ratio: 1;
}
#roll-call:not([data-entry]) .rc-kit-card .kit-action::before {
  visibility: hidden;
}
#couch-setup footer [data-local]:disabled {
  opacity: 1;
  background: transparent url(./locker/ui-split-local.webp?v=11d18630d686) center/100% 100% no-repeat;
}
#couch-setup footer [data-online] {
  background: transparent url(./locker/ui-split-online.webp?v=876d29349c50) center/100% 100% no-repeat;
}
#couch-setup footer [data-online]:disabled {
  filter: grayscale(0.85);
}

#couch-hud .couch-actions {
  position: absolute;
  right: 6px;
  top: 6px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: auto;
}
#couch-hud #leave-couch {
  position: static;
}
#couch-hud #couch-menu {
  color: #fff1cf;
  background: #30241e;
  border: 1px solid #a88c63;
  padding: 5px 9px;
}

#match-lobby #dock #teams [data-team][aria-pressed='true']::after {
  content: '✓';
  position: absolute;
  right: 3%;
  top: 0;
  color: #fff4d6;
  font: 900 clamp(12px, 1.5vw, 23px)/1 system-ui;
  text-shadow: 0 1px 2px #392213;
}

#court-menu::backdrop {
  background: rgb(25 17 13 / 24%);
}
#court-menu .pad-menu-hints [data-menu-hint] {
  background: transparent;
  color: #fff0ce;
  box-shadow: none;
  border: 0;
  padding: 0 0.35em;
  font: 700 clamp(10px, 0.9vw, 15px)/1 system-ui;
}
#court-menu .menu-escape {
  padding: 0.1em 0.28em;
  border: 1px solid #b99e7e;
  border-radius: 0.3em;
  color: #ffecca;
}
.using-pad #court-menu .menu-escape {
  display: none;
}
@media (pointer: fine) {
  #court-menu[open]:has([data-menu-page='Start menu']:not([hidden])) {
    right: 4.7vw;
    aspect-ratio: 280/247;
    background-image: url(./locker/ui-start-menu-desktop.webp?v=3150f1912472);
  }
  #court-menu [data-menu-page='Start menu']:not([hidden]) {
    inset: 28.5% 4.5% 13.5%;
    gap: 3%;
  }
  #court-menu [data-menu-page='Start menu'] button:is(:focus, :hover) {
    background: rgb(213 53 22 / 54%);
    background-blend-mode: screen;
    outline-color: #ffe19a;
  }
  #court-menu:has([data-menu-page='Start menu']:not([hidden])) .pad-menu-hints {
    position: absolute;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    inset: auto 3.5% 2.3% auto;
    height: 8%;
    margin: 0;
    padding: 0;
    background: none;
  }
  #court-menu:has([data-menu-page='Start menu']:not([hidden])) .menu-select-hint {
    display: none;
  }
}
#roll-call:not([data-entry]) .rc-tile::after {
  --w: clamp(2px, 0.38vw, 6px);
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(148deg, #ffecc5, var(--rim) 42%, #fff0ce 70%, var(--rim));
  clip-path: polygon(
    evenodd,
    var(--cut) 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut)),
    0 var(--cut),
    var(--cut) 0,
    var(--cut) var(--w),
    var(--w) var(--cut),
    var(--w) calc(100% - var(--cut)),
    var(--cut) calc(100% - var(--w)),
    calc(100% - var(--cut)) calc(100% - var(--w)),
    calc(100% - var(--w)) calc(100% - var(--cut)),
    calc(100% - var(--w)) var(--cut),
    calc(100% - var(--cut)) var(--w),
    var(--cut) var(--w)
  );
}

/* Keep the button lettering and input prompts crisp at every render scale. */
#match-lobby #dock.choosing {
  width: min(810px, 85vw);
}
#match-lobby #dock #teams .teams {
  grid-template-columns: 1.18fr 1.28fr 1fr;
  gap: 0.45em;
}
#match-lobby #dock #teams button,
#match-lobby #dock.choosing #teams button:is(#join-match, #back),
#match-lobby button#return-bench,
#match-lobby #dock #navigation button#player {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  color: #fff4db;
  background: linear-gradient(#514038, #30231e);
  border: 2px solid #b99366;
  border-radius: 6px;
  box-shadow:
    inset 0 1px #ffedbd65,
    0 2px 0 #160e0a;
  padding: 0.25em 0.4em;
  font: 800 clamp(12px, 1.55vw, 23px)/1.05 system-ui;
  text-shadow: 0 1px 2px #24140e;
  height: auto;
  white-space: normal;
}
#match-lobby button#return-bench {
  width: auto;
  aspect-ratio: auto;
  padding: 0.6em 0.85em;
}
#match-lobby #dock #teams button[data-team='Gold'] {
  background: linear-gradient(#ffce62, #daa52e);
  color: #3b2409;
  border-color: #ffe3a0;
  text-shadow: none;
}
#match-lobby #dock #teams button[data-team='Purple'] {
  background: linear-gradient(#9653ba, #59267c);
  border-color: #dba5f1;
}
#match-lobby #dock #teams button[data-team='Nomads'] {
  background: linear-gradient(#536c68, #2c4443);
  border-color: #aec8bb;
}
#match-lobby #dock #teams button[data-team='Purple']::before,
#match-lobby #dock #teams button[data-team='Gold']::before {
  content: '';
  display: inline-block;
  position: static;
  flex: 0 0 1.65em;
  width: 1.65em;
  height: 1.65em;
  background: transparent url(./locker/ui-brain.webp?v=3930957d5538) center/contain no-repeat;
  clip-path: none;
}
#match-lobby #dock #teams button[data-team='Gold']::before {
  background-image: url(./locker/ui-hoe.webp?v=0fbc4c8f099a);
}
#match-lobby #dock #teams button[data-team][aria-pressed='true']::after {
  content: none;
}
#match-lobby #dock #teams button[data-team][aria-pressed='true'] {
  box-shadow: inset 0 -4px #ffe49a;
}
#match-lobby #dock.choosing #teams button#join-match,
#match-lobby #dock #navigation button#player {
  background: linear-gradient(#d34d2c, #a42b18);
  border-color: #ffc681;
}
#match-lobby #dock #teams button kbd:not(:empty),
#match-lobby #dock #teams button:focus kbd:not(:empty),
#match-lobby #dock #navigation button#player kbd:not(:empty),
#match-lobby button#return-bench kbd:not(:empty),
#roll-call:not([data-entry]) .rc-controls button kbd:not(:empty) {
  position: static;
  transform: none;
  inset: auto;
  margin: 0;
  float: none;
  flex: none;
  font: 800 clamp(10px, 1vw, 14px)/1.1 system-ui;
}
.using-pad #match-lobby #dock #teams button[data-team]:not(:focus) kbd {
  display: none;
}
.using-pad #match-lobby #dock #teams button[data-team]:focus kbd:not(:empty) {
  display: inline-grid;
}
#match-lobby #dock #teams button:focus-visible,
.using-pad #match-lobby button:focus {
  outline: 3px solid #fff6b8;
  outline-offset: 2px;
}

#roll-call:not([data-entry]) .rc-controls {
  gap: clamp(4px, 0.8vw, 14px);
  align-items: center;
  padding: 0 0.5%;
  box-sizing: border-box;
}
#roll-call:not([data-entry]) .rc-controls label:not([hidden]),
#roll-call:not([data-entry]) .rc-controls #bot-opponent:not([hidden]) {
  position: static;
  display: grid;
  gap: 0.23em;
  justify-items: stretch;
  width: auto;
  height: auto;
  inset: auto;
  padding: 0;
  margin: 0;
  background: none;
  box-shadow: none;
  border: 0;
  transform: none;
  color: #ffe5ae;
  font: 750 clamp(10px, 0.9vw, 15px)/1.1 system-ui;
  text-shadow: 0 1px 2px #160b07;
}
#roll-call:not([data-entry]) .rc-controls select {
  width: auto;
  min-width: 0;
  max-width: 100%;
  height: auto;
  min-height: 0;
  padding: 0.36em 0.55em;
  border: 1px solid #ddba82;
  border-radius: 5px;
  background: #38291e;
  color: #fff0ce;
  font: 750 clamp(12px, 1.25vw, 20px)/1.1 system-ui;
}
#roll-call:not([data-entry]) .rc-controls :is(#lobby-mute, #leave-lobby, #start-round),
#roll-call:not([data-entry]) :is(#bench-send, #copy-invite, .bench-home) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  width: auto;
  height: auto;
  min-height: 0;
  padding: 0.5em 0.65em;
  color: #fff2d6;
  background: linear-gradient(#564032, #30231c);
  border: 1px solid #c09c70;
  border-radius: 5px;
  box-shadow:
    inset 0 1px #ffedb843,
    0 2px 0 #20130c;
  text-shadow: 0 1px 2px #25160f;
  font: 800 clamp(12px, 1.25vw, 20px)/1.1 system-ui;
  white-space: nowrap;
}
#roll-call:not([data-entry]) .bench-home {
  min-width: 8%;
}
#roll-call:not([data-entry]) #copy-invite {
  width: 100%;
}
#roll-call:not([data-entry]) #bench-send {
  min-width: 16%;
}
#roll-call:not([data-entry]) .rc-controls #lobby-mute {
  margin-left: auto;
}
#roll-call:not([data-entry]) .rc-controls #leave-lobby {
  margin-left: 0;
}
#roll-call:not([data-entry]) .rc-controls #start-round {
  height: auto;
  width: auto;
  padding: 0.48em 0.85em;
  order: 9;
  border: 2px solid #ffbf76;
  color: white;
  background: linear-gradient(#d84e2a, #a12915);
  font: italic 900 clamp(15px, 1.9vw, 29px)/1.1 system-ui;
}
#roll-call:not([data-entry]) .rc-controls #start-round:disabled {
  background: #593d30;
  border-color: #9e8063;
  color: #e0cebb;
  opacity: 1;
}
#roll-call:not([data-entry]) .rc-controls #start-round .confirm-key:not(:empty) {
  margin: 0;
  float: none;
}
body #roll-call:not([data-entry]) .rc-controls .controller-count[data-pad-list]:not([hidden]) {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  max-width: none;
  margin: 0;
  padding: 0.55em 0.7em;
  border: 1px solid #9e8a60;
  border-radius: 2em;
  background: #28251e;
  color: #fff0cc;
  font: 700 clamp(10px, 1.02vw, 16px)/1.1 system-ui;
}
.controller-count::before {
  content: '';
  border: 2px solid #d3b988;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
}
.controller-count[data-connected]::before {
  border-color: #b0ef98;
  background: #8cda78;
}
#roll-call:not([data-entry]) .bench-rules .pickup-options[open] {
  z-index: 6;
}
#roll-call:not([data-entry]) .bench-rules .pickup-options[open] #public-pickups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  inset: auto 0 calc(100% + 3px) auto;
  width: max-content;
  min-width: 100%;
  max-width: 75vw;
  max-height: 48vh;
  overflow: auto;
  padding: 0.35em 0.7em;
  background: linear-gradient(115deg, #fff1ce, #eed39a);
  color: #332318;
  border: 2px solid #916335;
  border-radius: 6px;
  box-shadow: 0 4px 16px #1b100b99;
}
#roll-call .bench-rules #public-pickups label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55em;
  margin: 0;
  padding: 0.28em 0.2em;
  color: #342416;
  border: 0;
  border-bottom: 1px solid #b49766;
  border-radius: 0;
  background: none;
  text-shadow: none;
  font: 750 clamp(13px, 1.25vw, 21px)/1.2 system-ui;
}
#roll-call .bench-rules #public-pickups label:last-child {
  border-bottom: 0;
}
#public-pickups input {
  margin: 0;
  width: 1.1em;
  height: 1.1em;
  accent-color: #93391e;
}
#roll-call .rc-controls :is(button, label, span)[hidden] {
  display: none !important;
}
#roll-call[data-entry] #bot-opponent,
#roll-call[data-entry] .controller-count {
  display: none;
}
#roll-call .rc-controls select[data-adjusting] {
  outline: 3px solid #ffe49a;
}
@media (max-width: 800px) {
  #roll-call:not([data-entry]) .rc-controls {
    gap: 0.45vw;
    inset-inline: 1%;
  }
  #roll-call:not([data-entry]) .rc-controls select {
    padding: 0.22em;
  }
  #match-lobby #dock.choosing {
    width: min(94vw, 670px);
  }
}

#match-lobby #dock #teams button[data-team] {
  font: 800 clamp(12px, 1.55vw, 23px)/1.05 system-ui;
}
#match-lobby #dock #teams button[data-team='Purple'] {
  color: #fff3ff;
}
#match-lobby #dock #teams button[data-team='Nomads'] {
  color: #eefbea;
}

#court-menu[open]:has([data-menu-page='Start menu']:not([hidden])) {
  background: linear-gradient(145deg, #38291e, #1d1713);
  border: 2px solid #bb9464;
  box-shadow:
    inset 0 0 0 2px #362315,
    0 8px 28px #130b07aa;
}
#court-menu:has([data-menu-page='Start menu']:not([hidden])) h2 {
  inset: 0 0 auto;
  height: 22%;
  display: flex;
  align-items: center;
  padding: 0 6%;
  box-sizing: border-box;
  color: #fff1cd;
  background: linear-gradient(115deg, #973924, #542419 75%, #36251d);
  border-bottom: 2px solid #dab385;
  text-transform: uppercase;
  text-shadow: 1px 2px #4d2117;
  font:
    italic 900 clamp(22px, 3.6vw, 62px)/1 Impact,
    system-ui;
}
#court-menu [data-menu-page='Start menu'] button,
#court-menu [data-menu-page='Start menu'] button:is(:hover, :focus) {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0 0.65em;
  border: 1px solid #ac8f68;
  border-radius: 4px;
  color: #fff1d5;
  text-align: left;
  background: linear-gradient(100deg, #514134, #302620);
  font: italic 850 clamp(12px, 1.7vw, 28px)/1 system-ui;
}
#court-menu [data-menu-page='Start menu'] button::before {
  width: 1.1em;
  color: #ffcf86;
  text-align: center;
}
#court-menu [data-resume]::before {
  content: '▸';
}
#court-menu [data-open-page='Controls']::before {
  content: '✥';
}
#court-menu [data-open-page='Settings']::before {
  content: '⚙';
}
#court-menu #leave-match::before {
  content: '↩';
}
#court-menu [data-menu-page='Start menu'] button:is(:hover, :focus) {
  background: linear-gradient(100deg, #b34427, #822b1d);
}
.using-pad #court-menu [data-menu-page='Start menu'] button:focus::after {
  position: static;
  transform: none;
  margin-left: auto;
}

.finisher-cue:not([hidden]) {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 16%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, max-content);
  align-items: center;
  gap: 0.32em 0.55em;
  padding: 0.48em 0.72em 0.62em;
  border: 1px solid #c9924b;
  border-top: 3px solid #ffd185;
  border-radius: 6px;
  background: linear-gradient(120deg, #382018f5, #1f1816f5);
  color: #fff2d5;
  font: 750 clamp(12px, 1.42vw, 22px)/1.1 system-ui;
  text-align: center;
  pointer-events: none;
}
.finisher-cue > strong {
  grid-column: 1/-1;
  color: #ffcf80;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}
.finisher-cue > span {
  display: flex;
  align-items: center;
  gap: 0.35em;
  white-space: nowrap;
  padding: 0.22em 0.32em;
  border-radius: 4px;
}
.finisher-cue kbd {
  display: inline-grid;
  place-items: center;
  min-width: 1.65em;
  height: 1.65em;
  padding: 0 0.25em;
  border: 1px solid #e7c89b;
  border-radius: 4px;
  color: white;
  background: #372f28;
  font: 800 0.9em/1 system-ui;
}
.finisher-cue kbd[data-shape='face'] {
  border-radius: 50%;
}
.finisher-cue kbd[data-family='xbox'][data-button='A'] {
  background: #22743c;
}
.finisher-cue kbd[data-family='xbox'][data-button='B'] {
  background: #a43125;
}
.finisher-cue[data-step='0'] > span:nth-child(2),
.finisher-cue[data-step='1'] > span:nth-child(3),
.finisher-cue[data-step='2'] > span:last-child {
  outline: 2px solid #ffe0a2;
}
.finisher-cue[data-step='3'] > span {
  background: #465534;
}
.couch-view .finisher-cue:not([hidden]) {
  font-size: clamp(9px, 1vw, 15px);
  bottom: 12%;
}
@media (pointer: coarse) {
  .finisher-cue:not([hidden]) {
    bottom: auto;
    top: 14%;
    font-size: clamp(10px, 1.5vw, 16px);
  }
}

/* Navigation follows the input that moved focus. Keep the artwork's own contours. */
.dodgeball-game {
  -webkit-tap-highlight-color: transparent;
}
.dodgeball-game #court-menu [data-menu-page='Start menu'] button:hover,
.dodgeball-game :is(button, a, input, select, summary, [tabindex]):focus,
.dodgeball-game .lineup-choice label:focus-within,
.dodgeball-game #teams [aria-pressed='true'],
.dodgeball-game .rc-controls [data-adjusting] {
  outline: none !important;
}
.dodgeball-game:not([data-menu-input='pointer'])
  :is(button, a, input, select, summary, [tabindex='0']):focus-visible,
.dodgeball-game[data-menu-input='pad'] :is(button, a, input, select, summary):focus,
.dodgeball-game:not([data-menu-input='pointer']) label:has(input[type='radio']:focus-visible) {
  filter: brightness(1.22) drop-shadow(0 0 4px #ffc779a6);
  box-shadow: inset 0 -3px #ffcf82 !important;
}
.dodgeball-game:not([data-menu-input='pointer'])
  #roll-call[data-entry]
  :is(button, a):focus-visible,
.dodgeball-game[data-menu-input='pad'] #roll-call[data-entry] :is(button, a):focus {
  background-color: #ffe6a82b;
}
@media (forced-colors: active) {
  .dodgeball-game:not([data-menu-input='pointer']) :focus-visible,
  .dodgeball-game[data-menu-input='pad'] :focus {
    outline: 2px solid Highlight !important;
  }
}

.locker-rotate,
.entry-match-art,
#roll-call[data-entry] #court-ready,
#court-ready[hidden] {
  display: none;
}
#court-ready {
  position: absolute;
  left: 50%;
  top: 2%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.24em 0.65em;
  border-radius: 1em;
  background: #20291f;
  color: #eff8dc;
  font: 700 clamp(11px, 1.05vw, 16px)/1.2 system-ui;
}
#court-ready::before {
  content: '';
  width: 0.65em;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #98e973;
  box-shadow: 0 0 5px #88dc6866;
}
#roll-call:not([data-entry]) .bench-rules #control-directions {
  width: max-content;
  box-sizing: border-box;
  max-width: min(46vw, 340px);
  max-height: 47dvh;
  overflow-y: auto;
  padding: 8px 12px;
}
#control-directions li {
  font: 600 clamp(12px, 1.2vw, 17px)/1.35 system-ui;
  color: #fff1d5;
}
#roll-call #control-directions kbd[data-family=''] {
  color: #332312;
  background: #fff0cf;
  text-shadow: none;
}

.basket-call[data-prompt='approach']:not([hidden]) {
  font: italic 850 clamp(16px, 2.1vw, 30px)/1.12 system-ui;
  padding: 0.34em 0.62em;
}
.basket-call[data-prompt='approach']::before {
  content: '';
  display: inline-block;
  height: 1.5em;
  aspect-ratio: 1;
  background: url(./locker/ui-dot.webp?v=17eae89f1652) center/contain no-repeat;
}
/* Let each visible announcement occupy its own row, including split-screen seats. */
.court-prompts {
  position: absolute;
  z-index: 1;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  width: calc(49% - 12px);
  display: grid;
  justify-items: start;
  gap: 4px;
  pointer-events: none;
}
.court-prompts .basket-call:not([hidden]) {
  position: static;
  max-width: 100%;
}
.court-prompts .basket-call[data-prompt='shot']:not([hidden]) {
  width: clamp(175px, 27vw, 400px);
}
.couch-view .court-prompts {
  top: 2.2rem;
}
.couch-view .court-prompts .basket-call:not([hidden]) {
  width: min(100%, 160px);
}
.couch-view .court-prompts .basket-call[data-prompt='approach'] {
  font-size: clamp(12px, 1.3vw, 18px);
}

@media (pointer: coarse) and (orientation: landscape) {
  #roll-call[data-entry] {
    background: radial-gradient(ellipse at 65% 50%, #533522, #211711 66%, #17110e);
  }
  #roll-call[data-entry] .entry-match-art {
    display: block;
    position: absolute;
    inset: 0 4% 0 auto;
    height: 100%;
    aspect-ratio: 0.82;
    background: url(./locker/ui-entry-phone.webp?v=70a8a6c7325e) center 53% / 100% auto no-repeat;
    mask-image:
      linear-gradient(to right, transparent, black 10%, black 90%, transparent),
      linear-gradient(to bottom, transparent 4%, black 8%);
    mask-composite: intersect;
    pointer-events: none;
  }
  #roll-call[data-entry] .rc-head > div:first-child {
    position: absolute;
    display: block;
    top: 23%;
    left: 6%;
    width: 45%;
    color: #fff2d6;
  }
  #roll-call[data-entry] .rc-kicker {
    display: block;
    color: #ffcf83;
    font: 800 clamp(14px, 2vw, 22px)/1 system-ui;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  #roll-call[data-entry] #roll-call-title {
    display: block;
    margin: 0.12em 0;
    color: #fff0d3;
    font:
      italic 900 clamp(38px, 6vw, 85px)/1 Bahnschrift,
      system-ui;
  }
  #roll-call[data-entry] #enter-bench:not([hidden]) {
    inset: auto auto 19% 6%;
    width: auto;
    height: auto;
    min-height: 44px;
    padding: 0.52em 1em;
    background: linear-gradient(#bd4026, #8b2718);
    border: 1px solid #e9aa67;
    color: #fff4db;
    font: italic 800 clamp(18px, 2.5vw, 32px)/1.15 system-ui;
  }
  #roll-call[data-entry] .rc-controls .bench-home:any-link {
    z-index: 1;
    width: auto;
    height: auto;
    padding: 0.5em 0.85em;
    color: #fff0d3;
    background: #2f251c;
    font: 700 14px system-ui;
  }
  #roll-call:not([data-entry]) {
    background-image: url(./locker/ui-bench-room.webp?v=0bd268abd2e2);
    --board-top: 16.5%;
    --board-bottom: 38%;
    --bottom-top: 64.2%;
    --bottom-end: 16.5%;
  }
  #roll-call:not([data-entry]) #roll-call-status {
    top: 11.6%;
    left: 17%;
    margin: 0;
    font-size: clamp(10px, 1.4vw, 16px);
  }
  #match-lobby #dock #navigation :is(#browse-previous, #browse-next) {
    display: none;
  }
  #match-lobby #dock #navigation button#player {
    width: auto;
    min-width: min(58vw, 250px);
    font: italic 850 clamp(21px, 3vw, 34px)/1.1 system-ui;
  }
  #match-lobby #dock.choosing {
    width: min(94vw, 720px);
    padding: 7px 10px;
  }
  #match-lobby #dock #teams:not([hidden]) {
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 5px 8px;
    align-items: center;
  }
  #match-lobby #dock #teams .player-name:not([hidden]) {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 3px 6px;
    color: #fff0d2;
    font: 750 14px/1.1 system-ui;
  }
  #match-lobby #dock #teams .player-name .handle-hint {
    display: inline;
    color: #ffd183;
    font-size: 12px;
  }
  #match-lobby #display-name {
    grid-column: 1/-1;
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    height: 34px;
    border: 1px solid #9d7953;
    border-radius: 4px;
    padding: 3px 8px;
    background: #fff1d9;
    color: #352516;
    font: 650 16px/1.2 system-ui;
  }
  #match-lobby #display-name::placeholder {
    color: #725d4c;
    opacity: 1;
  }
  #match-lobby #teams :is(#join-match, #back) {
    align-self: end;
  }
}
@media (orientation: portrait) and (pointer: coarse) {
  #match-lobby:not([hidden]) {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: #201811 url(./locker/ui-rotate.webp?v=6a22fec57480) center/contain no-repeat;
    pointer-events: auto;
  }
  #match-lobby:not([hidden]) > :not(.locker-rotate) {
    display: none !important;
  }
  #match-lobby .locker-rotate {
    position: absolute;
    display: block;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
  }
  #roll-call:not([data-entry]) #court-ready {
    display: none;
  }
}

/* Match the touch guide to the team's printed locker-room cards. */
#court-menu:has(.touch-playbook:not([hidden])) .court-directions[hidden] {
  display: none;
}
#court-menu[open]:has([data-menu-page='Controls']:not([hidden]) .touch-playbook:not([hidden])) {
  width: min(94vw, 780px);
  max-height: 94dvh;
  box-sizing: border-box;
  inset: 0;
  margin: auto;
  overflow-y: auto;
  padding: 10px;
  gap: 8px;
  background: #30241e;
}
#court-menu:has([data-menu-page='Controls']:not([hidden]) .touch-playbook:not([hidden])) h2 {
  margin: 0;
  padding: 0.22em 0.45em;
  color: #fff0ce;
  background: linear-gradient(105deg, #9d3326, #75251c 75%, #50231c);
  font: italic 900 clamp(24px, 4vmin, 38px)/1.05 system-ui;
}
.touch-playbook:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 8px;
}
.throw-card {
  display: flex;
  align-items: end;
  overflow: hidden;
  border: 1px solid #cf9b55;
  background: #34281a url(./locker/ui-gold-oilfield.webp?v=165847613ac4) 50% 27% / cover no-repeat;
  color: #fff1d6;
}
.throw-card > div {
  width: 100%;
  padding: 24px 12px 10px;
  background: linear-gradient(transparent, #211812ed 26%, #211812);
}
.throw-card h3 {
  margin: 0 0 4px;
  color: #ffcc75;
  font: italic 850 clamp(19px, 3.8vmin, 28px)/1.05 system-ui;
}
.touch-ball-key::before {
  content: '';
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  vertical-align: -0.2em;
  margin-right: 0.15em;
  background: url(./dodgeball-review/ball-control.webp) center/contain no-repeat;
}
.throw-card p,
.touch-moves dd {
  font: 580 clamp(13px, 2.6vmin, 16px)/1.28 system-ui;
  margin: 0;
}
.touch-moves {
  margin: 0;
  padding: 2px 12px;
  color: #37271f;
  background: #f6e5c4;
  border-top: 4px solid #d0a559;
}
.touch-moves > div {
  display: grid;
  align-items: baseline;
  grid-template-columns: 5.2em 1fr;
  gap: 5px;
  padding: 7px 0;
}
@media (orientation: landscape) and (max-height: 450px) {
  .touch-moves > div {
    padding-block: 4px;
  }
}
.touch-moves > div + div {
  border-top: 1px solid #cbb690;
}
.touch-moves dt {
  color: #813225;
  font: italic 850 15px/1.14 system-ui;
}
@media (orientation: portrait) {
  .touch-playbook:not([hidden]) {
    grid-template-columns: 1fr;
  }
  .throw-card {
    min-height: 145px;
    background-size: auto 190%;
    background-position: right 30%;
  }
  .throw-card > div {
    width: 59%;
    padding: 12px;
    background: linear-gradient(90deg, #291e15 85%, transparent);
  }
}
