/* SkyRockIT — dark, data-dense, fast. Deliberately quiet so the numbers carry the page. */
*{box-sizing:border-box;margin:0;padding:0}
:root{
  --bg:#0a0d14; --panel:#111623; --line:#1e2637; --ink:#e8edf7; --dim:#7d8aa3;
  --up:#00d1b2; --down:#ff5c7a; --accent:#00d1b2; --accent2:#ff5c7a;
  /* surfaces that differ per theme - keep them named, never inline a raw colour below */
  --headbg:rgba(10,13,20,.92); --rowline:rgba(30,38,55,.55); --rowhover:rgba(255,255,255,.025);
  --iconbg:#1b2233; --adbody:#9aa7bf; --focusring:rgba(0,209,178,.12); --flat:#7d8aa3;
  --spec:#ffffff; --spec2:#9df4e4;                 /* wordmark highlight */
  --glow-a:rgba(232,200,106,.28); --glow-b:rgba(232,200,106,.60);
  --adscrim:linear-gradient(100deg,rgba(17,22,35,.93) 0%,rgba(17,22,35,.86) 40%,
    rgba(17,22,35,.52) 72%,rgba(17,22,35,.34) 100%);
  --adscrim-hi:linear-gradient(100deg,rgba(17,22,35,.90) 0%,rgba(17,22,35,.80) 40%,
    rgba(17,22,35,.42) 72%,rgba(17,22,35,.24) 100%);
  --mono:ui-monospace,"SF Mono","JetBrains Mono",Menlo,Consolas,monospace;
}
a{color:var(--accent)}
a:hover{color:var(--ink)}

body{background:var(--bg);color:var(--ink);
  font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,sans-serif;
  -webkit-font-smoothing:antialiased}

/* header */
.top{display:flex;align-items:center;gap:20px;padding:14px 22px;
  border-bottom:1px solid var(--line);background:var(--headbg);
  position:sticky;top:0;z-index:20;backdrop-filter:blur(8px)}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit;flex:none}
.mark{height:30px;width:auto;display:block}
.wordmark{font-weight:800;letter-spacing:.12em;font-size:17px}
.wordmark b{color:var(--accent);font-weight:800}
.searchwrap{flex:1;max-width:520px}
#q{width:100%;padding:9px 14px;border-radius:10px;border:1px solid var(--line);
  background:var(--panel);color:var(--ink);font:inherit;font-size:14px;outline:none}
#q:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--focusring)}
.stamp{margin-left:auto;font:12px var(--mono);color:var(--dim);white-space:nowrap}

/* layout */
.shell{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:18px;
  max-width:1500px;margin:0 auto;padding:22px}
@media(max-width:1080px){.shell{grid-template-columns:minmax(0,1fr)}
  /* rail below the data — never make people scroll past ads to reach prices */
  main{order:1}.rail{order:2;flex-direction:row;flex-wrap:wrap}
  .rail .ad{flex:1 1 240px}.railhead,.raildisc{flex:1 1 100%}}

/* stat strip */
.statrow{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:18px}
.stat{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:12px 14px}
.stat .k{font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:var(--dim)}
.stat .v{font:600 18px/1.3 var(--mono);margin-top:3px}

/* table */
/* A sticky <th> anchors to its nearest SCROLL CONTAINER. While .tablewrap is overflow-x:auto
   the head sticks to the wrapper instead of the viewport, and overflow-y:clip does not help -
   the spec downgrades clip to hidden when the other axis scrolls. So: only make it a scroll
   container when the table is actually too wide for its column. Above 1400px it fits, the
   wrapper stops scrolling, and the head sticks to the viewport as intended. */
.tablewrap{background:var(--panel);border:1px solid var(--line);border-radius:14px;
  overflow-x:auto}
@media(min-width:1400px){.tablewrap{overflow:visible}}
table{width:100%;border-collapse:collapse;min-width:720px}
th{font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:var(--dim);
  text-align:left;padding:12px 11px;border-bottom:1px solid var(--line);
  cursor:pointer;user-select:none;white-space:nowrap;position:sticky;
  top:var(--headh,70px);z-index:10;background:var(--panel);
  box-shadow:0 1px 0 var(--line)}
