/* YMP — Your Motor Pick. Broadcast-control-room design system.
   Rule: graphite + white. Colour only means state: mint = you're winning / good, red = outbid / urgent, amber = warning. */
:root {
  --bg: #0a0b0d; --bg-2: #101215; --bg-3: #16191d; --bg-4: #1d2126;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --ink: #f3f4f6; --ink-2: #b9bec7; --ink-3: #7c838e;
  --win: #2ff3a5; --win-ink: #04140d; --out: #ff4d4f; --warn: #ffb020;
  --r: 14px; --r-sm: 10px;
  --display: 'Archivo', system-ui, sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.65,0,.2,1);
  --pad: clamp(16px, 3vw, 40px);
  --head: 64px;
}
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.label { font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.muted { color: var(--ink-2); }
.hidden, [hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- header ---------- */
.head { position: sticky; top: 0; z-index: 40; height: var(--head); display: flex; align-items: center; gap: 24px; padding: 0 var(--pad); background: rgba(10,11,13,.82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { height: 28px; width: 116px; flex: none; }
.brand small { font: 500 11px var(--mono); color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: 14px; transition: color .2s, background .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--bg-3); }
.head__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.live-dot { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 10px; border-radius: 999px; background: rgba(255,77,79,.12); color: #ffd7d7; font: 600 11px var(--mono); letter-spacing: .12em; }
.live-dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--out); box-shadow: 0 0 0 0 rgba(255,77,79,.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255,77,79,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,79,0); } }
.power-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; }
.power-chip b { font-family: var(--mono); font-weight: 600; }
@media (max-width: 760px) { .nav { display: none; } .brand small { display: none; } .power-chip span { display: none; } .head { gap: 10px; } .head__right { gap: 6px; } .live-dot { display: none !important; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 14px; letter-spacing: -.01em; transition: transform .15s var(--ease), background .2s, color .2s, box-shadow .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { box-shadow: 0 0 0 4px rgba(255,255,255,.12); }
.btn--ghost { border: 1px solid var(--line-2); }
.btn--ghost:hover { background: var(--bg-3); }
.btn--win { background: var(--win); color: var(--win-ink); }
.btn--sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); transition: background .2s; }
.icon-btn:hover { background: var(--bg-3); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 6px; font: 600 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; background: var(--bg-4); color: var(--ink-2); border: 1px solid var(--line); }
.badge svg { width: 12px; height: 12px; }
.badge--win { background: rgba(47,243,165,.12); color: var(--win); border-color: rgba(47,243,165,.3); }
.badge--out { background: rgba(255,77,79,.12); color: #ff8a8b; border-color: rgba(255,77,79,.3); }
.badge--warn { background: rgba(255,176,32,.12); color: var(--warn); border-color: rgba(255,176,32,.3); }
.badge--ink { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- views ---------- */
main { min-height: calc(100svh - var(--head)); }
.view { display: none; }
.view.is-on { display: block; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }

/* ---------- home ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(40px, 7vw, 96px); padding-bottom: 48px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero h1 { margin: 0; font: 800 clamp(48px, 8.2vw, 120px)/.86 var(--display); font-stretch: 125%; letter-spacing: -.035em; text-transform: uppercase; }
.hero h1 .thin { font-weight: 300; color: var(--ink-3); }
.hero p.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 36ch; margin: 22px 0 28px; }
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero__trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 28px; color: var(--ink-3); font-size: 13px; }
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 16px; height: 16px; color: var(--ink-2); }
.livecard { position: relative; border-radius: 22px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); aspect-ratio: 4 / 3.1; display: block; isolation: isolate; }
.livecard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kb 22s ease-in-out infinite alternate; }
.livecard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,11,13,.1) 40%, rgba(10,11,13,.92)); z-index: 1; }
.livecard__top .badge--out { background: var(--out); color: #fff; border-color: var(--out); }
.livecard__top { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; z-index: 2; }
.livecard__bottom { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: end; }
.livecard__title { font: 700 22px/1.1 var(--display); font-stretch: 112%; }
.livecard__price { font: 600 34px/1 var(--mono); text-align: right; }
.livecard__bar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.livecard__bar i { display: block; height: 100%; background: var(--win); transform-origin: left; }
@keyframes kb { from { transform: scale(1.04) translate(0,0); } to { transform: scale(1.14) translate(-2%, -1%); } }
@media (max-width: 900px) { .hero__grid { grid-template-columns: minmax(0,1fr); } .livecard__bottom { grid-template-columns: 1fr; } .livecard__price { text-align: left; font-size: 28px; } .livecard__title { font-size: 19px; } }

.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section h2 { margin: 0; font: 800 clamp(30px, 4vw, 52px)/.95 var(--display); font-stretch: 118%; letter-spacing: -.03em; text-transform: uppercase; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { padding: 22px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); }
.step b { display: block; font: 700 18px var(--display); font-stretch: 110%; margin: 14px 0 6px; }
.step p { margin: 0; color: var(--ink-2); font-size: 14px; }
.step .n { font: 600 12px var(--mono); color: var(--ink-3); }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.why div { background: var(--bg); padding: 24px; }
.why svg { width: 22px; height: 22px; }
.why b { display: block; margin: 14px 0 6px; font-weight: 600; }
.why p { margin: 0; color: var(--ink-2); font-size: 14px; }
@media (max-width: 900px) { .steps, .why { grid-template-columns: 1fr; } }

.lots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1100px) { .lots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lots { grid-template-columns: 1fr; } }
.lotcard { position: relative; border-radius: var(--r); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); transition: border-color .2s, transform .3s var(--ease); }
.lotcard:hover { border-color: var(--line-2); transform: translateY(-3px); }
.lotcard__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-3); }
.lotcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.lotcard:hover .lotcard__img img { transform: scale(1.05); }
.lotcard__body { padding: 14px 16px 16px; }
.lotcard__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lotcard h3 { margin: 8px 0 2px; font: 700 17px/1.2 var(--display); font-stretch: 108%; }
.lotcard__meta { color: var(--ink-3); font-size: 13px; }
.lotcard__price { margin-top: 12px; display: flex; justify-content: space-between; align-items: end; }
.lotcard__price .num { font-size: 18px; font-weight: 600; }
.lotcard__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.lotcard__watch { position: absolute; top: 10px; right: 10px; background: rgba(10,11,13,.6); backdrop-filter: blur(6px); }
.lotcard.is-live { border-color: rgba(255,77,79,.5); }
.lotcard.is-done { opacity: .62; }

/* ---------- live ---------- */
.live > * { min-width: 0; }
.live { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 0; height: calc(100svh - var(--head)); }
.live__main { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; border-right: 1px solid var(--line); }
.stage { position: relative; overflow: hidden; background: #000; min-height: 0; }
.stage__media, .stage canvas, .stage mux-player { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage__media { animation: kb 24s ease-in-out infinite alternate; }
.stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.45), transparent 22%, transparent 60%, rgba(0,0,0,.75)); }
.stage__top { position: absolute; z-index: 3; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.stage__top > div { display: flex; gap: 6px; flex-wrap: wrap; }
.stage .badge { background: rgba(10,11,13,.6); backdrop-filter: blur(8px); border-color: rgba(255,255,255,.12); color: var(--ink); }
.stage .badge--live { background: var(--out); border-color: var(--out); color: #fff; }
.stage__bottom { position: absolute; z-index: 3; left: 18px; right: 18px; bottom: 16px; display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.stage__title { font: 800 clamp(22px, 3vw, 40px)/1 var(--display); font-stretch: 115%; letter-spacing: -.02em; text-transform: uppercase; }
.stage__sub { color: var(--ink-2); margin-top: 6px; font-size: 14px; }
.stage__overlay { position: absolute; z-index: 4; inset: 0; display: grid; place-items: center; pointer-events: none; }
.stage__overlay span { font: 900 clamp(40px, 7vw, 96px)/1 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.03em; color: #fff; text-shadow: 0 6px 40px rgba(0,0,0,.6); opacity: 0; }
.stage__pinned { position: absolute; z-index: 3; left: 18px; top: 58px; max-width: min(440px, 70%); padding: 12px 14px; border-radius: 12px; background: rgba(10,11,13,.78); backdrop-filter: blur(10px); border: 1px solid var(--line-2); font-size: 13px; }
.stage__pinned b { display: block; font: 600 10.5px var(--mono); letter-spacing: .12em; color: var(--ink-3); text-transform: uppercase; margin-bottom: 4px; }
.stage__demo { position: absolute; z-index: 3; right: 18px; top: 56px; }
.runstrip { display: flex; gap: 8px; padding: 10px 14px; overflow-x: auto; background: var(--bg); scrollbar-width: none; border-top: 1px solid var(--line); }
.runstrip::-webkit-scrollbar { display: none; }
.runchip { flex: 0 0 auto; display: flex; gap: 10px; align-items: center; padding: 6px 12px 6px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); font-size: 12.5px; min-width: 210px; }
.runchip img { width: 54px; height: 38px; border-radius: 8px; object-fit: cover; }
.runchip b { display: block; font-weight: 600; font-size: 12.5px; white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.runchip.is-live { border-color: var(--out); }
.runchip.is-done { opacity: .5; }

.rail { display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.bidpanel { padding: 18px 18px 14px; border-bottom: 1px solid var(--line); }
.bidpanel__badges { display: flex; gap: 6px; flex-wrap: wrap; }
.bidpanel__price { display: flex; justify-content: space-between; align-items: end; margin: 14px 0 6px; }
.bidpanel__price .num { font-size: 46px; font-weight: 600; line-height: 1; }
.bidpanel__time { text-align: right; }
.bidpanel__time .num { font-size: 26px; font-weight: 600; }
.leader { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 10px; background: var(--bg-3); font-weight: 600; font-size: 14px; transition: background .25s, color .25s; }
.leader i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.leader.is-win { background: rgba(47,243,165,.14); color: var(--win); }
.leader.is-win i { background: var(--win); }
.leader.is-out { background: rgba(255,77,79,.14); color: #ff8a8b; }
.leader.is-out i { background: var(--out); }
.clockbar { height: 6px; border-radius: 6px; background: var(--bg-4); overflow: hidden; margin: 12px 0 14px; }
.clockbar i { display: block; height: 100%; width: 100%; background: var(--win); transform-origin: left; border-radius: 6px; }
.allin { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13px; display: grid; gap: 4px; }
.allin div { display: flex; justify-content: space-between; color: var(--ink-2); }
.allin div.total { color: var(--ink); font-weight: 600; border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; }
.allin input { width: 74px; height: 24px; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 6px; padding: 0 6px; font: 12px var(--mono); color: var(--ink); }
.swipe { position: relative; height: 60px; border-radius: 999px; background: var(--ink); color: var(--bg); margin-top: 12px; overflow: hidden; user-select: none; touch-action: none; }
.swipe__label { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: 15px; letter-spacing: -.01em; padding-left: 44px; }
.swipe__fill { position: absolute; inset: 0 auto 0 0; width: 60px; background: var(--win); border-radius: 999px; }
.swipe__knob { position: absolute; top: 5px; left: 5px; width: 50px; height: 50px; border-radius: 50%; background: var(--bg); color: var(--ink); display: grid; place-items: center; cursor: grab; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.swipe__knob svg { width: 22px; height: 22px; }
.swipe.is-sending .swipe__label { opacity: .5; }
.swipe.is-disabled { background: var(--bg-4); color: var(--ink-3); }
.swipe.is-disabled .swipe__knob { cursor: not-allowed; }
.ymp { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.ymp__field { flex: 1; display: flex; align-items: center; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); padding: 0 6px 0 14px; }
.ymp__field span { color: var(--ink-3); font: 600 11px var(--mono); letter-spacing: .1em; margin-right: 8px; }
.ymp__field input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font: 600 16px var(--mono); }
.trust { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; color: var(--ink-3); font-size: 11.5px; }
.trust span { display: inline-flex; gap: 5px; align-items: center; }
.trust svg { width: 13px; height: 13px; }
.bidmsg { min-height: 18px; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.bidmsg.is-err { color: #ff8a8b; }
.bidmsg.is-ok { color: var(--win); }

.tabs { display: flex; gap: 2px; padding: 8px 10px 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button { padding: 9px 12px; font-size: 13px; color: var(--ink-3); border-bottom: 2px solid transparent; font-weight: 500; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
.tabpanes { flex: 1; min-height: 0; overflow: auto; }
.pane { display: none; padding: 14px 18px 18px; }
.pane.is-on { display: block; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13.5px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; text-align: right; }
.score { display: grid; grid-template-columns: 90px 1fr 34px; gap: 10px; align-items: center; font-size: 13px; margin-bottom: 8px; }
.score i { height: 6px; border-radius: 6px; background: var(--bg-4); overflow: hidden; display: block; }
.score i b { display: block; height: 100%; background: var(--ink); border-radius: 6px; }
.hist { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.hist li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hist li.you { color: var(--win); }
.hist small { color: var(--ink-3); margin-left: 6px; }

.chat { display: flex; flex-direction: column; height: 100%; }
.chat__list { flex: 1; overflow: auto; padding: 4px 0 8px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.msg { font-size: 13.5px; line-height: 1.4; }
.msg b { font-weight: 600; margin-right: 6px; }
.msg .v { color: var(--win); font: 600 9.5px var(--mono); letter-spacing: .08em; margin-right: 6px; }
.msg.host b { color: var(--warn); }
.msg.bot { padding: 8px 10px; border-radius: 10px; background: var(--bg-3); }
.msg.bot b { color: var(--ink); }
.msg .reply { display: block; color: var(--ink-3); font-size: 12px; margin-bottom: 2px; }
.msg.ask .tag { font: 600 9.5px var(--mono); letter-spacing: .08em; color: var(--warn); margin-right: 6px; }
.chat__form { display: flex; gap: 6px; align-items: center; padding-top: 8px; border-top: 1px solid var(--line); }
.chat__form input[type=text] { flex: 1; min-width: 0; height: 40px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); padding: 0 14px; outline: 0; }
.ask-toggle { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ask-toggle[aria-pressed="true"] { background: var(--warn); color: #1d1300; border-color: var(--warn); }

.clips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.clip { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16/10; background: var(--bg-3); }
.clip img { width: 100%; height: 100%; object-fit: cover; }
.clip span { position: absolute; left: 8px; right: 8px; bottom: 6px; font-size: 11.5px; text-shadow: 0 1px 4px #000; }
.empty { color: var(--ink-3); font-size: 13px; padding: 10px 0; }

@media (max-width: 1000px) {
  .live { grid-template-columns: minmax(0, 1fr); height: auto; }
  .live__main { border-right: 0; }
  .stage { aspect-ratio: 4 / 3.4; }
  .rail { min-height: 0; }
  .tabpanes { max-height: none; }
  .bidpanel { position: sticky; bottom: 0; z-index: 20; background: rgba(10,11,13,.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); order: 3; }
  .rail { display: flex; flex-direction: column; }
  .bidpanel__price .num { font-size: 36px; }
  .chat__list { max-height: 320px; }
}

/* ---------- detail ---------- */
.detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; padding-top: 28px; padding-bottom: 64px; }
.detail__img { border-radius: 18px; overflow: hidden; aspect-ratio: 16/10; background: var(--bg-2); }
.detail__img img { width: 100%; height: 100%; object-fit: cover; }
.detail h1 { margin: 6px 0 4px; font: 800 clamp(30px, 4vw, 46px)/1 var(--display); font-stretch: 115%; letter-spacing: -.02em; text-transform: uppercase; }
.card { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; background: var(--bg-2); }
.card + .card { margin-top: 14px; }
.card h3 { margin: 0 0 12px; font: 700 15px var(--display); font-stretch: 108%; }
.qa { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.qa li { font-size: 14px; }
.qa .a { margin-top: 6px; padding: 10px 12px; border-radius: 10px; background: var(--bg-3); color: var(--ink-2); }
.qa .a b { color: var(--ink); font-weight: 600; }
.qa form { display: flex; gap: 8px; }
.field { width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); padding: 0 14px; outline: 0; }
.field:focus { border-color: var(--ink-2); }
.detail > * { min-width: 0; }
@media (max-width: 900px) { .detail { grid-template-columns: minmax(0,1fr); } }

/* ---------- wallet ---------- */
.wallet { max-width: 760px; margin: 0 auto; padding: 32px var(--pad) 80px; }
.wallet h1 { font: 800 clamp(32px, 5vw, 52px)/.95 var(--display); font-stretch: 118%; text-transform: uppercase; letter-spacing: -.03em; margin: 0 0 8px; }
.power { display: flex; justify-content: space-between; align-items: end; padding: 22px; border-radius: 18px; background: linear-gradient(135deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line-2); margin: 22px 0; }
.power .num { font-size: 40px; font-weight: 600; }
.checklist { display: grid; gap: 10px; }
.check { display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: center; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); }
.check__icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font: 600 13px var(--mono); }
.check.is-done .check__icon { background: var(--win); color: var(--win-ink); border-color: var(--win); }
.check b { display: block; font-weight: 600; }
.check p { margin: 2px 0 0; color: var(--ink-3); font-size: 13px; }
.holds { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.holds button { height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font: 600 13px var(--mono); }
.holds button:hover { background: var(--bg-3); }
#payment-element { margin: 12px 0; }
.win { border: 1px solid rgba(47,243,165,.3); background: rgba(47,243,165,.05); border-radius: 16px; padding: 16px; display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.win img { width: 110px; height: 76px; border-radius: 10px; object-fit: cover; }
.win ol { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 13.5px; }
.win ol li.done { color: var(--win); }

/* ---------- modal + toast ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); }
.modal[hidden] { display: none; }
.modal__panel { width: min(440px, 100%); border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line-2); padding: 24px; position: relative; }
.modal__panel h2 { margin: 0 0 6px; font: 800 28px/1 var(--display); font-stretch: 115%; text-transform: uppercase; }
.modal__close { position: absolute; top: 14px; right: 14px; }
.form { display: grid; gap: 10px; margin-top: 16px; }
.form label.chk { display: flex; gap: 10px; font-size: 13px; color: var(--ink-2); align-items: flex-start; }
.form .err { color: #ff8a8b; font-size: 13px; min-height: 18px; }
.switch { font-size: 13px; color: var(--ink-3); text-align: center; margin-top: 12px; }
.switch button { color: var(--ink); text-decoration: underline; }
.toast { visibility: hidden; position: fixed; left: 50%; bottom: 22px; z-index: 90; transform: translate(-50%, 180%); padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px; transition: transform .45s var(--ease); max-width: calc(100vw - 32px); }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; }
.toast.is-win { background: var(--win); color: var(--win-ink); }
.toast.is-out { background: var(--out); color: #fff; }
.demo-banner { background: var(--bg-3); color: var(--ink-2); font-size: 12.5px; text-align: center; padding: 7px 12px; border-bottom: 1px solid var(--line); }
.demo-banner b { color: var(--warn); font: 600 10.5px var(--mono); letter-spacing: .12em; margin-right: 6px; }
footer.foot { border-top: 1px solid var(--line); padding: 28px var(--pad) 40px; color: var(--ink-3); font-size: 12.5px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.foot a { text-decoration: underline; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 95; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
#qaForm .field { flex: 1; min-width: 0; }

/* ================= Modern layer: 3D hero, Lottie, odometer, ring, ticker, spotlight ================= */
.hero-shell { position: relative; overflow: hidden; isolation: isolate; }
.hero3d { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero3d.is-ready { opacity: 1; }
.hero3d canvas { width: 100% !important; height: 100% !important; display: block; }
.hero-shell::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 25% 45%, rgba(10,11,13,.82), transparent 70%), linear-gradient(180deg, rgba(10,11,13,.35), transparent 30%, transparent 70%, var(--bg)); }
.hero h1 .line, .split .line { overflow: hidden; padding-bottom: .04em; }
.grain { position: fixed; inset: -50%; z-index: 70; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-4%,3%)} 50%{transform:translate(3%,-5%)} 75%{transform:translate(-2%,4%)} 100%{transform:translate(0,0)} }

/* Lottie slots */
.lt { display: inline-block; pointer-events: none; }
.live-dot .lt { width: 22px; height: 22px; margin-left: -6px; }
.live-dot i { display: none; }
.lt--sold { position: absolute; width: min(70vh, 520px); height: min(70vh, 520px); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.lt--spark { position: absolute; width: 120px; height: 120px; margin: -48px 0 0 -38px; }
.bidpanel { position: relative; }
.toast { display: flex; align-items: center; gap: 10px; }
.lt--toast { width: 30px; height: 30px; margin: -6px -2px -6px -8px; display: none; }
.toast.has-icon .lt--toast { display: inline-block; }

/* Odometer digits */
.odo { display: inline-flex; overflow: hidden; height: 1em; line-height: 1; }
.odo .d { position: relative; display: inline-block; width: .6em; height: 1em; overflow: hidden; }
.odo .d > span { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; will-change: transform; transition: transform .7s cubic-bezier(.2,.9,.1,1); }
.odo .d > span > i { font-style: normal; height: 1em; line-height: 1; text-align: center; width: .6em; display: block; }
.odo .sep { display: inline-block; text-align: center; }

/* Ring timer */
.ring { position: relative; width: 74px; height: 74px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring__bg { stroke: var(--bg-4); }
.ring__fg { stroke: var(--win); stroke-linecap: round; stroke-dasharray: 175.93; stroke-dashoffset: 0; transition: stroke .4s; }
.ring__t { position: absolute; inset: 0; display: grid; place-items: center; font-size: 17px !important; font-weight: 600; }
.ring.is-urgent { animation: urgent .9s ease-in-out infinite; }
@keyframes urgent { 50% { transform: scale(1.06); } }
.bidpanel__price { align-items: center; }

/* Winning glow */
.bidpanel.is-winning { box-shadow: inset 0 0 0 1px rgba(47,243,165,.35), 0 0 60px -10px rgba(47,243,165,.35); animation: winglow 2.4s ease-in-out infinite; }
@keyframes winglow { 50% { box-shadow: inset 0 0 0 1px rgba(47,243,165,.55), 0 0 80px -6px rgba(47,243,165,.45); } }
.bidpanel.is-outbid { box-shadow: inset 0 0 0 1px rgba(255,77,79,.4); }

/* Live bid ticker */
.ticker { position: absolute; z-index: 3; left: 18px; bottom: 96px; display: flex; flex-direction: column-reverse; gap: 6px; pointer-events: none; }
.tick { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 999px; background: rgba(10,11,13,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line-2); font-size: 13px; width: max-content; }
.tick b { font-family: var(--mono); font-weight: 600; }
.tick i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-4); font: 700 10px var(--mono); font-style: normal; }
.tick.you { border-color: rgba(47,243,165,.5); }
.tick.you i { background: var(--win); color: var(--win-ink); }

/* Filters (run list) */
.filters { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.filters button { height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-3); transition: color .2s, background .2s; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* Spotlight + tilt cards */
.lotcard { --mx: 50%; --my: 50%; transform-style: preserve-3d; }
.lotcard::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,255,255,.09), transparent 45%); }
.lotcard:hover::before { opacity: 1; }
.why > div { position: relative; transition: background .3s; }
.why > div:hover { background: var(--bg-2); }
.step { transition: transform .5s var(--ease), border-color .3s; }
.step:hover { transform: translateY(-4px); border-color: var(--line-2); }

/* View transitions between routes */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: cubic-bezier(.65,0,.2,1); }
::view-transition-old(root) { animation-name: vt-out; }
::view-transition-new(root) { animation-name: vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px) scale(.995); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px) scale(.995); } }

/* Wallet steps with Lottie check */
.check__icon .lt { width: 44px; height: 44px; margin: -4px; }
.check.is-done .check__icon:has(.lt) { background: transparent; border-color: transparent; }

.btn--primary, .btn--win { will-change: transform; }
@media (max-width: 760px) { .ring { width: 62px; height: 62px; } .ticker { bottom: 84px; } .lt--sold { width: 90vw; height: 90vw; } }

/* ================= Button + press system (tactile, not generic) =================
   Each button has a material: a 1px top highlight, a bottom shade and a soft drop.
   Press = sink 1px + compress 2% + the drop collapses + a light bloom from the touch point. */
.btn, .icon-btn, .filters button, .chips button, .holds button, .ask-toggle, .step-btn, .size {
  position: relative; overflow: hidden; isolation: isolate; -webkit-tap-highlight-color: transparent;
  transition: transform .18s cubic-bezier(.3,.7,.4,1.4), box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn::after, .icon-btn::after, .filters button::after, .holds button::after, .ask-toggle::after, .step-btn::after {
  content: ''; position: absolute; left: var(--px, 50%); top: var(--py, 50%); width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: currentColor; opacity: 0; transform: scale(0); pointer-events: none; z-index: -1;
}
.is-pressed::after { animation: bloom .55s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes bloom { 0% { opacity: .22; transform: scale(0); } 100% { opacity: 0; transform: scale(28); } }

.btn { height: 46px; padding: 0 20px; letter-spacing: -.005em; }
.btn--primary {
  background: linear-gradient(180deg, #ffffff 0%, #e9ebee 100%); color: #0a0b0d;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(0,0,0,.14), 0 1px 0 rgba(0,0,0,.4), 0 8px 22px -10px rgba(255,255,255,.35);
}
.btn--primary:hover { box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0,0,0,.14), 0 1px 0 rgba(0,0,0,.4), 0 12px 30px -10px rgba(255,255,255,.45); }
.btn--primary.is-pressed, .btn--primary:active { transform: translateY(1px) scale(.98); box-shadow: inset 0 2px 6px rgba(0,0,0,.18), 0 0 0 rgba(0,0,0,0); }
.btn--ghost { background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.btn--ghost:hover { background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border-color: rgba(255,255,255,.24); }
.btn--ghost.is-pressed, .btn--ghost:active { transform: translateY(1px) scale(.98); box-shadow: inset 0 2px 8px rgba(0,0,0,.45); }
.btn--win { background: linear-gradient(180deg, #5bffbe, #22dd92); color: var(--win-ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(0,0,0,.18), 0 10px 26px -10px rgba(47,243,165,.6); }
.btn--win.is-pressed, .btn--win:active { transform: translateY(1px) scale(.98); box-shadow: inset 0 2px 6px rgba(0,0,0,.2); }
.btn:active { transform: translateY(1px) scale(.98); }
.icon-btn { background: linear-gradient(180deg, rgba(255,255,255,.05), transparent); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.icon-btn.is-pressed, .icon-btn:active { transform: scale(.9); }
.icon-btn svg { transition: transform .3s cubic-bezier(.3,.7,.4,1.6); }
.icon-btn:hover svg { transform: scale(1.1); }
.icon-btn[aria-pressed="true"] svg { animation: ring-bell .6s ease; }
@keyframes ring-bell { 20% { transform: rotate(16deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
.filters button.is-pressed, .chips button.is-pressed, .holds button.is-pressed, .ask-toggle.is-pressed { transform: scale(.95); }

/* arrow slides through: the visible arrow exits right while its twin enters from the left */
.btn__arrow { position: relative; width: 18px; height: 18px; overflow: hidden; display: inline-block; }
.btn__arrow svg { position: absolute; inset: 0; width: 18px; height: 18px; transition: transform .45s cubic-bezier(.65,0,.2,1); }
.btn__arrow svg:last-child { transform: translateX(-130%); }
.btn:hover .btn__arrow svg:first-child { transform: translateX(130%); }
.btn:hover .btn__arrow svg:last-child { transform: translateX(0); }

/* busy state */
.btn.is-busy { color: transparent !important; pointer-events: none; }
.btn.is-busy::before { content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2px solid rgba(10,11,13,.25); border-top-color: #0a0b0d; animation: spin .7s linear infinite; }
.btn--ghost.is-busy::before { border-color: rgba(255,255,255,.2); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- swipe to bid: machined track ---------- */
.swipe { height: 62px; background: linear-gradient(180deg, #f6f7f8, #e3e6ea); box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0,0,0,.08), 0 14px 30px -14px rgba(255,255,255,.4); }
.swipe__fill { background: linear-gradient(90deg, #2ff3a5, #7dffc9); opacity: .0; transition: opacity .2s; }
.swipe.is-dragging .swipe__fill { opacity: 1; }
.swipe__chev { position: absolute; left: 66px; top: 0; bottom: 0; display: flex; align-items: center; gap: 0; color: #0a0b0d; pointer-events: none; }
.swipe__chev svg { width: 15px; height: 15px; margin-right: -5px; opacity: .15; animation: chev 1.6s infinite; }
.swipe__chev svg:nth-child(2) { animation-delay: .15s; } .swipe__chev svg:nth-child(3) { animation-delay: .3s; }
@keyframes chev { 0%, 60%, 100% { opacity: .12; } 30% { opacity: .7; } }
.swipe.is-dragging .swipe__chev, .swipe.is-disabled .swipe__chev { opacity: 0; }
.swipe__label { padding-left: 64px; font-size: 15.5px; letter-spacing: -.01em; transition: opacity .2s; }
.swipe.is-dragging .swipe__label { opacity: .35; }
.swipe__knob { top: 6px; left: 6px; width: 50px; height: 50px; background: radial-gradient(circle at 50% 30%, #23272d, #0b0c0e 70%); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 6px 14px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.6); transition: background .3s, transform .2s; }
.swipe__knob:active { cursor: grabbing; }
.swipe__knob svg { position: absolute; width: 22px; height: 22px; transition: transform .35s cubic-bezier(.3,.7,.4,1.5), opacity .2s; }
.swipe__knob .k-check, .swipe__knob .k-spin { opacity: 0; transform: scale(.4); }
.k-spin { position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); border-top-color: #fff; }
.swipe.is-sending .k-arrow { opacity: 0; transform: scale(.4); }
.swipe.is-sending .k-spin { opacity: 1; transform: none; animation: spin .7s linear infinite; }
.swipe.is-ok .swipe__knob { background: radial-gradient(circle at 50% 30%, #5bffbe, #20d68d 70%); color: var(--win-ink); }
.swipe.is-ok .k-arrow, .swipe.is-ok .k-spin { opacity: 0; }
.swipe.is-ok .k-check { opacity: 1; transform: none; }
.swipe.is-err { animation: nope .4s; }
@keyframes nope { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.swipe.is-disabled { background: var(--bg-3); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); color: var(--ink-3); }
.swipe.is-disabled .swipe__knob { background: var(--bg-4); box-shadow: none; color: var(--ink-3); }

/* YMP stepper */
.ymp__field { padding-right: 4px; gap: 2px; }
.step-btn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); flex: none; }
.step-btn:hover { background: var(--bg-3); color: var(--ink); }
.step-btn.is-pressed { transform: scale(.88); }
.step-btn svg { width: 16px; height: 16px; }
.step__i { width: 26px; height: 26px; display: block; margin: 14px 0 -6px; color: var(--ink); }
.why svg, .hero__trust svg { color: var(--ink); }
.badge svg { width: 13px; height: 13px; }

/* ================= Mood system: colour follows intent =================
   calm    (browsing, reading a car)      graphite + warm ivory, nothing pulls at you
   trust   (wallet, ID, holds, payments)  deep "ledger" blue: steady, institutional, low arousal
   impulse (live bidding)                 the edge heats from blue → amber → red as the clock runs down
   success (you're winning / you won)     mint, always and only for good news                        */
:root { --trust: #4c8dff; --trust-2: #8db6ff; --trust-deep: #0d1d3d; --trust-ink: #d9e6ff; --heat: var(--trust); --ivory: #f2efe8; }
body[data-mood="trust"] { --accent: var(--trust); background: radial-gradient(1200px 600px at 50% -10%, rgba(76,141,255,.10), transparent 60%), var(--bg); }
body[data-mood="impulse"] { --accent: var(--heat); }
body[data-mood="calm"] { --accent: var(--ink); }
body[data-mood="calm"] .lotcard h3, body[data-mood="calm"] .detail h1 { color: var(--ivory); }

/* Machined edge: a 1px gradient border that reads like brushed metal under light */
.edge { position: relative; }
.edge::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.04) 30%, rgba(255,255,255,.02) 60%, rgba(255,255,255,.14));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.lotcard, .card, .step, .modal__panel, .check { border-color: transparent !important; }
.lotcard::after, .card::after, .step::after, .modal__panel::after, .check::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 3;
  background: linear-gradient(160deg, rgba(255,255,255,.2), rgba(255,255,255,.04) 28%, rgba(255,255,255,.02) 62%, rgba(255,255,255,.12));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.card, .step, .check { position: relative; }

/* Impulse: the bid panel wears a rotating heat ring whose colour and speed follow the clock */
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.bidpanel { border-bottom: 0; }
.bidpanel::before { content: ''; position: absolute; inset: 8px; border-radius: 18px; padding: 1.5px; pointer-events: none; z-index: 0;
  background: conic-gradient(from var(--ang), transparent 0 55%, var(--heat) 75%, transparent 92%), linear-gradient(rgba(255,255,255,.07), rgba(255,255,255,.07));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: orbit var(--spin, 6s) linear infinite; }
.bidpanel > * { position: relative; z-index: 1; }
@keyframes orbit { to { --ang: 360deg; } }
.bidpanel.is-winning::before { --heat: var(--win); }
.clockbar i { box-shadow: 0 0 14px -2px var(--heat); }
.allin { background: linear-gradient(180deg, rgba(76,141,255,.06), transparent 70%); border-color: rgba(76,141,255,.22); }
.allin div.total span:last-child { color: var(--trust-ink); }

/* Hologram: the verified mark shimmers like the foil on a driver's licence */
.holo { background: conic-gradient(from var(--ang), #8db6ff, #b38dff, #7dffd0, #ffe58d, #8db6ff); -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: orbit 5s linear infinite; font-weight: 700; }
.holo-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 6px; font: 600 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #0a0b0d;
  background: linear-gradient(115deg, #dfe9ff 0%, #c8b8ff 22%, #b9ffe6 44%, #fff2c2 62%, #dfe9ff 84%); background-size: 260% 100%; animation: foil 4s ease-in-out infinite; box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 0 0 1px rgba(255,255,255,.2); }
@keyframes foil { 50% { background-position: 100% 0; } }
.msg .v { color: transparent; background: linear-gradient(115deg, #8db6ff, #b38dff, #7dffd0, #ffe58d); -webkit-background-clip: text; background-clip: text; }

/* Trust finish: banknote guilloché + microprint edges on anything about money or identity */
.power { position: relative; overflow: hidden; background: radial-gradient(120% 140% at 100% 0%, rgba(76,141,255,.18), transparent 55%), linear-gradient(135deg, #0f1726, #0b0f17); border: 0; }
.power::before { content: ''; position: absolute; right: -90px; top: -120px; width: 420px; height: 420px; background: url(/img/guilloche.svg) center/contain no-repeat; opacity: .55; pointer-events: none; }
.power::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 9px;
  background: url(/img/microprint.svg) 0 1px / auto 8px repeat-x, url(/img/microprint.svg) 0 calc(100% - 1px) / auto 8px repeat-x;
  box-shadow: inset 0 0 0 1px rgba(127,176,255,.35), inset 0 0 0 10px rgba(10,15,25,.0), inset 0 0 0 11px rgba(127,176,255,.18); }
.power > * { position: relative; z-index: 1; }
.power .label { color: var(--trust-2); }
.check.is-done .check__icon { background: var(--trust); border-color: var(--trust); color: #fff; }
.check.is-done { background: linear-gradient(90deg, rgba(76,141,255,.07), transparent 60%), var(--bg-2); }
.holds button { border-color: rgba(127,176,255,.3); }
.holds button:hover { background: rgba(76,141,255,.12); border-color: var(--trust); }
body[data-mood="trust"] .btn--primary { background: linear-gradient(180deg, #6aa1ff, #3b78f0); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(0,0,0,.25), 0 10px 26px -12px rgba(76,141,255,.8); }
body[data-mood="trust"] .btn--primary.is-busy::before { border-color: rgba(255,255,255,.3); border-top-color: #fff; }

/* Ticket finish for wins: perforated stub with punched notches — it's yours */
.win { position: relative; border: 0; background: linear-gradient(90deg, rgba(47,243,165,.10), rgba(47,243,165,.03)); border-radius: 16px;
  -webkit-mask: radial-gradient(circle 9px at 128px 0, transparent 98%, #000) top/100% 51% no-repeat, radial-gradient(circle 9px at 128px 100%, transparent 98%, #000) bottom/100% 51% no-repeat;
  mask: radial-gradient(circle 9px at 128px 0, transparent 98%, #000) top/100% 51% no-repeat, radial-gradient(circle 9px at 128px 100%, transparent 98%, #000) bottom/100% 51% no-repeat; }
.win::before { content: ''; position: absolute; left: 127px; top: 12px; bottom: 12px; border-left: 2px dashed rgba(47,243,165,.35); }

/* Instrument chamfer on live chips and the stage frame */
.runchip { clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); border-radius: 4px; }
.stage .badge { border-radius: 4px; }

/* Layout fixes */
.section { padding-left: var(--pad); padding-right: var(--pad); }
.ymp__field { min-width: 0; }
.bidpanel > .lt--spark { position: absolute; z-index: 4; }

/* ===== Brand system: Road-Y ===== */
/* Colour roles: mint = you're winning / your number is safe. Ledger blue = money & holds.
   Amber = your YMP was passed (calm, never red). Red is reserved for the clock running out. */
.toast.is-warn { background: #2a2110; color: #ffd27a; box-shadow: inset 0 0 0 1px rgba(255,176,32,.45), 0 18px 40px rgba(0,0,0,.45); }
.bidpanel.is-outbid { box-shadow: inset 0 0 0 1px rgba(255,176,32,.45); }
.bidpanel.is-outbid .bp__status, .bidpanel.is-outbid [id$="Status"] { color: var(--warn); }
.brand svg { overflow: visible; }
.brand:hover .mark__dot, .brand:focus-visible .mark__dot { filter: drop-shadow(0 0 6px rgba(47,243,165,.9)); }
.greenlight { position: absolute; width: min(48vh, 380px); height: min(48vh, 380px); left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0; overflow: visible; filter: drop-shadow(0 10px 40px rgba(0,0,0,.6)); }
@media (max-width: 760px) { .greenlight { width: 86vw; height: 86vw; } }
/* First-visit brand intro: the highway resolves into the Road-Y */
.intro { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: radial-gradient(60% 50% at 50% 60%, rgba(47,243,165,.06), transparent 70%), #0a0b0d; pointer-events: none; }
.intro svg { width: 120px; height: 120px; color: #f2efe8; overflow: visible; }
.intro p { position: absolute; top: calc(50% + 86px); font: 500 11px var(--mono); letter-spacing: .32em; text-transform: uppercase; color: var(--ink-3); }
.stage__overlay span.is-gl { position: relative; top: min(22vh, 170px); font-size: clamp(30px, 5vw, 64px); }
.hero h1 { word-break: keep-all; overflow-wrap: normal; hyphens: none; }
@media (max-width: 520px) { .hero h1 { font-size: 15.5vw; } .hide-sm { display: none; } }

/* ===== Lot card: auction-catalogue entry ===== */
.lotcard__body { display: block; padding: 16px 18px 18px; color: inherit; text-decoration: none; }
.lotcard .lotcard__watch { position: absolute !important; top: 12px; right: 12px; left: auto; width: 38px; height: 38px; z-index: 4; border-radius: 12px; background: rgba(10,11,13,.55); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lotcard .lotcard__watch svg { width: 18px; height: 18px; }
.lotcard .lotcard__watch[aria-pressed="true"] { color: #0a0b0d; background: #f2efe8; }
.lotcard__badges { top: 12px; left: 12px; z-index: 4; }
.lotcard__badges .badge { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(10,11,13,.55); border-color: rgba(255,255,255,.14); color: #f2efe8; }
.lotcard__badges .badge--out { background: #ff3b3f; border-color: #ff3b3f; color: #fff; }
.lotcard__badges .badge--win { background: #2ff3a5; border-color: #2ff3a5; color: #04140d; }
.lc__head { display: flex; align-items: baseline; justify-content: space-between; font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.lc__lot { color: var(--ink-2, #c9ccd2); }
.lc__lot::before { content: ""; display: inline-block; width: 14px; height: 1px; margin-right: 8px; vertical-align: middle; background: currentColor; opacity: .6; }
.lotcard h3 { margin: 8px 0 14px; font: 800 21px/1.08 var(--display); font-stretch: 112%; letter-spacing: -.015em; text-transform: none; color: #f2efe8; }
.lc__ledger { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.lc__ledger > div { display: grid; gap: 4px; min-width: 0; }
.lc__ledger .label { font-size: 10px; letter-spacing: .14em; }
.lc__est { font-size: 13.5px; color: var(--ink-3); white-space: nowrap; }
.lotcard .lotcard__price { margin: 0; text-align: right; justify-items: end; }
.lotcard .lotcard__price .num { font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: #f2efe8; }
.lotcard.is-live .lotcard__price .num { color: #fff; }
.lotcard.is-live .lotcard__price .label { color: #ff8a8b; }
.lotcard.is-done { opacity: 1; }
.lotcard.is-done .lotcard__img img { filter: grayscale(.55) brightness(.8); }
.lotcard.is-done .lotcard__price .num { color: var(--ink-3); }
/* keep the highway behind the copy legible on phones */
@media (max-width: 760px) { .hero3d { -webkit-mask: linear-gradient(to bottom, rgba(0,0,0,.28) 0%, rgba(0,0,0,.28) 52%, #000 80%); mask: linear-gradient(to bottom, rgba(0,0,0,.28) 0%, rgba(0,0,0,.28) 52%, #000 80%); } }
@media (min-width: 761px) { .hero3d { -webkit-mask: linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.6) 35%, #000 60%); mask: linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.6) 35%, #000 60%); } }

/* ===== Legibility pass: every control and card gets a real edge ===== */
:root { --line: rgba(255,255,255,.11); --line-2: rgba(255,255,255,.2); }
.lotcard::after, .card::after, .step::after, .modal__panel::after, .check::after {
  background: linear-gradient(160deg, rgba(255,255,255,.28), rgba(255,255,255,.12) 30%, rgba(255,255,255,.09) 65%, rgba(255,255,255,.2)); }
.btn { white-space: nowrap; line-height: 1; }
.btn--ghost { border: 1px solid rgba(255,255,255,.22); color: #f2efe8; }
.btn--primary { border: 1px solid rgba(255,255,255,.9); }
.btn--win { border: 1px solid rgba(255,255,255,.35); }
.btn svg, .icon-btn svg, .badge svg { flex: none; }
.icon-btn { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.2); color: #f2efe8; background-color: rgba(10,11,13,.5); }
.icon-btn svg { width: 19px; height: 19px; }
.badge { border: 1px solid rgba(255,255,255,.16); color: #d9dce1; line-height: 1; white-space: nowrap; }
.badge svg { width: 13px; height: 13px; }
.livecard__top .badge, .stage__top .badge { background: rgba(10,11,13,.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: rgba(255,255,255,.18); color: #f2efe8; }
.livecard__top .badge--out, .stage__top .badge--live { background: #ff3b3f; border-color: #ff6b6e; color: #fff; }
.filters { border-color: rgba(255,255,255,.14); }
.filters button { border: 1px solid transparent; }
.filters button[aria-pressed="false"]:hover { border-color: rgba(255,255,255,.14); color: #f2efe8; }
.field, .ymp__field { border-color: rgba(255,255,255,.18); }
.runchip { border-color: rgba(255,255,255,.14); }
.tabs button { color: #9aa1ab; }
.livecard { border-color: rgba(255,255,255,.16); }
/* text over photos always sits on a scrim */
.livecard__bottom, .stage__bottom { text-shadow: 0 1px 12px rgba(0,0,0,.55); }

/* ===== Press moment: locking in your YMP ===== */
.ymp__field { position: relative; }
.ymp__field.is-locking { animation: ympLock 1s cubic-bezier(.2,.8,.2,1); border-color: #2ff3a5; }
.ymp__field.is-locking::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 2px;
  background: conic-gradient(from 0deg, #2ff3a5 var(--sweep), transparent 0); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: ympSweep .7s cubic-bezier(.6,0,.2,1) forwards; }
@property --sweep { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes ympSweep { to { --sweep: 360deg; } }
@keyframes ympLock { 0% { box-shadow: 0 0 0 0 rgba(47,243,165,.0); } 55% { box-shadow: 0 0 0 6px rgba(47,243,165,.18); } 100% { box-shadow: 0 0 0 0 rgba(47,243,165,0); } }
