/* TittyMarketCap: the board of coins orbiting $BTC.
 * The site's tokens: void, bone, gold for what leads, saber red for
 * $TITTYWARS and what falls, a softer green for what rises, holo blue for
 * what is live. */
:root {
  --void: #040306; --ink: #0a090d; --panel: #0d0c11; --line: rgba(239, 230, 212, .09);
  --gold: #e7b53c; --saber: #ff2a2a; --blood: #8e0e14; --bone: #efe6d4; --smoke: #8c8478; --holo: #5ec4e6;
  --up: #4cc88a; --down: #e0646a;
  --wide: "Archivo", "Unbounded", "Noto Sans SC", "Noto Sans JP", "Arial Black", sans-serif;
  --news: "News Cycle", "PT Sans Narrow", "Arial Narrow", "PingFang SC", "Hiragino Sans", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, .84, .24, 1);
  --gut: clamp(14px, 3vw, 40px);
  color-scheme: dark;
}
:root:lang(ja) { --wide: "Archivo", "Noto Sans JP", "Noto Sans SC", "Arial Black", sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); }
body { margin: 0; min-height: 100vh; color: var(--bone); font: 400 16px/1.5 var(--news);
  background: radial-gradient(70% 50% at 85% -10%, rgba(142, 14, 20, .22), transparent 70%), radial-gradient(60% 40% at 0% 0%, rgba(94, 196, 230, .08), transparent 70%), var(--void); }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--holo); outline-offset: 2px; }

