/* ============================================================
   LOT — "The Ledger Room"
   A private desk under a bright azure skylight: the room is lit blue and moving,
   the catalogue is printed on a porcelain sheet laid on that desk.
   Two surfaces, one token set: :root paints the room, and the .paper block
   repaints the same tokens for everything printed on the sheet.
   ============================================================ */

:root {
  /* The room: azure rather than navy, so the light reads as sky, not shadow. */
  --void: #0a2a63;
  --ink: #10397f;
  --ink-2: #164aa0;
  --ink-3: #2465c8;

  /* the porcelain the catalogue is printed on: cool, so the room's light reads
     on it, with a pure white top edge where the sheet catches the skylight */
  --paper: #e9f1ff;
  --paper-hi: #ffffff;

  /* text and rules on the azure side — the room is bright now, so everything
     printed on it is pushed up a stop to hold against the light */
  --fg: #f7fbff;
  --fg-2: #dbe9ff;
  --dim: #b4cdf0;

  --hair: rgba(233, 243, 255, 0.19);
  --hair-2: rgba(233, 243, 255, 0.1);
  --hair-3: rgba(233, 243, 255, 0.055);

  /* foil: iced white with a sky cast */
  --foil: #d9e9ff;
  --foil-hi: #ffffff;
  --foil-lo: #7ba5dd;
  --foil-veil: rgba(201, 223, 255, 0.18);
  --foil-line: rgba(201, 223, 255, 0.38);
  --foil-ink: #0a2a63;

  /* key figures: prices and countdowns, never body text */
  --key: #8fd3ff;
  --key-glow: rgba(143, 211, 255, 0.45);

  --jade: #63e7b6;
  --jade-glow: rgba(99, 231, 182, 0.5);
  --bad: #ff9a8f;
  --bad-wash: rgba(255, 154, 143, 0.1);

  --font-display: "Fraunces", "Noto Serif SC", "Songti SC", Georgia, serif;
  /* Handles get their own face: Fraunces at display weights is a light, quirky
     letterform, and a username has to read like a title deed, not a flourish. */
  --font-handle: "Source Serif 4", "Fraunces", "Noto Serif SC", Georgia, serif;
  --font-ui: "Instrument Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-num: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --tabbar-h: 62px;
  --pad: 22px;
  --tap: 44px;
}

* { box-sizing: border-box; }

html {
  margin: 0;
  min-height: 100%;
  background: var(--void);
}

body {
  margin: 0;
  min-height: 100%;
  /* transparent on purpose: body's own background would paint over .room,
     which sits behind the content on a negative z-index */
  background: transparent;
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--fg);
  padding: 0 var(--pad);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
}

::selection { background: var(--foil-veil); color: var(--fg); }

/* ======================= the porcelain sheet =======================
   Same token names, repainted for a light surface. Every component inside
   inherits the flip, so ink, hairlines and foil all invert together. */

main,
.tabbar,
.docket-card,
.stage-card {
  --fg: #0f2a5e;
  --fg-2: #35507f;
  --dim: #6a83ad;

  --hair: rgba(15, 42, 94, 0.16);
  --hair-2: rgba(15, 42, 94, 0.095);
  --hair-3: rgba(15, 42, 94, 0.05);

  --foil: #1560d8;
  --foil-hi: #3f86ff;
  --foil-lo: #0c47a8;
  --foil-veil: rgba(21, 96, 216, 0.12);
  --foil-line: rgba(21, 96, 216, 0.3);
  --foil-ink: #ffffff;

  --key: #0a51cf;
  --key-glow: rgba(10, 81, 207, 0.45);

  --jade: #01996c;
  --jade-glow: rgba(1, 153, 108, 0.42);
  --bad: #ce362b;
  --bad-wash: rgba(206, 54, 43, 0.07);

  color: var(--fg);
}

main {
  display: block;
  /* z-index (not just relative) so the halo below can sit under the print
     without escaping behind the sheet itself */
  position: relative;
  z-index: 0;
  overflow: hidden;
  /* breaks out of the body gutter so the sheet is full-bleed, then re-pads */
  margin: 0 calc(var(--pad) * -1);
  padding: 2px var(--pad) calc(var(--tabbar-h) + 46px + env(safe-area-inset-bottom));
  min-height: 62svh;
  border-radius: 15px 15px 0 0;
  background: linear-gradient(180deg, var(--paper-hi) 0%, var(--paper) 26%);
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.7) inset,
    0 -26px 60px rgba(4, 18, 48, 0.4);
}

/* the room's light bleeding through the porcelain: a slow azure halo that
   drifts under the print, never over it (negative z-index keeps text crisp) */