th:hover{color:var(--ink)}
th.num{text-align:right}
th.on{color:var(--accent)}
th.on::after{content:" ↓";font-size:10px}
th.on.asc::after{content:" ↑"}
td{padding:11px 11px;border-bottom:1px solid var(--rowline);white-space:nowrap}
td.num{text-align:right;font-family:var(--mono);font-size:13.5px}
tr:last-child td{border-bottom:none}
tbody tr:hover{background:var(--rowhover)}
.rank{color:var(--dim);font-family:var(--mono);font-size:12.5px}
.tok{display:flex;align-items:center;gap:10px;min-width:190px}
.tok img{width:24px;height:24px;border-radius:50%;flex:none;background:var(--iconbg)}
.tok .nm{font-weight:600}
.tok .sy{color:var(--dim);font-size:12px;font-family:var(--mono);margin-left:2px}
.up{color:var(--up)} .down{color:var(--down)} .flat{color:var(--flat)}
.up,.down{font-weight:600}   /* legibility, both themes */
.more{display:flex;justify-content:center;padding:18px}
#more{background:var(--panel);border:1px solid var(--line);color:var(--ink);
  padding:9px 20px;border-radius:10px;font:inherit;font-size:13px;cursor:pointer}
#more:hover{border-color:var(--accent)}
#more[hidden]{display:none}
.empty{padding:34px;text-align:center;color:var(--dim)}
.empty a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.empty a:hover{color:var(--ink)}

/* ad rail */
.rail{display:flex;flex-direction:column;gap:12px}
.railhead{font-size:11px;letter-spacing:.14em;color:var(--dim);text-transform:uppercase;padding-left:2px}
.ad{display:block;position:relative;overflow:hidden;
  background:var(--panel) var(--adbg,none) center/cover no-repeat;
  border:1px solid var(--line);border-radius:12px;
  padding:14px;text-decoration:none;color:inherit;transition:border-color .18s,transform .18s}
/* Scrim over the og-image so the copy stays readable. Darkest on the left, where the text
   sits; the artwork is right-anchored in the source image and shows through. */
.ad::before{content:"";position:absolute;inset:0;pointer-events:none;
  background:var(--adscrim)}
.ad>*{position:relative}
/* Per-slot og-image. Lives here, NOT in a style attribute - this page's CSP is
   style-src 'self', which blocks inline styles and silently left every card blank. */
.ad-goat{--adbg:url('/ads/card-goatalpha.png?v=6')}
.ad-sove{--adbg:url('/ads/card-sovegent.png?v=6')}
.ad-pepe{--adbg:url('/ads/card-pepepink.png?v=6')}
.ad-xmr {--adbg:url('/ads/card-monerostream.png?v=6')}
.ad:hover::before{background:var(--adscrim-hi)}
.ad:hover{border-color:var(--accent);transform:translateY(-1px)}
.adtitle{font-weight:700;margin-bottom:5px}
.adbody{font-size:13px;color:var(--adbody);line-height:1.45;max-width:66%}
.adcta{margin-top:9px;font-size:12.5px;color:var(--accent);font-weight:600}
.raildisc{font-size:11.5px;color:var(--dim);line-height:1.5;padding:2px;opacity:.85}

/* Narrow-screen rail. Declared HERE, after the base .rail/.ad rules, ON PURPOSE: the copy of
   these near the top of the file has equal specificity and LOSES on document order, so its
   flex-direction:row never applied. The rail stayed a column, which made `flex:1 1 240px`
   size the cross axis and stretch every card to 247px tall. Grid also avoids the orphan
   last card that wrap+grow produced. */
@media(max-width:1080px){
  .rail{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    align-items:start;gap:12px}
  .rail .ad{flex:none}
  .railhead,.raildisc{grid-column:1/-1}
}

/* footer */
.foot{max-width:1500px;margin:0 auto;padding:26px 22px 40px;display:flex;
  flex-direction:column;gap:5px;font-size:12.5px;color:var(--dim);border-top:1px solid var(--line)}
.foot .dim{opacity:.7}
.foot a{color:var(--dim);text-decoration:underline;text-underline-offset:2px}
.foot a:hover{color:var(--accent)}

@media(max-width:1320px){th:nth-child(4),td:nth-child(4){display:none}}

