/* PUMPDb — palette from the logo: #FCC205 on black. Zero border-radius.
   Rule of the design: yellow means rating or primary action. Nothing else. */

:root {
  --yellow: #fcc205;
  --bg: #0a0a0b;
  --panel: #121214;
  --panel-2: #17171a;
  --line: #232327;
  --text: #ededf0;
  --muted: #7e7e88;
  --dim: #55555e;
  --up: #35c46a;
  --down: #f0474b;

  --display: 'Anton', 'Arial Narrow', Impact, sans-serif;
  --ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;

  --max: 1180px;
}

* { box-sizing: border-box; border-radius: 0 !important; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; padding: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.up { color: var(--up); }
.down { color: var(--down); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 16px;
  font-size: 13.5px; font-weight: 600;
  border: 1px solid var(--line);
  color: var(--text);
  white-space: nowrap;
  transition: border-color .12s, background .12s;
}
.btn:hover { border-color: var(--dim); }
.btn-primary { background: var(--yellow); color: #000; border-color: var(--yellow); font-weight: 700; }
.btn-primary:hover { background: #ffcf2b; border-color: #ffcf2b; }
.btn-sm { padding: 7px 11px; font-size: 12.5px; }
.btn-icon { padding: 10px; }

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

.topbar { position: sticky; top: 0; z-index: 60; background: rgba(10,10,11,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: var(--max); margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.brand img { height: 24px; width: auto; }

.search { flex: 1 1 auto; position: relative; max-width: 520px; margin: 0 auto; min-width: 0; }
.search-row { display: flex; align-items: center; background: var(--panel); border: 1px solid var(--line); transition: border-color .12s; }
.search-row:focus-within { border-color: var(--dim); }
.search-row svg { width: 15px; height: 15px; margin-left: 12px; color: var(--dim); flex: 0 0 auto; }
.search input { flex: 1; background: none; border: none; outline: none; padding: 9px 12px; font-size: 14px; min-width: 0; }
.search input::placeholder { color: var(--dim); }

.nav-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

/* search results dropdown */
.results-pop {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--panel); border: 1px solid var(--line);
  max-height: 420px; overflow-y: auto; display: none;
  box-shadow: 0 20px 60px rgba(0,0,0,.75);
}
.results-pop.open { display: block; }
.res-item { display: flex; gap: 12px; align-items: center; padding: 10px 14px; }
.res-item + .res-item { border-top: 1px solid var(--line); }
.res-item:hover { background: var(--panel-2); }
.res-item img, .res-ph { width: 36px; height: 36px; object-fit: cover; flex: 0 0 auto; background: var(--panel-2); }
.res-ph { display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--dim); }
.res-meta { min-width: 0; flex: 1; }
.res-tick { font-weight: 700; font-size: 14px; line-height: 1.3; }
.res-name { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-right { text-align: right; flex: 0 0 auto; font-size: 12px; }
.res-foot { padding: 12px 14px; border-top: 1px solid var(--line); text-align: center; font-size: 13px; color: var(--yellow); display: block; }
.res-foot:hover { background: var(--panel-2); }
.res-empty { padding: 22px 18px; text-align: center; }

/* ---------------- movers ticker ---------------- */

.ticker { border-bottom: 1px solid var(--line); overflow: hidden; background: var(--bg); }
.ticker-track { display: flex; width: max-content; animation: slide 90s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.tick-item { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; font-size: 13px; border-right: 1px solid var(--line); }
.tick-item img { width: 16px; height: 16px; object-fit: cover; }
.tick-sym { font-weight: 600; }
.tick-pct { font-family: var(--mono); font-size: 12px; }

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

.hero { padding: 60px 0 52px; text-align: center; border-bottom: 1px solid var(--line); }
.hero-mark { display: inline-block; background: var(--yellow); padding: 20px 34px; }
.hero-mark img { height: clamp(34px, 6vw, 52px); width: auto; }
.hero-tag {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(15px, 2vw, 19px); letter-spacing: .26em;
  margin: 22px 0 0; color: var(--text); text-transform: uppercase;
}
.hero-sub { color: var(--muted); margin: 12px auto 0; max-width: 46ch; font-size: 14.5px; }

.hero-search { max-width: 560px; margin: 28px auto 0; }
.hero-search .search { max-width: none; margin: 0; }
.hero-search .search-row { padding: 3px; }
.hero-search input { padding: 12px; font-size: 15px; }

.hero-meta { margin-top: 22px; display: flex; justify-content: center; align-items: center; gap: 10px 22px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.hero-meta b { color: var(--text); font-weight: 600; }
.hero-meta .sep { color: var(--line); }

.live-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.dot { width: 6px; height: 6px; background: var(--dim); display: block; }
.dot.on { background: var(--up); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }

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

.section { padding: 44px 0 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.section-title { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0; }

/* tabs: quiet text, yellow underline on the active one */
.tabs { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  font-size: 14px; font-weight: 500; color: var(--muted);
  padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--yellow); font-weight: 600; }

/* sort control */
.sortbox { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.sortbox > span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sortbox select {
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  padding: 7px 28px 7px 10px; font-size: 13px; outline: none; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5 6 8.5l4-4' fill='none' stroke='%237e7e88' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; background-size: 11px;
}
.sortbox select:hover, .sortbox select:focus { border-color: var(--dim); }
.sortbox option { background: var(--panel); color: var(--text); }

/* ---------------- coin grid ---------------- */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: 22px 20px; }

.card { display: block; position: relative; }
.poster { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: border-color .12s; }
.card:hover .poster { border-color: var(--dim); }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster-ph { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--display); font-size: 26px; color: #2b2b31; }

.badge-live { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.78); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .1em; padding: 3px 7px; display: flex; align-items: center; gap: 5px; }
.badge-live i { width: 5px; height: 5px; background: var(--down); display: block; animation: pulse 1.6s infinite; }
.card-rank { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.78); color: var(--yellow); font-family: var(--display); font-size: 13px; padding: 2px 8px; }

.card-body { padding-top: 10px; }
.card-line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.card-tick { font-weight: 700; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-name { font-size: 12.5px; color: var(--muted); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-stats { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.card-chg { font-weight: 700; }

.rate-inline { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; flex: 0 0 auto; }
.rate-inline .val { font-weight: 700; }
.rate-inline .unrated { color: var(--dim); font-size: 12px; }
.coin-ico { flex: 0 0 auto; }

/* ---------------- coin detail ---------------- */

.detail { padding: 34px 0 8px; }
.detail-top { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.detail-poster { width: 168px; flex: 0 0 auto; aspect-ratio: 1/1; background: var(--panel); border: 1px solid var(--line); }
.detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-main { flex: 1 1 300px; min-width: 0; }
.detail-title { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
.detail-name { color: var(--muted); font-size: 15px; margin-top: 4px; }
.detail-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 3px 8px; }
.chip.on { color: var(--yellow); border-color: rgba(252,194,5,.4); }
.detail-desc { margin-top: 16px; color: #b6b6bf; max-width: 68ch; white-space: pre-wrap; word-break: break-word; font-size: 14px; }
.detail-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; align-items: center; }

.score { flex: 0 0 auto; text-align: right; min-width: 130px; }
.score .lbl { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.score .big { font-family: var(--display); font-size: 46px; line-height: 1; margin-top: 4px; }
.score .big span { color: var(--dim); font-size: 20px; }
.score .coins { display: flex; gap: 3px; justify-content: flex-end; margin-top: 8px; }
.score .sub { font-size: 12px; color: var(--muted); margin-top: 6px; }

.statbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 24px; padding: 22px 0; margin-top: 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.statbar .v { font-family: var(--display); font-size: 21px; line-height: 1.15; }
.statbar .k { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-top: 3px; }

.cols { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 44px; padding: 36px 0 0; align-items: start; }

.block { margin-bottom: 38px; }
.block-head { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 13px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-family: var(--mono); font-size: 12.5px; word-break: break-all; }

.spark { width: 100%; height: 96px; display: block; }
.spark-foot { display: flex; justify-content: space-between; font-size: 11px; margin-top: 6px; }

.dist-row { display: grid; grid-template-columns: 44px 1fr 28px; gap: 10px; align-items: center; font-size: 12px; margin-bottom: 7px; }
.dist-bar { height: 6px; background: var(--panel-2); }
.dist-fill { height: 100%; background: var(--yellow); min-width: 0; }

/* ---------------- reviews ---------------- */

.review { padding: 18px 0; border-top: 1px solid var(--line); }
.review:first-child { border-top: none; padding-top: 0; }
.review-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 7px; }
.review-coins { display: flex; gap: 2px; }
.review-title { font-weight: 700; font-size: 14.5px; }
.review-meta { font-size: 12px; color: var(--muted); }
.review-body { color: #b6b6bf; white-space: pre-wrap; word-break: break-word; font-size: 14px; }
.review-coin { display: flex; align-items: center; gap: 8px; font-weight: 700; flex: 0 0 auto; }
.review-coin img { width: 26px; height: 26px; object-fit: cover; background: var(--panel); }
.review-coin:hover { color: var(--yellow); }
a.review-title:hover { color: var(--yellow); }

.review-actions { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.helpful-btn { font-size: 12px; color: var(--muted); border: 1px solid var(--line); padding: 4px 10px; }
.helpful-btn:hover, .helpful-btn.voted { border-color: var(--yellow); color: var(--yellow); }

.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted); border: 1px solid var(--line); padding: 4px 10px;
}
.share-btn:hover { border-color: var(--text); color: var(--text); }

/* sharing your own review is the action we actually want people taking */
.share-btn.mine { background: var(--yellow); border-color: var(--yellow); color: #000; font-weight: 700; }
.share-btn.mine:hover { background: #ffcf2b; border-color: #ffcf2b; color: #000; }

/* a review opened from a shared link */
.review.highlighted { border-left: 2px solid var(--yellow); padding-left: 14px; }

.notice.posted { display: flex; flex-direction: column; gap: 10px; }
.posted-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.posted-actions .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

.picker { display: flex; gap: 4px; margin: 8px 0 6px; }
.picker button { padding: 4px; line-height: 0; opacity: .85; transition: transform .1s, opacity .1s; }
.picker button:hover { transform: translateY(-2px); opacity: 1; }
.picker-note { font-size: 12.5px; color: var(--muted); min-height: 20px; margin-bottom: 16px; }

.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; background: var(--panel); border: 1px solid var(--line); padding: 10px 12px; outline: none; font-size: 14px; }
.field input:focus, .field textarea:focus { border-color: var(--dim); }
.field textarea { resize: vertical; min-height: 104px; line-height: 1.6; }

.notice { padding: 11px 14px; border: 1px solid var(--line); font-size: 13.5px; margin-bottom: 16px; }
.notice.err { border-color: rgba(240,71,75,.5); color: #ffb0b2; }
.notice.ok { border-color: rgba(53,196,106,.5); color: #a5e9c0; }

.empty { padding: 48px 24px; text-align: center; color: var(--muted); border: 1px solid var(--line); }
.empty strong { color: var(--text); display: block; margin-bottom: 8px; font-size: 15.5px; font-weight: 700; }
.empty p { margin: 0 auto; max-width: 44ch; font-size: 13.5px; }

.skeleton { background: var(--panel); border: 1px solid var(--line); aspect-ratio: 1/1; animation: sk 1.5s ease-in-out infinite; }
@keyframes sk { 50% { opacity: .4; } }

/* ---------------- list page ---------------- */

.narrow { max-width: 620px; margin: 0 auto; }
.page-title { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 12px; }
.preview-card { display: flex; gap: 16px; align-items: center; border: 1px solid var(--line); padding: 16px; margin-top: 20px; }
.preview-card img { width: 84px; height: 84px; object-fit: cover; flex: 0 0 auto; background: var(--panel); }
.steps { margin: 32px 0; }
.step { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.step .num { font-family: var(--display); color: var(--yellow); font-size: 17px; line-height: 1.4; flex: 0 0 20px; }
.step .t { font-weight: 600; font-size: 14.5px; }
.step .d { font-size: 13.5px; color: var(--muted); margin-top: 2px; }

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

.footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 32px 0; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.footer img { height: 20px; opacity: .85; }
.footer-links { display: flex; gap: 20px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.footer-links a:hover { color: var(--yellow); }
.disclaimer { font-size: 12px; color: var(--dim); max-width: 52ch; line-height: 1.65; margin: 14px 0 0; }

.ca-strip { max-width: var(--max); margin: 26px auto 0; padding: 14px 24px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ca-label { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); font-weight: 700; flex: 0 0 auto; }
.ca-val { font-family: var(--mono); font-size: 12.5px; color: var(--muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-val.set { color: var(--text); }

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

@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; gap: 0; }
  .score { text-align: left; margin-top: 20px; }
  .score .coins { justify-content: flex-start; }
}
@media (max-width: 700px) {
  .topbar-inner { gap: 10px; padding: 10px 16px; }
  .brand { margin-right: auto; }
  .search { order: 3; flex: 1 0 100%; max-width: none; }
  .wrap, .footer-inner, .ca-strip { padding-left: 16px; padding-right: 16px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px 14px; }
  .hero { padding: 40px 0 36px; }
  .detail-poster { width: 108px; }
  .statbar { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
