:root {
  --ink: #16141c;
  --mute: #5c574f;
  --line: #e6e0d6;
  --bg: #f6f3ec;
  --card: #fffcf7;
  --live: #2f8efc;
  --btn: #d3321f;
  --navy: #16132a;
  --blue: #2f8efc;
  --red: #d3321f;
  --ok: #1a7a3a;
  --shadow: 0 1px 2px rgba(22, 20, 28, 0.04), 0 12px 32px rgba(22, 20, 28, 0.05);
  --radius: 18px;
  --max: 46rem;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
}
body { min-height: 100svh; }
a { color: inherit; }
img { max-width: 100%; }

.bar {
  background: rgba(22, 19, 42, 0.96);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.wrap {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 0.9rem 1.15rem 4.5rem;
}
header.top, .barinner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 0.95rem 1.35rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 750;
  letter-spacing: -0.05em;
  font-size: 1.18rem;
  text-decoration: none;
  color: #fff;
}
.brand img, .brand svg {
  height: 2rem;
  width: 2rem;
  border-radius: 0.5rem;
  display: block;
}
nav ul {
  display: flex;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  font-weight: 600;
}
.barinner nav {
  display: flex;
  gap: 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
}
nav a { color: #ffffffb3; text-decoration: none; }
nav a.on, nav a:hover { color: #fff; }

.stats { display: flex; justify-content: center; margin: 0 0 0.7rem; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card);
  color: var(--mute);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.84rem;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.live { position: relative; width: 0.5rem; height: 0.5rem; }
.live i, .live b { position: absolute; inset: 0; border-radius: 99px; background: var(--live); }
.live i { animation: ping 1.4s ease-out infinite; opacity: 0.55; }
@keyframes ping {
  from { transform: scale(1); opacity: 0.7; }
  to { transform: scale(2.4); opacity: 0; }
}
.pill strong { color: var(--live); font-weight: 700; }

.lede {
  text-align: center;
  color: var(--mute);
  font-size: 0.82rem;
  line-height: 1.4;
  margin: 0 0 0.85rem;
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}

h1.claim {
  margin: 0;
  text-align: center;
  font-size: clamp(1.2rem, 3.2vw, 1.55rem);
  letter-spacing: -0.04em;
  font-weight: 800;
  line-height: 1.15;
}
h1.page {
  margin: 0 0 0.9rem;
  text-align: center;
  font-size: clamp(1.75rem, 4.4vw, 2.35rem);
  letter-spacing: -0.055em;
  font-weight: 800;
  line-height: 1.15;
}
.claimbox, .prose-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow);
}
.claimbox.open { padding: 1.2rem 1.2rem 1.3rem; }
.linerow {
  display: flex;
  align-items: center;
  gap: 0.55rem 0.7rem;
  flex-wrap: wrap;
}
.linerow h1.claim { text-align: left; flex: 1 1 100%; margin: 0 0 0.15rem; }
.linerow #name, .linerow #link {
  flex: 1 1 9rem;
  min-width: 8rem;
  margin: 0;
}
.linerow .amt { margin: 0; }
.linerow #go {
  width: auto;
  min-width: 7.2rem;
  margin: 0;
  padding: 0.7rem 1rem;
}
.openmore {
  display: block;
  width: 100%;
  margin-top: 0.55rem;
  border: 0;
  background: none;
  color: var(--mute);
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
  padding: 0;
  font-family: inherit;
}
.openmore:hover { color: var(--ink); }
.claimbox.open .openmore { display: none; }
.more-fields { display: none; margin-top: 0.85rem; }
.claimbox.open .more-fields { display: grid; gap: 0.7rem; }
.amt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  margin: 0;
  flex: 0 0 auto;
}
.amt button {
  width: 2.15rem;
  height: 2.15rem;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  line-height: 1;
}
.amt button:disabled { opacity: 0.35; cursor: default; }
.amt .cur { color: var(--mute); font-weight: 750; font-size: 0.95rem; }
.amt input {
  width: 2.8rem;
  border: 0;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  background: transparent;
  letter-spacing: -0.04em;
  font-family: inherit;
  color: var(--ink);
}
.hint {
  text-align: center;
  color: var(--mute);
  font-size: 0.86rem;
  margin: 0 0 1.15rem;
  line-height: 1.5;
}
form.grid { display: grid; gap: 0.7rem; }
label {
  display: block;
  font-size: 0.72rem;
  color: var(--mute);
  font-weight: 650;
  margin-bottom: 0.32rem;
  letter-spacing: 0.01em;
}
input[type=text], input[type=url], select {
  width: 100%;
  font-size: 16px;
  padding: 0.78rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  font-family: inherit;
  color: var(--ink);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%235c574f' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.2rem;
}
input:focus, select:focus {
  outline: 2px solid rgba(211, 50, 31, 0.28);
  outline-offset: 1px;
  border-color: #e8b4ac;
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
button#go, .btn-primary {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 0.92rem 1rem;
  margin-top: 0.35rem;
  background: var(--btn);
  color: #fff;
  font-weight: 750;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -0.02em;
}
button#go[disabled] { opacity: 0.5; cursor: wait; }
.fineprint {
  text-align: center;
  color: var(--mute);
  font-size: 0.8rem;
  line-height: 1.45;
  margin: 0.55rem 0 0;
}
.fineprint a { color: var(--ink); font-weight: 650; }
.err { color: #a33; font-size: 0.82rem; min-height: 0; margin: 0; }
.ok { color: var(--ok); font-size: 0.82rem; margin: 0.15rem 0 0; }

h2 {
  font-size: 1.08rem;
  letter-spacing: -0.03em;
  margin: 1.15rem 0 0.55rem;
  font-weight: 750;
}
#boardtitle { margin-top: 1rem; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.1rem 0 0.85rem;
}
.section-head h2 { margin: 0; }
.more {
  border: 0;
  background: none;
  color: var(--red);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.more[hidden] { display: none; }

.cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.1rem 0 0;
  justify-content: center;
}
.cats a, .cats span {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 0.75rem;
  font-weight: 650;
  text-decoration: none;
  color: var(--mute);
}
.cats a.on, .cats a:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.feed a, .feed li > div {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.72rem 0.9rem;
}
.av {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  background: #ece7dc;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex: 0 0 auto;
  overflow: hidden;
  color: var(--ink);
}
.av img { width: 100%; height: 100%; object-fit: cover; }
.feed .meta { min-width: 0; flex: 1; }
.feed .who { font-weight: 700; letter-spacing: -0.02em; }
.feed .sub { color: var(--mute); font-size: 0.78rem; margin-top: 0.08rem; }
.feed .when { color: var(--mute); font-size: 0.75rem; white-space: nowrap; }
.trend .sub { font-variant-numeric: tabular-nums; }