/* ================= token detail ================= */
.back{display:inline-block;color:var(--dim);text-decoration:none;font-size:13px;margin-bottom:16px}
.back:hover{color:var(--accent)}
.dhead{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:20px}
.dicon{width:52px;height:52px;border-radius:50%;background:var(--iconbg);flex:none}
.dhead h1{font-size:26px;font-weight:700;letter-spacing:-.01em}
.dsym{font:600 14px var(--mono);color:var(--dim);margin-left:6px}
.drank{font-size:12.5px;color:var(--dim);margin-top:2px}
.dprice{margin-left:auto;text-align:right}
.dprice .p{font:700 30px/1.1 var(--mono)}
.dprice .c{margin-top:4px;font-size:13px}
.pbig{font-size:15px;font-weight:600}
.chartcard{background:var(--panel);border:1px solid var(--line);border-radius:14px;
  padding:14px 14px 6px;margin-bottom:18px}
.chead{font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:var(--dim);margin-bottom:8px}
.aboutcard{margin-top:16px}
.abody{font-size:14px;line-height:1.62;color:var(--ink);opacity:.86}
.cats{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}
.cat{font-size:11.5px;letter-spacing:.03em;color:var(--accent);
  border:1px solid rgba(0,209,178,.3);border-radius:999px;padding:3px 10px;white-space:nowrap}
#chart{width:100%;height:220px;display:block}
.dgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}
.dcell{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:12px 14px}
.dcell .k{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--dim)}
.dcell .v{font:600 16px/1.35 var(--mono);margin-top:4px;word-break:break-word}
a.tok{text-decoration:none;color:inherit}
a.tok:hover .nm{color:var(--accent)}

/* ================= mobile ================= */
@media(max-width:760px){
  .rail{flex-direction:column}
  .top{flex-wrap:wrap;gap:10px;padding:11px 14px}
  /* Every header child MUST carry an explicit order here. .themebtn had none, so it fell to
     the default order:0 and rendered BEFORE the logo on phones. The logo is always first. */
  .brand{order:1}
  .stamp{order:2;margin-left:auto;font-size:11px}
  .themebtn{order:3}
  .searchwrap{order:4;flex:1 1 100%;max-width:none}
  .shell{padding:14px;gap:16px}
  .statrow{grid-template-columns:1fr 1fr;gap:9px;margin-bottom:14px}
  .stat{padding:10px 11px}
  .stat .v{font-size:16px}

  /* The table becomes cards: eight columns cannot be read on a phone, and a horizontal
     scrollbar hides the numbers people came for. */
  .tablewrap{background:none;border:none;border-radius:0;overflow:visible}
  table,thead,tbody,tr,td{display:block;width:100%}
  thead{display:none}
  table{min-width:0}
  tbody tr{background:var(--panel);border:1px solid var(--line);border-radius:12px;
    padding:11px 13px;margin-bottom:9px;position:relative}
  tbody tr:hover{background:var(--panel)}
  td{border:none;padding:0;white-space:normal}
  /* rank sits as a small marker beside the name */
  td.rank{position:absolute;top:12px;right:13px;font-size:11px;opacity:.55}
  td:nth-child(2){margin-bottom:9px}
  .tok .nm{font-size:15px}
  /* price + changes on one labelled row */
  td:nth-child(3),td:nth-child(4),td:nth-child(5),td:nth-child(6),
  td:nth-child(7),td:nth-child(8){
    display:inline-block;width:33.33%;text-align:left;font-size:12.5px;padding-top:6px}
  td:nth-child(3)::before{content:"PRICE";display:block}
  td:nth-child(4)::before{content:"1H";display:block}
  td:nth-child(5)::before{content:"24H";display:block}
  td:nth-child(6)::before{content:"7D";display:block}
  td:nth-child(7)::before{content:"MKT CAP";display:block}
  td:nth-child(8)::before{content:"VOL 24H";display:block}
  td::before{font-size:9.5px;letter-spacing:.08em;color:var(--dim);margin-bottom:1px;
    font-family:-apple-system,sans-serif}
  /* 1h is the least useful on a phone */
  td:nth-child(4){display:none}

  .dhead h1{font-size:21px}
  .dicon{width:42px;height:42px}
  .dprice{margin-left:0;text-align:left;flex:1 1 100%}
  .dprice .p{font-size:25px}
  #chart{height:180px}
  .dgrid{grid-template-columns:1fr 1fr;gap:9px}
  .foot{padding:20px 14px 32px}
}
@media(max-width:380px){
  .statrow{grid-template-columns:1fr}
  .dgrid{grid-template-columns:1fr}
}