main::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -16%;
  left: -18%;
  right: -18%;
  height: 78%;
  pointer-events: none;
  background:
    radial-gradient(44% 40% at 24% 20%, rgba(24, 118, 255, 0.16) 0%, transparent 72%),
    radial-gradient(40% 36% at 82% 6%, rgba(0, 196, 205, 0.12) 0%, transparent 74%),
    radial-gradient(52% 44% at 58% 92%, rgba(90, 130, 255, 0.09) 0%, transparent 76%);
  animation: halo 24s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

/* ============================ the room ============================ */

.room {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    linear-gradient(178deg, #2e73cf 0%, #17469f 44%, #0a2a63 100%);
}
.room > span { position: absolute; display: block; }

/* cool ceiling light over the desk */
.room-light {
  inset: -20% -20% auto -20%;
  height: 105vh;
  background:
    radial-gradient(56% 44% at 64% 4%, rgba(200, 228, 255, 0.5) 0%, rgba(126, 182, 255, 0.18) 44%, transparent 74%),
    radial-gradient(72% 54% at 10% 36%, rgba(52, 122, 224, 0.28) 0%, transparent 70%);
}

/* the halo: three soft lights drifting behind everything, the only motion in
   the room itself. Transform and opacity only, so it stays on the compositor. */
.room-aura {
  inset: -30% -25%;
  background:
    radial-gradient(30% 24% at 24% 22%, rgba(128, 224, 255, 0.4) 0%, transparent 70%),
    radial-gradient(28% 22% at 78% 12%, rgba(140, 176, 255, 0.34) 0%, transparent 72%),
    radial-gradient(34% 30% at 58% 78%, rgba(96, 240, 216, 0.2) 0%, transparent 74%);
  animation: aura 28s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

/* a single slanted shaft of light — replaces the usual blurred blobs */
.room-shaft {
  top: -30vh;
  left: 34%;
  width: 78vw;
  height: 150vh;
  transform: rotate(19deg);
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(226, 242, 255, 0.07) 38%,
    rgba(226, 242, 255, 0.13) 50%,
    rgba(226, 242, 255, 0.05) 60%,
    transparent 100%
  );
  filter: blur(14px);
  opacity: 0.85;
}

/* engine-turned engraving, like the guilloche on a share certificate */
.room-guilloche {
  inset: 0;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(64deg, rgba(235, 246, 255, 0.05) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(-58deg, rgba(170, 214, 255, 0.042) 0 1px, transparent 1px 11px);
  -webkit-mask-image: radial-gradient(78% 58% at 50% 22%, #000 0%, transparent 78%);
  mask-image: radial-gradient(78% 58% at 50% 22%, #000 0%, transparent 78%);
}

.room-grain {
  inset: -60%;
  opacity: 0.26;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='180' height='180' filter='url(%23n)' opacity='0.5'/></svg>");
}

.room-vignette {
  inset: 0;
  background: radial-gradient(128% 90% at 50% 30%, transparent 48%, rgba(4, 20, 56, 0.44) 100%);
}

.foil-edge {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 1px;
  z-index: 30;
  background: linear-gradient(90deg, transparent, var(--foil-veil) 18%, rgba(240, 249, 255, 0.62) 50%, var(--foil-veil) 82%, transparent);
  pointer-events: none;
}

/* ============================ hero ============================ */

.hero {
  position: relative;
  min-height: 60svh;
  padding: calc(20px + env(safe-area-inset-top)) 0 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  animation: rise 0.65s var(--ease) both;
  transition: min-height 0.45s var(--ease), padding 0.45s var(--ease);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--foil-veil) 16%, rgba(201, 223, 255, 0.55) 50%, var(--foil-veil) 84%, transparent);
}

.hero-top {
  position: absolute;
  top: calc(20px + env(safe-area-inset-top));
  left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.eyebrow {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--foil);
  opacity: 0.9;
}

.lang-switch {
  position: relative;
  z-index: 40;
  display: inline-flex;
  flex-shrink: 0;
  border: 1px solid var(--hair);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(12, 47, 108, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.lang-btn {
  min-height: 34px;
  min-width: 52px;
  border: 0;
  background: transparent;
  color: var(--dim);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 8px 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color 0.25s, background 0.3s;
}
.lang-btn.active {
  background: linear-gradient(180deg, var(--foil-hi), var(--foil));
  color: var(--foil-ink);
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(5.6rem, 35vw, 12.5rem);
  line-height: 0.76;
  letter-spacing: -0.05em;
  transition: font-size 0.45s var(--ease);
}
.brand-word {
  display: inline-block;
  /* engraved silver: the dark stops are what make it read as metal against a
     bright room, so the sheen has something to travel across */
  background: linear-gradient(
    100deg,
    #123566 0%, #9fc8f2 22%, var(--foil-hi) 40%,
    #ffffff 48%, #cfe6ff 58%, #4b7fbe 78%, #123566 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 11s ease-in-out infinite;
}

.hero-sub {
  margin: 15px 0 0;
  max-width: 28ch;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: italic;
  font-size: 1.14rem;
  line-height: 1.42;
  color: var(--fg-2);
}

/* the register: engraved data cells instead of a hero card grid */
.register {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 0;
  margin: 24px 0 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair-2);
}
.reg-cell { padding: 12px 16px 12px 0; min-width: 0; }
.reg-cell + .reg-cell { border-left: 1px solid var(--hair-2); padding-left: 16px; }
.reg-cell-wide { text-align: right; padding-right: 0; }
.register dt {
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 6px;
  white-space: nowrap;
}
.register dd {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reg-cell-wide dd { justify-content: flex-end; }

.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--jade);
  box-shadow: 0 0 0 0 var(--jade-glow);
  animation: pulse 2.6s ease-out infinite;
}
.badge { font-size: 0.7rem; letter-spacing: 0.04em; }
.badge.ok { color: var(--jade); }
.badge.wait { color: var(--foil); }

.hero-cta { margin-top: 22px; }

/* ============================ buttons ============================ */

.cta, a.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 13px 24px;
  border: 0;
  border-radius: 2px;
  overflow: hidden;
  text-decoration: none;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--foil-ink);
  background: linear-gradient(180deg, var(--foil-hi) 0%, var(--foil) 54%, var(--foil-lo) 100%);
  box-shadow: 0 12px 30px var(--foil-veil), inset 0 1px 0 rgba(255, 255, 255, 0.32);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 0.16s var(--ease), box-shadow 0.25s, opacity 0.25s;
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, 0.5) 50%, transparent 64%);
  transform: translateX(-120%);
  transition: transform 0.75s ease;
}
.cta:active { transform: translateY(1px); }
.cta:active::after { transform: translateX(120%); }
.cta:disabled { opacity: 0.42; box-shadow: none; }
.cta.sent {
  background: none;
  color: var(--jade);
  border: 1px solid var(--jade-glow);
  box-shadow: none;
}