.board { display: grid; gap: 0.75rem; }
article.row {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 0.95rem;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.05rem 1.15rem;
  text-decoration: none;
}
article.row.top {
  border-color: #c9ddf8;
  box-shadow: 0 0 0 1px var(--blue), var(--shadow);
}
.rank {
  font-weight: 800;
  font-size: 1rem;
  padding-top: 0.35rem;
  letter-spacing: -0.04em;
  color: var(--mute);
}
article.row.top .rank { color: var(--blue); }
.who { display: flex; gap: 0.8rem; align-items: flex-start; min-width: 0; }
.who .copy { min-width: 0; flex: 1; }
.who a.name {
  font-weight: 780;
  letter-spacing: -0.03em;
  text-decoration: none;
  font-size: 1.02rem;
}
.who a.name:hover { text-decoration: underline; text-underline-offset: 3px; }
.host { color: var(--mute); font-size: 0.78rem; font-weight: 550; margin-top: 0.1rem; }
.bid {
  font-weight: 800;
  font-size: 1.15rem;
  white-space: nowrap;
  letter-spacing: -0.03em;
  padding-top: 0.2rem;
}
.tag { margin: 0.35rem 0 0.5rem; color: #333; font-size: 0.9rem; line-height: 1.45; }
.bits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  color: var(--mute);
  font-size: 0.75rem;
  align-items: center;
}
.bits a.cat {
  color: var(--navy);
  font-weight: 650;
  text-decoration: none;
}
.bits a.cat:hover { text-decoration: underline; }
.claimrank {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
}
.milestone {
  text-align: center;
  color: var(--mute);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0.25rem 0 0.1rem;
}

