/* ---- hardening: long names clip instead of stretching the layout ---- */
.panel {
  overflow-wrap: anywhere;
}
.opp {
  min-width: 0;
}
.opp .nm {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.pf-id {
  min-width: 0;
}
.pf-ring {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
}
.tablewrap td {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.log div {
  overflow-wrap: anywhere;
}
/* ---- compact one-screen layouts (Exhibition bout + Draft board) ---- */
.chip {
  padding: 2px 4px;
}
.arena {
  position: relative;
  padding-top: 48px;
}
.arena .atitle {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 16px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--lo);
  padding: 2px 6px;
  border: var(--px) solid var(--line);
}
.arena .atitle .eyebrow {
  color: var(--fg);
}
.arena .score {
  display: grid;
  grid-template-columns: auto auto minmax(72px, 1fr);
  gap: 8px;
  align-items: center;
}
.arena .score > div:first-child,
.arena .score > div:last-child {
  min-width: 0;
}
.arena .score small {
  max-width: none;
}
.score .bmid {
  display: grid;
  gap: 4px;
  justify-items: center;
  min-width: 0;
}
.score .bmid .badge {
  white-space: nowrap;
}
.arena .resbox {
  text-align: center;
  margin-top: 6px;
}
.arena .resbox h2 {
  margin: 0 0 2px;
}
.arena .resbox .note {
  margin: 0 0 6px;
}
.corner {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}
.score .bmid .stip {
  gap: 4px;
}
.corner {
  margin: 6px 0 4px;
  padding: 4px;
}
.corner .side {
  min-height: 82px;
}
.corner .who.empty {
  height: 82px;
}
.corner .vs {
  padding-bottom: 20px;
  display: grid;
  justify-items: center;
  gap: 2px;
}
.corner .vs small {
  font-family: var(--f-cond);
  font-size: 16px;
  line-height: 16px;
  color: var(--muted);
  text-transform: uppercase;
  text-align: center;
  max-width: 96px;
}
.pickgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 128px);
  gap: 6px;
  margin-top: 6px;
  justify-content: center;
}
.supchips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 6px;
}
.supchip {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 2px 6px;
  align-items: center;
  padding: 4px 6px;
  background: var(--panel2);
  border: var(--px) solid var(--tc);
  box-shadow: var(--px) var(--px) 0 var(--lo);
  text-align: left;
  font: inherit;
  color: var(--fg);
  cursor: pointer;
  min-width: 0;
  position: relative;
}
.supchip .ic {
  grid-row: 1/3;
  width: 32px;
  height: 32px;
  background: var(--tc);
  display: grid;
  place-items: center;
}
.supchip .ic img {
  width: 32px;
  height: 32px;
}
.supchip .nm,
.supchip .ef {
  font-family: var(--f-cond);
  font-size: 16px;
  line-height: 16px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.supchip .ef {
  color: var(--muted);
}
.supchip.sel {
  outline: var(--px) solid var(--gold);
  animation: glow-gold 1s steps(2) infinite;
}
.supchip.sel .ef {
  color: var(--gold);
}
.supchip.used {
  opacity: 0.35;
  cursor: not-allowed;
}
.supchips .eyebrow {
  grid-column: 1/-1;
  margin-top: 2px;
}
.bellrow {
  margin-top: 8px;
  justify-content: center;
}
.board button {
  aspect-ratio: 10/11;
}
.bhead {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bhead h3 {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}
.bhead .badge {
  white-space: nowrap;
}
.bline {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin: 6px 0;
}
.bline .note {
  line-height: 16px;
}
.bsw {
  display: flex;
  gap: 4px;
}
.bsw .btn {
  flex: 1;
}
.bhelp {
  margin-top: 6px;
}
.bhelp .note {
  margin: 4px 0 0;
}