.ghost-cta {
  min-height: var(--tap);
  border: 1px solid var(--hair);
  border-radius: 2px;
  background: transparent;
  color: var(--foil);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 11px 18px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.25s, color 0.25s;
}
.ghost-cta:disabled { opacity: 0.55; }
.ghost-cta.sent { color: var(--jade); border-color: var(--jade-glow); }

.ghost, .back {
  min-height: var(--tap);
  border: 0;
  background: transparent;
  color: var(--dim);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ghost:active, .back:active { color: var(--foil); }
.back {
  display: block;
  margin-bottom: 14px;
  color: var(--foil);
  letter-spacing: 0.1em;
}

.cta-hint {
  margin: 11px 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--dim);
  min-height: 1em;
}
.cta-hint.ok { color: var(--jade); }
.cta-hint.bad { color: var(--bad); }

/* ============================ sections ============================ */

.tab-panel { display: none; padding-top: 26px; }
.tab-panel.active { display: block; animation: rise 0.42s var(--ease) both; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.05rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.section-hint {
  margin: 9px 0 0;
  max-width: 42ch;
  color: var(--dim);
  font-size: 0.86rem;
  line-height: 1.55;
}
.stamp {
  margin: 8px 0 18px;
  font-family: var(--font-num);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  opacity: 0.8;
  min-height: 0.8em;
}
.sub {
  margin: 32px 0 12px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.42rem;
  letter-spacing: -0.015em;
}

.empty {
  margin: 24px 0;
  color: var(--dim);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 40ch;
}
.hidden { display: none !important; }
.dim { color: var(--dim); }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

/* ============================ the ledger ============================ */

.ledger { display: block; }

.lot {
  --i: 0;
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 16px 0;
  text-align: left;
  border: 0;
  border-top: 1px solid var(--hair-2);
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  animation: deal 0.55s var(--ease) both;
  animation-delay: calc(var(--i) * 52ms);
  transition: padding-left 0.24s var(--ease), background 0.24s;
}
.lot:last-child { border-bottom: 1px solid var(--hair-2); }
.lot::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 11px; bottom: 11px;
  width: 2px;
  background: linear-gradient(180deg, var(--foil-hi), var(--foil-lo));
  transform: scaleY(0);
  transition: transform 0.26s var(--ease);
}
.lot:active { padding-left: 11px; background: rgba(21, 96, 216, 0.055); }
.lot:active::before { transform: scaleY(1); }

.lot .idx {
  font-family: var(--font-num);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--foil);
  opacity: 0.6;
}
.lot .body { min-width: 0; }
.lot .name {
  display: block;
  font-family: var(--font-handle);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 1.46rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
  word-break: break-word;
}
.lot .sub-meta {
  display: block;
  margin-top: 4px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--dim);
}
.lot .right {
  text-align: right;
  font-family: var(--font-num);
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: nowrap;
}
.lot .price { display: block; color: var(--fg); font-weight: 500; }
.lot .clock { display: block; color: var(--dim); font-size: 0.72rem; }
.lot .clock.urgent { color: var(--key); animation: tick 1.8s ease-in-out infinite; }

