/* ArròTV — pantalla vertical 1080×1920 (Samsung QB65C en retrat). Paleta: groc, blanc, negre. */
:root {
  --y: #f2c200;
  --y2: #ffe05c;
  --yd: #8a6f00;
  --k: #0b0b0a;
  --k2: #151513;
  --k3: #22221f;
  --w: #f6f3ea;
  --w2: rgba(246, 243, 234, .62);
  --w3: rgba(246, 243, 234, .28);
  --line: rgba(246, 243, 234, .12);
  --ease: cubic-bezier(.2, .8, .15, 1);
  --ease-io: cubic-bezier(.75, 0, .2, 1);
  --pad: 56px;
  --field-h: 500px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: var(--k); color: var(--w); }
body { font-family: Archivo, 'Helvetica Neue', Arial, sans-serif; -webkit-font-smoothing: antialiased; cursor: none; }
.mono { font-family: 'JetBrains Mono', monospace; }

#viewport { position: fixed; inset: 0; overflow: hidden; background: var(--k); }
#stage {
  position: absolute; left: 0; top: 0; width: 1080px; height: 1920px;
  transform-origin: 0 0; display: flex; flex-direction: column; overflow: hidden;
  background:
    radial-gradient(1200px 700px at 110% -10%, rgba(242,194,0,.07), transparent 60%),
    var(--k);
}

/* ---------- Capçalera ---------- */
#hd { display: flex; align-items: center; gap: 28px; padding: 48px var(--pad) 26px; position: relative; z-index: 3; }
#logo { height: 104px; width: auto; flex: none; }
.hd-id { flex: 1; min-width: 0; padding-left: 26px; border-left: 2px solid var(--line); }
.bname { font-size: 34px; font-weight: 800; font-stretch: 112%; letter-spacing: -.01em; line-height: 1.05; }
.bsub { margin-top: 6px; font-family: 'JetBrains Mono', monospace; font-size: 17px; letter-spacing: .22em; text-transform: uppercase; color: var(--y); }
.clock { text-align: right; flex: none; }
.time { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 84px; line-height: .9; letter-spacing: -.04em; display: flex; justify-content: flex-end; }
.digits { display: inline-flex; overflow: hidden; height: 76px; }
.digit { display: inline-block; width: .6em; text-align: center; position: relative; }
.digit.roll { animation: digitIn .7s var(--ease) both; }
@keyframes digitIn { from { transform: translateY(70%); opacity: 0; } to { transform: none; opacity: 1; } }
.colon { color: var(--y); animation: blink 2s steps(1) infinite; width: .45em; text-align: center; }
@keyframes blink { 50% { opacity: .15; } }
.date { margin-top: 10px; font-size: 21px; color: var(--w2); text-transform: lowercase; letter-spacing: .02em; }

/* ---------- Barra d'escena ---------- */
#scenebar { position: relative; display: flex; align-items: flex-end; justify-content: space-between; padding: 22px var(--pad) 18px; z-index: 3; }
.sb-left { display: flex; align-items: baseline; gap: 22px; min-width: 0; }
.sb-code {
  font-size: 92px; font-weight: 900; font-stretch: 125%; line-height: .8; letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 2px var(--y);
}
.sb-title { font-size: 44px; font-weight: 800; font-stretch: 118%; text-transform: uppercase; letter-spacing: .01em; line-height: 1; white-space: nowrap; }
.sb-count { font-family: 'JetBrains Mono', monospace; font-size: 20px; color: var(--w2); letter-spacing: .1em; }
.sb-progress { position: absolute; left: var(--pad); right: var(--pad); bottom: 0; height: 3px; background: var(--line); overflow: hidden; }
.sb-progress i { position: absolute; inset: 0; background: var(--y); transform-origin: 0 0; transform: scaleX(0); }
.sb-anim .sb-code, .sb-anim .sb-title { animation: sbIn .9s var(--ease) both; }
.sb-anim .sb-title { animation-delay: .12s; }
@keyframes sbIn { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Escenes ---------- */
#scenes { position: relative; flex: 1; min-height: 0; overflow: hidden; z-index: 2; }
.scene { position: absolute; inset: 0; padding: 30px var(--pad) 20px; }
#wipe { position: absolute; inset: 0; pointer-events: none; z-index: 5; visibility: hidden; }
#wipe i, #wipe b { position: absolute; left: 0; right: 0; top: 0; bottom: 0; transform: translateY(101%); }
#wipe i { background: var(--y); }
#wipe b { background: var(--k); border-top: 2px solid var(--y); }
#wipe.run { visibility: visible; }
#wipe.run i { animation: wipeY 1.15s var(--ease-io) both; }
#wipe.run b { animation: wipeK 1.15s var(--ease-io) both; }
@keyframes wipeY { 0% { transform: translateY(101%); } 45% { transform: translateY(0); } 100% { transform: translateY(-101%); } }
@keyframes wipeK { 0%, 12% { transform: translateY(101%); } 52% { transform: translateY(0); } 100% { transform: translateY(-101%); } }

.enter > * , .stagger > * { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 250ms); }
@keyframes rise { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }

