/* Look and feel: near-black, bone, red and amber only.
   Square corners, hard offset shadows, Archivo Black headlines, Fira Code for every number and label. */
@font-face { font-family: 'Archivo Black'; src: url('/fonts/archivo-black.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Fira Code'; src: url('/fonts/fira-code.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }

:root {
  --z: 1; /* page zoom, raised on big screens below; heights from the screen (vh) are divided by it */
  color-scheme: dark;
  --red: #c62020; --amber: #e8a030; --bone: #f2f0e8; --black: #0c0c0a; --card: #faf9f3;
  --hl: rgba(242, 240, 232, .15); --hd: rgba(12, 12, 10, .2); --line: rgba(242, 240, 232, .35); /* hairlines on dark and light, the stronger line for inputs */
  --dim: rgba(242, 240, 232, .62); --dim-ink: rgba(12, 12, 10, .62); /* secondary text on dark and on light: 6.9:1 and 5.5:1 */
  --ease-out: cubic-bezier(.23, 1, .32, 1); --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --speed-red: rgba(198, 32, 32, .55); --glow: rgba(232, 160, 48, .5);
  --good: #7ddc8a; --bad: #ff6b5e;
  --display: 'Archivo Black', 'Arial Black', Impact, sans-serif;
  --body: Inter, system-ui, sans-serif;
  --mono: 'Fira Code', ui-monospace, Menlo, monospace;
  --hs: 6px 6px 0 var(--black); --hs-red: 6px 6px 0 var(--red);
}
/* Big monitors: the layout is drawn for a window about 1600 CSS pixels wide, so on a 2.5K, 4K or wide screen the whole page is scaled up instead of
   sitting small in the middle. The height conditions keep ultra-wide screens from scaling past what fits. */
@media (min-width: 2400px) and (min-height: 1200px) { :root { --z: 1.5; } }
@media (min-width: 3200px) and (min-height: 1800px) { :root { --z: 2; } }
@media (min-width: 3800px) and (min-height: 2000px) { :root { --z: 2.4; } }
html { zoom: var(--z); }
* { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; } /* clip, not just hidden: iOS Safari zooms the page out to fit anything wider than the screen (the card shadows reach 40px past their cards) */
body { margin: 0; background: var(--black); color: var(--bone); font: 15px/1.625 var(--body); font-variant-numeric: tabular-nums; touch-action: manipulation; overflow-x: hidden; overflow-x: clip; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr:focus { position: static; width: auto; height: auto; clip: auto; display: block; padding: 8px 12px; background: var(--amber); color: var(--black); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--bone); outline-offset: 2px; }
.light :focus-visible, .formcard :focus-visible { outline-color: var(--black); } /* white on dark, black on light: no yellow */
.mono { font-family: var(--mono); }
.k { font: 400 11px/1.4 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--red); }
.dark .k, .hero .k, dialog .k { color: var(--amber); }
.muted { color: var(--dim); }
.small { font-size: 13px; }
.wrap { width: min(1400px, 100%); margin: 0 auto; padding: 0 32px; }
.display, .h1, .h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: -.02em; }
.h1 { font-size: clamp(52px, 7vw, 96px); line-height: .88; }
.h1 > span { display: block; white-space: nowrap; } /* one line each; .wipe was the only thing making them blocks, so after its first run the words ran together */
@media (min-width: 1001px) { .hero-left .h1 { font-size: clamp(52px, 6vw, 84px); } } /* "Registration" must fit the left column, beside the timer card */
.h2 { font-size: clamp(40px, 7vw, 100px); line-height: .92; }
.tilt { display: block; transform: rotate(-5deg); transform-origin: left center; }
.h2.ascii-h { position: relative; }
/* Bigger than the other section headings: its letters are drawn in dots and symbols, and at the usual size each one was a speck. By id rather
   than by .ascii-h, so the size is right before the script adds that class and nothing jumps. Phones: see the max-width 700px rule. */
#h2 { font-size: clamp(56px, 10.5vw, 150px); }
.h2.ascii-h, .h2.ascii-h * { color: transparent; } /* the letters are drawn by the ASCII wake (web/ASCIIWake.tsx); the real text stays for screen readers */
/* ══ ASCII wake ════════════════════════════════════════════
   Bencho's, copied as written with the heading's letters as its shape. Bencho's .asc block is the heading here, so its rules go on
   the heading; one differs: touch-action is pan-y, not none, because the heading is most of a phone screen and a vertical swipe must
   still scroll the page (a sideways drag or a tap paints the wake). The canvas takes Bencho's ink, var(--fill-on, var(--ink)): this
   site has no --fill-on, and --ink is set on the wake's own root to the site's --black, so nothing leaks out. The drawing reaches 16 px
   past the heading (web/ASCIIWake.tsx sets .asc-box's offset) so a glyph leaning toward the hand at the edge is not cut. */
.h2.ascii-h {
  cursor: crosshair;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;}
.asc { --ink: var(--black); position: absolute; left: 0; top: 0; pointer-events: none; }
.asc-box { position: absolute; }
.h2.ascii-h .asc-canvas { display: block; color: var(--fill-on, var(--ink)); } /* past .h2.ascii-h *'s transparent */
.asc-pin { position: absolute; width: 0; height: 0; }
.red-t { color: var(--red); } .amber-t { color: var(--amber); }

/* top strip + nav */
.strip { display: flex; justify-content: space-between; gap: 16px; padding: 8px 32px; border-bottom: 1px solid var(--hl); font: 400 11px/1.4 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); background: var(--black); }
.strip b { color: var(--amber); font-weight: 400; }
.nav { display: flex; align-items: center; --gap: 24px; gap: var(--gap); padding: 14px 32px; background: var(--black); border-bottom: 2px solid var(--red); position: relative; z-index: 5; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo b { display: grid; place-items: center; width: 34px; height: 34px; background: var(--red); font: 400 16px/1 var(--display); transform: rotate(-5deg); }
.logo span { font: 400 20px/1 var(--display); letter-spacing: -.02em; text-transform: uppercase; }
.links { display: flex; gap: 22px; margin-left: 18px; }
.links a { font: 500 12px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: rgba(242, 240, 232, .8); }
@media (hover: hover) and (pointer: fine) { .links a:hover { color: var(--amber); } }
.nav .grow { flex: 1; }
.build { font: 400 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(242, 240, 232, .7); display: inline-flex; align-items: center; gap: 8px; }
.build::before { content: ''; width: 8px; height: 8px; background: var(--bad); }
.build.idle::before { background: rgba(242, 240, 232, .45); }
.build.on::before { background: var(--amber); animation: blink 1.2s steps(2) infinite; }

/* buttons */
.btn, button { font: 400 14px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; min-height: 44px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; color: var(--bone); background: transparent; border: 2px solid var(--dim); transition: background-color .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s; }
@media (hover: hover) and (pointer: fine) { .btn:hover, button:hover:not(:disabled) { background: var(--bone); color: var(--black); border-color: var(--bone); } }
.btn:active, button:active:not(:disabled) { transform: translate(2px, 2px); }
.btn.red, button.primary { background: var(--red); border-color: var(--red); color: var(--bone); }
@media (hover: hover) and (pointer: fine) { .btn.red:hover, button.primary:hover:not(:disabled) { background: var(--amber); border-color: var(--amber); color: var(--black); } }
.btn.black { background: var(--black); border-color: var(--black); color: var(--bone); }
@media (hover: hover) and (pointer: fine) { .btn.black:hover { background: var(--red); border-color: var(--red); } }
button:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }
button.danger { color: var(--bad); border-color: rgba(255, 107, 94, .5); }
@media (hover: hover) and (pointer: fine) { button.danger:hover:not(:disabled) { background: var(--bad); color: var(--black); border-color: var(--bad); } }
.light .btn:not(.red):not(.black) { color: var(--black); border-color: var(--black); }
@media (hover: hover) and (pointer: fine) { .light .btn:not(.red):not(.black):hover { background: var(--black); color: var(--bone); } }

/* hero: video, red bloom, speed lines, noise */
.hero { position: relative; overflow: hidden; background: var(--black); display: flex; flex-direction: column; isolation: isolate; }
.bgvideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; mix-blend-mode: screen; z-index: -4; }
.bloom { position: absolute; inset: 0; z-index: -3; background: radial-gradient(60% 55% at 22% 45%, rgba(198, 32, 32, .5), transparent 70%); }
.speed { position: absolute; inset: 0; z-index: -2; pointer-events: none; /* a few solid red pinstripes, leaning 5 degrees, standing still like the reference */
  background: repeating-linear-gradient(85deg, transparent 0, transparent calc(11vw - 2px), rgba(198, 32, 32, .85) calc(11vw - 2px), rgba(198, 32, 32, .85) 11vw); }