/* a lot with no clock yet: the slot reads as waiting, not as expired */
.lot .clock.is-idle {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---- the fuse: how much of a lot's window is left, as a line ----
   Spans the row's full width and burns down from right to left. `--left` is
   the fraction of the window still to run; the ticker writes it every second,
   and the transition is what makes the line move instead of jump. */
.fuse {
  --left: 1;
  position: relative;
  display: block;
  grid-column: 1 / -1;
  height: 2px;
  margin-top: 13px;
  border-radius: 2px;
  background: var(--hair-2);
  overflow: hidden;
}
.fuse::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--left) * 100%);
  /* the last minutes of a two-day window are a fraction of a pixel: keep a
     visible ember rather than letting the line vanish before the lot closes */
  min-width: 4px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--foil-lo), var(--foil), var(--foil-hi));
  box-shadow: 0 0 9px var(--foil-veil);
  transition: width 1s linear, background 0.6s var(--ease);
}
/* the last hour: the line turns to the figure colour and breathes */
.fuse.urgent::after {
  background: linear-gradient(90deg, var(--foil), var(--key));
  box-shadow: 0 0 12px var(--key-glow, var(--foil-veil));
  animation: fuse-pulse 2.1s ease-in-out infinite;
}
.fuse.spent::after { width: 0; min-width: 0; }

/* the sheet gets the same gauge, wider, with the ends of the window marked */
.fuse-lg {
  height: 3px;
  margin: 16px 0 0;
  grid-column: auto;
}

@keyframes fuse-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
  .fuse::after { transition: none; animation: none; }
}

.lot.is-closed { opacity: 0.72; }
.lot.is-closed .name { color: var(--fg-2); }
.lot.is-closed .idx { opacity: 0.3; }

/* shelved: full contrast (it is buyable), but the index sits back a little */
.lot.is-shelved .idx { opacity: 0.42; }

/* the record: a line of history, so it does not invite a tap */
.lot.is-record { cursor: default; }
.lot.is-record:active { padding-left: 0; background: transparent; }
.lot.is-record:active::before { transform: scaleY(0); }
.lot.is-record .name { color: var(--fg-2); font-weight: 300; }
.lot.is-record .idx { opacity: 0.3; }
.lot.is-record .status-tag { color: var(--foil); }
.ledger.is-record .lot { opacity: 0.92; }

/* guest price treatment: a wax-sealed slip, not a broken field */
.seal-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 8px;
  border: 1px solid var(--foil-line);
  border-radius: 2px;
  font-family: var(--font-ui);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--key);
  background-image:
    repeating-linear-gradient(45deg, var(--foil-veil) 0 1px, transparent 1px 5px);
  background-color: transparent;
}
.seal-tag::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: radial-gradient(circle at 32% 30%, var(--foil-hi), var(--foil) 52%, var(--foil-lo));
  box-shadow: 0 0 0 1px var(--foil-line);
}
.status-tag {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.status-tag.live { color: var(--jade); }

/* ============================ lot detail ============================ */

/* element-scoped on purpose: a bare .detail also matched the body-level state
   class, animating <body> and making it the containing block for every
   position: fixed overlay (the sheet then anchored to the document, not the
   viewport, pushing its buttons off-screen) */
#view-detail { padding-top: 2px; animation: rise 0.4s var(--ease) both; }

.detail-head { margin-bottom: 22px; }
.detail-no {
  display: block;
  margin-bottom: 8px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--foil);
  opacity: 0.75;
}
.detail-name {
  margin: 0;
  font-family: var(--font-handle);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(2.2rem, 11.5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.018em;
  word-break: break-word;
}
.detail-name .at { color: var(--foil); font-weight: 400; }

.rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.rail-cell { padding: 15px 10px 15px 0; min-width: 0; }
.rail-cell + .rail-cell { border-left: 1px solid var(--hair-2); padding-left: 14px; }
.rail-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--dim);
}
.rail strong {
  font-size: 1rem;
  font-weight: 500;
  word-break: break-word;
}
#d-price { color: var(--key); transition: color 0.3s; }
#d-price.flash { animation: flash 0.9s var(--ease); }
#d-ends.urgent { color: var(--key); animation: tick 1.8s ease-in-out infinite; }

/* a shelved lot states its own status: waiting for the offer that opens it */
.open-note {
  margin: 18px 0 0;
  padding: 13px 0 13px 14px;
  border-left: 2px solid var(--foil);
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--fg-2);
}

.ended-note {
  margin: 18px 0 0;
  padding: 13px 0 13px 14px;
  border-left: 2px solid var(--foil-line);
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--fg-2);
}
.lead-note {
  margin: 0 0 18px;
  padding: 12px 0 12px 14px;
  border-left: 2px solid var(--jade-glow);
  font-size: 0.84rem;
  color: var(--jade);
}