/* ---------- bar ---------- */
.mk-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; padding: 0 var(--gut);
  background: rgba(4, 3, 6, .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.mk-mark { font: 900 16px/1 var(--wide); font-stretch: 125%; letter-spacing: .08em; text-decoration: none; }
.mk-nav { display: flex; align-items: center; gap: 10px; }
.pill { --a: 0deg; position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 9px; min-height: 38px; padding: 0 14px 0 9px; border-radius: 999px; text-decoration: none; background: rgba(6, 12, 20, .72); }
.pill::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px; background: rgba(94, 196, 230, .35);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.pill[aria-current="page"]::before { background: conic-gradient(from var(--a), rgba(231, 181, 60, .4) 0 55%, #ffe9a8 70%, var(--saber) 80%, rgba(231, 181, 60, .4) 92%); animation: spin 4s linear infinite; }
.pill[aria-current="page"] { box-shadow: 0 0 22px rgba(231, 181, 60, .3); }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }
.pw { font: 900 13.5px/1 var(--wide); font-stretch: 112%; letter-spacing: .03em; white-space: nowrap; }
.pill-gx .pw span { color: #8fe0ff; }
.pill-mk .pw span { color: var(--gold); }
.orb { position: relative; width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(94, 196, 230, .45); animation: orbit 2.4s linear infinite; flex: none; }
.orb::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff3c4, var(--gold) 55%, #7a5310); }
.orb i { position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--saber); box-shadow: 0 0 8px var(--saber); }
@keyframes orbit { to { transform: rotate(360deg); } }
.mk-ico { width: 18px; height: 18px; fill: var(--gold); flex: none; filter: drop-shadow(0 0 6px rgba(231, 181, 60, .6)); }
.x-btn { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(239, 230, 212, .2); background: rgba(4, 3, 6, .45); }
.x-btn svg { width: 16px; height: 16px; fill: currentColor; }
.x-btn:hover { border-color: var(--saber); box-shadow: 0 0 18px rgba(255, 42, 42, .35); }
.lang-pick { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 11px; background: none; border: 1px solid rgba(239, 230, 212, .2); font-weight: 700; font-size: 14px; }
.lang-btn svg { width: 15px; height: 15px; fill: var(--gold); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; display: grid; min-width: 220px; padding: 6px; background: rgba(8, 10, 14, .97); border: 1px solid rgba(231, 181, 60, .3); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.lang-menu[hidden] { display: none; }
.lang-menu button { display: grid; grid-template-columns: 44px 1fr; align-items: center; min-height: 40px; padding: 0 12px; text-align: left; background: none; border: 0; color: var(--smoke); }
.lang-menu button:hover, .lang-menu button[aria-checked="true"] { color: var(--bone); background: rgba(231, 181, 60, .08); }
.lang-menu .lm-code { font-weight: 700; font-size: 13px; color: var(--gold); }

/* ---------- page ---------- */
.mk { max-width: 1400px; margin: 0 auto; padding: 34px var(--gut) 80px; }
.mk-kick { margin: 0; font: 800 12px/1 var(--wide); font-stretch: 125%; letter-spacing: .26em; text-transform: uppercase; color: var(--gold);
  background: linear-gradient(90deg, var(--gold), #fff3c4 45%, var(--gold) 55%) 0 0 / 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 4s linear infinite; }
@keyframes shine { to { background-position: -220% 0; } }
.mk-h1 { margin: 12px 0 0; font: 900 clamp(28px, 3.6vw, 48px)/1 var(--wide); font-stretch: 112%; }
.mk-sub { margin: 10px 0 0; color: var(--smoke); font-size: 17px; max-width: 70ch; }

/* stats strip */
.mk-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: stretch; }
.mk-stats .st-mood { grid-column: 1 / -1; }
.st { position: relative; margin: 0; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.st::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--gold); opacity: .7; }
.st:nth-child(2)::after { background: var(--holo); } .st:nth-child(3)::after { background: var(--bone); } .st:nth-child(4)::after { background: var(--up); } .st:nth-child(5)::after { background: var(--saber); }
.st dt { font: 800 11px/1 var(--wide); font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase; color: var(--smoke); }
.st dd { margin: 10px 0 0; font: 800 24px/1.1 var(--wide); font-stretch: 100%; font-variant-numeric: tabular-nums; }
.st small { display: block; margin-top: 6px; font: 600 12.5px/1.2 var(--mono); color: var(--smoke); }

/* highlight cards */
.mk-high { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.hc { padding: 14px 16px 8px; background: var(--panel); border: 1px solid var(--line); }
.hc h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font: 800 14px/1 var(--wide); font-stretch: 112%; }
.hc ol { list-style: none; margin: 0; padding: 0; }
.hc li a { display: grid; grid-template-columns: 22px 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 4px; text-decoration: none; border-top: 1px solid var(--line); }
.hc li:first-child a { border-top: 0; }
.hc li a:hover { background: rgba(239, 230, 212, .03); }
.hc .r { font: 600 12px/1 var(--mono); color: var(--smoke); }
.hc .sym { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc .val { font: 700 14px/1 var(--mono); }

/* our own row, called out */
.mk-tw { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; padding: 14px 18px; text-decoration: none;
  background: linear-gradient(90deg, rgba(142, 14, 20, .45), rgba(142, 14, 20, .12)); border: 1px solid rgba(255, 42, 42, .55); box-shadow: 0 0 26px rgba(255, 42, 42, .18); }
.mk-tw[hidden] { display: none; }
.mk-tw b { font: 800 16px/1.2 var(--wide); font-stretch: 112%; }
.mk-tw .go { font: 800 13px/1 var(--wide); font-stretch: 112%; letter-spacing: .08em; text-transform: uppercase; padding: 10px 14px; background: var(--blood); border: 1px solid var(--saber); white-space: nowrap; }
.mk-tw:hover .go { background: #a3121a; }

/* tools */
.mk-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 30px; }
.mk-search { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; max-width: 380px; min-height: 42px; padding: 0 12px; background: var(--panel); border: 1px solid var(--line); }
.mk-search:focus-within { border-color: rgba(231, 181, 60, .6); }
.mk-search svg { width: 16px; height: 16px; fill: var(--smoke); flex: none; }
.mk-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--bone); font: 500 15px/1 var(--news); }
.mk-tabs { display: inline-flex; border: 1px solid var(--line); }
.mk-tabs button { min-height: 40px; padding: 0 14px; background: none; border: 0; border-right: 1px solid var(--line); color: var(--smoke); font-weight: 700; font-size: 14px; }
.mk-tabs button:last-child { border-right: 0; }
.mk-tabs button[aria-pressed="true"] { color: #140d00; background: linear-gradient(#ffe08a, var(--gold)); }
.mk-upd { margin: 0 0 0 auto; font: 500 12.5px/1 var(--mono); color: var(--smoke); }

/* the table */
.mk-table-wrap { margin-top: 14px; overflow-x: auto; border: 1px solid var(--line); background: var(--ink); -webkit-overflow-scrolling: touch; }
.mk-table { width: 100%; min-width: 1060px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mk-table th { position: sticky; top: 0; z-index: 2; padding: 13px 12px; background: #0f0e13; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap;
  font: 800 11px/1 var(--wide); font-stretch: 125%; letter-spacing: .12em; text-transform: uppercase; color: var(--smoke); }
.mk-table th[data-sort] { cursor: pointer; user-select: none; }
.mk-table th[data-sort]:hover { color: var(--bone); }
.mk-table th[aria-sort]::after { content: " ▼"; color: var(--gold); }
.mk-table th[aria-sort="ascending"]::after { content: " ▲"; }
.mk-table td { padding: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 15px; }
.mk-table .num { text-align: right; }
.mk-table tbody tr { cursor: pointer; transition: background .2s; }
.mk-table tbody tr:hover { background: rgba(239, 230, 212, .035); }
.mk-table tbody tr.in { animation: rowIn .5s var(--ease) both; animation-delay: calc(var(--i) * 18ms); }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } }
.c-r { width: 46px; color: var(--smoke); font: 600 13px/1 var(--mono); }
.c-n { min-width: 230px; }
.nm { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.face { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; flex: none; background: #15131b; box-shadow: 0 0 0 1px var(--line); font: 800 11px/1 var(--wide); color: var(--gold); }
.face img { width: 100%; height: 100%; object-fit: cover; }
.nm b { font: 800 15px/1.2 var(--wide); font-stretch: 100%; }
.nm .sub { display: block; max-width: 200px; overflow: hidden; text-overflow: ellipsis; color: var(--smoke); font-size: 14px; }
.tag { margin-left: 4px; padding: 3px 6px; font: 800 9.5px/1 var(--wide); font-stretch: 125%; letter-spacing: .1em; text-transform: uppercase; vertical-align: middle; }
.tag.you { color: #fff; background: var(--blood); border: 1px solid var(--saber); }
.up { color: var(--up); } .down { color: var(--down); }
.pc { font: 700 14px/1 var(--mono); }
.pc.up::before { content: "▲ "; font-size: 10px; } .pc.down::before { content: "▼ "; font-size: 10px; }
.flash-up { animation: fUp 1.2s ease; } .flash-down { animation: fDown 1.2s ease; }
@keyframes fUp { 0% { background: rgba(76, 200, 138, .28); } }
@keyframes fDown { 0% { background: rgba(224, 100, 106, .28); } }
.bond { display: flex; align-items: center; gap: 10px; min-width: 130px; }
.bond .bar { position: relative; flex: 1; height: 6px; background: rgba(239, 230, 212, .08); overflow: hidden; }
.bond .bar i { position: absolute; inset: 0 auto 0 0; width: var(--p); background: linear-gradient(90deg, var(--blood), var(--saber)); box-shadow: 0 0 8px rgba(255, 42, 42, .5); transform-origin: left; animation: grow 1.1s var(--ease) both; animation-delay: calc(var(--i, 0) * 18ms + .1s); }
.bond .bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent) 0 0 / 40% 100% no-repeat; animation: sweep 2.6s linear infinite; }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes sweep { from { background-position: -60% 0; } to { background-position: 160% 0; } }
.bond small { font: 600 12px/1 var(--mono); color: var(--smoke); min-width: 34px; text-align: right; }
.bond .done { font: 800 10.5px/1 var(--wide); font-stretch: 125%; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.c-s svg { display: block; width: 130px; height: 38px; overflow: visible; }
.c-s path.area { stroke: none; opacity: 0; animation: fadeIn .8s ease forwards; animation-delay: calc(var(--i) * 18ms + .7s); }
@keyframes fadeIn { to { opacity: 1; } }
.c-s path.ln { fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1s var(--ease) forwards; animation-delay: calc(var(--i) * 18ms + .15s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
tr.tw { background: linear-gradient(90deg, rgba(142, 14, 20, .3), transparent 60%); box-shadow: inset 3px 0 0 var(--saber); }
tr.tw:hover { background: linear-gradient(90deg, rgba(142, 14, 20, .42), transparent 60%); }
tr.pin td { border-bottom: 2px solid rgba(255, 42, 42, .35); }
.mk-empty { margin: 0; padding: 40px; text-align: center; color: var(--smoke); }
.mk-empty[hidden] { display: none; }

/* sticky star, rank and name on narrow screens */
@media (max-width: 900px) {
  .mk-table td.c-f, .mk-table th.c-f { position: sticky; left: 0; z-index: 1; background: var(--ink); width: 34px; min-width: 34px; max-width: 34px; padding-left: 6px; padding-right: 0; }
  .mk-table td.c-r, .mk-table th.c-r { position: sticky; left: 34px; z-index: 1; background: var(--ink); width: 38px; min-width: 38px; max-width: 38px; padding-left: 4px; padding-right: 2px; }
  .mk-table td.c-n, .mk-table th.c-n { position: sticky; left: 72px; z-index: 1; background: var(--ink); box-shadow: 6px 0 10px -6px rgba(0, 0, 0, .8); padding-left: 4px; }
  .mk-table th.c-f, .mk-table th.c-r, .mk-table th.c-n { z-index: 3; background: #0f0e13; }
  tr.tw td.c-f, tr.tw td.c-r, tr.tw td.c-n { background: #1a0a0d; }
  .c-n { min-width: 160px; }
  .nm .sub { max-width: 104px; }
  .nm { gap: 9px; } .nm b { font-size: 14px; }
  .face { width: 28px; height: 28px; }
}

/* ---------- one coin ---------- */
.cv-crumb { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--smoke); }
.cv-crumb a { text-decoration: none; color: var(--gold); }
.cv-crumb a:hover { text-decoration: underline; }
.cv { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 22px; margin-top: 18px; align-items: start; }
.cv > * { min-width: 0; }
.cv-main .tchart { margin-top: 0; }
.cv-main .tc-plot { height: min(62vh, 560px); }
.cv-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.box { background: var(--panel); border: 1px solid var(--line); padding: 18px; }
.cv-id { display: flex; align-items: center; gap: 14px; }
.cv-id .face { width: 56px; height: 56px; font-size: 16px; }
.cv-id h1 { margin: 0; font: 900 26px/1.05 var(--wide); font-stretch: 112%; overflow-wrap: anywhere; }
.cv-id p { margin: 4px 0 0; color: var(--smoke); }
.cv-rank { display: inline-block; margin-top: 12px; padding: 5px 9px; font: 800 11px/1 var(--wide); font-stretch: 125%; letter-spacing: .12em; text-transform: uppercase; background: rgba(231, 181, 60, .12); border: 1px solid rgba(231, 181, 60, .45); color: var(--gold); }
.cv-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.cv-price b { font: 900 34px/1 var(--wide); font-stretch: 100%; font-variant-numeric: tabular-nums; }
.cv-price .pc { font-size: 16px; padding: 5px 8px; background: rgba(239, 230, 212, .05); }
.cv dl { margin: 0; }
.cv dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.cv dl > div:last-child { border-bottom: 0; }
.cv dt { color: var(--smoke); }
.cv dd { margin: 0; font: 700 15px/1.3 var(--mono); text-align: right; }
.cv .bond { margin-top: 4px; }
.ratio { display: flex; height: 6px; margin-top: 8px; overflow: hidden; background: rgba(239, 230, 212, .08); }
.ratio i { background: var(--up); } .ratio em { background: var(--down); }
.acts { display: grid; gap: 8px; }
.act { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 14px; text-decoration: none; font-weight: 700; border: 1px solid rgba(239, 230, 212, .2); background: rgba(239, 230, 212, .03); }
.act:hover { border-color: var(--bone); }
.act.buy { background: var(--blood); border-color: var(--blood); } .act.buy:hover { background: #a3121a; border-color: var(--saber); }
.act.gx { border-color: rgba(94, 196, 230, .5); color: #bfeeff; } .act.gx:hover { border-color: var(--holo); box-shadow: 0 0 16px rgba(94, 196, 230, .3); }
.act svg { width: 15px; height: 15px; fill: currentColor; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.links a { padding: 7px 11px; font-weight: 700; font-size: 14px; text-decoration: none; border: 1px solid var(--line); }
.links a:hover { border-color: var(--holo); color: #bfeeff; }
.ca { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.ca code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 12.5px/1 var(--mono); color: var(--smoke); }
.ca button { min-height: 34px; padding: 0 12px; background: rgba(231, 181, 60, .12); border: 1px solid rgba(231, 181, 60, .45); color: var(--gold); font-weight: 700; font-size: 13px; }
.about { margin: 0; color: rgba(239, 230, 212, .8); }
.box h2 { margin: 0 0 10px; font: 800 12px/1 var(--wide); font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase; color: var(--smoke); }

.toast { position: fixed; left: 50%; bottom: 26px; z-index: 60; padding: 12px 18px; background: var(--gold); color: #140d00; font-weight: 700; white-space: nowrap; transform: translate(-50%, 30px); opacity: 0; visibility: hidden; transition: transform .35s var(--ease), opacity .35s, visibility 0s linear .35s; }
.toast.on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition-delay: 0s; }

@media (max-width: 1100px) {
  .mk-top { grid-template-columns: minmax(0, 1fr); }
  .mk-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mk-stats .st-mood { grid-column: span 1; }
  .mk-high { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cv { grid-template-columns: minmax(0, 1fr); }
  .cv-main { order: -1; }
}
@media (max-width: 760px) {
  .mk-bar { height: 56px; gap: 8px; }
  .mk-mark { font-size: 12.5px; letter-spacing: .03em; }
  .mk-nav { gap: 6px; }
  .pill .pw { display: none; }
  .pill { width: 36px; height: 36px; min-height: 0; padding: 0; justify-content: center; }
  .x-btn, .lang-btn { height: 36px; }
  .x-btn { width: 36px; }
  .lang-btn { padding: 0 9px; } .lang-btn #langCode { display: none; }
  .mk { padding-top: 22px; }
  .mk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mk-stats .st-mood { grid-column: 1 / -1; }
  .st { padding: 12px 14px; } .st dd { font-size: 19px; }
  .mk-high { grid-template-columns: 1fr; }
  .mk-upd { margin-left: 0; width: 100%; }
  .mk-tw { flex-wrap: wrap; }
  .cv-price b { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .c-s path { stroke-dashoffset: 0; }
}

/* the chart, as on the home page */
/* ---------- the chart: our own, in our colours ---------- */
.tchart { position: relative; margin-top: 36px; border: 1px solid var(--line); background: radial-gradient(120% 90% at 85% 0%, rgba(142, 14, 20, .14), transparent 60%), linear-gradient(#0b0a0e, #070609); overflow: hidden; }
.tchart::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), var(--saber), transparent); opacity: .7; }
.tc-bar { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 20px; padding: 16px 18px 10px; border-bottom: 1px solid rgba(239, 230, 212, .07); }
.tc-title { display: flex; align-items: center; gap: 10px; margin: 0; white-space: nowrap; font: 800 18px/1 var(--wide); font-stretch: 112%; }
.tc-title span { color: var(--smoke); font-weight: 700; }
.tc-title em { font: 700 12px/1 var(--news); font-style: normal; letter-spacing: .04em; color: var(--gold); padding: 5px 8px; border: 1px solid rgba(231, 181, 60, .35); }
.tc-live { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 10px #3ddc84; animation: tcLive 1.6s ease-in-out infinite; }
@keyframes tcLive { 50% { opacity: .35; box-shadow: 0 0 2px #3ddc84; } }
.tc-tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.tc-seg { display: inline-flex; border: 1px solid rgba(239, 230, 212, .16); background: rgba(4, 3, 6, .6); }
.tc-seg button { min-height: 34px; min-width: 40px; padding: 0 11px; background: none; border: 0; border-right: 1px solid rgba(239, 230, 212, .08); color: var(--smoke); font: 700 13px/1 var(--news); cursor: pointer; transition: color .2s, background .2s; }
.tc-seg button:last-child { border-right: 0; }
.tc-seg button:hover { color: var(--bone); }
.tc-seg button[aria-pressed="true"] { color: #04120a; background: linear-gradient(#ffe08a, var(--gold)); box-shadow: 0 0 16px rgba(231, 181, 60, .55), inset 0 0 0 1px rgba(255, 255, 255, .35); position: relative; z-index: 1; }
.tc-seg button[aria-pressed="true"]::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: -1px; height: 2px; background: #fff6d8; box-shadow: 0 0 8px #ffe08a; }
.tc-seg button:focus-visible { outline: 2px solid #5ec4e6; outline-offset: -2px; }
.tc-read { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; min-height: 18px; font: 600 12.5px/1.4 ui-monospace, Menlo, monospace; color: var(--smoke); }
.tc-read b { font-weight: 700; color: var(--bone); }
.tc-read .up, .tc-read b.up { color: #4cc88a; } .tc-read .down, .tc-read b.down { color: #e0646a; }
.tc-plot { position: relative; height: min(500px, 60vh); }
/* a hologram's fine scanlines over the plot, and the targeting frame's corners */
.tc-plot::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(94, 196, 230, .025) 0 1px, transparent 1px 3px); }
.tc-plot::after { content: ""; position: absolute; inset: 10px 92px 30px 10px; z-index: 1; pointer-events: none; opacity: .5;
  background: linear-gradient(#5ec4e6, #5ec4e6) top left / 16px 1.5px, linear-gradient(#5ec4e6, #5ec4e6) top left / 1.5px 16px,
    linear-gradient(#5ec4e6, #5ec4e6) top right / 16px 1.5px, linear-gradient(#5ec4e6, #5ec4e6) top right / 1.5px 16px,
    linear-gradient(#5ec4e6, #5ec4e6) bottom left / 16px 1.5px, linear-gradient(#5ec4e6, #5ec4e6) bottom left / 1.5px 16px,
    linear-gradient(#5ec4e6, #5ec4e6) bottom right / 16px 1.5px, linear-gradient(#5ec4e6, #5ec4e6) bottom right / 1.5px 16px; background-repeat: no-repeat; }
@media (max-width: 760px) { .tc-plot::after { inset: 8px 70px 30px 8px; } }
.tc-plot canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: pan-y; }
.tc-plot canvas.dragging { cursor: grabbing; }
.tc-msg { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--smoke); font-size: 16px; pointer-events: none; }
.tc-msg[hidden] { display: none; }
@media (max-width: 1000px) { .tc-bar { grid-template-columns: 1fr; } .tc-tools { justify-content: flex-start; } }
@media (max-width: 760px) {
  .tchart { margin-left: 0; margin-right: 0; border-left: 0; border-right: 0; }
  .tc-bar { grid-template-columns: 1fr; padding: 14px 14px 8px; }
  .tc-tools { justify-content: flex-start; }
  .tc-seg button { min-width: 0; padding: 0 9px; font-size: 12.5px; }
  .tc-plot { height: 58vh; }
  .tc-read { font-size: 11.5px; gap: 2px 12px; }
}
@media (prefers-reduced-motion: reduce) { .tc-live { animation: none; } }


/* ================================================================ v2: the sky, the tape, the sun, favourites */
.mk-sky { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; opacity: .7; }
body { isolation: isolate; }

/* the tape of movers under the bar */
.mk-tape { position: sticky; top: 64px; z-index: 25; height: 36px; overflow: hidden; background: rgba(8, 7, 11, .86); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.mk-tape-run { display: flex; width: max-content; height: 100%; animation: tape var(--dur, 60s) linear infinite; }
.mk-tape:hover .mk-tape-run { animation-play-state: paused; }
.mk-tape-run > div { display: flex; }
.mk-tape a { display: inline-flex; align-items: center; gap: 8px; padding: 0 22px; height: 36px; text-decoration: none; white-space: nowrap; border-right: 1px solid var(--line); font-size: 14px; }
.mk-tape a:hover { background: rgba(231, 181, 60, .06); }
.mk-tape b { font: 800 12.5px/1 var(--wide); }
.mk-tape span:not(.pc):not(.tf) { font: 600 12.5px/1 var(--mono); color: var(--smoke); }
.mk-tape .pc { font-size: 12.5px; }
.tf { width: 18px; height: 18px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #15131b; font: 800 7px/1 var(--wide); color: var(--gold); }
.tf img { width: 100%; height: 100%; object-fit: cover; }
@keyframes tape { to { transform: translateX(-50%); } }

/* sun and stats side by side */
.mk-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px; margin-top: 26px; }
.sun { position: relative; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 26px; align-items: center; padding: 24px 26px; overflow: hidden;
  background: radial-gradient(80% 120% at 0% 50%, rgba(231, 181, 60, .16), transparent 60%), linear-gradient(135deg, #14100a, #0b0a0e 60%); border: 1px solid rgba(231, 181, 60, .35);
  box-shadow: 0 0 40px rgba(231, 181, 60, .08), inset 0 1px 0 rgba(255, 240, 200, .06); }
.sun[hidden] { display: none; }
.sun::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 40%, rgba(255, 240, 190, .07) 50%, transparent 60%) 0 0 / 250% 100%; animation: sheen 7s ease-in-out infinite; pointer-events: none; }
@keyframes sheen { 0%, 30% { background-position: 120% 0; } 70%, 100% { background-position: -120% 0; } }
.sun-orb { position: relative; width: 210px; height: 210px; display: grid; place-items: center; }
.sun-orb .corona { position: absolute; inset: 22%; border-radius: 50%; background: conic-gradient(from 0deg, #ffcf5a, #ff7b3a, #ffe9a8, #ff9a3c, #ffcf5a); filter: blur(18px); opacity: .75; animation: turn 9s linear infinite, pulse 3.2s ease-in-out infinite; }
.sun-orb .core { position: relative; width: 44%; height: 44%; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font: 900 20px/1 var(--wide); color: #3a2405;
  background: radial-gradient(circle at 35% 30%, #fff6d0, var(--gold) 55%, #8a5a10); box-shadow: 0 0 30px rgba(255, 196, 80, .9), 0 0 70px rgba(255, 140, 40, .45); }
.sun-orb .core img { width: 100%; height: 100%; object-fit: cover; }
.sun-orb .ring { position: absolute; border-radius: 50%; border: 1px solid rgba(231, 181, 60, .22); animation: turn linear infinite; }
.sun-orb .ring i { position: absolute; top: 50%; left: -4px; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; }
.sun-orb .r1 { inset: 18%; animation-duration: 7s; } .sun-orb .r1 i { background: var(--holo); box-shadow: 0 0 8px var(--holo); width: 6px; height: 6px; left: -3px; margin-top: -3px; }
.sun-orb .r2 { inset: 7%; animation-duration: 13s; animation-direction: reverse; } .sun-orb .r2 i { background: var(--saber); box-shadow: 0 0 10px var(--saber); }
.sun-orb .r3 { inset: -2%; animation-duration: 22s; border-style: dashed; border-color: rgba(231, 181, 60, .14); } .sun-orb .r3 i { background: var(--up); box-shadow: 0 0 8px var(--up); width: 6px; height: 6px; left: -3px; margin-top: -3px; }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: 1; filter: blur(24px); } }
.sun-tag { margin: 0; font: 800 11px/1 var(--wide); font-stretch: 125%; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.sun-tag::before { content: "☀ "; }
.sun-name { margin: 10px 0 0; font: 900 34px/1 var(--wide); font-stretch: 112%; }
.sun-name span { display: block; margin-top: 6px; font: 600 16px/1.2 var(--news); color: var(--smoke); font-stretch: normal; }
.sun-line { margin: 10px 0 0; color: rgba(239, 230, 212, .75); font-size: 15.5px; }
.sun-price { display: flex; align-items: baseline; gap: 12px; margin-top: 14px; }
.sun-price b { font: 900 30px/1 var(--wide); font-variant-numeric: tabular-nums; }
.sun-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0; }
.sun-figs div { padding-top: 10px; border-top: 1px solid rgba(231, 181, 60, .2); }
.sun-figs dt { font: 800 10px/1.2 var(--wide); font-stretch: 100%; letter-spacing: .06em; white-space: nowrap; text-transform: uppercase; color: var(--smoke); }
.sun-figs dd { margin: 6px 0 0; font: 700 15px/1 var(--mono); }
.sun-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.sbtn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; text-decoration: none; font-weight: 700; font-size: 15px; border: 1px solid rgba(239, 230, 212, .22); transition: border-color .2s, box-shadow .2s, transform .2s; }
.sbtn:hover { border-color: var(--bone); transform: translateY(-1px); }
.sbtn.gold { color: #140d00; background: linear-gradient(#ffe08a, var(--gold)); border-color: var(--gold); box-shadow: 0 0 18px rgba(231, 181, 60, .35); }
.sbtn.gold:hover { box-shadow: 0 0 28px rgba(231, 181, 60, .6); }

/* stat cards: a light that runs round the edge on hover */
.st { transition: border-color .3s, transform .3s var(--ease); }
.st:hover { border-color: rgba(231, 181, 60, .35); transform: translateY(-2px); }
.st dd .sl { margin: 0 6px; color: var(--smoke); }
.st small .mini { display: inline-block; width: 60px; height: 4px; margin-right: 8px; vertical-align: middle; background: rgba(239, 230, 212, .1); }
.st small .mini i { display: block; height: 100%; background: var(--up); animation: grow 1.2s var(--ease) both; transform-origin: left; }
.st small .ratio { display: flex; height: 5px; margin: 2px 0 8px; overflow: hidden; background: rgba(239, 230, 212, .08); }
.st small .ratio i { background: var(--up); animation: grow 1.2s var(--ease) both; transform-origin: left; } .st small .ratio em { flex: 1; background: var(--down); }

/* dominance */
.dom { margin-top: 12px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); }
.dom[hidden] { display: none; }
.dom h2 { margin: 0 0 12px; font: 800 11px/1 var(--wide); font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase; color: var(--smoke); }
.dom-bar { display: flex; gap: 2px; height: 14px; }
.dom-bar a { width: var(--w); min-width: 3px; background: var(--c); border-radius: 2px; transform-origin: left; animation: grow .9s var(--ease) both; animation-delay: calc(var(--i) * 70ms); transition: filter .2s, transform .2s; }
.dom-bar a[href]:hover { filter: brightness(1.25); transform: scaleY(1.35); }
.dom-key { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 0; padding: 0; list-style: none; }
.dom-key li { display: flex; align-items: center; gap: 7px; font-size: 14px; }
.dom-key i { width: 9px; height: 9px; border-radius: 2px; }
.dom-key b { font: 800 12.5px/1 var(--wide); }
.dom-key span { font: 600 12.5px/1 var(--mono); color: var(--smoke); }

/* highlight cards come in one after another */
.hc { animation: rowIn .6s var(--ease) both; animation-delay: calc(var(--j) * 80ms); position: relative; overflow: hidden; }
.hc::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; }
.hc-trending::after { background: linear-gradient(90deg, #f08a4b, transparent); }
.hc-gainers::after { background: linear-gradient(90deg, var(--up), transparent); }
.hc-losers::after { background: linear-gradient(90deg, var(--down), transparent); }
.hc-newest::after { background: linear-gradient(90deg, var(--holo), transparent); }
.hc li a { transition: background .2s, padding .2s; }
.hc li a:hover { padding-left: 8px; }

.mk-tw { position: relative; overflow: hidden; }
.mk-tw::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 120, 120, .14) 50%, transparent 70%) 0 0 / 250% 100%; animation: sheen 5s ease-in-out infinite; pointer-events: none; }
.tw-l, .tw-r { position: relative; display: flex; align-items: center; gap: 14px; }

/* search key, favourites tab */
.mk-search kbd { padding: 2px 7px; font: 600 12px/1.4 var(--mono); color: var(--smoke); border: 1px solid var(--line); }
.mk-search:focus-within kbd { display: none; }
.mk-tabs button { display: inline-flex; align-items: center; gap: 6px; transition: color .2s, background .2s; }
.mk-tabs button:hover:not([aria-pressed="true"]) { color: var(--bone); background: rgba(239, 230, 212, .04); }
.tab-fav .st-ico { color: var(--gold); }
.tab-fav[aria-pressed="true"] .st-ico { color: #140d00; }
.tab-fav b { min-width: 20px; padding: 2px 6px; border-radius: 999px; font: 700 11px/1.2 var(--mono); color: #140d00; background: var(--gold); }
.tab-fav[aria-pressed="true"] b { background: #140d00; color: var(--gold); }
.tab-fav b[hidden] { display: none; }
.mk-empty.fav-empty { padding: 56px 24px; font-size: 17px; color: var(--bone); }
.mk-empty.fav-empty::before { content: "☆"; display: block; margin-bottom: 10px; font-size: 40px; color: var(--gold); animation: pulse 2s ease-in-out infinite; }

/* the star */
.c-f { width: 34px; padding-right: 0 !important; }
.fv { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; background: none; border: 0; color: rgba(239, 230, 212, .3); transition: color .2s, transform .25s var(--ease); }
.fv svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; transition: fill .2s; }
.fv:hover { color: var(--gold); transform: scale(1.15); }
.fv[aria-pressed="true"] { color: var(--gold); }
.fv[aria-pressed="true"] svg { fill: var(--gold); filter: drop-shadow(0 0 6px rgba(231, 181, 60, .7)); animation: pop .45s var(--ease); }
@keyframes pop { 0% { transform: scale(.4) rotate(-30deg); } 60% { transform: scale(1.35) rotate(8deg); } }
.burst { position: fixed; z-index: 70; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; left: -2.5px; top: -2.5px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); animation: fly .65s cubic-bezier(.2, .8, .3, 1) forwards; }
.burst i:nth-child(3n) { background: #fff3c4; } .burst i:nth-child(4n) { background: var(--saber); box-shadow: 0 0 8px var(--saber); }
@keyframes fly { to { transform: translate(var(--x), var(--y)) scale(.2); opacity: 0; } }

/* rows: medals for the top three, a saber line on hover */
.c-r.m1, .c-r.m2, .c-r.m3 { font-weight: 800; }
.c-r.m1 { color: var(--gold); text-shadow: 0 0 10px rgba(231, 181, 60, .6); } .c-r.m2 { color: #d9dde6; } .c-r.m3 { color: #d39a6a; }
.mk-table tbody td:first-child { box-shadow: inset 0 0 0 transparent; transition: box-shadow .25s; }
.mk-table tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.mk-table tbody tr:hover .face { box-shadow: 0 0 0 1px rgba(231, 181, 60, .6), 0 0 12px rgba(231, 181, 60, .35); }
.face { transition: box-shadow .25s; }
.mk-table th { transition: color .2s; }

/* one coin: the arrows, the star, the entrance */
.cv-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cv-step { display: flex; align-items: center; gap: 8px; font: 600 13px/1 var(--mono); color: var(--smoke); }
.nav-b { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; background: var(--panel); border: 1px solid var(--line); color: var(--bone); transition: border-color .2s, transform .2s; }
.nav-b svg { width: 18px; height: 18px; fill: currentColor; }
.nav-b.nx svg { transform: scaleX(-1); }
.nav-b:hover { border-color: var(--gold); color: var(--gold); }
.cv.in .cv-side > * { animation: rowIn .55s var(--ease) both; }
.cv.in .cv-side > :nth-child(2) { animation-delay: .06s; } .cv.in .cv-side > :nth-child(3) { animation-delay: .12s; } .cv.in .cv-side > :nth-child(n+4) { animation-delay: .18s; }
.cv.in .cv-main { animation: rowIn .6s var(--ease) both .08s; }
.cv-id .fv { margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--line); }
.cv-id .fv svg { width: 20px; height: 20px; }
.cv-idt { min-width: 0; }
.id-box.is-sun { border-color: rgba(231, 181, 60, .45); background: radial-gradient(100% 80% at 0% 0%, rgba(231, 181, 60, .14), transparent 60%), var(--panel); }
.id-box.is-sun .face { box-shadow: 0 0 0 1px var(--gold), 0 0 24px rgba(255, 196, 80, .6); }
.cv-rank.sun-r { background: linear-gradient(#ffe08a, var(--gold)); color: #140d00; }
.cv dl .tx { display: block; }
.tx-h { display: flex; justify-content: space-between; gap: 12px; }
.ratio i { animation: grow 1s var(--ease) both; transform-origin: left; }
.ratio em { flex: 1; }

@media (max-width: 1100px) {
  .mk-top { grid-template-columns: minmax(0, 1fr); }
  .mk-stats .st-mood { grid-column: span 2; }
  .sun { grid-template-columns: 170px minmax(0, 1fr); }
  .sun-orb { width: 170px; height: 170px; }
}
@media (max-width: 760px) {
  .mk-tape { top: 56px; height: 32px; }
  .mk-tape a { height: 32px; padding: 0 14px; }
  .sun { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 18px 16px 20px; gap: 6px; }
  .sun-orb { width: 150px; height: 150px; }
  .sun-price, .sun-acts { justify-content: center; }
  .sun-name { font-size: 28px; }
  .sun-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: left; width: 100%; }
  .mk-high { grid-template-columns: minmax(0, 1fr); }
  .mk-stats .st-mood { grid-column: 1 / -1; }
  .mk-search kbd { display: none; }
  .mk-tabs { width: 100%; }
  .mk-tabs button { flex: 1; justify-content: center; padding: 0 8px; font-size: 13px; }
  .cv-step span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mk-tape-run { animation: none; }
  .mk-sky { display: none; }
}
.cv dt::first-letter { text-transform: uppercase; }
.c-r.sun-rk { color: var(--gold); font-size: 16px; text-shadow: 0 0 10px rgba(231, 181, 60, .7); }