.hall { display: grid; gap: 0.85rem; grid-template-columns: 1fr 1fr; }
.day {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 1.05rem;
}
.day h3 { margin: 0 0 0.55rem; font-size: 0.8rem; color: var(--mute); font-weight: 700; }
.day ol { margin: 0; padding: 0; list-style: none; }
.day li {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  font-size: 0.86rem;
  padding: 0.32rem 0;
  border-top: 1px solid var(--line);
}
.day li:first-child { border-top: 0; }

footer {
  margin-top: 2.8rem;
  text-align: center;
  color: var(--mute);
  font-size: 0.82rem;
  line-height: 1.65;
}
footer a { color: var(--ink); font-weight: 650; }
.refresh {
  display: inline-block;
  margin-top: 0.7rem;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
}
.empty { color: var(--mute); font-size: 0.9rem; line-height: 1.45; }

.page-wrap h1 { text-align: left; margin: 1.6rem 0 0.8rem; }
.page-wrap h2 { margin: 1.8rem 0 0.55rem; }
.page-wrap p, .page-wrap li {
  color: #333;
  line-height: 1.6;
  font-size: 0.98rem;
}
.page-wrap ul { padding-left: 1.2rem; }
.page-wrap .stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.4rem 0 1.7rem;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.05rem;
  box-shadow: var(--shadow);
}
.stat b { display: block; font-size: 1.45rem; letter-spacing: -0.04em; }
.stat span { color: var(--mute); font-size: 0.75rem; }

@media (max-width: 700px) {
  .row2, .hall { grid-template-columns: 1fr; }
  nav ul { gap: 0.55rem; font-size: 0.78rem; }
  article.row { grid-template-columns: 2.2rem 1fr; gap: 0.7rem; padding: 0.8rem 0.85rem; }
  article.row .bid { grid-column: 2; padding-top: 0; }
  .wrap { padding: 0.55rem 0.9rem 3.2rem; }
  header.top, .barinner { padding: 0.55rem 0.9rem; }
  .page-wrap .stats-grid { grid-template-columns: 1fr; }
  .stats { margin: 0 0 0.45rem; }
  .pill { padding: 0.28rem 0.62rem; font-size: 0.72rem; gap: 0.32rem; flex-wrap: wrap; justify-content: center; }
  .claimbox { padding: 0.5rem 0.65rem; border-radius: 12px; }
  form.grid { gap: 0.28rem; }
  .linerow { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
  .linerow #name, .linerow #link { flex: 1 1 8rem; min-width: 7rem; }
  .linerow h1.claim { text-align: left; font-size: 0.88rem; flex: 1 1 100%; min-width: 0; }
  .amt button { width: 1.9rem; height: 1.9rem; font-size: 1rem; }
  .amt input { width: 2.15rem; font-size: 1.08rem; }
  .linerow #go { width: auto; min-width: 4.4rem; padding: 0.5rem 0.7rem; font-size: 0.86rem; }
  .openmore { margin-top: 0.15rem; font-size: 0.74rem; }
  #boardtitle { margin: 0.75rem 0 0.4rem; font-size: 0.95rem; }
  .section-head { margin: 1.15rem 0 0.45rem; }
  .cats { margin: 0.5rem 0 0; }
}
