/* bench-ui.css — shared Bench interface rules. ONE source for all five Bench
   pages (bench, bench-564, bench-861, bench-321, bench-1040). Link it, never
   paste it: these pages are separate 300 KB copies and inline rules drift.

   4 Dec 2026 — the entry screen is one line and one button.
   469 of 800 visitors who reached 'ready' never pressed start (wb.bench_events,
   13 Oct–3 Dec). The overlay had carried a beta badge, five calibre chips, a
   five-line paragraph, a Learn/Practise choice, a name field sitting three lines
   under a "NO SIGN-UP" promise, an email form, and a second button above PLAY.
   CSS only: every element the JS references stays in the DOM, just hidden.
   Revert: remove this file's link from the five pages.
   Backup of the original bench.html: .page-backups/bench-entry-4dec/ */
#intro .wb-beta,
#intro .introgames,
#intro .modes,
#intro .s1name,
#intro form.wbm,
#intro .panel > p:not([class]),
#intro .panel > div:has(> #bClass){display:none!important}

/* ── eBay rail, 4 Dec 2026 ───────────────────────────────────────────────
   #wb-ebay-buttons is built by the BENCH-EBAY-BUTTON script (19 Nov). It never
   ran until 4 Dec: <style id="quiz-dock"> was unclosed, so the script was CSS
   text. Once it runs it inserts the box as the next sibling of aside.parts
   inside .mid - and .mid is pointer-events:none, .parts is position:absolute.
   So: anchor the box to the bottom-right of .mid (the play area), directly
   under the PARTS OUT column, with clicks switched back on.
   Measured live 4 Dec, desktop 1280x779: box 1014-1264 x 544-640, tool row
   starts at 650. Phone frame 390x844: box 218-372 x 532-605, Movement/Tray
   switch starts at 614. Click at the box centre lands on #wb-ebay-parts.
   Colours, copy, customids and the disclosure are the script's.
   Revert: delete this block. */
#wb-ebay-buttons{
  position:absolute;
  right:0;
  bottom:0;
  width:250px;
  margin:0!important;
  z-index:5;
  pointer-events:auto;
  background:rgba(20,17,13,.84);
  border:1px solid rgba(201,184,148,.35);
  border-radius:8px;
  box-sizing:border-box;
}
#wb-ebay-buttons a{pointer-events:auto}
/* the "Affiliate link" line: readable, it is the disclosure */
#wb-ebay-buttons > div:last-child{opacity:.85!important;font-size:11px!important}
/* leave room under the parts list for the box; the list already scrolls */
@media (min-width:821px){.parts{max-height:calc(100% - 96px)!important}}

/* Phones and tablets: .parts is hidden. Lift the box clear of the
   Movement/Tray switch and keep it narrow; drop the sold-prices line. */
@media (max-width:820px){
  #wb-ebay-buttons{width:154px;bottom:44px}
  #wb-ebay-buttons #wb-ebay-parts{
    max-width:154px!important;
    padding:9px 10px!important;
    font-size:12.5px!important;
    line-height:1.3!important;
  }
  #wb-ebay-buttons #wb-ebay-sold{display:none!important}
}

/* Entry screen stays exactly as cut on 4 Dec: NOTHING beside PLAY.
   records/NOW.md: "Do not change the entry screen again before ~18 Dec".
   The box appears only once #intro is hidden (PLAY / Sit at the bench). */
body:has(#intro:not([hidden])) #wb-ebay-buttons{display:none!important}
