/* ==========================================================================
   rariblee.cc — marketplace listing surface
   tokens lifted from the reference dark theme, Geist Mono + Tomorrow
   ========================================================================== */

@font-face{font-family:"Geist Mono";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/GeistMono-400.woff2") format("woff2")}
@font-face{font-family:"Geist Mono";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/GeistMono-500.woff2") format("woff2")}
@font-face{font-family:"Geist Mono";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/GeistMono-600.woff2") format("woff2")}
@font-face{font-family:"Geist Mono";font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/GeistMono-700.woff2") format("woff2")}
@font-face{font-family:"Tomorrow";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/Tomorrow-500.woff2") format("woff2")}
@font-face{font-family:"Tomorrow";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/Tomorrow-600.woff2") format("woff2")}
@font-face{font-family:"Tomorrow";font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/Tomorrow-700.woff2") format("woff2")}

:root{
  --bg:0 0% 4%;
  --fg:0 0% 100%;
  --card:240 10% 3.9%;
  --border:240 3.7% 15.9%;
  --brand:61.18 100% 50%;
  --success:81.2 100% 48.82%;
  --danger:334.41 100% 58.63%;
  --header-h:64px;
  --font-sans:"Geist Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --font-headline:"Tomorrow","Geist Mono",system-ui,sans-serif;
  --pad-x:16px;
  color-scheme:dark;
}
@media (min-width:768px){:root{--pad-x:32px}}

*,*::before,*::after{box-sizing:border-box;border:0 solid hsl(var(--border))}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  background:hsl(var(--bg));
  color:hsl(var(--fg));
  font-family:var(--font-sans);
  font-size:14px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img,svg,video{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;cursor:pointer}
h1,h2,h3,h4,h5,h6,p,ul,ol,table,figure{margin:0;padding:0}
ul,ol{list-style:none}
table{border-collapse:collapse;width:100%}
::selection{background:hsl(var(--brand));color:#000}

/* thin, dark scrollbars for the horizontal rails */
.rail{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.16) transparent}
.rail::-webkit-scrollbar{height:8px}
.rail::-webkit-scrollbar-track{background:transparent}
.rail::-webkit-scrollbar-thumb{background:rgba(255,255,255,.14);border-radius:999px}

.shell{display:flex;min-height:100vh;flex-direction:column}

/* ---------------------------------------------------------------- header */
.site-header{
  position:sticky;top:0;z-index:50;flex-shrink:0;
  background:hsl(var(--bg)/.95);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;
  gap:24px;min-height:var(--header-h);padding:12px var(--pad-x);
}
.header-left{display:flex;align-items:center;gap:32px}
@media (min-width:1280px){.header-left{min-width:400px}}

.logo{display:flex;align-items:center;gap:6px}
.logo svg{width:90px;height:13px}
.logo svg path{fill:hsl(var(--fg))}

.nav-tabs{display:none;align-items:center;gap:20px;font-size:16px;white-space:nowrap}
@media (min-width:768px){.nav-tabs{display:flex}}
.nav-tabs a{color:hsl(var(--fg)/.6);transition:color .2s}
.nav-tabs a:hover{color:hsl(var(--fg)/.85)}
.nav-tabs a[aria-current="page"]{color:hsl(var(--fg))}
.nav-badge{
  display:inline-block;margin-left:8px;padding:1px 6px;border-radius:2px;
  background:hsl(var(--brand));color:#000;font-size:11px;font-weight:700;
  line-height:1.25;vertical-align:middle;
}

.header-search{display:none;flex-grow:1;max-width:400px}
@media (min-width:1024px){.header-search{display:block}}
.search-box{
  display:flex;align-items:center;height:36px;padding:0 8px;
  border:1px solid hsl(var(--border));border-radius:6px;
  background:hsl(var(--card));
  transition:box-shadow .2s,border-color .2s;
}
.search-box:focus-within{box-shadow:0 0 0 1px hsl(var(--brand));border-color:hsl(var(--brand)/.5)}
.search-box svg{width:24px;height:24px;flex-shrink:0;margin-right:8px;color:hsl(var(--fg)/.4)}
.search-box input{
  width:100%;height:100%;border:0;outline:0;background:transparent;
  font:inherit;font-size:16px;color:hsl(var(--fg));
}
@media (min-width:768px){.search-box input{font-size:14px}}
.search-box input::placeholder{color:hsl(var(--fg)/.4)}

.header-right{display:flex;align-items:center;justify-content:flex-end;gap:16px}
@media (min-width:768px){
  .header-right{gap:24px;min-width:250px}
  .btn-search-mobile{display:none}
}
.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;color:hsl(var(--fg))}
.icon-btn svg{width:24px;height:24px}
.btn-connect{
  display:inline-flex;align-items:center;height:32px;padding:0 12px;border-radius:8px;
  background:hsl(var(--brand));color:#000;font-size:13px;font-weight:600;
  white-space:nowrap;transition:opacity .2s;
}
.btn-connect:hover{opacity:.9}
@media (min-width:640px){.btn-connect{height:36px;padding:0 16px;font-size:14px}}

/* ------------------------------------------------------- chain filter bar */
.chain-bar{
  position:relative;display:flex;align-items:center;
  border-bottom:1px solid hsl(var(--border));
  margin-bottom:24px;padding:0 var(--pad-x);
}
@media (min-width:768px){.chain-bar{justify-content:center;padding:0 var(--pad-x)}}
.chain-rail{display:flex;align-items:center;position:relative;margin-bottom:-1px;overflow-x:auto;scrollbar-width:none}
.chain-rail::-webkit-scrollbar{display:none}
.chain-tab{
  display:inline-flex;align-items:center;gap:8px;flex-shrink:0;
  padding:0 12px 16px;font-size:14px;font-weight:500;color:hsl(var(--fg)/.6);
  border-bottom:1px solid transparent;white-space:nowrap;transition:color .2s,border-color .2s;
}
.chain-tab:hover{color:hsl(var(--fg)/.9)}
.chain-tab[aria-pressed="true"]{color:hsl(var(--fg));border-bottom-color:hsl(var(--fg))}
.chain-tab img{width:20px;height:20px}
@media (min-width:1280px){.chain-tab{border-bottom-color:transparent}.chain-tab[aria-pressed="true"]{border-bottom-color:hsl(var(--fg))}}
.chain-more{
  display:inline-flex;align-items:center;gap:8px;flex-shrink:0;
  padding:0 12px 16px;font-size:14px;font-weight:500;color:hsl(var(--fg)/.6);
  transition:color .2s;
}
.chain-more:hover{color:hsl(var(--fg))}
.chain-more svg{width:15px;height:15px}
.chain-more[aria-expanded="true"],.chain-more.is-active{color:hsl(var(--brand))}
.chain-more-wrap{position:relative;flex-shrink:0}
.chain-menu{
  position:absolute;top:calc(100% - 1px);right:var(--pad-x);z-index:60;
  display:flex;flex-direction:column;min-width:200px;max-height:min(60vh,340px);overflow-y:auto;
  padding:6px;border-radius:10px;border:1px solid hsl(var(--border));
  background:hsl(var(--card));box-shadow:0 18px 40px rgba(0,0,0,.7);
}
.chain-menu[hidden]{display:none}
.chain-menu-item{
  display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;
  border-radius:6px;font-size:14px;color:hsl(var(--fg)/.75);text-align:left;
  transition:background .15s,color .15s;
}
.chain-menu-item:hover{background:hsl(var(--fg)/.07);color:hsl(var(--fg))}
.chain-menu-item[aria-pressed="true"]{color:hsl(var(--brand))}
.chain-menu-item img{width:16px;height:16px}

/* ------------------------------------------------------------------ hero */
.hero-wrap{margin:0 var(--pad-x) 32px}
.hero{
  position:relative;overflow:hidden;border-radius:12px;
  border:1px solid hsl(var(--border));
}
@media (max-width:1023px){.hero{border:0;border-radius:12px}}
.hero-rail{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.hero-rail::-webkit-scrollbar{display:none}
.hero-slide{
  position:relative;flex:0 0 100%;width:100%;scroll-snap-align:start;
  aspect-ratio:21/5;min-height:300px;overflow:hidden;
}
.hero-slide img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero-slide::after{
  content:"";position:absolute;inset:0;z-index:10;
  background:linear-gradient(to bottom,transparent,rgba(0,0,0,.68));
}
.hero-copy{
  position:absolute;left:0;bottom:0;z-index:20;
  display:flex;flex-direction:column;gap:8px;
  padding:16px;max-width:min(560px,88%);
}
@media (min-width:1024px){.hero-copy{padding:24px}}
.hero-copy h1{font-family:var(--font-headline);font-size:20px;line-height:1.15;font-weight:700;color:#fff}
@media (min-width:768px){.hero-copy h1{font-size:24px}}
.hero-copy p{max-width:512px;font-size:11px;line-height:1.35;color:rgba(255,255,255,.8)}
@media (min-width:768px){.hero-copy p{font-size:12px}}
.hero-cta{
  position:relative;z-index:30;margin-top:8px;width:fit-content;
  padding:8px 20px;border-radius:8px;background:#fff;color:#000;
  font-size:14px;font-weight:500;transition:opacity .2s;
}
.hero-cta:hover{opacity:.9}
.hero-nav{
  position:absolute;inset:0;z-index:25;display:flex;align-items:center;
  justify-content:space-between;padding:0 12px;pointer-events:none;
}
.hero-arrow{
  pointer-events:auto;display:none;align-items:center;justify-content:center;
  width:36px;height:36px;border-radius:999px;
  border:1px solid rgba(255,255,255,.2);background:rgba(0,0,0,.45);
  color:#fff;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  transition:opacity .2s,background .2s;
}
.hero-arrow:hover{background:rgba(0,0,0,.7)}
@media (min-width:1024px){.hero-arrow{display:inline-flex}}
.hero-arrow svg{width:16px;height:16px}
.hero-dots{
  position:absolute;left:50%;bottom:12px;z-index:30;transform:translateX(-50%);
  display:none;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;
  background:rgba(0,0,0,.4);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
}
@media (min-width:1024px){.hero-dots{display:flex}}
.hero-dot{width:6px;height:6px;border-radius:999px;background:rgba(255,255,255,.35);transition:width .25s,background .25s}
.hero-dot[aria-current="true"]{width:20px;background:#fff}

/* ------------------------------------------- trending collections rail */
.section{margin:0 var(--pad-x) 48px}
.rail-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.rail-title{font-family:var(--font-headline);font-size:18px;font-weight:600}
.rail-arrows{display:flex;gap:8px}
.rail-btn{
  display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;
  border-radius:999px;border:1px solid hsl(var(--border));color:hsl(var(--fg)/.7);
  transition:color .2s,background .2s,border-color .2s;
}
.rail-btn:hover{color:#000;background:hsl(var(--fg));border-color:hsl(var(--fg))}
.rail-btn svg{width:14px;height:14px}

.card-rail{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:4px}
@media (min-width:768px){.card-rail{gap:20px}}
.collection-card{
  position:relative;display:flex;flex-direction:column;justify-content:space-between;
  overflow:hidden;scroll-snap-align:start;flex:0 0 auto;min-width:160px;
  width:calc((100% + 10px)/3 - 10px);
  aspect-ratio:27/20;padding:16px;border-radius:8px;
  border:1px solid rgba(255,255,255,.1);
}
@media (min-width:768px){
  .collection-card{min-width:200px;width:calc((100% + 20px)/4 - 20px);border-radius:12px}
}
@media (min-width:1024px){.collection-card{width:calc((100% + 20px)/6 - 20px)}}
.collection-card img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  opacity:.5;transition:transform .3s ease-out;
}
.collection-card:hover img{transform:scale(1.05)}
.collection-card .card-body{position:relative;z-index:30;display:flex;height:100%;flex-direction:column;justify-content:space-between}
.collection-card h6{
  font-family:var(--font-headline);font-size:16px;font-weight:600;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
@media (min-width:768px){.collection-card h6{font-size:18px}}
.card-price{font-size:16px;white-space:nowrap}
@media (min-width:768px){.card-price{font-size:18px}}
.trend{display:flex;align-items:center;gap:6px;font-size:12px}
@media (min-width:768px){.trend{font-size:14px}}
.trend svg{width:12px;height:12px}
.up{color:hsl(var(--success))}
.down{color:hsl(var(--danger))}

/* ------------------------------------------------------------ leaderboard */
.lb-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:24px;margin:0 var(--pad-x) 20px}
.lb-title{font-family:var(--font-headline);font-size:20px;font-weight:600}
.lb-tools{display:flex;flex-wrap:wrap;align-items:center;gap:16px}
.list-link{
  font-size:18px;font-weight:500;color:hsl(var(--brand));
  text-shadow:0 0 10px rgba(161,249,0,.6);
}
.pill-group{display:inline-flex;align-items:center;gap:2px}
.pill{
  height:36px;min-width:36px;padding:0 12px;border-radius:999px;
  font-size:14px;font-weight:500;color:hsl(var(--fg)/.6);
  transition:background .2s,color .2s;
}
.pill:hover{color:hsl(var(--fg))}
.pill[aria-pressed="true"]{background:hsl(var(--fg)/.06);color:hsl(var(--fg))}

.lb-wrap{margin:0 var(--pad-x) 40px;overflow-x:auto}
table.lb{min-width:900px;table-layout:fixed}
table.lb thead th{
  height:40px;padding:8px;background:hsl(var(--bg));
  font-size:12px;font-weight:500;text-align:right;white-space:nowrap;
  color:hsl(var(--fg)/.4);border-bottom:1px solid hsl(var(--border));
}
table.lb thead th:first-child{
  position:sticky;left:0;z-index:10;width:200px;text-align:left;
}
@media (min-width:768px){table.lb thead th:first-child{width:280px}}
table.lb thead th:not(:first-child){width:140px}
table.lb th .sort{display:inline-flex;align-items:center;gap:2px;justify-content:flex-end}
table.lb th .sort svg{width:16px;height:16px}
table.lb th .sort .muted{margin-left:3px}
table.lb tbody tr:hover td{background:#181818}
table.lb tbody td{
  padding:8px;text-align:right;vertical-align:middle;white-space:nowrap;
  border-bottom:1px solid hsl(var(--border));
  transition:background .2s;
}
table.lb tbody tr:last-child td{border-bottom:0}
table.lb tbody td:first-child{
  position:sticky;left:0;z-index:10;width:200px;padding:0;text-align:left;
  background:hsl(var(--bg));border-radius:6px 0 0 6px;
}
@media (min-width:768px){table.lb tbody td:first-child{width:280px}}
table.lb tbody td:last-child{border-radius:0 6px 6px 0}
.cell-col{display:flex;align-items:center;gap:12px;padding:8px}
.cell-col img.avatar{
  width:32px;height:32px;flex-shrink:0;border-radius:6px;
  border:1px solid hsl(var(--border));object-fit:cover;background:hsl(var(--card));
}
.cell-col .who{display:flex;align-items:center;gap:6px;min-width:0}
.cell-col .who span{
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:14px;font-weight:500;
}
.cell-col img.chain{width:14px;height:14px;flex-shrink:0;opacity:.8}
.verified{width:14px;height:14px;flex-shrink:0;color:#3b82f6}
.muted{color:hsl(var(--fg)/.45)}
.delta{display:inline-flex;align-items:center;gap:2px}
.lb-empty{display:flex;align-items:center;justify-content:center;min-height:220px;margin:0 var(--pad-x) 40px}
.lb-empty[hidden]{display:none}
.lb-empty h2{font-family:var(--font-headline);font-size:24px;font-weight:600;text-align:center}
.rail-hidden{display:none !important}

/* ------------------------------------------------------------ news block */
.news{display:flex;flex-direction:column;gap:32px}
@media (min-width:1024px){.news{flex-direction:row;gap:56px}}
.news-feature{flex:1;display:flex;flex-direction:column;gap:12px}
.news-thumb{
  display:block;position:relative;overflow:hidden;border-radius:12px;
  border:1px solid rgba(255,255,255,.1);aspect-ratio:16/9;
}
.news-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.news-thumb:hover img{transform:scale(1.03)}
.news-tag{font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:hsl(var(--fg)/.5)}
.news-feature h3{font-family:var(--font-headline);font-size:22px;line-height:1.25;font-weight:600}
.news-feature:hover h3{text-decoration:underline;text-underline-offset:3px}
.news-list{flex:1;display:flex;flex-direction:column;gap:20px}
.news-item{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}
.news-item .copy{display:flex;max-width:420px;flex-direction:column;gap:8px}
.news-item h4{font-size:16px;font-weight:500;line-height:1.3}
.news-item:hover h4{text-decoration:underline;text-underline-offset:3px}
.news-item .thumb-sm{
  display:block;flex-shrink:0;overflow:hidden;border-radius:4px;
  border:1px solid rgba(255,255,255,.1);aspect-ratio:16/9;width:120px;
}
@media (min-width:768px){.news-item .thumb-sm{width:160px}}
.news-item .thumb-sm img{width:100%;height:100%;object-fit:cover}

/* --------------------------------------------------------------- brands */
.brands{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
@media (min-width:768px){.brands{grid-template-columns:repeat(5,1fr)}}
.brand{
  display:block;overflow:hidden;border-radius:8px;
  border:1px solid hsl(var(--fg)/.1);background:hsl(var(--card));
}
@media (min-width:768px){.brand{border-radius:12px}}
.brand .frame{position:relative;width:100%;aspect-ratio:8/5;display:flex;align-items:center;justify-content:center;padding:12%}
.brand img{width:100%;height:100%;object-fit:contain;transition:transform .25s}
.brand:hover img{transform:scale(1.06)}

/* --------------------------------------------------------- toolbar, foot */
.toolbar{
  position:sticky;bottom:0;z-index:40;display:none;
  background:hsl(var(--bg)/.95);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  padding:0 16px 16px;
}
@media (min-width:768px){.toolbar{display:block}}
.toolbar-inner{
  display:flex;flex-wrap:wrap;align-items:center;gap:20px;
  padding:14px 16px;border:1px solid hsl(var(--fg)/.1);border-radius:12px;
  font-size:12px;
}
.legal-nav{display:flex;align-items:center;gap:20px;margin-right:auto}
.legal-nav span,.legal-nav a{color:hsl(var(--fg)/.6)}
.legal-nav a:hover{color:hsl(var(--fg))}
.discord{display:flex;align-items:center;gap:6px;color:hsl(var(--fg))}
.discord svg{width:16px;height:16px}

.site-footer{
  flex-shrink:0;border-top:1px solid hsl(var(--fg)/.1);
  padding:12px 16px;
}
.site-footer p{font-size:11px;line-height:1.6;color:hsl(var(--fg)/.5)}

/* ----------------------------------------------------- currency switch */
body[data-currency="usd"] .only-crypto{display:none}
body[data-currency="crypto"] .only-usd{display:none}

/* ---------------------------------------------------------- browser gate */
.gate{display:none}
.gate-on .gate{
  position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;
  padding:20px;background:rgba(4,4,4,.86);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
}
html.gate-on,html.gate-on body{overflow:hidden}
.gate-card{
  width:100%;max-width:360px;padding:24px;border-radius:16px;
  border:1px solid rgba(255,255,255,.12);background:#111112;
  box-shadow:0 30px 80px rgba(0,0,0,.7);text-align:center;
  animation:gate-in .28s ease both;
}
@keyframes gate-in{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.gate-card{animation:none}}
.gate-logo{display:inline-flex;margin-bottom:18px}
.gate-logo svg{width:104px;height:15px}
.gate-card h2{font-family:var(--font-headline);font-size:20px;line-height:1.25;font-weight:700}
.gate-sub{margin-top:10px;font-size:13px;line-height:1.55;color:hsl(var(--fg)/.6)}
.gate-hint{
  margin-top:12px;padding:10px 12px;border-radius:8px;font-size:12px;line-height:1.6;
  color:hsl(var(--brand));background:hsl(var(--brand)/.1);text-align:left;
}
.gate-hint[hidden]{display:none}
.gate-actions{display:flex;gap:10px;margin-top:20px}
.gate-btn{
  flex:1;height:42px;border-radius:9px;font-size:14px;font-weight:600;
  display:inline-flex;align-items:center;justify-content:center;transition:opacity .2s,background .2s;
}
.gate-btn.solid{background:hsl(var(--brand));color:#000}
.gate-btn.solid:hover{opacity:.9}
.gate-btn.ghost{border:1px solid rgba(255,255,255,.16);color:hsl(var(--fg)/.85)}
.gate-btn.ghost:hover{background:rgba(255,255,255,.06)}
.gate-url{margin-top:14px;font-size:11px;word-break:break-all;color:hsl(var(--fg)/.35)}

/* --------------------------------------------------------- mobile search */
.search-overlay{
  position:fixed;inset:0;z-index:80;display:none;
  background:hsl(var(--bg)/.98);padding:16px;
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
}
.search-overlay[data-open="true"]{display:block}
.search-overlay .search-box{height:44px;max-width:none}
.search-close{display:flex;justify-content:flex-end;margin-bottom:12px;font-size:14px;color:hsl(var(--fg)/.7)}

/* ------------------------------------------------------------- reveal */
.reveal{opacity:0;transform:translateY(14px);transition:opacity .5s ease,transform .5s ease}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  .reveal{opacity:1;transform:none;transition:none}
  html{scroll-behavior:auto}
}
