/* =========================================================
   Live Auction for Billiards — billiards-hall dark, brass + chalk accents
   ========================================================= */

:root {
  --bg: #071009;
  --felt: #0b1d13;
  --felt-2: #0f2a1b;
  --ink: #f2eee1;
  --muted: #a2b7a9;
  --muted-2: #80988a;
  --brass: #e0b567;
  --brass-strong: #f4cf88;
  --chalk: #7ec8ff;
  --live: #6ee7a0;
  --line: rgba(224, 181, 103, 0.18);
  --line-soft: rgba(242, 238, 225, 0.08);
  --radius: 18px;
  --wrap: 1320px;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 620px at 12% -12%, rgba(44, 122, 78, 0.38), transparent 62%),
    radial-gradient(900px 480px at 92% -6%, rgba(126, 200, 255, 0.1), transparent 58%),
    radial-gradient(900px 700px at 50% 118%, rgba(224, 181, 103, 0.09), transparent 62%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint felt grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.32;
  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='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

img, svg { display: block; max-width: 100%; }

a { color: var(--brass-strong); text-decoration: none; }
a:hover { color: #fff; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.015em;
}

p { margin: 0; }

::selection { background: rgba(224, 181, 103, 0.32); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brass-strong);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  background: var(--brass);
  color: #10200f;
  border-radius: 999px;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { top: 12px; }

/* ---------- type helpers ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 22px;
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 4px rgba(224, 181, 103, 0.14);
}

.lede {
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  color: var(--muted);
  max-width: 52ch;
  margin-top: 26px;
}

.micro {
  display: block;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.section-sub {
  color: var(--muted);
  max-width: 64ch;
  margin-top: 18px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--brass {
  background: linear-gradient(180deg, var(--brass-strong), var(--brass));
  color: #10200f;
  box-shadow: 0 12px 28px -14px rgba(224, 181, 103, 0.75);
}
.btn--brass:hover {
  color: #08130c;
  box-shadow: 0 16px 34px -14px rgba(224, 181, 103, 0.9);
}

.btn--ghost {
  background: rgba(242, 238, 225, 0.04);
  border-color: rgba(242, 238, 225, 0.16);
  color: var(--ink);
}
.btn--ghost:hover {
  background: rgba(242, 238, 225, 0.09);
  border-color: rgba(224, 181, 103, 0.45);
  color: #fff;
}

.btn--sm { padding: 11px 20px; font-size: 0.85rem; }
.btn--xs { padding: 8px 14px; font-size: 0.74rem; letter-spacing: 0.01em; }
.btn--block { width: 100%; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.site-header.is-stuck {
  background: rgba(7, 16, 9, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }

.brand__mark {
  display: block;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0b1d13;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.8);
}

.brand__text { display: grid; gap: 2px; line-height: 1.05; }
.brand__name { font-size: 1.12rem; letter-spacing: 0.01em; }
.brand__by {
  font-family: var(--font-body);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.brand__name span {
  font-family: var(--font-display);
  font-size: 1.34rem;
  color: var(--brass);
  margin-left: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  font-size: 0.87rem;
  color: var(--muted);
}
.nav a { color: var(--muted); }
.nav a:hover { color: var(--ink); }

.nav__mobile { display: none; }

.header__actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 10px;
  background: rgba(242, 238, 225, 0.05);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero { padding: clamp(44px, 6vw, 80px) 0 clamp(24px, 3vw, 40px); }

/* Copy on top, board underneath at the full width of the page, so the grid reads like the real room. */
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 44px);
}

.hero__copy { max-width: 54rem; }

/* shrink-wraps the headline so the tagline can sit flush with its last word */
.hero__headline {
  width: max-content;
  max-width: 100%;
}

.hero__tagline {
  margin: 6px 0 0;
  text-align: right;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.02rem, 1.6vw, 1.26rem);
  letter-spacing: 0.01em;
  color: var(--brass);
}

.hero h1 {
  font-size: clamp(2.9rem, 6vw, 4.7rem);
  line-height: 0.98;
}
.hero h1 em { font-style: italic; color: var(--brass); }