/* Directori — llistat per planta */
.dir { display: flex; flex-direction: column; gap: 34px; }
.dir-floor { display: grid; grid-template-columns: 150px 1fr; gap: 0 26px; }
.dir-fcode { font-size: 110px; font-weight: 900; font-stretch: 125%; line-height: .78; color: var(--y); letter-spacing: -.04em; }
.dir-fname { font-family: 'JetBrains Mono', monospace; font-size: 15px; letter-spacing: .18em; text-transform: uppercase; color: var(--w2); margin-top: 14px; }
.dir-rows { border-top: 2px solid var(--w); }
.row { position: relative; display: grid; grid-template-columns: 112px 1fr auto; align-items: center; gap: 18px; min-height: 86px; padding: 12px 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.row::before { content: ''; position: absolute; inset: 0; background: var(--y); transform-origin: 0 0; transform: scaleX(0); animation: rowSweep 1.1s var(--ease-io) both; animation-delay: inherit; z-index: 0; }
@keyframes rowSweep { 0% { transform: scaleX(0); transform-origin: 0 0; } 45% { transform: scaleX(1); transform-origin: 0 0; } 55% { transform: scaleX(1); transform-origin: 100% 0; } 100% { transform: scaleX(0); transform-origin: 100% 0; } }
.row > * { position: relative; z-index: 1; }
.row .code { font-family: 'JetBrains Mono', monospace; font-size: 30px; font-weight: 700; color: var(--y); letter-spacing: -.02em; }
.row .who { min-width: 0; }
.row .cname { font-size: 38px; font-weight: 750; font-stretch: 100%; line-height: 1.05; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .occ { font-size: 21px; color: var(--w2); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mono-badge { width: 62px; height: 62px; display: grid; place-items: center; border: 2px solid var(--w); font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.row.vacant .cname { color: var(--w3); font-weight: 500; font-style: normal; }
.row.vacant .code { color: var(--w3); }
.row.vacant .mono-badge { border-style: dashed; border-color: var(--w3); color: var(--w3); }
.row .tag { font-family: 'JetBrains Mono', monospace; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--k); background: var(--y); padding: 6px 10px; }

/* Directori — per empresa */
.byco { display: flex; flex-direction: column; }
.co { display: grid; grid-template-columns: 92px 1fr; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.co:first-child { border-top: 2px solid var(--w); }
.co .mono-badge { width: 92px; height: 92px; font-size: 30px; background: var(--y); color: var(--k); border-color: var(--y); }
.co .cname { font-size: 44px; font-weight: 800; font-stretch: 105%; line-height: 1.02; letter-spacing: -.015em; }
.co .act { font-size: 21px; color: var(--w2); margin-top: 6px; }
.co .where { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { font-family: 'JetBrains Mono', monospace; font-size: 19px; font-weight: 700; padding: 5px 10px; border: 1.5px solid var(--w3); }
.chip b { color: var(--y); font-weight: 700; margin-right: 6px; }

/* ---------- Mapa ---------- */
.map-wrap { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.map { position: relative; width: 100%; }
.map svg.outline { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map svg.outline rect { fill: none; stroke: var(--w); stroke-width: 4; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s var(--ease-io) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.map .bg { position: absolute; inset: 0; background-size: 100% 100%; opacity: .14; filter: grayscale(1) contrast(1.3); }
.rm { position: absolute; border: 2px solid rgba(246,243,234,.55); overflow: hidden; animation: rmIn .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + 600ms); }
@keyframes rmIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
.rm .lbl { position: absolute; left: 10px; right: 8px; top: 8px; font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.rm .nm { position: absolute; left: 10px; right: 10px; bottom: 10px; font-weight: 800; font-size: 22px; line-height: 1.05; letter-spacing: -.01em; }
.rm .nm small { display: block; font-weight: 500; font-size: 14px; opacity: .75; margin-top: 3px; }
.rm.office.occupied { border-color: var(--y); color: var(--k); }
.rm.office.occupied::before { content: ''; position: absolute; inset: 0; background: var(--y); transform-origin: 0 100%; animation: fillUp 1.2s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + 900ms); }
@keyframes fillUp { from { transform: scaleY(0); } to { transform: none; } }
.rm.office.vacant { border-style: dashed; color: var(--w3); }
.rm.office.vacant .nm { font-weight: 500; font-size: 17px; }
.rm.office.dim { opacity: .35 !important; border-color: var(--w3); color: var(--w3); }
.rm.office.dim::before { display: none; }
.rm.meeting { border: 3px solid var(--w); background: var(--w); color: var(--k); }
.rm.meeting .lbl { color: var(--k); }
.rm.meeting .nm { font-size: 26px; }
.rm.meeting .nm small { opacity: .6; }
.rm.meeting .state { position: absolute; right: 10px; top: 8px; font-family: 'JetBrains Mono', monospace; font-size: 15px; font-weight: 700; padding: 5px 9px; letter-spacing: .1em; }
.rm.meeting.free .state { border: 2px solid var(--k); color: var(--k); }
.rm.meeting.busy { border-color: var(--y); box-shadow: inset 0 0 0 6px var(--y); }
.rm.meeting.busy .state { background: var(--k); color: var(--y); animation: pulseOp 2.4s ease-in-out infinite; }
.rm.meeting::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(-45deg, var(--k) 0 6px, transparent 6px 12px); opacity: .85; }
.rm.meeting.busy::after { background: repeating-linear-gradient(-45deg, var(--y) 0 6px, transparent 6px 12px); opacity: 1; }
@keyframes pulseOp { 50% { opacity: .6; } }
.rm.corridor { border: none; background: linear-gradient(90deg, rgba(246,243,234,.04), rgba(246,243,234,.08), rgba(246,243,234,.04)); }
.rm.corridor::after { content: ''; position: absolute; top: 50%; left: 0; width: 30%; height: 2px; margin-top: -1px; background: linear-gradient(90deg, transparent, rgba(242,194,0,.7), transparent); animation: flow 5s linear infinite; }
@keyframes flow { from { transform: translateX(-100%); } to { transform: translateX(400%); } }
.rm.corridor .nm { display: none; }
.rm.common, .rm.wc, .rm.stairs, .rm.elevator { border: 2px solid var(--w); background: var(--k); color: var(--w); }
.rm .ico { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -34px 0 0 -23px; color: var(--y); }
.rm .ico svg { width: 100%; height: 100%; display: block; }
.rm.common .nm, .rm.wc .nm, .rm.stairs .nm, .rm.elevator .nm { left: 4px; right: 4px; text-align: center; font-size: 15px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; overflow-wrap: anywhere; }
.rm.common .nm { font-size: 19px; }
.rm.stairs { background: repeating-linear-gradient(0deg, var(--k) 0 14px, rgba(246,243,234,.35) 14px 16px); }
.rm.stairs .ico, .rm.stairs .nm { background: var(--k); }
.rm.stairs .nm { left: 50%; right: auto; transform: translateX(-50%); padding: 2px 6px; }
.rm.elevator .nm { display: none; }
.rm.private { border: 2px solid var(--w); color: var(--w); background: repeating-linear-gradient(-45deg, var(--k) 0 7px, rgba(246,243,234,.22) 7px 9px); }
.rm.private .ico, .rm.private .nm { background: var(--k); }
.rm.private .ico { padding: 6px; width: 58px; height: 58px; margin: -40px 0 0 -29px; }
.rm.private .nm { left: 50%; right: auto; transform: translateX(-50%); padding: 3px 8px; white-space: nowrap; font-size: 15px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.rm.elevator .ico, .rm.wc .ico { margin-top: -23px; }
.rm.wc .nm { display: none; }
.rm.short:not(.wc):not(.elevator) .ico { display: none; }
.rm.short .nm { top: 50%; bottom: auto; transform: translate(-50%, -50%); left: 50%; right: auto; white-space: nowrap; }
.rm.common .lbl, .rm.private .lbl { color: var(--w2); }
.rm.entrance { border: none; overflow: visible; color: var(--y); z-index: 3; }
.rm.entrance .nm { display: none; }
.here { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.here i { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%; background: var(--y); box-shadow: 0 0 0 6px rgba(11,11,10,.9); }
.here b { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--y); animation: ring 2.4s var(--ease) infinite; }
.here b:nth-child(3) { animation-delay: 1.2s; }
@keyframes ring { from { transform: scale(1); opacity: 1; } to { transform: scale(5); opacity: 0; } }
.here span { position: absolute; left: 0; top: -64px; transform: translateX(-50%); white-space: nowrap; font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 18px; letter-spacing: .14em; background: var(--y); color: var(--k); padding: 6px 10px; }

.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; margin-top: 40px; }
.legend .li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.legend .li .mono-badge { width: 64px; height: 64px; background: var(--y); color: var(--k); border-color: var(--y); font-size: 22px; }
.legend .li.meet .mono-badge { background: transparent; color: var(--w); border-color: var(--w); background-image: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(246,243,234,.2) 6px 8px); }
.legend .li .t { font-size: 28px; font-weight: 800; line-height: 1.08; letter-spacing: -.01em; }
.legend .li .codes { display: block; font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--y); font-size: 18px; margin-top: 5px; }
.legend .li.meet .codes { color: var(--w2); }

/* ---------- Edifici (isomètric) ---------- */
.bld { position: relative; height: 100%; display: grid; grid-template-columns: 1fr 340px; gap: 10px; }
.iso { position: relative; perspective: 2400px; }
.iso-floor { position: absolute; left: 50%; width: 560px; height: 336px; margin-left: -300px; transform-style: preserve-3d; transition: transform 1.2s var(--ease), opacity 1.2s var(--ease); }
.iso-plane { position: absolute; inset: 0; transform: rotateX(58deg) rotateZ(-36deg); transform-style: preserve-3d; background: rgba(11,11,10,.92); border: 3px solid var(--w3); transition: border-color 1s, box-shadow 1s; }
.iso-floor.on .iso-plane { border-color: var(--y); }
.iso-floor.off { opacity: .35; }
.iso-plane .rm { animation: none; border-width: 1.5px; }
.iso-plane .rm .lbl, .iso-plane .rm .nm, .iso-plane .rm .state, .iso-plane .rm .ico { display: none; }
.iso-floor.on .iso-plane .rm.office.occupied .lbl, .iso-floor.on .iso-plane .rm.meeting .lbl { display: block; font-size: 15px; left: 6px; top: 4px; color: var(--k); }
.iso-plane .rm { transition: opacity .5s, background-color .5s; }
.iso-plane.spotting .rm.office.occupied, .iso-plane.spotting .rm.meeting { opacity: .3; }
.iso-plane .rm.spot { opacity: 1 !important; }
.iso-plane .rm.office.occupied.spot::before { background: var(--w); }
.iso-plane .rm.meeting.spot { background: var(--y); border-color: var(--y); }
.iso-plane .rm.meeting::after { display: none; }
.iso-plane .rm.office.occupied::before { animation: none; }
.iso-plane .here span { display: none; }
.iso-tag { position: absolute; right: -96px; top: 34%; font-size: 64px; font-weight: 900; font-stretch: 125%; color: transparent; -webkit-text-stroke: 2px var(--w3); transition: color .8s, -webkit-text-stroke-color .8s; }
.iso-floor.on .iso-tag { color: var(--y); -webkit-text-stroke-color: var(--y); }
.bld-side { display: flex; flex-direction: column; justify-content: center; }
.bld-side .fname { font-family: 'JetBrains Mono', monospace; font-size: 18px; letter-spacing: .18em; text-transform: uppercase; color: var(--y); margin-bottom: 18px; }
.bld-side .li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; padding: 12px 0 12px 0; border-top: 1px solid var(--line); animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms); transition: padding .5s var(--ease), opacity .5s; position: relative; }
.bld-side .li::before { content: ''; position: absolute; left: -16px; top: 10px; bottom: 10px; width: 5px; background: var(--y); transform: scaleY(0); transition: transform .5s var(--ease); }
.bld-side .li .bdg { width: 52px; height: 52px; display: grid; place-items: center; background: var(--y); color: var(--k); font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 18px; transition: background .4s, color .4s; }
.bld-side .li.meet .bdg { background: var(--w); }
.bld-side .li .t { font-size: 26px; font-weight: 750; line-height: 1.1; }
.bld-side .li .c { font-family: 'JetBrains Mono', monospace; font-size: 17px; color: var(--w2); margin-top: 4px; }
.bld-side .li > * { transition: opacity .5s; }
.bld-side.spotting .li > * { opacity: .4; }
.bld-side .li.spot > * { opacity: 1; }
.bld-side .li.spot { padding-left: 8px; }
.bld-side .li.spot::before { transform: none; }
.bld-side .li.spot .bdg { background: var(--w); color: var(--k); }
.bld-side .li.meet.spot .bdg { background: var(--y); }

/* ---------- Sales de reunió ---------- */
.meet { display: flex; flex-direction: column; gap: 26px; }
.mroom { border-top: 2px solid var(--w); padding-top: 18px; }
.mroom-hd { display: flex; align-items: center; gap: 18px; }
.mroom-hd .n { font-size: 46px; font-weight: 850; font-stretch: 112%; letter-spacing: -.015em; line-height: 1; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mroom-hd .f { font-family: 'JetBrains Mono', monospace; font-size: 18px; color: var(--w2); letter-spacing: .1em; }
.pill { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 19px; letter-spacing: .14em; padding: 9px 14px; border: 2px solid var(--w); white-space: nowrap; }
.pill.busy { background: var(--y); color: var(--k); border-color: var(--y); animation: pulseOp 2.4s ease-in-out infinite; }
.mnow { margin-top: 16px; display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: end; }
.mnow .t { font-size: 32px; font-weight: 700; line-height: 1.1; }
.mnow .o { font-size: 21px; color: var(--w2); }
.mnow .h { font-family: 'JetBrains Mono', monospace; font-size: 26px; font-weight: 700; color: var(--y); text-align: right; }
.mnow .lbl { font-family: 'JetBrains Mono', monospace; font-size: 15px; letter-spacing: .16em; color: var(--w2); text-transform: uppercase; grid-column: 1 / -1; }
.tl { position: relative; height: 46px; margin-top: 18px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / 12)); }
.tl .blk { position: absolute; top: 8px; bottom: 8px; background: var(--w3); transform-origin: 0 50%; animation: grow 1s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 500ms); }
.tl .blk.past { background: rgba(246,243,234,.14); }
.tl .blk.now { background: var(--y); }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }
.tl .nowline { position: absolute; top: -6px; bottom: -6px; width: 3px; margin-left: -1px; background: var(--y); }
.tl .nowline::before { content: ''; position: absolute; top: -6px; left: -5px; border: 6px solid transparent; border-top-color: var(--y); }
.tl-h { display: flex; justify-content: space-between; font-family: 'JetBrains Mono', monospace; font-size: 14px; color: var(--w3); margin-top: 6px; }
.next { margin-top: 10px; }
.next h3 { font-family: 'JetBrains Mono', monospace; font-size: 16px; letter-spacing: .2em; text-transform: uppercase; color: var(--y); font-weight: 700; margin-bottom: 8px; }
.nx { display: grid; grid-template-columns: 170px 1fr auto; gap: 18px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.nx .h { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 26px; }
.nx .t { font-size: 27px; font-weight: 700; line-height: 1.1; }
.nx .t small { display: block; font-size: 19px; font-weight: 500; color: var(--w2); margin-top: 3px; }
.nx .r { font-family: 'JetBrains Mono', monospace; font-size: 17px; color: var(--w2); text-align: right; }
.empty { font-size: 30px; color: var(--w2); padding: 30px 0; }

/* ---------- Franja de sales ---------- */
#strip { display: none; position: relative; z-index: 3; padding: 0 var(--pad); }
#strip.on { display: grid; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.st { display: grid; grid-template-columns: 14px 230px 1fr auto; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.st .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--w); }
.st .dot { position: relative; }
.st.busy .dot { background: var(--y); border-color: var(--y); }
.st.busy .dot::after { content: ''; position: absolute; left: -2px; top: -2px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--y); box-sizing: border-box; animation: ring 2s var(--ease) infinite; }
.st .n { font-size: 24px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st .d { font-size: 22px; color: var(--w2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st.busy .d { color: var(--w); }
.st .h { font-family: 'JetBrains Mono', monospace; font-size: 20px; font-weight: 700; color: var(--y); }
.strip-hd { font-family: 'JetBrains Mono', monospace; font-size: 15px; letter-spacing: .22em; text-transform: uppercase; color: var(--w2); }

/* ---------- Notícies ---------- */
.news-slot { display: none; position: relative; z-index: 4; }
.news-slot.on { display: block; }
#news-top.on, #news-middle.on, #news-bottom.on { padding: 18px var(--pad); }
.nw { position: relative; height: 270px; }
.nw-card { position: absolute; inset: 0; display: grid; grid-template-columns: 270px 1fr; gap: 30px; }
.nw-img { position: relative; overflow: hidden; background: var(--k3); clip-path: inset(0 100% 0 0); animation: imgIn 1.1s var(--ease-io) .1s forwards; }
@keyframes imgIn { to { clip-path: inset(0 0 0 0); } }
.nw-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) sepia(1) saturate(3.2) hue-rotate(2deg) contrast(1.1) brightness(.92); }
.nw-body { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.nw-k { display: flex; align-items: center; gap: 14px; font-family: 'JetBrains Mono', monospace; font-size: 16px; letter-spacing: .18em; text-transform: uppercase; color: var(--y); }
.nw-k .d { color: var(--w2); letter-spacing: .06em; }
.nw-t { margin-top: 14px; font-size: 40px; font-weight: 800; font-stretch: 96%; line-height: 1.08; letter-spacing: -.015em; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.nw-t .w { display: inline-block; animation: wordIn .8s var(--ease) both; animation-delay: calc(var(--i) * 45ms + 300ms); }
@keyframes wordIn { from { opacity: 0; transform: translateY(.6em); } to { opacity: 1; transform: none; } }
.nw-card.out { animation: cardOut .7s var(--ease-io) forwards; }
@keyframes cardOut { to { opacity: 0; transform: translateY(-24px); } }
.nw-ticks { position: absolute; left: 300px; right: 0; bottom: 0; display: flex; gap: 6px; }
.nw-ticks i { flex: 1; height: 3px; background: var(--line); position: relative; overflow: hidden; }
.nw-ticks i.done { background: var(--w3); }
.nw-ticks i.cur::after { content: ''; position: absolute; inset: 0; background: var(--y); transform-origin: 0 0; animation: tick linear forwards; animation-duration: inherit; }
@keyframes tick { from { transform: scaleX(0); } to { transform: scaleX(1); } }
#news-top .nw, #news-middle .nw, #news-bottom .nw { border-top: 2px solid var(--w); padding-top: 22px; height: 300px; }
#news-top .nw-ticks, #news-middle .nw-ticks, #news-bottom .nw-ticks { bottom: -10px; }

/* ---------- Arrossar ---------- */
#field { position: relative; height: var(--field-h); flex: none; z-index: 1; }
#field.off { display: none; }
#rice { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; will-change: transform; }
#news-field { position: absolute; left: var(--pad); right: var(--pad); bottom: 70px; }
#news-field .nw { background: linear-gradient(90deg, rgba(11,11,10,.92), rgba(11,11,10,.78)); padding: 22px; height: 300px; border-left: 4px solid var(--y); }
#news-field .nw-card { inset: 22px; }
#news-field .nw-ticks { left: 322px; right: 22px; bottom: 14px; }
.message { position: absolute; left: 0; right: 0; bottom: 0; height: 52px; overflow: hidden; background: var(--y); color: var(--k); display: none; z-index: 5; }
.message.on { display: block; }
.msg-track { position: absolute; top: 0; left: 0; height: 52px; line-height: 52px; white-space: nowrap; font-weight: 800; font-size: 26px; font-stretch: 110%; letter-spacing: .01em; text-transform: uppercase; animation: marquee linear infinite; will-change: transform; }
.msg-track span { padding-right: 80px; }
.msg-track span::after { content: '\25C6'; margin-left: 80px; font-size: 16px; vertical-align: middle; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Estat ---------- */
#offline { position: absolute; right: 24px; top: 16px; font-family: 'JetBrains Mono', monospace; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--k); background: var(--y); padding: 6px 10px; opacity: 0; transition: opacity .6s; z-index: 10; }
#offline.on { opacity: 1; }
#stage.booting #hd, #stage.booting #scenebar { opacity: 0; }
#hd, #scenebar { transition: opacity 1.2s var(--ease); }

/* Pantalla d'arrencada */
.boot { position: absolute; inset: 0; display: grid; place-items: center; }
.boot-mark { font-size: 200px; font-weight: 900; font-stretch: 125%; color: transparent; -webkit-text-stroke: 2px var(--y); animation: bootPulse 1.6s ease-in-out infinite; }
@keyframes bootPulse { 50% { opacity: .3; } }