/* sealed panel for guests */
.seal-panel {
  position: relative;
  margin-top: 24px;
  padding: 24px 20px;
  border: 1px solid var(--hair);
  border-radius: 3px;
  overflow: hidden;
  background:
    repeating-linear-gradient(58deg, rgba(15, 42, 94, 0.032) 0 1px, transparent 1px 9px),
    linear-gradient(158deg, rgba(21, 96, 216, 0.115), var(--paper-hi) 62%);
}
.seal-panel .wax {
  position: absolute;
  top: -26px; right: -26px;
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 1px solid var(--foil-line);
  background: radial-gradient(circle at 34% 30%, var(--foil-veil), transparent 62%);
  box-shadow: inset 0 0 34px var(--foil-veil);
}
.seal-panel strong {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.34rem;
  letter-spacing: -0.01em;
}
.seal-panel p {
  margin: 0 0 18px;
  max-width: 36ch;
  color: var(--fg-2);
  font-size: 0.87rem;
  line-height: 1.6;
}

/* ============================ bidding ============================ */

.bid-form { margin-top: 26px; }
.bid-form label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--dim);
}
.bid-row { display: flex; gap: 8px; }
.bid-row input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  border: 1px solid var(--hair);
  border-radius: 2px;
  background: var(--paper-hi);
  padding: 14px;
  font-family: var(--font-num);
  font-size: 1.06rem; /* ≥16px: iOS must not zoom the field on focus */
  color: var(--fg);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  -webkit-appearance: none;
  appearance: none;
}
.bid-row input:focus {
  border-color: var(--foil);
  box-shadow: 0 0 0 3px var(--foil-veil);
}
.bid-row input:disabled { opacity: 0.5; }
.bid-row button {
  min-width: 118px;
  min-height: 52px;
  border: 0;
  border-radius: 2px;
  padding: 0 18px;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--foil-ink);
  background: linear-gradient(180deg, var(--foil-hi) 0%, var(--foil) 54%, var(--foil-lo) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.bid-row button:disabled { opacity: 0.4; box-shadow: none; }

.hint { margin: 12px 0 0; font-size: 0.74rem; letter-spacing: 0.02em; color: var(--dim); }
.msg { margin: 10px 0 0; min-height: 1.2em; font-size: 0.85rem; line-height: 1.55; }
.msg.ok { color: var(--jade); }
.msg.bad { color: var(--bad); }

.bid-warn {
  margin: 20px 0 0;
  padding: 12px 0 12px 14px;
  border-left: 2px solid var(--bad);
  color: var(--bad);
  font-size: 0.79rem;
  line-height: 1.55;
}

.bid-list { list-style: none; margin: 0; padding: 0; }
.bid-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair-2);
  font-size: 0.87rem;
  color: var(--fg-2);
}
.bid-list li:first-child { color: var(--fg); }
.bid-list .who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bid-list .amt {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  color: var(--fg);
  flex-shrink: 0;
}
.bid-list li:first-child .amt { color: var(--key); }
/* your own offer: the only row a bidder can identify in the register */
.bid-list li.mine .who {
  color: var(--foil);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ============================ guide ============================ */

.rules { margin: 22px 0 0; padding: 0; list-style: none; counter-reset: r; }
.rules li {
  counter-increment: r;
  position: relative;
  padding: 15px 0 15px 44px;
  border-top: 1px solid var(--hair-2);
  color: var(--fg-2);
  font-size: 0.92rem;
  line-height: 1.6;
}
.rules li:last-child { border-bottom: 1px solid var(--hair-2); }
.rules li::before {
  content: counter(r, decimal-leading-zero);
  position: absolute;
  left: 0; top: 17px;
  font-family: var(--font-num);
  font-size: 0.66rem;
  color: var(--foil);
  opacity: 0.62;
}

.terms { margin-top: 26px; }
.terms-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.terms-line {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--foil);
}