.free-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(110, 231, 160, 0.28);
  background: rgba(110, 231, 160, 0.08);
  color: #b8f3cd;
  font-size: 0.8rem;
  font-weight: 500;
}
.free-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: var(--muted-2);
}
.hero__notes li { position: relative; padding-left: 18px; }
.hero__notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(224, 181, 103, 0.65);
}

/* ---------- auction room ---------- */

.room {
  position: relative;
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(700px 380px at 82% 0%, rgba(224, 181, 103, 0.09), transparent 62%),
    linear-gradient(180deg, rgba(19, 46, 30, 0.96), rgba(8, 21, 13, 0.98));
  box-shadow:
    0 50px 90px -50px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.room__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(242, 238, 225, 0.07);
  background: rgba(0, 0, 0, 0.24);
  font-size: 0.78rem;
}

.room__title {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  color: var(--muted);
}
.room__title strong { color: #eaf1e7; font-weight: 600; }

.room__sub { font-size: 0.72rem; color: var(--muted-2); }

.live-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(110, 231, 160, 0.5);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(110, 231, 160, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(110, 231, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(110, 231, 160, 0); }
}

.room__code {
  flex: none;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.room__code b {
  color: var(--brass-strong);
  letter-spacing: 0.14em;
  font-weight: 600;
}

.room__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
}

.room__main { padding: 18px; border-right: 1px solid var(--line-soft); }
.room__side {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.lot { display: flex; align-items: center; gap: 12px; }

.lot__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #38543f, #0c1d12 70%);
  border: 1px solid rgba(224, 181, 103, 0.35);
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--brass-strong);
}

.lot__id { min-width: 0; flex: 1; }

.lot__name {
  font-size: 1.32rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lot__meta {
  font-size: 0.72rem;
  color: var(--muted-2);
  margin-top: 2px;
}

.lot__bid {
  flex: none;
  text-align: right;
  display: grid;
  gap: 1px;
}
.lot__amount {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.lot__leader { font-size: 0.68rem; color: var(--brass); max-width: 15ch; }
.lot__leader.is-you { color: var(--live); }

.bidform {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: end;
  margin-top: 16px;
}

.bidform__field { min-width: 0; }
.bidform__field .micro { margin-bottom: 5px; }

.bidform input,
.chat__form input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(242, 238, 225, 0.14);
  background: rgba(0, 0, 0, 0.32);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}
.bidform input { font-size: 1.05rem; font-weight: 600; }
.bidform input::placeholder,
.chat__form input::placeholder { color: #5f7267; font-weight: 400; }

.bidform .btn {
  padding: 11px 16px;
  font-size: 0.82rem;
  border-radius: 10px;
}
.bidform .btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.room__hint {
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--muted-2);
  min-height: 1.1em;
}

.history { margin-top: 14px; }

.history__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line-soft);
}
.history__head h3 {
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.history__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 128px;
  overflow-y: auto;
}

.history__list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: baseline;
  padding: 5px 0;
  font-size: 0.76rem;
  border-bottom: 1px dashed rgba(242, 238, 225, 0.06);
  color: var(--muted);
}
.history__list li:last-child { border-bottom: none; }
.history__list .h-amount {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink);
}
.history__list li.is-you .h-amount,
.history__list li.is-you .h-name { color: var(--brass-strong); }
.history__list .h-time { font-size: 0.68rem; color: #63766a; }

.panel {
  padding: 14px;
  border-radius: 13px;
  border: 1px solid rgba(242, 238, 225, 0.07);
  background: rgba(0, 0, 0, 0.22);
}
.panel h3 {
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 10px;
}

.budget__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--muted);
}
.budget__row b { color: var(--ink); font-variant-numeric: tabular-nums; }
.budget__row--small { margin-top: 7px; font-size: 0.7rem; color: var(--muted-2); }
.budget__row--small b { color: var(--muted); }

.budget__bar {
  height: 4px;
  margin-top: 8px;
  border-radius: 99px;
  background: rgba(242, 238, 225, 0.1);
  overflow: hidden;
}
.budget__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(224, 181, 103, 0.55), var(--brass));
  transition: width 0.4s var(--ease);
}

