/* ============ USA WEATHER NETWORK — on-air graphics (1920×1080) ============ */
:root {
  --red: #e4152b; --red-2: #a40c1d; --red-glow: rgba(228, 21, 43, .55);
  --navy-0: #02050d; --navy-1: #061331; --navy-2: #0b1d45; --navy-3: #13306b;
  --white: #f5f8fc; --muted: #97a9c6; --dim: #5d7194;
  --gold: #ffc24a; --ice: #7fd3ff;
  --glass: linear-gradient(180deg, rgba(14, 30, 66, .86), rgba(5, 13, 32, .9));
  --hair: rgba(160, 196, 255, .16);
  --accent: #ffc24a; --accent-2: #ff8a1f; --accent-glow: rgba(255, 194, 74, .45);
  --f-display: 'Oswald', 'Barlow Condensed', Impact, sans-serif;
  --f-cond: 'Barlow Condensed', 'Oswald', sans-serif;
  --f-text: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}
#stage[data-theme="clear"]   { --accent: #ffc24a; --accent-2: #ff8a1f; --accent-glow: rgba(255,194,74,.45); }
#stage[data-theme="night"]   { --accent: #a9b8ff; --accent-2: #6a7dff; --accent-glow: rgba(140,160,255,.45); }
#stage[data-theme="partly"]  { --accent: #8fd0ff; --accent-2: #ffc24a; --accent-glow: rgba(143,208,255,.4); }
#stage[data-theme="cloudy"]  { --accent: #b8c6da; --accent-2: #7f93b3; --accent-glow: rgba(184,198,218,.35); }
#stage[data-theme="fog"]     { --accent: #d3dce6; --accent-2: #93a3b8; --accent-glow: rgba(211,220,230,.35); }
#stage[data-theme="drizzle"],
#stage[data-theme="rain"]    { --accent: #49b4ff; --accent-2: #2a6dff; --accent-glow: rgba(73,180,255,.45); }
#stage[data-theme="storm"]   { --accent: #c48bff; --accent-2: #ffd23f; --accent-glow: rgba(196,139,255,.5); }
#stage[data-theme="snow"]    { --accent: #e9f6ff; --accent-2: #8fd8ff; --accent-glow: rgba(200,235,255,.45); }
#stage[data-theme="sleet"]   { --accent: #a3e2f5; --accent-2: #5fb4e6; --accent-glow: rgba(163,226,245,.4); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; background: #000; overflow: hidden; }
body { display: grid; place-items: center; }
#stage {
  position: relative; width: 1920px; height: 1080px; overflow: hidden; color: var(--white);
  font-family: var(--f-text); background: radial-gradient(ellipse at 35% 45%, #0a1630 0%, #02050d 70%);
  transform-origin: 50% 50%; flex: none;
  -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision;
}
#globe { position: absolute; inset: 0; width: 1920px; height: 1080px; display: block; }
#vignette { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 80% at 36% 48%, transparent 55%, rgba(0,3,12,.55) 100%),
    linear-gradient(90deg, rgba(1,4,12,.0) 62%, rgba(1,4,12,.65) 71%, rgba(1,4,12,.9) 100%),
    linear-gradient(0deg, rgba(1,4,12,.92) 0%, rgba(1,4,12,0) 22%),
    linear-gradient(180deg, rgba(1,4,12,.7) 0%, rgba(1,4,12,0) 16%); }

/* ---------- 3D labels ---------- */
#labels { position: absolute; inset: 0; pointer-events: none; }
.lbl { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); white-space: nowrap; will-change: transform, opacity;
  transition: opacity .5s; display: flex; align-items: center; gap: 0; }
