/* clipcity: x lights-out world. tokens in web/DESIGN.md */
@font-face{font-family:"archivo";src:url(/assets/fonts/archivo-900x.woff2) format("woff2");font-weight:900;font-stretch:125%;font-display:swap}
@font-face{font-family:"hanken";src:url(/assets/fonts/hanken-400.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"hanken";src:url(/assets/fonts/hanken-500.woff2) format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"hanken";src:url(/assets/fonts/hanken-700.woff2) format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:"hanken";src:url(/assets/fonts/hanken-800.woff2) format("woff2");font-weight:800;font-display:swap}
@font-face{font-family:"hanken-fb";src:local("Arial");size-adjust:96%;ascent-override:96%;descent-override:26%}

:root{
  --bg:#020203;--surface:#16181c;--surface-2:#202327;--line:#2f3336;
  --text:#e7e9ea;--mute:#71767b;--green:#00ba7c;--green-2:#00d68f;--green-soft:rgba(0,186,124,.12);
  --blue:#1d9bf0;--pink:#f91880;
  --rail:88px;--r:16px;
  --display:"archivo","hanken-fb",Arial,sans-serif;
  --ui:"hanken","hanken-fb",Arial,sans-serif;
  color-scheme:dark;
}
*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--bg);-webkit-text-size-adjust:100%}
body{background:var(--bg);color:var(--text);font:400 15px/1.45 var(--ui);font-variant-numeric:tabular-nums;-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
img{display:block;max-width:100%}
.ic{width:20px;height:20px;fill:currentColor;flex:none}
.mute{color:var(--mute)}
.blue{color:var(--blue)}
.green{color:var(--green)}
.num{font-variant-numeric:tabular-nums}
:focus-visible{outline:2px solid var(--green);outline-offset:2px;border-radius:6px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* display type: x's extended heavy role */
.disp{font-family:var(--display);font-stretch:125%;font-weight:900;letter-spacing:-.02em;line-height:1.02}

/* ---------- buttons (x pills) ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 22px;border-radius:999px;font-weight:700;font-size:15px;white-space:nowrap;transition:background-color .2s,transform .12s,border-color .2s}
.btn:active{transform:scale(.98)}
.btn-green{background:var(--green);color:#03140d}
.btn-green:hover{background:var(--green-2)}
.btn-white{background:var(--text);color:#0f1419}
.btn-white:hover{background:#d7dbdc}
.btn-line{border:1px solid #536471;color:var(--text)}
.btn-line:hover{background:rgba(231,233,234,.1)}
.btn-lg{height:52px;padding:0 30px;font-size:17px}

/* ---------- left rail (x nav) ---------- */
.rail{position:fixed;inset:0 auto 0 0;width:var(--rail);border-right:1px solid var(--line);display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 0 20px;z-index:20;background:var(--bg)}
.rail a{width:56px;height:56px;border-radius:999px;display:grid;place-items:center;transition:background-color .2s;position:relative}
.rail a:hover{background:rgba(231,233,234,.1)}
.rail a .ic{width:27px;height:27px}
.rail a[aria-current=page] .ic{color:var(--text)}
.rail .mark{margin-bottom:6px}
.rail .mark .ic{width:30px;height:30px;color:var(--green)}
.rail .tip{position:absolute;left:64px;top:50%;transform:translateY(-50%);background:#e7e9ea;color:#0f1419;font-size:12px;font-weight:700;padding:3px 8px;border-radius:6px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s}
.rail a:hover .tip,.rail a:focus-visible .tip{opacity:1}
.rail .spacer{flex:1}
.rail .coin-btn{width:56px;height:56px;border-radius:999px;background:var(--green);color:#03140d;display:grid;place-items:center}
.rail .coin-btn:hover{background:var(--green-2)}

/* ---------- top bar (lean: name, x logo, ca pill) ---------- */
.topbar{position:fixed;top:0;right:0;left:var(--rail);height:60px;display:flex;align-items:center;gap:14px;padding:0 20px;border-bottom:1px solid var(--line);background:rgba(2,2,3,.82);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);z-index:15}
.wordmark{font-family:var(--display);font-stretch:125%;font-weight:900;font-size:22px;letter-spacing:-.03em}
.topbar .grow{flex:1}
.ca-pill{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px;border-radius:999px;border:1px solid var(--line);font-size:13px;font-weight:700;color:var(--text);max-width:52vw}
.ca-pill .addr{font-weight:500;color:var(--mute);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ca-pill[hidden]{display:none}
.ca-pill:hover{background:rgba(231,233,234,.06)}
.ca-pill .ic{width:16px;height:16px}
.xlink{width:40px;height:40px;border-radius:999px;display:grid;place-items:center}
.xlink:hover{background:rgba(231,233,234,.1)}
.xlink .ic{width:20px;height:20px}

/* ---------- post (x anatomy from the cloned embed) ---------- */
.post{display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;padding:12px 16px;border-bottom:1px solid var(--line);position:relative}
.post .av{width:40px;height:40px;border-radius:50%;object-fit:cover;background:var(--surface)}
.post .av-mark{width:40px;height:40px;border-radius:50%;background:var(--green);display:grid;place-items:center;color:#03140d}
.post .av-mark .ic{width:22px;height:22px}
.post .head{display:flex;align-items:center;gap:4px;min-width:0;font-size:15px;overflow:hidden}
.post .name{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.post .badge{width:18px;height:18px;color:var(--blue)}
.post .handle,.post .time{color:var(--mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.post .body{font-size:15px;line-height:1.45;margin-top:2px;overflow-wrap:anywhere}
.post .body a{color:var(--blue)}
.post .media{margin-top:12px;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;position:relative;aspect-ratio:16/9;background:var(--surface)}
.post .media img{width:100%;height:100%;object-fit:cover}
.post .media .play{position:absolute;left:50%;top:50%;width:60px;height:60px;margin:-30px 0 0 -30px;border-radius:50%;background:var(--blue);display:grid;place-items:center;border:4px solid #fff}
.post .media .play .ic{width:26px;height:26px;color:#fff;margin-left:3px}
.post .acts{display:flex;justify-content:space-between;max-width:440px;margin-top:10px;color:var(--mute);font-size:13px}
.post .acts span{display:inline-flex;align-items:center;gap:6px}
.post .acts .ic{width:18px;height:18px}
.post .thread-line{position:absolute;left:35px;top:56px;bottom:-4px;width:2px;background:var(--line)}

/* coin card: pump-style card the bot attaches */
.coin{margin-top:12px;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;display:grid;grid-template-columns:104px 1fr}
.coin img{width:104px;height:104px;object-fit:cover}
.coin .meta{padding:10px 14px;display:flex;flex-direction:column;justify-content:center;gap:3px;min-width:0}
.coin .tk{font-family:var(--display);font-stretch:125%;font-weight:900;font-size:20px;letter-spacing:-.02em}
.coin .to{font-size:14px;color:var(--mute)}
.coin .to b{color:var(--green);font-weight:700}

/* sidebar card (x "what's happening") */
.side-card{border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.side-card h2,.side-card h3{font-size:20px;font-weight:800;padding:12px 16px}
.row{display:flex;align-items:center;gap:12px;padding:12px 16px;transition:background-color .2s}
a.row:hover{background:rgba(231,233,234,.03)}
.row .av{width:40px;height:40px;border-radius:50%;object-fit:cover;flex:none;background:var(--surface)}
.row .t{flex:1;min-width:0}
.row .t b{display:block;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row .t small{display:block;color:var(--mute);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row .v{font-weight:700;color:var(--green);white-space:nowrap}
.empty{padding:20px 16px;color:var(--mute);font-size:15px}
.empty b{display:block;color:var(--text);font-size:17px;margin-bottom:4px}

/* skeleton while live data loads (shape of a row) */
.sk{height:64px;margin:0 16px;border-bottom:1px solid var(--line);background:linear-gradient(90deg,transparent 0,rgba(231,233,234,.04) 50%,transparent 100%) 0 0/200% 100%;animation:sk 1.4s linear infinite}
@keyframes sk{to{background-position:-200% 0}}

/* mobile: x app (top bar + bottom tabs) */
.tabs{display:none}
@media (max-width:820px){
  :root{--rail:0px}
  .rail{display:none}
  .topbar{left:0;padding:0 14px;height:54px}
  .wordmark{font-size:19px}
  .ca-pill{height:32px;padding:0 10px;font-size:12px;max-width:48vw}
  .tabs{display:flex;position:fixed;left:0;right:0;bottom:0;height:56px;border-top:1px solid var(--line);background:rgba(2,2,3,.92);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);z-index:20;justify-content:space-around;align-items:center;padding-bottom:env(safe-area-inset-bottom)}
  .tabs a{width:56px;height:44px;display:grid;place-items:center;border-radius:999px}
  .tabs .ic{width:26px;height:26px}
  .tabs a[aria-current=page]{color:var(--green)}
  body{padding-bottom:60px}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}

/* paste a clip link (x search pill) */
.paste{display:flex;gap:8px;align-items:center}
.paste input{flex:1;min-width:0;height:44px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--text);padding:0 18px;font:500 15px var(--ui)}
.paste input::placeholder{color:#8b98a5}
.paste input:focus{outline:none;border-color:var(--green);background:var(--bg)}

/* a11y + touch */
html{scroll-padding-top:72px}
a,button,input,[role="tab"]{touch-action:manipulation}
.skip{position:fixed;left:12px;top:-60px;z-index:100;background:var(--green);color:#03140d;font-weight:700;padding:10px 16px;border-radius:999px}
.skip:focus-visible{top:12px}
footer.foot a,.addr-row a{display:inline-flex;align-items:center;min-height:24px;padding:4px 0}

.xi{display:inline-block;width:.82em;height:.82em;vertical-align:-.06em;fill:currentColor;margin:0 .06em}
.likes{color:var(--mute);font-weight:700;display:inline-flex;align-items:center;gap:5px}
.likes .ic{width:15px;height:15px}
