@font-face { font-family: 'Geist'; font-weight: 100 900; font-style: normal; font-display: swap; src: url('fonts/Geist-Variable.woff2') format('woff2'); }

:root {
	color-scheme: dark;
	--bg: #04060d;
	--ink: #f4f7fd;
	--ink-2: #c4cce0;
	--gold: #f2b143;
	--mint: #6fe3c1;
	--glass: rgba(9, 13, 27, 0.62);
	--edge: rgba(255, 255, 255, 0.1);
	--edge-2: rgba(255, 255, 255, 0.2);
}
html { font-size: clamp(15.4px, 0.88vw, 24.75px); }  /* everything is set in rem: this is the size of the whole interface */
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Geist', 'Helvetica Neue', Arial, sans-serif; font-size: 1rem; line-height: 1.45; overflow: hidden; -webkit-font-smoothing: antialiased; font-feature-settings: 'tnum'; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 999px; }

/* ---------- glass ---------- */
.glass { background: var(--glass); border: 1px solid var(--edge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 14px 44px rgba(0, 0, 0, 0.38); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); }
.rb { flex: none; height: 2.3rem; padding: 0 0.95rem; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--edge); color: var(--ink-2); font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; transition: background 200ms ease, color 200ms ease, border-color 200ms ease; }
.rb:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--edge-2); color: var(--ink); }
.rb:active { transform: scale(0.92); }
.rb svg { width: 0.85rem; height: 0.85rem; fill: currentColor; }
.seg { display: flex; flex-wrap: wrap; gap: 0.15rem 0.9rem; font-size: 0.92rem; font-weight: 400; line-height: 1.4; color: var(--ink-2); }

/* ---------- stage ---------- */
#stage { position: fixed; inset: 0; }
#stars, #globe, #leaders { position: absolute; inset: 0; width: 100%; height: 100%; }
#stars, #leaders { pointer-events: none; }
#leaders { z-index: 2; }
#globe { cursor: crosshair; }
#globe canvas { outline: none; }
#vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 62% 72% at 50% 45%, rgba(4, 6, 13, 0) 58%, rgba(4, 6, 13, 0.72) 100%); }

/* ---------- cards on the globe, and the same lines in the feed ---------- */
.co { position: absolute; left: 0; top: 0; width: 21rem; z-index: 3; opacity: 0; transition: opacity 320ms ease; pointer-events: none; padding: 0.75rem 1rem 0.8rem; border-radius: 16px; overflow: hidden; cursor: pointer; user-select: none; touch-action: none; }
/* On hover the event's colour slides in from behind the card's left edge, clipped by the card, and back out when the pointer leaves. */
.co::before { content: ''; position: absolute; left: 0; top: 0.9rem; bottom: 0.9rem; width: 3px; border-radius: 0 2px 2px 0; background: var(--gold); box-shadow: 0 0 10px rgba(242, 177, 67, 0.55); transform: translateX(-10px); opacity: 0; transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease; }
.co.mint::before { background: var(--mint); box-shadow: 0 0 10px rgba(111, 227, 193, 0.55); }
.co:hover::before { transform: translateX(0); opacity: 1; transition-duration: 240ms, 160ms; }  /* a touch quicker in than out */
.co.top { z-index: 4; }
.co.drag { cursor: grabbing; z-index: 5; }
.co.on { opacity: 1; pointer-events: auto; }
.co-k { display: flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; font-weight: 600; color: var(--gold); }
.co-k i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 7px currentColor; }
.mint .co-k { color: var(--mint); }
.co-k .tm, .co-k .ago { font-style: normal; font-weight: 400; font-size: 0.84rem; color: var(--ink-2); }
.co-k .ago { margin-left: auto; }
.co-k .tm:empty { display: none; }
.co-q { font-weight: 500; font-style: italic; font-size: 1.05rem; line-height: 1.22; letter-spacing: -0.01em; color: var(--ink); margin: 0.35rem 0; text-wrap: pretty; }

/* ---------- panels ---------- */
.panel { position: absolute; z-index: 4; }
#left { left: 2.4rem; top: 2.2rem; width: 22rem; padding: 1.4rem 1.6rem 1.3rem; border-radius: 22px; }
.lbl { font-size: 1rem; font-weight: 500; color: var(--ink); }
.big { font-weight: 300; font-size: 4.6rem; line-height: 1; letter-spacing: -0.045em; margin: 0.15rem 0 1.2rem; font-variant-numeric: tabular-nums; }
.skel { display: inline-block; color: transparent !important; background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 20%, rgba(255, 255, 255, 0.14) 50%, rgba(255, 255, 255, 0.05) 80%); background-size: 200% 100%; border-radius: 10px; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.row { display: flex; gap: 2rem; }
.row .lbl { font-size: 0.92rem; color: var(--ink-2); }
.mid { font-weight: 400; font-size: 2.1rem; line-height: 1.15; letter-spacing: -0.02em; white-space: nowrap; }
.defs { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; gap: 1.2rem; }
.defs li { display: flex; align-items: center; gap: 0.55rem; font-size: 0.94rem; color: var(--ink-2); }
.defs i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.defs i.mint { background: var(--mint); box-shadow: 0 0 8px var(--mint); }

#brand { right: 2.4rem; top: 2rem; }
#brand a { display: block; }
#brand svg { height: 2.1rem; width: auto; display: block; filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.5)); transition: opacity 160ms ease; }
#brand a:hover svg { opacity: 0.85; }