.lbl .t { box-shadow: 0 4px 12px rgba(0,0,0,.45); font: 600 22px/1 var(--f-display); padding: 5px 8px 5px 9px; background: var(--tc, #49b4ff); color: #06101f; border-radius: 3px 0 0 3px; }
.lbl .n { font: 700 17px/1 var(--f-cond); letter-spacing: .06em; padding: 7px 10px 7px 8px; background: rgba(4, 11, 28, .86);
  border: 1px solid rgba(255,255,255,.12); border-left: 0; border-radius: 0 3px 3px 0; text-transform: uppercase; color: #dce6f5; }
.lbl::after { content: ''; position: absolute; left: 50%; bottom: -9px; width: 1px; height: 9px; background: rgba(255,255,255,.5); }
.lbl.active { z-index: 5; }
.lbl.active .t { font-size: 34px; padding: 8px 12px; box-shadow: 0 0 30px var(--tc); }
.lbl.active .n { font-size: 26px; padding: 11px 14px 11px 12px; color: #fff; background: rgba(4, 11, 28, .94); border-color: rgba(255,255,255,.25); }
.lbl.active::after { height: 22px; bottom: -22px; background: linear-gradient(#fff, transparent); }
.lbl.mini .n { display: none; }
.lbl.mini .t { border-radius: 3px; font-size: 18px; padding: 4px 6px; }

/* ---------- network bug ---------- */
#bug { position: absolute; left: 48px; top: 40px; display: flex; align-items: stretch; gap: 0; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.bug-logo { position: relative; width: 112px; background: linear-gradient(160deg, #ff2a40, var(--red) 45%, var(--red-2)); border-radius: 6px 0 0 6px; overflow: hidden; display: flex; flex-direction: column; }
.bug-logo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 45%, transparent 60%); transform: translateX(-120%); animation: sheen 7s var(--ease-io) infinite 2s; }
.bug-mark { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; font: 700 34px/1 var(--f-display); letter-spacing: .04em; padding-top: 6px; }
.bug-star { font-size: 16px; line-height: 1; margin-bottom: 2px; color: #fff; text-shadow: 0 0 10px #fff; }
.bug-stripes { display: grid; grid-template-rows: repeat(5, 3px); gap: 2px; padding: 0 0 7px; }
.bug-stripes i { background: rgba(255,255,255,.9); }
.bug-stripes i:nth-child(even) { background: rgba(255,255,255,.18); }
.bug-text { background: var(--glass); border: 1px solid var(--hair); border-left: 0; border-radius: 0 6px 6px 0; padding: 14px 26px 13px 20px; }
#bugName { font: 600 30px/1 var(--f-display); letter-spacing: .08em; }
.bug-sub { display: flex; align-items: center; gap: 12px; margin-top: 9px; font: 600 16px/1 var(--f-cond); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 7px; background: var(--red); color: #fff; padding: 4px 9px 4px 8px; border-radius: 3px; letter-spacing: .14em; font-weight: 800; }
.live b { width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
@keyframes sheen { 0%, 70% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

/* ---------- clocks ---------- */
#clocks { position: absolute; right: 600px; top: 40px; display: flex; gap: 2px; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.clk { background: var(--glass); border: 1px solid var(--hair); padding: 12px 18px 11px; min-width: 112px; text-align: center; }
.clk:first-child { border-radius: 6px 0 0 6px; } .clk:last-child { border-radius: 0 6px 6px 0; }
.clk span { display: block; font: 700 14px/1 var(--f-cond); letter-spacing: .22em; color: var(--muted); }
.clk b { display: block; font: 500 27px/1 var(--f-display); margin-top: 7px; letter-spacing: .02em; }
.clk b small { font-size: 15px; color: var(--muted); margin-left: 4px; letter-spacing: .08em; }

/* ---------- route ---------- */
#route { position: absolute; left: 48px; bottom: 214px; width: 430px; background: var(--glass); border: 1px solid var(--hair); border-radius: 6px; padding: 14px 18px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.7); transition: opacity .6s, transform .6s var(--ease); }
.route-label { font: 700 15px/1 var(--f-cond); letter-spacing: .3em; color: var(--accent); }
.route-row { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; font-family: var(--f-display); }
#routeIdx { font-size: 46px; font-weight: 600; line-height: .9; }
.route-of { font: 600 16px var(--f-cond); color: var(--muted); letter-spacing: .2em; }
#routeTotal { font-size: 26px; color: var(--muted); }
.route-next { margin-left: auto; font: 600 16px var(--f-cond); letter-spacing: .2em; color: var(--muted); }
.route-next b { color: var(--white); font: 500 22px var(--f-display); letter-spacing: .06em; margin-left: 6px; }
.route-bar { height: 4px; margin-top: 12px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; }
.route-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--accent)); box-shadow: 0 0 12px var(--accent-glow); transition: width 1.2s var(--ease); }

/* ---------- right panel ---------- */
#panel { position: absolute; left: 1352px; top: 40px; width: 528px; height: 844px; display: flex; flex-direction: column;
  box-shadow: 0 20px 50px rgba(0,0,0,.65); transition: transform 1s var(--ease-io), opacity .8s; }
#panel.out { transform: translateX(620px); opacity: 0; }
#photoWrap { position: relative; flex: none; height: 322px; border-radius: 8px 8px 0 0; overflow: hidden; background: #0b1530; border: 1px solid var(--hair); border-bottom: 0; }
.photo-layer { position: absolute; inset: -4%; z-index: 0; backface-visibility: hidden; transform: translateZ(0); background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease, filter 1.4s ease;
  will-change: transform, opacity; }
.photo-layer.on { opacity: 1; animation: settle 1.6s cubic-bezier(.2,.8,.2,1) both; }
.photo-layer.empty { background-image: radial-gradient(ellipse at 50% 110%, #1f3f86, #081633 70%) !important; }
/* short settle-in instead of a slow Ken Burns zoom: slow sub-pixel zooms visibly shimmer on photos */
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
#fx { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
.photo-shade { position: absolute; inset: 0; z-index: 4; background:
  linear-gradient(180deg, rgba(3,8,20,.55) 0%, rgba(3,8,20,0) 26%, rgba(3,8,20,0) 46%, rgba(3,8,20,.88) 88%, rgba(3,8,20,.96) 100%); }
#localTime { position: absolute; z-index: 5; left: 18px; top: 16px; display: flex; align-items: center; gap: 8px; background: rgba(3,9,22,.6); border: 1px solid rgba(255,255,255,.15);
  border-radius: 4px; padding: 6px 10px; }
#localTime span { font: 700 13px var(--f-cond); letter-spacing: .22em; color: var(--muted); }
#localTime b { font: 500 20px var(--f-display); }
#condChip { position: absolute; z-index: 5; right: 16px; top: 16px; font: 700 14px var(--f-cond); letter-spacing: .2em; padding: 7px 11px; border-radius: 4px; color: #06101f;
  background: var(--accent); box-shadow: 0 0 24px var(--accent-glow); text-transform: uppercase; }
.photo-title { position: absolute; z-index: 5; left: 22px; right: 22px; bottom: 16px; }
#cityName { font: 600 66px/0.95 var(--f-display); text-transform: uppercase; letter-spacing: .01em; text-shadow: 0 6px 30px rgba(0,0,0,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.city-meta { margin-top: 8px; display: flex; gap: 10px; align-items: center; font: 700 19px var(--f-cond); letter-spacing: .2em; text-transform: uppercase; color: #cfd9ea; }
.city-meta .dot { color: var(--accent); }
#photoCredit { position: absolute; z-index: 5; right: 8px; bottom: 4px; font: 400 10px var(--f-text); color: rgba(255,255,255,.4); max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

#now { flex: 1; position: relative; background: var(--glass); border: 1px solid var(--hair); border-top: 0; border-radius: 0 0 8px 8px; padding: 16px 24px 14px; overflow: hidden; }
#now::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--red), var(--accent) 60%, var(--accent-2)); box-shadow: 0 0 18px var(--accent-glow); }
#now::after { content: ''; position: absolute; right: -120px; top: -140px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%); opacity: .55; pointer-events: none; transition: background 1s; }
.now-main { display: flex; align-items: center; justify-content: space-between; height: 118px; position: relative; z-index: 1; }
.now-temp { font: 500 132px/.9 var(--f-display); letter-spacing: -.02em; display: flex; align-items: flex-start; text-shadow: 0 10px 40px rgba(0,0,0,.5); }
.now-temp sup { font-size: 62px; margin-top: 6px; color: var(--accent); }
.now-icon { width: 138px; height: 138px; margin-right: -8px; }
.now-icon svg { width: 100%; height: 100%; overflow: visible; }
.now-cond { position: relative; z-index: 1; margin-top: 2px; }
#condLabel { font: 600 34px/1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
#feels { font: 700 17px var(--f-cond); letter-spacing: .2em; color: var(--muted); margin-top: 6px; }
.hilo { display: flex; align-items: center; gap: 14px; margin-top: 10px; position: relative; z-index: 1; }
.hilo span { display: block; font: 700 12px var(--f-cond); letter-spacing: .24em; color: var(--muted); }
.hilo b { font: 500 26px/1.1 var(--f-display); }
.hilo-h { text-align: right; }
.hilo-bar { flex: 1; height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); position: relative; }
.hilo-bar i { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, var(--lo, #49b4ff), var(--hi, #ff8a1f)); transition: all 1.2s var(--ease); }
.hilo-bar em { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--navy-1); transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px #fff, 0 0 18px #fff; transition: left 1.2s var(--ease); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 12px; background: var(--hair); border: 1px solid var(--hair); border-radius: 6px; overflow: hidden; position: relative; z-index: 1; }
.metric { background: rgba(4, 12, 30, .92); padding: 7px 12px 6px; }
.metric span { display: flex; align-items: center; gap: 6px; font: 700 12px var(--f-cond); letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.metric b { display: flex; align-items: baseline; gap: 4px; font: 500 25px/1.15 var(--f-display); margin-top: 3px; }
.metric b small { font: 600 14px var(--f-cond); color: var(--muted); letter-spacing: .08em; }
.metric .arrow { display: inline-block; width: 16px; height: 16px; transition: transform 1s var(--ease); }
.forecast { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; position: relative; z-index: 1; }
.fc { text-align: center; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); border: 1px solid var(--hair); border-radius: 6px; padding: 7px 4px 6px; }
.fc .d { font: 700 14px var(--f-cond); letter-spacing: .24em; color: var(--muted); }
.fc .i { width: 40px; height: 40px; margin: 0 auto 2px; }
.fc .i svg { width: 100%; height: 100%; overflow: visible; }
.fc .h { font: 500 22px/1 var(--f-display); }
.fc .h em { font-style: normal; color: var(--dim); margin-left: 6px; font-size: 18px; }
.fc .p { font: 600 12px var(--f-cond); color: var(--ice); letter-spacing: .1em; margin-top: 3px; height: 13px; }

/* panel content transitions */
.swap { transition: opacity .45s var(--ease), transform .55s var(--ease), filter .45s; }
#panel.changing .swap { opacity: 0; transform: translateY(14px); filter: blur(6px); }
#panel .swap:nth-child(2) { transition-delay: .06s; } #panel .swap:nth-child(3) { transition-delay: .12s; }

/* ---------- stats board ---------- */
#stats { position: absolute; left: 1352px; top: 40px; width: 528px; height: 844px; display: flex; flex-direction: column; border-radius: 8px; overflow: hidden;
  background: var(--glass); border: 1px solid var(--hair); transform: translateX(620px); opacity: 0; transition: transform 1s var(--ease-io), opacity .8s;
  box-shadow: 0 20px 50px rgba(0,0,0,.65); }
#stage.stats-on #stats { opacity: 1; transform: none; }
.stats-head { background: linear-gradient(120deg, var(--red-2), var(--red) 45%, #c0112a); padding: 22px 28px 20px; position: relative; overflow: hidden; flex: none; }
.stats-head::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.25) 48%, transparent 60%); animation: sheen 5s var(--ease-io) infinite; }
.stats-kicker { font: 700 16px var(--f-cond); letter-spacing: .4em; color: rgba(255,255,255,.82); }
.stats-title { font: 600 50px/1 var(--f-display); letter-spacing: .03em; margin-top: 8px; }
.stats-stripes { position: absolute; right: 26px; top: 26px; display: grid; gap: 5px; }
.stats-stripes i { display: block; width: 74px; height: 5px; background: rgba(255,255,255,.85); }
.stats-stripes i:nth-child(2) { background: rgba(255,255,255,.3); }
.stats-block { flex: 1; padding: 18px 24px 8px; display: flex; flex-direction: column; }
.stats-block + .stats-block { border-top: 1px solid var(--hair); }
.col-head { display: flex; align-items: center; gap: 10px; font: 700 18px var(--f-cond); letter-spacing: .26em; margin-bottom: 10px; }
.hot .col-head { color: #ff9a4d; } .cold .col-head { color: #6ac8ff; }
.col-ico { font-size: 14px; }
.stats-block ol { list-style: none; display: grid; gap: 7px; }
.srow { display: grid; grid-template-columns: 30px 1fr 92px; grid-template-rows: auto auto; column-gap: 12px; align-items: center; opacity: 0; transform: translateX(40px);
  transition: opacity .6s var(--ease), transform .7s var(--ease); }
#stage.stats-on .srow { opacity: 1; transform: none; }
.srow .rk { grid-row: 1 / span 2; font: 600 22px var(--f-display); color: var(--dim); text-align: center; }
.srow .nm { font: 600 25px/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow .nm small { font: 700 14px var(--f-cond); color: var(--muted); letter-spacing: .2em; margin-left: 8px; }
.srow .bar { grid-column: 2; height: 5px; border-radius: 3px; background: rgba(255,255,255,.07); margin-top: 6px; overflow: hidden; }
.srow .bar i { display: block; height: 100%; width: 0; border-radius: 3px; transition: width 1.4s var(--ease); }
.hot .bar i { background: linear-gradient(90deg, #ffb347, #ff3d2e); box-shadow: 0 0 12px rgba(255,90,40,.6); }
.cold .bar i { background: linear-gradient(90deg, #b9f0ff, #2f7bff); box-shadow: 0 0 12px rgba(60,150,255,.6); }
.srow .tv { grid-row: 1 / span 2; grid-column: 3; text-align: right; font: 500 40px/1 var(--f-display); }
.srow .tv sup { font-size: 20px; color: var(--muted); }
.srow:first-child .nm { font-size: 30px; } .srow:first-child .tv { font-size: 52px; }
.hot .srow:first-child .tv { color: #ffb347; text-shadow: 0 0 30px rgba(255,120,40,.6); }
.cold .srow:first-child .tv { color: #8fd8ff; text-shadow: 0 0 30px rgba(80,170,255,.6); }

#snapshot { position: absolute; left: 48px; bottom: 214px; display: flex; align-items: stretch; background: var(--glass); border: 1px solid var(--hair); border-radius: 6px;
  overflow: hidden; opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); box-shadow: 0 14px 34px rgba(0,0,0,.7); }
#stage.stats-on #snapshot { opacity: 1; transform: none; transition-delay: .4s; }
.snap-cell { padding: 12px 22px 11px; border-right: 1px solid var(--hair); }
.snap-cell.lead { background: linear-gradient(160deg, #ff2a40, var(--red) 45%, var(--red-2)); border: 0; }
.snap-cell span { display: block; font: 700 13px var(--f-cond); letter-spacing: .26em; color: rgba(255,255,255,.75); }
.snap-cell b { display: block; font: 500 40px/1.05 var(--f-display); margin-top: 3px; }
.snap-mix { display: flex; align-items: center; gap: 4px; padding: 0 16px; }
.mix { display: flex; align-items: center; gap: 4px; padding: 0 8px; }
.mix .mi { width: 44px; height: 44px; } .mix .mi svg { width: 100%; height: 100%; overflow: visible; }
.mix b { font: 500 30px var(--f-display); }

#stage.stats-on #panel { transform: translateX(620px); opacity: 0; }
#stage.stats-on #route { opacity: 0; transform: translateY(20px); }

/* ---------- intro ---------- */
#intro { position: absolute; left: 0; right: 0; top: 340px; text-align: center; opacity: 0; pointer-events: none; transition: opacity 1s; }
#stage.intro-on #intro { opacity: 1; }
#stage.intro-on #panel, #stage.intro-on #route, #stage.intro-on #labels { opacity: 0; }
#labels { transition: opacity .8s; }
.intro-star { font-size: 26px; letter-spacing: .6em; color: var(--red); text-shadow: 0 0 20px var(--red-glow); }
.intro-name { font: 600 108px/1 var(--f-display); letter-spacing: .08em; margin-top: 16px; text-shadow: 0 10px 60px rgba(0,0,0,.8), 0 0 80px rgba(80,150,255,.35);
  background: linear-gradient(180deg, #fff 30%, #b9c9e6); -webkit-background-clip: text; background-clip: text; color: transparent; }
#stage.intro-on .intro-name { animation: introIn 2.4s var(--ease) both; }
@keyframes introIn { from { letter-spacing: .4em; opacity: 0; filter: blur(12px); } to { letter-spacing: .08em; opacity: 1; filter: none; } }
.intro-rule { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 22px; font: 700 24px var(--f-cond); letter-spacing: .5em; color: #d4def0; }
.intro-rule i { width: 160px; height: 2px; background: linear-gradient(90deg, transparent, var(--red)); }
.intro-rule i:last-child { transform: scaleX(-1); }

/* ---------- lower thirds ---------- */
#lower { position: absolute; left: 0; right: 0; bottom: 0; height: 180px; }
#news { position: absolute; left: 48px; right: 40px; top: 0; height: 116px; display: flex; box-shadow: 0 14px 34px rgba(0,0,0,.7); }
.news-label { width: 158px; flex: none; background: linear-gradient(160deg, #ff2a40, var(--red) 40%, var(--red-2)); border-radius: 6px 0 0 6px; display: flex; flex-direction: column;
  justify-content: center; padding: 0 18px; position: relative; overflow: hidden; }
.news-label::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.3) 45%, transparent 60%); animation: sheen 9s var(--ease-io) infinite 4s; }
.news-kick { font: 800 15px var(--f-cond); letter-spacing: .32em; color: rgba(255,255,255,.85); }
.news-word { font: 600 44px/1 var(--f-display); letter-spacing: .06em; }
.news-count { font: 700 14px var(--f-cond); letter-spacing: .2em; color: rgba(255,255,255,.75); margin-top: 4px; }
.news-viewport { flex: 1; position: relative; overflow: hidden; background: var(--glass); border: 1px solid var(--hair); border-left: 0; }
.news-item { position: absolute; inset: 0; display: flex; align-items: center; gap: 22px; padding: 0 26px 0 0; transform: translateY(100%); opacity: 0;
  transition: transform .9s var(--ease-io), opacity .9s; }
.news-item.in { transform: none; opacity: 1; }
.news-item.out { transform: translateY(-100%); opacity: 0; }
.news-thumb { width: 206px; height: 116px; flex: none; position: relative; overflow: hidden; background: #0e1f45; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, rgba(5,13,32,.9)); }
.news-mono { width: 100%; height: 100%; display: grid; place-items: center; font: 600 30px var(--f-display); letter-spacing: .06em; text-align: center; padding: 10px; line-height: 1;
  background: linear-gradient(135deg, #12306e, #08173a); color: #cfe0ff; }
.news-body { min-width: 0; flex: 1; }
.news-item:not(.has-thumb) .news-body { padding-left: 28px; }
.news-title { font: 600 34px/1.12 var(--f-cond); letter-spacing: .005em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { display: flex; gap: 12px; align-items: center; margin-top: 7px; font: 700 15px var(--f-cond); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.news-meta .src { color: var(--accent); }
.news-meta .new { background: var(--red); color: #fff; padding: 2px 7px; border-radius: 2px; letter-spacing: .16em; }
.news-pips { width: 22px; flex: none; background: var(--glass); border: 1px solid var(--hair); border-left: 0; border-radius: 0 6px 6px 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; }
.news-pips i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.2); transition: all .4s; }
.news-pips i.on { background: var(--accent); height: 14px; border-radius: 3px; box-shadow: 0 0 10px var(--accent-glow); }
.news-progress { position: absolute; left: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--red), var(--accent)); width: 0; }
.news-progress.run { animation: prog linear forwards; }
@keyframes prog { to { width: 100%; } }

#crawl { position: absolute; left: 0; right: 0; bottom: 0; height: 52px; display: flex; background: linear-gradient(180deg, #0a1a3f, #050d22); border-top: 1px solid rgba(160,196,255,.22); }
.crawl-label { flex: none; display: flex; align-items: center; padding: 0 22px 0 48px; font: 800 17px var(--f-cond); letter-spacing: .3em; background: linear-gradient(90deg, #0d2357, #13306b);
  position: relative; clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%); padding-right: 38px; }
.crawl-track { flex: 1; overflow: hidden; position: relative; }
.crawl-track::before, .crawl-track::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40px; z-index: 2; }
.crawl-track::before { left: 0; background: linear-gradient(90deg, #07142f, transparent); }
.crawl-track::after { right: 0; background: linear-gradient(-90deg, #07142f, transparent); }
.crawl-inner { position: absolute; top: 0; bottom: 0; left: 0; display: flex; align-items: center; white-space: nowrap; will-change: transform; }
.cr { display: inline-flex; align-items: center; gap: 10px; padding: 0 26px; font: 600 23px var(--f-display); letter-spacing: .04em; text-transform: uppercase; }
.cr .ci { width: 30px; height: 30px; } .cr .ci svg { width: 100%; height: 100%; overflow: visible; }
.cr b { font-weight: 500; color: var(--tc); }
.cr::after { content: '★'; margin-left: 26px; color: var(--red); font-size: 14px; }
.crawl-clock { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 40px 0 30px; font: 500 24px var(--f-display); background: var(--red); letter-spacing: .04em;
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%); padding-left: 38px; }
.crawl-clock small { font: 700 14px var(--f-cond); letter-spacing: .2em; opacity: .85; }

/* ---------- misc ---------- */
#flash { position: absolute; inset: 0; background: radial-gradient(circle at 70% 30%, rgba(255,255,255,.18), transparent 60%); opacity: 0; pointer-events: none; }
#flash.go { animation: flash 1.1s var(--ease) forwards; }
@keyframes flash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
#boot { position: absolute; inset: 0; background: #02050d; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  font: 700 18px var(--f-cond); letter-spacing: .5em; color: var(--muted); transition: opacity 1.6s; z-index: 50; }
#boot.gone { opacity: 0; pointer-events: none; }
.boot-ring { width: 72px; height: 72px; border-radius: 50%; border: 2px solid rgba(255,255,255,.1); border-top-color: var(--red); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#soundGate { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.35); z-index: 60; }
#soundGate button { font: 700 26px var(--f-cond); letter-spacing: .2em; padding: 22px 40px; border: 0; border-radius: 6px; background: var(--red); color: #fff; cursor: pointer;
  box-shadow: 0 20px 50px rgba(0,0,0,.6); }
#soundGate[hidden] { display: none; }

/* ---------- animated weather icons ---------- */
.wi .sun-core { transform-origin: 32px 32px; }
.wi .rays { transform-origin: 32px 32px; animation: rot 24s linear infinite; }
.wi .cloud-a { animation: drift 7s ease-in-out infinite; }
.wi .cloud-b { animation: drift 9s ease-in-out infinite reverse; }
.wi .drop { animation: fall 1.1s linear infinite; }
.wi .flake { animation: snowfall 2.6s linear infinite; transform-box: fill-box; transform-origin: center; }
.wi .bolt { animation: bolt 3.2s steps(1) infinite; }
.wi .fogline { animation: fogx 5s ease-in-out infinite; }
.wi .moon { animation: bob 6s ease-in-out infinite; }
.wi .twk { animation: twinkle 2.8s ease-in-out infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
@keyframes drift { 50% { transform: translateX(3px); } }
@keyframes fall { 0% { transform: translate(0, -6px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(-4px, 14px); opacity: 0; } }
@keyframes snowfall { 0% { transform: translate(0, -6px) rotate(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(3px, 16px) rotate(180deg); opacity: 0; } }
@keyframes bolt { 0%, 62%, 70%, 74%, 100% { opacity: 0; } 64%, 72% { opacity: 1; } }
@keyframes fogx { 50% { transform: translateX(5px); } }
@keyframes bob { 50% { transform: translateY(-2px); } }
@keyframes twinkle { 50% { opacity: .2; } }

.cr .ci * { animation: none !important; }

/* lite mode (CPU-only streaming servers): keep the look, drop per-frame decorative work */
#stage.lite *, #stage.lite *::before, #stage.lite *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; }
#stage.lite .photo-layer { filter: none !important; }
#stage.lite .news-progress { display: none; }

/* ================= NWS ALERTS ================= */
#cityAlert { position: absolute; z-index: 6; left: 0; right: 0; top: 0; display: none; align-items: center; gap: 12px; padding: 10px 16px 10px 14px;
  background: var(--ac, #ff2a2a); color: var(--act, #fff); box-shadow: 0 6px 24px rgba(0,0,0,.45); }
#cityAlert::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.28) 48%, transparent 60%);
  animation: sheen 4s var(--ease-io) infinite; pointer-events: none; }
#photoWrap.alerted #cityAlert { display: flex; }
#photoWrap.alerted #localTime, #photoWrap.alerted #condChip { display: none; }
.ca-ico { font-size: 26px; line-height: 1; animation: blink 1.2s infinite; }
.ca-txt { display: flex; flex-direction: column; min-width: 0; }
.ca-txt b { font: 600 25px/1 var(--f-display); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ca-txt span { font: 700 13px/1 var(--f-cond); letter-spacing: .18em; margin-top: 5px; opacity: .85; text-transform: uppercase; }
.ca-more { margin-left: auto; font: 700 13px var(--f-cond); letter-spacing: .14em; background: rgba(0,0,0,.25); padding: 4px 8px; border-radius: 3px; white-space: nowrap; }
.ca-more:empty { display: none; }
#panel::after { content: ''; position: absolute; inset: -2px; border-radius: 10px; border: 2px solid var(--ac, #ff2a2a); box-shadow: 0 0 34px var(--ac, #ff2a2a);
  opacity: 0; pointer-events: none; z-index: 7; }
#panel.alerted::after { animation: alertGlow 2.4s ease-in-out infinite; }
@keyframes alertGlow { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* globe labels */
.lbl .w { display: none; background: var(--ac, #ff2a2a); color: #fff; font: 700 15px/1 var(--f-cond); padding: 7px 7px; border-radius: 0 3px 3px 0; margin-left: -1px; }
.lbl.has-alert .w { display: block; }
.lbl.has-alert .n { border-radius: 0; }
.lbl.active.has-alert .w { font-size: 20px; padding: 11px 10px; }
.lbl.mini.has-alert .w { border-radius: 0 3px 3px 0; padding: 4px 5px; font-size: 13px; }
.lbl.mini.has-alert .t { border-radius: 3px 0 0 3px; }

/* news bar in alert mode */
#news.alert-mode .news-label { background: linear-gradient(160deg, #ffd23f, #ff9f1c 50%, #e4152b); }
#news.alert-mode .news-label .news-kick { color: #2a0606; }
#news.alert-mode .news-label .news-word { color: #1a0303; font-size: 40px; }
#news.alert-mode .news-label .news-count { color: rgba(30,3,3,.75); }
.news-item.alert .news-body { padding-left: 0 !important; }
.alert-swatch { width: 206px; height: 116px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: var(--ac); color: var(--act); position: relative; overflow: hidden; }
.alert-swatch::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(0,0,0,.10) 0 14px, transparent 14px 28px); }
.alert-swatch .i { font-size: 38px; line-height: 1; z-index: 1; animation: blink 1.4s infinite; }
.alert-swatch .l { font: 800 14px var(--f-cond); letter-spacing: .26em; z-index: 1; }
.news-item.alert .news-title { text-transform: uppercase; font-family: var(--f-display); font-weight: 500; letter-spacing: .02em; }
.news-item.alert .news-meta .src { color: #ffb02e; }

/* crawl */
.cr .aw { font-style: normal; color: #ff4d4d; font-size: 18px; margin-left: -4px; animation: blink 1.4s infinite; }

/* alerts board */
#alertsBoard { position: absolute; left: 1352px; top: 40px; width: 528px; height: 844px; display: flex; flex-direction: column; border-radius: 8px; overflow: hidden;
  background: var(--glass); border: 1px solid var(--hair); transform: translateX(620px); opacity: 0; transition: transform 1s var(--ease-io), opacity .8s;
  box-shadow: 0 20px 50px rgba(0,0,0,.65); }
#stage.alerts-on #alertsBoard { opacity: 1; transform: none; }
.ab-head { flex: none; padding: 22px 28px 20px; position: relative; overflow: hidden;
  background: repeating-linear-gradient(-45deg, rgba(0,0,0,.12) 0 18px, transparent 18px 36px), linear-gradient(120deg, #a40c1d, #e4152b 50%, #ff7a1a); }
.ab-head::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.25) 48%, transparent 60%); animation: sheen 5s var(--ease-io) infinite; }
.ab-kicker { display: flex; align-items: center; gap: 10px; font: 700 15px var(--f-cond); letter-spacing: .32em; color: rgba(255,255,255,.88); }
.ab-dot { width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px #fff; animation: blink 1s infinite; }
.ab-title { font: 600 50px/1 var(--f-display); letter-spacing: .03em; margin-top: 8px; }
#abList { list-style: none; flex: 1; padding: 14px 18px 6px; display: flex; flex-direction: column; gap: 9px; overflow: hidden; }
.ab-row { display: grid; grid-template-columns: 8px 1fr auto; column-gap: 14px; align-items: center; padding: 10px 14px 10px 0; background: rgba(255,255,255,.03);
  border: 1px solid var(--hair); border-radius: 6px; overflow: hidden; opacity: 0; transform: translateX(40px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
#stage.alerts-on .ab-row { opacity: 1; transform: none; }
.ab-row > * { grid-row: 1; }
.ab-row > div:not(.un) { grid-column: 2; min-width: 0; }
.ab-row .bar { grid-column: 1; align-self: stretch; background: var(--ac); box-shadow: 0 0 14px var(--ac); }
.ab-row .ev { font: 600 23px/1.05 var(--f-display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-row .ct { font: 700 15px var(--f-cond); letter-spacing: .16em; color: #dce6f5; text-transform: uppercase; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-row .un { grid-column: 3; text-align: right; font: 700 13px/1.25 var(--f-cond); letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.ab-row .un b { display: block; font: 500 20px var(--f-display); color: #fff; letter-spacing: .02em; }
.ab-row .sv { display: inline-block; font: 800 11px var(--f-cond); letter-spacing: .16em; padding: 2px 6px; border-radius: 2px; margin-right: 8px; vertical-align: 3px;
  background: var(--ac); color: var(--act); }
.ab-more { font: 700 15px var(--f-cond); letter-spacing: .2em; color: var(--muted); text-align: center; padding: 4px; }
.ab-foot { flex: none; font: 600 13px var(--f-cond); letter-spacing: .14em; color: var(--muted); padding: 10px 20px 14px; border-top: 1px solid var(--hair); text-transform: uppercase; }
#alertsCount { position: absolute; left: 48px; bottom: 214px; display: flex; align-items: stretch; background: var(--glass); border: 1px solid var(--hair); border-radius: 6px;
  overflow: hidden; opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); box-shadow: 0 14px 34px rgba(0,0,0,.7); }
#stage.alerts-on #alertsCount { opacity: 1; transform: none; transition-delay: .4s; }
.snap-cell.lead.alert { background: linear-gradient(160deg, #ff9f1c, #e4152b 55%, #a40c1d); }
#stage.alerts-on #panel { transform: translateX(620px); opacity: 0; }
#stage.alerts-on #route { opacity: 0; transform: translateY(20px); }

/* ================= MARKETS SCENE ================= */
#globe, #labels, #vignette { transition: opacity 1s ease; }
#stage.markets-on #globe, #stage.markets-on #labels { opacity: 0; }
#stage.markets-on #panel { transform: translateX(620px); opacity: 0; }
#stage.markets-on #route, #stage.markets-on #clocks { opacity: 0; transform: translateY(-10px); }
#clocks { transition: opacity .6s, transform .6s; }
#mkBackdrop { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 20% 10%, rgba(47,209,139,.10), transparent 60%),
    radial-gradient(ellipse 50% 50% at 85% 90%, rgba(228,21,43,.10), transparent 60%),
    linear-gradient(rgba(120,160,230,.06) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(90deg, rgba(120,160,230,.06) 1px, transparent 1px) 0 0 / 48px 100%,
    radial-gradient(ellipse at 50% 40%, #0b1834 0%, #03070f 75%); }
#stage.markets-on #mkBackdrop { opacity: 1; }
#markets { position: absolute; left: 48px; right: 48px; top: 40px; bottom: 196px; display: flex; flex-direction: column; gap: 14px;
  opacity: 0; pointer-events: none; transition: opacity .7s ease; }
#stage.markets-on #markets { opacity: 1; }
.mk-head { flex: none; display: flex; align-items: center; gap: 22px; height: 92px; padding-left: 520px; }
.mk-title { display: flex; flex-direction: column; }
.mk-kick { font: 700 15px var(--f-cond); letter-spacing: .4em; color: #2fd18b; }
.mk-title b { font: 600 56px/1 var(--f-display); letter-spacing: .06em; }
.mk-status { display: flex; align-items: center; gap: 10px; margin-left: 18px; padding: 10px 16px; border-radius: 6px; background: var(--glass); border: 1px solid var(--hair); }
.mk-status b { font: 700 18px var(--f-cond); letter-spacing: .22em; }
.mk-status span:last-child { font: 600 15px var(--f-cond); letter-spacing: .14em; color: var(--muted); }
.mk-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--dim); }
#markets.open .mk-dot { background: #2fd18b; box-shadow: 0 0 12px #2fd18b; animation: blink 1.6s infinite; }
#markets.open .mk-status b { color: #2fd18b; }
.mk-src { margin-left: auto; font: 600 13px var(--f-cond); letter-spacing: .18em; color: var(--dim); }
.mk-grid { flex: 1; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: 1.45fr 1fr 1.1fr; gap: 14px; min-height: 0; }
.mk { position: relative; overflow: hidden; border-radius: 8px; background: var(--glass); border: 1px solid var(--hair); padding: 16px 18px;
  display: flex; flex-direction: column; opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .6s var(--ease), transform .7s var(--ease);
  box-shadow: 0 16px 40px rgba(0,0,0,.45); }
#stage.markets-on .mk { opacity: 1; transform: none; }
.mk::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--mc); box-shadow: 0 0 16px var(--mc); }
.mk.up { --mc: #2fd18b; --mcs: rgba(47,209,139,.22); } .mk.down { --mc: #ff4d5e; --mcs: rgba(255,77,94,.22); } .mk.flat, .mk.na { --mc: #8b9cbc; --mcs: rgba(139,156,188,.18); }
.mk.index, .mk.macro { grid-column: span 2; } .mk.stock { grid-column: span 1; padding: 14px 14px; }
.mk-top { display: flex; align-items: baseline; gap: 10px; position: relative; z-index: 1; }
.mk-lbl { font: 600 26px/1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-sym { font: 700 13px var(--f-cond); letter-spacing: .18em; color: var(--muted); white-space: nowrap; }
.mk-px { font: 500 60px/1 var(--f-display); letter-spacing: -.01em; margin-top: 12px; position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
.mk-chg { display: flex; align-items: center; gap: 10px; margin-top: 10px; position: relative; z-index: 1; font: 700 20px var(--f-cond); letter-spacing: .06em; color: var(--mc); }
.mk-pct { background: var(--mc); color: #04101f; padding: 3px 9px; border-radius: 4px; font: 700 20px var(--f-cond); letter-spacing: .04em; }
.mk.flat .mk-pct, .mk.na .mk-pct { color: #04101f; }
.mk-spark { position: absolute; left: 0; bottom: 0; width: 100%; height: 58%; z-index: 0; display: block; }
.mk-spark path.l { fill: none; stroke: var(--mc); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease) .4s; }
#stage.markets-on .mk-spark path.l { stroke-dashoffset: 0; }
.mk-spark path.a { fill: var(--mcs); opacity: 0; transition: opacity 1.2s ease 1s; }
#stage.markets-on .mk-spark path.a { opacity: 1; }
.mk.macro .mk-px { font-size: 44px; margin-top: 10px; }
.mk.macro .mk-spark { height: 42%; }
.mk-chg, .mk-px { text-shadow: 0 2px 10px rgba(3,8,20,.9); }
.mk.stock .mk-lbl { font-size: 34px; letter-spacing: .02em; }
.mk.stock .mk-sym { display: block; font-size: 12px; letter-spacing: .12em; margin-top: 2px; }
.mk.stock .mk-top { flex-direction: column; align-items: flex-start; gap: 0; }
.mk.stock .mk-px { font-size: 30px; margin-top: auto; }
.mk.stock .mk-chg { margin-top: 6px; font-size: 16px; } .mk.stock .mk-pct { font-size: 16px; padding: 2px 6px; }
.mk.stock .mk-abs { display: none; }
.mk.stock .mk-spark { height: 46%; opacity: .55; }
.mk.na .mk-px { color: var(--dim); }
