/* exp30 walkthrough-video modal — paired with assets/video.js.
   Loads after every other stylesheet so it can sit on top of any theme.
   One native <dialog>, built lazily on first open. The dialog carries its own
   colour so it reads the same on paper and on the dark themes: it is a screen,
   not a page surface. Delete this file + video.js + the two head lines per page
   to remove the feature. */

.vid-dlg{
  width:min(920px,calc(100vw - 2 * var(--gutter)));
  max-width:none;
  padding:0;
  border:1px solid rgba(237,235,227,.22);
  border-radius:12px;
  background:#0E0F13;
  color:#EDEBE3;
  box-shadow:0 30px 90px rgba(0,0,0,.55);
  overflow:hidden;
}
.vid-dlg::backdrop{background:rgba(10,10,12,.72);}
html[data-theme="terminal"] .vid-dlg,
html[data-theme="brutal"] .vid-dlg,
html[data-theme="riso"] .vid-dlg{border-radius:0;}
html[data-theme="brutal"] .vid-dlg{border:3px solid #000;box-shadow:12px 12px 0 #E8FF2A;}
html[data-theme="terminal"] .vid-dlg{border-color:rgba(43,255,111,.45);background:#050807;color:#2BFF6F;}

.vid-hd{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:.7rem .8rem .7rem 1.15rem;
  border-bottom:1px solid rgba(237,235,227,.14);
}
html[data-theme="terminal"] .vid-hd{border-bottom-color:rgba(43,255,111,.28);}
.vid-ttl{
  font-family:var(--mono);font-size:.7rem;font-weight:500;line-height:1.4;
  letter-spacing:.09em;text-transform:uppercase;color:rgba(237,235,227,.6);
}
html[data-theme="terminal"] .vid-ttl{color:rgba(43,255,111,.7);}
.vid-x{
  appearance:none;display:inline-flex;align-items:center;justify-content:center;
  width:34px;height:34px;padding:0;margin:0;
  background:none;border:1px solid rgba(237,235,227,.22);border-radius:6px;
  color:inherit;cursor:pointer;
  transition:border-color .15s ease,background .15s ease;
}
html[data-theme="terminal"] .vid-x,
html[data-theme="brutal"] .vid-x,
html[data-theme="riso"] .vid-x{border-radius:0;}
.vid-x:hover{border-color:currentColor;background:rgba(237,235,227,.08);}
.vid-x svg{display:block;}

/* the 16:9 screen: placeholder now, <video> once data-video-src is filled in */
.vid-box{
  position:relative;
  aspect-ratio:16 / 9;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:1.2rem;
  padding:1.5rem;
  text-align:center;
  background:#08090C;
}
html[data-theme="terminal"] .vid-box{background:#030504;}
.vid-box video{
  position:absolute;inset:0;
  width:100%;height:100%;
  display:block;background:#000;
}
.vid-note{
  margin:0;
  font-family:var(--mono);font-size:.82rem;line-height:1.6;letter-spacing:.02em;
  color:rgba(237,235,227,.7);
}
html[data-theme="terminal"] .vid-note{color:rgba(43,255,111,.8);}
.vid-ask{
  display:inline-flex;align-items:center;min-height:44px;padding:0 1.15rem;
  border:1px solid currentColor;border-radius:999px;
  font-family:var(--sans);font-size:.95rem;font-weight:600;line-height:1;
  color:#EDEBE3;text-decoration:none;cursor:pointer;
  transition:background .15s ease,color .15s ease;
}
html[data-theme="terminal"] .vid-ask{border-radius:0;color:#2BFF6F;}
html[data-theme="brutal"] .vid-ask,
html[data-theme="riso"] .vid-ask{border-radius:0;}
.vid-ask:hover{background:#EDEBE3;color:#0E0F13;}
html[data-theme="terminal"] .vid-ask:hover{background:rgba(43,255,111,.16);color:#2BFF6F;}

.vid-dlg :focus-visible{outline:2px solid currentColor;outline-offset:2px;}

/* no page scroll behind the open dialog */
html.vid-open,html.vid-open body{overflow:hidden;}

@media (max-width:640px){
  .vid-box{gap:.9rem;padding:1rem;}
  .vid-note{font-size:.74rem;}
}
@media (prefers-reduced-motion: reduce){
  .vid-dlg,.vid-x,.vid-ask{transition:none;}
}
