/* Lyfex case study, part 2: the Auction Room, the collection, visual language, results and responsive rules. */

/* ---------- the auction room (velvet, spotlit) ---------- */
.lx-room-live { overflow: clip; background: radial-gradient(70% 60% at 30% 0%, #3b2b4c 0%, var(--lx-velvet) 70%); color: var(--white); }
.lx-room-live::before { content: ""; position: absolute; top: 0; left: 50%; width: min(1100px, 90%); height: 70%; background: radial-gradient(ellipse 50% 60% at 50% 0%, rgb(247 200 0 / 12%), transparent 70%); transform: translateX(-50%); pointer-events: none; }
.lx-live__head { display: grid; justify-items: center; gap: 18px; max-width: 760px; margin: 0 auto; text-align: center; }
.lx-live__head .cs-kicker { margin: 0; }
.lx-live__head .cs-serif { color: var(--lx-yellow); }
.lx-live__head .cs-lead { color: rgb(255 255 255 / 72%); }
.lx-live { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 80px); align-items: center; margin-top: clamp(56px, 6vw, 80px); }
.lx-frame--dark { justify-self: end; width: min(100%, 640px); }
.lx-frame--dark .lx-mat { background: #f3f1f6; }
.lx-frame--dark .lx-mat img { width: 100%; }

.lx-bidbox { display: grid; gap: 8px; padding: clamp(26px, 3vw, 36px); border: 1px solid rgb(212 166 42 / 40%); border-radius: 22px; background: rgb(255 255 255 / 5%); box-shadow: 0 40px 80px -40px rgb(0 0 0 / 70%); }
.lx-bidbox .lx-card__lot { margin-top: 14px; color: var(--lx-gold); }
.lx-bidbox__live { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--lx-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: rgb(255 255 255 / 65%); }
.lx-bidbox__live span { width: 9px; height: 9px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 0 0 rgb(255 77 77 / 60%); animation: lx-pulse 1.6s infinite; }
.lx-bidbox__title { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(25px, 2.2vw, 32px); line-height: 1.1; }
.lx-bidbox__by { margin: 0; font-size: 14px; color: rgb(255 255 255 / 60%); }
.lx-bidbox__nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0 8px; }
.lx-bidbox__nums > div { display: grid; gap: 6px; padding: 16px 18px; border-radius: 14px; background: rgb(255 255 255 / 6%); }
.lx-bidbox__nums span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgb(255 255 255 / 55%); }
.lx-bidbox__nums strong { font-family: var(--lx-mono); font-size: clamp(19px, 1.7vw, 26px); font-weight: 600; line-height: 1.1; color: var(--lx-yellow); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lx-bidbox__nums div + div strong { font-size: clamp(15px, 1.25vw, 19px); color: var(--white); }
.lx-bidbox__nums strong.is-up { animation: lx-flash .9s ease; }
.lx-bids { display: grid; margin: 0 0 14px; padding: 0; list-style: none; }
.lx-bids li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid rgb(255 255 255 / 10%); font-size: 14.5px; }
.lx-bids li.is-new { animation: lx-in .6s cubic-bezier(.22, 1, .36, 1) both; }
.lx-bids li.is-you .lx-bids__who { color: var(--lx-yellow); }
.lx-bids__av { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #f3d77f, #a87c12); font-size: 13px; font-weight: 700; color: var(--lx-ink); }
.lx-bids__who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-bids__amt { font-family: var(--lx-mono); font-size: 13.5px; color: rgb(255 255 255 / 75%); }
.lx-paddle { padding: 16px 24px; border: 0; border-radius: 999px; background: var(--lx-yellow); font: inherit; font-size: 16px; font-weight: 600; color: var(--lx-ink); white-space: nowrap; cursor: pointer; transition: transform .2s, background .2s; }
.lx-paddle:hover { background: #ffd83d; transform: translateY(-1px); }
.lx-paddle:active { transform: translateY(1px); }
.lx-paddle:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.lx-bidbox__msg { min-height: 1.5em; margin: 6px 0 0; font-size: 13px; line-height: 1.5; text-align: center; color: rgb(255 255 255 / 55%); }
@keyframes lx-pulse { 70% { box-shadow: 0 0 0 9px rgb(255 77 77 / 0%); } 100% { box-shadow: 0 0 0 0 rgb(255 77 77 / 0%); } }
@keyframes lx-flash { 0% { color: var(--white); text-shadow: 0 0 18px rgb(247 200 0 / 90%); } 100% { text-shadow: none; } }
@keyframes lx-in { from { opacity: 0; transform: translateY(-10px); background: rgb(247 200 0 / 18%); } to { opacity: 1; transform: none; background: transparent; } }

/* ---------- the full collection ---------- */
.lx-coll { background: linear-gradient(180deg, #efece6, var(--cs-bg)); }
.lx-coll__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px clamp(48px, 6vw, 112px); align-items: center; }
.lx-frame--tall { justify-self: center; width: min(100%, 540px); }
.lx-frame--tall .lx-mat img { width: 100%; }
.lx-index { display: grid; margin: 8px 0 0; padding: 0; list-style: none; counter-reset: lx; }
.lx-index li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 2px 0; padding: 14px 0; border-top: 1px solid var(--cs-line); font-size: 15px; line-height: 1.5; color: var(--cs-muted); counter-increment: lx; }
.lx-index li::before { content: counter(lx, upper-roman); grid-row: 1 / 3; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 18px; color: var(--accent); }
.lx-index b { font-weight: 600; color: var(--cs-ink); }

/* ---------- visual language ---------- */
.lx-craft { background: #fbfaf7; }
.lx-craft__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; margin-top: 56px; }
.lx-type, .lx-coins, .lx-steps { margin: 0; padding: 30px; background: #fff; border: 1px solid var(--cs-line); }
.lx-type { display: grid; align-content: start; gap: 8px; }
.lx-type p:not([class]) { margin: 0 0 10px; font-size: 14.5px; line-height: 1.6; color: var(--cs-muted); }
.lx-type__name { margin: 10px 0 0; font-weight: 600; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.05; letter-spacing: -.02em; color: var(--cs-ink); }
.lx-coins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; list-style: none; }
.lx-coins li { display: grid; justify-items: center; gap: 4px; font-family: var(--lx-mono); font-size: 12px; color: var(--cs-faint); text-align: center; }
.lx-coins li::before { content: ""; width: clamp(64px, 6vw, 92px); aspect-ratio: 1; margin-bottom: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 5px #fff, 0 0 0 7px rgb(212 166 42 / 55%), 0 16px 26px -14px rgb(40 28 6 / 50%); }
.lx-coins span { font-family: var(--font); font-size: 15px; font-weight: 600; color: var(--cs-ink); }
.lx-steps { display: grid; align-content: start; list-style: none; counter-reset: st; }
.lx-steps li { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--cs-line); font-size: 14.5px; line-height: 1.6; color: var(--cs-muted); counter-increment: st; }
.lx-steps li:first-child { padding-top: 0; border-top: 0; }
.lx-steps b { font-size: 17px; font-weight: 600; color: var(--cs-ink); }
.lx-steps b::before { content: "Room " counter(st, upper-roman) " · "; font-family: var(--lx-mono); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

/* ---------- results: placards hung from a gold rail, each with a red "sold" dot ---------- */
.lx-sold { background: var(--lx-marble); }
.lx-rail { position: relative; display: grid; align-items: start; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: clamp(64px, 7vw, 96px) 0 0; padding: 56px 0 0; list-style: none; }
.lx-rail::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 7px; border-radius: 4px; background: linear-gradient(180deg, #f3d77f, #9f7412); box-shadow: 0 6px 14px -6px rgb(40 28 6 / 45%); }
.lx-rail li { position: relative; display: grid; align-content: start; gap: 10px; padding: 30px 26px 32px; background: #fff; box-shadow: 0 24px 44px -32px rgb(40 28 6 / 45%); }
.lx-rail li::before { content: ""; position: absolute; bottom: 100%; left: 50%; width: 1px; height: 49px; background: var(--lx-wire); }
.lx-rail li::after { content: ""; position: absolute; top: 18px; right: 18px; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff6b5e, #c4271c); box-shadow: 0 2px 4px rgb(196 39 28 / 40%); }
.lx-rail li:nth-child(even) { margin-top: 36px; }
.lx-rail li:nth-child(even)::before { height: 85px; }
.lx-rail h3 { padding-right: 24px; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(21px, 1.7vw, 25px); line-height: 1.15; }
.lx-rail p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--cs-muted); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .lx-craft__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx-steps { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  .lx-hero__wall, .lx-note__grid, .lx-live, .lx-coll__grid { grid-template-columns: 1fr; }
  .lx-salon { max-width: 760px; }
  .lx-lot, .lx-lot:nth-child(even) { grid-template-columns: 1fr; justify-items: center; }
  .lx-lot .lx-frame, .lx-lot:nth-child(even) .lx-frame { order: 0; justify-self: center; }
  .lx-card { max-width: 600px; }
  .lx-frame--dark { justify-self: center; }
  .lx-bidbox { width: min(100%, 560px); justify-self: center; }
  .lx-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 64px; }
  .lx-rail li:nth-child(even) { margin-top: 0; }
  .lx-rail li:nth-child(n + 3)::before { display: none; }
  .lx-rail li:nth-child(even)::before { height: 49px; }
}
@media (max-width: 720px) {
  .lx-hero__wall { row-gap: 22px; }
  .lx-hero__label { display: contents; }
  .lx-salon { order: 1; margin-top: 16px; padding-top: 26px; }
  .lx-frame--main { margin-bottom: 28px; }
  .lx-plaque { order: 2; margin-top: 12px; padding: 22px; gap: 14px 18px; }
  .lx-plaque > div:last-child { grid-column: 1 / -1; }
  .lx-cat { padding: 26px 22px 16px; }
  .lx-hang { gap: 96px; margin-top: 96px; }
  .lx-lot .lx-frame::before { height: 40px; }
  .lx-lot .lx-frame::after { bottom: calc(100% + 36px); }
  .lx-card { padding: 22px 20px 24px; }
  .lx-craft__grid { grid-template-columns: 1fr; }
  .lx-type, .lx-coins, .lx-steps { padding: 24px 22px; }
  .lx-rail { grid-template-columns: 1fr; gap: 20px; padding-top: 40px; }
  .lx-rail li::before { display: none; }
  .lx-rail li:first-child::before { display: block; height: 33px; }
}
@media (prefers-reduced-motion: reduce) {
  .lx-bidbox__live span, .lx-bids li.is-new, .lx-bidbox__nums strong.is-up { animation: none; }
}
