/* AFC 13 — leilao.html (2/12/2026): the auction of the Madrid 2026 winning suit, inside the studio.
   Rules: ../Motion.md, section "Estúdio". The page is the Jaguar room (pages.css). One accent per view: the
   "Licitar" button (.pill.is-solid). Everything else that glows (the live dot, the board's top line, the step
   numbers, the leading bid) takes the room's light (--light) or its tint (--tint), never the accent; the headline's
   serif fragment wears the tint here so the button stays the only accent on screen.
   Layout: from 980 px the photograph (the last frame of the Madrid podium film already on the home page) stands in a
   sticky column at the left and feathers into the room; the auction reads at the right. Below 980 px the photograph
   bleeds to the edges under the chrome and the board rises over its faded foot. */

.lv { --lv-well: rgb(238 244 252 / .05); --lv-well-hover: rgb(238 244 252 / .09); --lv-err: #ff8a80; }
/* 2/12, his ask: everything 25% smaller so the page shows more at once (the title took the whole screen). The display
   sizes take the full 25%; body copy stops at 15px and the inputs at 16px (below that iOS zooms on focus). */
.lv { --t-title1: clamp(2.1rem, .83rem + 4.05vw, 5.25rem); --t-lede: clamp(1rem, .735rem + .45vw, 1.17rem); --t-body: .94rem; }
.lv .t-accent { color: var(--tint); }

/* ── the photograph and the column ── */
.lv-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; align-items: start; }
.lv-photo { position: relative; margin: 0; }
.lv-photo img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%;
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 97%);
          mask-image: linear-gradient(to bottom, #000 58%, transparent 97%);
}
.lv-cap { margin: 12px 0 0; color: var(--mute); font-family: var(--mono); font-size: .72rem; letter-spacing: 0; }
.lv-col { position: relative; min-width: 0; }

@media (max-width: 979px) {
  .lv-photo { height: min(60svh, 520px); margin: calc(-1 * var(--pg-top)) calc(-1 * var(--gutter)) 0; }
  .lv-cap { display: none; }
  .lv-photo img {   /* the words start where the picture is mostly gone: the tag never sits on the bright podium */
    -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 86%);
            mask-image: linear-gradient(to bottom, #000 40%, transparent 86%);
  }
  .lv-col { margin-top: -16svh; }
}
@media (min-width: 980px) {
  .lv-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 88px); }
  .lv-photo { position: sticky; top: clamp(80px, 10vh, 110px); }
  .lv-photo img {
    aspect-ratio: 720 / 1280; height: auto; max-height: calc(100svh - 150px); border-radius: 6px;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 66%, transparent 99%), linear-gradient(to right, transparent, #000 11%, #000 89%, transparent);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 66%, transparent 99%), linear-gradient(to right, transparent, #000 11%, #000 89%, transparent);
            mask-composite: intersect;
  }
  .lv-col { padding-top: clamp(8px, 2vh, 28px); }
}

/* ── the intro ── */
.lv-intro { gap: clamp(14px, 1.8vw, 22px); }
.lv-intro h1 { max-width: none; }
.lv-tag { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .5em; }
.lv-live { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.lv-live i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--mute); flex: none; }
.lv-live.is-live i { background: var(--light); }
.lv-live.is-live i::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--light);
  animation: lv-ping 1.8s cubic-bezier(.23, 1, .32, 1) infinite;
}
@keyframes lv-ping { from { transform: scale(1); opacity: .65; } to { transform: scale(2.8); opacity: 0; } }

