/* Take1 — live auction jumbotron. */
:root {
  --bg: #07070a;
  --void: #050507;
  --panel: #0c0c11;
  --ink: #f4f4f0;
  --muted: #8b8b82;
  --faint: #5c5c56;
  --line: #1c1c22;
  --lime: #c8ff3d;
  --lime-dim: #9dcc22;
  --money: #c8ff3d;
  --ok: #c8ff3d;
  --bad: #ff5a4a;
  --pad: clamp(14px, 4vw, 28px);
  --max: 920px;
  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  background: var(--bg);
  color: var(--ink);
  color-scheme: dark;
}
body {
  min-height: 100dvh;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(200, 255, 61, 0.07), transparent 55%),
    var(--bg);
  color: var(--ink);
}
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 8;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.18) 3px
  );
  opacity: 0.28;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--lime); }
button, input, textarea { font: inherit; color: inherit; }

.wrap {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 0 var(--pad);
  position: relative;
  z-index: 1;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 12px;
}
.brand {
  font-family: var(--display);
  font-size: clamp(2rem, 7vw, 3.15rem);
  line-height: 0.85;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--lime); }
.bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.live-pill,
.ticker-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--lime);
  text-transform: uppercase;
}
.live-pill i,
.ticker-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
  animation: livepulse 1.8s ease-in-out infinite;
}
.nav { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--lime); }

.ticker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 8px 0 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
#pulse { color: var(--faint); }

.claim { padding: 16px 0 8px; }
.claim-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
}
.claim-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  max-width: 52ch;
  line-height: 1.5;
}

.btn {
  appearance: none;
  border: 0;
  background: var(--lime);
  color: #07070a;
  font-family: var(--display);
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: 0.04em;
  padding: 12px 18px 10px;
  min-height: 48px;
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px var(--lime), 0 0 22px rgba(200, 255, 61, 0.22);
}
.btn:hover { background: #d6ff63; box-shadow: 0 0 0 1px #d6ff63, 0 0 28px rgba(200, 255, 61, 0.38); }
.btn:disabled { opacity: 0.38; cursor: not-allowed; box-shadow: none; }
.btn-ghost {
  appearance: none;
  border: 1px solid #c8ff3d55;
  background: transparent;
  color: var(--lime);
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: 0.05em;
  padding: 12px 16px 10px;
  min-height: 48px;
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-ghost:hover { border-color: var(--lime); background: rgba(200, 255, 61, 0.06); }
.btn-ghost:disabled { opacity: 0.38; cursor: not-allowed; }

.lock {
  display: none;
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid #c8ff3d44;
  background: rgba(200, 255, 61, 0.06);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.lock.show { display: block; }
.lock b { color: var(--lime); font-weight: 700; }

.lock.paid {
  border-color: var(--lime);
  color: var(--ink);
}
.fresh {
  outline: 1px solid rgba(200, 255, 61, 0.55);
  outline-offset: 2px;
}


.sheet-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.88);
}
.sheet-backdrop:not([hidden]) { display: block; }
body.sheet-open { overflow: hidden; }

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  isolation: isolate;
  max-height: 92dvh;
  overflow: auto;
  margin: 0;
  padding: 18px 16px 28px;
  background: #0c0c11;
  border: 1px solid #2a2a32;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.65);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.sheet[hidden] { display: none !important; }
.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}
.sheet h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: var(--ink);
}
.sheet .hint { margin: 6px 0 0; color: var(--muted); font-size: 0.75rem; }
.x {
  appearance: none;
  border: 0;
  background: none;
  padding: 6px 0 0;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.x:hover { color: var(--lime); }

label {
  display: block;
  margin: 14px 0 6px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
input, textarea {
  width: 100%;
  background: #111;
  border: 1px solid #4a4a54;
  border-radius: 2px;
  padding: 11px 12px;
  outline: none;
  color: #f4f4f0;
  caret-color: var(--lime);
  opacity: 1;
}
input::placeholder, textarea::placeholder {
  color: #7a7a72;
  opacity: 1;
}
input:focus, textarea:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 1px var(--lime);
}
textarea { min-height: 76px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0 4px;
  color: var(--ink);
  font-size: 0.8rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}
.check input { width: auto; margin-top: 3px; accent-color: var(--lime); }
.count { float: right; color: var(--faint); font-weight: 500; letter-spacing: 0; text-transform: none; }

.msg {
  margin: 12px 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
  display: none;
}
.msg.show { display: block; }
.msg.ok { color: var(--ok); }
.msg.bad { color: var(--bad); }
.actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.actions .btn { width: 100%; }

.board { padding: 14px 0 64px; }

.kicker {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--lime);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.podium {
  display: grid;
  gap: 8px 20px;
  padding: 18px 16px 16px;
  margin: 4px 0 14px;
  background: var(--panel);
  border: 1px solid #c8ff3d55;
  border-radius: 2px;
  animation: glow 3.6s ease-in-out infinite;
}
.podium-rank .rank {
  display: block;
  font-family: var(--display);
  font-size: clamp(5.2rem, 22vw, 8.5rem);
  line-height: 0.8;
  color: var(--lime);
  letter-spacing: -0.02em;
  text-shadow: 0 0 28px rgba(200, 255, 61, 0.35);
}
.podium-main .name {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.1rem, 8vw, 3.6rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--lime);
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.podium-main .name:hover { color: var(--lime); text-decoration: underline; }
.podium-main .bid {
  font-family: var(--mono);
  font-size: clamp(2.4rem, 10vw, 4.4rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--lime);
  text-shadow: 0 0 24px rgba(200, 255, 61, 0.28);
  margin: 2px 0 8px;
}
.podium .blurb {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}
.podium .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--faint);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.podium .claim-link { margin-top: 12px; }