.warn-box {
  margin-top: 28px;
  padding: 18px 18px 18px 16px;
  border-left: 2px solid var(--bad);
  background: linear-gradient(100deg, var(--bad-wash), transparent 72%);
}
.warn-box strong {
  display: block;
  margin-bottom: 10px;
  color: var(--bad);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.warn-box p { margin: 0; font-size: 0.87rem; line-height: 1.6; color: var(--fg-2); }

/* ============================ support ============================ */

.plate {
  position: relative;
  margin: 22px 0 28px;
  padding: 26px 20px 24px;
  border: 1px solid var(--hair);
  border-radius: 3px;
  overflow: hidden;
  background:
    repeating-linear-gradient(58deg, rgba(15, 42, 94, 0.032) 0 1px, transparent 1px 9px),
    linear-gradient(158deg, rgba(21, 96, 216, 0.125), var(--paper-hi) 66%);
}
.plate-corner {
  position: absolute;
  top: 10px; right: 10px;
  width: 26px; height: 26px;
  border-top: 1px solid var(--foil-line);
  border-right: 1px solid var(--foil-line);
}
.plate-label {
  margin: 0 0 8px;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.plate-handle {
  margin: 0 0 20px;
  font-family: var(--font-handle);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 2.1rem;
  line-height: 1.06;
  letter-spacing: -0.015em;
  word-break: break-word;
}

.rows { display: block; }
.row { padding: 18px 0; border-top: 1px solid var(--hair-2); }
.row:last-child { border-bottom: 1px solid var(--hair-2); }
.row-label {
  display: block;
  margin-bottom: 9px;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.row-body { margin: 0; font-size: 0.87rem; line-height: 1.6; color: var(--fg-2); }
.row-body + .ghost-cta { margin-top: 14px; }
.row-body.req { margin-top: 12px; font-size: 0.8rem; }
.row-body.req:empty { display: none; }
.row-body.req.ok { color: var(--jade); }
.row-body.req.bad { color: var(--bad); }

/* ============================ tabbar ============================ */

.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: grid !important;
  grid-template-columns: repeat(5, 1fr);
  min-height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding: 4px 4px calc(6px + env(safe-area-inset-bottom));
  background: rgba(240, 246, 255, 0.94);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  backdrop-filter: blur(20px) saturate(1.25);
  border-top: 1px solid var(--hair);
}
.tab-btn {
  position: relative;
  min-height: var(--tap);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 2px;
  border: 0;
  background: transparent;
  color: var(--dim);
  font: inherit;
  /* five slots now: the label has to survive a 320px viewport unbroken */
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color 0.25s;
}
.tab-btn > span:last-child { white-space: nowrap; }
@media (max-width: 340px) {
  .tab-btn { font-size: 0.5rem; letter-spacing: 0.06em; }
  .tab-mark { width: 19px; height: 19px; }
}
.tab-mark {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  opacity: 0.5;
  transition: opacity 0.25s, color 0.25s, transform 0.28s var(--ease);
}
.tab-mark svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.tab-btn::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 0; height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--foil), transparent);
  transition: width 0.34s var(--ease);
}
.tab-btn.active { color: var(--fg); }
.tab-btn.active::before { width: 74%; }
.tab-btn.active .tab-mark {
  color: var(--foil);
  opacity: 1;
  transform: translateY(-1px);
}

/* ============================ compact hero ============================ */

body.compact .hero {
  min-height: 0;
  padding-top: calc(14px + env(safe-area-inset-top));
  padding-bottom: 14px;
}
/* in flow, so the eyebrow can never collide with the shrunken wordmark */
body.compact .hero-top { position: static; margin-bottom: 10px; }
body.compact .brand { font-size: clamp(2.1rem, 12vw, 2.9rem); line-height: 0.9; }
body.compact .hero-sub,
body.compact .hero-cta { display: none; }
body.compact .register { margin-top: 14px; }

/* a lot detail replaces the list context — the list heading would be noise */
body.viewing-lot #tab-lots > .section-head,
body.viewing-lot #tab-lots > .section-hint,
body.viewing-lot #tab-lots > .stamp { display: none; }

/* ============================ lifecycle + operator ============================ */

.retired-note {
  margin: 16px 0 0;
  padding: 12px 0 12px 14px;
  border-left: 2px solid var(--hair);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--dim);
}
.lot.is-retired { opacity: 0.62; }
.lot.is-retired .name { text-decoration: line-through 1px var(--dim); }

.operator {
  margin-top: 22px;
  padding: 16px 16px 14px;
  border: 1px dashed var(--hair-2);
  border-radius: 3px;
  background: linear-gradient(160deg, var(--foil-veil), transparent 70%);
}
.op-label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.54rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--foil);
}
.op-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.op-actions .ghost { flex: 1 1 auto; min-height: var(--tap); }
.op-actions .ghost[hidden] { display: none; }
.op-msg { margin: 12px 0 0; font-size: 0.82rem; line-height: 1.5; }
.op-msg:empty { display: none; }
.op-msg.ok { color: var(--jade); }
.op-msg.bad { color: var(--bad); }

/* catalogue paging — the list is never silently cut short */
.ledger-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: 18px;
}
.ledger-foot[hidden] { display: none; }
.ledger-foot .ghost { min-height: var(--tap); }
.ledger-foot .ghost[hidden] { display: none; }

/* ============================ docket (sign before writing) ============================ */