.won {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: 0.72rem;
  max-height: 78px;
  overflow-y: auto;
}
.won li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  border-top: 1px dashed rgba(242, 238, 225, 0.07);
  padding-top: 4px;
}
.won li b { color: var(--brass); font-variant-numeric: tabular-nums; font-weight: 600; }

.panel__empty {
  margin-top: 8px;
  font-size: 0.7rem;
  color: #6f8376;
  line-height: 1.45;
}

.panel--chat { display: flex; flex-direction: column; }

.chat {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 0.73rem;
  max-height: 100px;
  overflow-y: auto;
  color: var(--muted);
  line-height: 1.45;
}
.chat .chat__name { color: var(--brass); font-weight: 500; }
.chat .chat__name--you { color: var(--live); }

.chat__form {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.chat__form input {
  padding: 8px 10px;
  font-size: 0.76rem;
  border-radius: 8px;
}
.chat__form .btn {
  padding: 8px 12px;
  font-size: 0.72rem;
  border-radius: 8px;
  flex: none;
}

.room__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid rgba(242, 238, 225, 0.07);
  background: rgba(0, 0, 0, 0.26);
}
.room__actions .btn { padding: 10px 18px; font-size: 0.82rem; }
.room__note { font-size: 0.68rem; color: #6f8376; }

.sold-stamp {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
  background: radial-gradient(circle at center, rgba(7, 16, 9, 0.55), rgba(7, 16, 9, 0.15));
}
.sold-stamp.is-visible { opacity: 1; }

.sold-stamp span {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  letter-spacing: 0.04em;
  color: var(--brass-strong);
  border: 3px solid var(--brass);
  border-radius: 10px;
  padding: 0.02em 0.42em 0.08em;
  transform: rotate(-8deg) scale(0.86);
  background: rgba(7, 16, 9, 0.6);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9);
  transition: transform 0.3s var(--ease);
}
.sold-stamp.is-visible span { transform: rotate(-8deg) scale(1); }

/* ---------- sections ---------- */

.section { padding: clamp(64px, 8vw, 104px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }

.section--alt {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(15, 42, 27, 0.38), rgba(7, 16, 9, 0));
}

.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }

.section-head h2,
.about h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

/* ---------- open rooms ---------- */

