html, body { margin: 0; height: 100%; background: #fff; overflow: hidden; }
body { color: #000; font: var(--mono); letter-spacing: 0.02em; text-transform: uppercase; }
canvas#grid { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
a { color: inherit; text-decoration: none; }

.ui { position: fixed; z-index: 2; margin: 0; color: #000; }
.coord { top: 50%; white-space: nowrap; font-variant-numeric: tabular-nums; }
.coord.left { left: 20px; }
.coord.right { right: 20px; }

.ticker { bottom: 18px; left: 50%; transform: translateX(-50%); width: min(360px, calc(100% - 40px)); overflow: hidden; padding: 7px 0; border: 1px solid #e6e6e6; border-radius: 4px; background: rgba(255,255,255,0.85); backdrop-filter: blur(6px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker .track { display: inline-block; white-space: nowrap; animation: tick 40s linear infinite; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.fallback { display: none; position: relative; z-index: 1; padding: 80px 20px; }
.fallback ul { list-style: none; padding: 0; margin: 0; }
.fallback li { font: var(--text); letter-spacing: -0.01em; text-transform: none; padding: 10px 0; border-bottom: 1px solid #eee; }
body.no-gl { overflow: auto; }
body.no-gl .fallback { display: block; }
body.no-gl canvas#grid, body.no-gl .coord { display: none; }

@media (prefers-reduced-motion: reduce) { .ticker .track { animation: none; } }
@media (max-width: 560px) { .coord { display: none; } }