.row {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) auto;
  grid-template-areas:
    "rank mid bid"
    "rank mid bid"
    "rank take take";
  column-gap: 10px;
  row-gap: 2px;
  align-items: start;
  padding: 12px 4px 12px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.row:hover { background: rgba(200, 255, 61, 0.04); }
.row.locked-row { opacity: 0.5; }
.row .rank {
  grid-area: rank;
  font-family: var(--display);
  font-size: clamp(1.85rem, 6vw, 2.5rem);
  line-height: 0.9;
  color: var(--faint);
  padding-top: 4px;
  letter-spacing: 0.02em;
}
.row .mid { grid-area: mid; min-width: 0; }
.row .name {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.35rem, 4.5vw, 1.7rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  color: var(--lime);
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row .name:hover { color: var(--lime); text-decoration: underline; }
.row .bid {
  grid-area: bid;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(1.35rem, 5vw, 1.85rem);
  letter-spacing: -0.03em;
  color: var(--lime);
  white-space: nowrap;
  padding-top: 4px;
  text-align: right;
}
.row:hover .bid { text-shadow: 0 0 12px rgba(200, 255, 61, 0.45); }
.row .blurb {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.row .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 6px;
  color: var(--faint);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.row .claim-link { grid-area: take; justify-self: end; }

.claim-link {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin-top: 8px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  width: fit-content;
}
.claim-link:hover { color: #e4ff8a; }
.claim-link:disabled { color: var(--faint); cursor: not-allowed; }


.site-link {
  display: inline-block;
  margin: 4px 0 2px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: underline;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.site-link:hover {
  color: #e4ff8a;
  text-decoration: underline;
}
.podium-main .site-link {
  display: block;
  margin: 6px 0 10px;
  font-size: 0.82rem;
}

.empty {
  padding: 48px 8px;
  color: var(--muted);
  text-align: center;
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: 0.04em;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 16px 0 36px;
  color: var(--faint);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.foot a { color: var(--faint); }
.foot a:hover { color: var(--lime); }

.prose { padding: 18px 0 72px; max-width: 62ch; }
.prose h1 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(2.6rem, 10vw, 4.2rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.9;
  color: var(--ink);
}
.prose h2 {
  margin: 36px 0 10px;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--lime);
}
.prose p, .prose li {
  color: #c6c6bc;
  line-height: 1.6;
  font-size: 0.9rem;
}
.prose ul { padding-left: 1.15rem; }
.prose li { margin: 8px 0; }

@keyframes livepulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.28; }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(200, 255, 61, 0.28), 0 0 22px rgba(200, 255, 61, 0.08); }
  50% { box-shadow: 0 0 0 1px rgba(200, 255, 61, 0.7), 0 0 36px rgba(200, 255, 61, 0.18); }
}

@media (min-width: 640px) {
  .sheet {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 6vh;
    transform: translateX(-50%);
    width: min(480px, calc(100% - 32px));
    max-height: 88dvh;
    border-radius: 8px;
    border-bottom: 1px solid #2a2a32;
    padding: 22px 22px 20px;
  }
  .actions .btn { width: auto; min-width: 180px; }
  .podium {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    padding: 26px 28px 22px;
    gap: 12px 32px;
  }
  .podium-rank { grid-row: 1 / span 2; }
  .row {
    grid-template-columns: 3.4rem minmax(0, 1fr) auto;
    grid-template-areas:
      "rank mid bid"
      "rank mid take";
    padding: 14px 2px 14px 0;
  }
  .row .claim-link { margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .live-pill i,
  .ticker-live i,
  .podium { animation: none; }
}