/* ── the board: the leading bid and the clock, between two rules (no card) ── */
.lv-board {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 21px;
  margin-top: clamp(22px, 2.7vw, 36px); padding: clamp(16px, 1.8vw, 22px) 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.lv-board::before {
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: linear-gradient(90deg, var(--light), rgb(var(--light-rgb) / .35) 46%, transparent 88%);
}
@media (min-width: 640px) { .lv-board { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 21px 33px; } }
.lv-k { margin: 0 0 9px; color: var(--mute); }
.lv-amount {
  margin: 0; color: var(--ink); font-family: var(--display); font-weight: 820; font-stretch: 64%;
  font-size: clamp(2.7rem, 1.575rem + 4.05vw, 4.5rem); line-height: .86; letter-spacing: -.005em;
  font-variant-numeric: tabular-nums lining-nums; white-space: nowrap;
}
.lv-amount.is-bump { animation: lv-bump .42s cubic-bezier(.23, 1, .32, 1); }
@keyframes lv-bump { from { transform: translateY(.18em); opacity: .25; } to { transform: none; opacity: 1; } }
.lv-meta { margin: 9px 0 0; color: var(--ink-2); font-family: var(--mono); font-size: .78rem; line-height: 1.5; letter-spacing: 0; }
.lv-meta:empty { display: none; }
.lv-sep:first-child, .lv-sep:last-child { display: none; }

.lv-cd { display: flex; gap: clamp(10px, 1.1vw, 15px); }
.lv-cd-c { display: grid; justify-items: start; gap: 5px; min-width: 2.1em; }
.lv-cd b {
  font-family: var(--display); font-weight: 800; font-stretch: 66%; font-size: clamp(1.725rem, 1.125rem + 1.65vw, 2.475rem);
  line-height: .9; color: var(--ink); font-variant-numeric: tabular-nums lining-nums;
}
.lv-cd i {
  font-style: normal; color: var(--mute); font-family: var(--brand); font-size: 10px; font-weight: 560;
  font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase;
}

/* a line of status above the form: outbid, thank-you, ended, offline */
.lv-notice {
  margin: 15px 0 0; padding: 11px 15px; border-radius: 12px; color: var(--ink);
  background: rgb(var(--light-rgb) / .09); box-shadow: inset 0 0 0 1px rgb(var(--light-rgb) / .34);
  font-size: .9rem; line-height: 1.45; text-wrap: pretty;
}
.lv-notice[hidden] { display: none; }
.lv-notice strong { font-weight: 650; }

/* ── the form (the inquiry panel's fields, 00-inquiry.css, on this page) ── */
.lv-form { display: grid; gap: 14px; max-width: 580px; margin-top: clamp(27px, 3.3vw, 42px); }
.lv-form[hidden] { display: none; }
.lv-h {
  margin: 0 0 4px; color: var(--ink); font-family: var(--display); font-weight: 800; font-stretch: 70%;
  text-transform: uppercase; font-size: clamp(1.2rem, .9rem + .825vw, 1.575rem); line-height: .95; letter-spacing: -.002em;
}
.lv-field { display: grid; gap: 6px; min-width: 0; }
.lv-label {
  display: block; color: var(--ink-2); font-family: var(--brand); font-size: max(11px, .7rem); line-height: 1.3;
  font-weight: 560; font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase;
}
.lv-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 600px) { .lv-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; } }
.lv-input {
  display: block; width: 100%; min-height: 46px; margin: 0; padding: 10px 14px; border: 0; border-radius: 12px;
  color: var(--ink); background: var(--lv-well); box-shadow: inset 0 0 0 1px var(--line-2);
  font-family: var(--text); font-size: max(16px, 1rem); line-height: 1.4; letter-spacing: -.003em;
  transition: box-shadow .2s ease, background-color .2s ease; -webkit-appearance: none; appearance: none;
}
.lv-input:focus, .lv-input:focus-visible { outline: none; background: var(--lv-well-hover); box-shadow: inset 0 0 0 1.5px var(--focus), 0 0 0 4px var(--apex-soft); }
.lv-field.is-bad .lv-input { box-shadow: inset 0 0 0 1.5px var(--lv-err); }
.lv-input:-webkit-autofill, .lv-input:-webkit-autofill:hover, .lv-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink); caret-color: var(--apex);
  -webkit-box-shadow: inset 0 0 0 1px var(--line-2), inset 0 0 0 60px var(--room-deep);
  transition: background-color 9999s;
}
.lv-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lv-input-amount {
  min-height: 52px; text-align: center; font-family: var(--display); font-weight: 820; font-stretch: 70%;
  font-size: 1.5rem; line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums lining-nums;
}
.lv-step {
  display: grid; place-items: center; min-height: 62px; border: 0; border-radius: 14px; padding: 0;
  color: var(--ink); background: var(--lv-well); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background-color .2s ease, scale var(--press-t) ease-out, opacity .2s ease;
}
.lv-quick .lv-step { min-height: 44px; font-family: var(--mono); font-size: .84rem; font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.lv-step:active { scale: .95; }
.lv-step:disabled { opacity: .35; }
.lv-step:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.lv-hint { margin: 0; color: var(--mute); font-family: var(--mono); font-size: .76rem; letter-spacing: 0; }

.lv-check { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--ink-2); font-size: .88rem; line-height: 1.45; cursor: pointer; }
.lv-check input { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: 0; opacity: 0; }
.lv-box {
  display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 6px;
  box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--room-deep); transition: background-color .18s ease, box-shadow .18s ease;
}
.lv-box svg { width: 14px; height: 14px; opacity: 0; transform: scale(.7); transition: opacity .16s ease, transform .2s cubic-bezier(.23, 1, .32, 1); }
.lv-check input:checked + .lv-box { background: var(--tint); box-shadow: none; }
.lv-check input:checked + .lv-box svg { opacity: 1; transform: none; }
.lv-check input:focus-visible + .lv-box { outline: 2px solid var(--focus); outline-offset: 2px; }
.lv-check.is-bad .lv-box { box-shadow: inset 0 0 0 1.5px var(--lv-err); }
.lv-check a, .lv-note a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: .22em; }

