:root {
  --bg: #07080c; --panel: #0e1017; --panel2: #151823; --line: #232736;
  --text: #f3f4f8; --dim: #9aa0b4; --faint: #646a80;
  --brand: #ff4d1c; --red: #e5152b; --ai: #7c5cff; --fund: #18c37d; --deep: #19b8e6; --start: #ffb020; --tech: #8e96ad;
  --u: min(1vw, 1.78vh); /* one unit that scales with a 16:9 screen */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--bg); color: var(--text); overflow: hidden;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
body.idle, body.idle * { cursor: none !important; }
kbd { font: inherit; font-weight: 700; background: #ffffff1c; border: 1px solid #ffffff2e; border-radius: .35em; padding: .05em .45em; }
[hidden] { display: none !important; }

#app { height: 100vh; display: grid; grid-template-rows: calc(var(--u) * 3.9) 1fr calc(var(--u) * 3.3); }

/* ── top bar ── */
#top { display: flex; align-items: center; gap: calc(var(--u) * 1.2); padding: 0 calc(var(--u) * 1.4); background: linear-gradient(180deg, #12141d, #0b0c12); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: calc(var(--u) * .6); font-family: 'Space Grotesk', Inter, sans-serif; font-weight: 700; font-size: calc(var(--u) * 1.55); letter-spacing: .04em; }
.brand b { font-weight: 700; margin-left: .28em; background: linear-gradient(90deg, #ff8a1f, #ff2d6f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo { width: calc(var(--u) * 2.6); height: calc(var(--u) * 2.6); display: grid; place-items: center; filter: drop-shadow(0 0 calc(var(--u) * .7) #ff2d6f66); }
.logo svg, [data-mark] svg { width: 100%; height: 100%; display: block; overflow: visible; }
.live { display: flex; align-items: center; gap: .5em; background: var(--red); font-weight: 800; font-size: calc(var(--u) * .95); letter-spacing: .12em; padding: .28em .75em; border-radius: .35em; }
.live i { width: .6em; height: .6em; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
#segment { color: var(--dim); font-weight: 600; font-size: calc(var(--u) * 1.05); letter-spacing: .08em; text-transform: uppercase; }
.grow { flex: 1; }
#stats { color: var(--faint); font-size: calc(var(--u) * .85); font-weight: 500; }
#clock { display: flex; align-items: baseline; gap: .6em; font-variant-numeric: tabular-nums; }
#time { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: calc(var(--u) * 1.7); }
#date { color: var(--dim); font-size: calc(var(--u) * .95); font-weight: 500; }

/* ── main ── */
main { display: grid; grid-template-columns: 1fr calc(var(--u) * 25); min-height: 0; }
#stage { display: grid; grid-template-rows: 1fr calc(var(--u) * 6.4); min-width: 0; min-height: 0; }
#screen { position: relative; background: #000; overflow: hidden; }
#screen iframe, #player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
#shield { position: absolute; inset: 0; } /* keeps the TV free of YouTube hover chrome */
#soundhint { position: absolute; right: calc(var(--u) * 1.2); top: calc(var(--u) * 1.2); background: #000c; border: 1px solid #ffffff30; border-radius: 99px; padding: .5em 1.1em; font-size: calc(var(--u) * 1); font-weight: 600; cursor: pointer; z-index: 6; }

#lower { display: grid; grid-template-columns: 1fr calc(var(--u) * 24); background: var(--panel); border-top: 1px solid var(--line); min-width: 0; }
.np { padding: calc(var(--u) * .8) calc(var(--u) * 1.4) 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; position: relative; }
.np-top { display: flex; align-items: center; gap: .8em; font-size: calc(var(--u) * .9); color: var(--dim); font-weight: 600; white-space: nowrap; overflow: hidden; }
.badge { background: var(--brand); color: #fff; font-weight: 800; letter-spacing: .1em; font-size: calc(var(--u) * .78); padding: .25em .7em; border-radius: .3em; flex: none; }
.badge.curated { background: var(--ai); } .badge.hn { background: #ff6600; } .badge.news { background: var(--red); }
#np-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: calc(var(--u) * 1.75); line-height: 1.2; margin-top: .25em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--u) * .22); background: #ffffff10; }
.bar i { display: block; height: 100%; width: 0; background: var(--brand); transition: width 1s linear; }
.next { border-left: 1px solid var(--line); padding: calc(var(--u) * .8) calc(var(--u) * 1.2); min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.next-label { color: var(--brand); font-weight: 800; letter-spacing: .14em; font-size: calc(var(--u) * .75); }
#next-title { font-weight: 600; font-size: calc(var(--u) * 1); line-height: 1.25; margin-top: .25em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#next-meta { color: var(--faint); font-size: calc(var(--u) * .8); margin-top: .2em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── rail ── */
#rail { background: var(--panel); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.rail-head { padding: calc(var(--u) * .9) calc(var(--u) * 1.2); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: .2em; }
.rail-head span { font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: .16em; font-size: calc(var(--u) * 1.05); }
.rail-head small { color: var(--faint); font-size: calc(var(--u) * .78); font-weight: 500; }
#rail-list { flex: 1; overflow: hidden; position: relative; }
.ri { padding: calc(var(--u) * .85) calc(var(--u) * 1.2); border-bottom: 1px solid #1a1d29; border-left: calc(var(--u) * .28) solid var(--c, var(--tech)); animation: railin .6s ease both; }
@keyframes railin { from { opacity: 0; transform: translateY(1em); } }
.ri-top { display: flex; gap: .6em; align-items: center; font-size: calc(var(--u) * .74); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c, var(--tech)); }
.ri-top time { color: var(--faint); font-weight: 600; letter-spacing: 0; text-transform: none; margin-left: auto; }
.ri-title { font-size: calc(var(--u) * 1.02); font-weight: 600; line-height: 1.3; margin-top: .3em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ri-src { color: var(--dim); font-size: calc(var(--u) * .78); margin-top: .3em; }
.rail-foot { padding: calc(var(--u) * .6) calc(var(--u) * 1.2); border-top: 1px solid var(--line); color: var(--faint); font-size: calc(var(--u) * .74); }
.cat-AI { --c: var(--ai); } .cat-Funding { --c: var(--fund); } .cat-Deep { --c: var(--deep); } .cat-Startups { --c: var(--start); } .cat-Tech { --c: var(--tech); }

/* ── ticker ── */
#ticker { display: flex; align-items: stretch; background: #0b0c12; border-top: 1px solid var(--line); overflow: hidden; }
.tk-label { background: var(--brand); display: flex; align-items: center; padding: 0 calc(var(--u) * 1.2); font-weight: 800; letter-spacing: .14em; font-size: calc(var(--u) * .95); z-index: 2; box-shadow: calc(var(--u) * .6) 0 calc(var(--u) * 1) #0b0c12; }
.tk-track { flex: 1; overflow: hidden; display: flex; align-items: center; }
.tk-move { display: inline-flex; white-space: nowrap; will-change: transform; animation: tick linear infinite; font-size: calc(var(--u) * 1.15); font-weight: 500; }
.tk-move span.t { padding: 0 calc(var(--u) * 1.4); }
.tk-move b { color: var(--c, var(--brand)); font-weight: 700; margin-right: .6em; letter-spacing: .04em; text-transform: uppercase; font-size: .82em; }
.tk-move em { color: var(--faint); font-style: normal; margin-left: .6em; font-size: .85em; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ── cinema mode ── */
body.cinema main { grid-template-columns: 1fr 0; } body.cinema #rail { display: none; }

/* ── story cards (bulletin + breaking) ── */
#interstitial { position: absolute; inset: 0; z-index: 5; background: #05060a; }
.card { position: absolute; inset: 0; overflow: hidden; --c: var(--tech); animation: cardin .7s cubic-bezier(.2,.8,.2,1) both; container-type: size; }
@keyframes cardin { from { opacity: 0; transform: scale(1.03); } }
.card-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); animation: kenburns 24s ease-out both; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
.card-poster { position: absolute; inset: 0; background:
  radial-gradient(60% 80% at 85% 10%, color-mix(in srgb, var(--c) 55%, transparent), transparent 70%),
  radial-gradient(50% 70% at 10% 100%, #ff4d1c44, transparent 70%),
  repeating-linear-gradient(115deg, #ffffff07 0 2px, transparent 2px 46px), #0a0b12; }
.card-poster::after { content: attr(data-cat); position: absolute; right: -2cqw; top: 12cqh; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 34cqh; line-height: .9; letter-spacing: -.03em; text-transform: uppercase; color: transparent; -webkit-text-stroke: .25cqh color-mix(in srgb, var(--c) 55%, #ffffff22); opacity: .5; white-space: nowrap; }
.card-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #05060af2 0%, #05060ad9 42%, #05060a55 78%, #05060a22 100%), linear-gradient(0deg, #05060aee 0%, transparent 45%); }
.card-strip { position: absolute; top: 0; left: 0; right: 0; height: 9cqh; display: flex; align-items: center; gap: 2cqw; padding: 0 4cqw; font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: .18em; font-size: 2.6cqh; background: linear-gradient(90deg, var(--brand), #ff4d1c00 70%); }
.card-strip small { font-family: Inter, sans-serif; font-weight: 600; letter-spacing: .06em; opacity: .85; font-size: .8em; }
.card-strip .dots { margin-left: auto; display: flex; gap: .5em; }
.card-strip .dots i { width: 2.2cqw; height: .5cqh; background: #ffffff40; border-radius: 9px; } .card-strip .dots i.on { background: #fff; }
.card-body { position: absolute; left: 4cqw; bottom: 9cqh; width: 62cqw; }
.card-kicker { display: flex; align-items: center; gap: 1.2cqw; font-size: 2.3cqh; font-weight: 600; color: #d5d8e4; flex-wrap: wrap; }
.chip { background: var(--c); color: #fff; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: .28em .8em; border-radius: .3em; font-size: .9em; }
.multi { border: 1px solid #ffffff55; border-radius: 99px; padding: .15em .8em; font-size: .85em; }
.card h1 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 7cqh; line-height: 1.08; margin-top: 2.5cqh; letter-spacing: -.01em; text-wrap: balance; animation: rise .8s .15s cubic-bezier(.2,.8,.2,1) both; }
.card h1.m { font-size: 5.7cqh; } .card h1.l { font-size: 4.6cqh; }
.card p { font-size: 2.9cqh; line-height: 1.42; color: #c9cddb; margin-top: 2.5cqh; max-width: 56cqw; animation: rise .8s .3s cubic-bezier(.2,.8,.2,1) both; max-height: calc(1.42em * 3); overflow: hidden; }
@keyframes rise { from { opacity: 0; transform: translateY(3cqh); } }
.card-side { position: absolute; right: 4cqw; bottom: 9cqh; display: flex; flex-direction: column; align-items: flex-end; gap: 3cqh; animation: rise .8s .45s cubic-bezier(.2,.8,.2,1) both; }
.stat { background: #0b0c12d9; backdrop-filter: blur(8px); border: 1px solid #ffffff22; border-left: .6cqw solid var(--c); border-radius: 1cqh; padding: 2cqh 2.4cqw; text-align: right; }
.stat-v { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 10cqh; line-height: 1; color: #fff; }
.stat-l { color: var(--c); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: 1.9cqh; margin-top: .8cqh; filter: brightness(1.35); }
.qr { background: #fff; padding: 1cqh; border-radius: 1cqh; display: flex; flex-direction: column; align-items: center; gap: .5cqh; }
.qr img { width: 15cqh; height: 15cqh; image-rendering: pixelated; display: block; }
.qr span { color: #111; font-size: 1.5cqh; font-weight: 700; letter-spacing: .08em; }
.card-prog { position: absolute; left: 0; bottom: 0; height: .7cqh; background: var(--c); animation: prog linear both; }
@keyframes prog { from { width: 0; } to { width: 100%; } }

/* funding radar */
.radar { position: absolute; inset: 0; padding: 13cqh 4cqw 5cqh; container-type: size; }
.radar h2 { font-family: 'Space Grotesk', sans-serif; font-size: 5.4cqh; font-weight: 700; }
.radar h2 + div { color: var(--dim); font-size: 2.3cqh; margin: .6cqh 0 3cqh; }
.fr { display: grid; grid-template-columns: 24cqw 1fr; align-items: center; gap: 2cqw; margin-bottom: 2cqh; animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
.fr-name { font-weight: 700; font-size: 3cqh; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-name small { display: block; color: var(--faint); font-weight: 500; font-size: .55em; margin-top: .2em; }
.fr-bar { height: 7.4cqh; background: linear-gradient(90deg, #0e9d63, var(--fund)); border-radius: 0 1cqh 1cqh 0; display: flex; align-items: center; justify-content: flex-end; padding-right: 1.2cqw; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 3.4cqh; min-width: 11cqw; transform-origin: left; animation: grow 1.1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes grow { from { transform: scaleX(0); } }

/* ── breaking takeover ── */
#breaking { position: fixed; inset: 0; z-index: 50; background: #05060a; animation: flash .5s ease both; }
#breaking.out { animation: fadeout .5s ease both; }
@keyframes flash { 0% { opacity: 0; filter: brightness(3); } 100% { opacity: 1; filter: none; } }
@keyframes fadeout { to { opacity: 0; } }
#breaking .card { --c: var(--red); }
#breaking .card-strip { background: var(--red); height: 11cqh; font-size: 4.4cqh; letter-spacing: .22em; overflow: hidden; }
#breaking .card-strip::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, #ffffff55 50%, transparent 70%); animation: sweep 2.4s ease-in-out infinite; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
#breaking .card-strip small { font-size: .5em; }
#breaking .chip { background: #fff; color: var(--red); }

/* ── splash ── */
#splash { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: radial-gradient(60% 60% at 50% 40%, #1a1420, #07080c 70%); transition: opacity .6s; }
#splash.gone { opacity: 0; pointer-events: none; }
.splash-box { text-align: center; }
.brand.big { font-size: calc(var(--u) * 5); justify-content: center; }
.brand.big .logo { width: calc(var(--u) * 7); height: calc(var(--u) * 7); }
.tag { color: var(--dim); font-size: calc(var(--u) * 1.6); margin: 1.2em 0 2em; }
#go { font: inherit; font-weight: 800; font-size: calc(var(--u) * 1.7); color: #fff; background: var(--brand); border: 0; border-radius: 99px; padding: .8em 2em; cursor: pointer; box-shadow: 0 0 3em #ff4d1c66; }
#go, #go-fs { font: inherit; font-weight: 800; font-size: calc(var(--u) * 1.7); color: #fff; border-radius: 99px; padding: .8em 2em; cursor: pointer; }
#go-fs:hover { background: rgba(255,255,255,.16); }
#go:hover { filter: brightness(1.1); }
.auto { color: var(--faint); margin-top: 1.4em; font-size: calc(var(--u) * 1.1); }
.keys { color: var(--faint); margin-top: 3em; font-size: calc(var(--u) * .95); }

/* ── stings: newsroom-style wipes ── */
#interstitial, #breaking { container-type: size; }
#breaking.bare { background: transparent; animation: none; }
.sting { position: absolute; inset: 0; z-index: 30; overflow: hidden; pointer-events: none; --T: 2400ms; --s1: #ffd400; --s2: #ffffff; --s3: #6d0010; --s4: #d90d1e; --ink: #ffd400; }
.sting-hl { --s1: #ffd400; --s2: #ffffff; --s3: #7c3cff; --s4: #ff3d2e; }
.sting-fund { --s1: #c8ff3d; --s2: #ffffff; --s3: #05402a; --s4: #0e9d63; --ink: #c8ff3d; }
.sting .w { position: absolute; top: -25%; bottom: -25%; left: -35%; width: 170%; transform: skewX(-18deg) translateX(-125%); animation: st-wipe var(--T) cubic-bezier(.76,0,.18,1) both; }
.sting .w1 { background: var(--s1); } .sting .w2 { background: var(--s2); animation-delay: calc(var(--T) * .03); }
.sting .w3 { background: var(--s3); animation-delay: calc(var(--T) * .06); }
.sting .w4 { background: linear-gradient(100deg, var(--s3), var(--s4) 35%, var(--s4) 70%, var(--s3)); animation-delay: calc(var(--T) * .09); }
@keyframes st-wipe { 0% { transform: skewX(-18deg) translateX(-125%); } 20%, 78% { transform: skewX(-18deg) translateX(0); } 100% { transform: skewX(-18deg) translateX(125%); } }
.sting.quick .w { animation-name: st-wipe-quick; }
@keyframes st-wipe-quick { 0% { transform: skewX(-18deg) translateX(-125%); } 42%, 54% { transform: skewX(-18deg) translateX(0); } 100% { transform: skewX(-18deg) translateX(125%); } }
.sting-flash { position: absolute; inset: 0; background: #fff; opacity: 0; animation: st-flash var(--T) linear both; }
@keyframes st-flash { 0%, 27% { opacity: 0; } 29% { opacity: .9; } 33% { opacity: 0; } 37% { opacity: .55; } 41% { opacity: 0; } 46% { opacity: .3; } 50%, 100% { opacity: 0; } }
.sting-word { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5cqh; font-family: 'Space Grotesk', sans-serif; font-weight: 700; line-height: .92; letter-spacing: -.01em; animation: st-hold var(--T) linear both; }
.sting-word b { font-size: 21cqh; color: #fff; text-shadow: 0 .8cqh 0 #0006; animation: st-slam var(--T) cubic-bezier(.2,.9,.2,1) both; }
.sting-word em { font-style: normal; font-size: 17cqh; color: #14060a; background: var(--ink); padding: .5cqh 3.5cqw 1cqh; transform-origin: center; animation: st-slam2 var(--T) cubic-bezier(.2,.9,.2,1) both; box-shadow: 0 1.2cqh 0 #0005; }
@keyframes st-hold { 0%, 76% { opacity: 1; transform: none; } 84%, 100% { opacity: 0; transform: translateX(22cqw) skewX(-18deg); } }
@keyframes st-slam { 0%, 22% { opacity: 0; transform: scale(3.4); filter: blur(1.5cqh); } 30% { opacity: 1; transform: scale(.96); filter: none; } 33% { transform: scale(1.03) translate(.5cqw, -.4cqh); } 36% { transform: scale(1) translate(-.4cqw, .3cqh); } 39%, 100% { opacity: 1; transform: none; } }
@keyframes st-slam2 { 0%, 31% { opacity: 0; transform: scaleX(0) skewX(-18deg); } 39% { opacity: 1; transform: scaleX(1.06) skewX(-18deg); } 43%, 100% { opacity: 1; transform: skewX(-8deg); } }
.sting-tape { position: absolute; left: -10%; width: 120%; height: 7.5cqh; background: var(--ink); color: #14060a; display: flex; align-items: center; overflow: hidden; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 3.6cqh; letter-spacing: .14em; white-space: nowrap; box-shadow: 0 .8cqh 2cqh #0007; animation: st-tape var(--T) cubic-bezier(.2,.8,.2,1) both; }
.sting-tape.t1 { top: 13%; transform: rotate(-4deg); } .sting-tape.t2 { bottom: 13%; transform: rotate(-4deg); }
.sting-tape span { display: inline-block; animation: st-run 9s linear infinite; } .sting-tape.t2 span { animation-direction: reverse; }
@keyframes st-run { from { transform: translateX(-30%); } to { transform: translateX(-60%); } }
@keyframes st-tape { 0%, 24% { clip-path: inset(0 100% 0 0); } 38%, 76% { clip-path: inset(0); opacity: 1; } 84%, 100% { clip-path: inset(0 0 0 100%); opacity: 0; } }

/* ── breaking card: louder ── */
#breaking .card { animation: none; }
#breaking .card-strip { top: 0; }
#breaking .card-strip small { margin-left: auto; }
.brk-tape { position: absolute; top: 11cqh; left: 0; right: 0; height: 5.4cqh; background: #ffd400; color: #14060a; overflow: hidden; display: flex; align-items: center; white-space: nowrap; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 2.7cqh; letter-spacing: .16em; z-index: 3; box-shadow: 0 .6cqh 2cqh #0008; }
.brk-tape span { display: inline-block; padding-left: 2cqw; animation: st-run 16s linear infinite; }
.brk-frame { position: absolute; inset: 0; pointer-events: none; z-index: 4; border: .7cqh solid #e5152b; animation: brk-pulse 1.1s ease-in-out infinite; }
@keyframes brk-pulse { 0%, 100% { box-shadow: inset 0 0 6cqh #e5152b55; border-color: #e5152b; } 50% { box-shadow: inset 0 0 14cqh #e5152bbb; border-color: #ff5a6a; } }
.brk-stamp { position: absolute; right: 5cqw; top: 22cqh; z-index: 5; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 5cqh; letter-spacing: .12em; color: #ffd400; border: .6cqh solid #ffd400; padding: .6cqh 2.4cqw; transform: rotate(7deg); animation: brk-stamp .5s .5s cubic-bezier(.2,1.6,.4,1) both, brk-blink 1s 1.2s steps(2, jump-none) infinite; }
@keyframes brk-stamp { from { opacity: 0; transform: rotate(7deg) scale(3); } to { opacity: 1; transform: rotate(7deg) scale(1); } }
@keyframes brk-blink { 0% { opacity: 1; } 100% { opacity: .35; } }
#breaking .chip { animation: brk-blink .8s steps(2, jump-none) infinite; }
#breaking .card h1 { border-left: 1cqw solid #ffd400; padding-left: 2.2cqw; animation: brk-reveal .7s .15s cubic-bezier(.2,.8,.2,1) both; }
@keyframes brk-reveal { from { clip-path: inset(0 100% 0 0); transform: translateX(-3cqw); } to { clip-path: inset(0 -5% 0 0); transform: none; } }
#breaking .stat { animation: brk-slam .55s .7s cubic-bezier(.2,1.5,.4,1) both; border-left-color: #ffd400; }
@keyframes brk-slam { from { opacity: 0; transform: scale(2.6); } to { opacity: 1; transform: none; } }
#breaking .card-shade { background: linear-gradient(90deg, #12020af2 0%, #12020ad9 45%, #12020a66 80%, #12020a33 100%), linear-gradient(0deg, #12020aee 0%, transparent 45%); }

/* ── funding radar: sweep, ranks, slamming bars ── */
.radar-card .radar { padding-right: 30cqw; }
.sweep { position: absolute; right: 3.5cqw; top: 15cqh; width: 40cqh; height: 40cqh; border-radius: 50%; border: .3cqh solid #18c37d88; overflow: hidden;
  background: repeating-radial-gradient(circle, transparent 0 4.7cqh, #18c37d33 4.7cqh 5cqh), linear-gradient(#18c37d33, #18c37d33) center/100% .2cqh no-repeat, linear-gradient(#18c37d33, #18c37d33) center/.2cqh 100% no-repeat, #04140e; animation: rise .8s .5s both; }
.sweep i { position: absolute; inset: 0; background: conic-gradient(from 0deg, #18c37d00 0 78%, #18c37dcc 100%); animation: spin 2.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sweep b { position: absolute; width: 1.6cqh; height: 1.6cqh; border-radius: 50%; background: #c8ff3d; box-shadow: 0 0 2cqh #c8ff3d; animation: blip 2.6s ease-out infinite; }
@keyframes blip { 0%, 100% { opacity: 0; transform: scale(.3); } 10% { opacity: 1; transform: scale(1.3); } 60% { opacity: .2; transform: scale(1); } }
.radar-top { position: absolute; right: 3.5cqw; top: 59cqh; width: 40cqh; text-align: center; animation: brk-slam .6s 1.2s cubic-bezier(.2,1.5,.4,1) both; }
.radar-top span { display: block; color: #c8ff3d; font-weight: 800; letter-spacing: .2em; font-size: 1.9cqh; }
.radar-top strong { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 10cqh; line-height: 1; margin: .6cqh 0; }
.radar-top em { font-style: normal; font-weight: 700; font-size: 2.8cqh; color: #d5d8e4; }
.radar-card .fr { animation: fr-in .5s cubic-bezier(.2,1.2,.3,1) both; }
@keyframes fr-in { from { opacity: 0; transform: translateX(-8cqw); } }
.radar-card .fr-name u { text-decoration: none; display: inline-grid; place-items: center; width: 3.6cqh; height: 3.6cqh; margin-right: 1cqw; border-radius: .6cqh; background: #c8ff3d; color: #05402a; font-family: 'Space Grotesk', sans-serif; font-size: .8em; vertical-align: middle; }
.radar-card .fr-bar { position: relative; overflow: hidden; animation: fr-grow .7s cubic-bezier(.2,1.25,.3,1) both; }
@keyframes fr-grow { from { transform: scaleX(0); } }
.radar-card .fr-bar::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, #ffffffaa 50%, transparent 70%); transform: translateX(-100%); animation: sweep 1s ease-out both; animation-delay: inherit; }

/* ── news-only mode + ident ── */
.card.ident .ident-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3cqh; animation: rise .8s both; }
.card.ident .brand { font-size: 9cqh; } .card.ident .logo { width: 13cqh; height: 13cqh; }
.card.ident p { color: var(--dim); font-size: 3.2cqh; letter-spacing: .3em; text-transform: uppercase; font-weight: 600; }
.card.ident time { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 6cqh; }

/* ── On X ── */
.cat-X { --c: #1d9bf0; }
.xlogo { width: 1em; height: 1em; fill: currentColor; vertical-align: -.12em; }
.sting-x { --s1: #ffffff; --s2: #1d9bf0; --s3: #000000; --s4: #0f1419; --ink: #ffffff; }
.sting-x .sting-word em { color: #000; }
.tw-card { --c: #1d9bf0; }
.tw-card .card-poster { background: radial-gradient(60% 80% at 85% 20%, #1d9bf044, transparent 70%), repeating-linear-gradient(115deg, #ffffff06 0 2px, transparent 2px 46px), #05070b; }
.tw-card .card-shade { background: linear-gradient(90deg, #05070bf5 0%, #05070bcc 50%, #05070b33 100%); }
.tw-card .card-strip { background: linear-gradient(90deg, #1d9bf0, #1d9bf000 70%); }
.tw-body { position: absolute; left: 4cqw; top: 15cqh; bottom: 8cqh; width: 52cqw; display: flex; flex-direction: column; justify-content: center; }
.chip-x { background: #fff; color: #000; display: inline-flex; align-items: center; gap: .4em; }
.tw-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 7.4cqh; line-height: 1.04; margin-top: 2.2cqh; animation: rise .7s .1s cubic-bezier(.2,.8,.2,1) both; }
.tw-role { color: #8fcbf7; font-weight: 600; font-size: 2.9cqh; margin-top: 1cqh; animation: rise .7s .2s both; }
.tw-quote { position: relative; margin-top: 3cqh; padding-left: 3cqw; font-size: 3.5cqh; line-height: 1.38; color: #f3f4f8; font-weight: 500;
  max-height: calc(1.38em * 6); overflow: hidden; animation: rise .8s .3s cubic-bezier(.2,.8,.2,1) both; white-space: pre-line; }
.tw-quote.more { mask-image: linear-gradient(#000 82%, #0000); -webkit-mask-image: linear-gradient(#000 82%, #0000); }
.tw-more { display: block; margin-top: 1.2cqh; color: #1d9bf0; font-size: .7em; font-weight: 700; letter-spacing: .04em; }
.tw-quote::before { content: '“'; position: absolute; left: 0; top: -2.2cqh; font-family: Georgia, serif; font-size: 11cqh; color: #1d9bf0; line-height: 1; }
.tw-ctx { margin-top: 3cqh; border-left: .5cqw solid #1d9bf0; padding: 1cqh 1.4cqw; background: #0b141dcc; font-size: 2.3cqh; color: #c9cddb; line-height: 1.35; animation: rise .8s .45s both; }
.tw-ctx p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tw-ctx span { display: block; color: #1d9bf0; font-weight: 800; letter-spacing: .16em; font-size: .78em; margin-bottom: .4cqh; }
.tw-ctx em { font-style: normal; color: var(--faint); margin-left: .6em; }
.tw-side { position: absolute; right: 4cqw; top: 12cqh; bottom: 5cqh; width: 35cqw; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2cqh; }
.tw-shot { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1cqh; min-height: 0; animation: shot-in .9s .2s cubic-bezier(.2,1.1,.3,1) both; }
@keyframes shot-in { from { opacity: 0; transform: translateY(4cqh) rotate(-2deg) scale(.92); } to { opacity: 1; transform: rotate(-1deg); } }
.tw-frame { position: relative; width: 33cqw; overflow: hidden; border-radius: 1.4cqh; border: .25cqh solid #2f3336; box-shadow: 0 3cqh 8cqh #000c, 0 0 0 .6cqh #1d9bf022; background: #15202b; }
.tw-frame img { display: block; width: 100%; height: auto; }
.tw-scroll { max-height: 70cqh; overflow: hidden; }
.tw-frame::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 9cqh; background: linear-gradient(#15202b00, #15202b); opacity: 0; transition: opacity .6s; pointer-events: none; }
.tw-frame.more::after { opacity: 1; }
.tw-shot figcaption { color: #8b98a5; font-size: 1.6cqh; letter-spacing: .04em; }
.tw-fallback > div { width: 34cqw; background: #000; border: .25cqh solid #2f3336; border-radius: 1.4cqh; padding: 2.4cqh 2cqw; font-size: 2.4cqh; color: #e7e9ea; box-shadow: 0 3cqh 8cqh #000c; }
.tw-fallback b { font-weight: 700; } .tw-fallback span { color: #71767b; }
.tw-fallback p { margin: 1.4cqh 0; line-height: 1.4; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; overflow: hidden; }
.tw-fallback i { color: #71767b; font-style: normal; font-size: .8em; }
.tw-foot { margin-top: 3cqh; display: flex; align-items: flex-end; gap: 2cqw; animation: rise .8s .45s both; }
.tw-foot .tw-ctx { margin-top: 0; flex: 1; }
.tw-foot .qr img { width: 11cqh; height: 11cqh; }
.tw-foot .qr span { font-size: 1.3cqh; }
#breaking .tw-card .tw-body { top: 20cqh; }
#breaking .tw-card .tw-side { top: 18cqh; }
#breaking .tw-card .tw-scroll { max-height: 64cqh; }
#breaking .tw-card .tw-name { border-left: 1cqw solid #ffd400; padding-left: 2.2cqw; }

/* ── The Pulse, Launches, house news ── */
.sting-pulse { --s1: #ff6600; --s2: #ffffff; --s3: #2a0d00; --s4: #ff4500; --ink: #ffb380; }
.sting-launch { --s1: #ff6154; --s2: #ffffff; --s3: #2b0b4a; --s4: #da552f; --ink: #ffd166; }
.sting-house { --s1: #ff8a1f; --s2: #ffffff; --s3: #3a0d5c; --s4: #ff2d6f; --ink: #ffd166; }
.cat-Launch { --c: #da552f; }
.pulse-card .card-strip { background: linear-gradient(90deg, #ff6600, #ff660000 70%); }
.pulse { position: absolute; inset: 0; padding: 13cqh 4cqw 6cqh; }
.pulse h2 { font-family: 'Space Grotesk', sans-serif; font-size: 5.4cqh; font-weight: 700; }
.pulse-sub { color: var(--dim); font-size: 2.3cqh; margin: .6cqh 0 2.6cqh; }
.pr { display: grid; grid-template-columns: 6cqh 1fr 16cqw; align-items: center; gap: 1.6cqw; padding: 1.3cqh 0; border-bottom: 1px solid #ffffff12; animation: fr-in .5s cubic-bezier(.2,1.2,.3,1) both; }
.pf { text-decoration: none; display: grid; place-items: center; width: 5.4cqh; height: 5.4cqh; border-radius: .8cqh; font: 700 2.6cqh 'Space Grotesk', sans-serif; color: #fff; }
.pf-hn { background: #ff6600; } .pf-reddit { background: #ff4500; border-radius: 50%; font-size: 2.2cqh; }
.pt { position: relative; min-width: 0; padding-bottom: 1.1cqh; }
.pt b { display: block; font-size: 2.9cqh; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt small { color: var(--faint); font-size: 1.8cqh; }
.pt i { position: absolute; left: 0; bottom: 0; height: .55cqh; border-radius: 9px; background: linear-gradient(90deg, #ff6600, #ffb380); transform-origin: left; animation: fr-grow .9s cubic-bezier(.2,1.2,.3,1) both; }
.ps { text-align: right; } .ps strong { display: block; font: 700 3.6cqh 'Space Grotesk', sans-serif; color: #ffb380; } .ps span { color: var(--dim); font-size: 1.9cqh; }

.ri-top .rg { font-style: normal; color: var(--dim); border: 1px solid #ffffff2a; border-radius: 99px; padding: 0 .55em; letter-spacing: .04em; }

/* ── Trending board, outages ── */
.sting-trend { --s1: #c8ff3d; --s2: #ffffff; --s3: #10131c; --s4: #6e40c9; --ink: #c8ff3d; }
.trend-card .card-strip { background: linear-gradient(90deg, #6e40c9, #6e40c900 70%); }
.pf-gh { background: #24292f; border: 1px solid #ffffff40; } .pf-hf { background: #ffd21e; color: #000; font-size: 2.1cqh; } .pf-paper { background: #2563eb; }
.trend-card .pt { padding-bottom: 0; } .trend-card .ps strong { color: #c8ff3d; }
.cat-Outage { --c: #ff3b3b; }
.pt small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bs-card { --c: #1185fe; }
.bs-card .card-strip { background: linear-gradient(90deg, #1185fe, #1185fe00 70%); }
.bs-card .chip-x { color: #1185fe; }
.bs-card .tw-quote::before, .bs-card .tw-ctx span { color: #1185fe; }

.badge.live-badge { background: #e5152b; animation: pulse 1.4s infinite; }

/* ── weather / AQI ── */
#weather { display: flex; align-items: center; gap: calc(var(--u) * .8); font-size: calc(var(--u) * .95); font-weight: 600; white-space: nowrap; }
#weather .wx { display: flex; align-items: center; gap: .4em; }
#weather .wx-ic { font-size: 1.35em; line-height: 1; }
#weather .wx-t { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.35em; }
#weather .wx-d { color: var(--dim); font-weight: 500; }
#weather .aqi { display: flex; align-items: center; gap: .45em; padding: .22em .6em; border-radius: .4em; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
#weather .aqi b { font-family: 'Space Grotesk', sans-serif; font-size: 1.1em; }
#weather .aqi i { width: .6em; height: .6em; border-radius: 50%; display: inline-block; }
#weather .aqi small { color: var(--dim); font-size: .85em; font-weight: 500; }
.aqi-good i { background: #2bd46b; } .aqi-moderate i { background: #f5d02a; } .aqi-usg i { background: #ff8a1f; }
.aqi-unhealthy i { background: #ff3b3b; } .aqi-very i { background: #a14bff; } .aqi-hazardous i { background: #8b1a2b; }

/* ── on-screen controls ── */
#controls, #weather, #clock { flex-shrink: 0; }
#stats { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#controls { display: flex; gap: calc(var(--u) * .4); transition: opacity .4s; position: relative; z-index: 60; } /* above breaking takeovers, so Skip can dismiss one */
body.takeover .ctl { background: rgba(0,0,0,.55); border-color: rgba(255,255,255,.35); }
.ctl { display: flex; align-items: center; gap: .4em; height: calc(var(--u) * 2.3); min-width: calc(var(--u) * 2.3); justify-content: center; padding: 0 .7em; border-radius: .45em; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: #fff; font: 600 calc(var(--u) * .9) Inter, sans-serif; cursor: pointer; }
.ctl:hover { background: rgba(255,255,255,.14); }
.ctl svg { width: 1.3em; height: 1.3em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#btn-skip svg { fill: currentColor; stroke: none; }
#btn-fs .fs-out, body.fs #btn-fs .fs-in { display: none; } body.fs #btn-fs .fs-out { display: inline; }
body.idle #controls { opacity: 0; }
#go-fs { margin-left: .6em; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); }

/* ── brand mark animation ── */
.mark .sheen { transform-box: view-box; }
/* spin: the aperture turns a third at a time, like a shutter cycling (rotation is SMIL in the SVG, see markSVG) */
.mark.spin .sheen, .mark.intro .sheen { animation: mk-sheen 2.7s ease-in-out infinite; }
.mark.spin .play, .mark.intro .play { animation: mk-glow 2.7s infinite; }
@keyframes mk-glow { 0%, 12%, 33%, 45%, 66%, 78%, 100% { opacity: .22 } 22%, 55%, 88% { opacity: .5 } }
@keyframes mk-sheen { 0%, 60% { transform: translateX(0) skewX(-20deg) } 100% { transform: translateX(210px) skewX(-20deg) } }
/* intro: the hexagon lands, the cuts slice through it, the play button lights, then it keeps cycling */
.mark.intro { animation: mk-land 1s cubic-bezier(.2,1.3,.4,1) both; }
.mark.intro .cuts path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: mk-cut .45s cubic-bezier(.6,0,.2,1) forwards; }
.mark.intro .cuts path:nth-child(1) { animation-delay: .55s } .mark.intro .cuts path:nth-child(2) { animation-delay: .75s } .mark.intro .cuts path:nth-child(3) { animation-delay: .95s }
.mark.intro .play, .mark.intro .sheen { animation-delay: 1.6s; }
@keyframes mk-land { from { transform: scale(.35) rotate(-90deg); opacity: 0; filter: blur(6px) } to { transform: none; opacity: 1; filter: none } }
@keyframes mk-cut { to { stroke-dashoffset: 0 } }
.splash-mark { width: calc(var(--u) * 13); height: calc(var(--u) * 13); margin: 0 auto calc(var(--u) * 2.2); filter: drop-shadow(0 0 calc(var(--u) * 3) #ff2d6f55); }
#splash .brand.big { animation: mk-rise .8s 1.2s ease both; }
#splash .tag, #splash #go, #splash #go-fs, #splash .auto, #splash .keys { animation: mk-rise .8s 1.5s ease both; }
@keyframes mk-rise { from { opacity: 0; transform: translateY(1em) } to { opacity: 1; transform: none } }

/* loading screen inside the player */
#loading { position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; justify-items: center; gap: calc(var(--u) * 1.6); background: radial-gradient(50% 50% at 50% 45%, #1a1420, #000 75%); opacity: 0; pointer-events: none; transition: opacity .5s; }
#loading.on { opacity: 1; }
#loading [data-mark] { width: calc(var(--u) * 8); height: calc(var(--u) * 8); filter: drop-shadow(0 0 calc(var(--u) * 2) #ff2d6f55); }
#loading p { margin: 0; color: var(--dim); font: 600 calc(var(--u) * 1.1) 'Space Grotesk', sans-serif; letter-spacing: .3em; text-transform: uppercase; }
#loading p i { font-style: normal; animation: mk-dot 1.2s infinite; } #loading p i:nth-child(2) { animation-delay: .2s } #loading p i:nth-child(3) { animation-delay: .4s }
@keyframes mk-dot { 0%, 100% { opacity: .2 } 50% { opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .mark *, .mark { animation-duration: .01s !important; animation-iteration-count: 1 !important; } }