.docket {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.docket[hidden] { display: none; }
.docket-scrim {
  position: absolute;
  inset: 0;
  background: rgba(5, 22, 58, 0.74);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: fade 0.3s ease both;
}
.docket-card {
  position: relative;
  width: 100%;
  max-width: 32rem;
  max-height: 88vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 26px 22px calc(22px + env(safe-area-inset-bottom));
  border: 1px solid var(--hair);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  background:
    repeating-linear-gradient(58deg, rgba(15, 42, 94, 0.03) 0 1px, transparent 1px 9px),
    linear-gradient(168deg, rgba(21, 96, 216, 0.105), var(--paper-hi) 58%);
  box-shadow: 0 -24px 60px rgba(4, 18, 48, 0.5);
  animation: deal 0.42s var(--ease) both;
}
.docket-seal {
  position: absolute;
  top: -30px; right: -30px;
  width: 108px; height: 108px;
  border-radius: 50%;
  border: 1px solid var(--foil-line);
  background: radial-gradient(circle at 34% 30%, var(--foil-veil), transparent 62%);
  box-shadow: inset 0 0 36px var(--foil-veil);
  pointer-events: none;
}
.docket-eyebrow {
  margin: 0 0 8px;
  font-size: 0.54rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--foil);
}
.docket-title {
  margin: 0 0 10px;
  font-family: var(--font-handle);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 1.62rem;
  line-height: 1.16;
  letter-spacing: -0.012em;
  word-break: break-word;
}
.docket-body {
  margin: 0 0 18px;
  max-width: 40ch;
  color: var(--fg-2);
  font-size: 0.87rem;
  line-height: 1.6;
}
.docket-rows { margin: 0 0 18px; }
.docket-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--hair-3);
}
.docket-row:last-child { border-bottom: 1px solid var(--hair-3); }
.docket-row dt {
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--dim);
}
.docket-row dd { margin: 0; font-size: 0.95rem; color: var(--fg); }
.docket-row dd.lead {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--key);
}
.docket-warn {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-left: 2px solid var(--bad);
  background: var(--bad-wash);
  font-size: 0.79rem;
  line-height: 1.55;
  color: var(--fg-2);
}
.docket-warn.hidden { display: none; }
.docket-expiry {
  margin: 0 0 12px;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--dim);
}
.docket-expiry:empty { display: none; }
.docket-expiry.urgent { color: var(--key); }
.docket-msg { margin: 0 0 14px; font-size: 0.82rem; line-height: 1.5; }
.docket-msg:empty { display: none; }
.docket-msg.bad { color: var(--bad); }
.docket-msg.warn { color: var(--key); }
.docket-actions { display: flex; flex-direction: column; gap: 10px; }
.docket-actions .cta,
.docket-actions .ghost { width: 100%; min-height: var(--tap); }
body.docketed { overflow: hidden; }

/* ============================ stage (loading / error / outside / maintenance) ============ */

.stage {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(28px + env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom));
  background: rgba(5, 22, 58, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  animation: fade 0.35s ease both;
}
.stage[hidden] { display: none; }
.stage-card {
  width: 100%;
  max-width: 30rem;
  padding: 32px 24px 28px;
  border: 1px solid var(--hair);
  border-radius: 3px;
  text-align: left;
  background:
    repeating-linear-gradient(58deg, rgba(15, 42, 94, 0.03) 0 1px, transparent 1px 9px),
    linear-gradient(158deg, rgba(21, 96, 216, 0.105), var(--paper-hi) 64%);
  animation: rise 0.45s var(--ease) both;
}
.stage-mark {
  display: block;
  width: 34px; height: 34px;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 1px solid var(--foil-line);
  background: radial-gradient(circle at 34% 30%, var(--foil-hi), var(--foil-veil) 58%, transparent 72%);
}
.stage.is-loading .stage-mark { animation: breathe 1.6s ease-in-out infinite; }
.stage.is-error .stage-mark { border-color: var(--bad); }
.stage-eyebrow {
  margin: 0 0 10px;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--foil);
  opacity: 0.85;
}
.stage-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.85rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.stage-body {
  margin: 0;
  color: var(--fg-2);
  font-size: 0.9rem;
  line-height: 1.65;
}
.stage-body:empty { display: none; }
.stage-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 24px;
}
.stage-actions:empty { display: none; }
.stage-actions [hidden] { display: none; }
.stage-actions .ghost { text-align: center; }

/* Telegram light theme: keep the LOT room, just lift it off pure black slightly
   so it does not read as a hole in a bright client. */
body.tg-light .room-vignette { opacity: 0.82; }
body.tg-light .room-grain { opacity: 0.2; }
body.tg-light .room-light { opacity: 1.1; }

/* ============================ Chinese type treatment ============================ */

