/* Copypasta: "test kitchen" design system. Aubergine dark, parmesan = the real one, tomato = copies, basil = alive. */
:root {
  --bg: #141016; --bg2: #1b161e; --panel: #201a24; --panel2: #2a2230; --line: #352b3b; --line2: #483b50;
  --text: #f6efe3; --mute: #a99dac; --dim: #7a6e7e;
  --og: #f5c542; --og-ink: #2a2000; --clone: #ff6f59; --alive: #5fd38d; --curve: #8fb8ff; --dead: #6f6474; --fake: #d58cff;
  --r: 14px; --r-sm: 9px;
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow: 0 10px 30px -12px rgba(0,0,0,.6);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--display); min-height: 100vh; display: flex; flex-direction: column;
  background-image: radial-gradient(1100px 500px at 85% -10%, rgba(245,197,66,.07), transparent 60%), radial-gradient(900px 500px at -10% 10%, rgba(255,111,89,.06), transparent 60%); }
main { flex: 1; outline: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
img { display: block; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--og); color: var(--og-ink); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--og); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--mono); }
.mute { color: var(--mute); } .dim { color: var(--dim); }
.c-og { color: var(--og); } .c-clone { color: var(--clone); } .c-alive { color: var(--alive); } .c-curve { color: var(--curve); }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(20,16,22,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.brand:hover img { transform: rotate(-14deg) scale(1.06); }
.hsearch { flex: 1; max-width: 380px; display: flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.hsearch input { flex: 1; min-width: 0; background: none; border: 0; padding: 8px 14px; font-family: var(--mono); font-size: 13px; outline: none; }
.hsearch button { background: none; border: 0; padding: 0 14px; color: var(--og); cursor: pointer; font-weight: 700; }
.hsearch:focus-within { border-color: var(--og); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; padding: 7px 12px; border-radius: 999px; color: var(--mute); font-weight: 600; font-size: 14px; position: relative; }
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a.on { color: var(--og-ink); background: var(--og); }
.pill-n { margin-left: 6px; font-family: var(--mono); font-size: 11px; background: var(--clone); color: #fff; border-radius: 999px; padding: 0 6px; }

/* ---- hero ---- */
.hero { padding: 46px 0 22px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 34px; align-items: end; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--og); margin: 0 0 12px; }
h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: .98; letter-spacing: -.035em; margin: 0 0 16px; font-weight: 800; }
h1 em { font-style: normal; color: var(--og); }
h1 s { text-decoration-color: var(--clone); text-decoration-thickness: 5px; color: var(--mute); }
.lede { color: var(--mute); font-size: 17px; max-width: 560px; margin: 0 0 22px; }
.bigsearch { display: flex; gap: 8px; background: var(--panel); border: 1px solid var(--line2); border-radius: 16px; padding: 7px; box-shadow: var(--shadow); max-width: 600px; }
.bigsearch input { flex: 1; min-width: 0; background: none; border: 0; outline: none; padding: 10px 12px; font-family: var(--mono); font-size: 15px; }
.bigsearch:focus-within { border-color: var(--og); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line2); background: var(--panel2); color: var(--text); border-radius: 11px; padding: 9px 15px; font-weight: 700; cursor: pointer; text-decoration: none; font-size: 14px; transition: transform .12s, background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { border-color: var(--mute); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn.pri { background: var(--og); color: var(--og-ink); border-color: var(--og); }
.btn.pri:hover { filter: brightness(1.07); }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 9px; }
.btn.on { border-color: var(--og); color: var(--og); }
.tries { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.tries span { color: var(--dim); font-size: 13px; }
.chip { font-family: var(--mono); font-size: 12.5px; border: 1px solid var(--line2); border-radius: 999px; padding: 4px 11px; text-decoration: none; color: var(--text); background: var(--bg2); cursor: pointer; transition: border-color .15s, color .15s; }
.chip:hover { border-color: var(--og); color: var(--og); }

/* ---- stat strip ---- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 8px 0 30px; }
.stat { background: var(--panel); padding: 15px 18px; min-height: 92px; }
.stat b { display: block; font-size: 28px; letter-spacing: -.02em; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat small { color: var(--mute); font-size: 12.5px; display: block; margin-top: 3px; }
.stat .k { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }

/* ---- sections ---- */
.sec-h { display: flex; align-items: baseline; gap: 14px; margin: 0 0 14px; flex-wrap: wrap; }
.sec-h h2 { font-size: 24px; margin: 0; letter-spacing: -.02em; }
.sec-h .mute { font-size: 13.5px; }
.sec-h .right { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.live-dot { display: inline-block; width: 8px; height: 8px; background: var(--alive); border-radius: 50%; margin-right: 6px; box-shadow: 0 0 0 0 rgba(95,211,141,.6); animation: pulse 2s infinite; vertical-align: 1px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(95,211,141,.55); } 70% { box-shadow: 0 0 0 8px rgba(95,211,141,0); } 100% { box-shadow: 0 0 0 0 rgba(95,211,141,0); } }
.cols { display: grid; grid-template-columns: 1fr 330px; gap: 26px; align-items: start; }

/* ---- board cards ---- */
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; text-decoration: none; display: flex; flex-direction: column; gap: 11px; position: relative; transition: transform .18s, border-color .18s, box-shadow .18s; animation: rise .45s both; }
.card:hover { transform: translateY(-3px); border-color: var(--line2); box-shadow: var(--shadow); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card-h { display: flex; align-items: baseline; gap: 10px; }
.card-h .tk { font-size: 23px; font-weight: 800; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 62%; }
.card-h .n { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--mute); text-align: right; white-space: nowrap; }
.card-h .n b { color: var(--text); font-size: 18px; }
.spark { width: 100%; height: 34px; display: block; }
.tally { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .03em; padding: 3px 8px; border-radius: 6px; background: var(--bg2); border: 1px solid var(--line); color: var(--mute); white-space: nowrap; }
.tag.og { color: var(--og-ink); background: var(--og); border-color: var(--og); }
.tag.clone, .tag.rugged { color: var(--clone); border-color: rgba(255,111,89,.4); background: rgba(255,111,89,.08); }
.tag.alive { color: var(--alive); border-color: rgba(95,211,141,.4); background: rgba(95,211,141,.08); }
.tag.curve { color: var(--curve); border-color: rgba(143,184,255,.4); background: rgba(143,184,255,.08); }
.tag.dead, .tag.faded, .tag.quiet { color: var(--dim); }
.tag.new { color: var(--text); border-style: dashed; }
.tag.fake { color: var(--fake); border-color: rgba(213,140,255,.4); }
.tag.warn { color: var(--og); border-color: rgba(245,197,66,.4); background: rgba(245,197,66,.07); }
.leadrow { display: flex; align-items: center; gap: 10px; background: var(--bg2); border-radius: 10px; padding: 8px 10px; font-size: 13px; min-height: 48px; }
.leadrow .lbl { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--og); }
.leadrow .none { color: var(--clone); font-size: 13px; }
.av { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; background: var(--panel2); flex: none; }
.av.lg { width: 56px; height: 56px; border-radius: 12px; }
.taxbar { height: 6px; border-radius: 3px; background: var(--bg2); overflow: hidden; display: flex; }
.taxbar i { display: block; height: 100%; background: var(--clone); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.taxline { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11.5px; color: var(--mute); margin-top: -4px; }
.new-badge { position: absolute; top: -8px; right: 12px; background: var(--clone); color: #fff; font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; animation: pop .4s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- fresh feed ---- */
.feed { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.feed-h { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.feed-h h3 { margin: 0; font-size: 17px; }
.feed-h p { margin: 3px 0 0; color: var(--mute); font-size: 12.5px; }
.feed ol { list-style: none; margin: 0; padding: 0; max-height: 640px; overflow-y: auto; }
.feed li a { display: flex; align-items: center; gap: 10px; padding: 9px 16px; text-decoration: none; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.feed li a:hover { background: var(--panel2); }
.feed li.in { animation: slidein .5s both; }
@keyframes slidein { from { background: rgba(255,111,89,.18); transform: translateX(-6px); } to { background: transparent; transform: none; } }
.feed .t { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--dim); white-space: nowrap; }
.feed .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.feed .nm b { font-weight: 700; }
.feed .nm small { display: block; color: var(--dim); font-family: var(--mono); font-size: 11px; }

/* ---- history chart ---- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.chart { width: 100%; height: 190px; display: block; }
.chart.tall { height: 300px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-family: var(--mono); font-size: 11.5px; color: var(--mute); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }

/* ---- detail ---- */
.crumb { margin: 26px 0 6px; font-family: var(--mono); font-size: 12.5px; color: var(--dim); }
.crumb a { color: var(--mute); }
.dhead { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.dhead h1 { margin: 0; }
.dhead .acts { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.headline { font-size: 18px; color: var(--mute); margin: 0 0 22px; max-width: 820px; }
.headline b { color: var(--text); }
.refs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.ref { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 15px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ref.lead { border-color: rgba(245,197,66,.55); box-shadow: 0 0 0 1px rgba(245,197,66,.15) inset, var(--shadow); }
.ref .role { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--og); }
.ref .role.mute { color: var(--dim); }
.ref .who { display: flex; gap: 10px; align-items: center; min-width: 0; }
.ref .who div { min-width: 0; }
.ref .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ref .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-size: 12px; color: var(--mute); }
.ref .nums b { display: block; color: var(--text); font-size: 15px; font-variant-numeric: tabular-nums; }
.ref .empty { color: var(--mute); font-size: 14px; }
.ca { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--mute); background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; min-width: 0; }
.ca span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.ca button { background: none; border: 0; color: var(--og); cursor: pointer; padding: 0 2px; font-size: 12px; font-family: var(--mono); }
.links { display: flex; gap: 10px; font-size: 12.5px; flex-wrap: wrap; }
.links a { color: var(--mute); }
.links a:hover { color: var(--og); }
.grid2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; margin-bottom: 22px; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 10px; overflow: hidden; }
.kv div { background: var(--bg2); padding: 10px 12px; }
.kv b { display: block; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kv small { color: var(--mute); font-size: 12px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.filters button { background: var(--bg2); border: 1px solid var(--line); color: var(--mute); border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; font-weight: 600; }
.filters button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr.hl td { background: rgba(245,197,66,.07); }
.tbl tr:hover td { background: var(--panel2); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
.tbl .coin { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tbl .coin a { text-decoration: none; }
.tbl .coin b { display: block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl .coin small { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.tblwrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; overflow-y: hidden; }
.tbl .flags { display: flex; gap: 4px; flex-wrap: wrap; }
.more { display: block; width: 100%; padding: 12px; background: var(--bg2); border: 0; border-top: 1px solid var(--line); color: var(--mute); cursor: pointer; font-weight: 600; }
.more:hover { color: var(--text); }
.creators { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.creators li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.creators .bar { flex: 1; height: 6px; background: var(--bg2); border-radius: 3px; overflow: hidden; }
.creators .bar i { display: block; height: 100%; background: var(--clone); }
.note { font-size: 12.5px; color: var(--dim); margin: 10px 0 0; }

/* ---- verdict (coin check) ---- */
.verdict { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 26px; margin: 8px 0 22px; position: relative; overflow: hidden; }
.verdict::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(255,255,255,.012) 14px 28px); pointer-events: none; }
.stamp { width: 190px; height: 190px; border-radius: 50%; border: 6px double currentColor; display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -.01em; transform: rotate(-9deg); animation: stamp .55s cubic-bezier(.2,1.6,.4,1) both; padding: 18px; }
.stamp small { display: block; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; margin-top: 8px; }
.stamp.og { color: var(--og); } .stamp.clone { color: var(--clone); }
@keyframes stamp { 0% { transform: rotate(-30deg) scale(1.8); opacity: 0; } 60% { opacity: 1; } 100% { transform: rotate(-9deg) scale(1); } }
.verdict h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.02em; }
.verdict ul { margin: 12px 0 16px; padding-left: 18px; color: var(--mute); }
.verdict li { margin: 4px 0; }
.verdict .acts { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }

/* ---- generic states ---- */
.skel { background: linear-gradient(90deg, var(--panel) 0%, var(--panel2) 50%, var(--panel) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; border-radius: var(--r); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.empty-st { text-align: center; padding: 46px 20px; color: var(--mute); background: var(--panel); border: 1px dashed var(--line2); border-radius: var(--r); }
.empty-st h3 { color: var(--text); margin: 8px 0; font-size: 19px; }
.empty-st .big { font-size: 38px; }
.err { color: var(--clone); }
.loading-line { display: flex; align-items: center; gap: 12px; color: var(--mute); padding: 30px 0; font-family: var(--mono); font-size: 13px; }
.spin { width: 18px; height: 18px; border: 2px solid var(--line2); border-top-color: var(--og); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(20px); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 60; }
.toast.on { opacity: 1; transform: translateX(-50%); }

/* ---- prose (how) ---- */
.prose { max-width: 760px; padding: 30px 0 10px; }
.prose h1 { font-size: 42px; }
.prose h2 { font-size: 22px; margin: 30px 0 8px; }
.prose p, .prose li { color: var(--mute); }
.prose b { color: var(--text); }
.prose dl { display: grid; grid-template-columns: 150px 1fr; gap: 10px 18px; }
.prose dt { font-weight: 700; }
.prose dd { margin: 0; color: var(--mute); }

/* ---- watchlist ---- */
.wl { display: flex; flex-direction: column; gap: 12px; }
.wrow { display: grid; grid-template-columns: 1.2fr 2fr auto; gap: 16px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.wrow .tk { font-size: 21px; font-weight: 800; text-decoration: none; }
.wrow .diff { display: flex; gap: 6px; flex-wrap: wrap; }
.wrow .acts { display: flex; gap: 6px; }

.foot { border-top: 1px solid var(--line); margin-top: 50px; padding: 22px 0 30px; color: var(--dim); font-size: 12.5px; }
.foot p { margin: 4px 0; }
.foot a { color: var(--mute); }
.foot .disc { color: var(--mute); }

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-top: 30px; }
  .hero > * { min-width: 0; }
  .cols, .grid2 { grid-template-columns: minmax(0, 1fr); }
  .grid2 > .panel, .cols > * { min-width: 0; }
  .note .mono { overflow-wrap: anywhere; }
  .refs { grid-template-columns: 1fr; }
}
.stats.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) { .stats.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .top-in { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 8px; gap: 8px 12px; }
  .hsearch { order: 3; max-width: none; flex-basis: 100%; }
  .nav { margin-left: auto; }
  .top-in { flex-wrap: wrap; }
  .nav a { padding: 6px 8px; font-size: 13px; }
  .brand { font-size: 18px; }
  .brand img { width: 28px; height: 28px; }
  .brand span { font-size: 19px; }
  .verdict { grid-template-columns: 1fr; justify-items: start; padding: 20px; }
  .stamp { width: 150px; height: 150px; font-size: 21px; }
  .vs { grid-template-columns: 1fr; }
  .tbl .hide-m { display: none; }
  .tbl td, .tbl th { padding: 8px 7px; }
  .tbl .coin b, .tbl .coin small { display: block; max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tbl .av { width: 24px; height: 24px; }
  .tbl .coin { gap: 7px; }
  .wrow { grid-template-columns: 1fr; gap: 10px; }
  .prose dl { grid-template-columns: 1fr; gap: 2px 0; }
  .prose dd { margin-bottom: 8px; }
  .stat b { font-size: 23px; }
}
@media (max-width: 360px) {
  .brand span { display: none; }
  .stat { padding: 12px 13px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