.rooms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.room-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(242, 238, 225, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.room-card:hover { border-color: rgba(224, 181, 103, 0.35); transform: translateY(-3px); }

.room-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(242, 238, 225, 0.16);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.tag--live {
  border-color: rgba(110, 231, 160, 0.35);
  background: rgba(110, 231, 160, 0.1);
  color: #b8f3cd;
}
.tag--live .live-dot { width: 5px; height: 5px; }
.tag--silent {
  border-color: rgba(126, 200, 255, 0.32);
  background: rgba(126, 200, 255, 0.08);
  color: #b9defa;
}

.room-card h3 { font-size: 1.45rem; }

.room-card__meta {
  font-size: 0.8rem;
  color: var(--muted-2);
  flex: 1;
}

.room-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.room-card__bid {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.room-card__bid span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 4px;
}

/* ---------- features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature {
  padding: 28px 26px 30px;
  background: linear-gradient(180deg, rgba(13, 33, 21, 0.96), rgba(9, 24, 15, 0.96));
  transition: background 0.3s;
}
.feature:hover { background: linear-gradient(180deg, rgba(20, 46, 30, 0.96), rgba(9, 24, 15, 0.96)); }

.feature__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  color: var(--brass);
  border: 1px solid var(--line);
  background: rgba(224, 181, 103, 0.06);
  margin-bottom: 16px;
}
.feature__icon svg { width: 20px; height: 20px; }

.feature h3 { font-size: 1.34rem; margin-bottom: 8px; }
.feature p { font-size: 0.9rem; color: var(--muted); }

/* ---------- silent auction ---------- */

.silent {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.lot-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(242, 238, 225, 0.08);
  background:
    radial-gradient(320px 200px at 100% 0%, rgba(126, 200, 255, 0.07), transparent 65%),
    linear-gradient(180deg, rgba(16, 40, 26, 0.95), rgba(9, 24, 15, 0.95));
  transition: border-color 0.25s, background 0.25s;
}
.lot-card.is-closed { opacity: 0.55; }
.lot-card.is-hot { border-color: rgba(224, 181, 103, 0.5); }

.lot-card__table {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lot-card__clock {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  color: var(--chalk);
}
.lot-card__clock.is-low { color: #ffb4a2; }

.lot-card h3 {
  font-size: 1.16rem;
  line-height: 1.2;
  min-height: 2.4em;
}

.lot-card__bid {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  margin-top: auto;
}
.lot-card__bid b {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.lot-card__bid span { font-size: 0.66rem; color: var(--muted-2); }

.lot-card .btn {
  padding: 9px 12px;
  font-size: 0.76rem;
  border-radius: 9px;
  width: 100%;
}

.lot-card__note {
  font-size: 0.66rem;
  min-height: 1.1em;
  color: var(--muted-2);
}
.lot-card__note.is-guard { color: var(--brass); }

.silent__note {
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--muted-2);
}

/* ---------- about ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.about__head { position: sticky; top: 104px; }
.about__head h2 { max-width: 14ch; }

.about__copy {
  display: grid;
  gap: 16px;
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 62ch;
}
.about__copy p:first-child {
  font-family: var(--font-display);
  font-size: 1.32rem;
  line-height: 1.45;
  color: #e9e5d7;
}

/* ---------- steps + cta ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 clamp(36px, 5vw, 56px);
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-soft);
}

.step { padding: 26px 26px 0 0; }
.step + .step { padding-left: 26px; border-left: 1px solid var(--line-soft); }

.step__no {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: rgba(224, 181, 103, 0.55);
  margin-bottom: 14px;
}
.step h3 { font-size: 1.32rem; margin-bottom: 8px; }
.step p { font-size: 0.88rem; color: var(--muted); }

.cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(30px, 4vw, 48px);
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(700px 340px at 10% 0%, rgba(44, 122, 78, 0.5), transparent 62%),
    radial-gradient(500px 300px at 92% 110%, rgba(224, 181, 103, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(17, 45, 29, 0.95), rgba(8, 22, 13, 0.98));
  box-shadow: 0 50px 100px -60px #000;
}

.cta__inner h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); max-width: 18ch; }
.cta__inner .section-sub { margin-top: 12px; font-size: 0.9rem; }

.cta__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.cta__actions .btn { width: 100%; }

.cta__note {
  width: 100%;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted-2);
  margin-top: 4px;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: clamp(44px, 5vw, 64px) 0 26px;
  font-size: 0.86rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 32px;
}

.footer__brand p {
  margin-top: 16px;
  max-width: 36ch;
  color: var(--muted-2);
}

.footer__col h3 {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.footer__col a { display: block; color: var(--muted); padding: 4px 0; }
.footer__col a:hover { color: var(--brass-strong); }

.footer__base {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.72rem;
  color: var(--muted-2);
}
.footer__base p:first-child { max-width: 72ch; }

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .room__grid { grid-template-columns: 1fr; }
  .room__main { border-right: none; border-bottom: 1px solid var(--line-soft); }
  .room__side { flex-direction: row; }
  .room__side .panel { flex: 1; }
  .silent { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__demo { order: 2; }
  .rooms { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about__head { position: static; }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 22px 0; border-left: none; padding-left: 0; }
  .step + .step { border-top: 1px solid var(--line-soft); }
  .cta__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}

@media (max-width: 880px) {
  .header__inner { height: 66px; gap: 12px; }
  .header__signin { display: none; }
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(10, 26, 16, 0.97);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 60px -20px #000;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 10px; font-size: 0.95rem; }
  .nav__mobile { display: block; }
  .nav__mobile--cta {
    margin-top: 6px;
    background: linear-gradient(180deg, var(--brass-strong), var(--brass));
    color: #10200f !important;
    font-weight: 600;
    text-align: center;
  }
  .nav a:hover { background: rgba(242, 238, 225, 0.06); }
  .header__actions { margin-left: auto; }
  .site-header {
    background: rgba(7, 16, 9, 0.82);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--line-soft);
  }
  .section-head h2, .about h2 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__notes { gap: 6px 16px; font-size: 0.76rem; }
  .header__actions .btn { display: none; }
  .room__top { flex-wrap: wrap; gap: 6px; }
  .room__main, .room__side { padding: 14px; }
  .room__side { flex-direction: column; }
  .lot { flex-wrap: wrap; }
  .lot__bid { width: 100%; text-align: left; margin-top: 6px; }
  .bidform { grid-template-columns: 1fr 1fr; }
  .bidform__field { grid-column: span 2; }
  .bidform .btn { width: 100%; }
  .room__actions { flex-direction: column; align-items: stretch; text-align: center; }
  .silent { grid-template-columns: 1fr; }
  .footer__base { flex-direction: column; gap: 8px; }
  .footer__inner { gap: 24px; }
}

/* ---------- silent auction board (hero) ---------- */

.board {
  position: relative;
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(700px 380px at 82% 0%, rgba(224, 181, 103, 0.09), transparent 62%),
    linear-gradient(180deg, rgba(19, 46, 30, 0.96), rgba(8, 21, 13, 0.98));
  box-shadow:
    0 50px 90px -50px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.board__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(242, 238, 225, 0.07);
  background: rgba(0, 0, 0, 0.24);
  font-size: 0.78rem;
}

.board__title {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  color: var(--muted);
}
.board__title strong { color: #eaf1e7; font-weight: 600; }
.board__sub { font-size: 0.72rem; color: var(--muted-2); }

.board__code {
  flex: none;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.board__code b {
  color: var(--brass-strong);
  letter-spacing: 0.14em;
  font-weight: 600;
}

.board__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px 96px 150px 84px 236px;
  gap: 14px;
  padding: 12px 20px;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-bottom: 1px solid rgba(242, 238, 225, 0.08);
  background: rgba(0, 0, 0, 0.14);
}

.board__list {
  list-style: none;
  margin: 0;
  padding: 6px 10px;
  display: grid;
  gap: 2px;
}

.board-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px 96px 150px 84px 236px;
  align-items: center;
  gap: 14px;
  padding: 12px 10px;
  border-bottom: 1px dashed rgba(242, 238, 225, 0.07);
}
.board-row:last-child { border-bottom: none; }
.board-row.is-low { background: rgba(255, 180, 162, 0.05); }
.board-row.is-closed { opacity: 0.6; }

/* Player cell stacks the name over its own clock, the way the live grid does. */
.board-row__player {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 3px;
}
.board-row__name {
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.board-row__fargo {
  font-size: 0.7rem;
  color: var(--muted-2);
  white-space: nowrap;
}

.board-row__clock {
  font-variant-numeric: tabular-nums;
  font-size: 0.62rem;
  color: var(--live);
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid rgba(110, 231, 160, 0.25);
  background: rgba(110, 231, 160, 0.07);
}
.board-row.is-low .board-row__clock {
  color: #ffb4a2;
  border-color: rgba(255, 180, 162, 0.35);
  background: rgba(255, 180, 162, 0.08);
}
.board-row.is-closed .board-row__clock {
  color: var(--muted-2);
  border-color: var(--line-soft);
  background: none;
}

.board-row__bid {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  color: var(--brass-strong);
  text-align: left;
  white-space: nowrap;
}

.board-row__winner {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* The flag column stays empty until someone has been outbid. */
.board-row__flag {
  justify-self: start;
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-strong);
  border: 1px solid rgba(224, 181, 103, 0.4);
  border-radius: 999px;
  padding: 2px 7px;
  white-space: nowrap;
}
.board-row__flag:empty {
  border: 0;
  padding: 0;
}

/* Row actions mirror the live grid: bid, smart bid, history. */
.board-row__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-width: 0;
}

.board-row__bidgo,
.board-row__smart,
.board-row__history {
  padding: 6px 10px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.66rem;
  white-space: nowrap;
}

.board-row__bidgo {
  border: 1px solid rgba(224, 181, 103, 0.5);
  background: rgba(224, 181, 103, 0.16);
  color: #f0d197;
  font-weight: 700;
  cursor: pointer;
}
.board-row__bidgo:hover:not(:disabled) { background: rgba(224, 181, 103, 0.26); }
.board-row__bidgo:disabled { opacity: 0.45; cursor: default; }

.board-row__smart {
  border: 1px dashed rgba(224, 181, 103, 0.45);
  background: rgba(224, 181, 103, 0.06);
  color: var(--brass-strong);
  font-weight: 600;
  cursor: pointer;
}
.board-row__smart:hover { background: rgba(224, 181, 103, 0.14); }
.board-row__smart.is-on { border-style: solid; background: rgba(224, 181, 103, 0.2); }

.board-row__history {
  border: 1px solid rgba(242, 238, 225, 0.16);
  background: rgba(242, 238, 225, 0.05);
  color: var(--muted);
  font-weight: 600;
}

.board__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 18px;
  border-top: 1px solid rgba(242, 238, 225, 0.07);
  background: rgba(0, 0, 0, 0.24);
}
.board__note { font-size: 0.66rem; color: var(--muted-2); }
.board__foot .btn { padding: 8px 14px; font-size: 0.74rem; border-radius: 8px; }

.board__hint {
  padding: 10px 18px 14px;
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--muted-2);
}

/* Below the desk width the six columns crowd the player name, so each row folds into three lines. */
@media (max-width: 1120px) {
  .board__head { display: none; }
  .board-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas:
      "player player player player"
      "fargo bid leader flag"
      "actions actions actions actions";
    row-gap: 10px;
  }
  .board-row__player { grid-area: player; }
  .board-row__fargo { grid-area: fargo; }
  .board-row__bid { grid-area: bid; font-size: 0.95rem; }
  .board-row__winner { grid-area: leader; }
  .board-row__flag { grid-area: flag; }
  .board-row__actions { grid-area: actions; justify-content: flex-start; }
  .board-row__bidgo,
  .board-row__smart,
  .board-row__history { padding: 8px 12px; font-size: 0.68rem; }
}