html[lang="zh-CN"] body { font-size: 16.5px; }
html[lang="zh-CN"] .hero-sub {
  font-style: normal;
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
  max-width: none;
  line-break: strict;
}
/* wide Latin tracking looks broken on CJK glyphs — tighten it everywhere */
html[lang="zh-CN"] .eyebrow,
html[lang="zh-CN"] .register dt,
html[lang="zh-CN"] .rail-label,
html[lang="zh-CN"] .row-label,
html[lang="zh-CN"] .plate-label,
html[lang="zh-CN"] .terms-label,
html[lang="zh-CN"] .lot .sub-meta,
html[lang="zh-CN"] .stage-eyebrow,
html[lang="zh-CN"] .warn-box strong,
html[lang="zh-CN"] .seal-tag,
html[lang="zh-CN"] .status-tag,
html[lang="zh-CN"] .tab-btn { letter-spacing: 0.1em; }
html[lang="zh-CN"] .register dt,
html[lang="zh-CN"] .rail-label,
html[lang="zh-CN"] .row-label,
html[lang="zh-CN"] .plate-label,
html[lang="zh-CN"] .terms-label { font-size: 0.62rem; }
html[lang="zh-CN"] .tab-btn { font-size: 0.64rem; }
html[lang="zh-CN"] .lot .sub-meta { font-size: 0.68rem; letter-spacing: 0.06em; }
html[lang="zh-CN"] .seal-tag { font-size: 0.62rem; letter-spacing: 0.08em; }
html[lang="zh-CN"] .section-head h2,
html[lang="zh-CN"] .stage-title,
html[lang="zh-CN"] .sub { letter-spacing: 0.01em; }
html[lang="zh-CN"] .seal-panel strong { letter-spacing: 0.02em; }
html[lang="zh-CN"] .rules li,
html[lang="zh-CN"] .row-body,
html[lang="zh-CN"] .warn-box p,
html[lang="zh-CN"] .section-hint,
html[lang="zh-CN"] .seal-panel p,
html[lang="zh-CN"] .stage-body { line-height: 1.85; }
html[lang="zh-CN"] .cta,
html[lang="zh-CN"] a.cta,
html[lang="zh-CN"] .ghost-cta,
html[lang="zh-CN"] .bid-row button { letter-spacing: 0.14em; font-size: 0.82rem; }
html[lang="zh-CN"] .ghost, html[lang="zh-CN"] .back { letter-spacing: 0.1em; font-size: 0.76rem; }
html[lang="zh-CN"] .docket-eyebrow,
html[lang="zh-CN"] .op-label,
html[lang="zh-CN"] .docket-row dt { letter-spacing: 0.1em; font-size: 0.64rem; }
html[lang="zh-CN"] .docket-title { letter-spacing: 0.01em; }
html[lang="zh-CN"] .docket-body,
html[lang="zh-CN"] .docket-warn,
html[lang="zh-CN"] .retired-note { line-height: 1.85; }

/* ============================ motion ============================ */

@keyframes rise {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes deal {
  from { opacity: 0; transform: translateY(11px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheen {
  0%, 100% { background-position: 172% 0; }
  50% { background-position: -60% 0; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--jade-glow); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@keyframes tick {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
@keyframes flash {
  0% { color: var(--jade); transform: translateY(-2px); }
  100% { color: var(--key); transform: translateY(0); }
}
@keyframes breathe {
  0%, 100% { opacity: 0.45; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.04); }
}
/* the two ambient halos: long, uneven, and never returning to the same spot on
   the way back, so the room reads as lit rather than animated */
@keyframes aura {
  0% { transform: translate3d(-2.5%, -2%, 0) scale(1); opacity: 0.72; }
  40% { transform: translate3d(1%, 2%, 0) scale(1.09); opacity: 1; }
  100% { transform: translate3d(4%, -1%, 0) scale(1.04); opacity: 0.84; }
}
@keyframes halo {
  0% { transform: translate3d(-3%, 0, 0) scale(1); opacity: 0.7; }
  45% { transform: translate3d(2%, 2.5%, 0) scale(1.12); opacity: 1; }
  100% { transform: translate3d(5%, -1.5%, 0) scale(1.05); opacity: 0.82; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .brand-word { background-position: 50% 0; }
}

/* ============================ small screens ============================ */

@media (max-width: 380px) {
  :root { --pad: 18px; }
  .lot { grid-template-columns: 26px 1fr auto; gap: 10px; }
  .lot .name { font-size: 1.34rem; }
  .register { grid-template-columns: 1fr 1fr; }
  .reg-cell-wide {
    grid-column: 1 / -1;
    text-align: left;
    border-left: 0;
    border-top: 1px solid var(--hair-2);
    padding-left: 0;
  }
  .reg-cell-wide dd { justify-content: flex-start; }
  .rail { grid-template-columns: 1fr 1fr; }
  .rail-cell:nth-child(3) {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--hair-2);
    padding-left: 0;
  }
  .bid-row { flex-direction: column; }
  .bid-row button { width: 100%; }
  .plate-handle { font-size: 1.95rem; }
}

@media (min-width: 560px) {
  body { max-width: 46rem; margin: 0 auto; }
  .hero-sub { font-size: 1.24rem; }
}