/* ================= gold ==================================================
   Restraint is the point: gold appears on exactly three things — the wordmark,
   the mark, and a hairline bookending the page. Teal stays the INTERACTIVE
   colour (links, CTAs, focus); gold is brand only, so the two never compete.
   Appended at the end of the file deliberately — equal-specificity rules here
   must win on document order. */
:root{
  --gold:#e8c86a; --gold-lo:#8a6a24; --gold-hi:#f9edc4;
  --gold-line:rgba(232,200,106,.30);
}

/* Metal, not paint. The narrow pale band is a specular highlight; without it a
   gold gradient just looks like yellow. 260% background-size gives it room to travel. */
.wordmark{color:var(--accent)}   /* exactly the rocket's body colour - mark and wordmark agree */
@supports ((-webkit-background-clip:text) or (background-clip:text)){
  /* The wordmark mirrors the mark: teal body -> SKYROCK, pink fins -> IT. Gold was tried here
     and read muddy against saturated teal at 17px; it now lives only as trim (flame, glow,
     hairline), which is where an expensive object actually puts it.
     The sheen is a SPECULAR band, not a colour - a narrow white highlight raking across the
     teal. That's why it survived dropping gold: the sweep was never about the hue. */
  .wordmark{
    background-image:linear-gradient(100deg,
      var(--accent) 0%, var(--accent) 32%, var(--spec2) 43%, var(--spec) 47%,
      var(--spec2) 51%, var(--accent) 62%, var(--accent) 100%);
    background-size:280% 100%; background-position:120% 0;
    -webkit-background-clip:text; background-clip:text;
    -webkit-text-fill-color:transparent; color:transparent;
    animation:sheen 7s ease-in-out infinite;
  }
  /* "IT" opts out of the clip so it stays solid pink, matching the fins */
  .wordmark b{-webkit-text-fill-color:var(--accent2);color:var(--accent2)}
}
@keyframes sheen{0%,100%{background-position:120% 0}50%{background-position:-20% 0}}

/* The rocket keeps its own colours - that's the brand. It just catches light. */
.mark{animation:breathe 7s ease-in-out infinite}
@keyframes breathe{
  0%,100%{filter:drop-shadow(0 0 5px var(--glow-a))}
  50%    {filter:drop-shadow(0 0 11px var(--glow-b))}
}

/* Hairlines top and bottom. The teal->pink run is the WORDMARK abstracted: SKYROCK teal on
   the left, IT pink on the right, in the same reading order. Fading at both ends reads as a
   struck edge rather than a drawn border. */
.top{position:sticky}   /* NOT relative - that silently killed the sticky header */
.foot{position:relative}
.top::after,.foot::before{content:"";position:absolute;left:0;right:0;height:1px;
  pointer-events:none;
  background:linear-gradient(90deg,transparent 0%,rgba(0,209,178,.40) 16%,
    rgba(0,209,178,.80) 38%,rgba(255,92,122,.80) 62%,rgba(255,92,122,.40) 84%,transparent 100%)}
.top::after{bottom:-1px}
.foot::before{top:-1px}

/* An <a> with no hover feedback reads as decoration - Ry couldn't tell the logo was clickable. */
.brand{border-radius:8px;cursor:pointer}
.mark{transition:transform .18s ease}
.brand:hover .mark{transform:translateY(-1px) scale(1.05)}
.brand:hover .wordmark{filter:brightness(1.18)}
.brand:focus-visible{outline:2px solid var(--gold);outline-offset:3px}

@media(prefers-reduced-motion:reduce){
  .wordmark{animation:none;background-position:50% 0}
  .mark{animation:none;filter:drop-shadow(0 0 7px var(--glow-b))}
}

/* Exhaust. Two flames on different durations read as flicker without any randomness;
   one alone just looks like a throb. Both sit inside the rotated <g>, so scaleY runs
   along the rocket's own axis rather than straight down the screen. */
.mark .flame{transform-box:view-box;transform-origin:50px 97px;
  animation:thrust .52s ease-in-out infinite alternate}
.mark .flame-core{animation-duration:.34s}
@keyframes thrust{
  from{transform:scaleY(.62) scaleX(.90);opacity:.5}
  to  {transform:scaleY(1.12) scaleX(1.05);opacity:.95}
}
@media(prefers-reduced-motion:reduce){
  .mark .flame{animation:none;transform:scaleY(.9);opacity:.8}
}

