/* targeting reticle cursor + auto-hiding scrollbar (shared by every page) */

/* ---------- reticle: aim cross / elastic nose ring / stretching layers + lead pip ---------- */
html.rt-on, html.rt-on * { cursor: none !important; }
html.rt-on input, html.rt-on textarea { cursor: text !important; }

.rt { position: fixed; z-index: 100; inset: 0; pointer-events: none; opacity: 0; transition: opacity .2s ease; }
html.rt-live .rt { opacity: 1; }
html.rt-text .rt, html.rt-text .rt__lock { opacity: 0 !important; }
.rt > div { position: fixed; left: 0; top: 0; width: 0; height: 0; will-change: transform; }
.rt svg { position: absolute; overflow: visible; transition: transform .22s cubic-bezier(.2, .8, .2, 1), opacity .25s ease; filter: drop-shadow(0 0 3px #3ca0ffaa); }
.rt path, .rt circle { fill: none; stroke: #3ca0ff; stroke-linecap: round; }

/* 1. aim: exactly where you point */
.rt__aim svg { left: -9px; top: -9px; width: 18px; height: 18px; }
.rt__aim path { stroke: #e8f3ff; stroke-width: 1.8; }
.rt__aim circle { fill: #3ca0ff; stroke: none; }

/* 2. nose: chases the aim on a spring, tick points back at it */
.rt__nose svg { left: -19px; top: -19px; width: 38px; height: 38px; }
.rt__nose circle { stroke-width: 2; }
.rt__nose path { stroke-width: 2; }
.rt__nose .tick { stroke: #e8f3ff; stroke-width: 3; }

/* tether between nose and aim */
.rt__tether { height: 1px !important; width: 1px !important; background: #3ca0ff; transform-origin: 0 50%; box-shadow: 0 0 6px #3ca0ff99; opacity: 0; }

/* 3. layers: lag more, stretch along motion, expand with speed */
.rt__l1 svg { left: -29px; top: -29px; width: 58px; height: 58px; }
.rt__l2 svg { left: -38px; top: -38px; width: 76px; height: 76px; }
.rt__l1 path { stroke-width: 2; }
.rt__l2 path { stroke-width: 1.4; }

/* lead pip: slides out ahead of the aim in the direction of travel */
.rt__lead svg { left: -6px; top: -6px; width: 12px; height: 12px; }
.rt__lead path { stroke: #8fcaff; stroke-width: 1.6; stroke-linejoin: round; }

html.rt-hot .rt__nose svg { transform: scale(.78); }
html.rt-down .rt__nose svg { transform: scale(.6); }
html.rt-down .rt__l1 svg { transform: scale(1.18); }
html.rt-down .rt__l2 svg { transform: scale(1.3); }
html.rt-drag .rt__nose svg { transform: scale(1.3); }
html.rt-lock .rt__nose svg, html.rt-lock .rt__l1 svg, html.rt-lock .rt__l2 svg, html.rt-lock .rt__lead svg { opacity: 0; }
html.rt-lock .rt__aim path { stroke: #3ca0ff; }

/* lock-on brackets: snap around small interactive targets */
.rt__lock { position: fixed; z-index: 100; top: 0; left: 0; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .15s ease, transform .16s cubic-bezier(.2, .8, .2, 1), width .16s cubic-bezier(.2, .8, .2, 1), height .16s cubic-bezier(.2, .8, .2, 1); }
html.rt-lock.rt-live .rt__lock { opacity: 1; }
.rt__lock i { position: absolute; width: 11px; height: 11px; border: 0 solid #3ca0ff; filter: drop-shadow(0 0 4px #3ca0ffcc); }
.rt__lock i:nth-child(1) { left: -6px; top: -6px; border-left-width: 2px; border-top-width: 2px; }
.rt__lock i:nth-child(2) { right: -6px; top: -6px; border-right-width: 2px; border-top-width: 2px; }
.rt__lock i:nth-child(3) { left: -6px; bottom: -6px; border-left-width: 2px; border-bottom-width: 2px; }
.rt__lock i:nth-child(4) { right: -6px; bottom: -6px; border-right-width: 2px; border-bottom-width: 2px; }
.rt__lock span { position: absolute; left: -6px; top: -22px; color: #3ca0ff; font: 700 8px var(--mono, monospace); letter-spacing: .24em; text-shadow: 0 0 6px #3ca0ff99; }

/* ---------- scrollbar ---------- */
html.sb-on { scrollbar-width: none; }
html.sb-on::-webkit-scrollbar { display: none; }
.sb { position: fixed; z-index: 90; top: 76px; right: 6px; bottom: 18px; width: 26px; opacity: 0; transition: opacity .35s ease; pointer-events: none; font-family: var(--mono, monospace); }
.sb.is-on { opacity: 1; pointer-events: auto; }
.sb__track { position: absolute; top: 0; bottom: 0; right: 11px; width: 2px; background: repeating-linear-gradient(180deg, #ffffff22 0 1px, transparent 1px 10px); }
.sb__thumb { position: absolute; right: 7px; width: 10px; min-height: 36px; border: 1px solid #3ca0ff; border-right-width: 2px; background: linear-gradient(180deg, #3ca0ff55, #3ca0ff22); box-shadow: 0 0 12px #3ca0ff66, inset 0 1px 0 #ffffff40; cursor: none; touch-action: none; }
.sb__thumb::before, .sb__thumb::after { position: absolute; left: -5px; width: 5px; height: 1px; background: #3ca0ff; content: ""; }
.sb__thumb::before { top: 0; } .sb__thumb::after { bottom: 0; }
.sb__read { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); padding: 2px 5px; background: #0a1320e6; border: 1px solid #3ca0ff66; color: #3ca0ff; font-size: 9px; letter-spacing: .12em; white-space: nowrap; }
.sb.is-drag .sb__thumb { background: #3ca0ff88; }
@media (hover: none) { .sb { display: none; } html.sb-on { scrollbar-width: auto; } html.sb-on::-webkit-scrollbar { display: block; } }

/* ---------- on-air badge (beside the wordmark) ---------- */
.nav__left { display: inline-flex; align-items: center; gap: 16px; min-width: 0; }
.onair { display: inline-flex; align-items: center; gap: 9px; padding: 5px 12px 4px; border: 1px solid #ffffff26; background: #0a1320b3; font: 700 10px var(--mono, monospace); letter-spacing: .2em; white-space: nowrap; color: #7f93a8; text-decoration: none; transition: border-color .25s, background .25s, box-shadow .25s, color .25s; }
.onair b { font-weight: 700; }
.onair small { font: 500 10px var(--mono, monospace); letter-spacing: .14em; color: #7f93a8; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; }
.onair .led { width: 7px; height: 7px; }
.onair[data-state="live"] { color: #ffd0d0; border-color: #ff4d4d99; background: linear-gradient(180deg, #5a1212cc, #2a0a0acc); box-shadow: 0 0 18px #ff4d4d44, inset 0 1px 0 #ffffff22; }
.onair[data-state="live"] small { color: #ffb4b4; }
.onair[data-state="live"]:hover { box-shadow: 0 0 26px #ff4d4d77, inset 0 1px 0 #ffffff22; }
.onair[data-state="off"]:hover { border-color: #3ca0ff88; color: #e8f3ff; }
/* a thin red line across the top of the page while live */
.nav::after, .bar::after { position: absolute; left: 0; right: 0; top: 0; height: 2px; content: ""; background: linear-gradient(90deg, transparent, #ff4d4d 30%, #ff9a9a 50%, #ff4d4d 70%, transparent); opacity: 0; transition: opacity .5s ease; pointer-events: none; }
html[data-live="1"] .nav::after, html[data-live="1"] .bar::after { opacity: 1; }
@media (max-width: 760px) { .onair small { display: none; } .nav__left { gap: 10px; } .onair { padding: 5px 9px 4px; letter-spacing: .14em; } }

/* ---------- moving background ---------- */
.bgfx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; isolation: isolate; background: #0a1320; }
.bgfx__media { position: absolute; inset: 0; background-size: cover; background-position: center; filter: grayscale(1) contrast(1.2) brightness(.9); }
.bgfx__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.bgfx__media video.on { opacity: 1; }
.bgfx__tint { position: absolute; inset: 0; background: var(--bg-tint, #3ca0ff); mix-blend-mode: color; }
.bgfx__dim { position: absolute; inset: 0; background:
  radial-gradient(ellipse at 50% 28%, transparent 0%, rgba(10, 19, 32, .55) 85%),
  linear-gradient(180deg, rgba(10, 19, 32, var(--bg-dim, .72)), rgba(10, 19, 32, calc(var(--bg-dim, .72) + .2))); }

.bgtoggle { padding: 4px 10px 3px; border: 1px solid #ffffff22; background: #0a1320aa; color: var(--dim, #7f93a8); font: 500 10px var(--mono, monospace); letter-spacing: .16em; cursor: pointer; }
.bgtoggle:hover { border-color: #3ca0ff88; color: #e8f3ff; }
.bgtoggle--float { position: fixed; z-index: 40; left: 12px; bottom: 12px; }
/* let the moving background show through: the page color lives on <html>, so the body must not repaint over it */
body[data-bg] { background: none !important; }

@media (max-width: 900px) { .mark { min-height: 44px; } }
