/* Shill Bidder (public/shill-bidder.js). Gavel Drop's paper lot tags (gavel-drop.css), a sealed
   crate for the Shill, a board of bidder cards and a four-photo steal. Every screen fits the window
   (style.css caps the match area), so nothing scrolls: when there isn't room, photos give way first. */
.sb { --sb-pink: #ff6fa5; --sb-teal: #2cc5b0; display: flex; flex-direction: column; flex: 0 1 auto; min-height: 0; }
.sb > * { flex: none; }
.sb .gd-bar { margin-bottom: 1rem; }
.sb .gd-actions { margin-top: 1rem; }
.sb .gd-credit:empty { display: none; }
.sb-waiting { margin-top: 1rem; }
.sb-waiting strong { color: var(--text); }
.sb-none { color: #1b11407a; font-style: italic; font-weight: 650; }
@media (max-width: 46rem), (max-height: 30rem) {
  .sb { flex: 1 1 0; }
  .sb .gd-bar { flex-wrap: nowrap; margin-bottom: .6rem; }
  .sb .gd-bar .gd-hint { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; }
  .sb .gd-actions { justify-content: center; margin-top: .7rem; }
  .sb .gd-credit, .sb .gd-count { display: none; }
}

/* A face: the player's portrait (or initial) in their colour. */
.sb-face {
  display: grid; place-items: center; flex: none; width: 2.2rem; height: 2.2rem; overflow: hidden; color: var(--gd-ink);
  background: var(--c); border: 2.5px solid var(--gd-ink); border-radius: 50%; font: 800 .95rem/1 var(--font);
}
.sb-face img { width: 118%; height: 118%; object-fit: cover; object-position: 50% 20%; }

/* ---- Stage 1: bid. One slip: the photo (or the crate) beside the price and the word. ---- */
.sb-slip { flex: 0 1 auto; min-height: 0; max-height: 100%; }
.sb-slip > .gd-plate { min-height: 4.5rem; }
.sb-category { margin: .55rem .1rem 0; color: var(--gd-muted); font-size: .86rem; font-weight: 650; }
.sb-category strong, .sb-crate-meta strong { color: var(--gd-ink); font-weight: 800; }
.sb-crate-meta { font-size: .95rem; }
.sb-crate-meta strong {
  display: inline-block; margin-top: .2rem; padding: .1rem .5rem .14rem; background: var(--gd-butter);
  border: 2.5px solid var(--gd-ink); border-radius: 8px; rotate: -1.5deg; font-size: 1.05rem;
}
.sb-crate-plate { container-type: size; background: repeating-linear-gradient(-45deg, #ffe6a6 0 14px, #ffd98a 14px 28px); }
/* The crate fits whatever room the plate has left (the plate shrinks on a short phone). */
.sb-crate-art { position: relative; width: auto; height: 78cqh; max-width: min(70cqw, 15rem); overflow: visible; }
.sb-crate-mark { fill: var(--gd-ink); font: 800 38px/1 var(--font); }
.sb-shill-stamp { color: #d93a7c; border-color: #d93a7c; }
.sb-cat-stamp { display: none; max-width: calc(100% - 1.2rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #fffaf3e6; }
.sb-word { display: grid; gap: .2rem; margin-top: .55rem; }
.sb-word-label { color: var(--gd-muted); font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.sb input.sb-word-input {
  width: 100%; min-height: 2.7rem; margin: 0; padding: .1rem .7rem; color: var(--gd-ink); background: #fff;
  border: 3px solid var(--gd-ink) !important; border-radius: 12px; box-shadow: 2px 2px 0 var(--gd-ink);
  font: 800 1.3rem/1 var(--font); letter-spacing: -.02em;
}
.sb input.sb-word-input::placeholder { color: #1b11404d; font-weight: 700; }
.sb input.sb-word-input:focus-visible { border-color: #e0472a !important; box-shadow: 2px 2px 0 var(--gd-ink), inset 0 0 0 2px #e0472a; outline: none; }
.sb input.sb-word-input.is-bad { border-color: #d93a7c !important; background: #fff0f6; }
.sb-mine { justify-content: flex-start; }
.sb-mine .gd-mine-price { margin-left: 0; }
.sb-mine-word { margin-left: auto; font: 800 1.2rem/1 var(--font); letter-spacing: -.02em; }
/* On a computer (and a landscape phone) the photo sits beside the controls. */
@media (min-width: 46.01rem), (max-height: 30rem) {
  .sb-slip {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-auto-rows: auto; align-content: start;
    column-gap: 1.3rem; width: min(100%, 54rem); margin-inline: auto; padding: .9rem;
  }
  .sb-slip > .gd-plate { grid-row: 1 / span 8; align-self: stretch; aspect-ratio: auto; min-height: 12rem; }
  /* The controls set the slip's height and the photo fills beside them, so the slip never shrinks. */
  .sb-bid > .sb-slip { flex: none; max-height: none; }
  .sb-slip .gd-title { margin-top: .15rem; font-size: 1.2rem; }
  .sb-bid .gd-actions { width: min(100%, 54rem); margin-inline: auto; }
}
/* Laptop heights: the controls give up height so the photo keeps its own. */
@media (min-width: 46.01rem) and (max-height: 50rem) {
  .sb-slip .gd-scale { display: none; }
  .sb-slip > .gd-plate { min-height: 10rem; }
  .sb .gd-bar { margin-bottom: .7rem; }
  .sb .gd-actions { margin-top: .75rem; }
  .sb .gd-lock { min-height: 2.9rem; padding-inline: 1.7rem; font-size: 1.02rem; }
}
/* A laptop-height window: Lock in moves beside the slip. */
@media (min-width: 46.01rem) and (max-height: 50rem) {
  .sb-bid { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 1.1rem; align-items: end; }
  .sb-bid > .gd-bar { grid-column: 1 / -1; }
  .sb-bid > .sb-slip { grid-area: 2 / 1; width: 100%; }
  .sb-bid > :is(.gd-actions, .sb-waiting) { grid-area: 2 / 2; flex-direction: column; align-items: stretch; width: 10rem; margin: 0; }
  .sb-bid .gd-credit { display: none; }
  .sb-bid .gd-count { font-size: .84rem; text-align: center; }
  .sb-slip > .gd-plate { min-height: 9rem; }
}
@media (min-width: 46.01rem) and (max-height: 38rem) {
  .sb-slip .gd-title { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
/* A phone: the slip stacks, and the photo shrinks before anything else. */
@media (max-width: 46rem) and (min-height: 30.01rem) {
  .sb-slip { width: min(100%, 30rem); margin-inline: auto; padding: .6rem .6rem .7rem; rotate: 0deg; }
  .sb-slip > .sb-category, .sb-word-label { display: none; }
  .sb-cat-stamp { display: block; }
  .sb-slip > .gd-plate { min-height: 4rem; }
  .sb-slip .gd-title { margin-top: .5rem; font-size: 1rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .sb-slip .gd-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sb-slip .gd-bid { padding-top: .4rem; }
  .sb-slip .gd-meta + .gd-bid, .sb-slip .sb-category + .gd-bid { margin-top: .45rem; border-top: 2.5px dashed #1b114026; }
  .sb-slip .gd-price { font-size: 1.5rem; }
  .sb-slip .gd-scale { display: none; }
  .sb-crate .gd-title { font-size: 1.15rem; }
}
/* A landscape phone: no heading row; Lock in sits beside the slip. */
@media (max-height: 30rem) {
  .sb-bid { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr); column-gap: .8rem; }
  .sb-bid > .gd-bar { display: none; }
  .sb-bid > .sb-slip { grid-area: 1 / 1; width: 100%; padding: .6rem; }
  .sb-bid > :is(.gd-actions, .sb-waiting) { grid-area: 1 / 2; align-self: end; flex-direction: column; margin: 0; }
  .sb-bid > .sb-waiting { max-width: 9rem; align-self: center; }
  .sb-slip > .gd-plate { min-height: 6rem; }
  .sb-slip .gd-meta, .sb-slip .gd-scale { display: none; }
  .sb-slip .gd-title { font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sb-slip .sb-category { margin-top: .2rem; font-size: .8rem; }
  .sb-slip .gd-price { font-size: 1.35rem; }
  .sb-slip .gd-bid { padding-top: .3rem; }
  .sb-slip .sb-word { margin-top: .3rem; }
  .sb-slip .sb-word-label { display: none; }
  .sb input.sb-word-input { min-height: 2.35rem; font-size: 1.1rem; }
  .sb .gd-lock { min-height: 2.8rem; padding-inline: 1.3rem; font-size: 1rem; }
  .sb-crate .gd-title { font-size: 1.05rem; }
}

/* ---- The room: a side column (the lot, the call or the clues) beside the board. ---- */
.sb-room {
  display: grid; grid-template-columns: minmax(12rem, 16.5rem) minmax(0, 1fr); align-items: start; gap: 1.6rem;
  flex: 0 1 auto; min-height: 0;
}
.sb-side { display: flex; flex-direction: column; gap: .8rem; min-width: 0; min-height: 0; }
.sb-side > .gd-tag { flex: 0 1 auto; min-height: 0; }
.sb-compact .gd-title { margin-top: .55rem; font-size: .98rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.sb-compact .gd-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-compact.sb-crate .gd-title { font-size: 1.05rem; }
.sb-vote-actions { justify-content: flex-end; }
.sb-vote-actions .gd-lock { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The board: one card per bidder, turned over one at a time. */
.sb-board {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 1rem .85rem; min-height: 0;
  margin: 0; padding: .2rem .3rem .4rem 0; list-style: none;
}
.sb-card { position: relative; min-width: 0; perspective: 40rem; }
.sb-card-body {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; align-content: center;
  column-gap: .6rem; row-gap: .1rem; width: 100%; min-height: 0; margin: 0; padding: .6rem .7rem .65rem .85rem; color: var(--gd-ink); text-align: left;
  background: linear-gradient(90deg, var(--c) 0 .38rem, var(--gd-paper) .38rem); border: 3px solid var(--gd-ink); border-radius: 16px;
  box-shadow: 4px 4px 0 var(--gd-ink); rotate: var(--tilt, 0deg); font: inherit;
  opacity: 0; transform: rotateY(80deg) scale(.85); transition: transform .5s cubic-bezier(.2, 1.3, .4, 1), opacity .25s, rotate .3s, box-shadow .2s, translate .2s;
}
.sb-card.is-in .sb-card-body { opacity: 1; transform: none; }
.sb-card-head { display: contents; }
.sb-card-head .sb-face { grid-row: 1 / span 2; }
.sb-name { grid-area: 1 / 2; min-width: 0; overflow: hidden; color: var(--gd-muted); font-size: .8rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.sb-said { grid-area: 2 / 2; min-width: 0; overflow: hidden; padding-bottom: .08em; font: 800 1.25rem/1.15 var(--font); letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.sb-said.sb-none { font-size: .95rem; }
.sb-price {
  position: absolute; z-index: 2; top: -.6rem; right: .55rem; padding: .08rem .42rem .12rem; background: var(--gd-butter);
  border: 2px solid var(--gd-ink); border-radius: 999px; rotate: 3deg; font: 800 .72rem/1.1 var(--font); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.sb-card.is-self .sb-card-body { background: linear-gradient(90deg, var(--c) 0 .38rem, #fff1c9 .38rem); }
.sb-card.is-left .sb-card-body { opacity: .55; }
button.sb-card-body { cursor: pointer; }
button.sb-card-body:hover { translate: 0 -2px; box-shadow: 5px 6px 0 var(--gd-ink); }
button.sb-card-body:active { translate: 2px 2px; box-shadow: 2px 2px 0 var(--gd-ink); }
.sb-card.is-picked .sb-card-body { rotate: 0deg; box-shadow: 4px 4px 0 var(--gd-ink), 0 0 0 4px var(--sb-pink), 4px 4px 0 4px var(--gd-ink); }
.sb-card.is-picked::after {
  content: "Suspect"; position: absolute; z-index: 2; right: -.35rem; top: -.75rem; padding: .1rem .4rem .14rem; color: #fff;
  background: #d93a7c; border: 2.5px solid var(--gd-ink); border-radius: 7px; rotate: 8deg;
  font: 800 .66rem/1.1 var(--font); letter-spacing: .08em; text-transform: uppercase;
}
/* Ten bidders: smaller cards. */
.sb-board.sb-many { gap: .6rem; }
.sb-many .sb-card-body { padding: .42rem .55rem .45rem .7rem; }
.sb-many .sb-face { width: 1.85rem; height: 1.85rem; font-size: .8rem; }
.sb-many .sb-said { font-size: 1.08rem; }

/* ---- Stage 3: the verdict. ---- */
/* Votes hang off the bottom of the voted-for card (they never make it taller). */
.sb-votes { position: absolute; z-index: 2; left: .7rem; bottom: -.75rem; display: flex; }
.sb-votes:empty { display: none; }
.sb-verdict .sb-board { padding-bottom: .9rem; }
.sb-card-body { position: relative; }
.sb-vote-chip { width: 1.4rem; height: 1.4rem; margin-right: -.35rem; border-width: 2px; font-size: .62rem; opacity: 0; translate: 0 -1.2rem; scale: .4; transition: opacity .2s, translate .35s cubic-bezier(.2, 1.6, .4, 1), scale .35s cubic-bezier(.2, 1.6, .4, 1); }
.sb-vote-chip.is-in { opacity: 1; translate: none; scale: 1; }
.sb-more { --c: #fffaf3; font-size: .56rem; letter-spacing: -.02em; }
/* The stamp lands over the Shill's face and name, leaving the word they bluffed with in view. */
.sb-unmask {
  position: absolute; z-index: 3; left: .2rem; top: 50%; translate: 0 -50%; padding: .02rem .55rem .1rem; color: #d93a7c;
  background: #fffaf3e0; border: 4px solid #d93a7c; border-radius: 12px; rotate: -10deg; box-shadow: inset 0 0 0 2px #fffaf3;
  font: 800 1.35rem/1 var(--font); letter-spacing: .05em; text-transform: uppercase; opacity: 0; scale: 2.4; pointer-events: none;
  transition: opacity .1s, scale .3s cubic-bezier(.2, 1.4, .4, 1);
}
.is-unmasked .sb-unmask { opacity: 1; scale: 1; }
.is-unmasked .sb-card:not(:has(.sb-unmask)) .sb-card-body { opacity: .5; filter: saturate(.5); }
.is-unmasked .sb-card:has(.sb-unmask) .sb-card-body { box-shadow: 4px 4px 0 var(--gd-ink), 0 0 0 5px var(--sb-pink), 4px 4px 0 5px var(--gd-ink); }
.sb-call { justify-content: center; align-self: center; gap: .5rem; }
.sb-call-title { margin: 0; color: var(--muted); font: 800 clamp(2rem, 4.4vw, 3rem)/1 var(--font); letter-spacing: -.05em; transition: color .3s, scale .45s cubic-bezier(.2, 1.6, .4, 1); }
.is-unmasked .sb-call-title { color: var(--gd-butter); text-shadow: 3px 3px 0 var(--gd-ink); scale: 1.04; }
.is-caught .sb-call-title { color: var(--sb-pink); }
.sb-call-detail { margin: 0; color: var(--text); font-weight: 700; }

/* ---- Stage 4: the steal. ---- */
.sb-who { display: flex; align-items: center; gap: .6rem; margin: 0; font-weight: 800; }
.sb-clues { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.sb-clue {
  display: inline-flex; align-items: baseline; gap: .4rem; max-width: 100%; padding: .25rem .55rem .3rem; color: var(--gd-ink);
  background: linear-gradient(90deg, var(--c) 0 .3rem, var(--gd-paper) .3rem); border: 2.5px solid var(--gd-ink); border-radius: 10px;
  box-shadow: 2px 2px 0 var(--gd-ink); font-weight: 800;
}
.sb-clue q { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-clue-price { color: var(--gd-muted); font-size: .78rem; }
.sb-clue-price:empty { display: none; }
.sb-choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; min-height: 0; margin: 0; padding: .2rem 0 .3rem; list-style: none; }
.sb-choice { position: relative; min-width: 0; min-height: 0; }
.sb-choice-body {
  display: flex; flex-direction: column; gap: .45rem; width: 100%; height: 100%; min-height: 0; margin: 0; padding: .5rem; color: var(--gd-ink);
  background: var(--gd-paper); border: 3px solid var(--gd-ink); border-radius: 16px; box-shadow: 4px 4px 0 var(--gd-ink); font: inherit; text-align: left;
  transition: translate .2s, box-shadow .2s, rotate .3s;
}
.sb-choice:nth-child(odd) .sb-choice-body { rotate: -.8deg; }
.sb-choice:nth-child(even) .sb-choice-body { rotate: .8deg; }
button.sb-choice-body { cursor: pointer; }
button.sb-choice-body:hover { translate: 0 -2px; box-shadow: 5px 6px 0 var(--gd-ink); }
.sb-choice-plate { aspect-ratio: 4 / 3; flex: 0 1 auto; min-height: 3rem; border-radius: 11px; }
.sb-choice-name { flex: none; padding: 0 .15rem; overflow: hidden; font: 800 .9rem/1.2 var(--font); text-overflow: ellipsis; white-space: nowrap; }
.sb-choice.is-picked .sb-choice-body { rotate: 0deg; box-shadow: 4px 4px 0 var(--gd-ink), 0 0 0 4px var(--gd-butter), 4px 4px 0 4px var(--gd-ink); }
.sb-the-lot { background: var(--gd-butter); }

/* ---- Stage 5: the hammer. ---- */
.sb-hammer {
  display: grid; grid-template-columns: minmax(0, 23rem) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
  column-gap: 2.2rem; align-items: start;
}
.sb-hammer > .gd-bar { grid-column: 1 / -1; }
.sb-sold-card { min-height: 0; max-height: 100%; }
.sb-sold-card > .gd-plate { min-height: 4.5rem; }
.sb-panel { display: grid; justify-items: start; align-content: start; gap: .55rem; min-width: 0; }
.sb-sold { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; }
.sb-sold .gd-hammer-label { flex: 1 0 100%; }
.sb-facts { color: var(--muted); font-weight: 750; }
.sb-reveal {
  display: grid; justify-items: start; gap: .35rem; width: 100%; padding: .75rem .9rem .85rem; color: var(--gd-ink); background: var(--gd-paper);
  border: 3px solid var(--gd-ink); border-radius: 16px; box-shadow: 4px 4px 0 var(--gd-ink); rotate: -.6deg;
  opacity: 0; translate: 0 10px; transition: opacity .4s, translate .45s cubic-bezier(.2, 1.4, .4, 1);
}
.is-unmasked .sb-reveal { opacity: 1; translate: none; }
.sb-reveal-who { display: flex; align-items: center; gap: .55rem; margin: 0; font: 800 1.05rem/1.2 var(--font); }
.sb-pictured { margin: 0; color: var(--gd-muted); font-weight: 700; }
.sb-pictured q { color: var(--gd-ink); font: 800 1.2rem/1 var(--font); }
.sb-verdict-chip {
  padding: .2rem .6rem .24rem; background: #e6def5; border: 2.5px solid var(--gd-ink); border-radius: 999px; rotate: -2deg;
  font: 800 .84rem/1.1 var(--font);
}
.sb-verdict-chip.good { background: #9ed65a; }
.sb-steal-line { margin: 0; color: var(--gd-muted); font-size: .86rem; font-weight: 700; }
.sb-closest { margin: 0; color: var(--text); font-weight: 750; opacity: 0; transition: opacity .4s .1s; }
.sb-closest:empty { display: none; }
.is-scored .sb-closest, .is-scored .sb-you { opacity: 1; translate: none; }
.sb-hammer .gd-credit { margin-top: .2rem; }

/* ---- Laptop heights. ---- */
@media (min-width: 46.01rem) and (max-height: 50rem) {
  .sb-room { gap: 1.2rem; }
  .sb-side > .gd-tag .gd-plate { min-height: 5rem; }
  .sb-board { gap: .7rem; }
  .sb-choices .sb-choice-plate { min-height: 4rem; }
  .sb-hammer .sb-panel { gap: .45rem; }
}
@media (min-width: 46.01rem) and (max-height: 38rem) {
  .sb-hammer .gd-credit { display: none; }
  .sb-hammer .sb-reveal { padding: .55rem .8rem .65rem; gap: .25rem; }
  .sb-hammer .gd-hammer-price { font-size: 2.1rem; }
}

/* ---- Narrow and upright (a phone or a tablet): one column, everything stacked. ---- */
@media (max-width: 52rem) and (min-height: 30.01rem) {
  .sb-room { grid-template-columns: minmax(0, 1fr); gap: .75rem; align-items: stretch; }
  .sb-side > .gd-tag {
    display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); align-items: center; column-gap: .7rem; padding: .4rem .5rem; rotate: 0deg;
  }
  .sb-side > .gd-tag > .gd-plate { grid-row: span 2; aspect-ratio: 1; min-height: 0; border-radius: 10px; }
  .sb-side > .gd-tag .gd-stamp { display: none; }
  .sb-side > .gd-tag .gd-title { margin: 0; font-size: .92rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sb-side > .gd-tag .gd-meta { font-size: .78rem; }
  .sb-side > .gd-tag .gd-eyelet { left: auto; right: 1.1rem; translate: none; }
  .sb-side .sb-crate-art { height: 84cqh; max-width: 90cqw; }
  .sb-side .sb-crate-meta strong { margin-top: 0; padding: 0 .4rem .04rem; font-size: .86rem; }
  .sb-board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; padding: .2rem .25rem .3rem 0; }
  .sb-vote-actions { justify-content: center; }
  .sb-vote-actions .gd-lock { min-height: 3rem; }
  .sb-call { align-self: stretch; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; }
  .sb-call-title { font-size: 1.8rem; }
  .sb-call-detail { font-size: .9rem; }
  .sb-clues-side { gap: .45rem; }
  .sb-clue { padding: .15rem .45rem .2rem; font-size: .88rem; }
  .sb-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .sb-choice-body { padding: .4rem; gap: .3rem; }
  .sb-choice-name { font-size: .82rem; }
  .sb-hammer { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; row-gap: .7rem; }
  .sb-sold-card { width: min(100%, 26rem); justify-self: center; padding: .55rem .55rem .65rem; rotate: 0deg; }
  .sb-sold-card .gd-title { margin-top: .45rem; font-size: .95rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .sb-sold-card .gd-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sb-sold-card .gd-sold { font-size: 1.6rem; }
  .sb-panel { gap: .4rem; }
  .sb-panel .gd-hammer-price { font-size: 1.9rem; }
  .sb-sold .gd-hammer-label { flex: none; }
  .sb-reveal { padding: .5rem .7rem .6rem; gap: .25rem; }
  .sb-reveal-who { font-size: .95rem; }
  .sb-reveal-who .sb-face { width: 1.8rem; height: 1.8rem; }
  .sb-pictured { font-size: .9rem; }
  .sb-closest, .sb-you { font-size: .86rem; }
  .sb-you { padding: .3rem .6rem; }
  .sb-steal-line { display: none; }
}
/* A phone: the room fills the screen, and the board's cards and the photos share what's left. */
@media (max-width: 46rem) and (min-height: 30.01rem) {
  .sb-room { grid-template-rows: auto minmax(0, 1fr); flex: 1 1 0; gap: .6rem; }
  .sb-room > :is(.sb-board, .sb-choices) { grid-row: 2; }
  .sb-board { grid-auto-rows: minmax(0, 1fr); align-content: start; gap: .5rem; }
  .sb-side > .gd-tag { grid-template-columns: 3rem minmax(0, 1fr); padding: .3rem .45rem; }
  .sb-card-body { height: 100%; row-gap: 0; padding: .4rem .5rem .42rem .7rem; box-shadow: 3px 3px 0 var(--gd-ink); }
  .sb-face { width: 1.8rem; height: 1.8rem; font-size: .8rem; }
  .sb-name { font-size: .74rem; line-height: 1.05; }
  .sb-said { font-size: 1.05rem; line-height: 1.05; }
  .sb-many .sb-card-body { padding: .28rem .45rem .3rem .65rem; }
  .sb-many .sb-face { width: 1.5rem; height: 1.5rem; }
  .sb-many .sb-said { font-size: .96rem; }
  .sb-many .sb-name { font-size: .7rem; }
  .sb-many .sb-price { font-size: .66rem; }
  .sb-votes { left: .55rem; bottom: -.6rem; }
  .sb-vote-chip { width: 1.2rem; height: 1.2rem; }
  /* Seven to ten bidders: the board needs every row, so the lot reminder and the call shrink away. */
  .sb-vote:has(.sb-many) .sb-side { display: none; }
  .sb-verdict:has(.sb-many) .sb-call-title { font-size: 1.45rem; }
  .sb-verdict:has(.sb-many) .sb-call-detail { font-size: .8rem; line-height: 1.25; }
  .sb-unmask { font-size: 1rem; border-width: 3px; }
  .sb-price { top: -.5rem; right: .45rem; font-size: .66rem; }
  .sb-board:not(.sb-many) .sb-said { font-size: 1.25rem; }
  .sb-side > .gd-tag .gd-meta { display: none; }
  .sb-side > .gd-tag:not(.sb-crate) > .gd-plate { grid-row: auto; }
  .sb-choices { grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .sb-choice-plate { flex: 1 1 0; aspect-ratio: auto; min-height: 2.5rem; }
  .sb-steal .sb-who { display: none; }
  .sb-clues { gap: .3rem; }
  .sb-clue { padding: .08rem .38rem .12rem; font-size: .8rem; box-shadow: 1.5px 1.5px 0 var(--gd-ink); }
  .sb-clue-price { font-size: .7rem; }
}
/* Short tiles (a phone, a landscape phone): the lot's name rides on its photo. */
@media (max-width: 46rem) and (min-height: 30.01rem), (max-height: 30rem) {
  .sb-choice-body { position: relative; }
  .sb-choice-name {
    position: absolute; left: .75rem; right: .75rem; bottom: .75rem; padding: .1rem .35rem .14rem; background: #fffaf3e8;
    border: 2px solid var(--gd-ink); border-radius: 7px; font-size: .74rem;
  }
}
/* ---- A landscape phone: side by side, and short. ---- */
@media (max-height: 30rem) {
  .sb .gd-bar .gd-kicker { display: none; }
  .sb-room { grid-template-columns: minmax(9.5rem, 12rem) minmax(0, 1fr); gap: .9rem; flex: 1 1 0; align-items: stretch; }
  :is(.sb-vote, .sb-verdict) .sb-room { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: .5rem; }
  :is(.sb-vote, .sb-verdict) .sb-room > .sb-board { grid-row: 2; }
  .sb-vote .sb-side { display: none; }
  .sb-verdict .sb-call { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 .8rem; }
  .sb-steal .sb-room { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .sb-steal .sb-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .sb-side > .gd-tag { padding: .45rem; }
  .sb-side > .gd-tag .gd-title { margin-top: .35rem; font-size: .88rem; }
  .sb-side > .gd-tag .gd-meta { display: none; }
  .sb-board { grid-template-columns: repeat(auto-fill, minmax(8.4rem, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: .7rem .55rem; }
  .sb-card-body { height: 100%; padding: .3rem .45rem .32rem .65rem; box-shadow: 3px 3px 0 var(--gd-ink); }
  .sb-face { width: 1.55rem; height: 1.55rem; font-size: .7rem; }
  .sb-said { font-size: .98rem; }
  .sb-name { font-size: .72rem; }
  .sb-votes { left: .5rem; bottom: -.55rem; }
  .sb-vote-chip { width: 1.1rem; height: 1.1rem; }
  .sb-vote > .gd-bar { display: none; }
  .sb-name { line-height: 1.05; }
  .sb-said { line-height: 1.05; }
  .sb-many .sb-said { font-size: .9rem; }
  .sb-many .sb-name { font-size: .64rem; }
  .sb-price { top: -.5rem; font-size: .64rem; }
  .sb-unmask { font-size: .92rem; border-width: 3px; }
  .sb-vote-actions { margin-top: .5rem; }
  .sb-vote-actions .gd-lock { min-height: 2.6rem; font-size: 1rem; }
  .sb-call-title { font-size: 1.7rem; }
  .sb-call-detail { font-size: .86rem; }
  .sb-clues { gap: .3rem; }
  .sb-clue { font-size: .78rem; padding: .1rem .4rem .14rem; box-shadow: 1.5px 1.5px 0 var(--gd-ink); }
  .sb-clue-price { font-size: .7rem; }
  .sb-choices { gap: .5rem; }
  .sb-choice-body { padding: .35rem; gap: .25rem; }
  .sb-choice-plate { flex: 1 1 0; aspect-ratio: auto; min-height: 3rem; }
  .sb-choice-name { left: .45rem; right: .45rem; bottom: .45rem; padding: 0 .3rem .04rem; font-size: .68rem; border-width: 1.5px; }
  .sb-hammer { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); column-gap: 1.2rem; }
  .sb-hammer > .gd-bar { display: none; }
  .sb-sold-card { padding: .45rem; }
  .sb-sold-card .gd-title { margin-top: .35rem; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sb-sold-card .gd-meta { display: none; }
  .sb-sold-card .gd-sold { font-size: 1.5rem; }
  .sb-panel { gap: .3rem; }
  .sb-panel .gd-hammer-price { font-size: 1.7rem; }
  .sb-sold .gd-hammer-label { flex: none; }
  .sb-reveal { padding: .4rem .6rem .45rem; gap: .2rem; }
  .sb-reveal-who { font-size: .9rem; }
  .sb-reveal-who .sb-face { width: 1.6rem; height: 1.6rem; }
  .sb-pictured { font-size: .84rem; }
  .sb-steal-line, .sb-hammer .gd-credit { display: none; }
  .sb-closest, .sb-you { font-size: .82rem; }
  .sb-you { padding: .25rem .55rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sb-card-body, .sb-vote-chip, .sb-unmask, .sb-reveal { transition: none; }
}
@media (forced-colors: active) {
  .sb-card-body, .sb-choice-body, .sb-face { forced-color-adjust: auto; }
}