/* ================= light theme =========================================================
   ONE light block. theme.js picks dark or light (stored choice, else the OS preference)
   and stamps data-theme before first paint, so there is no duplicated palette to drift
   and no flash of the wrong theme.
   Teal/pink are DARKENED here - #00d1b2 on white is about 2:1 contrast and unreadable as
   text; these land near 4.5:1 while staying recognisably the same brand pair. */
:root[data-theme="light"]{
  --bg:#f4f7fb; --panel:#ffffff; --line:#dfe6f0; --ink:#101828; --dim:#5a6a84;
  /* Hue 172 is the SAME hue as the dark-mode teal, but dark teal reads GREEN to the eye -
     it needs a push toward cyan (hue ~186) to still read "teal" on white. Perceptual match
     beats numerical match. 5.07:1 on white. */
  /* --up is DATA and --accent is INTERACTIVE, so they no longer share a value here.
     At equal measured contrast teal reads softer than pink - the eye treats red/pink as
     higher salience - so the gain colour goes deeper (7.35:1) to FEEL as strong as the
     loss colour (5.44:1). Links/CTAs stay at the lighter teal; they were fine. */
  /* #0a5f6a was readable but VALUE 42 reads muddy green. #00838f keeps saturation at 100
     and hue at 185 - unmistakably teal - while still clearing AA at 4.52:1 on white.
     Weight is the other half of it: bold coloured numerals read far better than the
     contrast figure alone predicts. */
  --up:#00838f; --down:#c62a55; --accent:#0d7a86; --accent2:#c62a55;
  --headbg:rgba(255,255,255,.92); --rowline:rgba(16,24,40,.09); --rowhover:rgba(16,24,40,.028);
  --iconbg:#eef2f8; --adbody:#4a5875; --focusring:rgba(13,122,134,.18); --flat:#7e858f;
  --spec:#0a5b64; --spec2:#0c6d78;                 /* dark band: a white one would erase the letters.
                                                      kept close to --accent so the sweep shimmers
                                                      rather than flashing a different colour */
  --glow-a:rgba(16,24,40,.07); --glow-b:rgba(16,24,40,.14);   /* soft shadow, not a gold smudge */
  --adscrim:linear-gradient(100deg,rgba(255,255,255,.95) 0%,rgba(255,255,255,.89) 40%,
    rgba(255,255,255,.58) 72%,rgba(255,255,255,.36) 100%);
  --adscrim-hi:linear-gradient(100deg,rgba(255,255,255,.92) 0%,rgba(255,255,255,.82) 40%,
    rgba(255,255,255,.45) 72%,rgba(255,255,255,.24) 100%);
}
/* OPTION-C: the bright dark-mode teal on the WORDMARK ONLY in light mode. Scoping the
   variable to .wordmark means the numbers and links keep the 5:1 deep teal, while the logo
   gets the vivid brand colour where it is big enough for contrast not to matter.
   Toggle this single line with `~/rb` — nothing else depends on it. */
:root[data-theme="light"] .wordmark{--accent:#00d1b2}

:root[data-theme="light"] .ad-goat{--adbg:url('/ads/card-goatalpha-light.png?v=6')}
:root[data-theme="light"] .ad-sove{--adbg:url('/ads/card-sovegent-light.png?v=7')}
:root[data-theme="light"] .ad-pepe{--adbg:url('/ads/card-pepepink-light.png?v=6')}
:root[data-theme="light"] .ad-xmr {--adbg:url('/ads/card-monerostream-light.png?v=6')}

/* Pale gold exhaust disappears against white - deepen it so the rocket still reads as firing. */
:root[data-theme="light"] .mark .flame{fill:#ef8b1f}
:root[data-theme="light"] .mark .flame-core{fill:#ffd166}

.themebtn{flex:none;display:grid;place-items:center;width:34px;height:34px;padding:0;
  background:var(--panel);border:1px solid var(--line);border-radius:10px;
  color:var(--dim);cursor:pointer;transition:color .18s,border-color .18s}
.themebtn:hover{color:var(--accent);border-color:var(--accent)}
.themebtn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.themebtn svg{display:block}
.themebtn .ico-sun{display:none}
:root[data-theme="light"] .themebtn .ico-sun{display:block}
:root[data-theme="light"] .themebtn .ico-moon{display:none}
