/* NARRATIVE LAB — the driver bar and the now deck, in the lab's own voice */
:root{ --drv:66px; }
body.narrative #facets,body.narrative #stage{ top:calc(var(--top) + var(--drv)); }
#drive{ position:fixed; top:var(--top); left:0; right:0; height:var(--drv); z-index:39; display:grid; grid-template-columns:52px minmax(0,1fr) auto; grid-template-rows:1fr auto; gap:0 12px;
  background:#070707; border-bottom:1px solid var(--rule2); padding:6px 12px 4px; font:12px/1.3 var(--mono); color:var(--ink); }
#nPlay{ grid-row:1 / 3; width:46px; height:46px; align-self:center; border:1px solid var(--dim); background:#000; color:var(--ink); font-size:16px; cursor:pointer; }
#nPlay:hover{ background:var(--ink); color:#000; }
.ncol{ display:flex; flex-direction:column; gap:4px; min-width:0; }
.ncol.r{ align-items:flex-end; }
#nPoems{ display:flex; gap:2px; height:24px; }
.npoem{ flex:1 1 0; min-width:0; position:relative; border:0; background:#222 center/cover no-repeat; color:#fff; cursor:pointer; padding:0; filter:grayscale(1) brightness(.5); }
.npoem.made{ filter:none; }
.npoem.on{ outline:2px solid #ffd166; outline-offset:-2px; filter:none; }
.npoem b{ position:absolute; left:3px; top:1px; font-size:10px; text-shadow:0 0 3px #000,0 0 3px #000; }
.npoem i{ position:absolute; left:0; bottom:0; height:3px; background:#ffd166; }
#nLine{ display:flex; align-items:center; gap:8px; min-width:0; height:24px; }
.nbrick{ flex:0 0 32px; height:24px; border:1px dashed #555; background:#111 center/cover no-repeat; }
.nbrick.full{ border:2px solid var(--sg,#fff); }
#nWords{ font-family:var(--serif); font-size:15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--dim); }
#nWords b{ color:#000; background:var(--ink); padding:0 3px; font-weight:600; }
.nrow{ display:flex; gap:6px; align-items:center; }
.nrow label{ color:var(--faint); font-size:11px; }
.nrow select{ background:#000; color:var(--ink); border:1px solid var(--rule2); font:11px var(--mono); padding:2px 4px; }
#nClock{ font-size:11px; color:var(--faint); font-variant-numeric:tabular-nums; min-width:62px; text-align:right; }
#nVerbs button{ background:#000; color:var(--dim); border:1px solid var(--rule2); font:11px var(--mono); padding:3px 8px; cursor:pointer; letter-spacing:.06em; text-transform:uppercase; }
#nVerbs button b{ color:#ffd166; margin-right:5px; }
#nVerbs button:hover,#nVerbs button.fire{ background:var(--ink); color:#000; }
#nState{ grid-column:2 / 4; display:flex; gap:0; font-size:10px; color:var(--faint); white-space:nowrap; overflow:hidden; font-variant-numeric:tabular-nums; }
#nState i{ font-style:normal; margin:0 4px 0 10px; letter-spacing:.08em; text-transform:uppercase; opacity:.7; }
#nState i:first-child{ margin-left:0; }
#nState b{ color:var(--ink); font-weight:500; }

/* the now deck: in the ring it plays in the middle of the cylinder; elsewhere it docks */
#nNow{ position:absolute; z-index:25; background:#000; border:3px solid var(--sg,#ffd166); box-shadow:0 20px 60px rgba(0,0,0,.8); cursor:pointer; overflow:hidden;
  right:14px; bottom:14px; width:min(34vw,380px); aspect-ratio:4/3; transition:all .35s ease; }
#nNow.loose{ border-style:dashed; }
body[data-nmode="ring"] #nNow{ left:50%; top:48%; right:auto; bottom:auto; width:min(38vw,560px); transform:translate(-50%,-50%); }
body[data-nmode="reel"] #nNow,body[data-nmode="wyg"] #nNow{ display:none; }
#nNow video{ width:100%; height:100%; object-fit:cover; display:block; }
#nNow .nsrc{ position:absolute; left:0; bottom:0; background:var(--sg,#ffd166); color:#000; font-size:10px; padding:2px 7px; letter-spacing:.08em; text-transform:uppercase; }
#nNow.cele{ animation:ncele 1s ease-out; }
@keyframes ncele{ 0%{ box-shadow:0 0 0 0 var(--sg,#ffd166); } 35%{ box-shadow:0 0 0 14px var(--sg,#ffd166); } 100%{ box-shadow:0 20px 60px rgba(0,0,0,.8); } }

/* marks in every view */
.tile.n-kept,.rc.n-kept{ outline:3px solid #ffd166; outline-offset:-3px; }
.tile.n-src,.rc.n-src{ outline:2px dashed rgba(255,255,255,.75); outline-offset:-2px; }
.tile.n-bet::after,.rc.n-bet::after{ content:''; position:absolute; right:4px; top:4px; width:8px; height:8px; border-radius:50%; background:#7fd1ff; z-index:3; }
.tile.n-try,.rc.n-try{ outline:3px solid #7fd1ff; outline-offset:-3px; }
.tile.n-now,.rc.n-now{ box-shadow:0 0 0 3px #ffd166,0 0 24px rgba(255,209,102,.6); }
.rc .rcv{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transition:opacity .3s; }
.rc .rcv.on{ opacity:1; }
@media (max-width:760px){ :root{ --drv:92px; } #drive{ grid-template-columns:46px minmax(0,1fr); } .ncol.r{ grid-column:1 / 3; flex-direction:row; align-items:center; } #nState{ display:none; } }