.noise { position: absolute; inset: 0; z-index: -1; opacity: .08; mix-blend-mode: overlay; pointer-events: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>"); }
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 35%; z-index: -1; background: linear-gradient(to bottom, transparent, var(--black)); pointer-events: none; }
.hero-grid { flex: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.hero-left { display: grid; gap: 22px; align-content: center; min-width: 0; }
.hero-right { display: grid; gap: 22px; align-content: center; min-width: 0; }
.lead-p { max-width: 520px; font-size: 15px; color: rgba(242, 240, 232, .8); }
.acts { display: flex; gap: 12px; flex-wrap: wrap; }

/* headline wipe, one line at a time */
.wipe { display: block; animation: wipe .75s cubic-bezier(.7, 0, .2, 1) both; animation-delay: calc(var(--i, 0) * .15s); }

/* stat tiles, HUD timer card */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { border: 1px solid rgba(242, 240, 232, .2); padding: 14px 16px; background: rgba(12, 12, 10, .55); min-width: 0; }
.stat .v { font: 400 clamp(22px, 2.6vw, 34px)/1.1 var(--mono); color: var(--bone); overflow-wrap: anywhere; }
.stat .v.amber { color: var(--amber); }
.stat .c { font: 400 11px/1.4 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-top: 4px; }
.stat.red { background: var(--red); border-color: var(--red); } .stat.red .c { color: var(--bone); }
.hud { position: relative; border: 2px solid var(--amber); background: rgba(12, 12, 10, .78); padding: 30px 26px 22px; display: grid; gap: 10px; }
.hud .tab { position: absolute; top: -13px; left: 18px; background: var(--amber); color: var(--black); font: 400 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; padding: 6px 10px; }
.hud .time { font: 500 clamp(min(44px, 12vw), 5.2vw, 72px)/1 var(--mono); color: var(--amber); text-shadow: 0 0 24px var(--glow); letter-spacing: -.02em; }
.hud .time.soon { font-size: clamp(22px, 2.6vw, 34px); line-height: 1.15; letter-spacing: 0; text-transform: uppercase; }
.hud .time.stamp { animation: stamp .35s cubic-bezier(.2, 1.4, .4, 1) both; transform-origin: left center; }
.hud .time.low { color: var(--red); text-shadow: 0 0 24px var(--speed-red); animation: flicker 1s steps(1) infinite; }
.hud .meta { font: 400 11px/1.4 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hud .bid { font: 400 clamp(46px, 6vw, 96px)/.9 var(--display); letter-spacing: -.02em; color: var(--bone); transform-origin: left bottom; }
.hud.flip .bid { animation: bid-flip .22s cubic-bezier(.2, 1.4, .4, 1) both; } /* a new bid flips up like a scoreboard, and its team wipes in */
.hud.flip .who { animation: wipe .2s var(--ease-out) both; }
@keyframes bid-flip { from { opacity: 0; transform: perspective(600px) rotateX(-75deg); } }
/* Going once, going twice: a stamp on the corner of the timer card, laid over it so nothing moves, big enough for the back of the hall */
.hudbox { position: relative; }
.going { position: absolute; top: -18px; right: -6px; padding: 8px 12px; background: var(--red); color: var(--bone); border: 2px solid var(--black); font: 400 clamp(18px, 2.2vw, 32px)/1 var(--display); text-transform: uppercase; letter-spacing: -.01em; rotate: 3deg; pointer-events: none; }
.going.hit { animation: stamp .35s cubic-bezier(.2, 1.4, .4, 1) both; }
.hud .who { font: 400 clamp(18px, 2vw, 28px)/1.1 var(--display); text-transform: uppercase; color: var(--bone); }
.hud .who.none { border-color: var(--line); color: rgba(242, 240, 232, .55); }
.hud[role=link] { cursor: pointer; }
.hud[role=link] .time { pointer-events: none; user-select: none; } /* its text is replaced every frame, which swallowed clicks that started on a digit */
.hud[role=link]:hover, .hud[role=link]:focus-visible { background: rgba(232, 163, 61, .14); outline: none; }
.hud[role=link]:hover .go, .hud[role=link]:focus-visible .go { text-decoration: underline; }
#auctions { position: relative; min-height: calc(100vh / var(--z)); min-height: calc(100dvh / var(--z)); } /* the clock's jump shows only this section, never the dark ones around it */
/* Hero stats: a number on the left, its graph filling the rest of the row */
/* The countdown and the two graph rows are three equal rows; the graph rows have no card behind them */
.hero-right:has(> .stats:not([hidden]) .stat.wide) { grid-auto-rows: 1fr; }
.stats:has(.stat.wide) { display: contents; }
.stat.wide { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: center; border: 0; background: none; padding: 0 26px; }
.spark svg { display: block; width: 100%; height: 56px; overflow: visible; }
.spark .guide { stroke: rgba(242, 240, 232, .12); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; fill: none; }
.spark polyline { fill: none; stroke: var(--amber); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
/* Frappe Charts heatmap: only the squares (labels, legend and tooltip hidden), scaled to the box */
.heat svg { display: block; width: 100%; height: auto; }
/* Home page only: when scrolling stops near a section's top edge, settle on it. "proximity" never traps you inside a tall section. */
html.snap { scroll-snap-type: y proximity; }
html.snap header.nav, html.snap main > section:not(.hero):not(#how) { scroll-snap-align: start; } /* the header, not the hero, so the top of the page keeps its header */
.card-slot.flash :is(.card, .tlt-card > .card) { animation: flash 1.2s ease-out; }
@keyframes flash { 0%, 40% { outline: 3px solid var(--amber); outline-offset: 4px; } 100% { outline: 3px solid transparent; outline-offset: 4px; } }
.hud a.go { font: 400 12px/1 var(--mono); letter-spacing: .15em; text-transform: uppercase; color: var(--amber); }

/* the lot */
.lot { display: flex; gap: 28px; align-items: center; min-width: 0; }
.lot .photo { height: clamp(240px, calc(60vh / var(--z)), 600px); width: auto; max-width: 52%; aspect-ratio: 3 / 4; object-fit: contain; } /* the whole person, never cropped */
.photo { width: clamp(120px, 14vw, 230px); aspect-ratio: 1; object-fit: cover; border: 2px solid var(--bone); box-shadow: var(--hs-red); background: var(--black); display: grid; place-items: center; font: 400 clamp(36px, 5vw, 76px)/1 var(--display); transform: rotate(3deg); flex: none; }
.pname { font: 400 clamp(40px, 6.4vw, 100px)/.88 var(--display); text-transform: uppercase; letter-spacing: -.02em; transform: rotate(-5deg); transform-origin: left center; flex: 1; min-width: 0; }
.pname span { display: block; width: max-content; } /* fitName() shrinks the type until the longest word fits */
.pname > span:last-child { color: var(--red); }

/* marquee */
.marquee { overflow: hidden; background: var(--red); border-block: 2px solid var(--black); cursor: pointer; }
.marquee.paused .track { animation-play-state: paused; } /* a tap stops the ticker, another starts it (util.js) */
@media (hover: hover) and (pointer: fine) { .marquee:hover .track { animation-play-state: paused; } }
.track { display: flex; width: max-content; animation: marq 18s linear infinite paused; }
.fonts-ready .track { animation-play-state: running; }
.hero.still .track { animation-play-state: paused; } /* off screen: home.js stops the loop */ /* util.js sets this once the ticker's font is in, so the text does not change width mid-scroll */
.track span { font: 400 clamp(15px, 1.6vw, 22px)/1 var(--display); text-transform: uppercase; letter-spacing: .01em; padding: 12px 26px; white-space: nowrap; color: var(--bone); }
.track i { font-style: normal; color: var(--black); }

/* sections */
.section { padding: 112px 0; }
.light { background: var(--bone); color: var(--black); }
.light .k { color: var(--red); }
.light .muted { color: var(--dim-ink); }
.sec-head { display: grid; gap: 14px; margin-bottom: 56px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; }
.card { background: var(--card); color: var(--black); border: 2px solid var(--black); padding: 22px; display: flex; flex-direction: column; gap: 12px; } /* no shadow on any card; the auction cards sink under the pointer instead (web/TiltCard.tsx) */
.card .acts { margin-top: auto; padding-top: 8px; }
/* The red shadow lies on the page under the card: the card tilts and lifts on hover, the shadow stays a flat rectangle and shows a little more */
.card-slot { position: relative; display: flex; }
.card-slot:has(> [hidden]) { display: none; }
.card-slot > * { position: relative; flex: 1; transition: background-color .15s; }
.card h3 { font: 400 clamp(26px, 2.6vw, 36px)/.95 var(--display); text-transform: uppercase; letter-spacing: -.02em; overflow-wrap: anywhere; }
/* auction card spec strip: hairline grid, labels in mono, values in the display face */
.card .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: var(--hd); border-block: 1px solid var(--hd); }
.card .facts > div { background: var(--card); padding: 8px 10px 8px 0; min-width: 0; }
.card .facts > div:nth-child(3) { padding-left: 10px; } /* Where sits in the right column, after the full-width When and Entry */
.card .facts .wide { grid-column: 1 / -1; }
.card .facts dt { font: 400 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim-ink); }
.card .facts dd { margin: 2px 0 0; font: 400 17px/1.15 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.card .cats { font: 400 12px/1.5 var(--mono); color: rgba(12, 12, 10, .7); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .nums { font: 400 12px/1.5 var(--mono); color: rgba(12, 12, 10, .7); }
.live-badge { display: inline-block; background: var(--red); color: var(--bone); font: 400 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; padding: 6px 8px; justify-self: start; animation: blink 1.2s steps(2) infinite; }

/* dark sections and the closing red band */
.dark { background: var(--black); color: var(--bone); }
.cta { background: var(--red); color: var(--bone); padding: 64px 0; border-block: 2px solid var(--black); }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta .btn { background: var(--black); border-color: var(--black); }
.cta .org { display: grid; gap: 8px; margin-top: 40px; padding-top: 28px; border-top: 2px solid var(--black); }
.cta .org h3 { font: 400 clamp(22px, 2.4vw, 30px)/1.05 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.cta .org p { max-width: 62ch; font-size: 16px; }
.cta .org a { color: inherit; }
.cta .org strong { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .cta .btn:hover { background: var(--amber); color: var(--black); border-color: var(--amber); } }
.foot { padding: 40px 0 56px; border-top: 1px solid var(--hl); font: 400 11px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(242, 240, 232, .55); }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* purse bars (the benchmark-bar look) and squads */
.bars { display: grid; gap: 12px; }
.bars h2 { font: 400 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--amber); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; }
.row .nm { font: 400 clamp(15px, 1.4vw, 19px)/1 var(--display); text-transform: uppercase; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .val { font: 400 13px/1 var(--mono); color: var(--amber); }
.row .track2 { grid-column: 1 / -1; height: 12px; background: rgba(242, 240, 232, .14); }
.row .track2 i { display: block; height: 100%; background: var(--bone); transform-origin: left; transform: scaleX(0); transition: transform .3s var(--ease-out); }
.row.lead .track2 i { background: var(--red); }
.row.lead .nm::after { content: ' ▲'; color: var(--red); }
.row .sub { grid-column: 1 / -1; font: 400 11px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.squads { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.squad { background: var(--card); color: var(--black); border: 2px solid var(--black); padding: 18px; display: grid; gap: 8px; align-content: start; }
.squad.lead { outline: 3px solid var(--red); outline-offset: 3px; }
.squad header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.squad h3 { font: 400 24px/1 var(--display); text-transform: uppercase; letter-spacing: -.02em; }
.squad .left { font: 500 14px/1 var(--mono); color: var(--red); }
.squad .meta { font: 400 11px/1.4 var(--mono); letter-spacing: .15em; text-transform: uppercase; color: var(--dim-ink); }
.squad ul { list-style: none; display: grid; gap: 2px; font-size: 14px; }
.squad li { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--hd); padding-top: 4px; }
.squad li span { font-family: var(--mono); font-size: 13px; }
.sales { list-style: none; display: grid; gap: 4px; }
.sales li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 7.5em; gap: 12px; align-items: baseline; border-top: 1px solid var(--hl); padding: 8px 0; } /* three fixed columns: the middle one never drifts with the name's length */
.sales li span { font-family: var(--mono); color: var(--amber); text-align: right; }
.sales li b, .sales li em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sales li em { font-style: normal; }
.chiprow { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 400 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line); padding: 7px 10px; }

.soldbanner { position: fixed; inset: 0; z-index: 100; display: grid; place-content: safe center; text-align: center; gap: 12px; background: var(--red); padding: 24px; overflow: auto; overflow-wrap: anywhere; animation: stamp .35s cubic-bezier(.2, 1.4, .4, 1) both; cursor: pointer; }
.soldbanner.out { animation: fade-out .4s ease both; } /* an animation, not a transition: stamp's fill holds opacity, and a transition cannot override it */
.soldbanner.unsold { background: var(--black); }
.soldbanner.unsold b { color: var(--bad, var(--bone)); }
.soldbanner.unsold span { color: var(--bone); }
.soldbanner { --sold: clamp(56px, min(16vw, calc(20vh / var(--z))), 260px); }
.soldbanner b { justify-self: center; font: 400 var(--sold)/.9 var(--display); text-transform: uppercase; color: var(--bone); transform: rotate(-5deg); letter-spacing: -.02em; }
/* The hammer falls on a sale: the gavel from How it runs swings down, Sold! lands as it hits at .22s (app.js plays the knock then), and the words take one knock. Unsold gets none of this. */
.soldbanner .hammer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; } /* scoped: How it runs has its own .hammer word */
.soldbanner .gavel { right: auto; left: calc(50% + var(--sold) * 1.1); top: calc(50% - var(--sold) * 2.6); width: calc(var(--sold) * 2.4); animation: strike .32s cubic-bezier(.5, 0, .75, 0) both; }
.soldbanner:not(.unsold) b { animation: sold-slam .13s cubic-bezier(.5, 0, .75, 0) .09s both; }
body:not([data-admin]) .soldbanner:not(.unsold) b { animation: sold-slam .13s cubic-bezier(.5, 0, .75, 0) .09s both, lot-shake .22s linear .22s; } /* the control room's own buttons wait behind this: no shake there */
body:not([data-admin]) .soldbanner:not(.unsold) span { animation: lot-shake .22s linear .22s; }
@keyframes sold-slam { from { opacity: 0; scale: 1.7; } } /* no bigger: the word is at most 54% of the screen wide, and past the edge it would flash a scrollbar */
.soldbanner span { font: 400 clamp(22px, min(3.6vw, calc(6vh / var(--z))), 60px)/1.05 var(--display); text-transform: uppercase; color: var(--black); }
.soldbanner .amount { font: 500 clamp(30px, min(5vw, calc(8vh / var(--z))), 80px)/1 var(--mono); color: var(--bone); }

/* forms */
label { display: grid; gap: 6px; font: 400 12px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(242, 240, 232, .7); }
input, select, textarea { font: 400 16px/1.3 var(--body); letter-spacing: 0; text-transform: none; min-height: 46px; width: 100%; padding: 10px 12px; color: var(--bone); background: var(--black); border: 1px solid var(--line); }
input:focus, select:focus, textarea:focus { border-color: var(--bone); outline: none; box-shadow: 0 0 0 1px var(--bone); }
textarea { font-family: var(--mono); font-size: 13px; }
input[type=file] { padding: 8px; }
.formcard { background: var(--card); color: var(--black); border: 2px solid var(--black); padding: 28px; display: grid; gap: 16px; }
.formcard label { color: rgba(12, 12, 10, .75); }
.formcard input, .formcard select { background: #fff; color: var(--black); border: 2px solid var(--black); }
.formcard input:focus, .formcard select:focus { border-color: var(--black); outline: none; box-shadow: 0 0 0 1px var(--black); }
.formcard h2 { font: 400 28px/1 var(--display); text-transform: uppercase; letter-spacing: -.02em; }
.field-err { font: 400 12px/1.4 var(--mono); color: var(--red); letter-spacing: 0; text-transform: none; }
.dark .field-err, .hero .field-err { color: var(--bad); }
[aria-invalid=true] { border-color: var(--red) !important; }
.avatar { position: relative; justify-self: center; width: 132px; height: 132px; border: 2px dashed var(--black); overflow: hidden; display: grid; place-items: center; text-align: center; font: 400 11px/1.4 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(12, 12, 10, .7); cursor: pointer; background: #fff; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar input { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; }
.avatar:focus-within { outline: 3px solid var(--red); outline-offset: 3px; }
.banner { padding: 12px 14px; border: 2px solid var(--black); font: 400 13px/1.5 var(--mono); }
.banner.bad { border-color: var(--red); color: var(--red); }
.auth-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 520px)); justify-content: center; gap: 28px; margin-bottom: 72px; } /* the create and admin cards keep a fixed width, centred, however wide the screen is */

/* admin */
.control { display: grid; gap: 24px; padding: 28px 32px 160px; max-width: 1600px; margin: 0 auto; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1000px) { .control { grid-template-columns: 1fr; padding: 20px 16px 160px; } }
.stack { display: grid; gap: 24px; }
.panel { background: rgba(242, 240, 232, .04); border: 1px solid var(--hl); padding: 20px; display: grid; gap: 14px; align-content: start; }
.panel h2 { font: 400 22px/1.1 var(--display); text-transform: uppercase; letter-spacing: -.02em; }
.hero.compact .hero-grid { padding-top: 32px; padding-bottom: 32px; }
.bidhead { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.bidhead label { width: 220px; }
.bidbtns { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tile { display: grid; gap: 4px; justify-items: start; justify-content: start; text-align: left; padding: 14px; min-height: 96px; min-width: 0; overflow: hidden; align-content: start; background: rgba(12, 12, 10, .6); border: 1px solid var(--line); text-transform: none; letter-spacing: 0; }
.tile b { font: 400 18px/1.1 var(--display); text-transform: uppercase; }
.tile .amt { font: 500 28px/1 var(--mono); color: var(--amber); }
.tile .why { font: 400 12px/1.4 var(--mono); color: var(--dim); }
.tile small { font: 400 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(242, 240, 232, .55); }
@media (hover: hover) and (pointer: fine) { .tile:hover:not(:disabled) { background: var(--red); border-color: var(--red); color: var(--bone); } .tile:hover:not(:disabled) .amt { color: var(--bone); } }
.tile.lead { border-color: var(--red); box-shadow: inset 5px 0 0 var(--red); }
.tile:disabled { background: rgba(12, 12, 10, .5); }
.tile:disabled .amt { color: rgba(242, 240, 232, .45); }
.hint { color: var(--dim); padding: 18px; border: 1px dashed var(--line); text-align: center; font: 400 12px/1.5 var(--mono); }
.light .hint { color: var(--dim-ink); border-color: var(--hd); }
.actions { position: fixed; inset: auto 0 0 0; z-index: 6; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--black); border-top: 2px solid var(--red); }
.actions button { min-height: 54px; }
.actions .sold { min-width: min(100%, 300px); font-size: 17px; flex: 2 1 260px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--hl); overflow-x: auto; }
.tabs button { border: 0; background: none; color: var(--dim); font: 400 12px/1 var(--mono); letter-spacing: .15em; min-height: 46px; }
@media (hover: hover) and (pointer: fine) { .tabs button:hover { background: none; color: var(--bone); } }
.tabs button[aria-selected=true] { color: var(--bone); box-shadow: inset 0 -3px 0 var(--red); }
.pill { background: var(--red); color: var(--bone); padding: 3px 7px; font: 400 11px/1 var(--mono); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { min-height: 36px; padding: 0 12px; font: 400 11px/1 var(--mono); letter-spacing: .1em; }
.seg button[aria-pressed=true] { background: var(--bone); color: var(--black); border-color: var(--bone); }
.plist { display: grid; gap: 6px; max-height: calc(52vh / var(--z)); overflow: auto; }
.plist button { justify-content: space-between; text-align: left; min-height: 54px; text-transform: none; letter-spacing: 0; font: 600 14px/1.3 var(--body); border-color: var(--hl); }
.plist .st { font: 400 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.plist .st.sold { color: var(--good); } .plist .st.unsold { color: var(--bad); }
/* a waiting sign-up is a trading card: portrait on the left, the player's details and the two things the organiser can set on the right */
.reggrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.reg { display: grid; grid-template-columns: minmax(150px, 38%) minmax(0, 1fr); gap: 20px; padding: 10px; background: rgba(12, 12, 10, .55); border: 1px solid var(--hl); }
.reg .art { position: relative; min-height: 260px; } /* the photo fills the whole left column, as tall as the details */
.reg .photo { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; font-size: 72px; transform: none; box-shadow: none; border: 2px solid var(--black); }
.reg .tag { position: absolute; left: 0; top: 10px; max-width: 90%; padding: 5px 10px; background: var(--amber); color: var(--black); font: 400 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.reg .pc-body { display: flex; flex-direction: column; gap: 12px; padding: 6px 6px 6px 0; min-width: 0; }
.reg .pc-name { font: 400 clamp(22px, 2.4vw, 32px)/1.05 var(--display); text-transform: uppercase; letter-spacing: -.01em; overflow-wrap: anywhere; }
.reg .pc-phone { font: 400 15px/1.3 var(--mono); letter-spacing: .06em; color: rgba(242, 240, 232, .75); }
.reg .fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: auto; }
.reg .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reg .acts button { padding: 0 8px; }
.row-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--hl); }
.group-title { font: 400 18px/1.2 var(--display); text-transform: uppercase; letter-spacing: -.01em; margin-top: 6px; }
details summary { cursor: pointer; font: 400 12px/1 var(--mono); letter-spacing: .15em; text-transform: uppercase; min-height: 32px; display: flex; align-items: center; color: var(--amber); }
dialog { background: var(--black); color: var(--bone); border: 2px solid var(--bone); box-shadow: var(--hs-red); padding: 24px; width: min(440px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(0, 0, 0, .75); }
dialog[open], dialog[open]::backdrop { transition: opacity .2s var(--ease-out), scale .2s var(--ease-out); }
@starting-style { dialog[open] { opacity: 0; scale: .96; } dialog[open]::backdrop { opacity: 0; } }
dialog form { display: grid; gap: 16px; }
dialog h2 { font: 400 26px/1 var(--display); text-transform: uppercase; letter-spacing: -.02em; }
dialog .row { display: flex; flex-direction: row-reverse; gap: 10px; justify-content: flex-start; align-items: stretch; } /* not baseline: a two-line label would push its button off level */
#toast { position: fixed; left: 50%; bottom: 112px; transform: translateX(-50%); z-index: 20; padding: 12px 18px; background: var(--red); color: var(--bone); font: 400 12px/1.4 var(--mono); letter-spacing: .05em; border: 2px solid var(--black); max-width: calc(100vw - 32px); transition: opacity .2s var(--ease-out), translate .2s var(--ease-out); }
@starting-style { #toast { opacity: 0; translate: 0 8px; } }
#toast.ok { background: var(--amber); color: var(--black); }
body[data-role=verifier] .lefty, body[data-role=verifier] .hero, body[data-role=verifier] #bidPanel, body[data-role=verifier] .actions,
body[data-role=verifier] [data-tab=pool], body[data-role=verifier] [data-tab=teams],
body[data-role=auctioneer] [data-tab=regs], body[data-role=auctioneer] #dlRegistered, body[data-role=auctioneer] #addTeam, body[data-role=auctioneer] #endAuction,
body[data-role=verifier] #dashLink, body[data-role=auctioneer] #dashLink { display: none; }
body[data-role=owner] #listLink { display: none; } /* an owner's "/" is the dashboard, which Dashboard already links to */
body:not([data-role=owner]) .owner-only { display: none; }
.squads .squad.linkable { cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .squads .squad.linkable:hover { outline: 2px solid var(--red); outline-offset: 2px; } }
.squad .linkline { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; font: 400 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim-ink); }
.squad .linkline button { min-height: 28px; padding: 0 10px; font-size: 11px; }
body[data-role=verifier] .control { grid-template-columns: minmax(0, 1fr); padding-bottom: 32px; }
/* a team link: the lot, the timer and one bid button for its own team, nothing else */
body[data-role=team] .actions, body[data-role=team] .bidhead label, body[data-role=team] [data-tab=regs], body[data-role=team] #tab-regs,
body[data-role=team] #addTeam, body[data-role=team] #requeue, body[data-role=team] .reports,
body[data-role=team] #dashLink, body[data-role=team] #listLink { display: none; }
body[data-role=team] .control { grid-template-columns: minmax(0, 1fr); padding-bottom: 32px; }
body[data-role=team] .bidbtns { grid-template-columns: minmax(0, 1fr); }

/* stats: for every role, and a captain's own numbers above the bid button */
.teamstrip { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-bottom: 12px; }
.teamstrip div { display: grid; gap: 2px; padding: 8px 10px; background: rgba(12, 12, 10, .6); border: 1px solid var(--hl); }
.teamstrip span { font: 400 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.teamstrip b { font: 500 18px/1.2 var(--mono); color: var(--amber); }
.teamstrip .risk { grid-column: 1 / -1; margin: 0; }
.risk { color: var(--amber); font: 600 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.sumstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.tblwrap { overflow-x: auto; margin-bottom: 14px; }
.stbl { width: 100%; border-collapse: collapse; font: 400 13px/1.4 var(--mono); }
.stbl th, .stbl td { padding: 7px 8px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--hl); }
.stbl th:first-child, .stbl td:first-child { text-align: left; }
.stbl thead th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.stbl tr.me { background: rgba(255, 255, 255, .07); }

.prow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.prow .pinfo { min-width: 70px; justify-content: center; font: 400 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.pcard img { float: right; margin: 0 0 8px 12px; object-fit: cover; border: 1px solid var(--hl); }
.pcard h3 { margin: 12px 0 6px; }
.pc-hist { font: 400 12px/1.5 var(--mono); letter-spacing: .04em; margin: 4px 0 8px; }
.pc-hist button { min-height: 32px; padding: 0 10px; font-size: 11px; margin-left: 6px; }
.reg .pc-ref { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pc-ref button { min-height: 44px; padding: 0 12px; font-size: 11px; }

/* the phone remote: big targets, one lot, one confirm button */
body[data-remote] .lefty, body[data-remote] .actions { display: none; }
body[data-remote] .control { grid-template-columns: minmax(0, 1fr); padding-bottom: 32px; }
.remote .rlot { display: grid; gap: 2px; margin-bottom: 10px; height: clamp(52px, 12vw, 64px); align-content: start; overflow: hidden; } /* a fixed-height header: nothing below it ever moves */
.remote .rlot b { font: 400 clamp(26px, 8vw, 40px)/1 var(--display); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.remote .rlot span, .remote .rnow span { font: 400 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.remote .rnow { display: grid; grid-template-columns: 1.2fr 1.2fr .8fr; grid-auto-rows: 76px; gap: 8px; margin-bottom: 12px; }
.remote .rnow div { display: grid; gap: 2px; align-content: space-between; min-width: 0; overflow: hidden; padding: 8px 10px; background: rgba(12, 12, 10, .6); border: 1px solid var(--hl); }
.remote .rnow b { font: 500 clamp(16px, 5vw, 22px)/1.2 var(--mono); color: var(--amber); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.remote .rtime.low { color: var(--red); }
.remote .rteams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 104px; gap: 10px; } /* every team button is the same size whatever its text says */
.remote .rt { display: grid; gap: 4px; justify-items: start; text-align: left; height: 100%; padding: 10px 12px; align-content: space-between; min-width: 0; overflow: hidden; }
.remote .rt b { font: 400 clamp(15px, 4.6vw, 20px)/1.1 var(--display); text-transform: uppercase; max-width: 100%; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.remote .rt span { font: 500 clamp(14px, 4.4vw, 20px)/1.15 var(--mono); color: var(--amber); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.remote .rt.lead span, .remote .rt:disabled span { font-size: 12px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.remote .rt:disabled span { color: var(--dim); }
.remote .rt.lead { border-color: var(--red); box-shadow: inset 5px 0 0 var(--red); }
.remote button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; } /* no double-tap zoom, so the first tap is the tap */
.remote .rt:active:not(:disabled) { background: var(--red); border-color: var(--red); }
.remote .rconfirm { width: 100%; min-height: 76px; margin-top: 12px; font-size: 20px; }
/* long team names wrap or are cut to two lines instead of running out of their box, everywhere team names sit in a box */
.tile b, .squad h3, .teamstrip b, .stbl th:first-child { overflow-wrap: anywhere; min-width: 0; }
.stbl th:first-child { white-space: normal; max-width: 40vw; }
.remote .rrow { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.remote .rrow button { min-height: 56px; }

/* phone layout for owners and auctioneers: its own, not the laptop squeezed in. Slim top bar with a menu, the lot in one line,
   tabs along the bottom, one short row of Sold / Unsold / Start above them. Everything else is in the menu or on the Remote tab. */
.phonemenu, .lotstrip { display: none; }
@media (max-width: 700px) {
  body[data-admin]:is([data-role=owner], [data-role=auctioneer]) { --tabbar: 60px; }
  body[data-admin]:is([data-role=owner], [data-role=auctioneer]) .strip span:nth-child(3) { display: none; }
  body[data-admin]:is([data-role=owner], [data-role=auctioneer]) .strip { padding: 6px 16px; }
  body[data-admin]:is([data-role=owner], [data-role=auctioneer]) header.nav > .btn { display: none; }
  body[data-admin]:is([data-role=owner], [data-role=auctioneer]) .phonemenu { display: block; position: relative; }
  .phonemenu summary { list-style: none; cursor: pointer; min-width: 52px; min-height: 48px; display: grid; place-items: center; font: 400 26px/1 var(--mono); color: var(--bone); border: 2px solid var(--hl); }
  .phonemenu summary::-webkit-details-marker { display: none; }
  .phonemenu .menubox { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; display: grid; gap: 6px; min-width: 230px; padding: 8px; background: var(--black); border: 1px solid var(--hl); box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
  .phonemenu .menubox .btn { min-height: 52px; justify-content: flex-start; text-align: left; font-size: 14px; }
  body[data-admin]:is([data-role=owner], [data-role=auctioneer]) .lefty { display: none; }
  body[data-admin]:is([data-role=owner], [data-role=auctioneer]) .lotstrip { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; order: -1; padding: 12px; background: rgba(12, 12, 10, .6); border: 1px solid var(--hl); }
  body[data-remote] .lotstrip, body[data-setup] .lotstrip { display: none !important; }
  .lotstrip b { font: 400 clamp(20px, 6vw, 26px)/1.1 var(--display); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lotstrip span { font: 400 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lotstrip .t { font: 500 22px/1 var(--mono); color: var(--amber); text-align: right; letter-spacing: 0; }
  body[data-admin]:is([data-role=owner], [data-role=auctioneer]) .control { padding: 12px 12px calc(var(--tabbar) + 104px + env(safe-area-inset-bottom)); gap: 12px; }
  body[data-admin]:is([data-role=owner], [data-role=auctioneer]) .control > .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; margin: 0; background: var(--black); border-top: 1px solid var(--hl); border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
  body[data-admin]:is([data-role=owner], [data-role=auctioneer]) .control > .tabs { overflow-y: hidden; overscroll-behavior: contain; touch-action: pan-x; } /* sideways swipes only: the bar can no longer be dragged up and down */
  body[data-admin]:is([data-role=owner], [data-role=auctioneer]) .actions { touch-action: manipulation; overscroll-behavior: contain; }
  body[data-admin]:is([data-role=owner], [data-role=auctioneer]) .tabs button { flex: 1 0 auto; min-width: 84px; min-height: var(--tabbar); font-size: 12px; }
  body[data-admin]:is([data-role=owner], [data-role=auctioneer]) #t-remote { order: -1; }
  body[data-admin]:is([data-role=owner], [data-role=auctioneer]) .actions { bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; padding: 8px 12px; }
  body[data-admin]:is([data-role=owner], [data-role=auctioneer]) .actions :is(#endAuction, #undo, #resetTimer) { display: none; }
  body[data-admin]:is([data-role=owner], [data-role=auctioneer]) .actions .sold { grid-column: auto; min-width: 0; font-size: 15px; }
  body[data-admin]:is([data-role=owner], [data-role=auctioneer]) .actions button { min-height: 52px; font-size: 14px; }
  body[data-setup] .actions, body[data-remote] .actions { display: none !important; } /* the remote has its own Sold and Unsold */
  body[data-remote]:is([data-role=owner], [data-role=auctioneer]) .control { padding-bottom: calc(var(--tabbar) + 10px + env(safe-area-inset-bottom)); }
  .remote #remoteBox { display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
  .remote .rlot, .remote .rnow, .remote .rrow { flex: none; margin: 0; }
  .remote .rteams { flex: 1 1 0; min-height: 0; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); grid-template-rows: repeat(var(--rows, 3), minmax(0, 1fr)); grid-auto-rows: auto; gap: 8px; container-type: size; }
  .remote .rt { padding: 4px 8px; gap: 2px; min-height: 0; }
  .remote .rt b { font-size: clamp(11px, calc(100cqh / var(--rows, 3) * .2), 20px); }
  .remote .rt span, .remote .rt.lead span, .remote .rt:disabled span { font-size: clamp(10px, calc(100cqh / var(--rows, 3) * .2), 18px); -webkit-line-clamp: 1; line-clamp: 1; }
  .remote .rrow button { min-height: 52px; }
}

/* motion */
@keyframes marq { to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes flicker { 0%, 100% { opacity: 1; } 8% { opacity: .6; } 10% { opacity: 1; } 40% { opacity: .8; } 42% { opacity: 1; } 70% { opacity: .7; } 72% { opacity: 1; } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes stamp { from { opacity: 0; transform: scale(1.25) rotate(-3deg); } }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 36px; }
  /* the pay step fits one phone screen: no banner, and the header is one row */
  .nav:has(~ main #box .paybox) > .btn { display: none; }
  .nav:has(~ main #box .paybox) .logo { flex-basis: auto; }
  .hero:has(#box .paybox) .hero-left { display: none; }
  .hero:has(#box .paybox) .hero-grid { align-items: start; }
  .nav:has(~ main #box .paybox) { padding-top: 6px; padding-bottom: 6px; }
  .links { display: none; }
}
@media (max-width: 760px) {
  .wrap, .strip, .nav { padding-left: 16px; padding-right: 16px; }
  .strip span:nth-child(2) { display: none; }
  .tilt, .pname { transform: rotate(-3deg); }
  .lot { flex-wrap: wrap; }
  .lot .photo { height: auto; width: min(62vw, 280px); max-width: none; }
  .lot .pname { flex-basis: 100%; }
  .h1 { font-size: 11.5vw; }
  .section { padding: 72px 0; }
  .cards { gap: 20px; }
  .nav { --gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  main, main > section, footer { overflow-x: clip; } /* nothing may widen the page past the screen on a phone */
  .nav .btn { min-height: 38px; padding: 0 14px; font-size: 12px; }
  /* phone header: the logo, then the buttons in neat rows that fill the width, never one stray button on its own row */
  .nav .grow { display: none; }
  .nav .btn, .nav > button:not(.gear) { flex: 1 1 auto; justify-content: center; text-align: center; }
  .nav .logo { flex: 0 0 auto; margin-right: auto; }
  .nav:has(.btn ~ .btn, .btn ~ button:not(.gear), button:not(.gear) ~ .btn) .logo { flex-basis: 100%; } /* two or more buttons: the logo gets a row of its own */
  .build { display: none; }
  .logo span { font-size: 17px; }
  .actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
  .actions #endAuction { grid-column: 1 / -1; }
  .actions .sold { grid-column: 1 / -1; min-width: 0; font-size: 16px; }
  .actions button { min-height: 48px; padding: 0 4px; font-size: 12px; line-height: 1.1; text-align: center; }
  .bidbtns { grid-template-columns: 1fr 1fr; }
  .bidhead { display: contents; } .bidhead h2 { order: 0; } #bidbtns { order: 1; } .bidhead label { order: 2; width: 100%; }
  .formcard { padding: 20px; }
  .reg { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; } .reg .acts { grid-template-columns: minmax(0, 1fr); } .reg .pc-name { font-size: 20px; }
}
@media (min-width: 1000px) and (min-height: 700px) {
  .hero.full { min-height: calc(calc(100dvh / var(--z)) - 74px); } /* the nav is 74px, so the ticker sits on the bottom edge and no white shows */
  body[data-live] .hero-right .bars { max-height: calc(46vh / var(--z)); overflow: auto; padding-right: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; } /* fades and colour changes stay; nothing moves */
  #toast, dialog[open], .wheel { translate: none !important; scale: none !important; }
  .row .track2 i, .btn, button, .gbtn { transition-property: opacity, color, background-color, border-color !important; }
  .bgvideo { display: none; }
  .reveal { opacity: 1; transform: none; }
}
@media print { .strip, .nav, .hero, .marquee, .actions, .cta, .foot, #toast, .dark { display: none !important; } body { background: #fff; color: #000; } .light { background: #fff; } .squad { box-shadow: none; } }
/* the control room keeps the hero short so the bid tiles stay on screen */
body[data-admin] .hero-left .stats, body[data-admin] .hud .meta { display: none; }
body[data-admin] .hero.compact .hero-grid { padding-top: 18px; padding-bottom: 18px; gap: 24px; }
body[data-admin] .hero-left { gap: 12px; }
body[data-admin] .lot { gap: 20px; }
body[data-admin] .hud { padding: 24px 22px 16px; gap: 6px; }
body[data-admin] .hud .bid { font-size: clamp(34px, 3.6vw, 56px); }
body[data-admin] .hud .time { font-size: clamp(30px, 3.2vw, 48px); }
body[data-admin] .hud .who { font-size: clamp(16px, 1.6vw, 22px); }

/* buttons inside the light cards need dark text */
.formcard button:not(.primary), .formcard .btn:not(.red):not(.black), .card button:not(.primary) { color: var(--black); border-color: var(--black); }
@media (hover: hover) and (pointer: fine) { .formcard button:not(.primary):hover, .formcard .btn:not(.red):not(.black):hover, .card button:not(.primary):hover { background: var(--black); color: var(--bone); } }
.formcard .row-line { border-top-color: var(--hd); }
.formcard .row-line .meta { font: 400 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim-ink); }
.formcard select { min-height: 46px; }
.card select { font-size: 13px; min-height: 38px; color: var(--black); background: #fff; border: 2px solid var(--black); }
.card label { color: var(--dim-ink); }
.formcard button.danger { color: var(--red); border-color: var(--red); }
@media (hover: hover) and (pointer: fine) { .formcard button.danger:hover:not(:disabled) { background: var(--red); color: var(--bone); } }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; background: #fff; color: #1f1f1f; border: 2px solid var(--black); font: 600 15px/1 var(--body); text-decoration: none; transition: transform .15s, background-color .15s; }
@media (hover: hover) and (pointer: fine) { .gbtn:hover { background: var(--bone); } }
.gbtn:active { transform: translate(2px, 2px); }

/* dropdowns: select.js draws these over the hidden real <select> */
.dd { position: relative; width: 100%; }
html select.dd-native { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; }
button.dd-btn { position: relative; display: block; justify-content: flex-start; box-shadow: none; transform: none; width: 100%; min-height: 46px; padding: 10px 40px 10px 12px; text-align: left; font: 400 16px/1.3 var(--body); letter-spacing: 0; text-transform: none; color: var(--bone); background: var(--black); border: 1px solid var(--line); cursor: pointer; }
button.dd-btn::after { content: ''; position: absolute; right: 15px; top: 50%; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); }
button.dd-btn[aria-expanded=true]::after { transform: translateY(-30%) rotate(-135deg); }
@media (hover: hover) and (pointer: fine) { button.dd-btn:hover:not(:disabled) { background: var(--black); color: var(--bone); border-color: var(--bone); } }
button.dd-btn:focus-visible, button.dd-btn[aria-expanded=true] { border-color: var(--bone); box-shadow: 0 0 0 1px var(--bone); outline: none; }
.dd-btn.placeholder { opacity: .6; }
.dd-btn:disabled { opacity: .45; cursor: not-allowed; }
.dd-native[aria-invalid] + .dd .dd-btn { border-color: var(--bad); }
.dd-list { position: fixed; z-index: 60; max-height: 260px; overflow: auto; margin: 0; padding: 0; list-style: none; background: var(--black); border: 2px solid var(--bone); box-shadow: var(--hs-red); }
.dd-list li { padding: 11px 12px; font: 400 13px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--bone); cursor: pointer; }
.dd-list li[aria-selected=true] { text-decoration: underline; text-underline-offset: 4px; }
.dd-list li[data-active] { background: var(--red); color: var(--bone); }
.dd-list li[aria-disabled=true] { display: none; }
.formcard button.dd-btn, .card button.dd-btn { color: var(--black); background: #fff; border: 2px solid var(--black); }
.formcard button.dd-btn:focus-visible, .formcard button.dd-btn[aria-expanded=true] { border-color: var(--black); box-shadow: 0 0 0 1px var(--black); outline: none; }
.dd-list.light { background: #fff; border-color: var(--black); }
.dd-list.light li { color: var(--black); }
.dd-list.light li[aria-selected=true] { color: var(--red); }
/* date.js: the calendar that replaces the browser's date picker, about twice its size */
html input.dt-native { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.cal { position: fixed; z-index: 60; width: min(456px, calc(100vw - 32px)); padding: 16px; display: grid; gap: 10px; background: var(--black); color: var(--bone); border: 2px solid var(--bone); box-shadow: var(--hs-red); }
.cal.tp { width: min(300px, calc(100vw - 32px)); }
.tp-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tp-row .dd-btn { min-height: 48px; font-size: 15px; }
.tp-acts { display: flex; gap: 8px; justify-content: flex-end; }
.cal-head { display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr) 48px; gap: 8px; align-items: center; }
.cal-head .dd-btn { min-height: 48px; font-size: 15px; }
.cal .cal-nav { min-height: 48px; padding: 0; font: 400 24px/1 var(--mono); }
.cal-week, .cal-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-week span { text-align: center; font: 400 11px/1 var(--mono); letter-spacing: .15em; text-transform: uppercase; opacity: .6; padding: 4px 0; }
.cal-days button { aspect-ratio: 1; min-height: 0; padding: 0; font: 400 17px/1 var(--mono); border: 2px solid transparent; color: inherit; }
.cal-days button.today { border-color: currentColor; }
.cal-days button[data-active] { background: rgba(242, 240, 232, .14); }
.cal-days button[aria-pressed=true] { background: var(--red); border-color: var(--red); color: var(--bone); }
@media (hover: hover) and (pointer: fine) { .cal-days button:hover:not(:disabled) { background: var(--bone); color: var(--black); border-color: var(--bone); } }
.cal-days button:disabled { opacity: .25; cursor: not-allowed; }
.cal.light { background: var(--bone); color: var(--black); border-color: var(--black); } /* the colour of the light page sections behind the white cards */
.cal.light .cal-nav, .cal.light .dd-btn { color: var(--black); border-color: var(--black); background: #fff; }
@media (hover: hover) and (pointer: fine) { .cal.light .cal-nav:hover { background: var(--black); color: var(--bone); } }
.cal.light .dd-btn:hover:not(:disabled), .cal.light .dd-btn[aria-expanded=true], .cal.light .dd-btn:focus-visible { background: #fff; color: var(--black); border-color: var(--black); box-shadow: 0 0 0 1px var(--black); }
.cal.light .cal-days button[data-active] { background: rgba(12, 12, 10, .08); }
@media (hover: hover) and (pointer: fine) { .cal.light .cal-days button:hover:not(:disabled) { background: var(--black); color: var(--bone); border-color: var(--black); } }
.cal.light .cal-days button[aria-pressed=true] { background: var(--red); border-color: var(--red); color: var(--bone); }
.dd-list.light li[data-active] { background: var(--black); color: #fff; }
.card button.dd-btn { min-height: 38px; font-size: 13px; }
@media (hover: hover) and (pointer: fine) { .formcard button.dd-btn:hover:not(:disabled), .card button.dd-btn:hover:not(:disabled) { background: #fff; color: var(--black); border-color: var(--black); } }
.formcard .muted { color: rgba(12, 12, 10, .7); }
.formcard a:not(.btn):not(.gbtn) { color: var(--red); text-decoration: underline; }
dialog button[value=ok]:focus-visible { outline: none; } /* the dialog focuses this button by itself, which drew a yellow frame around it */

/* ---------- control room: everything on one screen ---------- */
.inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.inline label { flex: 1; min-width: 150px; }
.inline label:nth-of-type(2) { flex: 0 0 150px; min-width: 0; }
.linkbar { display: flex; gap: 16px; align-items: end; }
.linkbar p { flex: 1; }
.linkbar label { width: 150px; }
.reports { display: flex; gap: 8px; flex-wrap: wrap; }
.reports .btn, .reports button { min-height: 38px; padding: 0 14px; font-size: 12px; }
.squadbox { padding: 16px; }
#salesPanel { padding: 14px 20px; gap: 6px; }
#salesPanel .sales li { padding: 5px 0; }
@media (min-width: 1001px) {
  /* a console, not a long page: the columns fit the screen and any long list scrolls inside its own column */
  body[data-admin] .strip { padding: 4px 24px; }
  body[data-admin] .nav { padding: 8px 24px; }
  body[data-admin] .control { height: calc(calc(100dvh / var(--z)) - var(--head, 86px)); padding: 14px 24px 92px; gap: 20px; align-items: stretch; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  body[data-admin] .control > .stack { position: relative; /* hidden selects are absolutely placed: keep them inside the scrolling column */ min-height: 0; overflow: auto; align-content: start; grid-auto-rows: max-content; gap: 14px; scrollbar-width: thin; }
  body[data-admin] .control { grid-template-rows: auto minmax(0, 1fr); }
  body[data-admin][data-role=team] .control { grid-template-rows: minmax(0, 1fr); }
  body[data-admin] .control > .tabs { grid-column: 1 / -1; } /* one bar across the top: it stays put when Setup hides the live column */
  body[data-admin] .plist { max-height: none; }
  body[data-admin] .lefty .hero .hero-grid { padding: 12px 16px; gap: 16px; }
  body[data-admin] .lefty .hero .h1 { font-size: clamp(28px, 3vw, 46px); }
  body[data-admin] .lefty .hero .pname { font-size: clamp(24px, 2.8vw, 44px); }
  body[data-admin] .lefty .hero .k { font-size: 11px; }
  body[data-admin] .lefty .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  body[data-admin] .lefty .hero .hero-left, body[data-admin] .lefty .hero .hero-right { min-width: 0; }
  body[data-admin] .hud { padding: 22px 18px 14px; gap: 6px; }
  body[data-admin] .hud .who { font-size: 16px; }
  body[data-admin] .lefty .panel { padding: 16px; gap: 10px; }
  body[data-admin] .bidbtns { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
}


/* sign-up cards: compact enough that two fit in the right column */
body[data-admin] .reg { gap: 14px; }
body[data-admin] .reg .art { min-height: 200px; }
body[data-admin] .reg .pc-body { gap: 8px; padding: 4px 4px 4px 0; }
body[data-admin] .reg .pc-name { font-size: clamp(17px, 1.5vw, 22px); }
body[data-admin] .reg .pc-phone { font-size: 13px; }
body[data-admin] .reg .fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 0; }
body[data-admin] .reg .fields label { font-size: 12px; }
body[data-admin] .reg .acts button { min-height: 42px; }

/* Setup: its own full-width view. The live column steps aside; the tabs and the bottom bar stay. */
body[data-setup] .lefty { display: none; }
body[data-setup] .control { grid-template-columns: minmax(0, 1fr); }
.rulesform { display: grid; gap: 0; }
.rulesform .sec { display: grid; grid-template-columns: minmax(170px, 250px) minmax(0, 1fr); gap: 12px 32px; padding: 22px 0; border-top: 1px solid var(--hl); }
.rulesform .sec:first-child { border-top: 0; padding-top: 4px; }
.rulesform .sec-title h3 { font: 400 17px/1.2 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.rulesform .sec-title p { margin-top: 6px; font-size: 13px; color: var(--dim); }
.rulesform .sec-body { display: grid; gap: 14px; min-width: 0; align-content: start; }
.rulesform .cols2, .rulesform .cols3, .rulesform .cols4, .rulesform .cols5 { display: grid; gap: 12px; }
.rulesform .cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rulesform .cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rulesform .cols4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rulesform .cols5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rulesform label { font: 400 13px/1.3 var(--body); letter-spacing: 0; text-transform: none; color: rgba(242, 240, 232, .85); }
.rulesform input, .rulesform button.dd-btn { min-height: 44px; font-size: 15px; }
.rulesform .note { font-size: 12px; color: rgba(242, 240, 232, .55); }
.rulesform .morerules { display: grid; gap: 12px; }
.rulesform .morerules[open] > summary { margin-bottom: 4px; }
.rulesform .stepsbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 6px 6px 6px 14px; border: 1px solid var(--line); font-size: 14px; }
.rulesform .stepsbar button { min-height: 40px; flex: none; }
.rulesform .steps { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.rulesform .steps > p { grid-column: 1 / -1; }
.rulesform .tier { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rulesform .paybox { display: grid; gap: 14px; padding: 14px; border: 1px solid var(--hl); background: rgba(242, 240, 232, .03); }
.rulesform .csv summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; padding: 0 14px; border: 1px solid var(--line); font: 400 14px/1.3 var(--body); letter-spacing: 0; text-transform: none; color: var(--bone); }
.rulesform .csv[open] { display: grid; gap: 10px; }
.rulesform textarea { font-size: 13px; }
.savebar { padding-top: 18px; border-top: 1px solid var(--hl); }
.savebar button { width: 100%; min-height: 52px; font-size: 16px; }
@media (min-width: 1001px) { .savebar { position: sticky; bottom: 0; z-index: 2; background: var(--black); padding-bottom: 6px; } } /* page-scroll layouts have the fixed action bar below, so only the desktop column pins it */
@media (max-width: 1100px) { .rulesform .cols5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .rulesform .sec { grid-template-columns: minmax(0, 1fr); } .rulesform .cols3, .rulesform .cols4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rulesform .cols2, .rulesform .cols3, .rulesform .cols4, .rulesform .steps { grid-template-columns: minmax(0, 1fr); } .rulesform .cols5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* the lot on the control screen: a photo you can actually see */
@media (min-width: 1001px) {
  body[data-admin] .lefty .hero .hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; }
  body[data-admin] .lefty .lot { gap: 16px; align-items: center; }
  body[data-admin] .lefty .lot .photo { width: auto; height: clamp(190px, calc(31vh / var(--z)), 300px); aspect-ratio: 3 / 4; max-width: 50%; font-size: 48px; }
  body[data-admin] .lefty .pname { transform: none; font-size: clamp(22px, 2.4vw, 40px); }
  body[data-admin] .hud .time { font-size: clamp(26px, 2.6vw, 38px); }
  body[data-admin] .hud .bid { font-size: clamp(26px, 2.8vw, 40px); }
}

@media (min-width: 1001px) {
  body[data-admin] .lefty .lot .photo { height: clamp(170px, calc(27vh / var(--z)), 300px); }
  body[data-admin] .lefty #bidPanel .bidhead { align-items: end; }
  body[data-admin] .lefty #bidPanel h2 { font-size: 18px; }
  body[data-admin] .lefty #bidPanel .bidhead label { width: 200px; font-size: 12px; }
  @media (pointer: fine) { body[data-admin] .lefty #bidPanel .bidhead input { min-height: 38px; } } /* touch keeps 44px */
  body[data-admin] .tile { min-height: 0; gap: 2px; padding: 8px 12px; }
  body[data-admin] .tile b { font-size: 16px; }
  body[data-admin] .tile .amt { font-size: 21px; }
  body[data-admin] .tile .why { font-size: 11px; }
}

.photo svg { width: 52%; height: auto; fill: currentColor; opacity: .3; }

/* views with only one column use the whole width; phones get a real photo */
@media (min-width: 1001px) {
  body[data-admin][data-role=team] .control, body[data-admin][data-role=verifier] .control { grid-template-columns: minmax(0, 1fr); }
  body[data-admin][data-role=team] .lefty { max-width: 760px; margin: 0 auto; width: 100%; }
}
@media (max-width: 1000px) {
  body[data-admin] .lefty .lot { flex-wrap: nowrap; gap: 12px; }
  body[data-admin] .lefty .lot .photo { width: min(36vw, 180px); height: auto; max-width: none; aspect-ratio: 3 / 4; font-size: 40px; }
  body[data-admin] .lefty .pname { flex: 1 1 0; flex-basis: 0; min-width: 0; font-size: clamp(18px, 5.5vw, 30px); }
}

.squads .hint { grid-column: 1 / -1; } /* the empty message runs the full width of the grid */

#signout { margin-left: 12px; border: 0; padding: 0 8px; font: 500 12px/1 var(--body); letter-spacing: .2em; color: rgba(242, 240, 232, .8); } /* plain text like the Auctions link, no border */
@media (hover: hover) and (pointer: fine) { #signout:hover { background: none; color: var(--amber); } }

/* each bid tile shows how much of the team's purse is left, as on the public screen */
.tile .pbar { display: block; width: 100%; height: 4px; margin-top: 5px; background: rgba(242, 240, 232, .15); }
.tile .pbar b { display: block; height: 100%; background: var(--bone); }
.tile.lead .pbar b { background: var(--red); }
@media (hover: hover) and (pointer: fine) { .tile:hover:not(:disabled) .pbar b { background: var(--bone); } }
body[data-admin] .tile small { letter-spacing: .03em; }
.qr { width: 200px; background: #fff; border: 2px solid var(--black); padding: 4px; }
.qr svg, .qr img { display: block; width: 100%; height: auto; }
a.done, .btn.done { opacity: .45; cursor: default; pointer-events: none; }
.btn.done.got { opacity: 1; border-style: dashed; } /* Registered: a status the player should read, not a closed button */
dialog .help { max-height: calc(80vh / var(--z)); overflow: auto; }
dialog .help ol { display: grid; gap: 10px; padding-left: 20px; font-size: 15px; line-height: 1.45; }
label.check { display: flex; align-items: center; gap: 10px; font: 400 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
/* Our own checkbox: the browser's one drew a soft grey ring and a tinted tick. Square, solid border, red with a white tick when on. */
label.check input { appearance: none; flex: none; width: 20px; height: 20px; min-height: 0; margin: 0; padding: 0; border: 2px solid var(--bone); border-radius: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.formcard label.check input { border-color: var(--black); background: #fff; }
label.check input:checked { background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23f2f0e8' stroke-width='2.4' stroke-linecap='square'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--red); }
label.check input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.gbtn[aria-disabled=true] { opacity: .45; cursor: not-allowed; }
label.check.nudge { animation: nudge .3s; } /* pressing Sign in before ticking shakes the box */
@keyframes nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
dialog.signin form { gap: 18px; }
dialog.signin label.check { text-transform: none; letter-spacing: 0; font: 400 14px/1.45 var(--body); align-items: flex-start; }
dialog.signin label.check a { color: var(--bone); }
dialog.tour { width: min(400px, calc(100vw - 32px)); margin: auto auto 24px 24px; } /* bottom left, so the tab being explained stays in view on the right */
dialog.tour::backdrop { background: rgba(0, 0, 0, .2); }
dialog .help .k { margin: 0; }
.gear { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; transition: color .15s; color: rgba(242, 240, 232, .8); flex: none; margin-left: auto; } /* no border: the header icons read like the Auctions link */
:is(.gear, .gear-slot) + .gear { margin-left: calc(-1 * var(--gap, 0px)); } /* the light-mode and settings icons sit side by side as a pair */
@media (hover: hover) and (pointer: fine) { .nav .gear:hover { background: none; color: var(--amber); } }
details.where { font-size: 14px; }
details.where summary { cursor: pointer; color: var(--black); font: 400 13px/1.4 var(--body); letter-spacing: 0; text-transform: none; text-decoration: underline; min-height: 44px; margin: -10px 0; } /* a full-size tap area that takes up no more room than the text */
details.where p { margin: 8px 0 0; }
details.where ul { padding-left: 18px; margin: 4px 0 0; display: grid; gap: 2px; line-height: 1.4; }
.accts { list-style: none; display: grid; gap: 10px; padding: 0; margin: 0 0 16px; }
.accts li { display: grid; gap: 8px; padding: 10px; border: 1px solid rgba(12, 12, 10, .25); }
.accts .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.accts .btn, .accts .danger { min-height: 36px; padding: 0 12px; font-size: 12px; }
.hook { display: grid; gap: 10px; padding: 12px; border: 2px solid var(--black); margin-bottom: 16px; }
.legalbar { padding: 14px 32px; font: 400 11px/1.6 var(--mono); letter-spacing: .08em; color: var(--dim); background: var(--black); border-top: 1px solid var(--hl); }
.legalbar a { color: inherit; text-decoration: underline; }
main.legal { max-width: 760px; margin: 32px auto; padding: 32px 16px 64px; background: var(--bone); color: var(--black); }
main.legal h1 { font: 400 clamp(30px, 5vw, 48px)/1 var(--display); text-transform: uppercase; margin-bottom: 8px; }
main.legal h2 { font: 400 20px/1.2 var(--display); text-transform: uppercase; margin: 28px 0 8px; }
main.legal p, main.legal li { line-height: 1.6; }
main.legal ul, main.legal ol { padding-left: 22px; display: grid; gap: 8px; }
main.legal a { color: var(--red); }
.formcard label.check { text-transform: none; letter-spacing: 0; font: 400 14px/1.4 var(--body); align-items: flex-start; }
.formcard label.check .field-err { display: block; }

/* Settings: the heading runs across the top and the cards fill the width below it (profile on the left, tips and payments stacked beside it). */
.hero-grid.settings { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 24px; padding-top: 32px; padding-bottom: 40px; }
.hero-grid.settings .lead-p { max-width: 70ch; }
.settings-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.settings-cards > :has(#box), .settings-cards > :has(#tips) { grid-column: 1; }
.settings-cards #tips { padding: 14px 20px; }
.formcard .row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
/* Where the player pays: the amount and who receives it are the biggest thing in the card */
.paybox { display: grid; gap: 6px; padding: 16px 18px; background: #fff; border: 2px solid var(--black); }
.paybox .amt { font: 400 40px/1 var(--display); }
.paybox b { font-size: 16px; }
#box .paybox { grid-template-columns: auto minmax(0, 1fr); gap: 0 14px; align-items: center; padding: 10px 14px; }
#box .paybox .amt { grid-row: span 2; }
#box .paybox .muted { grid-column: 1 / -1; margin-top: 4px; line-height: 1.35; }
#box .field-err:empty { display: none; }
#box:has(.paybox) { gap: 10px; padding: 14px 16px; }
.hero:has(#box .paybox) .hero-grid { padding-top: 12px; padding-bottom: 12px; }
#box:has(.paybox) p { margin: 0; }
.payee { display: flex; align-items: center; gap: 12px; }
.payee p { flex: 1; min-width: 0; display: grid; overflow-wrap: anywhere; }
.payee .mono { font-size: 13px; }
.payee .btn { min-height: 44px; padding: 0 14px; }
details.where .payee { margin-top: 8px; }
.settings-cards > :has(#rzp) { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 1000px) { .settings-cards { grid-template-columns: minmax(0, 1fr); } .settings-cards > .card-slot { grid-column: auto; grid-row: auto; } }
@media (min-width: 1001px) {
  .hero-grid.settings .hero-left { grid-template-columns: auto minmax(0, 1fr); column-gap: 48px; align-items: end; }
  .hero-grid.settings .hero-left .k { grid-column: 1 / -1; }
  .hero-grid.settings .hero-left .h1 { font-size: clamp(40px, 4.4vw, 64px); }
}
/* an error toast is light with a red edge, so it never melts into the red Save and Sold buttons it floats over */
#toast:not(.ok) { background: var(--bone); color: var(--black); border: 0; border-left: 6px solid var(--red); box-shadow: 0 0 0 1px var(--black), 0 10px 30px rgba(0, 0, 0, .6); }
@media (max-width: 1000px) { body[data-admin] .control > .lefty { order: 1; } body[data-admin] .control > .tabs { order: 2; } body[data-admin] .control > .righty { order: 3; } } /* on a phone the tabs still sit under the live player */
@media (min-width: 1001px) and (max-width: 1279px) { body[data-admin] .control { padding-bottom: 156px; } } /* the action bar wraps to two rows here, so the pinned Save setup button needs more room above it */

/* the superadmin's admin list: who on the left, credits and Remove together on the right (they wrap under the name on a narrow card) */
.admin-row { flex-wrap: wrap; align-items: center; }
.admin-who { flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; }
.admin-acts { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; margin-left: auto; }
.stepper { display: inline-flex; align-items: stretch; border: 2px solid var(--black); background: #fff; }
.stepper button { min-height: 34px; min-width: 34px; padding: 0; border: 0 !important; background: transparent; font-size: 18px; line-height: 1; }
.stepper button:disabled { opacity: .3; }
.stepper output { display: grid; place-items: center; min-width: 38px; padding: 0 6px; font: 500 15px/1 var(--mono); border-inline: 2px solid var(--black); }
.admin-acts button.small { min-height: 34px; padding: 0 12px; font-size: 12px; }

/* Custom bid wheel: a sheet at the bottom, in thumb reach. Three rows show; the middle one is the pick. */
.wheelopen { min-height: 44px; padding: 0 16px; }
body[data-role=team] .wheelopen:not([hidden]) { display: inline-flex; align-items: center; }
.remote .rrow button.on { border-color: var(--red); color: var(--red); }
.wheel { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: min(100%, 520px); z-index: 12; background: var(--black); border: 1px solid var(--hl); border-bottom: 0; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); display: grid; gap: 6px; box-shadow: 0 -8px 24px rgba(0, 0, 0, .5); transition: translate .24s var(--ease-drawer); }
@starting-style { .wheel { translate: 0 100%; } }
.whead { display: flex; align-items: center; gap: 10px; }
.whead > div { flex: 1; display: grid; }
.whead > div > span { font: 400 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.whead b { font: 500 26px/1.1 var(--mono); color: var(--amber); }
.whead button { min-height: 48px; padding: 0 16px; }
.wbox { position: relative; height: 132px; }
.wband { position: absolute; left: 0; right: 0; top: 44px; height: 44px; border-top: 1px solid var(--red); border-bottom: 1px solid var(--red); pointer-events: none; }
.wheel .hint { margin: 0; text-align: center; }
#wScrub { height: 100%; }
body[data-wheel]:not([data-remote]) .control { padding-bottom: 260px; }
@media (max-width: 700px) {
  body[data-admin]:is([data-role=owner], [data-role=auctioneer]) .wheel { bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: 8px; }
}


/* the organiser contact: only the email and number are bold, and they light up on hover so they read as clickable */
#orgContact a { font-weight: 700; text-decoration: none; color: inherit; padding: 1px 4px; margin: 0 -4px; transition: background .15s, color .15s; }
#orgContact a:hover, #orgContact a:focus-visible { background: var(--amber); color: var(--black); outline: none; }

/* phones: a bigger heading, so the symbol letters have enough cells to read */
@media (max-width: 700px) { #h2 { font-size: clamp(48px, calc((100vw - 32px) / 5.4), 96px); } } /* as big as "AUCTION." fits across a phone, inside the 16px margins: the word is about 5.3 letter heights wide */

/* §02 How it runs: one player card through the four steps, told by the scroll with CSS scroll-driven animation (no JS).
   The rules first are the finished, static section (Firefox and reduced motion get this); the motion is all in the @supports block at the end. */
.how { --h-muted: #b9b4a8; --h-line: #2e2c27; /* the rest of its colours are the page's own */
  position: relative; background: var(--black); color: var(--bone); overflow-x: clip; padding: 112px 0 96px; } /* clip, not hidden: hidden would break the sticky stage */
.how-head, .how-grid { max-width: 1280px; margin-inline: auto; padding-inline: 32px; }
.how-head { container-type: inline-size; display: grid; gap: 16px; }
.how-eyebrow { font: 400 12px/1.4 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--amber); }
.how-title { font: 400 clamp(34px, 8cqi, 104px)/.92 var(--display); text-transform: uppercase; letter-spacing: -.02em; }
.how-title .w { display: inline-block; }
.how-title .hammer { color: var(--amber); }
.how-sub { color: var(--h-muted); font-size: 17px; max-width: 46ch; }

.how-stage { position: relative; container-type: inline-size; padding-block: 56px; }
.how-flash { position: absolute; inset: 0; background: var(--amber); opacity: 0; pointer-events: none; }
.how-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.how-left { display: grid; gap: 28px; align-content: center; }
.how-rail { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; border-top: 1px solid var(--h-line); padding-top: 14px; }
.how-rail span { font: 400 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bone); }
.how-fill { position: absolute; left: 0; right: 0; top: -2px; height: 3px; background: var(--amber); transform-origin: left; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
.how-steps li { display: grid; gap: 8px; max-width: 46ch; }
.how-steps h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font: 400 clamp(24px, 3cqi, 34px)/1.05 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.how-steps .tag { font: 400 11px/1 var(--mono); letter-spacing: .12em; color: var(--amber); border: 1px solid var(--amber); padding: 5px 7px; }
.how-steps p { color: var(--h-muted); font-size: 16px; }
.how-steps .meta { font: 400 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.how-hint { display: none; font: 400 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--h-muted); }

/* the card collage: everything inside is sized from the card's width (cqi) */
.how-right { display: grid; place-items: center; padding-block: 12%; }
.lot { position: relative; container-type: inline-size; width: min(340px, 72%); }
.lot-body { position: relative; }
.lot-frame { position: absolute; inset: -4.5cqi; border: 1.2cqi solid var(--amber); transform: rotate(-2deg); }
.lot .pcard { position: relative; display: grid; gap: 4cqi; padding: 5cqi; background: var(--bone); color: var(--black); border: 2px solid var(--black); box-shadow: 10px 10px 0 var(--red); transform: rotate(-2deg); }
.pc-top, .pc-cat { display: flex; justify-content: space-between; align-items: center; gap: 2cqi; font: 400 3.6cqi/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.pc-chip { display: grid; }
.pc-chip em { grid-area: 1 / 1; font-style: normal; text-align: center; padding: 1.6cqi 2.4cqi; border: 2px solid var(--black); background: var(--bone); opacity: 0; }
.pc-chip .c4 { opacity: 1; background: var(--amber); }
.pc-photo { position: relative; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; background: var(--black); }
.pc-cam { position: absolute; width: 18cqi; color: var(--h-muted); opacity: 0; }
.pc-sil { position: absolute; bottom: 0; width: 74%; fill: var(--amber); }
.lot .pc-name { font: 400 8cqi/1 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.pc-cat .pill { font: 600 4cqi/1 var(--body); letter-spacing: 0; text-transform: none; color: var(--bone); background: var(--black); padding: 1.8cqi 3.4cqi; border-radius: 99px; }
.stamp { position: absolute; font: 400 7cqi/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--red); background: var(--bone); border: .9cqi solid var(--red); padding: 1.4cqi 2.6cqi; }
.stamp.verified { left: 7%; top: 40%; transform: rotate(-14deg); }
.receipt { position: absolute; right: -26cqi; top: 26cqi; width: 46cqi; display: grid; gap: 1.6cqi; padding: 3.6cqi; background: #fff; color: var(--black); border: 2px solid var(--black); box-shadow: 6px 6px 0 var(--black); font: 400 3.2cqi/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; transform: rotate(4deg); }
.receipt .amt { font: 400 6cqi/1 var(--display); margin-top: 1cqi; }
.stamp.paid { right: 3cqi; bottom: 3cqi; font-size: 6cqi; background: #fff; transform: rotate(-12deg); }
.lot .sold { position: absolute; left: -7cqi; right: -7cqi; top: 54%; padding: 3cqi 2cqi; text-align: center; font: 400 7.4cqi/1 var(--display); text-transform: uppercase; color: var(--black); background: var(--amber); border: 2px solid var(--black); box-shadow: 6px 6px 0 var(--black); transform: rotate(-6deg); transform-origin: left center; }
.burst { position: absolute; right: 2cqi; top: -9cqi; width: 22cqi; aspect-ratio: 1; background: var(--amber); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); opacity: 0; }
.gchip { position: absolute; left: -10cqi; top: -10cqi; display: inline-flex; align-items: center; gap: 2cqi; padding: 2.4cqi 3.6cqi; white-space: nowrap; font: 600 4cqi/1 var(--body); color: #1f1f1f; background: #fff; border: 2px solid var(--black); box-shadow: 4px 4px 0 var(--black); opacity: 0; }
.gchip svg { width: 5cqi; height: 5cqi; }
.bids { position: absolute; left: -24cqi; top: 64%; display: grid; gap: 2.4cqi; justify-items: start; }
.bids span { font: 400 3.6cqi/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bone); background: var(--black); border: 2px solid var(--bone); padding: 2cqi 3cqi; }
.bids .b3 { color: var(--black); background: var(--amber); border-color: var(--black); }
.gavel { position: absolute; right: -24cqi; top: -34cqi; width: 66cqi; overflow: visible; transform-origin: 90% 90%; rotate: -10deg; } /* pivots at the end of its handle */
.gavel .g-hl-o, .gavel .g-hl { fill: none; stroke-linecap: round; }
.gavel .g-hl-o { stroke: var(--black); stroke-width: 9; }
.gavel .g-hl { stroke: var(--bone); stroke-width: 5.4; }
.gavel .g-head { fill: var(--amber); stroke: var(--black); stroke-width: 3.2; }
.gavel .g-band { fill: var(--black); }


@container (max-width: 820px) {
  .how-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .how-right { order: -1; padding-block: 18% 6%; }
}
@media (max-width: 760px) {
  .how { padding: 72px 0; }
  .how-head, .how-grid { padding-inline: 16px; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .how-track { height: 3600px; view-timeline: --lot block; }
    .how-stage { position: sticky; top: 0; height: min(100svh, 920px); padding-block: 0; display: grid; align-items: center; }
    .how-steps li { grid-area: 1 / 1; }
    .how-steps { gap: 0; }
    @container (max-width: 820px) { .lot { width: min(340px, 64%, 30svh); } /* the card, the rail and the step text share one phone screen */ .how-right { padding-block: 9% 0; } .how-left { gap: 18px; } }

    .how-title .w { animation: word-rise cubic-bezier(.16, 1, .3, 1) both; animation-timeline: view(); animation-range: entry 10% cover 30%; }
    .how-title .w:nth-of-type(2) { animation-range: entry 16% cover 33%; }
    .how-title .w:nth-of-type(3) { animation-range: entry 22% cover 36%; }
    .how-title .w:nth-of-type(4) { animation-range: entry 28% cover 39%; }
    .how-title .hammer { animation: hammer-drop linear both; animation-timeline: view(); animation-range: entry 34% cover 44%; transform-origin: left bottom; }

    /* the steps, the rail labels and the hint each have one animation over the whole track, so their state is set at every point and
       nothing depends on a browser holding an end state after a fast scroll; one step fades out before the next fades in, never both */
    .how-hint { display: block; animation: how-hint linear both; animation-timeline: --lot; animation-range: contain 0% contain 100%; }
    .how-fill { animation: grow-x linear both; animation-timeline: --lot; animation-range: contain 0% contain 100%; }
    .how-rail .r2 { animation: how-r2 linear both; animation-timeline: --lot; animation-range: contain 0% contain 100%; }
    .how-rail .r3 { animation: how-r3 linear both; animation-timeline: --lot; animation-range: contain 0% contain 100%; }
    .how-rail .r4 { animation: how-r4 linear both; animation-timeline: --lot; animation-range: contain 0% contain 100%; }
    .how-steps .s1 { animation: how-s1 linear both; animation-timeline: --lot; animation-range: contain 0% contain 100%; }
    .how-steps .s2 { animation: how-s2 linear both; animation-timeline: --lot; animation-range: contain 0% contain 100%; }
    .how-steps .s3 { animation: how-s3 linear both; animation-timeline: --lot; animation-range: contain 0% contain 100%; }
    .how-steps .s4 { animation: how-s4 linear both; animation-timeline: --lot; animation-range: contain 0% contain 100%; }

    .lot-body { animation: lot-fly cubic-bezier(.16, 1, .3, 1) both, lot-shake linear both; animation-timeline: --lot, --lot; animation-range: entry 40% contain 10%, contain 91% contain 95%; }
    .gchip { animation: g-fly linear both; animation-timeline: --lot; animation-range: entry 50% contain 16%; }
    .pc-cam { animation: hold-out linear both; animation-timeline: --lot; animation-range: contain 6% contain 16%; }
    .pc-sil { animation: fade-in linear both; animation-timeline: --lot; animation-range: contain 6% contain 16%; }
    .pc-chip .c0 { animation: hold-out linear both; animation-timeline: --lot; animation-range: contain 0% contain 16%; }
    .pc-chip .c1 { animation: chip-mid linear both; animation-timeline: --lot; animation-range: contain 14% contain 42%; }
    .pc-chip .c2 { animation: chip-mid linear both; animation-timeline: --lot; animation-range: contain 40% contain 57%; }
    .pc-chip .c3 { animation: chip-mid linear both; animation-timeline: --lot; animation-range: contain 55% contain 94%; }
    .pc-chip .c4 { animation: fade-in linear both; animation-timeline: --lot; animation-range: contain 92% contain 95%; }
    .receipt { animation: slide-in cubic-bezier(.16, 1, .3, 1) both; animation-timeline: --lot; animation-range: contain 27% contain 38%; }
    .stamp.paid { animation: slam-24 cubic-bezier(.5, 0, .75, 0) both; animation-timeline: --lot; animation-range: contain 40% contain 45%; }
    .stamp.verified { animation: slam-3 cubic-bezier(.5, 0, .75, 0) both; animation-timeline: --lot; animation-range: contain 55% contain 62%; }
    .lot-frame { animation: frame-in cubic-bezier(.16, 1, .3, 1) both; animation-timeline: --lot; animation-range: contain 60% contain 68%; }
    .bids .b1 { animation: pop cubic-bezier(.16, 1, .3, 1) both; animation-timeline: --lot; animation-range: contain 76% contain 79%; }
    .bids .b2 { animation: pop cubic-bezier(.16, 1, .3, 1) both; animation-timeline: --lot; animation-range: contain 79% contain 82%; }
    .bids .b3 { animation: pop cubic-bezier(.16, 1, .3, 1) both; animation-timeline: --lot; animation-range: contain 82% contain 86%; }
    .gavel { animation: fade-in linear both, strike linear both; animation-timeline: --lot, --lot; animation-range: contain 72% contain 78%, contain 87% contain 93%; }
    .burst { animation: burst linear both; animation-timeline: --lot; animation-range: contain 91% contain 96%; }
    .lot .sold { animation: grow-x cubic-bezier(.16, 1, .3, 1) both; animation-timeline: --lot; animation-range: contain 92% contain 97%; }
    .how-flash { animation: how-flash linear both; animation-timeline: --lot; animation-range: contain 91% contain 100%; }
  }
}
@keyframes word-rise { from { opacity: 0; translate: 0 .5em; } }
@keyframes hammer-drop { 0% { opacity: 0; translate: 0 -.9em; rotate: -18deg; } 65% { opacity: 1; translate: 0 .05em; rotate: 3deg; } 100% { translate: 0 0; rotate: 0deg; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes hold-out { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes grow-x { from { scale: 0 1; } }
@keyframes how-hint { 0% { opacity: 1; } 5%, 100% { opacity: 0; } }
@keyframes how-r2 { 0%, 25% { opacity: .35; } 27%, 100% { opacity: 1; } }
@keyframes how-r3 { 0%, 50% { opacity: .35; } 52%, 100% { opacity: 1; } }
@keyframes how-r4 { 0%, 75% { opacity: .35; } 77%, 100% { opacity: 1; } }
@keyframes how-s1 { 0%, 22% { opacity: 1; translate: 0 0; } 25%, 100% { opacity: 0; translate: 0 -12px; } }
@keyframes how-s2 { 0%, 25% { opacity: 0; translate: 0 12px; } 28%, 47% { opacity: 1; translate: 0 0; } 50%, 100% { opacity: 0; translate: 0 -12px; } }
@keyframes how-s3 { 0%, 50% { opacity: 0; translate: 0 12px; } 53%, 72% { opacity: 1; translate: 0 0; } 75%, 100% { opacity: 0; translate: 0 -12px; } }
@keyframes how-s4 { 0%, 75% { opacity: 0; translate: 0 12px; } 78%, 100% { opacity: 1; translate: 0 0; } }
@keyframes chip-mid { 0% { opacity: 0; } 10%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes lot-fly { from { opacity: 0; transform: translate(30cqi, 40cqi) rotate(16deg); } }
@keyframes lot-shake { 0%, 100% { translate: 0 0; } 35% { translate: -.8cqi 1.6cqi; } } /* one knock down and back: a scroll-linked shake that swings back and forth judders when scrolled slowly */
@keyframes g-fly { 0% { opacity: 0; translate: 0 -4cqi; scale: 1; } 30%, 70% { opacity: 1; translate: 0 0; scale: 1; } 100% { opacity: 0; translate: 26cqi 34cqi; scale: .4; } }
@keyframes slide-in { from { opacity: 0; translate: 60cqi 0; } }
@keyframes slam-24 { from { opacity: 0; scale: 2.4; } }
@keyframes slam-3 { from { opacity: 0; scale: 3; } }
@keyframes frame-in { from { opacity: 0; scale: 1.08; } }
@keyframes pop { from { opacity: 0; scale: .7; translate: -4cqi 0; } }
@keyframes strike { 0% { rotate: 45deg; } 70% { rotate: -16deg; } 100% { rotate: -10deg; } }
@keyframes burst { 0% { opacity: 0; scale: .3; } 30% { opacity: 1; } 100% { opacity: 0; scale: 1.5; } }
@keyframes how-flash { 0% { opacity: 0; } 30% { opacity: .16; } 100% { opacity: .04; } }

/* The home page's 3D sports object (sport3d.js) draws on one fixed canvas. Once it starts, the hero stops being its own layer group and its
   layers are numbered around the canvas instead, in the same order as before: video, red glow, pinstripes, then the canvas (the object passes
   in front of the pinstripes), then grain, the bottom fade and the content. The other sections' content is lifted above the canvas; their
   backgrounds stay under it. */
.sport3d { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; }
.s3d .hero { isolation: auto; }
.s3d .bgvideo { z-index: 1; }
.s3d .bloom { z-index: 2; }
.s3d .speed { z-index: 3; }
.s3d .noise, .s3d .hero::after { z-index: 5; }
.s3d .hero > :not(.bgvideo, .bloom, .speed, .noise), .s3d main > section:not(.hero) > * { position: relative; z-index: 6; }
.s3d .nav { z-index: 7; }
@media print { .sport3d { display: none; } }

/* The sign-up page's QR: computers scan the screen, phones save the picture and scan it from the gallery. */
.payqr { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 12px; align-items: center; }
.payqr .qr { width: 150px; }
.qrsave { display: grid; gap: 6px; }
.qrsave .btn { min-height: 44px; padding: 0 8px; font-size: 12px; }
.payqr ol { grid-column: 1 / -1; margin: 0; padding-left: 18px; line-height: 1.4; }
@media (pointer: fine) { .qrsave, .scangallery { display: none; } }
@media not (pointer: fine) { .scanhere { display: none; } }

/* Touch screens: every control at least 44px, the size a fingertip hits reliably. A mouse keeps the denser sizes above.
   :root lifts these over the control room's own body[data-admin] sizes. */
@media (pointer: coarse) {
  :root :is(.squad .linkline, .pc-hist, .stepper, .admin-acts, .seg, .accts, .reports, .nav, .reg .acts, .rulesform .stepsbar) :is(button, .btn, input),
  :root .card button.dd-btn, :root .rulesform .morerules > summary { min-height: 44px; }
  :root .stepper button { min-width: 44px; }
}
/* The ticker is a pause button (util.js): its focus ring sits inside, as the hero clips anything below it */
.marquee:focus-visible { outline-offset: -5px; }
/* The light-mode joke (util.js): a red stamp in the middle of the screen, gone in a moment */
.sike { position: fixed; left: 50%; top: 42%; z-index: 110; translate: -50% -50%; rotate: -4deg; padding: 14px 22px; background: var(--red); color: var(--bone); border: 2px solid var(--black); box-shadow: var(--hs); font: 400 clamp(32px, 6vw, 72px)/1 var(--display); text-transform: uppercase; letter-spacing: -.02em; width: max-content; max-width: calc(100vw - 48px); text-align: center; pointer-events: none; animation: stamp .35s cubic-bezier(.2, 1.4, .4, 1) both; }

/* ══ Tilt ═══════════════════════════════════════════════════
   A picture card that gives under the pointer. Almost nothing
   is here: the rotation, both gradients and the shadow are
   written per frame from the pointer's position, and a rule
   in this file that also had an opinion about any of them
   would be a second author. What is left is the things that
   are true whatever the pointer is doing.

   On this site it carries the auction and squad cards (web/cards.tsx): Bencho's --surface-2 is the site's --card, set here on the
   frame so nothing leaks out. There is no shadow (cards here have none) and no picture. The frame takes the slot's width and the
   card's own height, and a sideways drag tilts it on a phone while a vertical swipe still scrolls the page (pan-y). */
.tlt {
  --surface-2: var(--card);
  position: relative;
  display: flex;
  touch-action: pan-y;
  /* The frame is what the pointer is measured against and it
     is deliberately the ONLY thing in here that never moves.
     The perspective lives on it rather than on the card for
     the usual reason: on the card itself, `perspective` is
     applied per element and the vanishing point rides along
     with the rotation instead of staying put in the room. */}

.tlt-card {
  /* in the flow, not Bencho's absolute fill of a fixed frame: the card is text of any length, so its content sets the height */
  position: relative;
  flex: 1;
  display: flex;
  background-color: var(--surface-2);
  background-size: cover;
  background-position: center;
  /* `cover` and a fixed frame, so the crop is the one
     scripts/butterfly.sh already made rather than a second
     one on top of it */
  overflow: hidden;
  /* NO `will-change`. It would hold a composited layer for
     every copy of this block on the wall, permanently, to
     save one frame on a hover that may never come — the same
     bookkeeping CLAUDE.md objects to for permanent rAF. The
     browser promotes this on its own once the transform
     starts moving. */}
.tlt-card > :not(.tlt-sheen) { flex: 1; min-width: 0; }

/* ── the dent and the rim ───────────────────────────────────
   One element, two gradients, both placed from the pointer —
   the dark one under it and the light one at its mirror. It
   inherits the corner rather than being told one, so the knob
   only has to reach the card. */
.tlt-sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;}

/* ══ Time scrubber ═══════════════════════════════════════
   Bencho's, as the control room's Custom bid wheel (web/TimeScrubber.tsx): a vertical list of amounts under the red band (.wband),
   dragged or flicked, settling on one by a spring. Its tokens are this site's, set here on its own root so nothing leaks out: the
   wheel sits on the sheet's black (--fill-slab), its amounts are bone (--fill-on, --ink) in the site's Fira Code (--font-ui), with the
   site's hairline (--pane-edge) and bone focus ring (--signal). Bencho's --card is only a fallback behind --fill-slab, and this site's
   own --card (the light card colour) is left alone. Square corners, as everywhere here. */
.tms {
  --fill-slab: var(--black); --fill-on: var(--bone); --ink: var(--bone); --font-ui: var(--mono); --pane-edge: var(--hl); --signal: var(--bone);
  border-radius: var(--tms-r);
  background: var(--fill-slab);
  color: var(--fill-on);
  font-family: var(--font-ui);
  user-select: none;
  -webkit-user-select: none;}

/* the wheel: Bencho's ruler stood on end. A drag is the wheel's own, never the page's (touch-action: none: the sheet only covers
   the bottom of the screen, and a vertical drag here means the amount). It fades out at both ends, like a wheel turning away. */
.tms-wheel {
  position: relative;
  height: 100%;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  outline: none;
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);}

.tms-wheel:active { cursor: grabbing; }

.tms-wheel:focus-visible { box-shadow: inset 0 0 0 2px var(--signal); }

/* a row per amount, on the middle line; TimeScrubber moves each one up or down and shrinks and fades it by its distance from the
   band, which is what makes a flat list read as the face of a wheel */
.tms-row {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 22px);
  height: 44px;
  display: grid;
  place-items: center;
  font: 500 22px/1 var(--font-ui);
  font-variant-numeric: tabular-nums;
  color: var(--fill-on);
  transform-origin: 50% 50%;}

/* every tenth amount, where the firmer click is: a little heavier, so the ear and the eye agree */
.tms-row[data-ten] { font-weight: 700; }

/* the amount in the sheet's header, drawn there by the wheel */
.tms-time {
  display: inline-flex;
  font-variant-numeric: tabular-nums;}

/* a digit rolls through a window that FADES rather than clips.
   Each cell is 1.5em for a 1em line, the digit centred in it, so
   at rest the neighbours sit wholly outside the window; the mask
   takes the top and bottom quarter-em to nothing, so a digit on
   the move leaves and arrives through a fade, never an edge. The
   negative margin keeps the line box at 1em. */
.tms-col {
  display: inline-block;
  height: 1.5em;
  margin: -0.25em 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);}

.tms-strip {
  display: flex;
  flex-direction: column;
  transition: transform 220ms cubic-bezier(0.24, 1.34, 0.38, 1);}

.tms-strip > span { height: 1.5em; line-height: 1.5em; }

/* and it smears a little while it rolls */
.tms-strip[data-flip="a"] { animation: tms-blur-a 260ms ease-out; }

.tms-strip[data-flip="b"] { animation: tms-blur-b 260ms ease-out; }

.tms-colon { padding: 0 0.02em; }

@keyframes tms-blur-a { from { filter: blur(2px); } to { filter: blur(0); } }

@keyframes tms-blur-b { from { filter: blur(2px); } to { filter: blur(0); } }

/* reduced motion: the digits change without rolling (the blur is already stopped by the rule above that stops every animation) */
@media (prefers-reduced-motion: reduce) { .tms-strip { transition: none; } }

/* ══ Escape button ═══════════════════════════════════════
   Bencho's, as the header's light-mode switch (web/EscapeButton.tsx, mounted by web/lightSwitch.tsx). Bencho's tokens are this site's,
   set here on the component's own root so nothing leaks out: its ink (--ink, --ink-rgb) is the bone the header's text is drawn in, the
   pill (--fill-slab) is see-through, as the other header icons have no fill (an opaque pill blacked out the Sign in button it ran
   past), the ink on it (--fill-on, --fill-on-rgb) is bone again, the ink on a bone fill (--on-ink) is black, the UI font (--font-ui) is Inter, the hairline (--pane-edge) is the site's
   --hl, and the wash is the 0.05 Bencho's comments give. Bencho's stroke rule is kept for the button alone (it names Bencho's other
   blocks, which this site does not have); nothing here sets data-stroke, so the switch has no border, like the other header icons. */
.esc {
  --ink: var(--bone);
  --ink-rgb: 242, 240, 232;
  --fill-slab: transparent;
  --fill-on: var(--bone);
  --fill-on-rgb: 242, 240, 232;
  --on-ink: var(--black);
  --font-ui: var(--body);
  --pane-edge: var(--hl);
  --wash: .05;
}

/* ── flat panes ────────────────────────────────────────────
   Set data-surface="flat" on any ancestor and every glass
   surface under it becomes a solid fill with a hairline. The
   inner buttons already sit on rgba(var(--ink-rgb), 0.05)
   with no border, which is what flat wants anyway, so they
   need nothing.

   The frost is switched off at the element rather than through
   a token. A var() holding a url() filter cannot be validated
   at parse time, so the browser would treat it as invalid at
   computed-value time and drop the property outright — which
   breaks the two-declaration fallback the glass depends on. */
/* ══ stroke ═════════════════════════════════════════════════
   Whether a component draws a hairline round itself. OFF by
   default, which is the change: every glass surface carried
   one unconditionally, and a grey line round everything makes
   a wall of components look like a wall of boxes rather than
   a wall of things.

   The line is not load-bearing. A flat pane is a fill against
   a different fill and reads on its own; the ring was there
   to sharpen an edge that was already there.

   Placed ABOVE the glass rules on purpose. Glass draws its
   own lit rim, and that rim is the material rather than a
   stroke — it is what gives a pane thickness. So glass wins
   the border wherever the two meet, and Stroke governs the
   drawn line that flat surfaces would otherwise have. */
/* the playful blocks. None of them is glass, so none has a
   lit rim for the stroke to lose to — the hairline is the
   only edge they can have, and it is the whole of what this
   control does for them. */
[data-stroke="on"] .esc-btn::before {
  border-color: var(--pane-edge);}

/* ══ playful blocks ═════════════════════════════════════════
   Escape, Slosh, Shy. The behaviour is the joke and
   the material is not in on it — these use the same ink, the
   same wells and the same corners as everything else on the
   bench. A block that announces it is being funny is not.

   Every one of them is sized here rather than by whatever
   holds it: the wall measures a component and scales it, the
   canvas packs a declared footprint, and both need something
   to measure. Escape in particular needs a real box, because
   "it can never leave its own container" is a promise about a
   specific number of pixels. */

.ply {
  position: relative;
  box-sizing: border-box;
  font-family: var(--font-ui);
  color: var(--ink);}

/* The field the two buttons move inside, and it paints
   nothing at all.

   It was a grey well, on the reasoning that an invisible
   boundary reads as the button sticking. That reasoning was
   right about a SMALL boundary and wrong about the component:
   a 300x160 box put the clamp about fifty pixels from home in
   every direction, so the button hit the wall constantly and
   the wall had to be drawn to explain itself. Draw the wall
   and you have also drawn a widget sitting in a box, which is
   the one thing on this bench that has a frame round it.

   Bigger, and the problem goes away rather than needing to be
   explained: at 360x240 the clamp is over a hundred pixels
   out and the button almost never reaches it. What is left is
   a button on the page with room to bolt across, which is
   what it always should have been. The box still EXISTS —
   it is the layout box the travel is clamped to and the fixed
   centre both blocks measure home from — it simply has no
   surface. */
.ply-field {
  width: 360px;
  height: 240px;
  display: grid;
  place-items: center;}

/* Escape's field at the 300 standard block width; Slosh keeps its own */
.ply-field.esc { width: 300px; }

/* ── 1 · Escape ───────────────────────────────────────────
   Two durations behind one attribute. Fleeing is 130ms: long
   enough that a dart across the cursor — which happens every
   time you walk through the button's home position, and is
   the best thing this component does — travels rather than
   teleporting, and short enough that it is never a wind-up.
   Coming home is 620 and soft, because that one is a relief
   rather than a reaction. */
/* ── the filled surfaces ──────────────────────────────────
   Escape's pill, Slosh's track and Shy's card each read
   --fill-slab / --fill-on, so Fill is a real control on all
   three rather than a row that moves nothing.

   Every one of them keeps its own value as the var() FALLBACK
   and not as a second declaration underneath, which is what
   lets one line serve both cases.

   And both cases do happen. `.bench-app` carries a data-fill
   of its own that follows the theme, so on the wall these are
   already filled — a white pill on a light bench, a near-black
   one on a dark bench — and the overlay's control is then a
   choice to differ from that rather than a switch from
   nothing. The fallback is for a surface mounted outside
   `.bench-app` altogether, which is what a component lifted
   out of this project is.

   --fill-on-rgb rather than --fill-on wherever the ink is not
   at full strength: a fallback has to nest INSIDE the rgba()
   to survive, so it is rgba(var(--fill-on-rgb, var(--ink-rgb)), .78)
   and never rgba(var(--fill-on), .78). */
.esc-btn {
  position: relative;
  /* the box stays the size it was asked to be — it is the TYPE
     that had to come back into line, not the target */
  height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--esc-r, 999px);
  background: var(--fill-slab, rgba(var(--ink-rgb), var(--wash)));
  color: color-mix(in srgb, var(--fill-on, #17181a) 72%, var(--fill-slab, #ffffff));
  font: inherit;
  /* a button's size on the system: 16 medium in a 44 pill. It was
     20 in a 56, set to come out at 14 back when the wall drew this
     block at 0.72; the wall draws every block at 1 now, and 20 was
     the largest button on it */
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  /* the drift home: soft, slightly overshot, and long enough
     to read as the button relaxing rather than snapping */
  transition:
    transform 600ms cubic-bezier(0.24, 1.34, 0.38, 1),
    background 220ms ease,
    color 220ms ease;}

/* the hairline, hung on a ::before like every other stroke on
   the bench — transparent until Stroke says otherwise */
.esc-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  pointer-events: none;}

.esc-btn[data-fled="true"] {
  transition:
    transform 160ms cubic-bezier(0.22, 1, 0.36, 1),
    background 220ms ease,
    color 220ms ease;}

.esc-btn:hover { color: var(--fill-on, var(--ink)); }

/* given in. It stops moving, it says so, and it is now an
   ordinary button — which is the entire payoff and has to
   look like an invitation rather than a defeat. */
.esc-btn[data-caught="true"] { color: var(--fill-on, var(--ink)); }

/* pressed: the chosen fill INVERTED rather than a slab of its
   own. --slab was here and it fought Fill — pick a dark pill
   and the press turned it dark again, which is the confirming
   beat saying nothing. Swapping the two tokens is the same
   beat in whichever fill you asked for. */
.esc-btn[data-done="true"] {
  background: var(--fill-on, var(--ink));
  color: var(--fill-slab, var(--on-ink));}

.esc[data-flat] .esc-btn,
.esc[data-flat] .esc-btn[data-fled="true"] { transition: background 160ms linear, color 160ms linear; }

/* This site's own fit for the header (after Bencho's rules, so it wins). The slot keeps the switch's place in the header, sized and
   spaced as the settings icon beside it (.gear); the field is the slot, and web/EscapeButton.tsx gives the button the screen to move in.
   The button is the 44px icon square until it says "Fine.", then as wide as the word, centred over its place. The site's own button hover and press (style.css .btn, button) are held off: the
   fill stays the pill's and the transform is the component's. */
.gear-slot { position: relative; display: inline-block; width: 44px; height: 44px; flex: none; margin-left: auto; }
.gear-slot .ply-field.esc { width: 100%; height: 100%; }
.gear-slot .esc-btn { min-width: 44px; min-height: 44px; padding: 0 12px; z-index: 1; white-space: nowrap; }
.gear-slot .esc-btn:not([data-done="true"]):hover { background: var(--fill-slab); color: var(--fill-on); }
.gear-slot .esc-btn[data-done="true"] { color: var(--on-ink); } /* Bencho inverts to the pill's colour, which is see-through here */
.esc-icon { display: grid; }

/* ══ Dragging ball ══════════════════════════════════════════
   One circle and its tail. The well is a plain box: the ball
   is centred in it by the grid and moved from there by
   framer's drag, so the constraint numbers in the component
   are distances from the middle and nothing has to be
   measured — which matters, because every card here is drawn
   at a fraction and a measured rect would be scaled.

   Adapted: the ball is the home page's falling 3D object (sport3d.js), so the well is the whole screen, fixed over the page and taking
   no clicks, and the ball is an invisible handle placed over the object by web/DraggingBall.tsx rather than centred by a grid. It sits
   above the page's content (z-index 6, last in the page) and under the header (7). Bencho's .drg-goo rules are left out: there is no goo
   layer here, the chrome model squeezes itself. */
.drg-well {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;}

/* NO BACKGROUND. <Liquid> paints the merged silhouette behind
   it, and a fill here would lay a hard circle on top of the
   liquid edge exactly where the tail is trying to leave it. */
.drg-ball {
  position: absolute;
  pointer-events: auto;
  border-radius: 999px;
  cursor: grab;
  touch-action: none;
  will-change: transform;}

.drg-ball:active { cursor: grabbing; }
@media print { .drg-well { display: none; } }

/* The home page's auction rows are carousels (home.js railNav): one row of cards that slides sideways, freely, with no snapping. Only sideways:
   overflow-y is hidden, so a plain mouse wheel or a vertical swipe over the row scrolls the page as usual, and a trackpad, shift+wheel
   or a sideways swipe moves the row. Three cards to the content width, two on a tablet, one on a phone. A third of the next card always
   hangs off the right edge (3.3 and 2.3 to a view).
   Every card hangs from a string that runs from one screen edge to the other, which is what says the row carries on: the stage sits
   outside .wrap so it is the full width of the screen, and the row's side padding lines the first card up with the page's content. The
   row rises in as a whole (.stage.reveal): a card mostly off the edge never shows enough of itself to rise in on its own. home.js settle() moves each card down to the string and draws the string (.line) through the clips. */
.stage { position: relative; --y0: 10px; --drop: 30px; --pad: 32px; } /* where the string meets the screen edges; clip grip to card top */
/* The string sags under its cards (about 50px in the middle on a wide screen), so it starts high: tucked up under the heading (the 56px under .sec-head, less 16), where
   the heading's tilt leaves room, since its lowest point is at the left and the string is highest at the screen's edges */
#auctions > .stage { margin-top: -40px; } /* the running row; the ended row sits in #endedBox, under its own label */
.line { position: absolute; inset: 0 0 auto; height: 160px; pointer-events: none; } /* under the clips and the cards, which come later */
.line svg { display: block; overflow: visible; }
.line polyline { fill: none; stroke: var(--black); stroke-width: 2; stroke-linejoin: round; }
.rail { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - 3 * 32px) / 3.3); gap: 32px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none;
  padding: calc(var(--y0) + var(--drop)) max(var(--pad), calc((100% - 1400px) / 2 + var(--pad))) 96px; /* the bottom leaves room for the deepest dip and the swing */
  scroll-padding-inline: max(var(--pad), calc((100% - 1400px) / 2 + var(--pad))); }
.rail::-webkit-scrollbar { display: none; } /* the string, not a scrollbar, says there is more */
.rail:has(> .hint) { display: block; } /* "No auctions yet" and the load error take the whole row, with no string (settle() clears it) */
/* a card rides the string down to its clip (--dip); nothing here waits on a transition, so it never lags the string */
.peg-slot { position: relative; display: flex; translate: 0 var(--dip, 0px); }
.peg-slot > .card-slot { flex: 1; }
/* The clip is part of the card (home.js card()), above its top edge, so it tilts, sinks, swings and hangs crooked with the card, as a real
   peg does. Its colour is the auction's (home.js PEGS). It grips the string at <u>, 10px down; the 12px puts that --drop above the card's
   outer edge (the card has a 2px border). The tilt card's face clips what overflows it, so on these rows it does not. */
.rail .tlt-card { overflow: visible; }
.rail .card { position: relative; }
.peg { position: absolute; left: 50%; top: calc(-1 * var(--drop) - 12px); width: 16px; height: 46px; margin-left: -8px; pointer-events: none; }
.peg u { position: absolute; left: 50%; top: 10px; } /* the grip point, measured by settle() */
.peg i { position: absolute; inset: 0; border: 2px solid var(--black); border-radius: 4px 4px 2px 2px; background: linear-gradient(90deg, var(--peg) 0 6px, color-mix(in srgb, var(--peg) 60%, var(--black)) 6px 8px, var(--peg) 8px); } /* two jaws meeting in the middle */
.peg b { position: absolute; left: -4px; right: -4px; top: 18px; height: 8px; background: var(--black); border-radius: 1px; } /* its spring */
/* the card hangs from the clip: the string's slope turns it a little, it hangs a little crooked of its own (--tilt, from its slug), and it
   swings with the row (--sway, home.js). The swing is the transform, on a springy ease that carries it back past straight; the rest is
   rotate, which follows the string at once. The tilt card (web/TiltCard.tsx) still sinks under the pointer inside it. */
.peg-slot > .card-slot { transform-origin: 50% calc(-1 * var(--drop)); rotate: calc(var(--line, 0deg) * .6 + var(--tilt, 0deg)); transform: rotate(var(--sway, 0deg)); transition: transform .9s cubic-bezier(.25, 1.75, .4, 1); }
.rail.moving > .peg-slot > .card-slot { transition: transform .12s linear; }
.rail .tlt { touch-action: pan-x pan-y; } /* a sideways swipe on a card moves the row, rather than tilting the card */
@media (max-width: 1000px) { .rail { grid-auto-columns: calc((100% - 2 * 32px) / 2.3); } }
@media (max-width: 760px) { .stage { --pad: 16px; } } /* the page's own phone margin (.wrap) */
@media (max-width: 700px) { .rail { grid-auto-columns: 100%; gap: 20px; } } /* a full card: any narrower and a city like Mangaluru breaks across two lines in the facts */
@media (prefers-reduced-motion: reduce) { .peg-slot > .card-slot { transition: none; transform: none; } } /* no swing; the hang and the string are still */

/* Dragging the home page's 3D object (web/DraggingBall.tsx) across the page must not select its text on the way */
html.grabbing, html.grabbing * { user-select: none; -webkit-user-select: none; cursor: grabbing; }