#right { right: 2.4rem; top: 5.9rem; bottom: 6.4rem; width: 24rem; padding: 0.4rem 0; border-radius: 22px; display: flex; flex-direction: column; min-height: 0; }
#feed { list-style: none; margin: 0; padding: 0.5rem 1.4rem 1rem; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 0.9rem, #000 calc(100% - 1.4rem), transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 0.9rem, #000 calc(100% - 1.4rem), transparent 100%); }
#feed::-webkit-scrollbar { display: none; }
.st { padding: 0.8rem 0; border-top: 1px solid var(--edge); animation: slide 420ms ease both; cursor: pointer; }
.st:first-child { border-top: 0; }
.st .co-k { font-size: 0.92rem; }
.st .co-q { font-size: 0.98rem; margin: 0.3rem 0 0.25rem; }
.st .seg { font-size: 0.88rem; gap: 0.1rem 0.8rem; }
@keyframes slide { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- the bar: play or pause, the timeline, sound ---------- */
#bar { position: absolute; left: 2.4rem; right: 2.4rem; bottom: 1.6rem; z-index: 4; display: flex; align-items: center; gap: 0.9rem; height: 3.5rem; padding: 0 0.6rem; border-radius: 999px; }
#play, #sound { width: 2.3rem; padding: 0; }
#sound svg { width: 1rem; height: 0.85rem; }
#sound.on { color: var(--ink); }
#tl { position: relative; flex: 1; height: 2.3rem; cursor: pointer; touch-action: none; }
#density { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#head { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); box-shadow: 0 0 8px rgba(233, 238, 249, 0.6); margin-left: -1px; pointer-events: none; }

/* ---------- the profile ---------- */
#modal { position: fixed; inset: 0; z-index: 9; display: grid; place-items: center; background: rgba(4, 6, 13, 0.45); opacity: 0; transition: opacity 220ms ease; cursor: pointer; }
#modal[hidden] { display: none; }
#modal.on { opacity: 1; }
#modal-card { position: relative; width: min(38rem, calc(100vw - 3rem)); max-height: 86vh; display: flex; flex-direction: column; padding: 0; border-radius: 24px; transform: translateY(14px) scale(0.97); transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1); cursor: auto; }
#modal.on #modal-card { transform: none; }
#modal-body { overflow-y: auto; min-height: 0; padding: 1.7rem 1.9rem 2.8rem; scrollbar-width: none; overscroll-behavior: contain; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 1.2rem, #000 calc(100% - 2.6rem), transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 1.2rem, #000 calc(100% - 2.6rem), transparent 100%); }
#modal-body::-webkit-scrollbar { display: none; }
.m-head { display: flex; align-items: center; gap: 1.2rem; }
.m-id { flex: 1; min-width: 0; }
.m-title { font-weight: 500; font-size: 1.7rem; line-height: 1.15; letter-spacing: -0.015em; text-wrap: pretty; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-sub { margin-top: 0.5rem; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.m-sub span { margin-right: 0.9rem; }
.m-play { position: relative; flex: none; width: 3.6rem; height: 3.6rem; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45); transition: transform 160ms ease, background 200ms ease; }
.m-play:hover { transform: scale(1.04); }
.m-play:active { transform: scale(0.9); }
.m-play svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.m-play .ic-play { margin-left: 0.2rem; }
.m-play .ic-pause, .m-play.playing .ic-play { display: none; }
.m-play.playing .ic-pause { display: block; }
.m-play.loading svg { visibility: hidden; }
.m-play.loading::after { content: ''; position: absolute; inset: 0.8rem; border-radius: 50%; border: 2px solid rgba(4, 6, 13, 0.2); border-top-color: var(--bg); animation: spin 900ms linear infinite; }
.m-play.off { background: rgba(255, 255, 255, 0.14); color: var(--ink-2); cursor: default; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.m-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; margin: 1.3rem 0 0; }
.m-stats div { padding: 0.8rem 0.9rem; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--edge); }
.m-stats b { display: block; font-weight: 500; font-size: 1.4rem; line-height: 1.15; letter-spacing: -0.01em; }
.m-stats span { display: block; font-size: 0.84rem; color: var(--ink-2); margin-top: 0.2rem; }
.m-loans { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 0.15rem; }
.m-loans li { display: grid; grid-template-columns: 4.8rem 4.2rem 1fr auto; gap: 1rem; align-items: baseline; padding: 0.55rem 0.9rem; border-radius: 10px; font-size: 0.92rem; color: var(--ink-2); }
.m-loans li span:nth-child(2) { color: var(--ink); }
.m-loans li > :last-child { justify-self: end; text-align: right; }
.m-loans li.re { padding-left: 1.6rem; }
.hash { color: var(--ink-2); letter-spacing: 0.02em; }
.hash:hover { color: var(--ink); }
.m-points { margin: 1.4rem 0 0; padding: 0 0 0 1.1rem; font-size: 0.98rem; line-height: 1.5; color: var(--ink); }
.m-points li { margin: 0 0 0.45rem; padding-left: 0.2rem; text-wrap: pretty; }
.m-points li::marker { color: var(--ink-2); }

@media (max-width: 1100px) { #left { width: 19rem; } .big { font-size: 3.2rem; } .mid { font-size: 1.7rem; } #right { width: 18rem; } .m-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { #right { display: none; } #left { left: 1.2rem; top: 1.2rem; } #brand { right: 1.2rem; top: 1.2rem; } #bar { left: 1.2rem; right: 1.2rem; bottom: 1.2rem; } }
@media (prefers-reduced-motion: reduce) { .co { transition: none; } .st { animation: none; } }