@media (max-width: 640px) {
  .board__top { flex-direction: column; align-items: flex-start; }
}

/* ---------- install on your phone ---------- */
.install {
  padding: clamp(36px, 5vw, 64px) 0 clamp(40px, 5vw, 60px);
  border-top: 1px solid var(--line-soft);
}

.install__eyebrow {
  margin: 0 0 16px;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}

.install__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  max-width: 60rem;
}

.install__mascot { margin-top: 2px; }

.install__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.1;
}

.install__sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.install__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(22px, 3vw, 30px);
}

.install__card {
  padding: 20px 22px 22px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.install__card h3 {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}

.install__card ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.install__card li { padding-left: 2px; }
.install__card li::marker { color: var(--muted-2); }
.install__card b { color: var(--ink); font-weight: 600; }

@media (max-width: 760px) {
  .install__cards { grid-template-columns: minmax(0, 1fr); }
  .install__head { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

/* ---------- buy me a coffee ---------- */
.coffee { padding: 0 0 clamp(40px, 5vw, 64px); }

.coffee__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(16px, 2.5vw, 28px);
  align-items: center;
  padding: clamp(20px, 3vw, 28px) 0;
  background: none;
}

.coffee__mascot { flex: none; }

.coffee__copy h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.1;
}

.coffee__copy p {
  margin: 0;
  max-width: 44rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.coffee__copy b { color: var(--brass-strong); font-weight: 600; }

.coffee__qr {
  display: grid;
  justify-items: center;
  gap: 7px;
  margin: 0;
  padding: 10px 10px 8px;
  border-radius: 12px;
  background: #fff;
}

.coffee__qr img { width: 132px; height: 132px; }

.coffee__qr figcaption {
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  color: #1b1b16;
}

@media (max-width: 760px) {
  .coffee__inner { grid-template-columns: minmax(0, 1fr); justify-items: start; }
}