.lv-err { display: block; margin: 0; color: var(--lv-err); font-size: .88rem; line-height: 1.4; font-weight: 500; }
.lv-err[hidden] { display: none; }
.lv-submit { width: 100%; min-height: 50px; margin-top: 2px; }
.lv-submit:disabled { opacity: .5; cursor: default; }
.lv-submit[aria-busy="true"] svg { animation: lv-nudge .9s ease-in-out infinite; }
@keyframes lv-nudge { 50% { transform: translateX(4px); } }
.lv-note { margin: 0; max-width: 52ch; color: var(--mute); font-size: var(--t-footnote); line-height: 1.45; }

/* ── the bids ── */
.lv-history { margin-top: clamp(36px, 4.5vw, 54px); max-width: 580px; }
.lv-list { list-style: none; margin: 11px 0 0; padding: 0; border-top: 1px solid var(--line); }
.lv-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.lv-list li.is-new { animation: lv-in .36s cubic-bezier(.23, 1, .32, 1); }
@keyframes lv-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.lv-who { color: var(--ink); font-weight: 600; letter-spacing: .02em; }
.lv-who small { margin-left: 10px; color: var(--light); font-family: var(--brand); font-size: 10px; font-weight: 600; font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase; }
.lv-amt { color: var(--ink); font-family: var(--display); font-weight: 800; font-stretch: 70%; font-size: 1.1rem; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.lv-list li:first-child .lv-amt { color: var(--tint); }
.lv-ago { min-width: 6.5em; text-align: right; color: var(--mute); font-family: var(--mono); font-size: .74rem; letter-spacing: 0; }
.lv-empty { margin: 11px 0 0; color: var(--mute); }
.lv-empty[hidden] { display: none; }

/* ── the suit, how it works, the terms: editorial rows ── */
.lv-more { display: grid; gap: clamp(42px, 5.25vw, 75px); margin-top: clamp(68px, 8.25vw, 112px); }
.lv-block { display: grid; grid-template-columns: minmax(0, 1fr); gap: 15px; padding-top: 20px; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.lv-h2 { font-size: clamp(1.575rem, 1.05rem + 1.65vw, 2.55rem); }
@media (min-width: 980px) {
  .lv-block { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(40px, 5vw, 88px); }
  .lv-block > .lv-h2 { grid-row: 1 / span 3; }
  .lv-block > :not(.lv-h2) { grid-column: 2; }
}
.lv-specs { display: grid; grid-template-columns: minmax(0, 1fr); margin: 4px 0 0; column-gap: 32px; }
@media (min-width: 640px) { .lv-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lv-specs div { padding: 11px 0; border-top: 1px solid var(--line); }
.lv-specs dt { color: var(--mute); font-family: var(--brand); font-size: max(11px, .7rem); font-weight: 560; font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase; }
.lv-specs dd { margin: 5px 0 0; color: var(--ink); font-weight: 600; font-size: var(--t-body); }

.lv-steps { list-style: none; margin: 0; padding: 0; counter-reset: lv; max-width: 62ch; }
.lv-steps li { counter-increment: lv; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: var(--t-body); line-height: 1.55; }
.lv-steps li::before { content: counter(lv, decimal-leading-zero); color: var(--light); font-family: var(--mono); font-size: .8rem; line-height: 1.95; letter-spacing: 0; }

.lv-terms { margin: 0; max-width: 72ch; font-size: var(--t-body); }
.lv-terms div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; padding: 12px 0; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .lv-terms div { grid-template-columns: minmax(150px, 13rem) minmax(0, 1fr); gap: 24px; } }
.lv-terms dt { color: var(--ink); font-weight: 650; line-height: 1.5; }
.lv-terms dd { margin: 0; color: var(--ink-2); line-height: 1.55; text-wrap: pretty; }

@media (hover: hover) and (pointer: fine) {
  .lv-input:hover { background: var(--lv-well-hover); }
  .lv-step:not(:disabled):hover { background: var(--lv-well-hover); }
  .lv-check:hover .lv-box { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
  .lv-check a:hover, .lv-note a:hover { text-decoration-color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  .lv-live.is-live i::after { animation: none; opacity: 0; }
  .lv-amount.is-bump { animation: lv-fade .3s ease; }
  .lv-list li.is-new { animation: lv-fade .3s ease; }
  .lv-submit[aria-busy="true"] svg { animation: none; }
  @keyframes lv-fade { from { opacity: .3; } to { opacity: 1; } }
}
@media (prefers-contrast: more) {
  .lv { --lv-well: transparent; --lv-well-hover: transparent; }
  .lv-input, .lv-step { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
}

/* the eyebrow on phones: "Ao vivo" on one line, "100% para beneficência" under it, no stray dot */
@media (max-width: 480px) { .lv-tag-sep { display: none; } .lv-tag-rest { display: block; margin-top: 6px; } }
