/* NOW PLAYING deck, ported from dev2.darien.games (SN 097) */
#tvnp { position: absolute; right: 0px; bottom: 0px; z-index: 3; width: 440px; height: 224px; display: none; grid-template-columns: auto minmax(0px, 1fr); gap: 14px; padding: 10px; box-sizing: border-box; border: 2px solid var(--yellow); background: var(--bg-elev); color: var(--text); cursor: pointer; user-select: none; line-height: 1; }
html.tvon #tvcanvas.npbox #tvnp { display: grid; }
html.tvon #tvcanvas.npbox #tvclock.mini { transform: translate(var(--npshift,0px),var(--npshifty,0px)) scale(var(--cks,1)); }
html.tvon #tvcanvas.npbox { --ckw: 494px; --ckh: 224px; }
html.tvon #tvcanvas.npbox #today .ofloor .helpline, html.tvon #tvcanvas.npbox #today .ofloor .waychip, html.tvon #tvcanvas.npbox #today .ofloor .duechip { zoom: var(--npfz,1); }
html.tvon #tvcanvas.npbox.npfree { --ckw: 440px; }
html.tvon #tvcanvas.npchip #tvnp { display: block; width: auto; height: auto; padding: 0px; border: 0px; background: none; }
html.tvon #tvcanvas.npchip { --ckw: calc(386px*var(--cks)); --ckh: calc(224px*var(--cks)); }
html.tvon #tvcanvas.npchip.ckmini { --ckw: calc(210px*var(--cks)); --ckh: calc(46px*var(--cks)); }
html.tvon #tvcanvas.npbox #today .ofloor .helpline { font-size: calc(30px*var(--tvl)); padding: calc(12px*var(--tvl)) calc(20px*var(--tvl)); }
html.tvon #tvcanvas.npbox #today .ofloor .helpline .hk { font-size: calc(30px*var(--tvl)); }
html.tvon #tvcanvas.npchip #tvnp .npa, html.tvon #tvcanvas.npchip #tvnp .npm { display: none; }
#tvnp .npchipbtn { display: none; align-items: center; gap: 8px; max-width: 150px; padding: 7px 12px; border: 2px solid var(--line-strong); background: var(--bg-elev); color: var(--text-muted); font-family: var(--pixel); font-size: 11px; letter-spacing: 0.12em; cursor: pointer; white-space: nowrap; overflow: hidden; }
html.tvon #tvcanvas.npchip #tvnp .npchipbtn { display: inline-flex; }
#tvnp .npchipbtn .npchiptxt { overflow: hidden; text-overflow: ellipsis; }
#tvnp .npchipbtn:hover { color: var(--yellow); border-color: var(--yellow); }
#tvnp .npa { display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; }
#tvnp .npaw { position: relative; display: block; width: 168px; height: 168px; will-change: transform; }
#tvnp .npscreen { position: absolute; inset: 0px; border: 2px solid rgb(42, 34, 80); border-radius: 11px; overflow: hidden; background: rgb(0, 0, 0); box-sizing: border-box; }
#tvnp .npbulge { position: absolute; inset: -5px; filter: url("#npbulge"); }
#tvnp .npart { position: absolute; inset: 0px; width: 100%; height: 100%; display: block; object-fit: cover; image-rendering: pixelated; background: rgb(0, 0, 0); border: 0px; }
#tvnp .npartglow { position: absolute; inset: 0px; pointer-events: none; border-radius: 11px; box-shadow: rgba(255, 199, 44, 0.8) 0px 0px 18px 4px; opacity: 0; will-change: opacity; }
#tvnp .nptubeglow { position: absolute; inset: 0px; pointer-events: none; border-radius: 11px; box-shadow: rgba(47, 220, 254, 0.28) 0px 0px 10px 1px, rgba(151, 23, 164, 0.3) 0px 0px 26px 4px, rgba(0, 0, 0, 0.55) 0px 0px 14px 4px inset; }
#tvnp .npvid { position: absolute; inset: 0px; overflow: hidden; background: rgb(0, 0, 0); pointer-events: none; display: none; }
#tvnp .npvid iframe { position: absolute; top: 50%; left: 50%; width: 178%; height: 100%; transform: translate(-50%, -50%); border: 0px; pointer-events: none; }
#tvnp .npaw.hasvid .npvid { display: block; }
#tvnp .npvidc { position: absolute; inset: 0px; width: 100%; height: 100%; display: none; background: rgb(0, 0, 0); }
#tvnp .npaw.hasfrm .npvidc { display: block; }
#tvnp .npcrt { position: absolute; inset: 0px; overflow: hidden; pointer-events: none; z-index: 2; }
#tvnp .npcrt::before { content: ""; position: absolute; inset: 0px; background: radial-gradient(70% 50% at 28% 18%, rgba(255, 255, 255, 0.13), transparent 60%), radial-gradient(75% 75%, transparent 55%, rgba(0, 0, 0, 0.55) 100%), linear-gradient(165deg, rgba(151, 23, 164, 0.16), transparent 45%, rgba(9, 34, 231, 0.12)); }
#tvnp .npcrt::after { content: ""; position: absolute; inset: -8px 0px; background: repeating-linear-gradient(0deg, rgba(7, 5, 16, 0.16) 0px, rgba(7, 5, 16, 0.16) 2px, transparent 2px, transparent 4px); animation: 1.6s linear 0s infinite normal none running scanroll; will-change: transform; }
@media (prefers-reduced-motion: reduce) {#tvnp .npcrt::after { animation: auto ease 0s 1 normal none running none; }}
#tvnp .npm { min-width: 0px; display: flex; flex-direction: column; gap: 6px; position: relative; }
#tvnp .npt { font-family: var(--body); font-weight: 700; font-size: 30px; line-height: 1.1; color: var(--text); white-space: nowrap; overflow: hidden; }
#tvnp .npt .in, #tvnp .npar .in { display: inline-block; white-space: nowrap; --npscroll: 0px; }
#tvnp .npt .in.roll, #tvnp .npar .in.roll { animation: npmarq var(--npdur,12s) ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {#tvnp .npt .in.roll, #tvnp .npar .in.roll { animation: auto ease 0s 1 normal none running none; }}
#tvnp .npar { font-family: var(--pixel); font-size: 14px; letter-spacing: 0.08em; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-transform: uppercase; }
#tvnp .npprog { height: 4px; background: rgb(42, 34, 80); position: relative; }
#tvnp .npprog i { position: absolute; left: 0px; top: 0px; bottom: 0px; width: 0px; background: var(--yellow); }
#tvnp .npviz { width: 100%; height: 56px; flex: 1 1 56px; min-height: 56px; display: block; background: rgb(0, 0, 0); border: 2px solid rgb(42, 34, 80); box-sizing: border-box; image-rendering: pixelated; position: relative; }
#tvnp .npvizglow { position: absolute; left: 0px; right: 0px; bottom: 34px; height: 56px; pointer-events: none; box-shadow: rgba(60, 240, 90, 0.55) 0px 0px 22px 4px; opacity: 0; will-change: opacity; }
#tvnp .npframe { position: absolute; inset: -2px; pointer-events: none; border: 2px solid var(--yellow); box-shadow: rgba(255, 199, 44, 0.8) 0px 0px 26px 3px, rgba(255, 199, 44, 0.35) 0px 0px 18px inset; opacity: 0; will-change: opacity; }
#tvnp .npfoot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: -1px; height: 29px; flex: 0 0 auto; overflow: hidden; min-width: 0px; }
#tvnp .nptime { font-family: var(--pixel); font-size: 16px; letter-spacing: 0.04em; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
#tvnp .nptime b { color: var(--text-muted); font-weight: 400; }
#tvnp .nplive { display: inline-block; width: 7px; height: 7px; background: var(--red); margin-right: 6px; vertical-align: middle; animation: 1.2s steps(1) 0s infinite normal none running npblink; }
#tvnp.paused .nplive { background: var(--text-muted); animation: auto ease 0s 1 normal none running none; }
#tvnp .npctl { display: flex; gap: 4px; }
#tvnp .npctl button { font-family: var(--pixel); font-size: 12px; font-weight: 700; line-height: 1; color: var(--yellow); background: rgb(26, 20, 48); border: 2px solid rgb(42, 34, 80); padding: 7px 4px 6px; cursor: pointer; flex: 1 1 0px; min-width: 0px; letter-spacing: 0px; }
#tvnp .npctl button:hover, #tvnp .npctl button:focus-visible { background: var(--cyan); color: rgb(10, 7, 20); border-color: var(--cyan); outline: 0px; }
#tvnp .npctl button.npplay { flex: 1.3 1 0px; }
.nphair { position: absolute; left: 0px; right: 0px; bottom: -3px; height: 3px; pointer-events: none; background: var(--cyan); box-shadow: rgba(47, 220, 254, 0.7) 0px 0px 26px 5px; opacity: 0; will-change: opacity; }
.ocut .npglow { position: absolute; inset: 0px; pointer-events: none; background: var(--red-text); clip-path: polygon(calc(100% - 7px) 0px, 100% 0px, 22% 100%, 14% 100%); filter: blur(9px); opacity: 0; will-change: opacity; }
html.tvon #today .ocut .npglow { clip-path: none; background: none; filter: blur(12px); z-index: 3; }
html.tvon #today .ocut .npglow::before { content: ""; position: absolute; inset: 0px; background: rgba(255, 31, 61, 0.55); clip-path: polygon(calc(100% - 28px) 0px, calc(100% + 8px) 0px, 28% 100%, calc(22% - 8px) 100%); }
html.tvon #today .ocut .npglow::after { content: ""; position: absolute; inset: 0px; background: rgba(255, 138, 138, 0.5); clip-path: polygon(calc(100% - 16px) 0px, 100% 0px, 22% 100%, calc(22% - 2px) 100%); }
.nppool { position: absolute; left: 0px; right: 0px; bottom: 0px; height: 52%; pointer-events: none; background: radial-gradient(46% 100% at 84% 100%, rgba(47, 220, 254, 0.3), rgba(47, 220, 254, 0) 70%); opacity: 0; will-change: opacity; }
.npvig { position: absolute; inset: 0px; pointer-events: none; background: radial-gradient(70% 70%, rgba(183, 37, 165, 0) 55%, rgba(183, 37, 165, 0.42) 100%); opacity: 0; will-change: opacity; }
.nppool2 { position: absolute; left: 0px; right: 0px; bottom: 0px; height: 52%; pointer-events: none; background: radial-gradient(40% 100% at 12% 100%, rgba(245, 50, 49, 0.34), rgba(245, 50, 49, 0) 70%); opacity: 0; will-change: opacity; }
.nplogoglow { position: absolute; inset: -30px -40px; pointer-events: none; background: radial-gradient(60% 70%, rgba(47, 220, 254, 0.5), rgba(47, 220, 254, 0) 70%); opacity: 0; will-change: opacity; z-index: 0; }
.npnowglow { position: absolute; inset: -26px -34px; pointer-events: none; background: radial-gradient(60% 70%, rgba(245, 50, 49, 0.55), rgba(245, 50, 49, 0) 70%); opacity: 0; will-change: opacity; z-index: -1; }
@media (prefers-reduced-motion: reduce) {#tvnp .nplive { animation: auto ease 0s 1 normal none running none; }
.nphair, .npglow, .nppool, .nppool2, .npvig, .nplogoglow, .npnowglow, #tvnp .npartglow, #tvnp .npvizglow, #tvnp .npframe { display: none; }}
html.tvon #today .ostamp, html.tvon #today .obar, html.tvon #today .helpline, html.tvon #today .waychip, html.tvon #tvbar .tvwk, html.tvon #tvnp:not(.npchipmode) { backdrop-filter: blur(12px) saturate(1.15); border-radius: 10px; background: linear-gradient(rgba(10, 13, 20, 0.46), rgba(8, 10, 16, 0.56)) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; clip-path: none !important; box-shadow: rgba(255, 255, 255, 0.1) 0px 1px 0px inset, rgba(0, 0, 0, 0.45) 0px 14px 34px !important; }
#tvnp { border-radius: 12px; }
#tvnp .npaw { margin: 22px; border-radius: 50%; width: 132px !important; height: 132px !important; }
#tvnp .npscreen { background: rgb(0, 0, 0); border-radius: 50% !important; border: 0px !important; }
#tvnp .npart { filter: brightness(1.35) saturate(1.12); }
#tvnp .npcrt::before { background: radial-gradient(70% 50% at 28% 18%, rgba(255, 255, 255, 0.13), transparent 60%), radial-gradient(75% 75%, transparent 60%, rgba(0, 0, 0, 0.28) 100%), linear-gradient(165deg, rgba(151, 23, 164, 0.1), transparent 45%, rgba(9, 34, 231, 0.08)); }
#tvnp .npcrt::after { opacity: 0.75; }
#tvnp .nptubeglow, #tvnp .npartglow { display: none; border-radius: 50% !important; }
#tvnp .npbh { position: absolute; left: -26px; top: -26px; width: 184px; height: 184px; pointer-events: none; z-index: 4; }
#tvnp .npviz, #tvnp .npvizglow { display: none !important; }
#tvnp .npt { font-weight: 800; letter-spacing: 0.02em; font-family: var(--display) !important; font-size: 34px !important; }
#tvnp .npar, #tvnp .nptime { font-family: var(--label) !important; font-weight: 600; }
#tvnp .npar { color: var(--holo-b) !important; }
#tvnp .npprog { border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, 0.08) !important; }
#tvnp .npprog i { background: linear-gradient(90deg,var(--cyan),var(--holo-b)) !important; }
#tvnp .npctl button { border-radius: 4px; font-family: var(--label) !important; color: rgb(255, 255, 255) !important; background: rgba(255, 255, 255, 0.06) !important; border: 1px solid rgba(255, 255, 255, 0.14) !important; }
#tvnp .npctl button:hover { background: var(--cyan) !important; color: rgb(11, 13, 17) !important; }
#tvnp .npchipbtn { font-family: var(--label); font-weight: 700; background: rgba(10, 13, 20, 0.55); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 6px; backdrop-filter: blur(10px); color: rgb(255, 255, 255); }
html.tvon #tvcanvas.npbox { --ckw: 374px; --ckh: 320px; }
html.tvon #tvcanvas.npbox.npfree { --ckw: 320px; }
html.tvon #tvcanvas.npbox #tvnp { width: 320px !important; height: 320px !important; padding: 16px 18px 14px !important; }
html.tvon #tvcanvas.npbox #tvnp { grid-template: "t t" "ar ar" "disc disc" minmax(0px, 1fr) "pg pg" "tm ctl" / minmax(0px, 1fr) auto; gap: 0px 10px; align-items: center; display: grid !important; }
html.tvon #tvcanvas.npbox #tvnp .npa, html.tvon #tvcanvas.npbox #tvnp .npm { display: contents; }
#tvnp .npt { grid-area: t; text-align: center; line-height: 1.05; font-size: 32px !important; }
#tvnp .npar { grid-area: ar; text-align: center; margin-top: 4px; font-size: 13px; }
#tvnp .npt:has(.in.roll), #tvnp .npar:has(.in.roll) { text-align: left; }
#tvnp .npaw { grid-area: disc; place-self: center; width: 124px !important; height: 124px !important; margin: 0px !important; }
#tvnp .npbh { left: -24px !important; top: -24px !important; width: 172px !important; height: 172px !important; }
#tvnp .npprog { grid-area: pg; margin: 0px 0px 9px; }
#tvnp .npfoot { grid-area: tm; justify-content: flex-start; height: auto !important; margin: 0px !important; }
#tvnp .nptime { font-size: 17px; }
#tvnp .npctl { grid-area: ctl; gap: 5px; }
#tvnp .npctl button { width: 44px; font-size: 12px; flex: 0 0 auto !important; padding: 8px 0px 7px !important; }
#tvnp .npctl button.npplay { width: 52px; }
html.tvon #tvcanvas.npbox { --ckw: 402px; --ckh: 348px; }
html.tvon #tvcanvas.npbox.npfree { --ckw: 348px; }
html.tvon #tvcanvas.npbox #tvnp { right: 14px; bottom: 14px; overflow: visible !important; }
html.tvon #tvcanvas.npbox #today .ofloor { padding-right: calc(var(--ckw) - 34px) !important; min-height: 0px !important; }
html.tvon #tvcanvas.npbox #today .onext .obar { margin-right: calc(var(--ckw) - 34px) !important; }
html.tvon #tvcanvas.npbox #today .ocols { margin-bottom: 0px !important; }
#tvnp .npbh { left: -58px !important; top: -58px !important; width: 240px !important; height: 240px !important; }
#tvnp .npaw { overflow: visible; }
html.tvon #tvcanvas.npbox #today .olog.rot .ocols:not(:has(.onext .obar.cardon)) .obar.cardon { margin-right: calc(var(--ckw) - 34px) !important; }
html.tvon #tvcanvas.npbox { --ckw: 482px; --ckh: 428px; }
html.tvon #tvcanvas.npbox.npfree { --ckw: 428px; }
html.tvon #tvcanvas.npbox #tvnp { width: 400px !important; height: 400px !important; padding: 20px 22px 18px !important; }
#tvnp .npt { font-size: 42px !important; }
#tvnp .npar { font-size: 17px; margin-top: 6px; }
#tvnp .npaw { width: 160px !important; height: 160px !important; }
#tvnp .npbh { left: -75px !important; top: -75px !important; width: 310px !important; height: 310px !important; }
#tvnp .npprog { margin: 0px 0px 12px; height: 6px !important; }
#tvnp .nptime { font-size: 23px; }
#tvnp .npctl { gap: 7px; }
#tvnp .npctl button { width: 56px; font-size: 16px; padding: 10px 0px 9px !important; }
#tvnp .npctl button.npplay { width: 66px; }
html #tvnp .npt { font-family: var(--body) !important; font-weight: 700 !important; letter-spacing: 0px !important; }
html #tvnp .npar { font-family: var(--body) !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: 0.01em !important; }
html #tvnp .nptime { font-family: var(--body) !important; font-weight: 700 !important; letter-spacing: 0px !important; }
html.tvon #tvcanvas.npbox #today.npcut .olog.rot .ocols:not(:has(.onext .obar.cardon)) .obar.cardon { clip-path: polygon(0 0,100% 0,100% calc(100% - var(--nh)),calc(100% - var(--nw)) calc(100% - var(--nh)),calc(100% - var(--nw)) 100%,0 100%); margin-right: 0px !important; display: flow-root !important; background-image: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)), linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)), linear-gradient(rgba(10, 13, 20, 0.46), rgba(8, 10, 16, 0.56)) !important; background-size: var(--nw) 1.2px,1.2px var(--nh),100% 100% !important; background-position: right 0 bottom calc(var(--nh) - 1.2px),right calc(var(--nw) - 1.2px) bottom 0,0 0 !important; background-repeat: no-repeat !important; }
html.tvon #tvcanvas.npbox #today.npcut .olog.rot .ocols:not(:has(.onext .obar.cardon)) .obar.cardon > .k { width: max-content; }
html.tvon #tvcanvas.npbox #today.npcut .olog.rot .ocols:not(:has(.onext .obar.cardon)) .obar.cardon::before { content: ""; float: right; width: calc(var(--nw) - 14px); height: 100%; margin: 0px; shape-outside: inset(calc(100% - var(--nh) + 14px) 0 0 0); }
html body #tvnp .npar { font-size: 24px !important; font-weight: 700 !important; color: rgb(255, 184, 243) !important; letter-spacing: 0.01em !important; line-height: 1.2 !important; text-shadow: rgba(255, 184, 243, 0.55) 0px 0px 10px, rgba(0, 0, 0, 0.95) 0px 0px 2px !important; opacity: 1 !important; }
html.tvon #tvnp .npaw { transform: scale(1.1); }
@keyframes scanroll { 
  100% { transform: translateY(4px); }
}
@keyframes float { 
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes npmarq { 
  0%, 18% { transform: translateX(0px); }
  48%, 62% { transform: translateX(calc(-1*var(--npscroll))); }
  92%, 100% { transform: translateX(0px); }
}
@keyframes npblink { 
  50% { opacity: 0.15; }
}
/* AFTERGLOW skin for the NOW PLAYING deck */
#tvnp,#tvstage,#tvbar,.nppool,.nppool2,.npvig,.nphair,.nplogoglow,.npnowglow{--yellow:#fff1e4;--bg-elev:#130c18;--text:#f4ede6;--line-strong:#5d4a66;--text-muted:#b3a3ad;--pixel:'DM Sans',system-ui,sans-serif;--label:'DM Sans',system-ui,sans-serif;--body:'DM Sans',system-ui,sans-serif;--display:'DM Sans',system-ui,sans-serif;--red:#ff3d9a;--cyan:#ff7a1a;--red-text:#ff8ab8;--holo-b:#ff3d9a}
#tvstage{position:absolute;inset:0;pointer-events:none;overflow:hidden}
#tvbar{position:relative}
#tvbar .tvbrand{position:relative}
#tvbar .tvbrand>span{position:relative;z-index:1}
.nppool{background:radial-gradient(46% 100% at 84% 100%,rgba(255,122,26,.30),rgba(255,122,26,0) 70%)}
.nppool2{background:radial-gradient(40% 100% at 12% 100%,rgba(255,61,154,.32),rgba(255,61,154,0) 70%)}
.npvig{background:radial-gradient(70% 70%,rgba(255,61,154,0) 55%,rgba(255,61,154,.36) 100%)}
.nphair{background:linear-gradient(90deg,#ff7a1a,#ff3d9a);box-shadow:0 0 26px 5px rgba(255,122,26,.6)}
.nplogoglow{background:radial-gradient(60% 70%,rgba(255,122,26,.5),rgba(255,61,154,0) 70%)}
/* deck sits in the card's notch, hanging below it like GD2 */
html.tvon #tvcanvas #tvnp{right:60px!important;bottom:10px!important;left:auto!important;top:auto!important;transform:scale(.7);transform-origin:100% 100%}
/* the notch */
html.tvon #tvcanvas.npbox #tvslot .today.npcut{position:relative;clip-path:polygon(0 0,100% 0,100% calc(100% - var(--nh)),calc(100% - var(--nw)) calc(100% - var(--nh)),calc(100% - var(--nw)) 100%,0 100%)}
html.tvon #tvcanvas.npbox #tvslot .today.npcut::after{content:"";position:absolute;right:0;bottom:0;width:calc(var(--nw) + 1px);height:calc(var(--nh) + 1px);box-sizing:border-box;border-top:1px solid rgba(226,189,122,.22);border-left:1px solid rgba(226,189,122,.22);pointer-events:none}

/* the deck column stops above the notch */
#tvslot .today.npcut .tdeck{max-height:var(--npdeckmax,none);overflow:hidden}
